@atlaskit/datetime-picker 13.0.7 → 13.0.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 +12 -0
- package/dist/cjs/components/date-picker.js +15 -6
- package/dist/cjs/components/date-time-picker.js +2 -2
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/es2019/components/date-picker.js +15 -6
- package/dist/es2019/components/date-time-picker.js +2 -2
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/esm/components/date-picker.js +15 -6
- package/dist/esm/components/date-time-picker.js +2 -2
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/types/components/date-picker.d.ts +8 -8
- package/dist/types-ts4.5/components/date-picker.d.ts +8 -8
- package/package.json +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 13.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#74756](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74756) [`8e66f751df96`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e66f751df96) - Use feature flag to roll out border width update from 2px to 1px
|
|
8
|
+
|
|
9
|
+
## 13.0.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#70959](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70959) [`689672b7c5b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/689672b7c5b0) - [ux] Returns focus to input after pressing `Esc` when inside the calendar popup in a date picker.
|
|
14
|
+
|
|
3
15
|
## 13.0.7
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -39,7 +39,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
39
39
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
40
40
|
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; } } /** @jsx jsx */
|
|
41
41
|
var packageName = "@atlaskit/datetime-picker";
|
|
42
|
-
var packageVersion = "13.0.
|
|
42
|
+
var packageVersion = "13.0.9";
|
|
43
43
|
function getValidDate(iso) {
|
|
44
44
|
var date = (0, _dateFns.parseISO)(iso);
|
|
45
45
|
return (0, _dateFns.isValid)(date) ? {
|
|
@@ -243,12 +243,21 @@ var DatePicker = exports.DatePickerWithoutAnalytics = /*#__PURE__*/function (_Co
|
|
|
243
243
|
return calendarValue;
|
|
244
244
|
});
|
|
245
245
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onInputKeyDown", function (event) {
|
|
246
|
+
var _this$containerRef3;
|
|
246
247
|
var _this$getSafeState2 = _this.getSafeState(),
|
|
247
248
|
value = _this$getSafeState2.value,
|
|
248
249
|
calendarValue = _this$getSafeState2.calendarValue;
|
|
249
250
|
var keyPressed = event.key.toLowerCase();
|
|
250
251
|
switch (keyPressed) {
|
|
251
252
|
case 'escape':
|
|
253
|
+
// Yes, this is not ideal. The alternative is to be able to place a ref
|
|
254
|
+
// on the inner input of Select itself, which would require a lot of
|
|
255
|
+
// extra stuff in the Select component for only this one thing. While
|
|
256
|
+
// this would be more "React-y", it doesn't seem to pose any other
|
|
257
|
+
// benefits. Performance-wise, we are only searching within the
|
|
258
|
+
// container, so it's quick.
|
|
259
|
+
var innerCombobox = (_this$containerRef3 = _this.containerRef) === null || _this$containerRef3 === void 0 ? void 0 : _this$containerRef3.querySelector('[role="combobox"]');
|
|
260
|
+
innerCombobox === null || innerCombobox === void 0 || innerCombobox.focus();
|
|
252
261
|
_this.setState({
|
|
253
262
|
isOpen: false
|
|
254
263
|
});
|
|
@@ -340,8 +349,8 @@ var DatePicker = exports.DatePickerWithoutAnalytics = /*#__PURE__*/function (_Co
|
|
|
340
349
|
/**
|
|
341
350
|
* There are two props that can change how the date is parsed.
|
|
342
351
|
* The priority of props used is:
|
|
343
|
-
* 1. parseInputValue
|
|
344
|
-
* 2. locale
|
|
352
|
+
* 1. `parseInputValue`
|
|
353
|
+
* 2. `locale`
|
|
345
354
|
*/
|
|
346
355
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "parseDate", function (date) {
|
|
347
356
|
var _this$props = _this.props,
|
|
@@ -357,9 +366,9 @@ var DatePicker = exports.DatePickerWithoutAnalytics = /*#__PURE__*/function (_Co
|
|
|
357
366
|
/**
|
|
358
367
|
* There are multiple props that can change how the date is formatted.
|
|
359
368
|
* The priority of props used is:
|
|
360
|
-
* 1. formatDisplayLabel
|
|
361
|
-
* 2. dateFormat
|
|
362
|
-
* 3. locale
|
|
369
|
+
* 1. `formatDisplayLabel`
|
|
370
|
+
* 2. `dateFormat`
|
|
371
|
+
* 3. `locale`
|
|
363
372
|
*/
|
|
364
373
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "formatDate", function (value) {
|
|
365
374
|
var _this$props2 = _this.props,
|
|
@@ -31,7 +31,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
31
31
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
32
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
33
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "13.0.
|
|
34
|
+
var packageVersion = "13.0.9";
|
|
35
35
|
var isInvalidBorderStyles = (0, _react2.css)({
|
|
36
36
|
borderColor: "var(--ds-border-danger, ".concat(_colors.R400, ")")
|
|
37
37
|
});
|
|
@@ -77,7 +77,7 @@ var isDisabledStyles = (0, _react2.css)({
|
|
|
77
77
|
var baseContainerStyles = (0, _react2.css)({
|
|
78
78
|
display: 'flex',
|
|
79
79
|
backgroundColor: "var(--ds-background-input, ".concat(_colors.N20, ")"),
|
|
80
|
-
border: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-
|
|
80
|
+
border: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-input, ".concat(_colors.N100, ")")) : "2px solid ".concat("var(--ds-border-input, ".concat(_colors.N20, ")")),
|
|
81
81
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
82
82
|
transition: 'background-color 200ms ease-in-out, border-color 200ms ease-in-out',
|
|
83
83
|
'&:hover': {
|
|
@@ -37,7 +37,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
37
37
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
38
38
|
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; } }
|
|
39
39
|
var packageName = "@atlaskit/datetime-picker";
|
|
40
|
-
var packageVersion = "13.0.
|
|
40
|
+
var packageVersion = "13.0.9";
|
|
41
41
|
var menuStyles = {
|
|
42
42
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
43
43
|
position: 'static',
|
|
@@ -19,7 +19,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
19
19
|
import { makeSingleValue } from '../internal/single-value';
|
|
20
20
|
import { convertTokens } from './utils';
|
|
21
21
|
const packageName = "@atlaskit/datetime-picker";
|
|
22
|
-
const packageVersion = "13.0.
|
|
22
|
+
const packageVersion = "13.0.9";
|
|
23
23
|
function getValidDate(iso) {
|
|
24
24
|
const date = parseISO(iso);
|
|
25
25
|
return isValid(date) ? {
|
|
@@ -220,6 +220,7 @@ class DatePicker extends Component {
|
|
|
220
220
|
return calendarValue;
|
|
221
221
|
});
|
|
222
222
|
_defineProperty(this, "onInputKeyDown", event => {
|
|
223
|
+
var _this$containerRef3;
|
|
223
224
|
const {
|
|
224
225
|
value,
|
|
225
226
|
calendarValue
|
|
@@ -227,6 +228,14 @@ class DatePicker extends Component {
|
|
|
227
228
|
const keyPressed = event.key.toLowerCase();
|
|
228
229
|
switch (keyPressed) {
|
|
229
230
|
case 'escape':
|
|
231
|
+
// Yes, this is not ideal. The alternative is to be able to place a ref
|
|
232
|
+
// on the inner input of Select itself, which would require a lot of
|
|
233
|
+
// extra stuff in the Select component for only this one thing. While
|
|
234
|
+
// this would be more "React-y", it doesn't seem to pose any other
|
|
235
|
+
// benefits. Performance-wise, we are only searching within the
|
|
236
|
+
// container, so it's quick.
|
|
237
|
+
const innerCombobox = (_this$containerRef3 = this.containerRef) === null || _this$containerRef3 === void 0 ? void 0 : _this$containerRef3.querySelector('[role="combobox"]');
|
|
238
|
+
innerCombobox === null || innerCombobox === void 0 ? void 0 : innerCombobox.focus();
|
|
230
239
|
this.setState({
|
|
231
240
|
isOpen: false
|
|
232
241
|
});
|
|
@@ -322,8 +331,8 @@ class DatePicker extends Component {
|
|
|
322
331
|
/**
|
|
323
332
|
* There are two props that can change how the date is parsed.
|
|
324
333
|
* The priority of props used is:
|
|
325
|
-
* 1. parseInputValue
|
|
326
|
-
* 2. locale
|
|
334
|
+
* 1. `parseInputValue`
|
|
335
|
+
* 2. `locale`
|
|
327
336
|
*/
|
|
328
337
|
_defineProperty(this, "parseDate", date => {
|
|
329
338
|
const {
|
|
@@ -341,9 +350,9 @@ class DatePicker extends Component {
|
|
|
341
350
|
/**
|
|
342
351
|
* There are multiple props that can change how the date is formatted.
|
|
343
352
|
* The priority of props used is:
|
|
344
|
-
* 1. formatDisplayLabel
|
|
345
|
-
* 2. dateFormat
|
|
346
|
-
* 3. locale
|
|
353
|
+
* 1. `formatDisplayLabel`
|
|
354
|
+
* 2. `dateFormat`
|
|
355
|
+
* 3. `locale`
|
|
347
356
|
*/
|
|
348
357
|
_defineProperty(this, "formatDate", value => {
|
|
349
358
|
const {
|
|
@@ -15,7 +15,7 @@ import DatePicker from './date-picker';
|
|
|
15
15
|
import TimePicker from './time-picker';
|
|
16
16
|
import { convertTokens } from './utils';
|
|
17
17
|
const packageName = "@atlaskit/datetime-picker";
|
|
18
|
-
const packageVersion = "13.0.
|
|
18
|
+
const packageVersion = "13.0.9";
|
|
19
19
|
const isInvalidBorderStyles = css({
|
|
20
20
|
borderColor: `var(--ds-border-danger, ${R400})`
|
|
21
21
|
});
|
|
@@ -61,7 +61,7 @@ const isDisabledStyles = css({
|
|
|
61
61
|
const baseContainerStyles = css({
|
|
62
62
|
display: 'flex',
|
|
63
63
|
backgroundColor: `var(--ds-background-input, ${N20})`,
|
|
64
|
-
border: getBooleanFF('platform.design-system-team.border-
|
|
64
|
+
border: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border-input, ${N100})`}` : `2px solid ${`var(--ds-border-input, ${N20})`}`,
|
|
65
65
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
66
66
|
transition: 'background-color 200ms ease-in-out, border-color 200ms ease-in-out',
|
|
67
67
|
'&:hover': {
|
|
@@ -16,7 +16,7 @@ import parseTime from '../internal/parse-time';
|
|
|
16
16
|
import { makeSingleValue } from '../internal/single-value';
|
|
17
17
|
import { convertTokens } from './utils';
|
|
18
18
|
const packageName = "@atlaskit/datetime-picker";
|
|
19
|
-
const packageVersion = "13.0.
|
|
19
|
+
const packageVersion = "13.0.9";
|
|
20
20
|
const menuStyles = {
|
|
21
21
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
22
22
|
position: 'static',
|
|
@@ -30,7 +30,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
30
30
|
import { makeSingleValue } from '../internal/single-value';
|
|
31
31
|
import { convertTokens } from './utils';
|
|
32
32
|
var packageName = "@atlaskit/datetime-picker";
|
|
33
|
-
var packageVersion = "13.0.
|
|
33
|
+
var packageVersion = "13.0.9";
|
|
34
34
|
function getValidDate(iso) {
|
|
35
35
|
var date = parseISO(iso);
|
|
36
36
|
return isValid(date) ? {
|
|
@@ -234,12 +234,21 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
234
234
|
return calendarValue;
|
|
235
235
|
});
|
|
236
236
|
_defineProperty(_assertThisInitialized(_this), "onInputKeyDown", function (event) {
|
|
237
|
+
var _this$containerRef3;
|
|
237
238
|
var _this$getSafeState2 = _this.getSafeState(),
|
|
238
239
|
value = _this$getSafeState2.value,
|
|
239
240
|
calendarValue = _this$getSafeState2.calendarValue;
|
|
240
241
|
var keyPressed = event.key.toLowerCase();
|
|
241
242
|
switch (keyPressed) {
|
|
242
243
|
case 'escape':
|
|
244
|
+
// Yes, this is not ideal. The alternative is to be able to place a ref
|
|
245
|
+
// on the inner input of Select itself, which would require a lot of
|
|
246
|
+
// extra stuff in the Select component for only this one thing. While
|
|
247
|
+
// this would be more "React-y", it doesn't seem to pose any other
|
|
248
|
+
// benefits. Performance-wise, we are only searching within the
|
|
249
|
+
// container, so it's quick.
|
|
250
|
+
var innerCombobox = (_this$containerRef3 = _this.containerRef) === null || _this$containerRef3 === void 0 ? void 0 : _this$containerRef3.querySelector('[role="combobox"]');
|
|
251
|
+
innerCombobox === null || innerCombobox === void 0 || innerCombobox.focus();
|
|
243
252
|
_this.setState({
|
|
244
253
|
isOpen: false
|
|
245
254
|
});
|
|
@@ -331,8 +340,8 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
331
340
|
/**
|
|
332
341
|
* There are two props that can change how the date is parsed.
|
|
333
342
|
* The priority of props used is:
|
|
334
|
-
* 1. parseInputValue
|
|
335
|
-
* 2. locale
|
|
343
|
+
* 1. `parseInputValue`
|
|
344
|
+
* 2. `locale`
|
|
336
345
|
*/
|
|
337
346
|
_defineProperty(_assertThisInitialized(_this), "parseDate", function (date) {
|
|
338
347
|
var _this$props = _this.props,
|
|
@@ -348,9 +357,9 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
348
357
|
/**
|
|
349
358
|
* There are multiple props that can change how the date is formatted.
|
|
350
359
|
* The priority of props used is:
|
|
351
|
-
* 1. formatDisplayLabel
|
|
352
|
-
* 2. dateFormat
|
|
353
|
-
* 3. locale
|
|
360
|
+
* 1. `formatDisplayLabel`
|
|
361
|
+
* 2. `dateFormat`
|
|
362
|
+
* 3. `locale`
|
|
354
363
|
*/
|
|
355
364
|
_defineProperty(_assertThisInitialized(_this), "formatDate", function (value) {
|
|
356
365
|
var _this$props2 = _this.props,
|
|
@@ -25,7 +25,7 @@ import DatePicker from './date-picker';
|
|
|
25
25
|
import TimePicker from './time-picker';
|
|
26
26
|
import { convertTokens } from './utils';
|
|
27
27
|
var packageName = "@atlaskit/datetime-picker";
|
|
28
|
-
var packageVersion = "13.0.
|
|
28
|
+
var packageVersion = "13.0.9";
|
|
29
29
|
var isInvalidBorderStyles = css({
|
|
30
30
|
borderColor: "var(--ds-border-danger, ".concat(R400, ")")
|
|
31
31
|
});
|
|
@@ -71,7 +71,7 @@ var isDisabledStyles = css({
|
|
|
71
71
|
var baseContainerStyles = css({
|
|
72
72
|
display: 'flex',
|
|
73
73
|
backgroundColor: "var(--ds-background-input, ".concat(N20, ")"),
|
|
74
|
-
border: getBooleanFF('platform.design-system-team.border-
|
|
74
|
+
border: getBooleanFF('platform.design-system-team.update-input-border-wdith_5abwv') ? "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border-input, ".concat(N100, ")")) : "2px solid ".concat("var(--ds-border-input, ".concat(N20, ")")),
|
|
75
75
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
76
76
|
transition: 'background-color 200ms ease-in-out, border-color 200ms ease-in-out',
|
|
77
77
|
'&:hover': {
|
|
@@ -29,7 +29,7 @@ import parseTime from '../internal/parse-time';
|
|
|
29
29
|
import { makeSingleValue } from '../internal/single-value';
|
|
30
30
|
import { convertTokens } from './utils';
|
|
31
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "13.0.
|
|
32
|
+
var packageVersion = "13.0.9";
|
|
33
33
|
var menuStyles = {
|
|
34
34
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
35
35
|
position: 'static',
|
|
@@ -127,7 +127,7 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
|
|
|
127
127
|
*/
|
|
128
128
|
dateFormat?: string;
|
|
129
129
|
/**
|
|
130
|
-
* Placeholder text displayed in input
|
|
130
|
+
* Placeholder text displayed in input.
|
|
131
131
|
*/
|
|
132
132
|
placeholder?: string;
|
|
133
133
|
/**
|
|
@@ -158,7 +158,7 @@ interface State {
|
|
|
158
158
|
/**
|
|
159
159
|
* When being cleared from the icon the DatePicker is blurred.
|
|
160
160
|
* This variable defines whether the default onSelectBlur or onSelectFocus
|
|
161
|
-
* events should behave as normal
|
|
161
|
+
* events should behave as normal.
|
|
162
162
|
*/
|
|
163
163
|
isFocused: boolean;
|
|
164
164
|
clearingFromIcon: boolean;
|
|
@@ -242,7 +242,7 @@ declare class DatePicker extends Component<DatePickerProps, State> {
|
|
|
242
242
|
onSelectFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
243
243
|
onTextInput: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
244
244
|
getSafeCalendarValue: (calendarValue: string) => string;
|
|
245
|
-
onInputKeyDown: (event: React.KeyboardEvent<
|
|
245
|
+
onInputKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
246
246
|
onClear: () => void;
|
|
247
247
|
onSelectChange: (_value: ValueType<OptionType>, action: ActionMeta) => void;
|
|
248
248
|
refCalendar: (ref: CalendarRef | null) => void;
|
|
@@ -251,16 +251,16 @@ declare class DatePicker extends Component<DatePickerProps, State> {
|
|
|
251
251
|
/**
|
|
252
252
|
* There are two props that can change how the date is parsed.
|
|
253
253
|
* The priority of props used is:
|
|
254
|
-
* 1. parseInputValue
|
|
255
|
-
* 2. locale
|
|
254
|
+
* 1. `parseInputValue`
|
|
255
|
+
* 2. `locale`
|
|
256
256
|
*/
|
|
257
257
|
parseDate: (date: string) => Date;
|
|
258
258
|
/**
|
|
259
259
|
* There are multiple props that can change how the date is formatted.
|
|
260
260
|
* The priority of props used is:
|
|
261
|
-
* 1. formatDisplayLabel
|
|
262
|
-
* 2. dateFormat
|
|
263
|
-
* 3. locale
|
|
261
|
+
* 1. `formatDisplayLabel`
|
|
262
|
+
* 2. `dateFormat`
|
|
263
|
+
* 3. `locale`
|
|
264
264
|
*/
|
|
265
265
|
formatDate: (value: string) => string;
|
|
266
266
|
getPlaceholder: () => string;
|
|
@@ -127,7 +127,7 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
|
|
|
127
127
|
*/
|
|
128
128
|
dateFormat?: string;
|
|
129
129
|
/**
|
|
130
|
-
* Placeholder text displayed in input
|
|
130
|
+
* Placeholder text displayed in input.
|
|
131
131
|
*/
|
|
132
132
|
placeholder?: string;
|
|
133
133
|
/**
|
|
@@ -158,7 +158,7 @@ interface State {
|
|
|
158
158
|
/**
|
|
159
159
|
* When being cleared from the icon the DatePicker is blurred.
|
|
160
160
|
* This variable defines whether the default onSelectBlur or onSelectFocus
|
|
161
|
-
* events should behave as normal
|
|
161
|
+
* events should behave as normal.
|
|
162
162
|
*/
|
|
163
163
|
isFocused: boolean;
|
|
164
164
|
clearingFromIcon: boolean;
|
|
@@ -242,7 +242,7 @@ declare class DatePicker extends Component<DatePickerProps, State> {
|
|
|
242
242
|
onSelectFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
243
243
|
onTextInput: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
244
244
|
getSafeCalendarValue: (calendarValue: string) => string;
|
|
245
|
-
onInputKeyDown: (event: React.KeyboardEvent<
|
|
245
|
+
onInputKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
246
246
|
onClear: () => void;
|
|
247
247
|
onSelectChange: (_value: ValueType<OptionType>, action: ActionMeta) => void;
|
|
248
248
|
refCalendar: (ref: CalendarRef | null) => void;
|
|
@@ -251,16 +251,16 @@ declare class DatePicker extends Component<DatePickerProps, State> {
|
|
|
251
251
|
/**
|
|
252
252
|
* There are two props that can change how the date is parsed.
|
|
253
253
|
* The priority of props used is:
|
|
254
|
-
* 1. parseInputValue
|
|
255
|
-
* 2. locale
|
|
254
|
+
* 1. `parseInputValue`
|
|
255
|
+
* 2. `locale`
|
|
256
256
|
*/
|
|
257
257
|
parseDate: (date: string) => Date;
|
|
258
258
|
/**
|
|
259
259
|
* There are multiple props that can change how the date is formatted.
|
|
260
260
|
* The priority of props used is:
|
|
261
|
-
* 1. formatDisplayLabel
|
|
262
|
-
* 2. dateFormat
|
|
263
|
-
* 3. locale
|
|
261
|
+
* 1. `formatDisplayLabel`
|
|
262
|
+
* 2. `dateFormat`
|
|
263
|
+
* 3. `locale`
|
|
264
264
|
*/
|
|
265
265
|
formatDate: (value: string) => string;
|
|
266
266
|
getPlaceholder: () => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.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/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@atlaskit/analytics-next": "^9.
|
|
41
|
+
"@atlaskit/analytics-next": "^9.2.0",
|
|
42
42
|
"@atlaskit/calendar": "^14.0.3",
|
|
43
43
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
44
44
|
"@atlaskit/icon": "^22.0.0",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@atlaskit/locale": "^2.6.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
48
48
|
"@atlaskit/popper": "^5.5.0",
|
|
49
|
-
"@atlaskit/select": "^17.0
|
|
49
|
+
"@atlaskit/select": "^17.1.0",
|
|
50
50
|
"@atlaskit/theme": "^12.6.0",
|
|
51
|
-
"@atlaskit/tokens": "^1.
|
|
51
|
+
"@atlaskit/tokens": "^1.38.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1",
|
|
54
54
|
"date-fns": "^2.17.0",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@af/accessibility-testing": "*",
|
|
63
63
|
"@af/integration-testing": "*",
|
|
64
|
-
"@atlaskit/button": "^17.
|
|
64
|
+
"@atlaskit/button": "^17.4.0",
|
|
65
65
|
"@atlaskit/docs": "*",
|
|
66
66
|
"@atlaskit/form": "^9.0.3",
|
|
67
67
|
"@atlaskit/modal-dialog": "^12.10.0",
|
|
68
|
-
"@atlaskit/popup": "^1.
|
|
68
|
+
"@atlaskit/popup": "^1.12.0",
|
|
69
69
|
"@atlaskit/range": "^7.1.0",
|
|
70
70
|
"@atlaskit/section-message": "^6.4.0",
|
|
71
71
|
"@atlaskit/ssr": "*",
|
|
@@ -109,10 +109,13 @@
|
|
|
109
109
|
"platform.design-system-team.border-checkbox_nyoiu": {
|
|
110
110
|
"type": "boolean"
|
|
111
111
|
},
|
|
112
|
+
"platform.design-system-team.update-input-border-wdith_5abwv": {
|
|
113
|
+
"type": "boolean"
|
|
114
|
+
},
|
|
112
115
|
"platform.design-system-team.date-picker-input-a11y-fix_cbbxs": {
|
|
113
116
|
"type": "boolean"
|
|
114
117
|
}
|
|
115
118
|
},
|
|
116
119
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
117
120
|
"homepage": "https://atlassian.design/components/datetime-picker/"
|
|
118
|
-
}
|
|
121
|
+
}
|