@patternfly/react-core 6.0.0-alpha.36 → 6.0.0-alpha.38

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 (148) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/components/package.json +1 -1
  3. package/deprecated/package.json +1 -1
  4. package/dist/dynamic/components/AboutModal/package.json +1 -1
  5. package/dist/dynamic/components/Accordion/package.json +1 -1
  6. package/dist/dynamic/components/ActionList/package.json +1 -1
  7. package/dist/dynamic/components/Alert/package.json +1 -1
  8. package/dist/dynamic/components/Avatar/package.json +1 -1
  9. package/dist/dynamic/components/BackToTop/package.json +1 -1
  10. package/dist/dynamic/components/Backdrop/package.json +1 -1
  11. package/dist/dynamic/components/BackgroundImage/package.json +1 -1
  12. package/dist/dynamic/components/Badge/package.json +1 -1
  13. package/dist/dynamic/components/Banner/package.json +1 -1
  14. package/dist/dynamic/components/Brand/package.json +1 -1
  15. package/dist/dynamic/components/Breadcrumb/package.json +1 -1
  16. package/dist/dynamic/components/Button/package.json +1 -1
  17. package/dist/dynamic/components/CalendarMonth/package.json +1 -1
  18. package/dist/dynamic/components/Card/package.json +1 -1
  19. package/dist/dynamic/components/Checkbox/package.json +1 -1
  20. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  21. package/dist/dynamic/components/CodeBlock/package.json +1 -1
  22. package/dist/dynamic/components/DataList/package.json +1 -1
  23. package/dist/dynamic/components/DatePicker/package.json +1 -1
  24. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  25. package/dist/dynamic/components/Divider/package.json +1 -1
  26. package/dist/dynamic/components/DragDrop/package.json +1 -1
  27. package/dist/dynamic/components/Drawer/package.json +1 -1
  28. package/dist/dynamic/components/Dropdown/package.json +1 -1
  29. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  30. package/dist/dynamic/components/EmptyState/package.json +1 -1
  31. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  32. package/dist/dynamic/components/FileUpload/package.json +1 -1
  33. package/dist/dynamic/components/Form/package.json +1 -1
  34. package/dist/dynamic/components/FormSelect/package.json +1 -1
  35. package/dist/dynamic/components/HelperText/package.json +1 -1
  36. package/dist/dynamic/components/Hint/package.json +1 -1
  37. package/dist/dynamic/components/Icon/package.json +1 -1
  38. package/dist/dynamic/components/InputGroup/package.json +1 -1
  39. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  40. package/dist/dynamic/components/Label/package.json +1 -1
  41. package/dist/dynamic/components/List/package.json +1 -1
  42. package/dist/dynamic/components/LoginPage/package.json +1 -1
  43. package/dist/dynamic/components/Masthead/package.json +1 -1
  44. package/dist/dynamic/components/Menu/package.json +1 -1
  45. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  46. package/dist/dynamic/components/Modal/package.json +1 -1
  47. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  48. package/dist/dynamic/components/Nav/package.json +1 -1
  49. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  50. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  51. package/dist/dynamic/components/NumberInput/package.json +1 -1
  52. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  53. package/dist/dynamic/components/Page/package.json +1 -1
  54. package/dist/dynamic/components/Pagination/package.json +1 -1
  55. package/dist/dynamic/components/Panel/package.json +1 -1
  56. package/dist/dynamic/components/Popover/package.json +1 -1
  57. package/dist/dynamic/components/Progress/package.json +1 -1
  58. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  59. package/dist/dynamic/components/Radio/package.json +1 -1
  60. package/dist/dynamic/components/SearchInput/package.json +1 -1
  61. package/dist/dynamic/components/Select/package.json +1 -1
  62. package/dist/dynamic/components/Sidebar/package.json +1 -1
  63. package/dist/dynamic/components/SimpleList/package.json +1 -1
  64. package/dist/dynamic/components/Skeleton/package.json +1 -1
  65. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  66. package/dist/dynamic/components/Slider/package.json +1 -1
  67. package/dist/dynamic/components/Spinner/package.json +1 -1
  68. package/dist/dynamic/components/Switch/package.json +1 -1
  69. package/dist/dynamic/components/Tabs/package.json +1 -1
  70. package/dist/dynamic/components/Text/package.json +1 -1
  71. package/dist/dynamic/components/TextArea/package.json +1 -1
  72. package/dist/dynamic/components/TextInput/package.json +1 -1
  73. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  74. package/dist/dynamic/components/Tile/package.json +1 -1
  75. package/dist/dynamic/components/TimePicker/package.json +1 -1
  76. package/dist/dynamic/components/Timestamp/package.json +1 -1
  77. package/dist/dynamic/components/Title/package.json +1 -1
  78. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  79. package/dist/dynamic/components/Toolbar/package.json +1 -1
  80. package/dist/dynamic/components/Tooltip/package.json +1 -1
  81. package/dist/dynamic/components/TreeView/package.json +1 -1
  82. package/dist/dynamic/components/Truncate/package.json +1 -1
  83. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  84. package/dist/dynamic/components/Wizard/package.json +1 -1
  85. package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
  90. package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
  91. package/dist/dynamic/deprecated/components/Select/package.json +1 -1
  92. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  93. package/dist/dynamic/deprecated/components/package.json +1 -1
  94. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  95. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  96. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  97. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  98. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  99. package/dist/dynamic/helpers/constants/package.json +1 -1
  100. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  101. package/dist/dynamic/helpers/favorites/package.json +1 -1
  102. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  103. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  104. package/dist/dynamic/helpers/package.json +1 -1
  105. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  106. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  107. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  108. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  109. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  110. package/dist/dynamic/helpers/util/package.json +1 -1
  111. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  112. package/dist/dynamic/layouts/Flex/package.json +1 -1
  113. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  114. package/dist/dynamic/layouts/Grid/package.json +1 -1
  115. package/dist/dynamic/layouts/Level/package.json +1 -1
  116. package/dist/dynamic/layouts/Split/package.json +1 -1
  117. package/dist/dynamic/layouts/Stack/package.json +1 -1
  118. package/dist/dynamic/next/components/Modal/package.json +1 -1
  119. package/dist/dynamic/next/components/package.json +1 -1
  120. package/dist/dynamic/styles/package.json +1 -1
  121. package/dist/esm/components/Label/Label.d.ts +3 -1
  122. package/dist/esm/components/Label/Label.d.ts.map +1 -1
  123. package/dist/esm/components/Label/Label.js +23 -4
  124. package/dist/esm/components/Label/Label.js.map +1 -1
  125. package/dist/esm/components/TreeView/TreeViewListItem.d.ts.map +1 -1
  126. package/dist/esm/components/TreeView/TreeViewListItem.js +1 -1
  127. package/dist/esm/components/TreeView/TreeViewListItem.js.map +1 -1
  128. package/dist/js/components/Label/Label.d.ts +3 -1
  129. package/dist/js/components/Label/Label.d.ts.map +1 -1
  130. package/dist/js/components/Label/Label.js +23 -4
  131. package/dist/js/components/Label/Label.js.map +1 -1
  132. package/dist/js/components/TreeView/TreeViewListItem.d.ts.map +1 -1
  133. package/dist/js/components/TreeView/TreeViewListItem.js +1 -1
  134. package/dist/js/components/TreeView/TreeViewListItem.js.map +1 -1
  135. package/dist/umd/react-core.min.js +1 -1
  136. package/helpers/package.json +1 -1
  137. package/layouts/package.json +1 -1
  138. package/next/package.json +1 -1
  139. package/package.json +2 -2
  140. package/src/components/Label/Label.tsx +29 -3
  141. package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +16 -16
  142. package/src/components/Label/__tests__/__snapshots__/LabelGroup.test.tsx.snap +7 -7
  143. package/src/components/Label/examples/Label.md +1 -0
  144. package/src/components/Label/examples/LabelCompact.tsx +7 -7
  145. package/src/components/Label/examples/LabelFilled.tsx +138 -28
  146. package/src/components/Label/examples/LabelOutline.tsx +149 -58
  147. package/src/components/TreeView/TreeViewListItem.tsx +0 -1
  148. package/src/components/TreeView/__tests__/TreeViewListItem.test.tsx +0 -32
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Label } from '@patternfly/react-core';
3
- import InfoCircleIcon from '@patternfly/react-icons/dist/esm/icons/info-circle-icon';
3
+ import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
4
4
 
