@alfalab/core-components-date-time-input 4.0.12 → 4.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/components/date-time-input/Component.d.ts +2 -2
- package/components/date-time-input/Component.js +1 -1
- package/components/date-time-input/index.css +7 -7
- package/cssm/Component.desktop.d.ts +4 -0
- package/cssm/Component.desktop.js +4 -0
- package/cssm/components/date-time-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/components/date-time-input/Component.d.ts +2 -2
- package/esm/components/date-time-input/Component.js +1 -1
- package/esm/components/date-time-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/components/date-time-input/Component.d.ts +2 -2
- package/modern/components/date-time-input/Component.js +1 -1
- package/modern/components/date-time-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/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 -297
- package/Component-5684a67d.d.ts +0 -23
- package/Component-69921c40.d.ts +0 -24
- package/Component-72dda473.d.ts +0 -53
- package/Component-89f0cb07.d.ts +0 -38
- package/Component-e2b6c730.d.ts +0 -76
- package/Component.desktop-785df74d.d.ts +0 -6
- package/Component.desktop-89f0cb07.d.ts +0 -5
- package/Component.desktop-b5b4c59f.d.ts +0 -138
- package/Component.desktop-ebda875c.d.ts +0 -7
- package/Component.mobile-16b1285a.d.ts +0 -5
- package/Component.mobile-d7e9f69d.d.ts +0 -6
- package/Component.responsive-16b1285a.d.ts +0 -5
- package/Component.responsive-d7e9f69d.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-89f0cb07.d.ts +0 -2
- package/desktop-b5b4c59f.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 -2
- package/index-f034f741.d.ts +0 -2
- package/mobile-c219f8ca.d.ts +0 -368
- 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/utils-e0a54580.d.ts +0 -8
package/Component.desktop.d.ts
CHANGED
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DateTimeInputProps } from "./components/date-time-input/Component";
|
|
4
4
|
type DateTimeInputDesktopProps = Omit<DateTimeInputProps, 'view' | 'InputComponent'>;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateTimeInputDesktop: React.ForwardRefExoticComponent<DateTimeInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateTimeInputDesktopProps, DateTimeInputDesktop };
|
package/Component.desktop.js
CHANGED
|
@@ -22,6 +22,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
22
22
|
|
|
23
23
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* use UniversalDateInput instead
|
|
28
|
+
*/
|
|
25
29
|
var DateTimeInputDesktop = React.forwardRef(function (props, ref) { return (React__default.default.createElement(components_dateTimeInput_Component.DateTimeInput, tslib.__assign({ Calendar: desktop.CalendarDesktop, InputComponent: desktop$1.InputDesktop }, props, { ref: ref }))); });
|
|
26
30
|
|
|
27
31
|
exports.DateTimeInputDesktop = DateTimeInputDesktop;
|
|
@@ -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 DateTimeInputProps = Omit<InputProps, 'onChange'> & {
|
|
@@ -21,7 +21,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
21
21
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
22
22
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
23
23
|
|
|
24
|
-
var styles = {"component":"date-time-
|
|
24
|
+
var styles = {"component":"date-time-input__component_w014b","calendarContainer":"date-time-input__calendarContainer_w014b","calendarResponsive":"date-time-input__calendarResponsive_w014b","block":"date-time-input__block_w014b","calendarIcon":"date-time-input__calendarIcon_w014b"};
|
|
25
25
|
require('./index.css')
|
|
26
26
|
|
|
27
27
|
/* eslint-disable no-useless-escape, jsx-a11y/click-events-have-key-events */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: g7ljc */
|
|
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-time-
|
|
44
|
+
} .date-time-input__component_w014b {
|
|
45
45
|
display: inline-block;
|
|
46
46
|
outline: none;
|
|
47
47
|
position: relative;
|
|
48
|
-
} .date-time-
|
|
48
|
+
} .date-time-input__calendarContainer_w014b {
|
|
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-time-
|
|
53
|
+
} @media (max-width: 374px) { .date-time-input__calendarContainer_w014b {
|
|
54
54
|
width: 100%;
|
|
55
55
|
min-width: 288px
|
|
56
56
|
}
|
|
57
|
-
} .date-time-
|
|
57
|
+
} .date-time-input__calendarResponsive_w014b {
|
|
58
58
|
width: var(--calendar-width);
|
|
59
|
-
} .date-time-
|
|
59
|
+
} .date-time-input__block_w014b {
|
|
60
60
|
width: 100%;
|
|
61
|
-
} .date-time-
|
|
61
|
+
} .date-time-input__calendarIcon_w014b {
|
|
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 { DateTimeInputProps } from "./components/date-time-input/Component";
|
|
4
4
|
type DateTimeInputDesktopProps = Omit<DateTimeInputProps, 'view' | 'InputComponent'>;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateTimeInputDesktop: React.ForwardRefExoticComponent<DateTimeInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateTimeInputDesktopProps, DateTimeInputDesktop };
|
|
@@ -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 DateTimeInputDesktop = React.forwardRef(function (props, ref) { return (React__default.default.createElement(components_dateTimeInput_Component.DateTimeInput, tslib.__assign({ Calendar: desktop.CalendarDesktop, InputComponent: desktop$1.InputDesktop }, props, { ref: ref }))); });
|
|
27
31
|
|
|
28
32
|
exports.DateTimeInputDesktop = DateTimeInputDesktop;
|
|
@@ -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 DateTimeInputProps = Omit<InputProps, 'onChange'> & {
|
|
@@ -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-time-input/Component.js');
|
|
11
11
|
require('react-merge-refs');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('@alfalab/core-components-calendar/cssm/shared');
|
|
@@ -15,10 +15,10 @@ require('@alfalab/core-components-icon-button/cssm');
|
|
|
15
15
|
require('@alfalab/core-components-popover/cssm');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
require('@alfalab/icons-glyph/CalendarMIcon');
|
|
18
|
-
require('
|
|
18
|
+
require('../utils/format.js');
|
|
19
19
|
require('date-fns/isValid');
|
|
20
20
|
require('date-fns/parse');
|
|
21
|
-
require('
|
|
21
|
+
require('../components/date-time-input/index.module.css');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -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-time-input/Component.js');
|
|
11
11
|
require('react-merge-refs');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('@alfalab/core-components-calendar/cssm/shared');
|
|
@@ -15,10 +15,10 @@ require('@alfalab/core-components-icon-button/cssm');
|
|
|
15
15
|
require('@alfalab/core-components-popover/cssm');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
require('@alfalab/icons-glyph/CalendarMIcon');
|
|
18
|
-
require('
|
|
18
|
+
require('../utils/format.js');
|
|
19
19
|
require('date-fns/isValid');
|
|
20
20
|
require('date-fns/parse');
|
|
21
|
-
require('
|
|
21
|
+
require('../components/date-time-input/index.module.css');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -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-time-input/Component.js');
|
|
11
11
|
require('react-merge-refs');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('@alfalab/core-components-calendar/shared');
|
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-icon-button');
|
|
|
15
15
|
require('@alfalab/core-components-popover');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
require('@alfalab/icons-glyph/CalendarMIcon');
|
|
18
|
-
require('
|
|
18
|
+
require('../utils/format.js');
|
|
19
19
|
require('date-fns/isValid');
|
|
20
20
|
require('date-fns/parse');
|
|
21
21
|
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DateTimeInputProps } from "./components/date-time-input/Component";
|
|
4
4
|
type DateTimeInputDesktopProps = Omit<DateTimeInputProps, 'view' | 'InputComponent'>;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateTimeInputDesktop: React.ForwardRefExoticComponent<DateTimeInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateTimeInputDesktopProps, DateTimeInputDesktop };
|
package/esm/Component.desktop.js
CHANGED
|
@@ -14,6 +14,10 @@ import './utils/format.js';
|
|
|
14
14
|
import 'date-fns/isValid';
|
|
15
15
|
import 'date-fns/parse';
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated
|
|
19
|
+
* use UniversalDateInput instead
|
|
20
|
+
*/
|
|
17
21
|
var DateTimeInputDesktop = forwardRef(function (props, ref) { return (React.createElement(DateTimeInput, __assign({ Calendar: CalendarDesktop, InputComponent: InputDesktop }, props, { ref: ref }))); });
|
|
18
22
|
|
|
19
23
|
export { DateTimeInputDesktop };
|
|
@@ -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 DateTimeInputProps = Omit<InputProps, 'onChange'> & {
|
|
@@ -11,7 +11,7 @@ import { getDateWithoutTime, DATE_WITH_TIME_LENGTH, format, getFullDateTime, isC
|
|
|
11
11
|
import 'date-fns/isValid';
|
|
12
12
|
import 'date-fns/parse';
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"date-time-
|
|
14
|
+
var styles = {"component":"date-time-input__component_w014b","calendarContainer":"date-time-input__calendarContainer_w014b","calendarResponsive":"date-time-input__calendarResponsive_w014b","block":"date-time-input__block_w014b","calendarIcon":"date-time-input__calendarIcon_w014b"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/* eslint-disable no-useless-escape, jsx-a11y/click-events-have-key-events */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: g7ljc */
|
|
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-time-
|
|
44
|
+
} .date-time-input__component_w014b {
|
|
45
45
|
display: inline-block;
|
|
46
46
|
outline: none;
|
|
47
47
|
position: relative;
|
|
48
|
-
} .date-time-
|
|
48
|
+
} .date-time-input__calendarContainer_w014b {
|
|
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-time-
|
|
53
|
+
} @media (max-width: 374px) { .date-time-input__calendarContainer_w014b {
|
|
54
54
|
width: 100%;
|
|
55
55
|
min-width: 288px
|
|
56
56
|
}
|
|
57
|
-
} .date-time-
|
|
57
|
+
} .date-time-input__calendarResponsive_w014b {
|
|
58
58
|
width: var(--calendar-width);
|
|
59
|
-
} .date-time-
|
|
59
|
+
} .date-time-input__block_w014b {
|
|
60
60
|
width: 100%;
|
|
61
|
-
} .date-time-
|
|
61
|
+
} .date-time-input__calendarIcon_w014b {
|
|
62
62
|
margin-right: var(--gap-s-neg);
|
|
63
63
|
height: 100%;
|
|
64
64
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DateTimeInputDesktop } from '
|
|
1
|
+
export { DateTimeInputDesktop } 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-time-input/Component.js';
|
|
7
7
|
import 'react-merge-refs';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import '@alfalab/core-components-calendar/esm/shared';
|
|
@@ -11,6 +11,6 @@ import '@alfalab/core-components-icon-button/esm';
|
|
|
11
11
|
import '@alfalab/core-components-popover/esm';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
13
|
import '@alfalab/icons-glyph/CalendarMIcon';
|
|
14
|
-
import '
|
|
14
|
+
import '../utils/format.js';
|
|
15
15
|
import 'date-fns/isValid';
|
|
16
16
|
import 'date-fns/parse';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DateTimeInputMobile } from '
|
|
1
|
+
export { DateTimeInputMobile } 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-time-input/Component.js';
|
|
7
7
|
import 'react-merge-refs';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import '@alfalab/core-components-calendar/esm/shared';
|
|
@@ -11,6 +11,6 @@ import '@alfalab/core-components-icon-button/esm';
|
|
|
11
11
|
import '@alfalab/core-components-popover/esm';
|
|
12
12
|
import '@alfalab/hooks';
|
|
13
13
|
import '@alfalab/icons-glyph/CalendarMIcon';
|
|
14
|
-
import '
|
|
14
|
+
import '../utils/format.js';
|
|
15
15
|
import 'date-fns/isValid';
|
|
16
16
|
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-time-input/Component.js');
|
|
11
11
|
require('react-merge-refs');
|
|
12
12
|
require('classnames');
|
|
13
13
|
require('@alfalab/core-components-calendar/shared');
|
|
@@ -15,7 +15,7 @@ require('@alfalab/core-components-icon-button');
|
|
|
15
15
|
require('@alfalab/core-components-popover');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
require('@alfalab/icons-glyph/CalendarMIcon');
|
|
18
|
-
require('
|
|
18
|
+
require('../utils/format.js');
|
|
19
19
|
require('date-fns/isValid');
|
|
20
20
|
require('date-fns/parse');
|
|
21
21
|
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DateTimeInputProps } from "./components/date-time-input/Component";
|
|
4
4
|
type DateTimeInputDesktopProps = Omit<DateTimeInputProps, 'view' | 'InputComponent'>;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
* use UniversalDateInput instead
|
|
8
|
+
*/
|
|
5
9
|
declare const DateTimeInputDesktop: React.ForwardRefExoticComponent<DateTimeInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
10
|
export { DateTimeInputDesktopProps, DateTimeInputDesktop };
|
|
@@ -13,6 +13,10 @@ import './utils/format.js';
|
|
|
13
13
|
import 'date-fns/isValid';
|
|
14
14
|
import 'date-fns/parse';
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
* use UniversalDateInput instead
|
|
19
|
+
*/
|
|
16
20
|
const DateTimeInputDesktop = forwardRef((props, ref) => (React.createElement(DateTimeInput, { Calendar: CalendarDesktop, InputComponent: InputDesktop, ...props, ref: ref })));
|
|
17
21
|
|
|
18
22
|
export { DateTimeInputDesktop };
|
|
@@ -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 DateTimeInputProps = Omit<InputProps, 'onChange'> & {
|
|
@@ -10,7 +10,7 @@ import { getDateWithoutTime, DATE_WITH_TIME_LENGTH, format, getFullDateTime, isC
|
|
|
10
10
|
import 'date-fns/isValid';
|
|
11
11
|
import 'date-fns/parse';
|
|
12
12
|
|
|
13
|
-
const styles = {"component":"date-time-
|
|
13
|
+
const styles = {"component":"date-time-input__component_w014b","calendarContainer":"date-time-input__calendarContainer_w014b","calendarResponsive":"date-time-input__calendarResponsive_w014b","block":"date-time-input__block_w014b","calendarIcon":"date-time-input__calendarIcon_w014b"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
/* eslint-disable no-useless-escape, jsx-a11y/click-events-have-key-events */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: g7ljc */
|
|
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-time-
|
|
44
|
+
} .date-time-input__component_w014b {
|
|
45
45
|
display: inline-block;
|
|
46
46
|
outline: none;
|
|
47
47
|
position: relative;
|
|
48
|
-
} .date-time-
|
|
48
|
+
} .date-time-input__calendarContainer_w014b {
|
|
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-time-
|
|
53
|
+
} @media (max-width: 374px) { .date-time-input__calendarContainer_w014b {
|
|
54
54
|
width: 100%;
|
|
55
55
|
min-width: 288px
|
|
56
56
|
}
|
|
57
|
-
} .date-time-
|
|
57
|
+
} .date-time-input__calendarResponsive_w014b {
|
|
58
58
|
width: var(--calendar-width);
|
|
59
|
-
} .date-time-
|
|
59
|
+
} .date-time-input__block_w014b {
|
|
60
60
|
width: 100%;
|
|
61
|
-
} .date-time-
|
|
61
|
+
} .date-time-input__calendarIcon_w014b {
|
|
62
62
|
margin-right: var(--gap-s-neg);
|
|
63
63
|
height: 100%;
|
|
64
64
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { DateTimeInputDesktop } from '
|
|
1
|
+
export { DateTimeInputDesktop } from '../Component.desktop.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@alfalab/core-components-calendar/modern/desktop';
|
|
4
4
|
import '@alfalab/core-components-input/modern/desktop';
|
|
5
|
-
import '
|
|
5
|
+
import '../components/date-time-input/Component.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '@alfalab/core-components-calendar/modern/shared';
|
|
@@ -10,6 +10,6 @@ import '@alfalab/core-components-icon-button/modern';
|
|
|
10
10
|
import '@alfalab/core-components-popover/modern';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
import '@alfalab/icons-glyph/CalendarMIcon';
|
|
13
|
-
import '
|
|
13
|
+
import '../utils/format.js';
|
|
14
14
|
import 'date-fns/isValid';
|
|
15
15
|
import 'date-fns/parse';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { DateTimeInputMobile } from '
|
|
1
|
+
export { DateTimeInputMobile } from '../Component.mobile.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@alfalab/core-components-calendar/modern/mobile';
|
|
4
4
|
import '@alfalab/core-components-input/modern/mobile';
|
|
5
|
-
import '
|
|
5
|
+
import '../components/date-time-input/Component.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '@alfalab/core-components-calendar/modern/shared';
|
|
@@ -10,6 +10,6 @@ import '@alfalab/core-components-icon-button/modern';
|
|
|
10
10
|
import '@alfalab/core-components-popover/modern';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
import '@alfalab/icons-glyph/CalendarMIcon';
|
|
13
|
-
import '
|
|
13
|
+
import '../utils/format.js';
|
|
14
14
|
import 'date-fns/isValid';
|
|
15
15
|
import 'date-fns/parse';
|
package/package.json
CHANGED
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-date-time-input",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "./esm/index.js",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./index.js"
|
|
13
|
-
},
|
|
14
|
-
"./mobile": {
|
|
15
|
-
"import": "./esm/mobile.js",
|
|
16
|
-
"require": "./mobile.js"
|
|
17
|
-
},
|
|
18
|
-
"./desktop": {
|
|
19
|
-
"import": "./esm/desktop.js",
|
|
20
|
-
"require": "./desktop.js"
|
|
21
|
-
},
|
|
22
|
-
"./esm": "./esm/index.js",
|
|
23
|
-
"./cssm": "./cssm/index.js",
|
|
24
|
-
"./modern": "./modern/index.js",
|
|
25
|
-
"./esm/*": "./esm/*",
|
|
26
|
-
"./cssm/*": "./cssm/*",
|
|
27
|
-
"./modern/*": "./modern/*"
|
|
28
|
-
},
|
|
29
9
|
"publishConfig": {
|
|
30
10
|
"access": "public",
|
|
31
11
|
"directory": "dist"
|
|
@@ -35,9 +15,9 @@
|
|
|
35
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
36
16
|
},
|
|
37
17
|
"dependencies": {
|
|
38
|
-
"@alfalab/core-components-calendar": "^7.0
|
|
39
|
-
"@alfalab/core-components-input": "^12.
|
|
40
|
-
"@alfalab/core-components-icon-button": "^6.3.
|
|
18
|
+
"@alfalab/core-components-calendar": "^7.1.0",
|
|
19
|
+
"@alfalab/core-components-input": "^12.3.0",
|
|
20
|
+
"@alfalab/core-components-icon-button": "^6.3.2",
|
|
41
21
|
"@alfalab/core-components-popover": "^6.1.0",
|
|
42
22
|
"@alfalab/hooks": "^1.13.0",
|
|
43
23
|
"@alfalab/icons-glyph": "^2.108.0",
|
|
@@ -9,6 +9,10 @@ import { DateTimeInput, DateTimeInputProps } from './components/date-time-input/
|
|
|
9
9
|
|
|
10
10
|
export type DateTimeInputDesktopProps = Omit<DateTimeInputProps, 'view' | 'InputComponent'>;
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
* use UniversalDateInput instead
|
|
15
|
+
*/
|
|
12
16
|
export const DateTimeInputDesktop = forwardRef<HTMLInputElement, DateTimeInputDesktopProps>(
|
|
13
17
|
(props, ref) => (
|
|
14
18
|
<DateTimeInput
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../Component.desktop';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../Component.mobile';
|