@itwin/itwinui-react 3.0.0-dev.8 → 3.0.0
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 +79 -762
- package/README.md +3 -5
- package/cjs/core/Alert/Alert.d.ts +1 -1
- package/cjs/core/Alert/Alert.js +4 -3
- package/cjs/core/Avatar/Avatar.js +2 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +23 -6
- package/cjs/core/ButtonGroup/ButtonGroup.js +6 -8
- package/cjs/core/Buttons/{Button/Button.d.ts → Button.d.ts} +2 -2
- package/cjs/core/Buttons/{Button/Button.js → Button.js} +1 -1
- package/{esm/core/Buttons/DropdownButton → cjs/core/Buttons}/DropdownButton.d.ts +3 -3
- package/cjs/core/Buttons/{DropdownButton/DropdownButton.js → DropdownButton.js} +14 -26
- package/{esm/core/Buttons/IconButton → cjs/core/Buttons}/IconButton.d.ts +2 -2
- package/cjs/core/Buttons/{IconButton/IconButton.js → IconButton.js} +6 -3
- package/{esm/core/Buttons/IdeasButton → cjs/core/Buttons}/IdeasButton.d.ts +1 -1
- package/cjs/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +3 -3
- package/{esm/core/Buttons/SplitButton → cjs/core/Buttons}/SplitButton.d.ts +6 -6
- package/cjs/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +57 -34
- package/cjs/core/Carousel/Carousel.d.ts +14 -7
- package/cjs/core/Carousel/Carousel.js +9 -39
- package/cjs/core/Carousel/CarouselContext.d.ts +0 -4
- package/cjs/core/Carousel/CarouselDot.js +1 -1
- package/cjs/core/Carousel/CarouselDotsList.js +26 -2
- package/cjs/core/Carousel/CarouselNavigation.d.ts +3 -3
- package/cjs/core/Carousel/CarouselNavigation.js +13 -26
- package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlide.js +12 -2
- package/cjs/core/Carousel/CarouselSlider.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlider.js +2 -2
- package/cjs/core/Checkbox/Checkbox.js +7 -7
- package/cjs/core/ColorPicker/ColorBuilder.js +5 -3
- package/cjs/core/ColorPicker/ColorInputPanel.js +50 -30
- package/cjs/core/ColorPicker/ColorPalette.js +2 -80
- package/cjs/core/ColorPicker/ColorPicker.d.ts +9 -0
- package/cjs/core/ColorPicker/ColorPicker.js +6 -1
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorSwatch.js +25 -15
- package/cjs/core/ComboBox/ComboBox.d.ts +8 -3
- package/cjs/core/ComboBox/ComboBox.js +48 -39
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.js +37 -29
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +6 -6
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMenu.js +74 -96
- package/cjs/core/ComboBox/helpers.d.ts +4 -1
- package/cjs/core/DatePicker/DatePicker.d.ts +9 -0
- package/cjs/core/DatePicker/DatePicker.js +13 -8
- package/cjs/core/Dialog/DialogBackdrop.js +4 -4
- package/cjs/core/Dialog/DialogTitleBar.js +2 -2
- package/cjs/core/{utils/components → Divider}/Divider.d.ts +1 -1
- package/cjs/core/{utils/components → Divider}/Divider.js +1 -1
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +6 -5
- package/cjs/core/DropdownMenu/DropdownMenu.js +61 -56
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +3 -2
- package/cjs/core/FileUpload/FileUploadCard.js +3 -2
- package/cjs/core/FileUpload/FileUploadTemplate.js +1 -1
- package/cjs/core/{utils/components → Flex}/Flex.d.ts +2 -2
- package/cjs/core/{utils/components → Flex}/Flex.js +1 -1
- package/cjs/core/Header/Header.js +11 -11
- package/cjs/core/Header/HeaderBasicButton.d.ts +1 -1
- package/cjs/core/Header/HeaderButton.d.ts +2 -2
- package/cjs/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/cjs/core/Header/HeaderDropdownButton.js +7 -8
- package/cjs/core/Header/HeaderSplitButton.d.ts +1 -1
- package/cjs/core/Header/HeaderSplitButton.js +8 -9
- package/cjs/core/{utils/components → Icon}/Icon.d.ts +2 -2
- package/cjs/core/{utils/components → Icon}/Icon.js +1 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.js +7 -7
- package/cjs/core/Input/Input.d.ts +0 -1
- package/cjs/core/Input/Input.js +0 -1
- package/cjs/core/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/core/InputGroup/InputGroup.js +6 -6
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/cjs/core/InputWithDecorations/InputWithDecorations.js +2 -2
- package/cjs/core/LabeledInput/LabeledInput.d.ts +4 -4
- package/cjs/core/LabeledInput/LabeledInput.js +11 -13
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +2 -2
- package/cjs/core/LabeledSelect/LabeledSelect.js +10 -9
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +2 -2
- package/{esm/core/utils/components → cjs/core/LinkAction}/LinkAction.d.ts +2 -2
- package/cjs/core/{utils/components → LinkAction}/LinkAction.js +1 -1
- package/cjs/core/Menu/Menu.js +1 -1
- package/cjs/core/Menu/MenuItem.js +78 -55
- package/cjs/core/Menu/MenuItemSkeleton.js +2 -1
- package/cjs/core/Modal/Modal.js +5 -5
- package/cjs/core/NonIdealState/ErrorPage.js +17 -15
- package/cjs/core/Popover/Popover.d.ts +141 -0
- package/cjs/core/Popover/Popover.js +188 -0
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +4 -4
- package/cjs/core/SearchBox/SearchBox.d.ts +3 -2
- package/cjs/core/SearchBox/SearchBox.js +4 -3
- package/cjs/core/Select/Select.d.ts +6 -6
- package/cjs/core/Select/Select.js +95 -111
- package/cjs/core/Select/SelectTagContainer.js +2 -2
- package/cjs/core/SideNavigation/SideNavigation.js +5 -5
- package/cjs/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavButton.js +2 -2
- package/cjs/core/Slider/Slider.d.ts +3 -7
- package/cjs/core/Slider/Slider.js +8 -22
- package/cjs/core/Slider/Thumb.d.ts +2 -3
- package/cjs/core/Slider/Thumb.js +5 -9
- package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/cjs/core/StatusMessage/StatusMessage.js +2 -1
- package/cjs/core/Stepper/StepperStep.js +7 -7
- package/cjs/core/Stepper/WorkflowDiagramStep.js +5 -5
- package/cjs/core/Surface/Surface.d.ts +8 -0
- package/cjs/core/Surface/Surface.js +19 -1
- package/cjs/core/Table/SubRowExpander.d.ts +1 -1
- package/cjs/core/Table/SubRowExpander.js +2 -2
- package/cjs/core/Table/Table.d.ts +1 -1
- package/cjs/core/Table/Table.js +53 -60
- package/cjs/core/Table/TableCell.d.ts +1 -1
- package/cjs/core/Table/TablePaginator.js +27 -25
- package/cjs/core/Table/TableRowMemoized.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/cjs/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/cjs/core/Table/cells/DefaultCell.d.ts +1 -1
- package/cjs/core/Table/cells/EditableCell.d.ts +1 -1
- package/cjs/core/Table/columns/actionColumn.d.ts +2 -2
- package/cjs/core/Table/columns/actionColumn.js +13 -22
- package/cjs/core/Table/columns/expanderColumn.d.ts +1 -1
- package/cjs/core/Table/columns/expanderColumn.js +5 -4
- package/cjs/core/Table/columns/selectionColumn.d.ts +1 -1
- package/cjs/core/Table/columns/selectionColumn.js +5 -5
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +41 -40
- package/cjs/core/Table/filters/FilterButtonBar.js +3 -3
- package/cjs/core/Table/filters/FilterToggle.d.ts +1 -1
- package/cjs/core/Table/filters/FilterToggle.js +8 -5
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +3 -3
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +2 -2
- package/cjs/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/types.d.ts +2 -19
- package/cjs/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/cjs/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.d.ts +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.js +1 -1
- package/cjs/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/cjs/core/Table/index.d.ts +1 -1
- package/cjs/core/Table/utils.d.ts +1 -1
- package/cjs/core/Tabs/Tabs.d.ts +222 -52
- package/cjs/core/Tabs/Tabs.js +429 -375
- package/cjs/core/Tag/Tag.js +2 -2
- package/cjs/core/Textarea/Textarea.js +2 -2
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +3 -2
- package/cjs/core/ThemeProvider/ThemeProvider.js +17 -8
- package/cjs/core/Tile/Tile.d.ts +2 -2
- package/cjs/core/Tile/Tile.js +40 -39
- package/cjs/core/Toast/Toast.js +2 -2
- package/cjs/core/TransferList/TransferList.d.ts +1 -1
- package/cjs/core/TransferList/TransferList.js +6 -5
- package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/cjs/core/Tree/TreeNodeExpander.js +2 -2
- package/{esm/core/Typography/Anchor → cjs/core/Typography}/Anchor.d.ts +1 -1
- package/cjs/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
- package/{esm/core/Typography/Blockquote → cjs/core/Typography}/Blockquote.d.ts +1 -1
- package/cjs/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +1 -1
- package/cjs/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/cjs/core/Typography/{Code/Code.js → Code.js} +1 -1
- package/{esm/core/Typography/Kbd → cjs/core/Typography}/Kbd.d.ts +1 -1
- package/cjs/core/Typography/{Kbd/Kbd.js → Kbd.js} +1 -1
- package/{esm/core/Typography/Text → cjs/core/Typography}/Text.d.ts +1 -1
- package/cjs/core/Typography/{Text/Text.js → Text.js} +1 -1
- package/{esm/core/utils/components → cjs/core/VisuallyHidden}/VisuallyHidden.d.ts +1 -1
- package/cjs/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +1 -1
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/cjs/core/utils/components/InputContainer.d.ts +4 -4
- package/cjs/core/utils/components/InputContainer.js +11 -7
- package/cjs/core/utils/components/WithCSSTransition.js +7 -1
- package/cjs/core/utils/components/index.d.ts +0 -6
- package/cjs/core/utils/components/index.js +0 -6
- package/cjs/core/utils/functions/dev.d.ts +11 -0
- package/cjs/core/utils/functions/dev.js +34 -0
- package/cjs/core/utils/functions/index.d.ts +1 -0
- package/cjs/core/utils/functions/index.js +1 -0
- package/cjs/core/utils/hooks/useGlobals.d.ts +1 -1
- package/cjs/core/utils/hooks/useGlobals.js +3 -7
- package/cjs/core/utils/hooks/useOverflow.js +3 -1
- package/cjs/index.d.ts +112 -2
- package/cjs/index.js +950 -5
- package/cjs/react-table/react-table.d.ts +745 -0
- package/cjs/{core/Badge/index.js → react-table/react-table.js} +5 -10
- package/cjs/styles.js +15 -18
- package/esm/core/Alert/Alert.d.ts +1 -1
- package/esm/core/Alert/Alert.js +2 -2
- package/esm/core/Avatar/Avatar.js +2 -6
- package/esm/core/Breadcrumbs/Breadcrumbs.js +24 -6
- package/esm/core/ButtonGroup/ButtonGroup.js +6 -8
- package/esm/core/Buttons/{Button/Button.d.ts → Button.d.ts} +2 -2
- package/esm/core/Buttons/{Button/Button.js → Button.js} +1 -1
- package/{cjs/core/Buttons/DropdownButton → esm/core/Buttons}/DropdownButton.d.ts +3 -3
- package/esm/core/Buttons/{DropdownButton/DropdownButton.js → DropdownButton.js} +10 -26
- package/{cjs/core/Buttons/IconButton → esm/core/Buttons}/IconButton.d.ts +2 -2
- package/esm/core/Buttons/{IconButton/IconButton.js → IconButton.js} +3 -2
- package/{cjs/core/Buttons/IdeasButton → esm/core/Buttons}/IdeasButton.d.ts +1 -1
- package/esm/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +2 -2
- package/{cjs/core/Buttons/SplitButton → esm/core/Buttons}/SplitButton.d.ts +6 -6
- package/esm/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +56 -31
- package/esm/core/Carousel/Carousel.d.ts +14 -7
- package/esm/core/Carousel/Carousel.js +9 -39
- package/esm/core/Carousel/CarouselContext.d.ts +0 -4
- package/esm/core/Carousel/CarouselDot.js +1 -1
- package/esm/core/Carousel/CarouselDotsList.js +26 -2
- package/esm/core/Carousel/CarouselNavigation.d.ts +3 -3
- package/esm/core/Carousel/CarouselNavigation.js +6 -23
- package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlide.js +15 -3
- package/esm/core/Carousel/CarouselSlider.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlider.js +2 -2
- package/esm/core/Checkbox/Checkbox.js +1 -1
- package/esm/core/ColorPicker/ColorBuilder.js +3 -1
- package/esm/core/ColorPicker/ColorInputPanel.js +27 -7
- package/esm/core/ColorPicker/ColorPalette.js +3 -83
- package/esm/core/ColorPicker/ColorPicker.d.ts +9 -0
- package/esm/core/ColorPicker/ColorPicker.js +6 -1
- package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/esm/core/ColorPicker/ColorSwatch.js +18 -12
- package/esm/core/ComboBox/ComboBox.d.ts +8 -3
- package/esm/core/ComboBox/ComboBox.js +38 -27
- package/esm/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/esm/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInput.js +23 -22
- package/esm/core/ComboBox/ComboBoxInputContainer.js +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.js +68 -90
- package/esm/core/ComboBox/helpers.d.ts +4 -1
- package/esm/core/DatePicker/DatePicker.d.ts +9 -0
- package/esm/core/DatePicker/DatePicker.js +12 -3
- package/esm/core/Dialog/DialogBackdrop.js +1 -1
- package/esm/core/Dialog/DialogTitleBar.js +1 -1
- package/esm/core/{utils/components → Divider}/Divider.d.ts +1 -1
- package/esm/core/{utils/components → Divider}/Divider.js +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +6 -5
- package/esm/core/DropdownMenu/DropdownMenu.js +64 -57
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -1
- package/esm/core/FileUpload/FileUploadCard.js +2 -2
- package/esm/core/FileUpload/FileUploadTemplate.js +1 -1
- package/esm/core/{utils/components → Flex}/Flex.d.ts +2 -2
- package/esm/core/{utils/components → Flex}/Flex.js +1 -1
- package/esm/core/Header/Header.js +2 -2
- package/esm/core/Header/HeaderBasicButton.d.ts +1 -1
- package/esm/core/Header/HeaderButton.d.ts +2 -2
- package/esm/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/esm/core/Header/HeaderDropdownButton.js +2 -3
- package/esm/core/Header/HeaderSplitButton.d.ts +1 -1
- package/esm/core/Header/HeaderSplitButton.js +2 -3
- package/esm/core/{utils/components → Icon}/Icon.d.ts +2 -2
- package/esm/core/{utils/components → Icon}/Icon.js +1 -1
- package/esm/core/InformationPanel/InformationPanelHeader.js +1 -1
- package/esm/core/Input/Input.d.ts +0 -1
- package/esm/core/Input/Input.js +0 -1
- package/esm/core/InputGroup/InputGroup.d.ts +1 -1
- package/esm/core/InputGroup/InputGroup.js +3 -3
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/esm/core/InputWithDecorations/InputWithDecorations.js +1 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +4 -4
- package/esm/core/LabeledInput/LabeledInput.js +5 -4
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +2 -2
- package/esm/core/LabeledSelect/LabeledSelect.js +6 -4
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.js +2 -2
- package/{cjs/core/utils/components → esm/core/LinkAction}/LinkAction.d.ts +2 -2
- package/esm/core/{utils/components → LinkAction}/LinkAction.js +1 -1
- package/esm/core/Menu/Menu.js +7 -2
- package/esm/core/Menu/MenuItem.js +84 -52
- package/esm/core/Menu/MenuItemSkeleton.js +2 -1
- package/esm/core/Modal/Modal.js +1 -1
- package/esm/core/NonIdealState/ErrorPage.js +2 -2
- package/esm/core/Popover/Popover.d.ts +141 -0
- package/esm/core/Popover/Popover.js +205 -0
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +1 -1
- package/esm/core/SearchBox/SearchBox.d.ts +3 -2
- package/esm/core/SearchBox/SearchBox.js +2 -2
- package/esm/core/Select/Select.d.ts +6 -6
- package/esm/core/Select/Select.js +81 -96
- package/esm/core/Select/SelectTagContainer.js +1 -1
- package/esm/core/SideNavigation/SideNavigation.js +2 -2
- package/esm/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavButton.js +1 -1
- package/esm/core/Slider/Slider.d.ts +3 -7
- package/esm/core/Slider/Slider.js +8 -19
- package/esm/core/Slider/Thumb.d.ts +2 -3
- package/esm/core/Slider/Thumb.js +2 -6
- package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/esm/core/StatusMessage/StatusMessage.js +2 -1
- package/esm/core/Stepper/StepperStep.js +1 -1
- package/esm/core/Stepper/WorkflowDiagramStep.js +1 -1
- package/esm/core/Surface/Surface.d.ts +8 -0
- package/esm/core/Surface/Surface.js +19 -1
- package/esm/core/Table/SubRowExpander.d.ts +1 -1
- package/esm/core/Table/SubRowExpander.js +1 -1
- package/esm/core/Table/Table.d.ts +1 -1
- package/esm/core/Table/Table.js +7 -13
- package/esm/core/Table/TableCell.d.ts +1 -1
- package/esm/core/Table/TablePaginator.js +5 -3
- package/esm/core/Table/TableRowMemoized.d.ts +1 -1
- package/esm/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/esm/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/esm/core/Table/cells/DefaultCell.d.ts +1 -1
- package/esm/core/Table/cells/EditableCell.d.ts +1 -1
- package/esm/core/Table/columns/actionColumn.d.ts +2 -2
- package/esm/core/Table/columns/actionColumn.js +7 -13
- package/esm/core/Table/columns/expanderColumn.d.ts +1 -1
- package/esm/core/Table/columns/expanderColumn.js +2 -1
- package/esm/core/Table/columns/selectionColumn.d.ts +1 -1
- package/esm/core/Table/columns/selectionColumn.js +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +44 -46
- package/esm/core/Table/filters/FilterButtonBar.js +1 -1
- package/esm/core/Table/filters/FilterToggle.d.ts +1 -1
- package/esm/core/Table/filters/FilterToggle.js +7 -9
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -1
- package/esm/core/Table/filters/TextFilter/TextFilter.js +1 -1
- package/esm/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/types.d.ts +2 -19
- package/esm/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/esm/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/esm/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useScrollToRow.d.ts +1 -1
- package/esm/core/Table/hooks/useScrollToRow.js +1 -1
- package/esm/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/esm/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/esm/core/Table/index.d.ts +1 -1
- package/esm/core/Table/utils.d.ts +1 -1
- package/esm/core/Tabs/Tabs.d.ts +222 -52
- package/esm/core/Tabs/Tabs.js +424 -368
- package/esm/core/Tag/Tag.js +1 -1
- package/esm/core/Textarea/Textarea.js +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +3 -2
- package/esm/core/ThemeProvider/ThemeProvider.js +17 -8
- package/esm/core/Tile/Tile.d.ts +2 -2
- package/esm/core/Tile/Tile.js +36 -36
- package/esm/core/Toast/Toast.js +1 -1
- package/esm/core/TransferList/TransferList.d.ts +1 -1
- package/esm/core/TransferList/TransferList.js +3 -2
- package/esm/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/esm/core/Tree/TreeNodeExpander.js +1 -1
- package/{cjs/core/Typography/Anchor → esm/core/Typography}/Anchor.d.ts +1 -1
- package/esm/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
- package/{cjs/core/Typography/Blockquote → esm/core/Typography}/Blockquote.d.ts +1 -1
- package/esm/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +1 -1
- package/esm/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/esm/core/Typography/{Code/Code.js → Code.js} +1 -1
- package/{cjs/core/Typography/Kbd → esm/core/Typography}/Kbd.d.ts +1 -1
- package/esm/core/Typography/{Kbd/Kbd.js → Kbd.js} +1 -1
- package/{cjs/core/Typography/Text → esm/core/Typography}/Text.d.ts +1 -1
- package/esm/core/Typography/{Text/Text.js → Text.js} +1 -1
- package/{cjs/core/utils/components → esm/core/VisuallyHidden}/VisuallyHidden.d.ts +1 -1
- package/esm/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +1 -1
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/esm/core/utils/components/InputContainer.d.ts +4 -4
- package/esm/core/utils/components/InputContainer.js +9 -4
- package/esm/core/utils/components/WithCSSTransition.js +7 -1
- package/esm/core/utils/components/index.d.ts +0 -6
- package/esm/core/utils/components/index.js +0 -6
- package/esm/core/utils/functions/dev.d.ts +11 -0
- package/esm/core/utils/functions/dev.js +29 -0
- package/esm/core/utils/functions/index.d.ts +1 -0
- package/esm/core/utils/functions/index.js +1 -0
- package/esm/core/utils/hooks/useGlobals.d.ts +1 -1
- package/esm/core/utils/hooks/useGlobals.js +1 -5
- package/esm/core/utils/hooks/useOverflow.js +3 -1
- package/esm/index.d.ts +112 -2
- package/esm/index.js +123 -2
- package/esm/react-table/react-table.d.ts +745 -0
- package/esm/{core/Backdrop/index.js → react-table/react-table.js} +5 -1
- package/esm/styles.js +15 -18
- package/package.json +22 -23
- package/react-table.d.ts +745 -0
- package/styles.css +58 -67
- package/cjs/core/Alert/index.d.ts +0 -3
- package/cjs/core/Alert/index.js +0 -15
- package/cjs/core/Avatar/index.d.ts +0 -3
- package/cjs/core/Avatar/index.js +0 -15
- package/cjs/core/AvatarGroup/index.d.ts +0 -3
- package/cjs/core/AvatarGroup/index.js +0 -15
- package/cjs/core/Backdrop/index.d.ts +0 -1
- package/cjs/core/Backdrop/index.js +0 -14
- package/cjs/core/Badge/index.d.ts +0 -3
- package/cjs/core/Breadcrumbs/index.d.ts +0 -3
- package/cjs/core/Breadcrumbs/index.js +0 -15
- package/cjs/core/ButtonGroup/index.d.ts +0 -3
- package/cjs/core/ButtonGroup/index.js +0 -15
- package/cjs/core/Buttons/Button/index.d.ts +0 -3
- package/cjs/core/Buttons/Button/index.js +0 -15
- package/cjs/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/cjs/core/Buttons/DropdownButton/index.js +0 -15
- package/cjs/core/Buttons/IconButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IconButton/index.js +0 -15
- package/cjs/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IdeasButton/index.js +0 -15
- package/cjs/core/Buttons/SplitButton/index.d.ts +0 -3
- package/cjs/core/Buttons/SplitButton/index.js +0 -15
- package/cjs/core/Buttons/index.d.ts +0 -5
- package/cjs/core/Buttons/index.js +0 -47
- package/cjs/core/Carousel/index.d.ts +0 -3
- package/cjs/core/Carousel/index.js +0 -15
- package/cjs/core/Checkbox/index.d.ts +0 -3
- package/cjs/core/Checkbox/index.js +0 -15
- package/cjs/core/ColorPicker/index.d.ts +0 -7
- package/cjs/core/ColorPicker/index.js +0 -48
- package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
- package/cjs/core/ComboBox/ComboBoxDropdown.js +0 -43
- package/cjs/core/ComboBox/index.d.ts +0 -3
- package/cjs/core/ComboBox/index.js +0 -15
- package/cjs/core/DatePicker/index.d.ts +0 -3
- package/cjs/core/DatePicker/index.js +0 -21
- package/cjs/core/Dialog/index.d.ts +0 -3
- package/cjs/core/Dialog/index.js +0 -15
- package/cjs/core/DropdownMenu/index.d.ts +0 -4
- package/cjs/core/DropdownMenu/index.js +0 -15
- package/cjs/core/ExpandableBlock/index.d.ts +0 -3
- package/cjs/core/ExpandableBlock/index.js +0 -15
- package/cjs/core/Fieldset/index.d.ts +0 -3
- package/cjs/core/Fieldset/index.js +0 -15
- package/cjs/core/FileUpload/index.d.ts +0 -6
- package/cjs/core/FileUpload/index.js +0 -40
- package/cjs/core/Footer/index.d.ts +0 -4
- package/cjs/core/Footer/index.js +0 -21
- package/cjs/core/Header/index.d.ts +0 -6
- package/cjs/core/Header/index.js +0 -40
- package/cjs/core/InformationPanel/index.d.ts +0 -7
- package/cjs/core/InformationPanel/index.js +0 -48
- package/cjs/core/Input/index.d.ts +0 -3
- package/cjs/core/Input/index.js +0 -15
- package/cjs/core/InputGrid/index.d.ts +0 -3
- package/cjs/core/InputGrid/index.js +0 -15
- package/cjs/core/InputGroup/index.d.ts +0 -3
- package/cjs/core/InputGroup/index.js +0 -15
- package/cjs/core/InputWithDecorations/index.d.ts +0 -3
- package/cjs/core/InputWithDecorations/index.js +0 -15
- package/cjs/core/Label/index.d.ts +0 -3
- package/cjs/core/Label/index.js +0 -15
- package/cjs/core/LabeledInput/index.d.ts +0 -3
- package/cjs/core/LabeledInput/index.js +0 -15
- package/cjs/core/LabeledSelect/index.d.ts +0 -3
- package/cjs/core/LabeledSelect/index.js +0 -15
- package/cjs/core/LabeledTextarea/index.d.ts +0 -3
- package/cjs/core/LabeledTextarea/index.js +0 -15
- package/cjs/core/List/index.d.ts +0 -2
- package/cjs/core/List/index.js +0 -21
- package/cjs/core/Menu/index.d.ts +0 -5
- package/cjs/core/Menu/index.js +0 -47
- package/cjs/core/Modal/index.d.ts +0 -5
- package/cjs/core/Modal/index.js +0 -29
- package/cjs/core/NonIdealState/index.d.ts +0 -5
- package/cjs/core/NonIdealState/index.js +0 -22
- package/cjs/core/NotificationMarker/index.d.ts +0 -3
- package/cjs/core/NotificationMarker/index.js +0 -15
- package/cjs/core/Overlay/index.d.ts +0 -1
- package/cjs/core/Overlay/index.js +0 -14
- package/cjs/core/ProgressIndicators/index.d.ts +0 -2
- package/cjs/core/ProgressIndicators/index.js +0 -21
- package/cjs/core/Radio/index.d.ts +0 -3
- package/cjs/core/Radio/index.js +0 -15
- package/cjs/core/RadioTiles/index.d.ts +0 -4
- package/cjs/core/RadioTiles/index.js +0 -22
- package/cjs/core/SearchBox/index.d.ts +0 -3
- package/cjs/core/SearchBox/index.js +0 -15
- package/cjs/core/Select/index.d.ts +0 -4
- package/cjs/core/Select/index.js +0 -15
- package/cjs/core/SideNavigation/index.d.ts +0 -6
- package/cjs/core/SideNavigation/index.js +0 -40
- package/cjs/core/SkipToContentLink/index.d.ts +0 -3
- package/cjs/core/SkipToContentLink/index.js +0 -15
- package/cjs/core/Slider/index.d.ts +0 -3
- package/cjs/core/Slider/index.js +0 -15
- package/cjs/core/StatusMessage/index.d.ts +0 -3
- package/cjs/core/StatusMessage/index.js +0 -15
- package/cjs/core/Stepper/index.d.ts +0 -3
- package/cjs/core/Stepper/index.js +0 -21
- package/cjs/core/Surface/index.d.ts +0 -3
- package/cjs/core/Surface/index.js +0 -15
- package/cjs/core/Tabs/Tab.d.ts +0 -40
- package/cjs/core/Tabs/Tab.js +0 -65
- package/cjs/core/Tabs/index.d.ts +0 -2
- package/cjs/core/Tabs/index.js +0 -21
- package/cjs/core/Tag/index.d.ts +0 -4
- package/cjs/core/Tag/index.js +0 -22
- package/cjs/core/Textarea/index.d.ts +0 -3
- package/cjs/core/Textarea/index.js +0 -15
- package/cjs/core/ThemeProvider/index.d.ts +0 -4
- package/cjs/core/ThemeProvider/index.js +0 -15
- package/cjs/core/Tile/index.d.ts +0 -3
- package/cjs/core/Tile/index.js +0 -15
- package/cjs/core/TimePicker/index.d.ts +0 -4
- package/cjs/core/TimePicker/index.js +0 -15
- package/cjs/core/Toast/index.d.ts +0 -1
- package/cjs/core/Toast/index.js +0 -14
- package/cjs/core/ToggleSwitch/index.d.ts +0 -3
- package/cjs/core/ToggleSwitch/index.js +0 -15
- package/cjs/core/Tooltip/index.d.ts +0 -3
- package/cjs/core/Tooltip/index.js +0 -15
- package/cjs/core/TransferList/index.d.ts +0 -3
- package/cjs/core/TransferList/index.js +0 -15
- package/cjs/core/Tree/index.d.ts +0 -4
- package/cjs/core/Tree/index.js +0 -28
- package/cjs/core/Typography/Anchor/index.d.ts +0 -3
- package/cjs/core/Typography/Anchor/index.js +0 -15
- package/cjs/core/Typography/Blockquote/index.d.ts +0 -3
- package/cjs/core/Typography/Blockquote/index.js +0 -15
- package/cjs/core/Typography/Code/index.d.ts +0 -3
- package/cjs/core/Typography/Code/index.js +0 -15
- package/cjs/core/Typography/Kbd/index.d.ts +0 -3
- package/cjs/core/Typography/Kbd/index.js +0 -21
- package/cjs/core/Typography/Text/index.d.ts +0 -3
- package/cjs/core/Typography/Text/index.js +0 -15
- package/cjs/core/Typography/index.d.ts +0 -5
- package/cjs/core/Typography/index.js +0 -54
- package/cjs/core/index.d.ts +0 -68
- package/cjs/core/index.js +0 -909
- package/cjs/core/utils/components/Popover.d.ts +0 -39
- package/cjs/core/utils/components/Popover.js +0 -132
- package/cjs/types/react-table-config.d.ts +0 -135
- package/cjs/types/react-table-config.js +0 -2
- package/esm/core/Alert/index.d.ts +0 -3
- package/esm/core/Alert/index.js +0 -6
- package/esm/core/Avatar/index.d.ts +0 -3
- package/esm/core/Avatar/index.js +0 -6
- package/esm/core/AvatarGroup/index.d.ts +0 -3
- package/esm/core/AvatarGroup/index.js +0 -6
- package/esm/core/Backdrop/index.d.ts +0 -1
- package/esm/core/Badge/index.d.ts +0 -3
- package/esm/core/Badge/index.js +0 -6
- package/esm/core/Breadcrumbs/index.d.ts +0 -3
- package/esm/core/Breadcrumbs/index.js +0 -6
- package/esm/core/ButtonGroup/index.d.ts +0 -3
- package/esm/core/ButtonGroup/index.js +0 -6
- package/esm/core/Buttons/Button/index.d.ts +0 -3
- package/esm/core/Buttons/Button/index.js +0 -6
- package/esm/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/esm/core/Buttons/DropdownButton/index.js +0 -6
- package/esm/core/Buttons/IconButton/index.d.ts +0 -3
- package/esm/core/Buttons/IconButton/index.js +0 -6
- package/esm/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/esm/core/Buttons/IdeasButton/index.js +0 -6
- package/esm/core/Buttons/SplitButton/index.d.ts +0 -3
- package/esm/core/Buttons/SplitButton/index.js +0 -6
- package/esm/core/Buttons/index.d.ts +0 -5
- package/esm/core/Buttons/index.js +0 -9
- package/esm/core/Carousel/index.d.ts +0 -3
- package/esm/core/Carousel/index.js +0 -6
- package/esm/core/Checkbox/index.d.ts +0 -3
- package/esm/core/Checkbox/index.js +0 -6
- package/esm/core/ColorPicker/index.d.ts +0 -7
- package/esm/core/ColorPicker/index.js +0 -10
- package/esm/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
- package/esm/core/ComboBox/ComboBoxDropdown.js +0 -37
- package/esm/core/ComboBox/index.d.ts +0 -3
- package/esm/core/ComboBox/index.js +0 -6
- package/esm/core/DatePicker/index.d.ts +0 -3
- package/esm/core/DatePicker/index.js +0 -6
- package/esm/core/Dialog/index.d.ts +0 -3
- package/esm/core/Dialog/index.js +0 -6
- package/esm/core/DropdownMenu/index.d.ts +0 -4
- package/esm/core/DropdownMenu/index.js +0 -6
- package/esm/core/ExpandableBlock/index.d.ts +0 -3
- package/esm/core/ExpandableBlock/index.js +0 -6
- package/esm/core/Fieldset/index.d.ts +0 -3
- package/esm/core/Fieldset/index.js +0 -6
- package/esm/core/FileUpload/index.d.ts +0 -6
- package/esm/core/FileUpload/index.js +0 -9
- package/esm/core/Footer/index.d.ts +0 -4
- package/esm/core/Footer/index.js +0 -6
- package/esm/core/Header/index.d.ts +0 -6
- package/esm/core/Header/index.js +0 -9
- package/esm/core/InformationPanel/index.d.ts +0 -7
- package/esm/core/InformationPanel/index.js +0 -10
- package/esm/core/Input/index.d.ts +0 -3
- package/esm/core/Input/index.js +0 -6
- package/esm/core/InputGrid/index.d.ts +0 -3
- package/esm/core/InputGrid/index.js +0 -6
- package/esm/core/InputGroup/index.d.ts +0 -3
- package/esm/core/InputGroup/index.js +0 -6
- package/esm/core/InputWithDecorations/index.d.ts +0 -3
- package/esm/core/InputWithDecorations/index.js +0 -6
- package/esm/core/Label/index.d.ts +0 -3
- package/esm/core/Label/index.js +0 -6
- package/esm/core/LabeledInput/index.d.ts +0 -3
- package/esm/core/LabeledInput/index.js +0 -6
- package/esm/core/LabeledSelect/index.d.ts +0 -3
- package/esm/core/LabeledSelect/index.js +0 -6
- package/esm/core/LabeledTextarea/index.d.ts +0 -3
- package/esm/core/LabeledTextarea/index.js +0 -6
- package/esm/core/List/index.d.ts +0 -2
- package/esm/core/List/index.js +0 -6
- package/esm/core/Menu/index.d.ts +0 -5
- package/esm/core/Menu/index.js +0 -9
- package/esm/core/Modal/index.d.ts +0 -5
- package/esm/core/Modal/index.js +0 -8
- package/esm/core/NonIdealState/index.d.ts +0 -5
- package/esm/core/NonIdealState/index.js +0 -7
- package/esm/core/NotificationMarker/index.d.ts +0 -3
- package/esm/core/NotificationMarker/index.js +0 -6
- package/esm/core/Overlay/index.d.ts +0 -1
- package/esm/core/Overlay/index.js +0 -5
- package/esm/core/ProgressIndicators/index.d.ts +0 -2
- package/esm/core/ProgressIndicators/index.js +0 -6
- package/esm/core/Radio/index.d.ts +0 -3
- package/esm/core/Radio/index.js +0 -6
- package/esm/core/RadioTiles/index.d.ts +0 -4
- package/esm/core/RadioTiles/index.js +0 -7
- package/esm/core/SearchBox/index.d.ts +0 -3
- package/esm/core/SearchBox/index.js +0 -6
- package/esm/core/Select/index.d.ts +0 -4
- package/esm/core/Select/index.js +0 -6
- package/esm/core/SideNavigation/index.d.ts +0 -6
- package/esm/core/SideNavigation/index.js +0 -9
- package/esm/core/SkipToContentLink/index.d.ts +0 -3
- package/esm/core/SkipToContentLink/index.js +0 -6
- package/esm/core/Slider/index.d.ts +0 -3
- package/esm/core/Slider/index.js +0 -6
- package/esm/core/StatusMessage/index.d.ts +0 -3
- package/esm/core/StatusMessage/index.js +0 -6
- package/esm/core/Stepper/index.d.ts +0 -3
- package/esm/core/Stepper/index.js +0 -6
- package/esm/core/Surface/index.d.ts +0 -3
- package/esm/core/Surface/index.js +0 -6
- package/esm/core/Tabs/Tab.d.ts +0 -40
- package/esm/core/Tabs/Tab.js +0 -57
- package/esm/core/Tabs/index.d.ts +0 -2
- package/esm/core/Tabs/index.js +0 -6
- package/esm/core/Tag/index.d.ts +0 -4
- package/esm/core/Tag/index.js +0 -7
- package/esm/core/Textarea/index.d.ts +0 -3
- package/esm/core/Textarea/index.js +0 -6
- package/esm/core/ThemeProvider/index.d.ts +0 -4
- package/esm/core/ThemeProvider/index.js +0 -6
- package/esm/core/Tile/index.d.ts +0 -3
- package/esm/core/Tile/index.js +0 -6
- package/esm/core/TimePicker/index.d.ts +0 -4
- package/esm/core/TimePicker/index.js +0 -6
- package/esm/core/Toast/index.d.ts +0 -1
- package/esm/core/Toast/index.js +0 -5
- package/esm/core/ToggleSwitch/index.d.ts +0 -3
- package/esm/core/ToggleSwitch/index.js +0 -6
- package/esm/core/Tooltip/index.d.ts +0 -3
- package/esm/core/Tooltip/index.js +0 -6
- package/esm/core/TransferList/index.d.ts +0 -3
- package/esm/core/TransferList/index.js +0 -6
- package/esm/core/Tree/index.d.ts +0 -4
- package/esm/core/Tree/index.js +0 -7
- package/esm/core/Typography/Anchor/index.d.ts +0 -3
- package/esm/core/Typography/Anchor/index.js +0 -6
- package/esm/core/Typography/Blockquote/index.d.ts +0 -3
- package/esm/core/Typography/Blockquote/index.js +0 -6
- package/esm/core/Typography/Code/index.d.ts +0 -3
- package/esm/core/Typography/Code/index.js +0 -6
- package/esm/core/Typography/Kbd/index.d.ts +0 -3
- package/esm/core/Typography/Kbd/index.js +0 -6
- package/esm/core/Typography/Text/index.d.ts +0 -3
- package/esm/core/Typography/Text/index.js +0 -6
- package/esm/core/Typography/index.d.ts +0 -5
- package/esm/core/Typography/index.js +0 -9
- package/esm/core/index.d.ts +0 -68
- package/esm/core/index.js +0 -131
- package/esm/core/utils/components/Popover.d.ts +0 -39
- package/esm/core/utils/components/Popover.js +0 -128
- package/esm/types/react-table-config.d.ts +0 -135
- package/esm/types/react-table-config.js +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Tooltip } from '../Tooltip/
|
|
3
|
-
import type { SliderProps } from './Slider.js';
|
|
2
|
+
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
4
3
|
type ThumbProps = {
|
|
5
4
|
/**
|
|
6
5
|
* Thumb value.
|
|
@@ -54,7 +53,7 @@ type ThumbProps = {
|
|
|
54
53
|
* Additional props for Thumb.
|
|
55
54
|
*/
|
|
56
55
|
thumbProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
57
|
-
}
|
|
56
|
+
};
|
|
58
57
|
/**
|
|
59
58
|
* Thumb is a local component used to show and modify the values maintained by the Slider.
|
|
60
59
|
* Only one Thumb can be active at a time. A Thumb is made active when the user selects
|
package/esm/core/Slider/Thumb.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import { Tooltip } from '../Tooltip/
|
|
7
|
+
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
8
8
|
import { Box } from '../utils/index.js';
|
|
9
9
|
/**
|
|
10
10
|
* Thumb is a local component used to show and modify the values maintained by the Slider.
|
|
@@ -26,7 +26,6 @@ export const Thumb = (props) => {
|
|
|
26
26
|
tooltipProps,
|
|
27
27
|
thumbProps,
|
|
28
28
|
disabled,
|
|
29
|
-
orientation,
|
|
30
29
|
} = props;
|
|
31
30
|
const thumbRef = React.useRef(null);
|
|
32
31
|
const handleOnKeyboardEvent = React.useCallback(
|
|
@@ -93,13 +92,10 @@ export const Thumb = (props) => {
|
|
|
93
92
|
},
|
|
94
93
|
React.createElement(Box, {
|
|
95
94
|
...rest,
|
|
96
|
-
'data-index': index,
|
|
97
95
|
ref: thumbRef,
|
|
98
96
|
style: {
|
|
99
97
|
...style,
|
|
100
|
-
|
|
101
|
-
? { insetInlineStart: `${lowPercent}%` }
|
|
102
|
-
: { insetBlockEnd: `${lowPercent}%` }),
|
|
98
|
+
'--iui-slider-thumb-position': `${lowPercent}%`,
|
|
103
99
|
},
|
|
104
100
|
className: cx('iui-slider-thumb', { 'iui-active': isActive }, className),
|
|
105
101
|
role: 'slider',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Icon } from '../utils/index.js';
|
|
3
2
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
+
import { Icon } from '../Icon/Icon.js';
|
|
4
4
|
type StatusMessageProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Custom icon to be displayed at the beginning.
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { Box, StatusIconMap
|
|
6
|
+
import { Box, StatusIconMap } from '../utils/index.js';
|
|
7
7
|
import cx from 'classnames';
|
|
8
|
+
import { Icon } from '../Icon/Icon.js';
|
|
8
9
|
/**
|
|
9
10
|
* Component to display icon and text below the form field.
|
|
10
11
|
* @example
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import { Tooltip } from '../Tooltip/
|
|
7
|
+
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
8
8
|
import { Box } from '../utils/index.js';
|
|
9
9
|
export const StepperStep = React.forwardRef((props, forwardedRef) => {
|
|
10
10
|
const {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import { Tooltip } from '../Tooltip/
|
|
7
|
+
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
8
8
|
import { Box } from '../utils/index.js';
|
|
9
9
|
export const WorkflowDiagramStep = (props) => {
|
|
10
10
|
const { title, description, className, style, contentProps, ...rest } = props;
|
|
@@ -11,6 +11,14 @@ type SurfaceProps = {
|
|
|
11
11
|
* Sets the elevation of the surface
|
|
12
12
|
*/
|
|
13
13
|
elevation?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
14
|
+
/**
|
|
15
|
+
* Sets the border of the surface.
|
|
16
|
+
*
|
|
17
|
+
* Can be a boolean to toggle the default border, or a string value to specify a custom border.
|
|
18
|
+
*
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
border?: boolean | string;
|
|
14
22
|
/**
|
|
15
23
|
* Content in the surface.
|
|
16
24
|
*/
|
|
@@ -26,6 +26,16 @@ const getSurfaceElevationValue = (elevation) => {
|
|
|
26
26
|
return '';
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
+
/** Returns correct border value based on prop */
|
|
30
|
+
const getBorderValue = (border) => {
|
|
31
|
+
if (typeof border === 'string') {
|
|
32
|
+
return border;
|
|
33
|
+
}
|
|
34
|
+
if (border === false) {
|
|
35
|
+
return 'none';
|
|
36
|
+
}
|
|
37
|
+
return '';
|
|
38
|
+
};
|
|
29
39
|
// ----------------------------------------------------------------------------
|
|
30
40
|
// Surface.Header component
|
|
31
41
|
const SurfaceHeader = React.forwardRef((props, ref) => {
|
|
@@ -73,10 +83,18 @@ const SurfaceBody = React.forwardRef((props, ref) => {
|
|
|
73
83
|
*/
|
|
74
84
|
export const Surface = Object.assign(
|
|
75
85
|
React.forwardRef((props, ref) => {
|
|
76
|
-
const {
|
|
86
|
+
const {
|
|
87
|
+
elevation,
|
|
88
|
+
border = true,
|
|
89
|
+
className,
|
|
90
|
+
style,
|
|
91
|
+
children,
|
|
92
|
+
...rest
|
|
93
|
+
} = props;
|
|
77
94
|
const [hasLayout, setHasLayout] = React.useState(false);
|
|
78
95
|
const _style = {
|
|
79
96
|
'--iui-surface-elevation': getSurfaceElevationValue(elevation),
|
|
97
|
+
'--iui-surface-border': getBorderValue(border),
|
|
80
98
|
...style,
|
|
81
99
|
};
|
|
82
100
|
return React.createElement(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { Cell, CellProps } from 'react-table';
|
|
2
|
+
import type { Cell, CellProps } from '../../react-table/react-table.js';
|
|
3
3
|
export type SubRowExpanderProps<T extends Record<string, unknown>> = {
|
|
4
4
|
cell: Cell<T>;
|
|
5
5
|
expanderCell?: (cellProps: CellProps<T>) => React.ReactNode;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { SvgChevronRight } from '../utils/index.js';
|
|
7
|
-
import { IconButton } from '../Buttons/
|
|
7
|
+
import { IconButton } from '../Buttons/IconButton.js';
|
|
8
8
|
export const SubRowExpander = (props) => {
|
|
9
9
|
const { cell, isDisabled, cellProps, expanderCell, density } = props;
|
|
10
10
|
return React.createElement(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellProps, TableOptions, Row, TableState } from 'react-table';
|
|
2
|
+
import type { CellProps, TableOptions, Row, TableState } from '../../react-table/react-table.js';
|
|
3
3
|
import type { CommonProps } from '../utils/index.js';
|
|
4
4
|
import type { TableFilterValue } from './filters/index.js';
|
|
5
5
|
export declare const tableResizeStartAction = "tableResizeStart";
|
package/esm/core/Table/Table.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
useColumnOrder,
|
|
17
17
|
useGlobalFilter,
|
|
18
18
|
} from 'react-table';
|
|
19
|
-
import { ProgressRadial } from '../ProgressIndicators/
|
|
19
|
+
import { ProgressRadial } from '../ProgressIndicators/ProgressRadial.js';
|
|
20
20
|
import {
|
|
21
21
|
useGlobals,
|
|
22
22
|
useResizeObserver,
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
SvgSortUp,
|
|
25
25
|
useIsomorphicLayoutEffect,
|
|
26
26
|
Box,
|
|
27
|
+
createWarningLogger,
|
|
27
28
|
} from '../utils/index.js';
|
|
28
29
|
import { getCellStyle, getStickyStyle } from './utils.js';
|
|
29
30
|
import { TableRowMemoized } from './TableRowMemoized.js';
|
|
@@ -54,17 +55,13 @@ const singleRowSelectedAction = 'singleRowSelected';
|
|
|
54
55
|
const shiftRowSelectedAction = 'shiftRowSelected';
|
|
55
56
|
export const tableResizeStartAction = 'tableResizeStart';
|
|
56
57
|
const tableResizeEndAction = 'tableResizeEnd';
|
|
57
|
-
|
|
58
|
-
let isDev = false;
|
|
59
|
-
// wrapping in try-catch because process might be undefined
|
|
60
|
-
try {
|
|
61
|
-
isDev = process.env.NODE_ENV !== 'production';
|
|
62
|
-
} catch {}
|
|
58
|
+
const logWarningInDev = createWarningLogger();
|
|
63
59
|
const flattenColumns = (columns) => {
|
|
64
60
|
const flatColumns = [];
|
|
65
61
|
columns.forEach((column) => {
|
|
66
62
|
flatColumns.push(column);
|
|
67
63
|
if ('columns' in column) {
|
|
64
|
+
// @ts-expect-error - Since nested columns are not supported from a types perspective
|
|
68
65
|
flatColumns.push(...flattenColumns(column.columns));
|
|
69
66
|
}
|
|
70
67
|
});
|
|
@@ -343,12 +340,9 @@ export const Table = (props) => {
|
|
|
343
340
|
let headerGroups = _headerGroups;
|
|
344
341
|
if (columns.length === 1 && 'columns' in columns[0]) {
|
|
345
342
|
headerGroups = _headerGroups.slice(1);
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
);
|
|
350
|
-
didLogWarning = true;
|
|
351
|
-
}
|
|
343
|
+
logWarningInDev(
|
|
344
|
+
`Table's \`columns\` prop should not have a top-level \`Header\` or sub-columns. They are only allowed to be passed for backwards compatibility.\n See https://github.com/iTwin/iTwinUI/wiki/iTwinUI-react-v2-migration-guide#breaking-changes`,
|
|
345
|
+
);
|
|
352
346
|
}
|
|
353
347
|
const ariaDataAttributes = Object.entries(rest).reduce(
|
|
354
348
|
(result, [key, value]) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { Cell, CellProps, TableInstance } from 'react-table';
|
|
2
|
+
import type { Cell, CellProps, TableInstance } from '../../react-table/react-table.js';
|
|
3
3
|
export type TableCellProps<T extends Record<string, unknown>> = {
|
|
4
4
|
cell: Cell<T>;
|
|
5
5
|
cellIndex: number;
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import { IconButton
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { IconButton } from '../Buttons/IconButton.js';
|
|
8
|
+
import { Button } from '../Buttons/Button.js';
|
|
9
|
+
import { DropdownButton } from '../Buttons/DropdownButton.js';
|
|
10
|
+
import { ProgressRadial } from '../ProgressIndicators/ProgressRadial.js';
|
|
11
|
+
import { MenuItem } from '../Menu/MenuItem.js';
|
|
10
12
|
import {
|
|
11
13
|
getBoundedValue,
|
|
12
14
|
useGlobals,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellProps, Row, TableInstance, TableState } from 'react-table';
|
|
2
|
+
import type { CellProps, Row, TableInstance, TableState } from '../../react-table/react-table.js';
|
|
3
3
|
/**
|
|
4
4
|
* Memoization is needed to avoid unnecessary re-renders of all rows when additional data is added when lazy-loading.
|
|
5
5
|
* Using `isLast` here instead of passing data length to avoid re-renders of all rows when more data is added. Now only the last row re-renders.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TableInstance, TableState } from 'react-table';
|
|
1
|
+
import type { TableInstance, TableState } from '../../../react-table/react-table.js';
|
|
2
2
|
export declare const onExpandHandler: <T extends Record<string, unknown>>(newState: TableState<T>, instance?: TableInstance<T> | undefined, onExpand?: ((expandedData: T[] | undefined, tableState?: TableState<T> | undefined) => void) | undefined) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ActionType, TableInstance, TableState } from 'react-table';
|
|
1
|
+
import type { ActionType, TableInstance, TableState } from '../../../react-table/react-table.js';
|
|
2
2
|
import type { TableFilterValue } from '../filters/index.js';
|
|
3
3
|
export declare const onFilterHandler: <T extends Record<string, unknown>>(newState: TableState<T>, action: ActionType, previousState: TableState<T>, currentFilter: TableFilterValue<T>[], instance?: TableInstance<T> | undefined) => TableFilterValue<T>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ActionType, TableState } from 'react-table';
|
|
1
|
+
import type { ActionType, TableState } from '../../../react-table/react-table.js';
|
|
2
2
|
export declare const onTableResizeStart: <T extends Record<string, unknown>>(state: TableState<T>) => {
|
|
3
3
|
isTableResizing: boolean;
|
|
4
|
-
hiddenColumns?: import("react-table").IdType<T>[] | undefined;
|
|
4
|
+
hiddenColumns?: import("../../../react-table/react-table.js").IdType<T>[] | undefined;
|
|
5
5
|
columnResizing: {
|
|
6
6
|
startX?: number | undefined;
|
|
7
7
|
columnWidth?: number | undefined;
|
|
@@ -17,18 +17,18 @@ export declare const onTableResizeStart: <T extends Record<string, unknown>>(sta
|
|
|
17
17
|
isScrolledToLeft?: boolean | undefined;
|
|
18
18
|
};
|
|
19
19
|
lastSelectedRowId?: string | undefined;
|
|
20
|
-
columnOrder: import("react-table").IdType<T>[];
|
|
21
|
-
expanded: Record<import("react-table").IdType<T>, boolean>;
|
|
22
|
-
filters: import("react-table").Filters<T>;
|
|
20
|
+
columnOrder: import("../../../react-table/react-table.js").IdType<T>[];
|
|
21
|
+
expanded: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
22
|
+
filters: import("../../../react-table/react-table.js").Filters<T>;
|
|
23
23
|
globalFilter: any;
|
|
24
|
-
groupBy: import("react-table").IdType<T>[];
|
|
24
|
+
groupBy: import("../../../react-table/react-table.js").IdType<T>[];
|
|
25
25
|
pageSize: number;
|
|
26
26
|
pageIndex: number;
|
|
27
|
-
selectedRowIds: Record<import("react-table").IdType<T>, boolean>;
|
|
27
|
+
selectedRowIds: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
28
28
|
rowState: Record<string, {
|
|
29
|
-
cellState: import("react-table").UseRowStateLocalState<T, unknown>;
|
|
29
|
+
cellState: import("../../../react-table/react-table.js").UseRowStateLocalState<T, unknown>;
|
|
30
30
|
}>;
|
|
31
|
-
sortBy: import("react-table").SortingRule<T>[];
|
|
31
|
+
sortBy: import("../../../react-table/react-table.js").SortingRule<T>[];
|
|
32
32
|
};
|
|
33
33
|
export declare const onTableResizeEnd: <T extends Record<string, unknown>>(state: TableState<T>, action: ActionType) => {
|
|
34
34
|
isTableResizing: boolean;
|
|
@@ -41,23 +41,23 @@ export declare const onTableResizeEnd: <T extends Record<string, unknown>>(state
|
|
|
41
41
|
nextHeaderIdWidths?: [string, number][] | undefined;
|
|
42
42
|
isResizingColumn?: string | undefined;
|
|
43
43
|
};
|
|
44
|
-
hiddenColumns?: import("react-table").IdType<T>[] | undefined;
|
|
44
|
+
hiddenColumns?: import("../../../react-table/react-table.js").IdType<T>[] | undefined;
|
|
45
45
|
columnReorderStartIndex: number;
|
|
46
46
|
sticky: {
|
|
47
47
|
isScrolledToRight?: boolean | undefined;
|
|
48
48
|
isScrolledToLeft?: boolean | undefined;
|
|
49
49
|
};
|
|
50
50
|
lastSelectedRowId?: string | undefined;
|
|
51
|
-
columnOrder: import("react-table").IdType<T>[];
|
|
52
|
-
expanded: Record<import("react-table").IdType<T>, boolean>;
|
|
53
|
-
filters: import("react-table").Filters<T>;
|
|
51
|
+
columnOrder: import("../../../react-table/react-table.js").IdType<T>[];
|
|
52
|
+
expanded: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
53
|
+
filters: import("../../../react-table/react-table.js").Filters<T>;
|
|
54
54
|
globalFilter: any;
|
|
55
|
-
groupBy: import("react-table").IdType<T>[];
|
|
55
|
+
groupBy: import("../../../react-table/react-table.js").IdType<T>[];
|
|
56
56
|
pageSize: number;
|
|
57
57
|
pageIndex: number;
|
|
58
|
-
selectedRowIds: Record<import("react-table").IdType<T>, boolean>;
|
|
58
|
+
selectedRowIds: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
59
59
|
rowState: Record<string, {
|
|
60
|
-
cellState: import("react-table").UseRowStateLocalState<T, unknown>;
|
|
60
|
+
cellState: import("../../../react-table/react-table.js").UseRowStateLocalState<T, unknown>;
|
|
61
61
|
}>;
|
|
62
|
-
sortBy: import("react-table").SortingRule<T>[];
|
|
62
|
+
sortBy: import("../../../react-table/react-table.js").SortingRule<T>[];
|
|
63
63
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionType, TableInstance, TableState } from 'react-table';
|
|
1
|
+
import type { ActionType, TableInstance, TableState } from '../../../react-table/react-table.js';
|
|
2
2
|
/**
|
|
3
3
|
* Handles selection when toggling a row (Ctrl click or checkbox click)
|
|
4
4
|
*/
|
|
@@ -9,7 +9,7 @@ export declare const onToggleHandler: <T extends Record<string, unknown>>(newSta
|
|
|
9
9
|
export declare const onSingleSelectHandler: <T extends Record<string, unknown>>(state: TableState<T>, action: ActionType, instance?: TableInstance<T> | undefined, onSelect?: ((selectedData: T[] | undefined, tableState?: TableState<T> | undefined) => void) | undefined, isRowDisabled?: ((rowData: T) => boolean) | undefined) => {
|
|
10
10
|
lastSelectedRowId: any;
|
|
11
11
|
selectedRowIds: Record<string, boolean>;
|
|
12
|
-
hiddenColumns?: import("react-table").IdType<T>[] | undefined;
|
|
12
|
+
hiddenColumns?: import("../../../react-table/react-table.js").IdType<T>[] | undefined;
|
|
13
13
|
columnResizing: {
|
|
14
14
|
startX?: number | undefined;
|
|
15
15
|
columnWidth?: number | undefined;
|
|
@@ -25,17 +25,17 @@ export declare const onSingleSelectHandler: <T extends Record<string, unknown>>(
|
|
|
25
25
|
isScrolledToRight?: boolean | undefined;
|
|
26
26
|
isScrolledToLeft?: boolean | undefined;
|
|
27
27
|
};
|
|
28
|
-
columnOrder: import("react-table").IdType<T>[];
|
|
29
|
-
expanded: Record<import("react-table").IdType<T>, boolean>;
|
|
30
|
-
filters: import("react-table").Filters<T>;
|
|
28
|
+
columnOrder: import("../../../react-table/react-table.js").IdType<T>[];
|
|
29
|
+
expanded: Record<import("../../../react-table/react-table.js").IdType<T>, boolean>;
|
|
30
|
+
filters: import("../../../react-table/react-table.js").Filters<T>;
|
|
31
31
|
globalFilter: any;
|
|
32
|
-
groupBy: import("react-table").IdType<T>[];
|
|
32
|
+
groupBy: import("../../../react-table/react-table.js").IdType<T>[];
|
|
33
33
|
pageSize: number;
|
|
34
34
|
pageIndex: number;
|
|
35
35
|
rowState: Record<string, {
|
|
36
|
-
cellState: import("react-table").UseRowStateLocalState<T, unknown>;
|
|
36
|
+
cellState: import("../../../react-table/react-table.js").UseRowStateLocalState<T, unknown>;
|
|
37
37
|
}>;
|
|
38
|
-
sortBy: import("react-table").SortingRule<T>[];
|
|
38
|
+
sortBy: import("../../../react-table/react-table.js").SortingRule<T>[];
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Handles selection when clicked on a row while shift key is pressed.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellRendererProps } from 'react-table';
|
|
2
|
+
import type { CellRendererProps } from '../../../react-table/react-table.js';
|
|
3
3
|
export type DefaultCellProps<T extends Record<string, unknown>> = {
|
|
4
4
|
/**
|
|
5
5
|
* Custom icon to be displayed at the beginning of the cell.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellRendererProps } from 'react-table';
|
|
2
|
+
import type { CellRendererProps } from '../../../react-table/react-table.js';
|
|
3
3
|
export type EditableCellProps<T extends Record<string, unknown>> = CellRendererProps<T> & {
|
|
4
4
|
/**
|
|
5
5
|
* Callback function when cell is edited. It is called only when `onBlur` event is fired.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { HeaderProps } from 'react-table';
|
|
3
|
-
import type { DropdownMenuProps } from '../../DropdownMenu/
|
|
2
|
+
import type { HeaderProps } from '../../../react-table/react-table.js';
|
|
3
|
+
import type { DropdownMenuProps } from '../../DropdownMenu/DropdownMenu.js';
|
|
4
4
|
type ActionColumnProps = {
|
|
5
5
|
columnManager?: boolean | {
|
|
6
6
|
dropdownMenuProps: Omit<DropdownMenuProps, 'menuItems' | 'children'>;
|
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { Checkbox } from '../../Checkbox/
|
|
6
|
+
import { Checkbox } from '../../Checkbox/Checkbox.js';
|
|
7
7
|
import { SvgColumnManager } from '../../utils/index.js';
|
|
8
|
-
import { DropdownMenu } from '../../DropdownMenu/
|
|
9
|
-
import { IconButton } from '../../Buttons/IconButton
|
|
10
|
-
import { MenuItem } from '../../Menu/
|
|
8
|
+
import { DropdownMenu } from '../../DropdownMenu/DropdownMenu.js';
|
|
9
|
+
import { IconButton } from '../../Buttons/IconButton.js';
|
|
10
|
+
import { MenuItem } from '../../Menu/MenuItem.js';
|
|
11
11
|
import { tableResizeStartAction } from '../Table.js';
|
|
12
12
|
import { SELECTION_CELL_ID } from './selectionColumn.js';
|
|
13
13
|
import { EXPANDER_CELL_ID } from './expanderColumn.js';
|
|
14
|
-
import cx from 'classnames';
|
|
15
14
|
const ACTION_CELL_ID = 'iui-table-action';
|
|
16
15
|
/**
|
|
17
16
|
* Action column that adds column manager to the Table header.
|
|
@@ -105,15 +104,10 @@ export const ActionColumn = ({ columnManager = false } = {}) => {
|
|
|
105
104
|
{
|
|
106
105
|
...dropdownMenuProps,
|
|
107
106
|
menuItems: headerCheckBoxes,
|
|
108
|
-
|
|
109
|
-
setIsOpen(
|
|
110
|
-
dropdownMenuProps
|
|
107
|
+
onVisibleChange: (open) => {
|
|
108
|
+
setIsOpen(open);
|
|
109
|
+
dropdownMenuProps?.onVisibleChange?.(open);
|
|
111
110
|
},
|
|
112
|
-
onShow: (i) => {
|
|
113
|
-
setIsOpen(true);
|
|
114
|
-
dropdownMenuProps.onShow?.(i);
|
|
115
|
-
},
|
|
116
|
-
className: cx('iui-scroll', dropdownMenuProps.className),
|
|
117
111
|
},
|
|
118
112
|
React.createElement(
|
|
119
113
|
IconButton,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellProps, CellRendererProps, Row } from 'react-table';
|
|
2
|
+
import type { CellProps, CellRendererProps, Row } from '../../../react-table/react-table.js';
|
|
3
3
|
export declare const EXPANDER_CELL_ID = "iui-table-expander";
|
|
4
4
|
/**
|
|
5
5
|
* Expander column that adds sub-content expander column to the Table.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { SvgChevronRight } from '../../utils/index.js';
|
|
7
|
-
import { IconButton } from '../../Buttons/
|
|
7
|
+
import { IconButton } from '../../Buttons/IconButton.js';
|
|
8
8
|
import { DefaultCell } from '../cells/index.js';
|
|
9
9
|
export const EXPANDER_CELL_ID = 'iui-table-expander';
|
|
10
10
|
/**
|
|
@@ -58,6 +58,7 @@ export const ExpanderColumn = (props = {}) => {
|
|
|
58
58
|
row.toggleRowExpanded();
|
|
59
59
|
},
|
|
60
60
|
disabled: isDisabled?.(props.row.original),
|
|
61
|
+
'aria-expanded': row.isExpanded,
|
|
61
62
|
},
|
|
62
63
|
React.createElement(SvgChevronRight, null),
|
|
63
64
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { CellProps, CellRendererProps, HeaderProps } from 'react-table';
|
|
2
|
+
import type { CellProps, CellRendererProps, HeaderProps } from '../../../react-table/react-table.js';
|
|
3
3
|
export declare const SELECTION_CELL_ID = "iui-table-checkbox-selector";
|
|
4
4
|
/**
|
|
5
5
|
* Selection column that adds selection checkbox column to the Table.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { Checkbox } from '../../Checkbox/
|
|
6
|
+
import { Checkbox } from '../../Checkbox/Checkbox.js';
|
|
7
7
|
import { DefaultCell } from '../cells/index.js';
|
|
8
8
|
export const SELECTION_CELL_ID = 'iui-table-checkbox-selector';
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { LabeledInput } from '../../../LabeledInput/
|
|
2
|
+
import type { LabeledInput } from '../../../LabeledInput/LabeledInput.js';
|
|
3
3
|
import type { PolymorphicForwardRefComponent } from '../../../utils/index.js';
|
|
4
4
|
import type { DatePickerLocalizedNames } from '../../../DatePicker/DatePicker.js';
|
|
5
5
|
export type DatePickerInputProps = {
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import {
|
|
7
|
-
import { DatePicker } from '../../../DatePicker/
|
|
8
|
-
import { InputGrid } from '../../../InputGrid/
|
|
9
|
-
import { Label } from '../../../Label/
|
|
10
|
-
import { InputWithDecorations } from '../../../InputWithDecorations/
|
|
6
|
+
import { SvgCalendar, isBefore, useId } from '../../../utils/index.js';
|
|
7
|
+
import { DatePicker } from '../../../DatePicker/DatePicker.js';
|
|
8
|
+
import { InputGrid } from '../../../InputGrid/InputGrid.js';
|
|
9
|
+
import { Label } from '../../../Label/Label.js';
|
|
10
|
+
import { InputWithDecorations } from '../../../InputWithDecorations/InputWithDecorations.js';
|
|
11
|
+
import { Popover } from '../../../Popover/Popover.js';
|
|
11
12
|
const DatePickerInput = React.forwardRef((props, forwardedRef) => {
|
|
12
13
|
const uid = useId();
|
|
13
14
|
const {
|
|
@@ -66,54 +67,51 @@ const DatePickerInput = React.forwardRef((props, forwardedRef) => {
|
|
|
66
67
|
[onChange, parseInput],
|
|
67
68
|
);
|
|
68
69
|
return React.createElement(
|
|
69
|
-
|
|
70
|
-
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
visible: isVisible,
|
|
80
|
-
onClickOutside: (_, e) => {
|
|
81
|
-
if (!buttonRef.current?.contains(e.target)) {
|
|
82
|
-
close();
|
|
83
|
-
}
|
|
70
|
+
InputGrid,
|
|
71
|
+
{ labelPlacement: 'inline', ...wrapperProps },
|
|
72
|
+
React.createElement(
|
|
73
|
+
Label,
|
|
74
|
+
{
|
|
75
|
+
as: 'label',
|
|
76
|
+
required: required,
|
|
77
|
+
disabled: disabled,
|
|
78
|
+
htmlFor: id,
|
|
79
|
+
...labelProps,
|
|
84
80
|
},
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
label,
|
|
82
|
+
),
|
|
87
83
|
React.createElement(
|
|
88
|
-
|
|
89
|
-
{
|
|
84
|
+
InputWithDecorations,
|
|
85
|
+
{ ...inputWrapperProps },
|
|
86
|
+
React.createElement(InputWithDecorations.Input, {
|
|
87
|
+
id: id,
|
|
88
|
+
value: inputValue,
|
|
89
|
+
onChange: onInputChange,
|
|
90
|
+
required: required,
|
|
91
|
+
disabled: disabled,
|
|
92
|
+
ref: forwardedRef,
|
|
93
|
+
...rest,
|
|
94
|
+
}),
|
|
90
95
|
React.createElement(
|
|
91
|
-
|
|
96
|
+
Popover,
|
|
92
97
|
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
content: React.createElement(DatePicker, {
|
|
99
|
+
date: date,
|
|
100
|
+
onChange: onDateSelected,
|
|
101
|
+
setFocus: true,
|
|
102
|
+
isDateDisabled: isDateDisabled,
|
|
103
|
+
localizedNames: localizedNames,
|
|
104
|
+
applyBackground: false,
|
|
105
|
+
}),
|
|
106
|
+
placement: 'bottom-end',
|
|
107
|
+
visible: isVisible,
|
|
108
|
+
onVisibleChange: setIsVisible,
|
|
109
|
+
closeOnOutsideClick: true,
|
|
110
|
+
applyBackground: true,
|
|
98
111
|
},
|
|
99
|
-
label,
|
|
100
|
-
),
|
|
101
|
-
React.createElement(
|
|
102
|
-
InputWithDecorations,
|
|
103
|
-
{ ...inputWrapperProps },
|
|
104
|
-
React.createElement(InputWithDecorations.Input, {
|
|
105
|
-
id: id,
|
|
106
|
-
value: inputValue,
|
|
107
|
-
onChange: onInputChange,
|
|
108
|
-
onClick: close,
|
|
109
|
-
required: required,
|
|
110
|
-
disabled: disabled,
|
|
111
|
-
ref: forwardedRef,
|
|
112
|
-
...rest,
|
|
113
|
-
}),
|
|
114
112
|
React.createElement(
|
|
115
113
|
InputWithDecorations.Button,
|
|
116
|
-
{
|
|
114
|
+
{ 'aria-label': 'Date picker', ref: buttonRef },
|
|
117
115
|
React.createElement(SvgCalendar, null),
|
|
118
116
|
),
|
|
119
117
|
),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { Box, useGlobals } from '../../utils/index.js';
|
|
8
|
-
import { Button } from '../../Buttons/
|
|
8
|
+
import { Button } from '../../Buttons/Button.js';
|
|
9
9
|
const defaultStrings = {
|
|
10
10
|
filter: 'Filter',
|
|
11
11
|
clear: 'Clear',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { HeaderGroup } from 'react-table';
|
|
2
|
+
import type { HeaderGroup } from '../../../react-table/react-table.js';
|
|
3
3
|
import type { CommonProps } from '../../utils/index.js';
|
|
4
4
|
export type FilterToggleProps<T extends Record<string, unknown>> = {
|
|
5
5
|
column: HeaderGroup<T>;
|