@atlaskit/datetime-picker 16.2.3 → 17.0.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/components/date-picker-class.compiled.css +16 -0
  3. package/dist/cjs/components/date-picker-class.js +122 -146
  4. package/dist/cjs/components/date-picker-fc.compiled.css +16 -0
  5. package/dist/cjs/components/date-picker-fc.js +117 -144
  6. package/dist/cjs/components/date-time-picker-class.compiled.css +19 -0
  7. package/dist/cjs/components/date-time-picker-class.js +22 -47
  8. package/dist/cjs/components/date-time-picker-fc.compiled.css +6 -0
  9. package/dist/cjs/components/date-time-picker-fc.js +22 -27
  10. package/dist/cjs/components/time-picker.js +1 -1
  11. package/dist/cjs/internal/date-time-picker-container.compiled.css +21 -0
  12. package/dist/cjs/internal/date-time-picker-container.js +26 -71
  13. package/dist/cjs/internal/ff-component.js +0 -2
  14. package/dist/cjs/internal/fixed-layer-menu.js +8 -8
  15. package/dist/cjs/internal/fixed-layer.compiled.css +4 -0
  16. package/dist/cjs/internal/fixed-layer.js +14 -13
  17. package/dist/cjs/internal/indicators-container.compiled.css +2 -0
  18. package/dist/cjs/internal/indicators-container.js +14 -15
  19. package/dist/cjs/internal/menu.compiled.css +6 -0
  20. package/dist/cjs/internal/menu.js +15 -32
  21. package/dist/es2019/components/date-picker-class.compiled.css +16 -0
  22. package/dist/es2019/components/date-picker-class.js +117 -143
  23. package/dist/es2019/components/date-picker-fc.compiled.css +16 -0
  24. package/dist/es2019/components/date-picker-fc.js +114 -141
  25. package/dist/es2019/components/date-time-picker-class.compiled.css +19 -0
  26. package/dist/es2019/components/date-time-picker-class.js +21 -49
  27. package/dist/es2019/components/date-time-picker-fc.compiled.css +6 -0
  28. package/dist/es2019/components/date-time-picker-fc.js +19 -24
  29. package/dist/es2019/components/time-picker.js +1 -1
  30. package/dist/es2019/internal/date-time-picker-container.compiled.css +21 -0
  31. package/dist/es2019/internal/date-time-picker-container.js +18 -69
  32. package/dist/es2019/internal/ff-component.js +0 -2
  33. package/dist/es2019/internal/fixed-layer-menu.js +5 -8
  34. package/dist/es2019/internal/fixed-layer.compiled.css +4 -0
  35. package/dist/es2019/internal/fixed-layer.js +13 -12
  36. package/dist/es2019/internal/indicators-container.compiled.css +2 -0
  37. package/dist/es2019/internal/indicators-container.js +11 -16
  38. package/dist/es2019/internal/menu.compiled.css +6 -0
  39. package/dist/es2019/internal/menu.js +11 -30
  40. package/dist/esm/components/date-picker-class.compiled.css +16 -0
  41. package/dist/esm/components/date-picker-class.js +120 -147
  42. package/dist/esm/components/date-picker-fc.compiled.css +16 -0
  43. package/dist/esm/components/date-picker-fc.js +116 -144
  44. package/dist/esm/components/date-time-picker-class.compiled.css +19 -0
  45. package/dist/esm/components/date-time-picker-class.js +21 -49
  46. package/dist/esm/components/date-time-picker-fc.compiled.css +6 -0
  47. package/dist/esm/components/date-time-picker-fc.js +19 -24
  48. package/dist/esm/components/time-picker.js +1 -1
  49. package/dist/esm/internal/date-time-picker-container.compiled.css +21 -0
  50. package/dist/esm/internal/date-time-picker-container.js +22 -69
  51. package/dist/esm/internal/ff-component.js +0 -2
  52. package/dist/esm/internal/fixed-layer-menu.js +5 -8
  53. package/dist/esm/internal/fixed-layer.compiled.css +4 -0
  54. package/dist/esm/internal/fixed-layer.js +13 -13
  55. package/dist/esm/internal/indicators-container.compiled.css +2 -0
  56. package/dist/esm/internal/indicators-container.js +11 -16
  57. package/dist/esm/internal/menu.compiled.css +6 -0
  58. package/dist/esm/internal/menu.js +11 -30
  59. package/dist/types/components/date-picker-class.d.ts +2 -3
  60. package/dist/types/components/date-picker.d.ts +1 -1
  61. package/dist/types/components/date-time-picker-class.d.ts +4 -5
  62. package/dist/types/components/date-time-picker.d.ts +3 -3
  63. package/dist/types/internal/date-time-picker-container.d.ts +4 -0
  64. package/dist/types/internal/fixed-layer-menu.d.ts +2 -6
  65. package/dist/types/internal/fixed-layer.d.ts +5 -1
  66. package/dist/types/internal/indicators-container.d.ts +2 -2
  67. package/dist/types/internal/menu.d.ts +6 -2
  68. package/dist/types-ts4.5/components/date-picker-class.d.ts +2 -3
  69. package/dist/types-ts4.5/components/date-picker.d.ts +1 -1
  70. package/dist/types-ts4.5/components/date-time-picker-class.d.ts +4 -5
  71. package/dist/types-ts4.5/components/date-time-picker.d.ts +3 -3
  72. package/dist/types-ts4.5/internal/date-time-picker-container.d.ts +4 -0
  73. package/dist/types-ts4.5/internal/fixed-layer-menu.d.ts +2 -6
  74. package/dist/types-ts4.5/internal/fixed-layer.d.ts +5 -1
  75. package/dist/types-ts4.5/internal/indicators-container.d.ts +2 -2
  76. package/dist/types-ts4.5/internal/menu.d.ts +6 -2
  77. package/package.json +12 -12
