@patternfly/react-core 5.0.0-alpha.23 → 5.0.0-alpha.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/components/Chip/Chip.d.ts.map +1 -1
  3. package/components/Chip/Chip.js +7 -4
  4. package/components/Chip/Chip.js.map +1 -1
  5. package/components/Label/Label.d.ts +2 -2
  6. package/components/Label/Label.d.ts.map +1 -1
  7. package/components/Label/Label.js +8 -4
  8. package/components/Label/Label.js.map +1 -1
  9. package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
  10. package/dist/esm/components/Chip/Chip.js +7 -4
  11. package/dist/esm/components/Chip/Chip.js.map +1 -1
  12. package/dist/esm/components/Label/Label.d.ts +2 -2
  13. package/dist/esm/components/Label/Label.d.ts.map +1 -1
  14. package/dist/esm/components/Label/Label.js +8 -4
  15. package/dist/esm/components/Label/Label.js.map +1 -1
  16. package/dist/js/components/Chip/Chip.d.ts.map +1 -1
  17. package/dist/js/components/Chip/Chip.js +7 -4
  18. package/dist/js/components/Chip/Chip.js.map +1 -1
  19. package/dist/js/components/Label/Label.d.ts +2 -2
  20. package/dist/js/components/Label/Label.d.ts.map +1 -1
  21. package/dist/js/components/Label/Label.js +8 -4
  22. package/dist/js/components/Label/Label.js.map +1 -1
  23. package/dist/umd/react-core.min.js +1 -1
  24. package/package.json +2 -2
  25. package/src/components/Chip/Chip.tsx +19 -13
  26. package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +149 -109
  27. package/src/components/ChipGroup/__tests__/__snapshots__/ChipGroup.test.tsx.snap +136 -104
  28. package/src/components/Label/Label.tsx +27 -19
  29. package/src/components/Label/__tests__/Label.test.tsx +1 -1
  30. package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +197 -88
  31. package/src/components/Label/examples/LabelCompact.tsx +1 -1
  32. package/src/components/Label/examples/LabelFilled.tsx +15 -8
  33. package/src/components/Label/examples/LabelOutline.tsx +8 -8
  34. package/src/components/Label/examples/LabelRouterLink.tsx +1 -1
  35. package/src/components/LabelGroup/__tests__/__snapshots__/LabelGroup.test.tsx.snap +40 -8
  36. package/src/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +68 -52
  37. package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +68 -52
@@ -8,31 +8,39 @@ exports[`Label editable label 1`] = `
8
8
  <button
9
9
  class="pf-c-label__content"
10
10
  >
11
- Something
11
+ <span
12
+ class="pf-c-label__text"
13
+ >
14
+ Something
15
+ </span>
12
16
  </button>
13
- <button
14
- aria-disabled="false"
15
- aria-label="Close Something"
16
- class="pf-c-button pf-m-plain"
17
- data-ouia-component-id="OUIA-Generated-Button-plain-3"
18
- data-ouia-component-type="PF4/Button"
19
- data-ouia-safe="true"
20
- type="button"
17
+ <span
18
+ class="pf-c-label__actions"
21
19
  >
22
- <svg
23
- aria-hidden="true"
24
- fill="currentColor"
25
- height="1em"
26
- role="img"
27
- style="vertical-align: -0.125em;"
28
- viewBox="0 0 352 512"
29
- width="1em"
20
+ <button
21
+ aria-disabled="false"
22
+ aria-label="Close Something"
23
+ class="pf-c-button pf-m-plain"
24
+ data-ouia-component-id="OUIA-Generated-Button-plain-3"
25
+ data-ouia-component-type="PF4/Button"
26
+ data-ouia-safe="true"
27
+ type="button"
30
28
  >
31
- <path
32
- d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
33
- />
34
- </svg>
35
- </button>
29
+ <svg
30
+ aria-hidden="true"
31
+ fill="currentColor"
32
+ height="1em"
33
+ role="img"
34
+ style="vertical-align: -0.125em;"
35
+ viewBox="0 0 352 512"
36
+ width="1em"
37
+ >
38
+ <path
39
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
40
+ />
41
+ </svg>
42
+ </button>
43
+ </span>
36
44
  </span>
37
45
  </DocumentFragment>
38
46
  `;
