@atlaskit/checkbox 12.6.10 → 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,76 +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
+
9
+ ## 12.6.11
10
+
11
+ ### Patch Changes
12
+
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
14
+
3
15
  ## 12.6.10
4
16
 
5
17
  ### Patch Changes
6
18
 
7
- - [`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
8
20
 
9
21
  ## 12.6.9
10
22
 
11
23
  ### Patch Changes
12
24
 
13
- - [`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.
14
26
 
15
27
  ## 12.6.8
16
28
 
17
29
  ### Patch Changes
18
30
 
19
- - [`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
20
32
 
21
33
  ## 12.6.7
22
34
 
23
35
  ### Patch Changes
24
36
 
25
- - [`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
26
38
 
27
39
  ## 12.6.6
28
40
 
29
41
  ### Patch Changes
30
42
 
31
- - [`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.
32
44
 
33
45
  ## 12.6.5
34
46
 
35
47
  ### Patch Changes
36
48
 
37
- - [`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
38
50
 
39
51
  ## 12.6.4
40
52
 
41
53
  ### Patch Changes
42
54
 
43
- - [`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
44
56
 
45
57
  ## 12.6.3
46
58
 
47
59
  ### Patch Changes
48
60
 
49
- - [`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.
50
62
 
51
63
  ## 12.6.2
52
64
 
53
65
  ### Patch Changes
54
66
 
55
- - [`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
56
68
 
57
69
  ## 12.6.1
58
70
 
59
71
  ### Patch Changes
60
72
 
61
- - [`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`
62
74
 
63
75
  ## 12.6.0
64
76
 
65
77
  ### Minor Changes
66
78
 
67
- - [`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
68
80
 
69
81
  ## 12.5.0
70
82
 
71
83
  ### Minor Changes
72
84
 
73
- - [`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
74
86
 
75
87
  ### Patch Changes
76
88
 
@@ -104,7 +116,7 @@
104
116
 
105
117
  ### Patch Changes
106
118
 
107
- - [`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.
108
120
 
109
121
  ## 12.4.1
110
122
 
@@ -116,7 +128,7 @@
116
128
 
117
129
  ### Minor Changes
118
130
 
119
- - [`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.
120
132
 
121
133
  ### Patch Changes
122
134
 
@@ -126,32 +138,32 @@
126
138
 
127
139
  ### Patch Changes
128
140
 
129
- - [`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`
130
142
 
131
143
  ## 12.3.19
132
144
 
133
145
  ### Patch Changes
134
146
 
135
- - [`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`.
136
148
 
137
149
  ## 12.3.18
138
150
 
139
151
  ### Patch Changes
140
152
 
141
- - [`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
142
154
  - Updated dependencies
143
155
 
144
156
  ## 12.3.17
145
157
 
146
158
  ### Patch Changes
147
159
 
148
- - [`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
149
161
 
150
162
  ## 12.3.16
151
163
 
152
164
  ### Patch Changes
153
165
 
154
- - [`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
155
167
 
156
168
  ## 12.3.15
157
169
 
@@ -163,7 +175,7 @@
163
175
 
164
176
  ### Patch Changes
165
177
 
166
- - [`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."
167
179
 
168
180
  ## 12.3.13
169
181
 
@@ -175,7 +187,7 @@
175
187
 
176
188
  ### Patch Changes
177
189
 
178
- - [`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
179
191
 
180
192
  ## 12.3.11
181
193
 
@@ -199,14 +211,14 @@
199
211
 
200
212
  ### Patch Changes
201
213
 
202
- - [`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.
203
215
  - Updated dependencies
204
216
 
205
217
  ## 12.3.7
206
218
 
207
219
  ### Patch Changes
208
220
 
209
- - [`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
210
222
  - Updated dependencies
211
223
 
212
224
  ## 12.3.6
@@ -219,7 +231,7 @@
219
231
 
220
232
  ### Patch Changes
221
233
 
222
- - [`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.
223
235
  - Updated dependencies
224
236
 
225
237
  ## 12.3.4
@@ -244,14 +256,14 @@
244
256
 
245
257
  ### Patch Changes
246
258
 
247
- - [`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.
248
260
  - Updated dependencies
249
261
 
250
262
  ## 12.3.0
251
263
 
252
264
  ### Minor Changes
253
265
 
254
- - [`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
255
267
 
256
268
  ### Patch Changes
257
269
 
@@ -263,20 +275,20 @@
263
275
 
264
276
  ### Patch Changes
265
277
 
266
- - [`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.
267
279
  - Updated dependencies
268
280
 
269
281
  ## 12.2.1
270
282
 
271
283
  ### Patch Changes
272
284
 
273
- - [`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`.
274
286
 
275
287
  ## 12.2.0
276
288
 
277
289
  ### Minor Changes
278
290
 
279
- - [`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
280
292
 
281
293
  ### Patch Changes
282
294
 
@@ -287,46 +299,47 @@
287
299
 
288
300
  ### Patch Changes
289
301
 
290
- - [`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`
291
303
 
292
304
  ## 12.1.2
293
305
 
294
306
  ### Patch Changes
295
307
 
296
- - [`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
297
309
 
298
310
  ## 12.1.1
299
311
 
300
312
  ### Patch Changes
301
313
 
302
- - [`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)
303
315
  - Updated dependencies
304
316
 
305
317
  ## 12.1.0
306
318
 
307
319
  ### Minor Changes
308
320
 
309
- - [`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
310
322
 
311
323
  ## 12.0.2
312
324
 
313
325
  ### Patch Changes
314
326
 
315
- - [`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.
316
328
  - Updated dependencies
317
329
 
318
330
  ## 12.0.1
319
331
 
320
332
  ### Patch Changes
321
333
 
322
- - [`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.
323
335
  - [`08c1f789a45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/08c1f789a45) - [ux] Fixes flickering when transitioning to and from indeterminate states
324
336
 
325
337
  ## 12.0.0
326
338
 
327
339
  ### Major Changes
328
340
 
329
- 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 😍
330
343
 
331
344
  ### Changes
332
345
 
@@ -441,13 +454,13 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
441
454
 
442
455
  ### Patch Changes
443
456
 
444
- - [`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
445
458
 
446
459
  ## 11.0.7
447
460
 
448
461
  ### Patch Changes
449
462
 
450
- - [`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.
451
464
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
452
465
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
453
466
 
@@ -461,13 +474,13 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
461
474
 
462
475
  ### Patch Changes
463
476
 
464
- - [`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
465
478
 
466
479
  ## 11.0.4
467
480
 
468
481
  ### Patch Changes
469
482
 
470
- - [`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
471
484
 
472
485
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
473
486
  to prevent duplicates of tslib being bundled.
@@ -476,26 +489,26 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
476
489
 
477
490
  ### Patch Changes
478
491
 
479
- - [`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
480
493
  - [`e99262c6f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e99262c6f0) - All form elements now have a default font explicitly set
481
494
 
482
495
  ## 11.0.2
483
496
 
484
497
  ### Patch Changes
485
498
 
486
- - [`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.
487
500
 
488
501
  ## 11.0.1
489
502
 
490
503
  ### Patch Changes
491
504
 
492
- - [`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
493
506
 
494
507
  ## 11.0.0
495
508
 
496
509
  ### Major Changes
497
510
 
498
- - [`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.
499
512
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
500
513
 
501
514
  ### Patch Changes
@@ -506,13 +519,13 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
506
519
 
507
520
  ### Patch Changes
508
521
 
509
- - [`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
510
523
 
511
524
  ## 10.1.13
512
525
 
513
526
  ### Patch Changes
514
527
 
515
- - [`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
516
529
 
517
530
  ## 10.1.12
518
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.10"
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,86 +26,46 @@ 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
- onClick = _ref.onClick,
98
63
  label = _ref.label,
99
64
  id = _ref.id;
100
- var _useGlobalTheme = (0, _components.useGlobalTheme)(),
101
- mode = _useGlobalTheme.mode;
102
- return (
103
- // TODO: Labels should not have click handlers (DSP-11750)
104
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
105
- (0, _react.jsx)("label", {
106
- css: [labelStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, mode === 'light' && themeStyles.light, mode === 'dark' && themeStyles.dark],
107
- "data-testid": testId,
108
- "data-disabled": isDisabled || undefined,
109
- onClick: onClick,
110
- id: id
111
- }, children)
112
- );
65
+ return (0, _react.jsx)("label", {
66
+ css: [baseStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, labelStyles],
67
+ "data-testid": testId,
68
+ "data-disabled": isDisabled || undefined,
69
+ id: id
70
+ }, children);
113
71
  }
@@ -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.10"
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,88 +19,47 @@ 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,
88
55
  testId,
89
- onClick,
90
56
  label,
91
57
  id
92
58
  }) {
93
- const {
94
- mode
95
- } = useGlobalTheme();
96
- return (
97
- // TODO: Labels should not have click handlers (DSP-11750)
98
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
99
- jsx("label", {
100
- css: [labelStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, mode === 'light' && themeStyles.light, mode === 'dark' && themeStyles.dark],
101
- "data-testid": testId,
102
- "data-disabled": isDisabled || undefined,
103
- onClick: onClick,
104
- id: id
105
- }, children)
106
- );
59
+ return jsx("label", {
60
+ css: [baseStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, labelStyles],
61
+ "data-testid": testId,
62
+ "data-disabled": isDisabled || undefined,
63
+ id: id
64
+ }, children);
107
65
  }
@@ -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.10"
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,86 +19,46 @@ 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
- onClick = _ref.onClick,
90
56
  label = _ref.label,
91
57
  id = _ref.id;
92
- var _useGlobalTheme = useGlobalTheme(),
93
- mode = _useGlobalTheme.mode;
94
- return (
95
- // TODO: Labels should not have click handlers (DSP-11750)
96
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
97
- jsx("label", {
98
- css: [labelStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, mode === 'light' && themeStyles.light, mode === 'dark' && themeStyles.dark],
99
- "data-testid": testId,
100
- "data-disabled": isDisabled || undefined,
101
- onClick: onClick,
102
- id: id
103
- }, children)
104
- );
58
+ return jsx("label", {
59
+ css: [baseStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, labelStyles],
60
+ "data-testid": testId,
61
+ "data-disabled": isDisabled || undefined,
62
+ id: id
63
+ }, children);
105
64
  }
@@ -1,4 +1,4 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
3
  import { LabelProps } from '../types';
4
- export default function Label({ children, isDisabled, testId, onClick, label, id, }: LabelProps): jsx.JSX.Element;
4
+ export default function Label({ children, isDisabled, testId, label, id, }: LabelProps): jsx.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
3
  import { LabelProps } from '../types';
4
- export default function Label({ children, isDisabled, testId, onClick, label, id, }: LabelProps): jsx.JSX.Element;
4
+ export default function Label({ children, isDisabled, testId, label, id, }: LabelProps): jsx.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.6.10",
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.14.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;