@khanacademy/wonder-blocks-pill 3.0.8 → 3.1.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 +239 -206
- package/LICENSE +21 -0
- package/dist/es/index.js +2 -28
- package/dist/index.js +21 -45
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,464 +1,497 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-pill
|
|
2
2
|
|
|
3
|
+
## 3.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ee8d95a: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests
|
|
8
|
+
- Updated dependencies [ee8d95a]
|
|
9
|
+
- @khanacademy/wonder-blocks-clickable@6.1.1
|
|
10
|
+
- @khanacademy/wonder-blocks-core@12.1.1
|
|
11
|
+
- @khanacademy/wonder-blocks-link@7.1.1
|
|
12
|
+
- @khanacademy/wonder-blocks-tokens@4.2.1
|
|
13
|
+
- @khanacademy/wonder-blocks-typography@3.1.1
|
|
14
|
+
|
|
15
|
+
## 3.1.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- f03298f: Tooling:
|
|
20
|
+
|
|
21
|
+
- Switching to `pnpm`.
|
|
22
|
+
- Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- bb2a026: pnpm: Switch to workspace protocol to handle dependency versions with changesets on monorepo setup"
|
|
27
|
+
- Updated dependencies [969864b]
|
|
28
|
+
- Updated dependencies [bb2a026]
|
|
29
|
+
- Updated dependencies [f03298f]
|
|
30
|
+
- @khanacademy/wonder-blocks-clickable@6.1.0
|
|
31
|
+
- @khanacademy/wonder-blocks-core@12.1.0
|
|
32
|
+
- @khanacademy/wonder-blocks-link@7.1.0
|
|
33
|
+
- @khanacademy/wonder-blocks-typography@3.1.0
|
|
34
|
+
- @khanacademy/wonder-blocks-tokens@4.2.0
|
|
35
|
+
|
|
3
36
|
## 3.0.8
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
|
6
39
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
40
|
+
- Updated dependencies [0199324d]
|
|
41
|
+
- @khanacademy/wonder-blocks-clickable@6.0.0
|
|
42
|
+
- @khanacademy/wonder-blocks-core@12.0.0
|
|
43
|
+
- @khanacademy/wonder-blocks-link@7.0.8
|
|
44
|
+
- @khanacademy/wonder-blocks-typography@3.0.6
|
|
12
45
|
|
|
13
46
|
## 3.0.7
|
|
14
47
|
|
|
15
48
|
### Patch Changes
|
|
16
49
|
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
50
|
+
- Updated dependencies [8cfaeab0]
|
|
51
|
+
- Updated dependencies [c162abb4]
|
|
52
|
+
- @khanacademy/wonder-blocks-tokens@4.1.0
|
|
53
|
+
- @khanacademy/wonder-blocks-clickable@5.0.7
|
|
54
|
+
- @khanacademy/wonder-blocks-link@7.0.7
|
|
22
55
|
|
|
23
56
|
## 3.0.6
|
|
24
57
|
|
|
25
58
|
### Patch Changes
|
|
26
59
|
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
60
|
+
- Updated dependencies [0de25cd8]
|
|
61
|
+
- @khanacademy/wonder-blocks-tokens@4.0.0
|
|
62
|
+
- @khanacademy/wonder-blocks-clickable@5.0.6
|
|
63
|
+
- @khanacademy/wonder-blocks-link@7.0.6
|
|
31
64
|
|
|
32
65
|
## 3.0.5
|
|
33
66
|
|
|
34
67
|
### Patch Changes
|
|
35
68
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
69
|
+
- Updated dependencies [7516b239]
|
|
70
|
+
- @khanacademy/wonder-blocks-core@11.1.0
|
|
71
|
+
- @khanacademy/wonder-blocks-clickable@5.0.5
|
|
72
|
+
- @khanacademy/wonder-blocks-link@7.0.5
|
|
73
|
+
- @khanacademy/wonder-blocks-typography@3.0.5
|
|
41
74
|
|
|
42
75
|
## 3.0.4
|
|
43
76
|
|
|
44
77
|
### Patch Changes
|
|
45
78
|
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
79
|
+
- 11a0f5c6: No functional changes. Adding prepublishOnly script.
|
|
80
|
+
- Updated dependencies [11a0f5c6]
|
|
81
|
+
- @khanacademy/wonder-blocks-typography@3.0.4
|
|
82
|
+
- @khanacademy/wonder-blocks-clickable@5.0.4
|
|
83
|
+
- @khanacademy/wonder-blocks-tokens@3.0.1
|
|
84
|
+
- @khanacademy/wonder-blocks-core@11.0.1
|
|
85
|
+
- @khanacademy/wonder-blocks-link@7.0.4
|
|
53
86
|
|
|
54
87
|
## 3.0.3
|
|
55
88
|
|
|
56
89
|
### Patch Changes
|
|
57
90
|
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
91
|
+
- Updated dependencies [d23c9c5f]
|
|
92
|
+
- @khanacademy/wonder-blocks-core@11.0.0
|
|
93
|
+
- @khanacademy/wonder-blocks-clickable@5.0.3
|
|
94
|
+
- @khanacademy/wonder-blocks-link@7.0.3
|
|
95
|
+
- @khanacademy/wonder-blocks-typography@3.0.3
|
|
63
96
|
|
|
64
97
|
## 3.0.2
|
|
65
98
|
|
|
66
99
|
### Patch Changes
|
|
67
100
|
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
101
|
+
- Updated dependencies [b6009b77]
|
|
102
|
+
- Updated dependencies [897686bc]
|
|
103
|
+
- Updated dependencies [56d961f1]
|
|
104
|
+
- @khanacademy/wonder-blocks-core@10.0.0
|
|
105
|
+
- @khanacademy/wonder-blocks-clickable@5.0.2
|
|
106
|
+
- @khanacademy/wonder-blocks-link@7.0.2
|
|
107
|
+
- @khanacademy/wonder-blocks-typography@3.0.2
|
|
75
108
|
|
|
76
109
|
## 3.0.1
|
|
77
110
|
|
|
78
111
|
### Patch Changes
|
|
79
112
|
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
113
|
+
- Updated dependencies [f4abd572]
|
|
114
|
+
- @khanacademy/wonder-blocks-core@9.0.0
|
|
115
|
+
- @khanacademy/wonder-blocks-clickable@5.0.1
|
|
116
|
+
- @khanacademy/wonder-blocks-link@7.0.1
|
|
117
|
+
- @khanacademy/wonder-blocks-typography@3.0.1
|
|
85
118
|
|
|
86
119
|
## 3.0.0
|
|
87
120
|
|
|
88
121
|
### Major Changes
|
|
89
122
|
|
|
90
|
-
-
|
|
123
|
+
- e6abdd17: Upgrade to React 18
|
|
91
124
|
|
|
92
125
|
### Patch Changes
|
|
93
126
|
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
127
|
+
- Updated dependencies [e6abdd17]
|
|
128
|
+
- @khanacademy/wonder-blocks-core@8.0.0
|
|
129
|
+
- @khanacademy/wonder-blocks-clickable@5.0.0
|
|
130
|
+
- @khanacademy/wonder-blocks-link@7.0.0
|
|
131
|
+
- @khanacademy/wonder-blocks-tokens@3.0.0
|
|
132
|
+
- @khanacademy/wonder-blocks-typography@3.0.0
|
|
100
133
|
|
|
101
134
|
## 2.5.3
|
|
102
135
|
|
|
103
136
|
### Patch Changes
|
|
104
137
|
|
|
105
|
-
-
|
|
138
|
+
- @khanacademy/wonder-blocks-link@6.1.10
|
|
106
139
|
|
|
107
140
|
## 2.5.2
|
|
108
141
|
|
|
109
142
|
### Patch Changes
|
|
110
143
|
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
144
|
+
- Updated dependencies [6999fd39]
|
|
145
|
+
- @khanacademy/wonder-blocks-tokens@2.1.0
|
|
146
|
+
- @khanacademy/wonder-blocks-clickable@4.2.9
|
|
147
|
+
- @khanacademy/wonder-blocks-link@6.1.9
|
|
115
148
|
|
|
116
149
|
## 2.5.1
|
|
117
150
|
|
|
118
151
|
### Patch Changes
|
|
119
152
|
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
153
|
+
- 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
|
|
154
|
+
- Updated dependencies [02a1b298]
|
|
155
|
+
- @khanacademy/wonder-blocks-clickable@4.2.8
|
|
156
|
+
- @khanacademy/wonder-blocks-core@7.0.1
|
|
157
|
+
- @khanacademy/wonder-blocks-link@6.1.8
|
|
158
|
+
- @khanacademy/wonder-blocks-tokens@2.0.1
|
|
159
|
+
- @khanacademy/wonder-blocks-typography@2.1.16
|
|
127
160
|
|
|
128
161
|
## 2.5.0
|
|
129
162
|
|
|
130
163
|
### Minor Changes
|
|
131
164
|
|
|
132
|
-
-
|
|
165
|
+
- 5fb863d0: Add `tabIndex` prop to customize keyboard focusability of clickable pills
|
|
133
166
|
|
|
134
167
|
## 2.4.6
|
|
135
168
|
|
|
136
169
|
### Patch Changes
|
|
137
170
|
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
-
|
|
171
|
+
- Updated dependencies [07f7f407]
|
|
172
|
+
- @khanacademy/wonder-blocks-core@7.0.0
|
|
173
|
+
- @khanacademy/wonder-blocks-clickable@4.2.7
|
|
174
|
+
- @khanacademy/wonder-blocks-link@6.1.7
|
|
175
|
+
- @khanacademy/wonder-blocks-typography@2.1.15
|
|
143
176
|
|
|
144
177
|
## 2.4.5
|
|
145
178
|
|
|
146
179
|
### Patch Changes
|
|
147
180
|
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
181
|
+
- Updated dependencies [f17dc1ee]
|
|
182
|
+
- Updated dependencies [991eb43f]
|
|
183
|
+
- Updated dependencies [f17dc1ee]
|
|
184
|
+
- @khanacademy/wonder-blocks-tokens@2.0.0
|
|
185
|
+
- @khanacademy/wonder-blocks-link@6.1.6
|
|
186
|
+
- @khanacademy/wonder-blocks-clickable@4.2.6
|
|
154
187
|
|
|
155
188
|
## 2.4.4
|
|
156
189
|
|
|
157
190
|
### Patch Changes
|
|
158
191
|
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
-
|
|
192
|
+
- 559e82d5: Update to build tooling, generating smaller output
|
|
193
|
+
- Updated dependencies [559e82d5]
|
|
194
|
+
- @khanacademy/wonder-blocks-clickable@4.2.5
|
|
195
|
+
- @khanacademy/wonder-blocks-core@6.4.3
|
|
196
|
+
- @khanacademy/wonder-blocks-link@6.1.5
|
|
197
|
+
- @khanacademy/wonder-blocks-tokens@1.3.1
|
|
198
|
+
- @khanacademy/wonder-blocks-typography@2.1.14
|
|
166
199
|
|
|
167
200
|
## 2.4.3
|
|
168
201
|
|
|
169
202
|
### Patch Changes
|
|
170
203
|
|
|
171
|
-
-
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
204
|
+
- Updated dependencies [eab37b8b]
|
|
205
|
+
- @khanacademy/wonder-blocks-core@6.4.2
|
|
206
|
+
- @khanacademy/wonder-blocks-clickable@4.2.4
|
|
207
|
+
- @khanacademy/wonder-blocks-link@6.1.4
|
|
208
|
+
- @khanacademy/wonder-blocks-typography@2.1.13
|
|
176
209
|
|
|
177
210
|
## 2.4.2
|
|
178
211
|
|
|
179
212
|
### Patch Changes
|
|
180
213
|
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
-
|
|
214
|
+
- Updated dependencies [f099cf87]
|
|
215
|
+
- @khanacademy/wonder-blocks-clickable@4.2.3
|
|
216
|
+
- @khanacademy/wonder-blocks-link@6.1.3
|
|
184
217
|
|
|
185
218
|
## 2.4.1
|
|
186
219
|
|
|
187
220
|
### Patch Changes
|
|
188
221
|
|
|
189
|
-
-
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
193
|
-
-
|
|
222
|
+
- Updated dependencies [5dfac06e]
|
|
223
|
+
- @khanacademy/wonder-blocks-core@6.4.1
|
|
224
|
+
- @khanacademy/wonder-blocks-clickable@4.2.2
|
|
225
|
+
- @khanacademy/wonder-blocks-link@6.1.2
|
|
226
|
+
- @khanacademy/wonder-blocks-typography@2.1.12
|
|
194
227
|
|
|
195
228
|
## 2.4.0
|
|
196
229
|
|
|
197
230
|
### Minor Changes
|
|
198
231
|
|
|
199
|
-
-
|
|
232
|
+
- bf1e3d87: Add tabindex to pill props
|
|
200
233
|
|
|
201
234
|
## 2.3.0
|
|
202
235
|
|
|
203
236
|
### Minor Changes
|
|
204
237
|
|
|
205
|
-
-
|
|
238
|
+
- e8d25c90: Aria props are now properly applied to pill component.
|
|
206
239
|
|
|
207
240
|
## 2.2.1
|
|
208
241
|
|
|
209
242
|
### Patch Changes
|
|
210
243
|
|
|
211
|
-
-
|
|
212
|
-
-
|
|
213
|
-
-
|
|
214
|
-
-
|
|
244
|
+
- Updated dependencies [9bfeead9]
|
|
245
|
+
- @khanacademy/wonder-blocks-tokens@1.3.0
|
|
246
|
+
- @khanacademy/wonder-blocks-clickable@4.2.1
|
|
247
|
+
- @khanacademy/wonder-blocks-link@6.1.1
|
|
215
248
|
|
|
216
249
|
## 2.2.0
|
|
217
250
|
|
|
218
251
|
### Minor Changes
|
|
219
252
|
|
|
220
|
-
-
|
|
253
|
+
- 58075352: Change testId to render the default Testing Library HTML attribute: data-testid (was data-test-id)
|
|
221
254
|
|
|
222
255
|
### Patch Changes
|
|
223
256
|
|
|
224
|
-
-
|
|
225
|
-
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
-
|
|
257
|
+
- Updated dependencies [58075352]
|
|
258
|
+
- @khanacademy/wonder-blocks-clickable@4.2.0
|
|
259
|
+
- @khanacademy/wonder-blocks-core@6.4.0
|
|
260
|
+
- @khanacademy/wonder-blocks-link@6.1.0
|
|
261
|
+
- @khanacademy/wonder-blocks-typography@2.1.11
|
|
229
262
|
|
|
230
263
|
## 2.1.2
|
|
231
264
|
|
|
232
265
|
### Patch Changes
|
|
233
266
|
|
|
234
|
-
-
|
|
235
|
-
-
|
|
236
|
-
-
|
|
237
|
-
-
|
|
238
|
-
-
|
|
239
|
-
-
|
|
240
|
-
-
|
|
267
|
+
- 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
|
|
268
|
+
- Updated dependencies [874081aa]
|
|
269
|
+
- Updated dependencies [874081aa]
|
|
270
|
+
- Updated dependencies [a9bf603a]
|
|
271
|
+
- @khanacademy/wonder-blocks-tokens@1.2.0
|
|
272
|
+
- @khanacademy/wonder-blocks-link@6.0.11
|
|
273
|
+
- @khanacademy/wonder-blocks-clickable@4.1.3
|
|
241
274
|
|
|
242
275
|
## 2.1.1
|
|
243
276
|
|
|
244
277
|
### Patch Changes
|
|
245
278
|
|
|
246
|
-
-
|
|
247
|
-
-
|
|
248
|
-
-
|
|
279
|
+
- Updated dependencies [e6433bee]
|
|
280
|
+
- @khanacademy/wonder-blocks-clickable@4.1.2
|
|
281
|
+
- @khanacademy/wonder-blocks-link@6.0.10
|
|
249
282
|
|
|
250
283
|
## 2.1.0
|
|
251
284
|
|
|
252
285
|
### Minor Changes
|
|
253
286
|
|
|
254
|
-
-
|
|
287
|
+
- 0c3cbcea: Add transparent variant
|
|
255
288
|
|
|
256
289
|
### Patch Changes
|
|
257
290
|
|
|
258
|
-
-
|
|
259
|
-
-
|
|
260
|
-
-
|
|
261
|
-
-
|
|
291
|
+
- Updated dependencies [4cfb4977]
|
|
292
|
+
- @khanacademy/wonder-blocks-tokens@1.1.0
|
|
293
|
+
- @khanacademy/wonder-blocks-clickable@4.1.1
|
|
294
|
+
- @khanacademy/wonder-blocks-link@6.0.9
|
|
262
295
|
|
|
263
296
|
## 2.0.3
|
|
264
297
|
|
|
265
298
|
### Patch Changes
|
|
266
299
|
|
|
267
|
-
-
|
|
268
|
-
-
|
|
269
|
-
-
|
|
300
|
+
- Updated dependencies [60fdac1c]
|
|
301
|
+
- @khanacademy/wonder-blocks-clickable@4.1.0
|
|
302
|
+
- @khanacademy/wonder-blocks-link@6.0.8
|
|
270
303
|
|
|
271
304
|
## 2.0.2
|
|
272
305
|
|
|
273
306
|
### Patch Changes
|
|
274
307
|
|
|
275
|
-
-
|
|
276
|
-
-
|
|
277
|
-
-
|
|
278
|
-
-
|
|
308
|
+
- Updated dependencies [e83f8991]
|
|
309
|
+
- @khanacademy/wonder-blocks-tokens@1.0.0
|
|
310
|
+
- @khanacademy/wonder-blocks-clickable@4.0.14
|
|
311
|
+
- @khanacademy/wonder-blocks-link@6.0.7
|
|
279
312
|
|
|
280
313
|
## 2.0.1
|
|
281
314
|
|
|
282
315
|
### Patch Changes
|
|
283
316
|
|
|
284
|
-
-
|
|
285
|
-
-
|
|
286
|
-
-
|
|
287
|
-
-
|
|
288
|
-
-
|
|
289
|
-
-
|
|
290
|
-
-
|
|
291
|
-
-
|
|
292
|
-
-
|
|
317
|
+
- 60aba5b8: Update internal spacing references (from wb-spacing to wb-tokens)
|
|
318
|
+
- 7cd7f6cc: Replace theming.tokens with wb-tokens and update callsites to use the new export
|
|
319
|
+
- Updated dependencies [60aba5b8]
|
|
320
|
+
- Updated dependencies [7cd7f6cc]
|
|
321
|
+
- Updated dependencies [7c51f377]
|
|
322
|
+
- Updated dependencies [7c51f377]
|
|
323
|
+
- @khanacademy/wonder-blocks-link@6.0.6
|
|
324
|
+
- @khanacademy/wonder-blocks-tokens@0.2.0
|
|
325
|
+
- @khanacademy/wonder-blocks-clickable@4.0.13
|
|
293
326
|
|
|
294
327
|
## 2.0.0
|
|
295
328
|
|
|
296
329
|
### Major Changes
|
|
297
330
|
|
|
298
|
-
-
|
|
299
|
-
|
|
300
|
-
|
|
331
|
+
- 441380b0: Pill now has small, medium, and large sizes. Medium is the new default size. This change was made because the small size is a bit too small as per
|
|
332
|
+
accessibility recommendations, but is still necessary in some cases.
|
|
333
|
+
The medium size is the recommended "smaller" size. The large pill is the same.
|
|
301
334
|
|
|
302
335
|
## 1.1.0
|
|
303
336
|
|
|
304
337
|
### Minor Changes
|
|
305
338
|
|
|
306
|
-
-
|
|
339
|
+
- 80592e75: Added more colors to Pill, small pills are now 24px tall with 14px font size. Tokens (theming) now include pill colors.
|
|
307
340
|
|
|
308
341
|
### Patch Changes
|
|
309
342
|
|
|
310
|
-
-
|
|
311
|
-
-
|
|
343
|
+
- Updated dependencies [80592e75]
|
|
344
|
+
- @khanacademy/wonder-blocks-theming@1.3.0
|
|
312
345
|
|
|
313
346
|
## 1.0.15
|
|
314
347
|
|
|
315
348
|
### Patch Changes
|
|
316
349
|
|
|
317
|
-
-
|
|
318
|
-
-
|
|
319
|
-
-
|
|
320
|
-
-
|
|
321
|
-
-
|
|
350
|
+
- Updated dependencies [6df21f71]
|
|
351
|
+
- @khanacademy/wonder-blocks-core@6.3.1
|
|
352
|
+
- @khanacademy/wonder-blocks-link@6.0.5
|
|
353
|
+
- @khanacademy/wonder-blocks-clickable@4.0.12
|
|
354
|
+
- @khanacademy/wonder-blocks-typography@2.1.10
|
|
322
355
|
|
|
323
356
|
## 1.0.14
|
|
324
357
|
|
|
325
358
|
### Patch Changes
|
|
326
359
|
|
|
327
|
-
-
|
|
360
|
+
- @khanacademy/wonder-blocks-link@6.0.4
|
|
328
361
|
|
|
329
362
|
## 1.0.13
|
|
330
363
|
|
|
331
364
|
### Patch Changes
|
|
332
365
|
|
|
333
|
-
-
|
|
366
|
+
- @khanacademy/wonder-blocks-link@6.0.3
|
|
334
367
|
|
|
335
368
|
## 1.0.12
|
|
336
369
|
|
|
337
370
|
### Patch Changes
|
|
338
371
|
|
|
339
|
-
-
|
|
340
|
-
-
|
|
341
|
-
-
|
|
372
|
+
- Updated dependencies [6b8bf8d5]
|
|
373
|
+
- @khanacademy/wonder-blocks-clickable@4.0.11
|
|
374
|
+
- @khanacademy/wonder-blocks-link@6.0.2
|
|
342
375
|
|
|
343
376
|
## 1.0.11
|
|
344
377
|
|
|
345
378
|
### Patch Changes
|
|
346
379
|
|
|
347
|
-
-
|
|
348
|
-
-
|
|
349
|
-
-
|
|
380
|
+
- Updated dependencies [7b24db93]
|
|
381
|
+
- @khanacademy/wonder-blocks-clickable@4.0.10
|
|
382
|
+
- @khanacademy/wonder-blocks-link@6.0.1
|
|
350
383
|
|
|
351
384
|
## 1.0.10
|
|
352
385
|
|
|
353
386
|
### Patch Changes
|
|
354
387
|
|
|
355
|
-
-
|
|
356
|
-
-
|
|
388
|
+
- Updated dependencies [d65b6000]
|
|
389
|
+
- @khanacademy/wonder-blocks-link@6.0.0
|
|
357
390
|
|
|
358
391
|
## 1.0.9
|
|
359
392
|
|
|
360
393
|
### Patch Changes
|
|
361
394
|
|
|
362
|
-
-
|
|
363
|
-
-
|
|
364
|
-
-
|
|
365
|
-
-
|
|
366
|
-
-
|
|
395
|
+
- Updated dependencies [7055ca94]
|
|
396
|
+
- @khanacademy/wonder-blocks-core@6.3.0
|
|
397
|
+
- @khanacademy/wonder-blocks-clickable@4.0.9
|
|
398
|
+
- @khanacademy/wonder-blocks-link@5.0.10
|
|
399
|
+
- @khanacademy/wonder-blocks-typography@2.1.9
|
|
367
400
|
|
|
368
401
|
## 1.0.8
|
|
369
402
|
|
|
370
403
|
### Patch Changes
|
|
371
404
|
|
|
372
|
-
-
|
|
373
|
-
-
|
|
405
|
+
- 5aabf760: Copy tweaks (forcing a new version)
|
|
406
|
+
- @khanacademy/wonder-blocks-link@5.0.9
|
|
374
407
|
|
|
375
408
|
## 1.0.7
|
|
376
409
|
|
|
377
410
|
### Patch Changes
|
|
378
411
|
|
|
379
|
-
-
|
|
380
|
-
-
|
|
381
|
-
-
|
|
382
|
-
-
|
|
412
|
+
- Updated dependencies [48d3c7e9]
|
|
413
|
+
- @khanacademy/wonder-blocks-color@3.0.0
|
|
414
|
+
- @khanacademy/wonder-blocks-clickable@4.0.8
|
|
415
|
+
- @khanacademy/wonder-blocks-link@5.0.8
|
|
383
416
|
|
|
384
417
|
## 1.0.6
|
|
385
418
|
|
|
386
419
|
### Patch Changes
|
|
387
420
|
|
|
388
|
-
-
|
|
389
|
-
-
|
|
390
|
-
-
|
|
421
|
+
- Updated dependencies [80cab317]
|
|
422
|
+
- @khanacademy/wonder-blocks-clickable@4.0.7
|
|
423
|
+
- @khanacademy/wonder-blocks-link@5.0.7
|
|
391
424
|
|
|
392
425
|
## 1.0.5
|
|
393
426
|
|
|
394
427
|
### Patch Changes
|
|
395
428
|
|
|
396
|
-
-
|
|
397
|
-
-
|
|
398
|
-
-
|
|
399
|
-
-
|
|
400
|
-
-
|
|
429
|
+
- Updated dependencies [4b97b9a2]
|
|
430
|
+
- @khanacademy/wonder-blocks-core@6.2.0
|
|
431
|
+
- @khanacademy/wonder-blocks-clickable@4.0.6
|
|
432
|
+
- @khanacademy/wonder-blocks-link@5.0.6
|
|
433
|
+
- @khanacademy/wonder-blocks-typography@2.1.8
|
|
401
434
|
|
|
402
435
|
## 1.0.4
|
|
403
436
|
|
|
404
437
|
### Patch Changes
|
|
405
438
|
|
|
406
|
-
-
|
|
407
|
-
-
|
|
408
|
-
-
|
|
409
|
-
-
|
|
410
|
-
-
|
|
439
|
+
- Updated dependencies [2871f0a9]
|
|
440
|
+
- @khanacademy/wonder-blocks-core@6.1.1
|
|
441
|
+
- @khanacademy/wonder-blocks-clickable@4.0.5
|
|
442
|
+
- @khanacademy/wonder-blocks-link@5.0.5
|
|
443
|
+
- @khanacademy/wonder-blocks-typography@2.1.7
|
|
411
444
|
|
|
412
445
|
## 1.0.3
|
|
413
446
|
|
|
414
447
|
### Patch Changes
|
|
415
448
|
|
|
416
|
-
-
|
|
417
|
-
-
|
|
418
|
-
-
|
|
419
|
-
-
|
|
420
|
-
-
|
|
421
|
-
-
|
|
422
|
-
-
|
|
449
|
+
- Updated dependencies [efb59c29]
|
|
450
|
+
- Updated dependencies [834855e5]
|
|
451
|
+
- Updated dependencies [8bc40ed2]
|
|
452
|
+
- @khanacademy/wonder-blocks-core@6.1.0
|
|
453
|
+
- @khanacademy/wonder-blocks-clickable@4.0.4
|
|
454
|
+
- @khanacademy/wonder-blocks-link@5.0.4
|
|
455
|
+
- @khanacademy/wonder-blocks-typography@2.1.6
|
|
423
456
|
|
|
424
457
|
## 1.0.2
|
|
425
458
|
|
|
426
459
|
### Patch Changes
|
|
427
460
|
|
|
428
|
-
-
|
|
429
|
-
-
|
|
430
|
-
-
|
|
431
|
-
-
|
|
432
|
-
-
|
|
461
|
+
- Updated dependencies [f19da46e]
|
|
462
|
+
- @khanacademy/wonder-blocks-core@6.0.2
|
|
463
|
+
- @khanacademy/wonder-blocks-clickable@4.0.3
|
|
464
|
+
- @khanacademy/wonder-blocks-link@5.0.3
|
|
465
|
+
- @khanacademy/wonder-blocks-typography@2.1.5
|
|
433
466
|
|
|
434
467
|
## 1.0.1
|
|
435
468
|
|
|
436
469
|
### Patch Changes
|
|
437
470
|
|
|
438
|
-
-
|
|
471
|
+
- 572fbf0a: Fix up dependency versions
|
|
439
472
|
|
|
440
473
|
## 1.0.0
|
|
441
474
|
|
|
442
475
|
### Major Changes
|
|
443
476
|
|
|
444
|
-
-
|
|
477
|
+
- 3455afae: Create Pill component
|
|
445
478
|
|
|
446
479
|
## 0.0.3
|
|
447
480
|
|
|
448
481
|
### Patch Changes
|
|
449
482
|
|
|
450
|
-
-
|
|
451
|
-
-
|
|
452
|
-
-
|
|
453
|
-
-
|
|
454
|
-
-
|
|
455
|
-
-
|
|
483
|
+
- Updated dependencies [8dc4a5a3]
|
|
484
|
+
- Updated dependencies [1920feb8]
|
|
485
|
+
- @khanacademy/wonder-blocks-clickable@4.0.2
|
|
486
|
+
- @khanacademy/wonder-blocks-core@6.0.1
|
|
487
|
+
- @khanacademy/wonder-blocks-link@5.0.2
|
|
488
|
+
- @khanacademy/wonder-blocks-typography@2.1.4
|
|
456
489
|
|
|
457
490
|
## 0.0.2
|
|
458
491
|
|
|
459
492
|
### Patch Changes
|
|
460
493
|
|
|
461
|
-
-
|
|
462
|
-
-
|
|
463
|
-
-
|
|
464
|
-
-
|
|
494
|
+
- f230b267: Add `wonder-blocks-pill` package
|
|
495
|
+
- Updated dependencies [f230b267]
|
|
496
|
+
- @khanacademy/wonder-blocks-clickable@4.0.1
|
|
497
|
+
- @khanacademy/wonder-blocks-link@5.0.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.
|
package/dist/es/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
2
|
+
import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose';
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import { StyleSheet } from 'aphrodite';
|
|
3
5
|
import Clickable from '@khanacademy/wonder-blocks-clickable';
|
|
@@ -6,34 +8,6 @@ import { mix } from '@khanacademy/wonder-blocks-tokens';
|
|
|
6
8
|
import { View } from '@khanacademy/wonder-blocks-core';
|
|
7
9
|
import { LabelXSmall, Body, LabelSmall } from '@khanacademy/wonder-blocks-typography';
|
|
8
10
|
|
|
9
|
-
function _extends() {
|
|
10
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
11
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
-
var source = arguments[i];
|
|
13
|
-
for (var key in source) {
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
15
|
-
target[key] = source[key];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
return _extends.apply(this, arguments);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
25
|
-
if (source == null) return {};
|
|
26
|
-
var target = {};
|
|
27
|
-
var sourceKeys = Object.keys(source);
|
|
28
|
-
var key, i;
|
|
29
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
30
|
-
key = sourceKeys[i];
|
|
31
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
32
|
-
target[key] = source[key];
|
|
33
|
-
}
|
|
34
|
-
return target;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
11
|
const _excluded = ["id", "children", "kind", "size", "role", "onClick", "style", "tabIndex", "testId"];
|
|
38
12
|
const PillInner = props => {
|
|
39
13
|
const {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _extends = require('@babel/runtime/helpers/extends');
|
|
4
|
+
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose');
|
|
3
5
|
var React = require('react');
|
|
4
6
|
var aphrodite = require('aphrodite');
|
|
5
7
|
var Clickable = require('@khanacademy/wonder-blocks-clickable');
|
|
@@ -10,55 +12,29 @@ var wonderBlocksTypography = require('@khanacademy/wonder-blocks-typography');
|
|
|
10
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
13
|
|
|
12
14
|
function _interopNamespace(e) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
16
|
+
var n = Object.create(null);
|
|
17
|
+
if (e) {
|
|
18
|
+
Object.keys(e).forEach(function (k) {
|
|
19
|
+
if (k !== 'default') {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return e[k]; }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
22
26
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
n["default"] = e;
|
|
27
|
-
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
n["default"] = e;
|
|
29
|
+
return Object.freeze(n);
|
|
28
30
|
}
|
|
29
31
|
|
|
32
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
33
|
+
var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose);
|
|
30
34
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
31
35
|
var Clickable__default = /*#__PURE__*/_interopDefaultLegacy(Clickable);
|
|
32
36
|
var tokens__namespace = /*#__PURE__*/_interopNamespace(tokens);
|
|
33
37
|
|
|
34
|
-
function _extends() {
|
|
35
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
36
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
37
|
-
var source = arguments[i];
|
|
38
|
-
for (var key in source) {
|
|
39
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
40
|
-
target[key] = source[key];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return target;
|
|
45
|
-
};
|
|
46
|
-
return _extends.apply(this, arguments);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
50
|
-
if (source == null) return {};
|
|
51
|
-
var target = {};
|
|
52
|
-
var sourceKeys = Object.keys(source);
|
|
53
|
-
var key, i;
|
|
54
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
55
|
-
key = sourceKeys[i];
|
|
56
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
57
|
-
target[key] = source[key];
|
|
58
|
-
}
|
|
59
|
-
return target;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
38
|
const _excluded = ["id", "children", "kind", "size", "role", "onClick", "style", "tabIndex", "testId"];
|
|
63
39
|
const PillInner = props => {
|
|
64
40
|
const {
|
|
@@ -88,7 +64,7 @@ const Pill = React__namespace.forwardRef(function Pill(props, ref) {
|
|
|
88
64
|
tabIndex,
|
|
89
65
|
testId
|
|
90
66
|
} = props,
|
|
91
|
-
ariaProps =
|
|
67
|
+
ariaProps = _objectWithoutPropertiesLoose__default["default"](props, _excluded);
|
|
92
68
|
let wrapperSizeStyle;
|
|
93
69
|
switch (size) {
|
|
94
70
|
case "small":
|
|
@@ -103,7 +79,7 @@ const Pill = React__namespace.forwardRef(function Pill(props, ref) {
|
|
|
103
79
|
const colorStyles = _generateColorStyles(!!onClick, kind);
|
|
104
80
|
const defaultStyles = [pillStyles.wrapper, colorStyles.pill, wrapperSizeStyle];
|
|
105
81
|
if (onClick) {
|
|
106
|
-
return React__namespace.createElement(Clickable__default["default"],
|
|
82
|
+
return React__namespace.createElement(Clickable__default["default"], _extends__default["default"]({
|
|
107
83
|
id: id,
|
|
108
84
|
role: role,
|
|
109
85
|
onClick: onClick,
|
|
@@ -115,7 +91,7 @@ const Pill = React__namespace.forwardRef(function Pill(props, ref) {
|
|
|
115
91
|
size: size
|
|
116
92
|
}, children));
|
|
117
93
|
}
|
|
118
|
-
return React__namespace.createElement(wonderBlocksCore.View,
|
|
94
|
+
return React__namespace.createElement(wonderBlocksCore.View, _extends__default["default"]({
|
|
119
95
|
id: id,
|
|
120
96
|
role: role,
|
|
121
97
|
style: [defaultStyles, style],
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-pill",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Pill 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
9
|
"source": "src/index.js",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
|
-
"prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
|
|
13
|
-
},
|
|
14
10
|
"author": "",
|
|
15
11
|
"license": "MIT",
|
|
16
12
|
"publishConfig": {
|
|
17
13
|
"access": "public"
|
|
18
14
|
},
|
|
19
15
|
"dependencies": {
|
|
20
|
-
"@
|
|
21
|
-
"@khanacademy/wonder-blocks-
|
|
22
|
-
"@khanacademy/wonder-blocks-
|
|
23
|
-
"@khanacademy/wonder-blocks-
|
|
24
|
-
"@khanacademy/wonder-blocks-
|
|
16
|
+
"@babel/runtime": "^7.24.5",
|
|
17
|
+
"@khanacademy/wonder-blocks-clickable": "6.1.1",
|
|
18
|
+
"@khanacademy/wonder-blocks-core": "12.1.1",
|
|
19
|
+
"@khanacademy/wonder-blocks-link": "7.1.1",
|
|
20
|
+
"@khanacademy/wonder-blocks-tokens": "4.2.1",
|
|
21
|
+
"@khanacademy/wonder-blocks-typography": "3.1.1"
|
|
25
22
|
},
|
|
26
23
|
"peerDependencies": {
|
|
27
24
|
"aphrodite": "^1.2.5",
|
|
28
25
|
"react": "18.2.0"
|
|
29
26
|
},
|
|
30
27
|
"devDependencies": {
|
|
31
|
-
"@khanacademy/wb-dev-build-settings": "
|
|
28
|
+
"@khanacademy/wb-dev-build-settings": "2.1.1"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
32
32
|
}
|
|
33
33
|
}
|