@atlaskit/checkbox 17.3.3 → 17.3.5
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 +13 -0
- package/codemods/migrations/remove-imports.tsx +4 -1
- package/codemods/migrations/remove-props.tsx +16 -4
- package/codemods/migrations/rename-import.tsx +12 -3
- package/codemods/migrations/rename-input-ref-to-ref.tsx +4 -6
- package/codemods/utils.tsx +53 -16
- package/dist/cjs/checkbox.compiled.css +2 -61
- package/dist/cjs/checkbox.js +5 -19
- package/dist/cjs/internal/checkbox-icon.compiled.css +0 -1
- package/dist/cjs/internal/checkbox-icon.js +3 -36
- package/dist/cjs/internal/label.compiled.css +0 -21
- package/dist/cjs/internal/label.js +11 -47
- package/dist/es2019/checkbox.compiled.css +2 -61
- package/dist/es2019/checkbox.js +5 -19
- package/dist/es2019/internal/checkbox-icon.compiled.css +0 -1
- package/dist/es2019/internal/checkbox-icon.js +3 -36
- package/dist/es2019/internal/label.compiled.css +0 -20
- package/dist/es2019/internal/label.js +4 -23
- package/dist/esm/checkbox.compiled.css +2 -61
- package/dist/esm/checkbox.js +5 -19
- package/dist/esm/internal/checkbox-icon.compiled.css +0 -1
- package/dist/esm/internal/checkbox-icon.js +3 -36
- package/dist/esm/internal/label.compiled.css +0 -21
- package/dist/esm/internal/label.js +5 -41
- package/package.json +5 -17
|
@@ -1,9 +1,4 @@
|
|
|
1
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';
|
|
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
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/checkbox",
|
|
3
|
-
"version": "17.3.
|
|
3
|
+
"version": "17.3.5",
|
|
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/"
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
36
|
"@atlaskit/css": "^0.19.0",
|
|
37
37
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
38
|
-
"@atlaskit/
|
|
39
|
-
"@atlaskit/theme": "^21.0.0",
|
|
38
|
+
"@atlaskit/theme": "^22.0.0",
|
|
40
39
|
"@atlaskit/tokens": "^11.0.0",
|
|
41
40
|
"@babel/runtime": "^7.0.0",
|
|
42
41
|
"@compiled/react": "^0.18.6"
|
|
@@ -49,8 +48,8 @@
|
|
|
49
48
|
"@af/integration-testing": "workspace:^",
|
|
50
49
|
"@af/suppress-react-warnings": "workspace:^",
|
|
51
50
|
"@af/visual-regression": "workspace:^",
|
|
52
|
-
"@atlaskit/button": "^23.
|
|
53
|
-
"@atlaskit/docs": "^11.
|
|
51
|
+
"@atlaskit/button": "^23.10.0",
|
|
52
|
+
"@atlaskit/docs": "^11.5.0",
|
|
54
53
|
"@atlaskit/form": "^15.3.0",
|
|
55
54
|
"@atlaskit/link": "^3.3.0",
|
|
56
55
|
"@atlaskit/primitives": "^18.0.0",
|
|
@@ -86,16 +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-visual-refresh-icons": {
|
|
95
|
-
"type": "boolean"
|
|
96
|
-
},
|
|
97
|
-
"platform-dst-shape-theme-default": {
|
|
98
|
-
"type": "boolean"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
88
|
+
"homepage": "https://atlassian.design/components/checkbox/"
|
|
101
89
|
}
|