@atlaskit/datetime-picker 12.7.0 → 12.7.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 12.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`774ed69ecef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/774ed69ecef) - Internal changes to use space tokens for spacing values. There is no visual change.
8
+
3
9
  ## 12.7.0
4
10
 
5
11
  ### Minor Changes
@@ -36,9 +36,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
36
36
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
37
37
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
38
38
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable @repo/internal/react/use-noop */ /** @jsx jsx */ // eslint-disable-next-line no-restricted-imports
39
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
40
39
  var packageName = "@atlaskit/datetime-picker";
41
- var packageVersion = "12.7.0";
40
+ var packageVersion = "12.7.1";
42
41
 
43
42
  /* eslint-disable react/no-unused-prop-types */
44
43
 
@@ -430,7 +429,6 @@ var DatePicker = /*#__PURE__*/function (_Component) {
430
429
  locale = _this$props3.locale,
431
430
  testId = _this$props3.testId,
432
431
  weekStartDay = _this$props3.weekStartDay;
433
- var ICON_PADDING = 2;
434
432
  var _this$getSafeState7 = this.getSafeState(),
435
433
  value = _this$getSafeState7.value,
436
434
  calendarValue = _this$getSafeState7.calendarValue,
@@ -505,11 +503,13 @@ var DatePicker = /*#__PURE__*/function (_Component) {
505
503
  },
506
504
  indicatorsContainer: function indicatorsContainer(base) {
507
505
  return _objectSpread(_objectSpread({}, base), {}, {
508
- paddingLeft: ICON_PADDING,
509
- paddingRight: (0, _constants.gridSize)() - ICON_PADDING
506
+ paddingLeft: "var(--ds-space-025, 2px)",
507
+ // ICON_PADDING = 2
508
+ paddingRight: "var(--ds-space-075, 6px)" // 8 - ICON_PADDING = 6
510
509
  });
511
510
  }
512
511
  }),
512
+
513
513
  placeholder: this.getPlaceholder(),
514
514
  value: value && {
515
515
  label: this.formatDate(value),
@@ -32,7 +32,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
32
32
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
33
33
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /* eslint-disable @repo/internal/react/use-noop */ /** @jsx jsx */ // eslint-disable-next-line no-restricted-imports
34
34
  var packageName = "@atlaskit/datetime-picker";
35
- var packageVersion = "12.7.0";
35
+ var packageVersion = "12.7.1";
36
36
 
37
37
  /* eslint-disable react/no-unused-prop-types */
38
38
 
@@ -38,7 +38,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
38
38
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
39
39
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
40
40
  var packageName = "@atlaskit/datetime-picker";
41
- var packageVersion = "12.7.0";
41
+ var packageVersion = "12.7.1";
42
42
 
43
43
  /* eslint-disable react/no-unused-prop-types */
44
44
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "12.7.0",
3
+ "version": "12.7.1",
4
4
  "sideEffects": false
5
5
  }
@@ -14,13 +14,12 @@ import { createLocalizationProvider } from '@atlaskit/locale';
14
14
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
15
15
  import Select, { mergeStyles } from '@atlaskit/select';
16
16
  import { N0, N50A, N60A } from '@atlaskit/theme/colors';
17
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
18
- import { borderRadius, gridSize, layers } from '@atlaskit/theme/constants';
17
+ import { borderRadius, layers } from '@atlaskit/theme/constants';
19
18
  import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from '../internal';
20
19
  import FixedLayer from '../internal/fixed-layer';
21
20
  import { convertTokens } from './utils';
22
21
  const packageName = "@atlaskit/datetime-picker";
23
- const packageVersion = "12.7.0";
22
+ const packageVersion = "12.7.1";
24
23
 
25
24
  /* eslint-disable react/no-unused-prop-types */
26
25
 
@@ -417,7 +416,6 @@ class DatePicker extends Component {
417
416
  testId,
418
417
  weekStartDay
419
418
  } = this.props;
420
- const ICON_PADDING = 2;
421
419
  const {
422
420
  value,
423
421
  calendarValue,
@@ -496,10 +494,12 @@ class DatePicker extends Component {
496
494
  }),
497
495
  indicatorsContainer: base => ({
498
496
  ...base,
499
- paddingLeft: ICON_PADDING,
500
- paddingRight: gridSize() - ICON_PADDING
497
+ paddingLeft: "var(--ds-space-025, 2px)",
498
+ // ICON_PADDING = 2
499
+ paddingRight: "var(--ds-space-075, 6px)" // 8 - ICON_PADDING = 6
501
500
  })
502
501
  }),
502
+
503
503
  placeholder: this.getPlaceholder(),
504
504
  value: value && {
505
505
  label: this.formatDate(value),
@@ -18,7 +18,7 @@ import DatePicker from './date-picker';
18
18
  import TimePicker from './time-picker';
19
19
  import { convertTokens } from './utils';
20
20
  const packageName = "@atlaskit/datetime-picker";
21
- const packageVersion = "12.7.0";
21
+ const packageVersion = "12.7.1";
22
22
 
23
23
  /* eslint-disable react/no-unused-prop-types */
24
24
 
@@ -16,7 +16,7 @@ import FixedLayer from '../internal/fixed-layer';
16
16
  import parseTime from '../internal/parse-time';
17
17
  import { convertTokens } from './utils';
18
18
  const packageName = "@atlaskit/datetime-picker";
19
- const packageVersion = "12.7.0";
19
+ const packageVersion = "12.7.1";
20
20
 
21
21
  /* eslint-disable react/no-unused-prop-types */
22
22
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "12.7.0",
3
+ "version": "12.7.1",
4
4
  "sideEffects": false
5
5
  }
@@ -25,13 +25,12 @@ import { createLocalizationProvider } from '@atlaskit/locale';
25
25
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
26
26
  import Select, { mergeStyles } from '@atlaskit/select';
27
27
  import { N0, N50A, N60A } from '@atlaskit/theme/colors';
28
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
29
- import { borderRadius, gridSize, layers } from '@atlaskit/theme/constants';
28
+ import { borderRadius, layers } from '@atlaskit/theme/constants';
30
29
  import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from '../internal';
31
30
  import FixedLayer from '../internal/fixed-layer';
32
31
  import { convertTokens } from './utils';
33
32
  var packageName = "@atlaskit/datetime-picker";
34
- var packageVersion = "12.7.0";
33
+ var packageVersion = "12.7.1";
35
34
 
36
35
  /* eslint-disable react/no-unused-prop-types */
37
36
 
@@ -423,7 +422,6 @@ var DatePicker = /*#__PURE__*/function (_Component) {
423
422
  locale = _this$props3.locale,
424
423
  testId = _this$props3.testId,
425
424
  weekStartDay = _this$props3.weekStartDay;
426
- var ICON_PADDING = 2;
427
425
  var _this$getSafeState7 = this.getSafeState(),
428
426
  value = _this$getSafeState7.value,
429
427
  calendarValue = _this$getSafeState7.calendarValue,
@@ -498,11 +496,13 @@ var DatePicker = /*#__PURE__*/function (_Component) {
498
496
  },
499
497
  indicatorsContainer: function indicatorsContainer(base) {
500
498
  return _objectSpread(_objectSpread({}, base), {}, {
501
- paddingLeft: ICON_PADDING,
502
- paddingRight: gridSize() - ICON_PADDING
499
+ paddingLeft: "var(--ds-space-025, 2px)",
500
+ // ICON_PADDING = 2
501
+ paddingRight: "var(--ds-space-075, 6px)" // 8 - ICON_PADDING = 6
503
502
  });
504
503
  }
505
504
  }),
505
+
506
506
  placeholder: this.getPlaceholder(),
507
507
  value: value && {
508
508
  label: this.formatDate(value),
@@ -28,7 +28,7 @@ import DatePicker from './date-picker';
28
28
  import TimePicker from './time-picker';
29
29
  import { convertTokens } from './utils';
30
30
  var packageName = "@atlaskit/datetime-picker";
31
- var packageVersion = "12.7.0";
31
+ var packageVersion = "12.7.1";
32
32
 
33
33
  /* eslint-disable react/no-unused-prop-types */
34
34
 
@@ -29,7 +29,7 @@ import FixedLayer from '../internal/fixed-layer';
29
29
  import parseTime from '../internal/parse-time';
30
30
  import { convertTokens } from './utils';
31
31
  var packageName = "@atlaskit/datetime-picker";
32
- var packageVersion = "12.7.0";
32
+ var packageVersion = "12.7.1";
33
33
 
34
34
  /* eslint-disable react/no-unused-prop-types */
35
35
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "12.7.0",
3
+ "version": "12.7.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "12.7.0",
3
+ "version": "12.7.1",
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/"
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/docs": "*",
57
57
  "@atlaskit/field-base": "^15.2.0",
58
58
  "@atlaskit/form": "^8.11.0",
59
- "@atlaskit/modal-dialog": "^12.5.0",
59
+ "@atlaskit/modal-dialog": "^12.6.0",
60
60
  "@atlaskit/popup": "^1.6.0",
61
61
  "@atlaskit/range": "^7.1.0",
62
62
  "@atlaskit/section-message": "^6.4.0",