@atlaskit/checkbox 13.1.0 → 13.1.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/checkbox
2
2
 
3
+ ## 13.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#81644](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81644) [`8ab7a816dca7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ab7a816dca7) - Revert input border change from the previous version
8
+
3
9
  ## 13.1.0
4
10
 
5
11
  ### Minor Changes
@@ -12,6 +12,7 @@ var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
14
14
  var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _colors = require("@atlaskit/theme/colors");
16
17
  var _internal = require("./internal");
17
18
  var _excluded = ["isChecked", "isDisabled", "isInvalid", "defaultChecked", "isIndeterminate", "size", "onChange", "analyticsContext", "label", "name", "value", "isRequired", "testId"];
@@ -46,7 +47,7 @@ var checkboxStyles = (0, _react2.css)({
46
47
  transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
47
48
  'rect:first-of-type': {
48
49
  stroke: 'var(--checkbox-border-color)',
49
- strokeWidth: "var(--ds-border-width, 1px)",
50
+ strokeWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-width, 1px)" : 2,
50
51
  transition: 'stroke 0.2s ease-in-out'
51
52
  }
52
53
  },
@@ -166,7 +167,7 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
166
167
  analyticsData: analyticsContext,
167
168
  componentName: 'checkbox',
168
169
  packageName: "@atlaskit/checkbox",
169
- packageVersion: "13.1.0"
170
+ packageVersion: "13.1.1"
170
171
  });
171
172
  var internalRef = (0, _react.useRef)(null);
172
173
  var mergedRefs = (0, _mergeRefs.default)([internalRef, ref]);
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = Label;
7
7
  var _react = require("@emotion/react");
8
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
9
  var _colors = require("@atlaskit/theme/colors");
9
10
  var _constants = require("./constants");
10
11
  /** @jsx jsx */
