@khanacademy/wonder-blocks-switch 3.0.6 → 3.1.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.
Files changed (4) hide show
  1. package/CHANGELOG.md +171 -143
  2. package/LICENSE +21 -0
  3. package/dist/index.js +7 -11
  4. package/package.json +10 -11
package/CHANGELOG.md CHANGED
@@ -1,369 +1,397 @@
1
1
  # @khanacademy/wonder-blocks-switch
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f03298f: Tooling:
8
+
9
+ - Switching to `pnpm`.
10
+ - Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
11
+
12
+ ### Patch Changes
13
+
14
+ - bb2a026: pnpm: Switch to workspace protocol to handle dependency versions with changesets on monorepo setup"
15
+ - Updated dependencies [969864b]
16
+ - Updated dependencies [bb2a026]
17
+ - Updated dependencies [f03298f]
18
+ - @khanacademy/wonder-blocks-core@12.1.0
19
+ - @khanacademy/wonder-blocks-icon@5.1.0
20
+ - @khanacademy/wonder-blocks-theming@3.1.0
21
+ - @khanacademy/wonder-blocks-tokens@4.2.0
22
+
23
+ ## 3.0.7
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [0199324d]
28
+ - @khanacademy/wonder-blocks-core@12.0.0
29
+ - @khanacademy/wonder-blocks-icon@5.0.6
30
+
3
31
  ## 3.0.6
4
32
 
5
33
  ### Patch Changes
6
34
 
7
- - 645fc67b: Migrate the Switch component to use `semanticColor` tokens instead of `color`. This will prepare the component for supporting a more global theming approach in the future.
35
+ - 645fc67b: Migrate the Switch component to use `semanticColor` tokens instead of `color`. This will prepare the component for supporting a more global theming approach in the future.
8
36
 
9
37
  ## 3.0.5
10
38
 
11
39
  ### Patch Changes
12
40
 
13
- - Updated dependencies [8cfaeab0]
14
- - Updated dependencies [c162abb4]
15
- - @khanacademy/wonder-blocks-tokens@4.1.0
41
+ - Updated dependencies [8cfaeab0]
42
+ - Updated dependencies [c162abb4]
43
+ - @khanacademy/wonder-blocks-tokens@4.1.0
16
44
 
17
45
  ## 3.0.4
18
46
 
19
47
  ### Patch Changes
20
48
 
21
- - Updated dependencies [0de25cd8]
22
- - @khanacademy/wonder-blocks-tokens@4.0.0
49
+ - Updated dependencies [0de25cd8]
50
+ - @khanacademy/wonder-blocks-tokens@4.0.0
23
51
 
24
52
  ## 3.0.3
25
53
 
26
54
  ### Patch Changes
27
55
 
28
- - Updated dependencies [7516b239]
29
- - @khanacademy/wonder-blocks-core@11.1.0
30
- - @khanacademy/wonder-blocks-icon@5.0.5
56
+ - Updated dependencies [7516b239]
57
+ - @khanacademy/wonder-blocks-core@11.1.0
58
+ - @khanacademy/wonder-blocks-icon@5.0.5
31
59
 
32
60
  ## 3.0.2
33
61
 
34
62
  ### Patch Changes
35
63
 
36
- - 11a0f5c6: No functional changes. Adding prepublishOnly script.
37
- - Updated dependencies [11a0f5c6]
38
- - @khanacademy/wonder-blocks-theming@3.0.1
39
- - @khanacademy/wonder-blocks-tokens@3.0.1
40
- - @khanacademy/wonder-blocks-core@11.0.1
41
- - @khanacademy/wonder-blocks-icon@5.0.4
64
+ - 11a0f5c6: No functional changes. Adding prepublishOnly script.
65
+ - Updated dependencies [11a0f5c6]
66
+ - @khanacademy/wonder-blocks-theming@3.0.1
67
+ - @khanacademy/wonder-blocks-tokens@3.0.1
68
+ - @khanacademy/wonder-blocks-core@11.0.1
69
+ - @khanacademy/wonder-blocks-icon@5.0.4
42
70
 
43
71
  ## 3.0.1
44
72
 
45
73
  ### Patch Changes
46
74
 
