@patternfly/react-core 6.0.0-alpha.77 → 6.0.0-alpha.79
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/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/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/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/dynamic-modules.json +2 -2
- package/dist/esm/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/esm/components/ExpandableSection/ExpandableSection.js +6 -4
- package/dist/esm/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/esm/components/JumpLinks/JumpLinks.d.ts.map +1 -1
- package/dist/esm/components/JumpLinks/JumpLinks.js +2 -7
- package/dist/esm/components/JumpLinks/JumpLinks.js.map +1 -1
- package/dist/esm/components/Page/PageSidebarBody.d.ts +2 -0
- package/dist/esm/components/Page/PageSidebarBody.d.ts.map +1 -1
- package/dist/esm/components/Page/PageSidebarBody.js +2 -2
- package/dist/esm/components/Page/PageSidebarBody.js.map +1 -1
- package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/esm/components/Tabs/Tabs.js +2 -4
- package/dist/esm/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/components/Toolbar/Toolbar.d.ts +5 -5
- package/dist/esm/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/Toolbar.js +6 -6
- package/dist/esm/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarContent.d.ts +1 -1
- package/dist/esm/components/Toolbar/ToolbarContent.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarContent.js +2 -2
- package/dist/esm/components/Toolbar/ToolbarContent.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarExpandableContent.d.ts +2 -2
- package/dist/esm/components/Toolbar/ToolbarExpandableContent.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarExpandableContent.js +7 -7
- package/dist/esm/components/Toolbar/ToolbarExpandableContent.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarFilter.d.ts +21 -21
- package/dist/esm/components/Toolbar/ToolbarFilter.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarFilter.js +15 -15
- package/dist/esm/components/Toolbar/ToolbarFilter.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts +2 -2
- 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/{ToolbarChipGroupContent.d.ts → ToolbarLabelGroupContent.d.ts} +10 -10
- package/dist/esm/components/Toolbar/ToolbarLabelGroupContent.d.ts.map +1 -0
- package/dist/esm/components/Toolbar/{ToolbarChipGroupContent.js → ToolbarLabelGroupContent.js} +11 -11
- package/dist/esm/components/Toolbar/ToolbarLabelGroupContent.js.map +1 -0
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.d.ts +2 -2
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.js +4 -4
- package/dist/esm/components/Toolbar/ToolbarToggleGroup.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarUtils.d.ts +3 -3
- package/dist/esm/components/Toolbar/ToolbarUtils.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarUtils.js +2 -2
- package/dist/esm/components/Toolbar/ToolbarUtils.js.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.d.ts.map +1 -1
- package/dist/js/components/ExpandableSection/ExpandableSection.js +6 -4
- package/dist/js/components/ExpandableSection/ExpandableSection.js.map +1 -1
- package/dist/js/components/JumpLinks/JumpLinks.d.ts.map +1 -1
- package/dist/js/components/JumpLinks/JumpLinks.js +2 -7
- package/dist/js/components/JumpLinks/JumpLinks.js.map +1 -1
- package/dist/js/components/Page/PageSidebarBody.d.ts +2 -0
- package/dist/js/components/Page/PageSidebarBody.d.ts.map +1 -1
- package/dist/js/components/Page/PageSidebarBody.js +2 -2
- package/dist/js/components/Page/PageSidebarBody.js.map +1 -1
- package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/js/components/Tabs/Tabs.js +2 -4
- package/dist/js/components/Tabs/Tabs.js.map +1 -1
- package/dist/js/components/Toolbar/Toolbar.d.ts +5 -5
- package/dist/js/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/js/components/Toolbar/Toolbar.js +6 -6
- package/dist/js/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarContent.d.ts +1 -1
- package/dist/js/components/Toolbar/ToolbarContent.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarContent.js +2 -2
- package/dist/js/components/Toolbar/ToolbarContent.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarExpandableContent.d.ts +2 -2
- package/dist/js/components/Toolbar/ToolbarExpandableContent.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarExpandableContent.js +7 -7
- package/dist/js/components/Toolbar/ToolbarExpandableContent.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarFilter.d.ts +21 -21
- package/dist/js/components/Toolbar/ToolbarFilter.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarFilter.js +15 -15
- package/dist/js/components/Toolbar/ToolbarFilter.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.d.ts +2 -2
- 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/{ToolbarChipGroupContent.d.ts → ToolbarLabelGroupContent.d.ts} +10 -10
- package/dist/js/components/Toolbar/ToolbarLabelGroupContent.d.ts.map +1 -0
- package/dist/js/components/Toolbar/{ToolbarChipGroupContent.js → ToolbarLabelGroupContent.js} +12 -12
- package/dist/js/components/Toolbar/ToolbarLabelGroupContent.js.map +1 -0
- package/dist/js/components/Toolbar/ToolbarToggleGroup.d.ts +2 -2
- package/dist/js/components/Toolbar/ToolbarToggleGroup.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarToggleGroup.js +4 -4
- package/dist/js/components/Toolbar/ToolbarToggleGroup.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarUtils.d.ts +3 -3
- package/dist/js/components/Toolbar/ToolbarUtils.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarUtils.js +2 -2
- package/dist/js/components/Toolbar/ToolbarUtils.js.map +1 -1
- package/dist/styles/assets/images/img_avatar-dark.svg +22 -16
- package/dist/styles/assets/images/img_avatar-light.svg +25 -18
- package/dist/styles/assets/pficon/pf-v6-pficon.woff2 +0 -0
- package/dist/styles/assets/pficon/pficon.scss +36 -0
- package/dist/styles/base-no-reset.css +936 -905
- package/dist/styles/base.css +936 -905
- package/dist/umd/assets/{output-BHzG532B.css → output-Rz4e1DgY.css} +2827 -3613
- package/dist/umd/react-core.min.js +3 -3
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -6
- package/src/components/ExpandableSection/ExpandableSection.tsx +6 -4
- package/src/components/JumpLinks/JumpLinks.tsx +6 -4
- package/src/components/JumpLinks/__tests__/__snapshots__/JumpLinks.test.tsx.snap +6 -6
- package/src/components/Page/PageSidebarBody.tsx +4 -0
- package/src/components/Page/examples/PageMultipleSidebarBody.tsx +6 -3
- package/src/components/Tabs/Tabs.tsx +6 -8
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +5 -3
- package/src/components/Toolbar/Toolbar.tsx +12 -12
- package/src/components/Toolbar/ToolbarContent.tsx +2 -2
- package/src/components/Toolbar/ToolbarExpandableContent.tsx +9 -9
- package/src/components/Toolbar/ToolbarFilter.tsx +51 -51
- package/src/components/Toolbar/ToolbarGroup.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +3 -3
- package/src/components/Toolbar/{ToolbarChipGroupContent.tsx → ToolbarLabelGroupContent.tsx} +17 -17
- package/src/components/Toolbar/ToolbarToggleGroup.tsx +7 -7
- package/src/components/Toolbar/ToolbarUtils.tsx +5 -5
- package/src/components/Toolbar/__tests__/Generated/ToolbarChipGroupContent.test.tsx +4 -4
- package/src/components/Toolbar/__tests__/Generated/ToolbarExpandableContent.test.tsx +1 -1
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarChipGroupContent.test.tsx.snap +1 -1
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +6 -6
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +2 -2
- package/src/components/Toolbar/examples/Toolbar.md +5 -5
- package/src/components/Toolbar/examples/{ToolbarCustomChipGroupContent.tsx → ToolbarCustomLabelGroupContent.tsx} +10 -10
- package/src/components/Toolbar/examples/ToolbarWithFilters.tsx +5 -5
- package/src/demos/CardView/examples/CardView.tsx +2 -2
- package/src/demos/Filters/examples/FilterAttributeSearch.tsx +9 -9
- package/src/demos/Filters/examples/FilterCheckboxSelect.tsx +3 -3
- package/src/demos/Filters/examples/FilterFaceted.tsx +9 -9
- package/src/demos/Filters/examples/FilterMixedSelectGroup.tsx +6 -6
- package/src/demos/Page.md +6 -0
- package/src/demos/examples/Page/PageContextSelector.tsx +319 -0
- package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +2 -2
- package/dist/esm/components/Toolbar/ToolbarChipGroupContent.d.ts.map +0 -1
- package/dist/esm/components/Toolbar/ToolbarChipGroupContent.js.map +0 -1
- package/dist/js/components/Toolbar/ToolbarChipGroupContent.d.ts.map +0 -1
- package/dist/js/components/Toolbar/ToolbarChipGroupContent.js.map +0 -1
package/dist/js/components/Toolbar/{ToolbarChipGroupContent.d.ts → ToolbarLabelGroupContent.d.ts}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
3
|
import { PickOptional } from '../../helpers/typeUtils';
|
|
4
|
-
export interface
|
|
4
|
+
export interface ToolbarLabelGroupContentProps extends React.HTMLProps<HTMLDivElement> {
|
|
5
5
|
/** Classes applied to root element of the data toolbar content row */
|
|
6
6
|
className?: string;
|
|
7
7
|
/** Flag indicating if a data toolbar toggle group's expandable content is expanded */
|
|
8
8
|
isExpanded?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/** Label group content reference for passing to data toolbar children */
|
|
10
|
+
labelGroupContentRef?: RefObject<any>;
|
|
11
11
|
/** optional callback for clearing all filters in the toolbar */
|
|
12
12
|
clearAllFilters?: () => void;
|
|
13
13
|
/** Flag indicating that the clear all filters button should be visible */
|
|
@@ -18,15 +18,15 @@ export interface ToolbarChipGroupContentProps extends React.HTMLProps<HTMLDivEle
|
|
|
18
18
|
numberOfFilters: number;
|
|
19
19
|
/** Text to display in the total number of applied filters ToolbarFilter */
|
|
20
20
|
numberOfFiltersText?: (numberOfFilters: number) => string;
|
|
21
|
-
/** The breakpoint at which the listed filters in
|
|
21
|
+
/** The breakpoint at which the listed filters in label groups are collapsed down to a summary */
|
|
22
22
|
collapseListedFiltersBreakpoint?: 'all' | 'md' | 'lg' | 'xl' | '2xl';
|
|
23
|
-
/** Custom additional content appended to the generated
|
|
24
|
-
|
|
23
|
+
/** Custom additional content appended to the generated labels. To maintain spacing and styling, each node should be a ToolbarItem or ToolbarGroup. This property will remove the built in "Clear all filters" button. */
|
|
24
|
+
customLabelGroupContent?: React.ReactNode;
|
|
25
25
|
}
|
|
26
|
-
declare class
|
|
26
|
+
declare class ToolbarLabelGroupContent extends React.Component<ToolbarLabelGroupContentProps> {
|
|
27
27
|
static displayName: string;
|
|
28
|
-
static defaultProps: PickOptional<
|
|
28
|
+
static defaultProps: PickOptional<ToolbarLabelGroupContentProps>;
|
|
29
29
|
render(): React.JSX.Element;
|
|
30
30
|
}
|
|
31
|
-
export {
|
|
32
|
-
//# sourceMappingURL=
|
|
31
|
+
export { ToolbarLabelGroupContent };
|
|
32
|
+
//# sourceMappingURL=ToolbarLabelGroupContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarLabelGroupContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Toolbar/ToolbarLabelGroupContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,WAAW,6BAA8B,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACpF,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACtC,gEAAgE;IAChE,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,0EAA0E;IAC1E,sBAAsB,EAAE,OAAO,CAAC;IAChC,sDAAsD;IACtD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,0FAA0F;IAC1F,eAAe,EAAE,MAAM,CAAC;IACxB,2EAA2E;IAC3E,mBAAmB,CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,iGAAiG;IACjG,+BAA+B,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IACrE,yNAAyN;IACzN,uBAAuB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3C;AAED,cAAM,wBAAyB,SAAQ,KAAK,CAAC,SAAS,CAAC,6BAA6B,CAAC;IACnF,MAAM,CAAC,WAAW,SAA8B;IAChD,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,6BAA6B,CAAC,CAI9D;IAEF,MAAM;CAyDP;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
package/dist/js/components/Toolbar/{ToolbarChipGroupContent.js → ToolbarLabelGroupContent.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ToolbarLabelGroupContent = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const toolbar_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Toolbar/toolbar"));
|
|
@@ -10,10 +10,10 @@ const ToolbarItem_1 = require("./ToolbarItem");
|
|
|
10
10
|
const Button_1 = require("../Button");
|
|
11
11
|
const ToolbarGroup_1 = require("./ToolbarGroup");
|
|
12
12
|
const ToolbarUtils_1 = require("./ToolbarUtils");
|
|
13
|
-
class
|
|
13
|
+
class ToolbarLabelGroupContent extends React.Component {
|
|
14
14
|
render() {
|
|
15
|
-
const _a = this.props, { className, isExpanded,
|
|
16
|
-
const
|
|
15
|
+
const _a = this.props, { className, isExpanded, labelGroupContentRef, clearAllFilters, showClearFiltersButton, clearFiltersButtonText, collapseListedFiltersBreakpoint, numberOfFilters, numberOfFiltersText, customLabelGroupContent } = _a, props = tslib_1.__rest(_a, ["className", "isExpanded", "labelGroupContentRef", "clearAllFilters", "showClearFiltersButton", "clearFiltersButtonText", "collapseListedFiltersBreakpoint", "numberOfFilters", "numberOfFiltersText", "customLabelGroupContent"]);
|
|
16
|
+
const clearLabelGroups = () => {
|
|
17
17
|
clearAllFilters();
|
|
18
18
|
};
|
|
19
19
|
let collapseListedFilters = false;
|
|
@@ -25,20 +25,20 @@ class ToolbarChipGroupContent extends React.Component {
|
|
|
25
25
|
(util_1.canUseDOM ? window.innerWidth : 1200) < ToolbarUtils_1.globalBreakpoints[collapseListedFiltersBreakpoint];
|
|
26
26
|
}
|
|
27
27
|
const isHidden = numberOfFilters === 0 || isExpanded;
|
|
28
|
-
return (React.createElement("div", Object.assign({ className: (0, react_styles_1.css)(toolbar_1.default.toolbarContent, isHidden && toolbar_1.default.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref:
|
|
28
|
+
return (React.createElement("div", Object.assign({ className: (0, react_styles_1.css)(toolbar_1.default.toolbarContent, isHidden && toolbar_1.default.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref: labelGroupContentRef }, props),
|
|
29
29
|
React.createElement(ToolbarGroup_1.ToolbarGroup, Object.assign({ className: (0, react_styles_1.css)(collapseListedFilters && toolbar_1.default.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
|
|
30
30
|
collapseListedFilters && numberOfFilters > 0 && !isExpanded && (React.createElement(ToolbarGroup_1.ToolbarGroup, null,
|
|
31
31
|
React.createElement(ToolbarItem_1.ToolbarItem, null, numberOfFiltersText(numberOfFilters)))),
|
|
32
|
-
showClearFiltersButton && !isExpanded && !
|
|
33
|
-
React.createElement(Button_1.Button, { variant: "link", onClick:
|
|
34
|
-
|
|
32
|
+
showClearFiltersButton && !isExpanded && !customLabelGroupContent && (React.createElement(ToolbarItem_1.ToolbarItem, null,
|
|
33
|
+
React.createElement(Button_1.Button, { variant: "link", onClick: clearLabelGroups, isInline: true }, clearFiltersButtonText))),
|
|
34
|
+
customLabelGroupContent && customLabelGroupContent));
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
exports.
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
exports.ToolbarLabelGroupContent = ToolbarLabelGroupContent;
|
|
38
|
+
ToolbarLabelGroupContent.displayName = 'ToolbarLabelGroupContent';
|
|
39
|
+
ToolbarLabelGroupContent.defaultProps = {
|
|
40
40
|
clearFiltersButtonText: 'Clear all filters',
|
|
41
41
|
collapseListedFiltersBreakpoint: 'lg',
|
|
42
42
|
numberOfFiltersText: (numberOfFilters) => `${numberOfFilters} filters applied`
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=
|
|
44
|
+
//# sourceMappingURL=ToolbarLabelGroupContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarLabelGroupContent.js","sourceRoot":"","sources":["../../../../src/components/Toolbar/ToolbarLabelGroupContent.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,8GAA6E;AAC7E,2DAA+C;AAC/C,6CAA+C;AAG/C,+CAA4C;AAC5C,sCAAmC;AACnC,iDAA8C;AAC9C,iDAAmD;AA0BnD,MAAM,wBAAyB,SAAQ,KAAK,CAAC,SAAwC;IAQnF,MAAM;QACJ,MAAM,KAYF,IAAI,CAAC,KAAK,EAZR,EACJ,SAAS,EACT,UAAU,EACV,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,+BAA+B,EAC/B,eAAe,EACf,mBAAmB,EACnB,uBAAuB,OAEX,EADT,KAAK,sBAXJ,kOAYL,CAAa,CAAC;QAEf,MAAM,gBAAgB,GAAG,GAAG,EAAE;YAC5B,eAAe,EAAE,CAAC;QACpB,CAAC,CAAC;QAEF,IAAI,qBAAqB,GAAG,KAAK,CAAC;QAClC,IAAI,+BAA+B,KAAK,KAAK,EAAE,CAAC;YAC9C,qBAAqB,GAAG,IAAI,CAAC;QAC/B,CAAC;aAAM,IAAI,gBAAS,EAAE,CAAC;YACrB,qBAAqB;gBACnB,CAAC,gBAAS,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,C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kBAAkB;CACvF,CAAC"}
|
|
@@ -49,8 +49,8 @@ export interface ToolbarToggleGroupProps extends ToolbarGroupProps {
|
|
|
49
49
|
xl?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl';
|
|
50
50
|
'2xl'?: 'rowGapNone' | 'rowGapXs' | 'rowGapSm' | 'rowGapMd' | 'rowGapLg' | 'rowGapXl' | 'rowGap_2xl' | 'rowGap_3xl' | 'rowGap_4xl';
|
|
51
51
|
};
|
|
52
|
-
/** Reference to a
|
|
53
|
-
|
|
52
|
+
/** Reference to a label container group for filters inside the toolbar toggle group */
|
|
53
|
+
labelContainerRef?: React.RefObject<any>;
|
|
54
54
|
/** Optional callback for clearing all filters in the toolbar toggle group */
|
|
55
55
|
clearAllFilters?: () => void;
|
|
56
56
|
/** Flag indicating that the clear all filters button should be visible in the toolbar toggle group */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarToggleGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Toolbar/ToolbarToggleGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAQnD,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,2FAA2F;IAC3F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC7C,sEAAsE;IACtE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,4EAA4E;IAC5E,UAAU,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IACvC,yCAAyC;IACzC,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,QAAQ,G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BAIZ;IAEF,MAAM;CAmHP;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -24,19 +24,19 @@ class ToolbarToggleGroup extends React.Component {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
const _a = this.props, { toggleIcon, variant, visibility, breakpoint, alignment, gap, columnGap, rowGap, className, children, isExpanded, onToggle,
|
|
27
|
+
const _a = this.props, { toggleIcon, variant, visibility, breakpoint, alignment, gap, columnGap, rowGap, className, children, isExpanded, onToggle, labelContainerRef, clearAllFilters, showClearFiltersButton, clearFiltersButtonText } = _a, props = tslib_1.__rest(_a, ["toggleIcon", "variant", "visibility", "breakpoint", "alignment", "gap", "columnGap", "rowGap", "className", "children", "isExpanded", "onToggle", "labelContainerRef", "clearAllFilters", "showClearFiltersButton", "clearFiltersButtonText"]);
|
|
28
28
|
if (!breakpoint && !toggleIcon) {
|
|
29
29
|
// eslint-disable-next-line no-console
|
|
30
30
|
console.error('ToolbarToggleGroup will not be visible without a breakpoint or toggleIcon.');
|
|
31
31
|
}
|
|
32
32
|
return (React.createElement(PageContext_1.PageContext.Consumer, null, ({ width, getBreakpoint }) => (React.createElement(ToolbarUtils_1.ToolbarContext.Consumer, null, ({ toggleIsExpanded: managedOnToggle }) => {
|
|
33
33
|
const _onToggle = onToggle !== undefined ? onToggle : managedOnToggle;
|
|
34
|
-
return (React.createElement(ToolbarUtils_1.ToolbarContentContext.Consumer, null, ({ expandableContentRef, expandableContentId,
|
|
34
|
+
return (React.createElement(ToolbarUtils_1.ToolbarContentContext.Consumer, null, ({ expandableContentRef, expandableContentId, labelContainerRef: managedLabelContainerRef, isExpanded: managedIsExpanded, clearAllFilters: clearAllFiltersContext, clearFiltersButtonText: clearFiltersButtonContext, showClearFiltersButton: showClearFiltersButtonContext }) => {
|
|
35
35
|
const _isExpanded = isExpanded !== undefined ? isExpanded : managedIsExpanded;
|
|
36
|
-
const
|
|
36
|
+
const _labelContainerRef = labelContainerRef !== undefined ? labelContainerRef : managedLabelContainerRef;
|
|
37
37
|
const breakpointMod = {};
|
|
38
38
|
breakpointMod[breakpoint] = 'show';
|
|
39
|
-
const expandableContent = (React.createElement(ToolbarExpandableContent_1.ToolbarExpandableContent, { id: expandableContentId, expandableContentRef: this.expandableContentRef, isExpanded: _isExpanded, clearAllFilters: clearAllFilters || clearAllFiltersContext, showClearFiltersButton: showClearFiltersButton || showClearFiltersButtonContext, clearFiltersButtonText: clearFiltersButtonText || clearFiltersButtonContext,
|
|
39
|
+
const expandableContent = (React.createElement(ToolbarExpandableContent_1.ToolbarExpandableContent, { id: expandableContentId, expandableContentRef: this.expandableContentRef, isExpanded: _isExpanded, clearAllFilters: clearAllFilters || clearAllFiltersContext, showClearFiltersButton: showClearFiltersButton || showClearFiltersButtonContext, clearFiltersButtonText: clearFiltersButtonText || clearFiltersButtonContext, labelContainerRef: _labelContainerRef }, children));
|
|
40
40
|
const toggleButton = (React.createElement("div", { className: (0, react_styles_1.css)(toolbar_1.default.toolbarToggle) },
|
|
41
41
|
React.createElement(Button_1.Button, Object.assign({ variant: "plain", onClick: _onToggle, "aria-label": "Show Filters" }, (_isExpanded && { 'aria-expanded': true }), { "aria-haspopup": _isExpanded && this.isContentPopup(), "aria-controls": _isExpanded ? expandableContentId : undefined, ref: this.toggleRef, icon: toggleIcon }))));
|
|
42
42
|
return (React.createElement("div", Object.assign({ className: (0, react_styles_1.css)(toolbar_1.default.toolbarGroup, toolbar_1.default.modifiers.toggleGroup, variant && toolbar_1.default.modifiers[(0, util_1.toCamel)(variant)], (0, util_1.formatBreakpointMods)(breakpointMod, toolbar_1.default, '', getBreakpoint(width)), (0, util_1.formatBreakpointMods)(visibility, toolbar_1.default, '', getBreakpoint(width)), (0, util_1.formatBreakpointMods)(alignment, toolbar_1.default, '', getBreakpoint(width)), (0, util_1.formatBreakpointMods)(gap, toolbar_1.default, '', getBreakpoint(width)), (0, util_1.formatBreakpointMods)(columnGap, toolbar_1.default, '', getBreakpoint(width)), (0, util_1.formatBreakpointMods)(rowGap, toolbar_1.default, '', getBreakpoint(width)), className) }, props),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarToggleGroup.js","sourceRoot":"","sources":["../../../../src/components/Toolbar/ToolbarToggleGroup.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,4DAAsC;AACtC,8GAA6E;AAC7E,2DAA+C;AAE/C,iDAAuE;AACvE,sCAAmC;;AAEnC,6CAA8E;AAC9E,qDAAkD;AAClD,yEAAsE;AAuJtE,MAAM,kBAAmB,SAAQ,KAAK,CAAC,SAAkC;IAAzE;;QAEE,cAAS,GAAG,KAAK,CAAC,SAAS,EAAqB,CAAC;QACjD,yBAAoB,GAAG,KAAK,CAAC,SAAS,EAAkB,CAAC;QAEzD,mBAAc,GAAG,GAAG,EAAE;YACpB,MAAM,YAAY,GAAG,gBAAS,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC;YAC1D,MAAM,iBAAiB,GAAG,QAAQ,CAAC,8BAAkB,CAAC,KAAK,CAAC,CAAC;YAC7D,OAAO,YAAY,GAAG,iBAAiB,CAAC;QAC1C,CAAC,CAAC;IAqHJ,CAAC;IAnHC,MAAM;QACJ,MAAM,KAkBF,IAAI,CAAC,KAAK,EAlBR,EACJ,UAAU,EACV,OAAO,EACP,UAAU,EACV,UAAU,EACV,SAAS,EACT,GAAG,EACH,SAAS,EACT,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"ToolbarToggleGroup.js","sourceRoot":"","sources":["../../../../src/components/Toolbar/ToolbarToggleGroup.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,4DAAsC;AACtC,8GAA6E;AAC7E,2DAA+C;AAE/C,iDAAuE;AACvE,sCAAmC;;AAEnC,6CAA8E;AAC9E,qDAAkD;AAClD,yEAAsE;AAuJtE,MAAM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E,SAAS,EAAE,IAAA,kBAAG,EACZ,iBAAM,CAAC,YAAY,EACnB,iBAAM,CAAC,SAAS,CAAC,WAAW,EAC5B,OAAO,IAAI,iBAAM,CAAC,SAAS,CAAC,IAAA,cAAO,EAAC,OAAO,CAAsC,CAAC,EAClF,IAAA,2BAAoB,EAAC,aAAa,EAAE,iBAAM,EAAE,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EACrE,IAAA,2BAAoB,EAAC,UAAU,EAAE,iBAAM,EAAE,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EAClE,IAAA,2BAAoB,EAAC,SAAS,EAAE,iBAAM,EAAE,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EACjE,IAAA,2BAAoB,EAAC,GAAG,EAAE,iBAAM,EAAE,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EAC3D,IAAA,2BAAoB,EAAC,SAAS,EAAE,iBAAM,EAAE,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EACjE,IAAA,2BAAoB,EAAC,MAAM,EAAE,iBAAM,EAAE,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,EAC9D,SAAS,CACV,IACG,KAAK;oBAER,YAAY;oBACZ,WAAW,IAAI,QAAQ,CAAC,YAAY,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,OAAO,CAAC;oBACrF,CAAC,WAAW,IAAI,QAAQ,CACrB,CACP,CAAC;YACJ,CAAC,CAC8B,CAClC,CAAC;QACJ,CAAC,CACuB,CAC3B,CACoB,CACxB,CAAC;IACJ,CAAC;;AAGM,gDAAkB;AA/HlB,8BAAW,GAAG,oBAAoB,AAAvB,CAAwB"}
|
|
@@ -3,20 +3,20 @@ import { RefObject } from 'react';
|
|
|
3
3
|
export interface ToolbarContextProps {
|
|
4
4
|
isExpanded: boolean;
|
|
5
5
|
toggleIsExpanded: () => void;
|
|
6
|
-
|
|
6
|
+
labelGroupContentRef: RefObject<HTMLDivElement>;
|
|
7
7
|
updateNumberFilters: (categoryName: string, numberOfFilters: number) => void;
|
|
8
8
|
numberOfFilters: number;
|
|
9
9
|
clearAllFilters?: () => void;
|
|
10
10
|
clearFiltersButtonText?: string;
|
|
11
11
|
showClearFiltersButton?: boolean;
|
|
12
12
|
toolbarId?: string;
|
|
13
|
-
|
|
13
|
+
customLabelGroupContent?: React.ReactNode;
|
|
14
14
|
}
|
|
15
15
|
export declare const ToolbarContext: React.Context<ToolbarContextProps>;
|
|
16
16
|
interface ToolbarContentContextProps {
|
|
17
17
|
expandableContentRef: RefObject<HTMLDivElement>;
|
|
18
18
|
expandableContentId: string;
|
|
19
|
-
|
|
19
|
+
labelContainerRef: RefObject<any>;
|
|
20
20
|
isExpanded?: boolean;
|
|
21
21
|
clearAllFilters?: () => void;
|
|
22
22
|
clearFiltersButtonText?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/Toolbar/ToolbarUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,
|
|
1
|
+
{"version":3,"file":"ToolbarUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/Toolbar/ToolbarUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,oBAAoB,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAChD,mBAAmB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7E,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3C;AAED,eAAO,MAAM,cAAc,oCAOzB,CAAC;AAEH,UAAU,0BAA0B;IAClC,oBAAoB,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAChD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,eAAO,MAAM,qBAAqB,2CAKhC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;CAK7B,CAAC"}
|
|
@@ -10,7 +10,7 @@ const global_breakpoint_2xl_1 = tslib_1.__importDefault(require('@patternfly/rea
|
|
|
10
10
|
exports.ToolbarContext = React.createContext({
|
|
11
11
|
isExpanded: false,
|
|
12
12
|
toggleIsExpanded: () => { },
|
|
13
|
-
|
|
13
|
+
labelGroupContentRef: null,
|
|
14
14
|
updateNumberFilters: () => { },
|
|
15
15
|
numberOfFilters: 0,
|
|
16
16
|
clearAllFilters: () => { }
|
|
@@ -18,7 +18,7 @@ exports.ToolbarContext = React.createContext({
|
|
|
18
18
|
exports.ToolbarContentContext = React.createContext({
|
|
19
19
|
expandableContentRef: null,
|
|
20
20
|
expandableContentId: '',
|
|
21
|
-
|
|
21
|
+
labelContainerRef: null,
|
|
22
22
|
clearAllFilters: () => { }
|
|
23
23
|
});
|
|
24
24
|
exports.globalBreakpoints = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarUtils.js","sourceRoot":"","sources":["../../../../src/components/Toolbar/ToolbarUtils.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;;;;;AAoBlB,QAAA,cAAc,GAAG,KAAK,CAAC,aAAa,CAAsB;IACrE,UAAU,EAAE,KAAK;IACjB,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC1B,
|
|
1
|
+
{"version":3,"file":"ToolbarUtils.js","sourceRoot":"","sources":["../../../../src/components/Toolbar/ToolbarUtils.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;;;;;AAoBlB,QAAA,cAAc,GAAG,KAAK,CAAC,aAAa,CAAsB;IACrE,UAAU,EAAE,KAAK;IACjB,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC1B,oBAAoB,EAAE,IAAI;IAC1B,mBAAmB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC7B,eAAe,EAAE,CAAC;IAClB,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC;CAC1B,CAAC,CAAC;AAYU,QAAA,qBAAqB,GAAG,KAAK,CAAC,aAAa,CAA6B;IACnF,oBAAoB,EAAE,IAAI;IAC1B,mBAAmB,EAAE,EAAE;IACvB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC;CAC1B,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG;IAC/B,EAAE,EAAE,QAAQ,CAAC,8BAAkB,CAAC,KAAK,CAAC;IACtC,EAAE,EAAE,QAAQ,CAAC,8BAAkB,CAAC,KAAK,CAAC;IACtC,EAAE,EAAE,QAAQ,CAAC,8BAAkB,CAAC,KAAK,CAAC;IACtC,KAAK,EAAE,QAAQ,CAAC,+BAAmB,CAAC,KAAK,CAAC;CAC3C,CAAC"}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="
|
|
2
|
-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 36 36">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #212427;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cls-1, .cls-2 {
|
|
10
|
+
stroke-width: 0px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cls-2 {
|
|
14
|
+
fill: #6a6e73;
|
|
15
|
+
fill-rule: evenodd;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</defs>
|
|
19
|
+
<rect class="cls-1" width="36" height="36"/>
|
|
20
|
+
<path class="cls-2" d="M30.5,36c-.4-3.9-1.3-9-2.9-11-1.1-1.4-2.3-2.2-3.5-2.6s-1.8-.6-6.3-.6-6.1.7-6.1.7c-1.2.4-2.4,1.2-3.4,2.6-1.6,1.9-2.5,7.1-2.9,10.9h25.1Z"/>
|
|
21
|
+
<path class="cls-2" d="M17.7,20.1c-3.5,0-6.4-2.9-6.4-6.4s2.9-6.4,6.4-6.4,6.4,2.9,6.4,6.4-2.8,6.4-6.4,6.4Z"/>
|
|
22
|
+
</svg>
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="
|
|
2
|
-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 36 36">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1, .cls-2 {
|
|
6
|
+
fill: #d2d2d2;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cls-1, .cls-2, .cls-3 {
|
|
10
|
+
stroke-width: 0px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cls-2 {
|
|
14
|
+
fill-rule: evenodd;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.cls-3 {
|
|
18
|
+
fill: #f0f0f0;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
</defs>
|
|
22
|
+
<rect class="cls-3" width="36" height="36"/>
|
|
23
|
+
<path class="cls-2" d="M17.7,20.1c-3.5,0-6.4-2.9-6.4-6.4s2.9-6.4,6.4-6.4,6.4,2.9,6.4,6.4-2.8,6.4-6.4,6.4Z"/>
|
|
24
|
+
<path class="cls-1" d="M30.6,36c-.4-3.9-1.3-9-2.9-11-1.1-1.4-2.3-2.2-3.5-2.6s-1.8-.6-6.3-.6-6.1.7-6.1.7c-1.2.4-2.4,1.2-3.4,2.6-1.7,1.9-2.6,7.1-3,10.9h25.2Z"/>
|
|
25
|
+
</svg>
|
|
Binary file
|
|
@@ -358,6 +358,24 @@
|
|
|
358
358
|
@if $filename == services {
|
|
359
359
|
$char: '\E947';
|
|
360
360
|
}
|
|
361
|
+
@if $filename == severity-critical {
|
|
362
|
+
$char: '\E97E';
|
|
363
|
+
}
|
|
364
|
+
@if $filename == severity-important {
|
|
365
|
+
$char: '\E97F';
|
|
366
|
+
}
|
|
367
|
+
@if $filename == severity-minor {
|
|
368
|
+
$char: '\E980';
|
|
369
|
+
}
|
|
370
|
+
@if $filename == severity-moderate {
|
|
371
|
+
$char: '\E981';
|
|
372
|
+
}
|
|
373
|
+
@if $filename == severity-none {
|
|
374
|
+
$char: '\E982';
|
|
375
|
+
}
|
|
376
|
+
@if $filename == severity-undefined {
|
|
377
|
+
$char: '\E983';
|
|
378
|
+
}
|
|
361
379
|
@if $filename == spinner {
|
|
362
380
|
$char: '\E973';
|
|
363
381
|
}
|
|
@@ -763,6 +781,24 @@
|
|
|
763
781
|
.pf-v6-pficon-services {
|
|
764
782
|
@include pf-v6-pficon(services);
|
|
765
783
|
}
|
|
784
|
+
.pf-v6-pficon-severity-critical {
|
|
785
|
+
@include pf-v6-pficon(severity-critical);
|
|
786
|
+
}
|
|
787
|
+
.pf-v6-pficon-severity-important {
|
|
788
|
+
@include pf-v6-pficon(severity-important);
|
|
789
|
+
}
|
|
790
|
+
.pf-v6-pficon-severity-minor {
|
|
791
|
+
@include pf-v6-pficon(severity-minor);
|
|
792
|
+
}
|
|
793
|
+
.pf-v6-pficon-severity-moderate {
|
|
794
|
+
@include pf-v6-pficon(severity-moderate);
|
|
795
|
+
}
|
|
796
|
+
.pf-v6-pficon-severity-none {
|
|
797
|
+
@include pf-v6-pficon(severity-none);
|
|
798
|
+
}
|
|
799
|
+
.pf-v6-pficon-severity-undefined {
|
|
800
|
+
@include pf-v6-pficon(severity-undefined);
|
|
801
|
+
}
|
|
766
802
|
.pf-v6-pficon-spinner {
|
|
767
803
|
@include pf-v6-pficon(spinner);
|
|
768
804
|
}
|