@@ -60,7 +68,11 @@ exports[`Label label with additional class name 1`] = `
60
68
  <span
61
69
  class="pf-c-label__content"
62
70
  >
63
- Something
71
+ <span
72
+ class="pf-c-label__text"
73
+ >
74
+ Something
75
+ </span>
64
76
  </span>
65
77
  </span>
66
78
  </DocumentFragment>
@@ -76,7 +88,11 @@ exports[`Label label with additional class name and props 1`] = `
76
88
  <span
77
89
  class="pf-c-label__content"
78
90
  >
79
- Something
91
+ <span
92
+ class="pf-c-label__text"
93
+ >
94
+ Something
95
+ </span>
80
96
  </span>
81
97
  </span>
82
98
  </DocumentFragment>
@@ -90,7 +106,11 @@ exports[`Label label with blue color 1`] = `
90
106
  <span
91
107
  class="pf-c-label__content"
92
108
  >
93
- Something
109
+ <span
110
+ class="pf-c-label__text"
111
+ >
112
+ Something
113
+ </span>
94
114
  </span>
95
115
  </span>
96
116
  </DocumentFragment>
@@ -104,7 +124,11 @@ exports[`Label label with blue color with outline variant 1`] = `
104
124
  <span
105
125
  class="pf-c-label__content"
106
126
  >
107
- Something
127
+ <span
128
+ class="pf-c-label__text"
129
+ >
130
+ Something
131
+ </span>
108
132
  </span>
109
133
  </span>
110
134
  </DocumentFragment>
@@ -118,31 +142,39 @@ exports[`Label label with close button 1`] = `
118
142
  <span
119
143
  class="pf-c-label__content"
120
144
  >
121
- Something
145
+ <span
146
+ class="pf-c-label__text"
147
+ >
148
+ Something
149
+ </span>
122
150
  </span>
123
- <button
124
- aria-disabled="false"
125
- aria-label="Close Something"
126
- class="pf-c-button pf-m-plain"
127
- data-ouia-component-id="OUIA-Generated-Button-plain-1"
128
- data-ouia-component-type="PF4/Button"
129
- data-ouia-safe="true"
130
- type="button"
151
+ <span
152
+ class="pf-c-label__actions"
131
153
  >
132
- <svg
133
- aria-hidden="true"
134
- fill="currentColor"
135
- height="1em"
136
- role="img"
137
- style="vertical-align: -0.125em;"
138
- viewBox="0 0 352 512"
139
- width="1em"
154
+ <button
155
+ aria-disabled="false"
156
+ aria-label="Close Something"
157
+ class="pf-c-button pf-m-plain"
158
+ data-ouia-component-id="OUIA-Generated-Button-plain-1"
159
+ data-ouia-component-type="PF4/Button"
160
+ data-ouia-safe="true"
161
+ type="button"
140
162
  >
141
- <path
142
- d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
143
- />
144
- </svg>
145
- </button>
163
+ <svg
164
+ aria-hidden="true"
165
+ fill="currentColor"
166
+ height="1em"
167
+ role="img"
168
+ style="vertical-align: -0.125em;"
169
+ viewBox="0 0 352 512"
170
+ width="1em"
171
+ >
172
+ <path
173
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
174
+ />
175
+ </svg>
176
+ </button>
177
+ </span>
146
178
  </span>
147
179
  </DocumentFragment>
148
180
  `;
