@itwin/itwinui-react 3.13.4 → 3.14.1
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 +53 -0
- package/DEV-cjs/core/Alert/Alert.js +125 -72
- package/DEV-cjs/core/Avatar/Avatar.js +70 -44
- package/DEV-cjs/core/AvatarGroup/AvatarGroup.js +71 -34
- package/DEV-cjs/core/Backdrop/Backdrop.js +26 -22
- package/DEV-cjs/core/Badge/Badge.js +49 -42
- package/DEV-cjs/core/Breadcrumbs/Breadcrumbs.js +165 -86
- package/DEV-cjs/core/ButtonGroup/ButtonGroup.js +141 -79
- package/DEV-cjs/core/Buttons/Button.js +95 -49
- package/DEV-cjs/core/Buttons/DropdownButton.js +53 -35
- package/DEV-cjs/core/Buttons/IconButton.js +77 -41
- package/DEV-cjs/core/Buttons/IdeasButton.js +30 -26
- package/DEV-cjs/core/Buttons/SplitButton.js +90 -56
- package/DEV-cjs/core/Carousel/Carousel.js +77 -67
- package/DEV-cjs/core/Carousel/CarouselContext.js +10 -10
- package/DEV-cjs/core/Carousel/CarouselDot.js +31 -27
- package/DEV-cjs/core/Carousel/CarouselDotsList.js +148 -113
- package/DEV-cjs/core/Carousel/CarouselNavigation.js +98 -69
- package/DEV-cjs/core/Carousel/CarouselSlide.js +51 -42
- package/DEV-cjs/core/Carousel/CarouselSlider.js +68 -61
- package/DEV-cjs/core/Checkbox/Checkbox.js +96 -54
- package/DEV-cjs/core/ColorPicker/ColorBuilder.js +274 -228
- package/DEV-cjs/core/ColorPicker/ColorInputPanel.js +398 -366
- package/DEV-cjs/core/ColorPicker/ColorPalette.js +56 -36
- package/DEV-cjs/core/ColorPicker/ColorPicker.js +88 -69
- package/DEV-cjs/core/ColorPicker/ColorPickerContext.js +22 -18
- package/DEV-cjs/core/ColorPicker/ColorSwatch.js +50 -33
- package/DEV-cjs/core/ComboBox/ComboBox.js +395 -294
- package/DEV-cjs/core/ComboBox/ComboBox.types-test.js +87 -80
- package/DEV-cjs/core/ComboBox/ComboBoxEndIcon.js +36 -27
- package/DEV-cjs/core/ComboBox/ComboBoxInput.js +190 -128
- package/DEV-cjs/core/ComboBox/ComboBoxInputContainer.js +40 -28
- package/DEV-cjs/core/ComboBox/ComboBoxMenu.js +132 -93
- package/DEV-cjs/core/ComboBox/ComboBoxMenuItem.js +75 -34
- package/DEV-cjs/core/ComboBox/ComboBoxMultipleContainer.js +18 -18
- package/DEV-cjs/core/ComboBox/helpers.js +15 -14
- package/DEV-cjs/core/DatePicker/DatePicker.js +556 -353
- package/DEV-cjs/core/Dialog/Dialog.js +86 -58
- package/DEV-cjs/core/Dialog/DialogBackdrop.js +52 -39
- package/DEV-cjs/core/Dialog/DialogButtonBar.js +9 -9
- package/DEV-cjs/core/Dialog/DialogContent.js +9 -9
- package/DEV-cjs/core/Dialog/DialogContext.js +16 -15
- package/DEV-cjs/core/Dialog/DialogDragContext.js +20 -19
- package/DEV-cjs/core/Dialog/DialogMain.js +174 -122
- package/DEV-cjs/core/Dialog/DialogTitleBar.js +68 -33
- package/DEV-cjs/core/Dialog/DialogTitleBarTitle.js +9 -9
- package/DEV-cjs/core/Divider/Divider.js +22 -22
- package/DEV-cjs/core/DropdownMenu/DropdownMenu.js +63 -37
- package/DEV-cjs/core/ExpandableBlock/ExpandableBlock.js +195 -125
- package/DEV-cjs/core/Fieldset/Fieldset.js +34 -23
- package/DEV-cjs/core/FileUpload/FileEmptyCard.js +43 -24
- package/DEV-cjs/core/FileUpload/FileUpload.js +94 -57
- package/DEV-cjs/core/FileUpload/FileUploadCard.js +181 -124
- package/DEV-cjs/core/FileUpload/FileUploadTemplate.js +63 -35
- package/DEV-cjs/core/Flex/Flex.js +78 -77
- package/DEV-cjs/core/Footer/Footer.js +119 -85
- package/DEV-cjs/core/Footer/FooterItem.js +9 -9
- package/DEV-cjs/core/Footer/FooterList.js +9 -9
- package/DEV-cjs/core/Footer/FooterSeparator.js +10 -10
- package/DEV-cjs/core/Header/Header.js +86 -44
- package/DEV-cjs/core/Header/HeaderBasicButton.js +30 -20
- package/DEV-cjs/core/Header/HeaderBreadcrumbs.js +59 -36
- package/DEV-cjs/core/Header/HeaderButton.js +90 -46
- package/DEV-cjs/core/Header/HeaderDropdownButton.js +55 -44
- package/DEV-cjs/core/Header/HeaderLogo.js +53 -30
- package/DEV-cjs/core/Header/HeaderSplitButton.js +72 -44
- package/DEV-cjs/core/Icon/Icon.js +41 -35
- package/DEV-cjs/core/InformationPanel/InformationPanel.js +97 -62
- package/DEV-cjs/core/InformationPanel/InformationPanelBody.js +9 -9
- package/DEV-cjs/core/InformationPanel/InformationPanelContent.js +30 -22
- package/DEV-cjs/core/InformationPanel/InformationPanelHeader.js +51 -32
- package/DEV-cjs/core/InformationPanel/InformationPanelWrapper.js +12 -10
- package/DEV-cjs/core/Input/Input.js +26 -26
- package/DEV-cjs/core/InputGrid/InputGrid.js +151 -117
- package/DEV-cjs/core/InputGroup/InputGroup.js +85 -48
- package/DEV-cjs/core/InputWithDecorations/InputWithDecorations.js +60 -44
- package/DEV-cjs/core/Label/Label.js +40 -25
- package/DEV-cjs/core/LabeledInput/LabeledInput.js +86 -42
- package/DEV-cjs/core/LabeledSelect/LabeledSelect.js +71 -39
- package/DEV-cjs/core/LabeledSelect/LabeledSelect.types-test.js +100 -81
- package/DEV-cjs/core/LabeledTextarea/LabeledTextarea.js +19 -17
- package/DEV-cjs/core/LinkAction/LinkAction.js +27 -26
- package/DEV-cjs/core/List/List.js +11 -11
- package/DEV-cjs/core/List/ListItem.js +42 -34
- package/DEV-cjs/core/Menu/Menu.js +213 -127
- package/DEV-cjs/core/Menu/MenuDivider.js +11 -11
- package/DEV-cjs/core/Menu/MenuExtraContent.js +10 -10
- package/DEV-cjs/core/Menu/MenuItem.js +140 -77
- package/DEV-cjs/core/Menu/MenuItemSkeleton.js +65 -40
- package/DEV-cjs/core/Modal/Modal.js +54 -31
- package/DEV-cjs/core/Modal/ModalButtonBar.js +9 -9
- package/DEV-cjs/core/Modal/ModalContent.js +9 -9
- package/DEV-cjs/core/NonIdealState/ErrorPage.js +208 -127
- package/DEV-cjs/core/NonIdealState/NonIdealState.js +84 -35
- package/DEV-cjs/core/NotificationMarker/NotificationMarker.js +39 -25
- package/DEV-cjs/core/Overlay/Overlay.js +55 -41
- package/DEV-cjs/core/Popover/Popover.js +292 -193
- package/DEV-cjs/core/ProgressIndicators/ProgressLinear.js +70 -33
- package/DEV-cjs/core/ProgressIndicators/ProgressRadial.js +67 -40
- package/DEV-cjs/core/Radio/Radio.js +66 -38
- package/DEV-cjs/core/RadioTiles/RadioTile.js +88 -43
- package/DEV-cjs/core/RadioTiles/RadioTileGroup.js +29 -21
- package/DEV-cjs/core/SearchBox/SearchBox.js +203 -130
- package/DEV-cjs/core/Select/Select.js +457 -274
- package/DEV-cjs/core/Select/Select.types-test.js +112 -87
- package/DEV-cjs/core/Select/SelectTag.js +32 -24
- package/DEV-cjs/core/Select/SelectTagContainer.js +38 -25
- package/DEV-cjs/core/SideNavigation/SideNavigation.js +132 -64
- package/DEV-cjs/core/SideNavigation/SidenavButton.js +55 -33
- package/DEV-cjs/core/SideNavigation/SidenavSubmenu.js +33 -22
- package/DEV-cjs/core/SideNavigation/SidenavSubmenuHeader.js +41 -24
- package/DEV-cjs/core/SkipToContentLink/SkipToContentLink.js +28 -21
- package/DEV-cjs/core/Slider/Slider.js +352 -259
- package/DEV-cjs/core/Slider/Thumb.js +111 -98
- package/DEV-cjs/core/Slider/Track.js +93 -61
- package/DEV-cjs/core/StatusMessage/StatusMessage.js +46 -27
- package/DEV-cjs/core/Stepper/Stepper.js +86 -44
- package/DEV-cjs/core/Stepper/StepperStep.js +113 -59
- package/DEV-cjs/core/Stepper/WorkflowDiagram.js +37 -29
- package/DEV-cjs/core/Stepper/WorkflowDiagramStep.js +48 -28
- package/DEV-cjs/core/Surface/Surface.js +98 -76
- package/DEV-cjs/core/Table/ColumnHeader.js +194 -0
- package/DEV-cjs/core/Table/SubRowExpander.js +45 -34
- package/DEV-cjs/core/Table/Table.js +688 -511
- package/DEV-cjs/core/Table/TableCell.js +104 -61
- package/DEV-cjs/core/Table/TablePaginator.js +314 -178
- package/DEV-cjs/core/Table/TableRowMemoized.js +183 -90
- package/DEV-cjs/core/Table/actionHandlers/expandHandler.js +18 -18
- package/DEV-cjs/core/Table/actionHandlers/filterHandler.js +31 -23
- package/DEV-cjs/core/Table/actionHandlers/index.js +32 -31
- package/DEV-cjs/core/Table/actionHandlers/resizeHandler.js +26 -25
- package/DEV-cjs/core/Table/actionHandlers/selectHandler.js +124 -88
- package/DEV-cjs/core/Table/cells/DefaultCell.js +93 -44
- package/DEV-cjs/core/Table/cells/EditableCell.js +85 -63
- package/DEV-cjs/core/Table/cells/index.js +15 -14
- package/DEV-cjs/core/Table/columns/actionColumn.js +100 -78
- package/DEV-cjs/core/Table/columns/expanderColumn.js +56 -49
- package/DEV-cjs/core/Table/columns/index.js +25 -24
- package/DEV-cjs/core/Table/columns/selectionColumn.js +79 -58
- package/DEV-cjs/core/Table/filters/BaseFilter.js +31 -25
- package/DEV-cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +108 -72
- package/DEV-cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +115 -91
- package/DEV-cjs/core/Table/filters/FilterButtonBar.js +56 -33
- package/DEV-cjs/core/Table/filters/FilterToggle.js +71 -54
- package/DEV-cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +56 -60
- package/DEV-cjs/core/Table/filters/TextFilter/TextFilter.js +38 -36
- package/DEV-cjs/core/Table/filters/customFilterFunctions.js +26 -20
- package/DEV-cjs/core/Table/filters/defaultFilterFunctions.js +119 -77
- package/DEV-cjs/core/Table/filters/index.js +23 -22
- package/DEV-cjs/core/Table/filters/tableFilters.js +28 -25
- package/DEV-cjs/core/Table/filters/types.js +3 -3
- package/DEV-cjs/core/Table/hooks/index.js +39 -38
- package/DEV-cjs/core/Table/hooks/useColumnDragAndDrop.js +118 -101
- package/DEV-cjs/core/Table/hooks/useExpanderCell.js +39 -29
- package/DEV-cjs/core/Table/hooks/useResizeColumns.js +346 -248
- package/DEV-cjs/core/Table/hooks/useScrollToRow.js +42 -38
- package/DEV-cjs/core/Table/hooks/useSelectionCell.js +26 -19
- package/DEV-cjs/core/Table/hooks/useStickyColumns.js +55 -47
- package/DEV-cjs/core/Table/hooks/useSubRowFiltering.js +89 -86
- package/DEV-cjs/core/Table/hooks/useSubRowSelection.js +39 -39
- package/DEV-cjs/core/Table/index.js +42 -41
- package/DEV-cjs/core/Table/utils.js +66 -64
- package/DEV-cjs/core/Tabs/Tabs.js +388 -260
- package/DEV-cjs/core/Tag/Tag.js +80 -42
- package/DEV-cjs/core/Tag/TagContainer.js +31 -23
- package/DEV-cjs/core/Textarea/Textarea.js +19 -17
- package/DEV-cjs/core/ThemeProvider/ThemeContext.js +10 -10
- package/DEV-cjs/core/ThemeProvider/ThemeProvider.js +276 -172
- package/DEV-cjs/core/Tile/Tile.js +310 -173
- package/DEV-cjs/core/TimePicker/TimePicker.js +451 -263
- package/DEV-cjs/core/Toast/Toast.js +226 -157
- package/DEV-cjs/core/Toast/Toaster.js +142 -118
- package/DEV-cjs/core/ToggleSwitch/ToggleSwitch.js +76 -42
- package/DEV-cjs/core/Tooltip/Tooltip.js +221 -170
- package/DEV-cjs/core/TransferList/TransferList.js +171 -132
- package/DEV-cjs/core/Tree/Tree.js +226 -180
- package/DEV-cjs/core/Tree/TreeContext.js +20 -18
- package/DEV-cjs/core/Tree/TreeNode.js +254 -143
- package/DEV-cjs/core/Tree/TreeNodeExpander.js +40 -31
- package/DEV-cjs/core/Typography/Anchor.js +41 -27
- package/DEV-cjs/core/Typography/Blockquote.js +26 -21
- package/DEV-cjs/core/Typography/Code.js +9 -9
- package/DEV-cjs/core/Typography/Kbd.js +43 -38
- package/DEV-cjs/core/Typography/Text.js +45 -31
- package/DEV-cjs/core/VisuallyHidden/VisuallyHidden.js +47 -30
- package/DEV-cjs/index.js +475 -474
- package/DEV-cjs/package.json +1 -0
- package/DEV-cjs/react-table/react-table.js +3 -3
- package/DEV-cjs/react-table/react-table.types-test.js +628 -476
- package/DEV-cjs/styles.js +17 -1
- package/DEV-cjs/utils/color/ColorValue.js +429 -323
- package/DEV-cjs/utils/color/index.js +5 -5
- package/DEV-cjs/utils/components/AutoclearingHiddenLiveRegion.js +31 -26
- package/DEV-cjs/utils/components/Box.js +9 -9
- package/DEV-cjs/utils/components/ButtonBase.js +41 -35
- package/DEV-cjs/utils/components/FieldsetBase.js +9 -9
- package/DEV-cjs/utils/components/FocusTrap.js +48 -45
- package/DEV-cjs/utils/components/InputContainer.js +67 -34
- package/DEV-cjs/utils/components/InputFlexContainer.js +63 -49
- package/DEV-cjs/utils/components/InputWithIcon.js +9 -9
- package/DEV-cjs/utils/components/LineClamp.js +33 -24
- package/DEV-cjs/utils/components/MiddleTextTruncation.js +37 -33
- package/DEV-cjs/utils/components/Portal.js +35 -32
- package/DEV-cjs/utils/components/Resizer.js +221 -185
- package/DEV-cjs/utils/components/ShadowRoot.js +85 -69
- package/DEV-cjs/utils/components/WithCSSTransition.js +57 -50
- package/DEV-cjs/utils/components/index.js +18 -18
- package/DEV-cjs/utils/functions/colors.js +37 -35
- package/DEV-cjs/utils/functions/date.js +15 -15
- package/DEV-cjs/utils/functions/dev.js +12 -26
- package/DEV-cjs/utils/functions/dom.js +39 -39
- package/DEV-cjs/utils/functions/focusable.js +81 -63
- package/DEV-cjs/utils/functions/import.js +28 -22
- package/DEV-cjs/utils/functions/index.js +14 -14
- package/DEV-cjs/utils/functions/numbers.js +26 -24
- package/DEV-cjs/utils/functions/polymorphic.js +56 -43
- package/DEV-cjs/utils/functions/react.js +25 -23
- package/DEV-cjs/utils/functions/supports.js +11 -10
- package/DEV-cjs/utils/hooks/index.js +21 -20
- package/DEV-cjs/utils/hooks/useContainerWidth.js +31 -26
- package/DEV-cjs/utils/hooks/useControlledState.js +28 -27
- package/DEV-cjs/utils/hooks/useDragAndDrop.js +112 -88
- package/DEV-cjs/utils/hooks/useEventListener.js +23 -28
- package/DEV-cjs/utils/hooks/useGlobals.js +46 -40
- package/DEV-cjs/utils/hooks/useId.js +17 -17
- package/DEV-cjs/utils/hooks/useIntersection.js +38 -38
- package/DEV-cjs/utils/hooks/useIsClient.js +16 -16
- package/DEV-cjs/utils/hooks/useIsomorphicLayoutEffect.js +12 -11
- package/DEV-cjs/utils/hooks/useLatestRef.js +16 -18
- package/DEV-cjs/utils/hooks/useMediaQuery.js +32 -23
- package/DEV-cjs/utils/hooks/useMergedRefs.js +25 -23
- package/DEV-cjs/utils/hooks/useOverflow.js +68 -72
- package/DEV-cjs/utils/hooks/useResizeObserver.js +31 -33
- package/DEV-cjs/utils/hooks/useSafeContext.js +15 -14
- package/DEV-cjs/utils/hooks/useSyncExternalStore.js +37 -40
- package/DEV-cjs/utils/hooks/useVirtualScroll.js +42 -40
- package/DEV-cjs/utils/hooks/useWarningLogger.js +43 -0
- package/DEV-cjs/utils/icons/StatusIconMap.js +34 -30
- package/DEV-cjs/utils/icons/Svg.js +12 -12
- package/DEV-cjs/utils/icons/SvgCalendar.js +19 -14
- package/DEV-cjs/utils/icons/SvgCaretDownSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgCaretRightSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgCaretUpSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgCheckmark.js +19 -14
- package/DEV-cjs/utils/icons/SvgCheckmarkSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronLeft.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronLeftDouble.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronRight.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronRightDouble.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronRightSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgClose.js +19 -14
- package/DEV-cjs/utils/icons/SvgCloseSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgColumnManager.js +19 -14
- package/DEV-cjs/utils/icons/SvgDocument.js +19 -14
- package/DEV-cjs/utils/icons/SvgFilter.js +19 -14
- package/DEV-cjs/utils/icons/SvgFilterHollow.js +19 -14
- package/DEV-cjs/utils/icons/SvgImportantSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgInfoCircular.js +19 -14
- package/DEV-cjs/utils/icons/SvgMore.js +19 -14
- package/DEV-cjs/utils/icons/SvgMoreVertical.js +19 -14
- package/DEV-cjs/utils/icons/SvgNew.js +19 -14
- package/DEV-cjs/utils/icons/SvgSearch.js +19 -14
- package/DEV-cjs/utils/icons/SvgSmileyHappy.js +19 -14
- package/DEV-cjs/utils/icons/SvgSortDown.js +19 -14
- package/DEV-cjs/utils/icons/SvgSortUp.js +19 -14
- package/DEV-cjs/utils/icons/SvgStatusError.js +19 -14
- package/DEV-cjs/utils/icons/SvgStatusSuccess.js +19 -14
- package/DEV-cjs/utils/icons/SvgStatusWarning.js +19 -14
- package/DEV-cjs/utils/icons/SvgSwap.js +19 -14
- package/DEV-cjs/utils/icons/SvgUpload.js +19 -14
- package/DEV-cjs/utils/icons/index.js +36 -36
- package/DEV-cjs/utils/index.js +12 -12
- package/DEV-cjs/utils/meta.js +11 -11
- package/DEV-cjs/utils/props.js +3 -3
- package/DEV-cjs/utils/providers/HydrationProvider.js +47 -35
- package/DEV-cjs/utils/providers/ScopeProvider.js +55 -53
- package/DEV-cjs/utils/providers/index.js +6 -6
- package/DEV-cjs/utils/types.js +3 -3
- package/DEV-esm/core/Alert/Alert.js +112 -57
- package/DEV-esm/core/Avatar/Avatar.js +45 -26
- package/DEV-esm/core/AvatarGroup/AvatarGroup.js +58 -21
- package/DEV-esm/core/Backdrop/Backdrop.js +13 -9
- package/DEV-esm/core/Badge/Badge.js +34 -29
- package/DEV-esm/core/Breadcrumbs/Breadcrumbs.js +151 -72
- package/DEV-esm/core/ButtonGroup/ButtonGroup.js +127 -62
- package/DEV-esm/core/Buttons/Button.js +71 -34
- package/DEV-esm/core/Buttons/DropdownButton.js +38 -20
- package/DEV-esm/core/Buttons/IconButton.js +54 -25
- package/DEV-esm/core/Buttons/IdeasButton.js +16 -12
- package/DEV-esm/core/Buttons/SplitButton.js +80 -41
- package/DEV-esm/core/Carousel/Carousel.js +58 -48
- package/DEV-esm/core/Carousel/CarouselDot.js +18 -14
- package/DEV-esm/core/Carousel/CarouselDotsList.js +134 -98
- package/DEV-esm/core/Carousel/CarouselNavigation.js +82 -53
- package/DEV-esm/core/Carousel/CarouselSlide.js +40 -29
- package/DEV-esm/core/Carousel/CarouselSlider.js +59 -48
- package/DEV-esm/core/Checkbox/Checkbox.js +79 -40
- package/DEV-esm/core/ColorPicker/ColorBuilder.js +263 -214
- package/DEV-esm/core/ColorPicker/ColorInputPanel.js +382 -350
- package/DEV-esm/core/ColorPicker/ColorPalette.js +37 -20
- package/DEV-esm/core/ColorPicker/ColorPicker.js +69 -51
- package/DEV-esm/core/ColorPicker/ColorPickerContext.js +7 -4
- package/DEV-esm/core/ColorPicker/ColorSwatch.js +29 -18
- package/DEV-esm/core/ComboBox/ComboBox.js +382 -274
- package/DEV-esm/core/ComboBox/ComboBox.types-test.js +82 -75
- package/DEV-esm/core/ComboBox/ComboBoxEndIcon.js +22 -13
- package/DEV-esm/core/ComboBox/ComboBoxInput.js +170 -114
- package/DEV-esm/core/ComboBox/ComboBoxInputContainer.js +29 -11
- package/DEV-esm/core/ComboBox/ComboBoxMenu.js +121 -79
- package/DEV-esm/core/ComboBox/ComboBoxMenuItem.js +65 -22
- package/DEV-esm/core/ComboBox/ComboBoxMultipleContainer.js +7 -7
- package/DEV-esm/core/DatePicker/DatePicker.js +527 -335
- package/DEV-esm/core/Dialog/Dialog.js +66 -38
- package/DEV-esm/core/Dialog/DialogBackdrop.js +37 -24
- package/DEV-esm/core/Dialog/DialogContext.js +1 -1
- package/DEV-esm/core/Dialog/DialogDragContext.js +5 -5
- package/DEV-esm/core/Dialog/DialogMain.js +166 -106
- package/DEV-esm/core/Dialog/DialogTitleBar.js +43 -15
- package/DEV-esm/core/Divider/Divider.js +9 -9
- package/DEV-esm/core/DropdownMenu/DropdownMenu.js +50 -24
- package/DEV-esm/core/ExpandableBlock/ExpandableBlock.js +177 -110
- package/DEV-esm/core/Fieldset/Fieldset.js +21 -10
- package/DEV-esm/core/FileUpload/FileEmptyCard.js +25 -10
- package/DEV-esm/core/FileUpload/FileUpload.js +66 -44
- package/DEV-esm/core/FileUpload/FileUploadCard.js +163 -105
- package/DEV-esm/core/FileUpload/FileUploadTemplate.js +46 -21
- package/DEV-esm/core/Flex/Flex.js +65 -64
- package/DEV-esm/core/Footer/Footer.js +96 -64
- package/DEV-esm/core/Footer/FooterSeparator.js +1 -1
- package/DEV-esm/core/Header/Header.js +71 -29
- package/DEV-esm/core/Header/HeaderBasicButton.js +14 -7
- package/DEV-esm/core/Header/HeaderBreadcrumbs.js +39 -23
- package/DEV-esm/core/Header/HeaderButton.js +70 -32
- package/DEV-esm/core/Header/HeaderDropdownButton.js +41 -29
- package/DEV-esm/core/Header/HeaderLogo.js +40 -17
- package/DEV-esm/core/Header/HeaderSplitButton.js +60 -30
- package/DEV-esm/core/Icon/Icon.js +28 -22
- package/DEV-esm/core/InformationPanel/InformationPanel.js +84 -49
- package/DEV-esm/core/InformationPanel/InformationPanelContent.js +18 -8
- package/DEV-esm/core/InformationPanel/InformationPanelHeader.js +37 -16
- package/DEV-esm/core/InformationPanel/InformationPanelWrapper.js +3 -1
- package/DEV-esm/core/Input/Input.js +13 -13
- package/DEV-esm/core/InputGrid/InputGrid.js +128 -98
- package/DEV-esm/core/InputGroup/InputGroup.js +66 -32
- package/DEV-esm/core/InputWithDecorations/InputWithDecorations.js +59 -34
- package/DEV-esm/core/Label/Label.js +27 -12
- package/DEV-esm/core/LabeledInput/LabeledInput.js +65 -24
- package/DEV-esm/core/LabeledSelect/LabeledSelect.js +57 -25
- package/DEV-esm/core/LabeledSelect/LabeledSelect.types-test.js +95 -76
- package/DEV-esm/core/LabeledTextarea/LabeledTextarea.js +8 -6
- package/DEV-esm/core/LinkAction/LinkAction.js +8 -8
- package/DEV-esm/core/List/List.js +2 -2
- package/DEV-esm/core/List/ListItem.js +28 -20
- package/DEV-esm/core/Menu/Menu.js +207 -111
- package/DEV-esm/core/Menu/MenuDivider.js +2 -2
- package/DEV-esm/core/Menu/MenuExtraContent.js +1 -1
- package/DEV-esm/core/Menu/MenuItem.js +130 -63
- package/DEV-esm/core/Menu/MenuItemSkeleton.js +47 -26
- package/DEV-esm/core/Modal/Modal.js +43 -20
- package/DEV-esm/core/NonIdealState/ErrorPage.js +159 -114
- package/DEV-esm/core/NonIdealState/NonIdealState.js +65 -22
- package/DEV-esm/core/NotificationMarker/NotificationMarker.js +26 -12
- package/DEV-esm/core/Overlay/Overlay.js +44 -30
- package/DEV-esm/core/Popover/Popover.js +294 -173
- package/DEV-esm/core/ProgressIndicators/ProgressLinear.js +52 -19
- package/DEV-esm/core/ProgressIndicators/ProgressRadial.js +52 -27
- package/DEV-esm/core/Radio/Radio.js +50 -25
- package/DEV-esm/core/RadioTiles/RadioTile.js +63 -30
- package/DEV-esm/core/RadioTiles/RadioTileGroup.js +17 -9
- package/DEV-esm/core/SearchBox/SearchBox.js +200 -118
- package/DEV-esm/core/Select/Select.js +434 -256
- package/DEV-esm/core/Select/Select.types-test.js +107 -82
- package/DEV-esm/core/Select/SelectTag.js +19 -11
- package/DEV-esm/core/Select/SelectTagContainer.js +21 -11
- package/DEV-esm/core/SideNavigation/SideNavigation.js +103 -46
- package/DEV-esm/core/SideNavigation/SidenavButton.js +39 -18
- package/DEV-esm/core/SideNavigation/SidenavSubmenu.js +17 -9
- package/DEV-esm/core/SideNavigation/SidenavSubmenuHeader.js +25 -11
- package/DEV-esm/core/SkipToContentLink/SkipToContentLink.js +12 -8
- package/DEV-esm/core/Slider/Slider.js +317 -244
- package/DEV-esm/core/Slider/Thumb.js +97 -84
- package/DEV-esm/core/Slider/Track.js +77 -48
- package/DEV-esm/core/StatusMessage/StatusMessage.js +32 -13
- package/DEV-esm/core/Stepper/Stepper.js +69 -30
- package/DEV-esm/core/Stepper/StepperStep.js +93 -45
- package/DEV-esm/core/Stepper/WorkflowDiagram.js +23 -15
- package/DEV-esm/core/Stepper/WorkflowDiagramStep.js +28 -14
- package/DEV-esm/core/Surface/Surface.js +85 -63
- package/DEV-esm/core/Table/ColumnHeader.js +188 -0
- package/DEV-esm/core/Table/SubRowExpander.js +33 -22
- package/DEV-esm/core/Table/Table.js +695 -491
- package/DEV-esm/core/Table/TableCell.js +80 -44
- package/DEV-esm/core/Table/TablePaginator.js +305 -161
- package/DEV-esm/core/Table/TableRowMemoized.js +167 -73
- package/DEV-esm/core/Table/actionHandlers/expandHandler.js +10 -10
- package/DEV-esm/core/Table/actionHandlers/filterHandler.js +23 -15
- package/DEV-esm/core/Table/actionHandlers/index.js +5 -1
- package/DEV-esm/core/Table/actionHandlers/resizeHandler.js +14 -14
- package/DEV-esm/core/Table/actionHandlers/selectHandler.js +108 -73
- package/DEV-esm/core/Table/cells/DefaultCell.js +79 -30
- package/DEV-esm/core/Table/cells/EditableCell.js +70 -50
- package/DEV-esm/core/Table/columns/actionColumn.js +81 -59
- package/DEV-esm/core/Table/columns/expanderColumn.js +38 -32
- package/DEV-esm/core/Table/columns/selectionColumn.js +62 -42
- package/DEV-esm/core/Table/filters/BaseFilter.js +16 -13
- package/DEV-esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +92 -56
- package/DEV-esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +101 -77
- package/DEV-esm/core/Table/filters/FilterButtonBar.js +42 -19
- package/DEV-esm/core/Table/filters/FilterToggle.js +58 -40
- package/DEV-esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +42 -46
- package/DEV-esm/core/Table/filters/TextFilter/TextFilter.js +24 -22
- package/DEV-esm/core/Table/filters/customFilterFunctions.js +18 -12
- package/DEV-esm/core/Table/filters/defaultFilterFunctions.js +111 -69
- package/DEV-esm/core/Table/filters/tableFilters.js +15 -12
- package/DEV-esm/core/Table/filters/types.js +1 -1
- package/DEV-esm/core/Table/hooks/useColumnDragAndDrop.js +100 -91
- package/DEV-esm/core/Table/hooks/useExpanderCell.js +26 -18
- package/DEV-esm/core/Table/hooks/useResizeColumns.js +333 -238
- package/DEV-esm/core/Table/hooks/useScrollToRow.js +32 -28
- package/DEV-esm/core/Table/hooks/useSelectionCell.js +17 -10
- package/DEV-esm/core/Table/hooks/useStickyColumns.js +46 -38
- package/DEV-esm/core/Table/hooks/useSubRowFiltering.js +78 -75
- package/DEV-esm/core/Table/hooks/useSubRowSelection.js +29 -29
- package/DEV-esm/core/Table/index.js +5 -1
- package/DEV-esm/core/Table/utils.js +45 -44
- package/DEV-esm/core/Tabs/Tabs.js +372 -243
- package/DEV-esm/core/Tag/Tag.js +55 -27
- package/DEV-esm/core/Tag/TagContainer.js +18 -10
- package/DEV-esm/core/Textarea/Textarea.js +8 -6
- package/DEV-esm/core/ThemeProvider/ThemeProvider.js +258 -155
- package/DEV-esm/core/Tile/Tile.js +286 -157
- package/DEV-esm/core/TimePicker/TimePicker.js +438 -250
- package/DEV-esm/core/Toast/Toast.js +199 -138
- package/DEV-esm/core/Toast/Toaster.js +114 -94
- package/DEV-esm/core/ToggleSwitch/ToggleSwitch.js +60 -29
- package/DEV-esm/core/Tooltip/Tooltip.js +229 -159
- package/DEV-esm/core/TransferList/TransferList.js +146 -112
- package/DEV-esm/core/Tree/Tree.js +226 -175
- package/DEV-esm/core/Tree/TreeContext.js +5 -4
- package/DEV-esm/core/Tree/TreeNode.js +226 -129
- package/DEV-esm/core/Tree/TreeNodeExpander.js +24 -16
- package/DEV-esm/core/Typography/Anchor.js +22 -12
- package/DEV-esm/core/Typography/Blockquote.js +13 -8
- package/DEV-esm/core/Typography/Kbd.js +25 -21
- package/DEV-esm/core/Typography/Text.js +27 -14
- package/DEV-esm/core/VisuallyHidden/VisuallyHidden.js +34 -17
- package/DEV-esm/index.js +21 -3
- package/DEV-esm/react-table/react-table.js +1 -1
- package/DEV-esm/react-table/react-table.types-test.js +635 -471
- package/DEV-esm/styles.js +7 -10
- package/DEV-esm/utils/color/ColorValue.js +406 -304
- package/DEV-esm/utils/components/AutoclearingHiddenLiveRegion.js +16 -14
- package/DEV-esm/utils/components/ButtonBase.js +27 -21
- package/DEV-esm/utils/components/FocusTrap.js +36 -33
- package/DEV-esm/utils/components/InputContainer.js +52 -19
- package/DEV-esm/utils/components/InputFlexContainer.js +31 -27
- package/DEV-esm/utils/components/LineClamp.js +21 -12
- package/DEV-esm/utils/components/MiddleTextTruncation.js +26 -22
- package/DEV-esm/utils/components/Portal.js +11 -11
- package/DEV-esm/utils/components/Resizer.js +215 -175
- package/DEV-esm/utils/components/ShadowRoot.js +72 -56
- package/DEV-esm/utils/components/WithCSSTransition.js +45 -38
- package/DEV-esm/utils/functions/colors.js +21 -20
- package/DEV-esm/utils/functions/date.js +7 -7
- package/DEV-esm/utils/functions/dev.js +5 -11
- package/DEV-esm/utils/functions/dom.js +18 -18
- package/DEV-esm/utils/functions/focusable.js +62 -45
- package/DEV-esm/utils/functions/import.js +20 -14
- package/DEV-esm/utils/functions/numbers.js +11 -9
- package/DEV-esm/utils/functions/polymorphic.js +42 -29
- package/DEV-esm/utils/functions/react.js +14 -12
- package/DEV-esm/utils/functions/supports.js +2 -1
- package/DEV-esm/utils/hooks/index.js +1 -0
- package/DEV-esm/utils/hooks/useContainerWidth.js +14 -14
- package/DEV-esm/utils/hooks/useControlledState.js +18 -17
- package/DEV-esm/utils/hooks/useDragAndDrop.js +100 -76
- package/DEV-esm/utils/hooks/useEventListener.js +13 -18
- package/DEV-esm/utils/hooks/useGlobals.js +29 -24
- package/DEV-esm/utils/hooks/useId.js +5 -6
- package/DEV-esm/utils/hooks/useIntersection.js +27 -27
- package/DEV-esm/utils/hooks/useIsClient.js +6 -6
- package/DEV-esm/utils/hooks/useIsomorphicLayoutEffect.js +2 -1
- package/DEV-esm/utils/hooks/useLatestRef.js +6 -8
- package/DEV-esm/utils/hooks/useMediaQuery.js +17 -12
- package/DEV-esm/utils/hooks/useMergedRefs.js +10 -9
- package/DEV-esm/utils/hooks/useOverflow.js +57 -59
- package/DEV-esm/utils/hooks/useResizeObserver.js +20 -22
- package/DEV-esm/utils/hooks/useSafeContext.js +5 -4
- package/DEV-esm/utils/hooks/useSyncExternalStore.js +27 -30
- package/DEV-esm/utils/hooks/useVirtualScroll.js +31 -29
- package/DEV-esm/utils/hooks/useWarningLogger.js +31 -0
- package/DEV-esm/utils/icons/StatusIconMap.js +20 -16
- package/DEV-esm/utils/icons/Svg.js +3 -3
- package/DEV-esm/utils/icons/SvgCalendar.js +8 -3
- package/DEV-esm/utils/icons/SvgCaretDownSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgCaretRightSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgCaretUpSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgCheckmark.js +8 -3
- package/DEV-esm/utils/icons/SvgCheckmarkSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronLeft.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronLeftDouble.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronRight.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronRightDouble.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronRightSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgClose.js +8 -3
- package/DEV-esm/utils/icons/SvgCloseSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgColumnManager.js +8 -3
- package/DEV-esm/utils/icons/SvgDocument.js +8 -3
- package/DEV-esm/utils/icons/SvgFilter.js +8 -3
- package/DEV-esm/utils/icons/SvgFilterHollow.js +8 -3
- package/DEV-esm/utils/icons/SvgImportantSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgInfoCircular.js +8 -3
- package/DEV-esm/utils/icons/SvgMore.js +8 -3
- package/DEV-esm/utils/icons/SvgMoreVertical.js +8 -3
- package/DEV-esm/utils/icons/SvgNew.js +8 -3
- package/DEV-esm/utils/icons/SvgSearch.js +8 -3
- package/DEV-esm/utils/icons/SvgSmileyHappy.js +8 -3
- package/DEV-esm/utils/icons/SvgSortDown.js +8 -3
- package/DEV-esm/utils/icons/SvgSortUp.js +8 -3
- package/DEV-esm/utils/icons/SvgStatusError.js +8 -3
- package/DEV-esm/utils/icons/SvgStatusSuccess.js +8 -3
- package/DEV-esm/utils/icons/SvgStatusWarning.js +8 -3
- package/DEV-esm/utils/icons/SvgSwap.js +8 -3
- package/DEV-esm/utils/icons/SvgUpload.js +8 -3
- package/DEV-esm/utils/meta.js +2 -2
- package/DEV-esm/utils/props.js +1 -1
- package/DEV-esm/utils/providers/HydrationProvider.js +31 -20
- package/DEV-esm/utils/providers/ScopeProvider.js +36 -35
- package/DEV-esm/utils/types.js +1 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +1 -1
- package/cjs/core/Buttons/IconButton.d.ts +4 -0
- package/cjs/core/Buttons/IconButton.js +3 -1
- package/cjs/core/Carousel/Carousel.d.ts +4 -2
- package/cjs/core/Carousel/CarouselNavigation.d.ts +4 -2
- package/cjs/core/ComboBox/ComboBox.js +5 -0
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/cjs/core/List/List.d.ts +1 -1
- package/cjs/core/List/List.js +1 -1
- package/cjs/core/List/ListItem.d.ts +4 -4
- package/cjs/core/List/ListItem.js +4 -6
- package/cjs/core/Menu/Menu.js +6 -0
- package/cjs/core/Menu/MenuDivider.d.ts +1 -1
- package/cjs/core/Menu/MenuDivider.js +1 -1
- package/cjs/core/Menu/MenuItem.js +1 -1
- package/cjs/core/Overlay/Overlay.d.ts +2 -2
- package/cjs/core/Overlay/Overlay.js +2 -2
- package/cjs/core/Popover/Popover.d.ts +8 -1
- package/cjs/core/Popover/Popover.js +56 -35
- package/cjs/core/Select/Select.js +5 -0
- package/cjs/core/Table/ColumnHeader.d.ts +19 -0
- package/cjs/core/Table/ColumnHeader.js +194 -0
- package/cjs/core/Table/Table.js +38 -191
- package/cjs/core/Table/filters/BaseFilter.d.ts +2 -9
- package/cjs/core/Table/filters/BaseFilter.js +17 -15
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +3 -8
- package/cjs/core/Table/filters/FilterButtonBar.d.ts +4 -2
- package/cjs/core/Table/filters/FilterButtonBar.js +1 -0
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +3 -9
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +4 -7
- package/cjs/core/Table/filters/index.d.ts +0 -1
- package/cjs/core/Table/index.d.ts +1 -1
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/cjs/core/ThemeProvider/ThemeProvider.js +66 -49
- package/cjs/core/Tile/Tile.d.ts +10 -9
- package/cjs/core/Tile/Tile.js +8 -8
- package/cjs/core/Toast/Toaster.d.ts +3 -2
- package/cjs/core/Toast/Toaster.js +2 -1
- package/cjs/core/Tooltip/Tooltip.js +22 -7
- package/cjs/core/TransferList/TransferList.d.ts +5 -5
- package/cjs/core/TransferList/TransferList.js +2 -2
- package/cjs/styles.js +1 -1
- package/cjs/utils/functions/dev.d.ts +1 -16
- package/cjs/utils/functions/dev.js +3 -13
- package/cjs/utils/functions/polymorphic.d.ts +3 -7
- package/cjs/utils/functions/polymorphic.js +8 -5
- package/cjs/utils/hooks/index.d.ts +1 -0
- package/cjs/utils/hooks/index.js +1 -0
- package/cjs/utils/hooks/useWarningLogger.d.ts +15 -0
- package/cjs/utils/hooks/useWarningLogger.js +17 -0
- package/esm/core/Breadcrumbs/Breadcrumbs.js +2 -2
- package/esm/core/Buttons/IconButton.d.ts +4 -0
- package/esm/core/Buttons/IconButton.js +4 -2
- package/esm/core/Carousel/Carousel.d.ts +4 -2
- package/esm/core/Carousel/CarouselNavigation.d.ts +4 -2
- package/esm/core/ComboBox/ComboBox.js +5 -0
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/esm/core/List/List.d.ts +1 -1
- package/esm/core/List/List.js +1 -1
- package/esm/core/List/ListItem.d.ts +4 -4
- package/esm/core/List/ListItem.js +4 -4
- package/esm/core/Menu/Menu.js +6 -0
- package/esm/core/Menu/MenuDivider.d.ts +1 -1
- package/esm/core/Menu/MenuDivider.js +1 -1
- package/esm/core/Menu/MenuItem.js +2 -2
- package/esm/core/Overlay/Overlay.d.ts +2 -2
- package/esm/core/Overlay/Overlay.js +2 -2
- package/esm/core/Popover/Popover.d.ts +8 -1
- package/esm/core/Popover/Popover.js +57 -39
- package/esm/core/Select/Select.js +5 -0
- package/esm/core/Table/ColumnHeader.d.ts +19 -0
- package/esm/core/Table/ColumnHeader.js +188 -0
- package/esm/core/Table/Table.js +21 -179
- package/esm/core/Table/filters/BaseFilter.d.ts +2 -9
- package/esm/core/Table/filters/BaseFilter.js +15 -16
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +3 -8
- package/esm/core/Table/filters/FilterButtonBar.d.ts +4 -2
- package/esm/core/Table/filters/FilterButtonBar.js +1 -0
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +3 -9
- package/esm/core/Table/filters/TextFilter/TextFilter.js +4 -7
- package/esm/core/Table/filters/index.d.ts +0 -1
- package/esm/core/Table/index.d.ts +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/esm/core/ThemeProvider/ThemeProvider.js +65 -44
- package/esm/core/Tile/Tile.d.ts +10 -9
- package/esm/core/Tile/Tile.js +8 -8
- package/esm/core/Toast/Toaster.d.ts +3 -2
- package/esm/core/Toast/Toaster.js +2 -1
- package/esm/core/Tooltip/Tooltip.js +22 -8
- package/esm/core/TransferList/TransferList.d.ts +5 -5
- package/esm/core/TransferList/TransferList.js +2 -2
- package/esm/styles.js +1 -1
- package/esm/utils/functions/dev.d.ts +1 -16
- package/esm/utils/functions/dev.js +1 -2
- package/esm/utils/functions/polymorphic.d.ts +3 -7
- package/esm/utils/functions/polymorphic.js +8 -5
- package/esm/utils/hooks/index.d.ts +1 -0
- package/esm/utils/hooks/index.js +1 -0
- package/esm/utils/hooks/useWarningLogger.d.ts +15 -0
- package/esm/utils/hooks/useWarningLogger.js +5 -0
- package/package.json +3 -3
- package/styles.css +22 -14
package/cjs/core/Table/Table.js
CHANGED
|
@@ -26,20 +26,15 @@ const _ProgressRadial = require('../ProgressIndicators/ProgressRadial.js');
|
|
|
26
26
|
const _index = require('../../utils/index.js');
|
|
27
27
|
const _utils = require('./utils.js');
|
|
28
28
|
const _TableRowMemoized = require('./TableRowMemoized.js');
|
|
29
|
-
const _index1 = require('./filters/index.js');
|
|
30
29
|
const _customFilterFunctions = require('./filters/customFilterFunctions.js');
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
30
|
+
const _index1 = require('./hooks/index.js');
|
|
31
|
+
const _index2 = require('./actionHandlers/index.js');
|
|
32
|
+
const _index3 = require('./columns/index.js');
|
|
33
|
+
const _ColumnHeader = require('./ColumnHeader.js');
|
|
34
34
|
const singleRowSelectedAction = 'singleRowSelected';
|
|
35
35
|
const shiftRowSelectedAction = 'shiftRowSelected';
|
|
36
36
|
const tableResizeStartAction = 'tableResizeStart';
|
|
37
37
|
const tableResizeEndAction = 'tableResizeEnd';
|
|
38
|
-
const COLUMN_MIN_WIDTHS = {
|
|
39
|
-
default: 72,
|
|
40
|
-
withExpander: 108,
|
|
41
|
-
};
|
|
42
|
-
const logWarning = (0, _index.createWarningLogger)();
|
|
43
38
|
const flattenColumns = (columns) => {
|
|
44
39
|
let flatColumns = [];
|
|
45
40
|
columns.forEach((column) => {
|
|
@@ -114,7 +109,7 @@ const Table = (props) => {
|
|
|
114
109
|
let hasManualSelectionColumn = _react.useMemo(() => {
|
|
115
110
|
let flatColumns = flattenColumns(columns);
|
|
116
111
|
return flatColumns.some(
|
|
117
|
-
(column) => column.id ===
|
|
112
|
+
(column) => column.id === _index3.SELECTION_CELL_ID,
|
|
118
113
|
);
|
|
119
114
|
}, [columns]);
|
|
120
115
|
let disableUserSelect = _react.useCallback((e) => {
|
|
@@ -152,7 +147,7 @@ const Table = (props) => {
|
|
|
152
147
|
onSort?.(newState);
|
|
153
148
|
break;
|
|
154
149
|
case _reacttable.actions.setFilter:
|
|
155
|
-
currentFilter.current = (0,
|
|
150
|
+
currentFilter.current = (0, _index2.onFilterHandler)(
|
|
156
151
|
newState,
|
|
157
152
|
action,
|
|
158
153
|
previousState,
|
|
@@ -162,10 +157,10 @@ const Table = (props) => {
|
|
|
162
157
|
break;
|
|
163
158
|
case _reacttable.actions.toggleRowExpanded:
|
|
164
159
|
case _reacttable.actions.toggleAllRowsExpanded:
|
|
165
|
-
(0,
|
|
160
|
+
(0, _index2.onExpandHandler)(newState, instance, onExpand);
|
|
166
161
|
break;
|
|
167
162
|
case singleRowSelectedAction:
|
|
168
|
-
newState = (0,
|
|
163
|
+
newState = (0, _index2.onSingleSelectHandler)(
|
|
169
164
|
newState,
|
|
170
165
|
action,
|
|
171
166
|
instance,
|
|
@@ -174,7 +169,7 @@ const Table = (props) => {
|
|
|
174
169
|
);
|
|
175
170
|
break;
|
|
176
171
|
case shiftRowSelectedAction:
|
|
177
|
-
newState = (0,
|
|
172
|
+
newState = (0, _index2.onShiftSelectHandler)(
|
|
178
173
|
newState,
|
|
179
174
|
action,
|
|
180
175
|
instance,
|
|
@@ -185,7 +180,7 @@ const Table = (props) => {
|
|
|
185
180
|
case _reacttable.actions.toggleRowSelected:
|
|
186
181
|
case _reacttable.actions.toggleAllRowsSelected:
|
|
187
182
|
case _reacttable.actions.toggleAllPageRowsSelected:
|
|
188
|
-
(0,
|
|
183
|
+
(0, _index2.onToggleHandler)(
|
|
189
184
|
newState,
|
|
190
185
|
action,
|
|
191
186
|
instance,
|
|
@@ -194,10 +189,10 @@ const Table = (props) => {
|
|
|
194
189
|
);
|
|
195
190
|
break;
|
|
196
191
|
case tableResizeStartAction:
|
|
197
|
-
newState = (0,
|
|
192
|
+
newState = (0, _index2.onTableResizeStart)(newState);
|
|
198
193
|
break;
|
|
199
194
|
case tableResizeEndAction:
|
|
200
|
-
newState = (0,
|
|
195
|
+
newState = (0, _index2.onTableResizeEnd)(newState, action);
|
|
201
196
|
break;
|
|
202
197
|
default:
|
|
203
198
|
break;
|
|
@@ -249,25 +244,25 @@ const Table = (props) => {
|
|
|
249
244
|
columnResizeMode,
|
|
250
245
|
},
|
|
251
246
|
_reacttable.useFlexLayout,
|
|
252
|
-
(0,
|
|
247
|
+
(0, _index1.useResizeColumns)(ownerDocument),
|
|
253
248
|
_reacttable.useFilters,
|
|
254
|
-
(0,
|
|
249
|
+
(0, _index1.useSubRowFiltering)(hasAnySubRows),
|
|
255
250
|
_reacttable.useGlobalFilter,
|
|
256
251
|
_reacttable.useSortBy,
|
|
257
252
|
_reacttable.useExpanded,
|
|
258
253
|
_reacttable.usePagination,
|
|
259
254
|
_reacttable.useRowSelect,
|
|
260
|
-
|
|
261
|
-
(0,
|
|
262
|
-
(0,
|
|
255
|
+
_index1.useSubRowSelection,
|
|
256
|
+
(0, _index1.useExpanderCell)(subComponent, expanderCell, isRowDisabled),
|
|
257
|
+
(0, _index1.useSelectionCell)(
|
|
263
258
|
isSelectable,
|
|
264
259
|
selectionMode,
|
|
265
260
|
isRowDisabled,
|
|
266
261
|
density,
|
|
267
262
|
),
|
|
268
263
|
_reacttable.useColumnOrder,
|
|
269
|
-
(0,
|
|
270
|
-
|
|
264
|
+
(0, _index1.useColumnDragAndDrop)(enableColumnReordering),
|
|
265
|
+
_index1.useStickyColumns,
|
|
271
266
|
);
|
|
272
267
|
let {
|
|
273
268
|
getTableProps,
|
|
@@ -286,6 +281,7 @@ const Table = (props) => {
|
|
|
286
281
|
setGlobalFilter,
|
|
287
282
|
} = instance;
|
|
288
283
|
let headerGroups = _headerGroups;
|
|
284
|
+
let logWarning = (0, _index.useWarningLogger)();
|
|
289
285
|
if (1 === columns.length && 'columns' in columns[0])
|
|
290
286
|
headerGroups = _headerGroups.slice(1);
|
|
291
287
|
let ariaDataAttributes = Object.entries(rest).reduce(
|
|
@@ -300,9 +296,6 @@ const Table = (props) => {
|
|
|
300
296
|
allColumns.some(
|
|
301
297
|
(column) => null != column.filterValue && '' !== column.filterValue,
|
|
302
298
|
) || !!globalFilterValue;
|
|
303
|
-
let showFilterButton = (column) =>
|
|
304
|
-
(0 !== data.length || areFiltersSet) && column.canFilter && !!column.Filter;
|
|
305
|
-
let showSortButton = (column) => 0 !== data.length && column.canSort;
|
|
306
299
|
let onRowClickHandler = _react.useCallback(
|
|
307
300
|
(event, row) => {
|
|
308
301
|
let isDisabled = isRowDisabled?.(row.original);
|
|
@@ -384,7 +377,7 @@ const Table = (props) => {
|
|
|
384
377
|
],
|
|
385
378
|
);
|
|
386
379
|
let tableRef = _react.useRef(null);
|
|
387
|
-
let { scrollToIndex, tableRowRef } = (0,
|
|
380
|
+
let { scrollToIndex, tableRowRef } = (0, _index1.useScrollToRow)({
|
|
388
381
|
...props,
|
|
389
382
|
page,
|
|
390
383
|
});
|
|
@@ -514,13 +507,6 @@ const Table = (props) => {
|
|
|
514
507
|
_react.useEffect(() => {
|
|
515
508
|
updateStickyState();
|
|
516
509
|
}, []);
|
|
517
|
-
let isHeaderDirectClick = _react.useRef(false);
|
|
518
|
-
let columnResizeRef = _react.useCallback((el, column) => {
|
|
519
|
-
if (el) {
|
|
520
|
-
columnRefs.current[column.id] = el;
|
|
521
|
-
column.resizeWidth = el.getBoundingClientRect().width;
|
|
522
|
-
}
|
|
523
|
-
}, []);
|
|
524
510
|
return _react.createElement(
|
|
525
511
|
_utils.TableColumnsContext.Provider,
|
|
526
512
|
{
|
|
@@ -582,163 +568,24 @@ const Table = (props) => {
|
|
|
582
568
|
_index.Box,
|
|
583
569
|
headerGroupProps,
|
|
584
570
|
headerGroup.headers.map((column, index) => {
|
|
585
|
-
let
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}
|
|
603
|
-
let columnProps = column.getHeaderProps({
|
|
604
|
-
...restSortProps,
|
|
605
|
-
className: (0, _classnames.default)(
|
|
606
|
-
'iui-table-cell',
|
|
607
|
-
{
|
|
608
|
-
'iui-actionable': column.canSort,
|
|
609
|
-
'iui-sorted': column.isSorted,
|
|
610
|
-
'iui-table-cell-sticky': !!column.sticky,
|
|
611
|
-
},
|
|
612
|
-
column.columnClassName,
|
|
613
|
-
),
|
|
614
|
-
style: {
|
|
615
|
-
...(0, _utils.getCellStyle)(
|
|
616
|
-
column,
|
|
617
|
-
!!state.isTableResizing,
|
|
618
|
-
),
|
|
619
|
-
...(columnHasExpanders &&
|
|
620
|
-
(0, _utils.getSubRowStyle)({
|
|
621
|
-
density,
|
|
622
|
-
})),
|
|
623
|
-
...(0, _utils.getStickyStyle)(column, visibleColumns),
|
|
624
|
-
flexWrap: 'wrap',
|
|
625
|
-
columnGap: 'var(--iui-size-xs)',
|
|
626
|
-
},
|
|
571
|
+
let dragAndDropProps = column.getDragAndDropProps();
|
|
572
|
+
return _react.createElement(_ColumnHeader.ColumnHeader, {
|
|
573
|
+
...dragAndDropProps,
|
|
574
|
+
key: dragAndDropProps.key || column.id || index,
|
|
575
|
+
columnRefs: columnRefs,
|
|
576
|
+
column: column,
|
|
577
|
+
index: index,
|
|
578
|
+
areFiltersSet: areFiltersSet,
|
|
579
|
+
hasAnySubRows: hasAnySubRows,
|
|
580
|
+
headers: headerGroup.headers,
|
|
581
|
+
state: state,
|
|
582
|
+
data: data,
|
|
583
|
+
isResizable: isResizable,
|
|
584
|
+
columnResizeMode: columnResizeMode,
|
|
585
|
+
enableColumnReordering: enableColumnReordering,
|
|
586
|
+
density: density,
|
|
587
|
+
visibleColumns: visibleColumns,
|
|
627
588
|
});
|
|
628
|
-
return _react.createElement(
|
|
629
|
-
_index.Box,
|
|
630
|
-
{
|
|
631
|
-
...columnProps,
|
|
632
|
-
...column.getDragAndDropProps(),
|
|
633
|
-
key: columnProps.key,
|
|
634
|
-
title: void 0,
|
|
635
|
-
ref: (el) => {
|
|
636
|
-
columnResizeRef(el, column);
|
|
637
|
-
},
|
|
638
|
-
onMouseDown: () => {
|
|
639
|
-
isHeaderDirectClick.current = true;
|
|
640
|
-
},
|
|
641
|
-
onClick: (e) => {
|
|
642
|
-
if (isHeaderDirectClick.current) {
|
|
643
|
-
onClick?.(e);
|
|
644
|
-
isHeaderDirectClick.current = false;
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
tabIndex: showSortButton(column) ? 0 : void 0,
|
|
648
|
-
onKeyDown: (e) => {
|
|
649
|
-
if ('Enter' == e.key && showSortButton(column))
|
|
650
|
-
column.toggleSortBy();
|
|
651
|
-
},
|
|
652
|
-
},
|
|
653
|
-
_react.createElement(
|
|
654
|
-
_react.Fragment,
|
|
655
|
-
null,
|
|
656
|
-
_react.createElement(
|
|
657
|
-
_index.ShadowRoot,
|
|
658
|
-
null,
|
|
659
|
-
'string' == typeof column.Header
|
|
660
|
-
? _react.createElement(
|
|
661
|
-
_index.LineClamp,
|
|
662
|
-
null,
|
|
663
|
-
_react.createElement('slot', null),
|
|
664
|
-
)
|
|
665
|
-
: _react.createElement('slot', null),
|
|
666
|
-
_react.createElement('slot', {
|
|
667
|
-
name: 'actions',
|
|
668
|
-
}),
|
|
669
|
-
_react.createElement('slot', {
|
|
670
|
-
name: 'resizers',
|
|
671
|
-
}),
|
|
672
|
-
_react.createElement('slot', {
|
|
673
|
-
name: 'shadows',
|
|
674
|
-
}),
|
|
675
|
-
),
|
|
676
|
-
column.render('Header'),
|
|
677
|
-
(showFilterButton(column) || showSortButton(column)) &&
|
|
678
|
-
_react.createElement(
|
|
679
|
-
_index.Box,
|
|
680
|
-
{
|
|
681
|
-
className: 'iui-table-header-actions-container',
|
|
682
|
-
onKeyDown: (e) => e.stopPropagation(),
|
|
683
|
-
slot: 'actions',
|
|
684
|
-
},
|
|
685
|
-
showFilterButton(column) &&
|
|
686
|
-
_react.createElement(_index1.FilterToggle, {
|
|
687
|
-
column: column,
|
|
688
|
-
}),
|
|
689
|
-
showSortButton(column) &&
|
|
690
|
-
_react.createElement(
|
|
691
|
-
_index.Box,
|
|
692
|
-
{
|
|
693
|
-
className: 'iui-table-cell-end-icon',
|
|
694
|
-
},
|
|
695
|
-
column.isSortedDesc ||
|
|
696
|
-
(!column.isSorted && column.sortDescFirst)
|
|
697
|
-
? _react.createElement(_index.SvgSortDown, {
|
|
698
|
-
className: 'iui-table-sort',
|
|
699
|
-
'aria-hidden': true,
|
|
700
|
-
})
|
|
701
|
-
: _react.createElement(_index.SvgSortUp, {
|
|
702
|
-
className: 'iui-table-sort',
|
|
703
|
-
'aria-hidden': true,
|
|
704
|
-
}),
|
|
705
|
-
),
|
|
706
|
-
),
|
|
707
|
-
isResizable &&
|
|
708
|
-
column.isResizerVisible &&
|
|
709
|
-
(index !== headerGroup.headers.length - 1 ||
|
|
710
|
-
'expand' === columnResizeMode) &&
|
|
711
|
-
_react.createElement(
|
|
712
|
-
_index.Box,
|
|
713
|
-
{
|
|
714
|
-
...column.getResizerProps(),
|
|
715
|
-
className: 'iui-table-resizer',
|
|
716
|
-
slot: 'resizers',
|
|
717
|
-
},
|
|
718
|
-
_react.createElement(_index.Box, {
|
|
719
|
-
className: 'iui-table-resizer-bar',
|
|
720
|
-
}),
|
|
721
|
-
),
|
|
722
|
-
enableColumnReordering &&
|
|
723
|
-
!column.disableReordering &&
|
|
724
|
-
_react.createElement(_index.Box, {
|
|
725
|
-
className: 'iui-table-reorder-bar',
|
|
726
|
-
slot: 'resizers',
|
|
727
|
-
}),
|
|
728
|
-
'left' === column.sticky &&
|
|
729
|
-
state.sticky.isScrolledToRight &&
|
|
730
|
-
_react.createElement(_index.Box, {
|
|
731
|
-
className: 'iui-table-cell-shadow-right',
|
|
732
|
-
slot: 'shadows',
|
|
733
|
-
}),
|
|
734
|
-
'right' === column.sticky &&
|
|
735
|
-
state.sticky.isScrolledToLeft &&
|
|
736
|
-
_react.createElement(_index.Box, {
|
|
737
|
-
className: 'iui-table-cell-shadow-left',
|
|
738
|
-
slot: 'shadows',
|
|
739
|
-
}),
|
|
740
|
-
),
|
|
741
|
-
);
|
|
742
589
|
}),
|
|
743
590
|
),
|
|
744
591
|
),
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { CommonProps } from '../../../utils/index.js';
|
|
3
|
-
export type BaseFilterProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Filter body.
|
|
6
|
-
*/
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
} & Omit<CommonProps, 'title'>;
|
|
1
|
+
import type { PolymorphicForwardRefComponent } from '../../../utils/index.js';
|
|
9
2
|
/**
|
|
10
3
|
* Filter wrapper that should be used when creating custom filters.
|
|
11
4
|
* @example
|
|
@@ -20,4 +13,4 @@ export type BaseFilterProps = {
|
|
|
20
13
|
* />
|
|
21
14
|
* </BaseFilter>
|
|
22
15
|
*/
|
|
23
|
-
export declare const BaseFilter:
|
|
16
|
+
export declare const BaseFilter: PolymorphicForwardRefComponent<"form">;
|
|
@@ -13,19 +13,21 @@ const _interop_require_wildcard = require('@swc/helpers/_/_interop_require_wildc
|
|
|
13
13
|
const _react = _interop_require_wildcard._(require('react'));
|
|
14
14
|
const _classnames = _interop_require_default._(require('classnames'));
|
|
15
15
|
const _index = require('../../../utils/index.js');
|
|
16
|
-
const BaseFilter = (props) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
const BaseFilter = _react.forwardRef((props, forwardedRef) =>
|
|
17
|
+
_react.createElement(_index.Box, {
|
|
18
|
+
as: 'form',
|
|
19
|
+
...props,
|
|
20
|
+
ref: forwardedRef,
|
|
21
|
+
className: (0, _classnames.default)(
|
|
22
|
+
'iui-table-column-filter',
|
|
23
|
+
props.className,
|
|
24
|
+
),
|
|
25
|
+
onSubmit: (e) => {
|
|
26
|
+
e.preventDefault();
|
|
27
|
+
props.onSubmit?.(e);
|
|
28
28
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
29
|
+
onClick: (0, _index.mergeEventHandlers)(props.onClick, (e) => {
|
|
30
|
+
e.stopPropagation();
|
|
31
|
+
}),
|
|
32
|
+
}),
|
|
33
|
+
);
|
|
@@ -84,13 +84,11 @@ const DateRangeFilter = (props) => {
|
|
|
84
84
|
);
|
|
85
85
|
});
|
|
86
86
|
}, []);
|
|
87
|
-
let onKeyDown = (event) => {
|
|
88
|
-
if (event.altKey) return;
|
|
89
|
-
if ('Enter' === event.key) setFilter([from, to]);
|
|
90
|
-
};
|
|
91
87
|
return _react.createElement(
|
|
92
88
|
_BaseFilter.BaseFilter,
|
|
93
|
-
|
|
89
|
+
{
|
|
90
|
+
onSubmit: () => setFilter([from, to]),
|
|
91
|
+
},
|
|
94
92
|
_react.createElement(_DatePickerInput.DatePickerInput, {
|
|
95
93
|
ref: inputRef,
|
|
96
94
|
label: translatedStrings.from,
|
|
@@ -98,7 +96,6 @@ const DateRangeFilter = (props) => {
|
|
|
98
96
|
onChange: onFromChange,
|
|
99
97
|
formatDate: formatDate,
|
|
100
98
|
parseInput: parseInput,
|
|
101
|
-
onKeyDown: onKeyDown,
|
|
102
99
|
placeholder: placeholder,
|
|
103
100
|
selectedDate: to,
|
|
104
101
|
isFromOrTo: 'from',
|
|
@@ -111,7 +108,6 @@ const DateRangeFilter = (props) => {
|
|
|
111
108
|
onChange: onToChange,
|
|
112
109
|
formatDate: formatDate,
|
|
113
110
|
parseInput: parseInput,
|
|
114
|
-
onKeyDown: onKeyDown,
|
|
115
111
|
placeholder: placeholder,
|
|
116
112
|
selectedDate: from,
|
|
117
113
|
isFromOrTo: 'to',
|
|
@@ -119,7 +115,6 @@ const DateRangeFilter = (props) => {
|
|
|
119
115
|
showYearSelection: showYearSelection,
|
|
120
116
|
}),
|
|
121
117
|
_react.createElement(_FilterButtonBar.FilterButtonBar, {
|
|
122
|
-
setFilter: () => setFilter([from, to]),
|
|
123
118
|
clearFilter: clearFilter,
|
|
124
119
|
translatedLabels: translatedLabels,
|
|
125
120
|
}),
|
|
@@ -10,9 +10,11 @@ export type FilterButtonBarProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
/**
|
|
13
|
-
* Callback used for Filter button click.
|
|
13
|
+
* Callback used for Filter button click.
|
|
14
|
+
*
|
|
15
|
+
* @deprecated Use the onSubmit callback from `BaseFilter` instead.
|
|
14
16
|
*/
|
|
15
|
-
setFilter
|
|
17
|
+
setFilter?: () => void;
|
|
16
18
|
/**
|
|
17
19
|
* Callback used for Clear button click. Should come from `BaseFilter`.
|
|
18
20
|
*/
|
|
@@ -33,20 +33,16 @@ const NumberRangeFilter = (props) => {
|
|
|
33
33
|
let [to, setTo] = _react.useState(column.filterValue?.[1] ?? '');
|
|
34
34
|
let parseInputValue = (value) =>
|
|
35
35
|
!value || isNaN(Number(value)) ? void 0 : Number(value);
|
|
36
|
-
let onKeyDown = (event) => {
|
|
37
|
-
if (event.altKey) return;
|
|
38
|
-
if ('Enter' === event.key)
|
|
39
|
-
setFilter([parseInputValue(from), parseInputValue(to)]);
|
|
40
|
-
};
|
|
41
36
|
return _react.createElement(
|
|
42
37
|
_BaseFilter.BaseFilter,
|
|
43
|
-
|
|
38
|
+
{
|
|
39
|
+
onSubmit: () => setFilter([parseInputValue(from), parseInputValue(to)]),
|
|
40
|
+
},
|
|
44
41
|
_react.createElement(_LabeledInput.LabeledInput, {
|
|
45
42
|
ref: inputRef,
|
|
46
43
|
label: translatedStrings.from,
|
|
47
44
|
value: from,
|
|
48
45
|
onChange: (e) => setFrom(e.target.value),
|
|
49
|
-
onKeyDown: onKeyDown,
|
|
50
46
|
type: 'number',
|
|
51
47
|
displayStyle: 'inline',
|
|
52
48
|
}),
|
|
@@ -56,10 +52,8 @@ const NumberRangeFilter = (props) => {
|
|
|
56
52
|
onChange: (e) => setTo(e.target.value),
|
|
57
53
|
type: 'number',
|
|
58
54
|
displayStyle: 'inline',
|
|
59
|
-
onKeyDown: onKeyDown,
|
|
60
55
|
}),
|
|
61
56
|
_react.createElement(_FilterButtonBar.FilterButtonBar, {
|
|
62
|
-
setFilter: () => setFilter([parseInputValue(from), parseInputValue(to)]),
|
|
63
57
|
clearFilter: clearFilter,
|
|
64
58
|
translatedLabels: translatedLabels,
|
|
65
59
|
}),
|
|
@@ -22,21 +22,18 @@ const TextFilter = (props) => {
|
|
|
22
22
|
_react.useEffect(() => {
|
|
23
23
|
if (inputRef.current) inputRef.current.focus();
|
|
24
24
|
}, []);
|
|
25
|
-
let onKeyDown = (event) => {
|
|
26
|
-
if (event.altKey) return;
|
|
27
|
-
if ('Enter' === event.key) setFilter(text);
|
|
28
|
-
};
|
|
29
25
|
return _react.createElement(
|
|
30
26
|
_BaseFilter.BaseFilter,
|
|
31
|
-
|
|
27
|
+
{
|
|
28
|
+
onSubmit: () => setFilter(text),
|
|
29
|
+
},
|
|
32
30
|
_react.createElement(_Input.Input, {
|
|
33
31
|
ref: inputRef,
|
|
34
32
|
value: text,
|
|
35
33
|
onChange: (e) => setText(e.target.value),
|
|
36
|
-
|
|
34
|
+
required: true,
|
|
37
35
|
}),
|
|
38
36
|
_react.createElement(_FilterButtonBar.FilterButtonBar, {
|
|
39
|
-
setFilter: () => setFilter(text),
|
|
40
37
|
clearFilter: clearFilter,
|
|
41
38
|
translatedLabels: translatedLabels,
|
|
42
39
|
}),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { BaseFilter } from './BaseFilter.js';
|
|
2
|
-
export type { BaseFilterProps } from './BaseFilter.js';
|
|
3
2
|
export { tableFilters } from './tableFilters.js';
|
|
4
3
|
export type { DateRangeFilterOptions } from './tableFilters.js';
|
|
5
4
|
export type { TableFilterProps, TableFilterValue } from './types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Table } from './Table.js';
|
|
2
2
|
export type { TablePaginatorRendererProps } from './Table.js';
|
|
3
3
|
export { BaseFilter, FilterButtonBar, tableFilters } from './filters/index.js';
|
|
4
|
-
export type {
|
|
4
|
+
export type { DateRangeFilterOptions, FilterButtonBarProps, FilterButtonBarTranslation, TableFilterProps, TableFilterValue, } from './filters/index.js';
|
|
5
5
|
export { DefaultCell, EditableCell } from './cells/index.js';
|
|
6
6
|
export type { DefaultCellProps, EditableCellProps } from './cells/index.js';
|
|
7
7
|
export { TablePaginator } from './TablePaginator.js';
|
|
@@ -38,10 +38,6 @@ type RootProps = {
|
|
|
38
38
|
*/
|
|
39
39
|
applyBackground?: boolean;
|
|
40
40
|
};
|
|
41
|
-
/**
|
|
42
|
-
* This will be used to determine if background will be applied.
|
|
43
|
-
*/
|
|
44
|
-
shouldApplyBackground?: boolean;
|
|
45
41
|
};
|
|
46
42
|
type ThemeProviderOwnProps = Pick<RootProps, 'theme'> & {
|
|
47
43
|
themeOptions?: RootProps['themeOptions'];
|