5
5
  export const LabelFilled: React.FunctionComponent = () => {
6
6
  const logColor = (color: string) => {
@@ -9,10 +9,13 @@ export const LabelFilled: React.FunctionComponent = () => {
9
9
  };
10
10
  return (
11
11
  <React.Fragment>
12
+ <strong>Non-status:</strong>
13
+ <br />
14
+ <br />
12
15
  <Label>Grey</Label>
13
- <Label icon={<InfoCircleIcon />}>Grey icon</Label>
16
+ <Label icon={<CubeIcon />}>Grey icon</Label>
14
17
  <Label onClose={() => Function.prototype}>Grey removable</Label>
15
- <Label icon={<InfoCircleIcon />} onClose={() => Function.prototype}>
18
+ <Label icon={<CubeIcon />} onClose={() => Function.prototype}>
16
19
  Grey icon removable
17
20
  </Label>
18
21
  <Label href="#filled">Grey link</Label>
@@ -23,19 +26,19 @@ export const LabelFilled: React.FunctionComponent = () => {
23
26
  <Label onClick={() => logColor('grey')} onClose={() => Function.prototype}>
24
27
  Grey clickable removable
25
28
  </Label>
26
- <Label icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
29
+ <Label icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
27
30
  Grey label with icon that overflows
28
31
  </Label>
29
32
  <br />
30
33
  <br />
31
34
  <Label color="blue">Blue</Label>
32
- <Label color="blue" icon={<InfoCircleIcon />}>
35
+ <Label color="blue" icon={<CubeIcon />}>
33
36
  Blue icon
34
37
  </Label>
35
38
  <Label color="blue" onClose={() => Function.prototype}>
36
39
  Blue removable
37
40
  </Label>
38
- <Label color="blue" icon={<InfoCircleIcon />} onClose={() => Function.prototype}>
41
+ <Label color="blue" icon={<CubeIcon />} onClose={() => Function.prototype}>
39
42
  Blue icon removable
40
43
  </Label>
41
44
  <Label color="blue" href="#filled">
@@ -50,19 +53,19 @@ export const LabelFilled: React.FunctionComponent = () => {
50
53
  <Label color="blue" onClick={() => logColor('blue')} onClose={() => Function.prototype}>
51
54
  Blue clickable removable
52
55
  </Label>
53
- <Label color="blue" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
56
+ <Label color="blue" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
54
57
  Blue label with icon that overflows
55
58
  </Label>
56
59
  <br />
57
60
  <br />
58
61
  <Label color="green">Green</Label>
59
- <Label color="green" icon={<InfoCircleIcon />}>
62
+ <Label color="green" icon={<CubeIcon />}>
60
63
  Green icon
61
64
  </Label>
62
65
  <Label color="green" onClose={() => Function.prototype}>
63
66
  Green removable
64
67
  </Label>
65
- <Label color="green" icon={<InfoCircleIcon />} onClose={() => Function.prototype}>
68
+ <Label color="green" icon={<CubeIcon />} onClose={() => Function.prototype}>
66
69
  Green icon removable
67
70
  </Label>
68
71
  <Label color="green" href="#filled">
@@ -77,19 +80,19 @@ export const LabelFilled: React.FunctionComponent = () => {
77
80
  <Label color="green" onClick={() => logColor('green')} onClose={() => Function.prototype}>
78
81
  Green clickable removable
79
82
  </Label>
80
- <Label color="green" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
83
+ <Label color="green" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
81
84
  Green label with icon that overflows
82
85
  </Label>
83
86
  <br />
84
87
  <br />
85
88
  <Label color="orange">Orange</Label>
86
- <Label color="orange" icon={<InfoCircleIcon />}>
89
+ <Label color="orange" icon={<CubeIcon />}>
87
90
  Orange icon
88
91
  </Label>
89
92
  <Label color="orange" onClose={() => Function.prototype}>
90
93
  Orange removable
91
94
  </Label>
92
- <Label color="orange" icon={<InfoCircleIcon />} onClose={() => Function.prototype}>
95
+ <Label color="orange" icon={<CubeIcon />} onClose={() => Function.prototype}>
93
96
  Orange icon removable
94
97
  </Label>
95
98
  <Label color="orange" href="#filled">
@@ -104,19 +107,19 @@ export const LabelFilled: React.FunctionComponent = () => {
104
107
  <Label color="orange" onClick={() => logColor('orange')} onClose={() => Function.prototype}>
105
108
  Orange clickable removable
106
109
  </Label>
107
- <Label color="orange" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
110
+ <Label color="orange" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
108
111
  Orange label with icon that overflows
109
112
  </Label>
110
113
  <br />
111
114
  <br />
112
115
  <Label color="red">Red</Label>
113
- <Label color="red" icon={<InfoCircleIcon />}>
116
+ <Label color="red" icon={<CubeIcon />}>
114
117
  Red icon
115
118
  </Label>
116
119
  <Label color="red" onClose={() => Function.prototype}>
117
120
  Red removable
118
121
  </Label>
119
- <Label color="red" icon={<InfoCircleIcon />} onClose={() => Function.prototype}>
122
+ <Label color="red" icon={<CubeIcon />} onClose={() => Function.prototype}>
120
123
  Red icon removable
121
124
  </Label>
122
125
  <Label color="red" href="#filled">
@@ -131,19 +134,19 @@ export const LabelFilled: React.FunctionComponent = () => {
131
134
  <Label color="red" onClick={() => logColor('red')} onClose={() => Function.prototype}>
132
135
  Red clickable removable
133
136
  </Label>
134
- <Label color="red" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
137
+ <Label color="red" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
135
138
  Red label with icon that overflows
136
139
  </Label>
137
140
  <br />
138
141
  <br />
139
142
  <Label color="orangered">Orange red</Label>
140
- <Label color="orangered" icon={<InfoCircleIcon />}>
143
+ <Label color="orangered" icon={<CubeIcon />}>
141
144
  Orange red icon
142
145
  </Label>
143
146
  <Label color="orangered" onClose={() => Function.prototype}>
144
147
  Orange red removable
145
148
  </Label>
146
- <Label color="orangered" icon={<InfoCircleIcon />} onClose={() => Function.prototype}>
149
+ <Label color="orangered" icon={<CubeIcon />} onClose={() => Function.prototype}>
147
150
  Orange red icon removable
148
151
  </Label>
149
152
  <Label color="orangered" href="#filled">
@@ -158,19 +161,19 @@ export const LabelFilled: React.FunctionComponent = () => {
158
161
  <Label color="orangered" onClick={() => logColor('orangered')} onClose={() => Function.prototype}>
159
162
  Orange red clickable removable
160
163
  </Label>
161
- <Label color="orangered" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
164
+ <Label color="orangered" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
162
165
  Orange red label with icon that overflows
163
166
  </Label>
164
167
  <br />
165
168
  <br />
166
169
  <Label color="purple">Purple</Label>
167
- <Label color="purple" icon={<InfoCircleIcon />}>
170
+ <Label color="purple" icon={<CubeIcon />}>
168
171
  Purple icon
169
172
  </Label>
170
173
  <Label color="purple" onClose={() => Function.prototype}>
171
174
  Purple removable
172
175
  </Label>
173
- <Label color="purple" icon={<InfoCircleIcon />} onClose={() => Function.prototype}>
176
+ <Label color="purple" icon={<CubeIcon />} onClose={() => Function.prototype}>
174
177
  Purple icon removable
175
178
  </Label>
176
179
  <Label color="purple" href="#filled">
@@ -185,19 +188,19 @@ export const LabelFilled: React.FunctionComponent = () => {
185
188
  <Label color="purple" onClick={() => logColor('purple')} onClose={() => Function.prototype}>
186
189
  Purple clickable removable
187
190
  </Label>
188
- <Label color="purple" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
191
+ <Label color="purple" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
189
192
  Purple label with icon that overflows
190
193
  </Label>
191
194
  <br />
192
195
  <br />
193
196
  <Label color="cyan">Cyan</Label>
194
- <Label color="cyan" icon={<InfoCircleIcon />}>
197
+ <Label color="cyan" icon={<CubeIcon />}>
195
198
  Cyan icon
196
199
  </Label>
197
200
  <Label color="cyan" onClose={() => Function.prototype}>
198
201
  Cyan removable
199
202
  </Label>
200
- <Label color="cyan" icon={<InfoCircleIcon />} onClose={() => Function.prototype}>
203
+ <Label color="cyan" icon={<CubeIcon />} onClose={() => Function.prototype}>
201
204
  Cyan icon removable
202
205
  </Label>
203
206
  <Label color="cyan" href="#filled">
@@ -212,19 +215,19 @@ export const LabelFilled: React.FunctionComponent = () => {
212
215
  <Label color="cyan" onClick={() => logColor('cyan')} onClose={() => Function.prototype}>
213
216
  Cyan clickable removable
214
217
  </Label>
215
- <Label color="cyan" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
218
+ <Label color="cyan" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
216
219
  Cyan label with icon that overflows
217
220
  </Label>
218
221
  <br />
219
222
  <br />
220
223
  <Label color="gold">Gold</Label>
221
- <Label color="gold" icon={<InfoCircleIcon />}>
224
+ <Label color="gold" icon={<CubeIcon />}>
222
225
  Gold icon
223
226
  </Label>
224
227
  <Label color="gold" onClose={() => Function.prototype}>
225
228
  Gold removable
226
229
  </Label>
227
- <Label color="gold" icon={<InfoCircleIcon />} onClose={() => Function.prototype}>
230
+ <Label color="gold" icon={<CubeIcon />} onClose={() => Function.prototype}>
228
231
  Gold icon removable
229
232
  </Label>
230
233
  <Label color="gold" href="#filled">
@@ -239,7 +242,7 @@ export const LabelFilled: React.FunctionComponent = () => {
239
242
  <Label color="gold" onClick={() => logColor('gold')} onClose={() => Function.prototype}>
240
243
  Gold clickable removable
241
244
  </Label>
242
- <Label color="gold" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
245
+ <Label color="gold" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
243
246
  Gold label with icon that overflows
244
247
  </Label>
245
248
  <br />
@@ -247,6 +250,113 @@ export const LabelFilled: React.FunctionComponent = () => {
247
250
  <div style={{ width: '250px' }}>
248
251
  <Label>Label that overflows its parent, but has no textMaxWidth on its own</Label>
249
252
  </div>
253
+ <br />
254
+ <strong>Status:</strong>
255
+ <br />
256
+ <br />
257
+ <Label status="success">Success</Label>
258
+ <Label status="success" onClose={() => Function.prototype}>
259
+ Success removable
260
+ </Label>
261
+ <Label status="success" href="#filled">
262
+ Success link
263
+ </Label>
264
+ <Label status="success" href="#filled" onClose={() => Function.prototype}>
265
+ Success link removable
266
+ </Label>
267
+ <Label status="success" onClick={() => logColor('success')}>
268
+ Success clickable
269
+ </Label>
270
+ <Label status="success" onClick={() => logColor('success')} onClose={() => Function.prototype}>
271
+ Success clickable removable
272
+ </Label>
273
+ <Label status="success" onClose={() => Function.prototype} textMaxWidth="16ch">
274
+ Success label with text that overflows
275
+ </Label>
276
+ <br />
277
+ <br />
278
+ <Label status="warning">Warning</Label>
279
+ <Label status="warning" onClose={() => Function.prototype}>
280
+ Warning removable
281
+ </Label>
282
+ <Label status="warning" href="#filled">
283
+ Warning link
284
+ </Label>
285
+ <Label status="warning" href="#filled" onClose={() => Function.prototype}>
286
+ Warning link removable
287
+ </Label>
288
+ <Label status="warning" onClick={() => logColor('warning')}>
289
+ Warning clickable
290
+ </Label>
291
+ <Label status="warning" onClick={() => logColor('warning')} onClose={() => Function.prototype}>
292
+ Warning clickable removable
293
+ </Label>
294
+ <Label status="warning" onClose={() => Function.prototype} textMaxWidth="16ch">
295
+ Warning label with text that overflows
296
+ </Label>
297
+ <br />
298
+ <br />
299
+ <Label status="danger">Danger</Label>
300
+ <Label status="danger" onClose={() => Function.prototype}>
301
+ Danger removable
302
+ </Label>
303
+ <Label status="danger" href="#filled">
304
+ Danger link
305
+ </Label>
306
+ <Label status="danger" href="#filled" onClose={() => Function.prototype}>
307
+ Danger link removable
308
+ </Label>
309
+ <Label status="danger" onClick={() => logColor('danger')}>
310
+ Danger clickable
311
+ </Label>
312
+ <Label status="danger" onClick={() => logColor('danger')} onClose={() => Function.prototype}>
313
+ Danger clickable removable
314
+ </Label>
315
+ <Label status="danger" onClose={() => Function.prototype} textMaxWidth="16ch">
316
+ Danger label with text that overflows
317
+ </Label>
318
+ <br />
319
+ <br />
320
+ <Label status="info">Info</Label>
321
+ <Label status="info" onClose={() => Function.prototype}>
322
+ Info removable
323
+ </Label>
324
+ <Label status="info" href="#filled">
325
+ Info link
326
+ </Label>
327
+ <Label status="info" href="#filled" onClose={() => Function.prototype}>
328
+ Info link removable
329
+ </Label>
330
+ <Label status="info" onClick={() => logColor('info')}>
331
+ Info clickable
332
+ </Label>
333
+ <Label status="info" onClick={() => logColor('info')} onClose={() => Function.prototype}>
334
+ Info clickable removable
335
+ </Label>
336
+ <Label status="info" onClose={() => Function.prototype} textMaxWidth="16ch">
337
+ Info label with text that overflows
338
+ </Label>
339
+ <br />
340
+ <br />
341
+ <Label status="custom">Custom</Label>
342
+ <Label status="custom" onClose={() => Function.prototype}>
343
+ Custom removable
344
+ </Label>
345
+ <Label status="custom" href="#filled">
346
+ Custom link
347
+ </Label>
348
+ <Label status="custom" href="#filled" onClose={() => Function.prototype}>
349
+ Custom link removable
350
+ </Label>
351
+ <Label status="custom" onClick={() => logColor('custom')}>
352
+ Custom clickable
353
+ </Label>
354
+ <Label status="custom" onClick={() => logColor('custom')} onClose={() => Function.prototype}>
355
+ Custom clickable removable
356
+ </Label>
357
+ <Label status="custom" onClose={() => Function.prototype} textMaxWidth="16ch">
358
+ Custom label with text that overflows
359
+ </Label>
250
360
  </React.Fragment>
251
361
  );
252
362
  };