@@ -1,3 +1,4 @@
1
+ /* date-picker-class.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -5,26 +6,23 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
5
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
7
  import _inherits from "@babel/runtime/helpers/inherits";
7
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
+ import "./date-picker-class.compiled.css";
10
+ import * as React from 'react';
11
+ import { ax, ix } from "@compiled/react/runtime";
8
12
  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; }
9
13
  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) { _defineProperty(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; }
10
14
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
15
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
- /**
13
- * @jsxRuntime classic
14
- * @jsx jsx
15
- */
16
16
  import { Component, createRef } from 'react';
17
-
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
- import { css, jsx } from '@emotion/react';
20
17
  import { isValid, parseISO } from 'date-fns';
21
18
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
22
19
  import { IconButton } from '@atlaskit/button/new';
20
+ import { cx } from '@atlaskit/css';
23
21
  import { IdProvider } from '@atlaskit/ds-lib/use-id';
24
22
  import CalendarIcon from '@atlaskit/icon/core/migration/calendar';
25
23
  import { createLocalizationProvider } from '@atlaskit/locale';
26
24
  import { fg } from '@atlaskit/platform-feature-flags';
27
- import { Box, xcss } from '@atlaskit/primitives';
25
+ import { Box } from '@atlaskit/primitives/compiled';
28
26
  import Select, { mergeStyles } from '@atlaskit/select';
29
27
  import { EmptyComponent } from '../internal';
30
28
  import { formatDate, getParsedISO, getPlaceholder, isDateDisabled, parseDate } from '../internal/date-picker-migration';
@@ -33,14 +31,7 @@ import { Menu } from '../internal/menu';
33
31
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
34
32
  import { makeSingleValue } from '../internal/single-value';
35
33
  var packageName = "@atlaskit/datetime-picker";
