@patternfly/react-core 6.0.0-alpha.37 → 6.0.0-alpha.39
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 +12 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/DragDrop/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
- package/dist/dynamic/deprecated/components/Select/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/favorites/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/components/Button/Button.d.ts.map +1 -1
- package/dist/esm/components/Button/Button.js +2 -2
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Label/Label.d.ts +3 -1
- package/dist/esm/components/Label/Label.d.ts.map +1 -1
- package/dist/esm/components/Label/Label.js +23 -4
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/esm/components/Menu/MenuItemAction.d.ts +2 -2
- package/dist/esm/components/Menu/MenuItemAction.d.ts.map +1 -1
- package/dist/esm/components/Menu/MenuItemAction.js +4 -3
- package/dist/esm/components/Menu/MenuItemAction.js.map +1 -1
- package/dist/esm/helpers/KeyboardHandler.d.ts.map +1 -1
- package/dist/esm/helpers/KeyboardHandler.js +11 -7
- package/dist/esm/helpers/KeyboardHandler.js.map +1 -1
- package/dist/js/components/Button/Button.d.ts.map +1 -1
- package/dist/js/components/Button/Button.js +2 -2
- package/dist/js/components/Button/Button.js.map +1 -1
- package/dist/js/components/Label/Label.d.ts +3 -1
- package/dist/js/components/Label/Label.d.ts.map +1 -1
- package/dist/js/components/Label/Label.js +23 -4
- package/dist/js/components/Label/Label.js.map +1 -1
- package/dist/js/components/Menu/MenuItemAction.d.ts +2 -2
- package/dist/js/components/Menu/MenuItemAction.d.ts.map +1 -1
- package/dist/js/components/Menu/MenuItemAction.js +4 -3
- package/dist/js/components/Menu/MenuItemAction.js.map +1 -1
- package/dist/js/helpers/KeyboardHandler.d.ts.map +1 -1
- package/dist/js/helpers/KeyboardHandler.js +11 -7
- package/dist/js/helpers/KeyboardHandler.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +2 -2
- package/src/components/Button/Button.tsx +2 -1
- package/src/components/CalendarMonth/examples/CalendarMonth.md +3 -1
- package/src/components/Label/Label.tsx +29 -3
- package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +16 -16
- package/src/components/Label/__tests__/__snapshots__/LabelGroup.test.tsx.snap +7 -7
- package/src/components/Label/examples/Label.md +1 -0
- package/src/components/Label/examples/LabelCompact.tsx +7 -7
- package/src/components/Label/examples/LabelFilled.tsx +138 -28
- package/src/components/Label/examples/LabelOutline.tsx +149 -58
- package/src/components/Menu/MenuItemAction.tsx +15 -12
- package/src/helpers/KeyboardHandler.tsx +13 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Label } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
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={<
|
|
16
|
+
<Label icon={<CubeIcon />}>Grey icon</Label>
|
|
14
17
|
<Label onClose={() => Function.prototype}>Grey removable</Label>
|
|
15
|
-
<Label icon={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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={<
|
|
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
|
};
|