@patternfly/react-core 6.0.0-alpha.59 → 6.0.0-alpha.60
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/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/next/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +22 -14
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.js +2 -2
- package/dist/esm/components/Toolbar/ToolbarGroup.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts +23 -7
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.js +2 -2
- package/dist/esm/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.d.ts +22 -14
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.js +2 -2
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.js.map +1 -1
- package/dist/esm/demos/DashboardHeader.js +1 -1
- package/dist/esm/demos/DashboardHeader.js.map +1 -1
- package/dist/esm/helpers/util.d.ts +2 -0
- package/dist/esm/helpers/util.d.ts.map +1 -1
- package/dist/esm/helpers/util.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts +22 -14
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.js +2 -2
- package/dist/js/components/Toolbar/ToolbarGroup.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.d.ts +23 -7
- package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.js +2 -2
- package/dist/js/components/Toolbar/ToolbarItem.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarToggleGroup.d.ts +22 -14
- package/dist/js/components/Toolbar/ToolbarToggleGroup.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarToggleGroup.js +2 -2
- package/dist/js/components/Toolbar/ToolbarToggleGroup.js.map +1 -1
- package/dist/js/demos/DashboardHeader.js +1 -1
- package/dist/js/demos/DashboardHeader.js.map +1 -1
- package/dist/js/helpers/util.d.ts +2 -0
- package/dist/js/helpers/util.d.ts.map +1 -1
- package/dist/js/helpers/util.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -6
- package/src/components/Toolbar/ToolbarGroup.tsx +118 -18
- package/src/components/Toolbar/ToolbarItem.tsx +119 -9
- package/src/components/Toolbar/ToolbarToggleGroup.tsx +118 -18
- package/src/components/Toolbar/examples/Toolbar.md +1 -1
- package/src/components/Toolbar/examples/ToolbarSpacers.tsx +6 -13
- package/src/demos/DashboardHeader.tsx +1 -1
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +1 -1
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +1 -1
- package/src/demos/RTL/examples/PaginatedTable.jsx +1 -1
- package/src/demos/RTL/examples/PaginatedTable.tsx +1 -1
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +1 -1
- package/src/demos/examples/Nav/NavFlyout.tsx +1 -1
- package/src/demos/examples/Nav/NavHorizontal.tsx +1 -1
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +1 -1
- package/src/demos/examples/Nav/NavManual.tsx +1 -1
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +1 -1
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +1 -1
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +1 -1
- package/src/helpers/util.ts +2 -0
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.59","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.59","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.59","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.60",
|
|
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.22",
|
|
51
|
+
"@patternfly/react-styles": "^6.0.0-alpha.22",
|
|
52
|
+
"@patternfly/react-tokens": "^6.0.0-alpha.22",
|
|
53
53
|
"focus-trap": "7.5.2",
|
|
54
54
|
"react-dropzone": "^14.2.3",
|
|
55
55
|
"tslib": "^2.5.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@patternfly/patternfly": "6.0.0-alpha.
|
|
58
|
+
"@patternfly/patternfly": "6.0.0-alpha.139",
|
|
59
59
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
60
60
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
61
61
|
"@rollup/plugin-replace": "^5.0.2",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"react": "^17 || ^18",
|
|
75
75
|
"react-dom": "^17 || ^18"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "a104a4b6124ea9ba1a0581bd983c6c48471fd8cd"
|
|
78
78
|
}
|
|
@@ -34,21 +34,119 @@ export interface ToolbarGroupProps extends Omit<React.HTMLProps<HTMLDivElement>,
|
|
|
34
34
|
alignItems?: 'start' | 'center' | 'baseline' | 'default';
|
|
35
35
|
/** Vertical alignment */
|
|
36
36
|
alignSelf?: 'start' | 'center' | 'baseline' | 'default';
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
default?: '
|
|
40
|
-
md?: '
|
|
41
|
-
lg?: '
|
|
42
|
-
xl?: '
|
|
43
|
-
'2xl'?: '
|
|
37
|
+
/** Sets both the column and row gap at various breakpoints. */
|
|
38
|
+
gap?: {
|
|
39
|
+
default?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
40
|
+
md?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
41
|
+
lg?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
42
|
+
xl?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
43
|
+
'2xl'?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
44
44
|
};
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
default?:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
/** Sets only the column gap at various breakpoints. */
|
|
46
|
+
columnGap?: {
|
|
47
|
+
default?:
|
|
48
|
+
| 'columnGapNone'
|
|
49
|
+
| 'columnGapXs'
|
|
50
|
+
| 'columnGapSm'
|
|
51
|
+
| 'columnGapMd'
|
|
52
|
+
| 'columnGapLg'
|
|
53
|
+
| 'columnGapXl'
|
|
54
|
+
| 'columnGap_2xl'
|
|
55
|
+
| 'columnGap_3xl'
|
|
56
|
+
| 'columnGap_4xl';
|
|
57
|
+
md?:
|
|
58
|
+
| 'columnGapNone'
|
|
59
|
+
| 'columnGapXs'
|
|
60
|
+
| 'columnGapSm'
|
|
61
|
+
| 'columnGapMd'
|
|
62
|
+
| 'columnGapLg'
|
|
63
|
+
| 'columnGapXl'
|
|
64
|
+
| 'columnGap_2xl'
|
|
65
|
+
| 'columnGap_3xl'
|
|
66
|
+
| 'columnGap_4xl';
|
|
67
|
+
lg?:
|
|
68
|
+
| 'columnGapNone'
|
|
69
|
+
| 'columnGapXs'
|
|
70
|
+
| 'columnGapSm'
|
|
71
|
+
| 'columnGapMd'
|
|
72
|
+
| 'columnGapLg'
|
|
73
|
+
| 'columnGapXl'
|
|
74
|
+
| 'columnGap_2xl'
|
|
75
|
+
| 'columnGap_3xl'
|
|
76
|
+
| 'columnGap_4xl';
|
|
77
|
+
xl?:
|
|
78
|
+
| 'columnGapNone'
|
|
79
|
+
| 'columnGapXs'
|
|
80
|
+
| 'columnGapSm'
|
|
81
|
+
| 'columnGapMd'
|
|
82
|
+
| 'columnGapLg'
|
|
83
|
+
| 'columnGapXl'
|
|
84
|
+
| 'columnGap_2xl'
|
|
85
|
+
| 'columnGap_3xl'
|
|
86
|
+
| 'columnGap_4xl';
|
|
87
|
+
'2xl'?:
|
|
88
|
+
| 'columnGapNone'
|
|
89
|
+
| 'columnGapXs'
|
|
90
|
+
| 'columnGapSm'
|
|
91
|
+
| 'columnGapMd'
|
|
92
|
+
| 'columnGapLg'
|
|
93
|
+
| 'columnGapXl'
|
|
94
|
+
| 'columnGap_2xl'
|
|
95
|
+
| 'columnGap_3xl'
|
|
96
|
+
| 'columnGap_4xl';
|
|
97
|
+
};
|
|
98
|
+
/** Sets only the row gap at various breakpoints. */
|
|
99
|
+
rowGap?: {
|
|
100
|
+
default?:
|
|
101
|
+
| 'rowGapNone'
|
|
102
|
+
| 'rowGapXs'
|
|
103
|
+
| 'rowGapSm'
|
|
104
|
+
| 'rowGapMd'
|
|
105
|
+
| 'rowGapLg'
|
|
106
|
+
| 'rowGapXl'
|
|
107
|
+
| 'rowGap_2xl'
|
|
108
|
+
| 'rowGao_3xl'
|
|
109
|
+
| 'rowGap_4xl';
|
|
110
|
+
md?:
|
|
111
|
+
| 'rowGapNone'
|
|
112
|
+
| 'rowGapXs'
|
|
113
|
+
| 'rowGapSm'
|
|
114
|
+
| 'rowGapMd'
|
|
115
|
+
| 'rowGapLg'
|
|
116
|
+
| 'rowGapXl'
|
|
117
|
+
| 'rowGap_2xl'
|
|
118
|
+
| 'rowGao_3xl'
|
|
119
|
+
| 'rowGap_4xl';
|
|
120
|
+
lg?:
|
|
121
|
+
| 'rowGapNone'
|
|
122
|
+
| 'rowGapXs'
|
|
123
|
+
| 'rowGapSm'
|
|
124
|
+
| 'rowGapMd'
|
|
125
|
+
| 'rowGapLg'
|
|
126
|
+
| 'rowGapXl'
|
|
127
|
+
| 'rowGap_2xl'
|
|
128
|
+
| 'rowGao_3xl'
|
|
129
|
+
| 'rowGap_4xl';
|
|
130
|
+
xl?:
|
|
131
|
+
| 'rowGapNone'
|
|
132
|
+
| 'rowGapXs'
|
|
133
|
+
| 'rowGapSm'
|
|
134
|
+
| 'rowGapMd'
|
|
135
|
+
| 'rowGapLg'
|
|
136
|
+
| 'rowGapXl'
|
|
137
|
+
| 'rowGap_2xl'
|
|
138
|
+
| 'rowGao_3xl'
|
|
139
|
+
| 'rowGap_4xl';
|
|
140
|
+
'2xl'?:
|
|
141
|
+
| 'rowGapNone'
|
|
142
|
+
| 'rowGapXs'
|
|
143
|
+
| 'rowGapSm'
|
|
144
|
+
| 'rowGapMd'
|
|
145
|
+
| 'rowGapLg'
|
|
146
|
+
| 'rowGapXl'
|
|
147
|
+
| 'rowGap_2xl'
|
|
148
|
+
| 'rowGao_3xl'
|
|
149
|
+
| 'rowGap_4xl';
|
|
52
150
|
};
|
|
53
151
|
/** Content to be rendered inside the data toolbar group */
|
|
54
152
|
children?: React.ReactNode;
|
|
@@ -65,8 +163,9 @@ class ToolbarGroupWithRef extends React.Component<ToolbarGroupProps> {
|
|
|
65
163
|
align,
|
|
66
164
|
alignItems,
|
|
67
165
|
alignSelf,
|
|
68
|
-
|
|
69
|
-
|
|
166
|
+
gap,
|
|
167
|
+
columnGap,
|
|
168
|
+
rowGap,
|
|
70
169
|
className,
|
|
71
170
|
variant,
|
|
72
171
|
children,
|
|
@@ -84,8 +183,9 @@ class ToolbarGroupWithRef extends React.Component<ToolbarGroupProps> {
|
|
|
84
183
|
variant && styles.modifiers[toCamel(variant) as 'filterGroup' | 'iconButtonGroup'],
|
|
85
184
|
formatBreakpointMods(visibility, styles, '', getBreakpoint(width)),
|
|
86
185
|
formatBreakpointMods(align, styles, '', getBreakpoint(width)),
|
|
87
|
-
formatBreakpointMods(
|
|
88
|
-
formatBreakpointMods(
|
|
186
|
+
formatBreakpointMods(gap, styles, '', getBreakpoint(width)),
|
|
187
|
+
formatBreakpointMods(columnGap, styles, '', getBreakpoint(width)),
|
|
188
|
+
formatBreakpointMods(rowGap, styles, '', getBreakpoint(width)),
|
|
89
189
|
alignItems === 'start' && styles.modifiers.alignItemsStart,
|
|
90
190
|
alignItems === 'center' && styles.modifiers.alignItemsCenter,
|
|
91
191
|
alignItems === 'baseline' && styles.modifiers.alignItemsBaseline,
|
|
@@ -38,13 +38,119 @@ export interface ToolbarItemProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
38
38
|
alignItems?: 'start' | 'center' | 'baseline' | 'default';
|
|
39
39
|
/** Vertical alignment */
|
|
40
40
|
alignSelf?: 'start' | 'center' | 'baseline' | 'default';
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
default?: '
|
|
44
|
-
md?: '
|
|
45
|
-
lg?: '
|
|
46
|
-
xl?: '
|
|
47
|
-
'2xl'?: '
|
|
41
|
+
/** Sets both the column and row gap at various breakpoints. */
|
|
42
|
+
gap?: {
|
|
43
|
+
default?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
44
|
+
md?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
45
|
+
lg?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
46
|
+
xl?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
47
|
+
'2xl'?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
48
|
+
};
|
|
49
|
+
/** Sets only the column gap at various breakpoints. */
|
|
50
|
+
columnGap?: {
|
|
51
|
+
default?:
|
|
52
|
+
| 'columnGapNone'
|
|
53
|
+
| 'columnGapXs'
|
|
54
|
+
| 'columnGapSm'
|
|
55
|
+
| 'columnGapMd'
|
|
56
|
+
| 'columnGapLg'
|
|
57
|
+
| 'columnGapXl'
|
|
58
|
+
| 'columnGap_2xl'
|
|
59
|
+
| 'columnGap_3xl'
|
|
60
|
+
| 'columnGap_4xl';
|
|
61
|
+
md?:
|
|
62
|
+
| 'columnGapNone'
|
|
63
|
+
| 'columnGapXs'
|
|
64
|
+
| 'columnGapSm'
|
|
65
|
+
| 'columnGapMd'
|
|
66
|
+
| 'columnGapLg'
|
|
67
|
+
| 'columnGapXl'
|
|
68
|
+
| 'columnGap_2xl'
|
|
69
|
+
| 'columnGap_3xl'
|
|
70
|
+
| 'columnGap_4xl';
|
|
71
|
+
lg?:
|
|
72
|
+
| 'columnGapNone'
|
|
73
|
+
| 'columnGapXs'
|
|
74
|
+
| 'columnGapSm'
|
|
75
|
+
| 'columnGapMd'
|
|
76
|
+
| 'columnGapLg'
|
|
77
|
+
| 'columnGapXl'
|
|
78
|
+
| 'columnGap_2xl'
|
|
79
|
+
| 'columnGap_3xl'
|
|
80
|
+
| 'columnGap_4xl';
|
|
81
|
+
xl?:
|
|
82
|
+
| 'columnGapNone'
|
|
83
|
+
| 'columnGapXs'
|
|
84
|
+
| 'columnGapSm'
|
|
85
|
+
| 'columnGapMd'
|
|
86
|
+
| 'columnGapLg'
|
|
87
|
+
| 'columnGapXl'
|
|
88
|
+
| 'columnGap_2xl'
|
|
89
|
+
| 'columnGap_3xl'
|
|
90
|
+
| 'columnGap_4xl';
|
|
91
|
+
'2xl'?:
|
|
92
|
+
| 'columnGapNone'
|
|
93
|
+
| 'columnGapXs'
|
|
94
|
+
| 'columnGapSm'
|
|
95
|
+
| 'columnGapMd'
|
|
96
|
+
| 'columnGapLg'
|
|
97
|
+
| 'columnGapXl'
|
|
98
|
+
| 'columnGap_2xl'
|
|
99
|
+
| 'columnGap_3xl'
|
|
100
|
+
| 'columnGap_4xl';
|
|
101
|
+
};
|
|
102
|
+
/** Sets only the row gap at various breakpoints. */
|
|
103
|
+
rowGap?: {
|
|
104
|
+
default?:
|
|
105
|
+
| 'rowGapNone'
|
|
106
|
+
| 'rowGapXs'
|
|
107
|
+
| 'rowGapSm'
|
|
108
|
+
| 'rowGapMd'
|
|
109
|
+
| 'rowGapLg'
|
|
110
|
+
| 'rowGapXl'
|
|
111
|
+
| 'rowGap_2xl'
|
|
112
|
+
| 'rowGao_3xl'
|
|
113
|
+
| 'rowGap_4xl';
|
|
114
|
+
md?:
|
|
115
|
+
| 'rowGapNone'
|
|
116
|
+
| 'rowGapXs'
|
|
117
|
+
| 'rowGapSm'
|
|
118
|
+
| 'rowGapMd'
|
|
119
|
+
| 'rowGapLg'
|
|
120
|
+
| 'rowGapXl'
|
|
121
|
+
| 'rowGap_2xl'
|
|
122
|
+
| 'rowGao_3xl'
|
|
123
|
+
| 'rowGap_4xl';
|
|
124
|
+
lg?:
|
|
125
|
+
| 'rowGapNone'
|
|
126
|
+
| 'rowGapXs'
|
|
127
|
+
| 'rowGapSm'
|
|
128
|
+
| 'rowGapMd'
|
|
129
|
+
| 'rowGapLg'
|
|
130
|
+
| 'rowGapXl'
|
|
131
|
+
| 'rowGap_2xl'
|
|
132
|
+
| 'rowGao_3xl'
|
|
133
|
+
| 'rowGap_4xl';
|
|
134
|
+
xl?:
|
|
135
|
+
| 'rowGapNone'
|
|
136
|
+
| 'rowGapXs'
|
|
137
|
+
| 'rowGapSm'
|
|
138
|
+
| 'rowGapMd'
|
|
139
|
+
| 'rowGapLg'
|
|
140
|
+
| 'rowGapXl'
|
|
141
|
+
| 'rowGap_2xl'
|
|
142
|
+
| 'rowGao_3xl'
|
|
143
|
+
| 'rowGap_4xl';
|
|
144
|
+
'2xl'?:
|
|
145
|
+
| 'rowGapNone'
|
|
146
|
+
| 'rowGapXs'
|
|
147
|
+
| 'rowGapSm'
|
|
148
|
+
| 'rowGapMd'
|
|
149
|
+
| 'rowGapLg'
|
|
150
|
+
| 'rowGapXl'
|
|
151
|
+
| 'rowGap_2xl'
|
|
152
|
+
| 'rowGao_3xl'
|
|
153
|
+
| 'rowGap_4xl';
|
|
48
154
|
};
|
|
49
155
|
/** id for this data toolbar item */
|
|
50
156
|
id?: string;
|
|
@@ -60,7 +166,9 @@ export const ToolbarItem: React.FunctionComponent<ToolbarItemProps> = ({
|
|
|
60
166
|
className,
|
|
61
167
|
variant,
|
|
62
168
|
visibility,
|
|
63
|
-
|
|
169
|
+
gap,
|
|
170
|
+
columnGap,
|
|
171
|
+
rowGap,
|
|
64
172
|
align,
|
|
65
173
|
alignSelf,
|
|
66
174
|
alignItems,
|
|
@@ -86,7 +194,9 @@ export const ToolbarItem: React.FunctionComponent<ToolbarItemProps> = ({
|
|
|
86
194
|
isOverflowContainer && styles.modifiers.overflowContainer,
|
|
87
195
|
formatBreakpointMods(visibility, styles, '', getBreakpoint(width)),
|
|
88
196
|
formatBreakpointMods(align, styles, '', getBreakpoint(width)),
|
|
89
|
-
formatBreakpointMods(
|
|
197
|
+
formatBreakpointMods(gap, styles, '', getBreakpoint(width)),
|
|
198
|
+
formatBreakpointMods(columnGap, styles, '', getBreakpoint(width)),
|
|
199
|
+
formatBreakpointMods(rowGap, styles, '', getBreakpoint(width)),
|
|
90
200
|
alignItems === 'start' && styles.modifiers.alignItemsStart,
|
|
91
201
|
alignItems === 'center' && styles.modifiers.alignItemsCenter,
|
|
92
202
|
alignItems === 'baseline' && styles.modifiers.alignItemsBaseline,
|
|
@@ -35,21 +35,119 @@ export interface ToolbarToggleGroupProps extends ToolbarGroupProps {
|
|
|
35
35
|
xl?: 'alignEnd' | 'alignStart';
|
|
36
36
|
'2xl'?: 'alignEnd' | 'alignStart';
|
|
37
37
|
};
|
|
38
|
-
/**
|
|
39
|
-
|
|
40
|
-
default?: '
|
|
41
|
-
md?: '
|
|
42
|
-
lg?: '
|
|
43
|
-
xl?: '
|
|
44
|
-
'2xl'?: '
|
|
38
|
+
/** Sets both the column and row gap at various breakpoints. */
|
|
39
|
+
gap?: {
|
|
40
|
+
default?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
41
|
+
md?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
42
|
+
lg?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
43
|
+
xl?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
44
|
+
'2xl'?: 'gapNone' | 'gapXs' | 'gapSm' | 'gapMd' | 'gapLg' | 'gapXl' | 'gap_2xl' | 'gap_3xl' | 'gap_4xl';
|
|
45
45
|
};
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
default?:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
/** Sets only the column gap at various breakpoints. */
|
|
47
|
+
columnGap?: {
|
|
48
|
+
default?:
|
|
49
|
+
| 'columnGapNone'
|
|
50
|
+
| 'columnGapXs'
|
|
51
|
+
| 'columnGapSm'
|
|
52
|
+
| 'columnGapMd'
|
|
53
|
+
| 'columnGapLg'
|
|
54
|
+
| 'columnGapXl'
|
|
55
|
+
| 'columnGap_2xl'
|
|
56
|
+
| 'columnGap_3xl'
|
|
57
|
+
| 'columnGap_4xl';
|
|
58
|
+
md?:
|
|
59
|
+
| 'columnGapNone'
|
|
60
|
+
| 'columnGapXs'
|
|
61
|
+
| 'columnGapSm'
|
|
62
|
+
| 'columnGapMd'
|
|
63
|
+
| 'columnGapLg'
|
|
64
|
+
| 'columnGapXl'
|
|
65
|
+
| 'columnGap_2xl'
|
|
66
|
+
| 'columnGap_3xl'
|
|
67
|
+
| 'columnGap_4xl';
|
|
68
|
+
lg?:
|
|
69
|
+
| 'columnGapNone'
|
|
70
|
+
| 'columnGapXs'
|
|
71
|
+
| 'columnGapSm'
|
|
72
|
+
| 'columnGapMd'
|
|
73
|
+
| 'columnGapLg'
|
|
74
|
+
| 'columnGapXl'
|
|
75
|
+
| 'columnGap_2xl'
|
|
76
|
+
| 'columnGap_3xl'
|
|
77
|
+
| 'columnGap_4xl';
|
|
78
|
+
xl?:
|
|
79
|
+
| 'columnGapNone'
|
|
80
|
+
| 'columnGapXs'
|
|
81
|
+
| 'columnGapSm'
|
|
82
|
+
| 'columnGapMd'
|
|
83
|
+
| 'columnGapLg'
|
|
84
|
+
| 'columnGapXl'
|
|
85
|
+
| 'columnGap_2xl'
|
|
86
|
+
| 'columnGap_3xl'
|
|
87
|
+
| 'columnGap_4xl';
|
|
88
|
+
'2xl'?:
|
|
89
|
+
| 'columnGapNone'
|
|
90
|
+
| 'columnGapXs'
|
|
91
|
+
| 'columnGapSm'
|
|
92
|
+
| 'columnGapMd'
|
|
93
|
+
| 'columnGapLg'
|
|
94
|
+
| 'columnGapXl'
|
|
95
|
+
| 'columnGap_2xl'
|
|
96
|
+
| 'columnGap_3xl'
|
|
97
|
+
| 'columnGap_4xl';
|
|
98
|
+
};
|
|
99
|
+
/** Sets only the row gap at various breakpoints. */
|
|
100
|
+
rowGap?: {
|
|
101
|
+
default?:
|
|
102
|
+
| 'rowGapNone'
|
|
103
|
+
| 'rowGapXs'
|
|
104
|
+
| 'rowGapSm'
|
|
105
|
+
| 'rowGapMd'
|
|
106
|
+
| 'rowGapLg'
|
|
107
|
+
| 'rowGapXl'
|
|
108
|
+
| 'rowGap_2xl'
|
|
109
|
+
| 'rowGao_3xl'
|
|
110
|
+
| 'rowGap_4xl';
|
|
111
|
+
md?:
|
|
112
|
+
| 'rowGapNone'
|
|
113
|
+
| 'rowGapXs'
|
|
114
|
+
| 'rowGapSm'
|
|
115
|
+
| 'rowGapMd'
|
|
116
|
+
| 'rowGapLg'
|
|
117
|
+
| 'rowGapXl'
|
|
118
|
+
| 'rowGap_2xl'
|
|
119
|
+
| 'rowGao_3xl'
|
|
120
|
+
| 'rowGap_4xl';
|
|
121
|
+
lg?:
|
|
122
|
+
| 'rowGapNone'
|
|
123
|
+
| 'rowGapXs'
|
|
124
|
+
| 'rowGapSm'
|
|
125
|
+
| 'rowGapMd'
|
|
126
|
+
| 'rowGapLg'
|
|
127
|
+
| 'rowGapXl'
|
|
128
|
+
| 'rowGap_2xl'
|
|
129
|
+
| 'rowGao_3xl'
|
|
130
|
+
| 'rowGap_4xl';
|
|
131
|
+
xl?:
|
|
132
|
+
| 'rowGapNone'
|
|
133
|
+
| 'rowGapXs'
|
|
134
|
+
| 'rowGapSm'
|
|
135
|
+
| 'rowGapMd'
|
|
136
|
+
| 'rowGapLg'
|
|
137
|
+
| 'rowGapXl'
|
|
138
|
+
| 'rowGap_2xl'
|
|
139
|
+
| 'rowGao_3xl'
|
|
140
|
+
| 'rowGap_4xl';
|
|
141
|
+
'2xl'?:
|
|
142
|
+
| 'rowGapNone'
|
|
143
|
+
| 'rowGapXs'
|
|
144
|
+
| 'rowGapSm'
|
|
145
|
+
| 'rowGapMd'
|
|
146
|
+
| 'rowGapLg'
|
|
147
|
+
| 'rowGapXl'
|
|
148
|
+
| 'rowGap_2xl'
|
|
149
|
+
| 'rowGao_3xl'
|
|
150
|
+
| 'rowGap_4xl';
|
|
53
151
|
};
|
|
54
152
|
/** Reference to a chip container group for filters inside the toolbar toggle group */
|
|
55
153
|
chipContainerRef?: React.RefObject<any>;
|
|
@@ -79,8 +177,9 @@ class ToolbarToggleGroup extends React.Component<ToolbarToggleGroupProps> {
|
|
|
79
177
|
visibility,
|
|
80
178
|
breakpoint,
|
|
81
179
|
alignment,
|
|
82
|
-
|
|
83
|
-
|
|
180
|
+
gap,
|
|
181
|
+
columnGap,
|
|
182
|
+
rowGap,
|
|
84
183
|
className,
|
|
85
184
|
children,
|
|
86
185
|
isExpanded,
|
|
@@ -166,8 +265,9 @@ class ToolbarToggleGroup extends React.Component<ToolbarToggleGroupProps> {
|
|
|
166
265
|
formatBreakpointMods(breakpointMod, styles, '', getBreakpoint(width)),
|
|
167
266
|
formatBreakpointMods(visibility, styles, '', getBreakpoint(width)),
|
|
168
267
|
formatBreakpointMods(alignment, styles, '', getBreakpoint(width)),
|
|
169
|
-
formatBreakpointMods(
|
|
170
|
-
formatBreakpointMods(
|
|
268
|
+
formatBreakpointMods(gap, styles, '', getBreakpoint(width)),
|
|
269
|
+
formatBreakpointMods(columnGap, styles, '', getBreakpoint(width)),
|
|
270
|
+
formatBreakpointMods(rowGap, styles, '', getBreakpoint(width)),
|
|
171
271
|
className
|
|
172
272
|
)}
|
|
173
273
|
{...props}
|
|
@@ -28,7 +28,7 @@ Note: This example does not demonstrate responsive toolbar behavior. Responsive
|
|
|
28
28
|
|
|
29
29
|
You may adjust the space between toolbar items to arrange them into groups. Read our spacers documentation to learn more about using spacers.
|
|
30
30
|
|
|
31
|
-
Items are spaced “16px” apart by default
|
|
31
|
+
Items are spaced “16px” apart by default via their parents' `gap` or `columnGap` property. You can set the property values at multiple breakpoints, including "default", "md", "lg", "xl", and "2xl".
|
|
32
32
|
|
|
33
33
|
```ts file="./ToolbarSpacers.tsx"
|
|
34
34
|
|
|
@@ -5,34 +5,27 @@ import { Button } from '@patternfly/react-core';
|
|
|
5
5
|
export const ToolbarSpacers: React.FunctionComponent = () => {
|
|
6
6
|
const items = (
|
|
7
7
|
<React.Fragment>
|
|
8
|
-
<ToolbarItem
|
|
8
|
+
<ToolbarItem>
|
|
9
9
|
<Button variant="secondary">Action</Button>
|
|
10
10
|
</ToolbarItem>
|
|
11
|
-
<ToolbarItem
|
|
11
|
+
<ToolbarItem>
|
|
12
12
|
<Button variant="secondary">Action</Button>
|
|
13
13
|
</ToolbarItem>
|
|
14
|
-
<ToolbarItem
|
|
14
|
+
<ToolbarItem>
|
|
15
15
|
<Button variant="secondary">Action</Button>
|
|
16
16
|
</ToolbarItem>
|
|
17
|
-
<ToolbarItem
|
|
17
|
+
<ToolbarItem>
|
|
18
18
|
<Button variant="secondary">Action</Button>
|
|
19
19
|
</ToolbarItem>
|
|
20
20
|
<ToolbarItem variant="separator"></ToolbarItem>
|
|
21
|
-
<ToolbarItem
|
|
22
|
-
spacer={{
|
|
23
|
-
default: 'spacerNone',
|
|
24
|
-
md: 'spacerSm',
|
|
25
|
-
lg: 'spacerMd',
|
|
26
|
-
xl: 'spacerLg'
|
|
27
|
-
}}
|
|
28
|
-
>
|
|
21
|
+
<ToolbarItem>
|
|
29
22
|
<Button variant="secondary">Action</Button>
|
|
30
23
|
</ToolbarItem>
|
|
31
24
|
<ToolbarItem>
|
|
32
25
|
<Button variant="primary">Action</Button>
|
|
33
26
|
</ToolbarItem>
|
|
34
27
|
<ToolbarItem variant="separator"></ToolbarItem>
|
|
35
|
-
<ToolbarGroup
|
|
28
|
+
<ToolbarGroup gap={{ lg: 'gapLg' }}>
|
|
36
29
|
<ToolbarItem>
|
|
37
30
|
<Button variant="secondary">Action</Button>
|
|
38
31
|
</ToolbarItem>
|
|
@@ -101,7 +101,7 @@ export const DashboardHeader: React.FC<DashboardHeaderProps> = ({ notificationBa
|
|
|
101
101
|
<ToolbarGroup
|
|
102
102
|
variant="icon-button-group"
|
|
103
103
|
align={{ default: 'alignEnd' }}
|
|
104
|
-
|
|
104
|
+
gap={{ default: 'gapNone', md: 'gapMd' }}
|
|
105
105
|
>
|
|
106
106
|
{notificationBadge ?? (
|
|
107
107
|
<ToolbarItem>
|
|
@@ -176,7 +176,7 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
176
176
|
const headerToolbar = (
|
|
177
177
|
<Toolbar isFullHeight>
|
|
178
178
|
<ToolbarContent>
|
|
179
|
-
<ToolbarGroup
|
|
179
|
+
<ToolbarGroup align={{ default: 'alignEnd' }}>
|
|
180
180
|
<ToolbarGroup variant="icon-button-group">
|
|
181
181
|
<ToolbarItem visibility={{ default: 'visible' }} selected={isDrawerExpanded}>
|
|
182
182
|
<NotificationBadge
|
|
@@ -226,7 +226,7 @@ export const NotificationDrawerGrouped: React.FunctionComponent = () => {
|
|
|
226
226
|
const headerToolbar = (
|
|
227
227
|
<Toolbar isFullHeight>
|
|
228
228
|
<ToolbarContent>
|
|
229
|
-
<ToolbarGroup
|
|
229
|
+
<ToolbarGroup align={{ default: 'alignEnd' }}>
|
|
230
230
|
<ToolbarGroup variant="icon-button-group">
|
|
231
231
|
<ToolbarItem visibility={{ default: 'visible' }} selected={isDrawerExpanded}>
|
|
232
232
|
<NotificationBadge
|
|
@@ -342,7 +342,7 @@ export const PaginatedTableAction = () => {
|
|
|
342
342
|
<ToolbarGroup
|
|
343
343
|
variant="icon-button-group"
|
|
344
344
|
align={{ default: 'alignEnd' }}
|
|
345
|
-
|
|
345
|
+
gap={{ default: 'gapNone', md: 'gapMd' }}
|
|
346
346
|
>
|
|
347
347
|
<ToolbarGroup variant="icon-button-group" visibility={{ default: 'hidden', lg: 'visible' }}>
|
|
348
348
|
<ToolbarItem>
|
|
@@ -366,7 +366,7 @@ export const PaginatedTableAction: React.FunctionComponent = () => {
|
|
|
366
366
|
<ToolbarGroup
|
|
367
367
|
variant="icon-button-group"
|
|
368
368
|
align={{ default: 'alignEnd' }}
|
|
369
|
-
|
|
369
|
+
gap={{ default: 'gapNone', md: 'gapMd' }}
|
|
370
370
|
>
|
|
371
371
|
<ToolbarGroup variant="icon-button-group" visibility={{ default: 'hidden', lg: 'visible' }}>
|
|
372
372
|
<ToolbarItem>
|
|
@@ -383,7 +383,7 @@ export const MastheadWithUtilitiesAndUserDropdownMenu: React.FunctionComponent =
|
|
|
383
383
|
<ToolbarGroup
|
|
384
384
|
variant="icon-button-group"
|
|
385
385
|
align={{ default: 'alignEnd' }}
|
|
386
|
-
|
|
386
|
+
gap={{ default: 'gapNone', md: 'gapMd' }}
|
|
387
387
|
>
|
|
388
388
|
<ToolbarItem>
|
|
389
389
|
<Button aria-label="Notifications" variant={ButtonVariant.plain} icon={<BellIcon />} />
|
|
@@ -130,7 +130,7 @@ export const NavFlyout: React.FunctionComponent = () => {
|
|
|
130
130
|
<ToolbarGroup
|
|
131
131
|
variant="icon-button-group"
|
|
132
132
|
align={{ default: 'alignEnd' }}
|
|
133
|
-
|
|
133
|
+
gap={{ default: 'gapNone', md: 'gapMd' }}
|
|
134
134
|
>
|
|
135
135
|
<ToolbarItem>
|
|
136
136
|
<Button aria-label="Notifications" variant={ButtonVariant.plain} icon={<BellIcon />} onClick={() => {}} />
|
|
@@ -109,7 +109,7 @@ export const NavHorizontal: React.FunctionComponent = () => {
|
|
|
109
109
|
<ToolbarGroup
|
|
110
110
|
variant="icon-button-group"
|
|
111
111
|
align={{ default: 'alignEnd' }}
|
|
112
|
-
|
|
112
|
+
gap={{ default: 'gapNone', md: 'gapMd' }}
|
|
113
113
|
>
|
|
114
114
|
<ToolbarItem>
|
|
115
115
|
<Button aria-label="Notifications" variant={ButtonVariant.plain} icon={<BellIcon />} onClick={() => {}} />
|