@itwin/itwinui-react 3.0.0-dev.0 → 3.0.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +297 -1
- package/README.md +28 -22
- package/cjs/core/Alert/Alert.d.ts +57 -28
- package/cjs/core/Alert/Alert.js +156 -54
- package/cjs/core/Alert/index.js +9 -4
- package/cjs/core/Avatar/Avatar.d.ts +6 -10
- package/cjs/core/Avatar/Avatar.js +63 -50
- package/cjs/core/Avatar/index.d.ts +1 -1
- package/cjs/core/Avatar/index.js +10 -6
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +1 -6
- package/cjs/core/AvatarGroup/AvatarGroup.js +65 -59
- package/cjs/core/AvatarGroup/index.d.ts +1 -1
- package/cjs/core/AvatarGroup/index.js +10 -6
- package/cjs/core/Backdrop/Backdrop.d.ts +1 -2
- package/cjs/core/Backdrop/Backdrop.js +16 -34
- package/cjs/core/Backdrop/index.js +9 -4
- package/cjs/core/Badge/Badge.d.ts +1 -2
- package/cjs/core/Badge/Badge.js +39 -48
- package/cjs/core/Badge/index.js +9 -4
- package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +16 -25
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +149 -64
- package/cjs/core/Breadcrumbs/index.js +9 -4
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +1 -2
- package/cjs/core/ButtonGroup/ButtonGroup.js +64 -53
- package/cjs/core/ButtonGroup/index.js +9 -4
- package/cjs/core/Buttons/Button/Button.d.ts +16 -4
- package/cjs/core/Buttons/Button/Button.js +57 -37
- package/cjs/core/Buttons/Button/index.js +9 -4
- package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +2 -3
- package/cjs/core/Buttons/DropdownButton/DropdownButton.js +50 -55
- package/cjs/core/Buttons/DropdownButton/index.js +9 -4
- package/cjs/core/Buttons/IconButton/IconButton.d.ts +6 -4
- package/cjs/core/Buttons/IconButton/IconButton.js +50 -42
- package/cjs/core/Buttons/IconButton/index.js +9 -4
- package/cjs/core/Buttons/IdeasButton/IdeasButton.d.ts +1 -1
- package/cjs/core/Buttons/IdeasButton/IdeasButton.js +20 -30
- package/cjs/core/Buttons/IdeasButton/index.js +9 -4
- package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +13 -5
- package/cjs/core/Buttons/SplitButton/SplitButton.js +102 -50
- package/cjs/core/Buttons/SplitButton/index.js +9 -4
- package/cjs/core/Buttons/index.js +43 -13
- package/cjs/core/Carousel/Carousel.d.ts +9 -8
- package/cjs/core/Carousel/Carousel.js +109 -110
- package/cjs/core/Carousel/CarouselContext.js +4 -26
- package/cjs/core/Carousel/CarouselDot.d.ts +1 -1
- package/cjs/core/Carousel/CarouselDot.js +23 -37
- package/cjs/core/Carousel/CarouselDotsList.d.ts +1 -2
- package/cjs/core/Carousel/CarouselDotsList.js +129 -98
- package/cjs/core/Carousel/CarouselNavigation.d.ts +8 -6
- package/cjs/core/Carousel/CarouselNavigation.js +97 -68
- package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlide.js +39 -46
- package/cjs/core/Carousel/CarouselSlider.js +66 -76
- package/cjs/core/Carousel/index.js +9 -4
- package/cjs/core/Checkbox/Checkbox.d.ts +9 -6
- package/cjs/core/Checkbox/Checkbox.js +88 -61
- package/cjs/core/Checkbox/index.js +9 -4
- package/cjs/core/ColorPicker/ColorBuilder.d.ts +0 -1
- package/cjs/core/ColorPicker/ColorBuilder.js +290 -202
- package/cjs/core/ColorPicker/ColorInputPanel.d.ts +1 -2
- package/cjs/core/ColorPicker/ColorInputPanel.js +393 -285
- package/cjs/core/ColorPicker/ColorPalette.d.ts +1 -2
- package/cjs/core/ColorPicker/ColorPalette.js +124 -116
- package/cjs/core/ColorPicker/ColorPicker.d.ts +10 -7
- package/cjs/core/ColorPicker/ColorPicker.js +85 -86
- package/cjs/core/ColorPicker/ColorPickerContext.js +11 -31
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -2
- package/cjs/core/ColorPicker/ColorSwatch.js +30 -40
- package/cjs/core/ColorPicker/index.js +43 -13
- package/cjs/core/ComboBox/ComboBox.d.ts +13 -9
- package/cjs/core/ComboBox/ComboBox.js +403 -302
- package/cjs/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +27 -43
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +2 -2
- package/cjs/core/ComboBox/ComboBoxInput.js +208 -151
- package/cjs/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +35 -34
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +2 -2
- package/cjs/core/ComboBox/ComboBoxMenu.js +89 -77
- package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
- package/cjs/core/ComboBox/ComboBoxMenuItem.js +73 -42
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.js +13 -32
- package/cjs/core/ComboBox/helpers.d.ts +7 -5
- package/cjs/core/ComboBox/helpers.js +47 -66
- package/cjs/core/ComboBox/index.js +9 -4
- package/cjs/core/DatePicker/DatePicker.d.ts +41 -11
- package/cjs/core/DatePicker/DatePicker.js +567 -358
- package/cjs/core/DatePicker/index.js +15 -5
- package/cjs/core/Dialog/Dialog.d.ts +1 -2
- package/cjs/core/Dialog/Dialog.js +65 -61
- package/cjs/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/cjs/core/Dialog/DialogBackdrop.js +47 -52
- package/cjs/core/Dialog/DialogButtonBar.d.ts +0 -1
- package/cjs/core/Dialog/DialogButtonBar.js +3 -4
- package/cjs/core/Dialog/DialogContent.d.ts +2 -2
- package/cjs/core/Dialog/DialogContent.js +28 -5
- package/cjs/core/Dialog/DialogContext.d.ts +15 -1
- package/cjs/core/Dialog/DialogContext.js +5 -27
- package/cjs/core/Dialog/DialogDragContext.d.ts +1 -1
- package/cjs/core/Dialog/DialogDragContext.js +8 -30
- package/cjs/core/Dialog/DialogMain.d.ts +1 -2
- package/cjs/core/Dialog/DialogMain.js +183 -149
- package/cjs/core/Dialog/DialogTitleBar.d.ts +1 -2
- package/cjs/core/Dialog/DialogTitleBar.js +67 -46
- package/cjs/core/Dialog/DialogTitleBarTitle.d.ts +0 -1
- package/cjs/core/Dialog/DialogTitleBarTitle.js +3 -4
- package/cjs/core/Dialog/index.js +9 -4
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +8 -7
- package/cjs/core/DropdownMenu/DropdownMenu.js +82 -58
- package/cjs/core/DropdownMenu/index.js +9 -4
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +88 -22
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +254 -74
- package/cjs/core/ExpandableBlock/index.js +9 -4
- package/cjs/core/Fieldset/Fieldset.d.ts +1 -2
- package/cjs/core/Fieldset/Fieldset.js +25 -40
- package/cjs/core/Fieldset/index.js +9 -4
- package/cjs/core/FileUpload/FileEmptyCard.js +43 -42
- package/cjs/core/FileUpload/FileUpload.d.ts +8 -6
- package/cjs/core/FileUpload/FileUpload.js +90 -73
- package/cjs/core/FileUpload/FileUploadCard.d.ts +1 -2
- package/cjs/core/FileUpload/FileUploadCard.js +168 -110
- package/cjs/core/FileUpload/FileUploadTemplate.d.ts +2 -2
- package/cjs/core/FileUpload/FileUploadTemplate.js +52 -42
- package/cjs/core/FileUpload/index.js +35 -11
- package/cjs/core/Footer/Footer.d.ts +4 -5
- package/cjs/core/Footer/Footer.js +103 -90
- package/cjs/core/Footer/FooterItem.d.ts +0 -1
- package/cjs/core/Footer/FooterItem.js +3 -4
- package/cjs/core/Footer/FooterList.d.ts +0 -1
- package/cjs/core/Footer/FooterList.js +3 -4
- package/cjs/core/Footer/FooterSeparator.d.ts +0 -1
- package/cjs/core/Footer/FooterSeparator.js +8 -6
- package/cjs/core/Footer/index.js +15 -5
- package/cjs/core/Header/Header.d.ts +3 -23
- package/cjs/core/Header/Header.js +67 -49
- package/cjs/core/Header/HeaderBasicButton.js +24 -38
- package/cjs/core/Header/HeaderBreadcrumbs.d.ts +1 -2
- package/cjs/core/Header/HeaderBreadcrumbs.js +38 -40
- package/cjs/core/Header/HeaderButton.d.ts +5 -2
- package/cjs/core/Header/HeaderButton.js +76 -44
- package/cjs/core/Header/HeaderDropdownButton.js +48 -45
- package/cjs/core/Header/HeaderLogo.d.ts +1 -2
- package/cjs/core/Header/HeaderLogo.js +42 -37
- package/cjs/core/Header/HeaderSplitButton.js +66 -46
- package/cjs/core/Header/index.js +35 -11
- package/cjs/core/InformationPanel/InformationPanel.d.ts +1 -2
- package/cjs/core/InformationPanel/InformationPanel.js +77 -71
- package/cjs/core/InformationPanel/InformationPanelBody.d.ts +0 -1
- package/cjs/core/InformationPanel/InformationPanelBody.js +6 -5
- package/cjs/core/InformationPanel/InformationPanelContent.d.ts +1 -2
- package/cjs/core/InformationPanel/InformationPanelContent.js +20 -34
- package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +1 -2
- package/cjs/core/InformationPanel/InformationPanelHeader.js +34 -40
- package/cjs/core/InformationPanel/InformationPanelWrapper.d.ts +0 -1
- package/cjs/core/InformationPanel/InformationPanelWrapper.js +6 -5
- package/cjs/core/InformationPanel/index.js +43 -13
- package/cjs/core/Input/Input.d.ts +10 -7
- package/cjs/core/Input/Input.js +18 -41
- package/cjs/core/Input/index.js +9 -4
- package/cjs/core/InputGrid/InputGrid.d.ts +25 -0
- package/cjs/core/InputGrid/InputGrid.js +39 -0
- package/cjs/core/InputGrid/index.d.ts +3 -0
- package/cjs/core/{ProgressIndicators/ProgressLinear → InputGrid}/index.js +11 -6
- package/cjs/core/InputGroup/InputGroup.d.ts +14 -2
- package/cjs/core/InputGroup/InputGroup.js +72 -42
- package/cjs/core/InputGroup/index.js +9 -4
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +39 -0
- package/cjs/core/InputWithDecorations/InputWithDecorations.js +81 -0
- package/cjs/core/InputWithDecorations/index.d.ts +3 -0
- package/cjs/core/InputWithDecorations/index.js +15 -0
- package/cjs/core/Label/Label.d.ts +6 -2
- package/cjs/core/Label/Label.js +32 -37
- package/cjs/core/Label/index.js +9 -4
- package/cjs/core/LabeledInput/LabeledInput.d.ts +23 -18
- package/cjs/core/LabeledInput/LabeledInput.js +72 -34
- package/cjs/core/LabeledInput/index.js +9 -4
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +18 -9
- package/cjs/core/LabeledSelect/LabeledSelect.js +75 -45
- package/cjs/core/LabeledSelect/index.js +9 -4
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +16 -8
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +17 -35
- package/cjs/core/LabeledTextarea/index.js +9 -4
- package/cjs/core/List/List.d.ts +0 -1
- package/cjs/core/List/List.js +3 -4
- package/cjs/core/List/ListItem.d.ts +4 -5
- package/cjs/core/List/ListItem.js +55 -61
- package/cjs/core/List/index.js +16 -6
- package/cjs/core/Menu/Menu.d.ts +2 -3
- package/cjs/core/Menu/Menu.js +66 -80
- package/cjs/core/Menu/MenuDivider.d.ts +2 -2
- package/cjs/core/Menu/MenuDivider.js +5 -6
- package/cjs/core/Menu/MenuExtraContent.d.ts +0 -1
- package/cjs/core/Menu/MenuExtraContent.js +4 -5
- package/cjs/core/Menu/MenuItem.d.ts +2 -3
- package/cjs/core/Menu/MenuItem.js +168 -92
- package/cjs/core/Menu/MenuItemSkeleton.d.ts +2 -3
- package/cjs/core/Menu/MenuItemSkeleton.js +53 -44
- package/cjs/core/Menu/index.js +43 -13
- package/cjs/core/Modal/Modal.d.ts +9 -11
- package/cjs/core/Modal/Modal.js +38 -44
- package/cjs/core/Modal/ModalButtonBar.js +7 -4
- package/cjs/core/Modal/ModalContent.js +3 -3
- package/cjs/core/Modal/index.js +23 -8
- package/cjs/core/NonIdealState/ErrorPage.d.ts +6 -7
- package/cjs/core/NonIdealState/ErrorPage.js +187 -146
- package/cjs/core/NonIdealState/NonIdealState.d.ts +17 -2
- package/cjs/core/NonIdealState/NonIdealState.js +77 -38
- package/cjs/core/NonIdealState/index.js +16 -6
- package/cjs/core/NotificationMarker/NotificationMarker.d.ts +1 -2
- package/cjs/core/NotificationMarker/NotificationMarker.js +29 -34
- package/cjs/core/NotificationMarker/index.js +9 -4
- package/cjs/core/Overlay/Overlay.d.ts +57 -0
- package/cjs/core/Overlay/Overlay.js +96 -0
- package/cjs/core/Overlay/index.d.ts +1 -0
- package/cjs/core/{ProgressIndicators/ProgressRadial → Overlay}/index.js +10 -6
- package/{esm/core/ProgressIndicators/ProgressLinear → cjs/core/ProgressIndicators}/ProgressLinear.d.ts +10 -7
- package/cjs/core/ProgressIndicators/ProgressLinear.js +72 -0
- package/cjs/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -5
- package/cjs/core/ProgressIndicators/ProgressRadial.js +74 -0
- package/cjs/core/ProgressIndicators/index.d.ts +2 -2
- package/cjs/core/ProgressIndicators/index.js +16 -6
- package/cjs/core/Radio/Radio.d.ts +7 -5
- package/cjs/core/Radio/Radio.js +54 -43
- package/cjs/core/Radio/index.js +9 -4
- package/cjs/core/RadioTiles/RadioTile.d.ts +15 -5
- package/cjs/core/RadioTiles/RadioTile.js +80 -46
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -2
- package/cjs/core/RadioTiles/RadioTileGroup.js +16 -32
- package/cjs/core/RadioTiles/index.js +16 -6
- package/cjs/core/SearchBox/SearchBox.d.ts +3 -4
- package/cjs/core/SearchBox/SearchBox.js +220 -129
- package/cjs/core/SearchBox/index.js +9 -4
- package/cjs/core/Select/Select.d.ts +12 -14
- package/cjs/core/Select/Select.js +272 -186
- package/cjs/core/Select/SelectTag.d.ts +1 -2
- package/cjs/core/Select/SelectTag.js +21 -35
- package/cjs/core/Select/SelectTagContainer.d.ts +1 -1
- package/cjs/core/Select/SelectTagContainer.js +30 -39
- package/cjs/core/Select/index.js +9 -4
- package/cjs/core/SideNavigation/SideNavigation.d.ts +17 -2
- package/cjs/core/SideNavigation/SideNavigation.js +138 -55
- package/cjs/core/SideNavigation/SidenavButton.d.ts +1 -2
- package/cjs/core/SideNavigation/SidenavButton.js +30 -34
- package/cjs/core/SideNavigation/SidenavSubmenu.d.ts +0 -1
- package/cjs/core/SideNavigation/SidenavSubmenu.js +23 -35
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -2
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +29 -36
- package/cjs/core/SideNavigation/index.js +35 -11
- package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +1 -2
- package/cjs/core/SkipToContentLink/SkipToContentLink.js +20 -34
- package/cjs/core/SkipToContentLink/index.js +9 -4
- package/cjs/core/Slider/Slider.d.ts +29 -10
- package/cjs/core/Slider/Slider.js +391 -231
- package/cjs/core/Slider/Thumb.d.ts +4 -4
- package/cjs/core/Slider/Thumb.js +112 -84
- package/cjs/core/Slider/Track.d.ts +4 -4
- package/cjs/core/Slider/Track.js +83 -75
- package/cjs/core/Slider/index.js +9 -4
- package/cjs/core/StatusMessage/StatusMessage.d.ts +13 -3
- package/cjs/core/StatusMessage/StatusMessage.js +36 -35
- package/cjs/core/StatusMessage/index.js +9 -4
- package/cjs/core/Stepper/Stepper.d.ts +29 -5
- package/cjs/core/Stepper/Stepper.js +80 -37
- package/cjs/core/Stepper/StepperStep.d.ts +18 -1
- package/cjs/core/Stepper/StepperStep.js +109 -63
- package/cjs/core/Stepper/WorkflowDiagram.d.ts +11 -2
- package/cjs/core/Stepper/WorkflowDiagram.js +39 -35
- package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +8 -3
- package/cjs/core/Stepper/WorkflowDiagramStep.js +39 -36
- package/cjs/core/Stepper/index.d.ts +0 -4
- package/cjs/core/Stepper/index.js +17 -10
- package/cjs/core/Surface/Surface.d.ts +2 -3
- package/cjs/core/Surface/Surface.js +78 -71
- package/cjs/core/Surface/index.js +9 -4
- package/cjs/core/Table/SubRowExpander.d.ts +2 -2
- package/cjs/core/Table/SubRowExpander.js +37 -37
- package/cjs/core/Table/Table.d.ts +18 -3
- package/cjs/core/Table/Table.js +764 -454
- package/cjs/core/Table/TableCell.d.ts +2 -2
- package/cjs/core/Table/TableCell.js +113 -87
- package/cjs/core/Table/TablePaginator.d.ts +3 -4
- package/cjs/core/Table/TablePaginator.js +310 -161
- package/cjs/core/Table/TableRowMemoized.d.ts +4 -4
- package/cjs/core/Table/TableRowMemoized.js +156 -115
- package/cjs/core/Table/actionHandlers/expandHandler.js +12 -12
- package/cjs/core/Table/actionHandlers/filterHandler.js +25 -18
- package/cjs/core/Table/actionHandlers/index.js +56 -14
- package/cjs/core/Table/actionHandlers/resizeHandler.js +13 -13
- package/cjs/core/Table/actionHandlers/selectHandler.js +123 -96
- package/cjs/core/Table/cells/DefaultCell.d.ts +2 -2
- package/cjs/core/Table/cells/DefaultCell.js +48 -37
- package/cjs/core/Table/cells/EditableCell.d.ts +2 -2
- package/cjs/core/Table/cells/EditableCell.js +75 -74
- package/cjs/core/Table/cells/index.js +16 -6
- package/cjs/core/Table/columns/actionColumn.d.ts +3 -3
- package/cjs/core/Table/columns/actionColumn.js +97 -99
- package/cjs/core/Table/columns/expanderColumn.d.ts +2 -2
- package/cjs/core/Table/columns/expanderColumn.js +45 -54
- package/cjs/core/Table/columns/index.js +41 -11
- package/cjs/core/Table/columns/selectionColumn.d.ts +4 -4
- package/cjs/core/Table/columns/selectionColumn.js +57 -51
- package/cjs/core/Table/filters/BaseFilter.d.ts +2 -3
- package/cjs/core/Table/filters/BaseFilter.js +24 -39
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +9 -3
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +118 -75
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +6 -5
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +120 -81
- package/cjs/core/Table/filters/FilterButtonBar.d.ts +3 -4
- package/cjs/core/Table/filters/FilterButtonBar.js +39 -42
- package/cjs/core/Table/filters/FilterToggle.d.ts +3 -4
- package/cjs/core/Table/filters/FilterToggle.js +61 -52
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -5
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +58 -54
- package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +3 -4
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +40 -46
- package/cjs/core/Table/filters/customFilterFunctions.js +16 -14
- package/cjs/core/Table/filters/defaultFilterFunctions.js +86 -81
- package/cjs/core/Table/filters/index.js +35 -11
- package/cjs/core/Table/filters/tableFilters.d.ts +5 -5
- package/cjs/core/Table/filters/tableFilters.js +44 -54
- package/cjs/core/Table/filters/types.d.ts +2 -19
- package/cjs/core/Table/filters/types.js +2 -2
- package/cjs/core/Table/hooks/index.js +67 -19
- package/cjs/core/Table/hooks/useColumnDragAndDrop.js +101 -84
- package/cjs/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useExpanderCell.js +33 -47
- package/cjs/core/Table/hooks/useResizeColumns.js +362 -296
- package/cjs/core/Table/hooks/useScrollToRow.d.ts +2 -2
- package/cjs/core/Table/hooks/useScrollToRow.js +46 -61
- package/cjs/core/Table/hooks/useSelectionCell.js +17 -10
- package/cjs/core/Table/hooks/useStickyColumns.js +64 -64
- package/cjs/core/Table/hooks/useSubRowFiltering.js +95 -112
- package/cjs/core/Table/hooks/useSubRowSelection.js +32 -53
- package/cjs/core/Table/index.d.ts +1 -1
- package/cjs/core/Table/index.js +78 -18
- package/cjs/core/Table/utils.js +42 -40
- package/cjs/core/Tabs/Tab.d.ts +2 -3
- package/cjs/core/Tabs/Tab.js +50 -39
- package/cjs/core/Tabs/Tabs.d.ts +6 -43
- package/cjs/core/Tabs/Tabs.js +409 -368
- package/cjs/core/Tabs/index.d.ts +1 -1
- package/cjs/core/Tabs/index.js +17 -9
- package/cjs/core/Tag/Tag.d.ts +1 -2
- package/cjs/core/Tag/Tag.js +42 -41
- package/cjs/core/Tag/TagContainer.d.ts +1 -2
- package/cjs/core/Tag/TagContainer.js +23 -37
- package/cjs/core/Tag/index.js +16 -6
- package/cjs/core/Textarea/Textarea.d.ts +4 -6
- package/cjs/core/Textarea/Textarea.js +13 -43
- package/cjs/core/Textarea/index.js +9 -4
- package/cjs/core/ThemeProvider/ThemeContext.d.ts +1 -1
- package/cjs/core/ThemeProvider/ThemeContext.js +4 -26
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +29 -12
- package/cjs/core/ThemeProvider/ThemeProvider.js +114 -59
- package/cjs/core/ThemeProvider/index.js +9 -4
- package/cjs/core/Tile/Tile.d.ts +200 -18
- package/cjs/core/Tile/Tile.js +495 -135
- package/cjs/core/Tile/index.js +9 -4
- package/cjs/core/TimePicker/TimePicker.d.ts +3 -4
- package/cjs/core/TimePicker/TimePicker.js +458 -260
- package/cjs/core/TimePicker/index.js +9 -4
- package/cjs/core/Toast/Toast.d.ts +20 -18
- package/cjs/core/Toast/Toast.js +206 -135
- package/cjs/core/Toast/Toaster.d.ts +26 -28
- package/cjs/core/Toast/Toaster.js +126 -153
- package/cjs/core/Toast/index.d.ts +1 -4
- package/cjs/core/Toast/index.js +10 -8
- package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +1 -7
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +66 -55
- package/cjs/core/ToggleSwitch/index.js +9 -4
- package/cjs/core/Tooltip/Tooltip.d.ts +81 -15
- package/cjs/core/Tooltip/Tooltip.js +153 -42
- package/cjs/core/Tooltip/index.js +9 -4
- package/cjs/core/TransferList/TransferList.d.ts +69 -0
- package/cjs/core/TransferList/TransferList.js +220 -0
- package/cjs/core/TransferList/index.d.ts +3 -0
- package/cjs/core/TransferList/index.js +15 -0
- package/cjs/core/Tree/Tree.d.ts +5 -6
- package/cjs/core/Tree/Tree.js +205 -162
- package/cjs/core/Tree/TreeContext.d.ts +1 -1
- package/cjs/core/Tree/TreeContext.js +9 -31
- package/cjs/core/Tree/TreeNode.d.ts +2 -3
- package/cjs/core/Tree/TreeNode.js +207 -131
- package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -2
- package/cjs/core/Tree/TreeNodeExpander.js +26 -38
- package/cjs/core/Tree/index.js +23 -8
- package/cjs/core/Typography/Anchor/Anchor.d.ts +0 -1
- package/cjs/core/Typography/Anchor/Anchor.js +3 -4
- package/cjs/core/Typography/Anchor/index.js +9 -4
- package/cjs/core/Typography/Blockquote/Blockquote.d.ts +1 -2
- package/cjs/core/Typography/Blockquote/Blockquote.js +18 -36
- package/cjs/core/Typography/Blockquote/index.js +9 -4
- package/cjs/core/Typography/Code/Code.d.ts +0 -1
- package/cjs/core/Typography/Code/Code.js +3 -4
- package/cjs/core/Typography/Code/index.js +9 -4
- package/cjs/core/Typography/Kbd/Kbd.d.ts +1 -2
- package/cjs/core/Typography/Kbd/Kbd.js +30 -47
- package/cjs/core/Typography/Kbd/index.js +15 -5
- package/cjs/core/Typography/Text/Text.d.ts +1 -2
- package/cjs/core/Typography/Text/Text.js +26 -39
- package/cjs/core/Typography/Text/index.js +9 -4
- package/cjs/core/Typography/index.js +50 -14
- package/cjs/core/index.d.ts +11 -8
- package/cjs/core/index.js +912 -185
- package/cjs/core/utils/color/ColorValue.d.ts +4 -4
- package/cjs/core/utils/color/ColorValue.js +535 -459
- package/cjs/core/utils/color/index.js +4 -17
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +20 -36
- package/cjs/core/utils/components/Box.js +3 -3
- package/cjs/core/utils/components/ButtonBase.d.ts +14 -0
- package/cjs/core/utils/components/ButtonBase.js +46 -0
- package/cjs/core/utils/components/Divider.d.ts +1 -2
- package/cjs/core/utils/components/Divider.js +14 -34
- package/cjs/core/utils/components/Flex.d.ts +4 -5
- package/cjs/core/utils/components/Flex.js +93 -103
- package/cjs/core/utils/components/FocusTrap.d.ts +3 -3
- package/cjs/core/utils/components/FocusTrap.js +47 -60
- package/cjs/core/utils/components/Icon.d.ts +6 -2
- package/cjs/core/utils/components/Icon.js +32 -44
- package/cjs/core/utils/components/InputContainer.d.ts +4 -6
- package/cjs/core/utils/components/InputContainer.js +62 -50
- package/cjs/core/utils/components/InputFlexContainer.d.ts +2 -2
- package/cjs/core/utils/components/InputFlexContainer.js +24 -11
- package/cjs/core/utils/components/LinkAction.d.ts +0 -1
- package/cjs/core/utils/components/LinkAction.js +3 -4
- package/cjs/core/utils/components/MiddleTextTruncation.d.ts +2 -2
- package/cjs/core/utils/components/MiddleTextTruncation.js +32 -45
- package/cjs/core/utils/components/Popover.d.ts +113 -28
- package/cjs/core/utils/components/Popover.js +160 -148
- package/cjs/core/utils/components/Portal.d.ts +27 -0
- package/cjs/core/utils/components/Portal.js +43 -0
- package/cjs/core/utils/components/Resizer.d.ts +2 -2
- package/cjs/core/utils/components/Resizer.js +254 -210
- package/cjs/core/utils/components/VirtualScroll.d.ts +2 -2
- package/cjs/core/utils/components/VirtualScroll.js +303 -251
- package/cjs/core/utils/components/VisuallyHidden.d.ts +1 -2
- package/cjs/core/utils/components/VisuallyHidden.js +14 -34
- package/cjs/core/utils/components/WithCSSTransition.d.ts +2 -2
- package/cjs/core/utils/components/WithCSSTransition.js +43 -48
- package/cjs/core/utils/components/index.d.ts +2 -0
- package/cjs/core/utils/components/index.js +20 -31
- package/cjs/core/utils/functions/colors.d.ts +1 -1
- package/cjs/core/utils/functions/colors.js +26 -35
- package/cjs/core/utils/functions/date.js +10 -10
- package/cjs/core/utils/functions/dev.d.ts +11 -0
- package/cjs/core/utils/functions/dev.js +34 -0
- package/cjs/core/utils/functions/dom.d.ts +6 -8
- package/cjs/core/utils/functions/dom.js +32 -30
- package/cjs/core/utils/functions/focusable.js +26 -17
- package/cjs/core/utils/functions/import.d.ts +6 -0
- package/cjs/core/utils/functions/import.js +61 -0
- package/cjs/core/utils/functions/index.d.ts +3 -1
- package/cjs/core/utils/functions/index.js +13 -24
- package/cjs/core/utils/functions/numbers.js +9 -9
- package/cjs/core/utils/functions/polymorphic.d.ts +5 -3
- package/cjs/core/utils/functions/polymorphic.js +46 -50
- package/cjs/core/utils/functions/react.d.ts +8 -0
- package/cjs/core/utils/functions/react.js +40 -0
- package/cjs/core/utils/functions/supports.js +5 -4
- package/cjs/core/utils/hooks/index.d.ts +1 -1
- package/cjs/core/utils/hooks/index.js +17 -30
- package/cjs/core/utils/hooks/useContainerWidth.js +26 -41
- package/cjs/core/utils/hooks/useControlledState.d.ts +13 -0
- package/cjs/core/utils/hooks/useControlledState.js +39 -0
- package/cjs/core/utils/hooks/useDragAndDrop.js +110 -111
- package/cjs/core/utils/hooks/useEventListener.js +22 -44
- package/cjs/core/utils/hooks/useGlobals.d.ts +9 -4
- package/cjs/core/utils/hooks/useGlobals.js +35 -56
- package/cjs/core/utils/hooks/useId.js +9 -31
- package/cjs/core/utils/hooks/useIntersection.js +30 -47
- package/cjs/core/utils/hooks/useIsClient.js +9 -31
- package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.js +6 -27
- package/cjs/core/utils/hooks/useLatestRef.js +9 -31
- package/cjs/core/utils/hooks/useMediaQuery.js +31 -55
- package/cjs/core/utils/hooks/useMergedRefs.js +15 -38
- package/cjs/core/utils/hooks/useOverflow.js +69 -79
- package/cjs/core/utils/hooks/useResizeObserver.js +22 -40
- package/cjs/core/utils/hooks/useSafeContext.js +9 -31
- package/cjs/core/utils/icons/StatusIconMap.d.ts +5 -5
- package/cjs/core/utils/icons/StatusIconMap.js +28 -34
- package/cjs/core/utils/icons/Svg.js +3 -3
- package/cjs/core/utils/icons/SvgCalendar.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCalendar.js +12 -29
- package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCaretDownSmall.js +12 -29
- package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCaretRightSmall.js +12 -29
- package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCaretUpSmall.js +12 -29
- package/cjs/core/utils/icons/SvgCheckmark.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCheckmark.js +10 -29
- package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCheckmarkSmall.js +12 -29
- package/cjs/core/utils/icons/SvgChevronLeft.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronLeft.js +12 -29
- package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronLeftDouble.js +12 -29
- package/cjs/core/utils/icons/SvgChevronRight.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronRight.js +12 -29
- package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronRightDouble.js +12 -29
- package/cjs/core/utils/icons/SvgClose.d.ts +1 -1
- package/cjs/core/utils/icons/SvgClose.js +12 -29
- package/cjs/core/utils/icons/SvgCloseSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCloseSmall.js +12 -29
- package/cjs/core/utils/icons/SvgColumnManager.d.ts +1 -1
- package/cjs/core/utils/icons/SvgColumnManager.js +12 -29
- package/cjs/core/utils/icons/SvgDocument.d.ts +1 -1
- package/cjs/core/utils/icons/SvgDocument.js +10 -29
- package/cjs/core/utils/icons/SvgFilter.d.ts +1 -1
- package/cjs/core/utils/icons/SvgFilter.js +10 -29
- package/cjs/core/utils/icons/SvgFilterHollow.d.ts +1 -1
- package/cjs/core/utils/icons/SvgFilterHollow.js +12 -29
- package/cjs/core/utils/icons/SvgImportantSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgImportantSmall.js +12 -29
- package/cjs/core/utils/icons/SvgInfoCircular.d.ts +1 -1
- package/cjs/core/utils/icons/SvgInfoCircular.js +12 -29
- package/cjs/core/utils/icons/SvgMore.d.ts +1 -1
- package/cjs/core/utils/icons/SvgMore.js +12 -29
- package/cjs/core/utils/icons/SvgMoreVertical.d.ts +1 -1
- package/cjs/core/utils/icons/SvgMoreVertical.js +12 -29
- package/cjs/core/utils/icons/SvgNew.d.ts +1 -1
- package/cjs/core/utils/icons/SvgNew.js +12 -29
- package/cjs/core/utils/icons/SvgSearch.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSearch.js +12 -29
- package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSmileyHappy.js +12 -29
- package/cjs/core/utils/icons/SvgSortDown.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSortDown.js +12 -29
- package/cjs/core/utils/icons/SvgSortUp.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSortUp.js +12 -29
- package/cjs/core/utils/icons/SvgStatusError.d.ts +1 -1
- package/cjs/core/utils/icons/SvgStatusError.js +12 -29
- package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
- package/cjs/core/utils/icons/SvgStatusSuccess.js +12 -29
- package/cjs/core/utils/icons/SvgStatusWarning.d.ts +1 -1
- package/cjs/core/utils/icons/SvgStatusWarning.js +12 -29
- package/cjs/core/utils/icons/SvgSwap.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSwap.js +12 -29
- package/cjs/core/utils/icons/SvgUpload.d.ts +1 -1
- package/cjs/core/utils/icons/SvgUpload.js +12 -29
- package/cjs/core/utils/icons/index.js +34 -47
- package/cjs/core/utils/index.js +10 -23
- package/cjs/core/utils/props.d.ts +2 -2
- package/cjs/core/utils/props.js +2 -2
- package/cjs/core/utils/types.d.ts +1 -1
- package/cjs/core/utils/types.js +2 -2
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +4 -18
- package/cjs/package.json +1 -0
- package/cjs/react-table/react-table.d.ts +745 -0
- package/cjs/react-table/react-table.js +10 -0
- package/cjs/styles.d.ts +5 -0
- package/cjs/styles.js +429 -0
- package/esm/core/Alert/Alert.d.ts +57 -28
- package/esm/core/Alert/Alert.js +159 -24
- package/esm/core/Avatar/Avatar.d.ts +6 -10
- package/esm/core/Avatar/Avatar.js +53 -19
- package/esm/core/Avatar/index.d.ts +1 -1
- package/esm/core/Avatar/index.js +1 -1
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +1 -6
- package/esm/core/AvatarGroup/AvatarGroup.js +58 -27
- package/esm/core/AvatarGroup/index.d.ts +1 -1
- package/esm/core/AvatarGroup/index.js +1 -1
- package/esm/core/Backdrop/Backdrop.d.ts +1 -2
- package/esm/core/Backdrop/Backdrop.js +10 -3
- package/esm/core/Badge/Badge.d.ts +1 -2
- package/esm/core/Badge/Badge.js +31 -17
- package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +16 -25
- package/esm/core/Breadcrumbs/Breadcrumbs.js +147 -34
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +1 -2
- package/esm/core/ButtonGroup/ButtonGroup.js +58 -22
- package/esm/core/Buttons/Button/Button.d.ts +16 -4
- package/esm/core/Buttons/Button/Button.js +46 -7
- package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +2 -3
- package/esm/core/Buttons/DropdownButton/DropdownButton.js +39 -23
- package/esm/core/Buttons/IconButton/IconButton.d.ts +6 -4
- package/esm/core/Buttons/IconButton/IconButton.js +42 -12
- package/esm/core/Buttons/IdeasButton/IdeasButton.d.ts +1 -1
- package/esm/core/Buttons/IdeasButton/IdeasButton.js +12 -2
- package/esm/core/Buttons/SplitButton/SplitButton.d.ts +13 -5
- package/esm/core/Buttons/SplitButton/SplitButton.js +103 -18
- package/esm/core/Carousel/Carousel.d.ts +9 -8
- package/esm/core/Carousel/Carousel.js +103 -74
- package/esm/core/Carousel/CarouselDot.d.ts +1 -1
- package/esm/core/Carousel/CarouselDot.js +18 -7
- package/esm/core/Carousel/CarouselDotsList.d.ts +1 -2
- package/esm/core/Carousel/CarouselDotsList.js +123 -66
- package/esm/core/Carousel/CarouselNavigation.d.ts +8 -6
- package/esm/core/Carousel/CarouselNavigation.js +85 -34
- package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlide.js +29 -14
- package/esm/core/Carousel/CarouselSlider.js +65 -45
- package/esm/core/Checkbox/Checkbox.d.ts +9 -6
- package/esm/core/Checkbox/Checkbox.js +78 -29
- package/esm/core/ColorPicker/ColorBuilder.d.ts +0 -1
- package/esm/core/ColorPicker/ColorBuilder.js +278 -170
- package/esm/core/ColorPicker/ColorInputPanel.d.ts +1 -2
- package/esm/core/ColorPicker/ColorInputPanel.js +378 -252
- package/esm/core/ColorPicker/ColorPalette.d.ts +1 -2
- package/esm/core/ColorPicker/ColorPalette.js +115 -83
- package/esm/core/ColorPicker/ColorPicker.d.ts +10 -7
- package/esm/core/ColorPicker/ColorPicker.js +78 -55
- package/esm/core/ColorPicker/ColorPickerContext.js +7 -5
- package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -2
- package/esm/core/ColorPicker/ColorSwatch.js +19 -8
- package/esm/core/ComboBox/ComboBox.d.ts +13 -9
- package/esm/core/ComboBox/ComboBox.js +397 -265
- package/esm/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxEndIcon.js +19 -13
- package/esm/core/ComboBox/ComboBoxInput.d.ts +2 -2
- package/esm/core/ComboBox/ComboBoxInput.js +198 -123
- package/esm/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInputContainer.js +20 -5
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +2 -2
- package/esm/core/ComboBox/ComboBoxMenu.js +79 -46
- package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
- package/esm/core/ComboBox/ComboBoxMenuItem.js +62 -14
- package/esm/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMultipleContainer.js +6 -2
- package/esm/core/ComboBox/helpers.d.ts +7 -5
- package/esm/core/ComboBox/helpers.js +38 -39
- package/esm/core/DatePicker/DatePicker.d.ts +41 -11
- package/esm/core/DatePicker/DatePicker.js +553 -326
- package/esm/core/Dialog/Dialog.d.ts +1 -2
- package/esm/core/Dialog/Dialog.js +54 -25
- package/esm/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/esm/core/Dialog/DialogBackdrop.js +39 -19
- package/esm/core/Dialog/DialogButtonBar.d.ts +0 -1
- package/esm/core/Dialog/DialogButtonBar.js +0 -1
- package/esm/core/Dialog/DialogContent.d.ts +2 -2
- package/esm/core/Dialog/DialogContent.js +25 -3
- package/esm/core/Dialog/DialogContext.d.ts +15 -1
- package/esm/core/Dialog/DialogContext.js +1 -1
- package/esm/core/Dialog/DialogDragContext.d.ts +1 -1
- package/esm/core/Dialog/DialogDragContext.js +4 -4
- package/esm/core/Dialog/DialogMain.d.ts +1 -2
- package/esm/core/Dialog/DialogMain.js +177 -115
- package/esm/core/Dialog/DialogTitleBar.d.ts +1 -2
- package/esm/core/Dialog/DialogTitleBar.js +45 -11
- package/esm/core/Dialog/DialogTitleBarTitle.d.ts +0 -1
- package/esm/core/Dialog/DialogTitleBarTitle.js +0 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +8 -7
- package/esm/core/DropdownMenu/DropdownMenu.js +80 -30
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +88 -22
- package/esm/core/ExpandableBlock/ExpandableBlock.js +246 -44
- package/esm/core/Fieldset/Fieldset.d.ts +1 -2
- package/esm/core/Fieldset/Fieldset.js +19 -9
- package/esm/core/FileUpload/FileEmptyCard.js +19 -8
- package/esm/core/FileUpload/FileUpload.d.ts +8 -6
- package/esm/core/FileUpload/FileUpload.js +74 -42
- package/esm/core/FileUpload/FileUploadCard.d.ts +1 -2
- package/esm/core/FileUpload/FileUploadCard.js +154 -78
- package/esm/core/FileUpload/FileUploadTemplate.d.ts +2 -2
- package/esm/core/FileUpload/FileUploadTemplate.js +38 -10
- package/esm/core/Footer/Footer.d.ts +4 -5
- package/esm/core/Footer/Footer.js +86 -56
- package/esm/core/Footer/FooterItem.d.ts +0 -1
- package/esm/core/Footer/FooterItem.js +0 -1
- package/esm/core/Footer/FooterList.d.ts +0 -1
- package/esm/core/Footer/FooterList.js +0 -1
- package/esm/core/Footer/FooterSeparator.d.ts +0 -1
- package/esm/core/Footer/FooterSeparator.js +1 -2
- package/esm/core/Header/Header.d.ts +3 -23
- package/esm/core/Header/Header.js +55 -16
- package/esm/core/Header/HeaderBasicButton.js +16 -8
- package/esm/core/Header/HeaderBreadcrumbs.d.ts +1 -2
- package/esm/core/Header/HeaderBreadcrumbs.js +32 -9
- package/esm/core/Header/HeaderButton.d.ts +5 -2
- package/esm/core/Header/HeaderButton.js +62 -14
- package/esm/core/Header/HeaderDropdownButton.js +42 -13
- package/esm/core/Header/HeaderLogo.d.ts +1 -2
- package/esm/core/Header/HeaderLogo.js +36 -6
- package/esm/core/Header/HeaderSplitButton.js +61 -14
- package/esm/core/InformationPanel/InformationPanel.d.ts +1 -2
- package/esm/core/InformationPanel/InformationPanel.js +71 -40
- package/esm/core/InformationPanel/InformationPanelBody.d.ts +0 -1
- package/esm/core/InformationPanel/InformationPanelBody.js +0 -1
- package/esm/core/InformationPanel/InformationPanelContent.d.ts +1 -2
- package/esm/core/InformationPanel/InformationPanelContent.js +17 -4
- package/esm/core/InformationPanel/InformationPanelHeader.d.ts +1 -2
- package/esm/core/InformationPanel/InformationPanelHeader.js +32 -9
- package/esm/core/InformationPanel/InformationPanelWrapper.d.ts +0 -1
- package/esm/core/InformationPanel/InformationPanelWrapper.js +3 -2
- package/esm/core/Input/Input.d.ts +10 -7
- package/esm/core/Input/Input.js +12 -10
- package/esm/core/InputGrid/InputGrid.d.ts +25 -0
- package/esm/core/InputGrid/InputGrid.js +35 -0
- package/esm/core/InputGrid/index.d.ts +3 -0
- package/esm/core/{ProgressIndicators/ProgressLinear → InputGrid}/index.js +2 -2
- package/esm/core/InputGroup/InputGroup.d.ts +14 -2
- package/esm/core/InputGroup/InputGroup.js +62 -16
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +39 -0
- package/esm/core/InputWithDecorations/InputWithDecorations.js +80 -0
- package/esm/core/InputWithDecorations/index.d.ts +3 -0
- package/esm/core/InputWithDecorations/index.js +6 -0
- package/esm/core/Label/Label.d.ts +6 -2
- package/esm/core/Label/Label.js +26 -6
- package/esm/core/LabeledInput/LabeledInput.d.ts +23 -18
- package/esm/core/LabeledInput/LabeledInput.js +68 -7
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +18 -9
- package/esm/core/LabeledSelect/LabeledSelect.js +70 -18
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +16 -8
- package/esm/core/LabeledTextarea/LabeledTextarea.js +15 -9
- package/esm/core/List/List.d.ts +0 -1
- package/esm/core/List/List.js +0 -1
- package/esm/core/List/ListItem.d.ts +4 -5
- package/esm/core/List/ListItem.js +46 -29
- package/esm/core/Menu/Menu.d.ts +2 -3
- package/esm/core/Menu/Menu.js +64 -50
- package/esm/core/Menu/MenuDivider.d.ts +2 -2
- package/esm/core/Menu/MenuDivider.js +2 -3
- package/esm/core/Menu/MenuExtraContent.d.ts +0 -1
- package/esm/core/Menu/MenuExtraContent.js +1 -2
- package/esm/core/Menu/MenuItem.d.ts +2 -3
- package/esm/core/Menu/MenuItem.js +167 -64
- package/esm/core/Menu/MenuItemSkeleton.d.ts +2 -3
- package/esm/core/Menu/MenuItemSkeleton.js +43 -13
- package/esm/core/Modal/Modal.d.ts +9 -11
- package/esm/core/Modal/Modal.js +33 -14
- package/esm/core/NonIdealState/ErrorPage.d.ts +6 -7
- package/esm/core/NonIdealState/ErrorPage.js +177 -117
- package/esm/core/NonIdealState/NonIdealState.d.ts +17 -2
- package/esm/core/NonIdealState/NonIdealState.js +65 -7
- package/esm/core/NotificationMarker/NotificationMarker.d.ts +1 -2
- package/esm/core/NotificationMarker/NotificationMarker.js +20 -3
- package/esm/core/Overlay/Overlay.d.ts +57 -0
- package/esm/core/Overlay/Overlay.js +88 -0
- package/esm/core/Overlay/index.d.ts +1 -0
- package/esm/core/{ProgressIndicators/ProgressRadial → Overlay}/index.js +1 -2
- package/{cjs/core/ProgressIndicators/ProgressLinear → esm/core/ProgressIndicators}/ProgressLinear.d.ts +10 -7
- package/esm/core/ProgressIndicators/ProgressLinear.js +65 -0
- package/esm/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -5
- package/esm/core/ProgressIndicators/ProgressRadial.js +64 -0
- package/esm/core/ProgressIndicators/index.d.ts +2 -2
- package/esm/core/ProgressIndicators/index.js +2 -2
- package/esm/core/Radio/Radio.d.ts +7 -5
- package/esm/core/Radio/Radio.js +45 -12
- package/esm/core/RadioTiles/RadioTile.d.ts +15 -5
- package/esm/core/RadioTiles/RadioTile.js +62 -15
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -2
- package/esm/core/RadioTiles/RadioTileGroup.js +10 -4
- package/esm/core/SearchBox/SearchBox.d.ts +3 -4
- package/esm/core/SearchBox/SearchBox.js +215 -98
- package/esm/core/Select/Select.d.ts +12 -14
- package/esm/core/Select/Select.js +267 -153
- package/esm/core/Select/SelectTag.d.ts +1 -2
- package/esm/core/Select/SelectTag.js +15 -4
- package/esm/core/Select/SelectTagContainer.d.ts +1 -1
- package/esm/core/Select/SelectTagContainer.js +20 -7
- package/esm/core/SideNavigation/SideNavigation.d.ts +17 -2
- package/esm/core/SideNavigation/SideNavigation.js +118 -22
- package/esm/core/SideNavigation/SidenavButton.d.ts +1 -2
- package/esm/core/SideNavigation/SidenavButton.js +24 -3
- package/esm/core/SideNavigation/SidenavSubmenu.d.ts +0 -1
- package/esm/core/SideNavigation/SidenavSubmenu.js +14 -4
- package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -2
- package/esm/core/SideNavigation/SidenavSubmenuHeader.js +20 -5
- package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +1 -2
- package/esm/core/SkipToContentLink/SkipToContentLink.js +11 -3
- package/esm/core/Slider/Slider.d.ts +29 -10
- package/esm/core/Slider/Slider.js +352 -198
- package/esm/core/Slider/Thumb.d.ts +4 -4
- package/esm/core/Slider/Thumb.js +101 -52
- package/esm/core/Slider/Track.d.ts +4 -4
- package/esm/core/Slider/Track.js +76 -49
- package/esm/core/StatusMessage/StatusMessage.d.ts +13 -3
- package/esm/core/StatusMessage/StatusMessage.js +28 -8
- package/esm/core/Stepper/Stepper.d.ts +29 -5
- package/esm/core/Stepper/Stepper.js +71 -9
- package/esm/core/Stepper/StepperStep.d.ts +18 -1
- package/esm/core/Stepper/StepperStep.js +92 -31
- package/esm/core/Stepper/WorkflowDiagram.d.ts +11 -2
- package/esm/core/Stepper/WorkflowDiagram.js +23 -7
- package/esm/core/Stepper/WorkflowDiagramStep.d.ts +8 -3
- package/esm/core/Stepper/WorkflowDiagramStep.js +22 -4
- package/esm/core/Stepper/index.d.ts +0 -4
- package/esm/core/Stepper/index.js +0 -2
- package/esm/core/Surface/Surface.d.ts +2 -3
- package/esm/core/Surface/Surface.js +68 -40
- package/esm/core/Table/SubRowExpander.d.ts +2 -2
- package/esm/core/Table/SubRowExpander.js +31 -9
- package/esm/core/Table/Table.d.ts +18 -3
- package/esm/core/Table/Table.js +763 -417
- package/esm/core/Table/TableCell.d.ts +2 -2
- package/esm/core/Table/TableCell.js +88 -53
- package/esm/core/Table/TablePaginator.d.ts +3 -4
- package/esm/core/Table/TablePaginator.js +306 -127
- package/esm/core/Table/TableRowMemoized.d.ts +4 -4
- package/esm/core/Table/TableRowMemoized.js +148 -84
- package/esm/core/Table/actionHandlers/expandHandler.js +10 -10
- package/esm/core/Table/actionHandlers/filterHandler.js +23 -16
- package/esm/core/Table/actionHandlers/index.js +5 -1
- package/esm/core/Table/actionHandlers/resizeHandler.js +11 -11
- package/esm/core/Table/actionHandlers/selectHandler.js +117 -93
- package/esm/core/Table/cells/DefaultCell.d.ts +2 -2
- package/esm/core/Table/cells/DefaultCell.js +43 -7
- package/esm/core/Table/cells/EditableCell.d.ts +2 -2
- package/esm/core/Table/cells/EditableCell.js +71 -48
- package/esm/core/Table/columns/actionColumn.d.ts +3 -3
- package/esm/core/Table/columns/actionColumn.js +85 -62
- package/esm/core/Table/columns/expanderColumn.d.ts +2 -2
- package/esm/core/Table/columns/expanderColumn.js +38 -25
- package/esm/core/Table/columns/selectionColumn.d.ts +4 -4
- package/esm/core/Table/columns/selectionColumn.js +51 -23
- package/esm/core/Table/filters/BaseFilter.d.ts +2 -3
- package/esm/core/Table/filters/BaseFilter.js +16 -9
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +9 -3
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +113 -48
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +6 -5
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +110 -48
- package/esm/core/Table/filters/FilterButtonBar.d.ts +3 -4
- package/esm/core/Table/filters/FilterButtonBar.js +29 -11
- package/esm/core/Table/filters/FilterToggle.d.ts +3 -4
- package/esm/core/Table/filters/FilterToggle.js +57 -21
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -5
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +50 -24
- package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +3 -4
- package/esm/core/Table/filters/TextFilter/TextFilter.js +32 -16
- package/esm/core/Table/filters/customFilterFunctions.js +14 -12
- package/esm/core/Table/filters/defaultFilterFunctions.js +84 -79
- package/esm/core/Table/filters/tableFilters.d.ts +5 -5
- package/esm/core/Table/filters/tableFilters.js +34 -25
- package/esm/core/Table/filters/types.d.ts +2 -19
- package/esm/core/Table/hooks/useColumnDragAndDrop.js +89 -81
- package/esm/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/esm/core/Table/hooks/useExpanderCell.js +26 -20
- package/esm/core/Table/hooks/useResizeColumns.js +353 -293
- package/esm/core/Table/hooks/useScrollToRow.d.ts +2 -2
- package/esm/core/Table/hooks/useScrollToRow.js +42 -35
- package/esm/core/Table/hooks/useSelectionCell.js +10 -6
- package/esm/core/Table/hooks/useStickyColumns.js +61 -61
- package/esm/core/Table/hooks/useSubRowFiltering.js +90 -85
- package/esm/core/Table/hooks/useSubRowSelection.js +28 -27
- package/esm/core/Table/index.d.ts +1 -1
- package/esm/core/Table/index.js +5 -1
- package/esm/core/Table/utils.js +40 -38
- package/esm/core/Tabs/Tab.d.ts +2 -3
- package/esm/core/Tabs/Tab.js +41 -9
- package/esm/core/Tabs/Tabs.d.ts +6 -43
- package/esm/core/Tabs/Tabs.js +393 -334
- package/esm/core/Tabs/index.d.ts +1 -1
- package/esm/core/Tabs/index.js +1 -1
- package/esm/core/Tag/Tag.d.ts +1 -2
- package/esm/core/Tag/Tag.js +35 -9
- package/esm/core/Tag/TagContainer.d.ts +1 -2
- package/esm/core/Tag/TagContainer.js +17 -6
- package/esm/core/Textarea/Textarea.d.ts +4 -6
- package/esm/core/Textarea/Textarea.js +9 -14
- package/esm/core/ThemeProvider/ThemeContext.d.ts +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +29 -12
- package/esm/core/ThemeProvider/ThemeProvider.js +112 -28
- package/esm/core/Tile/Tile.d.ts +200 -18
- package/esm/core/Tile/Tile.js +475 -101
- package/esm/core/TimePicker/TimePicker.d.ts +3 -4
- package/esm/core/TimePicker/TimePicker.js +448 -229
- package/esm/core/Toast/Toast.d.ts +20 -18
- package/esm/core/Toast/Toast.js +196 -102
- package/esm/core/Toast/Toaster.d.ts +26 -28
- package/esm/core/Toast/Toaster.js +106 -126
- package/esm/core/Toast/index.d.ts +1 -4
- package/esm/core/Toast/index.js +1 -3
- package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +1 -7
- package/esm/core/ToggleSwitch/ToggleSwitch.js +60 -24
- package/esm/core/Tooltip/Tooltip.d.ts +81 -15
- package/esm/core/Tooltip/Tooltip.js +167 -11
- package/esm/core/TransferList/TransferList.d.ts +69 -0
- package/esm/core/TransferList/TransferList.js +206 -0
- package/esm/core/TransferList/index.d.ts +3 -0
- package/esm/core/TransferList/index.js +6 -0
- package/esm/core/Tree/Tree.d.ts +5 -6
- package/esm/core/Tree/Tree.js +197 -130
- package/esm/core/Tree/TreeContext.d.ts +1 -1
- package/esm/core/Tree/TreeContext.js +5 -5
- package/esm/core/Tree/TreeNode.d.ts +2 -3
- package/esm/core/Tree/TreeNode.js +195 -98
- package/esm/core/Tree/TreeNodeExpander.d.ts +1 -2
- package/esm/core/Tree/TreeNodeExpander.js +16 -6
- package/esm/core/Typography/Anchor/Anchor.d.ts +0 -1
- package/esm/core/Typography/Anchor/Anchor.js +0 -1
- package/esm/core/Typography/Blockquote/Blockquote.d.ts +1 -2
- package/esm/core/Typography/Blockquote/Blockquote.js +12 -5
- package/esm/core/Typography/Code/Code.d.ts +0 -1
- package/esm/core/Typography/Code/Code.js +0 -1
- package/esm/core/Typography/Kbd/Kbd.d.ts +1 -2
- package/esm/core/Typography/Kbd/Kbd.js +24 -16
- package/esm/core/Typography/Text/Text.d.ts +1 -2
- package/esm/core/Typography/Text/Text.js +20 -8
- package/esm/core/index.d.ts +11 -8
- package/esm/core/index.js +87 -15
- package/esm/core/utils/color/ColorValue.d.ts +4 -4
- package/esm/core/utils/color/ColorValue.js +524 -455
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +11 -8
- package/esm/core/utils/components/ButtonBase.d.ts +14 -0
- package/esm/core/utils/components/ButtonBase.js +42 -0
- package/esm/core/utils/components/Divider.d.ts +1 -2
- package/esm/core/utils/components/Divider.js +8 -3
- package/esm/core/utils/components/Flex.d.ts +4 -5
- package/esm/core/utils/components/Flex.js +87 -72
- package/esm/core/utils/components/FocusTrap.d.ts +3 -3
- package/esm/core/utils/components/FocusTrap.js +41 -32
- package/esm/core/utils/components/Icon.d.ts +6 -2
- package/esm/core/utils/components/Icon.js +26 -13
- package/esm/core/utils/components/InputContainer.d.ts +4 -6
- package/esm/core/utils/components/InputContainer.js +56 -18
- package/esm/core/utils/components/InputFlexContainer.d.ts +2 -2
- package/esm/core/utils/components/InputFlexContainer.js +15 -3
- package/esm/core/utils/components/LinkAction.d.ts +0 -1
- package/esm/core/utils/components/LinkAction.js +0 -1
- package/esm/core/utils/components/MiddleTextTruncation.d.ts +2 -2
- package/esm/core/utils/components/MiddleTextTruncation.js +27 -18
- package/esm/core/utils/components/Popover.d.ts +113 -28
- package/esm/core/utils/components/Popover.js +175 -119
- package/esm/core/utils/components/Portal.d.ts +27 -0
- package/esm/core/utils/components/Portal.js +36 -0
- package/esm/core/utils/components/Resizer.d.ts +2 -2
- package/esm/core/utils/components/Resizer.js +250 -183
- package/esm/core/utils/components/VirtualScroll.d.ts +2 -2
- package/esm/core/utils/components/VirtualScroll.js +296 -224
- package/esm/core/utils/components/VisuallyHidden.d.ts +1 -2
- package/esm/core/utils/components/VisuallyHidden.js +8 -3
- package/esm/core/utils/components/WithCSSTransition.d.ts +2 -2
- package/esm/core/utils/components/WithCSSTransition.js +38 -21
- package/esm/core/utils/components/index.d.ts +2 -0
- package/esm/core/utils/components/index.js +2 -0
- package/esm/core/utils/functions/colors.d.ts +1 -1
- package/esm/core/utils/functions/colors.js +20 -32
- package/esm/core/utils/functions/date.js +8 -8
- package/esm/core/utils/functions/dev.d.ts +11 -0
- package/esm/core/utils/functions/dev.js +29 -0
- package/esm/core/utils/functions/dom.d.ts +6 -8
- package/esm/core/utils/functions/dom.js +23 -25
- package/esm/core/utils/functions/focusable.js +24 -15
- package/esm/core/utils/functions/import.d.ts +6 -0
- package/esm/core/utils/functions/import.js +14 -0
- package/esm/core/utils/functions/index.d.ts +3 -1
- package/esm/core/utils/functions/index.js +3 -1
- package/esm/core/utils/functions/numbers.js +7 -7
- package/esm/core/utils/functions/polymorphic.d.ts +5 -3
- package/esm/core/utils/functions/polymorphic.js +36 -19
- package/esm/core/utils/functions/react.d.ts +8 -0
- package/esm/core/utils/functions/react.js +35 -0
- package/esm/core/utils/functions/supports.js +2 -1
- package/esm/core/utils/hooks/index.d.ts +1 -1
- package/esm/core/utils/hooks/index.js +1 -1
- package/esm/core/utils/hooks/useContainerWidth.js +16 -13
- package/esm/core/utils/hooks/useControlledState.d.ts +13 -0
- package/esm/core/utils/hooks/useControlledState.js +34 -0
- package/esm/core/utils/hooks/useDragAndDrop.js +99 -82
- package/esm/core/utils/hooks/useEventListener.js +18 -18
- package/esm/core/utils/hooks/useGlobals.d.ts +9 -4
- package/esm/core/utils/hooks/useGlobals.js +30 -29
- package/esm/core/utils/hooks/useId.js +3 -4
- package/esm/core/utils/hooks/useIntersection.js +25 -20
- package/esm/core/utils/hooks/useIsClient.js +5 -5
- package/esm/core/utils/hooks/useIsomorphicLayoutEffect.js +2 -1
- package/esm/core/utils/hooks/useLatestRef.js +5 -5
- package/esm/core/utils/hooks/useMediaQuery.js +23 -27
- package/esm/core/utils/hooks/useMergedRefs.js +11 -12
- package/esm/core/utils/hooks/useOverflow.js +62 -51
- package/esm/core/utils/hooks/useResizeObserver.js +17 -13
- package/esm/core/utils/hooks/useSafeContext.js +5 -5
- package/esm/core/utils/icons/StatusIconMap.d.ts +5 -5
- package/esm/core/utils/icons/StatusIconMap.js +8 -4
- package/esm/core/utils/icons/SvgCalendar.d.ts +1 -1
- package/esm/core/utils/icons/SvgCalendar.js +7 -2
- package/esm/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCaretDownSmall.js +7 -2
- package/esm/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCaretRightSmall.js +7 -2
- package/esm/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCaretUpSmall.js +7 -2
- package/esm/core/utils/icons/SvgCheckmark.d.ts +1 -1
- package/esm/core/utils/icons/SvgCheckmark.js +5 -2
- package/esm/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCheckmarkSmall.js +7 -2
- package/esm/core/utils/icons/SvgChevronLeft.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronLeft.js +7 -2
- package/esm/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronLeftDouble.js +7 -2
- package/esm/core/utils/icons/SvgChevronRight.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronRight.js +7 -2
- package/esm/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronRightDouble.js +7 -2
- package/esm/core/utils/icons/SvgClose.d.ts +1 -1
- package/esm/core/utils/icons/SvgClose.js +7 -2
- package/esm/core/utils/icons/SvgCloseSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCloseSmall.js +7 -2
- package/esm/core/utils/icons/SvgColumnManager.d.ts +1 -1
- package/esm/core/utils/icons/SvgColumnManager.js +7 -2
- package/esm/core/utils/icons/SvgDocument.d.ts +1 -1
- package/esm/core/utils/icons/SvgDocument.js +5 -2
- package/esm/core/utils/icons/SvgFilter.d.ts +1 -1
- package/esm/core/utils/icons/SvgFilter.js +5 -2
- package/esm/core/utils/icons/SvgFilterHollow.d.ts +1 -1
- package/esm/core/utils/icons/SvgFilterHollow.js +7 -2
- package/esm/core/utils/icons/SvgImportantSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgImportantSmall.js +7 -2
- package/esm/core/utils/icons/SvgInfoCircular.d.ts +1 -1
- package/esm/core/utils/icons/SvgInfoCircular.js +7 -2
- package/esm/core/utils/icons/SvgMore.d.ts +1 -1
- package/esm/core/utils/icons/SvgMore.js +7 -2
- package/esm/core/utils/icons/SvgMoreVertical.d.ts +1 -1
- package/esm/core/utils/icons/SvgMoreVertical.js +7 -2
- package/esm/core/utils/icons/SvgNew.d.ts +1 -1
- package/esm/core/utils/icons/SvgNew.js +7 -2
- package/esm/core/utils/icons/SvgSearch.d.ts +1 -1
- package/esm/core/utils/icons/SvgSearch.js +7 -2
- package/esm/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
- package/esm/core/utils/icons/SvgSmileyHappy.js +7 -2
- package/esm/core/utils/icons/SvgSortDown.d.ts +1 -1
- package/esm/core/utils/icons/SvgSortDown.js +7 -2
- package/esm/core/utils/icons/SvgSortUp.d.ts +1 -1
- package/esm/core/utils/icons/SvgSortUp.js +7 -2
- package/esm/core/utils/icons/SvgStatusError.d.ts +1 -1
- package/esm/core/utils/icons/SvgStatusError.js +7 -2
- package/esm/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
- package/esm/core/utils/icons/SvgStatusSuccess.js +7 -2
- package/esm/core/utils/icons/SvgStatusWarning.d.ts +1 -1
- package/esm/core/utils/icons/SvgStatusWarning.js +7 -2
- package/esm/core/utils/icons/SvgSwap.d.ts +1 -1
- package/esm/core/utils/icons/SvgSwap.js +7 -2
- package/esm/core/utils/icons/SvgUpload.d.ts +1 -1
- package/esm/core/utils/icons/SvgUpload.js +7 -2
- package/esm/core/utils/props.d.ts +2 -2
- package/esm/core/utils/types.d.ts +1 -1
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/react-table/react-table.d.ts +745 -0
- package/esm/react-table/react-table.js +9 -0
- package/esm/styles.d.ts +5 -0
- package/esm/styles.js +428 -0
- package/package.json +51 -44
- package/react-table.d.ts +745 -0
- package/styles.css +1083 -0
- package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
- package/cjs/core/ComboBox/ComboBoxDropdown.js +0 -52
- package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -66
- package/cjs/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -78
- package/cjs/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
- package/cjs/core/Stepper/Wizard.d.ts +0 -46
- package/cjs/core/Stepper/Wizard.js +0 -55
- package/cjs/core/Toast/ToastWrapper.d.ts +0 -11
- package/cjs/core/Toast/ToastWrapper.js +0 -50
- package/cjs/core/utils/functions/styles.d.ts +0 -6
- package/cjs/core/utils/functions/styles.js +0 -21
- package/cjs/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
- package/cjs/core/utils/hooks/useIsThemeAlreadySet.js +0 -54
- package/cjs/types/react-table-config.d.ts +0 -135
- package/cjs/types/react-table-config.js +0 -2
- package/esm/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
- package/esm/core/ComboBox/ComboBoxDropdown.js +0 -26
- package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -37
- package/esm/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -49
- package/esm/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
- package/esm/core/Stepper/Wizard.d.ts +0 -46
- package/esm/core/Stepper/Wizard.js +0 -29
- package/esm/core/Toast/ToastWrapper.d.ts +0 -11
- package/esm/core/Toast/ToastWrapper.js +0 -21
- package/esm/core/utils/functions/styles.d.ts +0 -6
- package/esm/core/utils/functions/styles.js +0 -17
- package/esm/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
- package/esm/core/utils/hooks/useIsThemeAlreadySet.js +0 -27
- package/esm/types/react-table-config.d.ts +0 -135
- package/esm/types/react-table-config.js +0 -1
|
@@ -1,338 +1,398 @@
|
|
|
1
1
|
import { actions, makePropGetter, useGetLatest } from 'react-table';
|
|
2
2
|
export const useResizeColumns = (ownerDocument) => (hooks) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
hooks.getResizerProps = [defaultGetResizerProps(ownerDocument)];
|
|
4
|
+
hooks.stateReducers.push(reducer);
|
|
5
|
+
hooks.useInstanceBeforeDimensions.push(useInstanceBeforeDimensions);
|
|
6
6
|
};
|
|
7
7
|
const isTouchEvent = (event) => {
|
|
8
|
-
|
|
8
|
+
return event.type === 'touchstart';
|
|
9
9
|
};
|
|
10
|
-
const defaultGetResizerProps =
|
|
10
|
+
const defaultGetResizerProps =
|
|
11
|
+
(ownerDocument) =>
|
|
12
|
+
(props, { instance, header, nextHeader }) => {
|
|
11
13
|
const { dispatch } = instance;
|
|
12
14
|
const onResizeStart = (e, header) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
type: actions.columnDoneResizing,
|
|
31
|
-
});
|
|
32
|
-
const handlersAndEvents = {
|
|
33
|
-
mouse: {
|
|
34
|
-
moveEvent: 'mousemove',
|
|
35
|
-
moveHandler: (e) => dispatchMove(e.clientX),
|
|
36
|
-
upEvent: 'mouseup',
|
|
37
|
-
upHandler: () => {
|
|
38
|
-
var _a, _b, _c;
|
|
39
|
-
(_a = ownerDocument.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('mousemove', handlersAndEvents.mouse.moveHandler);
|
|
40
|
-
(_b = ownerDocument.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseup', handlersAndEvents.mouse.upHandler);
|
|
41
|
-
(_c = ownerDocument.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('mouseleave', handlersAndEvents.mouse.upHandler);
|
|
42
|
-
dispatchEnd();
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
touch: {
|
|
46
|
-
moveEvent: 'touchmove',
|
|
47
|
-
moveHandler: (e) => {
|
|
48
|
-
if (e.cancelable) {
|
|
49
|
-
e.preventDefault();
|
|
50
|
-
e.stopPropagation();
|
|
51
|
-
}
|
|
52
|
-
dispatchMove(e.touches[0].clientX);
|
|
53
|
-
},
|
|
54
|
-
upEvent: 'touchend',
|
|
55
|
-
upHandler: () => {
|
|
56
|
-
var _a, _b;
|
|
57
|
-
(_a = ownerDocument.current) === null || _a === void 0 ? void 0 : _a.removeEventListener(handlersAndEvents.touch.moveEvent, handlersAndEvents.touch.moveHandler);
|
|
58
|
-
(_b = ownerDocument.current) === null || _b === void 0 ? void 0 : _b.removeEventListener(handlersAndEvents.touch.upEvent, handlersAndEvents.touch.moveHandler);
|
|
59
|
-
dispatchEnd();
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
const events = isTouchEvent(e)
|
|
64
|
-
? handlersAndEvents.touch
|
|
65
|
-
: handlersAndEvents.mouse;
|
|
66
|
-
const passiveIfSupported = passiveEventSupported()
|
|
67
|
-
? { passive: false }
|
|
68
|
-
: false;
|
|
69
|
-
(_a = ownerDocument.current) === null || _a === void 0 ? void 0 : _a.addEventListener(events.moveEvent, events.moveHandler, passiveIfSupported);
|
|
70
|
-
(_b = ownerDocument.current) === null || _b === void 0 ? void 0 : _b.addEventListener(events.upEvent, events.upHandler, passiveIfSupported);
|
|
71
|
-
if (!isTouchEvent(e)) {
|
|
72
|
-
(_c = ownerDocument.current) === null || _c === void 0 ? void 0 : _c.addEventListener('mouseleave', handlersAndEvents.mouse.upHandler, passiveIfSupported);
|
|
73
|
-
}
|
|
15
|
+
// lets not respond to multiple touches (e.g. 2 or 3 fingers)
|
|
16
|
+
if (isTouchEvent(e) && e.touches && e.touches.length > 1) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const headerIdWidths = getLeafHeaders(header).map((d) => [
|
|
20
|
+
d.id,
|
|
21
|
+
getHeaderWidth(d),
|
|
22
|
+
]);
|
|
23
|
+
const nextHeaderIdWidths = nextHeader
|
|
24
|
+
? getLeafHeaders(nextHeader).map((d) => [d.id, getHeaderWidth(d)])
|
|
25
|
+
: [];
|
|
26
|
+
const clientX = isTouchEvent(e)
|
|
27
|
+
? Math.round(e.touches[0].clientX)
|
|
28
|
+
: e.clientX;
|
|
29
|
+
const dispatchMove = (clientXPos) =>
|
|
30
|
+
dispatch({ type: actions.columnResizing, clientX: clientXPos });
|
|
31
|
+
const dispatchEnd = () =>
|
|
74
32
|
dispatch({
|
|
75
|
-
|
|
76
|
-
columnId: header.id,
|
|
77
|
-
columnWidth: getHeaderWidth(header),
|
|
78
|
-
nextColumnWidth: getHeaderWidth(nextHeader),
|
|
79
|
-
headerIdWidths,
|
|
80
|
-
nextHeaderIdWidths,
|
|
81
|
-
clientX,
|
|
33
|
+
type: actions.columnDoneResizing,
|
|
82
34
|
});
|
|
35
|
+
const handlersAndEvents = {
|
|
36
|
+
mouse: {
|
|
37
|
+
moveEvent: 'mousemove',
|
|
38
|
+
moveHandler: (e) => dispatchMove(e.clientX),
|
|
39
|
+
upEvent: 'mouseup',
|
|
40
|
+
upHandler: () => {
|
|
41
|
+
ownerDocument.current?.removeEventListener(
|
|
42
|
+
'mousemove',
|
|
43
|
+
handlersAndEvents.mouse.moveHandler,
|
|
44
|
+
);
|
|
45
|
+
ownerDocument.current?.removeEventListener(
|
|
46
|
+
'mouseup',
|
|
47
|
+
handlersAndEvents.mouse.upHandler,
|
|
48
|
+
);
|
|
49
|
+
ownerDocument.current?.removeEventListener(
|
|
50
|
+
'mouseleave',
|
|
51
|
+
handlersAndEvents.mouse.upHandler,
|
|
52
|
+
);
|
|
53
|
+
dispatchEnd();
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
touch: {
|
|
57
|
+
moveEvent: 'touchmove',
|
|
58
|
+
moveHandler: (e) => {
|
|
59
|
+
if (e.cancelable) {
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
e.stopPropagation();
|
|
62
|
+
}
|
|
63
|
+
dispatchMove(e.touches[0].clientX);
|
|
64
|
+
},
|
|
65
|
+
upEvent: 'touchend',
|
|
66
|
+
upHandler: () => {
|
|
67
|
+
ownerDocument.current?.removeEventListener(
|
|
68
|
+
handlersAndEvents.touch.moveEvent,
|
|
69
|
+
handlersAndEvents.touch.moveHandler,
|
|
70
|
+
);
|
|
71
|
+
ownerDocument.current?.removeEventListener(
|
|
72
|
+
handlersAndEvents.touch.upEvent,
|
|
73
|
+
handlersAndEvents.touch.moveHandler,
|
|
74
|
+
);
|
|
75
|
+
dispatchEnd();
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
const events = isTouchEvent(e)
|
|
80
|
+
? handlersAndEvents.touch
|
|
81
|
+
: handlersAndEvents.mouse;
|
|
82
|
+
const passiveIfSupported = passiveEventSupported()
|
|
83
|
+
? { passive: false }
|
|
84
|
+
: false;
|
|
85
|
+
ownerDocument.current?.addEventListener(
|
|
86
|
+
events.moveEvent,
|
|
87
|
+
events.moveHandler,
|
|
88
|
+
passiveIfSupported,
|
|
89
|
+
);
|
|
90
|
+
ownerDocument.current?.addEventListener(
|
|
91
|
+
events.upEvent,
|
|
92
|
+
events.upHandler,
|
|
93
|
+
passiveIfSupported,
|
|
94
|
+
);
|
|
95
|
+
if (!isTouchEvent(e)) {
|
|
96
|
+
ownerDocument.current?.addEventListener(
|
|
97
|
+
'mouseleave',
|
|
98
|
+
handlersAndEvents.mouse.upHandler,
|
|
99
|
+
passiveIfSupported,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
dispatch({
|
|
103
|
+
type: actions.columnStartResizing,
|
|
104
|
+
columnId: header.id,
|
|
105
|
+
columnWidth: getHeaderWidth(header),
|
|
106
|
+
nextColumnWidth: getHeaderWidth(nextHeader),
|
|
107
|
+
headerIdWidths,
|
|
108
|
+
nextHeaderIdWidths,
|
|
109
|
+
clientX,
|
|
110
|
+
});
|
|
83
111
|
};
|
|
84
112
|
return [
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
onTouchStart: (e) => {
|
|
100
|
-
e.persist();
|
|
101
|
-
// Prevents from triggering drag'n'drop
|
|
102
|
-
e.preventDefault();
|
|
103
|
-
onResizeStart(e, header);
|
|
104
|
-
},
|
|
105
|
-
style: {
|
|
106
|
-
cursor: 'col-resize',
|
|
107
|
-
},
|
|
108
|
-
draggable: false,
|
|
109
|
-
role: 'separator',
|
|
113
|
+
props,
|
|
114
|
+
{
|
|
115
|
+
onClick: (e) => {
|
|
116
|
+
// Prevents from triggering sort
|
|
117
|
+
e.stopPropagation();
|
|
118
|
+
},
|
|
119
|
+
onMouseDown: (e) => {
|
|
120
|
+
e.persist();
|
|
121
|
+
// Prevents from triggering drag'n'drop
|
|
122
|
+
e.preventDefault();
|
|
123
|
+
// Prevents from triggering sort
|
|
124
|
+
e.stopPropagation();
|
|
125
|
+
onResizeStart(e, header);
|
|
110
126
|
},
|
|
127
|
+
onTouchStart: (e) => {
|
|
128
|
+
e.persist();
|
|
129
|
+
// Prevents from triggering drag'n'drop
|
|
130
|
+
e.preventDefault();
|
|
131
|
+
onResizeStart(e, header);
|
|
132
|
+
},
|
|
133
|
+
style: {
|
|
134
|
+
cursor: 'col-resize',
|
|
135
|
+
},
|
|
136
|
+
draggable: false,
|
|
137
|
+
role: 'separator',
|
|
138
|
+
},
|
|
111
139
|
];
|
|
112
|
-
};
|
|
140
|
+
};
|
|
113
141
|
useResizeColumns.pluginName = 'useResizeColumns';
|
|
114
142
|
const reducer = (newState, action, previousState, instance) => {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
// Setting `width` here because it might take several rerenders until actual column width is set.
|
|
166
|
-
// Also setting after the actual resize happened.
|
|
167
|
-
instance === null || instance === void 0 ? void 0 : instance.flatHeaders.forEach((h) => {
|
|
168
|
-
if (!h.width) {
|
|
169
|
-
h.width = h.resizeWidth;
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
return {
|
|
173
|
-
...newState,
|
|
174
|
-
columnResizing: {
|
|
175
|
-
...newState.columnResizing,
|
|
176
|
-
columnWidths: {
|
|
177
|
-
...newState.columnResizing.columnWidths,
|
|
178
|
-
...newColumnWidths,
|
|
179
|
-
...newNextColumnWidths,
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
};
|
|
143
|
+
if (action.type === actions.init) {
|
|
144
|
+
return {
|
|
145
|
+
...newState,
|
|
146
|
+
columnResizing: {
|
|
147
|
+
columnWidths: {},
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
if (action.type === actions.resetResize) {
|
|
152
|
+
return {
|
|
153
|
+
...newState,
|
|
154
|
+
columnResizing: {
|
|
155
|
+
columnWidths: {},
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
if (action.type === actions.columnStartResizing) {
|
|
160
|
+
const {
|
|
161
|
+
clientX,
|
|
162
|
+
columnId,
|
|
163
|
+
columnWidth,
|
|
164
|
+
nextColumnWidth,
|
|
165
|
+
headerIdWidths,
|
|
166
|
+
nextHeaderIdWidths,
|
|
167
|
+
} = action;
|
|
168
|
+
return {
|
|
169
|
+
...newState,
|
|
170
|
+
columnResizing: {
|
|
171
|
+
...newState.columnResizing,
|
|
172
|
+
startX: clientX,
|
|
173
|
+
columnWidth,
|
|
174
|
+
nextColumnWidth,
|
|
175
|
+
headerIdWidths,
|
|
176
|
+
nextHeaderIdWidths,
|
|
177
|
+
isResizingColumn: columnId,
|
|
178
|
+
},
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
if (action.type === actions.columnResizing) {
|
|
182
|
+
const { clientX } = action;
|
|
183
|
+
const {
|
|
184
|
+
startX = 0,
|
|
185
|
+
columnWidth = 1,
|
|
186
|
+
nextColumnWidth = 1,
|
|
187
|
+
headerIdWidths = [],
|
|
188
|
+
nextHeaderIdWidths = [],
|
|
189
|
+
} = newState.columnResizing;
|
|
190
|
+
if (!instance) {
|
|
191
|
+
return newState;
|
|
183
192
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
const deltaX = clientX - startX;
|
|
194
|
+
const newColumnWidths = getColumnWidths(
|
|
195
|
+
headerIdWidths,
|
|
196
|
+
deltaX / columnWidth,
|
|
197
|
+
);
|
|
198
|
+
const isTableWidthDecreasing =
|
|
199
|
+
calculateTableWidth(newColumnWidths, instance.flatHeaders) <
|
|
200
|
+
instance.tableWidth;
|
|
201
|
+
const newNextColumnWidths =
|
|
202
|
+
instance?.columnResizeMode === 'fit' ||
|
|
203
|
+
(instance?.columnResizeMode === 'expand' && isTableWidthDecreasing)
|
|
204
|
+
? getColumnWidths(nextHeaderIdWidths, -deltaX / nextColumnWidth)
|
|
205
|
+
: {};
|
|
206
|
+
if (
|
|
207
|
+
!isNewColumnWidthsValid(newColumnWidths, instance.flatHeaders) ||
|
|
208
|
+
!isNewColumnWidthsValid(newNextColumnWidths, instance.flatHeaders) ||
|
|
209
|
+
!isNewTableWidthValid(
|
|
210
|
+
{ ...newColumnWidths, ...newNextColumnWidths },
|
|
211
|
+
instance,
|
|
212
|
+
)
|
|
213
|
+
) {
|
|
214
|
+
return newState;
|
|
193
215
|
}
|
|
194
|
-
|
|
216
|
+
// Setting `width` here because it might take several rerenders until actual column width is set.
|
|
217
|
+
// Also setting after the actual resize happened.
|
|
218
|
+
instance?.flatHeaders.forEach((h) => {
|
|
219
|
+
if (!h.width) {
|
|
220
|
+
h.width = h.resizeWidth;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
return {
|
|
224
|
+
...newState,
|
|
225
|
+
columnResizing: {
|
|
226
|
+
...newState.columnResizing,
|
|
227
|
+
columnWidths: {
|
|
228
|
+
...newState.columnResizing.columnWidths,
|
|
229
|
+
...newColumnWidths,
|
|
230
|
+
...newNextColumnWidths,
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
if (action.type === actions.columnDoneResizing) {
|
|
236
|
+
return {
|
|
237
|
+
...newState,
|
|
238
|
+
columnResizing: {
|
|
239
|
+
...newState.columnResizing,
|
|
240
|
+
startX: undefined,
|
|
241
|
+
isResizingColumn: undefined,
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
return newState;
|
|
195
246
|
};
|
|
196
247
|
const getColumnWidths = (headerIdWidths, deltaPercentage) => {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
248
|
+
const columnWidths = {};
|
|
249
|
+
headerIdWidths.forEach(([headerId, headerWidth]) => {
|
|
250
|
+
columnWidths[headerId] = Math.max(
|
|
251
|
+
headerWidth + headerWidth * deltaPercentage,
|
|
252
|
+
0,
|
|
253
|
+
);
|
|
254
|
+
});
|
|
255
|
+
return columnWidths;
|
|
202
256
|
};
|
|
203
257
|
const isNewColumnWidthsValid = (columnWidths, headers) => {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
258
|
+
// Prevents from going outside the column bounds
|
|
259
|
+
if (Object.values(columnWidths).some((width) => width <= 1)) {
|
|
260
|
+
return false;
|
|
261
|
+
}
|
|
262
|
+
for (const [headerId, width] of Object.entries(columnWidths)) {
|
|
263
|
+
const header = headers?.find((h) => h.id === headerId);
|
|
264
|
+
if (!header) {
|
|
265
|
+
continue;
|
|
207
266
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
const minWidth = header.minWidth || 0;
|
|
214
|
-
const maxWidth = header.maxWidth || Infinity;
|
|
215
|
-
if (width < minWidth || width > maxWidth) {
|
|
216
|
-
return false;
|
|
217
|
-
}
|
|
267
|
+
const minWidth = header.minWidth || 0;
|
|
268
|
+
const maxWidth = header.maxWidth || Infinity;
|
|
269
|
+
if (width < minWidth || width > maxWidth) {
|
|
270
|
+
return false;
|
|
218
271
|
}
|
|
219
|
-
|
|
272
|
+
}
|
|
273
|
+
return true;
|
|
220
274
|
};
|
|
221
275
|
const isNewTableWidthValid = (columnWidths, instance) => {
|
|
222
|
-
|
|
223
|
-
return true;
|
|
224
|
-
}
|
|
225
|
-
let newTableWidth = 0;
|
|
226
|
-
for (const header of instance.flatHeaders) {
|
|
227
|
-
newTableWidth += columnWidths[header.id]
|
|
228
|
-
? columnWidths[header.id]
|
|
229
|
-
: getHeaderWidth(header);
|
|
230
|
-
}
|
|
231
|
-
// `tableWidth` is whole number therefore we need to round the `newTableWidth`
|
|
232
|
-
if (Math.round(newTableWidth) < instance.tableWidth) {
|
|
233
|
-
return false;
|
|
234
|
-
}
|
|
276
|
+
if (instance.columnResizeMode === 'fit') {
|
|
235
277
|
return true;
|
|
278
|
+
}
|
|
279
|
+
let newTableWidth = 0;
|
|
280
|
+
for (const header of instance.flatHeaders) {
|
|
281
|
+
newTableWidth += columnWidths[header.id]
|
|
282
|
+
? columnWidths[header.id]
|
|
283
|
+
: getHeaderWidth(header);
|
|
284
|
+
}
|
|
285
|
+
// `tableWidth` is whole number therefore we need to round the `newTableWidth`
|
|
286
|
+
if (Math.round(newTableWidth) < instance.tableWidth) {
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
return true;
|
|
236
290
|
};
|
|
237
291
|
const useInstanceBeforeDimensions = (instance) => {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
292
|
+
const {
|
|
293
|
+
flatHeaders,
|
|
294
|
+
getHooks,
|
|
295
|
+
state: { columnResizing },
|
|
296
|
+
columnResizeMode,
|
|
297
|
+
} = instance;
|
|
298
|
+
const getInstance = useGetLatest(instance);
|
|
299
|
+
flatHeaders.forEach((header, index) => {
|
|
300
|
+
const resizeWidth = columnResizing.columnWidths[header.id];
|
|
301
|
+
header.width = resizeWidth || header.width || header.originalWidth;
|
|
302
|
+
header.isResizing = columnResizing.isResizingColumn === header.id;
|
|
303
|
+
const headerToResize =
|
|
304
|
+
header.disableResizing && columnResizeMode === 'fit'
|
|
305
|
+
? getPreviousResizableHeader(header, instance)
|
|
306
|
+
: header;
|
|
307
|
+
// When `columnResizeMode` is `expand` and it is a last column,
|
|
308
|
+
// then try to find some column on the left side to resize
|
|
309
|
+
// when table width is decreasing.
|
|
310
|
+
const nextResizableHeader =
|
|
311
|
+
columnResizeMode === 'expand' && index === flatHeaders.length - 1
|
|
312
|
+
? getPreviousResizableHeader(header, instance)
|
|
313
|
+
: getNextResizableHeader(header, instance);
|
|
314
|
+
header.canResize =
|
|
315
|
+
header.disableResizing != null ? !header.disableResizing : true;
|
|
316
|
+
// Show resizer when header is resizable or when next header is resizable
|
|
317
|
+
// and there is resizable columns on the left side of the resizer.
|
|
318
|
+
if (columnResizeMode === 'fit') {
|
|
319
|
+
header.isResizerVisible =
|
|
320
|
+
(header.canResize && !!nextResizableHeader) ||
|
|
321
|
+
(headerToResize && !!instance.flatHeaders[index + 1]?.canResize);
|
|
322
|
+
// When resize mode is `expand` show resizer on the current resizable column.
|
|
323
|
+
} else {
|
|
324
|
+
header.isResizerVisible = header.canResize && !!headerToResize;
|
|
325
|
+
}
|
|
326
|
+
header.getResizerProps = makePropGetter(getHooks().getResizerProps, {
|
|
327
|
+
instance: getInstance(),
|
|
328
|
+
header: headerToResize,
|
|
329
|
+
nextHeader: nextResizableHeader,
|
|
272
330
|
});
|
|
331
|
+
});
|
|
273
332
|
};
|
|
274
333
|
const getPreviousResizableHeader = (headerColumn, instance) => {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
334
|
+
const headersList = (
|
|
335
|
+
headerColumn.parent?.columns || instance.flatHeaders
|
|
336
|
+
).filter(({ isVisible }) => isVisible);
|
|
337
|
+
const headerIndex = headersList.findIndex((h) => h.id === headerColumn.id);
|
|
338
|
+
return [...headersList]
|
|
339
|
+
.slice(0, headerIndex)
|
|
340
|
+
.reverse()
|
|
341
|
+
.find((h) => !h.disableResizing);
|
|
282
342
|
};
|
|
283
343
|
const getNextResizableHeader = (headerColumn, instance) => {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
344
|
+
const headersList = (
|
|
345
|
+
headerColumn.parent?.columns || instance.flatHeaders
|
|
346
|
+
).filter(({ isVisible }) => isVisible);
|
|
347
|
+
const headerIndex = headersList.findIndex((h) => h.id === headerColumn.id);
|
|
348
|
+
return [...headersList]
|
|
349
|
+
.slice(headerIndex + 1)
|
|
350
|
+
.find((h) => !h.disableResizing);
|
|
290
351
|
};
|
|
291
352
|
function getLeafHeaders(header) {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
353
|
+
const leafHeaders = [];
|
|
354
|
+
const recurseHeader = (header) => {
|
|
355
|
+
if (header.columns && header.columns.length) {
|
|
356
|
+
header.columns.map(recurseHeader);
|
|
357
|
+
}
|
|
358
|
+
leafHeaders.push(header);
|
|
359
|
+
};
|
|
360
|
+
recurseHeader(header);
|
|
361
|
+
return leafHeaders;
|
|
301
362
|
}
|
|
302
363
|
const getHeaderWidth = (header) => {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
364
|
+
if (!header) {
|
|
365
|
+
return 0;
|
|
366
|
+
}
|
|
367
|
+
return Number(header.width || header.resizeWidth || 0);
|
|
307
368
|
};
|
|
308
369
|
const calculateTableWidth = (columnWidths, headers) => {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
370
|
+
let newTableWidth = 0;
|
|
371
|
+
for (const header of headers) {
|
|
372
|
+
newTableWidth += columnWidths[header.id]
|
|
373
|
+
? columnWidths[header.id]
|
|
374
|
+
: getHeaderWidth(header);
|
|
375
|
+
}
|
|
376
|
+
return newTableWidth;
|
|
316
377
|
};
|
|
317
378
|
// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#safely_detecting_option_support
|
|
318
379
|
let passiveSupported = null;
|
|
319
380
|
const passiveEventSupported = () => {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
return passiveSupported;
|
|
323
|
-
}
|
|
324
|
-
try {
|
|
325
|
-
const options = {
|
|
326
|
-
once: true,
|
|
327
|
-
get passive() {
|
|
328
|
-
passiveSupported = true;
|
|
329
|
-
return false;
|
|
330
|
-
},
|
|
331
|
-
};
|
|
332
|
-
window.addEventListener('test', () => { }, options);
|
|
333
|
-
}
|
|
334
|
-
catch (_a) {
|
|
335
|
-
passiveSupported = false;
|
|
336
|
-
}
|
|
381
|
+
// memoize support to avoid adding multiple test events
|
|
382
|
+
if (passiveSupported != null) {
|
|
337
383
|
return passiveSupported;
|
|
384
|
+
}
|
|
385
|
+
try {
|
|
386
|
+
const options = {
|
|
387
|
+
once: true,
|
|
388
|
+
get passive() {
|
|
389
|
+
passiveSupported = true;
|
|
390
|
+
return false;
|
|
391
|
+
},
|
|
392
|
+
};
|
|
393
|
+
window.addEventListener('test', () => {}, options);
|
|
394
|
+
} catch {
|
|
395
|
+
passiveSupported = false;
|
|
396
|
+
}
|
|
397
|
+
return passiveSupported;
|
|
338
398
|
};
|