@atlaskit/datetime-picker 11.1.0 → 11.1.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 +6 -0
- package/dist/cjs/components/DatePicker.js +3 -3
- package/dist/cjs/components/DateTimePicker.js +1 -1
- package/dist/cjs/components/TimePicker.js +3 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/DatePicker.js +2 -2
- package/dist/es2019/components/DateTimePicker.js +1 -1
- package/dist/es2019/components/TimePicker.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/DatePicker.js +3 -3
- package/dist/esm/components/DateTimePicker.js +1 -1
- package/dist/esm/components/TimePicker.js +3 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/components/DatePicker.d.ts +1 -1
- package/dist/types/components/TimePicker.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -70,7 +70,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
70
70
|
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; } }
|
|
71
71
|
|
|
72
72
|
var packageName = "@atlaskit/datetime-picker";
|
|
73
|
-
var packageVersion = "11.1.
|
|
73
|
+
var packageVersion = "11.1.1";
|
|
74
74
|
/* eslint-disable react/no-unused-prop-types */
|
|
75
75
|
|
|
76
76
|
function getDateObj(date) {
|
|
@@ -447,8 +447,8 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
(0, _createClass2.default)(DatePicker, [{
|
|
450
|
-
key: "
|
|
451
|
-
value: function
|
|
450
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
451
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
452
452
|
if (this.props.locale !== nextProps.locale) {
|
|
453
453
|
this.setState({
|
|
454
454
|
l10n: (0, _locale.createLocalizationProvider)(nextProps.locale)
|
|
@@ -60,7 +60,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
60
60
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
61
61
|
|
|
62
62
|
var packageName = "@atlaskit/datetime-picker";
|
|
63
|
-
var packageVersion = "11.1.
|
|
63
|
+
var packageVersion = "11.1.1";
|
|
64
64
|
/* eslint-disable react/no-unused-prop-types */
|
|
65
65
|
|
|
66
66
|
var isInvalidBorderStyles = (0, _core.css)({
|
|
@@ -66,7 +66,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
66
66
|
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; } }
|
|
67
67
|
|
|
68
68
|
var packageName = "@atlaskit/datetime-picker";
|
|
69
|
-
var packageVersion = "11.1.
|
|
69
|
+
var packageVersion = "11.1.1";
|
|
70
70
|
var menuStyles = {
|
|
71
71
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
72
72
|
position: 'static',
|
|
@@ -284,8 +284,8 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
(0, _createClass2.default)(TimePicker, [{
|
|
287
|
-
key: "
|
|
288
|
-
value: function
|
|
287
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
288
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
289
289
|
if (this.props.locale !== nextProps.locale) {
|
|
290
290
|
this.setState({
|
|
291
291
|
l10n: (0, _locale.createLocalizationProvider)(nextProps.locale)
|
package/dist/cjs/version.json
CHANGED
|
@@ -19,7 +19,7 @@ import { defaultDateFormat, EmptyClearIndicator, padToTwo, placeholderDatetime }
|
|
|
19
19
|
import FixedLayer from '../internal/FixedLayer';
|
|
20
20
|
import { convertTokens } from './utils';
|
|
21
21
|
const packageName = "@atlaskit/datetime-picker";
|
|
22
|
-
const packageVersion = "11.1.
|
|
22
|
+
const packageVersion = "11.1.1";
|
|
23
23
|
/* eslint-disable react/no-unused-prop-types */
|
|
24
24
|
|
|
25
25
|
function getDateObj(date) {
|
|
@@ -398,7 +398,7 @@ class DatePicker extends Component {
|
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
|
|
401
|
+
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
402
402
|
if (this.props.locale !== nextProps.locale) {
|
|
403
403
|
this.setState({
|
|
404
404
|
l10n: createLocalizationProvider(nextProps.locale)
|
|
@@ -18,7 +18,7 @@ import DatePicker from './DatePicker';
|
|
|
18
18
|
import TimePicker from './TimePicker';
|
|
19
19
|
import { convertTokens } from './utils';
|
|
20
20
|
const packageName = "@atlaskit/datetime-picker";
|
|
21
|
-
const packageVersion = "11.1.
|
|
21
|
+
const packageVersion = "11.1.1";
|
|
22
22
|
/* eslint-disable react/no-unused-prop-types */
|
|
23
23
|
|
|
24
24
|
const isInvalidBorderStyles = css({
|
|
@@ -15,7 +15,7 @@ import FixedLayer from '../internal/FixedLayer';
|
|
|
15
15
|
import parseTime from '../internal/parseTime';
|
|
16
16
|
import { convertTokens } from './utils';
|
|
17
17
|
const packageName = "@atlaskit/datetime-picker";
|
|
18
|
-
const packageVersion = "11.1.
|
|
18
|
+
const packageVersion = "11.1.1";
|
|
19
19
|
const menuStyles = {
|
|
20
20
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
21
21
|
position: 'static',
|
|
@@ -231,7 +231,7 @@ class TimePicker extends React.Component {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
235
235
|
if (this.props.locale !== nextProps.locale) {
|
|
236
236
|
this.setState({
|
|
237
237
|
l10n: createLocalizationProvider(nextProps.locale)
|
package/dist/es2019/version.json
CHANGED
|
@@ -34,7 +34,7 @@ import { defaultDateFormat, EmptyClearIndicator, padToTwo, placeholderDatetime }
|
|
|
34
34
|
import FixedLayer from '../internal/FixedLayer';
|
|
35
35
|
import { convertTokens } from './utils';
|
|
36
36
|
var packageName = "@atlaskit/datetime-picker";
|
|
37
|
-
var packageVersion = "11.1.
|
|
37
|
+
var packageVersion = "11.1.1";
|
|
38
38
|
/* eslint-disable react/no-unused-prop-types */
|
|
39
39
|
|
|
40
40
|
function getDateObj(date) {
|
|
@@ -432,8 +432,8 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
_createClass(DatePicker, [{
|
|
435
|
-
key: "
|
|
436
|
-
value: function
|
|
435
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
436
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
437
437
|
if (this.props.locale !== nextProps.locale) {
|
|
438
438
|
this.setState({
|
|
439
439
|
l10n: createLocalizationProvider(nextProps.locale)
|
|
@@ -32,7 +32,7 @@ import DatePicker from './DatePicker';
|
|
|
32
32
|
import TimePicker from './TimePicker';
|
|
33
33
|
import { convertTokens } from './utils';
|
|
34
34
|
var packageName = "@atlaskit/datetime-picker";
|
|
35
|
-
var packageVersion = "11.1.
|
|
35
|
+
var packageVersion = "11.1.1";
|
|
36
36
|
/* eslint-disable react/no-unused-prop-types */
|
|
37
37
|
|
|
38
38
|
var isInvalidBorderStyles = css({
|
|
@@ -31,7 +31,7 @@ import FixedLayer from '../internal/FixedLayer';
|
|
|
31
31
|
import parseTime from '../internal/parseTime';
|
|
32
32
|
import { convertTokens } from './utils';
|
|
33
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "11.1.
|
|
34
|
+
var packageVersion = "11.1.1";
|
|
35
35
|
var menuStyles = {
|
|
36
36
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
37
37
|
position: 'static',
|
|
@@ -265,8 +265,8 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
_createClass(TimePicker, [{
|
|
268
|
-
key: "
|
|
269
|
-
value: function
|
|
268
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
269
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
270
270
|
if (this.props.locale !== nextProps.locale) {
|
|
271
271
|
this.setState({
|
|
272
272
|
l10n: createLocalizationProvider(nextProps.locale)
|
package/dist/esm/version.json
CHANGED
|
@@ -159,7 +159,7 @@ declare class DatePicker extends Component<DatePickerProps, State> {
|
|
|
159
159
|
calendarRef: CalendarRef | null;
|
|
160
160
|
containerRef: HTMLElement | null;
|
|
161
161
|
constructor(props: any);
|
|
162
|
-
|
|
162
|
+
UNSAFE_componentWillReceiveProps(nextProps: Readonly<DatePickerProps>): void;
|
|
163
163
|
getSafeState: () => {
|
|
164
164
|
inputValue: any;
|
|
165
165
|
isOpen: boolean;
|
|
@@ -135,7 +135,7 @@ declare class TimePicker extends React.Component<TimePickerProps, State> {
|
|
|
135
135
|
isFocused: boolean;
|
|
136
136
|
l10n: LocalizationProvider;
|
|
137
137
|
};
|
|
138
|
-
|
|
138
|
+
UNSAFE_componentWillReceiveProps(nextProps: TimePickerProps): void;
|
|
139
139
|
getSafeState: () => State;
|
|
140
140
|
getOptions(): Array<Option>;
|
|
141
141
|
onChange: (v: {
|
package/package.json
CHANGED