@patternfly/react-core 6.5.0-prerelease.65 → 6.5.0-prerelease.66

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 (175) hide show
  1. package/CHANGELOG.md +4 -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/Compass/package.json +1 -1
  23. package/dist/dynamic/components/Content/package.json +1 -1
  24. package/dist/dynamic/components/DataList/package.json +1 -1
  25. package/dist/dynamic/components/DatePicker/package.json +1 -1
  26. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  27. package/dist/dynamic/components/Divider/package.json +1 -1
  28. package/dist/dynamic/components/Drawer/package.json +1 -1
  29. package/dist/dynamic/components/Dropdown/package.json +1 -1
  30. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  31. package/dist/dynamic/components/EmptyState/package.json +1 -1
  32. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  33. package/dist/dynamic/components/FileUpload/package.json +1 -1
  34. package/dist/dynamic/components/Form/package.json +1 -1
  35. package/dist/dynamic/components/FormSelect/package.json +1 -1
  36. package/dist/dynamic/components/HelperText/package.json +1 -1
  37. package/dist/dynamic/components/Hero/package.json +1 -1
  38. package/dist/dynamic/components/Hint/package.json +1 -1
  39. package/dist/dynamic/components/Icon/package.json +1 -1
  40. package/dist/dynamic/components/InputGroup/package.json +1 -1
  41. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  42. package/dist/dynamic/components/Label/package.json +1 -1
  43. package/dist/dynamic/components/List/package.json +1 -1
  44. package/dist/dynamic/components/LoginPage/package.json +1 -1
  45. package/dist/dynamic/components/Masthead/package.json +1 -1
  46. package/dist/dynamic/components/Menu/package.json +1 -1
  47. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  48. package/dist/dynamic/components/Modal/package.json +1 -1
  49. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  50. package/dist/dynamic/components/Nav/package.json +1 -1
  51. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  52. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  53. package/dist/dynamic/components/NumberInput/package.json +1 -1
  54. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  55. package/dist/dynamic/components/Page/package.json +1 -1
  56. package/dist/dynamic/components/Pagination/package.json +1 -1
  57. package/dist/dynamic/components/Panel/package.json +1 -1
  58. package/dist/dynamic/components/Popover/package.json +1 -1
  59. package/dist/dynamic/components/Progress/package.json +1 -1
  60. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  61. package/dist/dynamic/components/Radio/package.json +1 -1
  62. package/dist/dynamic/components/SearchInput/package.json +1 -1
  63. package/dist/dynamic/components/Select/package.json +1 -1
  64. package/dist/dynamic/components/Sidebar/package.json +1 -1
  65. package/dist/dynamic/components/SimpleList/package.json +1 -1
  66. package/dist/dynamic/components/Skeleton/package.json +1 -1
  67. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  68. package/dist/dynamic/components/Slider/package.json +1 -1
  69. package/dist/dynamic/components/Spinner/package.json +1 -1
  70. package/dist/dynamic/components/Switch/package.json +1 -1
  71. package/dist/dynamic/components/Tabs/package.json +1 -1
  72. package/dist/dynamic/components/TextArea/package.json +1 -1
  73. package/dist/dynamic/components/TextInput/package.json +1 -1
  74. package/dist/dynamic/components/TextInputGroup/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/Chip/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/Tile/package.json +1 -1
  90. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  91. package/dist/dynamic/deprecated/components/package.json +1 -1
  92. package/dist/dynamic/helpers/AnimationsProvider/AnimationsProvider/package.json +1 -1
  93. package/dist/dynamic/helpers/AnimationsProvider/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/SSRSafeIds/SSRSafeIds/package.json +1 -1
  100. package/dist/dynamic/helpers/constants/package.json +1 -1
  101. package/dist/dynamic/helpers/datetimeUtils/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/useSSRSafeId/package.json +1 -1
  110. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  111. package/dist/dynamic/helpers/util/package.json +1 -1
  112. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  113. package/dist/dynamic/layouts/Flex/package.json +1 -1
  114. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  115. package/dist/dynamic/layouts/Grid/package.json +1 -1
  116. package/dist/dynamic/layouts/Level/package.json +1 -1
  117. package/dist/dynamic/layouts/Split/package.json +1 -1
  118. package/dist/dynamic/layouts/Stack/package.json +1 -1
  119. package/dist/dynamic/styles/package.json +1 -1
  120. package/dist/dynamic-modules.json +2 -0
  121. package/dist/esm/components/Label/Label.d.ts +21 -1
  122. package/dist/esm/components/Label/Label.d.ts.map +1 -1
  123. package/dist/esm/components/Label/Label.js +37 -15
  124. package/dist/esm/components/Label/Label.js.map +1 -1
  125. package/dist/esm/components/TextInputGroup/TextInputGroup.d.ts +6 -2
  126. package/dist/esm/components/TextInputGroup/TextInputGroup.d.ts.map +1 -1
  127. package/dist/esm/components/TextInputGroup/TextInputGroup.js +2 -1
  128. package/dist/esm/components/TextInputGroup/TextInputGroup.js.map +1 -1
  129. package/dist/esm/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
  130. package/dist/esm/components/TextInputGroup/TextInputGroupMain.js +15 -3
  131. package/dist/esm/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
  132. package/dist/js/components/Label/Label.d.ts +21 -1
  133. package/dist/js/components/Label/Label.d.ts.map +1 -1
  134. package/dist/js/components/Label/Label.js +38 -16
  135. package/dist/js/components/Label/Label.js.map +1 -1
  136. package/dist/js/components/TextInputGroup/TextInputGroup.d.ts +6 -2
  137. package/dist/js/components/TextInputGroup/TextInputGroup.d.ts.map +1 -1
  138. package/dist/js/components/TextInputGroup/TextInputGroup.js +2 -1
  139. package/dist/js/components/TextInputGroup/TextInputGroup.js.map +1 -1
  140. package/dist/js/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
  141. package/dist/js/components/TextInputGroup/TextInputGroupMain.js +14 -2
  142. package/dist/js/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
  143. package/dist/umd/assets/{output-Cf2rQdn-.css → output-BzAdUnEh.css} +20768 -20768
  144. package/dist/umd/react-core.min.js +1 -1
  145. package/helpers/package.json +1 -1
  146. package/layouts/package.json +1 -1
  147. package/next/package.json +1 -1
  148. package/package.json +2 -2
  149. package/src/components/Content/examples/Content.md +1 -1
  150. package/src/components/Label/Label.tsx +40 -18
  151. package/src/components/Label/__tests__/Label.test.tsx +6 -6
  152. package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +36 -0
  153. package/src/components/Label/examples/LabelCompact.tsx +7 -7
  154. package/src/components/Label/examples/LabelCustomRender.tsx +2 -2
  155. package/src/components/Label/examples/LabelEditable.tsx +3 -3
  156. package/src/components/Label/examples/LabelFilled.tsx +122 -122
  157. package/src/components/Label/examples/LabelGroupBasic.tsx +3 -3
  158. package/src/components/Label/examples/LabelGroupCategory.tsx +3 -3
  159. package/src/components/Label/examples/LabelGroupCategoryRemovable.tsx +2 -2
  160. package/src/components/Label/examples/LabelGroupEditableAdd.tsx +2 -2
  161. package/src/components/Label/examples/LabelGroupEditableAddDropdown.tsx +2 -2
  162. package/src/components/Label/examples/LabelGroupEditableAddModal.tsx +2 -1
  163. package/src/components/Label/examples/LabelGroupEditableLabels.tsx +5 -5
  164. package/src/components/Label/examples/LabelGroupOverflow.tsx +6 -6
  165. package/src/components/Label/examples/LabelGroupVerticalCategoryOverflowRemovable.tsx +2 -2
  166. package/src/components/Label/examples/LabelOutline.tsx +204 -120
  167. package/src/components/TextInputGroup/TextInputGroup.tsx +8 -3
  168. package/src/components/TextInputGroup/TextInputGroupMain.tsx +15 -3
  169. package/src/components/TextInputGroup/__tests__/TextInputGroup.test.tsx +10 -0
  170. package/src/components/TextInputGroup/__tests__/TextInputGroupMain.test.tsx +10 -0
  171. package/src/demos/RTL/examples/PaginatedTable.tsx +5 -4
  172. package/src/demos/examples/Card/CardHorizontalGrid.tsx +9 -8
  173. package/src/demos/examples/Card/CardStatus.tsx +6 -5
  174. package/src/demos/examples/Tabs/TabsOpen.tsx +4 -3
  175. package/src/demos/examples/Tabs/TabsOpenWithSecondaryTabs.tsx +4 -3
