@khanacademy/wonder-blocks-pill 3.0.7 → 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 +232 -201
- 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,454 +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
|
+
|
|
24
|
+
## 3.0.8
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
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
|
|
33
|
+
|
|
3
34
|
## 3.0.7
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
6
37
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
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
|
|
12
43
|
|
|
13
44
|
## 3.0.6
|
|
14
45
|
|
|
15
46
|
### Patch Changes
|
|
16
47
|
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
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
|
|
21
52
|
|
|
22
53
|
## 3.0.5
|
|
23
54
|
|
|
24
55
|
### Patch Changes
|
|
25
56
|
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
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
|
|
31
62
|
|
|
32
63
|
## 3.0.4
|
|
33
64
|
|
|
34
65
|
### Patch Changes
|
|
35
66
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
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
|
|
43
74
|
|
|
44
75
|
## 3.0.3
|
|
45
76
|
|
|
46
77
|
### Patch Changes
|
|
47
78
|
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
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
|
|
53
84
|
|
|
54
85
|
## 3.0.2
|
|
55
86
|
|
|
56
87
|
### Patch Changes
|
|
57
88
|
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
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
|
|
65
96
|
|
|
66
97
|
## 3.0.1
|
|
67
98
|
|
|
68
99
|
### Patch Changes
|
|
69
100
|
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
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
|
|
75
106
|
|
|
76
107
|
## 3.0.0
|
|
77
108
|
|
|
78
109
|
### Major Changes
|
|
79
110
|
|
|
80
|
-
-
|
|
111
|
+
- e6abdd17: Upgrade to React 18
|
|
81
112
|
|
|
82
113
|
### Patch Changes
|
|
83
114
|
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
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
|
|
90
121
|
|
|
91
122
|
## 2.5.3
|
|
92
123
|
|
|
93
124
|
### Patch Changes
|
|
94
125
|
|
|
95
|
-
-
|
|
126
|
+
- @khanacademy/wonder-blocks-link@6.1.10
|
|
96
127
|
|
|
97
128
|
## 2.5.2
|
|
98
129
|
|
|
99
130
|
### Patch Changes
|
|
100
131
|
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
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
|
|
105
136
|
|
|
106
137
|
## 2.5.1
|
|
107
138
|
|
|
108
139
|
### Patch Changes
|
|
109
140
|
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
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
|
|
117
148
|
|
|
118
149
|
## 2.5.0
|
|
119
150
|
|
|
120
151
|
### Minor Changes
|
|
121
152
|
|
|
122
|
-
-
|
|
153
|
+
- 5fb863d0: Add `tabIndex` prop to customize keyboard focusability of clickable pills
|
|
123
154
|
|
|
124
155
|
## 2.4.6
|
|
125
156
|
|
|
126
157
|
### Patch Changes
|
|
127
158
|
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
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
|
|
133
164
|
|
|
134
165
|
## 2.4.5
|
|
135
166
|
|
|
136
167
|
### Patch Changes
|
|
137
168
|
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
-
|
|
143
|
-
-
|
|
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
|
|
144
175
|
|
|
145
176
|
## 2.4.4
|
|
146
177
|
|
|
147
178
|
### Patch Changes
|
|
148
179
|
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
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
|
|
156
187
|
|
|
157
188
|
## 2.4.3
|
|
158
189
|
|
|
159
190
|
### Patch Changes
|
|
160
191
|
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
-
|
|
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
|
|
166
197
|
|
|
167
198
|
## 2.4.2
|
|
168
199
|
|
|
169
200
|
### Patch Changes
|
|
170
201
|
|
|
171
|
-
-
|
|
172
|
-
-
|
|
173
|
-
-
|
|
202
|
+
- Updated dependencies [f099cf87]
|
|
203
|
+
- @khanacademy/wonder-blocks-clickable@4.2.3
|
|
204
|
+
- @khanacademy/wonder-blocks-link@6.1.3
|
|
174
205
|
|
|
175
206
|
## 2.4.1
|
|
176
207
|
|
|
177
208
|
### Patch Changes
|
|
178
209
|
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
-
|
|
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
|
|
184
215
|
|
|
185
216
|
## 2.4.0
|
|
186
217
|
|
|
187
218
|
### Minor Changes
|
|
188
219
|
|
|
189
|
-
-
|
|
220
|
+
- bf1e3d87: Add tabindex to pill props
|
|
190
221
|
|
|
191
222
|
## 2.3.0
|
|
192
223
|
|
|
193
224
|
### Minor Changes
|
|
194
225
|
|
|
195
|
-
-
|
|
226
|
+
- e8d25c90: Aria props are now properly applied to pill component.
|
|
196
227
|
|
|
197
228
|
## 2.2.1
|
|
198
229
|
|
|
199
230
|
### Patch Changes
|
|
200
231
|
|
|
201
|
-
-
|
|
202
|
-
-
|
|
203
|
-
-
|
|
204
|
-
-
|
|
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
|
|
205
236
|
|
|
206
237
|
## 2.2.0
|
|
207
238
|
|
|
208
239
|
### Minor Changes
|
|
209
240
|
|
|
210
|
-
-
|
|
241
|
+
- 58075352: Change testId to render the default Testing Library HTML attribute: data-testid (was data-test-id)
|
|
211
242
|
|
|
212
243
|
### Patch Changes
|
|
213
244
|
|
|
214
|
-
-
|
|
215
|
-
-
|
|
216
|
-
-
|
|
217
|
-
-
|
|
218
|
-
-
|
|
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
|
|
219
250
|
|
|
220
251
|
## 2.1.2
|
|
221
252
|
|
|
222
253
|
### Patch Changes
|
|
223
254
|
|
|
224
|
-
-
|
|
225
|
-
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
-
|
|
229
|
-
-
|
|
230
|
-
-
|
|
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
|
|
231
262
|
|
|
232
263
|
## 2.1.1
|
|
233
264
|
|
|
234
265
|
### Patch Changes
|
|
235
266
|
|
|
236
|
-
-
|
|
237
|
-
-
|
|
238
|
-
-
|
|
267
|
+
- Updated dependencies [e6433bee]
|
|
268
|
+
- @khanacademy/wonder-blocks-clickable@4.1.2
|
|
269
|
+
- @khanacademy/wonder-blocks-link@6.0.10
|
|
239
270
|
|
|
240
271
|
## 2.1.0
|
|
241
272
|
|
|
242
273
|
### Minor Changes
|
|
243
274
|
|
|
244
|
-
-
|
|
275
|
+
- 0c3cbcea: Add transparent variant
|
|
245
276
|
|
|
246
277
|
### Patch Changes
|
|
247
278
|
|
|
248
|
-
-
|
|
249
|
-
-
|
|
250
|
-
-
|
|
251
|
-
-
|
|
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
|
|
252
283
|
|
|
253
284
|
## 2.0.3
|
|
254
285
|
|
|
255
286
|
### Patch Changes
|
|
256
287
|
|
|
257
|
-
-
|
|
258
|
-
-
|
|
259
|
-
-
|
|
288
|
+
- Updated dependencies [60fdac1c]
|
|
289
|
+
- @khanacademy/wonder-blocks-clickable@4.1.0
|
|
290
|
+
- @khanacademy/wonder-blocks-link@6.0.8
|
|
260
291
|
|
|
261
292
|
## 2.0.2
|
|
262
293
|
|
|
263
294
|
### Patch Changes
|
|
264
295
|
|
|
265
|
-
-
|
|
266
|
-
-
|
|
267
|
-
-
|
|
268
|
-
-
|
|
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
|
|
269
300
|
|
|
270
301
|
## 2.0.1
|
|
271
302
|
|
|
272
303
|
### Patch Changes
|
|
273
304
|
|
|
274
|
-
-
|
|
275
|
-
-
|
|
276
|
-
-
|
|
277
|
-
-
|
|
278
|
-
-
|
|
279
|
-
-
|
|
280
|
-
-
|
|
281
|
-
-
|
|
282
|
-
-
|
|
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
|
|
283
314
|
|
|
284
315
|
## 2.0.0
|
|
285
316
|
|
|
286
317
|
### Major Changes
|
|
287
318
|
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
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.
|
|
291
322
|
|
|
292
323
|
## 1.1.0
|
|
293
324
|
|
|
294
325
|
### Minor Changes
|
|
295
326
|
|
|
296
|
-
-
|
|
327
|
+
- 80592e75: Added more colors to Pill, small pills are now 24px tall with 14px font size. Tokens (theming) now include pill colors.
|
|
297
328
|
|
|
298
329
|
### Patch Changes
|
|
299
330
|
|
|
300
|
-
-
|
|
301
|
-
-
|
|
331
|
+
- Updated dependencies [80592e75]
|
|
332
|
+
- @khanacademy/wonder-blocks-theming@1.3.0
|
|
302
333
|
|
|
303
334
|
## 1.0.15
|
|
304
335
|
|
|
305
336
|
### Patch Changes
|
|
306
337
|
|
|
307
|
-
-
|
|
308
|
-
-
|
|
309
|
-
-
|
|
310
|
-
-
|
|
311
|
-
-
|
|
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
|
|
312
343
|
|
|
313
344
|
## 1.0.14
|
|
314
345
|
|
|
315
346
|
### Patch Changes
|
|
316
347
|
|
|
317
|
-
-
|
|
348
|
+
- @khanacademy/wonder-blocks-link@6.0.4
|
|
318
349
|
|
|
319
350
|
## 1.0.13
|
|
320
351
|
|
|
321
352
|
### Patch Changes
|
|
322
353
|
|
|
323
|
-
-
|
|
354
|
+
- @khanacademy/wonder-blocks-link@6.0.3
|
|
324
355
|
|
|
325
356
|
## 1.0.12
|
|
326
357
|
|
|
327
358
|
### Patch Changes
|
|
328
359
|
|
|
329
|
-
-
|
|
330
|
-
-
|
|
331
|
-
-
|
|
360
|
+
- Updated dependencies [6b8bf8d5]
|
|
361
|
+
- @khanacademy/wonder-blocks-clickable@4.0.11
|
|
362
|
+
- @khanacademy/wonder-blocks-link@6.0.2
|
|
332
363
|
|
|
333
364
|
## 1.0.11
|
|
334
365
|
|
|
335
366
|
### Patch Changes
|
|
336
367
|
|
|
337
|
-
-
|
|
338
|
-
-
|
|
339
|
-
-
|
|
368
|
+
- Updated dependencies [7b24db93]
|
|
369
|
+
- @khanacademy/wonder-blocks-clickable@4.0.10
|
|
370
|
+
- @khanacademy/wonder-blocks-link@6.0.1
|
|
340
371
|
|
|
341
372
|
## 1.0.10
|
|
342
373
|
|
|
343
374
|
### Patch Changes
|
|
344
375
|
|
|
345
|
-
-
|
|
346
|
-
-
|
|
376
|
+
- Updated dependencies [d65b6000]
|
|
377
|
+
- @khanacademy/wonder-blocks-link@6.0.0
|
|
347
378
|
|
|
348
379
|
## 1.0.9
|
|
349
380
|
|
|
350
381
|
### Patch Changes
|
|
351
382
|
|
|
352
|
-
-
|
|
353
|
-
-
|
|
354
|
-
-
|
|
355
|
-
-
|
|
356
|
-
-
|
|
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
|
|
357
388
|
|
|
358
389
|
## 1.0.8
|
|
359
390
|
|
|
360
391
|
### Patch Changes
|
|
361
392
|
|
|
362
|
-
-
|
|
363
|
-
-
|
|
393
|
+
- 5aabf760: Copy tweaks (forcing a new version)
|
|
394
|
+
- @khanacademy/wonder-blocks-link@5.0.9
|
|
364
395
|
|
|
365
396
|
## 1.0.7
|
|
366
397
|
|
|
367
398
|
### Patch Changes
|
|
368
399
|
|
|
369
|
-
-
|
|
370
|
-
-
|
|
371
|
-
-
|
|
372
|
-
-
|
|
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
|
|
373
404
|
|
|
374
405
|
## 1.0.6
|
|
375
406
|
|
|
376
407
|
### Patch Changes
|
|
377
408
|
|
|
378
|
-
-
|
|
379
|
-
-
|
|
380
|
-
-
|
|
409
|
+
- Updated dependencies [80cab317]
|
|
410
|
+
- @khanacademy/wonder-blocks-clickable@4.0.7
|
|
411
|
+
- @khanacademy/wonder-blocks-link@5.0.7
|
|
381
412
|
|
|
382
413
|
## 1.0.5
|
|
383
414
|
|
|
384
415
|
### Patch Changes
|
|
385
416
|
|
|
386
|
-
-
|
|
387
|
-
-
|
|
388
|
-
-
|
|
389
|
-
-
|
|
390
|
-
-
|
|
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
|
|
391
422
|
|
|
392
423
|
## 1.0.4
|
|
393
424
|
|
|
394
425
|
### Patch Changes
|
|
395
426
|
|
|
396
|
-
-
|
|
397
|
-
-
|
|
398
|
-
-
|
|
399
|
-
-
|
|
400
|
-
-
|
|
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
|
|
401
432
|
|
|
402
433
|
## 1.0.3
|
|
403
434
|
|
|
404
435
|
### Patch Changes
|
|
405
436
|
|
|
406
|
-
-
|
|
407
|
-
-
|
|
408
|
-
-
|
|
409
|
-
-
|
|
410
|
-
-
|
|
411
|
-
-
|
|
412
|
-
-
|
|
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
|
|
413
444
|
|
|
414
445
|
## 1.0.2
|
|
415
446
|
|
|
416
447
|
### Patch Changes
|
|
417
448
|
|
|
418
|
-
-
|
|
419
|
-
-
|
|
420
|
-
-
|
|
421
|
-
-
|
|
422
|
-
-
|
|
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
|
|
423
454
|
|
|
424
455
|
## 1.0.1
|
|
425
456
|
|
|
426
457
|
### Patch Changes
|
|
427
458
|
|
|
428
|
-
-
|
|
459
|
+
- 572fbf0a: Fix up dependency versions
|
|
429
460
|
|
|
430
461
|
## 1.0.0
|
|
431
462
|
|
|
432
463
|
### Major Changes
|
|
433
464
|
|
|
434
|
-
-
|
|
465
|
+
- 3455afae: Create Pill component
|
|
435
466
|
|
|
436
467
|
## 0.0.3
|
|
437
468
|
|
|
438
469
|
### Patch Changes
|
|
439
470
|
|
|
440
|
-
-
|
|
441
|
-
-
|
|
442
|
-
-
|
|
443
|
-
-
|
|
444
|
-
-
|
|
445
|
-
-
|
|
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
|
|
446
477
|
|
|
447
478
|
## 0.0.2
|
|
448
479
|
|
|
449
480
|
### Patch Changes
|
|
450
481
|
|
|
451
|
-
-
|
|
452
|
-
-
|
|
453
|
-
-
|
|
454
|
-
-
|
|
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
|
}
|