@alfalab/core-components-date-range-input 3.0.12 → 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 +1 -1
- 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/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 +1 -1
- 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 +1 -1
- 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/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-10db897e.d.ts +0 -6
- package/Component-69921c40.d.ts +0 -184
- package/Component-72dda473.d.ts +0 -53
- package/Component-89f0cb07.d.ts +0 -38
- package/Component-b5b4c59f.d.ts +0 -389
- package/Component.desktop-0aa4e915.d.ts +0 -5
- package/Component.desktop-785df74d.d.ts +0 -6
- package/Component.desktop-b5b4c59f.d.ts +0 -205
- package/Component.mobile-16b1285a.d.ts +0 -5
- package/Component.mobile-d7e9f69d.d.ts +0 -6
- package/Component.mobile-ebda875c.d.ts +0 -7
- package/Component.responsive-0aa4e915.d.ts +0 -5
- package/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/Component-10db897e.d.ts +0 -6
- package/cssm/Component-69921c40.d.ts +0 -184
- package/cssm/Component-72dda473.d.ts +0 -53
- package/cssm/Component-89f0cb07.d.ts +0 -38
- package/cssm/Component-b5b4c59f.d.ts +0 -389
- package/cssm/Component.desktop-0aa4e915.d.ts +0 -5
- package/cssm/Component.desktop-785df74d.d.ts +0 -6
- package/cssm/Component.desktop-b5b4c59f.d.ts +0 -205
- package/cssm/Component.mobile-16b1285a.d.ts +0 -5
- package/cssm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/cssm/Component.mobile-ebda875c.d.ts +0 -7
- package/cssm/Component.responsive-0aa4e915.d.ts +0 -5
- package/cssm/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/desktop-63dec22f.d.ts +0 -2
- package/cssm/desktop-69921c40.d.ts +0 -2
- package/cssm/desktop.d.ts +0 -2
- package/cssm/index-10db897e.d.ts +0 -50
- package/cssm/index-3109f463.d.ts +0 -62
- package/cssm/index-72dda473.d.ts +0 -12
- package/cssm/index-89f0cb07.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-89f0cb07.d.ts +0 -93
- 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-69921c40.d.ts +0 -2
- package/desktop.d.ts +0 -2
- package/esm/Component-10db897e.d.ts +0 -297
- package/esm/Component-69921c40.d.ts +0 -184
- package/esm/Component-72dda473.d.ts +0 -53
- package/esm/Component-89f0cb07.d.ts +0 -38
- package/esm/Component-b5b4c59f.d.ts +0 -389
- package/esm/Component.desktop-0aa4e915.d.ts +0 -5
- package/esm/Component.desktop-785df74d.d.ts +0 -6
- package/esm/Component.desktop-b5b4c59f.d.ts +0 -198
- package/esm/Component.mobile-89f0cb07.d.ts +0 -5
- package/esm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/esm/Component.mobile-ebda875c.d.ts +0 -7
- package/esm/Component.responsive-0aa4e915.d.ts +0 -5
- package/esm/Component.responsive-785df74d.d.ts +0 -26
- package/esm/desktop-63dec22f.d.ts +0 -2
- package/esm/desktop-69921c40.d.ts +0 -2
- package/esm/desktop.d.ts +0 -2
- package/esm/index-10db897e.d.ts +0 -50
- package/esm/index-3109f463.d.ts +0 -62
- package/esm/index-72dda473.d.ts +0 -12
- package/esm/index-89f0cb07.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-89f0cb07.d.ts +0 -93
- 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-10db897e.d.ts +0 -50
- package/index-3109f463.d.ts +0 -62
- package/index-72dda473.d.ts +0 -12
- package/index-89f0cb07.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-10db897e.d.ts +0 -6
- package/modern/Component-69921c40.d.ts +0 -184
- package/modern/Component-72dda473.d.ts +0 -53
- package/modern/Component-89f0cb07.d.ts +0 -38
- package/modern/Component-b5b4c59f.d.ts +0 -389
- package/modern/Component.desktop-0aa4e915.d.ts +0 -5
- package/modern/Component.desktop-785df74d.d.ts +0 -6
- package/modern/Component.desktop-b5b4c59f.d.ts +0 -205
- package/modern/Component.mobile-16b1285a.d.ts +0 -5
- package/modern/Component.mobile-d7e9f69d.d.ts +0 -6
- package/modern/Component.mobile-ebda875c.d.ts +0 -7
- package/modern/Component.responsive-0aa4e915.d.ts +0 -5
- package/modern/Component.responsive-785df74d.d.ts +0 -26
- package/modern/desktop-63dec22f.d.ts +0 -2
- package/modern/desktop-69921c40.d.ts +0 -2
- package/modern/desktop.d.ts +0 -2
- package/modern/index-10db897e.d.ts +0 -50
- package/modern/index-3109f463.d.ts +0 -62
- package/modern/index-72dda473.d.ts +0 -12
- package/modern/index-89f0cb07.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-89f0cb07.d.ts +0 -93
- 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-89f0cb07.d.ts +0 -93
- 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) {
|
|
@@ -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 = {
|
|
@@ -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) {
|
|
@@ -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 };
|
|
@@ -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 DateRangeInputMobile = forwardRef((props, ref) => (React.createElement(DateRangeInput, { InputComponent: InputMobile, Calendar: CalendarMobile, view: 'mobile', ...props, ref: ref })));
|
|
18
22
|
|
|
19
23
|
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 };
|
|
@@ -18,6 +18,10 @@ import 'date-fns/parse';
|
|
|
18
18
|
import '@alfalab/core-components-calendar/modern/mobile';
|
|
19
19
|
import '@alfalab/core-components-input/modern/mobile';
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated
|
|
23
|
+
* use UniversalDateInput instead
|
|
24
|
+
*/
|
|
21
25
|
const DateRangeInputResponsive = forwardRef(({ breakpoint = 1024, ...restProps }, ref) => {
|
|
22
26
|
const [view] = useMedia([
|
|
23
27
|
['mobile', `(max-width: ${breakpoint - 1}px)`],
|
|
@@ -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 = {
|
|
@@ -11,7 +11,7 @@ import { CalendarMIcon } from '@alfalab/icons-glyph/CalendarMIcon';
|
|
|
11
11
|
import { parseTimestampToDate, DATE_FORMAT, format, parseDateString, DATE_MASK, isCompleteDateInput, isValid } from '../../utils/format.js';
|
|
12
12
|
import 'date-fns/parse';
|
|
13
13
|
|
|
14
|
-
const styles = {"component":"date-range-
|
|
14
|
+
const 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"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/* eslint-disable no-useless-escape, jsx-a11y/click-events-have-key-events */
|