@atlaskit/datetime-picker 12.5.2 → 12.5.3

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.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`49b08bfdf5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49b08bfdf5f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
8
+
3
9
  ## 12.5.2
4
10
 
5
11
  ### Patch Changes
@@ -35,8 +35,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
35
35
  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; }
36
36
  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); }; }
37
37
  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
38
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
38
39
  var packageName = "@atlaskit/datetime-picker";
39
- var packageVersion = "12.5.2";
40
+ var packageVersion = "12.5.3";
40
41
 
41
42
  /* eslint-disable react/no-unused-prop-types */
42
43
 
@@ -31,7 +31,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
31
31
  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; }
32
32
  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
33
33
  var packageName = "@atlaskit/datetime-picker";
34
- var packageVersion = "12.5.2";
34
+ var packageVersion = "12.5.3";
35
35
 
36
36
  /* eslint-disable react/no-unused-prop-types */
37
37
 
@@ -102,9 +102,9 @@ var timePickerContainerStyles = (0, _react2.css)({
102
102
  var ICON_PADDING = 2;
103
103
  var iconContainerStyles = (0, _react2.css)({
104
104
  display: 'flex',
105
- paddingTop: "6px",
106
- paddingRight: "".concat((0, _constants.gridSize)(), "px"),
107
- paddingBottom: "6px",
105
+ paddingTop: "var(--ds-space-075, 6px)",
106
+ paddingRight: "var(--ds-space-100, 8px)",
107
+ paddingBottom: "var(--ds-space-075, 6px)",
108
108
  paddingLeft: "".concat(ICON_PADDING * 2, "px"),
109
109
  alignItems: 'center',
110
110
  flexBasis: 'inherit',
@@ -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.5.2";
41
+ var packageVersion = "12.5.3";
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.5.2",
3
+ "version": "12.5.3",
4
4
  "sideEffects": false
5
5
  }
@@ -13,12 +13,13 @@ import CalendarIcon from '@atlaskit/icon/glyph/calendar';
13
13
  import { createLocalizationProvider } from '@atlaskit/locale';
14
14
  import Select, { mergeStyles } from '@atlaskit/select';
15
15
  import { N0, N50A, N60A } from '@atlaskit/theme/colors';
16
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
16
17
  import { borderRadius, gridSize, layers } from '@atlaskit/theme/constants';
17
18
  import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from '../internal';
18
19
  import FixedLayer from '../internal/fixed-layer';
19
20
  import { convertTokens } from './utils';
20
21
  const packageName = "@atlaskit/datetime-picker";
21
- const packageVersion = "12.5.2";
22
+ const packageVersion = "12.5.3";
22
23
 
23
24
  /* eslint-disable react/no-unused-prop-types */
24
25
 
@@ -11,13 +11,13 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
11
11
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
12
12
  import { mergeStyles } from '@atlaskit/select';
13
13
  import { B100, N0, N20, N30, N500, N70, R400 } from '@atlaskit/theme/colors';
14
- import { borderRadius, gridSize } from '@atlaskit/theme/constants';
14
+ import { borderRadius } from '@atlaskit/theme/constants';
15
15
  import { defaultTimes, formatDateTimeZoneIntoIso } from '../internal';
16
16
  import DatePicker from './date-picker';
17
17
  import TimePicker from './time-picker';
18
18
  import { convertTokens } from './utils';
19
19
  const packageName = "@atlaskit/datetime-picker";
20
- const packageVersion = "12.5.2";
20
+ const packageVersion = "12.5.3";
21
21
 
22
22
  /* eslint-disable react/no-unused-prop-types */
23
23
 
@@ -88,9 +88,9 @@ const timePickerContainerStyles = css({
88
88
  const ICON_PADDING = 2;
89
89
  const iconContainerStyles = css({
90
90
  display: 'flex',
91
- paddingTop: `6px`,
92
- paddingRight: `${gridSize()}px`,
93
- paddingBottom: `6px`,
91
+ paddingTop: "var(--ds-space-075, 6px)",
92
+ paddingRight: "var(--ds-space-100, 8px)",
93
+ paddingBottom: "var(--ds-space-075, 6px)",
94
94
  paddingLeft: `${ICON_PADDING * 2}px`,
95
95
  alignItems: 'center',
96
96
  flexBasis: 'inherit',
@@ -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.5.2";
19
+ const packageVersion = "12.5.3";
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.5.2",
3
+ "version": "12.5.3",
4
4
  "sideEffects": false
5
5
  }
@@ -24,12 +24,13 @@ import CalendarIcon from '@atlaskit/icon/glyph/calendar';
24
24
  import { createLocalizationProvider } from '@atlaskit/locale';
25
25
  import Select, { mergeStyles } from '@atlaskit/select';
26
26
  import { N0, N50A, N60A } from '@atlaskit/theme/colors';
27
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
27
28
  import { borderRadius, gridSize, layers } from '@atlaskit/theme/constants';
28
29
  import { defaultDateFormat, EmptyComponent, padToTwo, placeholderDatetime } from '../internal';
29
30
  import FixedLayer from '../internal/fixed-layer';
30
31
  import { convertTokens } from './utils';
31
32
  var packageName = "@atlaskit/datetime-picker";
32
- var packageVersion = "12.5.2";
33
+ var packageVersion = "12.5.3";
33
34
 
34
35
  /* eslint-disable react/no-unused-prop-types */
35
36
 
@@ -21,13 +21,13 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
21
21
  import SelectClearIcon from '@atlaskit/icon/glyph/select-clear';
22
22
  import { mergeStyles } from '@atlaskit/select';
23
23
  import { B100, N0, N20, N30, N500, N70, R400 } from '@atlaskit/theme/colors';
24
- import { borderRadius, gridSize } from '@atlaskit/theme/constants';
24
+ import { borderRadius } from '@atlaskit/theme/constants';
25
25
  import { defaultTimes, formatDateTimeZoneIntoIso } from '../internal';
26
26
  import DatePicker from './date-picker';
27
27
  import TimePicker from './time-picker';
28
28
  import { convertTokens } from './utils';
29
29
  var packageName = "@atlaskit/datetime-picker";
30
- var packageVersion = "12.5.2";
30
+ var packageVersion = "12.5.3";
31
31
 
32
32
  /* eslint-disable react/no-unused-prop-types */
33
33
 
@@ -98,9 +98,9 @@ var timePickerContainerStyles = css({
98
98
  var ICON_PADDING = 2;
99
99
  var iconContainerStyles = css({
100
100
  display: 'flex',
101
- paddingTop: "6px",
102
- paddingRight: "".concat(gridSize(), "px"),
103
- paddingBottom: "6px",
101
+ paddingTop: "var(--ds-space-075, 6px)",
102
+ paddingRight: "var(--ds-space-100, 8px)",
103
+ paddingBottom: "var(--ds-space-075, 6px)",
104
104
  paddingLeft: "".concat(ICON_PADDING * 2, "px"),
105
105
  alignItems: 'center',
106
106
  flexBasis: 'inherit',
@@ -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.5.2";
32
+ var packageVersion = "12.5.3";
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.5.2",
3
+ "version": "12.5.3",
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.5.2",
3
+ "version": "12.5.3",
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/"