@atlaskit/datetime-picker 17.1.0 → 17.1.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 17.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 17.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 17.1.0
4
16
 
5
17
  ### Minor Changes
@@ -622,7 +634,6 @@
622
634
  These two props that were removed on 14.0.0 and no longer impacted the functionality of the
623
635
  `DateTimePicker` were misrepresented in the type interface as options and have been fully removed
624
636
  now.
625
-
626
637
  - `timeIsEditable`
627
638
  - `times`
628
639
 
@@ -1753,14 +1764,12 @@
1753
1764
 
1754
1765
  Three props were added to `@atlaskit/calendar` and `@atlaskit/datetime-picker` to make disabling
1755
1766
  dates more practical, performant and expressive:
1756
-
1757
1767
  - `minDate` for the minimum valid date
1758
1768
  - `maxDate` for the maximum valid date
1759
1769
  - `disabledDateFilter`, a function that takes a date string, and returns whether or not it should
1760
1770
  be disabled.
1761
1771
 
1762
1772
  #### Bugs
1763
-
1764
1773
  - DatePicker: Disabled dates that lie outside of the currently selected month now have correct
1765
1774
  hover styles
1766
1775
 
@@ -1849,7 +1858,6 @@
1849
1858
  injected package name and version for analytics instead of version.json.
1850
1859
  - [`c20be966f07`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c20be966f07) -
1851
1860
  **Internal change**
1852
-
1853
1861
  - Change `@atlaskit/calendar` ref type import name from `CalendarInternalRef` to `CalendarRef`.
1854
1862
  - Change prop name which is being passed to `@atlaskit/calendar` from `internalRef` to
1855
1863
  `calendarRef`.