@@ -1,5 +1,5 @@
1
1
  import { Fragment } from 'react';
2
- import { Label } from '@patternfly/react-core';
2
+ import { Label, LabelColor, LabelStatus } from '@patternfly/react-core';
3
3
  import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
4
4
 
5
5
  export const LabelOutline: React.FunctionComponent = () => {
@@ -51,36 +51,47 @@ export const LabelOutline: React.FunctionComponent = () => {
51
51
  </Label>
52
52
  <br />
53
53
  <br />
54
- <Label variant="outline" color="blue">
54
+ <Label variant="outline" color={LabelColor.blue}>
55
55
  Blue
56
56
  </Label>
57
- <Label variant="outline" color="blue" icon={<CubeIcon />}>
57
+ <Label variant="outline" color={LabelColor.blue} icon={<CubeIcon />}>
58
58
  Blue icon
59
59
  </Label>
60
- <Label variant="outline" color="blue" onClose={() => Function.prototype}>
60
+ <Label variant="outline" color={LabelColor.blue} onClose={() => Function.prototype}>
61
61
  Blue removable
62
62
  </Label>
63
- <Label variant="outline" color="blue" icon={<CubeIcon />} onClose={() => Function.prototype}>
63
+ <Label variant="outline" color={LabelColor.blue} icon={<CubeIcon />} onClose={() => Function.prototype}>
64
64
  Blue icon removable
65
65
  </Label>
66
- <Label variant="outline" color="blue" href="#outline">
66
+ <Label variant="outline" color={LabelColor.blue} href="#outline">
67
67
  Blue link
68
68
  </Label>
69
- <Label variant="outline" color="blue" href="#outline" onClose={() => Function.prototype}>
69
+ <Label variant="outline" color={LabelColor.blue} href="#outline" onClose={() => Function.prototype}>
70
70
  Blue link removable
71
71
  </Label>{' '}
72
- <Label variant="outline" color="blue" onClick={() => logColor('blue')}>
72
+ <Label variant="outline" color={LabelColor.blue} onClick={() => logColor('blue')}>
73
73
  Blue clickable
74
74
  </Label>
75
- <Label variant="outline" color="blue" onClick={() => logColor('blue')} onClose={() => Function.prototype}>
75
+ <Label
76
+ variant="outline"
77
+ color={LabelColor.blue}
78
+ onClick={() => logColor('blue')}
79
+ onClose={() => Function.prototype}
80
+ >
76
81
  Blue clickable removable
77
82
  </Label>
78
- <Label variant="outline" color="blue" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
83
+ <Label
84
+ variant="outline"
85
+ color={LabelColor.blue}
86
+ icon={<CubeIcon />}
87
+ onClose={() => Function.prototype}
88
+ textMaxWidth="16ch"
89
+ >
79
90
  Blue label with icon that overflows
80
91
  </Label>{' '}
81
92
  <Label
82
93
  variant="outline"
83
- color="blue"
94
+ color={LabelColor.blue}
84
95
  isDisabled
85
96
  icon={<CubeIcon />}
86
97
  href="#filled"
@@ -90,7 +101,7 @@ export const LabelOutline: React.FunctionComponent = () => {
90
101
  </Label>{' '}
91
102
  <Label
92
103
  variant="outline"
93
- color="blue"
104
+ color={LabelColor.blue}
94
105
  isDisabled
95
106
  icon={<CubeIcon />}
96
107
  onClick={() => logColor('blue')}
@@ -100,36 +111,47 @@ export const LabelOutline: React.FunctionComponent = () => {
100
111
  </Label>
101
112
  <br />
102
113
  <br />
103
- <Label variant="outline" color="green">
114
+ <Label variant="outline" color={LabelColor.green}>
104
115
  Green
105
116
  </Label>
106
- <Label variant="outline" color="green" icon={<CubeIcon />}>
117
+ <Label variant="outline" color={LabelColor.green} icon={<CubeIcon />}>
107
118
  Green icon
108
119
  </Label>
109
- <Label variant="outline" color="green" onClose={() => Function.prototype}>
120
+ <Label variant="outline" color={LabelColor.green} onClose={() => Function.prototype}>
110
121
  Green removable
111
122
  </Label>
112
- <Label variant="outline" color="green" icon={<CubeIcon />} onClose={() => Function.prototype}>
123
+ <Label variant="outline" color={LabelColor.green} icon={<CubeIcon />} onClose={() => Function.prototype}>
113
124
  Green icon removable
114
125
  </Label>
115
- <Label variant="outline" color="green" href="#outline">
126
+ <Label variant="outline" color={LabelColor.green} href="#outline">
116
127
  Green link
117
128
  </Label>
118
- <Label variant="outline" color="green" href="#outline" onClose={() => Function.prototype}>
129
+ <Label variant="outline" color={LabelColor.green} href="#outline" onClose={() => Function.prototype}>
119
130
  Green link removable
120
131
  </Label>{' '}
121
- <Label variant="outline" color="green" onClick={() => logColor('green')}>
132
+ <Label variant="outline" color={LabelColor.green} onClick={() => logColor('green')}>
122
133
  Green clickable
123
134
  </Label>
124
- <Label variant="outline" color="green" onClick={() => logColor('green')} onClose={() => Function.prototype}>
135
+ <Label
136
+ variant="outline"
137
+ color={LabelColor.green}
138
+ onClick={() => logColor('green')}
139
+ onClose={() => Function.prototype}
140
+ >
125
141
  Green clickable removable
126
142
  </Label>
127
- <Label variant="outline" color="green" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
143
+ <Label
144
+ variant="outline"
145
+ color={LabelColor.green}
146
+ icon={<CubeIcon />}
147
+ onClose={() => Function.prototype}
148
+ textMaxWidth="16ch"
149
+ >
128
150
  Green label with icon that overflows
129
151
  </Label>{' '}
130
152
  <Label
131
153
  variant="outline"
132
- color="green"
154
+ color={LabelColor.green}
133
155
  isDisabled
134
156
  icon={<CubeIcon />}
135
157
  href="#filled"
@@ -139,7 +161,7 @@ export const LabelOutline: React.FunctionComponent = () => {
139
161
  </Label>{' '}
140
162
  <Label
141
163
  variant="outline"
142
- color="green"
164
+ color={LabelColor.green}
143
165
  isDisabled
144
166
  icon={<CubeIcon />}
145
167
  onClick={() => logColor('green')}
@@ -149,33 +171,38 @@ export const LabelOutline: React.FunctionComponent = () => {
149
171
  </Label>
150
172
  <br />
151
173
  <br />
152
- <Label variant="outline" color="orange">
174
+ <Label variant="outline" color={LabelColor.orange}>
153
175
  Orange
154
176
  </Label>
155
- <Label variant="outline" color="orange" icon={<CubeIcon />}>
177
+ <Label variant="outline" color={LabelColor.orange} icon={<CubeIcon />}>
156
178
  Orange icon
157
179
  </Label>
158
- <Label variant="outline" color="orange" onClose={() => Function.prototype}>
180
+ <Label variant="outline" color={LabelColor.orange} onClose={() => Function.prototype}>
159
181
  Orange removable
160
182
  </Label>
161
- <Label variant="outline" color="orange" icon={<CubeIcon />} onClose={() => Function.prototype}>
183
+ <Label variant="outline" color={LabelColor.orange} icon={<CubeIcon />} onClose={() => Function.prototype}>
162
184
  Orange icon removable
163
185
  </Label>
164
- <Label variant="outline" color="orange" href="#outline">
186
+ <Label variant="outline" color={LabelColor.orange} href="#outline">
165
187
  Orange link
166
188
  </Label>
167
- <Label variant="outline" color="orange" href="#outline" onClose={() => Function.prototype}>
189
+ <Label variant="outline" color={LabelColor.orange} href="#outline" onClose={() => Function.prototype}>
168
190
  Orange link removable
169
191
  </Label>{' '}
170
- <Label variant="outline" color="orange" onClick={() => logColor('orange')}>
192
+ <Label variant="outline" color={LabelColor.orange} onClick={() => logColor('orange')}>
171
193
  Orange clickable
172
194
  </Label>
173
- <Label variant="outline" color="orange" onClick={() => logColor('orange')} onClose={() => Function.prototype}>
195
+ <Label
196
+ variant="outline"
197
+ color={LabelColor.orange}
198
+ onClick={() => logColor('orange')}
199
+ onClose={() => Function.prototype}
200
+ >
174
201
  Orange clickable removable
175
202
  </Label>{' '}
176
203
  <Label
177
204
  variant="outline"
178
- color="orange"
205
+ color={LabelColor.orange}
179
206
  icon={<CubeIcon />}
180
207
  onClose={() => Function.prototype}
181
208
  textMaxWidth="16ch"
@@ -184,7 +211,7 @@ export const LabelOutline: React.FunctionComponent = () => {
184
211
  </Label>{' '}
185
212
  <Label
186
213
  variant="outline"
187
- color="orange"
214
+ color={LabelColor.orange}
188
215
  isDisabled
189
216
  icon={<CubeIcon />}
190
217
  href="#filled"
@@ -194,7 +221,7 @@ export const LabelOutline: React.FunctionComponent = () => {
194
221
  </Label>{' '}
195
222
  <Label
196
223
  variant="outline"
197
- color="orange"
224
+ color={LabelColor.orange}
198
225
  isDisabled
199
226
  icon={<CubeIcon />}
200
227
  onClick={() => logColor('orange')}
@@ -204,59 +231,70 @@ export const LabelOutline: React.FunctionComponent = () => {
204
231
  </Label>
205
232
  <br />
206
233
  <br />
207
- <Label variant="outline" color="red">
234
+ <Label variant="outline" color={LabelColor.red}>
208
235
  Red
209
236
  </Label>
210
- <Label variant="outline" color="red" icon={<CubeIcon />}>
237
+ <Label variant="outline" color={LabelColor.red} icon={<CubeIcon />}>
211
238
  Red icon
212
239
  </Label>
213
- <Label variant="outline" color="red" onClose={() => Function.prototype}>
240
+ <Label variant="outline" color={LabelColor.red} onClose={() => Function.prototype}>
214
241
  Red removable
215
242
  </Label>
216
- <Label variant="outline" color="red" icon={<CubeIcon />} onClose={() => Function.prototype}>
243
+ <Label variant="outline" color={LabelColor.red} icon={<CubeIcon />} onClose={() => Function.prototype}>
217
244
  Red icon removable
218
245
  </Label>
219
- <Label variant="outline" color="red" href="#outline">
246
+ <Label variant="outline" color={LabelColor.red} href="#outline">
220
247
  Red link
221
248
  </Label>
222
- <Label variant="outline" color="red" href="#outline" onClose={() => Function.prototype}>
249
+ <Label variant="outline" color={LabelColor.red} href="#outline" onClose={() => Function.prototype}>
223
250
  Red link removable
224
251
  </Label>{' '}
225
- <Label variant="outline" color="red" onClick={() => logColor('red')}>
252
+ <Label variant="outline" color={LabelColor.red} onClick={() => logColor('red')}>
226
253
  Red clickable
227
254
  </Label>
228
- <Label variant="outline" color="red" onClick={() => logColor('red')} onClose={() => Function.prototype}>
255
+ <Label
256
+ variant="outline"
257
+ color={LabelColor.red}
258
+ onClick={() => logColor('red')}
259
+ onClose={() => Function.prototype}
260
+ >
229
261
  Red clickable removable
230
262
  </Label>
231
- <Label variant="outline" color="red" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
263
+ <Label
264
+ variant="outline"
265
+ color={LabelColor.red}
266
+ icon={<CubeIcon />}
267
+ onClose={() => Function.prototype}
268
+ textMaxWidth="16ch"
269
+ >
232
270
  Red label with icon that overflows
233
271
  </Label>
234
272
  <br />
235
273
  <br />
236
- <Label variant="outline" color="orangered">
274
+ <Label variant="outline" color={LabelColor.orangered}>
237
275
  Orange red
238
276
  </Label>
239
- <Label variant="outline" color="orangered" icon={<CubeIcon />}>
277
+ <Label variant="outline" color={LabelColor.orangered} icon={<CubeIcon />}>
240
278
  Orange red icon
241
279
  </Label>
242
- <Label variant="outline" color="orangered" onClose={() => Function.prototype}>
280
+ <Label variant="outline" color={LabelColor.orangered} onClose={() => Function.prototype}>
243
281
  Orange red removable
244
282
  </Label>
245
- <Label variant="outline" color="orangered" icon={<CubeIcon />} onClose={() => Function.prototype}>
283
+ <Label variant="outline" color={LabelColor.orangered} icon={<CubeIcon />} onClose={() => Function.prototype}>
246
284
  Orange red icon removable
247
285
  </Label>
248
- <Label variant="outline" color="orangered" href="#outline">
286
+ <Label variant="outline" color={LabelColor.orangered} href="#outline">
249
287
  Orange red link
250
288
  </Label>
251
- <Label variant="outline" color="orangered" href="#outline" onClose={() => Function.prototype}>
289
+ <Label variant="outline" color={LabelColor.orangered} href="#outline" onClose={() => Function.prototype}>
252
290
  Orange red link removable
253
291
  </Label>
254
- <Label variant="outline" color="orangered" onClick={() => logColor('orangered')}>
292
+ <Label variant="outline" color={LabelColor.orangered} onClick={() => logColor('orangered')}>
255
293
  Orange red clickable
256
294
  </Label>
257
295
  <Label
258
296
  variant="outline"
259
- color="orangered"
297
+ color={LabelColor.orangered}
260
298
  onClick={() => logColor('orangered')}
261
299
  onClose={() => Function.prototype}
262
300
  >
@@ -264,7 +302,7 @@ export const LabelOutline: React.FunctionComponent = () => {
264
302
  </Label>
265
303
  <Label
266
304
  variant="outline"
267
- color="orangered"
305
+ color={LabelColor.orangered}
268
306
  icon={<CubeIcon />}
269
307
  onClose={() => Function.prototype}
270
308
  textMaxWidth="16ch"
@@ -273,33 +311,38 @@ export const LabelOutline: React.FunctionComponent = () => {
273
311
  </Label>
274
312
  <br />
275
313
  <br />
276
- <Label variant="outline" color="purple">
314
+ <Label variant="outline" color={LabelColor.purple}>
277
315
  Purple
278
316
  </Label>
279
- <Label variant="outline" color="purple" icon={<CubeIcon />}>
317
+ <Label variant="outline" color={LabelColor.purple} icon={<CubeIcon />}>
280
318
  Purple icon
281
319
  </Label>
282
- <Label variant="outline" color="purple" onClose={() => Function.prototype}>
320
+ <Label variant="outline" color={LabelColor.purple} onClose={() => Function.prototype}>
283
321
  Purple removable
284
322
  </Label>
285
- <Label variant="outline" color="purple" icon={<CubeIcon />} onClose={() => Function.prototype}>
323
+ <Label variant="outline" color={LabelColor.purple} icon={<CubeIcon />} onClose={() => Function.prototype}>
286
324
  Purple icon removable
287
325
  </Label>
288
- <Label variant="outline" color="purple" href="#outline">
326
+ <Label variant="outline" color={LabelColor.purple} href="#outline">
289
327
  Purple link
290
328
  </Label>
291
- <Label variant="outline" color="purple" href="#outline" onClose={() => Function.prototype}>
329
+ <Label variant="outline" color={LabelColor.purple} href="#outline" onClose={() => Function.prototype}>
292
330
  Purple link removable
293
331
  </Label>{' '}
294
- <Label variant="outline" color="purple" onClick={() => logColor('purple')}>
332
+ <Label variant="outline" color={LabelColor.purple} onClick={() => logColor('purple')}>
295
333
  Purple clickable
296
334
  </Label>
297
- <Label variant="outline" color="purple" onClick={() => logColor('purple')} onClose={() => Function.prototype}>
335
+ <Label
336
+ variant="outline"
337
+ color={LabelColor.purple}
338
+ onClick={() => logColor('purple')}
339
+ onClose={() => Function.prototype}
340
+ >
298
341
  Purple clickable removable
299
342
  </Label>{' '}
300
343
  <Label
301
344
  variant="outline"
302
- color="purple"
345
+ color={LabelColor.purple}
303
346
  icon={<CubeIcon />}
304
347
  onClose={() => Function.prototype}
305
348
  textMaxWidth="16ch"
@@ -308,7 +351,7 @@ export const LabelOutline: React.FunctionComponent = () => {
308
351
  </Label>{' '}
309
352
  <Label
310
353
  variant="outline"
311
- color="purple"
354
+ color={LabelColor.purple}
312
355
  isDisabled
313
356
  icon={<CubeIcon />}
314
357
  href="#filled"
@@ -318,7 +361,7 @@ export const LabelOutline: React.FunctionComponent = () => {
318
361
  </Label>{' '}
319
362
  <Label
320
363
  variant="outline"
321
- color="purple"
364
+ color={LabelColor.purple}
322
365
  isDisabled
323
366
  icon={<CubeIcon />}
324
367
  onClick={() => logColor('purple')}
@@ -328,36 +371,47 @@ export const LabelOutline: React.FunctionComponent = () => {
328
371
  </Label>
329
372
  <br />
330
373
  <br />
331
- <Label variant="outline" color="teal">
374
+ <Label variant="outline" color={LabelColor.teal}>
332
375
  Teal
333
376
  </Label>
334
- <Label variant="outline" color="teal" icon={<CubeIcon />}>
377
+ <Label variant="outline" color={LabelColor.teal} icon={<CubeIcon />}>
335
378
  Teal icon
336
379
  </Label>
337
- <Label variant="outline" color="teal" onClose={() => Function.prototype}>
380
+ <Label variant="outline" color={LabelColor.teal} onClose={() => Function.prototype}>
338
381
  Teal removable
339
382
  </Label>
340
- <Label variant="outline" color="teal" icon={<CubeIcon />} onClose={() => Function.prototype}>
383
+ <Label variant="outline" color={LabelColor.teal} icon={<CubeIcon />} onClose={() => Function.prototype}>
341
384
  Teal icon removable
342
385
  </Label>
343
- <Label variant="outline" color="teal" href="#outline">
386
+ <Label variant="outline" color={LabelColor.teal} href="#outline">
344
387
  Teal link
345
388
  </Label>
346
- <Label variant="outline" color="teal" href="#outline" onClose={() => Function.prototype}>
389
+ <Label variant="outline" color={LabelColor.teal} href="#outline" onClose={() => Function.prototype}>
347
390
  Teal link removable
348
391
  </Label>{' '}
349
- <Label variant="outline" color="teal" onClick={() => logColor('teal')}>
392
+ <Label variant="outline" color={LabelColor.teal} onClick={() => logColor('teal')}>
350
393
  Teal clickable
351
394
  </Label>
352
- <Label variant="outline" color="teal" onClick={() => logColor('teal')} onClose={() => Function.prototype}>
395
+ <Label
396
+ variant="outline"
397
+ color={LabelColor.teal}
398
+ onClick={() => logColor('teal')}
399
+ onClose={() => Function.prototype}
400
+ >
353
401
  Teal clickable removable
354
402
  </Label>
355
- <Label variant="outline" color="teal" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
403
+ <Label
404
+ variant="outline"
405
+ color={LabelColor.teal}
406
+ icon={<CubeIcon />}
407
+ onClose={() => Function.prototype}
408
+ textMaxWidth="16ch"
409
+ >
356
410
  Teal label with icon that overflows
357
411
  </Label>{' '}
358
412
  <Label
359
413
  variant="outline"
360
- color="teal"
414
+ color={LabelColor.teal}
361
415
  isDisabled
362
416
  icon={<CubeIcon />}
363
417
  href="#filled"
@@ -367,7 +421,7 @@ export const LabelOutline: React.FunctionComponent = () => {
367
421
  </Label>{' '}
368
422
  <Label
369
423
  variant="outline"
370
- color="teal"
424
+ color={LabelColor.teal}
371
425
  isDisabled
372
426
  icon={<CubeIcon />}
373
427
  onClick={() => logColor('teal')}
@@ -377,33 +431,38 @@ export const LabelOutline: React.FunctionComponent = () => {
377
431
  </Label>
378
432
  <br />
379
433
  <br />
380
- <Label variant="outline" color="yellow">
434
+ <Label variant="outline" color={LabelColor.yellow}>
381
435
  Yellow
382
436
  </Label>
383
- <Label variant="outline" color="yellow" icon={<CubeIcon />}>
437
+ <Label variant="outline" color={LabelColor.yellow} icon={<CubeIcon />}>
384
438
  Yellow icon
385
439
  </Label>
386
- <Label variant="outline" color="yellow" onClose={() => Function.prototype}>
440
+ <Label variant="outline" color={LabelColor.yellow} onClose={() => Function.prototype}>
387
441
  Yellow removable
388
442
  </Label>
389
- <Label variant="outline" color="yellow" icon={<CubeIcon />} onClose={() => Function.prototype}>
443
+ <Label variant="outline" color={LabelColor.yellow} icon={<CubeIcon />} onClose={() => Function.prototype}>
390
444
  Yellow icon removable
391
445
  </Label>
392
- <Label variant="outline" color="yellow" href="#outline">
446
+ <Label variant="outline" color={LabelColor.yellow} href="#outline">
393
447
  Yellow link
394
448
  </Label>
395
- <Label variant="outline" color="yellow" href="#outline" onClose={() => Function.prototype}>
449
+ <Label variant="outline" color={LabelColor.yellow} href="#outline" onClose={() => Function.prototype}>
396
450
  Yellow link removable
397
451
  </Label>{' '}
398
- <Label variant="outline" color="yellow" onClick={() => logColor('yellow')}>
452
+ <Label variant="outline" color={LabelColor.yellow} onClick={() => logColor('yellow')}>
399
453
  Yellow clickable
400
454
  </Label>
401
- <Label variant="outline" color="yellow" onClick={() => logColor('yellow')} onClose={() => Function.prototype}>
455
+ <Label
456
+ variant="outline"
457
+ color={LabelColor.yellow}
458
+ onClick={() => logColor('yellow')}
459
+ onClose={() => Function.prototype}
460
+ >
402
461
  Yellow clickable removable
403
462
  </Label>
404
463
  <Label
405
464
  variant="outline"
406
- color="yellow"
465
+ color={LabelColor.yellow}
407
466
  icon={<CubeIcon />}
408
467
  onClose={() => Function.prototype}
409
468
  textMaxWidth="16ch"
@@ -412,7 +471,7 @@ export const LabelOutline: React.FunctionComponent = () => {
412
471
  </Label>{' '}
413
472
  <Label
414
473
  variant="outline"
415
- color="yellow"
474
+ color={LabelColor.yellow}
416
475
  isDisabled
417
476
  icon={<CubeIcon />}
418
477
  href="#filled"
@@ -422,7 +481,7 @@ export const LabelOutline: React.FunctionComponent = () => {
422
481
  </Label>{' '}
423
482
  <Label
424
483
  variant="outline"
425
- color="yellow"
484
+ color={LabelColor.yellow}
426
485
  isDisabled
427
486
  icon={<CubeIcon />}
428
487
  onClick={() => logColor('yellow')}
@@ -435,117 +494,142 @@ export const LabelOutline: React.FunctionComponent = () => {
435
494
  <strong>Status:</strong>
436
495
  <br />
437
496
  <br />
438
- <Label status="success" variant="outline">
497
+ <Label status={LabelStatus.success} variant="outline">
439
498
  Success
440
499
  </Label>
441
- <Label status="success" variant="outline" onClose={() => Function.prototype}>
500
+ <Label status={LabelStatus.success} variant="outline" onClose={() => Function.prototype}>
442
501
  Success removable
443
502
  </Label>
444
- <Label status="success" variant="outline" href="#filled">
503
+ <Label status={LabelStatus.success} variant="outline" href="#filled">
445
504
  Success link
446
505
  </Label>
447
- <Label status="success" variant="outline" href="#filled" onClose={() => Function.prototype}>
506
+ <Label status={LabelStatus.success} variant="outline" href="#filled" onClose={() => Function.prototype}>
448
507
  Success link removable
449
508
  </Label>
450
- <Label status="success" variant="outline" onClick={() => logColor('success')}>
509
+ <Label status={LabelStatus.success} variant="outline" onClick={() => logColor('success')}>
451
510
  Success clickable
452
511
  </Label>
453
- <Label status="success" variant="outline" onClick={() => logColor('success')} onClose={() => Function.prototype}>
512
+ <Label
513
+ status={LabelStatus.success}
514
+ variant="outline"
515
+ onClick={() => logColor('success')}
516
+ onClose={() => Function.prototype}
517
+ >
454
518
  Success clickable removable
455
519
  </Label>
456
- <Label status="success" variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
520
+ <Label status={LabelStatus.success} variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
457
521
  Success label with text that overflows
458
522
  </Label>
459
523
  <br />
460
524
  <br />
461
- <Label status="warning" variant="outline">
525
+ <Label status={LabelStatus.warning} variant="outline">
462
526
  Warning
463
527
  </Label>
464
- <Label status="warning" variant="outline" onClose={() => Function.prototype}>
528
+ <Label status={LabelStatus.warning} variant="outline" onClose={() => Function.prototype}>
465
529
  Warning removable
466
530
  </Label>
467
- <Label status="warning" variant="outline" href="#filled">
531
+ <Label status={LabelStatus.warning} variant="outline" href="#filled">
468
532
  Warning link
469
533
  </Label>
470
- <Label status="warning" variant="outline" href="#filled" onClose={() => Function.prototype}>
534
+ <Label status={LabelStatus.warning} variant="outline" href="#filled" onClose={() => Function.prototype}>
471
535
  Warning link removable
472
536
  </Label>
473
- <Label status="warning" variant="outline" onClick={() => logColor('warning')}>
537
+ <Label status={LabelStatus.warning} variant="outline" onClick={() => logColor('warning')}>
474
538
  Warning clickable
475
539
  </Label>
476
- <Label status="warning" variant="outline" onClick={() => logColor('warning')} onClose={() => Function.prototype}>
540
+ <Label
541
+ status={LabelStatus.warning}
542
+ variant="outline"
543
+ onClick={() => logColor('warning')}
544
+ onClose={() => Function.prototype}
545
+ >
477
546
  Warning clickable removable
478
547
  </Label>
479
- <Label status="warning" variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
548
+ <Label status={LabelStatus.warning} variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
480
549
  Warning label with text that overflows
481
550
  </Label>
482
551
  <br />
483
552
  <br />
484
- <Label status="danger" variant="outline">
553
+ <Label status={LabelStatus.danger} variant="outline">
485
554
  Danger
486
555
  </Label>
487
- <Label status="danger" variant="outline" onClose={() => Function.prototype}>
556
+ <Label status={LabelStatus.danger} variant="outline" onClose={() => Function.prototype}>
488
557
  Danger removable
489
558
  </Label>
490
- <Label status="danger" variant="outline" href="#filled">
559
+ <Label status={LabelStatus.danger} variant="outline" href="#filled">
491
560
  Danger link
492
561
  </Label>
493
- <Label status="danger" variant="outline" href="#filled" onClose={() => Function.prototype}>
562
+ <Label status={LabelStatus.danger} variant="outline" href="#filled" onClose={() => Function.prototype}>
494
563
  Danger link removable
495
564
  </Label>
496
- <Label status="danger" variant="outline" onClick={() => logColor('danger')}>
565
+ <Label status={LabelStatus.danger} variant="outline" onClick={() => logColor('danger')}>
497
566
  Danger clickable
498
567
  </Label>
499
- <Label status="danger" variant="outline" onClick={() => logColor('danger')} onClose={() => Function.prototype}>
568
+ <Label
569
+ status={LabelStatus.danger}
570
+ variant="outline"
571
+ onClick={() => logColor('danger')}
572
+ onClose={() => Function.prototype}
573
+ >
500
574
  Danger clickable removable
501
575
  </Label>
502
- <Label status="danger" variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
576
+ <Label status={LabelStatus.danger} variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
503
577
  Danger label with text that overflows
504
578
  </Label>
505
579
  <br />
506
580
  <br />
507
- <Label status="info" variant="outline">
581
+ <Label status={LabelStatus.info} variant="outline">
508
582
  Info
509
583
  </Label>
510
- <Label status="info" variant="outline" onClose={() => Function.prototype}>
584
+ <Label status={LabelStatus.info} variant="outline" onClose={() => Function.prototype}>
511
585
  Info removable
512
586
  </Label>
513
- <Label status="info" variant="outline" href="#filled">
587
+ <Label status={LabelStatus.info} variant="outline" href="#filled">
514
588
  Info link
515
589
  </Label>
516
- <Label status="info" variant="outline" href="#filled" onClose={() => Function.prototype}>
590
+ <Label status={LabelStatus.info} variant="outline" href="#filled" onClose={() => Function.prototype}>
517
591
  Info link removable
518
592
  </Label>
519
- <Label status="info" variant="outline" onClick={() => logColor('info')}>
593
+ <Label status={LabelStatus.info} variant="outline" onClick={() => logColor('info')}>
520
594
  Info clickable
521
595
  </Label>
522
- <Label status="info" variant="outline" onClick={() => logColor('info')} onClose={() => Function.prototype}>
596
+ <Label
597
+ status={LabelStatus.info}
598
+ variant="outline"
599
+ onClick={() => logColor('info')}
600
+ onClose={() => Function.prototype}
601
+ >
523
602
  Info clickable removable
524
603
  </Label>
525
- <Label status="info" variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
604
+ <Label status={LabelStatus.info} variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
526
605
  Info label with text that overflows
527
606
  </Label>
528
607
  <br />
529
608
  <br />
530
- <Label status="custom" variant="outline">
609
+ <Label status={LabelStatus.custom} variant="outline">
531
610
  Custom
532
611
  </Label>
533
- <Label status="custom" variant="outline" onClose={() => Function.prototype}>
612
+ <Label status={LabelStatus.custom} variant="outline" onClose={() => Function.prototype}>
534
613
  Custom removable
535
614
  </Label>
536
- <Label status="custom" variant="outline" href="#filled">
615
+ <Label status={LabelStatus.custom} variant="outline" href="#filled">
537
616
  Custom link
538
617
  </Label>
539
- <Label status="custom" variant="outline" href="#filled" onClose={() => Function.prototype}>
618
+ <Label status={LabelStatus.custom} variant="outline" href="#filled" onClose={() => Function.prototype}>
540
619
  Custom link removable
541
620
  </Label>
542
- <Label status="custom" variant="outline" onClick={() => logColor('custom')}>
621
+ <Label status={LabelStatus.custom} variant="outline" onClick={() => logColor('custom')}>
543
622
  Custom clickable
544
623
  </Label>
545
- <Label status="custom" variant="outline" onClick={() => logColor('custom')} onClose={() => Function.prototype}>
624
+ <Label
625
+ status={LabelStatus.custom}
626
+ variant="outline"
627
+ onClick={() => logColor('custom')}
628
+ onClose={() => Function.prototype}
629
+ >
546
630
  Custom clickable removable
547
631
  </Label>
548
- <Label status="custom" variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
632
+ <Label status={LabelStatus.custom} variant="outline" onClose={() => Function.prototype} textMaxWidth="16ch">
549
633
  Custom label with text that overflows
550
634
  </Label>
551
635
  </Fragment>