47
- - Updated dependencies [d23c9c5f]
48
- - @khanacademy/wonder-blocks-core@11.0.0
49
- - @khanacademy/wonder-blocks-icon@5.0.3
75
+ - Updated dependencies [d23c9c5f]
76
+ - @khanacademy/wonder-blocks-core@11.0.0
77
+ - @khanacademy/wonder-blocks-icon@5.0.3
50
78
 
51
79
  ## 3.0.0
52
80
 
53
81
  ### Major Changes
54
82
 
55
- - 56d961f1: - Migrate Wonder Blocks components off old id providers and onto new `Id` component
83
+ - 56d961f1: - Migrate Wonder Blocks components off old id providers and onto new `Id` component
56
84
 
57
85
  ### Patch Changes
58
86
 
59
- - b6009b77: Deprecate the ID provider and unique ID utilities
60
- - Updated dependencies [b6009b77]
61
- - Updated dependencies [897686bc]
62
- - Updated dependencies [56d961f1]
63
- - @khanacademy/wonder-blocks-core@10.0.0
64
- - @khanacademy/wonder-blocks-icon@5.0.2
87
+ - b6009b77: Deprecate the ID provider and unique ID utilities
88
+ - Updated dependencies [b6009b77]
89
+ - Updated dependencies [897686bc]
90
+ - Updated dependencies [56d961f1]
91
+ - @khanacademy/wonder-blocks-core@10.0.0
92
+ - @khanacademy/wonder-blocks-icon@5.0.2
65
93
 
66
94
  ## 2.0.1
67
95
 
68
96
  ### Patch Changes
69
97
 
70
- - Updated dependencies [f4abd572]
71
- - @khanacademy/wonder-blocks-core@9.0.0
72
- - @khanacademy/wonder-blocks-icon@5.0.1
98
+ - Updated dependencies [f4abd572]
99
+ - @khanacademy/wonder-blocks-core@9.0.0
100
+ - @khanacademy/wonder-blocks-icon@5.0.1
73
101
 
74
102
  ## 2.0.0
75
103
 
76
104
  ### Major Changes
77
105
 
78
- - e6abdd17: Upgrade to React 18
106
+ - e6abdd17: Upgrade to React 18
79
107
 
80
108
  ### Patch Changes
81
109
 
82
- - Updated dependencies [e6abdd17]
83
- - @khanacademy/wonder-blocks-theming@3.0.0
84
- - @khanacademy/wonder-blocks-core@8.0.0
85
- - @khanacademy/wonder-blocks-icon@5.0.0
86
- - @khanacademy/wonder-blocks-tokens@3.0.0
110
+ - Updated dependencies [e6abdd17]
111
+ - @khanacademy/wonder-blocks-theming@3.0.0
112
+ - @khanacademy/wonder-blocks-core@8.0.0
113
+ - @khanacademy/wonder-blocks-icon@5.0.0
114
+ - @khanacademy/wonder-blocks-tokens@3.0.0
87
115
 
88
116
  ## 1.1.24
89
117
 
90
118
  ### Patch Changes
91
119
 
92
- - Updated dependencies [c1110599]
93
- - @khanacademy/wonder-blocks-icon@4.2.0
120
+ - Updated dependencies [c1110599]
121
+ - @khanacademy/wonder-blocks-icon@4.2.0
94
122
 
95
123
  ## 1.1.23
96
124
 
97
125
  ### Patch Changes
98
126
 
99
- - Updated dependencies [6999fd39]
100
- - @khanacademy/wonder-blocks-tokens@2.1.0
127
+ - Updated dependencies [6999fd39]
128
+ - @khanacademy/wonder-blocks-tokens@2.1.0
101
129
 
102
130
  ## 1.1.22
103
131
 
104
132
  ### Patch Changes
105
133
 
106
- - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
107
- - Updated dependencies [02a1b298]
108
- - @khanacademy/wonder-blocks-core@7.0.1
109
- - @khanacademy/wonder-blocks-icon@4.1.5
110
- - @khanacademy/wonder-blocks-theming@2.0.4
111
- - @khanacademy/wonder-blocks-tokens@2.0.1
134
+ - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
135
+ - Updated dependencies [02a1b298]
136
+ - @khanacademy/wonder-blocks-core@7.0.1
137
+ - @khanacademy/wonder-blocks-icon@4.1.5
138
+ - @khanacademy/wonder-blocks-theming@2.0.4
139
+ - @khanacademy/wonder-blocks-tokens@2.0.1
112
140
 
