@khanacademy/wonder-blocks-icon 5.0.5 → 5.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.
- package/CHANGELOG.md +167 -142
- package/LICENSE +21 -0
- package/dist/components/phosphor-icon.d.ts +5 -5
- package/dist/es/index.js +2 -2
- package/dist/index.js +6 -13
- package/package.json +7 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,250 +1,275 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-icon
|
|
2
2
|
|
|
3
|
+
## 5.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
|
+
- 969864b: Update internal addStyle variable name to address aphrodite-add-style-variable-name linting rule
|
|
15
|
+
- bb2a026: pnpm: Switch to workspace protocol to handle dependency versions with changesets on monorepo setup"
|
|
16
|
+
- Updated dependencies [969864b]
|
|
17
|
+
- Updated dependencies [bb2a026]
|
|
18
|
+
- Updated dependencies [f03298f]
|
|
19
|
+
- @khanacademy/wonder-blocks-core@12.1.0
|
|
20
|
+
|
|
21
|
+
## 5.0.6
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [0199324d]
|
|
26
|
+
- @khanacademy/wonder-blocks-core@12.0.0
|
|
27
|
+
|
|
3
28
|
## 5.0.5
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
6
31
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
32
|
+
- Updated dependencies [7516b239]
|
|
33
|
+
- @khanacademy/wonder-blocks-core@11.1.0
|
|
9
34
|
|
|
10
35
|
## 5.0.4
|
|
11
36
|
|
|
12
37
|
### Patch Changes
|
|
13
38
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
39
|
+
- 11a0f5c6: No functional changes. Adding prepublishOnly script.
|
|
40
|
+
- Updated dependencies [11a0f5c6]
|
|
41
|
+
- @khanacademy/wonder-blocks-core@11.0.1
|
|
17
42
|
|
|
18
43
|
## 5.0.3
|
|
19
44
|
|
|
20
45
|
### Patch Changes
|
|
21
46
|
|
|
22
|
-
-
|
|
23
|
-
-
|
|
47
|
+
- Updated dependencies [d23c9c5f]
|
|
48
|
+
- @khanacademy/wonder-blocks-core@11.0.0
|
|
24
49
|
|
|
25
50
|
## 5.0.2
|
|
26
51
|
|
|
27
52
|
### Patch Changes
|
|
28
53
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
54
|
+
- Updated dependencies [b6009b77]
|
|
55
|
+
- Updated dependencies [897686bc]
|
|
56
|
+
- Updated dependencies [56d961f1]
|
|
57
|
+
- @khanacademy/wonder-blocks-core@10.0.0
|
|
33
58
|
|
|
34
59
|
## 5.0.1
|
|
35
60
|
|
|
36
61
|
### Patch Changes
|
|
37
62
|
|
|
38
|
-
-
|
|
39
|
-
-
|
|
63
|
+
- Updated dependencies [f4abd572]
|
|
64
|
+
- @khanacademy/wonder-blocks-core@9.0.0
|
|
40
65
|
|
|
41
66
|
## 5.0.0
|
|
42
67
|
|
|
43
68
|
### Major Changes
|
|
44
69
|
|
|
45
|
-
-
|
|
70
|
+
- e6abdd17: Upgrade to React 18
|
|
46
71
|
|
|
47
72
|
### Patch Changes
|
|
48
73
|
|
|
49
|
-
-
|
|
50
|
-
-
|
|
74
|
+
- Updated dependencies [e6abdd17]
|
|
75
|
+
- @khanacademy/wonder-blocks-core@8.0.0
|
|
51
76
|
|
|
52
77
|
## 4.2.0
|
|
53
78
|
|
|
54
79
|
### Minor Changes
|
|
55
80
|
|
|
56
|
-
-
|
|
81
|
+
- c1110599: defaults the role of PhosphorIcon to "img" when an aria-label is provided
|
|
57
82
|
|
|
58
83
|
## 4.1.5
|
|
59
84
|
|
|
60
85
|
### Patch Changes
|
|
61
86
|
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
87
|
+
- 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
|
|
88
|
+
- Updated dependencies [02a1b298]
|
|
89
|
+
- @khanacademy/wonder-blocks-core@7.0.1
|
|
65
90
|
|
|
66
91
|
## 4.1.4
|
|
67
92
|
|
|
68
93
|
### Patch Changes
|
|
69
94
|
|
|
70
|
-
-
|
|
71
|
-
-
|
|
95
|
+
- Updated dependencies [07f7f407]
|
|
96
|
+
- @khanacademy/wonder-blocks-core@7.0.0
|
|
72
97
|
|
|
73
98
|
## 4.1.3
|
|
74
99
|
|
|
75
100
|
### Patch Changes
|
|
76
101
|
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
102
|
+
- 559e82d5: Update to build tooling, generating smaller output
|
|
103
|
+
- Updated dependencies [559e82d5]
|
|
104
|
+
- @khanacademy/wonder-blocks-core@6.4.3
|
|
80
105
|
|
|
81
106
|
## 4.1.2
|
|
82
107
|
|
|
83
108
|
### Patch Changes
|
|
84
109
|
|
|
85
|
-
-
|
|
86
|
-
-
|
|
110
|
+
- Updated dependencies [eab37b8b]
|
|
111
|
+
- @khanacademy/wonder-blocks-core@6.4.2
|
|
87
112
|
|
|
88
113
|
## 4.1.1
|
|
89
114
|
|
|
90
115
|
### Patch Changes
|
|
91
116
|
|
|
92
|
-
-
|
|
93
|
-
-
|
|
117
|
+
- Updated dependencies [5dfac06e]
|
|
118
|
+
- @khanacademy/wonder-blocks-core@6.4.1
|
|
94
119
|
|
|
95
120
|
## 4.1.0
|
|
96
121
|
|
|
97
122
|
### Minor Changes
|
|
98
123
|
|
|
99
|
-
-
|
|
124
|
+
- 58075352: Change testId to render the default Testing Library HTML attribute: data-testid (was data-test-id)
|
|
100
125
|
|
|
101
126
|
### Patch Changes
|
|
102
127
|
|
|
103
|
-
-
|
|
104
|
-
-
|
|
128
|
+
- Updated dependencies [58075352]
|
|
129
|
+
- @khanacademy/wonder-blocks-core@6.4.0
|
|
105
130
|
|
|
106
131
|
## 4.0.1
|
|
107
132
|
|
|
108
133
|
### Patch Changes
|
|
109
134
|
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
135
|
+
- 23ab9f8c: Added `role="img"` docs to PhosphorIcon. Fixed a11y issue to banners by adding the img role to the icons in each banner"
|
|
136
|
+
- Updated dependencies [6df21f71]
|
|
137
|
+
- @khanacademy/wonder-blocks-core@6.3.1
|
|
113
138
|
|
|
114
139
|
## 4.0.0
|
|
115
140
|
|
|
116
141
|
### Major Changes
|
|
117
142
|
|
|
118
|
-
-
|
|
143
|
+
- 171e3b01: Delete Icon component in favor of PhosphorIcon
|
|
119
144
|
|
|
120
145
|
## 3.0.0
|
|
121
146
|
|
|
122
147
|
### Major Changes
|
|
123
148
|
|
|
124
|
-
-
|
|
149
|
+
- 96f675d2: Remove size/weight restriction from PhosphorIcon and remove some exported types from the package.
|
|
125
150
|
|
|
126
151
|
## 2.2.1
|
|
127
152
|
|
|
128
153
|
### Patch Changes
|
|
129
154
|
|
|
130
|
-
-
|
|
131
|
-
-
|
|
155
|
+
- Updated dependencies [7055ca94]
|
|
156
|
+
- @khanacademy/wonder-blocks-core@6.3.0
|
|
132
157
|
|
|
133
158
|
## 2.2.0
|
|
134
159
|
|
|
135
160
|
### Minor Changes
|
|
136
161
|
|
|
137
|
-
-
|
|
162
|
+
- ea0e7c02: Add `PhosphorIcon` to display Phosphor SVG files.
|
|
138
163
|
|
|
139
164
|
## 2.1.6
|
|
140
165
|
|
|
141
166
|
### Patch Changes
|
|
142
167
|
|
|
143
|
-
-
|
|
144
|
-
-
|
|
168
|
+
- Updated dependencies [4b97b9a2]
|
|
169
|
+
- @khanacademy/wonder-blocks-core@6.2.0
|
|
145
170
|
|
|
146
171
|
## 2.1.5
|
|
147
172
|
|
|
148
173
|
### Patch Changes
|
|
149
174
|
|
|
150
|
-
-
|
|
151
|
-
-
|
|
175
|
+
- Updated dependencies [2871f0a9]
|
|
176
|
+
- @khanacademy/wonder-blocks-core@6.1.1
|
|
152
177
|
|
|
153
178
|
## 2.1.4
|
|
154
179
|
|
|
155
180
|
### Patch Changes
|
|
156
181
|
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
182
|
+
- Updated dependencies [efb59c29]
|
|
183
|
+
- Updated dependencies [8bc40ed2]
|
|
184
|
+
- @khanacademy/wonder-blocks-core@6.1.0
|
|
160
185
|
|
|
161
186
|
## 2.1.3
|
|
162
187
|
|
|
163
188
|
### Patch Changes
|
|
164
189
|
|
|
165
|
-
-
|
|
166
|
-
-
|
|
190
|
+
- Updated dependencies [f19da46e]
|
|
191
|
+
- @khanacademy/wonder-blocks-core@6.0.2
|
|
167
192
|
|
|
168
193
|
## 2.1.2
|
|
169
194
|
|
|
170
195
|
### Patch Changes
|
|
171
196
|
|
|
172
|
-
-
|
|
173
|
-
-
|
|
197
|
+
- Updated dependencies [1920feb8]
|
|
198
|
+
- @khanacademy/wonder-blocks-core@6.0.1
|
|
174
199
|
|
|
175
200
|
## 2.1.1
|
|
176
201
|
|
|
177
202
|
### Patch Changes
|
|
178
203
|
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
204
|
+
- Updated dependencies [674a1e5c]
|
|
205
|
+
- Updated dependencies [674a1e5c]
|
|
206
|
+
- @khanacademy/wonder-blocks-core@6.0.0
|
|
182
207
|
|
|
183
208
|
## 2.1.0
|
|
184
209
|
|
|
185
210
|
### Minor Changes
|
|
186
211
|
|
|
187
|
-
-
|
|
188
|
-
|
|
212
|
+
- ec6a33a4: Forward refs in Icon
|
|
213
|
+
Use Icon type instead of IconAsset for startIcon and endIcon in Link
|
|
189
214
|
|
|
190
215
|
### Patch Changes
|
|
191
216
|
|
|
192
|
-
-
|
|
193
|
-
-
|
|
217
|
+
- Updated dependencies [1344436f]
|
|
218
|
+
- @khanacademy/wonder-blocks-core@5.4.0
|
|
194
219
|
|
|
195
220
|
## 2.0.15
|
|
196
221
|
|
|
197
222
|
### Patch Changes
|
|
198
223
|
|
|
199
|
-
-
|
|
200
|
-
-
|
|
224
|
+
- Updated dependencies [9f3752d4]
|
|
225
|
+
- @khanacademy/wonder-blocks-core@5.3.1
|
|
201
226
|
|
|
202
227
|
## 2.0.14
|
|
203
228
|
|
|
204
229
|
### Patch Changes
|
|
205
230
|
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
-
|
|
231
|
+
- Updated dependencies [c37b99aa]
|
|
232
|
+
- Updated dependencies [c4cef3e6]
|
|
233
|
+
- @khanacademy/wonder-blocks-core@5.3.0
|
|
209
234
|
|
|
210
235
|
## 2.0.13
|
|
211
236
|
|
|
212
237
|
### Patch Changes
|
|
213
238
|
|
|
214
|
-
-
|
|
215
|
-
-
|
|
239
|
+
- Updated dependencies [d4c412b5]
|
|
240
|
+
- @khanacademy/wonder-blocks-core@5.2.3
|
|
216
241
|
|
|
217
242
|
## 2.0.12
|
|
218
243
|
|
|
219
244
|
### Patch Changes
|
|
220
245
|
|
|
221
|
-
-
|
|
222
|
-
-
|
|
246
|
+
- Updated dependencies [64a188e3]
|
|
247
|
+
- @khanacademy/wonder-blocks-core@5.2.2
|
|
223
248
|
|
|
224
249
|
## 2.0.11
|
|
225
250
|
|
|
226
251
|
### Patch Changes
|
|
227
252
|
|
|
228
|
-
-
|
|
229
|
-
-
|
|
230
|
-
-
|
|
253
|
+
- Updated dependencies [5a1ea891]
|
|
254
|
+
- Updated dependencies [df9a10aa]
|
|
255
|
+
- @khanacademy/wonder-blocks-core@5.2.1
|
|
231
256
|
|
|
232
257
|
## 2.0.10
|
|
233
258
|
|
|
234
259
|
### Patch Changes
|
|
235
260
|
|
|
236
|
-
-
|
|
237
|
-
-
|
|
238
|
-
-
|
|
239
|
-
-
|
|
261
|
+
- Updated dependencies [fa70c895]
|
|
262
|
+
- Updated dependencies [19ab0408]
|
|
263
|
+
- Updated dependencies [fa70c895]
|
|
264
|
+
- @khanacademy/wonder-blocks-core@5.2.0
|
|
240
265
|
|
|
241
266
|
## 2.0.9
|
|
242
267
|
|
|
243
268
|
### Patch Changes
|
|
244
269
|
|
|
245
|
-
-
|
|
246
|
-
-
|
|
247
|
-
-
|
|
270
|
+
- Updated dependencies [3c400719]
|
|
271
|
+
- Updated dependencies [a6164ed0]
|
|
272
|
+
- @khanacademy/wonder-blocks-core@5.1.0
|
|
248
273
|
|
|
249
274
|
## 2.0.8
|
|
250
275
|
|
|
@@ -254,9 +279,9 @@
|
|
|
254
279
|
|
|
255
280
|
### Patch Changes
|
|
256
281
|
|
|
257
|
-
-
|
|
258
|
-
-
|
|
259
|
-
-
|
|
282
|
+
- c20f48f3: Don't transpile classes when building bundles
|
|
283
|
+
- Updated dependencies [c20f48f3]
|
|
284
|
+
- @khanacademy/wonder-blocks-core@5.0.4
|
|
260
285
|
|
|
261
286
|
## 2.0.5
|
|
262
287
|
|
|
@@ -266,163 +291,163 @@
|
|
|
266
291
|
|
|
267
292
|
### Patch Changes
|
|
268
293
|
|
|
269
|
-
-
|
|
270
|
-
-
|
|
294
|
+
- Updated dependencies [b281e2eb]
|
|
295
|
+
- @khanacademy/wonder-blocks-core@5.0.3
|
|
271
296
|
|
|
272
297
|
## 2.0.2
|
|
273
298
|
|
|
274
299
|
### Patch Changes
|
|
275
300
|
|
|
276
|
-
-
|
|
277
|
-
-
|
|
301
|
+
- Updated dependencies [21ce20c7]
|
|
302
|
+
- @khanacademy/wonder-blocks-core@5.0.2
|
|
278
303
|
|
|
279
304
|
## 2.0.1
|
|
280
305
|
|
|
281
306
|
### Patch Changes
|
|
282
307
|
|
|
283
|
-
-
|
|
284
|
-
-
|
|
285
|
-
-
|
|
286
|
-
-
|
|
287
|
-
-
|
|
308
|
+
- ccb6fe00: Miscellaneous TS type fixes
|
|
309
|
+
- d4c2b18c: Fix a variety of issues with Flow types generated by flowgen
|
|
310
|
+
- Updated dependencies [ccb6fe00]
|
|
311
|
+
- Updated dependencies [d4c2b18c]
|
|
312
|
+
- @khanacademy/wonder-blocks-core@5.0.1
|
|
288
313
|
|
|
289
314
|
## 2.0.0
|
|
290
315
|
|
|
291
316
|
### Major Changes
|
|
292
317
|
|
|
293
|
-
-
|
|
318
|
+
- 1ca4d7e3: Fix minor issue with generate Flow types (this is a major bump b/c I forgot to do one after doing the TS conversion)
|
|
294
319
|
|
|
295
320
|
### Patch Changes
|
|
296
321
|
|
|
297
|
-
-
|
|
298
|
-
-
|
|
322
|
+
- Updated dependencies [1ca4d7e3]
|
|
323
|
+
- @khanacademy/wonder-blocks-core@5.0.0
|
|
299
324
|
|
|
300
325
|
## 1.2.40
|
|
301
326
|
|
|
302
327
|
### Patch Changes
|
|
303
328
|
|
|
304
|
-
-
|
|
305
|
-
-
|
|
306
|
-
-
|
|
329
|
+
- b5ba5568: Ensure that flow lib defs use React.ElementConfig<> isntead of JSX.LibraryManagedAttributes<>
|
|
330
|
+
- Updated dependencies [b5ba5568]
|
|
331
|
+
- @khanacademy/wonder-blocks-core@4.9.1
|
|
307
332
|
|
|
308
333
|
## 1.2.39
|
|
309
334
|
|
|
310
335
|
### Patch Changes
|
|
311
336
|
|
|
312
|
-
-
|
|
313
|
-
-
|
|
337
|
+
- Updated dependencies [779b031d]
|
|
338
|
+
- @khanacademy/wonder-blocks-core@4.9.0
|
|
314
339
|
|
|
315
340
|
## 1.2.38
|
|
316
341
|
|
|
317
342
|
### Patch Changes
|
|
318
343
|
|
|
319
|
-
-
|
|
320
|
-
-
|
|
321
|
-
-
|
|
322
|
-
-
|
|
323
|
-
-
|
|
324
|
-
-
|
|
325
|
-
-
|
|
326
|
-
-
|
|
327
|
-
-
|
|
328
|
-
-
|
|
329
|
-
-
|
|
330
|
-
-
|
|
331
|
-
-
|
|
332
|
-
-
|
|
333
|
-
-
|
|
334
|
-
-
|
|
335
|
-
-
|
|
336
|
-
-
|
|
337
|
-
-
|
|
344
|
+
- d816af08: Update build and test configs use TypeScript
|
|
345
|
+
- 3891f544: Update babel config to include plugins that Storybook needed
|
|
346
|
+
- 3813715d: Update wonder-stuff dependencies (non-functional changes)
|
|
347
|
+
- 0d28bb1c: Configured TypeScript
|
|
348
|
+
- 3d05f764: Fix HOCs and other type errors
|
|
349
|
+
- c2ec4902: Update eslint configuration, fix lint
|
|
350
|
+
- 2983c05b: Include 'types' field in package.json
|
|
351
|
+
- 77ff6a66: Generate Flow types from TypeScript types
|
|
352
|
+
- ec8d4b7f: Fix miscellaneous TypeScript errors
|
|
353
|
+
- Updated dependencies [d816af08]
|
|
354
|
+
- Updated dependencies [3891f544]
|
|
355
|
+
- Updated dependencies [0d28bb1c]
|
|
356
|
+
- Updated dependencies [873f4a14]
|
|
357
|
+
- Updated dependencies [3d05f764]
|
|
358
|
+
- Updated dependencies [c2ec4902]
|
|
359
|
+
- Updated dependencies [2983c05b]
|
|
360
|
+
- Updated dependencies [77ff6a66]
|
|
361
|
+
- Updated dependencies [ec8d4b7f]
|
|
362
|
+
- @khanacademy/wonder-blocks-core@4.8.0
|
|
338
363
|
|
|
339
364
|
## 1.2.37
|
|
340
365
|
|
|
341
366
|
### Patch Changes
|
|
342
367
|
|
|
343
|
-
-
|
|
344
|
-
-
|
|
345
|
-
-
|
|
346
|
-
-
|
|
347
|
-
-
|
|
368
|
+
- 91cb727c: Update wonder-stuff dependencies
|
|
369
|
+
- 91cb727c: Remove file extensions from imports
|
|
370
|
+
- Updated dependencies [91cb727c]
|
|
371
|
+
- Updated dependencies [91cb727c]
|
|
372
|
+
- @khanacademy/wonder-blocks-core@4.7.0
|
|
348
373
|
|
|
349
374
|
## 1.2.36
|
|
350
375
|
|
|
351
376
|
### Patch Changes
|
|
352
377
|
|
|
353
|
-
-
|
|
378
|
+
- 1a5624d4: Update wonder-stuff dependencies to use newly published packages after migrating wonder-stuff to TypeScript
|
|
354
379
|
|
|
355
380
|
## 1.2.35
|
|
356
381
|
|
|
357
382
|
### Patch Changes
|
|
358
383
|
|
|
359
|
-
-
|
|
360
|
-
-
|
|
384
|
+
- Updated dependencies [496119f2]
|
|
385
|
+
- @khanacademy/wonder-blocks-core@4.6.2
|
|
361
386
|
|
|
362
387
|
## 1.2.34
|
|
363
388
|
|
|
364
389
|
### Patch Changes
|
|
365
390
|
|
|
366
|
-
-
|
|
391
|
+
- @khanacademy/wonder-blocks-core@4.6.1
|
|
367
392
|
|
|
368
393
|
## 1.2.33
|
|
369
394
|
|
|
370
395
|
### Patch Changes
|
|
371
396
|
|
|
372
|
-
-
|
|
373
|
-
-
|
|
374
|
-
-
|
|
375
|
-
-
|
|
397
|
+
- Updated dependencies [b561425a]
|
|
398
|
+
- Updated dependencies [a566e232]
|
|
399
|
+
- Updated dependencies [d2b21a6e]
|
|
400
|
+
- @khanacademy/wonder-blocks-core@4.6.0
|
|
376
401
|
|
|
377
402
|
## 1.2.32
|
|
378
403
|
|
|
379
404
|
### Patch Changes
|
|
380
405
|
|
|
381
|
-
-
|
|
382
|
-
-
|
|
406
|
+
- Updated dependencies [175a2dd2]
|
|
407
|
+
- @khanacademy/wonder-blocks-core@4.5.0
|
|
383
408
|
|
|
384
409
|
## 1.2.31
|
|
385
410
|
|
|
386
411
|
### Patch Changes
|
|
387
412
|
|
|
388
|
-
-
|
|
413
|
+
- 3bae2aba: Improves the flow types for the 'icons' dict so that flow will detected misspelled keys
|
|
389
414
|
|
|
390
415
|
## 1.2.30
|
|
391
416
|
|
|
392
417
|
### Patch Changes
|
|
393
418
|
|
|
394
|
-
-
|
|
395
|
-
-
|
|
419
|
+
- Updated dependencies [6ee20af9]
|
|
420
|
+
- @khanacademy/wonder-blocks-core@4.4.0
|
|
396
421
|
|
|
397
422
|
## 1.2.29
|
|
398
423
|
|
|
399
424
|
### Patch Changes
|
|
400
425
|
|
|
401
|
-
-
|
|
426
|
+
- 83486dba: Setting data-test-id attribute based on testId prop
|
|
402
427
|
|
|
403
428
|
## 1.2.28
|
|
404
429
|
|
|
405
430
|
### Patch Changes
|
|
406
431
|
|
|
407
|
-
-
|
|
408
|
-
-
|
|
409
|
-
-
|
|
432
|
+
- Updated dependencies [5f4a4297]
|
|
433
|
+
- Updated dependencies [2b96fd59]
|
|
434
|
+
- @khanacademy/wonder-blocks-core@4.3.2
|
|
410
435
|
|
|
411
436
|
## 1.2.27
|
|
412
437
|
|
|
413
438
|
### Patch Changes
|
|
414
439
|
|
|
415
|
-
-
|
|
440
|
+
- @khanacademy/wonder-blocks-core@4.3.1
|
|
416
441
|
|
|
417
442
|
## 1.2.26
|
|
418
443
|
|
|
419
444
|
### Patch Changes
|
|
420
445
|
|
|
421
|
-
-
|
|
422
|
-
-
|
|
446
|
+
- Updated dependencies [246a921d]
|
|
447
|
+
- @khanacademy/wonder-blocks-core@4.3.0
|
|
423
448
|
|
|
424
449
|
## 1.2.25
|
|
425
450
|
|
|
426
451
|
### Patch Changes
|
|
427
452
|
|
|
428
|
-
-
|
|
453
|
+
- @khanacademy/wonder-blocks-core@4.2.1
|
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.
|
|
@@ -31,7 +31,7 @@ export declare const PhosphorIcon: React.ForwardRefExoticComponent<Pick<AriaProp
|
|
|
31
31
|
* The color of the icon. Will default to `currentColor`, which means that
|
|
32
32
|
* it will take on the CSS `color` value from the parent element.
|
|
33
33
|
*/
|
|
34
|
-
color?: string
|
|
34
|
+
color?: string;
|
|
35
35
|
/**
|
|
36
36
|
* Additional styles to apply to the icon.
|
|
37
37
|
*/
|
|
@@ -39,22 +39,22 @@ export declare const PhosphorIcon: React.ForwardRefExoticComponent<Pick<AriaProp
|
|
|
39
39
|
/**
|
|
40
40
|
* Adds CSS classes to the Icon.
|
|
41
41
|
*/
|
|
42
|
-
className?: string
|
|
42
|
+
className?: string;
|
|
43
43
|
/**
|
|
44
44
|
* The role of the icon. Will default to `img` if an `aria-label` is
|
|
45
45
|
* provided.
|
|
46
46
|
* @see https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA24
|
|
47
47
|
*/
|
|
48
|
-
role?: "img"
|
|
48
|
+
role?: "img";
|
|
49
49
|
/**
|
|
50
50
|
* Size of the icon. One of `small` (16), `medium` (24), `large` (48), or
|
|
51
51
|
* `xlarge` (96). Defaults to `small`.
|
|
52
52
|
*/
|
|
53
|
-
size?: IconSize
|
|
53
|
+
size?: IconSize;
|
|
54
54
|
/**
|
|
55
55
|
* Test ID used for e2e testing.
|
|
56
56
|
*/
|
|
57
|
-
testId?: string
|
|
57
|
+
testId?: string;
|
|
58
58
|
/**
|
|
59
59
|
* The icon to display. This is a reference to the icon asset (imported as a
|
|
60
60
|
* static SVG file).
|
package/dist/es/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const viewportPixelsForSize = size => ({
|
|
|
12
12
|
})[size];
|
|
13
13
|
|
|
14
14
|
const _excluded = ["color", "icon", "size", "style", "testId", "className", "role"];
|
|
15
|
-
const
|
|
15
|
+
const StyledSpan = addStyle("span");
|
|
16
16
|
const PhosphorIcon = React.forwardRef(function PhosphorIcon(props, ref) {
|
|
17
17
|
const {
|
|
18
18
|
color = "currentColor",
|
|
@@ -27,7 +27,7 @@ const PhosphorIcon = React.forwardRef(function PhosphorIcon(props, ref) {
|
|
|
27
27
|
const pixelSize = viewportPixelsForSize(size);
|
|
28
28
|
const classNames = `${className != null ? className : ""}`;
|
|
29
29
|
const iconStyles = _generateStyles(color, pixelSize);
|
|
30
|
-
return React.createElement(
|
|
30
|
+
return React.createElement(StyledSpan, _extends({}, sharedProps, {
|
|
31
31
|
className: classNames,
|
|
32
32
|
style: [styles.svg, iconStyles.icon, {
|
|
33
33
|
maskImage: `url(${icon})`
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
6
4
|
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose');
|
|
7
5
|
var React = require('react');
|
|
8
6
|
var aphrodite = require('aphrodite');
|
|
9
7
|
var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
|
|
10
8
|
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
function _interopNamespace(e) {
|
|
14
|
-
if (e && e.__esModule) return e;
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
15
10
|
var n = Object.create(null);
|
|
16
11
|
if (e) {
|
|
17
12
|
Object.keys(e).forEach(function (k) {
|
|
@@ -24,13 +19,11 @@ function _interopNamespace(e) {
|
|
|
24
19
|
}
|
|
25
20
|
});
|
|
26
21
|
}
|
|
27
|
-
n
|
|
22
|
+
n.default = e;
|
|
28
23
|
return Object.freeze(n);
|
|
29
24
|
}
|
|
30
25
|
|
|
31
|
-
var
|
|
32
|
-
var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose);
|
|
33
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
34
27
|
|
|
35
28
|
const viewportPixelsForSize = size => ({
|
|
36
29
|
small: 16,
|
|
@@ -40,7 +33,7 @@ const viewportPixelsForSize = size => ({
|
|
|
40
33
|
})[size];
|
|
41
34
|
|
|
42
35
|
const _excluded = ["color", "icon", "size", "style", "testId", "className", "role"];
|
|
43
|
-
const
|
|
36
|
+
const StyledSpan = wonderBlocksCore.addStyle("span");
|
|
44
37
|
const PhosphorIcon = React__namespace.forwardRef(function PhosphorIcon(props, ref) {
|
|
45
38
|
const {
|
|
46
39
|
color = "currentColor",
|
|
@@ -51,11 +44,11 @@ const PhosphorIcon = React__namespace.forwardRef(function PhosphorIcon(props, re
|
|
|
51
44
|
className,
|
|
52
45
|
role
|
|
53
46
|
} = props,
|
|
54
|
-
sharedProps =
|
|
47
|
+
sharedProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
55
48
|
const pixelSize = viewportPixelsForSize(size);
|
|
56
49
|
const classNames = `${className != null ? className : ""}`;
|
|
57
50
|
const iconStyles = _generateStyles(color, pixelSize);
|
|
58
|
-
return React__namespace.createElement(
|
|
51
|
+
return React__namespace.createElement(StyledSpan, _extends({}, sharedProps, {
|
|
59
52
|
className: classNames,
|
|
60
53
|
style: [styles.svg, iconStyles.icon, {
|
|
61
54
|
maskImage: `url(${icon})`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-icon",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,23 +9,21 @@
|
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"module": "dist/es/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
|
|
15
|
-
},
|
|
16
12
|
"author": "",
|
|
17
13
|
"license": "MIT",
|
|
18
14
|
"dependencies": {
|
|
19
|
-
"@babel/runtime": "^7.
|
|
20
|
-
"@khanacademy/wonder-blocks-core": "
|
|
15
|
+
"@babel/runtime": "^7.24.5",
|
|
16
|
+
"@khanacademy/wonder-blocks-core": "12.1.0"
|
|
21
17
|
},
|
|
22
18
|
"devDependencies": {
|
|
23
|
-
"@khanacademy/
|
|
24
|
-
"@khanacademy/wb-dev-build-settings": "^2.0.0"
|
|
19
|
+
"@khanacademy/wb-dev-build-settings": "2.1.0"
|
|
25
20
|
},
|
|
26
21
|
"peerDependencies": {
|
|
27
22
|
"@phosphor-icons/core": "^2.0.2",
|
|
28
23
|
"aphrodite": "^1.2.5",
|
|
29
24
|
"react": "18.2.0"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
30
28
|
}
|
|
31
29
|
}
|