@atlaskit/datetime-picker 15.4.3 → 15.5.1
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 +25 -0
- package/dist/cjs/components/date-picker-class.js +11 -3
- package/dist/cjs/components/date-picker-fc.js +11 -3
- package/dist/cjs/components/date-time-picker-class.js +439 -0
- package/dist/cjs/components/date-time-picker-fc.js +398 -0
- package/dist/cjs/components/date-time-picker.js +7 -430
- package/dist/cjs/components/time-picker.js +9 -3
- package/dist/cjs/internal/date-time-picker-container.js +21 -20
- package/dist/cjs/internal/indicators-container.js +31 -0
- package/dist/es2019/components/date-picker-class.js +9 -1
- package/dist/es2019/components/date-picker-fc.js +9 -1
- package/dist/es2019/components/date-time-picker-class.js +400 -0
- package/dist/es2019/components/date-time-picker-fc.js +363 -0
- package/dist/es2019/components/date-time-picker.js +4 -397
- package/dist/es2019/components/time-picker.js +8 -3
- package/dist/es2019/internal/date-time-picker-container.js +8 -7
- package/dist/es2019/internal/indicators-container.js +22 -0
- package/dist/esm/components/date-picker-class.js +11 -3
- package/dist/esm/components/date-picker-fc.js +11 -3
- package/dist/esm/components/date-time-picker-class.js +437 -0
- package/dist/esm/components/date-time-picker-fc.js +391 -0
- package/dist/esm/components/date-time-picker.js +6 -434
- package/dist/esm/components/time-picker.js +9 -3
- package/dist/esm/internal/date-time-picker-container.js +8 -7
- package/dist/esm/internal/indicators-container.js +25 -0
- package/dist/types/components/date-picker-class.d.ts +2 -2
- package/dist/types/components/date-picker-fc.d.ts +1 -1
- package/dist/types/components/date-picker.d.ts +3 -3
- package/dist/types/components/date-time-picker-class.d.ts +56 -0
- package/dist/types/components/date-time-picker-fc.d.ts +19 -0
- package/dist/types/components/date-time-picker.d.ts +2 -55
- package/dist/types/components/time-picker.d.ts +1 -1
- package/dist/types/internal/date-time-picker-container.d.ts +10 -12
- package/dist/types/internal/indicators-container.d.ts +9 -0
- package/dist/types/types.d.ts +4 -0
- package/dist/types-ts4.5/components/date-picker-class.d.ts +2 -2
- package/dist/types-ts4.5/components/date-picker-fc.d.ts +1 -1
- package/dist/types-ts4.5/components/date-picker.d.ts +3 -3
- package/dist/types-ts4.5/components/date-time-picker-class.d.ts +56 -0
- package/dist/types-ts4.5/components/date-time-picker-fc.d.ts +19 -0
- package/dist/types-ts4.5/components/date-time-picker.d.ts +2 -55
- package/dist/types-ts4.5/components/time-picker.d.ts +1 -1
- package/dist/types-ts4.5/internal/date-time-picker-container.d.ts +10 -12
- package/dist/types-ts4.5/internal/indicators-container.d.ts +9 -0
- package/dist/types-ts4.5/types.d.ts +4 -0
- package/package.json +8 -5
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import { type DateTimePickerBaseProps } from '../types';
|
|
8
|
+
interface State {
|
|
9
|
+
dateValue: string;
|
|
10
|
+
isFocused: boolean;
|
|
11
|
+
timeValue: string;
|
|
12
|
+
value: string;
|
|
13
|
+
zoneValue: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const datePickerDefaultAriaLabel = "Date";
|
|
16
|
+
export declare const timePickerDefaultAriaLabel = "Time";
|
|
17
|
+
declare class DateTimePickerComponent extends React.Component<DateTimePickerBaseProps, State> {
|
|
18
|
+
static defaultProps: DateTimePickerBaseProps;
|
|
19
|
+
state: State;
|
|
20
|
+
getParsedValues: () => {
|
|
21
|
+
dateValue: string;
|
|
22
|
+
timeValue: string;
|
|
23
|
+
zoneValue: string;
|
|
24
|
+
};
|
|
25
|
+
getValue: () => string;
|
|
26
|
+
parseValue(value: string, dateValue: string, timeValue: string, zoneValue: string): {
|
|
27
|
+
dateValue: string;
|
|
28
|
+
timeValue: string;
|
|
29
|
+
zoneValue: string;
|
|
30
|
+
};
|
|
31
|
+
onDateBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
32
|
+
onTimeBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
33
|
+
onDateFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
34
|
+
onTimeFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
35
|
+
onDateChange: (dateValue: string) => void;
|
|
36
|
+
onTimeChange: (timeValue: string) => void;
|
|
37
|
+
onClear: () => void;
|
|
38
|
+
onValueChange({ dateValue, timeValue, zoneValue, }: {
|
|
39
|
+
dateValue: string;
|
|
40
|
+
timeValue: string;
|
|
41
|
+
zoneValue: string;
|
|
42
|
+
}): void;
|
|
43
|
+
render(): jsx.JSX.Element;
|
|
44
|
+
}
|
|
45
|
+
export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
|
|
46
|
+
/**
|
|
47
|
+
* __Date time picker__
|
|
48
|
+
*
|
|
49
|
+
* A date time picker allows the user to select an associated date and time.
|
|
50
|
+
*
|
|
51
|
+
* - [Examples](https://atlassian.design/components/datetime-picker/examples)
|
|
52
|
+
* - [Code](https://atlassian.design/components/datetime-picker/code)
|
|
53
|
+
* - [Usage](https://atlassian.design/components/datetime-picker/usage)
|
|
54
|
+
*/
|
|
55
|
+
declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<DateTimePickerBaseProps, "ref" | "createAnalyticsEvent">>, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any>>;
|
|
56
|
+
export default DateTimePicker;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { type DateTimePickerBaseProps } from '../types';
|
|
7
|
+
export declare const datePickerDefaultAriaLabel = "Date";
|
|
8
|
+
export declare const timePickerDefaultAriaLabel = "Time";
|
|
9
|
+
/**
|
|
10
|
+
* __Date time picker__
|
|
11
|
+
*
|
|
12
|
+
* A date time picker allows the user to select an associated date and time.
|
|
13
|
+
*
|
|
14
|
+
* - [Examples](https://atlassian.design/components/datetime-picker/examples)
|
|
15
|
+
* - [Code](https://atlassian.design/components/datetime-picker/code)
|
|
16
|
+
* - [Usage](https://atlassian.design/components/datetime-picker/usage)
|
|
17
|
+
*/
|
|
18
|
+
declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<DateTimePickerBaseProps, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<unknown>>;
|
|
19
|
+
export default DateTimePicker;
|
|
@@ -1,56 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import { type DateTimePickerBaseProps } from '../types';
|
|
8
|
-
interface State {
|
|
9
|
-
dateValue: string;
|
|
10
|
-
isFocused: boolean;
|
|
11
|
-
timeValue: string;
|
|
12
|
-
value: string;
|
|
13
|
-
zoneValue: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const datePickerDefaultAriaLabel = "Date";
|
|
16
|
-
export declare const timePickerDefaultAriaLabel = "Time";
|
|
17
|
-
declare class DateTimePickerComponent extends React.Component<DateTimePickerBaseProps, State> {
|
|
18
|
-
static defaultProps: DateTimePickerBaseProps;
|
|
19
|
-
state: State;
|
|
20
|
-
getParsedValues: () => {
|
|
21
|
-
dateValue: string;
|
|
22
|
-
timeValue: string;
|
|
23
|
-
zoneValue: string;
|
|
24
|
-
};
|
|
25
|
-
getValue: () => string;
|
|
26
|
-
parseValue(value: string, dateValue: string, timeValue: string, zoneValue: string): {
|
|
27
|
-
dateValue: string;
|
|
28
|
-
timeValue: string;
|
|
29
|
-
zoneValue: string;
|
|
30
|
-
};
|
|
31
|
-
onDateBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
32
|
-
onTimeBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
33
|
-
onDateFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
34
|
-
onTimeFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
35
|
-
onDateChange: (dateValue: string) => void;
|
|
36
|
-
onTimeChange: (timeValue: string) => void;
|
|
37
|
-
onClear: () => void;
|
|
38
|
-
onValueChange({ dateValue, timeValue, zoneValue, }: {
|
|
39
|
-
dateValue: string;
|
|
40
|
-
timeValue: string;
|
|
41
|
-
zoneValue: string;
|
|
42
|
-
}): void;
|
|
43
|
-
render(): jsx.JSX.Element;
|
|
44
|
-
}
|
|
45
|
-
export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
|
|
46
|
-
/**
|
|
47
|
-
* __Date time picker__
|
|
48
|
-
*
|
|
49
|
-
* A date time picker allows the user to select an associated date and time.
|
|
50
|
-
*
|
|
51
|
-
* - [Examples](https://atlassian.design/components/datetime-picker/examples)
|
|
52
|
-
* - [Code](https://atlassian.design/components/datetime-picker/code)
|
|
53
|
-
* - [Usage](https://atlassian.design/components/datetime-picker/usage)
|
|
54
|
-
*/
|
|
55
|
-
declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<DateTimePickerBaseProps, "ref" | "createAnalyticsEvent">>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DateTimePicker: import("react").FC<Pick<Pick<import("..").DateTimePickerProps, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & import("react").RefAttributes<unknown>, "key" | "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & Pick<Pick<Pick<Pick<Omit<import("..").DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<import("..").DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<import("..").DateTimePickerProps, "ref" | "createAnalyticsEvent">>, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & import("react").RefAttributes<any>, "key" | "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & import("react").RefAttributes<any>>;
|
|
56
3
|
export default DateTimePicker;
|
|
@@ -9,5 +9,5 @@ import { type TimePickerBaseProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/datetime-picker/time-picker/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/datetime-picker/time-picker/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const TimePicker: React.ForwardRefExoticComponent<Pick<TimePickerBaseProps, "times" | "label" | "parseInputValue" | "formatDisplayLabel" | "placeholder" | "
|
|
12
|
+
declare const TimePicker: React.ForwardRefExoticComponent<Pick<TimePickerBaseProps, "times" | "label" | "parseInputValue" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<unknown>>;
|
|
13
13
|
export default TimePicker;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type Appearance } from '../types';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
export declare const DateTimePickerContainer: ({ isDisabled, isFocused, appearance, isInvalid, innerProps, testId, children, }: {
|
|
3
|
+
type DateTimePickerContainerProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
11
5
|
isDisabled: boolean;
|
|
12
6
|
isFocused: boolean;
|
|
13
7
|
appearance: Appearance;
|
|
14
8
|
isInvalid: boolean;
|
|
15
9
|
innerProps: React.AllHTMLAttributes<HTMLElement>;
|
|
16
|
-
testId?: string
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* This is the container for the datetime picker component.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DateTimePickerContainer: import("react").ForwardRefExoticComponent<DateTimePickerContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type IndicatorsContainerProps } from '@atlaskit/select';
|
|
7
|
+
export declare const IndicatorsContainer: ({ showClearIndicator, ...rest }: IndicatorsContainerProps<any, boolean, import("@atlaskit/select").GroupType<any>> & {
|
|
8
|
+
showClearIndicator?: boolean | undefined;
|
|
9
|
+
}) => jsx.JSX.Element;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -269,6 +269,10 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
269
269
|
* Set the picker to autofocus on mount.
|
|
270
270
|
*/
|
|
271
271
|
autoFocus?: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Set the aria-label for the clear button
|
|
274
|
+
*/
|
|
275
|
+
clearControlLabel?: string;
|
|
272
276
|
/**
|
|
273
277
|
* The default for `isOpen`.
|
|
274
278
|
*
|
|
@@ -97,7 +97,7 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Om
|
|
|
97
97
|
onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
98
98
|
onChange: (_value: string) => void;
|
|
99
99
|
onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
100
|
-
} & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "
|
|
100
|
+
} & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "id" | "aria-describedby" | "value" | "testId" | "icon" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & Partial<Pick<Omit<{
|
|
101
101
|
defaultIsOpen: boolean;
|
|
102
102
|
defaultValue: string;
|
|
103
103
|
disabled: string[];
|
|
@@ -115,5 +115,5 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Om
|
|
|
115
115
|
onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
116
116
|
onChange: (_value: string) => void;
|
|
117
117
|
onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
118
|
-
}, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "label" | "key" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "
|
|
118
|
+
}, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "label" | "key" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "icon" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & import("react").RefAttributes<any>>;
|
|
119
119
|
export default DatePicker;
|
|
@@ -26,5 +26,5 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<DatePic
|
|
|
26
26
|
} & {
|
|
27
27
|
inputValue?: string | undefined;
|
|
28
28
|
}) | undefined;
|
|
29
|
-
}, "label" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "
|
|
29
|
+
}, "label" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "icon" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "weekStartDay" | "createAnalyticsEvent" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & import("react").RefAttributes<unknown>>;
|
|
30
30
|
export default DatePicker;
|
|
@@ -9,7 +9,7 @@ declare const DatePicker: import("react").FC<Pick<Pick<import("..").DatePickerPr
|
|
|
9
9
|
} & {
|
|
10
10
|
inputValue?: string | undefined;
|
|
11
11
|
}) | undefined;
|
|
12
|
-
}, "label" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "
|
|
12
|
+
}, "label" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "icon" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "weekStartDay" | "createAnalyticsEvent" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & import("react").RefAttributes<unknown>, "label" | "key" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "icon" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "weekStartDay" | "createAnalyticsEvent" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & Pick<Pick<Pick<Omit<{
|
|
13
13
|
defaultIsOpen: boolean;
|
|
14
14
|
defaultValue: string;
|
|
15
15
|
disabled: string[];
|
|
@@ -18,7 +18,7 @@ declare const DatePicker: import("react").FC<Pick<Pick<import("..").DatePickerPr
|
|
|
18
18
|
onBlur: (_event: import("react").FocusEvent<HTMLInputElement>) => void;
|
|
19
19
|
onChange: (_value: string) => void;
|
|
20
20
|
onFocus: (_event: import("react").FocusEvent<HTMLInputElement>) => void;
|
|
21
|
-
} & import("..").DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "
|
|
21
|
+
} & import("..").DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "id" | "aria-describedby" | "value" | "testId" | "icon" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & Partial<Pick<Omit<{
|
|
22
22
|
defaultIsOpen: boolean;
|
|
23
23
|
defaultValue: string;
|
|
24
24
|
disabled: string[];
|
|
@@ -36,5 +36,5 @@ declare const DatePicker: import("react").FC<Pick<Pick<import("..").DatePickerPr
|
|
|
36
36
|
onBlur: (_event: import("react").FocusEvent<HTMLInputElement>) => void;
|
|
37
37
|
onChange: (_value: string) => void;
|
|
38
38
|
onFocus: (_event: import("react").FocusEvent<HTMLInputElement>) => void;
|
|
39
|
-
}, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "label" | "key" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "
|
|
39
|
+
}, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "label" | "key" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "icon" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & import("react").RefAttributes<any>, "label" | "key" | "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "icon" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & import("react").RefAttributes<any>>;
|
|
40
40
|
export default DatePicker;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import { type DateTimePickerBaseProps } from '../types';
|
|
8
|
+
interface State {
|
|
9
|
+
dateValue: string;
|
|
10
|
+
isFocused: boolean;
|
|
11
|
+
timeValue: string;
|
|
12
|
+
value: string;
|
|
13
|
+
zoneValue: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const datePickerDefaultAriaLabel = "Date";
|
|
16
|
+
export declare const timePickerDefaultAriaLabel = "Time";
|
|
17
|
+
declare class DateTimePickerComponent extends React.Component<DateTimePickerBaseProps, State> {
|
|
18
|
+
static defaultProps: DateTimePickerBaseProps;
|
|
19
|
+
state: State;
|
|
20
|
+
getParsedValues: () => {
|
|
21
|
+
dateValue: string;
|
|
22
|
+
timeValue: string;
|
|
23
|
+
zoneValue: string;
|
|
24
|
+
};
|
|
25
|
+
getValue: () => string;
|
|
26
|
+
parseValue(value: string, dateValue: string, timeValue: string, zoneValue: string): {
|
|
27
|
+
dateValue: string;
|
|
28
|
+
timeValue: string;
|
|
29
|
+
zoneValue: string;
|
|
30
|
+
};
|
|
31
|
+
onDateBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
32
|
+
onTimeBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
33
|
+
onDateFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
34
|
+
onTimeFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
35
|
+
onDateChange: (dateValue: string) => void;
|
|
36
|
+
onTimeChange: (timeValue: string) => void;
|
|
37
|
+
onClear: () => void;
|
|
38
|
+
onValueChange({ dateValue, timeValue, zoneValue, }: {
|
|
39
|
+
dateValue: string;
|
|
40
|
+
timeValue: string;
|
|
41
|
+
zoneValue: string;
|
|
42
|
+
}): void;
|
|
43
|
+
render(): jsx.JSX.Element;
|
|
44
|
+
}
|
|
45
|
+
export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
|
|
46
|
+
/**
|
|
47
|
+
* __Date time picker__
|
|
48
|
+
*
|
|
49
|
+
* A date time picker allows the user to select an associated date and time.
|
|
50
|
+
*
|
|
51
|
+
* - [Examples](https://atlassian.design/components/datetime-picker/examples)
|
|
52
|
+
* - [Code](https://atlassian.design/components/datetime-picker/code)
|
|
53
|
+
* - [Usage](https://atlassian.design/components/datetime-picker/usage)
|
|
54
|
+
*/
|
|
55
|
+
declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<DateTimePickerBaseProps, "ref" | "createAnalyticsEvent">>, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any>>;
|
|
56
|
+
export default DateTimePicker;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { type DateTimePickerBaseProps } from '../types';
|
|
7
|
+
export declare const datePickerDefaultAriaLabel = "Date";
|
|
8
|
+
export declare const timePickerDefaultAriaLabel = "Time";
|
|
9
|
+
/**
|
|
10
|
+
* __Date time picker__
|
|
11
|
+
*
|
|
12
|
+
* A date time picker allows the user to select an associated date and time.
|
|
13
|
+
*
|
|
14
|
+
* - [Examples](https://atlassian.design/components/datetime-picker/examples)
|
|
15
|
+
* - [Code](https://atlassian.design/components/datetime-picker/code)
|
|
16
|
+
* - [Usage](https://atlassian.design/components/datetime-picker/usage)
|
|
17
|
+
*/
|
|
18
|
+
declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<DateTimePickerBaseProps, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<unknown>>;
|
|
19
|
+
export default DateTimePicker;
|
|
@@ -1,56 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import { type DateTimePickerBaseProps } from '../types';
|
|
8
|
-
interface State {
|
|
9
|
-
dateValue: string;
|
|
10
|
-
isFocused: boolean;
|
|
11
|
-
timeValue: string;
|
|
12
|
-
value: string;
|
|
13
|
-
zoneValue: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const datePickerDefaultAriaLabel = "Date";
|
|
16
|
-
export declare const timePickerDefaultAriaLabel = "Time";
|
|
17
|
-
declare class DateTimePickerComponent extends React.Component<DateTimePickerBaseProps, State> {
|
|
18
|
-
static defaultProps: DateTimePickerBaseProps;
|
|
19
|
-
state: State;
|
|
20
|
-
getParsedValues: () => {
|
|
21
|
-
dateValue: string;
|
|
22
|
-
timeValue: string;
|
|
23
|
-
zoneValue: string;
|
|
24
|
-
};
|
|
25
|
-
getValue: () => string;
|
|
26
|
-
parseValue(value: string, dateValue: string, timeValue: string, zoneValue: string): {
|
|
27
|
-
dateValue: string;
|
|
28
|
-
timeValue: string;
|
|
29
|
-
zoneValue: string;
|
|
30
|
-
};
|
|
31
|
-
onDateBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
32
|
-
onTimeBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
33
|
-
onDateFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
34
|
-
onTimeFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
35
|
-
onDateChange: (dateValue: string) => void;
|
|
36
|
-
onTimeChange: (timeValue: string) => void;
|
|
37
|
-
onClear: () => void;
|
|
38
|
-
onValueChange({ dateValue, timeValue, zoneValue, }: {
|
|
39
|
-
dateValue: string;
|
|
40
|
-
timeValue: string;
|
|
41
|
-
zoneValue: string;
|
|
42
|
-
}): void;
|
|
43
|
-
render(): jsx.JSX.Element;
|
|
44
|
-
}
|
|
45
|
-
export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
|
|
46
|
-
/**
|
|
47
|
-
* __Date time picker__
|
|
48
|
-
*
|
|
49
|
-
* A date time picker allows the user to select an associated date and time.
|
|
50
|
-
*
|
|
51
|
-
* - [Examples](https://atlassian.design/components/datetime-picker/examples)
|
|
52
|
-
* - [Code](https://atlassian.design/components/datetime-picker/code)
|
|
53
|
-
* - [Usage](https://atlassian.design/components/datetime-picker/usage)
|
|
54
|
-
*/
|
|
55
|
-
declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<DateTimePickerBaseProps, "ref" | "createAnalyticsEvent">>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DateTimePicker: import("react").FC<Pick<Pick<import("..").DateTimePickerProps, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & import("react").RefAttributes<unknown>, "key" | "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & Pick<Pick<Pick<Pick<Omit<import("..").DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<import("..").DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<import("..").DateTimePickerProps, "ref" | "createAnalyticsEvent">>, "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & import("react").RefAttributes<any>, "key" | "appearance" | "isDisabled" | "innerProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "datePickerProps" | "timePickerProps" | "parseValue"> & import("react").RefAttributes<any>>;
|
|
56
3
|
export default DateTimePicker;
|
|
@@ -9,5 +9,5 @@ import { type TimePickerBaseProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/datetime-picker/time-picker/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/datetime-picker/time-picker/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const TimePicker: React.ForwardRefExoticComponent<Pick<TimePickerBaseProps, "times" | "label" | "parseInputValue" | "formatDisplayLabel" | "placeholder" | "
|
|
12
|
+
declare const TimePicker: React.ForwardRefExoticComponent<Pick<TimePickerBaseProps, "times" | "label" | "parseInputValue" | "formatDisplayLabel" | "placeholder" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "value" | "testId" | "locale" | "createAnalyticsEvent" | "autoFocus" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<unknown>>;
|
|
13
13
|
export default TimePicker;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type Appearance } from '../types';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
export declare const DateTimePickerContainer: ({ isDisabled, isFocused, appearance, isInvalid, innerProps, testId, children, }: {
|
|
3
|
+
type DateTimePickerContainerProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
11
5
|
isDisabled: boolean;
|
|
12
6
|
isFocused: boolean;
|
|
13
7
|
appearance: Appearance;
|
|
14
8
|
isInvalid: boolean;
|
|
15
9
|
innerProps: React.AllHTMLAttributes<HTMLElement>;
|
|
16
|
-
testId?: string
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* This is the container for the datetime picker component.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DateTimePickerContainer: import("react").ForwardRefExoticComponent<DateTimePickerContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type IndicatorsContainerProps } from '@atlaskit/select';
|
|
7
|
+
export declare const IndicatorsContainer: ({ showClearIndicator, ...rest }: IndicatorsContainerProps<any, boolean, import("@atlaskit/select").GroupType<any>> & {
|
|
8
|
+
showClearIndicator?: boolean | undefined;
|
|
9
|
+
}) => jsx.JSX.Element;
|
|
@@ -269,6 +269,10 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
|
|
|
269
269
|
* Set the picker to autofocus on mount.
|
|
270
270
|
*/
|
|
271
271
|
autoFocus?: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Set the aria-label for the clear button
|
|
274
|
+
*/
|
|
275
|
+
clearControlLabel?: string;
|
|
272
276
|
/**
|
|
273
277
|
* The default for `isOpen`.
|
|
274
278
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.5.1",
|
|
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/"
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
39
39
|
"@atlaskit/calendar": "^15.0.0",
|
|
40
40
|
"@atlaskit/ds-lib": "^3.1.0",
|
|
41
|
-
"@atlaskit/icon": "^22.
|
|
41
|
+
"@atlaskit/icon": "^22.24.0",
|
|
42
42
|
"@atlaskit/layering": "^0.7.0",
|
|
43
43
|
"@atlaskit/locale": "^2.8.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
45
45
|
"@atlaskit/popper": "^6.3.0",
|
|
46
46
|
"@atlaskit/primitives": "^12.2.0",
|
|
47
|
-
"@atlaskit/select": "^18.
|
|
47
|
+
"@atlaskit/select": "^18.3.0",
|
|
48
48
|
"@atlaskit/theme": "^14.0.0",
|
|
49
49
|
"@atlaskit/tokens": "^2.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"@af/accessibility-testing": "*",
|
|
60
60
|
"@af/integration-testing": "*",
|
|
61
61
|
"@af/visual-regression": "*",
|
|
62
|
-
"@atlaskit/button": "^20.
|
|
62
|
+
"@atlaskit/button": "^20.3.0",
|
|
63
63
|
"@atlaskit/codemod-utils": "4.2.4",
|
|
64
64
|
"@atlaskit/docs": "*",
|
|
65
65
|
"@atlaskit/form": "^10.5.0",
|
|
66
66
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
67
|
-
"@atlaskit/popup": "^1.
|
|
67
|
+
"@atlaskit/popup": "^1.29.0",
|
|
68
68
|
"@atlaskit/range": "^7.4.0",
|
|
69
69
|
"@atlaskit/section-message": "^6.6.0",
|
|
70
70
|
"@atlaskit/ssr": "*",
|
|
@@ -103,6 +103,9 @@
|
|
|
103
103
|
"platform-feature-flags": {
|
|
104
104
|
"dst-date-picker-use-functional-component": {
|
|
105
105
|
"type": "boolean"
|
|
106
|
+
},
|
|
107
|
+
"dst-date-time-picker-use-functional-component": {
|
|
108
|
+
"type": "boolean"
|
|
106
109
|
}
|
|
107
110
|
},
|
|
108
111
|
"homepage": "https://atlassian.design/components/datetime-picker/"
|