@dbcdk/react-components 0.0.168 → 0.0.169
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/package.json +1 -1
- package/dist/assets/logo.cjs +0 -87
- package/dist/assets/logo.d.ts +0 -2
- package/dist/assets/logo.js +0 -85
- package/dist/client.cjs +0 -629
- package/dist/client.d.ts +0 -89
- package/dist/client.js +0 -90
- package/dist/components/accordion/Accordion.cjs +0 -127
- package/dist/components/accordion/Accordion.d.ts +0 -36
- package/dist/components/accordion/Accordion.js +0 -121
- package/dist/components/accordion/Accordion.module.css +0 -41
- package/dist/components/accordion/components/AccordionRow.cjs +0 -129
- package/dist/components/accordion/components/AccordionRow.d.ts +0 -14
- package/dist/components/accordion/components/AccordionRow.js +0 -123
- package/dist/components/accordion/components/AccordionRow.module.css +0 -129
- package/dist/components/alert/Alert.cjs +0 -52
- package/dist/components/alert/Alert.d.ts +0 -14
- package/dist/components/alert/Alert.js +0 -46
- package/dist/components/alert/Alert.module.css +0 -102
- package/dist/components/app-header/AppHeader.cjs +0 -14
- package/dist/components/app-header/AppHeader.d.ts +0 -8
- package/dist/components/app-header/AppHeader.js +0 -8
- package/dist/components/app-header/AppHeader.module.css +0 -74
- package/dist/components/attribute-chip/AttributeChip.cjs +0 -36
- package/dist/components/attribute-chip/AttributeChip.d.ts +0 -11
- package/dist/components/attribute-chip/AttributeChip.js +0 -30
- package/dist/components/attribute-chip/AttributeChip.module.css +0 -64
- package/dist/components/avatar/Avatar.cjs +0 -111
- package/dist/components/avatar/Avatar.d.ts +0 -17
- package/dist/components/avatar/Avatar.js +0 -86
- package/dist/components/avatar/Avatar.module.css +0 -91
- package/dist/components/breadcrumbs/Breadcrumbs.cjs +0 -24
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +0 -12
- package/dist/components/breadcrumbs/Breadcrumbs.js +0 -18
- package/dist/components/breadcrumbs/Breadcrumbs.module.css +0 -77
- package/dist/components/button/Button.cjs +0 -150
- package/dist/components/button/Button.d.ts +0 -18
- package/dist/components/button/Button.js +0 -125
- package/dist/components/button/Button.module.css +0 -266
- package/dist/components/button-select/ButtonSelect.cjs +0 -35
- package/dist/components/button-select/ButtonSelect.d.ts +0 -16
- package/dist/components/button-select/ButtonSelect.js +0 -29
- package/dist/components/button-select/ButtonSelect.module.css +0 -40
- package/dist/components/card/Card.cjs +0 -109
- package/dist/components/card/Card.d.ts +0 -37
- package/dist/components/card/Card.js +0 -103
- package/dist/components/card/Card.module.css +0 -191
- package/dist/components/card/components/CardMeta.cjs +0 -62
- package/dist/components/card/components/CardMeta.d.ts +0 -16
- package/dist/components/card/components/CardMeta.js +0 -55
- package/dist/components/card/components/CardMeta.module.css +0 -55
- package/dist/components/card-container/CardContainer.cjs +0 -34
- package/dist/components/card-container/CardContainer.d.ts +0 -12
- package/dist/components/card-container/CardContainer.js +0 -28
- package/dist/components/card-container/CardContainer.module.css +0 -63
- package/dist/components/chip/Chip.cjs +0 -65
- package/dist/components/chip/Chip.d.ts +0 -16
- package/dist/components/chip/Chip.js +0 -59
- package/dist/components/chip/Chip.module.css +0 -247
- package/dist/components/circle/Circle.cjs +0 -39
- package/dist/components/circle/Circle.d.ts +0 -14
- package/dist/components/circle/Circle.js +0 -33
- package/dist/components/circle/Circle.module.css +0 -138
- package/dist/components/clear-button/ClearButton.cjs +0 -33
- package/dist/components/clear-button/ClearButton.d.ts +0 -8
- package/dist/components/clear-button/ClearButton.js +0 -27
- package/dist/components/clear-button/ClearButton.module.css +0 -26
- package/dist/components/code-block/CodeBlock.cjs +0 -107
- package/dist/components/code-block/CodeBlock.d.ts +0 -11
- package/dist/components/code-block/CodeBlock.js +0 -101
- package/dist/components/code-block/CodeBlock.module.css +0 -135
- package/dist/components/copy-button/CopyButton.cjs +0 -139
- package/dist/components/copy-button/CopyButton.d.ts +0 -13
- package/dist/components/copy-button/CopyButton.js +0 -133
- package/dist/components/copy-button/CopyButton.module.css +0 -22
- package/dist/components/datetime-picker/DateTimePicker.cjs +0 -563
- package/dist/components/datetime-picker/DateTimePicker.d.ts +0 -66
- package/dist/components/datetime-picker/DateTimePicker.js +0 -557
- package/dist/components/datetime-picker/DateTimePicker.module.css +0 -155
- package/dist/components/datetime-picker/dateTimeHelpers.cjs +0 -185
- package/dist/components/datetime-picker/dateTimeHelpers.d.ts +0 -37
- package/dist/components/datetime-picker/dateTimeHelpers.js +0 -166
- package/dist/components/divider/Divider.cjs +0 -22
- package/dist/components/divider/Divider.d.ts +0 -5
- package/dist/components/divider/Divider.js +0 -20
- package/dist/components/environment-banner/EnvironmentBanner.cjs +0 -20
- package/dist/components/environment-banner/EnvironmentBanner.d.ts +0 -13
- package/dist/components/environment-banner/EnvironmentBanner.js +0 -14
- package/dist/components/environment-banner/EnvironmentBanner.module.css +0 -54
- package/dist/components/filter-field/FilterField.cjs +0 -288
- package/dist/components/filter-field/FilterField.d.ts +0 -37
- package/dist/components/filter-field/FilterField.js +0 -281
- package/dist/components/filter-field/FilterField.module.css +0 -324
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.cjs +0 -115
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.d.ts +0 -35
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.js +0 -108
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.module.css +0 -59
- package/dist/components/forms/checkbox/Checkbox.cjs +0 -99
- package/dist/components/forms/checkbox/Checkbox.d.ts +0 -39
- package/dist/components/forms/checkbox/Checkbox.js +0 -93
- package/dist/components/forms/checkbox/Checkbox.module.css +0 -110
- package/dist/components/forms/checkbox-group/CheckboxGroup.cjs +0 -121
- package/dist/components/forms/checkbox-group/CheckboxGroup.d.ts +0 -47
- package/dist/components/forms/checkbox-group/CheckboxGroup.js +0 -115
- package/dist/components/forms/checkbox-group/CheckboxGroup.module.css +0 -115
- package/dist/components/forms/file-upload/FileUpload.cjs +0 -127
- package/dist/components/forms/file-upload/FileUpload.d.ts +0 -18
- package/dist/components/forms/file-upload/FileUpload.js +0 -121
- package/dist/components/forms/file-upload/FileUpload.module.css +0 -75
- package/dist/components/forms/form-select/FormSelect.cjs +0 -191
- package/dist/components/forms/form-select/FormSelect.d.ts +0 -35
- package/dist/components/forms/form-select/FormSelect.js +0 -166
- package/dist/components/forms/form-select/FormSelect.module.css +0 -236
- package/dist/components/forms/input/Input.cjs +0 -190
- package/dist/components/forms/input/Input.d.ts +0 -37
- package/dist/components/forms/input/Input.js +0 -184
- package/dist/components/forms/input/Input.module.css +0 -478
- package/dist/components/forms/input-container/InputContainer.cjs +0 -72
- package/dist/components/forms/input-container/InputContainer.d.ts +0 -18
- package/dist/components/forms/input-container/InputContainer.js +0 -66
- package/dist/components/forms/input-container/InputContainer.module.css +0 -59
- package/dist/components/forms/multi-select/MultiSelect.cjs +0 -229
- package/dist/components/forms/multi-select/MultiSelect.d.ts +0 -26
- package/dist/components/forms/multi-select/MultiSelect.js +0 -227
- package/dist/components/forms/radio-buttons/RadioButton.cjs +0 -94
- package/dist/components/forms/radio-buttons/RadioButton.d.ts +0 -46
- package/dist/components/forms/radio-buttons/RadioButton.js +0 -88
- package/dist/components/forms/radio-buttons/RadioButtonGroup.cjs +0 -74
- package/dist/components/forms/radio-buttons/RadioButtonGroup.d.ts +0 -25
- package/dist/components/forms/radio-buttons/RadioButtonGroup.js +0 -72
- package/dist/components/forms/radio-buttons/RadioButtons.module.css +0 -131
- package/dist/components/forms/select/Select.cjs +0 -287
- package/dist/components/forms/select/Select.d.ts +0 -24
- package/dist/components/forms/select/Select.js +0 -281
- package/dist/components/forms/select/Select.module.css +0 -41
- package/dist/components/forms/switch/Switch.cjs +0 -93
- package/dist/components/forms/switch/Switch.d.ts +0 -37
- package/dist/components/forms/switch/Switch.js +0 -87
- package/dist/components/forms/switch/Switch.module.css +0 -89
- package/dist/components/forms/text-area/Textarea.cjs +0 -118
- package/dist/components/forms/text-area/Textarea.d.ts +0 -17
- package/dist/components/forms/text-area/Textarea.js +0 -112
- package/dist/components/forms/text-area/Textarea.module.css +0 -70
- package/dist/components/forms/typeahead/Typeahead.cjs +0 -792
- package/dist/components/forms/typeahead/Typeahead.d.ts +0 -40
- package/dist/components/forms/typeahead/Typeahead.js +0 -768
- package/dist/components/forms/typeahead/Typeahead.module.css +0 -38
- package/dist/components/grid/Grid.cjs +0 -58
- package/dist/components/grid/Grid.d.ts +0 -29
- package/dist/components/grid/Grid.js +0 -51
- package/dist/components/grid/Grid.module.css +0 -44
- package/dist/components/headline/CollapsibleHeadline.cjs +0 -84
- package/dist/components/headline/CollapsibleHeadline.d.ts +0 -25
- package/dist/components/headline/CollapsibleHeadline.js +0 -78
- package/dist/components/headline/Headline.cjs +0 -59
- package/dist/components/headline/Headline.d.ts +0 -20
- package/dist/components/headline/Headline.js +0 -53
- package/dist/components/headline/Headline.module.css +0 -167
- package/dist/components/highlighted-text/HighlightedText.cjs +0 -21
- package/dist/components/highlighted-text/HighlightedText.d.ts +0 -7
- package/dist/components/highlighted-text/HighlightedText.js +0 -19
- package/dist/components/hyperlink/Hyperlink.cjs +0 -113
- package/dist/components/hyperlink/Hyperlink.d.ts +0 -24
- package/dist/components/hyperlink/Hyperlink.js +0 -88
- package/dist/components/hyperlink/Hyperlink.module.css +0 -121
- package/dist/components/icon/Icon.cjs +0 -39
- package/dist/components/icon/Icon.d.ts +0 -14
- package/dist/components/icon/Icon.js +0 -32
- package/dist/components/icon/Icon.module.css +0 -50
- package/dist/components/inline-status/InlineStatus.cjs +0 -39
- package/dist/components/inline-status/InlineStatus.d.ts +0 -11
- package/dist/components/inline-status/InlineStatus.js +0 -33
- package/dist/components/inline-status/InlineStatus.module.css +0 -98
- package/dist/components/interval-select/IntervalSelect.cjs +0 -203
- package/dist/components/interval-select/IntervalSelect.d.ts +0 -37
- package/dist/components/interval-select/IntervalSelect.js +0 -201
- package/dist/components/json-viewer/JsonNode.cjs +0 -124
- package/dist/components/json-viewer/JsonNode.d.ts +0 -3
- package/dist/components/json-viewer/JsonNode.js +0 -118
- package/dist/components/json-viewer/JsonViewer.cjs +0 -164
- package/dist/components/json-viewer/JsonViewer.d.ts +0 -4
- package/dist/components/json-viewer/JsonViewer.js +0 -158
- package/dist/components/json-viewer/JsonViewer.module.css +0 -346
- package/dist/components/json-viewer/types.cjs +0 -2
- package/dist/components/json-viewer/types.d.ts +0 -33
- package/dist/components/json-viewer/types.js +0 -1
- package/dist/components/json-viewer/useClipboardStatus.cjs +0 -15
- package/dist/components/json-viewer/useClipboardStatus.d.ts +0 -4
- package/dist/components/json-viewer/useClipboardStatus.js +0 -13
- package/dist/components/json-viewer/utils.cjs +0 -126
- package/dist/components/json-viewer/utils.d.ts +0 -17
- package/dist/components/json-viewer/utils.js +0 -111
- package/dist/components/lightbox/Lightbox.cjs +0 -291
- package/dist/components/lightbox/Lightbox.d.ts +0 -36
- package/dist/components/lightbox/Lightbox.js +0 -285
- package/dist/components/lightbox/Lightbox.module.css +0 -214
- package/dist/components/media-card/MediaCard.cjs +0 -87
- package/dist/components/media-card/MediaCard.d.ts +0 -21
- package/dist/components/media-card/MediaCard.js +0 -80
- package/dist/components/media-card/MediaCard.module.css +0 -91
- package/dist/components/menu/Menu.cjs +0 -455
- package/dist/components/menu/Menu.d.ts +0 -102
- package/dist/components/menu/Menu.js +0 -430
- package/dist/components/menu/Menu.module.css +0 -286
- package/dist/components/meta-bar/MetaBar.cjs +0 -28
- package/dist/components/meta-bar/MetaBar.d.ts +0 -12
- package/dist/components/meta-bar/MetaBar.js +0 -22
- package/dist/components/meta-bar/MetaBar.module.css +0 -27
- package/dist/components/metric-tile/MetricTile.cjs +0 -33
- package/dist/components/metric-tile/MetricTile.d.ts +0 -15
- package/dist/components/metric-tile/MetricTile.js +0 -27
- package/dist/components/metric-tile/MetricTile.module.css +0 -103
- package/dist/components/nav-bar/NavBar.cjs +0 -107
- package/dist/components/nav-bar/NavBar.d.ts +0 -44
- package/dist/components/nav-bar/NavBar.js +0 -101
- package/dist/components/nav-bar/NavBar.module.css +0 -243
- package/dist/components/overlay/fade-overlay/FadeOverlay.cjs +0 -30
- package/dist/components/overlay/fade-overlay/FadeOverlay.d.ts +0 -13
- package/dist/components/overlay/fade-overlay/FadeOverlay.js +0 -24
- package/dist/components/overlay/fade-overlay/FadeOverlay.module.css +0 -54
- package/dist/components/overlay/modal/Modal.cjs +0 -191
- package/dist/components/overlay/modal/Modal.d.ts +0 -29
- package/dist/components/overlay/modal/Modal.js +0 -185
- package/dist/components/overlay/modal/Modal.module.css +0 -112
- package/dist/components/overlay/modal/provider/ModalProvider.cjs +0 -98
- package/dist/components/overlay/modal/provider/ModalProvider.d.ts +0 -23
- package/dist/components/overlay/modal/provider/ModalProvider.js +0 -95
- package/dist/components/overlay/side-panel/SidePanel.cjs +0 -173
- package/dist/components/overlay/side-panel/SidePanel.d.ts +0 -25
- package/dist/components/overlay/side-panel/SidePanel.js +0 -167
- package/dist/components/overlay/side-panel/SidePanel.module.css +0 -177
- package/dist/components/overlay/side-panel/useSidePanel.cjs +0 -16
- package/dist/components/overlay/side-panel/useSidePanel.d.ts +0 -5
- package/dist/components/overlay/side-panel/useSidePanel.js +0 -14
- package/dist/components/overlay/tooltip/Tooltip.cjs +0 -56
- package/dist/components/overlay/tooltip/Tooltip.d.ts +0 -12
- package/dist/components/overlay/tooltip/Tooltip.js +0 -54
- package/dist/components/overlay/tooltip/Tooltip.module.css +0 -104
- package/dist/components/overlay/tooltip/TooltipProvider.cjs +0 -238
- package/dist/components/overlay/tooltip/TooltipProvider.d.ts +0 -20
- package/dist/components/overlay/tooltip/TooltipProvider.js +0 -231
- package/dist/components/overlay/tooltip/useTooltipTrigger.cjs +0 -117
- package/dist/components/overlay/tooltip/useTooltipTrigger.d.ts +0 -28
- package/dist/components/overlay/tooltip/useTooltipTrigger.js +0 -115
- package/dist/components/page/Page.cjs +0 -64
- package/dist/components/page/Page.d.ts +0 -21
- package/dist/components/page/Page.js +0 -58
- package/dist/components/page/Page.module.css +0 -95
- package/dist/components/page-layout/PageLayout.cjs +0 -126
- package/dist/components/page-layout/PageLayout.d.ts +0 -47
- package/dist/components/page-layout/PageLayout.js +0 -120
- package/dist/components/page-layout/PageLayout.module.css +0 -333
- package/dist/components/page-layout/components/footer/Footer.cjs +0 -53
- package/dist/components/page-layout/components/footer/Footer.d.ts +0 -14
- package/dist/components/page-layout/components/footer/Footer.js +0 -47
- package/dist/components/page-layout/components/footer/Footer.module.css +0 -86
- package/dist/components/pagination/Pagination.cjs +0 -161
- package/dist/components/pagination/Pagination.d.ts +0 -21
- package/dist/components/pagination/Pagination.js +0 -155
- package/dist/components/pagination/Pagination.module.css +0 -25
- package/dist/components/panel/Panel.cjs +0 -38
- package/dist/components/panel/Panel.d.ts +0 -13
- package/dist/components/panel/Panel.js +0 -32
- package/dist/components/panel/Panel.module.css +0 -30
- package/dist/components/popover/Popover.cjs +0 -331
- package/dist/components/popover/Popover.d.ts +0 -27
- package/dist/components/popover/Popover.js +0 -307
- package/dist/components/popover/Popover.module.css +0 -52
- package/dist/components/search-box/SearchBox.cjs +0 -297
- package/dist/components/search-box/SearchBox.d.ts +0 -30
- package/dist/components/search-box/SearchBox.js +0 -291
- package/dist/components/search-box/SearchBox.module.css +0 -27
- package/dist/components/section-label/SectionLabel.cjs +0 -18
- package/dist/components/section-label/SectionLabel.d.ts +0 -5
- package/dist/components/section-label/SectionLabel.js +0 -12
- package/dist/components/section-label/SectionLabel.module.css +0 -12
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.cjs +0 -130
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.d.ts +0 -27
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.js +0 -124
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +0 -187
- package/dist/components/sidebar/Sidebar.cjs +0 -41
- package/dist/components/sidebar/Sidebar.d.ts +0 -23
- package/dist/components/sidebar/Sidebar.js +0 -39
- package/dist/components/sidebar/components/SidebarItem.cjs +0 -29
- package/dist/components/sidebar/components/SidebarItem.d.ts +0 -11
- package/dist/components/sidebar/components/SidebarItem.js +0 -27
- package/dist/components/sidebar/components/SidebarItem.module.css +0 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +0 -153
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.d.ts +0 -13
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +0 -147
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.module.css +0 -47
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.cjs +0 -220
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.d.ts +0 -18
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.js +0 -213
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.module.css +0 -293
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +0 -54
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.d.ts +0 -13
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +0 -47
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +0 -117
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +0 -61
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.d.ts +0 -4
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +0 -55
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.module.css +0 -20
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.cjs +0 -96
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.d.ts +0 -7
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.js +0 -90
- package/dist/components/sidebar/providers/SidebarProvider.cjs +0 -223
- package/dist/components/sidebar/providers/SidebarProvider.d.ts +0 -34
- package/dist/components/sidebar/providers/SidebarProvider.js +0 -220
- package/dist/components/skeleton-loader/SkeletonLoader.cjs +0 -442
- package/dist/components/skeleton-loader/SkeletonLoader.d.ts +0 -9
- package/dist/components/skeleton-loader/SkeletonLoader.js +0 -440
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.cjs +0 -42
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.d.ts +0 -11
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.js +0 -36
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.module.css +0 -55
- package/dist/components/split-button/SplitButton.cjs +0 -46
- package/dist/components/split-button/SplitButton.d.ts +0 -16
- package/dist/components/split-button/SplitButton.js +0 -40
- package/dist/components/split-button/SplitButton.module.css +0 -32
- package/dist/components/split-pane/SplitPane.cjs +0 -191
- package/dist/components/split-pane/SplitPane.d.ts +0 -21
- package/dist/components/split-pane/SplitPane.js +0 -182
- package/dist/components/split-pane/SplitPane.module.css +0 -118
- package/dist/components/split-pane/provider/SplitPaneContext.cjs +0 -129
- package/dist/components/split-pane/provider/SplitPaneContext.d.ts +0 -24
- package/dist/components/split-pane/provider/SplitPaneContext.js +0 -121
- package/dist/components/stack/Stack.cjs +0 -56
- package/dist/components/stack/Stack.d.ts +0 -26
- package/dist/components/stack/Stack.js +0 -50
- package/dist/components/stack/Stack.module.css +0 -77
- package/dist/components/state-page/StatePage.cjs +0 -48
- package/dist/components/state-page/StatePage.d.ts +0 -10
- package/dist/components/state-page/StatePage.js +0 -42
- package/dist/components/state-page/StatePage.module.css +0 -9
- package/dist/components/state-page/empty.cjs +0 -664
- package/dist/components/state-page/empty.d.ts +0 -2
- package/dist/components/state-page/empty.js +0 -662
- package/dist/components/state-page/error.cjs +0 -310
- package/dist/components/state-page/error.d.ts +0 -2
- package/dist/components/state-page/error.js +0 -308
- package/dist/components/state-page/notFound.cjs +0 -243
- package/dist/components/state-page/notFound.d.ts +0 -2
- package/dist/components/state-page/notFound.js +0 -241
- package/dist/components/sticky-footer-layout/StickyFooterLayout.cjs +0 -98
- package/dist/components/sticky-footer-layout/StickyFooterLayout.d.ts +0 -14
- package/dist/components/sticky-footer-layout/StickyFooterLayout.js +0 -96
- package/dist/components/table/Table.cjs +0 -240
- package/dist/components/table/Table.d.ts +0 -4
- package/dist/components/table/Table.js +0 -234
- package/dist/components/table/Table.module.css +0 -704
- package/dist/components/table/Table.types.cjs +0 -2
- package/dist/components/table/Table.types.d.ts +0 -91
- package/dist/components/table/Table.types.js +0 -1
- package/dist/components/table/TanstackTable.cjs +0 -191
- package/dist/components/table/TanstackTable.d.ts +0 -15
- package/dist/components/table/TanstackTable.js +0 -166
- package/dist/components/table/components/TableBody.cjs +0 -58
- package/dist/components/table/components/TableBody.d.ts +0 -28
- package/dist/components/table/components/TableBody.js +0 -52
- package/dist/components/table/components/TableHeader.cjs +0 -56
- package/dist/components/table/components/TableHeader.d.ts +0 -16
- package/dist/components/table/components/TableHeader.js +0 -50
- package/dist/components/table/components/TableHeaderCell.cjs +0 -68
- package/dist/components/table/components/TableHeaderCell.d.ts +0 -12
- package/dist/components/table/components/TableHeaderCell.js +0 -62
- package/dist/components/table/components/TablePagination.cjs +0 -2
- package/dist/components/table/components/TablePagination.d.ts +0 -0
- package/dist/components/table/components/TablePagination.js +0 -1
- package/dist/components/table/components/TableRow.cjs +0 -287
- package/dist/components/table/components/TableRow.d.ts +0 -28
- package/dist/components/table/components/TableRow.js +0 -281
- package/dist/components/table/components/TableSelectionCell.cjs +0 -41
- package/dist/components/table/components/TableSelectionCell.d.ts +0 -9
- package/dist/components/table/components/TableSelectionCell.js +0 -35
- package/dist/components/table/components/column-resizer/ColumnResizer.cjs +0 -25
- package/dist/components/table/components/column-resizer/ColumnResizer.d.ts +0 -7
- package/dist/components/table/components/column-resizer/ColumnResizer.js +0 -19
- package/dist/components/table/components/column-resizer/ColumnResizer.module.css +0 -24
- package/dist/components/table/components/empty-state/EmptyState.cjs +0 -33
- package/dist/components/table/components/empty-state/EmptyState.d.ts +0 -21
- package/dist/components/table/components/empty-state/EmptyState.js +0 -31
- package/dist/components/table/components/empty-state/EmptyState.module.css +0 -4
- package/dist/components/table/components/table-settings/TableSettings.cjs +0 -139
- package/dist/components/table/components/table-settings/TableSettings.d.ts +0 -18
- package/dist/components/table/components/table-settings/TableSettings.js +0 -137
- package/dist/components/table/hooks/useTableRowInteractions.cjs +0 -47
- package/dist/components/table/hooks/useTableRowInteractions.d.ts +0 -15
- package/dist/components/table/hooks/useTableRowInteractions.js +0 -45
- package/dist/components/table/table.classes.cjs +0 -49
- package/dist/components/table/table.classes.d.ts +0 -10
- package/dist/components/table/table.classes.js +0 -40
- package/dist/components/table/table.utils.cjs +0 -59
- package/dist/components/table/table.utils.d.ts +0 -18
- package/dist/components/table/table.utils.js +0 -46
- package/dist/components/table/tanstackTable.utils.cjs +0 -181
- package/dist/components/table/tanstackTable.utils.d.ts +0 -29
- package/dist/components/table/tanstackTable.utils.js +0 -174
- package/dist/components/tabs/Tabs.cjs +0 -187
- package/dist/components/tabs/Tabs.d.ts +0 -52
- package/dist/components/tabs/Tabs.js +0 -181
- package/dist/components/tabs/Tabs.module.css +0 -263
- package/dist/components/theme-button/ThemeButton.cjs +0 -75
- package/dist/components/theme-button/ThemeButton.d.ts +0 -8
- package/dist/components/theme-button/ThemeButton.js +0 -72
- package/dist/components/toast/Toast.cjs +0 -68
- package/dist/components/toast/Toast.d.ts +0 -15
- package/dist/components/toast/Toast.js +0 -62
- package/dist/components/toast/Toast.module.css +0 -165
- package/dist/components/toast/provider/ToastProvider.cjs +0 -105
- package/dist/components/toast/provider/ToastProvider.d.ts +0 -24
- package/dist/components/toast/provider/ToastProvider.js +0 -97
- package/dist/components/user-display/UserDisplay.cjs +0 -22
- package/dist/components/user-display/UserDisplay.d.ts +0 -10
- package/dist/components/user-display/UserDisplay.js +0 -16
- package/dist/components/user-display/UserDisplay.module.css +0 -25
- package/dist/constants/chart-colors.cjs +0 -10
- package/dist/constants/chart-colors.d.ts +0 -2
- package/dist/constants/chart-colors.js +0 -8
- package/dist/constants/chart-colors.types.cjs +0 -2
- package/dist/constants/chart-colors.types.d.ts +0 -3
- package/dist/constants/chart-colors.types.js +0 -1
- package/dist/constants/severity.cjs +0 -33
- package/dist/constants/severity.d.ts +0 -4
- package/dist/constants/severity.js +0 -29
- package/dist/constants/severity.types.cjs +0 -2
- package/dist/constants/severity.types.d.ts +0 -1
- package/dist/constants/severity.types.js +0 -1
- package/dist/constants/sizes.cjs +0 -11
- package/dist/constants/sizes.d.ts +0 -2
- package/dist/constants/sizes.js +0 -9
- package/dist/hooks/useDeviceSize.cjs +0 -33
- package/dist/hooks/useDeviceSize.d.ts +0 -2
- package/dist/hooks/useDeviceSize.js +0 -31
- package/dist/hooks/useListNavigation.cjs +0 -237
- package/dist/hooks/useListNavigation.d.ts +0 -24
- package/dist/hooks/useListNavigation.js +0 -235
- package/dist/hooks/usePagination.cjs +0 -144
- package/dist/hooks/usePagination.d.ts +0 -38
- package/dist/hooks/usePagination.js +0 -142
- package/dist/hooks/usePersistentState.cjs +0 -60
- package/dist/hooks/usePersistentState.d.ts +0 -33
- package/dist/hooks/usePersistentState.js +0 -58
- package/dist/hooks/useSorting.cjs +0 -120
- package/dist/hooks/useSorting.d.ts +0 -50
- package/dist/hooks/useSorting.js +0 -117
- package/dist/hooks/useTableData.cjs +0 -75
- package/dist/hooks/useTableData.d.ts +0 -42
- package/dist/hooks/useTableData.js +0 -73
- package/dist/hooks/useTableSelection.cjs +0 -172
- package/dist/hooks/useTableSelection.d.ts +0 -27
- package/dist/hooks/useTableSelection.js +0 -170
- package/dist/hooks/useTableSettings.cjs +0 -90
- package/dist/hooks/useTableSettings.d.ts +0 -26
- package/dist/hooks/useTableSettings.js +0 -87
- package/dist/hooks/useTheme.cjs +0 -64
- package/dist/hooks/useTheme.d.ts +0 -7
- package/dist/hooks/useTheme.js +0 -62
- package/dist/hooks/useTimeDuration.cjs +0 -75
- package/dist/hooks/useTimeDuration.d.ts +0 -26
- package/dist/hooks/useTimeDuration.js +0 -73
- package/dist/hooks/useViewportFill.cjs +0 -82
- package/dist/hooks/useViewportFill.d.ts +0 -13
- package/dist/hooks/useViewportFill.js +0 -80
- package/dist/index.cjs +0 -292
- package/dist/index.css +0 -75
- package/dist/index.d.ts +0 -42
- package/dist/index.js +0 -41
- package/dist/styles/animation.cjs +0 -9
- package/dist/styles/animation.d.ts +0 -5
- package/dist/styles/animation.js +0 -7
- package/dist/styles/css-helper-classes/flex.css +0 -113
- package/dist/styles/css-helper-classes/spacing.css +0 -312
- package/dist/styles/css-helper-classes/typography.css +0 -11
- package/dist/styles/fonts/Roboto/OFL.txt +0 -93
- package/dist/styles/fonts/Roboto/README.txt +0 -118
- package/dist/styles/fonts/Roboto/Roboto-Black.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Bold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ExtraBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ExtraBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ExtraLight.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ExtraLightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Light.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-SemiBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-SemiBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Thin.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Black.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-BlackItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Bold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-BoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ExtraBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ExtraBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ExtraLight.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ExtraLightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Italic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Light.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-LightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Medium.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-MediumItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Regular.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-SemiBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-SemiBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Thin.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ThinItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Black.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-BlackItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Bold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-BoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ExtraBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ExtraBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ExtraLight.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ExtraLightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Italic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Light.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-LightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Medium.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-MediumItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Regular.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-SemiBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-SemiBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Thin.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ThinItalic.ttf +0 -0
- package/dist/styles/fonts/Tajawal/OFL.txt +0 -93
- package/dist/styles/fonts/Tajawal/Tajawal-Black.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-Bold.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-ExtraBold.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-ExtraLight.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-Light.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-Medium.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-Regular.ttf +0 -0
- package/dist/styles/styles.css +0 -377
- package/dist/styles/themes/dbc/base.css +0 -141
- package/dist/styles/themes/dbc/colors.css +0 -320
- package/dist/styles/themes/filmstriben-budget/theme.css +0 -22
- package/dist/styles/themes/types.cjs +0 -2
- package/dist/styles/themes/types.d.ts +0 -16
- package/dist/styles/themes/types.js +0 -1
- package/dist/styles.css +0 -377
- package/dist/tanstack.cjs +0 -26
- package/dist/tanstack.d.ts +0 -3
- package/dist/tanstack.js +0 -3
- package/dist/themes/dbc.css +0 -3
- package/dist/themes/filmstriben-budget.css +0 -3
- package/dist/types/a11y-props.types.cjs +0 -2
- package/dist/types/a11y-props.types.d.ts +0 -8
- package/dist/types/a11y-props.types.js +0 -1
- package/dist/types/assets.d.cjs +0 -2
- package/dist/types/assets.d.js +0 -1
- package/dist/types/css.d.cjs +0 -2
- package/dist/types/css.d.js +0 -1
- package/dist/types/sizes.types.cjs +0 -2
- package/dist/types/sizes.types.d.ts +0 -2
- package/dist/types/sizes.types.js +0 -1
- package/dist/utils/arrays/nested-filtering.cjs +0 -40
- package/dist/utils/arrays/nested-filtering.d.ts +0 -9
- package/dist/utils/arrays/nested-filtering.js +0 -38
- package/dist/utils/cookie.utils.cjs +0 -44
- package/dist/utils/cookie.utils.d.ts +0 -19
- package/dist/utils/cookie.utils.js +0 -40
- package/dist/utils/date/formatDate.cjs +0 -49
- package/dist/utils/date/formatDate.d.ts +0 -28
- package/dist/utils/date/formatDate.js +0 -47
- package/dist/utils/localStorage.utils.cjs +0 -53
- package/dist/utils/localStorage.utils.d.ts +0 -19
- package/dist/utils/localStorage.utils.js +0 -49
- package/dist/utils/text/get-highlighted-segments.cjs +0 -49
- package/dist/utils/text/get-highlighted-segments.d.ts +0 -5
- package/dist/utils/text/get-highlighted-segments.js +0 -47
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
.wrapper {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: var(--spacing-xs);
|
|
5
|
-
flex-direction: row; /* keep on one line */
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.fullWidth {
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* Heights aligned with other controls */
|
|
13
|
-
.xs {
|
|
14
|
-
min-height: var(--component-size-xs);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.sm {
|
|
18
|
-
min-height: var(--component-size-sm);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.md {
|
|
22
|
-
min-height: var(--component-size-md);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.lg {
|
|
26
|
-
min-height: var(--component-size-lg);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Subtle container (lightweight) */
|
|
30
|
-
.contained {
|
|
31
|
-
padding: 0 var(--spacing-xs);
|
|
32
|
-
border: var(--border-width-thin) solid var(--color-border-subtle);
|
|
33
|
-
border-radius: var(--border-radius-default);
|
|
34
|
-
background: var(--color-bg-surface);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.plain {
|
|
38
|
-
padding: 0;
|
|
39
|
-
border: 0;
|
|
40
|
-
background: transparent;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.groupLabel {
|
|
44
|
-
font-weight: var(--font-weight-medium);
|
|
45
|
-
color: var(--color-fg-muted);
|
|
46
|
-
white-space: nowrap;
|
|
47
|
-
font-size: var(--font-size-sm);
|
|
48
|
-
line-height: var(--line-height-tight);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.items {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
gap: var(--spacing-xs);
|
|
55
|
-
flex: 1 1 auto;
|
|
56
|
-
min-width: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.wrap {
|
|
60
|
-
flex-wrap: wrap;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.noWrap {
|
|
64
|
-
flex-wrap: nowrap;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* Right action */
|
|
68
|
-
.actionButton {
|
|
69
|
-
appearance: none;
|
|
70
|
-
border: none;
|
|
71
|
-
background: transparent;
|
|
72
|
-
padding: 0;
|
|
73
|
-
margin-left: auto;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
|
|
76
|
-
display: inline-flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
|
|
79
|
-
height: 100%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.actionButton:disabled {
|
|
83
|
-
cursor: not-allowed;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.actionText {
|
|
87
|
-
display: inline-block;
|
|
88
|
-
font-size: var(--font-size-sm);
|
|
89
|
-
line-height: var(--line-height-tight);
|
|
90
|
-
font-weight: var(--font-weight-medium);
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
text-align: right;
|
|
93
|
-
|
|
94
|
-
min-width: var(--checkboxgroup-action-min-width, 4ch);
|
|
95
|
-
color: var(--color-link);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.actionText[data-mode='all'] {
|
|
99
|
-
color: var(--color-link);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.actionText[data-mode='clear'] {
|
|
103
|
-
color: var(--color-link);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.actionButton:not(:disabled):hover .actionText {
|
|
107
|
-
color: var(--color-link-hover);
|
|
108
|
-
text-decoration: underline;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.actionButton:focus-visible {
|
|
112
|
-
outline: 2px solid var(--color-border-strong);
|
|
113
|
-
outline-offset: 3px;
|
|
114
|
-
border-radius: var(--border-radius-rounded);
|
|
115
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
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 styles = require('./FileUpload.module.css');
|
|
8
|
-
var InputContainer = require('../input-container/InputContainer');
|
|
9
|
-
|
|
10
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
13
|
-
|
|
14
|
-
const FileUpload = react.forwardRef(function FileUpload2({
|
|
15
|
-
label,
|
|
16
|
-
labelAction,
|
|
17
|
-
error,
|
|
18
|
-
helpText,
|
|
19
|
-
helpTextAddition,
|
|
20
|
-
orientation = "vertical",
|
|
21
|
-
labelWidth,
|
|
22
|
-
fullWidth = false,
|
|
23
|
-
required,
|
|
24
|
-
modified,
|
|
25
|
-
onChange,
|
|
26
|
-
children,
|
|
27
|
-
hint,
|
|
28
|
-
height,
|
|
29
|
-
minWidth,
|
|
30
|
-
width,
|
|
31
|
-
maxWidth,
|
|
32
|
-
id,
|
|
33
|
-
disabled,
|
|
34
|
-
className,
|
|
35
|
-
...inputProps
|
|
36
|
-
}, ref) {
|
|
37
|
-
const reactId = react.useId();
|
|
38
|
-
const inputId = id != null ? id : `file-upload-${reactId}`;
|
|
39
|
-
const inputRef = react.useRef(null);
|
|
40
|
-
const [dragging, setDragging] = react.useState(false);
|
|
41
|
-
react.useImperativeHandle(
|
|
42
|
-
ref,
|
|
43
|
-
() => ({
|
|
44
|
-
clear() {
|
|
45
|
-
if (inputRef.current) inputRef.current.value = "";
|
|
46
|
-
}
|
|
47
|
-
}),
|
|
48
|
-
[]
|
|
49
|
-
);
|
|
50
|
-
function handleDragOver(e) {
|
|
51
|
-
e.preventDefault();
|
|
52
|
-
if (!disabled) setDragging(true);
|
|
53
|
-
}
|
|
54
|
-
function handleDragLeave(e) {
|
|
55
|
-
if (!e.currentTarget.contains(e.relatedTarget)) setDragging(false);
|
|
56
|
-
}
|
|
57
|
-
function handleDrop(e) {
|
|
58
|
-
e.preventDefault();
|
|
59
|
-
setDragging(false);
|
|
60
|
-
if (disabled) return;
|
|
61
|
-
if (inputRef.current) {
|
|
62
|
-
const dt = e.dataTransfer;
|
|
63
|
-
const files = dt.files;
|
|
64
|
-
onChange == null ? void 0 : onChange(files.length > 0 ? files : null);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
68
|
-
InputContainer.InputContainer,
|
|
69
|
-
{
|
|
70
|
-
label,
|
|
71
|
-
labelAction,
|
|
72
|
-
htmlFor: inputId,
|
|
73
|
-
error,
|
|
74
|
-
helpText,
|
|
75
|
-
helpTextAddition,
|
|
76
|
-
orientation,
|
|
77
|
-
labelWidth,
|
|
78
|
-
fullWidth,
|
|
79
|
-
required,
|
|
80
|
-
modified,
|
|
81
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
82
|
-
"label",
|
|
83
|
-
{
|
|
84
|
-
htmlFor: inputId,
|
|
85
|
-
className: [
|
|
86
|
-
styles__default.default.dropzone,
|
|
87
|
-
dragging ? styles__default.default.dragging : "",
|
|
88
|
-
disabled ? styles__default.default.disabled : "",
|
|
89
|
-
error ? styles__default.default.hasError : "",
|
|
90
|
-
fullWidth ? styles__default.default.fullWidth : "",
|
|
91
|
-
className != null ? className : ""
|
|
92
|
-
].filter(Boolean).join(" "),
|
|
93
|
-
style: {
|
|
94
|
-
...height != null ? { height } : void 0,
|
|
95
|
-
...minWidth != null ? { minWidth } : void 0,
|
|
96
|
-
...width != null ? { width } : void 0,
|
|
97
|
-
...maxWidth != null ? { maxWidth } : void 0
|
|
98
|
-
},
|
|
99
|
-
onDragOver: handleDragOver,
|
|
100
|
-
onDragLeave: handleDragLeave,
|
|
101
|
-
onDrop: handleDrop,
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
104
|
-
"input",
|
|
105
|
-
{
|
|
106
|
-
...inputProps,
|
|
107
|
-
ref: inputRef,
|
|
108
|
-
id: inputId,
|
|
109
|
-
type: "file",
|
|
110
|
-
disabled,
|
|
111
|
-
className: styles__default.default.input,
|
|
112
|
-
onChange: (e) => onChange == null ? void 0 : onChange(e.target.files)
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
children != null ? children : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
116
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.UploadCloud, { className: styles__default.default.icon, "aria-hidden": true }),
|
|
117
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles__default.default.hint, children: hint != null ? hint : "Tr\xE6k filer hertil eller klik for at v\xE6lge" })
|
|
118
|
-
] })
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
});
|
|
125
|
-
FileUpload.displayName = "FileUpload";
|
|
126
|
-
|
|
127
|
-
exports.FileUpload = FileUpload;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import type { InputContainerProps } from '../input-container/InputContainer';
|
|
3
|
-
export interface FileUploadProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'width' | 'onChange'>, Omit<InputContainerProps, 'children' | 'htmlFor' | 'size'> {
|
|
4
|
-
onChange?: (files: FileList | null) => void;
|
|
5
|
-
/** Custom content to replace the default icon + text hint */
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/** Hint shown below the icon when no custom children */
|
|
8
|
-
hint?: ReactNode;
|
|
9
|
-
fullWidth?: boolean;
|
|
10
|
-
height?: number | string;
|
|
11
|
-
minWidth?: string | number;
|
|
12
|
-
width?: string | number;
|
|
13
|
-
maxWidth?: string | number;
|
|
14
|
-
}
|
|
15
|
-
export type FileUploadHandle = {
|
|
16
|
-
clear(): void;
|
|
17
|
-
};
|
|
18
|
-
export declare const FileUpload: import("react").ForwardRefExoticComponent<FileUploadProps & import("react").RefAttributes<FileUploadHandle>>;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import { UploadCloud } from 'lucide-react';
|
|
4
|
-
import { forwardRef, useId, useRef, useState, useImperativeHandle } from 'react';
|
|
5
|
-
import styles from './FileUpload.module.css';
|
|
6
|
-
import { InputContainer } from '../input-container/InputContainer';
|
|
7
|
-
|
|
8
|
-
const FileUpload = forwardRef(function FileUpload2({
|
|
9
|
-
label,
|
|
10
|
-
labelAction,
|
|
11
|
-
error,
|
|
12
|
-
helpText,
|
|
13
|
-
helpTextAddition,
|
|
14
|
-
orientation = "vertical",
|
|
15
|
-
labelWidth,
|
|
16
|
-
fullWidth = false,
|
|
17
|
-
required,
|
|
18
|
-
modified,
|
|
19
|
-
onChange,
|
|
20
|
-
children,
|
|
21
|
-
hint,
|
|
22
|
-
height,
|
|
23
|
-
minWidth,
|
|
24
|
-
width,
|
|
25
|
-
maxWidth,
|
|
26
|
-
id,
|
|
27
|
-
disabled,
|
|
28
|
-
className,
|
|
29
|
-
...inputProps
|
|
30
|
-
}, ref) {
|
|
31
|
-
const reactId = useId();
|
|
32
|
-
const inputId = id != null ? id : `file-upload-${reactId}`;
|
|
33
|
-
const inputRef = useRef(null);
|
|
34
|
-
const [dragging, setDragging] = useState(false);
|
|
35
|
-
useImperativeHandle(
|
|
36
|
-
ref,
|
|
37
|
-
() => ({
|
|
38
|
-
clear() {
|
|
39
|
-
if (inputRef.current) inputRef.current.value = "";
|
|
40
|
-
}
|
|
41
|
-
}),
|
|
42
|
-
[]
|
|
43
|
-
);
|
|
44
|
-
function handleDragOver(e) {
|
|
45
|
-
e.preventDefault();
|
|
46
|
-
if (!disabled) setDragging(true);
|
|
47
|
-
}
|
|
48
|
-
function handleDragLeave(e) {
|
|
49
|
-
if (!e.currentTarget.contains(e.relatedTarget)) setDragging(false);
|
|
50
|
-
}
|
|
51
|
-
function handleDrop(e) {
|
|
52
|
-
e.preventDefault();
|
|
53
|
-
setDragging(false);
|
|
54
|
-
if (disabled) return;
|
|
55
|
-
if (inputRef.current) {
|
|
56
|
-
const dt = e.dataTransfer;
|
|
57
|
-
const files = dt.files;
|
|
58
|
-
onChange == null ? void 0 : onChange(files.length > 0 ? files : null);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return /* @__PURE__ */ jsx(
|
|
62
|
-
InputContainer,
|
|
63
|
-
{
|
|
64
|
-
label,
|
|
65
|
-
labelAction,
|
|
66
|
-
htmlFor: inputId,
|
|
67
|
-
error,
|
|
68
|
-
helpText,
|
|
69
|
-
helpTextAddition,
|
|
70
|
-
orientation,
|
|
71
|
-
labelWidth,
|
|
72
|
-
fullWidth,
|
|
73
|
-
required,
|
|
74
|
-
modified,
|
|
75
|
-
children: /* @__PURE__ */ jsxs(
|
|
76
|
-
"label",
|
|
77
|
-
{
|
|
78
|
-
htmlFor: inputId,
|
|
79
|
-
className: [
|
|
80
|
-
styles.dropzone,
|
|
81
|
-
dragging ? styles.dragging : "",
|
|
82
|
-
disabled ? styles.disabled : "",
|
|
83
|
-
error ? styles.hasError : "",
|
|
84
|
-
fullWidth ? styles.fullWidth : "",
|
|
85
|
-
className != null ? className : ""
|
|
86
|
-
].filter(Boolean).join(" "),
|
|
87
|
-
style: {
|
|
88
|
-
...height != null ? { height } : void 0,
|
|
89
|
-
...minWidth != null ? { minWidth } : void 0,
|
|
90
|
-
...width != null ? { width } : void 0,
|
|
91
|
-
...maxWidth != null ? { maxWidth } : void 0
|
|
92
|
-
},
|
|
93
|
-
onDragOver: handleDragOver,
|
|
94
|
-
onDragLeave: handleDragLeave,
|
|
95
|
-
onDrop: handleDrop,
|
|
96
|
-
children: [
|
|
97
|
-
/* @__PURE__ */ jsx(
|
|
98
|
-
"input",
|
|
99
|
-
{
|
|
100
|
-
...inputProps,
|
|
101
|
-
ref: inputRef,
|
|
102
|
-
id: inputId,
|
|
103
|
-
type: "file",
|
|
104
|
-
disabled,
|
|
105
|
-
className: styles.input,
|
|
106
|
-
onChange: (e) => onChange == null ? void 0 : onChange(e.target.files)
|
|
107
|
-
}
|
|
108
|
-
),
|
|
109
|
-
children != null ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
110
|
-
/* @__PURE__ */ jsx(UploadCloud, { className: styles.icon, "aria-hidden": true }),
|
|
111
|
-
/* @__PURE__ */ jsx("span", { className: styles.hint, children: hint != null ? hint : "Tr\xE6k filer hertil eller klik for at v\xE6lge" })
|
|
112
|
-
] })
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
)
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
});
|
|
119
|
-
FileUpload.displayName = "FileUpload";
|
|
120
|
-
|
|
121
|
-
export { FileUpload };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
.dropzone {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
gap: var(--spacing-xs);
|
|
7
|
-
padding: var(--spacing-xl) var(--spacing-lg);
|
|
8
|
-
background: var(--color-bg-surface);
|
|
9
|
-
border: var(--border-width-thin) dashed var(--color-border-default);
|
|
10
|
-
border-radius: var(--border-radius-default);
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
color: var(--color-fg-muted);
|
|
13
|
-
font-family: var(--font-family);
|
|
14
|
-
font-size: var(--font-size-sm);
|
|
15
|
-
text-align: center;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
transition:
|
|
18
|
-
background-color var(--transition-fast) var(--ease-standard),
|
|
19
|
-
border-color var(--transition-fast) var(--ease-standard),
|
|
20
|
-
color var(--transition-fast) var(--ease-standard);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.fullWidth {
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.dropzone:hover:not(.disabled) {
|
|
28
|
-
background-color: var(--color-bg-selected);
|
|
29
|
-
border-color: var(--color-border-selected);
|
|
30
|
-
color: var(--color-fg-default);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.dragging {
|
|
34
|
-
background-color: var(--color-bg-selected);
|
|
35
|
-
border-color: var(--color-border-selected);
|
|
36
|
-
color: var(--color-fg-default);
|
|
37
|
-
box-shadow: inset 0 0 0 1px var(--color-border-selected);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.hasError {
|
|
41
|
-
border-color: var(--color-status-error);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.hasError:hover:not(.disabled) {
|
|
45
|
-
border-color: var(--color-status-error);
|
|
46
|
-
background-color: var(--color-status-error-bg);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.disabled {
|
|
50
|
-
background-color: var(--color-disabled-bg);
|
|
51
|
-
border-color: var(--color-disabled-border);
|
|
52
|
-
color: var(--color-disabled-fg);
|
|
53
|
-
cursor: not-allowed;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.input {
|
|
57
|
-
position: absolute;
|
|
58
|
-
width: 1px;
|
|
59
|
-
height: 1px;
|
|
60
|
-
opacity: 0;
|
|
61
|
-
overflow: hidden;
|
|
62
|
-
clip: rect(0 0 0 0);
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.icon {
|
|
67
|
-
width: var(--icon-size-lg);
|
|
68
|
-
height: var(--icon-size-lg);
|
|
69
|
-
stroke-width: 1.5;
|
|
70
|
-
flex-shrink: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.hint {
|
|
74
|
-
line-height: var(--line-height-normal);
|
|
75
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
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 useTooltipTrigger = require('../../../components/overlay/tooltip/useTooltipTrigger');
|
|
8
|
-
var styles = require('./FormSelect.module.css');
|
|
9
|
-
var InputContainer = require('../input-container/InputContainer');
|
|
10
|
-
|
|
11
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
function _interopNamespace(e) {
|
|
14
|
-
if (e && e.__esModule) return e;
|
|
15
|
-
var n = Object.create(null);
|
|
16
|
-
if (e) {
|
|
17
|
-
Object.keys(e).forEach(function (k) {
|
|
18
|
-
if (k !== 'default') {
|
|
19
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return e[k]; }
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
n.default = e;
|
|
28
|
-
return Object.freeze(n);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
32
|
-
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
33
|
-
|
|
34
|
-
function isEqualValue(a, b, datakey) {
|
|
35
|
-
if (a === b) return true;
|
|
36
|
-
if (!a || !b) return false;
|
|
37
|
-
if (typeof a === "object" && typeof b === "object" && datakey) {
|
|
38
|
-
return a[datakey] === b[datakey];
|
|
39
|
-
}
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
function serializeValue(value, datakey) {
|
|
43
|
-
if (typeof value === "string" || typeof value === "number") return String(value);
|
|
44
|
-
if (datakey && value && typeof value === "object") {
|
|
45
|
-
const v = value[datakey];
|
|
46
|
-
return v == null ? "" : String(v);
|
|
47
|
-
}
|
|
48
|
-
throw new Error(
|
|
49
|
-
"FormSelect: option value is an object but no `datakey` was provided. Native select requires string/number values."
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
function findSelectedOption(options, selectedValue, datakey) {
|
|
53
|
-
return options.find((o) => isEqualValue(o.value, selectedValue, datakey));
|
|
54
|
-
}
|
|
55
|
-
function FormSelect({
|
|
56
|
-
// InputContainer props
|
|
57
|
-
label,
|
|
58
|
-
error,
|
|
59
|
-
helpText,
|
|
60
|
-
orientation = "vertical",
|
|
61
|
-
labelWidth = "160px",
|
|
62
|
-
fullWidth = true,
|
|
63
|
-
required,
|
|
64
|
-
tooltip,
|
|
65
|
-
tooltipPlacement = "right",
|
|
66
|
-
modified = false,
|
|
67
|
-
// FormSelect props
|
|
68
|
-
id,
|
|
69
|
-
name,
|
|
70
|
-
options,
|
|
71
|
-
selectedValue,
|
|
72
|
-
onChange,
|
|
73
|
-
placeholder = "V\xE6lg",
|
|
74
|
-
size = "md",
|
|
75
|
-
variant = "outlined",
|
|
76
|
-
onClear,
|
|
77
|
-
datakey,
|
|
78
|
-
dataCy,
|
|
79
|
-
disabled,
|
|
80
|
-
includePlaceholderOption = true,
|
|
81
|
-
allowClearWhenRequired = false
|
|
82
|
-
}) {
|
|
83
|
-
const generatedId = React__namespace.useId();
|
|
84
|
-
const controlId = id != null ? id : `select-${generatedId}`;
|
|
85
|
-
const describedById = `${controlId}-desc`;
|
|
86
|
-
const selected = React__namespace.useMemo(
|
|
87
|
-
() => findSelectedOption(options, selectedValue, datakey),
|
|
88
|
-
[options, selectedValue, datakey]
|
|
89
|
-
);
|
|
90
|
-
const tooltipEnabled = Boolean(tooltip);
|
|
91
|
-
const { triggerProps, id: tooltipId } = useTooltipTrigger.useTooltipTrigger({
|
|
92
|
-
content: tooltipEnabled ? tooltip : null,
|
|
93
|
-
placement: tooltipPlacement,
|
|
94
|
-
offset: 8
|
|
95
|
-
});
|
|
96
|
-
const describedBy = (() => {
|
|
97
|
-
const ids = [];
|
|
98
|
-
if (error || helpText) ids.push(describedById);
|
|
99
|
-
if (tooltipEnabled) ids.push(tooltipId);
|
|
100
|
-
return ids.length ? ids.join(" ") : void 0;
|
|
101
|
-
})();
|
|
102
|
-
const nativeValue = React__namespace.useMemo(() => {
|
|
103
|
-
if (selected && selected.value != null) return serializeValue(selected.value, datakey);
|
|
104
|
-
return "";
|
|
105
|
-
}, [selected, datakey]);
|
|
106
|
-
const canClear = Boolean(onClear) && !disabled && (allowClearWhenRequired || !required);
|
|
107
|
-
const showClear = canClear && Boolean(selected);
|
|
108
|
-
const placeholderDisabled = Boolean(required) && !allowClearWhenRequired;
|
|
109
|
-
const handleNativeChange = (e) => {
|
|
110
|
-
const raw = e.target.value;
|
|
111
|
-
if (raw === "") {
|
|
112
|
-
onClear == null ? void 0 : onClear();
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const opt = options.find((o) => serializeValue(o.value, datakey) === raw);
|
|
116
|
-
if (opt) onChange(opt.value);
|
|
117
|
-
};
|
|
118
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
119
|
-
InputContainer.InputContainer,
|
|
120
|
-
{
|
|
121
|
-
label,
|
|
122
|
-
htmlFor: controlId,
|
|
123
|
-
fullWidth,
|
|
124
|
-
error,
|
|
125
|
-
helpText,
|
|
126
|
-
orientation,
|
|
127
|
-
labelWidth,
|
|
128
|
-
required,
|
|
129
|
-
modified,
|
|
130
|
-
children: [
|
|
131
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
132
|
-
"div",
|
|
133
|
-
{
|
|
134
|
-
className: [
|
|
135
|
-
styles__default.default.container,
|
|
136
|
-
fullWidth ? styles__default.default.fullWidth : "",
|
|
137
|
-
canClear ? styles__default.default.withButton : ""
|
|
138
|
-
].filter(Boolean).join(" "),
|
|
139
|
-
children: [
|
|
140
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.field, children: [
|
|
141
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
142
|
-
"select",
|
|
143
|
-
{
|
|
144
|
-
...tooltipEnabled ? triggerProps : {},
|
|
145
|
-
id: controlId,
|
|
146
|
-
name,
|
|
147
|
-
className: [styles__default.default.input, styles__default.default[size], styles__default.default[variant]].filter(Boolean).join(" "),
|
|
148
|
-
value: nativeValue,
|
|
149
|
-
onChange: handleNativeChange,
|
|
150
|
-
disabled,
|
|
151
|
-
"aria-invalid": Boolean(error) || void 0,
|
|
152
|
-
"aria-describedby": describedBy,
|
|
153
|
-
"data-cy": dataCy != null ? dataCy : "formselect",
|
|
154
|
-
"data-forminput": true,
|
|
155
|
-
children: [
|
|
156
|
-
includePlaceholderOption && /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", disabled: placeholderDisabled, children: placeholder }),
|
|
157
|
-
options.map((opt) => {
|
|
158
|
-
const v = serializeValue(opt.value, datakey);
|
|
159
|
-
return /* @__PURE__ */ jsxRuntime.jsx("option", { value: v, children: opt.label }, v);
|
|
160
|
-
})
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
),
|
|
164
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles__default.default.chevron, "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { size: 20 }) })
|
|
165
|
-
] }),
|
|
166
|
-
canClear && /* @__PURE__ */ jsxRuntime.jsx(
|
|
167
|
-
"button",
|
|
168
|
-
{
|
|
169
|
-
type: "button",
|
|
170
|
-
className: styles__default.default.trailingButton,
|
|
171
|
-
onClick: (e) => {
|
|
172
|
-
e.preventDefault();
|
|
173
|
-
e.stopPropagation();
|
|
174
|
-
onClear == null ? void 0 : onClear();
|
|
175
|
-
},
|
|
176
|
-
"aria-label": "Ryd valg",
|
|
177
|
-
disabled: !showClear,
|
|
178
|
-
"data-cy": dataCy ? `${dataCy}-clear` : "formselect-clear",
|
|
179
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 18, "aria-hidden": "true" })
|
|
180
|
-
}
|
|
181
|
-
)
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
),
|
|
185
|
-
(error || helpText) && /* @__PURE__ */ jsxRuntime.jsx("span", { id: describedById, style: { display: "none" }, children: error != null ? error : helpText })
|
|
186
|
-
]
|
|
187
|
-
}
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
exports.FormSelect = FormSelect;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { InputContainer } from '../input-container/InputContainer';
|
|
3
|
-
import { MultiselectOption } from '../multi-select/MultiSelect';
|
|
4
|
-
type InputContainerProps = React.ComponentProps<typeof InputContainer>;
|
|
5
|
-
export type FormSelectProps<T> = Omit<InputContainerProps, 'children' | 'htmlFor' | 'tooltip' | 'tooltipPlacement'> & {
|
|
6
|
-
id?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
options: MultiselectOption<T>[];
|
|
9
|
-
selectedValue: T | null;
|
|
10
|
-
onChange: (value: T) => void;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
size?: 'sm' | 'md' | 'lg';
|
|
13
|
-
variant?: 'outlined' | 'filled' | 'standalone';
|
|
14
|
-
onClear?: () => void;
|
|
15
|
-
/**
|
|
16
|
-
* Needed if T is an object and you want to use native select.
|
|
17
|
-
* Native <select> requires string values; we serialize using value[datakey].
|
|
18
|
-
*/
|
|
19
|
-
datakey?: string;
|
|
20
|
-
dataCy?: string;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
tooltip?: React.ReactNode;
|
|
23
|
-
tooltipPlacement?: 'top' | 'right' | 'bottom' | 'left';
|
|
24
|
-
includePlaceholderOption?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Default false. If true, we allow clearing even when required=true:
|
|
27
|
-
* - placeholder becomes selectable
|
|
28
|
-
* - clear button is shown
|
|
29
|
-
*
|
|
30
|
-
* This is "odd" UX in many forms, so it's opt-in.
|
|
31
|
-
*/
|
|
32
|
-
allowClearWhenRequired?: boolean;
|
|
33
|
-
};
|
|
34
|
-
export declare function FormSelect<T extends string | number | Record<string, any>>({ label, error, helpText, orientation, labelWidth, fullWidth, required, tooltip, tooltipPlacement, modified, id, name, options, selectedValue, onChange, placeholder, size, variant, onClear, datakey, dataCy, disabled, includePlaceholderOption, allowClearWhenRequired, }: FormSelectProps<T>): React.ReactNode;
|
|
35
|
-
export {};
|