@alfalab/core-components-date-range-input 3.0.11 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component.desktop.d.ts +4 -0
- package/Component.desktop.js +4 -0
- package/Component.mobile.d.ts +4 -0
- package/Component.mobile.js +4 -0
- package/Component.responsive.d.ts +4 -0
- package/Component.responsive.js +4 -0
- package/components/date-range-input/Component.d.ts +2 -2
- package/components/date-range-input/Component.js +6 -5
- package/components/date-range-input/index.css +7 -7
- package/cssm/Component.desktop.d.ts +4 -0
- package/cssm/Component.desktop.js +4 -0
- package/cssm/Component.mobile.d.ts +4 -0
- package/cssm/Component.mobile.js +4 -0
- package/cssm/Component.responsive.d.ts +4 -0
- package/cssm/Component.responsive.js +4 -0
- package/cssm/components/date-range-input/Component.d.ts +2 -2
- package/cssm/components/date-range-input/Component.js +5 -4
- package/cssm/desktop/index.d.ts +2 -0
- package/cssm/{desktop.js → desktop/index.js} +4 -4
- package/cssm/mobile/index.d.ts +2 -0
- package/cssm/{mobile.js → mobile/index.js} +4 -4
- package/desktop/index.d.ts +2 -0
- package/{desktop.js → desktop/index.js} +3 -3
- package/desktop/package.json +3 -0
- package/esm/Component.desktop.d.ts +4 -0
- package/esm/Component.desktop.js +4 -0
- package/esm/Component.mobile.d.ts +4 -0
- package/esm/Component.mobile.js +4 -0
- package/esm/Component.responsive.d.ts +4 -0
- package/esm/Component.responsive.js +4 -0
- package/esm/components/date-range-input/Component.d.ts +2 -2
- package/esm/components/date-range-input/Component.js +6 -5
- package/esm/components/date-range-input/index.css +7 -7
- package/esm/desktop/index.d.ts +2 -0
- package/esm/{desktop.js → desktop/index.js} +3 -3
- package/esm/mobile/index.d.ts +2 -0
- package/esm/{mobile.js → mobile/index.js} +3 -3
- package/mobile/index.d.ts +2 -0
- package/{mobile.js → mobile/index.js} +3 -3
- package/mobile/package.json +3 -0
- package/modern/Component.desktop.d.ts +4 -0
- package/modern/Component.desktop.js +4 -0
- package/modern/Component.mobile.d.ts +4 -0
- package/modern/Component.mobile.js +4 -0
- package/modern/Component.responsive.d.ts +4 -0
- package/modern/Component.responsive.js +4 -0
- package/modern/components/date-range-input/Component.d.ts +2 -2
- package/modern/components/date-range-input/Component.js +6 -5
- package/modern/components/date-range-input/index.css +7 -7
- package/modern/desktop/index.d.ts +2 -0
- package/modern/{desktop.js → desktop/index.js} +3 -3
- package/modern/mobile/index.d.ts +2 -0
- package/modern/{mobile.js → mobile/index.js} +3 -3
- package/package.json +4 -24
- package/src/Component.desktop.tsx +4 -0
- package/src/Component.mobile.tsx +4 -0
- package/src/Component.responsive.tsx +4 -0
- package/src/components/date-range-input/Component.tsx +22 -18
- package/src/desktop/index.ts +1 -0
- package/src/desktop/package.json +3 -0
- package/src/mobile/index.ts +1 -0
- package/src/mobile/package.json +3 -0
- package/Component-63dec22f.d.ts +0 -184
- package/Component-72308007.d.ts +0 -6
- package/Component-72dda473.d.ts +0 -53
- package/Component-b5b4c59f.d.ts +0 -388
- package/Component.desktop-2e2b2125.d.ts +0 -6
- package/Component.desktop-785df74d.d.ts +0 -6
- package/Component.desktop-b5b4c59f.d.ts +0 -205
- package/Component.mobile-755fbaa3.d.ts +0 -6
- package/Component.mobile-d7e9f69d.d.ts +0 -6
- package/Component.mobile-ebda875c.d.ts +0 -7
- package/Component.responsive-2e2b2125.d.ts +0 -5
- package/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/Component-63dec22f.d.ts +0 -184
- package/cssm/Component-72308007.d.ts +0 -6
- package/cssm/Component-72dda473.d.ts +0 -53
- package/cssm/Component-b5b4c59f.d.ts +0 -388
- package/cssm/Component.desktop-2e2b2125.d.ts +0 -6
- package/cssm/Component.desktop-785df74d.d.ts +0 -6
- package/cssm/Component.desktop-b5b4c59f.d.ts +0 -205
- package/cssm/Component.mobile-755fbaa3.d.ts +0 -6
- package/cssm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/cssm/Component.mobile-ebda875c.d.ts +0 -7
- package/cssm/Component.responsive-2e2b2125.d.ts +0 -5
- package/cssm/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/desktop-63dec22f.d.ts +0 -2
- package/cssm/desktop.d.ts +0 -2
- package/cssm/index-3109f463.d.ts +0 -62
- package/cssm/index-72308007.d.ts +0 -54
- package/cssm/index-72dda473.d.ts +0 -12
- package/cssm/index-9211a437.d.ts +0 -2
- package/cssm/index-ebda875c.d.ts +0 -35
- package/cssm/index-f034f741.d.ts +0 -80
- package/cssm/mobile-c219f8ca.d.ts +0 -1
- package/cssm/mobile.d.ts +0 -2
- package/cssm/types-1b036d4b.d.ts +0 -13
- package/cssm/types-1c79e231.d.ts +0 -113
- package/cssm/typings-5684a67d.d.ts +0 -23
- package/cssm/typings-9211a437.d.ts +0 -95
- package/cssm/useCalendar-5684a67d.d.ts +0 -97
- package/cssm/useSkeleton-1b036d4b.d.ts +0 -40
- package/cssm/utils-5684a67d.d.ts +0 -88
- package/desktop-63dec22f.d.ts +0 -2
- package/desktop.d.ts +0 -2
- package/esm/Component-63dec22f.d.ts +0 -184
- package/esm/Component-72308007.d.ts +0 -297
- package/esm/Component-72dda473.d.ts +0 -53
- package/esm/Component-b5b4c59f.d.ts +0 -388
- package/esm/Component.desktop-2e2b2125.d.ts +0 -6
- package/esm/Component.desktop-785df74d.d.ts +0 -6
- package/esm/Component.desktop-b5b4c59f.d.ts +0 -198
- package/esm/Component.mobile-755fbaa3.d.ts +0 -6
- package/esm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/esm/Component.mobile-ebda875c.d.ts +0 -7
- package/esm/Component.responsive-2e2b2125.d.ts +0 -5
- package/esm/Component.responsive-785df74d.d.ts +0 -26
- package/esm/desktop-63dec22f.d.ts +0 -2
- package/esm/desktop.d.ts +0 -2
- package/esm/index-3109f463.d.ts +0 -62
- package/esm/index-72308007.d.ts +0 -54
- package/esm/index-72dda473.d.ts +0 -12
- package/esm/index-9211a437.d.ts +0 -2
- package/esm/index-ebda875c.d.ts +0 -2
- package/esm/index-f034f741.d.ts +0 -83
- package/esm/mobile-c219f8ca.d.ts +0 -1
- package/esm/mobile.d.ts +0 -2
- package/esm/types-1b036d4b.d.ts +0 -13
- package/esm/types-1c79e231.d.ts +0 -113
- package/esm/typings-5684a67d.d.ts +0 -23
- package/esm/typings-9211a437.d.ts +0 -95
- package/esm/useCalendar-5684a67d.d.ts +0 -97
- package/esm/useSkeleton-1b036d4b.d.ts +0 -40
- package/esm/utils-5684a67d.d.ts +0 -88
- package/index-3109f463.d.ts +0 -62
- package/index-72308007.d.ts +0 -54
- package/index-72dda473.d.ts +0 -12
- package/index-9211a437.d.ts +0 -2
- package/index-ebda875c.d.ts +0 -35
- package/index-f034f741.d.ts +0 -80
- package/mobile-c219f8ca.d.ts +0 -1
- package/mobile.d.ts +0 -2
- package/modern/Component-63dec22f.d.ts +0 -184
- package/modern/Component-72308007.d.ts +0 -6
- package/modern/Component-72dda473.d.ts +0 -53
- package/modern/Component-b5b4c59f.d.ts +0 -388
- package/modern/Component.desktop-2e2b2125.d.ts +0 -6
- package/modern/Component.desktop-785df74d.d.ts +0 -6
- package/modern/Component.desktop-b5b4c59f.d.ts +0 -205
- package/modern/Component.mobile-755fbaa3.d.ts +0 -6
- package/modern/Component.mobile-d7e9f69d.d.ts +0 -6
- package/modern/Component.mobile-ebda875c.d.ts +0 -7
- package/modern/Component.responsive-2e2b2125.d.ts +0 -5
- package/modern/Component.responsive-785df74d.d.ts +0 -26
- package/modern/desktop-63dec22f.d.ts +0 -2
- package/modern/desktop.d.ts +0 -2
- package/modern/index-3109f463.d.ts +0 -62
- package/modern/index-72308007.d.ts +0 -54
- package/modern/index-72dda473.d.ts +0 -12
- package/modern/index-9211a437.d.ts +0 -2
- package/modern/index-ebda875c.d.ts +0 -35
- package/modern/index-f034f741.d.ts +0 -80
- package/modern/mobile-c219f8ca.d.ts +0 -1
- package/modern/mobile.d.ts +0 -2
- package/modern/types-1b036d4b.d.ts +0 -13
- package/modern/types-1c79e231.d.ts +0 -113
- package/modern/typings-5684a67d.d.ts +0 -23
- package/modern/typings-9211a437.d.ts +0 -95
- package/modern/useCalendar-5684a67d.d.ts +0 -97
- package/modern/useSkeleton-1b036d4b.d.ts +0 -40
- package/modern/utils-5684a67d.d.ts +0 -88
- package/src/desktop.ts +0 -1
- package/src/mobile.ts +0 -1
- package/types-1b036d4b.d.ts +0 -13
- package/types-1c79e231.d.ts +0 -113
- package/typings-5684a67d.d.ts +0 -23
- package/typings-9211a437.d.ts +0 -95
- package/useCalendar-5684a67d.d.ts +0 -97
- package/useSkeleton-1b036d4b.d.ts +0 -40
- package/utils-5684a67d.d.ts +0 -88
package/Component.desktop.d.ts
CHANGED
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ConditionalProps, DateRangeInputProps } from "./components/date-range-input/index";
|
|
4
4
|
type DateRangeInputDesktopProps = Omit<DateRangeInputProps, 'view' | 'picker' | 'onClose' | 'InputComponent'> & ConditionalProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateRangeInputDesktop: React.ForwardRefExoticComponent<DateRangeInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateRangeInputDesktopProps, DateRangeInputDesktop };
|
package/Component.desktop.js
CHANGED
|
@@ -23,6 +23,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
23
23
|
|
|
24
24
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
* use UniversalDateInput instead
|
|
29
|
+
*/
|
|
26
30
|
var DateRangeInputDesktop = React.forwardRef(function (props, ref) { return (React__default.default.createElement(components_dateRangeInput_Component.DateRangeInput, tslib.__assign({ InputComponent: desktop.InputDesktop, Calendar: desktop$1.CalendarDesktop }, props, { ref: ref }))); });
|
|
27
31
|
|
|
28
32
|
exports.DateRangeInputDesktop = DateRangeInputDesktop;
|
package/Component.mobile.d.ts
CHANGED
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ConditionalProps, DateRangeInputProps } from "./components/date-range-input/index";
|
|
4
4
|
type DateRangeInputMobileProps = Omit<DateRangeInputProps, 'view' | 'picker' | 'onClose' | 'InputComponent'> & ConditionalProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateRangeInputMobile: React.ForwardRefExoticComponent<DateRangeInputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateRangeInputMobileProps, DateRangeInputMobile };
|
package/Component.mobile.js
CHANGED
|
@@ -23,6 +23,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
23
23
|
|
|
24
24
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
* use UniversalDateInput instead
|
|
29
|
+
*/
|
|
26
30
|
var DateRangeInputMobile = React.forwardRef(function (props, ref) { return (React__default.default.createElement(components_dateRangeInput_Component.DateRangeInput, tslib.__assign({ InputComponent: mobile.InputMobile, Calendar: mobile$1.CalendarMobile, view: 'mobile' }, props, { ref: ref }))); });
|
|
27
31
|
|
|
28
32
|
exports.DateRangeInputMobile = DateRangeInputMobile;
|
|
@@ -9,5 +9,9 @@ type DateRangeInputResponsiveProps = Omit<DateRangeInputProps, 'view' | 'picker'
|
|
|
9
9
|
breakpoint?: number;
|
|
10
10
|
};
|
|
11
11
|
type DateRangeInputMedia = 'desktop' | 'mobile';
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
* use UniversalDateInput instead
|
|
15
|
+
*/
|
|
12
16
|
declare const DateRangeInputResponsive: React.ForwardRefExoticComponent<DateRangeInputResponsiveProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
17
|
export { DateRangeInputResponsiveProps, DateRangeInputMedia, DateRangeInputResponsive };
|
package/Component.responsive.js
CHANGED
|
@@ -27,6 +27,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
27
27
|
|
|
28
28
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated
|
|
32
|
+
* use UniversalDateInput instead
|
|
33
|
+
*/
|
|
30
34
|
var DateRangeInputResponsive = React.forwardRef(function (_a, ref) {
|
|
31
35
|
var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["breakpoint"]);
|
|
32
36
|
var view = hooks.useMedia([
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { CalendarDesktopProps } from "
|
|
5
|
-
import { CalendarMobileProps } from "
|
|
4
|
+
import { CalendarDesktopProps } from "@alfalab/core-components-calendar/desktop";
|
|
5
|
+
import { CalendarMobileProps } from "@alfalab/core-components-calendar/mobile";
|
|
6
6
|
import { InputProps } from "@alfalab/core-components-input";
|
|
7
7
|
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
8
8
|
type ConditionalProps = {
|
|
@@ -24,7 +24,7 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
|
24
24
|
var dateFnsIsValid__default = /*#__PURE__*/_interopDefaultCompat(dateFnsIsValid);
|
|
25
25
|
var startOfMonth__default = /*#__PURE__*/_interopDefaultCompat(startOfMonth);
|
|
26
26
|
|
|
27
|
-
var styles = {"component":"date-range-
|
|
27
|
+
var styles = {"component":"date-range-input__component_1soho","calendarContainer":"date-range-input__calendarContainer_1soho","calendarResponsive":"date-range-input__calendarResponsive_1soho","block":"date-range-input__block_1soho","calendarIcon":"date-range-input__calendarIcon_1soho"};
|
|
28
28
|
require('./index.css')
|
|
29
29
|
|
|
30
30
|
var DateRangeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
@@ -215,12 +215,13 @@ var DateRangeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
|
215
215
|
return (React__default.default.createElement("div", { className: cn__default.default(styles.component, className, (_b = {},
|
|
216
216
|
_b[styles.block] = block,
|
|
217
217
|
_b)), onFocus: inputDisabled ? undefined : handleInputWrapperFocus, onBlur: handleBlur },
|
|
218
|
-
InputComponent ? (React__default.default.createElement(InputComponent, tslib.__assign({}, restProps, { block: block, ref: mergeRefs__default.default([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React__default.default.createElement(React__default.default.Fragment, null,
|
|
218
|
+
InputComponent ? (React__default.default.createElement(InputComponent, tslib.__assign({ autoComplete: picker ? 'off' : undefined }, restProps, { block: block, ref: mergeRefs__default.default([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React__default.default.createElement(React__default.default.Fragment, null,
|
|
219
219
|
rightAddons,
|
|
220
220
|
picker && (React__default.default.createElement(coreComponentsIconButton.IconButton, { className: styles.calendarIcon, ref: iconRef, onClick: inputDisabled ? undefined : handleIconButtonClick, icon: CalendarMIcon.CalendarMIcon, size: 's' }))) }))) : null,
|
|
221
|
-
picker &&
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
picker &&
|
|
222
|
+
(view === 'desktop' ? (React__default.default.createElement(coreComponentsPopover.Popover, { open: open, useAnchorWidth: useAnchorWidth, anchorElement: inputRef.current, popperClassName: cn__default.default(styles.calendarContainer, (_c = {},
|
|
223
|
+
_c[styles.calendarResponsive] = calendarResponsive,
|
|
224
|
+
_c)), className: popoverClassName, position: popoverPosition, offset: [0, 8], withTransition: false, preventFlip: preventFlip, zIndex: zIndexPopover }, renderCalendar())) : (renderCalendar()))));
|
|
224
225
|
});
|
|
225
226
|
|
|
226
227
|
exports.DateRangeInput = DateRangeInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1etz5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
/* marker */
|
|
42
42
|
} :root {
|
|
43
43
|
--calendar-popover-border-radius: var(--border-radius-m);
|
|
44
|
-
} .date-range-
|
|
44
|
+
} .date-range-input__component_1soho {
|
|
45
45
|
display: inline-block;
|
|
46
46
|
outline: none;
|
|
47
47
|
position: relative;
|
|
48
|
-
} .date-range-
|
|
48
|
+
} .date-range-input__calendarContainer_1soho {
|
|
49
49
|
display: inline-block;
|
|
50
50
|
box-sizing: border-box;
|
|
51
51
|
border-radius: var(--calendar-popover-border-radius);
|
|
52
52
|
border: 1px solid var(--color-light-border-secondary)
|
|
53
|
-
} @media (max-width: 374px) { .date-range-
|
|
53
|
+
} @media (max-width: 374px) { .date-range-input__calendarContainer_1soho {
|
|
54
54
|
width: 100%;
|
|
55
55
|
min-width: 288px
|
|
56
56
|
}
|
|
57
|
-
} .date-range-
|
|
57
|
+
} .date-range-input__calendarResponsive_1soho {
|
|
58
58
|
width: var(--calendar-width);
|
|
59
|
-
} .date-range-
|
|
59
|
+
} .date-range-input__block_1soho {
|
|
60
60
|
width: 100%;
|
|
61
|
-
} .date-range-
|
|
61
|
+
} .date-range-input__calendarIcon_1soho {
|
|
62
62
|
margin-right: var(--gap-s-neg);
|
|
63
63
|
height: 100%;
|
|
64
64
|
}
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ConditionalProps, DateRangeInputProps } from "./components/date-range-input/index";
|
|
4
4
|
type DateRangeInputDesktopProps = Omit<DateRangeInputProps, 'view' | 'picker' | 'onClose' | 'InputComponent'> & ConditionalProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateRangeInputDesktop: React.ForwardRefExoticComponent<DateRangeInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateRangeInputDesktopProps, DateRangeInputDesktop };
|
|
@@ -24,6 +24,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
24
24
|
|
|
25
25
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated
|
|
29
|
+
* use UniversalDateInput instead
|
|
30
|
+
*/
|
|
27
31
|
var DateRangeInputDesktop = React.forwardRef(function (props, ref) { return (React__default.default.createElement(components_dateRangeInput_Component.DateRangeInput, tslib.__assign({ InputComponent: desktop.InputDesktop, Calendar: desktop$1.CalendarDesktop }, props, { ref: ref }))); });
|
|
28
32
|
|
|
29
33
|
exports.DateRangeInputDesktop = DateRangeInputDesktop;
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ConditionalProps, DateRangeInputProps } from "./components/date-range-input/index";
|
|
4
4
|
type DateRangeInputMobileProps = Omit<DateRangeInputProps, 'view' | 'picker' | 'onClose' | 'InputComponent'> & ConditionalProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateRangeInputMobile: React.ForwardRefExoticComponent<DateRangeInputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateRangeInputMobileProps, DateRangeInputMobile };
|
package/cssm/Component.mobile.js
CHANGED
|
@@ -24,6 +24,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
24
24
|
|
|
25
25
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated
|
|
29
|
+
* use UniversalDateInput instead
|
|
30
|
+
*/
|
|
27
31
|
var DateRangeInputMobile = React.forwardRef(function (props, ref) { return (React__default.default.createElement(components_dateRangeInput_Component.DateRangeInput, tslib.__assign({ InputComponent: mobile.InputMobile, Calendar: mobile$1.CalendarMobile, view: 'mobile' }, props, { ref: ref }))); });
|
|
28
32
|
|
|
29
33
|
exports.DateRangeInputMobile = DateRangeInputMobile;
|
|
@@ -9,5 +9,9 @@ type DateRangeInputResponsiveProps = Omit<DateRangeInputProps, 'view' | 'picker'
|
|
|
9
9
|
breakpoint?: number;
|
|
10
10
|
};
|
|
11
11
|
type DateRangeInputMedia = 'desktop' | 'mobile';
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
* use UniversalDateInput instead
|
|
15
|
+
*/
|
|
12
16
|
declare const DateRangeInputResponsive: React.ForwardRefExoticComponent<DateRangeInputResponsiveProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
17
|
export { DateRangeInputResponsiveProps, DateRangeInputMedia, DateRangeInputResponsive };
|
|
@@ -28,6 +28,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
28
28
|
|
|
29
29
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
* use UniversalDateInput instead
|
|
34
|
+
*/
|
|
31
35
|
var DateRangeInputResponsive = React.forwardRef(function (_a, ref) {
|
|
32
36
|
var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["breakpoint"]);
|
|
33
37
|
var view = hooks.useMedia([
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { CalendarDesktopProps } from "
|
|
5
|
-
import { CalendarMobileProps } from "
|
|
4
|
+
import { CalendarDesktopProps } from "@alfalab/core-components-calendar/desktop";
|
|
5
|
+
import { CalendarMobileProps } from "@alfalab/core-components-calendar/mobile";
|
|
6
6
|
import { InputProps } from "@alfalab/core-components-input";
|
|
7
7
|
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
8
8
|
type ConditionalProps = {
|
|
@@ -214,12 +214,13 @@ var DateRangeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
|
214
214
|
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.component, className, (_b = {},
|
|
215
215
|
_b[styles__default.default.block] = block,
|
|
216
216
|
_b)), onFocus: inputDisabled ? undefined : handleInputWrapperFocus, onBlur: handleBlur },
|
|
217
|
-
InputComponent ? (React__default.default.createElement(InputComponent, tslib.__assign({}, restProps, { block: block, ref: mergeRefs__default.default([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React__default.default.createElement(React__default.default.Fragment, null,
|
|
217
|
+
InputComponent ? (React__default.default.createElement(InputComponent, tslib.__assign({ autoComplete: picker ? 'off' : undefined }, restProps, { block: block, ref: mergeRefs__default.default([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React__default.default.createElement(React__default.default.Fragment, null,
|
|
218
218
|
rightAddons,
|
|
219
219
|
picker && (React__default.default.createElement(coreComponentsIconButton.IconButton, { className: styles__default.default.calendarIcon, ref: iconRef, onClick: inputDisabled ? undefined : handleIconButtonClick, icon: CalendarMIcon.CalendarMIcon, size: 's' }))) }))) : null,
|
|
220
|
-
picker &&
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
picker &&
|
|
221
|
+
(view === 'desktop' ? (React__default.default.createElement(coreComponentsPopover.Popover, { open: open, useAnchorWidth: useAnchorWidth, anchorElement: inputRef.current, popperClassName: cn__default.default(styles__default.default.calendarContainer, (_c = {},
|
|
222
|
+
_c[styles__default.default.calendarResponsive] = calendarResponsive,
|
|
223
|
+
_c)), className: popoverClassName, position: popoverPosition, offset: [0, 8], withTransition: false, preventFlip: preventFlip, zIndex: zIndexPopover }, renderCalendar())) : (renderCalendar()))));
|
|
223
224
|
});
|
|
224
225
|
|
|
225
226
|
exports.DateRangeInput = DateRangeInput;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_desktop = require('
|
|
5
|
+
var Component_desktop = require('../Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-calendar/cssm/desktop');
|
|
9
9
|
require('@alfalab/core-components-input/cssm/desktop');
|
|
10
|
-
require('
|
|
10
|
+
require('../components/date-range-input/Component.js');
|
|
11
11
|
require('react-merge-refs');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('date-fns/isValid');
|
|
@@ -17,9 +17,9 @@ require('@alfalab/core-components-icon-button/cssm');
|
|
|
17
17
|
require('@alfalab/core-components-popover/cssm');
|
|
18
18
|
require('@alfalab/hooks');
|
|
19
19
|
require('@alfalab/icons-glyph/CalendarMIcon');
|
|
20
|
-
require('
|
|
20
|
+
require('../utils/format.js');
|
|
21
21
|
require('date-fns/parse');
|
|
22
|
-
require('
|
|
22
|
+
require('../components/date-range-input/index.module.css');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_mobile = require('
|
|
5
|
+
var Component_mobile = require('../Component.mobile.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-calendar/cssm/mobile');
|
|
9
9
|
require('@alfalab/core-components-input/cssm/mobile');
|
|
10
|
-
require('
|
|
10
|
+
require('../components/date-range-input/Component.js');
|
|
11
11
|
require('react-merge-refs');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('date-fns/isValid');
|
|
@@ -17,9 +17,9 @@ require('@alfalab/core-components-icon-button/cssm');
|
|
|
17
17
|
require('@alfalab/core-components-popover/cssm');
|
|
18
18
|
require('@alfalab/hooks');
|
|
19
19
|
require('@alfalab/icons-glyph/CalendarMIcon');
|
|
20
|
-
require('
|
|
20
|
+
require('../utils/format.js');
|
|
21
21
|
require('date-fns/parse');
|
|
22
|
-
require('
|
|
22
|
+
require('../components/date-range-input/index.module.css');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_desktop = require('
|
|
5
|
+
var Component_desktop = require('../Component.desktop.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-calendar/desktop');
|
|
9
9
|
require('@alfalab/core-components-input/desktop');
|
|
10
|
-
require('
|
|
10
|
+
require('../components/date-range-input/Component.js');
|
|
11
11
|
require('react-merge-refs');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('date-fns/isValid');
|
|
@@ -17,7 +17,7 @@ require('@alfalab/core-components-icon-button');
|
|
|
17
17
|
require('@alfalab/core-components-popover');
|
|
18
18
|
require('@alfalab/hooks');
|
|
19
19
|
require('@alfalab/icons-glyph/CalendarMIcon');
|
|
20
|
-
require('
|
|
20
|
+
require('../utils/format.js');
|
|
21
21
|
require('date-fns/parse');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ConditionalProps, DateRangeInputProps } from "./components/date-range-input/index";
|
|
4
4
|
type DateRangeInputDesktopProps = Omit<DateRangeInputProps, 'view' | 'picker' | 'onClose' | 'InputComponent'> & ConditionalProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateRangeInputDesktop: React.ForwardRefExoticComponent<DateRangeInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateRangeInputDesktopProps, DateRangeInputDesktop };
|
package/esm/Component.desktop.js
CHANGED
|
@@ -15,6 +15,10 @@ import '@alfalab/icons-glyph/CalendarMIcon';
|
|
|
15
15
|
import './utils/format.js';
|
|
16
16
|
import 'date-fns/parse';
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated
|
|
20
|
+
* use UniversalDateInput instead
|
|
21
|
+
*/
|
|
18
22
|
var DateRangeInputDesktop = forwardRef(function (props, ref) { return (React.createElement(DateRangeInput, __assign({ InputComponent: InputDesktop, Calendar: CalendarDesktop }, props, { ref: ref }))); });
|
|
19
23
|
|
|
20
24
|
export { DateRangeInputDesktop };
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ConditionalProps, DateRangeInputProps } from "./components/date-range-input/index";
|
|
4
4
|
type DateRangeInputMobileProps = Omit<DateRangeInputProps, 'view' | 'picker' | 'onClose' | 'InputComponent'> & ConditionalProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateRangeInputMobile: React.ForwardRefExoticComponent<DateRangeInputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateRangeInputMobileProps, DateRangeInputMobile };
|
package/esm/Component.mobile.js
CHANGED
|
@@ -15,6 +15,10 @@ import '@alfalab/icons-glyph/CalendarMIcon';
|
|
|
15
15
|
import './utils/format.js';
|
|
16
16
|
import 'date-fns/parse';
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated
|
|
20
|
+
* use UniversalDateInput instead
|
|
21
|
+
*/
|
|
18
22
|
var DateRangeInputMobile = forwardRef(function (props, ref) { return (React.createElement(DateRangeInput, __assign({ InputComponent: InputMobile, Calendar: CalendarMobile, view: 'mobile' }, props, { ref: ref }))); });
|
|
19
23
|
|
|
20
24
|
export { DateRangeInputMobile };
|
|
@@ -9,5 +9,9 @@ type DateRangeInputResponsiveProps = Omit<DateRangeInputProps, 'view' | 'picker'
|
|
|
9
9
|
breakpoint?: number;
|
|
10
10
|
};
|
|
11
11
|
type DateRangeInputMedia = 'desktop' | 'mobile';
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
* use UniversalDateInput instead
|
|
15
|
+
*/
|
|
12
16
|
declare const DateRangeInputResponsive: React.ForwardRefExoticComponent<DateRangeInputResponsiveProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
17
|
export { DateRangeInputResponsiveProps, DateRangeInputMedia, DateRangeInputResponsive };
|
|
@@ -19,6 +19,10 @@ import 'date-fns/parse';
|
|
|
19
19
|
import '@alfalab/core-components-calendar/esm/mobile';
|
|
20
20
|
import '@alfalab/core-components-input/esm/mobile';
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
* use UniversalDateInput instead
|
|
25
|
+
*/
|
|
22
26
|
var DateRangeInputResponsive = forwardRef(function (_a, ref) {
|
|
23
27
|
var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["breakpoint"]);
|
|
24
28
|
var view = useMedia([
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { CalendarDesktopProps } from "
|
|
5
|
-
import { CalendarMobileProps } from "
|
|
4
|
+
import { CalendarDesktopProps } from "@alfalab/core-components-calendar/desktop";
|
|
5
|
+
import { CalendarMobileProps } from "@alfalab/core-components-calendar/mobile";
|
|
6
6
|
import { InputProps } from "@alfalab/core-components-input";
|
|
7
7
|
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
8
8
|
type ConditionalProps = {
|
|
@@ -12,7 +12,7 @@ import { CalendarMIcon } from '@alfalab/icons-glyph/CalendarMIcon';
|
|
|
12
12
|
import { parseTimestampToDate, DATE_FORMAT, format, parseDateString, DATE_MASK, isCompleteDateInput, isValid } from '../../utils/format.js';
|
|
13
13
|
import 'date-fns/parse';
|
|
14
14
|
|
|
15
|
-
var styles = {"component":"date-range-
|
|
15
|
+
var styles = {"component":"date-range-input__component_1soho","calendarContainer":"date-range-input__calendarContainer_1soho","calendarResponsive":"date-range-input__calendarResponsive_1soho","block":"date-range-input__block_1soho","calendarIcon":"date-range-input__calendarIcon_1soho"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var DateRangeInput = React.forwardRef(function (_a, ref) {
|
|
@@ -203,12 +203,13 @@ var DateRangeInput = React.forwardRef(function (_a, ref) {
|
|
|
203
203
|
return (React.createElement("div", { className: cn(styles.component, className, (_b = {},
|
|
204
204
|
_b[styles.block] = block,
|
|
205
205
|
_b)), onFocus: inputDisabled ? undefined : handleInputWrapperFocus, onBlur: handleBlur },
|
|
206
|
-
InputComponent ? (React.createElement(InputComponent, __assign({}, restProps, { block: block, ref: mergeRefs([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React.createElement(React.Fragment, null,
|
|
206
|
+
InputComponent ? (React.createElement(InputComponent, __assign({ autoComplete: picker ? 'off' : undefined }, restProps, { block: block, ref: mergeRefs([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React.createElement(React.Fragment, null,
|
|
207
207
|
rightAddons,
|
|
208
208
|
picker && (React.createElement(IconButton, { className: styles.calendarIcon, ref: iconRef, onClick: inputDisabled ? undefined : handleIconButtonClick, icon: CalendarMIcon, size: 's' }))) }))) : null,
|
|
209
|
-
picker &&
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
picker &&
|
|
210
|
+
(view === 'desktop' ? (React.createElement(Popover, { open: open, useAnchorWidth: useAnchorWidth, anchorElement: inputRef.current, popperClassName: cn(styles.calendarContainer, (_c = {},
|
|
211
|
+
_c[styles.calendarResponsive] = calendarResponsive,
|
|
212
|
+
_c)), className: popoverClassName, position: popoverPosition, offset: [0, 8], withTransition: false, preventFlip: preventFlip, zIndex: zIndexPopover }, renderCalendar())) : (renderCalendar()))));
|
|
212
213
|
});
|
|
213
214
|
|
|
214
215
|
export { DateRangeInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1etz5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
/* marker */
|
|
42
42
|
} :root {
|
|
43
43
|
--calendar-popover-border-radius: var(--border-radius-m);
|
|
44
|
-
} .date-range-
|
|
44
|
+
} .date-range-input__component_1soho {
|
|
45
45
|
display: inline-block;
|
|
46
46
|
outline: none;
|
|
47
47
|
position: relative;
|
|
48
|
-
} .date-range-
|
|
48
|
+
} .date-range-input__calendarContainer_1soho {
|
|
49
49
|
display: inline-block;
|
|
50
50
|
box-sizing: border-box;
|
|
51
51
|
border-radius: var(--calendar-popover-border-radius);
|
|
52
52
|
border: 1px solid var(--color-light-border-secondary)
|
|
53
|
-
} @media (max-width: 374px) { .date-range-
|
|
53
|
+
} @media (max-width: 374px) { .date-range-input__calendarContainer_1soho {
|
|
54
54
|
width: 100%;
|
|
55
55
|
min-width: 288px
|
|
56
56
|
}
|
|
57
|
-
} .date-range-
|
|
57
|
+
} .date-range-input__calendarResponsive_1soho {
|
|
58
58
|
width: var(--calendar-width);
|
|
59
|
-
} .date-range-
|
|
59
|
+
} .date-range-input__block_1soho {
|
|
60
60
|
width: 100%;
|
|
61
|
-
} .date-range-
|
|
61
|
+
} .date-range-input__calendarIcon_1soho {
|
|
62
62
|
margin-right: var(--gap-s-neg);
|
|
63
63
|
height: 100%;
|
|
64
64
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DateRangeInputDesktop } from '
|
|
1
|
+
export { DateRangeInputDesktop } from '../Component.desktop.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@alfalab/core-components-calendar/esm/desktop';
|
|
5
5
|
import '@alfalab/core-components-input/esm/desktop';
|
|
6
|
-
import '
|
|
6
|
+
import '../components/date-range-input/Component.js';
|
|
7
7
|
import 'react-merge-refs';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import 'date-fns/isValid';
|
|
@@ -13,5 +13,5 @@ import '@alfalab/core-components-icon-button/esm';
|
|
|
13
13
|
import '@alfalab/core-components-popover/esm';
|
|
14
14
|
import '@alfalab/hooks';
|
|
15
15
|
import '@alfalab/icons-glyph/CalendarMIcon';
|
|
16
|
-
import '
|
|
16
|
+
import '../utils/format.js';
|
|
17
17
|
import 'date-fns/parse';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DateRangeInputMobile } from '
|
|
1
|
+
export { DateRangeInputMobile } from '../Component.mobile.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@alfalab/core-components-calendar/esm/mobile';
|
|
5
5
|
import '@alfalab/core-components-input/esm/mobile';
|
|
6
|
-
import '
|
|
6
|
+
import '../components/date-range-input/Component.js';
|
|
7
7
|
import 'react-merge-refs';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import 'date-fns/isValid';
|
|
@@ -13,5 +13,5 @@ import '@alfalab/core-components-icon-button/esm';
|
|
|
13
13
|
import '@alfalab/core-components-popover/esm';
|
|
14
14
|
import '@alfalab/hooks';
|
|
15
15
|
import '@alfalab/icons-glyph/CalendarMIcon';
|
|
16
|
-
import '
|
|
16
|
+
import '../utils/format.js';
|
|
17
17
|
import 'date-fns/parse';
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Component_mobile = require('
|
|
5
|
+
var Component_mobile = require('../Component.mobile.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('@alfalab/core-components-calendar/mobile');
|
|
9
9
|
require('@alfalab/core-components-input/mobile');
|
|
10
|
-
require('
|
|
10
|
+
require('../components/date-range-input/Component.js');
|
|
11
11
|
require('react-merge-refs');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('date-fns/isValid');
|
|
@@ -17,7 +17,7 @@ require('@alfalab/core-components-icon-button');
|
|
|
17
17
|
require('@alfalab/core-components-popover');
|
|
18
18
|
require('@alfalab/hooks');
|
|
19
19
|
require('@alfalab/icons-glyph/CalendarMIcon');
|
|
20
|
-
require('
|
|
20
|
+
require('../utils/format.js');
|
|
21
21
|
require('date-fns/parse');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ConditionalProps, DateRangeInputProps } from "./components/date-range-input/index";
|
|
4
4
|
type DateRangeInputDesktopProps = Omit<DateRangeInputProps, 'view' | 'picker' | 'onClose' | 'InputComponent'> & ConditionalProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateRangeInputDesktop: React.ForwardRefExoticComponent<DateRangeInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateRangeInputDesktopProps, DateRangeInputDesktop };
|
|
@@ -14,6 +14,10 @@ import '@alfalab/icons-glyph/CalendarMIcon';
|
|
|
14
14
|
import './utils/format.js';
|
|
15
15
|
import 'date-fns/parse';
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated
|
|
19
|
+
* use UniversalDateInput instead
|
|
20
|
+
*/
|
|
17
21
|
const DateRangeInputDesktop = forwardRef((props, ref) => (React.createElement(DateRangeInput, { InputComponent: InputDesktop, Calendar: CalendarDesktop, ...props, ref: ref })));
|
|
18
22
|
|
|
19
23
|
export { DateRangeInputDesktop };
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ConditionalProps, DateRangeInputProps } from "./components/date-range-input/index";
|
|
4
4
|
type DateRangeInputMobileProps = Omit<DateRangeInputProps, 'view' | 'picker' | 'onClose' | 'InputComponent'> & ConditionalProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateRangeInputMobile: React.ForwardRefExoticComponent<DateRangeInputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateRangeInputMobileProps, DateRangeInputMobile };
|