@atlaskit/datetime-picker 15.10.3 → 15.10.4

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,14 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 15.10.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#177875](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/177875)
8
+ [`d0c3d27216b7c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d0c3d27216b7c) -
9
+ Clean up props for select new improvement on theme and customized components
10
+ - Updated dependencies
11
+
3
12
  ## 15.10.3
4
13
 
5
14
  ### Patch Changes
@@ -41,7 +41,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
41
41
  * @jsx jsx
42
42
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
43
43
  var packageName = "@atlaskit/datetime-picker";
44
- var packageVersion = "15.10.3";
44
+ var packageVersion = "15.10.4";
45
45
  var dropdownIndicatorStyles = (0, _primitives.xcss)({
46
46
  minWidth: "var(--ds-space-300, 24px)",
47
47
  minHeight: "var(--ds-space-300, 24px)",
@@ -39,7 +39,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
39
39
  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; }
40
40
  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; }
41
41
  var packageName = "@atlaskit/datetime-picker";
42
- var packageVersion = "15.10.3";
42
+ var packageVersion = "15.10.4";
43
43
  var analyticsAttributes = {
44
44
  componentName: 'datePicker',
45
45
  packageName: packageName,
@@ -37,7 +37,7 @@ var DatePicker = (0, _ffComponent.componentWithCondition)(function () {
37
37
  return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
38
38
  }, _datePickerFc.default, _datePickerClass.default);
39
39
  var packageName = "@atlaskit/datetime-picker";
40
- var packageVersion = "15.10.3";
40
+ var packageVersion = "15.10.4";
41
41
  // Make DatePicker 50% the width of DateTimePicker
42
42
  // If rendering an icon container, shrink the TimePicker
43
43
  var datePickerContainerStyles = (0, _react2.css)({
@@ -37,7 +37,7 @@ function () {
37
37
  return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
38
38
  }, _datePickerFc.default, _datePickerClass.default);
39
39
  var packageName = "@atlaskit/datetime-picker";
40
- var packageVersion = "15.10.3";
40
+ var packageVersion = "15.10.4";
41
41
  var analyticsAttributes = {
42
42
  componentName: 'dateTimePicker',
43
43
  packageName: packageName,
@@ -27,7 +27,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
27
27
  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; }
28
28
  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; }
29
29
  var packageName = "@atlaskit/datetime-picker";
30
- var packageVersion = "15.10.3";
30
+ var packageVersion = "15.10.4";
31
31
  var menuStyles = {
32
32
  /* Need to remove default absolute positioning as that causes issues with position fixed */
33
33
  position: 'static',
@@ -10,7 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _react = require("@emotion/react");
11
11
  var _select = require("@atlaskit/select");
12
12
  var _fixedLayer = _interopRequireDefault(require("../internal/fixed-layer"));
13
- var _excluded = ["className", "clearValue", "cx", "getStyles", "getValue", "hasValue", "innerProps", "innerRef", "isLoading", "isMulti", "isRtl", "maxMenuHeight", "menuPlacement", "menuPosition", "menuShouldScrollIntoView", "minMenuHeight", "options", "placement", "selectOption", "selectProps", "setValue", "theme", "children"];
13
+ var _excluded = ["className", "clearValue", "cx", "getStyles", "getValue", "hasValue", "innerProps", "innerRef", "isLoading", "isMulti", "isRtl", "maxMenuHeight", "menuPlacement", "menuPosition", "menuShouldScrollIntoView", "minMenuHeight", "options", "placement", "selectOption", "selectProps", "setValue", "children"];
14
14
  /**
15
15
  * @jsxRuntime classic
16
16
  * @jsx jsx
@@ -41,7 +41,6 @@ var FixedLayerMenu = exports.FixedLayerMenu = function FixedLayerMenu(_ref) {
41
41
  selectOption = _ref.selectOption,
42
42
  selectProps = _ref.selectProps,
43
43
  setValue = _ref.setValue,
44
- theme = _ref.theme,
45
44
  children = _ref.children,
46
45
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
47
46
  return (0, _react.jsx)(_fixedLayer.default, {
@@ -72,9 +71,6 @@ var FixedLayerMenu = exports.FixedLayerMenu = function FixedLayerMenu(_ref) {
72
71
  selectOption: selectOption,
73
72
  selectProps: selectProps,
74
73
  setValue: setValue
75
- // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-unsafe-style-overrides
76
- ,
77
- theme: theme
78
74
  }), children)
79
75
  //@ts-ignore react-select unsupported props
80
76
  ,
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _select = require("@atlaskit/select");
12
- var _excluded = ["children", "className", "clearValue", "cx", "data", "getStyles", "getValue", "hasValue", "isDisabled", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
12
+ var _excluded = ["children", "className", "clearValue", "cx", "data", "getStyles", "getValue", "hasValue", "isDisabled", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue"];
13
13
  /**
14
14
  * This creates a functional component that `react-select` will use to make the
15
15
  * SingleValue part of the different pickers.
@@ -32,7 +32,6 @@ var makeSingleValue = exports.makeSingleValue = function makeSingleValue(_ref) {
32
32
  selectOption = _ref2.selectOption,
33
33
  selectProps = _ref2.selectProps,
34
34
  setValue = _ref2.setValue,
35
- theme = _ref2.theme,
36
35
  rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
37
36
  return /*#__PURE__*/_react.default.createElement(_select.components.SingleValue, (0, _extends2.default)({}, rest, {
38
37
  // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-classname-prop
@@ -53,9 +52,6 @@ var makeSingleValue = exports.makeSingleValue = function makeSingleValue(_ref) {
53
52
  selectOption: selectOption,
54
53
  selectProps: selectProps,
55
54
  setValue: setValue
56
- // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-unsafe-style-overrides
57
- ,
58
- theme: theme
59
55
  }), children);
60
56
  };
61
57
  };
@@ -25,7 +25,7 @@ import { Menu } from '../internal/menu';
25
25
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
26
26
  import { makeSingleValue } from '../internal/single-value';
27
27
  const packageName = "@atlaskit/datetime-picker";
28
- const packageVersion = "15.10.3";
28
+ const packageVersion = "15.10.4";
29
29
  const dropdownIndicatorStyles = xcss({
30
30
  minWidth: "var(--ds-space-300, 24px)",
31
31
  minHeight: "var(--ds-space-300, 24px)",
@@ -24,7 +24,7 @@ import { Menu } from '../internal/menu';
24
24
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
25
25
  import { makeSingleValue } from '../internal/single-value';
26
26
  const packageName = "@atlaskit/datetime-picker";
27
- const packageVersion = "15.10.3";
27
+ const packageVersion = "15.10.4";
28
28
  const analyticsAttributes = {
29
29
  componentName: 'datePicker',
30
30
  packageName,
@@ -22,7 +22,7 @@ import DatePickerNew from './date-picker-fc';
22
22
  import TimePicker from './time-picker';
23
23
  const DatePicker = componentWithCondition(() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
24
24
  const packageName = "@atlaskit/datetime-picker";
25
- const packageVersion = "15.10.3";
25
+ const packageVersion = "15.10.4";
26
26
  // Make DatePicker 50% the width of DateTimePicker
27
27
  // If rendering an icon container, shrink the TimePicker
28
28
  const datePickerContainerStyles = css({
@@ -18,7 +18,7 @@ const DatePicker = componentWithCondition(
18
18
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
19
19
  () => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
20
20
  const packageName = "@atlaskit/datetime-picker";
21
- const packageVersion = "15.10.3";
21
+ const packageVersion = "15.10.4";
22
22
  const analyticsAttributes = {
23
23
  componentName: 'dateTimePicker',
24
24
  packageName,
@@ -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 = "15.10.3";
14
+ const packageVersion = "15.10.4";
15
15
  const menuStyles = {
16
16
  /* Need to remove default absolute positioning as that causes issues with position fixed */
17
17
  position: 'static',
@@ -33,7 +33,6 @@ export const FixedLayerMenu = ({
33
33
  selectOption,
34
34
  selectProps,
35
35
  setValue,
36
- theme,
37
36
  children,
38
37
  ...rest
39
38
  }) => jsx(FixedLayer, {
@@ -64,9 +63,6 @@ export const FixedLayerMenu = ({
64
63
  selectOption: selectOption,
65
64
  selectProps: selectProps,
66
65
  setValue: setValue
67
- // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-unsafe-style-overrides
68
- ,
69
- theme: theme
70
66
  }), children)
71
67
  //@ts-ignore react-select unsupported props
72
68
  ,
@@ -24,7 +24,6 @@ export const makeSingleValue = ({
24
24
  selectOption,
25
25
  selectProps,
26
26
  setValue,
27
- theme,
28
27
  ...rest
29
28
  }) => {
30
29
  return /*#__PURE__*/React.createElement(components.SingleValue, _extends({}, rest, {
@@ -46,8 +45,5 @@ export const makeSingleValue = ({
46
45
  selectOption: selectOption,
47
46
  selectProps: selectProps,
48
47
  setValue: setValue
49
- // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-unsafe-style-overrides
50
- ,
51
- theme: theme
52
48
  }), children);
53
49
  };
@@ -34,7 +34,7 @@ import { Menu } from '../internal/menu';
34
34
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
35
35
  import { makeSingleValue } from '../internal/single-value';
36
36
  var packageName = "@atlaskit/datetime-picker";
37
- var packageVersion = "15.10.3";
37
+ var packageVersion = "15.10.4";
38
38
  var dropdownIndicatorStyles = xcss({
39
39
  minWidth: "var(--ds-space-300, 24px)",
40
40
  minHeight: "var(--ds-space-300, 24px)",
@@ -30,7 +30,7 @@ import { Menu } from '../internal/menu';
30
30
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
31
31
  import { makeSingleValue } from '../internal/single-value';
32
32
  var packageName = "@atlaskit/datetime-picker";
33
- var packageVersion = "15.10.3";
33
+ var packageVersion = "15.10.4";
34
34
  var analyticsAttributes = {
35
35
  componentName: 'datePicker',
36
36
  packageName: packageName,
@@ -33,7 +33,7 @@ var DatePicker = componentWithCondition(function () {
33
33
  return fg('dst-date-picker-use-functional-component');
34
34
  }, DatePickerNew, DatePickerOld);
35
35
  var packageName = "@atlaskit/datetime-picker";
36
- var packageVersion = "15.10.3";
36
+ var packageVersion = "15.10.4";
37
37
  // Make DatePicker 50% the width of DateTimePicker
38
38
  // If rendering an icon container, shrink the TimePicker
39
39
  var datePickerContainerStyles = css({
@@ -27,7 +27,7 @@ function () {
27
27
  return fg('dst-date-picker-use-functional-component');
28
28
  }, DatePickerNew, DatePickerOld);
29
29
  var packageName = "@atlaskit/datetime-picker";
30
- var packageVersion = "15.10.3";
30
+ var packageVersion = "15.10.4";
31
31
  var analyticsAttributes = {
32
32
  componentName: 'dateTimePicker',
33
33
  packageName: packageName,
@@ -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 = "15.10.3";
20
+ var packageVersion = "15.10.4";
21
21
  var menuStyles = {
22
22
  /* Need to remove default absolute positioning as that causes issues with position fixed */
23
23
  position: 'static',
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["className", "clearValue", "cx", "getStyles", "getValue", "hasValue", "innerProps", "innerRef", "isLoading", "isMulti", "isRtl", "maxMenuHeight", "menuPlacement", "menuPosition", "menuShouldScrollIntoView", "minMenuHeight", "options", "placement", "selectOption", "selectProps", "setValue", "theme", "children"];
3
+ var _excluded = ["className", "clearValue", "cx", "getStyles", "getValue", "hasValue", "innerProps", "innerRef", "isLoading", "isMulti", "isRtl", "maxMenuHeight", "menuPlacement", "menuPosition", "menuShouldScrollIntoView", "minMenuHeight", "options", "placement", "selectOption", "selectProps", "setValue", "children"];
4
4
  /**
5
5
  * @jsxRuntime classic
6
6
  * @jsx jsx
@@ -35,7 +35,6 @@ export var FixedLayerMenu = function FixedLayerMenu(_ref) {
35
35
  selectOption = _ref.selectOption,
36
36
  selectProps = _ref.selectProps,
37
37
  setValue = _ref.setValue,
38
- theme = _ref.theme,
39
38
  children = _ref.children,
40
39
  rest = _objectWithoutProperties(_ref, _excluded);
41
40
  return jsx(FixedLayer, {
@@ -66,9 +65,6 @@ export var FixedLayerMenu = function FixedLayerMenu(_ref) {
66
65
  selectOption: selectOption,
67
66
  selectProps: selectProps,
68
67
  setValue: setValue
69
- // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-unsafe-style-overrides
70
- ,
71
- theme: theme
72
68
  }), children)
73
69
  //@ts-ignore react-select unsupported props
74
70
  ,
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["children", "className", "clearValue", "cx", "data", "getStyles", "getValue", "hasValue", "isDisabled", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
3
+ var _excluded = ["children", "className", "clearValue", "cx", "data", "getStyles", "getValue", "hasValue", "isDisabled", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue"];
4
4
  import React from 'react';
5
5
  import { components } from '@atlaskit/select';
6
6
 
@@ -26,7 +26,6 @@ export var makeSingleValue = function makeSingleValue(_ref) {
26
26
  selectOption = _ref2.selectOption,
27
27
  selectProps = _ref2.selectProps,
28
28
  setValue = _ref2.setValue,
29
- theme = _ref2.theme,
30
29
  rest = _objectWithoutProperties(_ref2, _excluded);
31
30
  return /*#__PURE__*/React.createElement(components.SingleValue, _extends({}, rest, {
32
31
  // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-classname-prop
@@ -47,9 +46,6 @@ export var makeSingleValue = function makeSingleValue(_ref) {
47
46
  selectOption: selectOption,
48
47
  selectProps: selectProps,
49
48
  setValue: setValue
50
- // eslint-disable-next-line @repo/internal/react/no-unsafe-overrides, @atlaskit/design-system/no-unsafe-style-overrides
51
- ,
52
- theme: theme
53
49
  }), children);
54
50
  };
55
51
  };
@@ -7,4 +7,4 @@ import { type MenuProps, type OptionType } from '@atlaskit/select';
7
7
  /**
8
8
  * This is the fixed layer menu used in the time picker.
9
9
  */
10
- export declare const FixedLayerMenu: ({ className, clearValue, cx, getStyles, getValue, hasValue, innerProps, innerRef, isLoading, isMulti, isRtl, maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, options, placement, selectOption, selectProps, setValue, theme, children, ...rest }: MenuProps<OptionType>) => jsx.JSX.Element;
10
+ export declare const FixedLayerMenu: ({ className, clearValue, cx, getStyles, getValue, hasValue, innerProps, innerRef, isLoading, isMulti, isRtl, maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, options, placement, selectOption, selectProps, setValue, children, ...rest }: MenuProps<OptionType>) => jsx.JSX.Element;
@@ -6,4 +6,4 @@ import { type OptionType, type SingleValueProps } from '@atlaskit/select';
6
6
  */
7
7
  export declare const makeSingleValue: ({ lang }: {
8
8
  lang: string;
9
- }) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, theme, ...rest }: SingleValueProps<OptionType, false>) => JSX.Element;
9
+ }) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, ...rest }: SingleValueProps<OptionType, false>) => JSX.Element;
@@ -7,4 +7,4 @@ import { type MenuProps, type OptionType } from '@atlaskit/select';
7
7
  /**
8
8
  * This is the fixed layer menu used in the time picker.
9
9
  */
10
- export declare const FixedLayerMenu: ({ className, clearValue, cx, getStyles, getValue, hasValue, innerProps, innerRef, isLoading, isMulti, isRtl, maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, options, placement, selectOption, selectProps, setValue, theme, children, ...rest }: MenuProps<OptionType>) => jsx.JSX.Element;
10
+ export declare const FixedLayerMenu: ({ className, clearValue, cx, getStyles, getValue, hasValue, innerProps, innerRef, isLoading, isMulti, isRtl, maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, options, placement, selectOption, selectProps, setValue, children, ...rest }: MenuProps<OptionType>) => jsx.JSX.Element;
@@ -6,4 +6,4 @@ import { type OptionType, type SingleValueProps } from '@atlaskit/select';
6
6
  */
7
7
  export declare const makeSingleValue: ({ lang }: {
8
8
  lang: string;
9
- }) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, theme, ...rest }: SingleValueProps<OptionType, false>) => JSX.Element;
9
+ }) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, ...rest }: SingleValueProps<OptionType, false>) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "15.10.3",
3
+ "version": "15.10.4",
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/"
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/platform-feature-flags": "^0.3.0",
48
48
  "@atlaskit/popper": "^6.3.0",
49
49
  "@atlaskit/primitives": "^13.3.0",
50
- "@atlaskit/select": "^18.8.0",
50
+ "@atlaskit/select": "^18.9.0",
51
51
  "@atlaskit/theme": "^14.0.0",
52
52
  "@atlaskit/tokens": "^2.4.0",
53
53
  "@atlaskit/visually-hidden": "^1.5.0",