@dbcdk/react-components 0.0.102 → 0.0.104
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/dist/assets/logo.cjs +87 -0
- package/dist/assets/logo.js +85 -0
- package/dist/client.cjs +587 -0
- package/dist/client.d.ts +83 -0
- package/dist/client.js +84 -0
- package/dist/components/accordion/Accordion.cjs +103 -0
- package/dist/components/accordion/Accordion.js +97 -0
- package/dist/components/accordion/Accordion.module.css +41 -0
- package/dist/components/accordion/components/AccordionRow.cjs +115 -0
- package/dist/components/accordion/components/AccordionRow.js +109 -0
- package/dist/components/accordion/components/AccordionRow.module.css +99 -0
- package/dist/components/alert/Alert.cjs +52 -0
- package/dist/components/alert/Alert.d.ts +2 -1
- package/dist/components/alert/Alert.js +46 -0
- package/dist/components/alert/Alert.module.css +97 -0
- package/dist/components/app-header/AppHeader.cjs +14 -0
- package/dist/components/app-header/AppHeader.js +8 -0
- package/dist/components/app-header/AppHeader.module.css +74 -0
- package/dist/components/attribute-chip/AttributeChip.cjs +22 -0
- package/dist/components/attribute-chip/AttributeChip.js +16 -0
- package/dist/components/attribute-chip/AttributeChip.module.css +65 -0
- package/dist/components/avatar/Avatar.cjs +111 -0
- package/dist/components/avatar/Avatar.js +86 -0
- package/dist/components/avatar/Avatar.module.css +91 -0
- package/dist/components/breadcrumbs/Breadcrumbs.cjs +24 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.module.css +80 -0
- package/dist/components/button/Button.cjs +149 -0
- package/dist/components/button/Button.js +124 -0
- package/dist/components/button/Button.module.css +260 -0
- package/dist/components/button-select/ButtonSelect.cjs +35 -0
- package/dist/components/button-select/ButtonSelect.js +29 -0
- package/dist/components/button-select/ButtonSelect.module.css +40 -0
- package/dist/components/card/Card.cjs +112 -0
- package/dist/components/card/Card.d.ts +2 -1
- package/dist/components/card/Card.js +106 -0
- package/dist/components/card/Card.module.css +187 -0
- package/dist/components/card/components/CardMeta.cjs +62 -0
- package/dist/components/card/components/CardMeta.js +55 -0
- package/dist/components/card/components/CardMeta.module.css +55 -0
- package/dist/components/card-container/CardContainer.cjs +34 -0
- package/dist/components/card-container/CardContainer.js +28 -0
- package/dist/components/card-container/CardContainer.module.css +63 -0
- package/dist/components/chip/Chip.cjs +65 -0
- package/dist/components/chip/Chip.js +59 -0
- package/dist/components/chip/Chip.module.css +236 -0
- package/dist/components/circle/Circle.cjs +33 -0
- package/dist/components/circle/Circle.js +27 -0
- package/dist/components/circle/Circle.module.css +128 -0
- package/dist/components/clear-button/ClearButton.cjs +33 -0
- package/dist/components/clear-button/ClearButton.d.ts +2 -1
- package/dist/components/clear-button/ClearButton.js +27 -0
- package/dist/components/clear-button/ClearButton.module.css +26 -0
- package/dist/components/code-block/CodeBlock.cjs +97 -0
- package/dist/components/code-block/CodeBlock.js +91 -0
- package/dist/components/code-block/CodeBlock.module.css +124 -0
- package/dist/components/copy-button/CopyButton.cjs +139 -0
- package/dist/components/copy-button/CopyButton.js +133 -0
- package/dist/components/copy-button/CopyButton.module.css +22 -0
- package/dist/components/datetime-picker/DateTimePicker.cjs +559 -0
- package/dist/components/datetime-picker/DateTimePicker.js +553 -0
- package/dist/components/datetime-picker/DateTimePicker.module.css +155 -0
- package/dist/components/datetime-picker/dateTimeHelpers.cjs +179 -0
- package/dist/components/datetime-picker/dateTimeHelpers.js +160 -0
- package/dist/components/divider/Divider.cjs +22 -0
- package/dist/components/divider/Divider.js +20 -0
- package/dist/components/filter-field/FilterField.cjs +296 -0
- package/dist/components/filter-field/FilterField.js +289 -0
- package/dist/components/filter-field/FilterField.module.css +379 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.cjs +115 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.js +108 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.module.css +59 -0
- package/dist/components/forms/checkbox/Checkbox.cjs +88 -0
- package/dist/components/forms/checkbox/Checkbox.js +82 -0
- package/dist/components/forms/checkbox/Checkbox.module.css +104 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.cjs +121 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.js +115 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.module.css +115 -0
- package/dist/components/forms/form-select/FormSelect.cjs +191 -0
- package/dist/components/forms/form-select/FormSelect.js +166 -0
- package/dist/components/forms/form-select/FormSelect.module.css +236 -0
- package/dist/components/forms/input/Input.cjs +188 -0
- package/dist/components/forms/input/Input.d.ts +1 -0
- package/dist/components/forms/input/Input.js +182 -0
- package/dist/components/forms/input/Input.module.css +468 -0
- package/dist/components/forms/input-container/InputContainer.cjs +72 -0
- package/dist/components/forms/input-container/InputContainer.js +66 -0
- package/dist/components/forms/input-container/InputContainer.module.css +59 -0
- package/dist/components/forms/multi-select/MultiSelect.cjs +227 -0
- package/dist/components/forms/multi-select/MultiSelect.js +225 -0
- package/dist/components/forms/radio-buttons/RadioButton.cjs +91 -0
- package/dist/components/forms/radio-buttons/RadioButton.js +85 -0
- package/dist/components/forms/radio-buttons/RadioButtonGroup.cjs +74 -0
- package/dist/components/forms/radio-buttons/RadioButtonGroup.js +72 -0
- package/dist/components/forms/radio-buttons/RadioButtons.module.css +118 -0
- package/dist/components/forms/select/Select.cjs +286 -0
- package/dist/components/forms/select/Select.js +280 -0
- package/dist/components/forms/select/Select.module.css +32 -0
- package/dist/components/forms/text-area/Textarea.cjs +116 -0
- package/dist/components/forms/text-area/Textarea.js +110 -0
- package/dist/components/forms/text-area/Textarea.module.css +70 -0
- package/dist/components/forms/typeahead/Typeahead.cjs +792 -0
- package/dist/components/forms/typeahead/Typeahead.js +768 -0
- package/dist/components/forms/typeahead/Typeahead.module.css +38 -0
- package/dist/components/grid/Grid.cjs +45 -0
- package/dist/components/grid/Grid.js +38 -0
- package/dist/components/grid/Grid.module.css +35 -0
- package/dist/components/headline/CollapsibleHeadline.cjs +80 -0
- package/dist/components/headline/CollapsibleHeadline.js +74 -0
- package/dist/components/headline/Headline.cjs +59 -0
- package/dist/components/headline/Headline.js +53 -0
- package/dist/components/headline/Headline.module.css +185 -0
- package/dist/components/hyperlink/Hyperlink.cjs +107 -0
- package/dist/components/hyperlink/Hyperlink.d.ts +1 -0
- package/dist/components/hyperlink/Hyperlink.js +82 -0
- package/dist/components/hyperlink/Hyperlink.module.css +121 -0
- package/dist/components/icon/Icon.cjs +27 -0
- package/dist/components/icon/Icon.js +20 -0
- package/dist/components/icon/Icon.module.css +36 -0
- package/dist/components/inline-status/InlineStatus.cjs +39 -0
- package/dist/components/inline-status/InlineStatus.js +33 -0
- package/dist/components/inline-status/InlineStatus.module.css +92 -0
- package/dist/components/interval-select/IntervalSelect.cjs +203 -0
- package/dist/components/interval-select/IntervalSelect.js +201 -0
- package/dist/components/json-viewer/HighlightedText.cjs +13 -0
- package/dist/components/json-viewer/HighlightedText.js +11 -0
- package/dist/components/json-viewer/JsonNode.cjs +124 -0
- package/dist/components/json-viewer/JsonNode.js +118 -0
- package/dist/components/json-viewer/JsonViewer.cjs +164 -0
- package/dist/components/json-viewer/JsonViewer.js +158 -0
- package/dist/components/json-viewer/JsonViewer.module.css +346 -0
- package/dist/components/json-viewer/types.cjs +2 -0
- package/dist/components/json-viewer/types.js +1 -0
- package/dist/components/json-viewer/useClipboardStatus.cjs +15 -0
- package/dist/components/json-viewer/useClipboardStatus.js +13 -0
- package/dist/components/json-viewer/utils.cjs +126 -0
- package/dist/components/json-viewer/utils.js +111 -0
- package/dist/components/media-card/MediaCard.cjs +60 -0
- package/dist/components/media-card/MediaCard.d.ts +19 -0
- package/dist/components/media-card/MediaCard.js +54 -0
- package/dist/components/media-card/MediaCard.module.css +92 -0
- package/dist/components/menu/Menu.cjs +287 -0
- package/dist/components/menu/Menu.js +262 -0
- package/dist/components/menu/Menu.module.css +220 -0
- package/dist/components/meta-bar/MetaBar.cjs +28 -0
- package/dist/components/meta-bar/MetaBar.js +22 -0
- package/dist/components/meta-bar/MetaBar.module.css +27 -0
- package/dist/components/nav-bar/NavBar.cjs +95 -0
- package/dist/components/nav-bar/NavBar.d.ts +1 -1
- package/dist/components/nav-bar/NavBar.js +89 -0
- package/dist/components/nav-bar/NavBar.module.css +225 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.cjs +30 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.js +24 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.module.css +54 -0
- package/dist/components/overlay/modal/Modal.cjs +189 -0
- package/dist/components/overlay/modal/Modal.d.ts +2 -1
- package/dist/components/overlay/modal/Modal.js +183 -0
- package/dist/components/overlay/modal/Modal.module.css +112 -0
- package/dist/components/overlay/modal/provider/ModalProvider.cjs +98 -0
- package/dist/components/overlay/modal/provider/ModalProvider.js +95 -0
- package/dist/components/overlay/side-panel/SidePanel.cjs +173 -0
- package/dist/components/overlay/side-panel/SidePanel.js +167 -0
- package/dist/components/overlay/side-panel/SidePanel.module.css +177 -0
- package/dist/components/overlay/side-panel/useSidePanel.cjs +16 -0
- package/dist/components/overlay/side-panel/useSidePanel.js +14 -0
- package/dist/components/overlay/tooltip/Tooltip.cjs +34 -0
- package/dist/components/overlay/tooltip/Tooltip.js +32 -0
- package/dist/components/overlay/tooltip/Tooltip.module.css +104 -0
- package/dist/components/overlay/tooltip/TooltipProvider.cjs +238 -0
- package/dist/components/overlay/tooltip/TooltipProvider.js +231 -0
- package/dist/components/overlay/tooltip/useTooltipTrigger.cjs +117 -0
- package/dist/components/overlay/tooltip/useTooltipTrigger.js +115 -0
- package/dist/components/page/Page.cjs +63 -0
- package/dist/components/page/Page.js +57 -0
- package/dist/components/page/Page.module.css +95 -0
- package/dist/components/page-layout/PageLayout.cjs +97 -0
- package/dist/components/page-layout/PageLayout.d.ts +0 -5
- package/dist/components/page-layout/PageLayout.js +91 -0
- package/dist/components/page-layout/PageLayout.module.css +236 -0
- package/dist/components/page-layout/components/footer/Footer.cjs +53 -0
- package/dist/components/page-layout/components/footer/Footer.js +47 -0
- package/dist/components/page-layout/components/footer/Footer.module.css +89 -0
- package/dist/components/pagination/Pagination.cjs +160 -0
- package/dist/components/pagination/Pagination.js +154 -0
- package/dist/components/pagination/Pagination.module.css +25 -0
- package/dist/components/panel/Panel.cjs +38 -0
- package/dist/components/panel/Panel.js +32 -0
- package/dist/components/panel/Panel.module.css +30 -0
- package/dist/components/popover/Popover.cjs +331 -0
- package/dist/components/popover/Popover.js +307 -0
- package/dist/components/popover/Popover.module.css +52 -0
- package/dist/components/search-box/SearchBox.cjs +274 -0
- package/dist/components/search-box/SearchBox.js +268 -0
- package/dist/components/search-box/SearchBox.module.css +27 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.cjs +127 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.js +121 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +174 -0
- package/dist/components/sidebar/Sidebar.cjs +39 -0
- package/dist/components/sidebar/Sidebar.js +37 -0
- package/dist/components/sidebar/components/SidebarItem.cjs +29 -0
- package/dist/components/sidebar/components/SidebarItem.js +27 -0
- package/dist/components/sidebar/components/SidebarItem.module.css +0 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +133 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +127 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.module.css +29 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.cjs +214 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.js +207 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.module.css +260 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +54 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +47 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +106 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +61 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +55 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.module.css +20 -0
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.cjs +97 -0
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.js +91 -0
- package/dist/components/sidebar/providers/SidebarProvider.cjs +223 -0
- package/dist/components/sidebar/providers/SidebarProvider.js +220 -0
- package/dist/components/skeleton-loader/SkeletonLoader.cjs +442 -0
- package/dist/components/skeleton-loader/SkeletonLoader.js +440 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.cjs +42 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.js +36 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.module.css +51 -0
- package/dist/components/split-button/SplitButton.cjs +46 -0
- package/dist/components/split-button/SplitButton.js +40 -0
- package/dist/components/split-button/SplitButton.module.css +32 -0
- package/dist/components/split-pane/SplitPane.cjs +177 -0
- package/dist/components/split-pane/SplitPane.js +168 -0
- package/dist/components/split-pane/SplitPane.module.css +111 -0
- package/dist/components/split-pane/provider/SplitPaneContext.cjs +129 -0
- package/dist/components/split-pane/provider/SplitPaneContext.js +121 -0
- package/dist/components/stack/Stack.cjs +47 -0
- package/dist/components/stack/Stack.d.ts +1 -1
- package/dist/components/stack/Stack.js +41 -0
- package/dist/components/stack/Stack.module.css +61 -0
- package/dist/components/state-page/StatePage.cjs +48 -0
- package/dist/components/state-page/StatePage.js +42 -0
- package/dist/components/state-page/StatePage.module.css +9 -0
- package/dist/components/state-page/empty.cjs +664 -0
- package/dist/components/state-page/empty.js +662 -0
- package/dist/components/state-page/error.cjs +310 -0
- package/dist/components/state-page/error.js +308 -0
- package/dist/components/state-page/notFound.cjs +243 -0
- package/dist/components/state-page/notFound.js +241 -0
- package/dist/components/sticky-footer-layout/StickyFooterLayout.cjs +98 -0
- package/dist/components/sticky-footer-layout/StickyFooterLayout.js +96 -0
- package/dist/components/table/Table.cjs +216 -0
- package/dist/components/table/Table.js +210 -0
- package/dist/components/table/Table.module.css +534 -0
- package/dist/components/table/Table.types.cjs +2 -0
- package/dist/components/table/Table.types.js +1 -0
- package/dist/components/table/TanstackTable.cjs +172 -0
- package/dist/components/table/TanstackTable.js +147 -0
- package/dist/components/table/components/TableBody.cjs +50 -0
- package/dist/components/table/components/TableBody.js +44 -0
- package/dist/components/table/components/TableHeader.cjs +56 -0
- package/dist/components/table/components/TableHeader.js +50 -0
- package/dist/components/table/components/TableHeaderCell.cjs +69 -0
- package/dist/components/table/components/TableHeaderCell.js +63 -0
- package/dist/components/table/components/TableLoadingBody.cjs +35 -0
- package/dist/components/table/components/TableLoadingBody.js +29 -0
- package/dist/components/table/components/TablePagination.cjs +2 -0
- package/dist/components/table/components/TablePagination.js +1 -0
- package/dist/components/table/components/TableRow.cjs +151 -0
- package/dist/components/table/components/TableRow.js +145 -0
- package/dist/components/table/components/TableSelectionCell.cjs +41 -0
- package/dist/components/table/components/TableSelectionCell.js +35 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.cjs +25 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.js +19 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.module.css +22 -0
- package/dist/components/table/components/empty-state/EmptyState.cjs +33 -0
- package/dist/components/table/components/empty-state/EmptyState.js +31 -0
- package/dist/components/table/components/empty-state/EmptyState.module.css +4 -0
- package/dist/components/table/components/table-settings/TableSettings.cjs +139 -0
- package/dist/components/table/components/table-settings/TableSettings.js +137 -0
- package/dist/components/table/hooks/useTableRowInteractions.cjs +46 -0
- package/dist/components/table/hooks/useTableRowInteractions.js +44 -0
- package/dist/components/table/table.classes.cjs +49 -0
- package/dist/components/table/table.classes.js +40 -0
- package/dist/components/table/table.utils.cjs +57 -0
- package/dist/components/table/table.utils.js +45 -0
- package/dist/components/table/tanstackTable.utils.cjs +166 -0
- package/dist/components/table/tanstackTable.utils.js +159 -0
- package/dist/components/tabs/Tabs.cjs +172 -0
- package/dist/components/tabs/Tabs.js +166 -0
- package/dist/components/tabs/Tabs.module.css +261 -0
- package/dist/components/theme-button/ThemeButton.cjs +78 -0
- package/dist/components/theme-button/ThemeButton.js +75 -0
- package/dist/components/toast/Toast.cjs +68 -0
- package/dist/components/toast/Toast.js +62 -0
- package/dist/components/toast/Toast.module.css +161 -0
- package/dist/components/toast/provider/ToastProvider.cjs +105 -0
- package/dist/components/toast/provider/ToastProvider.js +97 -0
- package/dist/components/user-display/UserDisplay.cjs +22 -0
- package/dist/components/user-display/UserDisplay.js +16 -0
- package/dist/components/user-display/UserDisplay.module.css +25 -0
- package/dist/constants/chart-colors.cjs +10 -0
- package/dist/constants/chart-colors.js +8 -0
- package/dist/constants/chart-colors.types.cjs +2 -0
- package/dist/constants/chart-colors.types.js +1 -0
- package/dist/constants/severity.cjs +30 -0
- package/dist/constants/severity.js +26 -0
- package/dist/constants/severity.types.cjs +2 -0
- package/dist/constants/severity.types.js +1 -0
- package/dist/constants/sizes.cjs +11 -0
- package/dist/constants/sizes.js +9 -0
- package/dist/hooks/useDeviceSize.cjs +35 -0
- package/dist/hooks/useDeviceSize.js +33 -0
- package/dist/hooks/useListNavigation.cjs +237 -0
- package/dist/hooks/useListNavigation.js +235 -0
- package/dist/hooks/usePagination.cjs +144 -0
- package/dist/hooks/usePagination.js +142 -0
- package/dist/hooks/useSorting.cjs +119 -0
- package/dist/hooks/useSorting.js +117 -0
- package/dist/hooks/useTableData.cjs +53 -0
- package/dist/hooks/useTableData.js +51 -0
- package/dist/hooks/useTableSelection.cjs +172 -0
- package/dist/hooks/useTableSelection.js +170 -0
- package/dist/hooks/useTableSettings.cjs +90 -0
- package/dist/hooks/useTableSettings.js +87 -0
- package/dist/hooks/useTheme.cjs +64 -0
- package/dist/hooks/useTheme.js +62 -0
- package/dist/hooks/useTimeDuration.cjs +72 -0
- package/dist/hooks/useTimeDuration.js +70 -0
- package/dist/hooks/useViewportFill.cjs +82 -0
- package/dist/hooks/useViewportFill.js +80 -0
- package/dist/index.cjs +161 -12901
- package/dist/index.css +67 -7228
- package/dist/index.d.ts +0 -58
- package/dist/index.js +24 -12802
- package/dist/styles/animation.cjs +9 -0
- package/dist/styles/animation.js +7 -0
- package/dist/styles/themes/dbc/colors.css +5 -0
- package/dist/styles/themes/types.cjs +2 -0
- package/dist/styles/themes/types.js +1 -0
- package/dist/tanstack.cjs +18 -2652
- package/dist/tanstack.js +3 -2636
- package/dist/types/a11y-props.types.cjs +2 -0
- package/dist/types/a11y-props.types.js +1 -0
- package/dist/types/assets.d.cjs +2 -0
- package/dist/types/assets.d.js +1 -0
- package/dist/types/css.d.cjs +2 -0
- package/dist/types/css.d.js +1 -0
- package/dist/types/sizes.types.cjs +2 -0
- package/dist/types/sizes.types.js +1 -0
- package/dist/utils/arrays/nested-filtering.cjs +40 -0
- package/dist/utils/arrays/nested-filtering.js +38 -0
- package/dist/utils/date/formatDate.cjs +35 -0
- package/dist/utils/date/formatDate.js +33 -0
- package/dist/utils/localStorage.utils.cjs +53 -0
- package/dist/utils/localStorage.utils.js +49 -0
- package/dist/utils/text/get-highlighted-segments.cjs +49 -0
- package/dist/utils/text/get-highlighted-segments.js +47 -0
- package/package.json +8 -3
- package/dist/tanstack.css +0 -1271
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--spacing-xl);
|
|
5
|
+
inline-size: 100%;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
flex-grow: 1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.logoRow {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--spacing-xs);
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.logoRow a {
|
|
18
|
+
color: unset;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.navContent {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: var(--spacing-md);
|
|
25
|
+
min-inline-size: 0;
|
|
26
|
+
flex: 1 1 auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Burger: hidden on desktop, visible on mobile */
|
|
30
|
+
.burger {
|
|
31
|
+
display: none;
|
|
32
|
+
margin-inline-start: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.burgerButton {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
inline-size: var(--component-size-md);
|
|
40
|
+
block-size: var(--component-size-md);
|
|
41
|
+
border: none;
|
|
42
|
+
background: transparent;
|
|
43
|
+
color: var(--color-fg-default);
|
|
44
|
+
border-radius: var(--border-radius-default);
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
padding: 0;
|
|
47
|
+
transition: background-color var(--transition-fast) var(--ease-standard);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.burgerButton:hover {
|
|
51
|
+
background-color: var(--color-bg-hover-subtle);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.burgerButton:focus-visible {
|
|
55
|
+
outline: none;
|
|
56
|
+
box-shadow: var(--focus-ring);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Mobile dropdown content */
|
|
60
|
+
.mobileMenu {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
gap: var(--spacing-xs);
|
|
64
|
+
padding: var(--spacing-xs);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mobileNavItems {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
list-style: none;
|
|
71
|
+
margin: 0;
|
|
72
|
+
padding: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.mobileAddition {
|
|
76
|
+
border-top: var(--border-width-thin) solid var(--color-border-subtle);
|
|
77
|
+
padding-top: var(--spacing-xs);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media (max-width: 1024px) {
|
|
81
|
+
.container {
|
|
82
|
+
flex-wrap: nowrap;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.logoRow {
|
|
87
|
+
flex: 1 1 auto;
|
|
88
|
+
min-inline-size: 0;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.navContent {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.addition {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.burger {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-shrink: 0;
|
|
103
|
+
margin-inline-start: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.productName {
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
gap: var(--spacing-xs);
|
|
111
|
+
color: inherit;
|
|
112
|
+
text-decoration: none;
|
|
113
|
+
}
|
|
114
|
+
.productName svg {
|
|
115
|
+
inline-size: var(--icon-size-md);
|
|
116
|
+
block-size: var(--icon-size-md);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.navItems {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
gap: var(--spacing-lg);
|
|
123
|
+
min-inline-size: 0;
|
|
124
|
+
list-style: none;
|
|
125
|
+
margin: 0;
|
|
126
|
+
padding: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.addition {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
flex: 1 1 auto;
|
|
133
|
+
min-inline-size: 0;
|
|
134
|
+
margin-inline-start: auto;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.mobileAddition {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
align-items: stretch;
|
|
141
|
+
gap: var(--spacing-xs);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.navItem {
|
|
145
|
+
list-style: none;
|
|
146
|
+
min-inline-size: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.link {
|
|
150
|
+
text-transform: var(--nav-link-transform);
|
|
151
|
+
position: relative;
|
|
152
|
+
display: inline-flex;
|
|
153
|
+
align-items: center;
|
|
154
|
+
gap: var(--spacing-xs);
|
|
155
|
+
color: var(--color-fg-muted);
|
|
156
|
+
font-family: var(--font-family);
|
|
157
|
+
font-size: var(--font-size-sm);
|
|
158
|
+
text-decoration: none;
|
|
159
|
+
border-radius: var(--border-radius-default);
|
|
160
|
+
padding-block: var(--spacing-xs);
|
|
161
|
+
padding-inline: var(--spacing-sm);
|
|
162
|
+
transition:
|
|
163
|
+
background-color var(--transition-fast) var(--ease-standard),
|
|
164
|
+
color var(--transition-fast) var(--ease-standard),
|
|
165
|
+
box-shadow var(--transition-fast) var(--ease-standard);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Hover + focus */
|
|
169
|
+
.link:hover {
|
|
170
|
+
color: var(--color-fg-default);
|
|
171
|
+
}
|
|
172
|
+
.link:focus-visible {
|
|
173
|
+
outline: none;
|
|
174
|
+
box-shadow: var(--focus-ring);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* Active underline */
|
|
178
|
+
.link.active,
|
|
179
|
+
.link[aria-current='page'] {
|
|
180
|
+
color: var(--color-fg-default);
|
|
181
|
+
box-shadow: none;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.link::after {
|
|
185
|
+
content: '';
|
|
186
|
+
position: absolute;
|
|
187
|
+
inset-inline-start: 0;
|
|
188
|
+
inset-block-end: 0;
|
|
189
|
+
inline-size: 0;
|
|
190
|
+
block-size: 2px;
|
|
191
|
+
background-color: var(--color-border-strong);
|
|
192
|
+
transition: inline-size var(--transition-fast) var(--ease-standard);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.link:hover::after {
|
|
196
|
+
inline-size: 100%;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.link.active::after,
|
|
200
|
+
.link[aria-current='page']::after {
|
|
201
|
+
inline-size: 100%;
|
|
202
|
+
background-color: var(--color-brand);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* Icons/images inside links */
|
|
206
|
+
.link svg,
|
|
207
|
+
.link img {
|
|
208
|
+
inline-size: var(--icon-size-md);
|
|
209
|
+
block-size: var(--icon-size-md);
|
|
210
|
+
flex: 0 0 auto;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@media (max-width: 767px) {
|
|
214
|
+
.addition,
|
|
215
|
+
.mobileAddition {
|
|
216
|
+
flex-direction: column;
|
|
217
|
+
align-items: stretch;
|
|
218
|
+
gap: var(--spacing-xs);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.addition > *,
|
|
222
|
+
.mobileAddition > * {
|
|
223
|
+
width: 100%;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var styles = require('./FadeOverlay.module.css');
|
|
5
|
+
|
|
6
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
|
|
8
|
+
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
9
|
+
|
|
10
|
+
function cx(...parts) {
|
|
11
|
+
return parts.filter(Boolean).join(" ");
|
|
12
|
+
}
|
|
13
|
+
function FadeOverlay({
|
|
14
|
+
edge = "bottom",
|
|
15
|
+
size = "md",
|
|
16
|
+
className,
|
|
17
|
+
"aria-hidden": ariaHidden = true,
|
|
18
|
+
...rest
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
"aria-hidden": ariaHidden,
|
|
24
|
+
className: cx(styles__default.default.overlay, styles__default.default[edge], styles__default.default[size], className),
|
|
25
|
+
...rest
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
exports.FadeOverlay = FadeOverlay;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styles from './FadeOverlay.module.css';
|
|
3
|
+
|
|
4
|
+
function cx(...parts) {
|
|
5
|
+
return parts.filter(Boolean).join(" ");
|
|
6
|
+
}
|
|
7
|
+
function FadeOverlay({
|
|
8
|
+
edge = "bottom",
|
|
9
|
+
size = "md",
|
|
10
|
+
className,
|
|
11
|
+
"aria-hidden": ariaHidden = true,
|
|
12
|
+
...rest
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
"aria-hidden": ariaHidden,
|
|
18
|
+
className: cx(styles.overlay, styles[edge], styles[size], className),
|
|
19
|
+
...rest
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { FadeOverlay };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.overlay {
|
|
2
|
+
--fade-overlay-color: var(--color-bg-surface);
|
|
3
|
+
--fade-overlay-size: 65%;
|
|
4
|
+
|
|
5
|
+
position: absolute;
|
|
6
|
+
inset: 0;
|
|
7
|
+
z-index: 1;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
border-radius: inherit;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.bottom {
|
|
13
|
+
background: linear-gradient(
|
|
14
|
+
to top,
|
|
15
|
+
var(--fade-overlay-color) 0%,
|
|
16
|
+
transparent var(--fade-overlay-size)
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.top {
|
|
21
|
+
background: linear-gradient(
|
|
22
|
+
to bottom,
|
|
23
|
+
var(--fade-overlay-color) 0%,
|
|
24
|
+
transparent var(--fade-overlay-size)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.left {
|
|
29
|
+
background: linear-gradient(
|
|
30
|
+
to right,
|
|
31
|
+
var(--fade-overlay-color) 0%,
|
|
32
|
+
transparent var(--fade-overlay-size)
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.right {
|
|
37
|
+
background: linear-gradient(
|
|
38
|
+
to left,
|
|
39
|
+
var(--fade-overlay-color) 0%,
|
|
40
|
+
transparent var(--fade-overlay-size)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sm {
|
|
45
|
+
--fade-overlay-size: 40%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.md {
|
|
49
|
+
--fade-overlay-size: 65%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.lg {
|
|
53
|
+
--fade-overlay-size: 85%;
|
|
54
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var lucideReact = require('lucide-react');
|
|
6
|
+
var react = require('react');
|
|
7
|
+
var reactDom = require('react-dom');
|
|
8
|
+
var Button = require('../../../components/button/Button');
|
|
9
|
+
var Headline = require('../../../components/headline/Headline');
|
|
10
|
+
var styles = require('./Modal.module.css');
|
|
11
|
+
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
15
|
+
|
|
16
|
+
function Modal({
|
|
17
|
+
isOpen,
|
|
18
|
+
onRequestClose,
|
|
19
|
+
header,
|
|
20
|
+
subheader,
|
|
21
|
+
content,
|
|
22
|
+
children,
|
|
23
|
+
primaryAction,
|
|
24
|
+
secondaryAction,
|
|
25
|
+
closeOnOverlayClick = true,
|
|
26
|
+
severity,
|
|
27
|
+
disableContentSpacing = false,
|
|
28
|
+
isLoading,
|
|
29
|
+
dataCy,
|
|
30
|
+
width,
|
|
31
|
+
ariaLabel
|
|
32
|
+
}) {
|
|
33
|
+
const titleId = react.useId();
|
|
34
|
+
const dialogRef = react.useRef(null);
|
|
35
|
+
const lastActiveElementRef = react.useRef(null);
|
|
36
|
+
const [mounted, setMounted] = react.useState(false);
|
|
37
|
+
const onRequestCloseRef = react.useRef(onRequestClose);
|
|
38
|
+
react.useEffect(() => {
|
|
39
|
+
onRequestCloseRef.current = onRequestClose;
|
|
40
|
+
}, [onRequestClose]);
|
|
41
|
+
react.useEffect(() => {
|
|
42
|
+
setMounted(true);
|
|
43
|
+
}, []);
|
|
44
|
+
const wasOpenRef = react.useRef(false);
|
|
45
|
+
react.useEffect(() => {
|
|
46
|
+
var _a;
|
|
47
|
+
const wasOpen = wasOpenRef.current;
|
|
48
|
+
wasOpenRef.current = isOpen;
|
|
49
|
+
if (!isOpen) return;
|
|
50
|
+
if (!wasOpen) {
|
|
51
|
+
lastActiveElementRef.current = document.activeElement;
|
|
52
|
+
const dialog = dialogRef.current;
|
|
53
|
+
if (dialog) {
|
|
54
|
+
const focusableSelectors2 = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
55
|
+
const focusable = dialog.querySelectorAll(focusableSelectors2);
|
|
56
|
+
if (focusable.length > 0) {
|
|
57
|
+
const preferred = (_a = dialog.querySelector("input, select, textarea")) != null ? _a : focusable[0];
|
|
58
|
+
preferred.focus();
|
|
59
|
+
} else {
|
|
60
|
+
dialog.focus();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const focusableSelectors = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
65
|
+
const getFocusable = () => {
|
|
66
|
+
var _a2, _b;
|
|
67
|
+
return (_b = (_a2 = dialogRef.current) == null ? void 0 : _a2.querySelectorAll(focusableSelectors)) != null ? _b : [];
|
|
68
|
+
};
|
|
69
|
+
const handleKeyDown = (event) => {
|
|
70
|
+
if (event.key === "Escape") {
|
|
71
|
+
onRequestCloseRef.current();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (event.key === "Tab" && dialogRef.current) {
|
|
75
|
+
const focusable = getFocusable();
|
|
76
|
+
if (focusable.length === 0) return;
|
|
77
|
+
const first = focusable[0];
|
|
78
|
+
const last = focusable[focusable.length - 1];
|
|
79
|
+
if (event.shiftKey) {
|
|
80
|
+
if (document.activeElement === first || !dialogRef.current.contains(document.activeElement)) {
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
last.focus();
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
if (document.activeElement === last || !dialogRef.current.contains(document.activeElement)) {
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
first.focus();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const handleFocusIn = (event) => {
|
|
93
|
+
const dialog = dialogRef.current;
|
|
94
|
+
if (!dialog || dialog.contains(event.target)) return;
|
|
95
|
+
const focusable = getFocusable();
|
|
96
|
+
if (focusable.length > 0) focusable[0].focus();
|
|
97
|
+
else dialog.focus();
|
|
98
|
+
};
|
|
99
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
100
|
+
document.addEventListener("focusin", handleFocusIn);
|
|
101
|
+
return () => {
|
|
102
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
103
|
+
document.removeEventListener("focusin", handleFocusIn);
|
|
104
|
+
if (lastActiveElementRef.current) {
|
|
105
|
+
lastActiveElementRef.current.focus();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}, [isOpen]);
|
|
109
|
+
if (!isOpen || !mounted) return null;
|
|
110
|
+
const handleOverlayClick = () => {
|
|
111
|
+
if (closeOnOverlayClick) {
|
|
112
|
+
onRequestCloseRef.current();
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const stopPropagation = (e) => {
|
|
116
|
+
e.stopPropagation();
|
|
117
|
+
};
|
|
118
|
+
const resolvedSecondaryAction = primaryAction || secondaryAction ? { label: "Luk", onClick: onRequestClose, ...secondaryAction } : void 0;
|
|
119
|
+
const shouldRenderFooter = Boolean(primaryAction || resolvedSecondaryAction);
|
|
120
|
+
const body = children != null ? children : content;
|
|
121
|
+
const resolvedWidth = typeof width === "number" ? `${width}px` : typeof width === "string" ? width : void 0;
|
|
122
|
+
return reactDom.createPortal(
|
|
123
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.overlay, onClick: handleOverlayClick, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
"data-cy": dataCy,
|
|
127
|
+
ref: dialogRef,
|
|
128
|
+
className: `${styles__default.default.modal} ${disableContentSpacing ? "" : styles__default.default.contentSpacing}`,
|
|
129
|
+
style: resolvedWidth ? { ["--modal-width"]: resolvedWidth } : void 0,
|
|
130
|
+
onClick: stopPropagation,
|
|
131
|
+
role: "dialog",
|
|
132
|
+
"aria-modal": "true",
|
|
133
|
+
"aria-labelledby": header ? titleId : void 0,
|
|
134
|
+
"aria-label": !header ? ariaLabel : void 0,
|
|
135
|
+
tabIndex: -1,
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.header, children: [
|
|
138
|
+
header && /* @__PURE__ */ jsxRuntime.jsx(
|
|
139
|
+
Headline.Headline,
|
|
140
|
+
{
|
|
141
|
+
id: titleId,
|
|
142
|
+
severity,
|
|
143
|
+
size: 2,
|
|
144
|
+
disableMargin: true,
|
|
145
|
+
subheader,
|
|
146
|
+
children: header
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
150
|
+
Button.Button,
|
|
151
|
+
{
|
|
152
|
+
type: "button",
|
|
153
|
+
variant: "inline",
|
|
154
|
+
onClick: () => onRequestCloseRef.current(),
|
|
155
|
+
"aria-label": "Luk",
|
|
156
|
+
shape: "round",
|
|
157
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, {})
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
] }),
|
|
161
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.body, children: body }),
|
|
162
|
+
shouldRenderFooter && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.footer, children: [
|
|
163
|
+
resolvedSecondaryAction && /* @__PURE__ */ jsxRuntime.jsxs(Button.Button, { type: "button", onClick: resolvedSecondaryAction.onClick, disabled: isLoading, children: [
|
|
164
|
+
resolvedSecondaryAction.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles__default.default.icon, children: resolvedSecondaryAction.icon }),
|
|
165
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: resolvedSecondaryAction.label })
|
|
166
|
+
] }),
|
|
167
|
+
primaryAction && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
168
|
+
Button.Button,
|
|
169
|
+
{
|
|
170
|
+
type: "button",
|
|
171
|
+
variant: primaryAction.severity || "primary",
|
|
172
|
+
onClick: primaryAction.onClick,
|
|
173
|
+
disabled: primaryAction.disabled || isLoading,
|
|
174
|
+
loading: isLoading,
|
|
175
|
+
children: [
|
|
176
|
+
primaryAction.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles__default.default.icon, children: primaryAction.icon }),
|
|
177
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: primaryAction.label })
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
] })
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
) }),
|
|
185
|
+
document.body
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
exports.Modal = Modal;
|
|
@@ -23,5 +23,6 @@ export type ModalProps = {
|
|
|
23
23
|
disableContentSpacing?: boolean;
|
|
24
24
|
dataCy?: string;
|
|
25
25
|
width?: number | string;
|
|
26
|
+
ariaLabel?: string;
|
|
26
27
|
};
|
|
27
|
-
export declare function Modal({ isOpen, onRequestClose, header, subheader, content, children, primaryAction, secondaryAction, closeOnOverlayClick, severity, disableContentSpacing, isLoading, dataCy, width, }: ModalProps): React.ReactNode;
|
|
28
|
+
export declare function Modal({ isOpen, onRequestClose, header, subheader, content, children, primaryAction, secondaryAction, closeOnOverlayClick, severity, disableContentSpacing, isLoading, dataCy, width, ariaLabel, }: ModalProps): React.ReactNode;
|