@patternfly/react-core 5.3.0-prerelease.21 → 5.3.0-prerelease.23

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 (147) 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/Chip/package.json +1 -1
  21. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  22. package/dist/dynamic/components/CodeBlock/package.json +1 -1
  23. package/dist/dynamic/components/DataList/package.json +1 -1
  24. package/dist/dynamic/components/DatePicker/package.json +1 -1
  25. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  26. package/dist/dynamic/components/Divider/package.json +1 -1
  27. package/dist/dynamic/components/DragDrop/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/Hint/package.json +1 -1
  38. package/dist/dynamic/components/Icon/package.json +1 -1
  39. package/dist/dynamic/components/InputGroup/package.json +1 -1
  40. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  41. package/dist/dynamic/components/Label/package.json +1 -1
  42. package/dist/dynamic/components/List/package.json +1 -1
  43. package/dist/dynamic/components/LoginPage/package.json +1 -1
  44. package/dist/dynamic/components/Masthead/package.json +1 -1
  45. package/dist/dynamic/components/Menu/package.json +1 -1
  46. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  47. package/dist/dynamic/components/Modal/package.json +1 -1
  48. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  49. package/dist/dynamic/components/Nav/package.json +1 -1
  50. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  51. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  52. package/dist/dynamic/components/NumberInput/package.json +1 -1
  53. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  54. package/dist/dynamic/components/Page/package.json +1 -1
  55. package/dist/dynamic/components/Pagination/package.json +1 -1
  56. package/dist/dynamic/components/Panel/package.json +1 -1
  57. package/dist/dynamic/components/Popover/package.json +1 -1
  58. package/dist/dynamic/components/Progress/package.json +1 -1
  59. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  60. package/dist/dynamic/components/Radio/package.json +1 -1
  61. package/dist/dynamic/components/SearchInput/package.json +1 -1
  62. package/dist/dynamic/components/Select/package.json +1 -1
  63. package/dist/dynamic/components/Sidebar/package.json +1 -1
  64. package/dist/dynamic/components/SimpleList/package.json +1 -1
  65. package/dist/dynamic/components/Skeleton/package.json +1 -1
  66. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  67. package/dist/dynamic/components/Slider/package.json +1 -1
  68. package/dist/dynamic/components/Spinner/package.json +1 -1
  69. package/dist/dynamic/components/Switch/package.json +1 -1
  70. package/dist/dynamic/components/Tabs/package.json +1 -1
  71. package/dist/dynamic/components/Text/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/Tile/package.json +1 -1
  76. package/dist/dynamic/components/TimePicker/package.json +1 -1
  77. package/dist/dynamic/components/Timestamp/package.json +1 -1
  78. package/dist/dynamic/components/Title/package.json +1 -1
  79. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  80. package/dist/dynamic/components/Toolbar/package.json +1 -1
  81. package/dist/dynamic/components/Tooltip/package.json +1 -1
  82. package/dist/dynamic/components/TreeView/package.json +1 -1
  83. package/dist/dynamic/components/Truncate/package.json +1 -1
  84. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  85. package/dist/dynamic/components/Wizard/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/ApplicationLauncher/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/DualListSelector/package.json +1 -1
  119. package/dist/dynamic/next/components/Modal/package.json +1 -1
  120. package/dist/dynamic/next/components/package.json +1 -1
  121. package/dist/dynamic/styles/package.json +1 -1
  122. package/dist/esm/components/Label/Label.d.ts +2 -0
  123. package/dist/esm/components/Label/Label.d.ts.map +1 -1
  124. package/dist/esm/components/Label/Label.js +9 -8
  125. package/dist/esm/components/Label/Label.js.map +1 -1
  126. package/dist/esm/helpers/GenerateId/GenerateId.d.ts +1 -1
  127. package/dist/esm/helpers/GenerateId/GenerateId.d.ts.map +1 -1
  128. package/dist/esm/helpers/GenerateId/GenerateId.js +1 -1
  129. package/dist/esm/helpers/GenerateId/GenerateId.js.map +1 -1
  130. package/dist/js/components/Label/Label.d.ts +2 -0
  131. package/dist/js/components/Label/Label.d.ts.map +1 -1
  132. package/dist/js/components/Label/Label.js +9 -8
  133. package/dist/js/components/Label/Label.js.map +1 -1
  134. package/dist/js/helpers/GenerateId/GenerateId.d.ts +1 -1
  135. package/dist/js/helpers/GenerateId/GenerateId.d.ts.map +1 -1
  136. package/dist/js/helpers/GenerateId/GenerateId.js +1 -1
  137. package/dist/js/helpers/GenerateId/GenerateId.js.map +1 -1
  138. package/dist/umd/react-core.min.js +1 -1
  139. package/helpers/package.json +1 -1
  140. package/layouts/package.json +1 -1
  141. package/next/package.json +1 -1
  142. package/package.json +2 -2
  143. package/src/components/Label/Label.tsx +16 -5
  144. package/src/components/Label/examples/LabelCompact.tsx +19 -1
  145. package/src/components/Label/examples/LabelFilled.tsx +106 -16
  146. package/src/components/Label/examples/LabelOutline.tsx +168 -16
  147. package/src/helpers/GenerateId/GenerateId.ts +2 -2
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"5.3.0-prerelease.20","private":true}
1
+ {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"5.3.0-prerelease.22","private":true}
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"5.3.0-prerelease.20","private":true}
1
+ {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"5.3.0-prerelease.22","private":true}
package/next/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"5.3.0-prerelease.20","private":true}
1
+ {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"5.3.0-prerelease.22","private":true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "5.3.0-prerelease.21",
3
+ "version": "5.3.0-prerelease.23",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -72,5 +72,5 @@
72
72
  "react": "^17 || ^18",
73
73
  "react-dom": "^17 || ^18"
74
74
  },
