@itwin/itwinui-react 3.0.0-dev.9 → 3.0.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 +80 -768
- package/README.md +5 -7
- 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} +7 -7
- 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/cjs/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +3 -3
- package/cjs/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +14 -13
- 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 +6 -1
- package/cjs/core/ComboBox/ComboBox.js +19 -18
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.js +10 -10
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +6 -6
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMenu.js +12 -14
- package/cjs/core/ComboBox/helpers.d.ts +1 -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 +2 -2
- package/cjs/core/DropdownMenu/DropdownMenu.js +4 -3
- 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 +6 -6
- package/cjs/core/Header/HeaderSplitButton.d.ts +1 -1
- package/cjs/core/Header/HeaderSplitButton.js +7 -7
- package/{esm/core/utils/components → cjs/core/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/MenuItem.js +2 -1
- 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/{utils/components → Popover}/Popover.d.ts +29 -13
- package/cjs/core/{utils/components → Popover}/Popover.js +43 -25
- 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 +2 -2
- package/cjs/core/Select/Select.js +39 -30
- 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 +10 -15
- 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 +25 -19
- 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 +5 -3
- 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 +20 -18
- 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.js +4 -4
- 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 -15
- 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} +3 -3
- 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/esm/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +3 -3
- package/esm/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +5 -5
- 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 +6 -1
- package/esm/core/ComboBox/ComboBox.js +6 -4
- package/esm/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/esm/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInput.js +1 -1
- package/esm/core/ComboBox/ComboBoxInputContainer.js +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.js +2 -4
- package/esm/core/ComboBox/helpers.d.ts +1 -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 +2 -2
- package/esm/core/DropdownMenu/DropdownMenu.js +2 -3
- 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 +1 -1
- package/esm/core/Header/HeaderSplitButton.d.ts +1 -1
- package/esm/core/Header/HeaderSplitButton.js +1 -1
- package/{cjs/core/utils/components → esm/core/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/MenuItem.js +1 -1
- 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/{utils/components → Popover}/Popover.d.ts +29 -13
- package/esm/core/{utils/components → Popover}/Popover.js +45 -25
- 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 +2 -2
- package/esm/core/Select/Select.js +17 -10
- 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 +4 -6
- 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 +8 -5
- 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 +4 -7
- 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 +15 -14
- 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.js +2 -2
- 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 -15
- package/package.json +22 -21
- package/react-table.d.ts +745 -0
- package/styles.css +57 -66
- 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/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 -916
- 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/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 -132
- package/esm/types/react-table-config.d.ts +0 -135
- package/esm/types/react-table-config.js +0 -1
|
@@ -3,9 +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 { Button } from '../Buttons/Button
|
|
6
|
+
import { Button } from '../Buttons/Button.js';
|
|
7
7
|
import { NonIdealState } from './NonIdealState.js';
|
|
8
|
-
import { ProgressRadial } from '../ProgressIndicators/
|
|
8
|
+
import { ProgressRadial } from '../ProgressIndicators/ProgressRadial.js';
|
|
9
9
|
import { dynamicImport } from '../utils/index.js';
|
|
10
10
|
const Svg401 = React.lazy(() =>
|
|
11
11
|
dynamicImport('@itwin/itwinui-illustrations-react/Svg401'),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { Placement } from '@floating-ui/react';
|
|
3
|
-
import type { PolymorphicForwardRefComponent } from '../index.js';
|
|
4
|
-
import type { PortalProps } from '
|
|
3
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
|
+
import type { PortalProps } from '../utils/components/Portal.js';
|
|
5
5
|
type PopoverOptions = {
|
|
6
6
|
/**
|
|
7
7
|
* Placement of the popover content.
|
|
@@ -19,12 +19,10 @@ type PopoverOptions = {
|
|
|
19
19
|
onVisibleChange?: (visible: boolean) => void;
|
|
20
20
|
/**
|
|
21
21
|
* If true, the popover will close when clicking outside it.
|
|
22
|
+
*
|
|
23
|
+
* @default true
|
|
22
24
|
*/
|
|
23
25
|
closeOnOutsideClick?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Whether the popover should match the width of the trigger.
|
|
26
|
-
*/
|
|
27
|
-
matchWidth?: boolean;
|
|
28
26
|
};
|
|
29
27
|
type PopoverInternalProps = {
|
|
30
28
|
/**
|
|
@@ -64,6 +62,10 @@ type PopoverInternalProps = {
|
|
|
64
62
|
*/
|
|
65
63
|
trigger?: Partial<Record<'hover' | 'click' | 'focus', boolean>>;
|
|
66
64
|
role?: 'dialog' | 'menu' | 'listbox';
|
|
65
|
+
/**
|
|
66
|
+
* Whether the popover should match the width of the trigger.
|
|
67
|
+
*/
|
|
68
|
+
matchWidth?: boolean;
|
|
67
69
|
};
|
|
68
70
|
export declare const usePopover: (options: PopoverOptions & PopoverInternalProps) => {
|
|
69
71
|
placement: Placement;
|
|
@@ -81,11 +83,7 @@ export declare const usePopover: (options: PopoverOptions & PopoverInternalProps
|
|
|
81
83
|
setFloating: (node: HTMLElement | null) => void;
|
|
82
84
|
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
83
85
|
elements: {
|
|
84
|
-
reference: import("@floating-ui/react-dom").ReferenceType | null;
|
|
85
|
-
* Middleware options.
|
|
86
|
-
*
|
|
87
|
-
* @see https://floating-ui.com/docs/offset
|
|
88
|
-
*/
|
|
86
|
+
reference: import("@floating-ui/react-dom").ReferenceType | null;
|
|
89
87
|
floating: HTMLElement | null;
|
|
90
88
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
91
89
|
context: {
|
|
@@ -113,13 +111,31 @@ export declare const usePopover: (options: PopoverOptions & PopoverInternalProps
|
|
|
113
111
|
onOpenChange: React.Dispatch<React.SetStateAction<boolean | undefined>>;
|
|
114
112
|
};
|
|
115
113
|
type PopoverPublicProps = {
|
|
114
|
+
/**
|
|
115
|
+
* Content displayed inside the popover.
|
|
116
|
+
*/
|
|
116
117
|
content?: React.ReactNode;
|
|
118
|
+
/**
|
|
119
|
+
* Element that triggers the popover. Should usually be a button.
|
|
120
|
+
*/
|
|
117
121
|
children?: React.ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the popover adds recommended CSS (background-color, box-shadow, etc.) to itself.
|
|
124
|
+
*
|
|
125
|
+
* @default false
|
|
126
|
+
*/
|
|
118
127
|
applyBackground?: boolean;
|
|
119
128
|
} & PortalProps & PopoverOptions;
|
|
120
129
|
/**
|
|
121
|
-
* A utility component to help with positioning of floating content.
|
|
122
|
-
* Built on top of [`floating-ui`](https://floating-ui.com/)
|
|
130
|
+
* A utility component to help with positioning of floating content relative to a trigger.
|
|
131
|
+
* Built on top of [`floating-ui`](https://floating-ui.com/).
|
|
132
|
+
*
|
|
133
|
+
* @see https://itwinui.bentley.com/docs/popover
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* <Popover content='This is a popover'>
|
|
137
|
+
* <Button>Show popover</Button>
|
|
138
|
+
* </Popover>
|
|
123
139
|
*/
|
|
124
140
|
export declare const Popover: PolymorphicForwardRefComponent<"div", PopoverPublicProps>;
|
|
125
141
|
export default Popover;
|
|
@@ -3,6 +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 cx from 'classnames';
|
|
6
7
|
import {
|
|
7
8
|
useFloating,
|
|
8
9
|
useClick,
|
|
@@ -21,16 +22,17 @@ import {
|
|
|
21
22
|
useFocus,
|
|
22
23
|
safePolygon,
|
|
23
24
|
useRole,
|
|
25
|
+
FloatingPortal,
|
|
24
26
|
} from '@floating-ui/react';
|
|
25
27
|
import {
|
|
26
28
|
Box,
|
|
27
29
|
cloneElementWithRef,
|
|
28
30
|
useControlledState,
|
|
31
|
+
useId,
|
|
29
32
|
useMergedRefs,
|
|
30
|
-
} from '../index.js';
|
|
31
|
-
import { Portal } from '
|
|
32
|
-
import {
|
|
33
|
-
import { ThemeProvider } from '../../ThemeProvider/index.js';
|
|
33
|
+
} from '../utils/index.js';
|
|
34
|
+
import { Portal } from '../utils/components/Portal.js';
|
|
35
|
+
import { ThemeProvider } from '../ThemeProvider/ThemeProvider.js';
|
|
34
36
|
// ----------------------------------------------------------------------------
|
|
35
37
|
export const usePopover = (options) => {
|
|
36
38
|
const {
|
|
@@ -111,8 +113,15 @@ export const usePopover = (options) => {
|
|
|
111
113
|
);
|
|
112
114
|
};
|
|
113
115
|
/**
|
|
114
|
-
* A utility component to help with positioning of floating content.
|
|
115
|
-
* Built on top of [`floating-ui`](https://floating-ui.com/)
|
|
116
|
+
* A utility component to help with positioning of floating content relative to a trigger.
|
|
117
|
+
* Built on top of [`floating-ui`](https://floating-ui.com/).
|
|
118
|
+
*
|
|
119
|
+
* @see https://itwinui.bentley.com/docs/popover
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* <Popover content='This is a popover'>
|
|
123
|
+
* <Button>Show popover</Button>
|
|
124
|
+
* </Popover>
|
|
116
125
|
*/
|
|
117
126
|
export const Popover = React.forwardRef((props, forwardedRef) => {
|
|
118
127
|
const {
|
|
@@ -120,15 +129,15 @@ export const Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
120
129
|
//
|
|
121
130
|
// popover options
|
|
122
131
|
visible,
|
|
123
|
-
placement,
|
|
132
|
+
placement = 'bottom-start',
|
|
124
133
|
onVisibleChange,
|
|
125
|
-
closeOnOutsideClick,
|
|
126
|
-
matchWidth,
|
|
134
|
+
closeOnOutsideClick = true,
|
|
127
135
|
//
|
|
128
136
|
// dom props
|
|
137
|
+
className,
|
|
129
138
|
children,
|
|
130
139
|
content,
|
|
131
|
-
applyBackground,
|
|
140
|
+
applyBackground = false,
|
|
132
141
|
...rest
|
|
133
142
|
} = props;
|
|
134
143
|
const popover = usePopover({
|
|
@@ -136,7 +145,6 @@ export const Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
136
145
|
placement,
|
|
137
146
|
onVisibleChange,
|
|
138
147
|
closeOnOutsideClick,
|
|
139
|
-
matchWidth,
|
|
140
148
|
role: 'dialog',
|
|
141
149
|
});
|
|
142
150
|
const [popoverElement, setPopoverElement] = React.useState();
|
|
@@ -145,10 +153,13 @@ export const Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
145
153
|
forwardedRef,
|
|
146
154
|
setPopoverElement,
|
|
147
155
|
);
|
|
156
|
+
const triggerId = `${useId()}-trigger`;
|
|
157
|
+
const hasAriaLabel = !!props['aria-labelledby'] || !!props['aria-label'];
|
|
148
158
|
return React.createElement(
|
|
149
159
|
React.Fragment,
|
|
150
160
|
null,
|
|
151
161
|
cloneElementWithRef(children, (children) => ({
|
|
162
|
+
id: children.props.id || triggerId,
|
|
152
163
|
...popover.getReferenceProps(children.props),
|
|
153
164
|
ref: popover.refs.setReference,
|
|
154
165
|
})),
|
|
@@ -157,24 +168,33 @@ export const Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
157
168
|
Portal,
|
|
158
169
|
{ portal: portal },
|
|
159
170
|
React.createElement(
|
|
160
|
-
|
|
161
|
-
|
|
171
|
+
FloatingPortal,
|
|
172
|
+
null,
|
|
162
173
|
React.createElement(
|
|
163
|
-
|
|
164
|
-
{
|
|
165
|
-
context: popover.context,
|
|
166
|
-
modal: false,
|
|
167
|
-
initialFocus: -1,
|
|
168
|
-
returnFocus: true,
|
|
169
|
-
},
|
|
174
|
+
ThemeProvider,
|
|
175
|
+
{ portalContainer: popoverElement },
|
|
170
176
|
React.createElement(
|
|
171
|
-
|
|
177
|
+
FloatingFocusManager,
|
|
172
178
|
{
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
179
|
+
context: popover.context,
|
|
180
|
+
modal: false,
|
|
181
|
+
initialFocus: popover.refs.floating,
|
|
176
182
|
},
|
|
177
|
-
|
|
183
|
+
React.createElement(
|
|
184
|
+
Box,
|
|
185
|
+
{
|
|
186
|
+
className: cx(
|
|
187
|
+
{ 'iui-popover-surface': applyBackground },
|
|
188
|
+
className,
|
|
189
|
+
),
|
|
190
|
+
'aria-labelledby': !hasAriaLabel
|
|
191
|
+
? popover.refs.domReference.current?.id
|
|
192
|
+
: undefined,
|
|
193
|
+
...popover.getFloatingProps(rest),
|
|
194
|
+
ref: popoverRef,
|
|
195
|
+
},
|
|
196
|
+
content,
|
|
197
|
+
),
|
|
178
198
|
),
|
|
179
199
|
),
|
|
180
200
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { InputGroup } from '../InputGroup/
|
|
2
|
+
import { InputGroup } from '../InputGroup/InputGroup.js';
|
|
3
3
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
4
|
type RadioTileGroupProps = Omit<React.ComponentProps<typeof InputGroup>, 'displayStyle' | 'disabled'>;
|
|
5
5
|
/**
|
|
@@ -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 { InputGroup } from '../InputGroup/
|
|
6
|
+
import { InputGroup } from '../InputGroup/InputGroup.js';
|
|
7
7
|
import { Box } from '../utils/index.js';
|
|
8
8
|
/**
|
|
9
9
|
* RadioTileGroup component to group RadioTile components together
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import type { IconButtonProps } from '../Buttons/IconButton
|
|
2
|
+
import type { PolymorphicForwardRefComponent, InputFlexContainerProps } from '../utils/index.js';
|
|
3
|
+
import type { IconButtonProps } from '../Buttons/IconButton.js';
|
|
4
|
+
import type { IconProps } from '../Icon/Icon.js';
|
|
4
5
|
type SearchBoxOwnProps = {
|
|
5
6
|
/**
|
|
6
7
|
* Whether the searchbox is expandable.
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
SvgCloseSmall,
|
|
11
11
|
useSafeContext,
|
|
12
12
|
useId,
|
|
13
|
-
Icon,
|
|
14
13
|
useMergedRefs,
|
|
15
14
|
mergeEventHandlers,
|
|
16
15
|
Box,
|
|
17
16
|
} from '../utils/index.js';
|
|
18
|
-
import { IconButton } from '../Buttons/IconButton
|
|
17
|
+
import { IconButton } from '../Buttons/IconButton.js';
|
|
18
|
+
import { Icon } from '../Icon/Icon.js';
|
|
19
19
|
const SearchBoxContext = React.createContext(undefined);
|
|
20
20
|
const SearchBoxComponent = React.forwardRef((props, ref) => {
|
|
21
21
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { usePopover } from '../utils/index.js';
|
|
3
2
|
import type { CommonProps } from '../utils/index.js';
|
|
3
|
+
import { usePopover } from '../Popover/Popover.js';
|
|
4
4
|
export type ItemRendererProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Close handler that closes the dropdown.
|
|
@@ -168,5 +168,5 @@ export type SelectProps<T> = {
|
|
|
168
168
|
* )}
|
|
169
169
|
* />
|
|
170
170
|
*/
|
|
171
|
-
export declare const Select: <
|
|
171
|
+
export declare const Select: React.ForwardRefExoticComponent<SelectProps<unknown> & React.RefAttributes<HTMLElement>>;
|
|
172
172
|
export default Select;
|
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import { Menu
|
|
7
|
+
import { Menu } from '../Menu/Menu.js';
|
|
8
|
+
import { MenuItem } from '../Menu/MenuItem.js';
|
|
8
9
|
import {
|
|
9
10
|
SvgCaretDownSmall,
|
|
10
11
|
useId,
|
|
11
12
|
AutoclearingHiddenLiveRegion,
|
|
12
13
|
Box,
|
|
13
|
-
usePopover,
|
|
14
14
|
Portal,
|
|
15
15
|
useMergedRefs,
|
|
16
16
|
SvgCheckmark,
|
|
17
|
-
Icon,
|
|
18
17
|
} from '../utils/index.js';
|
|
19
|
-
import SelectTag from './SelectTag.js';
|
|
20
|
-
import SelectTagContainer from './SelectTagContainer.js';
|
|
18
|
+
import { SelectTag } from './SelectTag.js';
|
|
19
|
+
import { SelectTagContainer } from './SelectTagContainer.js';
|
|
20
|
+
import { Icon } from '../Icon/Icon.js';
|
|
21
|
+
import { usePopover } from '../Popover/Popover.js';
|
|
21
22
|
const isMultipleEnabled = (variable, multiple) => {
|
|
22
23
|
return multiple;
|
|
23
24
|
};
|
|
@@ -74,7 +75,7 @@ const isSingleOnChange = (onChange, multiple) => {
|
|
|
74
75
|
* )}
|
|
75
76
|
* />
|
|
76
77
|
*/
|
|
77
|
-
export const Select = (props) => {
|
|
78
|
+
export const Select = React.forwardRef((props, forwardedRef) => {
|
|
78
79
|
const uid = useId();
|
|
79
80
|
const {
|
|
80
81
|
options,
|
|
@@ -193,7 +194,7 @@ export const Select = (props) => {
|
|
|
193
194
|
className: cx('iui-input-with-icon', className),
|
|
194
195
|
style: style,
|
|
195
196
|
...rest,
|
|
196
|
-
ref: popover.refs.setPositionReference,
|
|
197
|
+
ref: useMergedRefs(popover.refs.setPositionReference, forwardedRef),
|
|
197
198
|
},
|
|
198
199
|
React.createElement(
|
|
199
200
|
Box,
|
|
@@ -263,7 +264,7 @@ export const Select = (props) => {
|
|
|
263
264
|
Menu,
|
|
264
265
|
{
|
|
265
266
|
role: 'listbox',
|
|
266
|
-
className:
|
|
267
|
+
className: menuClassName,
|
|
267
268
|
id: `${uid}-menu`,
|
|
268
269
|
key: `${uid}-menu`,
|
|
269
270
|
...popover.getFloatingProps({
|
|
@@ -274,13 +275,19 @@ export const Select = (props) => {
|
|
|
274
275
|
}
|
|
275
276
|
},
|
|
276
277
|
}),
|
|
277
|
-
ref:
|
|
278
|
+
ref: (node) => {
|
|
279
|
+
// early return if ref is already set, to prevent repeated re-renders
|
|
280
|
+
if (popover.refs.floating.current || !node) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
popover.refs.setFloating(node);
|
|
284
|
+
},
|
|
278
285
|
},
|
|
279
286
|
menuItems,
|
|
280
287
|
),
|
|
281
288
|
),
|
|
282
289
|
);
|
|
283
|
-
};
|
|
290
|
+
});
|
|
284
291
|
const SingleSelectButton = ({ selectedItem, selectedItemRenderer }) => {
|
|
285
292
|
const startIcon = selectedItem?.startIcon ?? selectedItem?.icon;
|
|
286
293
|
return React.createElement(
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { useOverflow, useMergedRefs, Box } from '../utils/index.js';
|
|
8
|
-
import SelectTag from './SelectTag.js';
|
|
8
|
+
import { SelectTag } from './SelectTag.js';
|
|
9
9
|
/**
|
|
10
10
|
*/
|
|
11
11
|
export const SelectTagContainer = React.forwardRef((props, ref) => {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { WithCSSTransition, SvgChevronRight, Box } from '../utils/index.js';
|
|
8
|
-
import { IconButton } from '../Buttons/
|
|
9
|
-
import { Tooltip } from '../Tooltip/
|
|
8
|
+
import { IconButton } from '../Buttons/IconButton.js';
|
|
9
|
+
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
10
10
|
/**
|
|
11
11
|
* Left side navigation menu component.
|
|
12
12
|
* @example
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
2
|
-
import type { ButtonProps } from '../Buttons/Button
|
|
2
|
+
import type { ButtonProps } from '../Buttons/Button.js';
|
|
3
3
|
type SidenavButtonProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Whether the sidenav button is active,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import { Button } from '../Buttons/
|
|
7
|
+
import { Button } from '../Buttons/Button.js';
|
|
8
8
|
/**
|
|
9
9
|
* Wrapper around Button to be used as SideNavigation items.
|
|
10
10
|
* Label is hidden when sidenav is collapsed.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
-
import type { Tooltip } from '../Tooltip/
|
|
3
|
+
import type { Tooltip } from '../Tooltip/Tooltip.js';
|
|
4
4
|
/**
|
|
5
5
|
* Determines which segments are shown with color.
|
|
6
6
|
*/
|
|
@@ -65,9 +65,9 @@ export type SliderProps = {
|
|
|
65
65
|
*/
|
|
66
66
|
maxLabel?: React.ReactNode;
|
|
67
67
|
/**
|
|
68
|
-
* Additional props for container `<div>` that hold the slider
|
|
68
|
+
* Additional props for container `<div>` that hold the slider thumbs, and tracks.
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
trackContainerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
71
71
|
/**
|
|
72
72
|
* Allows props to be passed for slider-min
|
|
73
73
|
*/
|
|
@@ -76,10 +76,6 @@ export type SliderProps = {
|
|
|
76
76
|
* Allows props to be passed for slider-max
|
|
77
77
|
*/
|
|
78
78
|
maxProps?: React.ComponentProps<'span'>;
|
|
79
|
-
/**
|
|
80
|
-
* Allows props to be passed for slider-rail
|
|
81
|
-
*/
|
|
82
|
-
railProps?: React.ComponentProps<'div'>;
|
|
83
79
|
/**
|
|
84
80
|
* Allows props to be passed for slider-track
|
|
85
81
|
*/
|
|
@@ -78,10 +78,9 @@ export const Slider = React.forwardRef((props, ref) => {
|
|
|
78
78
|
onUpdate,
|
|
79
79
|
thumbProps,
|
|
80
80
|
className,
|
|
81
|
-
|
|
81
|
+
trackContainerProps,
|
|
82
82
|
minProps,
|
|
83
83
|
maxProps,
|
|
84
|
-
railProps,
|
|
85
84
|
trackProps,
|
|
86
85
|
tickProps,
|
|
87
86
|
ticksProps,
|
|
@@ -306,12 +305,9 @@ export const Slider = React.forwardRef((props, ref) => {
|
|
|
306
305
|
Box,
|
|
307
306
|
{
|
|
308
307
|
ref: ref,
|
|
309
|
-
className: cx(
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
{ 'iui-disabled': disabled },
|
|
313
|
-
className,
|
|
314
|
-
),
|
|
308
|
+
className: cx('iui-slider-container', className),
|
|
309
|
+
'data-iui-orientation': orientation,
|
|
310
|
+
'data-iui-disabled': disabled ? 'true' : undefined,
|
|
315
311
|
...rest,
|
|
316
312
|
},
|
|
317
313
|
minValueLabel &&
|
|
@@ -327,23 +323,17 @@ export const Slider = React.forwardRef((props, ref) => {
|
|
|
327
323
|
React.createElement(
|
|
328
324
|
Box,
|
|
329
325
|
{
|
|
330
|
-
as: 'div',
|
|
331
326
|
ref: containerRef,
|
|
332
|
-
...
|
|
327
|
+
...trackContainerProps,
|
|
333
328
|
className: cx(
|
|
334
|
-
'iui-slider
|
|
329
|
+
'iui-slider',
|
|
335
330
|
{
|
|
336
331
|
'iui-grabbing': undefined !== activeThumbIndex,
|
|
337
332
|
},
|
|
338
|
-
|
|
333
|
+
trackContainerProps?.className,
|
|
339
334
|
),
|
|
340
335
|
onPointerDown: handlePointerDownOnSlider,
|
|
341
336
|
},
|
|
342
|
-
React.createElement(Box, {
|
|
343
|
-
as: 'div',
|
|
344
|
-
...railProps,
|
|
345
|
-
className: cx('iui-slider-rail', railProps?.className),
|
|
346
|
-
}),
|
|
347
337
|
currentValues.map((thumbValue, index) => {
|
|
348
338
|
const [minVal, maxVal] = getAllowableThumbRange(index);
|
|
349
339
|
const thisThumbProps = thumbProps?.(index);
|
|
@@ -362,7 +352,6 @@ export const Slider = React.forwardRef((props, ref) => {
|
|
|
362
352
|
step: step,
|
|
363
353
|
sliderMin: min,
|
|
364
354
|
sliderMax: max,
|
|
365
|
-
orientation: orientation,
|
|
366
355
|
});
|
|
367
356
|
}),
|
|
368
357
|
React.createElement(Track, {
|
|
@@ -373,8 +362,8 @@ export const Slider = React.forwardRef((props, ref) => {
|
|
|
373
362
|
orientation: orientation,
|
|
374
363
|
...trackProps,
|
|
375
364
|
}),
|
|
376
|
-
tickMarkArea,
|
|
377
365
|
),
|
|
366
|
+
tickMarkArea,
|
|
378
367
|
maxValueLabel &&
|
|
379
368
|
React.createElement(
|
|
380
369
|
Box,
|
|
@@ -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;
|