113
141
  ## 1.1.21
114
142
 
115
143
  ### Patch Changes
116
144
 
117
- - Updated dependencies [07f7f407]
118
- - @khanacademy/wonder-blocks-core@7.0.0
119
- - @khanacademy/wonder-blocks-icon@4.1.4
145
+ - Updated dependencies [07f7f407]
146
+ - @khanacademy/wonder-blocks-core@7.0.0
147
+ - @khanacademy/wonder-blocks-icon@4.1.4
120
148
 
121
149
  ## 1.1.20
122
150
 
123
151
  ### Patch Changes
124
152
 
125
- - Updated dependencies [f17dc1ee]
126
- - Updated dependencies [991eb43f]
127
- - @khanacademy/wonder-blocks-tokens@2.0.0
153
+ - Updated dependencies [f17dc1ee]
154
+ - Updated dependencies [991eb43f]
155
+ - @khanacademy/wonder-blocks-tokens@2.0.0
128
156
 
129
157
  ## 1.1.19
130
158
 
131
159
  ### Patch Changes
132
160
 
133
- - 559e82d5: Update to build tooling, generating smaller output
134
- - Updated dependencies [559e82d5]
135
- - @khanacademy/wonder-blocks-core@6.4.3
136
- - @khanacademy/wonder-blocks-icon@4.1.3
137
- - @khanacademy/wonder-blocks-theming@2.0.3
138
- - @khanacademy/wonder-blocks-tokens@1.3.1
161
+ - 559e82d5: Update to build tooling, generating smaller output
162
+ - Updated dependencies [559e82d5]
163
+ - @khanacademy/wonder-blocks-core@6.4.3
164
+ - @khanacademy/wonder-blocks-icon@4.1.3
165
+ - @khanacademy/wonder-blocks-theming@2.0.3
166
+ - @khanacademy/wonder-blocks-tokens@1.3.1
139
167
 
140
168
  ## 1.1.18
141
169
 
142
170
  ### Patch Changes
143
171
 
144
- - Updated dependencies [eab37b8b]
145
- - @khanacademy/wonder-blocks-core@6.4.2
146
- - @khanacademy/wonder-blocks-icon@4.1.2
172
+ - Updated dependencies [eab37b8b]
173
+ - @khanacademy/wonder-blocks-core@6.4.2
174
+ - @khanacademy/wonder-blocks-icon@4.1.2
147
175
 
148
176
  ## 1.1.17
149
177
 
150
178
  ### Patch Changes
151
179
 
152
- - Updated dependencies [5dfac06e]
153
- - @khanacademy/wonder-blocks-core@6.4.1
154
- - @khanacademy/wonder-blocks-icon@4.1.1
180
+ - Updated dependencies [5dfac06e]
181
+ - @khanacademy/wonder-blocks-core@6.4.1
182
+ - @khanacademy/wonder-blocks-icon@4.1.1
155
183
 
156
184
  ## 1.1.16
157
185
 
158
186
  ### Patch Changes
159
187
 
160
- - Updated dependencies [9bfeead9]
161
- - @khanacademy/wonder-blocks-tokens@1.3.0
188
+ - Updated dependencies [9bfeead9]
189
+ - @khanacademy/wonder-blocks-tokens@1.3.0
162
190
 
163
191
  ## 1.1.15
164
192
 
165
193
  ### Patch Changes
166
194
 
167
- - Updated dependencies [58075352]
168
- - @khanacademy/wonder-blocks-core@6.4.0
169
- - @khanacademy/wonder-blocks-icon@4.1.0
195
+ - Updated dependencies [58075352]
196
+ - @khanacademy/wonder-blocks-core@6.4.0
197
+ - @khanacademy/wonder-blocks-icon@4.1.0
170
198
 
171
199
  ## 1.1.14
172
200
 
173
201
  ### Patch Changes
174
202
 