@@ -1863,7 +1871,6 @@
1863
1871
  - [#7762](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7762)
1864
1872
  [`9c020a0e05f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c020a0e05f) - Replaced
1865
1873
  `@atlaskit/calendar` exported types to access its `navigate()` api
1866
-
1867
1874
  - Replaced `CalendarClassType` & `ArrowKeys` types with `CalendarInternalRef` type.
1868
1875
  - Also replaced `ref` prop with `internalRef` prop for accessing `navigate()` api.
1869
1876
 
@@ -2160,7 +2167,6 @@
2160
2167
 
2161
2168
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
2162
2169
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
2163
-
2164
2170
  - @atlaskit/docs@8.3.2
2165
2171
  - @atlaskit/visual-regression@0.1.9
2166
2172
  - @atlaskit/analytics-next@6.3.5
@@ -2234,7 +2240,6 @@
2234
2240
  Make PopupSelect correctly pass props. Forcing update of @atlaskit/select for all other packages-
2235
2241
  Updated dependencies
2236
2242
  [3a20e9a596](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3a20e9a596):
2237
-
2238
2243
  - @atlaskit/select@11.0.2
2239
2244
  - @atlaskit/locale@1.0.3
2240
2245
 
@@ -2303,7 +2308,6 @@
2303
2308
  - [minor][e3d466543f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e3d466543f):
2304
2309
 
2305
2310
  Add locale support for Calendar/DateTimePicker/DatePicker/TimePicker:
2306
-
2307
2311
  - New prop `locale` enables localization for date/time format in `DatePicker`, `TimePicker` and
2308
2312
  `DateTimePicker`, and months/days in `Calendar`.
2309
2313
  - Deprecated `dateFormat`, `timeFormat` and `formatDisplayLabel` props. Please use `locale`
@@ -2448,19 +2452,16 @@
2448
2452
  ## 8.0.2
2449
2453
 
2450
2454
  - [patch][06819642ba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/06819642ba):
2451
-
2452
2455
  - Internal refactor and clean up
2453
2456
 
2454
2457
  ## 8.0.1
2455
2458
 
2456
2459
  - [patch][21854842b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/21854842b5):
2457
-
2458
2460
  - Clean couple of TODO's that were already done
2459
2461
 
2460
2462
  ## 8.0.0
2461
2463
 
2462
2464
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
2463
-
2464
2465
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
2465
2466
  this package, please ensure you use at least this version of react and react-dom.
2466
2467
 
@@ -2505,7 +2506,6 @@
2505
2506
  ## 7.0.2
2506
2507
 
2507
2508
  - [patch][98e11001ff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/98e11001ff):
2508
-
2509
2509
  - Removes duplicate babel-runtime dependency
2510
2510
 
2511
2511
  ## 7.0.1
@@ -2527,7 +2527,6 @@
2527
2527
  ## 7.0.0
2528
2528
 
2529
2529
  - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
2530
-
2531
2530
  - Drop ES5 from all the flow modules
2532
2531
 
2533
2532
  ### Dropping CJS support in all @atlaskit packages
@@ -2579,25 +2578,21 @@
2579
2578
  ## 6.5.0
2580
2579
 
2581
2580
  - [minor][a48dddb43c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a48dddb43c):
2582
-
2583
2581
  - onChange will only be fired when a complete datetime is supplied by the user
2584
2582
 
2585
2583
  ## 6.4.2
2586
2584
 
2587
2585
  - [patch][0cd7f505b3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0cd7f505b3):
2588
-
2589
2586
  - Iso date parsing on IE11 and Edge is now consistent with other browsers
2590
2587
 
2591
2588
  ## 6.4.1
2592
2589
 
2593
2590
  - [patch][348d3aed19](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/348d3aed19):
2594
-
2595
2591
  - Datepicker will now reset the focused date on the calendar every time it is opened
2596
2592
 
2597
2593
  ## 6.4.0
2598
2594
 
2599
2595
  - [minor][52827feffb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/52827feffb):
2600
-
2601
2596
  - onChange is now called only when the user selects or clears a value. The date passed to onChange
2602
2597
  will always be a valid date
2603
2598
 
@@ -2617,28 +2612,23 @@
2617
2612
  ## 6.3.24
2618
2613
 
2619
2614
  - [patch][55e0a3a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/55e0a3a):
2620
-
2621
2615
  - Fixes keyboard entry bug
2622
2616
 
2623
2617
  - [patch][075dfa2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/075dfa2):
2624
-
2625
2618
  - Allowing control of input value in datetime-picker
2626
2619
 
2627
2620
  ## 6.3.23
2628
2621
 
2629
2622
  - [patch][4c4bdc5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4c4bdc5):
2630
-
2631
2623
  - AK-5672 - Refactor parseTime by separating logic and concerns into smaller, testable functions.
2632
2624
  Fixes meridiem issues.
2633
2625
 
2634
2626
  - [patch][58a40bf](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/58a40bf):
2635
-
2636
2627
  - Factoring in meridiem for 24hr time in editable
2637
2628
 
2638
2629
  ## 6.3.22
2639
2630
 
2640
2631
  - [patch][5c548ea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5c548ea):
2641
-
2642
2632
  - Removing extraneous wrapping span around icons which was causing an accessibility error
2643
2633
 
2644
2634
  ## 6.3.21
@@ -2701,7 +2691,6 @@
2701
2691
  ## 6.3.17
2702
2692
 
2703
2693
  - [patch][b332c91](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b332c91):
2704
-
2705
2694
  - upgrades verison of react-scrolllock to SSR safe version
2706
2695
 
2707
2696
  ## 6.3.16
@@ -40,7 +40,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
40
40
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
41
41
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /// <reference types="node" />
42
42
  var packageName = "@atlaskit/datetime-picker";
43
- var packageVersion = "17.0.18";
43
+ var packageVersion = "17.1.1";
44
44
  var datePickerDefaultProps = {
45
45
  defaultIsOpen: false,
46
46
  defaultValue: '',
@@ -446,8 +446,6 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
446
446
  var menuIsOpen = this.getIsOpen() && !isDisabled;
447
447
  var showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
448
448
  var clearIndicator = Icon;
449
-
450
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
451
449
  if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
452
450
  clearIndicator = function clearIndicator(props) {
453
451
  return /*#__PURE__*/React.createElement(_compiled.Box, {
@@ -538,7 +536,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
538
536
  appearance: _this2.props.appearance,
539
537
  "aria-describedby": ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId,
540
538
  label: label || undefined
541
- // eslint-disable-next-line jsx-a11y/no-autofocus
539
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
542
540
  ,
543
541
  autoFocus: autoFocus,
544
542
  clearControlLabel: clearControlLabel,
@@ -605,7 +603,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
605
603
  appearance: this.props.appearance,
606
604
  "aria-describedby": ariaDescribedBy,
607
605
  label: label || undefined
608
- // eslint-disable-next-line jsx-a11y/no-autofocus
606
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
609
607
  ,
610
608
  autoFocus: autoFocus,
611
609
  clearControlLabel: clearControlLabel,
@@ -37,7 +37,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
37
37
  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; }
38
38
  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; }
39
39
  var packageName = "@atlaskit/datetime-picker";
40
- var packageVersion = "17.0.18";
40
+ var packageVersion = "17.1.1";
41
41
  var styles = {
42
42
  pickerContainerStyle: "_kqswh2mm",
43
43
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -449,8 +449,6 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
449
449
  var menuIsOpen = getIsOpen() && !isDisabled;
450
450
  var showClearIndicator = Boolean((getterValue || selectInputValue) && !hideIcon);
451
451
  var clearIndicator = Icon;
452
-
453
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
454
452
  if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
455
453
  clearIndicator = function clearIndicator(props) {
456
454
  return /*#__PURE__*/React.createElement(_compiled.Box, {
@@ -551,7 +549,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
551
549
  appearance: appearance,
552
550
  "aria-describedby": (0, _platformFeatureFlags.fg)('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId : ariaDescribedBy,
553
551
  label: label || undefined
554
- // eslint-disable-next-line jsx-a11y/no-autofocus
552
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
555
553
  ,
556
554
  autoFocus: autoFocus,
557
555
  clearControlLabel: clearControlLabel,
@@ -35,7 +35,7 @@ var DatePicker = (0, _ffComponent.componentWithCondition)(function () {
35
35
  return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
36
36
  }, _datePickerFc.default, _datePickerClass.default);
37
37
  var packageName = "@atlaskit/datetime-picker";
38
- var packageVersion = "17.0.18";
38
+ var packageVersion = "17.1.1";
39
39
  var compiledStyles = {
40
40
  datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
41
41
  timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
@@ -34,13 +34,11 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
34
34
  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; }
35
35
  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; } /// <reference types="node" />
36
36
  // for typing `process`
37
- var DatePicker = (0, _ffComponent.componentWithCondition)(
38
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
39
- function () {
37
+ var DatePicker = (0, _ffComponent.componentWithCondition)(function () {
40
38
  return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
41
39
  }, _datePickerFc.default, _datePickerClass.default);
42
40
  var packageName = "@atlaskit/datetime-picker";
43
- var packageVersion = "17.0.18";
41
+ var packageVersion = "17.1.1";
44
42
  var analyticsAttributes = {
45
43
  componentName: 'dateTimePicker',
46
44
  packageName: packageName,
@@ -299,7 +297,7 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
299
297
  }, /*#__PURE__*/_react.default.createElement(DatePicker, {
300
298
  appearance: appearance,
301
299
  "aria-describedby": datePickerAriaDescribedBy
302
- // eslint-disable-next-line jsx-a11y/no-autofocus
300
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
303
301
  ,
304
302
  autoFocus: datePickerProps.autoFocus || autoFocus,
305
303
  dateFormat: datePickerProps.dateFormat,
@@ -342,7 +340,7 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
342
340
  }, /*#__PURE__*/_react.default.createElement(_timePicker.default, {
343
341
  appearance: timePickerProps.appearance || appearance,
344
342
  "aria-describedby": timePickerAriaDescribedBy
345
- // eslint-disable-next-line jsx-a11y/no-autofocus
343
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
346
344
  ,
347
345
  autoFocus: timePickerProps.autoFocus,
348
346
  defaultIsOpen: timePickerProps.defaultIsOpen,
@@ -26,7 +26,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
26
26
  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; }
27
27
  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; }
28
28
  var packageName = "@atlaskit/datetime-picker";
29
- var packageVersion = "17.0.18";
29
+ var packageVersion = "17.1.1";
30
30
  var menuStyles = {
31
31
  /* Need to remove default absolute positioning as that causes issues with position fixed */
32
32
  position: 'static',
@@ -23,7 +23,7 @@ import { Menu } from '../internal/menu';
23
23
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
24
24
  import { makeSingleValue } from '../internal/single-value';
25
25
  const packageName = "@atlaskit/datetime-picker";
26
- const packageVersion = "17.0.18";
26
+ const packageVersion = "17.1.1";
27
27
  const datePickerDefaultProps = {
28
28
  defaultIsOpen: false,
29
29
  defaultValue: '',
@@ -423,8 +423,6 @@ class DatePickerComponent extends Component {
423
423
  const menuIsOpen = this.getIsOpen() && !isDisabled;
424
424
  const showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
425
425
  let clearIndicator = Icon;
426
-
427
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
428
426
  if (fg('platform-visual-refresh-icons')) {
429
427
  clearIndicator = props => /*#__PURE__*/React.createElement(Box, {
430
428
  xcss: styles.dropdownIndicatorStyles
@@ -517,7 +515,7 @@ class DatePickerComponent extends Component {
517
515
  appearance: this.props.appearance,
518
516
  "aria-describedby": ariaDescribedBy ? `${ariaDescribedBy} ${valueId}` : valueId,
519
517
  label: label || undefined
520
- // eslint-disable-next-line jsx-a11y/no-autofocus
518
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
521
519
  ,
522
520
  autoFocus: autoFocus,
523
521
  clearControlLabel: clearControlLabel,
@@ -584,7 +582,7 @@ class DatePickerComponent extends Component {
584
582
  appearance: this.props.appearance,
585
583
  "aria-describedby": ariaDescribedBy,
586
584
  label: label || undefined
587
- // eslint-disable-next-line jsx-a11y/no-autofocus
585
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
588
586
  ,
589
587
  autoFocus: autoFocus,
590
588
  clearControlLabel: clearControlLabel,
@@ -23,7 +23,7 @@ import { Menu } from '../internal/menu';
23
23
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
24
24
  import { makeSingleValue } from '../internal/single-value';
25
25
  const packageName = "@atlaskit/datetime-picker";
26
- const packageVersion = "17.0.18";
26
+ const packageVersion = "17.1.1";
27
27
  const styles = {
28
28
  pickerContainerStyle: "_kqswh2mm",
29
29
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -376,8 +376,6 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
376
376
  const menuIsOpen = getIsOpen() && !isDisabled;
377
377
  const showClearIndicator = Boolean((getterValue || selectInputValue) && !hideIcon);
378
378
  let clearIndicator = Icon;
379
-
380
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
381
379
  if (fg('platform-visual-refresh-icons')) {
382
380
  clearIndicator = props => /*#__PURE__*/React.createElement(Box, {
383
381
  xcss: styles.dropdownIndicatorStyles
@@ -479,7 +477,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
479
477
  appearance: appearance,
480
478
  "aria-describedby": fg('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? `${ariaDescribedBy} ${valueId}` : valueId : ariaDescribedBy,
481
479
  label: label || undefined
482
- // eslint-disable-next-line jsx-a11y/no-autofocus
480
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
483
481
  ,
484
482
  autoFocus: autoFocus,
485
483
  clearControlLabel: clearControlLabel,
@@ -19,7 +19,7 @@ import DatePickerNew from './date-picker-fc';
19
19
  import TimePicker from './time-picker';
20
20
  const DatePicker = componentWithCondition(() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
21
21
  const packageName = "@atlaskit/datetime-picker";
22
- const packageVersion = "17.0.18";
22
+ const packageVersion = "17.1.1";
23
23
  const compiledStyles = {
24
24
  datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
25
25
  timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
@@ -20,11 +20,9 @@ import { convertTokens } from '../internal/parse-tokens';
20
20
  import DatePickerOld from './date-picker-class';
21
21
  import DatePickerNew from './date-picker-fc';
22
22
  import TimePicker from './time-picker';
23
- const DatePicker = componentWithCondition(
24
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
25
- () => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
23
+ const DatePicker = componentWithCondition(() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
26
24
  const packageName = "@atlaskit/datetime-picker";
27
- const packageVersion = "17.0.18";
25
+ const packageVersion = "17.1.1";
28
26
  const analyticsAttributes = {
29
27
  componentName: 'dateTimePicker',
30
28
  packageName,
@@ -264,7 +262,7 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
264
262
  }, /*#__PURE__*/React.createElement(DatePicker, {
265
263
  appearance: appearance,
266
264
  "aria-describedby": datePickerAriaDescribedBy
267
- // eslint-disable-next-line jsx-a11y/no-autofocus
265
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
268
266
  ,
269
267
  autoFocus: datePickerProps.autoFocus || autoFocus,
270
268
  dateFormat: datePickerProps.dateFormat,
@@ -307,7 +305,7 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
307
305
  }, /*#__PURE__*/React.createElement(TimePicker, {
308
306
  appearance: timePickerProps.appearance || appearance,
309
307
  "aria-describedby": timePickerAriaDescribedBy
310
- // eslint-disable-next-line jsx-a11y/no-autofocus
308
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
311
309
  ,
312
310
  autoFocus: timePickerProps.autoFocus,
313
311
  defaultIsOpen: timePickerProps.defaultIsOpen,
@@ -11,7 +11,7 @@ import parseTime from '../internal/parse-time';
11
11
  import { convertTokens } from '../internal/parse-tokens';
12
12
  import { makeSingleValue } from '../internal/single-value';
13
13
  const packageName = "@atlaskit/datetime-picker";
14
- const packageVersion = "17.0.18";
14
+ const packageVersion = "17.1.1";
15
15
  const menuStyles = {
16
16
  /* Need to remove default absolute positioning as that causes issues with position fixed */
17
17
  position: 'static',
@@ -32,7 +32,7 @@ import { Menu } from '../internal/menu';
32
32
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
33
33
  import { makeSingleValue } from '../internal/single-value';
34
34
  var packageName = "@atlaskit/datetime-picker";
35
- var packageVersion = "17.0.18";
35
+ var packageVersion = "17.1.1";
36
36
  var datePickerDefaultProps = {
37
37
  defaultIsOpen: false,
38
38
  defaultValue: '',
@@ -438,8 +438,6 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
438
438
  var menuIsOpen = this.getIsOpen() && !isDisabled;
439
439
  var showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
440
440
  var clearIndicator = Icon;
441
-
442
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
443
441
  if (fg('platform-visual-refresh-icons')) {
444
442
  clearIndicator = function clearIndicator(props) {
445
443
  return /*#__PURE__*/React.createElement(Box, {
@@ -530,7 +528,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
530
528
  appearance: _this2.props.appearance,
531
529
  "aria-describedby": ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId,
532
530
  label: label || undefined
533
- // eslint-disable-next-line jsx-a11y/no-autofocus
531
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
534
532
  ,
535
533
  autoFocus: autoFocus,
536
534
  clearControlLabel: clearControlLabel,
@@ -597,7 +595,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
597
595
  appearance: this.props.appearance,
598
596
  "aria-describedby": ariaDescribedBy,
599
597
  label: label || undefined
600
- // eslint-disable-next-line jsx-a11y/no-autofocus
598
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
601
599
  ,
602
600
  autoFocus: autoFocus,
603
601
  clearControlLabel: clearControlLabel,
@@ -29,7 +29,7 @@ import { Menu } from '../internal/menu';
29
29
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
30
30
  import { makeSingleValue } from '../internal/single-value';
31
31
  var packageName = "@atlaskit/datetime-picker";
32
- var packageVersion = "17.0.18";
32
+ var packageVersion = "17.1.1";
33
33
  var styles = {
34
34
  pickerContainerStyle: "_kqswh2mm",
35
35
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -441,8 +441,6 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
441
441
  var menuIsOpen = getIsOpen() && !isDisabled;
442
442
  var showClearIndicator = Boolean((getterValue || selectInputValue) && !hideIcon);
443
443
  var clearIndicator = Icon;
444
-
445
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
446
444
  if (fg('platform-visual-refresh-icons')) {
447
445
  clearIndicator = function clearIndicator(props) {
448
446
  return /*#__PURE__*/React.createElement(Box, {
@@ -543,7 +541,7 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
543
541
  appearance: appearance,
544
542
  "aria-describedby": fg('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId : ariaDescribedBy,
545
543
  label: label || undefined
546
- // eslint-disable-next-line jsx-a11y/no-autofocus
544
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
547
545
  ,
548
546
  autoFocus: autoFocus,
549
547
  clearControlLabel: clearControlLabel,
@@ -30,7 +30,7 @@ var DatePicker = componentWithCondition(function () {
30
30
  return fg('dst-date-picker-use-functional-component');
31
31
  }, DatePickerNew, DatePickerOld);
32
32
  var packageName = "@atlaskit/datetime-picker";
33
- var packageVersion = "17.0.18";
33
+ var packageVersion = "17.1.1";
34
34
  var compiledStyles = {
35
35
  datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
36
36
  timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
@@ -27,13 +27,11 @@ import { convertTokens } from '../internal/parse-tokens';
27
27
  import DatePickerOld from './date-picker-class';
28
28
  import DatePickerNew from './date-picker-fc';
29
29
  import TimePicker from './time-picker';
30
- var DatePicker = componentWithCondition(
31
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
32
- function () {
30
+ var DatePicker = componentWithCondition(function () {
33
31
  return fg('dst-date-picker-use-functional-component');
34
32
  }, DatePickerNew, DatePickerOld);
35
33
  var packageName = "@atlaskit/datetime-picker";
36
- var packageVersion = "17.0.18";
34
+ var packageVersion = "17.1.1";
37
35
  var analyticsAttributes = {
38
36
  componentName: 'dateTimePicker',
39
37
  packageName: packageName,
@@ -292,7 +290,7 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
292
290
  }, /*#__PURE__*/React.createElement(DatePicker, {
293
291
  appearance: appearance,
294
292
  "aria-describedby": datePickerAriaDescribedBy
295
- // eslint-disable-next-line jsx-a11y/no-autofocus
293
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
296
294
  ,
297
295
  autoFocus: datePickerProps.autoFocus || autoFocus,
298
296
  dateFormat: datePickerProps.dateFormat,
@@ -335,7 +333,7 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
335
333
  }, /*#__PURE__*/React.createElement(TimePicker, {
336
334
  appearance: timePickerProps.appearance || appearance,
337
335
  "aria-describedby": timePickerAriaDescribedBy
338
- // eslint-disable-next-line jsx-a11y/no-autofocus
336
+ // eslint-disable-next-line @atlassian/a11y/no-autofocus
339
337
  ,
340
338
  autoFocus: timePickerProps.autoFocus,
341
339
  defaultIsOpen: timePickerProps.defaultIsOpen,
@@ -17,7 +17,7 @@ import parseTime from '../internal/parse-time';
17
17
  import { convertTokens } from '../internal/parse-tokens';
18
18
  import { makeSingleValue } from '../internal/single-value';
19
19
  var packageName = "@atlaskit/datetime-picker";
20
- var packageVersion = "17.0.18";
20
+ var packageVersion = "17.1.1";
21
21
  var menuStyles = {
22
22
  /* Need to remove default absolute positioning as that causes issues with position fixed */
23
23
  position: 'static',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "17.1.0",
3
+ "version": "17.1.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/"
@@ -35,19 +35,19 @@
35
35
  "@atlaskit/analytics-next": "^11.1.0",
36
36
  "@atlaskit/button": "^23.5.0",
37
37
  "@atlaskit/calendar": "^17.1.0",
38
- "@atlaskit/css": "^0.14.0",
38
+ "@atlaskit/css": "^0.15.0",
39
39
  "@atlaskit/ds-lib": "^5.1.0",
40
40
  "@atlaskit/icon": "^28.5.0",
41
- "@atlaskit/layering": "^3.0.0",
41
+ "@atlaskit/layering": "^3.1.0",
42
42
  "@atlaskit/locale": "^3.0.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/popper": "^7.1.0",
45
- "@atlaskit/primitives": "^14.15.0",
45
+ "@atlaskit/primitives": "^15.0.0",
46
46
  "@atlaskit/select": "^21.3.0",
47
- "@atlaskit/tokens": "^6.4.0",
47
+ "@atlaskit/tokens": "^7.0.0",
48
48
  "@atlaskit/visually-hidden": "^3.0.0",
49
49
  "@babel/runtime": "^7.0.0",
50
- "@compiled/react": "^0.18.3",
50
+ "@compiled/react": "^0.18.6",
51
51
  "date-fns": "^2.17.0"
52
52
  },
53
53
  "peerDependencies": {
@@ -59,11 +59,11 @@
59
59
  "@af/visual-regression": "workspace:^",
60
60
  "@atlaskit/code": "^17.2.0",
61
61
  "@atlaskit/codemod-utils": "^4.2.0",
62
- "@atlaskit/docs": "^11.1.0",
62
+ "@atlaskit/docs": "^11.2.0",
63
63
  "@atlaskit/form": "^14.2.0",
64
64
  "@atlaskit/heading": "^5.2.0",
65
65
  "@atlaskit/link": "^3.2.0",
66
- "@atlaskit/modal-dialog": "^14.4.0",
66
+ "@atlaskit/modal-dialog": "^14.5.0",
67
67
  "@atlaskit/popup": "^4.4.0",
68
68
  "@atlaskit/range": "^9.2.0",
69
69
  "@atlaskit/section-message": "^8.7.0",