@atlaskit/datetime-picker 17.4.1 → 17.4.3
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/CHANGELOG.md +12 -0
- package/dist/cjs/components/date-time-picker-class.js +0 -1
- package/dist/cjs/components/date-time-picker-fc.js +0 -1
- package/dist/es2019/components/date-time-picker-class.js +0 -1
- package/dist/es2019/components/date-time-picker-fc.js +0 -1
- package/dist/esm/components/date-time-picker-class.js +0 -1
- package/dist/esm/components/date-time-picker-fc.js +0 -1
- package/dist/types/components/date-picker-class.d.ts +1 -1
- package/dist/types/components/date-time-picker-class.d.ts +1 -1
- package/dist/types/components/date-time-picker.d.ts +1 -1
- package/dist/types-ts4.5/components/date-picker-class.d.ts +1 -1
- package/dist/types-ts4.5/components/date-time-picker-class.d.ts +1 -1
- package/dist/types-ts4.5/components/date-time-picker.d.ts +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -378,7 +378,6 @@ var DateTimePickerComponent = exports.DateTimePickerWithoutAnalytics = /*#__PURE
|
|
|
378
378
|
type: "button",
|
|
379
379
|
className: (0, _runtime.ax)([compiledStyles.iconContainerStyles])
|
|
380
380
|
}, /*#__PURE__*/_react.default.createElement(_crossCircle.default, {
|
|
381
|
-
LEGACY_size: "small",
|
|
382
381
|
color: "currentColor",
|
|
383
382
|
label: clearControlLabel,
|
|
384
383
|
size: "small"
|
|
@@ -372,7 +372,6 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, _ref)
|
|
|
372
372
|
icon: function icon(iconProps) {
|
|
373
373
|
return /*#__PURE__*/_react.default.createElement(_crossCircle.default, (0, _extends2.default)({}, iconProps, {
|
|
374
374
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
375
|
-
LEGACY_size: "small",
|
|
376
375
|
size: "small"
|
|
377
376
|
}));
|
|
378
377
|
},
|
|
@@ -340,7 +340,6 @@ class DateTimePickerComponent extends React.Component {
|
|
|
340
340
|
type: "button",
|
|
341
341
|
className: ax([compiledStyles.iconContainerStyles])
|
|
342
342
|
}, /*#__PURE__*/React.createElement(SelectClearIcon, {
|
|
343
|
-
LEGACY_size: "small",
|
|
344
343
|
color: "currentColor",
|
|
345
344
|
label: clearControlLabel,
|
|
346
345
|
size: "small"
|
|
@@ -336,7 +336,6 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
|
|
|
336
336
|
label: clearControlLabel,
|
|
337
337
|
icon: iconProps => /*#__PURE__*/React.createElement(SelectClearIcon, _extends({}, iconProps, {
|
|
338
338
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
339
|
-
LEGACY_size: "small",
|
|
340
339
|
size: "small"
|
|
341
340
|
})),
|
|
342
341
|
onClick: onClear,
|
|
@@ -373,7 +373,6 @@ var DateTimePickerComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
373
373
|
type: "button",
|
|
374
374
|
className: ax([compiledStyles.iconContainerStyles])
|
|
375
375
|
}, /*#__PURE__*/React.createElement(SelectClearIcon, {
|
|
376
|
-
LEGACY_size: "small",
|
|
377
376
|
color: "currentColor",
|
|
378
377
|
label: clearControlLabel,
|
|
379
378
|
size: "small"
|
|
@@ -365,7 +365,6 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref2, _ref) {
|
|
|
365
365
|
icon: function icon(iconProps) {
|
|
366
366
|
return /*#__PURE__*/React.createElement(SelectClearIcon, _extends({}, iconProps, {
|
|
367
367
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
368
|
-
LEGACY_size: "small",
|
|
369
368
|
size: "small"
|
|
370
369
|
}));
|
|
371
370
|
},
|
|
@@ -96,7 +96,7 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Omit<Pick<Om
|
|
|
96
96
|
onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
97
97
|
onChange: (_value: string) => void;
|
|
98
98
|
onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
99
|
-
} & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "icon" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "autoFocus" | "id" | "aria-describedby" | "value" | "testId" | "menuInnerWrapper" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "clearControlLabel" | "isInvalid" | "isRequired" | "
|
|
99
|
+
} & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "icon" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "autoFocus" | "id" | "aria-describedby" | "value" | "name" | "testId" | "menuInnerWrapper" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "clearControlLabel" | "isInvalid" | "isRequired" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & {
|
|
100
100
|
disabled?: string[] | undefined;
|
|
101
101
|
defaultValue?: string | undefined;
|
|
102
102
|
onFocus?: (((_event: React.FocusEvent<HTMLInputElement>) => void) & import("react").FocusEventHandler<HTMLInputElement>) | undefined;
|
|
@@ -63,12 +63,12 @@ declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omi
|
|
|
63
63
|
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
64
64
|
onChange?: ((value: string) => void) | undefined;
|
|
65
65
|
value?: string | undefined;
|
|
66
|
+
name?: string | undefined;
|
|
66
67
|
testId?: string | undefined;
|
|
67
68
|
locale?: string | undefined;
|
|
68
69
|
clearControlLabel?: string | undefined;
|
|
69
70
|
isInvalid?: boolean | undefined;
|
|
70
71
|
isRequired?: boolean | undefined;
|
|
71
|
-
name?: string | undefined;
|
|
72
72
|
spacing?: import("../types").Spacing | undefined;
|
|
73
73
|
datePickerProps?: import("../types").DatePickerBaseProps | undefined;
|
|
74
74
|
timePickerProps?: import("../types").TimePickerBaseProps | undefined;
|
|
@@ -10,12 +10,12 @@ declare const DateTimePicker: import("react").FC<Omit<Omit<import("..").DateTime
|
|
|
10
10
|
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
11
11
|
onChange?: ((value: string) => void) | undefined;
|
|
12
12
|
value?: string | undefined;
|
|
13
|
+
name?: string | undefined;
|
|
13
14
|
testId?: string | undefined;
|
|
14
15
|
locale?: string | undefined;
|
|
15
16
|
clearControlLabel?: string | undefined;
|
|
16
17
|
isInvalid?: boolean | undefined;
|
|
17
18
|
isRequired?: boolean | undefined;
|
|
18
|
-
name?: string | undefined;
|
|
19
19
|
spacing?: import("..").Spacing | undefined;
|
|
20
20
|
datePickerProps?: import("..").DatePickerProps | undefined;
|
|
21
21
|
timePickerProps?: import("..").TimePickerProps | undefined;
|
|
@@ -96,7 +96,7 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Omit<Pick<Om
|
|
|
96
96
|
onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
97
97
|
onChange: (_value: string) => void;
|
|
98
98
|
onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
99
|
-
} & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "icon" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "autoFocus" | "id" | "aria-describedby" | "value" | "testId" | "menuInnerWrapper" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "clearControlLabel" | "isInvalid" | "isRequired" | "
|
|
99
|
+
} & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "icon" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "autoFocus" | "id" | "aria-describedby" | "value" | "name" | "testId" | "menuInnerWrapper" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "clearControlLabel" | "isInvalid" | "isRequired" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & {
|
|
100
100
|
disabled?: string[] | undefined;
|
|
101
101
|
defaultValue?: string | undefined;
|
|
102
102
|
onFocus?: (((_event: React.FocusEvent<HTMLInputElement>) => void) & import("react").FocusEventHandler<HTMLInputElement>) | undefined;
|
|
@@ -63,12 +63,12 @@ declare const DateTimePicker: React.ForwardRefExoticComponent<Omit<Omit<Pick<Omi
|
|
|
63
63
|
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
64
64
|
onChange?: ((value: string) => void) | undefined;
|
|
65
65
|
value?: string | undefined;
|
|
66
|
+
name?: string | undefined;
|
|
66
67
|
testId?: string | undefined;
|
|
67
68
|
locale?: string | undefined;
|
|
68
69
|
clearControlLabel?: string | undefined;
|
|
69
70
|
isInvalid?: boolean | undefined;
|
|
70
71
|
isRequired?: boolean | undefined;
|
|
71
|
-
name?: string | undefined;
|
|
72
72
|
spacing?: import("../types").Spacing | undefined;
|
|
73
73
|
datePickerProps?: import("../types").DatePickerBaseProps | undefined;
|
|
74
74
|
timePickerProps?: import("../types").TimePickerBaseProps | undefined;
|
|
@@ -10,12 +10,12 @@ declare const DateTimePicker: import("react").FC<Omit<Omit<import("..").DateTime
|
|
|
10
10
|
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
11
11
|
onChange?: ((value: string) => void) | undefined;
|
|
12
12
|
value?: string | undefined;
|
|
13
|
+
name?: string | undefined;
|
|
13
14
|
testId?: string | undefined;
|
|
14
15
|
locale?: string | undefined;
|
|
15
16
|
clearControlLabel?: string | undefined;
|
|
16
17
|
isInvalid?: boolean | undefined;
|
|
17
18
|
isRequired?: boolean | undefined;
|
|
18
|
-
name?: string | undefined;
|
|
19
19
|
spacing?: import("..").Spacing | undefined;
|
|
20
20
|
datePickerProps?: import("..").DatePickerProps | undefined;
|
|
21
21
|
timePickerProps?: import("..").TimePickerProps | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "17.4.
|
|
3
|
+
"version": "17.4.3",
|
|
4
4
|
"description": "A date time picker allows the user to select an associated date and time.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@atlaskit/calendar": "^17.2.0",
|
|
38
38
|
"@atlaskit/css": "^0.19.0",
|
|
39
39
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
40
|
-
"@atlaskit/icon": "^
|
|
41
|
-
"@atlaskit/layering": "^3.
|
|
40
|
+
"@atlaskit/icon": "^30.0.0",
|
|
41
|
+
"@atlaskit/layering": "^3.6.0",
|
|
42
42
|
"@atlaskit/locale": "^3.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/popper": "^7.1.0",
|
|
45
|
-
"@atlaskit/primitives": "^17.
|
|
46
|
-
"@atlaskit/select": "^21.
|
|
47
|
-
"@atlaskit/tokens": "^
|
|
45
|
+
"@atlaskit/primitives": "^17.1.0",
|
|
46
|
+
"@atlaskit/select": "^21.7.0",
|
|
47
|
+
"@atlaskit/tokens": "^10.1.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@compiled/react": "^0.18.6",
|
|
50
50
|
"date-fns": "^2.17.0"
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
"@af/visual-regression": "workspace:^",
|
|
59
59
|
"@atlaskit/code": "^17.4.0",
|
|
60
60
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
61
|
-
"@atlaskit/docs": "^11.
|
|
62
|
-
"@atlaskit/form": "^15.
|
|
61
|
+
"@atlaskit/docs": "^11.3.0",
|
|
62
|
+
"@atlaskit/form": "^15.3.0",
|
|
63
63
|
"@atlaskit/heading": "^5.2.0",
|
|
64
64
|
"@atlaskit/link": "^3.3.0",
|
|
65
|
-
"@atlaskit/modal-dialog": "^14.
|
|
66
|
-
"@atlaskit/popup": "^4.
|
|
65
|
+
"@atlaskit/modal-dialog": "^14.10.0",
|
|
66
|
+
"@atlaskit/popup": "^4.13.0",
|
|
67
67
|
"@atlaskit/range": "^9.3.0",
|
|
68
|
-
"@atlaskit/section-message": "^8.
|
|
68
|
+
"@atlaskit/section-message": "^8.12.0",
|
|
69
69
|
"@atlaskit/textfield": "^8.2.0",
|
|
70
70
|
"@atlaskit/toggle": "^15.2.0",
|
|
71
71
|
"@atlassian/ssr-tests": "workspace:^",
|
|
72
|
-
"@testing-library/react": "^
|
|
72
|
+
"@testing-library/react": "^16.3.0",
|
|
73
73
|
"@testing-library/user-event": "^14.4.3",
|
|
74
74
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
75
75
|
"jest-in-case": "^1.0.2",
|