175
- - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
176
- - Updated dependencies [874081aa]
177
- - Updated dependencies [874081aa]
178
- - Updated dependencies [a9bf603a]
179
- - @khanacademy/wonder-blocks-theming@2.0.2
180
- - @khanacademy/wonder-blocks-tokens@1.2.0
203
+ - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
204
+ - Updated dependencies [874081aa]
205
+ - Updated dependencies [874081aa]
206
+ - Updated dependencies [a9bf603a]
207
+ - @khanacademy/wonder-blocks-theming@2.0.2
208
+ - @khanacademy/wonder-blocks-tokens@1.2.0
181
209
 
182
210
  ## 1.1.13
183
211
 
184
212
  ### Patch Changes
185
213
 
186
- - 7ed54137: Update khanmigo theme to match design specs
187
- - Updated dependencies [4cfb4977]
188
- - @khanacademy/wonder-blocks-tokens@1.1.0
214
+ - 7ed54137: Update khanmigo theme to match design specs
215
+ - Updated dependencies [4cfb4977]
216
+ - @khanacademy/wonder-blocks-tokens@1.1.0
189
217
 
190
218
  ## 1.1.12
191
219
 
192
220
  ### Patch Changes
193
221
 
194
- - Updated dependencies [e83f8991]
195
- - Updated dependencies [e83f8991]
196
- - @khanacademy/wonder-blocks-tokens@1.0.0
197
- - @khanacademy/wonder-blocks-theming@2.0.1
222
+ - Updated dependencies [e83f8991]
223
+ - Updated dependencies [e83f8991]
224
+ - @khanacademy/wonder-blocks-tokens@1.0.0
225
+ - @khanacademy/wonder-blocks-theming@2.0.1
198
226
 
199
227
  ## 1.1.11
200
228
 
201
229
  ### Patch Changes
202
230
 
203
- - 60aba5b8: Update internal spacing references (from wb-spacing to wb-tokens)
204
- - 7cd7f6cc: Replace theming.tokens with wb-tokens and update callsites to use the new export
205
- - Updated dependencies [7cd7f6cc]
206
- - Updated dependencies [60aba5b8]
207
- - Updated dependencies [7cd7f6cc]
208
- - Updated dependencies [7c51f377]
209
- - @khanacademy/wonder-blocks-theming@2.0.0
210
- - @khanacademy/wonder-blocks-tokens@0.2.0
231
+ - 60aba5b8: Update internal spacing references (from wb-spacing to wb-tokens)
232
+ - 7cd7f6cc: Replace theming.tokens with wb-tokens and update callsites to use the new export
233
+ - Updated dependencies [7cd7f6cc]
234
+ - Updated dependencies [60aba5b8]
235
+ - Updated dependencies [7cd7f6cc]
236
+ - Updated dependencies [7c51f377]
237
+ - @khanacademy/wonder-blocks-theming@2.0.0
238
+ - @khanacademy/wonder-blocks-tokens@0.2.0
211
239
 
212
240
  ## 1.1.10
213
241
 
214
242
  ### Patch Changes
215
243
 
216
- - Updated dependencies [80592e75]
217
- - @khanacademy/wonder-blocks-theming@1.3.0
244
+ - Updated dependencies [80592e75]
245
+ - @khanacademy/wonder-blocks-theming@1.3.0
218
246
 
219
247
  ## 1.1.9
220
248
 
221
249
  ### Patch Changes
222
250
 
223
- - Updated dependencies [23ab9f8c]
224
- - Updated dependencies [6df21f71]
225
- - @khanacademy/wonder-blocks-icon@4.0.1
226
- - @khanacademy/wonder-blocks-core@6.3.1
251
+ - Updated dependencies [23ab9f8c]
252
+ - Updated dependencies [6df21f71]
253
+ - @khanacademy/wonder-blocks-icon@4.0.1
254
+ - @khanacademy/wonder-blocks-core@6.3.1
227
255
 
228
256
  ## 1.1.8
229
257
 
230
258
  ### Patch Changes
231
259
 
232
- - Updated dependencies [171e3b01]
233
- - @khanacademy/wonder-blocks-icon@4.0.0
260
+ - Updated dependencies [171e3b01]
261
+ - @khanacademy/wonder-blocks-icon@4.0.0
234
262
 
235
263
  ## 1.1.7
236
264
 