@@ -155,31 +187,39 @@ exports[`Label label with close button and outline variant 1`] = `
155
187
  <span
156
188
  class="pf-c-label__content"
157
189
  >
158
- Something
190
+ <span
191
+ class="pf-c-label__text"
192
+ >
193
+ Something
194
+ </span>
159
195
  </span>
160
- <button
161
- aria-disabled="false"
162
- aria-label="Close Something"
163
- class="pf-c-button pf-m-plain"
164
- data-ouia-component-id="OUIA-Generated-Button-plain-2"
165
- data-ouia-component-type="PF4/Button"
166
- data-ouia-safe="true"
167
- type="button"
196
+ <span
197
+ class="pf-c-label__actions"
168
198
  >
169
- <svg
170
- aria-hidden="true"
171
- fill="currentColor"
172
- height="1em"
173
- role="img"
174
- style="vertical-align: -0.125em;"
175
- viewBox="0 0 352 512"
176
- width="1em"
199
+ <button
200
+ aria-disabled="false"
201
+ aria-label="Close Something"
202
+ class="pf-c-button pf-m-plain"
203
+ data-ouia-component-id="OUIA-Generated-Button-plain-2"
204
+ data-ouia-component-type="PF4/Button"
205
+ data-ouia-safe="true"
206
+ type="button"
177
207
  >
178
- <path
179
- d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
180
- />
181
- </svg>
182
- </button>
208
+ <svg
209
+ aria-hidden="true"
210
+ fill="currentColor"
211
+ height="1em"
212
+ role="img"
213
+ style="vertical-align: -0.125em;"
214
+ viewBox="0 0 352 512"
215
+ width="1em"
216
+ >
217
+ <path
218
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
219
+ />
220
+ </svg>
221
+ </button>
222
+ </span>
183
223
  </span>
184
224
  </DocumentFragment>
185
225
  `;
@@ -192,7 +232,11 @@ exports[`Label label with cyan color 1`] = `
192
232
  <span
193
233
  class="pf-c-label__content"
194
234
  >
195
- Something
235
+ <span
236
+ class="pf-c-label__text"
237
+ >
238
+ Something
239
+ </span>
196
240
  </span>
197
241
  </span>
198
242
  </DocumentFragment>
@@ -206,7 +250,11 @@ exports[`Label label with cyan color with outline variant 1`] = `
206
250
  <span
207
251
  class="pf-c-label__content"
208
252
  >
209
- Something
253
+ <span
254
+ class="pf-c-label__text"
255
+ >
256
+ Something
257
+ </span>
210
258
  </span>
211
259
  </span>
212
260
  </DocumentFragment>
@@ -220,7 +268,11 @@ exports[`Label label with green color 1`] = `
220
268
  <span
221
269
  class="pf-c-label__content"
222
270
  >
223
- Something
271
+ <span
272
+ class="pf-c-label__text"
273
+ >
274
+ Something
275
+ </span>
224
276
  </span>
225
277
  </span>
226
278
  </DocumentFragment>
@@ -234,7 +286,11 @@ exports[`Label label with green color with outline variant 1`] = `
234
286
  <span
235
287
  class="pf-c-label__content"
236
288
  >
237
- Something
289
+ <span
290
+ class="pf-c-label__text"
291
+ >
292
+ Something
293
+ </span>
238
294
  </span>
239
295
  </span>
240
296
  </DocumentFragment>
@@ -248,7 +304,11 @@ exports[`Label label with grey color 1`] = `
248
304
  <span
249
305
  class="pf-c-label__content"
250
306
  >
251
- Something
307
+ <span
308
+ class="pf-c-label__text"
309
+ >
310
+ Something
311
+ </span>
252
312
  </span>
253
313
  </span>
254
314
  </DocumentFragment>
@@ -262,7 +322,11 @@ exports[`Label label with grey color with outline variant 1`] = `
262
322
  <span
263
323
  class="pf-c-label__content"
264
324
  >
265
- Something
325
+ <span
326
+ class="pf-c-label__text"
327
+ >
328
+ Something
329
+ </span>
266
330
  </span>
267
331
  </span>
268
332
  </DocumentFragment>
@@ -277,7 +341,11 @@ exports[`Label label with href 1`] = `
277
341
  class="pf-c-label__content"
278
342
  href="#"
279
343
  >
280
- Something
344
+ <span
345
+ class="pf-c-label__text"
346
+ >
347
+ Something
348
+ </span>
281
349
  </a>
282
350
  </span>
283
351
  </DocumentFragment>
@@ -292,7 +360,11 @@ exports[`Label label with href with outline variant 1`] = `
292
360
  class="pf-c-label__content"
