@atlaskit/checkbox 12.6.11 → 13.0.0

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,82 +1,88 @@
1
1
  # @atlaskit/checkbox
2
2
 
3
+ ## 13.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#41760](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41760) [`909e4a30fe7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/909e4a30fe7) - Removed all remaining legacy theming logic from the Blanket, Breadcrumbs and Checkbox components.
8
+
3
9
  ## 12.6.11
4
10
 
5
11
  ### Patch Changes
6
12
 
7
- - [`b580abfbc29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b580abfbc29) - Remove onClick from checkbox label
13
+ - [#38875](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38875) [`b580abfbc29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b580abfbc29) - Remove onClick from checkbox label
8
14
 
9
15
  ## 12.6.10
10
16
 
11
17
  ### Patch Changes
12
18
 
13
- - [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
19
+ - [#38731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38731) [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
14
20
 
15
21
  ## 12.6.9
16
22
 
17
23
  ### Patch Changes
18
24
 
19
- - [`356d6ebed05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/356d6ebed05) - This package is now onboarded onto the product push model.
25
+ - [#38201](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38201) [`356d6ebed05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/356d6ebed05) - This package is now onboarded onto the product push model.
20
26
 
21
27
  ## 12.6.8
22
28
 
23
29
  ### Patch Changes
24
30
 
25
- - [`ba0a43d8ccc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba0a43d8ccc) - [ux] update focused color fallback to meet contrast requirement
31
+ - [#37615](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37615) [`ba0a43d8ccc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba0a43d8ccc) - [ux] update focused color fallback to meet contrast requirement
26
32
 
27
33
  ## 12.6.7
28
34
 
29
35
  ### Patch Changes
30
36
 
31
- - [`9cc3b8d1902`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9cc3b8d1902) - chore(checkbox): use new feature flag for border contrast
37
+ - [#37452](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37452) [`9cc3b8d1902`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9cc3b8d1902) - chore(checkbox): use new feature flag for border contrast
32
38
 
33
39
  ## 12.6.6
34
40
 
35
41
  ### Patch Changes
36
42
 
37
- - [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
43
+ - [#36754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36754) [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
38
44
 
39
45
  ## 12.6.5
40
46
 
41
47
  ### Patch Changes
42
48
 
43
- - [`3958636a718`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3958636a718) - update border width with border spacing token
49
+ - [#36666](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36666) [`3958636a718`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3958636a718) - update border width with border spacing token
44
50
 
45
51
  ## 12.6.4
46
52
 
47
53
  ### Patch Changes
48
54
 
49
- - [`8f436f0c301`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f436f0c301) - extend border contrast feature flag to support confluence
55
+ - [#35111](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35111) [`8f436f0c301`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f436f0c301) - extend border contrast feature flag to support confluence
50
56
 
51
57
  ## 12.6.3
52
58
 
53
59
  ### Patch Changes
54
60
 
55
- - [`49b08bfdf5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49b08bfdf5f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
61
+ - [#34051](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34051) [`49b08bfdf5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49b08bfdf5f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
56
62
 
57
63
  ## 12.6.2
58
64
 
59
65
  ### Patch Changes
60
66
 
61
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
67
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
62
68
 
63
69
  ## 12.6.1
64
70
 
65
71
  ### Patch Changes
66
72
 
67
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
73
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
68
74
 
69
75
  ## 12.6.0
70
76
 
71
77
  ### Minor Changes
72
78
 
73
- - [`8d0fd2d3f6c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d0fd2d3f6c) - [ux] reduce stroke width from 2px to 1px with new color to meet contrast requirement
79
+ - [#33335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33335) [`8d0fd2d3f6c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d0fd2d3f6c) - [ux] reduce stroke width from 2px to 1px with new color to meet contrast requirement
74
80
 
75
81
  ## 12.5.0
76
82
 
77
83
  ### Minor Changes
78
84
 
79
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
85
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
80
86
 
81
87
  ### Patch Changes
82
88
 
@@ -110,7 +116,7 @@
110
116
 
111
117
  ### Patch Changes
112
118
 
113
- - [`ed1b0fd2c2d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed1b0fd2c2d) - [ux] Removes redundant whitespace from checkbox when no visual label is applied - eg when an aria-label or id is used instead.
119
+ - [#27738](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27738) [`ed1b0fd2c2d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed1b0fd2c2d) - [ux] Removes redundant whitespace from checkbox when no visual label is applied - eg when an aria-label or id is used instead.
114
120
 
115
121
  ## 12.4.1
116
122
 
@@ -122,7 +128,7 @@
122
128
 
123
129
  ### Minor Changes
124
130
 
125
- - [`0944c0e7eed`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0944c0e7eed) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
131
+ - [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`0944c0e7eed`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0944c0e7eed) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
126
132
 
127
133
  ### Patch Changes
128
134
 
@@ -132,32 +138,32 @@
132
138
 
133
139
  ### Patch Changes
134
140
 
135
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
141
+ - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
136
142
 
137
143
  ## 12.3.19
138
144
 
139
145
  ### Patch Changes
140
146
 
141
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
147
+ - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
142
148
 
143
149
  ## 12.3.18
144
150
 
145
151
  ### Patch Changes
146
152
 
147
- - [`fe575d49d66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe575d49d66) - Updated styles to use new input design tokens
153
+ - [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`fe575d49d66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe575d49d66) - Updated styles to use new input design tokens
148
154
  - Updated dependencies
149
155
 
150
156
  ## 12.3.17
151
157
 
152
158
  ### Patch Changes
153
159
 
154
- - [`90e89e12034`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90e89e12034) - [ux] Updated colors to use appropriate tokens
160
+ - [#23299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23299) [`90e89e12034`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90e89e12034) - [ux] Updated colors to use appropriate tokens
155
161
 
156
162
  ## 12.3.16
157
163
 
158
164
  ### Patch Changes
159
165
 
160
- - [`f55cf469372`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f55cf469372) - Added id property to the checkbox label for compatibility with aria-labelledby
166
+ - [#23179](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23179) [`f55cf469372`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f55cf469372) - Added id property to the checkbox label for compatibility with aria-labelledby
161
167
 
162
168
  ## 12.3.15
163
169
 
@@ -169,7 +175,7 @@
169
175
 
170
176
  ### Patch Changes
171
177
 
172
- - [`ff75f6c3189`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff75f6c3189) - [ux] Checkbox now uses grid layout in order to position the hidden checkbox over the area where the icon is. This improves the virtual cursor for screen readers while also meaning that modifier keys used when clicking the checkbox work."
178
+ - [#22130](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22130) [`ff75f6c3189`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff75f6c3189) - [ux] Checkbox now uses grid layout in order to position the hidden checkbox over the area where the icon is. This improves the virtual cursor for screen readers while also meaning that modifier keys used when clicking the checkbox work."
173
179
 
174
180
  ## 12.3.13
175
181
 
@@ -181,7 +187,7 @@
181
187
 
182
188
  ### Patch Changes
183
189
 
184
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
190
+ - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
185
191
 
186
192
  ## 12.3.11
187
193
 
@@ -205,14 +211,14 @@
205
211
 
206
212
  ### Patch Changes
207
213
 
208
- - [`5d27b03c5cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d27b03c5cf) - Styles have been rewritten in preparation for migration to compiled.
214
+ - [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526) [`5d27b03c5cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d27b03c5cf) - Styles have been rewritten in preparation for migration to compiled.
209
215
  - Updated dependencies
210
216
 
211
217
  ## 12.3.7
212
218
 
213
219
  ### Patch Changes
214
220
 
215
- - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
221
+ - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
216
222
  - Updated dependencies
217
223
 
218
224
  ## 12.3.6
@@ -225,7 +231,7 @@
225
231
 
226
232
  ### Patch Changes
227
233
 
228
- - [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
234
+ - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
229
235
  - Updated dependencies
230
236
 
231
237
  ## 12.3.4
@@ -250,14 +256,14 @@
250
256
 
251
257
  ### Patch Changes
252
258
 
253
- - [`6e2231d4609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6e2231d4609) - Checkbox no longer creates an empty `<span/>` element next to the input if no label is provided.
259
+ - [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864) [`6e2231d4609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6e2231d4609) - Checkbox no longer creates an empty `<span/>` element next to the input if no label is provided.
254
260
  - Updated dependencies
255
261
 
256
262
  ## 12.3.0
257
263
 
258
264
  ### Minor Changes
259
265
 
260
- - [`fe79d66ea34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe79d66ea34) - Instruments checkbox with the new tokens api. This will continue to work alongside the existing theming implementation. No visual changes
266
+ - [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`fe79d66ea34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe79d66ea34) - Instruments checkbox with the new tokens api. This will continue to work alongside the existing theming implementation. No visual changes
261
267
 
262
268
  ### Patch Changes
263
269
 
@@ -269,20 +275,20 @@
269
275
 
270
276
  ### Patch Changes
271
277
 
272
- - [`18c128f6b73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18c128f6b73) - [ux] Fix bug in which modified click events (e.g. Ctrl+Click) would not get passed down to the underlying input element in Firefox.
278
+ - [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`18c128f6b73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18c128f6b73) - [ux] Fix bug in which modified click events (e.g. Ctrl+Click) would not get passed down to the underlying input element in Firefox.
273
279
  - Updated dependencies
274
280
 
275
281
  ## 12.2.1
276
282
 
277
283
  ### Patch Changes
278
284
 
279
- - [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
285
+ - [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
280
286
 
281
287
  ## 12.2.0
282
288
 
283
289
  ### Minor Changes
284
290
 
285
- - [`987e2fc4ddd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/987e2fc4ddd) - Add configuration to eslint rule label-has-associated-control
291
+ - [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`987e2fc4ddd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/987e2fc4ddd) - Add configuration to eslint rule label-has-associated-control
286
292
 
287
293
  ### Patch Changes
288
294
 
@@ -293,46 +299,47 @@
293
299
 
294
300
  ### Patch Changes
295
301
 
296
- - [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
302
+ - [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167) [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
297
303
 
298
304
  ## 12.1.2
299
305
 
300
306
  ### Patch Changes
301
307
 
302
- - [`37324ccc750`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37324ccc750) - Fix styling error causing rendering errors in iOS Safari, and focus rings in Firefox
308
+ - [#11584](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11584) [`37324ccc750`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37324ccc750) - Fix styling error causing rendering errors in iOS Safari, and focus rings in Firefox
303
309
 
304
310
  ## 12.1.1
305
311
 
306
312
  ### Patch Changes
307
313
 
308
- - [`a99925b1634`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a99925b1634) - Added styles for edge high contrast modes (black on white and white on black)
314
+ - [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`a99925b1634`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a99925b1634) - Added styles for edge high contrast modes (black on white and white on black)
309
315
  - Updated dependencies
310
316
 
311
317
  ## 12.1.0
312
318
 
313
319
  ### Minor Changes
314
320
 
315
- - [`02a0cdbd98b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02a0cdbd98b) - Added aria-invalid to checkbox input which corresponds the isInvalid prop
321
+ - [#9510](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9510) [`02a0cdbd98b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02a0cdbd98b) - Added aria-invalid to checkbox input which corresponds the isInvalid prop
316
322
 
317
323
  ## 12.0.2
318
324
 
319
325
  ### Patch Changes
320
326
 
321
- - [`e0278312c57`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0278312c57) - Checkbox now uses the new `SVG` component from @atlaskit/icon.
327
+ - [#9083](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9083) [`e0278312c57`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0278312c57) - Checkbox now uses the new `SVG` component from @atlaskit/icon.
322
328
  - Updated dependencies
323
329
 
324
330
  ## 12.0.1
325
331
 
326
332
  ### Patch Changes
327
333
 
328
- - [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
334
+ - [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
329
335
  - [`08c1f789a45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/08c1f789a45) - [ux] Fixes flickering when transitioning to and from indeterminate states
330
336
 
331
337
  ## 12.0.0
332
338
 
333
339
  ### Major Changes
334
340
 
335
- In this version, we made `Checkbox` dramatically faster and more lightweight 😍
341
+ - [#6571](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6571) [`ee02ee0aaa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee02ee0aaa)
342
+ In this version, we made `Checkbox` dramatically faster and more lightweight 😍
336
343
 
337
344
  ### Changes
338
345
 
@@ -447,13 +454,13 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
447
454
 
448
455
  ### Patch Changes
449
456
 
450
- - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
457
+ - [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
451
458
 
452
459
  ## 11.0.7
453
460
 
454
461
  ### Patch Changes
455
462
 
456
- - [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
463
+ - [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
457
464
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
458
465
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
459
466
 
@@ -467,13 +474,13 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
467
474
 
468
475
  ### Patch Changes
469
476
 
470
- - [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
477
+ - [#4707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4707) [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
471
478
 
472
479
  ## 11.0.4
473
480
 
474
481
  ### Patch Changes
475
482
 
476
- - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
483
+ - [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
477
484
 
478
485
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
479
486
  to prevent duplicates of tslib being bundled.
@@ -482,26 +489,26 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
482
489
 
483
490
  ### Patch Changes
484
491
 
485
- - [`6262f382de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6262f382de) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
492
+ - [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`6262f382de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6262f382de) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
486
493
  - [`e99262c6f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e99262c6f0) - All form elements now have a default font explicitly set
487
494
 
488
495
  ## 11.0.2
489
496
 
490
497
  ### Patch Changes
491
498
 
492
- - [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
499
+ - [#3293](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3293) [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
493
500
 
494
501
  ## 11.0.1
495
502
 
496
503
  ### Patch Changes
497
504
 
498
- - [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
505
+ - [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
499
506
 
500
507
  ## 11.0.0
501
508
 
502
509
  ### Major Changes
503
510
 
504
- - [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
511
+ - [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
505
512
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
506
513
 
507
514
  ### Patch Changes
@@ -512,13 +519,13 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
512
519
 
513
520
  ### Patch Changes
514
521
 
515
- - [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
522
+ - [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
516
523
 
517
524
  ## 10.1.13
518
525
 
519
526
  ### Patch Changes
520
527
 
521
- - [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
528
+ - [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
522
529
 
523
530
  ## 10.1.12
524
531
 
@@ -5,8 +5,10 @@ import core, {
5
5
  ImportDeclaration,
6
6
  ImportDefaultSpecifier,
7
7
  ImportSpecifier,
8
+ JSXAttribute,
8
9
  Options,
9
10
  Program,
11
+ VariableDeclaration,
10
12
  } from 'jscodeshift';
11
13
  import { Collection } from 'jscodeshift/src/Collection';
12
14
 
@@ -40,7 +42,7 @@ export function getJSXAttributesByName(
40
42
  j: core.JSCodeshift,
41
43
  element: ASTPath<any>,
42
44
  attributeName: string,
43
- ) {
45
+ ): Collection<JSXAttribute> {
44
46
  return j(element)
45
47
  .find(j.JSXOpeningElement)
46
48
  .find(j.JSXAttribute)
@@ -98,7 +100,7 @@ export function hasVariableAssignment(
98
100
  j: core.JSCodeshift,
99
101
  source: ReturnType<typeof j>,
100
102
  identifierName: string,
101
- ) {
103
+ ): Collection<VariableDeclaration> | boolean {
102
104
  const occurance = source.find(j.VariableDeclaration).filter((path) => {
103
105
  return !!j(path.node)
104
106
  .find(j.VariableDeclarator)
@@ -241,20 +243,22 @@ export const createRenameFuncFor =
241
243
 
242
244
  let variable = hasVariableAssignment(j, source, specifier);
243
245
  if (variable) {
244
- variable.find(j.VariableDeclarator).forEach((declarator) => {
245
- j(declarator)
246
- .find(j.Identifier)
247
- .filter((identifier) => identifier.name === 'id')
248
- .forEach((ids) => {
249
- findIdentifierAndReplaceAttribute(
250
- j,
251
- source,
252
- ids.node.name,
253
- from,
254
- to,
255
- );
256
- });
257
- });
246
+ (variable as Collection<VariableDeclaration>)
247
+ .find(j.VariableDeclarator)
248
+ .forEach((declarator) => {
249
+ j(declarator)
250
+ .find(j.Identifier)
251
+ .filter((identifier) => identifier.name === 'id')
252
+ .forEach((ids) => {
253
+ findIdentifierAndReplaceAttribute(
254
+ j,
255
+ source,
256
+ ids.node.name,
257
+ from,
258
+ to,
259
+ );
260
+ });
261
+ });
258
262
  }
259
263
  };
260
264
 
@@ -161,7 +161,7 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
161
161
  analyticsData: analyticsContext,
162
162
  componentName: 'checkbox',
163
163
  packageName: "@atlaskit/checkbox",
164
- packageVersion: "12.6.11"
164
+ packageVersion: "13.0.0"
165
165
  });
166
166
  var internalRef = (0, _react.useRef)(null);
167
167
  var mergedRefs = (0, _mergeRefs.default)([internalRef, ref]);
@@ -194,5 +194,4 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
194
194
  }), label && (0, _react2.jsx)(_internal.LabelText, null, label, isRequired && (0, _react2.jsx)(_internal.RequiredIndicator, null)));
195
195
  }));
196
196
  Checkbox.displayName = 'Checkbox';
197
- var _default = Checkbox;
198
- exports.default = _default;
197
+ var _default = exports.default = Checkbox;
@@ -63,5 +63,4 @@ var CheckboxIcon = /*#__PURE__*/(0, _react.memo)(function (_ref) {
63
63
  rx: "2"
64
64
  }), icon));
65
65
  });
66
- var _default = CheckboxIcon;
67
- exports.default = _default;
66
+ var _default = exports.default = CheckboxIcon;
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.fontFamily = void 0;
7
7
  var _constants = require("@atlaskit/theme/constants");
8
- var fontFamily = (0, _constants.fontFamily)();
9
- exports.fontFamily = fontFamily;
8
+ var fontFamily = exports.fontFamily = (0, _constants.fontFamily)();
@@ -1,18 +1,16 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.default = Label;
8
7
  var _react = require("@emotion/react");
8
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
9
  var _colors = require("@atlaskit/theme/colors");
10
- var _components = require("@atlaskit/theme/components");
11
10
  var _constants = require("./constants");
12
- var _theme = _interopRequireDefault(require("./theme"));
13
11
  /** @jsx jsx */
14
12
 
15
- var labelStyles = (0, _react.css)({
13
+ var baseStyles = (0, _react.css)({
16
14
  display: 'grid',
17
15
  gridAutoColumns: '1fr',
18
16
  gridAutoRows: 'min-content',
@@ -28,78 +26,44 @@ var disabledStyles = (0, _react.css)({
28
26
  color: "var(--ds-text-disabled, ".concat(_colors.N80, ")"),
29
27
  cursor: 'not-allowed'
30
28
  });
31
- var themeStyles = {
32
- light: (0, _react.css)({
33
- /**
34
- * Background
35
- */
36
- '--local-background': _theme.default.light.boxColor.rest,
37
- '--local-background-active': _theme.default.light.boxColor.active,
38
- '--local-background-checked': _theme.default.light.boxColor.checked,
39
- '--local-background-checked-hover': _theme.default.light.boxColor.hoveredAndChecked,
40
- '--local-background-disabled': _theme.default.light.boxColor.disabled,
41
- '--local-background-hover': _theme.default.light.boxColor.hovered,
42
- /**
43
- * Border
44
- */
45
- '--local-border': _theme.default.light.borderColor.rest,
46
- '--local-border-active': _theme.default.light.borderColor.active,
47
- '--local-border-checked': _theme.default.light.borderColor.checked,
48
- '--local-border-checked-hover': _theme.default.light.borderColor.hoveredAndChecked,
49
- '--local-border-checked-invalid': _theme.default.light.borderColor.invalidAndChecked,
50
- '--local-border-disabled': _theme.default.light.borderColor.disabled,
51
- '--local-border-focus': _theme.default.light.borderColor.focused,
52
- '--local-border-hover': _theme.default.light.borderColor.hovered,
53
- '--local-border-invalid': _theme.default.light.borderColor.invalid,
54
- /**
55
- * Tick
56
- */
57
- '--local-tick-active': _theme.default.light.tickColor.activeAndChecked,
58
- '--local-tick-checked': _theme.default.light.tickColor.checked,
59
- '--local-tick-disabled': _theme.default.light.tickColor.disabledAndChecked,
60
- '--local-tick-rest': 'transparent'
61
- }),
62
- dark: (0, _react.css)({
63
- /**
64
- * Background
65
- */
66
- '--local-background': _theme.default.dark.boxColor.rest,
67
- '--local-background-active': _theme.default.dark.boxColor.active,
68
- '--local-background-checked': _theme.default.dark.boxColor.checked,
69
- '--local-background-checked-hover': _theme.default.dark.boxColor.hoveredAndChecked,
70
- '--local-background-disabled': _theme.default.dark.boxColor.disabled,
71
- '--local-background-hover': _theme.default.dark.boxColor.hovered,
72
- /**
73
- * Border
74
- */
75
- '--local-border': _theme.default.dark.borderColor.rest,
76
- '--local-border-active': _theme.default.dark.borderColor.active,
77
- '--local-border-checked': _theme.default.dark.borderColor.checked,
78
- '--local-border-checked-hover': _theme.default.dark.borderColor.hoveredAndChecked,
79
- '--local-border-checked-invalid': _theme.default.dark.borderColor.invalidAndChecked,
80
- '--local-border-disabled': _theme.default.dark.borderColor.disabled,
81
- '--local-border-focus': _theme.default.dark.borderColor.focused,
82
- '--local-border-hover': _theme.default.dark.borderColor.hovered,
83
- '--local-border-invalid': _theme.default.dark.borderColor.invalid,
84
- /**
85
- * Tick
86
- */
87
- '--local-tick-active': _theme.default.dark.tickColor.activeAndChecked,
88
- '--local-tick-checked': _theme.default.dark.tickColor.checked,
89
- '--local-tick-disabled': _theme.default.dark.tickColor.disabledAndChecked,
90
- '--local-tick-rest': 'transparent'
91
- })
92
- };
29
+ var labelStyles = (0, _react.css)({
30
+ /**
31
+ * Background
32
+ */
33
+ '--local-background': "var(--ds-background-input, ".concat(_colors.N10, ")"),
34
+ '--local-background-active': "var(--ds-background-input-pressed, ".concat(_colors.B50, ")"),
35
+ '--local-background-checked': "var(--ds-background-selected-bold, ".concat(_colors.B400, ")"),
36
+ '--local-background-checked-hover': "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")"),
37
+ '--local-background-disabled': "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
38
+ '--local-background-hover': "var(--ds-background-input-hovered, ".concat(_colors.N30, ")"),
39
+ /**
40
+ * Border
41
+ */
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, ")"),
43
+ '--local-border-active': "var(--ds-border, ".concat(_colors.B50, ")"),
44
+ '--local-border-checked': "var(--ds-background-selected-bold, ".concat(_colors.B400, ")"),
45
+ '--local-border-checked-hover': "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")"),
46
+ '--local-border-checked-invalid': "var(--ds-border-danger, ".concat(_colors.R300, ")"),
47
+ '--local-border-disabled': "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
48
+ '--local-border-focus': "var(--ds-border-focused, ".concat(_colors.B200, ")"),
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, ")"),
50
+ '--local-border-invalid': "var(--ds-border-danger, ".concat(_colors.R300, ")"),
51
+ /**
52
+ * Tick
53
+ */
54
+ '--local-tick-active': "var(--ds-icon-inverse, ".concat(_colors.B400, ")"),
55
+ '--local-tick-checked': "var(--ds-icon-inverse, ".concat(_colors.N10, ")"),
56
+ '--local-tick-disabled': "var(--ds-icon-disabled, ".concat(_colors.N70, ")"),
57
+ '--local-tick-rest': 'transparent'
58
+ });
93
59
  function Label(_ref) {
94
60
  var children = _ref.children,
95
61
  isDisabled = _ref.isDisabled,
96
62
  testId = _ref.testId,
97
63
  label = _ref.label,
98
64
  id = _ref.id;
99
- var _useGlobalTheme = (0, _components.useGlobalTheme)(),
100
- mode = _useGlobalTheme.mode;
101
65
  return (0, _react.jsx)("label", {
102
- css: [labelStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, mode === 'light' && themeStyles.light, mode === 'dark' && themeStyles.dark],
66
+ css: [baseStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, labelStyles],
103
67
  "data-testid": testId,
104
68
  "data-disabled": isDisabled || undefined,
105
69
  id: id
@@ -145,7 +145,7 @@ const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(pr
145
145
  analyticsData: analyticsContext,
146
146
  componentName: 'checkbox',
147
147
  packageName: "@atlaskit/checkbox",
148
- packageVersion: "12.6.11"
148
+ packageVersion: "13.0.0"
149
149
  });
150
150
  const internalRef = useRef(null);
151
151
  const mergedRefs = mergeRefs([internalRef, ref]);
@@ -1,10 +1,9 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
- import { N80, N900 } from '@atlaskit/theme/colors';
4
- import { useGlobalTheme } from '@atlaskit/theme/components';
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';
5
5
  import { fontFamily } from './constants';
6
- import theme from './theme';
7
- const labelStyles = css({
6
+ const baseStyles = css({
8
7
  display: 'grid',
9
8
  gridAutoColumns: '1fr',
10
9
  gridAutoRows: 'min-content',
@@ -20,68 +19,36 @@ const disabledStyles = css({
20
19
  color: `var(--ds-text-disabled, ${N80})`,
21
20
  cursor: 'not-allowed'
22
21
  });
23
- const themeStyles = {
24
- light: css({
25
- /**
26
- * Background
27
- */
28
- '--local-background': theme.light.boxColor.rest,
29
- '--local-background-active': theme.light.boxColor.active,
30
- '--local-background-checked': theme.light.boxColor.checked,
31
- '--local-background-checked-hover': theme.light.boxColor.hoveredAndChecked,
32
- '--local-background-disabled': theme.light.boxColor.disabled,
33
- '--local-background-hover': theme.light.boxColor.hovered,
34
- /**
35
- * Border
36
- */
37
- '--local-border': theme.light.borderColor.rest,
38
- '--local-border-active': theme.light.borderColor.active,
39
- '--local-border-checked': theme.light.borderColor.checked,
40
- '--local-border-checked-hover': theme.light.borderColor.hoveredAndChecked,
41
- '--local-border-checked-invalid': theme.light.borderColor.invalidAndChecked,
42
- '--local-border-disabled': theme.light.borderColor.disabled,
43
- '--local-border-focus': theme.light.borderColor.focused,
44
- '--local-border-hover': theme.light.borderColor.hovered,
45
- '--local-border-invalid': theme.light.borderColor.invalid,
46
- /**
47
- * Tick
48
- */
49
- '--local-tick-active': theme.light.tickColor.activeAndChecked,
50
- '--local-tick-checked': theme.light.tickColor.checked,
51
- '--local-tick-disabled': theme.light.tickColor.disabledAndChecked,
52
- '--local-tick-rest': 'transparent'
53
- }),
54
- dark: css({
55
- /**
56
- * Background
57
- */
58
- '--local-background': theme.dark.boxColor.rest,
59
- '--local-background-active': theme.dark.boxColor.active,
60
- '--local-background-checked': theme.dark.boxColor.checked,
61
- '--local-background-checked-hover': theme.dark.boxColor.hoveredAndChecked,
62
- '--local-background-disabled': theme.dark.boxColor.disabled,
63
- '--local-background-hover': theme.dark.boxColor.hovered,
64
- /**
65
- * Border
66
- */
67
- '--local-border': theme.dark.borderColor.rest,
68
- '--local-border-active': theme.dark.borderColor.active,
69
- '--local-border-checked': theme.dark.borderColor.checked,
70
- '--local-border-checked-hover': theme.dark.borderColor.hoveredAndChecked,
71
- '--local-border-checked-invalid': theme.dark.borderColor.invalidAndChecked,
72
- '--local-border-disabled': theme.dark.borderColor.disabled,
73
- '--local-border-focus': theme.dark.borderColor.focused,
74
- '--local-border-hover': theme.dark.borderColor.hovered,
75
- '--local-border-invalid': theme.dark.borderColor.invalid,
76
- /**
77
- * Tick
78
- */
79
- '--local-tick-active': theme.dark.tickColor.activeAndChecked,
80
- '--local-tick-checked': theme.dark.tickColor.checked,
81
- '--local-tick-disabled': theme.dark.tickColor.disabledAndChecked,
82
- '--local-tick-rest': 'transparent'
83
- })
84
- };
22
+ const labelStyles = css({
23
+ /**
24
+ * Background
25
+ */
26
+ '--local-background': `var(--ds-background-input, ${N10})`,
27
+ '--local-background-active': `var(--ds-background-input-pressed, ${B50})`,
28
+ '--local-background-checked': `var(--ds-background-selected-bold, ${B400})`,
29
+ '--local-background-checked-hover': `var(--ds-background-selected-bold-hovered, ${B300})`,
30
+ '--local-background-disabled': `var(--ds-background-disabled, ${N20})`,
31
+ '--local-background-hover': `var(--ds-background-input-hovered, ${N30})`,
32
+ /**
33
+ * Border
34
+ */
35
+ '--local-border': getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${N100})` : `var(--ds-border-input, ${N40})`,
36
+ '--local-border-active': `var(--ds-border, ${B50})`,
37
+ '--local-border-checked': `var(--ds-background-selected-bold, ${B400})`,
38
+ '--local-border-checked-hover': `var(--ds-background-selected-bold-hovered, ${B300})`,
39
+ '--local-border-checked-invalid': `var(--ds-border-danger, ${R300})`,
40
+ '--local-border-disabled': `var(--ds-background-disabled, ${N20})`,
41
+ '--local-border-focus': `var(--ds-border-focused, ${B200})`,
42
+ '--local-border-hover': getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${N100})` : `var(--ds-border-input, ${N40})`,
43
+ '--local-border-invalid': `var(--ds-border-danger, ${R300})`,
44
+ /**
45
+ * Tick
46
+ */
47
+ '--local-tick-active': `var(--ds-icon-inverse, ${B400})`,
48
+ '--local-tick-checked': `var(--ds-icon-inverse, ${N10})`,
49
+ '--local-tick-disabled': `var(--ds-icon-disabled, ${N70})`,
50
+ '--local-tick-rest': 'transparent'
51
+ });
85
52
  export default function Label({
86
53
  children,
87
54
  isDisabled,
@@ -89,11 +56,8 @@ export default function Label({
89
56
  label,
90
57
  id
91
58
  }) {
92
- const {
93
- mode
94
- } = useGlobalTheme();
95
59
  return jsx("label", {
96
- css: [labelStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, mode === 'light' && themeStyles.light, mode === 'dark' && themeStyles.dark],
60
+ css: [baseStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, labelStyles],
97
61
  "data-testid": testId,
98
62
  "data-disabled": isDisabled || undefined,
99
63
  id: id
@@ -154,7 +154,7 @@ var Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(prop
154
154
  analyticsData: analyticsContext,
155
155
  componentName: 'checkbox',
156
156
  packageName: "@atlaskit/checkbox",
157
- packageVersion: "12.6.11"
157
+ packageVersion: "13.0.0"
158
158
  });
159
159
  var internalRef = useRef(null);
160
160
  var mergedRefs = mergeRefs([internalRef, ref]);
@@ -1,10 +1,9 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
- import { N80, N900 } from '@atlaskit/theme/colors';
4
- import { useGlobalTheme } from '@atlaskit/theme/components';
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';
5
5
  import { fontFamily } from './constants';
6
- import theme from './theme';
7
- var labelStyles = css({
6
+ var baseStyles = css({
8
7
  display: 'grid',
9
8
  gridAutoColumns: '1fr',
10
9
  gridAutoRows: 'min-content',
@@ -20,78 +19,44 @@ var disabledStyles = css({
20
19
  color: "var(--ds-text-disabled, ".concat(N80, ")"),
21
20
  cursor: 'not-allowed'
22
21
  });
23
- var themeStyles = {
24
- light: css({
25
- /**
26
- * Background
27
- */
28
- '--local-background': theme.light.boxColor.rest,
29
- '--local-background-active': theme.light.boxColor.active,
30
- '--local-background-checked': theme.light.boxColor.checked,
31
- '--local-background-checked-hover': theme.light.boxColor.hoveredAndChecked,
32
- '--local-background-disabled': theme.light.boxColor.disabled,
33
- '--local-background-hover': theme.light.boxColor.hovered,
34
- /**
35
- * Border
36
- */
37
- '--local-border': theme.light.borderColor.rest,
38
- '--local-border-active': theme.light.borderColor.active,
39
- '--local-border-checked': theme.light.borderColor.checked,
40
- '--local-border-checked-hover': theme.light.borderColor.hoveredAndChecked,
41
- '--local-border-checked-invalid': theme.light.borderColor.invalidAndChecked,
42
- '--local-border-disabled': theme.light.borderColor.disabled,
43
- '--local-border-focus': theme.light.borderColor.focused,
44
- '--local-border-hover': theme.light.borderColor.hovered,
45
- '--local-border-invalid': theme.light.borderColor.invalid,
46
- /**
47
- * Tick
48
- */
49
- '--local-tick-active': theme.light.tickColor.activeAndChecked,
50
- '--local-tick-checked': theme.light.tickColor.checked,
51
- '--local-tick-disabled': theme.light.tickColor.disabledAndChecked,
52
- '--local-tick-rest': 'transparent'
53
- }),
54
- dark: css({
55
- /**
56
- * Background
57
- */
58
- '--local-background': theme.dark.boxColor.rest,
59
- '--local-background-active': theme.dark.boxColor.active,
60
- '--local-background-checked': theme.dark.boxColor.checked,
61
- '--local-background-checked-hover': theme.dark.boxColor.hoveredAndChecked,
62
- '--local-background-disabled': theme.dark.boxColor.disabled,
63
- '--local-background-hover': theme.dark.boxColor.hovered,
64
- /**
65
- * Border
66
- */
67
- '--local-border': theme.dark.borderColor.rest,
68
- '--local-border-active': theme.dark.borderColor.active,
69
- '--local-border-checked': theme.dark.borderColor.checked,
70
- '--local-border-checked-hover': theme.dark.borderColor.hoveredAndChecked,
71
- '--local-border-checked-invalid': theme.dark.borderColor.invalidAndChecked,
72
- '--local-border-disabled': theme.dark.borderColor.disabled,
73
- '--local-border-focus': theme.dark.borderColor.focused,
74
- '--local-border-hover': theme.dark.borderColor.hovered,
75
- '--local-border-invalid': theme.dark.borderColor.invalid,
76
- /**
77
- * Tick
78
- */
79
- '--local-tick-active': theme.dark.tickColor.activeAndChecked,
80
- '--local-tick-checked': theme.dark.tickColor.checked,
81
- '--local-tick-disabled': theme.dark.tickColor.disabledAndChecked,
82
- '--local-tick-rest': 'transparent'
83
- })
84
- };
22
+ var labelStyles = css({
23
+ /**
24
+ * Background
25
+ */
26
+ '--local-background': "var(--ds-background-input, ".concat(N10, ")"),
27
+ '--local-background-active': "var(--ds-background-input-pressed, ".concat(B50, ")"),
28
+ '--local-background-checked': "var(--ds-background-selected-bold, ".concat(B400, ")"),
29
+ '--local-background-checked-hover': "var(--ds-background-selected-bold-hovered, ".concat(B300, ")"),
30
+ '--local-background-disabled': "var(--ds-background-disabled, ".concat(N20, ")"),
31
+ '--local-background-hover': "var(--ds-background-input-hovered, ".concat(N30, ")"),
32
+ /**
33
+ * Border
34
+ */
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, ")"),
36
+ '--local-border-active': "var(--ds-border, ".concat(B50, ")"),
37
+ '--local-border-checked': "var(--ds-background-selected-bold, ".concat(B400, ")"),
38
+ '--local-border-checked-hover': "var(--ds-background-selected-bold-hovered, ".concat(B300, ")"),
39
+ '--local-border-checked-invalid': "var(--ds-border-danger, ".concat(R300, ")"),
40
+ '--local-border-disabled': "var(--ds-background-disabled, ".concat(N20, ")"),
41
+ '--local-border-focus': "var(--ds-border-focused, ".concat(B200, ")"),
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, ")"),
43
+ '--local-border-invalid': "var(--ds-border-danger, ".concat(R300, ")"),
44
+ /**
45
+ * Tick
46
+ */
47
+ '--local-tick-active': "var(--ds-icon-inverse, ".concat(B400, ")"),
48
+ '--local-tick-checked': "var(--ds-icon-inverse, ".concat(N10, ")"),
49
+ '--local-tick-disabled': "var(--ds-icon-disabled, ".concat(N70, ")"),
50
+ '--local-tick-rest': 'transparent'
51
+ });
85
52
  export default function Label(_ref) {
86
53
  var children = _ref.children,
87
54
  isDisabled = _ref.isDisabled,
88
55
  testId = _ref.testId,
89
56
  label = _ref.label,
90
57
  id = _ref.id;
91
- var _useGlobalTheme = useGlobalTheme(),
92
- mode = _useGlobalTheme.mode;
93
58
  return jsx("label", {
94
- css: [labelStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, mode === 'light' && themeStyles.light, mode === 'dark' && themeStyles.dark],
59
+ css: [baseStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, labelStyles],
95
60
  "data-testid": testId,
96
61
  "data-disabled": isDisabled || undefined,
97
62
  id: id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.6.11",
3
+ "version": "13.0.0",
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/"
@@ -41,8 +41,8 @@
41
41
  "@atlaskit/ds-lib": "^2.2.0",
42
42
  "@atlaskit/icon": "^21.12.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.2.0",
44
- "@atlaskit/theme": "^12.5.0",
45
- "@atlaskit/tokens": "^1.17.0",
44
+ "@atlaskit/theme": "^12.6.0",
45
+ "@atlaskit/tokens": "^1.28.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1"
48
48
  },
@@ -51,6 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@af/accessibility-testing": "*",
54
+ "@af/visual-regression": "*",
54
55
  "@atlaskit/ssr": "*",
55
56
  "@atlaskit/visual-regression": "*",
56
57
  "@atlaskit/webdriver-runner": "*",
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
- var _colors = require("@atlaskit/theme/colors");
9
- var theme = {
10
- light: {
11
- borderColor: {
12
- rest: (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, ")"),
13
- hovered: (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, ")"),
14
- disabled: "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
15
- checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")"),
16
- active: "var(--ds-border, ".concat(_colors.B50, ")"),
17
- invalid: "var(--ds-border-danger, ".concat(_colors.R300, ")"),
18
- invalidAndChecked: "var(--ds-border-danger, ".concat(_colors.R300, ")"),
19
- focused: "var(--ds-border-focused, ".concat(_colors.B200, ")"),
20
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")")
21
- },
22
- boxColor: {
23
- rest: "var(--ds-background-input, ".concat(_colors.N10, ")"),
24
- hovered: "var(--ds-background-input-hovered, ".concat(_colors.N30, ")"),
25
- disabled: "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
26
- active: "var(--ds-background-input-pressed, ".concat(_colors.B50, ")"),
27
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")"),
28
- checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")")
29
- },
30
- tickColor: {
31
- disabledAndChecked: "var(--ds-icon-disabled, ".concat(_colors.N70, ")"),
32
- activeAndChecked: "var(--ds-icon-inverse, ".concat(_colors.B400, ")"),
33
- checked: "var(--ds-icon-inverse, ".concat(_colors.N10, ")")
34
- }
35
- },
36
- dark: {
37
- borderColor: {
38
- rest: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(_colors.DN200, ")") : "var(--ds-border-input, ".concat(_colors.DN80, ")"),
39
- hovered: "var(--ds-border-input, ".concat(_colors.DN200, ")"),
40
- disabled: "var(--ds-background-disabled, ".concat(_colors.DN10, ")"),
41
- checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")"),
42
- active: "var(--ds-border, ".concat(_colors.B200, ")"),
43
- invalid: "var(--ds-border-danger, ".concat(_colors.R300, ")"),
44
- invalidAndChecked: "var(--ds-border-danger, ".concat(_colors.R300, ")"),
45
- focused: "var(--ds-border-focused, ".concat(_colors.B75, ")"),
46
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B75, ")")
47
- },
48
- boxColor: {
49
- rest: "var(--ds-background-input, ".concat(_colors.DN10, ")"),
50
- hovered: "var(--ds-background-input-hovered, ".concat(_colors.DN30, ")"),
51
- disabled: "var(--ds-background-disabled, ".concat(_colors.DN10, ")"),
52
- active: "var(--ds-background-input-pressed, ".concat(_colors.B200, ")"),
53
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B75, ")"),
54
- checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")")
55
- },
56
- tickColor: {
57
- disabledAndChecked: "var(--ds-icon-disabled, ".concat(_colors.DN90, ")"),
58
- activeAndChecked: "var(--ds-icon-inverse, ".concat(_colors.DN10, ")"),
59
- checked: "var(--ds-icon-inverse, ".concat(_colors.DN10, ")")
60
- }
61
- }
62
- };
63
- var _default = theme;
64
- exports.default = _default;
@@ -1,57 +0,0 @@
1
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
2
- import { B200, B300, B400, B50, B75, DN10, DN200, DN30, DN80, DN90, N10, N100, N20, N30, N40, N70, R300 } from '@atlaskit/theme/colors';
3
- const theme = {
4
- light: {
5
- borderColor: {
6
- rest: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${N100})` : `var(--ds-border-input, ${N40})`,
7
- hovered: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${N100})` : `var(--ds-border-input, ${N40})`,
8
- disabled: `var(--ds-background-disabled, ${N20})`,
9
- checked: `var(--ds-background-selected-bold, ${B400})`,
10
- active: `var(--ds-border, ${B50})`,
11
- invalid: `var(--ds-border-danger, ${R300})`,
12
- invalidAndChecked: `var(--ds-border-danger, ${R300})`,
13
- focused: `var(--ds-border-focused, ${B200})`,
14
- hoveredAndChecked: `var(--ds-background-selected-bold-hovered, ${B300})`
15
- },
16
- boxColor: {
17
- rest: `var(--ds-background-input, ${N10})`,
18
- hovered: `var(--ds-background-input-hovered, ${N30})`,
19
- disabled: `var(--ds-background-disabled, ${N20})`,
20
- active: `var(--ds-background-input-pressed, ${B50})`,
21
- hoveredAndChecked: `var(--ds-background-selected-bold-hovered, ${B300})`,
22
- checked: `var(--ds-background-selected-bold, ${B400})`
23
- },
24
- tickColor: {
25
- disabledAndChecked: `var(--ds-icon-disabled, ${N70})`,
26
- activeAndChecked: `var(--ds-icon-inverse, ${B400})`,
27
- checked: `var(--ds-icon-inverse, ${N10})`
28
- }
29
- },
30
- dark: {
31
- borderColor: {
32
- rest: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${DN200})` : `var(--ds-border-input, ${DN80})`,
33
- hovered: `var(--ds-border-input, ${DN200})`,
34
- disabled: `var(--ds-background-disabled, ${DN10})`,
35
- checked: `var(--ds-background-selected-bold, ${B400})`,
36
- active: `var(--ds-border, ${B200})`,
37
- invalid: `var(--ds-border-danger, ${R300})`,
38
- invalidAndChecked: `var(--ds-border-danger, ${R300})`,
39
- focused: `var(--ds-border-focused, ${B75})`,
40
- hoveredAndChecked: `var(--ds-background-selected-bold-hovered, ${B75})`
41
- },
42
- boxColor: {
43
- rest: `var(--ds-background-input, ${DN10})`,
44
- hovered: `var(--ds-background-input-hovered, ${DN30})`,
45
- disabled: `var(--ds-background-disabled, ${DN10})`,
46
- active: `var(--ds-background-input-pressed, ${B200})`,
47
- hoveredAndChecked: `var(--ds-background-selected-bold-hovered, ${B75})`,
48
- checked: `var(--ds-background-selected-bold, ${B400})`
49
- },
50
- tickColor: {
51
- disabledAndChecked: `var(--ds-icon-disabled, ${DN90})`,
52
- activeAndChecked: `var(--ds-icon-inverse, ${DN10})`,
53
- checked: `var(--ds-icon-inverse, ${DN10})`
54
- }
55
- }
56
- };
57
- export default theme;
@@ -1,57 +0,0 @@
1
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
2
- import { B200, B300, B400, B50, B75, DN10, DN200, DN30, DN80, DN90, N10, N100, N20, N30, N40, N70, R300 } from '@atlaskit/theme/colors';
3
- var theme = {
4
- light: {
5
- borderColor: {
6
- rest: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(N100, ")") : "var(--ds-border-input, ".concat(N40, ")"),
7
- hovered: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(N100, ")") : "var(--ds-border-input, ".concat(N40, ")"),
8
- disabled: "var(--ds-background-disabled, ".concat(N20, ")"),
9
- checked: "var(--ds-background-selected-bold, ".concat(B400, ")"),
10
- active: "var(--ds-border, ".concat(B50, ")"),
11
- invalid: "var(--ds-border-danger, ".concat(R300, ")"),
12
- invalidAndChecked: "var(--ds-border-danger, ".concat(R300, ")"),
13
- focused: "var(--ds-border-focused, ".concat(B200, ")"),
14
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(B300, ")")
15
- },
16
- boxColor: {
17
- rest: "var(--ds-background-input, ".concat(N10, ")"),
18
- hovered: "var(--ds-background-input-hovered, ".concat(N30, ")"),
19
- disabled: "var(--ds-background-disabled, ".concat(N20, ")"),
20
- active: "var(--ds-background-input-pressed, ".concat(B50, ")"),
21
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(B300, ")"),
22
- checked: "var(--ds-background-selected-bold, ".concat(B400, ")")
23
- },
24
- tickColor: {
25
- disabledAndChecked: "var(--ds-icon-disabled, ".concat(N70, ")"),
26
- activeAndChecked: "var(--ds-icon-inverse, ".concat(B400, ")"),
27
- checked: "var(--ds-icon-inverse, ".concat(N10, ")")
28
- }
29
- },
30
- dark: {
31
- borderColor: {
32
- rest: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(DN200, ")") : "var(--ds-border-input, ".concat(DN80, ")"),
33
- hovered: "var(--ds-border-input, ".concat(DN200, ")"),
34
- disabled: "var(--ds-background-disabled, ".concat(DN10, ")"),
35
- checked: "var(--ds-background-selected-bold, ".concat(B400, ")"),
36
- active: "var(--ds-border, ".concat(B200, ")"),
37
- invalid: "var(--ds-border-danger, ".concat(R300, ")"),
38
- invalidAndChecked: "var(--ds-border-danger, ".concat(R300, ")"),
39
- focused: "var(--ds-border-focused, ".concat(B75, ")"),
40
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(B75, ")")
41
- },
42
- boxColor: {
43
- rest: "var(--ds-background-input, ".concat(DN10, ")"),
44
- hovered: "var(--ds-background-input-hovered, ".concat(DN30, ")"),
45
- disabled: "var(--ds-background-disabled, ".concat(DN10, ")"),
46
- active: "var(--ds-background-input-pressed, ".concat(B200, ")"),
47
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(B75, ")"),
48
- checked: "var(--ds-background-selected-bold, ".concat(B400, ")")
49
- },
50
- tickColor: {
51
- disabledAndChecked: "var(--ds-icon-disabled, ".concat(DN90, ")"),
52
- activeAndChecked: "var(--ds-icon-inverse, ".concat(DN10, ")"),
53
- checked: "var(--ds-icon-inverse, ".concat(DN10, ")")
54
- }
55
- }
56
- };
57
- export default theme;
@@ -1,55 +0,0 @@
1
- declare const theme: {
2
- light: {
3
- borderColor: {
4
- rest: "var(--ds-border-bold)" | "var(--ds-border-input)";
5
- hovered: "var(--ds-border-bold)" | "var(--ds-border-input)";
6
- disabled: "var(--ds-background-disabled)";
7
- checked: "var(--ds-background-selected-bold)";
8
- active: "var(--ds-border)";
9
- invalid: "var(--ds-border-danger)";
10
- invalidAndChecked: "var(--ds-border-danger)";
11
- focused: "var(--ds-border-focused)";
12
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
13
- };
14
- boxColor: {
15
- rest: "var(--ds-background-input)";
16
- hovered: "var(--ds-background-input-hovered)";
17
- disabled: "var(--ds-background-disabled)";
18
- active: "var(--ds-background-input-pressed)";
19
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
20
- checked: "var(--ds-background-selected-bold)";
21
- };
22
- tickColor: {
23
- disabledAndChecked: "var(--ds-icon-disabled)";
24
- activeAndChecked: "var(--ds-icon-inverse)";
25
- checked: "var(--ds-icon-inverse)";
26
- };
27
- };
28
- dark: {
29
- borderColor: {
30
- rest: "var(--ds-border-bold)" | "var(--ds-border-input)";
31
- hovered: "var(--ds-border-input)";
32
- disabled: "var(--ds-background-disabled)";
33
- checked: "var(--ds-background-selected-bold)";
34
- active: "var(--ds-border)";
35
- invalid: "var(--ds-border-danger)";
36
- invalidAndChecked: "var(--ds-border-danger)";
37
- focused: "var(--ds-border-focused)";
38
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
39
- };
40
- boxColor: {
41
- rest: "var(--ds-background-input)";
42
- hovered: "var(--ds-background-input-hovered)";
43
- disabled: "var(--ds-background-disabled)";
44
- active: "var(--ds-background-input-pressed)";
45
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
46
- checked: "var(--ds-background-selected-bold)";
47
- };
48
- tickColor: {
49
- disabledAndChecked: "var(--ds-icon-disabled)";
50
- activeAndChecked: "var(--ds-icon-inverse)";
51
- checked: "var(--ds-icon-inverse)";
52
- };
53
- };
54
- };
55
- export default theme;
@@ -1,55 +0,0 @@
1
- declare const theme: {
2
- light: {
3
- borderColor: {
4
- rest: "var(--ds-border-bold)" | "var(--ds-border-input)";
5
- hovered: "var(--ds-border-bold)" | "var(--ds-border-input)";
6
- disabled: "var(--ds-background-disabled)";
7
- checked: "var(--ds-background-selected-bold)";
8
- active: "var(--ds-border)";
9
- invalid: "var(--ds-border-danger)";
10
- invalidAndChecked: "var(--ds-border-danger)";
11
- focused: "var(--ds-border-focused)";
12
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
13
- };
14
- boxColor: {
15
- rest: "var(--ds-background-input)";
16
- hovered: "var(--ds-background-input-hovered)";
17
- disabled: "var(--ds-background-disabled)";
18
- active: "var(--ds-background-input-pressed)";
19
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
20
- checked: "var(--ds-background-selected-bold)";
21
- };
22
- tickColor: {
23
- disabledAndChecked: "var(--ds-icon-disabled)";
24
- activeAndChecked: "var(--ds-icon-inverse)";
25
- checked: "var(--ds-icon-inverse)";
26
- };
27
- };
28
- dark: {
29
- borderColor: {
30
- rest: "var(--ds-border-bold)" | "var(--ds-border-input)";
31
- hovered: "var(--ds-border-input)";
32
- disabled: "var(--ds-background-disabled)";
33
- checked: "var(--ds-background-selected-bold)";
34
- active: "var(--ds-border)";
35
- invalid: "var(--ds-border-danger)";
36
- invalidAndChecked: "var(--ds-border-danger)";
37
- focused: "var(--ds-border-focused)";
38
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
39
- };
40
- boxColor: {
41
- rest: "var(--ds-background-input)";
42
- hovered: "var(--ds-background-input-hovered)";
43
- disabled: "var(--ds-background-disabled)";
44
- active: "var(--ds-background-input-pressed)";
45
- hoveredAndChecked: "var(--ds-background-selected-bold-hovered)";
46
- checked: "var(--ds-background-selected-bold)";
47
- };
48
- tickColor: {
49
- disabledAndChecked: "var(--ds-icon-disabled)";
50
- activeAndChecked: "var(--ds-icon-inverse)";
51
- checked: "var(--ds-icon-inverse)";
52
- };
53
- };
54
- };
55
- export default theme;