@patternfly/react-core 6.0.0-alpha.72 → 6.0.0-alpha.73
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 +6 -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/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/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/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/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/styles/package.json +1 -1
- package/dist/esm/components/Banner/Banner.d.ts +1 -1
- package/dist/esm/components/Banner/Banner.d.ts.map +1 -1
- package/dist/esm/components/Label/Label.d.ts +1 -1
- package/dist/esm/components/Label/Label.d.ts.map +1 -1
- package/dist/esm/components/Label/Label.js +2 -2
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/js/components/Banner/Banner.d.ts +1 -1
- package/dist/js/components/Banner/Banner.d.ts.map +1 -1
- package/dist/js/components/Label/Label.d.ts +1 -1
- package/dist/js/components/Label/Label.d.ts.map +1 -1
- package/dist/js/components/Label/Label.js +2 -2
- package/dist/js/components/Label/Label.js.map +1 -1
- package/dist/styles/assets/images/pf-background.svg +21 -21
- package/dist/styles/base-no-reset.css +201 -183
- package/dist/styles/base.css +230 -208
- package/dist/umd/assets/{output-CdTxonRl.css → output-rAmU2c74.css} +3309 -3266
- package/dist/umd/react-core.min.js +3 -3
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -6
- package/src/components/Banner/Banner.tsx +1 -1
- package/src/components/Banner/__tests__/Banner.test.tsx +6 -6
- package/src/components/Banner/examples/BannerBasic.tsx +2 -2
- package/src/components/Label/Label.tsx +3 -3
- package/src/components/Label/__tests__/Label.test.tsx +1 -1
- package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +72 -36
- package/src/components/Label/examples/LabelFilled.tsx +44 -44
- package/src/components/Label/examples/LabelGroupEditableAddModal.tsx +1 -1
- package/src/components/Label/examples/LabelOutline.tsx +52 -46
- package/src/demos/Tabs.md +2 -3
package/helpers/package.json
CHANGED
package/layouts/package.json
CHANGED
package/next/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.73",
|
|
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",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"clean:exports": "node scripts/cleanDistExports.js"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@patternfly/react-icons": "^6.0.0-alpha.
|
|
51
|
-
"@patternfly/react-styles": "^6.0.0-alpha.
|
|
52
|
-
"@patternfly/react-tokens": "^6.0.0-alpha.
|
|
50
|
+
"@patternfly/react-icons": "^6.0.0-alpha.27",
|
|
51
|
+
"@patternfly/react-styles": "^6.0.0-alpha.26",
|
|
52
|
+
"@patternfly/react-tokens": "^6.0.0-alpha.26",
|
|
53
53
|
"focus-trap": "7.5.4",
|
|
54
54
|
"react-dropzone": "^14.2.3",
|
|
55
55
|
"tslib": "^2.6.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@patternfly/patternfly": "6.0.0-alpha.
|
|
58
|
+
"@patternfly/patternfly": "6.0.0-alpha.160",
|
|
59
59
|
"case-anything": "^2.1.13",
|
|
60
60
|
"css": "^3.0.0",
|
|
61
61
|
"fs-extra": "^11.2.0"
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"react": "^17 || ^18",
|
|
65
65
|
"react-dom": "^17 || ^18"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "5ce8c9748b3f0fafa36430e68d82d0725dff2f2e"
|
|
68
68
|
}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/Banner/banner';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
|
|
5
|
-
export type BannerColor = 'red' | 'orangered' | 'orange' | '
|
|
5
|
+
export type BannerColor = 'red' | 'orangered' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple';
|
|
6
6
|
|
|
7
7
|
export type BannerStatus = 'success' | 'warning' | 'danger' | 'info' | 'custom';
|
|
8
8
|
|
|
@@ -47,9 +47,9 @@ test('Renders with class name pf-m-orange when "orange" is passed to color prop'
|
|
|
47
47
|
expect(screen.getByText('Test')).toHaveClass('pf-m-orange');
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
test('Renders with class name pf-m-
|
|
51
|
-
render(<Banner color="
|
|
52
|
-
expect(screen.getByText('Test')).toHaveClass('pf-m-
|
|
50
|
+
test('Renders with class name pf-m-yellow when "yellow" is passed to color prop', () => {
|
|
51
|
+
render(<Banner color="yellow">Test</Banner>);
|
|
52
|
+
expect(screen.getByText('Test')).toHaveClass('pf-m-yellow');
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
test('Renders with class name pf-m-green when "green" is passed to color prop', () => {
|
|
@@ -57,9 +57,9 @@ test('Renders with class name pf-m-green when "green" is passed to color prop',
|
|
|
57
57
|
expect(screen.getByText('Test')).toHaveClass('pf-m-green');
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
test('Renders with class name pf-m-
|
|
61
|
-
render(<Banner color="
|
|
62
|
-
expect(screen.getByText('Test')).toHaveClass('pf-m-
|
|
60
|
+
test('Renders with class name pf-m-teal when "teal" is passed to color prop', () => {
|
|
61
|
+
render(<Banner color="teal">Test</Banner>);
|
|
62
|
+
expect(screen.getByText('Test')).toHaveClass('pf-m-teal');
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
test('Renders with class name pf-m-blue when "blue" is passed to color prop', () => {
|
|
@@ -11,11 +11,11 @@ export const BannerBasic: React.FunctionComponent = () => (
|
|
|
11
11
|
<br />
|
|
12
12
|
<Banner color="orange">Orange banner</Banner>
|
|
13
13
|
<br />
|
|
14
|
-
<Banner color="
|
|
14
|
+
<Banner color="yellow">Yellow banner</Banner>
|
|
15
15
|
<br />
|
|
16
16
|
<Banner color="green">Green banner</Banner>
|
|
17
17
|
<br />
|
|
18
|
-
<Banner color="
|
|
18
|
+
<Banner color="teal">Teal banner</Banner>
|
|
19
19
|
<br />
|
|
20
20
|
<Banner color="blue">Blue banner</Banner>
|
|
21
21
|
<br />
|
|
@@ -20,7 +20,7 @@ export interface LabelProps extends React.HTMLProps<HTMLSpanElement> {
|
|
|
20
20
|
/** Additional classes added to the label. */
|
|
21
21
|
className?: string;
|
|
22
22
|
/** Color of the label. */
|
|
23
|
-
color?: 'blue' | '
|
|
23
|
+
color?: 'blue' | 'teal' | 'green' | 'orange' | 'purple' | 'red' | 'orangered' | 'grey' | 'yellow';
|
|
24
24
|
/** Variant of the label. */
|
|
25
25
|
variant?: 'outline' | 'filled' | 'overflow' | 'add';
|
|
26
26
|
/** Status of the label with a respective icon and color. Overrides the color set by the color property. */
|
|
@@ -83,13 +83,13 @@ export interface LabelProps extends React.HTMLProps<HTMLSpanElement> {
|
|
|
83
83
|
|
|
84
84
|
const colorStyles = {
|
|
85
85
|
blue: styles.modifiers.blue,
|
|
86
|
-
|
|
86
|
+
teal: styles.modifiers.teal,
|
|
87
87
|
green: styles.modifiers.green,
|
|
88
88
|
orange: styles.modifiers.orange,
|
|
89
89
|
purple: styles.modifiers.purple,
|
|
90
90
|
red: styles.modifiers.red,
|
|
91
91
|
orangered: styles.modifiers.orangered,
|
|
92
|
-
|
|
92
|
+
yellow: styles.modifiers.yellow,
|
|
93
93
|
grey: ''
|
|
94
94
|
};
|
|
95
95
|
|
|
@@ -5,7 +5,7 @@ import userEvent from '@testing-library/user-event';
|
|
|
5
5
|
|
|
6
6
|
import { Label } from '../Label';
|
|
7
7
|
|
|
8
|
-
const labelColors = ['blue', '
|
|
8
|
+
const labelColors = ['blue', 'teal', 'green', 'orange', 'purple', 'red', 'grey', 'yellow'];
|
|
9
9
|
|
|
10
10
|
describe('Label', () => {
|
|
11
11
|
test('renders', () => {
|
|
@@ -225,42 +225,6 @@ exports[`Label label with close button and outline variant 1`] = `
|
|
|
225
225
|
</DocumentFragment>
|
|
226
226
|
`;
|
|
227
227
|
|
|
228
|
-
exports[`Label label with cyan color 1`] = `
|
|
229
|
-
<DocumentFragment>
|
|
230
|
-
<span
|
|
231
|
-
class="pf-v6-c-label pf-m-cyan pf-m-filled"
|
|
232
|
-
>
|
|
233
|
-
<span
|
|
234
|
-
class="pf-v6-c-label__content"
|
|
235
|
-
>
|
|
236
|
-
<span
|
|
237
|
-
class="pf-v6-c-label__text"
|
|
238
|
-
>
|
|
239
|
-
Something
|
|
240
|
-
</span>
|
|
241
|
-
</span>
|
|
242
|
-
</span>
|
|
243
|
-
</DocumentFragment>
|
|
244
|
-
`;
|
|
245
|
-
|
|
246
|
-
exports[`Label label with cyan color with outline variant 1`] = `
|
|
247
|
-
<DocumentFragment>
|
|
248
|
-
<span
|
|
249
|
-
class="pf-v6-c-label pf-m-cyan pf-m-outline"
|
|
250
|
-
>
|
|
251
|
-
<span
|
|
252
|
-
class="pf-v6-c-label__content"
|
|
253
|
-
>
|
|
254
|
-
<span
|
|
255
|
-
class="pf-v6-c-label__text"
|
|
256
|
-
>
|
|
257
|
-
Something
|
|
258
|
-
</span>
|
|
259
|
-
</span>
|
|
260
|
-
</span>
|
|
261
|
-
</DocumentFragment>
|
|
262
|
-
`;
|
|
263
|
-
|
|
264
228
|
exports[`Label label with green color 1`] = `
|
|
265
229
|
<DocumentFragment>
|
|
266
230
|
<span
|
|
@@ -479,6 +443,42 @@ exports[`Label label with red color with outline variant 1`] = `
|
|
|
479
443
|
</DocumentFragment>
|
|
480
444
|
`;
|
|
481
445
|
|
|
446
|
+
exports[`Label label with teal color 1`] = `
|
|
447
|
+
<DocumentFragment>
|
|
448
|
+
<span
|
|
449
|
+
class="pf-v6-c-label pf-m-teal pf-m-filled"
|
|
450
|
+
>
|
|
451
|
+
<span
|
|
452
|
+
class="pf-v6-c-label__content"
|
|
453
|
+
>
|
|
454
|
+
<span
|
|
455
|
+
class="pf-v6-c-label__text"
|
|
456
|
+
>
|
|
457
|
+
Something
|
|
458
|
+
</span>
|
|
459
|
+
</span>
|
|
460
|
+
</span>
|
|
461
|
+
</DocumentFragment>
|
|
462
|
+
`;
|
|
463
|
+
|
|
464
|
+
exports[`Label label with teal color with outline variant 1`] = `
|
|
465
|
+
<DocumentFragment>
|
|
466
|
+
<span
|
|
467
|
+
class="pf-v6-c-label pf-m-teal pf-m-outline"
|
|
468
|
+
>
|
|
469
|
+
<span
|
|
470
|
+
class="pf-v6-c-label__content"
|
|
471
|
+
>
|
|
472
|
+
<span
|
|
473
|
+
class="pf-v6-c-label__text"
|
|
474
|
+
>
|
|
475
|
+
Something
|
|
476
|
+
</span>
|
|
477
|
+
</span>
|
|
478
|
+
</span>
|
|
479
|
+
</DocumentFragment>
|
|
480
|
+
`;
|
|
481
|
+
|
|
482
482
|
exports[`Label label with truncation 1`] = `
|
|
483
483
|
<DocumentFragment>
|
|
484
484
|
<span
|
|
@@ -498,6 +498,42 @@ exports[`Label label with truncation 1`] = `
|
|
|
498
498
|
</DocumentFragment>
|
|
499
499
|
`;
|
|
500
500
|
|
|
501
|
+
exports[`Label label with yellow color 1`] = `
|
|
502
|
+
<DocumentFragment>
|
|
503
|
+
<span
|
|
504
|
+
class="pf-v6-c-label pf-m-yellow pf-m-filled"
|
|
505
|
+
>
|
|
506
|
+
<span
|
|
507
|
+
class="pf-v6-c-label__content"
|
|
508
|
+
>
|
|
509
|
+
<span
|
|
510
|
+
class="pf-v6-c-label__text"
|
|
511
|
+
>
|
|
512
|
+
Something
|
|
513
|
+
</span>
|
|
514
|
+
</span>
|
|
515
|
+
</span>
|
|
516
|
+
</DocumentFragment>
|
|
517
|
+
`;
|
|
518
|
+
|
|
519
|
+
exports[`Label label with yellow color with outline variant 1`] = `
|
|
520
|
+
<DocumentFragment>
|
|
521
|
+
<span
|
|
522
|
+
class="pf-v6-c-label pf-m-yellow pf-m-outline"
|
|
523
|
+
>
|
|
524
|
+
<span
|
|
525
|
+
class="pf-v6-c-label__content"
|
|
526
|
+
>
|
|
527
|
+
<span
|
|
528
|
+
class="pf-v6-c-label__text"
|
|
529
|
+
>
|
|
530
|
+
Something
|
|
531
|
+
</span>
|
|
532
|
+
</span>
|
|
533
|
+
</span>
|
|
534
|
+
</DocumentFragment>
|
|
535
|
+
`;
|
|
536
|
+
|
|
501
537
|
exports[`Label renders 1`] = `
|
|
502
538
|
<DocumentFragment>
|
|
503
539
|
<span
|
|
@@ -259,81 +259,81 @@ export const LabelFilled: React.FunctionComponent = () => {
|
|
|
259
259
|
</Label>
|
|
260
260
|
<br />
|
|
261
261
|
<br />
|
|
262
|
-
<Label color="
|
|
263
|
-
<Label color="
|
|
264
|
-
|
|
262
|
+
<Label color="teal">Teal</Label>
|
|
263
|
+
<Label color="teal" icon={<CubeIcon />}>
|
|
264
|
+
Teal icon
|
|
265
265
|
</Label>
|
|
266
|
-
<Label color="
|
|
267
|
-
|
|
266
|
+
<Label color="teal" onClose={() => Function.prototype}>
|
|
267
|
+
Teal removable
|
|
268
268
|
</Label>
|
|
269
|
-
<Label color="
|
|
270
|
-
|
|
269
|
+
<Label color="teal" icon={<CubeIcon />} onClose={() => Function.prototype}>
|
|
270
|
+
Teal icon removable
|
|
271
271
|
</Label>
|
|
272
|
-
<Label color="
|
|
273
|
-
|
|
272
|
+
<Label color="teal" href="#filled">
|
|
273
|
+
Teal link
|
|
274
274
|
</Label>
|
|
275
|
-
<Label color="
|
|
276
|
-
|
|
275
|
+
<Label color="teal" href="#filled" onClose={() => Function.prototype}>
|
|
276
|
+
Teal link removable
|
|
277
277
|
</Label>{' '}
|
|
278
|
-
<Label color="
|
|
279
|
-
|
|
278
|
+
<Label color="teal" onClick={() => logColor('teal')}>
|
|
279
|
+
Teal clickable
|
|
280
280
|
</Label>
|
|
281
|
-
<Label color="
|
|
282
|
-
|
|
281
|
+
<Label color="teal" onClick={() => logColor('teal')} onClose={() => Function.prototype}>
|
|
282
|
+
Teal clickable removable
|
|
283
283
|
</Label>{' '}
|
|
284
|
-
<Label color="
|
|
285
|
-
|
|
284
|
+
<Label color="teal" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
|
|
285
|
+
Teal label with icon that overflows
|
|
286
286
|
</Label>{' '}
|
|
287
|
-
<Label color="
|
|
288
|
-
|
|
287
|
+
<Label color="teal" isDisabled icon={<CubeIcon />} href="#filled" onClose={() => Function.prototype}>
|
|
288
|
+
Teal link removable (disabled)
|
|
289
289
|
</Label>{' '}
|
|
290
290
|
<Label
|
|
291
|
-
color="
|
|
291
|
+
color="teal"
|
|
292
292
|
isDisabled
|
|
293
293
|
icon={<CubeIcon />}
|
|
294
|
-
onClick={() => logColor('
|
|
294
|
+
onClick={() => logColor('teal')}
|
|
295
295
|
onClose={() => Function.prototype}
|
|
296
296
|
>
|
|
297
|
-
|
|
297
|
+
Teal clickable removable (disabled)
|
|
298
298
|
</Label>
|
|
299
299
|
<br />
|
|
300
300
|
<br />
|
|
301
|
-
<Label color="
|
|
302
|
-
<Label color="
|
|
303
|
-
|
|
301
|
+
<Label color="yellow">Yellow</Label>
|
|
302
|
+
<Label color="yellow" icon={<CubeIcon />}>
|
|
303
|
+
Yellow icon
|
|
304
304
|
</Label>
|
|
305
|
-
<Label color="
|
|
306
|
-
|
|
305
|
+
<Label color="yellow" onClose={() => Function.prototype}>
|
|
306
|
+
Yellow removable
|
|
307
307
|
</Label>
|
|
308
|
-
<Label color="
|
|
309
|
-
|
|
308
|
+
<Label color="yellow" icon={<CubeIcon />} onClose={() => Function.prototype}>
|
|
309
|
+
Yellow icon removable
|
|
310
310
|
</Label>
|
|
311
|
-
<Label color="
|
|
312
|
-
|
|
311
|
+
<Label color="yellow" href="#filled">
|
|
312
|
+
Yellow link
|
|
313
313
|
</Label>
|
|
314
|
-
<Label color="
|
|
315
|
-
|
|
314
|
+
<Label color="yellow" href="#filled" onClose={() => Function.prototype}>
|
|
315
|
+
Yellow link removable
|
|
316
316
|
</Label>{' '}
|
|
317
|
-
<Label color="
|
|
318
|
-
|
|
317
|
+
<Label color="yellow" onClick={() => logColor('yellow')}>
|
|
318
|
+
Yellow clickable
|
|
319
319
|
</Label>
|
|
320
|
-
<Label color="
|
|
321
|
-
|
|
320
|
+
<Label color="yellow" onClick={() => logColor('yellow')} onClose={() => Function.prototype}>
|
|
321
|
+
Yellow clickable removable
|
|
322
322
|
</Label>{' '}
|
|
323
|
-
<Label color="
|
|
324
|
-
|
|
323
|
+
<Label color="yellow" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
|
|
324
|
+
Yellow label with icon that overflows
|
|
325
325
|
</Label>{' '}
|
|
326
|
-
<Label color="
|
|
327
|
-
|
|
326
|
+
<Label color="yellow" isDisabled icon={<CubeIcon />} href="#filled" onClose={() => Function.prototype}>
|
|
327
|
+
Yellow link removable (disabled)
|
|
328
328
|
</Label>{' '}
|
|
329
329
|
<Label
|
|
330
|
-
color="
|
|
330
|
+
color="yellow"
|
|
331
331
|
isDisabled
|
|
332
332
|
icon={<CubeIcon />}
|
|
333
|
-
onClick={() => logColor('
|
|
333
|
+
onClick={() => logColor('yellow')}
|
|
334
334
|
onClose={() => Function.prototype}
|
|
335
335
|
>
|
|
336
|
-
|
|
336
|
+
Yellow clickable removable (disabled)
|
|
337
337
|
</Label>
|
|
338
338
|
<br />
|
|
339
339
|
<br />
|
|
@@ -182,7 +182,7 @@ export const LabelGroupEditableAddModal: React.FunctionComponent = () => {
|
|
|
182
182
|
<MenuItem itemId="Orange">Orange</MenuItem>
|
|
183
183
|
<MenuItem itemId="Red">Red</MenuItem>
|
|
184
184
|
<MenuItem itemId="Purple">Purple</MenuItem>
|
|
185
|
-
<MenuItem itemId="
|
|
185
|
+
<MenuItem itemId="Teal">Teal</MenuItem>
|
|
186
186
|
</MenuList>
|
|
187
187
|
</MenuContent>
|
|
188
188
|
</Menu>
|
|
@@ -328,101 +328,107 @@ export const LabelOutline: React.FunctionComponent = () => {
|
|
|
328
328
|
</Label>
|
|
329
329
|
<br />
|
|
330
330
|
<br />
|
|
331
|
-
<Label variant="outline" color="
|
|
332
|
-
|
|
331
|
+
<Label variant="outline" color="teal">
|
|
332
|
+
Teal
|
|
333
333
|
</Label>
|
|
334
|
-
<Label variant="outline" color="
|
|
335
|
-
|
|
334
|
+
<Label variant="outline" color="teal" icon={<CubeIcon />}>
|
|
335
|
+
Teal icon
|
|
336
336
|
</Label>
|
|
337
|
-
<Label variant="outline" color="
|
|
338
|
-
|
|
337
|
+
<Label variant="outline" color="teal" onClose={() => Function.prototype}>
|
|
338
|
+
Teal removable
|
|
339
339
|
</Label>
|
|
340
|
-
<Label variant="outline" color="
|
|
341
|
-
|
|
340
|
+
<Label variant="outline" color="teal" icon={<CubeIcon />} onClose={() => Function.prototype}>
|
|
341
|
+
Teal icon removable
|
|
342
342
|
</Label>
|
|
343
|
-
<Label variant="outline" color="
|
|
344
|
-
|
|
343
|
+
<Label variant="outline" color="teal" href="#outline">
|
|
344
|
+
Teal link
|
|
345
345
|
</Label>
|
|
346
|
-
<Label variant="outline" color="
|
|
347
|
-
|
|
346
|
+
<Label variant="outline" color="teal" href="#outline" onClose={() => Function.prototype}>
|
|
347
|
+
Teal link removable
|
|
348
348
|
</Label>{' '}
|
|
349
|
-
<Label variant="outline" color="
|
|
350
|
-
|
|
349
|
+
<Label variant="outline" color="teal" onClick={() => logColor('teal')}>
|
|
350
|
+
Teal clickable
|
|
351
351
|
</Label>
|
|
352
|
-
<Label variant="outline" color="
|
|
353
|
-
|
|
352
|
+
<Label variant="outline" color="teal" onClick={() => logColor('teal')} onClose={() => Function.prototype}>
|
|
353
|
+
Teal clickable removable
|
|
354
354
|
</Label>
|
|
355
|
-
<Label variant="outline" color="
|
|
356
|
-
|
|
355
|
+
<Label variant="outline" color="teal" icon={<CubeIcon />} onClose={() => Function.prototype} textMaxWidth="16ch">
|
|
356
|
+
Teal label with icon that overflows
|
|
357
357
|
</Label>{' '}
|
|
358
358
|
<Label
|
|
359
359
|
variant="outline"
|
|
360
|
-
color="
|
|
360
|
+
color="teal"
|
|
361
361
|
isDisabled
|
|
362
362
|
icon={<CubeIcon />}
|
|
363
363
|
href="#filled"
|
|
364
364
|
onClose={() => Function.prototype}
|
|
365
365
|
>
|
|
366
|
-
|
|
366
|
+
Teal link removable (disabled)
|
|
367
367
|
</Label>{' '}
|
|
368
368
|
<Label
|
|
369
369
|
variant="outline"
|
|
370
|
-
color="
|
|
370
|
+
color="teal"
|
|
371
371
|
isDisabled
|
|
372
372
|
icon={<CubeIcon />}
|
|
373
|
-
onClick={() => logColor('
|
|
373
|
+
onClick={() => logColor('teal')}
|
|
374
374
|
onClose={() => Function.prototype}
|
|
375
375
|
>
|
|
376
|
-
|
|
376
|
+
Teal clickable removable (disabled)
|
|
377
377
|
</Label>
|
|
378
378
|
<br />
|
|
379
379
|
<br />
|
|
380
|
-
<Label variant="outline" color="
|
|
381
|
-
|
|
380
|
+
<Label variant="outline" color="yellow">
|
|
381
|
+
Yellow
|
|
382
382
|
</Label>
|
|
383
|
-
<Label variant="outline" color="
|
|
384
|
-
|
|
383
|
+
<Label variant="outline" color="yellow" icon={<CubeIcon />}>
|
|
384
|
+
Yellow icon
|
|
385
385
|
</Label>
|
|
386
|
-
<Label variant="outline" color="
|
|
387
|
-
|
|
386
|
+
<Label variant="outline" color="yellow" onClose={() => Function.prototype}>
|
|
387
|
+
Yellow removable
|
|
388
388
|
</Label>
|
|
389
|
-
<Label variant="outline" color="
|
|
390
|
-
|
|
389
|
+
<Label variant="outline" color="yellow" icon={<CubeIcon />} onClose={() => Function.prototype}>
|
|
390
|
+
Yellow icon removable
|
|
391
391
|
</Label>
|
|
392
|
-
<Label variant="outline" color="
|
|
393
|
-
|
|
392
|
+
<Label variant="outline" color="yellow" href="#outline">
|
|
393
|
+
Yellow link
|
|
394
394
|
</Label>
|
|
395
|
-
<Label variant="outline" color="
|
|
396
|
-
|
|
395
|
+
<Label variant="outline" color="yellow" href="#outline" onClose={() => Function.prototype}>
|
|
396
|
+
Yellow link removable
|
|
397
397
|
</Label>{' '}
|
|
398
|
-
<Label variant="outline" color="
|
|
399
|
-
|
|
398
|
+
<Label variant="outline" color="yellow" onClick={() => logColor('yellow')}>
|
|
399
|
+
Yellow clickable
|
|
400
400
|
</Label>
|
|
401
|
-
<Label variant="outline" color="
|
|
402
|
-
|
|
401
|
+
<Label variant="outline" color="yellow" onClick={() => logColor('yellow')} onClose={() => Function.prototype}>
|
|
402
|
+
Yellow clickable removable
|
|
403
403
|
</Label>
|
|
404
|
-
<Label
|
|
405
|
-
|
|
404
|
+
<Label
|
|
405
|
+
variant="outline"
|
|
406
|
+
color="yellow"
|
|
407
|
+
icon={<CubeIcon />}
|
|
408
|
+
onClose={() => Function.prototype}
|
|
409
|
+
textMaxWidth="16ch"
|
|
410
|
+
>
|
|
411
|
+
Yellow label with icon that overflows
|
|
406
412
|
</Label>{' '}
|
|
407
413
|
<Label
|
|
408
414
|
variant="outline"
|
|
409
|
-
color="
|
|
415
|
+
color="yellow"
|
|
410
416
|
isDisabled
|
|
411
417
|
icon={<CubeIcon />}
|
|
412
418
|
href="#filled"
|
|
413
419
|
onClose={() => Function.prototype}
|
|
414
420
|
>
|
|
415
|
-
|
|
421
|
+
Yellow link removable (disabled)
|
|
416
422
|
</Label>{' '}
|
|
417
423
|
<Label
|
|
418
424
|
variant="outline"
|
|
419
|
-
color="
|
|
425
|
+
color="yellow"
|
|
420
426
|
isDisabled
|
|
421
427
|
icon={<CubeIcon />}
|
|
422
|
-
onClick={() => logColor('
|
|
428
|
+
onClick={() => logColor('yellow')}
|
|
423
429
|
onClose={() => Function.prototype}
|
|
424
430
|
>
|
|
425
|
-
|
|
431
|
+
Yellow clickable removable (disabled)
|
|
426
432
|
</Label>
|
|
427
433
|
<br />
|
|
428
434
|
<br />
|
package/src/demos/Tabs.md
CHANGED
|
@@ -47,7 +47,6 @@ import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-ic
|
|
|
47
47
|
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
48
48
|
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
49
49
|
|
|
50
|
-
|
|
51
50
|
TabsOpenDemo = () => {
|
|
52
51
|
const [activeTabKey, setActiveTabKey] = React.useState(0);
|
|
53
52
|
|
|
@@ -97,7 +96,7 @@ TabsOpenDemo = () => {
|
|
|
97
96
|
<DescriptionListDescription>
|
|
98
97
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
99
98
|
<FlexItem>
|
|
100
|
-
<Label color="
|
|
99
|
+
<Label color="teal">NS</Label>
|
|
101
100
|
</FlexItem>
|
|
102
101
|
<FlexItem>
|
|
103
102
|
<a href="#">knative-serving-ingress</a>
|
|
@@ -293,7 +292,7 @@ TabsOpenWithSecondaryTabsDemo = () => {
|
|
|
293
292
|
<DescriptionListDescription>
|
|
294
293
|
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
295
294
|
<FlexItem>
|
|
296
|
-
<Label color="
|
|
295
|
+
<Label color="teal">NS</Label>
|
|
297
296
|
</FlexItem>
|
|
298
297
|
<FlexItem>
|
|
299
298
|
<a href="#">knative-serving-ingress</a>
|