293
361
  href="#"
294
362
  >
295
- Something
363
+ <span
364
+ class="pf-c-label__text"
365
+ >
366
+ Something
367
+ </span>
296
368
  </a>
297
369
  </span>
298
370
  </DocumentFragment>
@@ -306,7 +378,11 @@ exports[`Label label with orange color 1`] = `
306
378
  <span
307
379
  class="pf-c-label__content"
308
380
  >
309
- Something
381
+ <span
382
+ class="pf-c-label__text"
383
+ >
384
+ Something
385
+ </span>
310
386
  </span>
311
387
  </span>
312
388
  </DocumentFragment>
@@ -320,7 +396,11 @@ exports[`Label label with orange color with outline variant 1`] = `
320
396
  <span
321
397
  class="pf-c-label__content"
322
398
  >
323
- Something
399
+ <span
400
+ class="pf-c-label__text"
401
+ >
402
+ Something
403
+ </span>
324
404
  </span>
325
405
  </span>
326
406
  </DocumentFragment>
@@ -334,7 +414,11 @@ exports[`Label label with purple color 1`] = `
334
414
  <span
335
415
  class="pf-c-label__content"
336
416
  >
337
- Something
417
+ <span
418
+ class="pf-c-label__text"
419
+ >
420
+ Something
421
+ </span>
338
422
  </span>
339
423
  </span>
340
424
  </DocumentFragment>
@@ -348,7 +432,11 @@ exports[`Label label with purple color with outline variant 1`] = `
348
432
  <span
349
433
  class="pf-c-label__content"
350
434
  >
351
- Something
435
+ <span
436
+ class="pf-c-label__text"
437
+ >
438
+ Something
439
+ </span>
352
440
  </span>
353
441
  </span>
354
442
  </DocumentFragment>
@@ -362,7 +450,11 @@ exports[`Label label with red color 1`] = `
362
450
  <span
363
451
  class="pf-c-label__content"
364
452
  >
365
- Something
453
+ <span
454
+ class="pf-c-label__text"
455
+ >
456
+ Something
457
+ </span>
366
458
  </span>
367
459
  </span>
368
460
  </DocumentFragment>
@@ -376,7 +468,11 @@ exports[`Label label with red color with outline variant 1`] = `
376
468
  <span
377
469
  class="pf-c-label__content"
378
470
  >
379
- Something
471
+ <span
472
+ class="pf-c-label__text"
473
+ >
474
+ Something
475
+ </span>
380
476
  </span>
381
477
  </span>
382
478
  </DocumentFragment>
@@ -392,8 +488,9 @@ exports[`Label label with truncation 1`] = `
392
488
  >
393
489
  <span
394
490
  class="pf-c-label__text"
491
+ style="--pf-c-label__text--MaxWidth: 16ch;"
395
492
  >
396
- Something very very very very very long that should be truncated
493
+ textMaxWidth set at 16ch on this very long label that should be truncated
397
494
  </span>
398
495
  </span>
399
496
  </span>
@@ -408,7 +505,11 @@ exports[`Label renders 1`] = `
408
505
  <span
409
506
  class="pf-c-label__content"
410
507
  >
411
- Something
508
+ <span
509
+ class="pf-c-label__text"
510
+ >
511
+ Something
512
+ </span>
412
513
  </span>
413
514
  </span>
414
515
  </DocumentFragment>
@@ -422,7 +523,11 @@ exports[`Label renders with isCompact 1`] = `
422
523
  <span
423
524
  class="pf-c-label__content"
424
525
  >
425
- Something
526
+ <span
527
+ class="pf-c-label__text"
528
+ >
529
+ Something
530
+ </span>
426
531
  </span>
427
532
  </span>
428
533
  </DocumentFragment>
@@ -436,7 +541,11 @@ exports[`Label renders with outline variant 1`] = `
436
541
  <span
437
542
  class="pf-c-label__content"
438
543
  >