237
265
  ### Patch Changes
238
266
 
239
- - Updated dependencies [96f675d2]
240
- - @khanacademy/wonder-blocks-icon@3.0.0
267
+ - Updated dependencies [96f675d2]
268
+ - @khanacademy/wonder-blocks-icon@3.0.0
241
269
 
242
270
  ## 1.1.6
243
271
 
244
272
  ### Patch Changes
245
273
 
246
- - Updated dependencies [edcfbe14]
247
- - @khanacademy/wonder-blocks-theming@1.2.1
274
+ - Updated dependencies [edcfbe14]
275
+ - @khanacademy/wonder-blocks-theming@1.2.1
248
276
 
249
277
  ## 1.1.5
250
278
 
251
279
  ### Patch Changes
252
280
 
253
- - 3f854fe8: Export supported themes list, change WB components to use these new exports
254
- - Updated dependencies [3f854fe8]
255
- - @khanacademy/wonder-blocks-theming@1.2.0
281
+ - 3f854fe8: Export supported themes list, change WB components to use these new exports
282
+ - Updated dependencies [3f854fe8]
283
+ - @khanacademy/wonder-blocks-theming@1.2.0
256
284
 
257
285
  ## 1.1.4
258
286
 
259
287
  ### Patch Changes
260
288
 
261
- - 45a30427: Add PhosphorIcon support to `Switch`
262
- - Updated dependencies [7055ca94]
263
- - @khanacademy/wonder-blocks-core@6.3.0
264
- - @khanacademy/wonder-blocks-icon@2.2.1
289
+ - 45a30427: Add PhosphorIcon support to `Switch`
290
+ - Updated dependencies [7055ca94]
291
+ - @khanacademy/wonder-blocks-core@6.3.0
292
+ - @khanacademy/wonder-blocks-icon@2.2.1
265
293
 
266
294
  ## 1.1.3
267
295
 
268
296
  ### Patch Changes
269
297
 
270
- - Updated dependencies [ea0e7c02]
271
- - @khanacademy/wonder-blocks-icon@2.2.0
298
+ - Updated dependencies [ea0e7c02]
299
+ - @khanacademy/wonder-blocks-icon@2.2.0
272
300
 
273
301
  ## 1.1.2
274
302
 
275
303
  ### Patch Changes
276
304
 
277
- - 65148738: Add `not-allowed` cursor to disabled+hover
278
- - @khanacademy/wonder-blocks-theming@1.1.1
305
+ - 65148738: Add `not-allowed` cursor to disabled+hover
306
+ - @khanacademy/wonder-blocks-theming@1.1.1
279
307
 
280
308
  ## 1.1.1
281
309
 
282
310
  ### Patch Changes
283
311
 
284
- - 1f263385: Use `aria-disabled` instead of `disabled` for enabling focus on Screen Readers.
312
+ - 1f263385: Use `aria-disabled` instead of `disabled` for enabling focus on Screen Readers.
285
313
 
286
314
  ## 1.1.0
287
315
 
288
316
  ### Minor Changes
289
317
 
290
- - fc6cec0b: Add theming to Switch and new color tokens for theming
318
+ - fc6cec0b: Add theming to Switch and new color tokens for theming
291
319
 
292
320
  ### Patch Changes
293
321
 
294
- - Updated dependencies [5725703a]
295
- - Updated dependencies [fc6cec0b]
296
- - @khanacademy/wonder-blocks-theming@1.1.0
322
+ - Updated dependencies [5725703a]
323
+ - Updated dependencies [fc6cec0b]
324
+ - @khanacademy/wonder-blocks-theming@1.1.0
297
325
 
298
326
  ## 1.0.6
299
327
 
300
328
  ### Patch Changes
301
329
 
302
- - Updated dependencies [4b97b9a2]
303
- - @khanacademy/wonder-blocks-core@6.2.0
304
- - @khanacademy/wonder-blocks-icon@2.1.6
330
+ - Updated dependencies [4b97b9a2]
331
+ - @khanacademy/wonder-blocks-core@6.2.0
332
+ - @khanacademy/wonder-blocks-icon@2.1.6
305
333
 
306
334
  ## 1.0.5
307
335
 
308
336
  ### Patch Changes
