@patternfly/react-core 6.0.0-alpha.7 → 6.0.0-alpha.8
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 +4 -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/Chip/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/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/package.json +1 -1
- package/dist/esm/components/Button/Button.d.ts.map +1 -1
- package/dist/esm/components/Button/Button.js +8 -2
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Tabs/TabContent.d.ts.map +1 -1
- package/dist/esm/components/Tabs/TabContent.js +9 -7
- package/dist/esm/components/Tabs/TabContent.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/js/components/Button/Button.d.ts.map +1 -1
- package/dist/js/components/Button/Button.js +8 -2
- package/dist/js/components/Button/Button.js.map +1 -1
- package/dist/js/components/Tabs/TabContent.d.ts.map +1 -1
- package/dist/js/components/Tabs/TabContent.js +9 -7
- package/dist/js/components/Tabs/TabContent.js.map +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/styles/assets/images/pf-background.svg +22 -0
- 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 +6 -6
- package/src/components/Button/Button.tsx +4 -1
- package/src/components/Button/__tests__/Button.test.tsx +2 -1
- package/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +1 -1
- package/src/components/Masthead/__tests__/__snapshots__/Masthead.test.tsx.snap +6 -6
- package/src/components/Tabs/TabContent.tsx +7 -6
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tabs/__tests__/Generated/__snapshots__/TabContent.test.tsx.snap +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +44 -44
- package/src/components/Tabs/examples/TabsBoxLight.tsx +2 -1
package/helpers/package.json
CHANGED
|
@@ -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":"6.0.0-alpha.
|
|
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":"6.0.0-alpha.7","private":true}
|
package/layouts/package.json
CHANGED
|
@@ -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":"6.0.0-alpha.
|
|
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":"6.0.0-alpha.7","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":"6.0.0-alpha.
|
|
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":"6.0.0-alpha.7","private":true}
|
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.8",
|
|
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",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@patternfly/react-icons": "^6.0.0-alpha.
|
|
50
|
-
"@patternfly/react-styles": "^6.0.0-alpha.
|
|
51
|
-
"@patternfly/react-tokens": "^6.0.0-alpha.
|
|
49
|
+
"@patternfly/react-icons": "^6.0.0-alpha.6",
|
|
50
|
+
"@patternfly/react-styles": "^6.0.0-alpha.6",
|
|
51
|
+
"@patternfly/react-tokens": "^6.0.0-alpha.6",
|
|
52
52
|
"focus-trap": "7.5.2",
|
|
53
53
|
"react-dropzone": "^14.2.3",
|
|
54
54
|
"tslib": "^2.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@patternfly/patternfly": "6.0.0-alpha.
|
|
57
|
+
"@patternfly/patternfly": "6.0.0-alpha.49",
|
|
58
58
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
59
59
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
60
60
|
"@rollup/plugin-replace": "^5.0.2",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"react": "^17 || ^18",
|
|
73
73
|
"react-dom": "^17 || ^18"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "5aae45c06fbd78c00fc09de587cb833b9a7d077d"
|
|
76
76
|
}
|
|
@@ -94,6 +94,8 @@ const ButtonBase: React.FunctionComponent<ButtonProps> = ({
|
|
|
94
94
|
children = null,
|
|
95
95
|
className = '',
|
|
96
96
|
component = 'button',
|
|
97
|
+
// TODO: Update eslint ignore when issue #9907 is resolved
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
97
99
|
isActive = false,
|
|
98
100
|
isBlock = false,
|
|
99
101
|
isDisabled = false,
|
|
@@ -155,7 +157,8 @@ const ButtonBase: React.FunctionComponent<ButtonProps> = ({
|
|
|
155
157
|
isBlock && styles.modifiers.block,
|
|
156
158
|
isDisabled && styles.modifiers.disabled,
|
|
157
159
|
isAriaDisabled && styles.modifiers.ariaDisabled,
|
|
158
|
-
|
|
160
|
+
// TODO: Update when issue #9907 is resolved
|
|
161
|
+
// isActive && styles.modifiers.active,
|
|
159
162
|
isInline && variant === ButtonVariant.link && styles.modifiers.inline,
|
|
160
163
|
isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && styles.modifiers.danger,
|
|
161
164
|
isLoading !== null && variant !== ButtonVariant.plain && styles.modifiers.progress,
|
|
@@ -55,7 +55,8 @@ test('Renders with class pf-m-block when isBlock = true', () => {
|
|
|
55
55
|
expect(screen.getByRole('button')).toHaveClass('pf-m-block');
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
// TODO: Reenable or remove with issue #9907
|
|
59
|
+
xtest('Renders with class pf-m-active when isActive = true', () => {
|
|
59
60
|
render(<Button isActive>Active Button</Button>);
|
|
60
61
|
expect(screen.getByRole('button')).toHaveClass('pf-m-active');
|
|
61
62
|
});
|
|
@@ -6,7 +6,7 @@ exports[`Renders basic button 1`] = `
|
|
|
6
6
|
aria-disabled="false"
|
|
7
7
|
aria-label="basic button"
|
|
8
8
|
class="pf-v5-c-button pf-m-primary"
|
|
9
|
-
data-ouia-component-id="OUIA-Generated-Button-primary-
|
|
9
|
+
data-ouia-component-id="OUIA-Generated-Button-primary-26"
|
|
10
10
|
data-ouia-component-type="PF5/Button"
|
|
11
11
|
data-ouia-safe="true"
|
|
12
12
|
type="button"
|
|
@@ -63,7 +63,7 @@ exports[`Masthead verify inline display breakpoints 1`] = `
|
|
|
63
63
|
exports[`Masthead verify inset2xl inset breakpoints 1`] = `
|
|
64
64
|
<DocumentFragment>
|
|
65
65
|
<header
|
|
66
|
-
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-2xl
|
|
66
|
+
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-2xl"
|
|
67
67
|
>
|
|
68
68
|
test
|
|
69
69
|
</header>
|
|
@@ -83,7 +83,7 @@ exports[`Masthead verify inset3xl inset breakpoints 1`] = `
|
|
|
83
83
|
exports[`Masthead verify insetLg inset breakpoints 1`] = `
|
|
84
84
|
<DocumentFragment>
|
|
85
85
|
<header
|
|
86
|
-
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-lg
|
|
86
|
+
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-lg"
|
|
87
87
|
>
|
|
88
88
|
test
|
|
89
89
|
</header>
|
|
@@ -93,7 +93,7 @@ exports[`Masthead verify insetLg inset breakpoints 1`] = `
|
|
|
93
93
|
exports[`Masthead verify insetMd inset breakpoints 1`] = `
|
|
94
94
|
<DocumentFragment>
|
|
95
95
|
<header
|
|
96
|
-
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-md
|
|
96
|
+
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-md"
|
|
97
97
|
>
|
|
98
98
|
test
|
|
99
99
|
</header>
|
|
@@ -103,7 +103,7 @@ exports[`Masthead verify insetMd inset breakpoints 1`] = `
|
|
|
103
103
|
exports[`Masthead verify insetNone inset breakpoints 1`] = `
|
|
104
104
|
<DocumentFragment>
|
|
105
105
|
<header
|
|
106
|
-
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-none
|
|
106
|
+
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-none"
|
|
107
107
|
>
|
|
108
108
|
test
|
|
109
109
|
</header>
|
|
@@ -113,7 +113,7 @@ exports[`Masthead verify insetNone inset breakpoints 1`] = `
|
|
|
113
113
|
exports[`Masthead verify insetSm inset breakpoints 1`] = `
|
|
114
114
|
<DocumentFragment>
|
|
115
115
|
<header
|
|
116
|
-
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-sm
|
|
116
|
+
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-sm"
|
|
117
117
|
>
|
|
118
118
|
test
|
|
119
119
|
</header>
|
|
@@ -123,7 +123,7 @@ exports[`Masthead verify insetSm inset breakpoints 1`] = `
|
|
|
123
123
|
exports[`Masthead verify insetXl inset breakpoints 1`] = `
|
|
124
124
|
<DocumentFragment>
|
|
125
125
|
<header
|
|
126
|
-
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-xl
|
|
126
|
+
class="pf-v5-c-masthead pf-m-display-inline-on-md pf-m-inset-xl"
|
|
127
127
|
>
|
|
128
128
|
test
|
|
129
129
|
</header>
|
|
@@ -27,10 +27,10 @@ export interface TabContentProps extends Omit<React.HTMLProps<HTMLElement>, 'ref
|
|
|
27
27
|
ouiaSafe?: boolean;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
30
|
+
// TODO: Update with issue #9909
|
|
31
|
+
// const variantStyle = {
|
|
32
|
+
// default: ''
|
|
33
|
+
// };
|
|
34
34
|
|
|
35
35
|
const TabContentBase: React.FunctionComponent<TabContentProps> = ({
|
|
36
36
|
id,
|
|
@@ -60,10 +60,11 @@ const TabContentBase: React.FunctionComponent<TabContentProps> = ({
|
|
|
60
60
|
<section
|
|
61
61
|
ref={innerRef}
|
|
62
62
|
hidden={children ? null : child.props.eventKey !== activeKey}
|
|
63
|
+
// TODO: Update "variant" with issue #9909
|
|
63
64
|
className={
|
|
64
65
|
children
|
|
65
|
-
? css(styles.tabContent, className,
|
|
66
|
-
: css(styles.tabContent, child.props.className,
|
|
66
|
+
? css(styles.tabContent, className, variant)
|
|
67
|
+
: css(styles.tabContent, child.props.className, variant)
|
|
67
68
|
}
|
|
68
69
|
id={children ? id : `pf-tab-section-${child.props.eventKey}-${id}`}
|
|
69
70
|
aria-label={ariaLabel}
|
|
@@ -38,7 +38,7 @@ export interface TabsProps extends Omit<React.HTMLProps<HTMLElement | HTMLDivEle
|
|
|
38
38
|
/** Additional classes added to the tabs */
|
|
39
39
|
className?: string;
|
|
40
40
|
/** Tabs background color variant */
|
|
41
|
-
variant?: 'default'
|
|
41
|
+
variant?: 'default';
|
|
42
42
|
/** The index of the active tab */
|
|
43
43
|
activeKey?: number | string;
|
|
44
44
|
/** The index of the default active tab. Set this for uncontrolled Tabs */
|
|
@@ -4,7 +4,7 @@ exports[`TabContent should match snapshot (auto-generated) 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<section
|
|
6
6
|
aria-label="string"
|
|
7
|
-
class="pf-v5-c-tab-content string"
|
|
7
|
+
class="pf-v5-c-tab-content string default"
|
|
8
8
|
data-ouia-component-type="PF5/TabContent"
|
|
9
9
|
data-ouia-safe="true"
|
|
10
10
|
id="string"
|
|
@@ -81,7 +81,7 @@ exports[`should render accessible tabs 1`] = `
|
|
|
81
81
|
</nav>
|
|
82
82
|
<section
|
|
83
83
|
aria-labelledby="pf-tab-0-tab1"
|
|
84
|
-
class="pf-v5-c-tab-content"
|
|
84
|
+
class="pf-v5-c-tab-content default"
|
|
85
85
|
data-ouia-component-type="PF5/TabContent"
|
|
86
86
|
data-ouia-safe="true"
|
|
87
87
|
id="pf-tab-section-0-tab1"
|
|
@@ -92,7 +92,7 @@ exports[`should render accessible tabs 1`] = `
|
|
|
92
92
|
</section>
|
|
93
93
|
<section
|
|
94
94
|
aria-labelledby="pf-tab-1-tab2"
|
|
95
|
-
class="pf-v5-c-tab-content"
|
|
95
|
+
class="pf-v5-c-tab-content default"
|
|
96
96
|
data-ouia-component-type="PF5/TabContent"
|
|
97
97
|
data-ouia-safe="true"
|
|
98
98
|
hidden=""
|
|
@@ -104,7 +104,7 @@ exports[`should render accessible tabs 1`] = `
|
|
|
104
104
|
</section>
|
|
105
105
|
<section
|
|
106
106
|
aria-labelledby="pf-tab-2-tab3"
|
|
107
|
-
class="pf-v5-c-tab-content"
|
|
107
|
+
class="pf-v5-c-tab-content default"
|
|
108
108
|
data-ouia-component-type="PF5/TabContent"
|
|
109
109
|
data-ouia-safe="true"
|
|
110
110
|
hidden=""
|
|
@@ -227,7 +227,7 @@ exports[`should render box tabs 1`] = `
|
|
|
227
227
|
</div>
|
|
228
228
|
<section
|
|
229
229
|
aria-labelledby="pf-tab-0-tab1"
|
|
230
|
-
class="pf-v5-c-tab-content"
|
|
230
|
+
class="pf-v5-c-tab-content default"
|
|
231
231
|
data-ouia-component-type="PF5/TabContent"
|
|
232
232
|
data-ouia-safe="true"
|
|
233
233
|
id="pf-tab-section-0-tab1"
|
|
@@ -238,7 +238,7 @@ exports[`should render box tabs 1`] = `
|
|
|
238
238
|
</section>
|
|
239
239
|
<section
|
|
240
240
|
aria-labelledby="pf-tab-1-tab2"
|
|
241
|
-
class="pf-v5-c-tab-content"
|
|
241
|
+
class="pf-v5-c-tab-content default"
|
|
242
242
|
data-ouia-component-type="PF5/TabContent"
|
|
243
243
|
data-ouia-safe="true"
|
|
244
244
|
hidden=""
|
|
@@ -250,7 +250,7 @@ exports[`should render box tabs 1`] = `
|
|
|
250
250
|
</section>
|
|
251
251
|
<section
|
|
252
252
|
aria-labelledby="pf-tab-2-tab3"
|
|
253
|
-
class="pf-v5-c-tab-content"
|
|
253
|
+
class="pf-v5-c-tab-content default"
|
|
254
254
|
data-ouia-component-type="PF5/TabContent"
|
|
255
255
|
data-ouia-safe="true"
|
|
256
256
|
hidden=""
|
|
@@ -262,7 +262,7 @@ exports[`should render box tabs 1`] = `
|
|
|
262
262
|
</section>
|
|
263
263
|
<section
|
|
264
264
|
aria-labelledby="pf-tab-3-tab4"
|
|
265
|
-
class="pf-v5-c-tab-content"
|
|
265
|
+
class="pf-v5-c-tab-content default"
|
|
266
266
|
data-ouia-component-type="PF5/TabContent"
|
|
267
267
|
data-ouia-safe="true"
|
|
268
268
|
hidden=""
|
|
@@ -355,7 +355,7 @@ exports[`should render box tabs of light variant 1`] = `
|
|
|
355
355
|
</div>
|
|
356
356
|
<section
|
|
357
357
|
aria-labelledby="pf-tab-0-tab1"
|
|
358
|
-
class="pf-v5-c-tab-content
|
|
358
|
+
class="pf-v5-c-tab-content light300"
|
|
359
359
|
data-ouia-component-type="PF5/TabContent"
|
|
360
360
|
data-ouia-safe="true"
|
|
361
361
|
id="pf-tab-section-0-tab1"
|
|
@@ -366,7 +366,7 @@ exports[`should render box tabs of light variant 1`] = `
|
|
|
366
366
|
</section>
|
|
367
367
|
<section
|
|
368
368
|
aria-labelledby="pf-tab-1-tab2"
|
|
369
|
-
class="pf-v5-c-tab-content
|
|
369
|
+
class="pf-v5-c-tab-content light300"
|
|
370
370
|
data-ouia-component-type="PF5/TabContent"
|
|
371
371
|
data-ouia-safe="true"
|
|
372
372
|
hidden=""
|
|
@@ -378,7 +378,7 @@ exports[`should render box tabs of light variant 1`] = `
|
|
|
378
378
|
</section>
|
|
379
379
|
<section
|
|
380
380
|
aria-labelledby="pf-tab-2-tab3"
|
|
381
|
-
class="pf-v5-c-tab-content
|
|
381
|
+
class="pf-v5-c-tab-content light300"
|
|
382
382
|
data-ouia-component-type="PF5/TabContent"
|
|
383
383
|
data-ouia-safe="true"
|
|
384
384
|
hidden=""
|
|
@@ -544,7 +544,7 @@ exports[`should render expandable vertical tabs 1`] = `
|
|
|
544
544
|
</div>
|
|
545
545
|
<section
|
|
546
546
|
aria-labelledby="pf-tab-0-tab1"
|
|
547
|
-
class="pf-v5-c-tab-content"
|
|
547
|
+
class="pf-v5-c-tab-content default"
|
|
548
548
|
data-ouia-component-type="PF5/TabContent"
|
|
549
549
|
data-ouia-safe="true"
|
|
550
550
|
id="pf-tab-section-0-tab1"
|
|
@@ -555,7 +555,7 @@ exports[`should render expandable vertical tabs 1`] = `
|
|
|
555
555
|
</section>
|
|
556
556
|
<section
|
|
557
557
|
aria-labelledby="pf-tab-1-tab2"
|
|
558
|
-
class="pf-v5-c-tab-content"
|
|
558
|
+
class="pf-v5-c-tab-content default"
|
|
559
559
|
data-ouia-component-type="PF5/TabContent"
|
|
560
560
|
data-ouia-safe="true"
|
|
561
561
|
hidden=""
|
|
@@ -567,7 +567,7 @@ exports[`should render expandable vertical tabs 1`] = `
|
|
|
567
567
|
</section>
|
|
568
568
|
<section
|
|
569
569
|
aria-labelledby="pf-tab-2-tab3"
|
|
570
|
-
class="pf-v5-c-tab-content"
|
|
570
|
+
class="pf-v5-c-tab-content default"
|
|
571
571
|
data-ouia-component-type="PF5/TabContent"
|
|
572
572
|
data-ouia-safe="true"
|
|
573
573
|
hidden=""
|
|
@@ -579,7 +579,7 @@ exports[`should render expandable vertical tabs 1`] = `
|
|
|
579
579
|
</section>
|
|
580
580
|
<section
|
|
581
581
|
aria-labelledby="pf-tab-3-tab4"
|
|
582
|
-
class="pf-v5-c-tab-content"
|
|
582
|
+
class="pf-v5-c-tab-content default"
|
|
583
583
|
data-ouia-component-type="PF5/TabContent"
|
|
584
584
|
data-ouia-safe="true"
|
|
585
585
|
hidden=""
|
|
@@ -672,7 +672,7 @@ exports[`should render filled tabs 1`] = `
|
|
|
672
672
|
</div>
|
|
673
673
|
<section
|
|
674
674
|
aria-labelledby="pf-tab-0-tab1"
|
|
675
|
-
class="pf-v5-c-tab-content"
|
|
675
|
+
class="pf-v5-c-tab-content default"
|
|
676
676
|
data-ouia-component-type="PF5/TabContent"
|
|
677
677
|
data-ouia-safe="true"
|
|
678
678
|
id="pf-tab-section-0-tab1"
|
|
@@ -683,7 +683,7 @@ exports[`should render filled tabs 1`] = `
|
|
|
683
683
|
</section>
|
|
684
684
|
<section
|
|
685
685
|
aria-labelledby="pf-tab-1-tab2"
|
|
686
|
-
class="pf-v5-c-tab-content"
|
|
686
|
+
class="pf-v5-c-tab-content default"
|
|
687
687
|
data-ouia-component-type="PF5/TabContent"
|
|
688
688
|
data-ouia-safe="true"
|
|
689
689
|
hidden=""
|
|
@@ -695,7 +695,7 @@ exports[`should render filled tabs 1`] = `
|
|
|
695
695
|
</section>
|
|
696
696
|
<section
|
|
697
697
|
aria-labelledby="pf-tab-2-tab3"
|
|
698
|
-
class="pf-v5-c-tab-content"
|
|
698
|
+
class="pf-v5-c-tab-content default"
|
|
699
699
|
data-ouia-component-type="PF5/TabContent"
|
|
700
700
|
data-ouia-safe="true"
|
|
701
701
|
hidden=""
|
|
@@ -788,7 +788,7 @@ exports[`should render secondary tabs 1`] = `
|
|
|
788
788
|
</div>
|
|
789
789
|
<section
|
|
790
790
|
aria-labelledby="pf-tab-0-primarieTabs"
|
|
791
|
-
class="pf-v5-c-tab-content"
|
|
791
|
+
class="pf-v5-c-tab-content default"
|
|
792
792
|
data-ouia-component-type="PF5/TabContent"
|
|
793
793
|
data-ouia-safe="true"
|
|
794
794
|
id="pf-tab-section-0-primarieTabs"
|
|
@@ -873,7 +873,7 @@ exports[`should render secondary tabs 1`] = `
|
|
|
873
873
|
</div>
|
|
874
874
|
<section
|
|
875
875
|
aria-labelledby="pf-tab-10-secondary tab1"
|
|
876
|
-
class="pf-v5-c-tab-content"
|
|
876
|
+
class="pf-v5-c-tab-content default"
|
|
877
877
|
data-ouia-component-type="PF5/TabContent"
|
|
878
878
|
data-ouia-safe="true"
|
|
879
879
|
hidden=""
|
|
@@ -885,7 +885,7 @@ exports[`should render secondary tabs 1`] = `
|
|
|
885
885
|
</section>
|
|
886
886
|
<section
|
|
887
887
|
aria-labelledby="pf-tab-11-secondary tab2"
|
|
888
|
-
class="pf-v5-c-tab-content"
|
|
888
|
+
class="pf-v5-c-tab-content default"
|
|
889
889
|
data-ouia-component-type="PF5/TabContent"
|
|
890
890
|
data-ouia-safe="true"
|
|
891
891
|
hidden=""
|
|
@@ -897,7 +897,7 @@ exports[`should render secondary tabs 1`] = `
|
|
|
897
897
|
</section>
|
|
898
898
|
<section
|
|
899
899
|
aria-labelledby="pf-tab-12-secondary tab3"
|
|
900
|
-
class="pf-v5-c-tab-content"
|
|
900
|
+
class="pf-v5-c-tab-content default"
|
|
901
901
|
data-ouia-component-type="PF5/TabContent"
|
|
902
902
|
data-ouia-safe="true"
|
|
903
903
|
hidden=""
|
|
@@ -910,7 +910,7 @@ exports[`should render secondary tabs 1`] = `
|
|
|
910
910
|
</section>
|
|
911
911
|
<section
|
|
912
912
|
aria-labelledby="pf-tab-1-tab2"
|
|
913
|
-
class="pf-v5-c-tab-content"
|
|
913
|
+
class="pf-v5-c-tab-content default"
|
|
914
914
|
data-ouia-component-type="PF5/TabContent"
|
|
915
915
|
data-ouia-safe="true"
|
|
916
916
|
hidden=""
|
|
@@ -922,7 +922,7 @@ exports[`should render secondary tabs 1`] = `
|
|
|
922
922
|
</section>
|
|
923
923
|
<section
|
|
924
924
|
aria-labelledby="pf-tab-2-tab3"
|
|
925
|
-
class="pf-v5-c-tab-content"
|
|
925
|
+
class="pf-v5-c-tab-content default"
|
|
926
926
|
data-ouia-component-type="PF5/TabContent"
|
|
927
927
|
data-ouia-safe="true"
|
|
928
928
|
hidden=""
|
|
@@ -1045,7 +1045,7 @@ exports[`should render simple tabs 1`] = `
|
|
|
1045
1045
|
</div>
|
|
1046
1046
|
<section
|
|
1047
1047
|
aria-labelledby="pf-tab-0-tab1"
|
|
1048
|
-
class="pf-v5-c-tab-content"
|
|
1048
|
+
class="pf-v5-c-tab-content default"
|
|
1049
1049
|
data-ouia-component-type="PF5/TabContent"
|
|
1050
1050
|
data-ouia-safe="true"
|
|
1051
1051
|
id="pf-tab-section-0-tab1"
|
|
@@ -1056,7 +1056,7 @@ exports[`should render simple tabs 1`] = `
|
|
|
1056
1056
|
</section>
|
|
1057
1057
|
<section
|
|
1058
1058
|
aria-labelledby="pf-tab-1-tab2"
|
|
1059
|
-
class="pf-v5-c-tab-content"
|
|
1059
|
+
class="pf-v5-c-tab-content default"
|
|
1060
1060
|
data-ouia-component-type="PF5/TabContent"
|
|
1061
1061
|
data-ouia-safe="true"
|
|
1062
1062
|
hidden=""
|
|
@@ -1068,7 +1068,7 @@ exports[`should render simple tabs 1`] = `
|
|
|
1068
1068
|
</section>
|
|
1069
1069
|
<section
|
|
1070
1070
|
aria-labelledby="pf-tab-2-tab3"
|
|
1071
|
-
class="pf-v5-c-tab-content"
|
|
1071
|
+
class="pf-v5-c-tab-content default"
|
|
1072
1072
|
data-ouia-component-type="PF5/TabContent"
|
|
1073
1073
|
data-ouia-safe="true"
|
|
1074
1074
|
hidden=""
|
|
@@ -1080,7 +1080,7 @@ exports[`should render simple tabs 1`] = `
|
|
|
1080
1080
|
</section>
|
|
1081
1081
|
<section
|
|
1082
1082
|
aria-labelledby="pf-tab-3-tab4"
|
|
1083
|
-
class="pf-v5-c-tab-content"
|
|
1083
|
+
class="pf-v5-c-tab-content default"
|
|
1084
1084
|
data-ouia-component-type="PF5/TabContent"
|
|
1085
1085
|
data-ouia-safe="true"
|
|
1086
1086
|
hidden=""
|
|
@@ -1173,7 +1173,7 @@ exports[`should render tabs with eventKey Strings 1`] = `
|
|
|
1173
1173
|
</div>
|
|
1174
1174
|
<section
|
|
1175
1175
|
aria-labelledby="pf-tab-one-tab1"
|
|
1176
|
-
class="pf-v5-c-tab-content"
|
|
1176
|
+
class="pf-v5-c-tab-content default"
|
|
1177
1177
|
data-ouia-component-type="PF5/TabContent"
|
|
1178
1178
|
data-ouia-safe="true"
|
|
1179
1179
|
hidden=""
|
|
@@ -1185,7 +1185,7 @@ exports[`should render tabs with eventKey Strings 1`] = `
|
|
|
1185
1185
|
</section>
|
|
1186
1186
|
<section
|
|
1187
1187
|
aria-labelledby="pf-tab-two-tab2"
|
|
1188
|
-
class="pf-v5-c-tab-content"
|
|
1188
|
+
class="pf-v5-c-tab-content default"
|
|
1189
1189
|
data-ouia-component-type="PF5/TabContent"
|
|
1190
1190
|
data-ouia-safe="true"
|
|
1191
1191
|
hidden=""
|
|
@@ -1197,7 +1197,7 @@ exports[`should render tabs with eventKey Strings 1`] = `
|
|
|
1197
1197
|
</section>
|
|
1198
1198
|
<section
|
|
1199
1199
|
aria-labelledby="pf-tab-three-tab3"
|
|
1200
|
-
class="pf-v5-c-tab-content"
|
|
1200
|
+
class="pf-v5-c-tab-content default"
|
|
1201
1201
|
data-ouia-component-type="PF5/TabContent"
|
|
1202
1202
|
data-ouia-safe="true"
|
|
1203
1203
|
hidden=""
|
|
@@ -1290,7 +1290,7 @@ exports[`should render tabs with no bottom border 1`] = `
|
|
|
1290
1290
|
</div>
|
|
1291
1291
|
<section
|
|
1292
1292
|
aria-labelledby="pf-tab-0-tab1"
|
|
1293
|
-
class="pf-v5-c-tab-content"
|
|
1293
|
+
class="pf-v5-c-tab-content default"
|
|
1294
1294
|
data-ouia-component-type="PF5/TabContent"
|
|
1295
1295
|
data-ouia-safe="true"
|
|
1296
1296
|
id="pf-tab-section-0-tab1"
|
|
@@ -1301,7 +1301,7 @@ exports[`should render tabs with no bottom border 1`] = `
|
|
|
1301
1301
|
</section>
|
|
1302
1302
|
<section
|
|
1303
1303
|
aria-labelledby="pf-tab-1-tab2"
|
|
1304
|
-
class="pf-v5-c-tab-content"
|
|
1304
|
+
class="pf-v5-c-tab-content default"
|
|
1305
1305
|
data-ouia-component-type="PF5/TabContent"
|
|
1306
1306
|
data-ouia-safe="true"
|
|
1307
1307
|
hidden=""
|
|
@@ -1313,7 +1313,7 @@ exports[`should render tabs with no bottom border 1`] = `
|
|
|
1313
1313
|
</section>
|
|
1314
1314
|
<section
|
|
1315
1315
|
aria-labelledby="pf-tab-2-tab3"
|
|
1316
|
-
class="pf-v5-c-tab-content"
|
|
1316
|
+
class="pf-v5-c-tab-content default"
|
|
1317
1317
|
data-ouia-component-type="PF5/TabContent"
|
|
1318
1318
|
data-ouia-safe="true"
|
|
1319
1319
|
hidden=""
|
|
@@ -1407,7 +1407,7 @@ exports[`should render tabs with separate content 1`] = `
|
|
|
1407
1407
|
<div>
|
|
1408
1408
|
<section
|
|
1409
1409
|
aria-label="Tab item 1"
|
|
1410
|
-
class="pf-v5-c-tab-content"
|
|
1410
|
+
class="pf-v5-c-tab-content default"
|
|
1411
1411
|
data-ouia-component-type="PF5/TabContent"
|
|
1412
1412
|
data-ouia-safe="true"
|
|
1413
1413
|
id="refTab1Section"
|
|
@@ -1418,7 +1418,7 @@ exports[`should render tabs with separate content 1`] = `
|
|
|
1418
1418
|
</section>
|
|
1419
1419
|
<section
|
|
1420
1420
|
aria-label="Tab item 2"
|
|
1421
|
-
class="pf-v5-c-tab-content"
|
|
1421
|
+
class="pf-v5-c-tab-content default"
|
|
1422
1422
|
data-ouia-component-type="PF5/TabContent"
|
|
1423
1423
|
data-ouia-safe="true"
|
|
1424
1424
|
hidden=""
|
|
@@ -1434,7 +1434,7 @@ exports[`should render tabs with separate content 1`] = `
|
|
|
1434
1434
|
</section>
|
|
1435
1435
|
<section
|
|
1436
1436
|
aria-label="Tab item 3"
|
|
1437
|
-
class="pf-v5-c-tab-content"
|
|
1437
|
+
class="pf-v5-c-tab-content default"
|
|
1438
1438
|
data-ouia-component-type="PF5/TabContent"
|
|
1439
1439
|
data-ouia-safe="true"
|
|
1440
1440
|
hidden=""
|
|
@@ -1561,7 +1561,7 @@ exports[`should render uncontrolled tabs 1`] = `
|
|
|
1561
1561
|
</div>
|
|
1562
1562
|
<section
|
|
1563
1563
|
aria-labelledby="pf-tab-0-tab1"
|
|
1564
|
-
class="pf-v5-c-tab-content"
|
|
1564
|
+
class="pf-v5-c-tab-content default"
|
|
1565
1565
|
data-ouia-component-type="PF5/TabContent"
|
|
1566
1566
|
data-ouia-safe="true"
|
|
1567
1567
|
id="pf-tab-section-0-tab1"
|
|
@@ -1572,7 +1572,7 @@ exports[`should render uncontrolled tabs 1`] = `
|
|
|
1572
1572
|
</section>
|
|
1573
1573
|
<section
|
|
1574
1574
|
aria-labelledby="pf-tab-1-tab2"
|
|
1575
|
-
class="pf-v5-c-tab-content"
|
|
1575
|
+
class="pf-v5-c-tab-content default"
|
|
1576
1576
|
data-ouia-component-type="PF5/TabContent"
|
|
1577
1577
|
data-ouia-safe="true"
|
|
1578
1578
|
hidden=""
|
|
@@ -1584,7 +1584,7 @@ exports[`should render uncontrolled tabs 1`] = `
|
|
|
1584
1584
|
</section>
|
|
1585
1585
|
<section
|
|
1586
1586
|
aria-labelledby="pf-tab-2-tab3"
|
|
1587
|
-
class="pf-v5-c-tab-content"
|
|
1587
|
+
class="pf-v5-c-tab-content default"
|
|
1588
1588
|
data-ouia-component-type="PF5/TabContent"
|
|
1589
1589
|
data-ouia-safe="true"
|
|
1590
1590
|
hidden=""
|
|
@@ -1596,7 +1596,7 @@ exports[`should render uncontrolled tabs 1`] = `
|
|
|
1596
1596
|
</section>
|
|
1597
1597
|
<section
|
|
1598
1598
|
aria-labelledby="pf-tab-3-tab4"
|
|
1599
|
-
class="pf-v5-c-tab-content"
|
|
1599
|
+
class="pf-v5-c-tab-content default"
|
|
1600
1600
|
data-ouia-component-type="PF5/TabContent"
|
|
1601
1601
|
data-ouia-safe="true"
|
|
1602
1602
|
hidden=""
|
|
@@ -1719,7 +1719,7 @@ exports[`should render vertical tabs 1`] = `
|
|
|
1719
1719
|
</div>
|
|
1720
1720
|
<section
|
|
1721
1721
|
aria-labelledby="pf-tab-0-tab1"
|
|
1722
|
-
class="pf-v5-c-tab-content"
|
|
1722
|
+
class="pf-v5-c-tab-content default"
|
|
1723
1723
|
data-ouia-component-type="PF5/TabContent"
|
|
1724
1724
|
data-ouia-safe="true"
|
|
1725
1725
|
id="pf-tab-section-0-tab1"
|
|
@@ -1730,7 +1730,7 @@ exports[`should render vertical tabs 1`] = `
|
|
|
1730
1730
|
</section>
|
|
1731
1731
|
<section
|
|
1732
1732
|
aria-labelledby="pf-tab-1-tab2"
|
|
1733
|
-
class="pf-v5-c-tab-content"
|
|
1733
|
+
class="pf-v5-c-tab-content default"
|
|
1734
1734
|
data-ouia-component-type="PF5/TabContent"
|
|
1735
1735
|
data-ouia-safe="true"
|
|
1736
1736
|
hidden=""
|
|
@@ -1742,7 +1742,7 @@ exports[`should render vertical tabs 1`] = `
|
|
|
1742
1742
|
</section>
|
|
1743
1743
|
<section
|
|
1744
1744
|
aria-labelledby="pf-tab-2-tab3"
|
|
1745
|
-
class="pf-v5-c-tab-content"
|
|
1745
|
+
class="pf-v5-c-tab-content default"
|
|
1746
1746
|
data-ouia-component-type="PF5/TabContent"
|
|
1747
1747
|
data-ouia-safe="true"
|
|
1748
1748
|
hidden=""
|
|
@@ -1754,7 +1754,7 @@ exports[`should render vertical tabs 1`] = `
|
|
|
1754
1754
|
</section>
|
|
1755
1755
|
<section
|
|
1756
1756
|
aria-labelledby="pf-tab-3-tab4"
|
|
1757
|
-
class="pf-v5-c-tab-content"
|
|
1757
|
+
class="pf-v5-c-tab-content default"
|
|
1758
1758
|
data-ouia-component-type="PF5/TabContent"
|
|
1759
1759
|
data-ouia-safe="true"
|
|
1760
1760
|
hidden=""
|
|
@@ -24,7 +24,8 @@ export const TabsBoxLight: React.FunctionComponent = () => {
|
|
|
24
24
|
<Tabs
|
|
25
25
|
activeKey={activeTabKey}
|
|
26
26
|
onSelect={handleTabClick}
|
|
27
|
-
variant
|
|
27
|
+
// TODO: Update variant value when "isTabsLightScheme" with issue #9909
|
|
28
|
+
variant={isTabsLightScheme ? 'default' : 'default'}
|
|
28
29
|
isBox
|
|
29
30
|
aria-label="Tabs in the box light variation example"
|
|
30
31
|
role="region"
|