@atlaskit/datetime-picker 13.5.2 → 13.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.
@@ -36,7 +36,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
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() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
38
38
  var packageName = "@atlaskit/datetime-picker";
39
- var packageVersion = "13.5.2";
39
+ var packageVersion = "13.5.3";
40
40
  var datePickerDefaultProps = {
41
41
  appearance: 'default',
42
42
  autoFocus: false,
@@ -31,7 +31,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
31
31
  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; }
32
32
  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; } /** @jsx jsx */
33
33
  var packageName = "@atlaskit/datetime-picker";
34
- var packageVersion = "13.5.2";
34
+ var packageVersion = "13.5.3";
35
35
  // Make DatePicker 50% the width of DateTimePicker
36
36
  // If rendering an icon container, shrink the TimePicker
37
37
  var datePickerContainerStyles = (0, _react2.css)({
@@ -45,6 +45,7 @@ var timePickerContainerStyles = (0, _react2.css)({
45
45
  });
46
46
  var iconContainerStyles = (0, _react2.css)({
47
47
  display: 'flex',
48
+ margin: "var(--ds-border-width, 1px)",
48
49
  alignItems: 'center',
49
50
  flexBasis: 'inherit',
50
51
  backgroundColor: 'inherit',
@@ -36,7 +36,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
36
36
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line no-restricted-imports
37
37
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
38
38
  var packageName = "@atlaskit/datetime-picker";
39
- var packageVersion = "13.5.2";
39
+ var packageVersion = "13.5.3";
40
40
  var menuStyles = {
41
41
  /* Need to remove default absolute positioning as that causes issues with position fixed */
42
42
  position: 'static',
@@ -14,7 +14,8 @@ var isInvalidBorderStyles = (0, _react.css)({
14
14
  borderColor: "var(--ds-border-danger, ".concat(_colors.R400, ")")
15
15
  });
16
16
  var isFocusedBorderStyles = (0, _react.css)({
17
- borderColor: "var(--ds-border-focused, ".concat(_colors.B100, ")")
17
+ borderColor: "var(--ds-border-focused, ".concat(_colors.B100, ")"),
18
+ boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border-focused, ".concat(_colors.B100, ")"))
18
19
  });
19
20
  var isFocusedStyles = (0, _react.css)({
20
21
  backgroundColor: "var(--ds-background-input-pressed, ".concat(_colors.N0, ")")
@@ -16,7 +16,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
16
16
  import { convertTokens } from '../internal/parse-tokens';
17
17
  import { makeSingleValue } from '../internal/single-value';
18
18
  const packageName = "@atlaskit/datetime-picker";
19
- const packageVersion = "13.5.2";
19
+ const packageVersion = "13.5.3";
20
20
  const datePickerDefaultProps = {
21
21
  appearance: 'default',
22
22
  autoFocus: false,
@@ -15,7 +15,7 @@ import { convertTokens } from '../internal/parse-tokens';
15
15
  import DatePicker from './date-picker';
16
16
  import TimePicker from './time-picker';
17
17
  const packageName = "@atlaskit/datetime-picker";
18
- const packageVersion = "13.5.2";
18
+ const packageVersion = "13.5.3";
19
19
  // Make DatePicker 50% the width of DateTimePicker
20
20
  // If rendering an icon container, shrink the TimePicker
21
21
  const datePickerContainerStyles = css({
@@ -29,6 +29,7 @@ const timePickerContainerStyles = css({
29
29
  });
30
30
  const iconContainerStyles = css({
31
31
  display: 'flex',
32
+ margin: "var(--ds-border-width, 1px)",
32
33
  alignItems: 'center',
33
34
  flexBasis: 'inherit',
34
35
  backgroundColor: 'inherit',
@@ -16,7 +16,7 @@ import parseTime from '../internal/parse-time';
16
16
  import { convertTokens } from '../internal/parse-tokens';
17
17
  import { makeSingleValue } from '../internal/single-value';
18
18
  const packageName = "@atlaskit/datetime-picker";
19
- const packageVersion = "13.5.2";
19
+ const packageVersion = "13.5.3";
20
20
  const menuStyles = {
21
21
  /* Need to remove default absolute positioning as that causes issues with position fixed */
22
22
  position: 'static',
@@ -6,7 +6,8 @@ const isInvalidBorderStyles = css({
6
6
  borderColor: `var(--ds-border-danger, ${R400})`
7
7
  });
8
8
  const isFocusedBorderStyles = css({
9
- borderColor: `var(--ds-border-focused, ${B100})`
9
+ borderColor: `var(--ds-border-focused, ${B100})`,
10
+ boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} ${`var(--ds-border-focused, ${B100})`}`
10
11
  });
11
12
  const isFocusedStyles = css({
12
13
  backgroundColor: `var(--ds-background-input-pressed, ${N0})`
@@ -27,7 +27,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
27
27
  import { convertTokens } from '../internal/parse-tokens';
28
28
  import { makeSingleValue } from '../internal/single-value';
29
29
  var packageName = "@atlaskit/datetime-picker";
30
- var packageVersion = "13.5.2";
30
+ var packageVersion = "13.5.3";
31
31
  var datePickerDefaultProps = {
32
32
  appearance: 'default',
33
33
  autoFocus: false,
@@ -25,7 +25,7 @@ import { convertTokens } from '../internal/parse-tokens';
25
25
  import DatePicker from './date-picker';
26
26
  import TimePicker from './time-picker';
27
27
  var packageName = "@atlaskit/datetime-picker";
28
- var packageVersion = "13.5.2";
28
+ var packageVersion = "13.5.3";
29
29
  // Make DatePicker 50% the width of DateTimePicker
30
30
  // If rendering an icon container, shrink the TimePicker
31
31
  var datePickerContainerStyles = css({
@@ -39,6 +39,7 @@ var timePickerContainerStyles = css({
39
39
  });
40
40
  var iconContainerStyles = css({
41
41
  display: 'flex',
42
+ margin: "var(--ds-border-width, 1px)",
42
43
  alignItems: 'center',
43
44
  flexBasis: 'inherit',
44
45
  backgroundColor: 'inherit',
@@ -28,7 +28,7 @@ import parseTime from '../internal/parse-time';
28
28
  import { convertTokens } from '../internal/parse-tokens';
29
29
  import { makeSingleValue } from '../internal/single-value';
30
30
  var packageName = "@atlaskit/datetime-picker";
31
- var packageVersion = "13.5.2";
31
+ var packageVersion = "13.5.3";
32
32
  var menuStyles = {
33
33
  /* Need to remove default absolute positioning as that causes issues with position fixed */
34
34
  position: 'static',
@@ -6,7 +6,8 @@ var isInvalidBorderStyles = css({
6
6
  borderColor: "var(--ds-border-danger, ".concat(R400, ")")
7
7
  });
8
8
  var isFocusedBorderStyles = css({
9
- borderColor: "var(--ds-border-focused, ".concat(B100, ")")
9
+ borderColor: "var(--ds-border-focused, ".concat(B100, ")"),
10
+ boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " ", "var(--ds-border-focused, ".concat(B100, ")"))
10
11
  });
11
12
  var isFocusedStyles = css({
12
13
  backgroundColor: "var(--ds-background-input-pressed, ".concat(N0, ")")
@@ -6,9 +6,7 @@ export type Spacing = 'compact' | 'default';
6
6
  export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
7
7
  /**
8
8
  * Set the appearance of the picker.
9
- *
10
9
  * `subtle` will remove the borders, background, and icon.
11
- *
12
10
  * **NOTE:** Appearance values will be ignored if styles are parsed through `selectProps`.
13
11
  */
14
12
  appearance?: Appearance;
@@ -6,9 +6,7 @@ export type Spacing = 'compact' | 'default';
6
6
  export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
7
7
  /**
8
8
  * Set the appearance of the picker.
9
- *
10
9
  * `subtle` will remove the borders, background, and icon.
11
- *
12
10
  * **NOTE:** Appearance values will be ignored if styles are parsed through `selectProps`.
13
11
  */
14
12
  appearance?: Appearance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "13.5.2",
3
+ "version": "13.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/"
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/platform-feature-flags": "^0.2.0",
49
49
  "@atlaskit/popper": "^6.0.0",
50
50
  "@atlaskit/select": "^17.10.0",
51
- "@atlaskit/theme": "^12.8.0",
51
+ "@atlaskit/theme": "^12.9.0",
52
52
  "@atlaskit/tokens": "^1.49.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1",
@@ -65,7 +65,7 @@
65
65
  "@af/visual-regression": "*",
66
66
  "@atlaskit/button": "^17.17.0",
67
67
  "@atlaskit/docs": "*",
68
- "@atlaskit/form": "^10.2.0",
68
+ "@atlaskit/form": "^10.3.0",
69
69
  "@atlaskit/modal-dialog": "^12.13.0",
70
70
  "@atlaskit/popup": "^1.17.0",
71
71
  "@atlaskit/range": "^7.2.0",
@@ -74,7 +74,6 @@
74
74
  "@atlaskit/textfield": "^6.3.0",
75
75
  "@atlaskit/toggle": "^13.1.0",
76
76
  "@atlaskit/visual-regression": "*",
77
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
78
77
  "@atlassian/feature-flags-test-utils": "*",
79
78
  "@testing-library/react": "^12.1.5",
80
79
  "@testing-library/user-event": "^14.4.3",
@@ -112,6 +111,5 @@
112
111
  "type": "boolean"
113
112
  }
114
113
  },
115
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
116
114
  "homepage": "https://atlassian.design/components/datetime-picker/"
117
115
  }