@atlaskit/checkbox 12.6.11 → 13.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -47
- package/codemods/utils.tsx +20 -16
- package/dist/cjs/checkbox.js +2 -3
- package/dist/cjs/internal/checkbox-icon.js +1 -2
- package/dist/cjs/internal/constants.js +1 -2
- package/dist/cjs/internal/label.js +33 -69
- package/dist/es2019/checkbox.js +1 -1
- package/dist/es2019/internal/label.js +34 -70
- package/dist/esm/checkbox.js +1 -1
- package/dist/esm/internal/label.js +34 -69
- package/dist/types/types.d.ts +8 -8
- package/dist/types-ts4.5/types.d.ts +8 -8
- package/package.json +5 -4
- package/dist/cjs/internal/theme.js +0 -64
- package/dist/es2019/internal/theme.js +0 -57
- package/dist/esm/internal/theme.js +0 -57
- package/dist/types/internal/theme.d.ts +0 -55
- package/dist/types-ts4.5/internal/theme.d.ts +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -1,82 +1,94 @@
|
|
|
1
1
|
# @atlaskit/checkbox
|
|
2
2
|
|
|
3
|
+
## 13.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [#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.
|
|
14
|
+
|
|
3
15
|
## 12.6.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`b580abfbc29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b580abfbc29) - Remove onClick from checkbox label
|
|
19
|
+
- [#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
20
|
|
|
9
21
|
## 12.6.10
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
|
|
25
|
+
- [#38731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38731) [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
|
|
14
26
|
|
|
15
27
|
## 12.6.9
|
|
16
28
|
|
|
17
29
|
### Patch Changes
|
|
18
30
|
|
|
19
|
-
- [`356d6ebed05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/356d6ebed05) - This package is now onboarded onto the product push model.
|
|
31
|
+
- [#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
32
|
|
|
21
33
|
## 12.6.8
|
|
22
34
|
|
|
23
35
|
### Patch Changes
|
|
24
36
|
|
|
25
|
-
- [`ba0a43d8ccc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ba0a43d8ccc) - [ux] update focused color fallback to meet contrast requirement
|
|
37
|
+
- [#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
38
|
|
|
27
39
|
## 12.6.7
|
|
28
40
|
|
|
29
41
|
### Patch Changes
|
|
30
42
|
|
|
31
|
-
- [`9cc3b8d1902`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9cc3b8d1902) - chore(checkbox): use new feature flag for border contrast
|
|
43
|
+
- [#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
44
|
|
|
33
45
|
## 12.6.6
|
|
34
46
|
|
|
35
47
|
### Patch Changes
|
|
36
48
|
|
|
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.
|
|
49
|
+
- [#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
50
|
|
|
39
51
|
## 12.6.5
|
|
40
52
|
|
|
41
53
|
### Patch Changes
|
|
42
54
|
|
|
43
|
-
- [`3958636a718`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3958636a718) - update border width with border spacing token
|
|
55
|
+
- [#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
56
|
|
|
45
57
|
## 12.6.4
|
|
46
58
|
|
|
47
59
|
### Patch Changes
|
|
48
60
|
|
|
49
|
-
- [`8f436f0c301`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f436f0c301) - extend border contrast feature flag to support confluence
|
|
61
|
+
- [#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
62
|
|
|
51
63
|
## 12.6.3
|
|
52
64
|
|
|
53
65
|
### Patch Changes
|
|
54
66
|
|
|
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.
|
|
67
|
+
- [#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
68
|
|
|
57
69
|
## 12.6.2
|
|
58
70
|
|
|
59
71
|
### Patch Changes
|
|
60
72
|
|
|
61
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
73
|
+
- [#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
74
|
|
|
63
75
|
## 12.6.1
|
|
64
76
|
|
|
65
77
|
### Patch Changes
|
|
66
78
|
|
|
67
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
79
|
+
- [#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
80
|
|
|
69
81
|
## 12.6.0
|
|
70
82
|
|
|
71
83
|
### Minor Changes
|
|
72
84
|
|
|
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
|
|
85
|
+
- [#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
86
|
|
|
75
87
|
## 12.5.0
|
|
76
88
|
|
|
77
89
|
### Minor Changes
|
|
78
90
|
|
|
79
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
91
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
80
92
|
|
|
81
93
|
### Patch Changes
|
|
82
94
|
|
|
@@ -110,7 +122,7 @@
|
|
|
110
122
|
|
|
111
123
|
### Patch Changes
|
|
112
124
|
|
|
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.
|
|
125
|
+
- [#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
126
|
|
|
115
127
|
## 12.4.1
|
|
116
128
|
|
|
@@ -122,7 +134,7 @@
|
|
|
122
134
|
|
|
123
135
|
### Minor Changes
|
|
124
136
|
|
|
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.
|
|
137
|
+
- [#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
138
|
|
|
127
139
|
### Patch Changes
|
|
128
140
|
|
|
@@ -132,32 +144,32 @@
|
|
|
132
144
|
|
|
133
145
|
### Patch Changes
|
|
134
146
|
|
|
135
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
147
|
+
- [#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
148
|
|
|
137
149
|
## 12.3.19
|
|
138
150
|
|
|
139
151
|
### Patch Changes
|
|
140
152
|
|
|
141
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
153
|
+
- [#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
154
|
|
|
143
155
|
## 12.3.18
|
|
144
156
|
|
|
145
157
|
### Patch Changes
|
|
146
158
|
|
|
147
|
-
- [`fe575d49d66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe575d49d66) - Updated styles to use new input design tokens
|
|
159
|
+
- [#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
160
|
- Updated dependencies
|
|
149
161
|
|
|
150
162
|
## 12.3.17
|
|
151
163
|
|
|
152
164
|
### Patch Changes
|
|
153
165
|
|
|
154
|
-
- [`90e89e12034`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90e89e12034) - [ux] Updated colors to use appropriate tokens
|
|
166
|
+
- [#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
167
|
|
|
156
168
|
## 12.3.16
|
|
157
169
|
|
|
158
170
|
### Patch Changes
|
|
159
171
|
|
|
160
|
-
- [`f55cf469372`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f55cf469372) - Added id property to the checkbox label for compatibility with aria-labelledby
|
|
172
|
+
- [#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
173
|
|
|
162
174
|
## 12.3.15
|
|
163
175
|
|
|
@@ -169,7 +181,7 @@
|
|
|
169
181
|
|
|
170
182
|
### Patch Changes
|
|
171
183
|
|
|
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."
|
|
184
|
+
- [#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
185
|
|
|
174
186
|
## 12.3.13
|
|
175
187
|
|
|
@@ -181,7 +193,7 @@
|
|
|
181
193
|
|
|
182
194
|
### Patch Changes
|
|
183
195
|
|
|
184
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
196
|
+
- [#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
197
|
|
|
186
198
|
## 12.3.11
|
|
187
199
|
|
|
@@ -205,14 +217,14 @@
|
|
|
205
217
|
|
|
206
218
|
### Patch Changes
|
|
207
219
|
|
|
208
|
-
- [`5d27b03c5cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d27b03c5cf) - Styles have been rewritten in preparation for migration to compiled.
|
|
220
|
+
- [#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
221
|
- Updated dependencies
|
|
210
222
|
|
|
211
223
|
## 12.3.7
|
|
212
224
|
|
|
213
225
|
### Patch Changes
|
|
214
226
|
|
|
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
|
|
227
|
+
- [#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
228
|
- Updated dependencies
|
|
217
229
|
|
|
218
230
|
## 12.3.6
|
|
@@ -225,7 +237,7 @@
|
|
|
225
237
|
|
|
226
238
|
### Patch Changes
|
|
227
239
|
|
|
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.
|
|
240
|
+
- [#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
241
|
- Updated dependencies
|
|
230
242
|
|
|
231
243
|
## 12.3.4
|
|
@@ -250,14 +262,14 @@
|
|
|
250
262
|
|
|
251
263
|
### Patch Changes
|
|
252
264
|
|
|
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.
|
|
265
|
+
- [#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
266
|
- Updated dependencies
|
|
255
267
|
|
|
256
268
|
## 12.3.0
|
|
257
269
|
|
|
258
270
|
### Minor Changes
|
|
259
271
|
|
|
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
|
|
272
|
+
- [#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
273
|
|
|
262
274
|
### Patch Changes
|
|
263
275
|
|
|
@@ -269,20 +281,20 @@
|
|
|
269
281
|
|
|
270
282
|
### Patch Changes
|
|
271
283
|
|
|
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.
|
|
284
|
+
- [#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
285
|
- Updated dependencies
|
|
274
286
|
|
|
275
287
|
## 12.2.1
|
|
276
288
|
|
|
277
289
|
### Patch Changes
|
|
278
290
|
|
|
279
|
-
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
291
|
+
- [#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
292
|
|
|
281
293
|
## 12.2.0
|
|
282
294
|
|
|
283
295
|
### Minor Changes
|
|
284
296
|
|
|
285
|
-
- [`987e2fc4ddd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/987e2fc4ddd) - Add configuration to eslint rule label-has-associated-control
|
|
297
|
+
- [#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
298
|
|
|
287
299
|
### Patch Changes
|
|
288
300
|
|
|
@@ -293,46 +305,47 @@
|
|
|
293
305
|
|
|
294
306
|
### Patch Changes
|
|
295
307
|
|
|
296
|
-
- [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
308
|
+
- [#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
309
|
|
|
298
310
|
## 12.1.2
|
|
299
311
|
|
|
300
312
|
### Patch Changes
|
|
301
313
|
|
|
302
|
-
- [`37324ccc750`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37324ccc750) - Fix styling error causing rendering errors in iOS Safari, and focus rings in Firefox
|
|
314
|
+
- [#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
315
|
|
|
304
316
|
## 12.1.1
|
|
305
317
|
|
|
306
318
|
### Patch Changes
|
|
307
319
|
|
|
308
|
-
- [`a99925b1634`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a99925b1634) - Added styles for edge high contrast modes (black on white and white on black)
|
|
320
|
+
- [#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
321
|
- Updated dependencies
|
|
310
322
|
|
|
311
323
|
## 12.1.0
|
|
312
324
|
|
|
313
325
|
### Minor Changes
|
|
314
326
|
|
|
315
|
-
- [`02a0cdbd98b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02a0cdbd98b) - Added aria-invalid to checkbox input which corresponds the isInvalid prop
|
|
327
|
+
- [#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
328
|
|
|
317
329
|
## 12.0.2
|
|
318
330
|
|
|
319
331
|
### Patch Changes
|
|
320
332
|
|
|
321
|
-
- [`e0278312c57`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0278312c57) - Checkbox now uses the new `SVG` component from @atlaskit/icon.
|
|
333
|
+
- [#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
334
|
- Updated dependencies
|
|
323
335
|
|
|
324
336
|
## 12.0.1
|
|
325
337
|
|
|
326
338
|
### Patch Changes
|
|
327
339
|
|
|
328
|
-
- [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
340
|
+
- [#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
341
|
- [`08c1f789a45`](https://bitbucket.org/atlassian/atlassian-frontend/commits/08c1f789a45) - [ux] Fixes flickering when transitioning to and from indeterminate states
|
|
330
342
|
|
|
331
343
|
## 12.0.0
|
|
332
344
|
|
|
333
345
|
### Major Changes
|
|
334
346
|
|
|
335
|
-
|
|
347
|
+
- [#6571](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6571) [`ee02ee0aaa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee02ee0aaa)
|
|
348
|
+
In this version, we made `Checkbox` dramatically faster and more lightweight 😍
|
|
336
349
|
|
|
337
350
|
### Changes
|
|
338
351
|
|
|
@@ -447,13 +460,13 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
|
|
|
447
460
|
|
|
448
461
|
### Patch Changes
|
|
449
462
|
|
|
450
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
463
|
+
- [#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
464
|
|
|
452
465
|
## 11.0.7
|
|
453
466
|
|
|
454
467
|
### Patch Changes
|
|
455
468
|
|
|
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.
|
|
469
|
+
- [#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
470
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
458
471
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
459
472
|
|
|
@@ -467,13 +480,13 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
|
|
|
467
480
|
|
|
468
481
|
### Patch Changes
|
|
469
482
|
|
|
470
|
-
- [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
483
|
+
- [#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
484
|
|
|
472
485
|
## 11.0.4
|
|
473
486
|
|
|
474
487
|
### Patch Changes
|
|
475
488
|
|
|
476
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
489
|
+
- [#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
490
|
|
|
478
491
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
479
492
|
to prevent duplicates of tslib being bundled.
|
|
@@ -482,26 +495,26 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
|
|
|
482
495
|
|
|
483
496
|
### Patch Changes
|
|
484
497
|
|
|
485
|
-
- [`6262f382de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6262f382de) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
|
|
498
|
+
- [#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
499
|
- [`e99262c6f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e99262c6f0) - All form elements now have a default font explicitly set
|
|
487
500
|
|
|
488
501
|
## 11.0.2
|
|
489
502
|
|
|
490
503
|
### Patch Changes
|
|
491
504
|
|
|
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.
|
|
505
|
+
- [#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
506
|
|
|
494
507
|
## 11.0.1
|
|
495
508
|
|
|
496
509
|
### Patch Changes
|
|
497
510
|
|
|
498
|
-
- [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
|
|
511
|
+
- [#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
512
|
|
|
500
513
|
## 11.0.0
|
|
501
514
|
|
|
502
515
|
### Major Changes
|
|
503
516
|
|
|
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.
|
|
517
|
+
- [#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
518
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
506
519
|
|
|
507
520
|
### Patch Changes
|
|
@@ -512,13 +525,13 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
|
|
|
512
525
|
|
|
513
526
|
### Patch Changes
|
|
514
527
|
|
|
515
|
-
- [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
528
|
+
- [#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
529
|
|
|
517
530
|
## 10.1.13
|
|
518
531
|
|
|
519
532
|
### Patch Changes
|
|
520
533
|
|
|
521
|
-
- [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
534
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
522
535
|
|
|
523
536
|
## 10.1.12
|
|
524
537
|
|
package/codemods/utils.tsx
CHANGED
|
@@ -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
|
|
245
|
-
j
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
|
package/dist/cjs/checkbox.js
CHANGED
|
@@ -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: "
|
|
164
|
+
packageVersion: "13.0.1"
|
|
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;
|
|
@@ -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
|
|
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
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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: [
|
|
66
|
+
css: [baseStyles, label && textLabelLayoutStyles, isDisabled && disabledStyles, labelStyles],
|
|
103
67
|
"data-testid": testId,
|
|
104
68
|
"data-disabled": isDisabled || undefined,
|
|
105
69
|
id: id
|
package/dist/es2019/checkbox.js
CHANGED
|
@@ -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: "
|
|
148
|
+
packageVersion: "13.0.1"
|
|
149
149
|
});
|
|
150
150
|
const internalRef = useRef(null);
|
|
151
151
|
const mergedRefs = mergeRefs([internalRef, ref]);
|