@atlaskit/datetime-picker 16.1.1 → 16.2.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,22 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 16.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#127093](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127093)
8
+ [`1378ea7a99ce1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1378ea7a99ce1) -
9
+ Upgrades `jscodeshift` to handle generics properly.
10
+ - Updated dependencies
11
+
12
+ ## 16.2.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#129522](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/129522)
17
+ [`e1b2aef9e7c6c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e1b2aef9e7c6c) -
18
+ DateTimePicker now uses disabled border and background color tokens when disabled.
19
+
3
20
  ## 16.1.1
4
21
 
5
22
  ### Patch Changes
@@ -40,7 +40,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
40
40
  * @jsx jsx
41
41
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
42
42
  var packageName = "@atlaskit/datetime-picker";
43
- var packageVersion = "16.1.1";
43
+ var packageVersion = "16.2.1";
44
44
  var dropdownIndicatorStyles = (0, _primitives.xcss)({
45
45
  minWidth: "var(--ds-space-300, 24px)",
46
46
  minHeight: "var(--ds-space-300, 24px)",
@@ -38,7 +38,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
38
38
  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; }
39
39
  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; }
40
40
  var packageName = "@atlaskit/datetime-picker";
41
- var packageVersion = "16.1.1";
41
+ var packageVersion = "16.2.1";
42
42
  var analyticsAttributes = {
43
43
  componentName: 'datePicker',
44
44
  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 = "16.1.1";
40
+ var packageVersion = "16.2.1";
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 = "16.1.1";
40
+ var packageVersion = "16.2.1";
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 = "16.1.1";
30
+ var packageVersion = "16.2.1";
31
31
  var menuStyles = {
32
32
  /* Need to remove default absolute positioning as that causes issues with position fixed */
33
33
  position: 'static',
@@ -54,6 +54,8 @@ var isInvalidHoverStyles = (0, _react2.css)({
54
54
  }
55
55
  });
56
56
  var isDisabledStyles = (0, _react2.css)({
57
+ backgroundColor: "var(--ds-background-disabled, #091E4208)",
58
+ borderColor: "var(--ds-border-disabled, #091E420F)",
57
59
  '&:hover': {
58
60
  cursor: 'default'
59
61
  }
@@ -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 = "16.1.1";
27
+ const packageVersion = "16.2.1";
28
28
  const dropdownIndicatorStyles = xcss({
29
29
  minWidth: "var(--ds-space-300, 24px)",
30
30
  minHeight: "var(--ds-space-300, 24px)",
@@ -23,7 +23,7 @@ import { Menu } from '../internal/menu';
23
23
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
24
24
  import { makeSingleValue } from '../internal/single-value';
25
25
  const packageName = "@atlaskit/datetime-picker";
26
- const packageVersion = "16.1.1";
26
+ const packageVersion = "16.2.1";
27
27
  const analyticsAttributes = {
28
28
  componentName: 'datePicker',
29
29
  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 = "16.1.1";
25
+ const packageVersion = "16.2.1";
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 = "16.1.1";
21
+ const packageVersion = "16.2.1";
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 = "16.1.1";
14
+ const packageVersion = "16.2.1";
15
15
  const menuStyles = {
16
16
  /* Need to remove default absolute positioning as that causes issues with position fixed */
17
17
  position: 'static',
@@ -46,6 +46,8 @@ const isInvalidHoverStyles = css({
46
46
  }
47
47
  });
48
48
  const isDisabledStyles = css({
49
+ backgroundColor: "var(--ds-background-disabled, #091E4208)",
50
+ borderColor: "var(--ds-border-disabled, #091E420F)",
49
51
  '&:hover': {
50
52
  cursor: 'default'
51
53
  }
@@ -33,7 +33,7 @@ import { Menu } from '../internal/menu';
33
33
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
34
34
  import { makeSingleValue } from '../internal/single-value';
35
35
  var packageName = "@atlaskit/datetime-picker";
36
- var packageVersion = "16.1.1";
36
+ var packageVersion = "16.2.1";
37
37
  var dropdownIndicatorStyles = xcss({
38
38
  minWidth: "var(--ds-space-300, 24px)",
39
39
  minHeight: "var(--ds-space-300, 24px)",
@@ -29,7 +29,7 @@ import { Menu } from '../internal/menu';
29
29
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
30
30
  import { makeSingleValue } from '../internal/single-value';
31
31
  var packageName = "@atlaskit/datetime-picker";
32
- var packageVersion = "16.1.1";
32
+ var packageVersion = "16.2.1";
33
33
  var analyticsAttributes = {
34
34
  componentName: 'datePicker',
35
35
  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 = "16.1.1";
36
+ var packageVersion = "16.2.1";
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 = "16.1.1";
30
+ var packageVersion = "16.2.1";
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 = "16.1.1";
20
+ var packageVersion = "16.2.1";
21
21
  var menuStyles = {
22
22
  /* Need to remove default absolute positioning as that causes issues with position fixed */
23
23
  position: 'static',
@@ -46,6 +46,8 @@ var isInvalidHoverStyles = css({
46
46
  }
47
47
  });
48
48
  var isDisabledStyles = css({
49
+ backgroundColor: "var(--ds-background-disabled, #091E4208)",
50
+ borderColor: "var(--ds-border-disabled, #091E420F)",
49
51
  '&:hover': {
50
52
  cursor: 'default'
51
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "16.1.1",
3
+ "version": "16.2.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/"
@@ -46,10 +46,10 @@
46
46
  "@atlaskit/locale": "^3.0.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/popper": "^7.0.0",
49
- "@atlaskit/primitives": "^14.1.0",
49
+ "@atlaskit/primitives": "^14.2.0",
50
50
  "@atlaskit/select": "^20.0.0",
51
51
  "@atlaskit/theme": "^18.0.0",
52
- "@atlaskit/tokens": "^4.4.0",
52
+ "@atlaskit/tokens": "^4.5.0",
53
53
  "@atlaskit/visually-hidden": "^3.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
@@ -62,16 +62,16 @@
62
62
  "@af/accessibility-testing": "^2.0.0",
63
63
  "@af/integration-testing": "^0.5.0",
64
64
  "@af/visual-regression": "^1.3.0",
65
- "@atlaskit/code": "^16.0.0",
65
+ "@atlaskit/code": "^16.1.0",
66
66
  "@atlaskit/codemod-utils": "^4.2.0",
67
67
  "@atlaskit/docs": "^10.0.0",
68
68
  "@atlaskit/form": "^12.0.0",
69
69
  "@atlaskit/heading": "^5.1.0",
70
70
  "@atlaskit/link": "^3.0.0",
71
- "@atlaskit/modal-dialog": "^13.0.0",
71
+ "@atlaskit/modal-dialog": "^13.4.0",
72
72
  "@atlaskit/popup": "^2.0.0",
73
73
  "@atlaskit/range": "^9.0.0",
74
- "@atlaskit/section-message": "^8.1.0",
74
+ "@atlaskit/section-message": "^8.2.0",
75
75
  "@atlaskit/ssr": "^0.4.0",
76
76
  "@atlaskit/textfield": "^8.0.0",
77
77
  "@atlaskit/toggle": "^15.0.0",
@@ -80,7 +80,7 @@
80
80
  "@testing-library/user-event": "^14.4.3",
81
81
  "@types/testing-library__jest-dom": "^5.14.5",
82
82
  "jest-in-case": "^1.0.2",
83
- "jscodeshift": "^0.13.0",
83
+ "jscodeshift": "^0.16.1",
84
84
  "moment": "^2.29.2",
85
85
  "react-dom": "^18.2.0",
86
86
  "react-lorem-component": "^0.13.0",