@atlaskit/datetime-picker 13.11.0 → 13.11.2
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 +17 -0
- package/dist/cjs/components/date-picker.js +30 -15
- package/dist/cjs/components/date-time-picker.js +69 -29
- package/dist/cjs/components/time-picker.js +2 -4
- package/dist/cjs/internal/fixed-layer-menu.js +50 -4
- package/dist/cjs/internal/menu.js +24 -9
- package/dist/cjs/internal/single-value.js +37 -4
- package/dist/es2019/components/date-picker.js +30 -15
- package/dist/es2019/components/date-time-picker.js +69 -29
- package/dist/es2019/components/time-picker.js +2 -4
- package/dist/es2019/internal/fixed-layer-menu.js +48 -2
- package/dist/es2019/internal/menu.js +53 -32
- package/dist/es2019/internal/single-value.js +36 -3
- package/dist/esm/components/date-picker.js +30 -15
- package/dist/esm/components/date-time-picker.js +69 -29
- package/dist/esm/components/time-picker.js +2 -4
- package/dist/esm/internal/fixed-layer-menu.js +50 -4
- package/dist/esm/internal/menu.js +25 -9
- package/dist/esm/internal/single-value.js +37 -4
- package/dist/types/internal/fixed-layer-menu.d.ts +1 -1
- package/dist/types/internal/single-value.d.ts +1 -1
- package/dist/types/types.d.ts +21 -2
- package/dist/types-ts4.5/internal/fixed-layer-menu.d.ts +1 -1
- package/dist/types-ts4.5/internal/single-value.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +21 -2
- package/package.json +6 -6
package/dist/types/types.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
16
16
|
* Set the appearance of the picker.
|
|
17
17
|
* `subtle` will remove the borders, background, and icon.
|
|
18
18
|
* **NOTE:** Appearance values will be ignored if styles are parsed through `selectProps`.
|
|
19
|
+
*
|
|
20
|
+
* @deprecated
|
|
19
21
|
*/
|
|
20
22
|
appearance?: Appearance;
|
|
21
23
|
/**
|
|
@@ -28,6 +30,8 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
28
30
|
autoFocus?: boolean;
|
|
29
31
|
/**
|
|
30
32
|
* The default for `isOpen`. Will be `false` if not provided.
|
|
33
|
+
*
|
|
34
|
+
* @deprecated
|
|
31
35
|
*/
|
|
32
36
|
defaultIsOpen?: boolean;
|
|
33
37
|
/**
|
|
@@ -58,6 +62,8 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
58
62
|
minDate?: string;
|
|
59
63
|
/**
|
|
60
64
|
* The icon shown in the picker.
|
|
65
|
+
*
|
|
66
|
+
* @deprecated
|
|
61
67
|
*/
|
|
62
68
|
icon?: React.ComponentType<DropdownIndicatorProps<OptionType>>;
|
|
63
69
|
/**
|
|
@@ -67,6 +73,9 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
67
73
|
id?: string;
|
|
68
74
|
/**
|
|
69
75
|
* Props to apply to the container.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated If you are looking to set your width, use a `Box` from
|
|
78
|
+
* `@atlaskit/primitives` around the picker to achieve the same effect.
|
|
70
79
|
*/
|
|
71
80
|
innerProps?: React.AllHTMLAttributes<HTMLElement>;
|
|
72
81
|
/**
|
|
@@ -126,6 +135,8 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
126
135
|
isInvalid?: boolean;
|
|
127
136
|
/**
|
|
128
137
|
* Hides icon for dropdown indicator.
|
|
138
|
+
*
|
|
139
|
+
* @deprecated
|
|
129
140
|
*/
|
|
130
141
|
hideIcon?: boolean;
|
|
131
142
|
/**
|
|
@@ -176,6 +187,8 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
176
187
|
autoFocus?: boolean;
|
|
177
188
|
/**
|
|
178
189
|
* The default for `isOpen`.
|
|
190
|
+
*
|
|
191
|
+
* @deprecated
|
|
179
192
|
*/
|
|
180
193
|
defaultIsOpen?: boolean;
|
|
181
194
|
/**
|
|
@@ -192,7 +205,10 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
192
205
|
*/
|
|
193
206
|
id?: string;
|
|
194
207
|
/**
|
|
195
|
-
* Props to apply to the container.
|
|
208
|
+
* Props to apply to the container.
|
|
209
|
+
*
|
|
210
|
+
* @deprecated If you are looking to set your width, use a `Box` from
|
|
211
|
+
* `@atlaskit/primitives` around the picker to achieve the same effect.
|
|
196
212
|
*/
|
|
197
213
|
innerProps?: React.AllHTMLAttributes<HTMLElement>;
|
|
198
214
|
/**
|
|
@@ -299,7 +315,10 @@ export interface DateTimePickerBaseProps extends WithAnalyticsEventsProps {
|
|
|
299
315
|
*/
|
|
300
316
|
id?: string;
|
|
301
317
|
/**
|
|
302
|
-
* Props to apply to the container.
|
|
318
|
+
* Props to apply to the container.
|
|
319
|
+
*
|
|
320
|
+
* @deprecated If you are looking to set your width, use a `Box` from
|
|
321
|
+
* `@atlaskit/primitives` around the picker to achieve the same effect.
|
|
303
322
|
*/
|
|
304
323
|
innerProps?: React.AllHTMLAttributes<HTMLElement>;
|
|
305
324
|
/**
|
|
@@ -7,4 +7,4 @@ import { type MenuProps, type OptionType } from '@atlaskit/select';
|
|
|
7
7
|
/**
|
|
8
8
|
* This is the fixed layer menu used in the time picker.
|
|
9
9
|
*/
|
|
10
|
-
export declare const FixedLayerMenu: ({ selectProps, ...rest }: MenuProps<OptionType>) => jsx.JSX.Element;
|
|
10
|
+
export declare const FixedLayerMenu: ({ className, clearValue, cx, getStyles, getValue, hasValue, innerProps, innerRef, isLoading, isMulti, isRtl, maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, options, placement, selectOption, selectProps, setValue, theme, children, ...rest }: MenuProps<OptionType>) => jsx.JSX.Element;
|
|
@@ -6,4 +6,4 @@ import { type OptionType, type SingleValueProps } from '@atlaskit/select';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const makeSingleValue: ({ lang }: {
|
|
8
8
|
lang: string;
|
|
9
|
-
}) => ({ children, ...
|
|
9
|
+
}) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, theme, ...rest }: SingleValueProps<OptionType, false>) => JSX.Element;
|
|
@@ -16,6 +16,8 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
16
16
|
* Set the appearance of the picker.
|
|
17
17
|
* `subtle` will remove the borders, background, and icon.
|
|
18
18
|
* **NOTE:** Appearance values will be ignored if styles are parsed through `selectProps`.
|
|
19
|
+
*
|
|
20
|
+
* @deprecated
|
|
19
21
|
*/
|
|
20
22
|
appearance?: Appearance;
|
|
21
23
|
/**
|
|
@@ -28,6 +30,8 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
28
30
|
autoFocus?: boolean;
|
|
29
31
|
/**
|
|
30
32
|
* The default for `isOpen`. Will be `false` if not provided.
|
|
33
|
+
*
|
|
34
|
+
* @deprecated
|
|
31
35
|
*/
|
|
32
36
|
defaultIsOpen?: boolean;
|
|
33
37
|
/**
|
|
@@ -58,6 +62,8 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
58
62
|
minDate?: string;
|
|
59
63
|
/**
|
|
60
64
|
* The icon shown in the picker.
|
|
65
|
+
*
|
|
66
|
+
* @deprecated
|
|
61
67
|
*/
|
|
62
68
|
icon?: React.ComponentType<DropdownIndicatorProps<OptionType>>;
|
|
63
69
|
/**
|
|
@@ -67,6 +73,9 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
67
73
|
id?: string;
|
|
68
74
|
/**
|
|
69
75
|
* Props to apply to the container.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated If you are looking to set your width, use a `Box` from
|
|
78
|
+
* `@atlaskit/primitives` around the picker to achieve the same effect.
|
|
70
79
|
*/
|
|
71
80
|
innerProps?: React.AllHTMLAttributes<HTMLElement>;
|
|
72
81
|
/**
|
|
@@ -126,6 +135,8 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
126
135
|
isInvalid?: boolean;
|
|
127
136
|
/**
|
|
128
137
|
* Hides icon for dropdown indicator.
|
|
138
|
+
*
|
|
139
|
+
* @deprecated
|
|
129
140
|
*/
|
|
130
141
|
hideIcon?: boolean;
|
|
131
142
|
/**
|
|
@@ -176,6 +187,8 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
176
187
|
autoFocus?: boolean;
|
|
177
188
|
/**
|
|
178
189
|
* The default for `isOpen`.
|
|
190
|
+
*
|
|
191
|
+
* @deprecated
|
|
179
192
|
*/
|
|
180
193
|
defaultIsOpen?: boolean;
|
|
181
194
|
/**
|
|
@@ -192,7 +205,10 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
192
205
|
*/
|
|
193
206
|
id?: string;
|
|
194
207
|
/**
|
|
195
|
-
* Props to apply to the container.
|
|
208
|
+
* Props to apply to the container.
|
|
209
|
+
*
|
|
210
|
+
* @deprecated If you are looking to set your width, use a `Box` from
|
|
211
|
+
* `@atlaskit/primitives` around the picker to achieve the same effect.
|
|
196
212
|
*/
|
|
197
213
|
innerProps?: React.AllHTMLAttributes<HTMLElement>;
|
|
198
214
|
/**
|
|
@@ -299,7 +315,10 @@ export interface DateTimePickerBaseProps extends WithAnalyticsEventsProps {
|
|
|
299
315
|
*/
|
|
300
316
|
id?: string;
|
|
301
317
|
/**
|
|
302
|
-
* Props to apply to the container.
|
|
318
|
+
* Props to apply to the container.
|
|
319
|
+
*
|
|
320
|
+
* @deprecated If you are looking to set your width, use a `Box` from
|
|
321
|
+
* `@atlaskit/primitives` around the picker to achieve the same effect.
|
|
303
322
|
*/
|
|
304
323
|
innerProps?: React.AllHTMLAttributes<HTMLElement>;
|
|
305
324
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.2",
|
|
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/"
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
43
43
|
"@atlaskit/calendar": "^14.5.0",
|
|
44
|
-
"@atlaskit/ds-lib": "^2.
|
|
45
|
-
"@atlaskit/icon": "^22.
|
|
44
|
+
"@atlaskit/ds-lib": "^2.5.0",
|
|
45
|
+
"@atlaskit/icon": "^22.13.0",
|
|
46
46
|
"@atlaskit/layering": "^0.4.0",
|
|
47
47
|
"@atlaskit/locale": "^2.8.0",
|
|
48
48
|
"@atlaskit/popper": "^6.2.0",
|
|
49
|
-
"@atlaskit/select": "^17.
|
|
49
|
+
"@atlaskit/select": "^17.15.0",
|
|
50
50
|
"@atlaskit/theme": "^13.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^1.58.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"@af/accessibility-testing": "*",
|
|
62
62
|
"@af/integration-testing": "*",
|
|
63
63
|
"@af/visual-regression": "*",
|
|
64
|
-
"@atlaskit/button": "^
|
|
64
|
+
"@atlaskit/button": "^20.1.0",
|
|
65
65
|
"@atlaskit/docs": "*",
|
|
66
66
|
"@atlaskit/form": "^10.5.0",
|
|
67
67
|
"@atlaskit/modal-dialog": "^12.15.0",
|
|
68
|
-
"@atlaskit/popup": "^1.
|
|
68
|
+
"@atlaskit/popup": "^1.23.0",
|
|
69
69
|
"@atlaskit/range": "^7.4.0",
|
|
70
70
|
"@atlaskit/section-message": "^6.6.0",
|
|
71
71
|
"@atlaskit/ssr": "*",
|