439
- Something
544
+ <span
545
+ class="pf-c-label__text"
546
+ >
547
+ Something
548
+ </span>
440
549
  </span>
441
550
  </span>
442
551
  </DocumentFragment>
@@ -20,7 +20,7 @@ export const LabelCompact: React.FunctionComponent = () => (
20
20
  <Label isCompact href="#compact" onClose={() => Function.prototype}>
21
21
  Compact link removable
22
22
  </Label>
23
- <Label isCompact icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
23
+ <Label isCompact icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
24
24
  Compact label with icon that overflows
25
25
  </Label>
26
26
  </React.Fragment>
@@ -13,7 +13,7 @@ export const LabelFilled: React.FunctionComponent = () => (
13
13
  <Label href="#filled" onClose={() => Function.prototype}>
14
14
  Grey link removable
15
15
  </Label>
16
- <Label icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
16
+ <Label icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
17
17
  Grey label with icon that overflows
18
18
  </Label>
19
19
  <br />
@@ -34,7 +34,7 @@ export const LabelFilled: React.FunctionComponent = () => (
34
34
  <Label color="blue" href="#filled" onClose={() => Function.prototype}>
35
35
  Blue link removable
36
36
  </Label>
37
- <Label color="blue" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
37
+ <Label color="blue" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
38
38
  Blue label with icon that overflows
39
39
  </Label>
40
40
  <br />
@@ -55,7 +55,7 @@ export const LabelFilled: React.FunctionComponent = () => (
55
55
  <Label color="green" href="#filled" onClose={() => Function.prototype}>
56
56
  Green link removable
57
57
  </Label>
58
- <Label color="green" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
58
+ <Label color="green" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
59
59
  Green label with icon that overflows
60
60
  </Label>
61
61
  <br />
@@ -76,7 +76,7 @@ export const LabelFilled: React.FunctionComponent = () => (
76
76
  <Label color="orange" href="#filled" onClose={() => Function.prototype}>
77
77
  Orange link removable
78
78
  </Label>
79
- <Label color="orange" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
79
+ <Label color="orange" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
80
80
  Orange label with icon that overflows
81
81
  </Label>
82
82
  <br />
@@ -97,7 +97,7 @@ export const LabelFilled: React.FunctionComponent = () => (
97
97
  <Label color="red" href="#filled" onClose={() => Function.prototype}>
98
98
  Red link removable
99
99
  </Label>
100
- <Label color="red" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
100
+ <Label color="red" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
101
101
  Red label with icon that overflows
102
102
  </Label>
103
103
  <br />
@@ -118,7 +118,7 @@ export const LabelFilled: React.FunctionComponent = () => (
118
118
  <Label color="purple" href="#filled" onClose={() => Function.prototype}>
119
119
  Purple link removable
120
120
  </Label>
121
- <Label color="purple" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
121
+ <Label color="purple" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
122
122
  Purple label with icon that overflows
123
123
  </Label>
124
124
  <br />
@@ -139,7 +139,7 @@ export const LabelFilled: React.FunctionComponent = () => (
139
139
  <Label color="cyan" href="#filled" onClose={() => Function.prototype}>
140
140
  Cyan link removable
141
141
  </Label>
142
- <Label color="cyan" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
142
+ <Label color="cyan" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
143
143
  Cyan label with icon that overflows
144
144
  </Label>
145
145
  <br />
@@ -160,8 +160,15 @@ export const LabelFilled: React.FunctionComponent = () => (
160
160
  <Label color="gold" href="#filled" onClose={() => Function.prototype}>
161
161
  Gold link removable
162
162
  </Label>
163
- <Label color="gold" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
163
+ <Label color="gold" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
164
164
  Gold label with icon that overflows
165
165
  </Label>
166
+ <br />
167
+ <br />
168
+ <div style={{width: "250px"}}>
169
+ <Label>
170
+ Label that overflows its parent, but has no textMaxWidth on its own
171
+ </Label>
172
+ </div>
166
173
  </React.Fragment>
167
174
  );
@@ -20,7 +20,7 @@ export const LabelOutline: React.FunctionComponent = () => (
20
20
  <Label variant="outline" href="#outline" onClose={() => Function.prototype}>
21
21
  Grey link removable
22
22
  </Label>
23
- <Label variant="outline" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
23
+ <Label variant="outline" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
24
24
  Grey label with icon that overflows
25
25
  </Label>
26
26
  <br />
@@ -43,7 +43,7 @@ export const LabelOutline: React.FunctionComponent = () => (
43
43
  <Label variant="outline" color="blue" href="#outline" onClose={() => Function.prototype}>
44
44
  Blue link removable
45
45
  </Label>
46
- <Label variant="outline" color="blue" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
46
+ <Label variant="outline" color="blue" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
47
47
  Blue label with icon that overflows
48
48
  </Label>
49
49
  <br />
@@ -66,7 +66,7 @@ export const LabelOutline: React.FunctionComponent = () => (
66
66
  <Label variant="outline" color="green" href="#outline" onClose={() => Function.prototype}>
67
67
  Green link removable
68
68
  </Label>
69
- <Label variant="outline" color="green" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
69
+ <Label variant="outline" color="green" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
70
70
  Green label with icon that overflows
71
71
  </Label>
72
72
  <br />
@@ -89,7 +89,7 @@ export const LabelOutline: React.FunctionComponent = () => (
89
89
  <Label variant="outline" color="orange" href="#outline" onClose={() => Function.prototype}>
90
90
  Orange link removable
91
91
  </Label>
92
- <Label variant="outline" color="orange" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
92
+ <Label variant="outline" color="orange" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
93
93
  Orange label with icon that overflows
94
94
  </Label>
95
95
  <br />
@@ -112,7 +112,7 @@ export const LabelOutline: React.FunctionComponent = () => (
112
112
  <Label variant="outline" color="red" href="#outline" onClose={() => Function.prototype}>
113
113
  Red link removable
114
114
  </Label>
115
- <Label variant="outline" color="red" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
115
+ <Label variant="outline" color="red" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
116
116
  Red label with icon that overflows
117
117
  </Label>
118
118
  <br />
@@ -135,7 +135,7 @@ export const LabelOutline: React.FunctionComponent = () => (
135
135
  <Label variant="outline" color="purple" href="#outline" onClose={() => Function.prototype}>
136
136
  Purple link removable
137
137
  </Label>
138
- <Label variant="outline" color="purple" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
138
+ <Label variant="outline" color="purple" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
139
139
  Purple label with icon that overflows
140
140
  </Label>
141
141
  <br />
@@ -158,7 +158,7 @@ export const LabelOutline: React.FunctionComponent = () => (
158
158
  <Label variant="outline" color="cyan" href="#outline" onClose={() => Function.prototype}>
159
159
  Cyan link removable
160
160
  </Label>
161
- <Label variant="outline" color="cyan" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
161
+ <Label variant="outline" color="cyan" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
162
162
  Cyan label with icon that overflows
163
163
  </Label>
164
164
  <br />
@@ -181,7 +181,7 @@ export const LabelOutline: React.FunctionComponent = () => (
181
181
  <Label variant="outline" color="gold" href="#outline" onClose={() => Function.prototype}>
182
182
  Gold link removable
183
183
  </Label>
184
- <Label variant="outline" color="gold" icon={<InfoCircleIcon />} onClose={() => Function.prototype} isTruncated>
184
+ <Label variant="outline" color="gold" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
185
185
  Gold label with icon that overflows
186
186
  </Label>
187
187
  </React.Fragment>
@@ -8,12 +8,12 @@ export const LabelRouterLink: React.FunctionComponent = () => (
8
8
  color="blue"
9
9
  icon={<InfoCircleIcon />}
10
10
  onClose={() => Function.prototype}
11
- isTruncated
12
11
  render={({ className, content, componentRef }) => (
13
12
  <Link to="/" className={className} innerRef={componentRef}>
14
13
  {content}
15
14
  </Link>
16
15
  )}
16
+ textMaxWidth="16ch"
17
17
  >
18
18
  Blue label router link with icon that overflows
19
19
  </Label>