@atlaskit/checkbox 17.3.4 → 17.3.6

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,18 @@
1
1
  # @atlaskit/checkbox
2
2
 
3
+ ## 17.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 17.3.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`03f794ce20f2f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/03f794ce20f2f) -
14
+ Clean up and removal of the `platform-checkbox-atomic-styles` feature gate.
15
+
3
16
  ## 17.3.4
4
17
 
5
18
  ### Patch Changes
@@ -1,72 +1,13 @@
1
1
 
2
2
  ._19itglyw{border:none}
3
- ._19op11so+svg rect:first-of-type{transition:stroke .2s ease-in-out}
4
- ._1dk71nfn._1dk71nfn:focus+svg{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#2684ff)}
5
- ._1ef78r4n._1ef78r4n:checked:focus+svg{border-radius:var(--ds-radius-small,.25rem)}
6
- ._1h6r8r4n._1h6r8r4n:focus+svg{border-radius:var(--ds-radius-small,.25rem)}
7
- ._9bg71mn3+svg{transition:color .2s ease-in-out,fill .2s ease-in-out}
8
- ._nd5lfibj{grid-area:1/1/2/2}
9
- ._r050fibj+svg{grid-area:1/1/2/2}
10
- ._smzg1nfn._smzg1nfn:checked:focus+svg{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#2684ff)}._10oaq2ws:checked[data-invalid]+svg{--checkbox-border-color:var(--local-border-checked-invalid)}
11
- ._10y313gf:disabled+svg{cursor:not-allowed}
12
- ._12ji1r31{outline-color:currentColor}
3
+ ._nd5lfibj{grid-area:1/1/2/2}._12ji1r31{outline-color:currentColor}
13
4
  ._12l2ze3t{margin-inline-end:var(--ds-space-0,0)}
14
- ._12sr13gf:disabled[data-invalid]+svg{cursor:not-allowed}
15
5
  ._12y31o36{outline-width:medium}
16
- ._13wo93zu+svg{--checkbox-background-color:var(--local-background)}
17
- ._141bmz2b:disabled:active+svg{--checkbox-background-color:var(--local-background-disabled)}
18
- ._15y61vek:active+svg{--checkbox-border-color:var(--local-border-active)}
19
- ._1610e4h9+svg rect:first-of-type{stroke-width:var(--ds-border-width,1px)}
20
- ._16jiglyw:disabled+svg{pointer-events:none}
21
- ._18qu1ps2:indeterminate+svg{--checkbox-background-color:var(--local-background-checked)}
22
- ._1adw13gf:disabled:hover+svg{cursor:not-allowed}
23
- ._1ah9199y:hover+svg{--checkbox-border-color:var(--local-border-hover)}
24
- ._1bok170n:checked+svg{--checkbox-border-color:var(--local-border-checked)}
25
6
  ._1bsb1osq{width:100%}
26
- ._1efy1diq:disabled:hover+svg{--checkbox-border-color:var(--local-border-disabled)}
27
- ._1fo21cni+svg{fill:var(--checkbox-tick-color)}
28
- ._1frj180l:checked:hover+svg{--checkbox-background-color:var(--local-background-checked-hover)}
29
- ._1g52170n:indeterminate+svg{--checkbox-border-color:var(--local-border-checked)}
30
- ._1jbnglyw:disabled[data-invalid]+svg{pointer-events:none}
31
- ._1jiz1diq:disabled:active+svg{--checkbox-border-color:var(--local-border-disabled)}
32
- ._1log17cl:indeterminate+svg{--checkbox-tick-color:var(--local-tick-checked)}
33
- ._1mhr17cl:checked+svg{--checkbox-tick-color:var(--local-tick-checked)}
34
- ._1niqglyw:disabled:focus+svg{pointer-events:none}
35
- ._1oav1diq:disabled[data-invalid]+svg{--checkbox-border-color:var(--local-border-disabled)}
36
7
  ._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
37
8
  ._1qu2glyw{outline-style:none}
38
- ._1vv91diq:disabled:indeterminate+svg{--checkbox-border-color:var(--local-border-disabled)}
39
- ._1wt913gf:disabled:active+svg{cursor:not-allowed}
40
- ._255gmz2b:disabled:focus+svg{--checkbox-background-color:var(--local-background-disabled)}
41
- ._32hzmz2b:disabled:indeterminate+svg{--checkbox-background-color:var(--local-background-disabled)}
42
9
  ._4t3i1osq{height:100%}
43
- ._693jglyw:disabled:active+svg{pointer-events:none}
44
10
  ._6rthze3t{margin-block-end:var(--ds-space-0,0)}
45
- ._8gq114p8+svg{--checkbox-tick-color:var(--local-tick-rest)}
46
- ._a30fhteq+svg rect:first-of-type{stroke:var(--checkbox-border-color)}
47
11
  ._ahbqze3t{margin-inline-start:var(--ds-space-0,0)}
48
- ._axq81diq:disabled+svg{--checkbox-border-color:var(--local-border-disabled)}
49
- ._cl9tglyw:disabled:hover+svg{pointer-events:none}
50
- ._dwvb1ps2:checked+svg{--checkbox-background-color:var(--local-background-checked)}
51
- ._e6ww155b:checked:active+svg{--checkbox-background-color:var(--local-background-active)}
52
- ._eyedglyw+svg{pointer-events:none}
53
- ._fx2i3rva[data-invalid]+svg{--checkbox-border-color:var(--local-border-invalid)}
54
- ._h78e1g3k:checked:hover+svg{--checkbox-border-color:var(--local-border-checked-hover)}
55
- ._j1ta1hou:disabled:checked+svg{--checkbox-tick-color:var(--local-tick-disabled)}
56
- ._jj67mz2b:disabled:hover+svg{--checkbox-background-color:var(--local-background-disabled)}
57
- ._l71j1i6y._l71j1i6y:checked:focus+svg{outline-offset:var(--ds-space-negative-025,-2px)}
58
- ._q5a61gyf+svg{--checkbox-border-color:var(--local-border)}
59
- ._qq8613gf:disabled:focus+svg{cursor:not-allowed}
60
12
  ._r06hglyw{-webkit-appearance:none;appearance:none}
61
- ._rphw18jz:checked:active+svg{--checkbox-tick-color:var(--local-tick-active)}
62
- ._s9051diq:disabled:focus+svg{--checkbox-border-color:var(--local-border-disabled)}
63
- ._sg1j1vek:checked:active+svg{--checkbox-border-color:var(--local-border-active)}
64
- ._swhgmz2b:disabled[data-invalid]+svg{--checkbox-background-color:var(--local-background-disabled)}
65
- ._t34a1i6y._t34a1i6y:focus+svg{outline-offset:var(--ds-space-negative-025,-2px)}
66
- ._tzy4idpf{opacity:0}
67
- ._w12s155b:active+svg{--checkbox-background-color:var(--local-background-active)}
68
- ._wje2mov0+svg{color:var(--checkbox-background-color)}
69
- ._y32gkivo:hover+svg{--checkbox-background-color:var(--local-background-hover)}
70
- ._y9y9mz2b:disabled+svg{--checkbox-background-color:var(--local-background-disabled)}
71
- ._yjhd1hou:disabled:indeterminate+svg{--checkbox-tick-color:var(--local-tick-disabled)}
72
- @media screen and (forced-colors:active){._w1cowc43+svg{--checkbox-background-color:Canvas}._jdqn1onz+svg{--checkbox-border-color:CanvasText}._4y4t1onz+svg{--checkbox-tick-color:CanvasText}._lvfrwc43:checked+svg{--checkbox-background-color:Canvas}._g68dwc43:checked:hover+svg{--checkbox-background-color:Canvas}._13dk1onz:checked+svg{--checkbox-border-color:CanvasText}._w1el1onz:checked:hover+svg{--checkbox-border-color:CanvasText}._a9yw1onz:checked+svg{--checkbox-tick-color:CanvasText}._1l3g1onz:checked:hover+svg{--checkbox-tick-color:CanvasText}._dcdpgir2:focus+svg rect:first-of-type{stroke:Highlight}._wobcgir2[data-invalid]+svg{--checkbox-border-color:Highlight}._rp9wgir2:checked[data-invalid]+svg{--checkbox-border-color:Highlight}._9ebfwc43:disabled+svg{--checkbox-background-color:Canvas}._e43iwc43:disabled:active+svg{--checkbox-background-color:Canvas}._1tkuwc43:disabled:focus+svg{--checkbox-background-color:Canvas}._1lehwc43:disabled:hover+svg{--checkbox-background-color:Canvas}._b9q3wc43:disabled[data-invalid]+svg{--checkbox-background-color:Canvas}._tu2918qt:disabled+svg{--checkbox-border-color:GrayText}._1uxv18qt:disabled:active+svg{--checkbox-border-color:GrayText}._1ufw18qt:disabled:focus+svg{--checkbox-border-color:GrayText}._opo918qt:disabled:hover+svg{--checkbox-border-color:GrayText}._1e8318qt:disabled[data-invalid]+svg{--checkbox-border-color:GrayText}._1k3d18qt:disabled+svg{--checkbox-tick-color:GrayText}._25yv18qt:disabled:active+svg{--checkbox-tick-color:GrayText}._1igz18qt:disabled:focus+svg{--checkbox-tick-color:GrayText}._c7cc18qt:disabled:hover+svg{--checkbox-tick-color:GrayText}._1swg18qt:disabled[data-invalid]+svg{--checkbox-tick-color:GrayText}}
13
+ ._tzy4idpf{opacity:0}
@@ -1,4 +1,4 @@
1
- /* checkbox.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* checkbox.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -16,7 +16,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
16
16
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
17
17
  var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
18
18
  var _mergeRefs = _interopRequireDefault(require("@atlaskit/ds-lib/merge-refs"));
19
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
19
  var _internal = require("./internal");
21
20
  var _excluded = ["isChecked", "isDisabled", "isInvalid", "defaultChecked", "isIndeterminate", "onChange", "analyticsContext", "label", "name", "value", "isRequired", "testId", "xcss", "className"];
22
21
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -29,19 +28,6 @@ var checkboxStyles = {
29
28
  root: "_19itglyw _nd5lfibj _12ji1r31 _1qu2glyw _12y31o36 _1bsb1osq _4t3i1osq _r06hglyw _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _tzy4idpf"
30
29
  };
31
30
 
32
- /**
33
- * Legacy hidden input styles with nested sibling selectors.
34
- * Used when the `platform-checkbox-atomic-styles` feature gate is disabled.
35
- * Using `cssMap` to avoid a Compiled bug with the transformed styles.
36
- * It was using a CSS variable for the outline template string,
37
- * which broke because of the use of a sibling selector.
38
- *
39
- * Related to: https://github.com/atlassian-labs/compiled/pull/1795
40
- */
41
- var checkboxStylesLegacy = {
42
- root: "_19itglyw _nd5lfibj _12ji1r31 _1qu2glyw _12y31o36 _1bsb1osq _4t3i1osq _r06hglyw _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _tzy4idpf _r050fibj _9bg71mn3 _19op11so _a30fhteq _1610e4h9 _13wo93zu _q5a61gyf _8gq114p8 _wje2mov0 _1fo21cni _eyedglyw _1ef78r4n _1h6r8r4n _smzg1nfn _1dk71nfn _l71j1i6y _t34a1i6y _y32gkivo _1ah9199y _1frj180l _h78e1g3k _dwvb1ps2 _1bok170n _1mhr17cl _fx2i3rva _10oaq2ws _w12s155b _15y61vek _e6ww155b _sg1j1vek _rphw18jz _y9y9mz2b _141bmz2b _255gmz2b _jj67mz2b _swhgmz2b _axq81diq _1jiz1diq _s9051diq _1efy1diq _1oav1diq _10y313gf _1wt913gf _qq8613gf _1adw13gf _12sr13gf _16jiglyw _693jglyw _1niqglyw _cl9tglyw _1jbnglyw _j1ta1hou _18qu1ps2 _1g52170n _1log17cl _32hzmz2b _1vv91diq _yjhd1hou _w1cowc43 _jdqn1onz _4y4t1onz _lvfrwc43 _g68dwc43 _13dk1onz _w1el1onz _a9yw1onz _1l3g1onz _dcdpgir2 _wobcgir2 _rp9wgir2 _9ebfwc43 _e43iwc43 _1tkuwc43 _1lehwc43 _b9q3wc43 _tu2918qt _1uxv18qt _1ufw18qt _opo918qt _1e8318qt _1k3d18qt _25yv18qt _1igz18qt _c7cc18qt _1swg18qt"
43
- };
44
-
45
31
  /**
46
32
  * __Checkbox__
47
33
  *
@@ -101,9 +87,9 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
101
87
  }, [isIndeterminate]);
102
88
  return /*#__PURE__*/React.createElement(_internal.Label, {
103
89
  isDisabled: isDisabled,
104
- isChecked: (0, _platformFeatureFlags.fg)('platform-checkbox-atomic-styles') ? isChecked : undefined,
105
- isIndeterminate: (0, _platformFeatureFlags.fg)('platform-checkbox-atomic-styles') ? isIndeterminate : undefined,
106
- isInvalid: (0, _platformFeatureFlags.fg)('platform-checkbox-atomic-styles') ? isInvalid : undefined,
90
+ isChecked: isChecked,
91
+ isIndeterminate: isIndeterminate,
92
+ isInvalid: isInvalid,
107
93
  label: label,
108
94
  id: rest.id ? "".concat(rest.id, "-label") : undefined,
109
95
  testId: testId && "".concat(testId, "--checkbox-label")
@@ -123,7 +109,7 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
123
109
  name: name,
124
110
  required: isRequired,
125
111
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
126
- className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-checkbox-atomic-styles') && checkboxStyles.root, !(0, _platformFeatureFlags.fg)('platform-checkbox-atomic-styles') && checkboxStylesLegacy.root, className]),
112
+ className: (0, _runtime.ax)([checkboxStyles.root, className]),
127
113
  onChange: onChangeAnalytics,
128
114
  "aria-invalid": isInvalid ? 'true' : undefined,
129
115
  "data-testid": testId && "".concat(testId, "--hidden-checkbox"),
@@ -10,5 +10,4 @@
10
10
  ._1snbe4h9{stroke-width:var(--ds-border-width,1px)}
11
11
  ._lcxvglyw{pointer-events:none}
12
12
  ._lswu1kgh{fill:var(--checkbox-tick-color,var(--ds-surface,#fff))}
13
- ._lswuvuon{fill:var(--ds-surface,#fff)}
14
13
  ._syazmov0{color:var(--checkbox-background-color)}
@@ -1,4 +1,4 @@
1
- /* checkbox-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* checkbox-icon.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -10,7 +10,6 @@ require("./checkbox-icon.compiled.css");
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var React = _react;
12
12
  var _runtime = require("@compiled/react/runtime");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
14
  /**
16
15
  * Styles for the checkbox icon.
@@ -21,12 +20,6 @@ var svgStyles = {
21
20
  root: "_nd5lfibj _1reo15vq _18m915vq _v5641mn3 _2rko12b0 _1a3742bt _lcxvglyw _syazmov0 _lswu1kgh _1cwg1i6y",
22
21
  rect: "_v56411so _1snbe4h9 _1s17hteq"
23
22
  };
24
-
25
- /**
26
- * Legacy SVG styles.
27
- * Used when the `platform-checkbox-atomic-styles` feature gate is disabled.
28
- */
29
- var svgStylesLegacy = null;
30
23
  function getIcon(isIndeterminate, isChecked) {
31
24
  if (isIndeterminate) {
32
25
  return /*#__PURE__*/React.createElement("path", {
@@ -62,39 +55,12 @@ var CheckboxIcon = /*#__PURE__*/(0, _react.memo)(function (_ref) {
62
55
  var icon = (0, _react.useMemo)(function () {
63
56
  return getIcon(isIndeterminate, isChecked);
64
57
  }, [isIndeterminate, isChecked]);
65
- if ((0, _platformFeatureFlags.fg)('platform-checkbox-atomic-styles')) {
66
- return /*#__PURE__*/React.createElement("svg", {
67
- width: 24,
68
- height: 24,
69
- viewBox: "0 0 24 24",
70
- role: "presentation",
71
- className: (0, _runtime.ax)([svgStyles.root])
72
- }, /*#__PURE__*/React.createElement("g", {
73
- fillRule: "evenodd"
74
- }, /*#__PURE__*/React.createElement("rect", {
75
- fill: "currentColor",
76
- x: "5.5",
77
- y: "5.5",
78
- width: "13",
79
- height: "13",
80
- rx: "1.5",
81
- className: (0, _runtime.ax)([svgStyles.rect])
82
- }), icon));
83
- }
84
-
85
- // Legacy rendering with inline style props for CSS variable consumption
86
58
  return /*#__PURE__*/React.createElement("svg", {
87
59
  width: 24,
88
60
  height: 24,
89
61
  viewBox: "0 0 24 24",
90
- style: {
91
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
92
- color: 'var(--checkbox-background-color)',
93
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
94
- fill: 'var(--checkbox-tick-color)'
95
- },
96
62
  role: "presentation",
97
- className: (0, _runtime.ax)(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw"])
63
+ className: (0, _runtime.ax)([svgStyles.root])
98
64
  }, /*#__PURE__*/React.createElement("g", {
99
65
  fillRule: "evenodd"
100
66
  }, /*#__PURE__*/React.createElement("rect", {
@@ -103,7 +69,8 @@ var CheckboxIcon = /*#__PURE__*/(0, _react.memo)(function (_ref) {
103
69
  y: "5.5",
104
70
  width: "13",
105
71
  height: "13",
106
- rx: "1.5"
72
+ rx: "1.5",
73
+ className: (0, _runtime.ax)([svgStyles.rect])
107
74
  }), icon));
108
75
  });
109
76
  var _default = exports.default = CheckboxIcon;
@@ -1,4 +1,4 @@
1
- /* label-text.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* label-text.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,44 +1,23 @@
1
1
  ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulp1nu5{gap:var(--ds-space-0,0) var(--ds-space-050,4px)}
3
- ._13hr1j28{--local-tick-rest:transparent}
4
- ._18q0snw8{--local-tick-disabled:var(--_1xmcmw9)}
5
3
  ._1c53glyw{--checkbox-outline:none}
6
- ._1dik1ehr{--local-border-checked-hover:var(--_14y1fod)}
7
4
  ._1e0c11p5{display:grid}
8
5
  ._1e9d1j28{--checkbox-tick-color:transparent}
9
6
  ._1e9d2sac{--checkbox-tick-color:var(--ds-icon-disabled,#080f214a)}
10
7
  ._1e9d5w2r{--checkbox-tick-color:var(--ds-icon-inverse,#fff)}
11
8
  ._1ejihkll{grid-auto-columns:1fr}
12
- ._1esz1j4g{--local-background-checked:var(--_1gcp7nr)}
13
- ._1g1fe69j{--local-border-active:var(--_rczcge)}
14
- ._1j3h1380{--local-border-invalid:var(--_1i4xulb)}
15
- ._1nzs1kc0{--local-background-active:var(--_1cd0fcx)}
16
9
  ._1qwn1j9a{--checkbox-background-color:var(--ds-background-input,#fff)}
17
10
  ._1qwnby5v{--checkbox-background-color:var(--ds-background-disabled,#17171708)}
18
11
  ._1qwnjmqp{--checkbox-background-color:var(--ds-background-selected-bold,#1868db)}
19
- ._1rdaeh7q{--local-tick-checked:var(--_jf353p)}
20
- ._1sfg1380{--local-border-checked-invalid:var(--_1i4xulb)}
21
- ._1yjc3zdg{--local-border-focus:var(--_xjqa3d)}
22
12
  ._80om13gf{cursor:not-allowed}
23
13
  ._80om73ad{cursor:default}
24
- ._ay2w1ouc{--local-background-disabled:var(--_r5pknd)}
25
- ._d51u12ci{--local-background-hover:var(--_1z08gfx)}
26
- ._eawbxz7c{--local-tick-active:var(--_uq1ko9)}
27
14
  ._f0gr1bqt{--checkbox-border-color:var(--ds-border-danger,#e2483d)}
28
15
  ._f0grby5v{--checkbox-border-color:var(--ds-background-disabled,#17171708)}
29
16
  ._f0grjmqp{--checkbox-border-color:var(--ds-background-selected-bold,#1868db)}
30
17
  ._f0grrsbi{--checkbox-border-color:var(--ds-border-input,#8c8f97)}
31
- ._fpdj1ouc{--local-border-disabled:var(--_r5pknd)}
32
- ._h5e31kd8{--local-background:var(--_4mkb4g)}
33
- ._l6wk1j4g{--local-border-checked:var(--_1gcp7nr)}
34
- ._oaj1ddza{--local-border-hover:var(--_vnm8xo)}
35
- ._phftddza{--local-border:var(--_vnm8xo)}
36
18
  ._syaz1tvo{color:var(--ds-text-disabled,#97a0af)}
37
- ._syaz7wap{color:var(--_1ynhf1h)}
38
19
  ._syazi7uo{color:var(--ds-text,#292a2e)}
39
- ._syazovqm{color:var(--_5xk3r4)}
40
20
  ._umai184x{grid-auto-rows:min-content}
41
- ._yp0j1ehr{--local-background-checked-hover:var(--_14y1fod)}
42
21
  ._yv0ey09t{grid-template-columns:min-content auto}
43
22
  ._ljcgdfik:focus-within{--checkbox-outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#4688ec)}
44
23
  ._1vj51q28:hover{--checkbox-background-color:var(--ds-background-selected-bold-hovered,#1558bc)}
@@ -1,4 +1,13 @@
1
- /* label.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* label.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ /**
3
+ * Base state styles with CSS custom properties.
4
+ * Pseudo-selectors (:hover, :focus-within, :active) on the label element
5
+ * update CSS variables that cascade to the CheckboxIcon.
6
+ * This avoids nested sibling selectors.
7
+ *
8
+ * Uses `css` over `cssMap` to work around a bug in Compiled types when
9
+ * using CSS variables in pseudo-selectors.
10
+ */
2
11
  "use strict";
3
12
 
4
13
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -9,18 +18,7 @@ exports.default = Label;
9
18
  require("./label.compiled.css");
10
19
  var React = _interopRequireWildcard(require("react"));
11
20
  var _runtime = require("@compiled/react/runtime");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
- var _colors = require("@atlaskit/theme/colors");
14
21
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
- /**
16
- * Base state styles with CSS custom properties.
17
- * Pseudo-selectors (:hover, :focus-within, :active) on the label element
18
- * update CSS variables that cascade to the CheckboxIcon.
19
- * This avoids nested sibling selectors.
20
- *
21
- * Uses `css` over `cssMap` to work around a bug in Compiled types when
22
- * using CSS variables in pseudo-selectors.
23
- */
24
22
  var baseStyles = null;
25
23
  var textLabelLayoutStyles = null;
26
24
 
@@ -35,15 +33,6 @@ var disabledStyles = null;
35
33
 
36
34
  // Disabled + Checked/Indeterminate
37
35
  var disabledCheckedStyles = null;
38
-
39
- /**
40
- * Legacy label styles with --local-* CSS custom properties.
41
- * These are consumed by the nested sibling selectors in checkbox.tsx.
42
- */
43
- var legacyBaseStyles = null;
44
- var legacyTextLabelLayoutStyles = null;
45
- var legacyDisabledStyles = null;
46
- var legacyLabelStyles = null;
47
36
  function Label(_ref) {
48
37
  var children = _ref.children,
49
38
  isDisabled = _ref.isDisabled,
@@ -54,35 +43,10 @@ function Label(_ref) {
54
43
  label = _ref.label,
55
44
  id = _ref.id,
56
45
  xcss = _ref.xcss;
57
- if ((0, _platformFeatureFlags.fg)('platform-checkbox-atomic-styles')) {
58
- return /*#__PURE__*/React.createElement("label", {
59
- className: (0, _runtime.ax)(["_11c8fhey _1e0c11p5 _1ejihkll _umai184x _1qwn1j9a _f0grrsbi _1c53glyw _1e9d1j28 _syazi7uo _80om73ad _ljcgdfik _1vj5l4ek _dh4gr01l _cz1u1l7x _jom5wc43 _1s071onz _106f1onz", label && "_zulp1nu5 _yv0ey09t", (isChecked || isIndeterminate) && "_1qwnjmqp _f0grjmqp _1e9d5w2r _1vj51q28 _q29q1q28 _dh4gr01l _cz1u1l7x _zoo95w2r _jom5wc43 _1s071onz _106f1onz", isInvalid && "_f0gr1bqt _q29q1bqt _cz1u1bqt _1s07gir2", isDisabled && "_1qwnby5v _f0grby5v _syaz1tvo _80om13gf _1vj5by5v _q29qby5v _dh4gby5v _cz1uby5v _jom5wc43 _1s0718qt _106f18qt", isDisabled && (isChecked || isIndeterminate) && "_1e9d2sac _9js12sac _zoo92sac", xcss]),
60
- "data-testid": testId,
61
- "data-disabled": isDisabled || undefined,
62
- id: id
63
- }, children);
64
- }
65
46
  return /*#__PURE__*/React.createElement("label", {
66
- className: (0, _runtime.ax)(["_11c8fhey _1e0c11p5 _1ejihkll _umai184x _syazovqm _80om73ad", label && "_zulp1nu5 _yv0ey09t", isDisabled && "_syaz7wap _80om13gf", "_h5e31kd8 _1nzs1kc0 _1esz1j4g _yp0j1ehr _ay2w1ouc _d51u12ci _phftddza _1g1fe69j _l6wk1j4g _1dik1ehr _1sfg1380 _fpdj1ouc _1yjc3zdg _oaj1ddza _1j3h1380 _eawbxz7c _1rdaeh7q _18q0snw8 _13hr1j28", xcss]),
47
+ className: (0, _runtime.ax)(["_11c8fhey _1e0c11p5 _1ejihkll _umai184x _1qwn1j9a _f0grrsbi _1c53glyw _1e9d1j28 _syazi7uo _80om73ad _ljcgdfik _1vj5l4ek _dh4gr01l _cz1u1l7x _jom5wc43 _1s071onz _106f1onz", label && "_zulp1nu5 _yv0ey09t", (isChecked || isIndeterminate) && "_1qwnjmqp _f0grjmqp _1e9d5w2r _1vj51q28 _q29q1q28 _dh4gr01l _cz1u1l7x _zoo95w2r _jom5wc43 _1s071onz _106f1onz", isInvalid && "_f0gr1bqt _q29q1bqt _cz1u1bqt _1s07gir2", isDisabled && "_1qwnby5v _f0grby5v _syaz1tvo _80om13gf _1vj5by5v _q29qby5v _dh4gby5v _cz1uby5v _jom5wc43 _1s0718qt _106f18qt", isDisabled && (isChecked || isIndeterminate) && "_1e9d2sac _9js12sac _zoo92sac", xcss]),
67
48
  "data-testid": testId,
68
49
  "data-disabled": isDisabled || undefined,
69
- id: id,
70
- style: {
71
- "--_5xk3r4": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N900, ")")),
72
- "--_1ynhf1h": (0, _runtime.ix)("var(--ds-text-disabled, ".concat(_colors.N80, ")")),
73
- "--_4mkb4g": (0, _runtime.ix)("var(--ds-background-input, ".concat(_colors.N10, ")")),
74
- "--_1cd0fcx": (0, _runtime.ix)("var(--ds-background-input-pressed, ".concat(_colors.B50, ")")),
75
- "--_1gcp7nr": (0, _runtime.ix)("var(--ds-background-selected-bold, ".concat(_colors.B400, ")")),
76
- "--_14y1fod": (0, _runtime.ix)("var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")")),
77
- "--_r5pknd": (0, _runtime.ix)("var(--ds-background-disabled, ".concat(_colors.N20, ")")),
78
- "--_1z08gfx": (0, _runtime.ix)("var(--ds-background-input-hovered, ".concat(_colors.N30, ")")),
79
- "--_vnm8xo": (0, _runtime.ix)("var(--ds-border-input, ".concat(_colors.N100, ")")),
80
- "--_rczcge": (0, _runtime.ix)("var(--ds-border, ".concat(_colors.B50, ")")),
81
- "--_1i4xulb": (0, _runtime.ix)("var(--ds-border-danger, ".concat(_colors.R300, ")")),
82
- "--_xjqa3d": (0, _runtime.ix)("var(--ds-border-focused, ".concat(_colors.B200, ")")),
83
- "--_uq1ko9": (0, _runtime.ix)("var(--ds-icon-inverse, ".concat(_colors.B400, ")")),
84
- "--_jf353p": (0, _runtime.ix)("var(--ds-icon-inverse, ".concat(_colors.N10, ")")),
85
- "--_1xmcmw9": (0, _runtime.ix)("var(--ds-icon-disabled, ".concat(_colors.N70, ")"))
86
- }
50
+ id: id
87
51
  }, children);
88
52
  }
@@ -1,4 +1,4 @@
1
- /* required-indicator.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* required-indicator.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,72 +1,13 @@
1
1
 
2
2
  ._19itglyw{border:none}
3
- ._19op11so+svg rect:first-of-type{transition:stroke .2s ease-in-out}
4
- ._1dk71nfn._1dk71nfn:focus+svg{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#2684ff)}
5
- ._1ef78r4n._1ef78r4n:checked:focus+svg{border-radius:var(--ds-radius-small,.25rem)}
6
- ._1h6r8r4n._1h6r8r4n:focus+svg{border-radius:var(--ds-radius-small,.25rem)}
7
- ._9bg71mn3+svg{transition:color .2s ease-in-out,fill .2s ease-in-out}
8
- ._nd5lfibj{grid-area:1/1/2/2}
9
- ._r050fibj+svg{grid-area:1/1/2/2}
10
- ._smzg1nfn._smzg1nfn:checked:focus+svg{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#2684ff)}._10oaq2ws:checked[data-invalid]+svg{--checkbox-border-color:var(--local-border-checked-invalid)}
11
- ._10y313gf:disabled+svg{cursor:not-allowed}
12
- ._12ji1r31{outline-color:currentColor}
3
+ ._nd5lfibj{grid-area:1/1/2/2}._12ji1r31{outline-color:currentColor}
13
4
  ._12l2ze3t{margin-inline-end:var(--ds-space-0,0)}
14
- ._12sr13gf:disabled[data-invalid]+svg{cursor:not-allowed}
15
5
  ._12y31o36{outline-width:medium}
16
- ._13wo93zu+svg{--checkbox-background-color:var(--local-background)}
17
- ._141bmz2b:disabled:active+svg{--checkbox-background-color:var(--local-background-disabled)}
18
- ._15y61vek:active+svg{--checkbox-border-color:var(--local-border-active)}
19
- ._1610e4h9+svg rect:first-of-type{stroke-width:var(--ds-border-width,1px)}
20
- ._16jiglyw:disabled+svg{pointer-events:none}
21
- ._18qu1ps2:indeterminate+svg{--checkbox-background-color:var(--local-background-checked)}
22
- ._1adw13gf:disabled:hover+svg{cursor:not-allowed}
23
- ._1ah9199y:hover+svg{--checkbox-border-color:var(--local-border-hover)}
24
- ._1bok170n:checked+svg{--checkbox-border-color:var(--local-border-checked)}
25
6
  ._1bsb1osq{width:100%}
26
- ._1efy1diq:disabled:hover+svg{--checkbox-border-color:var(--local-border-disabled)}
27
- ._1fo21cni+svg{fill:var(--checkbox-tick-color)}
28
- ._1frj180l:checked:hover+svg{--checkbox-background-color:var(--local-background-checked-hover)}
29
- ._1g52170n:indeterminate+svg{--checkbox-border-color:var(--local-border-checked)}
30
- ._1jbnglyw:disabled[data-invalid]+svg{pointer-events:none}
31
- ._1jiz1diq:disabled:active+svg{--checkbox-border-color:var(--local-border-disabled)}
32
- ._1log17cl:indeterminate+svg{--checkbox-tick-color:var(--local-tick-checked)}
33
- ._1mhr17cl:checked+svg{--checkbox-tick-color:var(--local-tick-checked)}
34
- ._1niqglyw:disabled:focus+svg{pointer-events:none}
35
- ._1oav1diq:disabled[data-invalid]+svg{--checkbox-border-color:var(--local-border-disabled)}
36
7
  ._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
37
8
  ._1qu2glyw{outline-style:none}
38
- ._1vv91diq:disabled:indeterminate+svg{--checkbox-border-color:var(--local-border-disabled)}
39
- ._1wt913gf:disabled:active+svg{cursor:not-allowed}
40
- ._255gmz2b:disabled:focus+svg{--checkbox-background-color:var(--local-background-disabled)}
41
- ._32hzmz2b:disabled:indeterminate+svg{--checkbox-background-color:var(--local-background-disabled)}
42
9
  ._4t3i1osq{height:100%}
43
- ._693jglyw:disabled:active+svg{pointer-events:none}
44
10
  ._6rthze3t{margin-block-end:var(--ds-space-0,0)}
45
- ._8gq114p8+svg{--checkbox-tick-color:var(--local-tick-rest)}
46
- ._a30fhteq+svg rect:first-of-type{stroke:var(--checkbox-border-color)}
47
11
  ._ahbqze3t{margin-inline-start:var(--ds-space-0,0)}
48
- ._axq81diq:disabled+svg{--checkbox-border-color:var(--local-border-disabled)}
49
- ._cl9tglyw:disabled:hover+svg{pointer-events:none}
50
- ._dwvb1ps2:checked+svg{--checkbox-background-color:var(--local-background-checked)}
51
- ._e6ww155b:checked:active+svg{--checkbox-background-color:var(--local-background-active)}
52
- ._eyedglyw+svg{pointer-events:none}
53
- ._fx2i3rva[data-invalid]+svg{--checkbox-border-color:var(--local-border-invalid)}
54
- ._h78e1g3k:checked:hover+svg{--checkbox-border-color:var(--local-border-checked-hover)}
55
- ._j1ta1hou:disabled:checked+svg{--checkbox-tick-color:var(--local-tick-disabled)}
56
- ._jj67mz2b:disabled:hover+svg{--checkbox-background-color:var(--local-background-disabled)}
57
- ._l71j1i6y._l71j1i6y:checked:focus+svg{outline-offset:var(--ds-space-negative-025,-2px)}
58
- ._q5a61gyf+svg{--checkbox-border-color:var(--local-border)}
59
- ._qq8613gf:disabled:focus+svg{cursor:not-allowed}
60
12
  ._r06hglyw{-webkit-appearance:none;appearance:none}
61
- ._rphw18jz:checked:active+svg{--checkbox-tick-color:var(--local-tick-active)}
62
- ._s9051diq:disabled:focus+svg{--checkbox-border-color:var(--local-border-disabled)}
63
- ._sg1j1vek:checked:active+svg{--checkbox-border-color:var(--local-border-active)}
64
- ._swhgmz2b:disabled[data-invalid]+svg{--checkbox-background-color:var(--local-background-disabled)}
65
- ._t34a1i6y._t34a1i6y:focus+svg{outline-offset:var(--ds-space-negative-025,-2px)}
66
- ._tzy4idpf{opacity:0}
67
- ._w12s155b:active+svg{--checkbox-background-color:var(--local-background-active)}
68
- ._wje2mov0+svg{color:var(--checkbox-background-color)}
69
- ._y32gkivo:hover+svg{--checkbox-background-color:var(--local-background-hover)}
70
- ._y9y9mz2b:disabled+svg{--checkbox-background-color:var(--local-background-disabled)}
71
- ._yjhd1hou:disabled:indeterminate+svg{--checkbox-tick-color:var(--local-tick-disabled)}
72
- @media screen and (forced-colors:active){._w1cowc43+svg{--checkbox-background-color:Canvas}._jdqn1onz+svg{--checkbox-border-color:CanvasText}._4y4t1onz+svg{--checkbox-tick-color:CanvasText}._lvfrwc43:checked+svg{--checkbox-background-color:Canvas}._g68dwc43:checked:hover+svg{--checkbox-background-color:Canvas}._13dk1onz:checked+svg{--checkbox-border-color:CanvasText}._w1el1onz:checked:hover+svg{--checkbox-border-color:CanvasText}._a9yw1onz:checked+svg{--checkbox-tick-color:CanvasText}._1l3g1onz:checked:hover+svg{--checkbox-tick-color:CanvasText}._dcdpgir2:focus+svg rect:first-of-type{stroke:Highlight}._wobcgir2[data-invalid]+svg{--checkbox-border-color:Highlight}._rp9wgir2:checked[data-invalid]+svg{--checkbox-border-color:Highlight}._9ebfwc43:disabled+svg{--checkbox-background-color:Canvas}._e43iwc43:disabled:active+svg{--checkbox-background-color:Canvas}._1tkuwc43:disabled:focus+svg{--checkbox-background-color:Canvas}._1lehwc43:disabled:hover+svg{--checkbox-background-color:Canvas}._b9q3wc43:disabled[data-invalid]+svg{--checkbox-background-color:Canvas}._tu2918qt:disabled+svg{--checkbox-border-color:GrayText}._1uxv18qt:disabled:active+svg{--checkbox-border-color:GrayText}._1ufw18qt:disabled:focus+svg{--checkbox-border-color:GrayText}._opo918qt:disabled:hover+svg{--checkbox-border-color:GrayText}._1e8318qt:disabled[data-invalid]+svg{--checkbox-border-color:GrayText}._1k3d18qt:disabled+svg{--checkbox-tick-color:GrayText}._25yv18qt:disabled:active+svg{--checkbox-tick-color:GrayText}._1igz18qt:disabled:focus+svg{--checkbox-tick-color:GrayText}._c7cc18qt:disabled:hover+svg{--checkbox-tick-color:GrayText}._1swg18qt:disabled[data-invalid]+svg{--checkbox-tick-color:GrayText}}
13
+ ._tzy4idpf{opacity:0}
@@ -1,4 +1,4 @@
1
- /* checkbox.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* checkbox.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./checkbox.compiled.css";
4
4
  import * as React from 'react';
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  import { forwardRef, memo, useCallback, useEffect, useRef, useState } from 'react';
7
7
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
8
8
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { CheckboxIcon, Label, LabelText, RequiredIndicator } from './internal';
11
10
  /**
12
11
  * The input is visually hidden but remains in the DOM for accessibility.
@@ -17,19 +16,6 @@ const checkboxStyles = {
17
16
  root: "_19itglyw _nd5lfibj _12ji1r31 _1qu2glyw _12y31o36 _1bsb1osq _4t3i1osq _r06hglyw _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _tzy4idpf"
18
17
  };
19
18
 
20
- /**
21
- * Legacy hidden input styles with nested sibling selectors.
22
- * Used when the `platform-checkbox-atomic-styles` feature gate is disabled.
23
- * Using `cssMap` to avoid a Compiled bug with the transformed styles.
24
- * It was using a CSS variable for the outline template string,
25
- * which broke because of the use of a sibling selector.
26
- *
27
- * Related to: https://github.com/atlassian-labs/compiled/pull/1795
28
- */
29
- const checkboxStylesLegacy = {
30
- root: "_19itglyw _nd5lfibj _12ji1r31 _1qu2glyw _12y31o36 _1bsb1osq _4t3i1osq _r06hglyw _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _tzy4idpf _r050fibj _9bg71mn3 _19op11so _a30fhteq _1610e4h9 _13wo93zu _q5a61gyf _8gq114p8 _wje2mov0 _1fo21cni _eyedglyw _1ef78r4n _1h6r8r4n _smzg1nfn _1dk71nfn _l71j1i6y _t34a1i6y _y32gkivo _1ah9199y _1frj180l _h78e1g3k _dwvb1ps2 _1bok170n _1mhr17cl _fx2i3rva _10oaq2ws _w12s155b _15y61vek _e6ww155b _sg1j1vek _rphw18jz _y9y9mz2b _141bmz2b _255gmz2b _jj67mz2b _swhgmz2b _axq81diq _1jiz1diq _s9051diq _1efy1diq _1oav1diq _10y313gf _1wt913gf _qq8613gf _1adw13gf _12sr13gf _16jiglyw _693jglyw _1niqglyw _cl9tglyw _1jbnglyw _j1ta1hou _18qu1ps2 _1g52170n _1log17cl _32hzmz2b _1vv91diq _yjhd1hou _w1cowc43 _jdqn1onz _4y4t1onz _lvfrwc43 _g68dwc43 _13dk1onz _w1el1onz _a9yw1onz _1l3g1onz _dcdpgir2 _wobcgir2 _rp9wgir2 _9ebfwc43 _e43iwc43 _1tkuwc43 _1lehwc43 _b9q3wc43 _tu2918qt _1uxv18qt _1ufw18qt _opo918qt _1e8318qt _1k3d18qt _25yv18qt _1igz18qt _c7cc18qt _1swg18qt"
31
- };
32
-
33
19
  /**
34
20
  * __Checkbox__
35
21
  *
@@ -83,9 +69,9 @@ const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox({
83
69
  }, [isIndeterminate]);
84
70
  return /*#__PURE__*/React.createElement(Label, {
85
71
  isDisabled: isDisabled,
86
- isChecked: fg('platform-checkbox-atomic-styles') ? isChecked : undefined,
87
- isIndeterminate: fg('platform-checkbox-atomic-styles') ? isIndeterminate : undefined,
88
- isInvalid: fg('platform-checkbox-atomic-styles') ? isInvalid : undefined,
72
+ isChecked: isChecked,
73
+ isIndeterminate: isIndeterminate,
74
+ isInvalid: isInvalid,
89
75
  label: label,
90
76
  id: rest.id ? `${rest.id}-label` : undefined,
91
77
  testId: testId && `${testId}--checkbox-label`
@@ -105,7 +91,7 @@ const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox({
105
91
  name: name,
106
92
  required: isRequired,
107
93
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
108
- className: ax([fg('platform-checkbox-atomic-styles') && checkboxStyles.root, !fg('platform-checkbox-atomic-styles') && checkboxStylesLegacy.root, className]),
94
+ className: ax([checkboxStyles.root, className]),
109
95
  onChange: onChangeAnalytics,
110
96
  "aria-invalid": isInvalid ? 'true' : undefined,
111
97
  "data-testid": testId && `${testId}--hidden-checkbox`,
@@ -10,5 +10,4 @@
10
10
  ._1snbe4h9{stroke-width:var(--ds-border-width,1px)}
11
11
  ._lcxvglyw{pointer-events:none}
12
12
  ._lswu1kgh{fill:var(--checkbox-tick-color,var(--ds-surface,#fff))}
13
- ._lswuvuon{fill:var(--ds-surface,#fff)}
14
13
  ._syazmov0{color:var(--checkbox-background-color)}
@@ -1,9 +1,8 @@
1
- /* checkbox-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* checkbox-icon.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./checkbox-icon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { memo, useMemo } from 'react';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  /**
8
7
  * Styles for the checkbox icon.
9
8
  * CSS custom properties for colors are set by the parent Label element
@@ -13,12 +12,6 @@ const svgStyles = {
13
12
  root: "_nd5lfibj _1reo15vq _18m915vq _v5641mn3 _2rko12b0 _1a3742bt _lcxvglyw _syazmov0 _lswu1kgh _1cwg1i6y",
14
13
  rect: "_v56411so _1snbe4h9 _1s17hteq"
15
14
  };
16
-
17
- /**
18
- * Legacy SVG styles.
19
- * Used when the `platform-checkbox-atomic-styles` feature gate is disabled.
20
- */
21
- const svgStylesLegacy = null;
22
15
  function getIcon(isIndeterminate, isChecked) {
23
16
  if (isIndeterminate) {
24
17
  return /*#__PURE__*/React.createElement("path", {
@@ -53,39 +46,12 @@ const CheckboxIcon = /*#__PURE__*/memo(({
53
46
  isChecked
54
47
  }) => {
55
48
  const icon = useMemo(() => getIcon(isIndeterminate, isChecked), [isIndeterminate, isChecked]);
56
- if (fg('platform-checkbox-atomic-styles')) {
57
- return /*#__PURE__*/React.createElement("svg", {
58
- width: 24,
59
- height: 24,
60
- viewBox: "0 0 24 24",
61
- role: "presentation",
62
- className: ax([svgStyles.root])
63
- }, /*#__PURE__*/React.createElement("g", {
64
- fillRule: "evenodd"
65
- }, /*#__PURE__*/React.createElement("rect", {
66
- fill: "currentColor",
67
- x: "5.5",
68
- y: "5.5",
69
- width: "13",
70
- height: "13",
71
- rx: "1.5",
72
- className: ax([svgStyles.rect])
73
- }), icon));
74
- }
75
-
76
- // Legacy rendering with inline style props for CSS variable consumption
77
49
  return /*#__PURE__*/React.createElement("svg", {
78
50
  width: 24,
79
51
  height: 24,
80
52
  viewBox: "0 0 24 24",
81
- style: {
82
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
83
- color: 'var(--checkbox-background-color)',
84
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
85
- fill: 'var(--checkbox-tick-color)'
86
- },
87
53
  role: "presentation",
88
- className: ax(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw"])
54
+ className: ax([svgStyles.root])
89
55
  }, /*#__PURE__*/React.createElement("g", {
90
56
  fillRule: "evenodd"
91
57
  }, /*#__PURE__*/React.createElement("rect", {
@@ -94,7 +60,8 @@ const CheckboxIcon = /*#__PURE__*/memo(({
94
60
  y: "5.5",
95
61
  width: "13",
96
62
  height: "13",
97
- rx: "1.5"
63
+ rx: "1.5",
64
+ className: ax([svgStyles.rect])
98
65
  }), icon));
99
66
  });
100
67
  export default CheckboxIcon;
@@ -1,4 +1,4 @@
1
- /* label-text.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* label-text.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./label-text.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,43 +1,23 @@
1
1
  ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulp1nu5{gap:var(--ds-space-0,0) var(--ds-space-050,4px)}
3
- ._13hr1j28{--local-tick-rest:transparent}
4
- ._18q015t7{--local-tick-disabled:var(--ds-icon-disabled,#a5adba)}
5
3
  ._1c53glyw{--checkbox-outline:none}
6
- ._1dikhh5a{--local-border-checked-hover:var(--ds-background-selected-bold-hovered,#0065ff)}
7
4
  ._1e0c11p5{display:grid}
8
5
  ._1e9d1j28{--checkbox-tick-color:transparent}
9
6
  ._1e9d2sac{--checkbox-tick-color:var(--ds-icon-disabled,#080f214a)}
10
7
  ._1e9d5w2r{--checkbox-tick-color:var(--ds-icon-inverse,#fff)}
11
8
  ._1ejihkll{grid-auto-columns:1fr}
12
- ._1eszzyvw{--local-background-checked:var(--ds-background-selected-bold,#0052cc)}
13
- ._1g1funzk{--local-border-active:var(--ds-border,#deebff)}
14
- ._1j3h1q3k{--local-border-invalid:var(--ds-border-danger,#ff5630)}
15
- ._1nzs11d3{--local-background-active:var(--ds-background-input-pressed,#deebff)}
16
9
  ._1qwn1j9a{--checkbox-background-color:var(--ds-background-input,#fff)}
17
10
  ._1qwnby5v{--checkbox-background-color:var(--ds-background-disabled,#17171708)}
18
11
  ._1qwnjmqp{--checkbox-background-color:var(--ds-background-selected-bold,#1868db)}
19
- ._1rda1qbb{--local-tick-checked:var(--ds-icon-inverse,#fafbfc)}
20
- ._1sfg1q3k{--local-border-checked-invalid:var(--ds-border-danger,#ff5630)}
21
- ._1yjc194a{--local-border-focus:var(--ds-border-focused,#2684ff)}
22
12
  ._80om13gf{cursor:not-allowed}
23
13
  ._80om73ad{cursor:default}
24
- ._ay2w1y1w{--local-background-disabled:var(--ds-background-disabled,#f4f5f7)}
25
- ._d51u10ko{--local-background-hover:var(--ds-background-input-hovered,#ebecf0)}
26
- ._eawb1dzn{--local-tick-active:var(--ds-icon-inverse,#0052cc)}
27
14
  ._f0gr1bqt{--checkbox-border-color:var(--ds-border-danger,#e2483d)}
28
15
  ._f0grby5v{--checkbox-border-color:var(--ds-background-disabled,#17171708)}
29
16
  ._f0grjmqp{--checkbox-border-color:var(--ds-background-selected-bold,#1868db)}
30
17
  ._f0grrsbi{--checkbox-border-color:var(--ds-border-input,#8c8f97)}
31
- ._fpdj1y1w{--local-border-disabled:var(--ds-background-disabled,#f4f5f7)}
32
- ._h5e3mag2{--local-background:var(--ds-background-input,#fafbfc)}
33
- ._l6wkzyvw{--local-border-checked:var(--ds-background-selected-bold,#0052cc)}
34
- ._oaj11fmg{--local-border-hover:var(--ds-border-input,#7a869a)}
35
- ._phft1fmg{--local-border:var(--ds-border-input,#7a869a)}
36
18
  ._syaz1tvo{color:var(--ds-text-disabled,#97a0af)}
37
19
  ._syazi7uo{color:var(--ds-text,#292a2e)}
38
- ._syazj3m3{color:var(--ds-text,#091e42)}
39
20
  ._umai184x{grid-auto-rows:min-content}
40
- ._yp0jhh5a{--local-background-checked-hover:var(--ds-background-selected-bold-hovered,#0065ff)}
41
21
  ._yv0ey09t{grid-template-columns:min-content auto}
42
22
  ._ljcgdfik:focus-within{--checkbox-outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#4688ec)}
43
23
  ._1vj51q28:hover{--checkbox-background-color:var(--ds-background-selected-bold-hovered,#1558bc)}
@@ -1,9 +1,4 @@
1
- /* label.tsx generated by @compiled/babel-plugin v0.38.1 */
2
- import "./label.compiled.css";
3
- import * as React from 'react';
4
- import { ax, ix } from "@compiled/react/runtime";
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
- import { B200, B300, B400, B50, N10, N100, N20, N30, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
1
+ /* label.tsx generated by @compiled/babel-plugin v0.39.1 */
7
2
  /**
8
3
  * Base state styles with CSS custom properties.
9
4
  * Pseudo-selectors (:hover, :focus-within, :active) on the label element
@@ -13,6 +8,9 @@ import { B200, B300, B400, B50, N10, N100, N20, N30, N70, N80, N900, R300 } from
13
8
  * Uses `css` over `cssMap` to work around a bug in Compiled types when
14
9
  * using CSS variables in pseudo-selectors.
15
10
  */
11
+ import "./label.compiled.css";
12
+ import * as React from 'react';
13
+ import { ax, ix } from "@compiled/react/runtime";
16
14
  const baseStyles = null;
17
15
  const textLabelLayoutStyles = null;
18
16
 
@@ -27,15 +25,6 @@ const disabledStyles = null;
27
25
 
28
26
  // Disabled + Checked/Indeterminate
29
27
  const disabledCheckedStyles = null;
30
-
31
- /**
32
- * Legacy label styles with --local-* CSS custom properties.
33
- * These are consumed by the nested sibling selectors in checkbox.tsx.
34
- */
35
- const legacyBaseStyles = null;
36
- const legacyTextLabelLayoutStyles = null;
37
- const legacyDisabledStyles = null;
38
- const legacyLabelStyles = null;
39
28
  export default function Label({
40
29
  children,
41
30
  isDisabled,
@@ -47,16 +36,8 @@ export default function Label({
47
36
  id,
48
37
  xcss
49
38
  }) {
50
- if (fg('platform-checkbox-atomic-styles')) {
51
- return /*#__PURE__*/React.createElement("label", {
52
- className: ax(["_11c8fhey _1e0c11p5 _1ejihkll _umai184x _1qwn1j9a _f0grrsbi _1c53glyw _1e9d1j28 _syazi7uo _80om73ad _ljcgdfik _1vj5l4ek _dh4gr01l _cz1u1l7x _jom5wc43 _1s071onz _106f1onz", label && "_zulp1nu5 _yv0ey09t", (isChecked || isIndeterminate) && "_1qwnjmqp _f0grjmqp _1e9d5w2r _1vj51q28 _q29q1q28 _dh4gr01l _cz1u1l7x _zoo95w2r _jom5wc43 _1s071onz _106f1onz", isInvalid && "_f0gr1bqt _q29q1bqt _cz1u1bqt _1s07gir2", isDisabled && "_1qwnby5v _f0grby5v _syaz1tvo _80om13gf _1vj5by5v _q29qby5v _dh4gby5v _cz1uby5v _jom5wc43 _1s0718qt _106f18qt", isDisabled && (isChecked || isIndeterminate) && "_1e9d2sac _9js12sac _zoo92sac", xcss]),
53
- "data-testid": testId,
54
- "data-disabled": isDisabled || undefined,
55
- id: id
56
- }, children);
57
- }
58
39
  return /*#__PURE__*/React.createElement("label", {
59
- className: ax(["_11c8fhey _1e0c11p5 _1ejihkll _umai184x _syazj3m3 _80om73ad", label && "_zulp1nu5 _yv0ey09t", isDisabled && "_syaz1tvo _80om13gf", "_h5e3mag2 _1nzs11d3 _1eszzyvw _yp0jhh5a _ay2w1y1w _d51u10ko _phft1fmg _1g1funzk _l6wkzyvw _1dikhh5a _1sfg1q3k _fpdj1y1w _1yjc194a _oaj11fmg _1j3h1q3k _eawb1dzn _1rda1qbb _18q015t7 _13hr1j28", xcss]),
40
+ className: ax(["_11c8fhey _1e0c11p5 _1ejihkll _umai184x _1qwn1j9a _f0grrsbi _1c53glyw _1e9d1j28 _syazi7uo _80om73ad _ljcgdfik _1vj5l4ek _dh4gr01l _cz1u1l7x _jom5wc43 _1s071onz _106f1onz", label && "_zulp1nu5 _yv0ey09t", (isChecked || isIndeterminate) && "_1qwnjmqp _f0grjmqp _1e9d5w2r _1vj51q28 _q29q1q28 _dh4gr01l _cz1u1l7x _zoo95w2r _jom5wc43 _1s071onz _106f1onz", isInvalid && "_f0gr1bqt _q29q1bqt _cz1u1bqt _1s07gir2", isDisabled && "_1qwnby5v _f0grby5v _syaz1tvo _80om13gf _1vj5by5v _q29qby5v _dh4gby5v _cz1uby5v _jom5wc43 _1s0718qt _106f18qt", isDisabled && (isChecked || isIndeterminate) && "_1e9d2sac _9js12sac _zoo92sac", xcss]),
60
41
  "data-testid": testId,
61
42
  "data-disabled": isDisabled || undefined,
62
43
  id: id
@@ -1,4 +1,4 @@
1
- /* required-indicator.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* required-indicator.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./required-indicator.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,72 +1,13 @@
1
1
 
2
2
  ._19itglyw{border:none}
3
- ._19op11so+svg rect:first-of-type{transition:stroke .2s ease-in-out}
4
- ._1dk71nfn._1dk71nfn:focus+svg{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#2684ff)}
5
- ._1ef78r4n._1ef78r4n:checked:focus+svg{border-radius:var(--ds-radius-small,.25rem)}
6
- ._1h6r8r4n._1h6r8r4n:focus+svg{border-radius:var(--ds-radius-small,.25rem)}
7
- ._9bg71mn3+svg{transition:color .2s ease-in-out,fill .2s ease-in-out}
8
- ._nd5lfibj{grid-area:1/1/2/2}
9
- ._r050fibj+svg{grid-area:1/1/2/2}
10
- ._smzg1nfn._smzg1nfn:checked:focus+svg{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#2684ff)}._10oaq2ws:checked[data-invalid]+svg{--checkbox-border-color:var(--local-border-checked-invalid)}
11
- ._10y313gf:disabled+svg{cursor:not-allowed}
12
- ._12ji1r31{outline-color:currentColor}
3
+ ._nd5lfibj{grid-area:1/1/2/2}._12ji1r31{outline-color:currentColor}
13
4
  ._12l2ze3t{margin-inline-end:var(--ds-space-0,0)}
14
- ._12sr13gf:disabled[data-invalid]+svg{cursor:not-allowed}
15
5
  ._12y31o36{outline-width:medium}
16
- ._13wo93zu+svg{--checkbox-background-color:var(--local-background)}
17
- ._141bmz2b:disabled:active+svg{--checkbox-background-color:var(--local-background-disabled)}
18
- ._15y61vek:active+svg{--checkbox-border-color:var(--local-border-active)}
19
- ._1610e4h9+svg rect:first-of-type{stroke-width:var(--ds-border-width,1px)}
20
- ._16jiglyw:disabled+svg{pointer-events:none}
21
- ._18qu1ps2:indeterminate+svg{--checkbox-background-color:var(--local-background-checked)}
22
- ._1adw13gf:disabled:hover+svg{cursor:not-allowed}
23
- ._1ah9199y:hover+svg{--checkbox-border-color:var(--local-border-hover)}
24
- ._1bok170n:checked+svg{--checkbox-border-color:var(--local-border-checked)}
25
6
  ._1bsb1osq{width:100%}
26
- ._1efy1diq:disabled:hover+svg{--checkbox-border-color:var(--local-border-disabled)}
27
- ._1fo21cni+svg{fill:var(--checkbox-tick-color)}
28
- ._1frj180l:checked:hover+svg{--checkbox-background-color:var(--local-background-checked-hover)}
29
- ._1g52170n:indeterminate+svg{--checkbox-border-color:var(--local-border-checked)}
30
- ._1jbnglyw:disabled[data-invalid]+svg{pointer-events:none}
31
- ._1jiz1diq:disabled:active+svg{--checkbox-border-color:var(--local-border-disabled)}
32
- ._1log17cl:indeterminate+svg{--checkbox-tick-color:var(--local-tick-checked)}
33
- ._1mhr17cl:checked+svg{--checkbox-tick-color:var(--local-tick-checked)}
34
- ._1niqglyw:disabled:focus+svg{pointer-events:none}
35
- ._1oav1diq:disabled[data-invalid]+svg{--checkbox-border-color:var(--local-border-disabled)}
36
7
  ._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
37
8
  ._1qu2glyw{outline-style:none}
38
- ._1vv91diq:disabled:indeterminate+svg{--checkbox-border-color:var(--local-border-disabled)}
39
- ._1wt913gf:disabled:active+svg{cursor:not-allowed}
40
- ._255gmz2b:disabled:focus+svg{--checkbox-background-color:var(--local-background-disabled)}
41
- ._32hzmz2b:disabled:indeterminate+svg{--checkbox-background-color:var(--local-background-disabled)}
42
9
  ._4t3i1osq{height:100%}
43
- ._693jglyw:disabled:active+svg{pointer-events:none}
44
10
  ._6rthze3t{margin-block-end:var(--ds-space-0,0)}
45
- ._8gq114p8+svg{--checkbox-tick-color:var(--local-tick-rest)}
46
- ._a30fhteq+svg rect:first-of-type{stroke:var(--checkbox-border-color)}
47
11
  ._ahbqze3t{margin-inline-start:var(--ds-space-0,0)}
48
- ._axq81diq:disabled+svg{--checkbox-border-color:var(--local-border-disabled)}
49
- ._cl9tglyw:disabled:hover+svg{pointer-events:none}
50
- ._dwvb1ps2:checked+svg{--checkbox-background-color:var(--local-background-checked)}
51
- ._e6ww155b:checked:active+svg{--checkbox-background-color:var(--local-background-active)}
52
- ._eyedglyw+svg{pointer-events:none}
53
- ._fx2i3rva[data-invalid]+svg{--checkbox-border-color:var(--local-border-invalid)}
54
- ._h78e1g3k:checked:hover+svg{--checkbox-border-color:var(--local-border-checked-hover)}
55
- ._j1ta1hou:disabled:checked+svg{--checkbox-tick-color:var(--local-tick-disabled)}
56
- ._jj67mz2b:disabled:hover+svg{--checkbox-background-color:var(--local-background-disabled)}
57
- ._l71j1i6y._l71j1i6y:checked:focus+svg{outline-offset:var(--ds-space-negative-025,-2px)}
58
- ._q5a61gyf+svg{--checkbox-border-color:var(--local-border)}
59
- ._qq8613gf:disabled:focus+svg{cursor:not-allowed}
60
12
  ._r06hglyw{-webkit-appearance:none;appearance:none}
61
- ._rphw18jz:checked:active+svg{--checkbox-tick-color:var(--local-tick-active)}
62
- ._s9051diq:disabled:focus+svg{--checkbox-border-color:var(--local-border-disabled)}
63
- ._sg1j1vek:checked:active+svg{--checkbox-border-color:var(--local-border-active)}
64
- ._swhgmz2b:disabled[data-invalid]+svg{--checkbox-background-color:var(--local-background-disabled)}
65
- ._t34a1i6y._t34a1i6y:focus+svg{outline-offset:var(--ds-space-negative-025,-2px)}
66
- ._tzy4idpf{opacity:0}
67
- ._w12s155b:active+svg{--checkbox-background-color:var(--local-background-active)}
68
- ._wje2mov0+svg{color:var(--checkbox-background-color)}
69
- ._y32gkivo:hover+svg{--checkbox-background-color:var(--local-background-hover)}
70
- ._y9y9mz2b:disabled+svg{--checkbox-background-color:var(--local-background-disabled)}
71
- ._yjhd1hou:disabled:indeterminate+svg{--checkbox-tick-color:var(--local-tick-disabled)}
72
- @media screen and (forced-colors:active){._w1cowc43+svg{--checkbox-background-color:Canvas}._jdqn1onz+svg{--checkbox-border-color:CanvasText}._4y4t1onz+svg{--checkbox-tick-color:CanvasText}._lvfrwc43:checked+svg{--checkbox-background-color:Canvas}._g68dwc43:checked:hover+svg{--checkbox-background-color:Canvas}._13dk1onz:checked+svg{--checkbox-border-color:CanvasText}._w1el1onz:checked:hover+svg{--checkbox-border-color:CanvasText}._a9yw1onz:checked+svg{--checkbox-tick-color:CanvasText}._1l3g1onz:checked:hover+svg{--checkbox-tick-color:CanvasText}._dcdpgir2:focus+svg rect:first-of-type{stroke:Highlight}._wobcgir2[data-invalid]+svg{--checkbox-border-color:Highlight}._rp9wgir2:checked[data-invalid]+svg{--checkbox-border-color:Highlight}._9ebfwc43:disabled+svg{--checkbox-background-color:Canvas}._e43iwc43:disabled:active+svg{--checkbox-background-color:Canvas}._1tkuwc43:disabled:focus+svg{--checkbox-background-color:Canvas}._1lehwc43:disabled:hover+svg{--checkbox-background-color:Canvas}._b9q3wc43:disabled[data-invalid]+svg{--checkbox-background-color:Canvas}._tu2918qt:disabled+svg{--checkbox-border-color:GrayText}._1uxv18qt:disabled:active+svg{--checkbox-border-color:GrayText}._1ufw18qt:disabled:focus+svg{--checkbox-border-color:GrayText}._opo918qt:disabled:hover+svg{--checkbox-border-color:GrayText}._1e8318qt:disabled[data-invalid]+svg{--checkbox-border-color:GrayText}._1k3d18qt:disabled+svg{--checkbox-tick-color:GrayText}._25yv18qt:disabled:active+svg{--checkbox-tick-color:GrayText}._1igz18qt:disabled:focus+svg{--checkbox-tick-color:GrayText}._c7cc18qt:disabled:hover+svg{--checkbox-tick-color:GrayText}._1swg18qt:disabled[data-invalid]+svg{--checkbox-tick-color:GrayText}}
13
+ ._tzy4idpf{opacity:0}
@@ -1,4 +1,4 @@
1
- /* checkbox.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* checkbox.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
@@ -9,7 +9,6 @@ import { ax, ix } from "@compiled/react/runtime";
9
9
  import { forwardRef, memo, useCallback, useEffect, useRef, useState } from 'react';
10
10
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
11
11
  import mergeRefs from '@atlaskit/ds-lib/merge-refs';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  import { CheckboxIcon, Label, LabelText, RequiredIndicator } from './internal';
14
13
  /**
15
14
  * The input is visually hidden but remains in the DOM for accessibility.
@@ -20,19 +19,6 @@ var checkboxStyles = {
20
19
  root: "_19itglyw _nd5lfibj _12ji1r31 _1qu2glyw _12y31o36 _1bsb1osq _4t3i1osq _r06hglyw _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _tzy4idpf"
21
20
  };
22
21
 
23
- /**
24
- * Legacy hidden input styles with nested sibling selectors.
25
- * Used when the `platform-checkbox-atomic-styles` feature gate is disabled.
26
- * Using `cssMap` to avoid a Compiled bug with the transformed styles.
27
- * It was using a CSS variable for the outline template string,
28
- * which broke because of the use of a sibling selector.
29
- *
30
- * Related to: https://github.com/atlassian-labs/compiled/pull/1795
31
- */
32
- var checkboxStylesLegacy = {
33
- root: "_19itglyw _nd5lfibj _12ji1r31 _1qu2glyw _12y31o36 _1bsb1osq _4t3i1osq _r06hglyw _6rthze3t _1pfhze3t _12l2ze3t _ahbqze3t _tzy4idpf _r050fibj _9bg71mn3 _19op11so _a30fhteq _1610e4h9 _13wo93zu _q5a61gyf _8gq114p8 _wje2mov0 _1fo21cni _eyedglyw _1ef78r4n _1h6r8r4n _smzg1nfn _1dk71nfn _l71j1i6y _t34a1i6y _y32gkivo _1ah9199y _1frj180l _h78e1g3k _dwvb1ps2 _1bok170n _1mhr17cl _fx2i3rva _10oaq2ws _w12s155b _15y61vek _e6ww155b _sg1j1vek _rphw18jz _y9y9mz2b _141bmz2b _255gmz2b _jj67mz2b _swhgmz2b _axq81diq _1jiz1diq _s9051diq _1efy1diq _1oav1diq _10y313gf _1wt913gf _qq8613gf _1adw13gf _12sr13gf _16jiglyw _693jglyw _1niqglyw _cl9tglyw _1jbnglyw _j1ta1hou _18qu1ps2 _1g52170n _1log17cl _32hzmz2b _1vv91diq _yjhd1hou _w1cowc43 _jdqn1onz _4y4t1onz _lvfrwc43 _g68dwc43 _13dk1onz _w1el1onz _a9yw1onz _1l3g1onz _dcdpgir2 _wobcgir2 _rp9wgir2 _9ebfwc43 _e43iwc43 _1tkuwc43 _1lehwc43 _b9q3wc43 _tu2918qt _1uxv18qt _1ufw18qt _opo918qt _1e8318qt _1k3d18qt _25yv18qt _1igz18qt _c7cc18qt _1swg18qt"
34
- };
35
-
36
22
  /**
37
23
  * __Checkbox__
38
24
  *
@@ -92,9 +78,9 @@ var Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(_ref
92
78
  }, [isIndeterminate]);
93
79
  return /*#__PURE__*/React.createElement(Label, {
94
80
  isDisabled: isDisabled,
95
- isChecked: fg('platform-checkbox-atomic-styles') ? isChecked : undefined,
96
- isIndeterminate: fg('platform-checkbox-atomic-styles') ? isIndeterminate : undefined,
97
- isInvalid: fg('platform-checkbox-atomic-styles') ? isInvalid : undefined,
81
+ isChecked: isChecked,
82
+ isIndeterminate: isIndeterminate,
83
+ isInvalid: isInvalid,
98
84
  label: label,
99
85
  id: rest.id ? "".concat(rest.id, "-label") : undefined,
100
86
  testId: testId && "".concat(testId, "--checkbox-label")
@@ -114,7 +100,7 @@ var Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(_ref
114
100
  name: name,
115
101
  required: isRequired,
116
102
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
117
- className: ax([fg('platform-checkbox-atomic-styles') && checkboxStyles.root, !fg('platform-checkbox-atomic-styles') && checkboxStylesLegacy.root, className]),
103
+ className: ax([checkboxStyles.root, className]),
118
104
  onChange: onChangeAnalytics,
119
105
  "aria-invalid": isInvalid ? 'true' : undefined,
120
106
  "data-testid": testId && "".concat(testId, "--hidden-checkbox"),
@@ -10,5 +10,4 @@
10
10
  ._1snbe4h9{stroke-width:var(--ds-border-width,1px)}
11
11
  ._lcxvglyw{pointer-events:none}
12
12
  ._lswu1kgh{fill:var(--checkbox-tick-color,var(--ds-surface,#fff))}
13
- ._lswuvuon{fill:var(--ds-surface,#fff)}
14
13
  ._syazmov0{color:var(--checkbox-background-color)}
@@ -1,9 +1,8 @@
1
- /* checkbox-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* checkbox-icon.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./checkbox-icon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { memo, useMemo } from 'react';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  /**
8
7
  * Styles for the checkbox icon.
9
8
  * CSS custom properties for colors are set by the parent Label element
@@ -13,12 +12,6 @@ var svgStyles = {
13
12
  root: "_nd5lfibj _1reo15vq _18m915vq _v5641mn3 _2rko12b0 _1a3742bt _lcxvglyw _syazmov0 _lswu1kgh _1cwg1i6y",
14
13
  rect: "_v56411so _1snbe4h9 _1s17hteq"
15
14
  };
16
-
17
- /**
18
- * Legacy SVG styles.
19
- * Used when the `platform-checkbox-atomic-styles` feature gate is disabled.
20
- */
21
- var svgStylesLegacy = null;
22
15
  function getIcon(isIndeterminate, isChecked) {
23
16
  if (isIndeterminate) {
24
17
  return /*#__PURE__*/React.createElement("path", {
@@ -54,39 +47,12 @@ var CheckboxIcon = /*#__PURE__*/memo(function (_ref) {
54
47
  var icon = useMemo(function () {
55
48
  return getIcon(isIndeterminate, isChecked);
56
49
  }, [isIndeterminate, isChecked]);
57
- if (fg('platform-checkbox-atomic-styles')) {
58
- return /*#__PURE__*/React.createElement("svg", {
59
- width: 24,
60
- height: 24,
61
- viewBox: "0 0 24 24",
62
- role: "presentation",
63
- className: ax([svgStyles.root])
64
- }, /*#__PURE__*/React.createElement("g", {
65
- fillRule: "evenodd"
66
- }, /*#__PURE__*/React.createElement("rect", {
67
- fill: "currentColor",
68
- x: "5.5",
69
- y: "5.5",
70
- width: "13",
71
- height: "13",
72
- rx: "1.5",
73
- className: ax([svgStyles.rect])
74
- }), icon));
75
- }
76
-
77
- // Legacy rendering with inline style props for CSS variable consumption
78
50
  return /*#__PURE__*/React.createElement("svg", {
79
51
  width: 24,
80
52
  height: 24,
81
53
  viewBox: "0 0 24 24",
82
- style: {
83
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
84
- color: 'var(--checkbox-background-color)',
85
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
86
- fill: 'var(--checkbox-tick-color)'
87
- },
88
54
  role: "presentation",
89
- className: ax(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw"])
55
+ className: ax([svgStyles.root])
90
56
  }, /*#__PURE__*/React.createElement("g", {
91
57
  fillRule: "evenodd"
92
58
  }, /*#__PURE__*/React.createElement("rect", {
@@ -95,7 +61,8 @@ var CheckboxIcon = /*#__PURE__*/memo(function (_ref) {
95
61
  y: "5.5",
96
62
  width: "13",
97
63
  height: "13",
98
- rx: "1.5"
64
+ rx: "1.5",
65
+ className: ax([svgStyles.rect])
99
66
  }), icon));
100
67
  });
101
68
  export default CheckboxIcon;
@@ -1,4 +1,4 @@
1
- /* label-text.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* label-text.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./label-text.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,44 +1,23 @@
1
1
  ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulp1nu5{gap:var(--ds-space-0,0) var(--ds-space-050,4px)}
3
- ._13hr1j28{--local-tick-rest:transparent}
4
- ._18q0snw8{--local-tick-disabled:var(--_1xmcmw9)}
5
3
  ._1c53glyw{--checkbox-outline:none}
6
- ._1dik1ehr{--local-border-checked-hover:var(--_14y1fod)}
7
4
  ._1e0c11p5{display:grid}
8
5
  ._1e9d1j28{--checkbox-tick-color:transparent}
9
6
  ._1e9d2sac{--checkbox-tick-color:var(--ds-icon-disabled,#080f214a)}
10
7
  ._1e9d5w2r{--checkbox-tick-color:var(--ds-icon-inverse,#fff)}
11
8
  ._1ejihkll{grid-auto-columns:1fr}
12
- ._1esz1j4g{--local-background-checked:var(--_1gcp7nr)}
13
- ._1g1fe69j{--local-border-active:var(--_rczcge)}
14
- ._1j3h1380{--local-border-invalid:var(--_1i4xulb)}
15
- ._1nzs1kc0{--local-background-active:var(--_1cd0fcx)}
16
9
  ._1qwn1j9a{--checkbox-background-color:var(--ds-background-input,#fff)}
17
10
  ._1qwnby5v{--checkbox-background-color:var(--ds-background-disabled,#17171708)}
18
11
  ._1qwnjmqp{--checkbox-background-color:var(--ds-background-selected-bold,#1868db)}
19
- ._1rdaeh7q{--local-tick-checked:var(--_jf353p)}
20
- ._1sfg1380{--local-border-checked-invalid:var(--_1i4xulb)}
21
- ._1yjc3zdg{--local-border-focus:var(--_xjqa3d)}
22
12
  ._80om13gf{cursor:not-allowed}
23
13
  ._80om73ad{cursor:default}
24
- ._ay2w1ouc{--local-background-disabled:var(--_r5pknd)}
25
- ._d51u12ci{--local-background-hover:var(--_1z08gfx)}
26
- ._eawbxz7c{--local-tick-active:var(--_uq1ko9)}
27
14
  ._f0gr1bqt{--checkbox-border-color:var(--ds-border-danger,#e2483d)}
28
15
  ._f0grby5v{--checkbox-border-color:var(--ds-background-disabled,#17171708)}
29
16
  ._f0grjmqp{--checkbox-border-color:var(--ds-background-selected-bold,#1868db)}
30
17
  ._f0grrsbi{--checkbox-border-color:var(--ds-border-input,#8c8f97)}
31
- ._fpdj1ouc{--local-border-disabled:var(--_r5pknd)}
32
- ._h5e31kd8{--local-background:var(--_4mkb4g)}
33
- ._l6wk1j4g{--local-border-checked:var(--_1gcp7nr)}
34
- ._oaj1ddza{--local-border-hover:var(--_vnm8xo)}
35
- ._phftddza{--local-border:var(--_vnm8xo)}
36
18
  ._syaz1tvo{color:var(--ds-text-disabled,#97a0af)}
37
- ._syaz7wap{color:var(--_1ynhf1h)}
38
19
  ._syazi7uo{color:var(--ds-text,#292a2e)}
39
- ._syazovqm{color:var(--_5xk3r4)}
40
20
  ._umai184x{grid-auto-rows:min-content}
41
- ._yp0j1ehr{--local-background-checked-hover:var(--_14y1fod)}
42
21
  ._yv0ey09t{grid-template-columns:min-content auto}
43
22
  ._ljcgdfik:focus-within{--checkbox-outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#4688ec)}
44
23
  ._1vj51q28:hover{--checkbox-background-color:var(--ds-background-selected-bold-hovered,#1558bc)}
@@ -1,9 +1,4 @@
1
- /* label.tsx generated by @compiled/babel-plugin v0.38.1 */
2
- import "./label.compiled.css";
3
- import * as React from 'react';
4
- import { ax, ix } from "@compiled/react/runtime";
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
- import { B200, B300, B400, B50, N10, N100, N20, N30, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
1
+ /* label.tsx generated by @compiled/babel-plugin v0.39.1 */
7
2
  /**
8
3
  * Base state styles with CSS custom properties.
9
4
  * Pseudo-selectors (:hover, :focus-within, :active) on the label element
@@ -13,6 +8,9 @@ import { B200, B300, B400, B50, N10, N100, N20, N30, N70, N80, N900, R300 } from
13
8
  * Uses `css` over `cssMap` to work around a bug in Compiled types when
14
9
  * using CSS variables in pseudo-selectors.
15
10
  */
11
+ import "./label.compiled.css";
12
+ import * as React from 'react';
13
+ import { ax, ix } from "@compiled/react/runtime";
16
14
  var baseStyles = null;
17
15
  var textLabelLayoutStyles = null;
18
16
 
@@ -27,15 +25,6 @@ var disabledStyles = null;
27
25
 
28
26
  // Disabled + Checked/Indeterminate
29
27
  var disabledCheckedStyles = null;
30
-
31
- /**
32
- * Legacy label styles with --local-* CSS custom properties.
33
- * These are consumed by the nested sibling selectors in checkbox.tsx.
34
- */
35
- var legacyBaseStyles = null;
36
- var legacyTextLabelLayoutStyles = null;
37
- var legacyDisabledStyles = null;
38
- var legacyLabelStyles = null;
39
28
  export default function Label(_ref) {
40
29
  var children = _ref.children,
41
30
  isDisabled = _ref.isDisabled,
@@ -46,35 +35,10 @@ export default function Label(_ref) {
46
35
  label = _ref.label,
47
36
  id = _ref.id,
48
37
  xcss = _ref.xcss;
49
- if (fg('platform-checkbox-atomic-styles')) {
50
- return /*#__PURE__*/React.createElement("label", {
51
- className: ax(["_11c8fhey _1e0c11p5 _1ejihkll _umai184x _1qwn1j9a _f0grrsbi _1c53glyw _1e9d1j28 _syazi7uo _80om73ad _ljcgdfik _1vj5l4ek _dh4gr01l _cz1u1l7x _jom5wc43 _1s071onz _106f1onz", label && "_zulp1nu5 _yv0ey09t", (isChecked || isIndeterminate) && "_1qwnjmqp _f0grjmqp _1e9d5w2r _1vj51q28 _q29q1q28 _dh4gr01l _cz1u1l7x _zoo95w2r _jom5wc43 _1s071onz _106f1onz", isInvalid && "_f0gr1bqt _q29q1bqt _cz1u1bqt _1s07gir2", isDisabled && "_1qwnby5v _f0grby5v _syaz1tvo _80om13gf _1vj5by5v _q29qby5v _dh4gby5v _cz1uby5v _jom5wc43 _1s0718qt _106f18qt", isDisabled && (isChecked || isIndeterminate) && "_1e9d2sac _9js12sac _zoo92sac", xcss]),
52
- "data-testid": testId,
53
- "data-disabled": isDisabled || undefined,
54
- id: id
55
- }, children);
56
- }
57
38
  return /*#__PURE__*/React.createElement("label", {
58
- className: ax(["_11c8fhey _1e0c11p5 _1ejihkll _umai184x _syazovqm _80om73ad", label && "_zulp1nu5 _yv0ey09t", isDisabled && "_syaz7wap _80om13gf", "_h5e31kd8 _1nzs1kc0 _1esz1j4g _yp0j1ehr _ay2w1ouc _d51u12ci _phftddza _1g1fe69j _l6wk1j4g _1dik1ehr _1sfg1380 _fpdj1ouc _1yjc3zdg _oaj1ddza _1j3h1380 _eawbxz7c _1rdaeh7q _18q0snw8 _13hr1j28", xcss]),
39
+ className: ax(["_11c8fhey _1e0c11p5 _1ejihkll _umai184x _1qwn1j9a _f0grrsbi _1c53glyw _1e9d1j28 _syazi7uo _80om73ad _ljcgdfik _1vj5l4ek _dh4gr01l _cz1u1l7x _jom5wc43 _1s071onz _106f1onz", label && "_zulp1nu5 _yv0ey09t", (isChecked || isIndeterminate) && "_1qwnjmqp _f0grjmqp _1e9d5w2r _1vj51q28 _q29q1q28 _dh4gr01l _cz1u1l7x _zoo95w2r _jom5wc43 _1s071onz _106f1onz", isInvalid && "_f0gr1bqt _q29q1bqt _cz1u1bqt _1s07gir2", isDisabled && "_1qwnby5v _f0grby5v _syaz1tvo _80om13gf _1vj5by5v _q29qby5v _dh4gby5v _cz1uby5v _jom5wc43 _1s0718qt _106f18qt", isDisabled && (isChecked || isIndeterminate) && "_1e9d2sac _9js12sac _zoo92sac", xcss]),
59
40
  "data-testid": testId,
60
41
  "data-disabled": isDisabled || undefined,
61
- id: id,
62
- style: {
63
- "--_5xk3r4": ix("var(--ds-text, ".concat(N900, ")")),
64
- "--_1ynhf1h": ix("var(--ds-text-disabled, ".concat(N80, ")")),
65
- "--_4mkb4g": ix("var(--ds-background-input, ".concat(N10, ")")),
66
- "--_1cd0fcx": ix("var(--ds-background-input-pressed, ".concat(B50, ")")),
67
- "--_1gcp7nr": ix("var(--ds-background-selected-bold, ".concat(B400, ")")),
68
- "--_14y1fod": ix("var(--ds-background-selected-bold-hovered, ".concat(B300, ")")),
69
- "--_r5pknd": ix("var(--ds-background-disabled, ".concat(N20, ")")),
70
- "--_1z08gfx": ix("var(--ds-background-input-hovered, ".concat(N30, ")")),
71
- "--_vnm8xo": ix("var(--ds-border-input, ".concat(N100, ")")),
72
- "--_rczcge": ix("var(--ds-border, ".concat(B50, ")")),
73
- "--_1i4xulb": ix("var(--ds-border-danger, ".concat(R300, ")")),
74
- "--_xjqa3d": ix("var(--ds-border-focused, ".concat(B200, ")")),
75
- "--_uq1ko9": ix("var(--ds-icon-inverse, ".concat(B400, ")")),
76
- "--_jf353p": ix("var(--ds-icon-inverse, ".concat(N10, ")")),
77
- "--_1xmcmw9": ix("var(--ds-icon-disabled, ".concat(N70, ")"))
78
- }
42
+ id: id
79
43
  }, children);
80
44
  }
@@ -1,4 +1,4 @@
1
- /* required-indicator.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* required-indicator.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import "./required-indicator.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "17.3.4",
3
+ "version": "17.3.6",
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/"
@@ -34,12 +34,11 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-next": "^11.1.0",
36
36
  "@atlaskit/css": "^0.19.0",
37
- "@atlaskit/ds-lib": "^5.3.0",
38
- "@atlaskit/platform-feature-flags": "^1.1.0",
37
+ "@atlaskit/ds-lib": "^6.0.0",
39
38
  "@atlaskit/theme": "^22.0.0",
40
- "@atlaskit/tokens": "^11.0.0",
39
+ "@atlaskit/tokens": "^11.1.0",
41
40
  "@babel/runtime": "^7.0.0",
42
- "@compiled/react": "^0.18.6"
41
+ "@compiled/react": "^0.20.0"
43
42
  },
44
43
  "peerDependencies": {
45
44
  "react": "^18.2.0"
@@ -50,8 +49,8 @@
50
49
  "@af/suppress-react-warnings": "workspace:^",
51
50
  "@af/visual-regression": "workspace:^",
52
51
  "@atlaskit/button": "^23.10.0",
53
- "@atlaskit/docs": "^11.5.0",
54
- "@atlaskit/form": "^15.3.0",
52
+ "@atlaskit/docs": "^11.6.0",
53
+ "@atlaskit/form": "^15.4.0",
55
54
  "@atlaskit/link": "^3.3.0",
56
55
  "@atlaskit/primitives": "^18.0.0",
57
56
  "@atlaskit/section-message": "^8.12.0",
@@ -86,13 +85,5 @@
86
85
  ]
87
86
  }
88
87
  },
89
- "homepage": "https://atlassian.design/components/checkbox/",
90
- "platform-feature-flags": {
91
- "platform-checkbox-atomic-styles": {
92
- "type": "boolean"
93
- },
94
- "platform-dst-shape-theme-default": {
95
- "type": "boolean"
96
- }
97
- }
88
+ "homepage": "https://atlassian.design/components/checkbox/"
98
89
  }