309
337
 
310
- - Updated dependencies [2871f0a9]
311
- - @khanacademy/wonder-blocks-core@6.1.1
312
- - @khanacademy/wonder-blocks-icon@2.1.5
338
+ - Updated dependencies [2871f0a9]
339
+ - @khanacademy/wonder-blocks-core@6.1.1
340
+ - @khanacademy/wonder-blocks-icon@2.1.5
313
341
 
314
342
  ## 1.0.4
315
343
 
316
344
  ### Patch Changes
317
345
 
318
- - Updated dependencies [efb59c29]
319
- - Updated dependencies [8bc40ed2]
320
- - @khanacademy/wonder-blocks-core@6.1.0
321
- - @khanacademy/wonder-blocks-icon@2.1.4
346
+ - Updated dependencies [efb59c29]
347
+ - Updated dependencies [8bc40ed2]
348
+ - @khanacademy/wonder-blocks-core@6.1.0
349
+ - @khanacademy/wonder-blocks-icon@2.1.4
322
350
 
323
351
  ## 1.0.3
324
352
 
325
353
  ### Patch Changes
326
354
 
327
- - Updated dependencies [f19da46e]
328
- - @khanacademy/wonder-blocks-core@6.0.2
329
- - @khanacademy/wonder-blocks-icon@2.1.3
355
+ - Updated dependencies [f19da46e]
356
+ - @khanacademy/wonder-blocks-core@6.0.2
357
+ - @khanacademy/wonder-blocks-icon@2.1.3
330
358
 
331
359
  ## 1.0.2
332
360
 
333
361
  ### Patch Changes
334
362
 
335
- - d00f17c0: Fix style generation
363
+ - d00f17c0: Fix style generation
336
364
 
337
365
  ## 1.0.1
338
366
 
339
367
  ### Patch Changes
340
368
 
341
- - Updated dependencies [1920feb8]
342
- - @khanacademy/wonder-blocks-core@6.0.1
343
- - @khanacademy/wonder-blocks-icon@2.1.2
369
+ - Updated dependencies [1920feb8]
370
+ - @khanacademy/wonder-blocks-core@6.0.1
371
+ - @khanacademy/wonder-blocks-icon@2.1.2
344
372
 
345
373
  ## 1.0.0
346
374
 
347
375
  ### Major Changes
348
376
 
349
- - 8c77f29d: Create new Switch component and add 'switch' role to ClickableRole
377
+ - 8c77f29d: Create new Switch component and add 'switch' role to ClickableRole
350
378
 
351
379
  ### Patch Changes
352
380
 
353
- - Updated dependencies [674a1e5c]
354
- - Updated dependencies [674a1e5c]
355
- - @khanacademy/wonder-blocks-core@6.0.0
356
- - @khanacademy/wonder-blocks-icon@2.1.1
381
+ - Updated dependencies [674a1e5c]
382
+ - Updated dependencies [674a1e5c]
383
+ - @khanacademy/wonder-blocks-core@6.0.0
384
+ - @khanacademy/wonder-blocks-icon@2.1.1
357
385
 
358
386
  ## 0.1.0
359
387
 
360
388
  ### Minor Changes
361
389
 
362
- - 0f10ca37: Adds `wonder-blocks-switch` package
390
+ - 0f10ca37: Adds `wonder-blocks-switch` package
363
391
 
364
392
  ### Patch Changes
365
393
 
366
- - Updated dependencies [1344436f]
367
- - @khanacademy/wonder-blocks-core@5.4.0
368
- - @khanacademy/wonder-blocks-clickable@3.1.3
369
- - @khanacademy/wonder-blocks-typography@2.1.2
394
+ - Updated dependencies [1344436f]
395
+ - @khanacademy/wonder-blocks-core@5.4.0
396
+ - @khanacademy/wonder-blocks-clickable@3.1.3
397
+ - @khanacademy/wonder-blocks-typography@2.1.2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Khan Academy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -7,10 +7,7 @@ var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
7
7
  var wonderBlocksTheming = require('@khanacademy/wonder-blocks-theming');
8
8
  var tokens = require('@khanacademy/wonder-blocks-tokens');
9
9
 