36
- var packageVersion = "16.2.3";
37
- var dropdownIndicatorStyles = xcss({
38
- minWidth: "var(--ds-space-300, 24px)",
39
- minHeight: "var(--ds-space-300, 24px)",
40
- display: 'flex',
41
- alignItems: 'center',
42
- justifyContent: 'center'
43
- });
34
+ var packageVersion = "17.0.1";
44
35
  var datePickerDefaultProps = {
45
36
  defaultIsOpen: false,
46
37
  defaultValue: '',
@@ -59,29 +50,13 @@ var datePickerDefaultProps = {
59
50
  // Not including a default prop for value as it will
60
51
  // Make the component a controlled component
61
52
  };
62
- var pickerContainerStyles = css({
63
- position: 'relative'
64
- });
65
- var iconContainerStyles = xcss({
66
- display: 'flex',
67
- height: '100%',
68
- position: 'absolute',
69
- alignItems: 'center',
70
- flexBasis: 'inherit',
71
- color: 'color.text.subtlest',
72
- insetBlockStart: 'space.0',
73
- insetInlineEnd: 'space.0',
74
- transition: "color 150ms",
75
- ':hover': {
76
- color: 'color.text.subtle'
77
- }
78
- });
79
- var iconSpacingWithClearButtonStyles = xcss({
80
- marginInlineEnd: 'space.400'
81
- });
82
- var iconSpacingWithoutClearButtonStyles = xcss({
83
- marginInlineEnd: 'space.050'
84
- });
53
+ var styles = {
54
+ pickerContainerStyles: "_kqswh2mm",
55
+ iconContainerStyles: "_v564vrg3 _1e0c1txw _4t3i1osq _kqswstnw _4cvr1h6o _i0dl1kw7 _syaz131l _152tze3t _rjxpze3t _30l31gjq",
56
+ iconSpacingWithClearButtonStyles: "_12l2xy5q",
57
+ iconSpacingWithoutClearButtonStyles: "_12l21b66",
58
+ dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o"
59
+ };
85
60
 
86
61
  // eslint-disable-next-line @repo/internal/react/no-class-components
87
62
  var DatePickerComponent = /*#__PURE__*/function (_Component) {
@@ -463,23 +438,23 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
463
438
  var showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
464
439
  var clearIndicator = Icon;
465
440
 
466
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning
441
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
467
442
  if (fg('platform-visual-refresh-icons')) {
468
443
  clearIndicator = function clearIndicator(props) {
469
- return jsx(Box, {
470
- xcss: dropdownIndicatorStyles
471
- }, jsx(Icon, props));
444
+ return /*#__PURE__*/React.createElement(Box, {
445
+ xcss: styles.dropdownIndicatorStyles
446
+ }, /*#__PURE__*/React.createElement(Icon, props));
472
447
  };
473
448
  }
474
449
  var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
475
450
  var SingleValue = makeSingleValue({
476
451
  lang: this.props.locale
477
452
  });
478
- var selectComponents = _objectSpread(_objectSpread({
453
+ var selectComponents = _objectSpread(_objectSpread(_objectSpread({
479
454
  DropdownIndicator: shouldShowCalendarButton ? EmptyComponent : dropDownIcon
480
455
  }, shouldShowCalendarButton ? {
481
456
  IndicatorsContainer: function IndicatorsContainer(props) {
482
- return jsx(_IndicatorsContainer, _extends({}, props, {
457
+ return /*#__PURE__*/React.createElement(_IndicatorsContainer, _extends({}, props, {
483
458
  showClearIndicator: showClearIndicator
484
459
  }));
485
460
  }
@@ -488,7 +463,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
488
463
  SingleValue: SingleValue
489
464
  }, !showClearIndicator && {
490
465
  ClearIndicator: EmptyComponent
491
- });
466
+ }), selectProps.components);
492
467
  var _selectProps$styles = selectProps.styles,
493
468
  selectStyles = _selectProps$styles === void 0 ? {} : _selectProps$styles;
494
469
  var disabledStyle = isDisabled ? {
@@ -536,107 +511,105 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
536
511
 
537
512
  // `label` takes precedence of the `inputLabel`
538
513
  var fullopenCalendarLabel = label || inputLabel ? "".concat(label || inputLabel, ", ").concat(openCalendarLabel) : openCalendarLabel;
539
- return (
540
- // These event handlers must be on this element because the events come
541
- // from different child elements.
542
- // Until innerProps is removed, it must remain a div rather than a primitive component.
543
- jsx("div", _extends({}, innerProps, {
544
- css: pickerContainerStyles
545
- // Since the onclick, onfocus are passed down, adding role="presentation" prevents typecheck errors.
546
- ,
547
- role: "presentation",
548
- onBlur: this.onContainerBlur,
549
- onFocus: this.onContainerFocus,
550
- onClick: this.onInputClick,
551
- onInput: this.onTextInput,
552
- onKeyDown: this.onInputKeyDown,
553
- ref: this.getContainerRef,
554
- "data-testid": testId && "".concat(testId, "--container")
555
- }), jsx("input", {
556
- name: name,
557
- type: "hidden",
558
- value: value,
559
- "data-testid": testId && "".concat(testId, "--input")
560
- }), jsx(Select, _extends({
561
- appearance: this.props.appearance,
562
- "aria-describedby": ariaDescribedBy,
563
- label: label || undefined,
564
- autoFocus: autoFocus,
565
- clearControlLabel: clearControlLabel,
566
- closeMenuOnSelect: true
567
- // FOr some reason, this and the below `styles` type error _only_ show
568
- // up when you alter some of the properties in the `selectComponents`
569
- // object. These errors are still present, and I suspect have always
570
- // been present, without changing the unrelated code. Ignoring as the
571
- // component still works as expected despite this error. And also
572
- // because the select refresh team may solve it later.
573
- ,
574
- components: selectComponents,
575
- enableAnimation: false,
576
- inputId: id,
577
- inputValue: actualSelectInputValue,
578
- isDisabled: isDisabled,
579
- isRequired: isRequired,
580
- menuIsOpen: menuIsOpen,
581
- onBlur: this.onSelectBlur,
582
- onChange: this.onSelectChange,
583
- onFocus: this.onSelectFocus,
584
- onInputChange: this.handleSelectInputChange,
585
- placeholder: getPlaceholder({
586
- placeholder: this.props.placeholder,
587
- l10n: this.state.l10n
588
- }),
589
- styles: mergedStyles,
590
- value: initialValue
591
- }, selectProps, {
592
- // These are below the spread because I don't know what is in
593
- // selectProps or not and what wil be overwritten
594
- isClearable: true,
595
- isInvalid: isInvalid,
596
- spacing: spacing,
597
- testId: testId
598
- // These aren't part of `Select`'s API, but we're using them here.
599
- // @ts-ignore -- Property 'calendarContainerRef' does not exist on type 'IntrinsicAttributes & LibraryManagedAttributes<(<Option extends unknown = OptionType, IsMulti extends boolean = false>(props: AtlaskitSelectProps<Option, IsMulti> & { ...; }) => Element), AtlaskitSelectProps<...> & { ...; }>'.
600
- ,
601
- calendarContainerRef: calendarProps.calendarContainerRef,
602
- calendarDisabled: calendarProps.calendarDisabled,
603
- calendarDisabledDateFilter: calendarProps.calendarDisabledDateFilter,
604
- calendarLocale: calendarProps.calendarLocale,
605
- calendarMaxDate: calendarProps.calendarMaxDate,
606
- calendarMinDate: calendarProps.calendarMinDate,
607
- calendarRef: calendarProps.calendarRef,
608
- calendarValue: calendarProps.calendarValue,
609
- calendarView: calendarProps.calendarView,
610
- calendarWeekStartDay: calendarProps.calendarWeekStartDay,
611
- nextMonthLabel: nextMonthLabel,
612
- onCalendarChange: calendarProps.onCalendarChange,
613
- onCalendarSelect: calendarProps.onCalendarSelect,
614
- previousMonthLabel: previousMonthLabel,
615
- shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay,
616
- menuInnerWrapper: calendarProps.menuInnerWrapper
617
- })), shouldShowCalendarButton && !isDisabled ? jsx(IdProvider, {
618
- prefix: "open-calendar-label--"
619
- }, function (_ref3) {
620
- var openCalendarLabelId = _ref3.id;
621
- return jsx(Box, {
622
- xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : iconSpacingWithoutClearButtonStyles]
623
- }, jsx(IconButton, {
624
- appearance: "subtle",
625
- label: !inputLabelId ? fullopenCalendarLabel : openCalendarLabel,
626
- "aria-labelledby": inputLabelId ? "".concat(inputLabelId, " ").concat(openCalendarLabelId) : undefined,
627
- id: openCalendarLabelId,
628
- icon: function icon(iconProps) {
629
- return jsx(CalendarIcon, _extends({}, iconProps, {
630
- color: "var(--ds-icon, #44546F)"
631
- }));
632
- },
633
- onClick: _this2.onCalendarButtonClick,
634
- onKeyDown: _this2.onCalendarButtonKeyDown,
635
- ref: _this2.calendarButtonRef,
636
- testId: testId && "".concat(testId, "--open-calendar-button")
637
- }));
638
- }) : null)
639
- );
514
+ return /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
515
+ // Since the onclick, onfocus are passed down, adding role="presentation" prevents typecheck errors.
516
+ role: "presentation",
517
+ onBlur: this.onContainerBlur,
518
+ onFocus: this.onContainerFocus,
519
+ onClick: this.onInputClick,
520
+ onInput: this.onTextInput,
521
+ onKeyDown: this.onInputKeyDown,
522
+ ref: this.getContainerRef,
523
+ "data-testid": testId && "".concat(testId, "--container"),
524
+ className: ax([styles.pickerContainerStyles])
525
+ }), /*#__PURE__*/React.createElement("input", {
526
+ name: name,
527
+ type: "hidden",
528
+ value: value,
529
+ "data-testid": testId && "".concat(testId, "--input")
530
+ }), /*#__PURE__*/React.createElement(Select, _extends({
531
+ appearance: this.props.appearance,
532
+ "aria-describedby": ariaDescribedBy,
533
+ label: label || undefined
534
+ // eslint-disable-next-line jsx-a11y/no-autofocus
535
+ ,
536
+ autoFocus: autoFocus,
537
+ clearControlLabel: clearControlLabel,
538
+ closeMenuOnSelect: true,
539
+ enableAnimation: false,
540
+ inputId: id,
541
+ inputValue: actualSelectInputValue,
542
+ isDisabled: isDisabled,
543
+ isRequired: isRequired,
544
+ menuIsOpen: menuIsOpen,
545
+ onBlur: this.onSelectBlur,
546
+ onChange: this.onSelectChange,
547
+ onFocus: this.onSelectFocus,
548
+ onInputChange: this.handleSelectInputChange,
549
+ placeholder: getPlaceholder({
550
+ placeholder: this.props.placeholder,
551
+ l10n: this.state.l10n
552
+ })
553
+ // @ts-ignore -- Argument of type 'StylesConfig<OptionType, false, GroupBase<OptionType>>' is not assignable to parameter of type 'StylesConfig<OptionType, boolean, GroupBase<OptionType>>'
554
+ ,
555
+ styles: mergedStyles,
556
+ value: initialValue
557
+ }, selectProps, {
558
+ // For some reason, this and the below `styles` type error _only_ show
559
+ // up when you alter some of the properties in the `selectComponents`
560
+ // object. These errors are still present, and I suspect have always
561
+ // been present, without changing the unrelated code. Ignoring as the
562
+ // component still works as expected despite this error. And also
563
+ // because the select refresh team may solve it later.
564
+ components: selectComponents
565
+ // These are below the spread because I don't know what is in
566
+ // selectProps or not and what wil be overwritten
567
+ ,
568
+ isClearable: true,
569
+ isInvalid: isInvalid,
570
+ spacing: spacing,
571
+ testId: testId
572
+ // These aren't part of `Select`'s API, but we're using them here.
573
+ // @ts-ignore -- Property 'calendarContainerRef' does not exist on type 'IntrinsicAttributes & LibraryManagedAttributes<(<Option extends unknown = OptionType, IsMulti extends boolean = false>(props: AtlaskitSelectProps<Option, IsMulti> & { ...; }) => Element), AtlaskitSelectProps<...> & { ...; }>'.
574
+ ,
575
+ calendarContainerRef: calendarProps.calendarContainerRef,
576
+ calendarDisabled: calendarProps.calendarDisabled,
577
+ calendarDisabledDateFilter: calendarProps.calendarDisabledDateFilter,
578
+ calendarLocale: calendarProps.calendarLocale,
579
+ calendarMaxDate: calendarProps.calendarMaxDate,
580
+ calendarMinDate: calendarProps.calendarMinDate,
581
+ calendarRef: calendarProps.calendarRef,
582
+ calendarValue: calendarProps.calendarValue,
583
+ calendarView: calendarProps.calendarView,
584
+ calendarWeekStartDay: calendarProps.calendarWeekStartDay,
585
+ nextMonthLabel: nextMonthLabel,
586
+ onCalendarChange: calendarProps.onCalendarChange,
587
+ onCalendarSelect: calendarProps.onCalendarSelect,
588
+ previousMonthLabel: previousMonthLabel,
589
+ shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay,
590
+ menuInnerWrapper: calendarProps.menuInnerWrapper
591
+ })), shouldShowCalendarButton && !isDisabled ? /*#__PURE__*/React.createElement(IdProvider, {
592
+ prefix: "open-calendar-label--"
593
+ }, function (_ref3) {
594
+ var openCalendarLabelId = _ref3.id;
595
+ return /*#__PURE__*/React.createElement(Box, {
596
+ xcss: cx(styles.iconContainerStyles, value && !hideIcon ? styles.iconSpacingWithClearButtonStyles : styles.iconSpacingWithoutClearButtonStyles)
597
+ }, /*#__PURE__*/React.createElement(IconButton, {
598
+ appearance: "subtle",
599
+ label: !inputLabelId ? fullopenCalendarLabel : openCalendarLabel,
600
+ "aria-labelledby": inputLabelId ? "".concat(inputLabelId, " ").concat(openCalendarLabelId) : undefined,
601
+ id: openCalendarLabelId,
602
+ icon: function icon(iconProps) {
603
+ return /*#__PURE__*/React.createElement(CalendarIcon, _extends({}, iconProps, {
604
+ color: "var(--ds-icon, #44546F)"
605
+ }));
606
+ },
607
+ onClick: _this2.onCalendarButtonClick,
608
+ onKeyDown: _this2.onCalendarButtonKeyDown,
609
+ ref: _this2.calendarButtonRef,
610
+ testId: testId && "".concat(testId, "--open-calendar-button")
611
+ }));
612
+ }) : null);
640
613
  }
641
614
  }], [{
642
615
  key: "getDerivedStateFromProps",
@@ -0,0 +1,16 @@
1
+
2
+ ._v564vrg3{transition:color .15s}._12l21b66{margin-inline-end:var(--ds-space-050,4px)}
3
+ ._12l2xy5q{margin-inline-end:var(--ds-space-400,2pc)}
4
+ ._152tze3t{inset-block-start:var(--ds-space-0,0)}
5
+ ._1bah1h6o{justify-content:center}
6
+ ._1e0c1txw{display:flex}
7
+ ._1tke1k8s{min-height:1.5rem}
8
+ ._1ul91k8s{min-width:1.5rem}
9
+ ._4cvr1h6o{align-items:center}
10
+ ._4t3i1osq{height:100%}
11
+ ._i0dl1kw7{flex-basis:inherit}
12
+ ._kqswh2mm{position:relative}
13
+ ._kqswstnw{position:absolute}
14
+ ._rjxpze3t{inset-inline-end:var(--ds-space-0,0)}
15
+ ._syaz131l{color:var(--ds-text-subtlest,#626f86)}
16
+ ._30l31gjq:hover{color:var(--ds-text-subtle,#44546f)}