@atlaskit/datetime-picker 15.9.4 → 15.9.6

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,19 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 15.9.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.9.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#166087](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166087)
14
+ [`3ab7d7da348ab`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3ab7d7da348ab) -
15
+ Adds side-effect config to support Compiled css extraction in third-party apps
16
+
3
17
  ## 15.9.4
4
18
 
5
19
  ### Patch Changes
@@ -43,7 +43,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
43
43
  * @jsx jsx
44
44
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
45
45
  var packageName = "@atlaskit/datetime-picker";
46
- var packageVersion = "15.9.4";
46
+ var packageVersion = "15.9.6";
47
47
  var dropdownIndicatorStyles = (0, _primitives.xcss)({
48
48
  minWidth: "var(--ds-space-300, 24px)",
49
49
  minHeight: "var(--ds-space-300, 24px)",
@@ -568,8 +568,11 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
568
568
  return (
569
569
  // These event handlers must be on this element because the events come
570
570
  // from different child elements.
571
+ // Until innerProps is removed, it must remain a div rather than a primitive component.
571
572
  (0, _react2.jsx)("div", (0, _extends2.default)({}, innerProps, {
572
- css: pickerContainerStyles,
573
+ css: pickerContainerStyles
574
+ // Since the onclick, onfocus are passed down, adding role="presentation" prevents typecheck errors.
575
+ ,
573
576
  role: "presentation",
574
577
  onBlur: this.onContainerBlur,
575
578
  onFocus: this.onContainerFocus,
@@ -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.9.4";
42
+ var packageVersion = "15.9.6";
43
43
  var analyticsAttributes = {
44
44
  componentName: 'datePicker',
45
45
  packageName: packageName,
@@ -560,7 +560,8 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
560
560
  var openCalendarLabelId = "open-calendar-label--".concat((0, _useId.useId)());
561
561
  return (
562
562
  // These event handlers must be on this element because the events come
563
- // from different child elements. Cannot use Box primtive until we remove ...innerProps
563
+ // from different child elements.
564
+ // Until innerProps is removed, it must remain a div rather than a primitive component.
564
565
  (0, _react2.jsx)("div", (0, _extends2.default)({}, innerProps, {
565
566
  css: pickerContainerStyles,
566
567
  "data-testid": testId && "".concat(testId, "--container"),
@@ -570,7 +571,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
570
571
  onInput: onTextInput,
571
572
  onKeyDown: onInputKeyDown,
572
573
  ref: getContainerRef
573
- // loophole role="presentation" as it solves the onclick, onfocus, etc. typecheck errors
574
+ // Since the onclick, onfocus are passed down, adding role="presentation" prevents typecheck errors.
574
575
  ,
575
576
  role: "presentation"
576
577
  }), (0, _react2.jsx)("input", {
@@ -38,7 +38,7 @@ var DatePicker = (0, _ffComponent.componentWithCondition)(function () {
38
38
  return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
39
39
  }, _datePickerFc.default, _datePickerClass.default);
40
40
  var packageName = "@atlaskit/datetime-picker";
41
- var packageVersion = "15.9.4";
41
+ var packageVersion = "15.9.6";
42
42
  // Make DatePicker 50% the width of DateTimePicker
43
43
  // If rendering an icon container, shrink the TimePicker
44
44
  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.9.4";
40
+ var packageVersion = "15.9.6";
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.9.4";
30
+ var packageVersion = "15.9.6";
31
31
  var menuStyles = {
32
32
  /* Need to remove default absolute positioning as that causes issues with position fixed */
33
33
  position: 'static',
@@ -317,10 +317,7 @@ var TimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
317
317
  }), /*#__PURE__*/_react.default.createElement(SelectComponent, (0, _extends2.default)({
318
318
  "aria-describedby": ariaDescribedBy,
319
319
  "aria-label": label || undefined,
320
- appearance: appearance
321
- // we need this disabled as we might need focus to move to the select
322
- // eslint-disable-next-line jsx-a11y/no-autofocus
323
- ,
320
+ appearance: appearance,
324
321
  autoFocus: autoFocus,
325
322
  clearControlLabel: clearControlLabel,
326
323
  components: selectComponents,
@@ -26,7 +26,7 @@ import { Menu } from '../internal/menu';
26
26
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
27
27
  import { makeSingleValue } from '../internal/single-value';
28
28
  const packageName = "@atlaskit/datetime-picker";
29
- const packageVersion = "15.9.4";
29
+ const packageVersion = "15.9.6";
30
30
  const dropdownIndicatorStyles = xcss({
31
31
  minWidth: "var(--ds-space-300, 24px)",
32
32
  minHeight: "var(--ds-space-300, 24px)",
@@ -544,8 +544,11 @@ class DatePickerComponent extends Component {
544
544
  return (
545
545
  // These event handlers must be on this element because the events come
546
546
  // from different child elements.
547
+ // Until innerProps is removed, it must remain a div rather than a primitive component.
547
548
  jsx("div", _extends({}, innerProps, {
548
- css: pickerContainerStyles,
549
+ css: pickerContainerStyles
550
+ // Since the onclick, onfocus are passed down, adding role="presentation" prevents typecheck errors.
551
+ ,
549
552
  role: "presentation",
550
553
  onBlur: this.onContainerBlur,
551
554
  onFocus: this.onContainerFocus,
@@ -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.9.4";
27
+ const packageVersion = "15.9.6";
28
28
  const analyticsAttributes = {
29
29
  componentName: 'datePicker',
30
30
  packageName,
@@ -486,7 +486,8 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
486
486
  const openCalendarLabelId = `open-calendar-label--${useId()}`;
487
487
  return (
488
488
  // These event handlers must be on this element because the events come
489
- // from different child elements. Cannot use Box primtive until we remove ...innerProps
489
+ // from different child elements.
490
+ // Until innerProps is removed, it must remain a div rather than a primitive component.
490
491
  jsx("div", _extends({}, innerProps, {
491
492
  css: pickerContainerStyles,
492
493
  "data-testid": testId && `${testId}--container`,
@@ -496,7 +497,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
496
497
  onInput: onTextInput,
497
498
  onKeyDown: onInputKeyDown,
498
499
  ref: getContainerRef
499
- // loophole role="presentation" as it solves the onclick, onfocus, etc. typecheck errors
500
+ // Since the onclick, onfocus are passed down, adding role="presentation" prevents typecheck errors.
500
501
  ,
501
502
  role: "presentation"
502
503
  }), jsx("input", {
@@ -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.9.4";
25
+ const packageVersion = "15.9.6";
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.9.4";
21
+ const packageVersion = "15.9.6";
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.9.4";
14
+ const packageVersion = "15.9.6";
15
15
  const menuStyles = {
16
16
  /* Need to remove default absolute positioning as that causes issues with position fixed */
17
17
  position: 'static',
@@ -263,10 +263,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
263
263
  }), /*#__PURE__*/React.createElement(SelectComponent, _extends({
264
264
  "aria-describedby": ariaDescribedBy,
265
265
  "aria-label": label || undefined,
266
- appearance: appearance
267
- // we need this disabled as we might need focus to move to the select
268
- // eslint-disable-next-line jsx-a11y/no-autofocus
269
- ,
266
+ appearance: appearance,
270
267
  autoFocus: autoFocus,
271
268
  clearControlLabel: clearControlLabel,
272
269
  components: selectComponents,
@@ -36,7 +36,7 @@ import { Menu } from '../internal/menu';
36
36
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
37
37
  import { makeSingleValue } from '../internal/single-value';
38
38
  var packageName = "@atlaskit/datetime-picker";
39
- var packageVersion = "15.9.4";
39
+ var packageVersion = "15.9.6";
40
40
  var dropdownIndicatorStyles = xcss({
41
41
  minWidth: "var(--ds-space-300, 24px)",
42
42
  minHeight: "var(--ds-space-300, 24px)",
@@ -561,8 +561,11 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
561
561
  return (
562
562
  // These event handlers must be on this element because the events come
563
563
  // from different child elements.
564
+ // Until innerProps is removed, it must remain a div rather than a primitive component.
564
565
  jsx("div", _extends({}, innerProps, {
565
- css: pickerContainerStyles,
566
+ css: pickerContainerStyles
567
+ // Since the onclick, onfocus are passed down, adding role="presentation" prevents typecheck errors.
568
+ ,
566
569
  role: "presentation",
567
570
  onBlur: this.onContainerBlur,
568
571
  onFocus: this.onContainerFocus,
@@ -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.9.4";
33
+ var packageVersion = "15.9.6";
34
34
  var analyticsAttributes = {
35
35
  componentName: 'datePicker',
36
36
  packageName: packageName,
@@ -551,7 +551,8 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
551
551
  var openCalendarLabelId = "open-calendar-label--".concat(useId());
552
552
  return (
553
553
  // These event handlers must be on this element because the events come
554
- // from different child elements. Cannot use Box primtive until we remove ...innerProps
554
+ // from different child elements.
555
+ // Until innerProps is removed, it must remain a div rather than a primitive component.
555
556
  jsx("div", _extends({}, innerProps, {
556
557
  css: pickerContainerStyles,
557
558
  "data-testid": testId && "".concat(testId, "--container"),
@@ -561,7 +562,7 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
561
562
  onInput: onTextInput,
562
563
  onKeyDown: onInputKeyDown,
563
564
  ref: getContainerRef
564
- // loophole role="presentation" as it solves the onclick, onfocus, etc. typecheck errors
565
+ // Since the onclick, onfocus are passed down, adding role="presentation" prevents typecheck errors.
565
566
  ,
566
567
  role: "presentation"
567
568
  }), jsx("input", {
@@ -34,7 +34,7 @@ var DatePicker = componentWithCondition(function () {
34
34
  return fg('dst-date-picker-use-functional-component');
35
35
  }, DatePickerNew, DatePickerOld);
36
36
  var packageName = "@atlaskit/datetime-picker";
37
- var packageVersion = "15.9.4";
37
+ var packageVersion = "15.9.6";
38
38
  // Make DatePicker 50% the width of DateTimePicker
39
39
  // If rendering an icon container, shrink the TimePicker
40
40
  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.9.4";
30
+ var packageVersion = "15.9.6";
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.9.4";
20
+ var packageVersion = "15.9.6";
21
21
  var menuStyles = {
22
22
  /* Need to remove default absolute positioning as that causes issues with position fixed */
23
23
  position: 'static',
@@ -307,10 +307,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
307
307
  }), /*#__PURE__*/React.createElement(SelectComponent, _extends({
308
308
  "aria-describedby": ariaDescribedBy,
309
309
  "aria-label": label || undefined,
310
- appearance: appearance
311
- // we need this disabled as we might need focus to move to the select
312
- // eslint-disable-next-line jsx-a11y/no-autofocus
313
- ,
310
+ appearance: appearance,
314
311
  autoFocus: autoFocus,
315
312
  clearControlLabel: clearControlLabel,
316
313
  components: selectComponents,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "15.9.4",
3
+ "version": "15.9.6",
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/"
@@ -20,7 +20,9 @@
20
20
  ]
21
21
  }
22
22
  },
23
- "sideEffects": false,
23
+ "sideEffects": [
24
+ "**/*.compiled.css"
25
+ ],
24
26
  "atlaskit:src": "src/index.tsx",
25
27
  "af:exports": {
26
28
  ".": "./src/index.tsx",
@@ -30,7 +32,7 @@
30
32
  "team": "Design System Team",
31
33
  "website": {
32
34
  "name": "Date time picker",
33
- "category": "Components"
35
+ "category": "Forms and input"
34
36
  },
35
37
  "runReact18": true
36
38
  },
@@ -38,16 +40,16 @@
38
40
  "@atlaskit/analytics-next": "^10.1.0",
39
41
  "@atlaskit/button": "^20.3.1",
40
42
  "@atlaskit/calendar": "^15.1.0",
41
- "@atlaskit/ds-lib": "^3.2.0",
42
- "@atlaskit/icon": "^22.24.0",
43
+ "@atlaskit/ds-lib": "^3.3.0",
44
+ "@atlaskit/icon": "^23.0.0",
43
45
  "@atlaskit/layering": "^0.8.0",
44
46
  "@atlaskit/locale": "^2.8.0",
45
47
  "@atlaskit/platform-feature-flags": "^0.3.0",
46
48
  "@atlaskit/popper": "^6.3.0",
47
- "@atlaskit/primitives": "^13.2.0",
48
- "@atlaskit/select": "^18.5.0",
49
+ "@atlaskit/primitives": "^13.3.0",
50
+ "@atlaskit/select": "^18.7.0",
49
51
  "@atlaskit/theme": "^14.0.0",
50
- "@atlaskit/tokens": "^2.2.0",
52
+ "@atlaskit/tokens": "^2.4.0",
51
53
  "@atlaskit/visually-hidden": "^1.5.0",
52
54
  "@babel/runtime": "^7.0.0",
53
55
  "@emotion/react": "^11.7.1",
@@ -62,13 +64,13 @@
62
64
  "@af/visual-regression": "*",
63
65
  "@atlaskit/codemod-utils": "4.2.4",
64
66
  "@atlaskit/docs": "*",
65
- "@atlaskit/form": "^10.5.0",
66
- "@atlaskit/modal-dialog": "^12.17.0",
67
- "@atlaskit/popup": "^1.29.0",
67
+ "@atlaskit/form": "^10.6.0",
68
+ "@atlaskit/modal-dialog": "^12.18.0",
69
+ "@atlaskit/popup": "^1.30.0",
68
70
  "@atlaskit/range": "^7.4.0",
69
- "@atlaskit/section-message": "^6.6.0",
71
+ "@atlaskit/section-message": "^6.8.0",
70
72
  "@atlaskit/ssr": "*",
71
- "@atlaskit/textfield": "^6.5.0",
73
+ "@atlaskit/textfield": "^6.6.0",
72
74
  "@atlaskit/toggle": "^13.4.0",
73
75
  "@atlaskit/visual-regression": "*",
74
76
  "@atlassian/feature-flags-test-utils": "*",
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/types.js",
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/types.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {