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