@patternfly/react-core 6.5.0-prerelease.24 → 6.5.0-prerelease.26
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/Compass/package.json +1 -1
- package/dist/dynamic/components/Content/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/Hero/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/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/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/Tile/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/AnimationsProvider/AnimationsProvider/package.json +1 -1
- package/dist/dynamic/helpers/AnimationsProvider/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/ClipboardCopy/ClipboardCopy.d.ts +8 -0
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +4 -2
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/esm/components/Label/Label.js +1 -1
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +8 -0
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js +4 -2
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/js/components/Label/Label.js +1 -1
- package/dist/js/components/Label/Label.js.map +1 -1
- package/dist/umd/assets/{output-BbsSnXfK.css → output-BOKd1GXO.css} +18528 -18528
- package/dist/umd/react-core.min.js +2 -2
- 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/ClipboardCopy/ClipboardCopy.tsx +16 -1
- package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +72 -0
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +1 -1
- package/src/components/Dropdown/examples/Dropdown.md +13 -1
- package/src/components/Dropdown/examples/DropdownWithSplit.tsx +97 -0
- package/src/components/Label/Label.tsx +1 -1
- package/src/demos/Banner.md +2 -139
- package/src/demos/DateTimePicker.md +2 -86
- package/src/demos/JumpLinks.md +2 -129
- package/src/demos/ProgressDemo.md +2 -65
- package/src/demos/ProgressStepperDemo.md +1 -72
- package/src/demos/Tabs.md +6 -417
- package/src/demos/examples/Banner/BannerBasicSticky.tsx +55 -0
- package/src/demos/examples/Banner/BannerTopBottom.tsx +81 -0
- package/src/demos/examples/DateTimePicker/DateTimeRangePicker.tsx +93 -0
- package/src/demos/examples/JumpLinks/JumpLinksScrollspy.tsx +125 -0
- package/src/demos/examples/JumpLinks/{JumpLinksWithDrawer.js → JumpLinksWithDrawer.tsx} +1 -1
- package/src/demos/examples/Progress/ProgressBasic.tsx +32 -0
- package/src/demos/examples/Progress/ProgressWithOnlyIncreasing.tsx +33 -0
- package/src/demos/examples/ProgressStepper/ProgressStepperBasic.tsx +72 -0
- package/src/demos/examples/Tabs/TabsOpen.tsx +185 -0
- package/src/demos/examples/Tabs/TabsOpenWithSecondaryTabs.tsx +228 -0
- package/src/layouts/Gallery/examples/Gallery.md +8 -99
- package/src/layouts/Gallery/examples/GalleryAdjustingMaxWidths.tsx +21 -0
- package/src/layouts/Gallery/examples/GalleryAdjustingMinMaxWidths.tsx +25 -0
- package/src/layouts/Gallery/examples/GalleryAdjustingMinWidths.tsx +22 -0
- package/src/layouts/Gallery/examples/GalleryAlternativeComponents.tsx +11 -0
- package/src/layouts/Gallery/examples/GalleryBasic.tsx +14 -0
- package/src/layouts/Gallery/examples/GalleryWithGutters.tsx +12 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
PageSection,
|
|
4
|
+
PageBreadcrumb,
|
|
5
|
+
Breadcrumb,
|
|
6
|
+
BreadcrumbItem,
|
|
7
|
+
Tabs,
|
|
8
|
+
Tab,
|
|
9
|
+
TabContent,
|
|
10
|
+
TabContentBody,
|
|
11
|
+
TabTitleText,
|
|
12
|
+
Title,
|
|
13
|
+
DescriptionList,
|
|
14
|
+
DescriptionListGroup,
|
|
15
|
+
DescriptionListTerm,
|
|
16
|
+
DescriptionListDescription,
|
|
17
|
+
Label,
|
|
18
|
+
LabelGroup,
|
|
19
|
+
Flex,
|
|
20
|
+
FlexItem
|
|
21
|
+
} from '@patternfly/react-core';
|
|
22
|
+
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
23
|
+
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
24
|
+
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
25
|
+
import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
|
|
26
|
+
|
|
27
|
+
export const TabsOpenWithSecondaryTabs: React.FunctionComponent = () => {
|
|
28
|
+
const [activeTabKey, setActiveTabKey] = useState<number>(0);
|
|
29
|
+
const [activeTabKeySecondary, setActiveTabKeySecondary] = useState<number>(10);
|
|
30
|
+
|
|
31
|
+
// Toggle currently active tab
|
|
32
|
+
const handleTabClick = (_event: React.MouseEvent<HTMLElement>, tabIndex: number) => {
|
|
33
|
+
setActiveTabKey(tabIndex);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// Toggle currently active secondary tab
|
|
37
|
+
const handleTabClickSecondary = (_event: React.MouseEvent<HTMLElement>, tabIndex: number) => {
|
|
38
|
+
setActiveTabKeySecondary(tabIndex);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const tabsBreadcrumb = (
|
|
42
|
+
<PageBreadcrumb isWidthLimited>
|
|
43
|
+
<Breadcrumb>
|
|
44
|
+
<BreadcrumbItem to="#">Overview</BreadcrumbItem>
|
|
45
|
+
<BreadcrumbItem to="#">Pods</BreadcrumbItem>
|
|
46
|
+
<BreadcrumbItem to="#" isActive>
|
|
47
|
+
Pod details{' '}
|
|
48
|
+
</BreadcrumbItem>
|
|
49
|
+
</Breadcrumb>
|
|
50
|
+
</PageBreadcrumb>
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const tabContent = (
|
|
54
|
+
<Flex direction={{ default: 'column' }}>
|
|
55
|
+
<FlexItem spacer={{ default: 'spacerLg' }}>
|
|
56
|
+
<Title headingLevel="h2" size="lg" className={spacing.mtSm} id="open-tabs-example-tabs-list-details-title">
|
|
57
|
+
Pod details
|
|
58
|
+
</Title>
|
|
59
|
+
</FlexItem>
|
|
60
|
+
<FlexItem>
|
|
61
|
+
<DescriptionList columnModifier={{ lg: '2Col' }} aria-labelledby="open-tabs-example-tabs-list-details-title">
|
|
62
|
+
<DescriptionListGroup>
|
|
63
|
+
<DescriptionListTerm>Name</DescriptionListTerm>
|
|
64
|
+
<DescriptionListDescription>3scale-control-fccb6ddb9-phyqv9</DescriptionListDescription>
|
|
65
|
+
</DescriptionListGroup>
|
|
66
|
+
<DescriptionListGroup>
|
|
67
|
+
<DescriptionListTerm>Status</DescriptionListTerm>
|
|
68
|
+
<DescriptionListDescription>
|
|
69
|
+
<Flex spacer={{ default: 'spacerLg' }}>
|
|
70
|
+
<FlexItem>
|
|
71
|
+
<CheckCircleIcon />
|
|
72
|
+
</FlexItem>
|
|
73
|
+
<FlexItem>Running</FlexItem>
|
|
74
|
+
</Flex>
|
|
75
|
+
</DescriptionListDescription>
|
|
76
|
+
</DescriptionListGroup>
|
|
77
|
+
<DescriptionListGroup>
|
|
78
|
+
<DescriptionListTerm>Namespace</DescriptionListTerm>
|
|
79
|
+
<DescriptionListDescription>
|
|
80
|
+
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
81
|
+
<FlexItem>
|
|
82
|
+
<Label color="teal">NS</Label>
|
|
83
|
+
</FlexItem>
|
|
84
|
+
<FlexItem>
|
|
85
|
+
<a href="#">knative-serving-ingress</a>
|
|
86
|
+
</FlexItem>
|
|
87
|
+
</Flex>
|
|
88
|
+
</DescriptionListDescription>
|
|
89
|
+
</DescriptionListGroup>
|
|
90
|
+
<DescriptionListGroup>
|
|
91
|
+
<DescriptionListTerm>Restart policy</DescriptionListTerm>
|
|
92
|
+
<DescriptionListDescription>Always restart</DescriptionListDescription>
|
|
93
|
+
</DescriptionListGroup>
|
|
94
|
+
<DescriptionListGroup>
|
|
95
|
+
<DescriptionListTerm>Labels</DescriptionListTerm>
|
|
96
|
+
<DescriptionListDescription>
|
|
97
|
+
<LabelGroup>
|
|
98
|
+
<Label>app=3scale-gateway</Label>
|
|
99
|
+
<Label>pod-template-has=6747686899</Label>
|
|
100
|
+
</LabelGroup>
|
|
101
|
+
</DescriptionListDescription>
|
|
102
|
+
</DescriptionListGroup>
|
|
103
|
+
<DescriptionListGroup>
|
|
104
|
+
<DescriptionListTerm>Active deadline seconds</DescriptionListTerm>
|
|
105
|
+
<DescriptionListDescription>Not configured</DescriptionListDescription>
|
|
106
|
+
</DescriptionListGroup>
|
|
107
|
+
<DescriptionListGroup>
|
|
108
|
+
<DescriptionListTerm>Tolerations</DescriptionListTerm>
|
|
109
|
+
<DescriptionListDescription>stuff</DescriptionListDescription>
|
|
110
|
+
</DescriptionListGroup>
|
|
111
|
+
<DescriptionListGroup>
|
|
112
|
+
<DescriptionListTerm>Pod IP</DescriptionListTerm>
|
|
113
|
+
<DescriptionListDescription>10.345.2.197</DescriptionListDescription>
|
|
114
|
+
</DescriptionListGroup>
|
|
115
|
+
<DescriptionListGroup>
|
|
116
|
+
<DescriptionListTerm>Annotations</DescriptionListTerm>
|
|
117
|
+
<DescriptionListDescription>stuff</DescriptionListDescription>
|
|
118
|
+
</DescriptionListGroup>
|
|
119
|
+
<DescriptionListGroup>
|
|
120
|
+
<DescriptionListTerm>Node</DescriptionListTerm>
|
|
121
|
+
<DescriptionListDescription>
|
|
122
|
+
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
123
|
+
<FlexItem>
|
|
124
|
+
<Label color="purple">N</Label>
|
|
125
|
+
</FlexItem>
|
|
126
|
+
<FlexItem>ip-10-0-233-118.us-east-2.computer.external</FlexItem>
|
|
127
|
+
</Flex>
|
|
128
|
+
</DescriptionListDescription>
|
|
129
|
+
</DescriptionListGroup>
|
|
130
|
+
<DescriptionListGroup>
|
|
131
|
+
<DescriptionListTerm>Created at</DescriptionListTerm>
|
|
132
|
+
<DescriptionListDescription>
|
|
133
|
+
<time>Oct 15, 1:51 pm</time>
|
|
134
|
+
</DescriptionListDescription>
|
|
135
|
+
</DescriptionListGroup>
|
|
136
|
+
</DescriptionList>
|
|
137
|
+
</FlexItem>
|
|
138
|
+
</Flex>
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
return (
|
|
142
|
+
<DashboardWrapper hasNoBreadcrumb>
|
|
143
|
+
{tabsBreadcrumb}
|
|
144
|
+
<PageSection isWidthLimited aria-label="Pod header">
|
|
145
|
+
<Flex
|
|
146
|
+
spaceItems={{ default: 'spaceItemsMd' }}
|
|
147
|
+
alignItems={{ default: 'alignItemsFlexStart' }}
|
|
148
|
+
flexWrap={{ default: 'noWrap' }}
|
|
149
|
+
>
|
|
150
|
+
<FlexItem>
|
|
151
|
+
<Label color="blue">N</Label>
|
|
152
|
+
</FlexItem>
|
|
153
|
+
<FlexItem>
|
|
154
|
+
<Title headingLevel="h1" size="2xl">
|
|
155
|
+
3scale-control-fccb6ddb9-phyqv9
|
|
156
|
+
</Title>
|
|
157
|
+
</FlexItem>
|
|
158
|
+
<FlexItem flex={{ default: 'flexNone' }}>
|
|
159
|
+
<Label icon={<InfoCircleIcon />}>Running</Label>
|
|
160
|
+
</FlexItem>
|
|
161
|
+
</Flex>
|
|
162
|
+
</PageSection>
|
|
163
|
+
<PageSection type="tabs" isWidthLimited aria-label="Pod navigation tabs">
|
|
164
|
+
<Tabs activeKey={activeTabKey} onSelect={handleTabClick} usePageInsets id="open-tabs-example-tabs-list">
|
|
165
|
+
<Tab eventKey={0} title={<TabTitleText>Details</TabTitleText>} tabContentId={`tabContent${0}`} />
|
|
166
|
+
<Tab eventKey={1} title={<TabTitleText>YAML</TabTitleText>} tabContentId={`tabContent${1}`} />
|
|
167
|
+
<Tab eventKey={2} title={<TabTitleText>Environment</TabTitleText>} tabContentId={`tabContent${2}`} />
|
|
168
|
+
<Tab eventKey={3} title={<TabTitleText>Events</TabTitleText>} tabContentId={`tabContent${3}`} />
|
|
169
|
+
<Tab eventKey={4} title={<TabTitleText>Terminal</TabTitleText>} tabContentId={`tabContent${4}`} />
|
|
170
|
+
</Tabs>
|
|
171
|
+
</PageSection>
|
|
172
|
+
<PageSection isWidthLimited padding={{ default: 'noPadding' }} aria-label="Pod content">
|
|
173
|
+
<TabContent key={0} eventKey={0} id={`tabContent${0}`} activeKey={activeTabKey} hidden={0 !== activeTabKey}>
|
|
174
|
+
<TabContentBody>
|
|
175
|
+
<Tabs
|
|
176
|
+
isSecondary
|
|
177
|
+
activeKey={activeTabKeySecondary}
|
|
178
|
+
onSelect={handleTabClickSecondary}
|
|
179
|
+
usePageInsets
|
|
180
|
+
id="open-with-secondary-tabs-example-tabs-list-secondary"
|
|
181
|
+
>
|
|
182
|
+
<Tab
|
|
183
|
+
eventKey={10}
|
|
184
|
+
title={<TabTitleText>Pod information</TabTitleText>}
|
|
185
|
+
tabContentId={`tabContent${10}`}
|
|
186
|
+
/>
|
|
187
|
+
<Tab
|
|
188
|
+
eventKey={11}
|
|
189
|
+
title={<TabTitleText>Editable aspects</TabTitleText>}
|
|
190
|
+
tabContentId={`tabContent${11}`}
|
|
191
|
+
/>
|
|
192
|
+
</Tabs>
|
|
193
|
+
<TabContent
|
|
194
|
+
key={10}
|
|
195
|
+
eventKey={10}
|
|
196
|
+
id={`tabContent${10}`}
|
|
197
|
+
activeKey={activeTabKeySecondary}
|
|
198
|
+
hidden={10 !== activeTabKeySecondary}
|
|
199
|
+
>
|
|
200
|
+
<TabContentBody hasPadding>{tabContent}</TabContentBody>
|
|
201
|
+
</TabContent>
|
|
202
|
+
<TabContent
|
|
203
|
+
key={11}
|
|
204
|
+
eventKey={11}
|
|
205
|
+
id={`tabContent${11}`}
|
|
206
|
+
activeKey={activeTabKeySecondary}
|
|
207
|
+
hidden={11 !== activeTabKeySecondary}
|
|
208
|
+
>
|
|
209
|
+
<TabContentBody>Editable aspects</TabContentBody>
|
|
210
|
+
</TabContent>
|
|
211
|
+
</TabContentBody>
|
|
212
|
+
</TabContent>
|
|
213
|
+
<TabContent key={1} eventKey={1} id={`tabContent${1}`} activeKey={activeTabKey} hidden={1 !== activeTabKey}>
|
|
214
|
+
<TabContentBody>YAML panel</TabContentBody>
|
|
215
|
+
</TabContent>
|
|
216
|
+
<TabContent key={2} eventKey={2} id={`tabContent${2}`} activeKey={activeTabKey} hidden={2 !== activeTabKey}>
|
|
217
|
+
<TabContentBody>Environment panel</TabContentBody>
|
|
218
|
+
</TabContent>
|
|
219
|
+
<TabContent key={3} eventKey={3} id={`tabContent${3}`} activeKey={activeTabKey} hidden={3 !== activeTabKey}>
|
|
220
|
+
<TabContentBody>Events panel</TabContentBody>
|
|
221
|
+
</TabContent>
|
|
222
|
+
<TabContent key={4} eventKey={4} id={`tabContent${4}`} activeKey={activeTabKey} hidden={4 !== activeTabKey}>
|
|
223
|
+
<TabContentBody>Terminal panel</TabContentBody>
|
|
224
|
+
</TabContent>
|
|
225
|
+
</PageSection>
|
|
226
|
+
</DashboardWrapper>
|
|
227
|
+
);
|
|
228
|
+
};
|
|
@@ -12,123 +12,32 @@ import './gallery.css';
|
|
|
12
12
|
|
|
13
13
|
### Basic
|
|
14
14
|
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<Gallery>
|
|
19
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
20
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
21
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
22
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
23
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
24
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
25
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
26
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
27
|
-
</Gallery>;
|
|
15
|
+
```ts file="GalleryBasic.tsx"
|
|
16
|
+
|
|
28
17
|
```
|
|
29
18
|
|
|
30
19
|
### With gutters
|
|
31
20
|
|
|
32
|
-
```
|
|
33
|
-
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
34
|
-
|
|
35
|
-
<Gallery hasGutter>
|
|
36
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
37
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
38
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
39
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
40
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
41
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
42
|
-
</Gallery>;
|
|
21
|
+
```ts file="GalleryWithGutters.tsx"
|
|
43
22
|
```
|
|
44
23
|
|
|
45
24
|
### Adjusting min widths
|
|
46
25
|
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<Gallery
|
|
51
|
-
hasGutter
|
|
52
|
-
minWidths={{
|
|
53
|
-
md: '100px',
|
|
54
|
-
lg: '150px',
|
|
55
|
-
xl: '200px',
|
|
56
|
-
'2xl': '300px'
|
|
57
|
-
}}
|
|
58
|
-
>
|
|
59
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
60
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
61
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
62
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
63
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
64
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
65
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
66
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
67
|
-
</Gallery>;
|
|
26
|
+
```ts file="GalleryAdjustingMinWidths.tsx"
|
|
27
|
+
|
|
68
28
|
```
|
|
69
29
|
|
|
70
30
|
### Adjusting max widths
|
|
71
31
|
|
|
72
|
-
```
|
|
73
|
-
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
74
|
-
|
|
75
|
-
<Gallery
|
|
76
|
-
hasGutter
|
|
77
|
-
maxWidths={{
|
|
78
|
-
md: '280px',
|
|
79
|
-
lg: '320px',
|
|
80
|
-
'2xl': '400px'
|
|
81
|
-
}}
|
|
82
|
-
>
|
|
83
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
84
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
85
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
86
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
87
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
88
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
89
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
90
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
91
|
-
</Gallery>;
|
|
32
|
+
```ts file="GalleryAdjustingMaxWidths.tsx"
|
|
92
33
|
```
|
|
93
34
|
|
|
94
35
|
### Adjusting min and max widths
|
|
95
36
|
|
|
96
|
-
```
|
|
97
|
-
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
98
|
-
|
|
99
|
-
<Gallery
|
|
100
|
-
hasGutter
|
|
101
|
-
minWidths={{
|
|
102
|
-
default: '100%',
|
|
103
|
-
md: '100px',
|
|
104
|
-
xl: '300px'
|
|
105
|
-
}}
|
|
106
|
-
maxWidths={{
|
|
107
|
-
md: '200px',
|
|
108
|
-
xl: '1fr'
|
|
109
|
-
}}
|
|
110
|
-
>
|
|
111
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
112
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
113
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
114
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
115
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
116
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
117
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
118
|
-
<GalleryItem>Gallery Item</GalleryItem>
|
|
119
|
-
</Gallery>;
|
|
37
|
+
```ts file="GalleryAdjustingMinMaxWidths.tsx"
|
|
120
38
|
```
|
|
121
39
|
|
|
122
40
|
### Alternative components
|
|
123
41
|
|
|
124
|
-
```
|
|
125
|
-
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
126
|
-
|
|
127
|
-
<Gallery component="ul">
|
|
128
|
-
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
129
|
-
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
130
|
-
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
131
|
-
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
132
|
-
<GalleryItem component="li">Gallery item</GalleryItem>
|
|
133
|
-
</Gallery>;
|
|
42
|
+
```ts file="GalleryAlternativeComponents.tsx"
|
|
134
43
|
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
2
|
+
|
|
3
|
+
export const GalleryAdjustingMaxWidths: React.FunctionComponent = () => (
|
|
4
|
+
<Gallery
|
|
5
|
+
hasGutter
|
|
6
|
+
maxWidths={{
|
|
7
|
+
md: '280px',
|
|
8
|
+
lg: '320px',
|
|
9
|
+
'2xl': '400px'
|
|
10
|
+
}}
|
|
11
|
+
>
|
|
12
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
13
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
14
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
15
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
16
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
17
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
18
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
19
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
20
|
+
</Gallery>
|
|
21
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
2
|
+
|
|
3
|
+
export const GalleryAdjustingMinMaxWidths: React.FunctionComponent = () => (
|
|
4
|
+
<Gallery
|
|
5
|
+
hasGutter
|
|
6
|
+
minWidths={{
|
|
7
|
+
default: '100%',
|
|
8
|
+
md: '100px',
|
|
9
|
+
xl: '300px'
|
|
10
|
+
}}
|
|
11
|
+
maxWidths={{
|
|
12
|
+
md: '200px',
|
|
13
|
+
xl: '1fr'
|
|
14
|
+
}}
|
|
15
|
+
>
|
|
16
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
17
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
18
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
19
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
20
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
21
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
22
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
23
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
24
|
+
</Gallery>
|
|
25
|
+
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
2
|
+
|
|
3
|
+
export const GalleryAdjustingMinWidths: React.FunctionComponent = () => (
|
|
4
|
+
<Gallery
|
|
5
|
+
hasGutter
|
|
6
|
+
minWidths={{
|
|
7
|
+
md: '100px',
|
|
8
|
+
lg: '150px',
|
|
9
|
+
xl: '200px',
|
|
10
|
+
'2xl': '300px'
|
|
11
|
+
}}
|
|
12
|
+
>
|
|
13
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
14
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
15
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
16
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
17
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
18
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
19
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
20
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
21
|
+
</Gallery>
|
|
22
|
+
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
2
|
+
|
|
3
|
+
export const GalleryAlternativeComponents: React.FunctionComponent = () => (
|
|
4
|
+
<Gallery component="ul">
|
|
5
|
+
<GalleryItem component="li">Gallery Item</GalleryItem>
|
|
6
|
+
<GalleryItem component="li">Gallery Item</GalleryItem>
|
|
7
|
+
<GalleryItem component="li">Gallery Item</GalleryItem>
|
|
8
|
+
<GalleryItem component="li">Gallery Item</GalleryItem>
|
|
9
|
+
<GalleryItem component="li">Gallery Item</GalleryItem>
|
|
10
|
+
</Gallery>
|
|
11
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
2
|
+
|
|
3
|
+
export const GalleryBasic: React.FunctionComponent = () => (
|
|
4
|
+
<Gallery>
|
|
5
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
6
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
7
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
8
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
9
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
10
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
11
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
12
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
13
|
+
</Gallery>
|
|
14
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Gallery, GalleryItem } from '@patternfly/react-core';
|
|
2
|
+
|
|
3
|
+
export const GalleryWithGutters: React.FunctionComponent = () => (
|
|
4
|
+
<Gallery hasGutter>
|
|
5
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
6
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
7
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
8
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
9
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
10
|
+
<GalleryItem>Gallery Item</GalleryItem>
|
|
11
|
+
</Gallery>
|
|
12
|
+
);
|