@atlaskit/datetime-picker 11.1.8 → 11.1.9
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 +6 -0
- package/dist/cjs/components/DatePicker.js +1 -1
- package/dist/cjs/components/DateTimePicker.js +1 -1
- package/dist/cjs/components/TimePicker.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/DatePicker.js +1 -1
- package/dist/es2019/components/DateTimePicker.js +1 -1
- package/dist/es2019/components/TimePicker.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/DatePicker.js +1 -1
- package/dist/esm/components/DateTimePicker.js +1 -1
- package/dist/esm/components/TimePicker.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/DatePicker.d.ts +5 -5
- package/dist/types/components/DateTimePicker.d.ts +1 -1
- package/dist/types/components/TimePicker.d.ts +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -68,7 +68,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
68
68
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
69
69
|
|
|
70
70
|
var packageName = "@atlaskit/datetime-picker";
|
|
71
|
-
var packageVersion = "11.1.
|
|
71
|
+
var packageVersion = "11.1.9";
|
|
72
72
|
/* eslint-disable react/no-unused-prop-types */
|
|
73
73
|
|
|
74
74
|
function getDateObj(date) {
|
|
@@ -58,7 +58,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
58
58
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
59
59
|
|
|
60
60
|
var packageName = "@atlaskit/datetime-picker";
|
|
61
|
-
var packageVersion = "11.1.
|
|
61
|
+
var packageVersion = "11.1.9";
|
|
62
62
|
/* eslint-disable react/no-unused-prop-types */
|
|
63
63
|
|
|
64
64
|
var isInvalidBorderStyles = (0, _core.css)({
|
|
@@ -67,7 +67,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
67
67
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
68
68
|
|
|
69
69
|
var packageName = "@atlaskit/datetime-picker";
|
|
70
|
-
var packageVersion = "11.1.
|
|
70
|
+
var packageVersion = "11.1.9";
|
|
71
71
|
var menuStyles = {
|
|
72
72
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
73
73
|
position: 'static',
|
package/dist/cjs/version.json
CHANGED
|
@@ -18,7 +18,7 @@ import { defaultDateFormat, EmptyClearIndicator, padToTwo, placeholderDatetime }
|
|
|
18
18
|
import FixedLayer from '../internal/FixedLayer';
|
|
19
19
|
import { convertTokens } from './utils';
|
|
20
20
|
const packageName = "@atlaskit/datetime-picker";
|
|
21
|
-
const packageVersion = "11.1.
|
|
21
|
+
const packageVersion = "11.1.9";
|
|
22
22
|
/* eslint-disable react/no-unused-prop-types */
|
|
23
23
|
|
|
24
24
|
function getDateObj(date) {
|
|
@@ -17,7 +17,7 @@ import DatePicker from './DatePicker';
|
|
|
17
17
|
import TimePicker from './TimePicker';
|
|
18
18
|
import { convertTokens } from './utils';
|
|
19
19
|
const packageName = "@atlaskit/datetime-picker";
|
|
20
|
-
const packageVersion = "11.1.
|
|
20
|
+
const packageVersion = "11.1.9";
|
|
21
21
|
/* eslint-disable react/no-unused-prop-types */
|
|
22
22
|
|
|
23
23
|
const isInvalidBorderStyles = css({
|
|
@@ -14,7 +14,7 @@ import FixedLayer from '../internal/FixedLayer';
|
|
|
14
14
|
import parseTime from '../internal/parseTime';
|
|
15
15
|
import { convertTokens } from './utils';
|
|
16
16
|
const packageName = "@atlaskit/datetime-picker";
|
|
17
|
-
const packageVersion = "11.1.
|
|
17
|
+
const packageVersion = "11.1.9";
|
|
18
18
|
const menuStyles = {
|
|
19
19
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
20
20
|
position: 'static',
|
package/dist/es2019/version.json
CHANGED
|
@@ -33,7 +33,7 @@ import { defaultDateFormat, EmptyClearIndicator, padToTwo, placeholderDatetime }
|
|
|
33
33
|
import FixedLayer from '../internal/FixedLayer';
|
|
34
34
|
import { convertTokens } from './utils';
|
|
35
35
|
var packageName = "@atlaskit/datetime-picker";
|
|
36
|
-
var packageVersion = "11.1.
|
|
36
|
+
var packageVersion = "11.1.9";
|
|
37
37
|
/* eslint-disable react/no-unused-prop-types */
|
|
38
38
|
|
|
39
39
|
function getDateObj(date) {
|
|
@@ -31,7 +31,7 @@ import DatePicker from './DatePicker';
|
|
|
31
31
|
import TimePicker from './TimePicker';
|
|
32
32
|
import { convertTokens } from './utils';
|
|
33
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "11.1.
|
|
34
|
+
var packageVersion = "11.1.9";
|
|
35
35
|
/* eslint-disable react/no-unused-prop-types */
|
|
36
36
|
|
|
37
37
|
var isInvalidBorderStyles = css({
|
|
@@ -32,7 +32,7 @@ import FixedLayer from '../internal/FixedLayer';
|
|
|
32
32
|
import parseTime from '../internal/parseTime';
|
|
33
33
|
import { convertTokens } from './utils';
|
|
34
34
|
var packageName = "@atlaskit/datetime-picker";
|
|
35
|
-
var packageVersion = "11.1.
|
|
35
|
+
var packageVersion = "11.1.9";
|
|
36
36
|
var menuStyles = {
|
|
37
37
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
38
38
|
position: 'static',
|
package/dist/esm/version.json
CHANGED
|
@@ -3,7 +3,7 @@ import { Component } from 'react';
|
|
|
3
3
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
4
|
import { CalendarRef } from '@atlaskit/calendar';
|
|
5
5
|
import { LocalizationProvider } from '@atlaskit/locale';
|
|
6
|
-
import { ActionMeta, IndicatorComponentType, OptionType, ValueType } from '@atlaskit/select';
|
|
6
|
+
import { ActionMeta, IndicatorComponentType, IndicatorProps, OptionType, ValueType } from '@atlaskit/select';
|
|
7
7
|
import { Appearance, SelectProps, Spacing } from '../types';
|
|
8
8
|
export interface Props extends WithAnalyticsEventsProps {
|
|
9
9
|
/**
|
|
@@ -121,7 +121,7 @@ declare const datePickerDefaultProps: {
|
|
|
121
121
|
disabled: string[];
|
|
122
122
|
disabledDateFilter: (_: string) => boolean;
|
|
123
123
|
hideIcon: boolean;
|
|
124
|
-
icon: import("react").ComponentType<
|
|
124
|
+
icon: import("react").ComponentType<IndicatorProps<OptionType, false>>;
|
|
125
125
|
id: string;
|
|
126
126
|
innerProps: {};
|
|
127
127
|
isDisabled: boolean;
|
|
@@ -143,7 +143,7 @@ declare class DatePicker extends Component<DatePickerProps, State> {
|
|
|
143
143
|
disabled: string[];
|
|
144
144
|
disabledDateFilter: (_: string) => boolean;
|
|
145
145
|
hideIcon: boolean;
|
|
146
|
-
icon: import("react").ComponentType<
|
|
146
|
+
icon: import("react").ComponentType<IndicatorProps<OptionType, false>>;
|
|
147
147
|
id: string;
|
|
148
148
|
innerProps: {};
|
|
149
149
|
isDisabled: boolean;
|
|
@@ -210,7 +210,7 @@ declare class DatePicker extends Component<DatePickerProps, State> {
|
|
|
210
210
|
render(): JSX.Element;
|
|
211
211
|
}
|
|
212
212
|
export { DatePicker as DatePickerWithoutAnalytics };
|
|
213
|
-
declare const _default: import("react").ForwardRefExoticComponent<Pick<Pick<
|
|
213
|
+
declare const _default: import("react").ForwardRefExoticComponent<Pick<Pick<Omit<DatePickerProps, keyof WithAnalyticsEventsProps>, "testId" | "maxDate" | "minDate" | "isOpen" | "parseInputValue" | "formatDisplayLabel" | "value" | "dateFormat" | "placeholder" | "weekStartDay"> & Partial<Pick<Omit<DatePickerProps, keyof WithAnalyticsEventsProps>, "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "disabledDateFilter" | "hideIcon" | "id" | "isDisabled" | "isInvalid" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "locale">> & Partial<Pick<{
|
|
214
214
|
appearance: Appearance;
|
|
215
215
|
autoFocus: boolean;
|
|
216
216
|
defaultIsOpen: boolean;
|
|
@@ -218,7 +218,7 @@ declare const _default: import("react").ForwardRefExoticComponent<Pick<Pick<Pick
|
|
|
218
218
|
disabled: string[];
|
|
219
219
|
disabledDateFilter: (_: string) => boolean;
|
|
220
220
|
hideIcon: boolean;
|
|
221
|
-
icon: import("react").ComponentType<
|
|
221
|
+
icon: import("react").ComponentType<IndicatorProps<OptionType, false>>;
|
|
222
222
|
id: string;
|
|
223
223
|
innerProps: {};
|
|
224
224
|
isDisabled: boolean;
|
|
@@ -155,7 +155,7 @@ declare class DateTimePicker extends React.Component<DateTimePickerProps, State>
|
|
|
155
155
|
render(): JSX.Element;
|
|
156
156
|
}
|
|
157
157
|
export { DateTimePicker as DateTimePickerWithoutAnalytics };
|
|
158
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<
|
|
158
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<DateTimePickerProps, keyof WithAnalyticsEventsProps>, "testId" | "hideIcon" | "value" | "dateFormat" | "timeFormat" | "parseValue"> & Partial<Pick<Omit<DateTimePickerProps, keyof WithAnalyticsEventsProps>, "appearance" | "innerProps" | "autoFocus" | "defaultValue" | "id" | "isDisabled" | "isInvalid" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "locale" | "times" | "timeIsEditable" | "datePickerProps" | "timePickerProps" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<{
|
|
159
159
|
appearance: string;
|
|
160
160
|
autoFocus: boolean;
|
|
161
161
|
isDisabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
3
|
import { LocalizationProvider } from '@atlaskit/locale';
|
|
4
|
-
import { OptionType, SelectProps, StylesConfig } from '@atlaskit/select';
|
|
4
|
+
import { ActionMeta, OptionType, SelectProps, StylesConfig } from '@atlaskit/select';
|
|
5
5
|
import { Appearance, Spacing } from '../types';
|
|
6
6
|
interface Option {
|
|
7
7
|
label: string;
|
|
@@ -140,7 +140,7 @@ declare class TimePicker extends React.Component<TimePickerProps, State> {
|
|
|
140
140
|
getOptions(): Array<Option>;
|
|
141
141
|
onChange: (v: {
|
|
142
142
|
value: string;
|
|
143
|
-
} | null, action?:
|
|
143
|
+
} | null, action?: ActionMeta<OptionType> | undefined) => void;
|
|
144
144
|
/** Only allow custom times if timeIsEditable prop is true */
|
|
145
145
|
onCreateOption: (inputValue: any) => void;
|
|
146
146
|
onMenuOpen: () => void;
|
|
@@ -170,7 +170,7 @@ declare class TimePicker extends React.Component<TimePickerProps, State> {
|
|
|
170
170
|
render(): JSX.Element;
|
|
171
171
|
}
|
|
172
172
|
export { TimePicker as TimePickerWithoutAnalytics };
|
|
173
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<
|
|
173
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePickerProps, keyof WithAnalyticsEventsProps>, "testId" | "isOpen" | "formatDisplayLabel" | "value" | "placeholder" | "timeFormat"> & Partial<Pick<Omit<TimePickerProps, keyof WithAnalyticsEventsProps>, "appearance" | "selectProps" | "innerProps" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "hideIcon" | "id" | "isDisabled" | "isInvalid" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "locale" | "parseInputValue" | "times" | "timeIsEditable">> & Partial<Pick<{
|
|
174
174
|
appearance: Appearance;
|
|
175
175
|
autoFocus: boolean;
|
|
176
176
|
defaultIsOpen: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.9",
|
|
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,7 +41,7 @@
|
|
|
41
41
|
"react": "^16.8.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@atlaskit/button": "^16.
|
|
44
|
+
"@atlaskit/button": "^16.3.0",
|
|
45
45
|
"@atlaskit/docs": "*",
|
|
46
46
|
"@atlaskit/field-base": "^15.0.5",
|
|
47
47
|
"@atlaskit/form": "^8.5.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"react-dom": "^16.8.0",
|
|
63
63
|
"react-lorem-component": "^0.13.0",
|
|
64
64
|
"react-test-renderer": "^16.8.0",
|
|
65
|
-
"typescript": "
|
|
65
|
+
"typescript": "4.2.4"
|
|
66
66
|
},
|
|
67
67
|
"techstack": {
|
|
68
68
|
"@atlassian/frontend": {
|