75
- "gitHead": "51ee95e81df4dbc87673f8876a70465f3679c9b4"
75
+ "gitHead": "24c732ea445cd4678cc8901aa22b0d2f80d648cb"
76
76
  }
@@ -20,6 +20,8 @@ export interface LabelProps extends React.HTMLProps<HTMLSpanElement> {
20
20
  variant?: 'outline' | 'filled';
21
21
  /** Flag indicating the label is compact. */
22
22
  isCompact?: boolean;
23
+ /** Flag indicating the label is disabled. Works only on clickable labels, so either href or onClick props must be passed in. */
24
+ isDisabled?: boolean;
23
25
  /** @beta Flag indicating the label is editable. */
24
26
  isEditable?: boolean;
25
27
  /** @beta Additional props passed to the editable label text div. Optionally passing onInput and onBlur callbacks will allow finer custom text input control. */
@@ -91,6 +93,7 @@ export const Label: React.FunctionComponent<LabelProps> = ({
91
93
  color = 'grey',
92
94
  variant = 'filled',
93
95
  isCompact = false,
96
+ isDisabled = false,
94
97
  isEditable = false,
95
98
  editableProps,
96
99
  textMaxWidth,
@@ -198,21 +201,22 @@ export const Label: React.FunctionComponent<LabelProps> = ({
198
201
  }
199
202
  };
200
203
 
201
- const LabelComponent = (isOverflowLabel ? 'button' : 'span') as any;
204
+ const isClickableDisabled = (href || onLabelClick) && isDisabled;
202
205
 
203
- const defaultButton = (
206
+ const defaultCloseButton = (
204
207
  <Button
205
208
  type="button"
206
209
  variant="plain"
207
210
  onClick={onClose}
208
211
  aria-label={closeBtnAriaLabel || `Close ${children}`}
212
+ {...(isClickableDisabled && { isDisabled: true })}
209
213
  {...closeBtnProps}
210
214
  >
211
215
  <TimesIcon />
212
216
  </Button>
213
217
  );
214
218
 
215
- const button = <span className={css(styles.labelActions)}>{closeBtn || defaultButton}</span>;
219
+ const closeButton = <span className={css(styles.labelActions)}>{closeBtn || defaultCloseButton}</span>;
216
220
  const textRef = React.createRef<any>();
217
221
  // ref to apply tooltip when rendered is used
218
222
  const componentRef = React.useRef();
@@ -268,6 +272,8 @@ export const Label: React.FunctionComponent<LabelProps> = ({
268
272
  className: css(styles.labelContent),
269
273
  ...(isTooltipVisible && { tabIndex: 0 }),
270
274
  ...(href && { href }),
275
+ // Need to prevent onClick since aria-disabled won't prevent AT from triggering the link
276
+ ...(href && isDisabled && { onClick: (event: MouseEvent) => event.preventDefault() }),
271
277
  ...(isButton && clickableLabelProps),
272
278
  ...(isEditable && {
273
279
  ref: editableButtonRef,
@@ -276,7 +282,9 @@ export const Label: React.FunctionComponent<LabelProps> = ({
276
282
  e.stopPropagation();
277
283
  },
278
284
  ...editableProps
279
- })
285
+ }),
286
+ ...(isClickableDisabled && isButton && { disabled: true }),
287
+ ...(isClickableDisabled && href && { tabindex: -1, 'aria-disabled': true })
280
288
  };
281
289
 
282
290
  let labelComponentChild = (
@@ -302,11 +310,14 @@ export const Label: React.FunctionComponent<LabelProps> = ({
302
310
  );
303
311
  }
304
312
 
313
+ const LabelComponent = (isOverflowLabel ? 'button' : 'span') as any;
314
+
305
315
  return (
306
316
  <LabelComponent
307
317
  {...props}
308
318
  className={css(
309
319
  styles.label,
320
+ isClickableDisabled && styles.modifiers.disabled,
310
321
  colorStyles[color],
311
322
  variant === 'outline' && styles.modifiers.outline,
312
323
  isOverflowLabel && styles.modifiers.overflow,
@@ -318,7 +329,7 @@ export const Label: React.FunctionComponent<LabelProps> = ({
318
329
  onClick={isOverflowLabel ? onLabelClick : undefined}
319
330
  >
320
331
  {!isEditableActive && labelComponentChild}
321
- {!isEditableActive && onClose && button}
332
+ {!isEditableActive && onClose && closeButton}
322
333
  {isEditableActive && (
323
334
  <input
324
335
  className={css(styles.labelContent)}
@@ -19,9 +19,27 @@ export const LabelCompact: React.FunctionComponent = () => (
19
19
  </Label>{' '}
20
20
  <Label isCompact href="#compact" onClose={() => Function.prototype}>
21
21
  Compact link removable
22
- </Label>
22
+ </Label>{' '}
23
+ <Label isCompact onClick={() => Function.prototype}>
24
+ Compact clickable
25
+ </Label>{' '}
26
+ <Label isCompact onClick={() => Function.prototype} onClose={() => Function.prototype}>
27
+ Compact clickable removable
28
+ </Label>{' '}
23
29
  <Label isCompact icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
24
30
  Compact label with icon that overflows
31
+ </Label>{' '}
32
+ <Label isDisabled isCompact href="#compact" onClose={() => Function.prototype} icon={<InfoCircleIcon />}>
33
+ Compact link removable (disabled)
34
+ </Label>{' '}
35
+ <Label
36
+ isDisabled
37
+ isCompact
38
+ onClick={() => Function.prototype}
39
+ onClose={() => Function.prototype}
40
+ icon={<InfoCircleIcon />}
41
+ >
42
+ Compact clickable removable (disabled)
25
43
  </Label>
26
44
  </React.Fragment>
27
45
  );
@@ -17,13 +17,19 @@ export const LabelFilled: React.FunctionComponent = () => {
17
17
  <Label href="#filled">Grey link</Label>{' '}
18
18
  <Label href="#filled" onClose={() => Function.prototype}>
19
19
  Grey link removable
20
- </Label>
20
+ </Label>{' '}
21
21
  <Label onClick={() => logColor('grey')}>Grey clickable</Label>{' '}
22
22
  <Label onClick={() => logColor('grey')} onClose={() => Function.prototype}>
23
23
  Grey clickable removable
24
- </Label>
24
+ </Label>{' '}
25
25
  <Label icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
26
26
  Grey label with icon that overflows
27
+ </Label>{' '}
28
+ <Label isDisabled icon={<InfoCircleIcon />} href="#filled" onClose={() => Function.prototype}>
29
+ Grey link removable (disabled)
30
+ </Label>{' '}
31
+ <Label isDisabled icon={<InfoCircleIcon />} onClick={() => logColor('grey')} onClose={() => Function.prototype}>
32
+ Grey clickable removable (disabled)
27
33
  </Label>
28
34
  <br />
29
35
  <br />
@@ -42,15 +48,27 @@ export const LabelFilled: React.FunctionComponent = () => {
42
48
  </Label>{' '}
43
49
  <Label color="blue" href="#filled" onClose={() => Function.prototype}>
44
50
  Blue link removable
45
- </Label>
51
+ </Label>{' '}
46
52
  <Label color="blue" onClick={() => logColor('blue')}>
47
53
  Blue clickable
48
54
  </Label>{' '}
49
55
  <Label color="blue" onClick={() => logColor('blue')} onClose={() => Function.prototype}>
50
56
  Blue clickable removable
51
- </Label>
57
+ </Label>{' '}
52
58
  <Label color="blue" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
53
59
  Blue label with icon that overflows
60
+ </Label>{' '}
61
+ <Label color="blue" isDisabled icon={<InfoCircleIcon />} href="#filled" onClose={() => Function.prototype}>
62
+ Blue link removable (disabled)
63
+ </Label>{' '}
64
+ <Label
65
+ color="blue"
66
+ isDisabled
67
+ icon={<InfoCircleIcon />}
68
+ onClick={() => logColor('blue')}
69
+ onClose={() => Function.prototype}
70
+ >
71
+ Blue clickable removable (disabled)
54
72
  </Label>
55
73
  <br />
56
74
  <br />
@@ -69,15 +87,27 @@ export const LabelFilled: React.FunctionComponent = () => {
69
87
  </Label>{' '}
70
88
  <Label color="green" href="#filled" onClose={() => Function.prototype}>
71
89
  Green link removable
72
- </Label>
90
+ </Label>{' '}
73
91
  <Label color="green" onClick={() => logColor('green')}>
74
92
  Green clickable
75
93
  </Label>{' '}
76
94
  <Label color="green" onClick={() => logColor('green')} onClose={() => Function.prototype}>
77
95
  Green clickable removable
78
- </Label>
96
+ </Label>{' '}
79
97
  <Label color="green" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
80
98
  Green label with icon that overflows
99
+ </Label>{' '}
100
+ <Label color="green" isDisabled icon={<InfoCircleIcon />} href="#filled" onClose={() => Function.prototype}>
101
+ Green link removable (disabled)
102
+ </Label>{' '}
103
+ <Label
104
+ color="green"
105
+ isDisabled
106
+ icon={<InfoCircleIcon />}
107
+ onClick={() => logColor('green')}
108
+ onClose={() => Function.prototype}
109
+ >
110
+ Green clickable removable (disabled)
81
111
  </Label>
82
112
  <br />
83
113
  <br />
@@ -96,15 +126,27 @@ export const LabelFilled: React.FunctionComponent = () => {
96
126
  </Label>{' '}
97
127
  <Label color="orange" href="#filled" onClose={() => Function.prototype}>
98
128
  Orange link removable
99
- </Label>
129
+ </Label>{' '}
100
130
  <Label color="orange" onClick={() => logColor('orange')}>
101
131
  Orange clickable
102
132
  </Label>{' '}
103
133
  <Label color="orange" onClick={() => logColor('orange')} onClose={() => Function.prototype}>
104
134
  Orange clickable removable
105
- </Label>
135
+ </Label>{' '}
106
136
  <Label color="orange" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
107
137
  Orange label with icon that overflows
138
+ </Label>{' '}
139
+ <Label color="orange" isDisabled icon={<InfoCircleIcon />} href="#filled" onClose={() => Function.prototype}>
140
+ Orange link removable (disabled)
141
+ </Label>{' '}
142
+ <Label
143
+ color="orange"
144
+ isDisabled
145
+ icon={<InfoCircleIcon />}
146
+ onClick={() => logColor('orange')}
147
+ onClose={() => Function.prototype}
148
+ >
149
+ Orange clickable removable (disabled)
108
150
  </Label>
109
151
  <br />
110
152
  <br />
@@ -123,15 +165,27 @@ export const LabelFilled: React.FunctionComponent = () => {
123
165
  </Label>{' '}
124
166
  <Label color="red" href="#filled" onClose={() => Function.prototype}>
125
167
  Red link removable
126
- </Label>
168
+ </Label>{' '}
127
169
  <Label color="red" onClick={() => logColor('red')}>
128
170
  Red clickable
129
171
  </Label>{' '}
130
172
  <Label color="red" onClick={() => logColor('red')} onClose={() => Function.prototype}>
131
173
  Red clickable removable
132
- </Label>
174
+ </Label>{' '}
133
175
  <Label color="red" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
134
176
  Red label with icon that overflows
177
+ </Label>{' '}
178
+ <Label color="red" isDisabled icon={<InfoCircleIcon />} href="#filled" onClose={() => Function.prototype}>
179
+ Red link removable (disabled)
180
+ </Label>{' '}
181
+ <Label
182
+ color="red"
183
+ isDisabled
184
+ icon={<InfoCircleIcon />}
185
+ onClick={() => logColor('red')}
186
+ onClose={() => Function.prototype}
187
+ >
188
+ Red clickable removable (disabled)
135
189
  </Label>
136
190
  <br />
137
191
  <br />
@@ -150,15 +204,27 @@ export const LabelFilled: React.FunctionComponent = () => {
150
204
  </Label>{' '}
151
205
  <Label color="purple" href="#filled" onClose={() => Function.prototype}>
152
206
  Purple link removable
153
- </Label>
207
+ </Label>{' '}
154
208
  <Label color="purple" onClick={() => logColor('purple')}>
155
209
  Purple clickable
156
210
  </Label>{' '}
157
211
  <Label color="purple" onClick={() => logColor('purple')} onClose={() => Function.prototype}>
158
212
  Purple clickable removable
159
- </Label>
213
+ </Label>{' '}
160
214
  <Label color="purple" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
161
215
  Purple label with icon that overflows
216
+ </Label>{' '}
217
+ <Label color="purple" isDisabled icon={<InfoCircleIcon />} href="#filled" onClose={() => Function.prototype}>
218
+ Purple link removable (disabled)
219
+ </Label>{' '}
220
+ <Label
221
+ color="purple"
222
+ isDisabled
223
+ icon={<InfoCircleIcon />}
224
+ onClick={() => logColor('purple')}
225
+ onClose={() => Function.prototype}
226
+ >
227
+ Purple clickable removable (disabled)
162
228
  </Label>
163
229
  <br />
164
230
  <br />
@@ -177,15 +243,27 @@ export const LabelFilled: React.FunctionComponent = () => {
177
243
  </Label>{' '}
178
244
  <Label color="cyan" href="#filled" onClose={() => Function.prototype}>
179
245
  Cyan link removable
180
- </Label>
246
+ </Label>{' '}
181
247
  <Label color="cyan" onClick={() => logColor('cyan')}>
182
248
  Cyan clickable
183
249
  </Label>{' '}
184
250
  <Label color="cyan" onClick={() => logColor('cyan')} onClose={() => Function.prototype}>
185
251
  Cyan clickable removable
186
- </Label>
252
+ </Label>{' '}
187
253
  <Label color="cyan" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
188
254
  Cyan label with icon that overflows
255
+ </Label>{' '}
256
+ <Label color="cyan" isDisabled icon={<InfoCircleIcon />} href="#filled" onClose={() => Function.prototype}>
257
+ Cyan link removable (disabled)
258
+ </Label>{' '}
259
+ <Label
260
+ color="cyan"
261
+ isDisabled
262
+ icon={<InfoCircleIcon />}
263
+ onClick={() => logColor('cyan')}
264
+ onClose={() => Function.prototype}
265
+ >
266
+ Cyan clickable removable (disabled)
189
267
  </Label>
190
268
  <br />
191
269
  <br />
@@ -204,15 +282,27 @@ export const LabelFilled: React.FunctionComponent = () => {
204
282
  </Label>{' '}
205
283
  <Label color="gold" href="#filled" onClose={() => Function.prototype}>
206
284
  Gold link removable
207
- </Label>
285
+ </Label>{' '}
208
286
  <Label color="gold" onClick={() => logColor('gold')}>
209
287
  Gold clickable
210
288
  </Label>{' '}
211
289
  <Label color="gold" onClick={() => logColor('gold')} onClose={() => Function.prototype}>
212
290
  Gold clickable removable
213
- </Label>
291
+ </Label>{' '}
214
292
  <Label color="gold" icon={<InfoCircleIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
215
293
  Gold label with icon that overflows
294
+ </Label>{' '}
295
+ <Label color="gold" isDisabled icon={<InfoCircleIcon />} href="#filled" onClose={() => Function.prototype}>
296
+ Gold link removable (disabled)
297
+ </Label>{' '}
298
+ <Label
299
+ color="gold"
300
+ isDisabled
301
+ icon={<InfoCircleIcon />}
302
+ onClick={() => logColor('gold')}
303
+ onClose={() => Function.prototype}
304
+ >
305
+ Gold clickable removable (disabled)
216
306
  </Label>
217
307
  <br />
218
308
  <br />