10
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
-
12
- function _interopNamespace(e) {
13
- if (e && e.__esModule) return e;
10
+ function _interopNamespaceDefault(e) {
14
11
  var n = Object.create(null);
15
12
  if (e) {
16
13
  Object.keys(e).forEach(function (k) {
@@ -23,13 +20,12 @@ function _interopNamespace(e) {
23
20
  }
24
21
  });
25
22
  }
26
- n["default"] = e;
23
+ n.default = e;
27
24
  return Object.freeze(n);
28
25
  }
29
26
 
30
- var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
31
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
32
- var tokens__namespace = /*#__PURE__*/_interopNamespace(tokens);
27
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
28
+ var tokens__namespace = /*#__PURE__*/_interopNamespaceDefault(tokens);
33
29
 
34
30
  const action = tokens.semanticColor.action.outlined.progressive;
35
31
  const theme$1 = {
@@ -254,7 +250,7 @@ const _generateStyles = (checked, clickable, disabled, theme, themeName) => {
254
250
  };
255
251
  if (checked) {
256
252
  newStyles = {
257
- switch: _extends__default["default"]({
253
+ switch: _extends({
258
254
  backgroundColor: disabled ? theme.color.bg.switch.disabledOn : theme.color.bg.switch.on,
259
255
  ":active": {
260
256
  backgroundColor: !disabled && clickable ? theme.color.bg.switch.activeOn : undefined
@@ -270,7 +266,7 @@ const _generateStyles = (checked, clickable, disabled, theme, themeName) => {
270
266
  };
271
267
  } else {
272
268
  newStyles = {
273
- switch: _extends__default["default"]({
269
+ switch: _extends({
274
270
  backgroundColor: disabled ? theme.color.bg.switch.disabledOff : theme.color.bg.switch.off,
275
271
  ":active": {
276
272
  backgroundColor: !disabled && clickable ? theme.color.bg.switch.activeOff : undefined
@@ -288,7 +284,7 @@ const _generateStyles = (checked, clickable, disabled, theme, themeName) => {
288
284
  return styles[checkedStyle];
289
285
  };
290
286
  const Switch = React__namespace.forwardRef(function Switch(props, ref) {
291
- return React__namespace.createElement(ThemedSwitch, null, React__namespace.createElement(SwitchCore, _extends__default["default"]({}, props, {
287
+ return React__namespace.createElement(ThemedSwitch, null, React__namespace.createElement(SwitchCore, _extends({}, props, {
292
288
  ref: ref
293
289
  })));
294
290
  });
package/package.json CHANGED
@@ -1,32 +1,31 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-switch",
3
- "version": "3.0.6",
3
+ "version": "3.1.0",
4
4
  "design": "v1",
5
5
  "description": "Switch components for Wonder Blocks.",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/index.d.ts",
9
- "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1",
11
- "prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
12
- },
13
9
  "author": "",
14
10
  "license": "MIT",
15
11
  "publishConfig": {
16
12
  "access": "public"
17
13
  },
18
14
  "dependencies": {
19
- "@babel/runtime": "^7.18.6",
20
- "@khanacademy/wonder-blocks-core": "^11.1.0",
21
- "@khanacademy/wonder-blocks-icon": "^5.0.5",
22
- "@khanacademy/wonder-blocks-theming": "^3.0.1",
23
- "@khanacademy/wonder-blocks-tokens": "^4.1.0"
15
+ "@babel/runtime": "^7.24.5",
16
+ "@khanacademy/wonder-blocks-core": "12.1.0",
17
+ "@khanacademy/wonder-blocks-icon": "5.1.0",
18
+ "@khanacademy/wonder-blocks-theming": "3.1.0",
19
+ "@khanacademy/wonder-blocks-tokens": "4.2.0"
24
20
  },
25
21
  "peerDependencies": {
26
22
  "aphrodite": "^1.2.5",
27
23
  "react": "18.2.0"
28
24
  },
29
25
  "devDependencies": {
30
- "@khanacademy/wb-dev-build-settings": "^2.0.0"
26
+ "@khanacademy/wb-dev-build-settings": "2.1.0"
27
+ },
28
+ "scripts": {
29
+ "test": "echo \"Error: no test specified\" && exit 1"
31
30
  }
32
31
  }