@@ -38,14 +39,14 @@ var labelStyles = (0, _react.css)({
38
39
  /**
39
40
  * Border
40
41
  */
41
- '--local-border': "var(--ds-border-input, ".concat(_colors.N100, ")"),
42
+ '--local-border': (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(_colors.N100, ")") : "var(--ds-border-input, ".concat(_colors.N40, ")"),
42
43
  '--local-border-active': "var(--ds-border, ".concat(_colors.B50, ")"),
43
44
  '--local-border-checked': "var(--ds-background-selected-bold, ".concat(_colors.B400, ")"),
44
45
  '--local-border-checked-hover': "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")"),
45
46
  '--local-border-checked-invalid': "var(--ds-border-danger, ".concat(_colors.R300, ")"),
46
47
  '--local-border-disabled': "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
47
48
  '--local-border-focus': "var(--ds-border-focused, ".concat(_colors.B200, ")"),
48
- '--local-border-hover': "var(--ds-border-input, ".concat(_colors.N100, ")"),
49
+ '--local-border-hover': (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(_colors.N100, ")") : "var(--ds-border-input, ".concat(_colors.N40, ")"),
49
50
  '--local-border-invalid': "var(--ds-border-danger, ".concat(_colors.R300, ")"),
50
51
  /**
51
52
  * Tick
@@ -4,6 +4,7 @@ import { forwardRef, memo, useCallback, useRef, useState } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
6
6
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
7
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
7
8
  import { B200 } from '@atlaskit/theme/colors';
8
9
  import { CheckboxIcon, Label, LabelText, RequiredIndicator } from './internal';
9
10
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
@@ -36,7 +37,7 @@ const checkboxStyles = css({
36
37
  transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
37
38
  'rect:first-of-type': {
38
39
  stroke: 'var(--checkbox-border-color)',
39
- strokeWidth: "var(--ds-border-width, 1px)",
40
+ strokeWidth: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-width, 1px)" : 2,
40
41
  transition: 'stroke 0.2s ease-in-out'
41
42
  }
42
43
  },
@@ -150,7 +151,7 @@ const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(pr
150
151
  analyticsData: analyticsContext,
151
152
  componentName: 'checkbox',
152
153
  packageName: "@atlaskit/checkbox",
153
- packageVersion: "13.1.0"
154
+ packageVersion: "13.1.1"
154
155
  });
155
156
  const internalRef = useRef(null);
156
157
  const mergedRefs = mergeRefs([internalRef, ref]);
@@ -1,6 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
- import { B200, B300, B400, B50, N10, N100, N20, N30, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
3
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
+ import { B200, B300, B400, B50, N10, N100, N20, N30, N40, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
4
5
  import { fontFamily } from './constants';
5
6
  const baseStyles = css({
6
7
  display: 'grid',
@@ -31,14 +32,14 @@ const labelStyles = css({
31
32
  /**
32
33
  * Border
33
34
  */
34
- '--local-border': `var(--ds-border-input, ${N100})`,
35
+ '--local-border': getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${N100})` : `var(--ds-border-input, ${N40})`,
35
36
  '--local-border-active': `var(--ds-border, ${B50})`,
36
37
  '--local-border-checked': `var(--ds-background-selected-bold, ${B400})`,
37
38
  '--local-border-checked-hover': `var(--ds-background-selected-bold-hovered, ${B300})`,
38
39
  '--local-border-checked-invalid': `var(--ds-border-danger, ${R300})`,
39
40
  '--local-border-disabled': `var(--ds-background-disabled, ${N20})`,
40
41
  '--local-border-focus': `var(--ds-border-focused, ${B200})`,
41
- '--local-border-hover': `var(--ds-border-input, ${N100})`,
42
+ '--local-border-hover': getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${N100})` : `var(--ds-border-input, ${N40})`,
42
43
  '--local-border-invalid': `var(--ds-border-danger, ${R300})`,
43
44
  /**
44
45
  * Tick
@@ -7,6 +7,7 @@ import { forwardRef, memo, useCallback, useRef, useState } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
9
9
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
10
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
10
11
  import { B200 } from '@atlaskit/theme/colors';
11
12
  import { CheckboxIcon, Label, LabelText, RequiredIndicator } from './internal';
12
13
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
@@ -39,7 +40,7 @@ var checkboxStyles = css({
39
40
  transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
40
41
  'rect:first-of-type': {
41
42
  stroke: 'var(--checkbox-border-color)',
42
- strokeWidth: "var(--ds-border-width, 1px)",
43
+ strokeWidth: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-width, 1px)" : 2,
43
44
  transition: 'stroke 0.2s ease-in-out'
44
45
  }
45
46
  },
@@ -159,7 +160,7 @@ var Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(prop
159
160
  analyticsData: analyticsContext,
160
161
  componentName: 'checkbox',
161
162
  packageName: "@atlaskit/checkbox",
162
- packageVersion: "13.1.0"
163
+ packageVersion: "13.1.1"
163
164
  });
164
165
  var internalRef = useRef(null);
165
166
  var mergedRefs = mergeRefs([internalRef, ref]);
@@ -1,6 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
- import { B200, B300, B400, B50, N10, N100, N20, N30, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
3
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
+ import { B200, B300, B400, B50, N10, N100, N20, N30, N40, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
4
5
  import { fontFamily } from './constants';
5
6
  var baseStyles = css({
6
7
  display: 'grid',
@@ -31,14 +32,14 @@ var labelStyles = css({
31
32
  /**
32
33
  * Border
33
34
  */
34
- '--local-border': "var(--ds-border-input, ".concat(N100, ")"),
35
+ '--local-border': getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(N100, ")") : "var(--ds-border-input, ".concat(N40, ")"),
35
36
  '--local-border-active': "var(--ds-border, ".concat(B50, ")"),
36
37
  '--local-border-checked': "var(--ds-background-selected-bold, ".concat(B400, ")"),
37
38
  '--local-border-checked-hover': "var(--ds-background-selected-bold-hovered, ".concat(B300, ")"),
38
39
  '--local-border-checked-invalid': "var(--ds-border-danger, ".concat(R300, ")"),
39
40
  '--local-border-disabled': "var(--ds-background-disabled, ".concat(N20, ")"),
40
41
  '--local-border-focus': "var(--ds-border-focused, ".concat(B200, ")"),
41
- '--local-border-hover': "var(--ds-border-input, ".concat(N100, ")"),
42
+ '--local-border-hover': getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(N100, ")") : "var(--ds-border-input, ".concat(N40, ")"),
42
43
  '--local-border-invalid': "var(--ds-border-danger, ".concat(R300, ")"),
43
44
  /**
44
45
  * Tick
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "13.1.0",
3
+ "version": "13.1.1",
4
4
  "description": "A checkbox is an input control that allows a user to select one or more options from a number of choices.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,6 +40,7 @@
40
40
  "@atlaskit/analytics-next": "^9.2.0",
41
41
  "@atlaskit/ds-lib": "^2.2.0",
42
42
  "@atlaskit/icon": "^22.1.0",
43
+ "@atlaskit/platform-feature-flags": "^0.2.0",
43
44
  "@atlaskit/theme": "^12.6.0",
44
45
  "@atlaskit/tokens": "^1.41.0",
45
46
  "@babel/runtime": "^7.0.0",
@@ -88,6 +89,11 @@
88
89
  ]
89
90
  }
90
91
  },
92
+ "platform-feature-flags": {
93
+ "platform.design-system-team.update-border-radio-checkbox_7askv": {
94
+ "type": "boolean"
95
+ }
96
+ },
91
97
  "homepage": "https://atlassian.design/components/checkbox/",
92
98
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
93
99
  }