@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
package/README.md
CHANGED
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
## What is iTwinUI-react?
|
|
24
24
|
|
|
25
25
|
iTwinUI-react is a React component library for [iTwinUI](https://github.com/iTwin/iTwinUI).
|
|
26
|
-
The goal of this package is to provide React components that make it easier to use the styles from [`@itwin/itwinui-css`](https://github.com/iTwin/iTwinUI/tree/main/packages/itwinui-css). Check out the [
|
|
26
|
+
The goal of this package is to provide React components that make it easier to use the styles from [`@itwin/itwinui-css`](https://github.com/iTwin/iTwinUI/tree/main/packages/itwinui-css). Check out the [documentation website](https://itwinui.bentley.com/) to detailed documentation and examples of all components.
|
|
27
|
+
|
|
28
|
+
🆕 Check out the [v3 migration guide](https://github.com/iTwin/iTwinUI/wiki/iTwinUI-react-v3-migration-guide) if you're upgrading from an older version.
|
|
27
29
|
|
|
28
30
|
---
|
|
29
31
|
|
|
@@ -33,10 +35,6 @@ The goal of this package is to provide React components that make it easier to u
|
|
|
33
35
|
npm install @itwin/itwinui-react
|
|
34
36
|
```
|
|
35
37
|
|
|
36
|
-
```
|
|
37
|
-
yarn add @itwin/itwinui-react
|
|
38
|
-
```
|
|
39
|
-
|
|
40
38
|
---
|
|
41
39
|
|
|
42
40
|
## Setup
|
|
@@ -55,7 +55,7 @@ export declare const Alert: PolymorphicForwardRefComponent<"div", AlertOwnProps
|
|
|
55
55
|
Icon: PolymorphicForwardRefComponent<"span", Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
56
56
|
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
57
57
|
}, "fill" | "as" | "key" | "size" | keyof React.HTMLAttributes<HTMLSpanElement> | "padded"> & {
|
|
58
|
-
size?: "small" | "
|
|
58
|
+
size?: "small" | "auto" | "medium" | "large" | import("../utils/types.js").AnyString | undefined;
|
|
59
59
|
fill?: "default" | "informational" | "negative" | "positive" | "warning" | import("../utils/types.js").AnyString | undefined;
|
|
60
60
|
padded?: boolean | undefined;
|
|
61
61
|
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
package/cjs/core/Alert/Alert.js
CHANGED
|
@@ -9,7 +9,8 @@ const tslib_1 = require('tslib');
|
|
|
9
9
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
10
10
|
const React = tslib_1.__importStar(require('react'));
|
|
11
11
|
const index_js_1 = require('../utils/index.js');
|
|
12
|
-
const
|
|
12
|
+
const IconButton_js_1 = require('../Buttons/IconButton.js');
|
|
13
|
+
const Icon_js_1 = require('../Icon/Icon.js');
|
|
13
14
|
const AlertContext = React.createContext(undefined);
|
|
14
15
|
// ----------------------------------------------------------------------------
|
|
15
16
|
// Alert component
|
|
@@ -75,7 +76,7 @@ const AlertIcon = React.forwardRef((props, ref) => {
|
|
|
75
76
|
const { type } = (0, index_js_1.useSafeContext)(AlertContext);
|
|
76
77
|
const StatusIcon = index_js_1.StatusIconMap[type];
|
|
77
78
|
return React.createElement(
|
|
78
|
-
|
|
79
|
+
Icon_js_1.Icon,
|
|
79
80
|
{ fill: type, ref: ref, ...rest },
|
|
80
81
|
children ?? React.createElement(StatusIcon, null),
|
|
81
82
|
);
|
|
@@ -106,7 +107,7 @@ AlertAction.displayName = 'Alert.Action';
|
|
|
106
107
|
const AlertCloseButton = React.forwardRef((props, ref) => {
|
|
107
108
|
const { children, ...rest } = props;
|
|
108
109
|
return React.createElement(
|
|
109
|
-
|
|
110
|
+
IconButton_js_1.IconButton,
|
|
110
111
|
{
|
|
111
112
|
styleType: 'borderless',
|
|
112
113
|
size: 'small',
|
|
@@ -9,6 +9,7 @@ const tslib_1 = require('tslib');
|
|
|
9
9
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
10
10
|
const React = tslib_1.__importStar(require('react'));
|
|
11
11
|
const index_js_1 = require('../utils/index.js');
|
|
12
|
+
const VisuallyHidden_js_1 = require('../VisuallyHidden/VisuallyHidden.js');
|
|
12
13
|
/**
|
|
13
14
|
* Helper function that returns one of the preset badge color values.
|
|
14
15
|
*/
|
|
@@ -77,7 +78,7 @@ exports.Avatar = React.forwardRef((props, ref) => {
|
|
|
77
78
|
image,
|
|
78
79
|
status
|
|
79
80
|
? React.createElement(
|
|
80
|
-
|
|
81
|
+
VisuallyHidden_js_1.VisuallyHidden,
|
|
81
82
|
null,
|
|
82
83
|
statusTitles[status],
|
|
83
84
|
)
|
|
@@ -9,6 +9,8 @@ const tslib_1 = require('tslib');
|
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
11
|
const index_js_1 = require('../utils/index.js');
|
|
12
|
+
const Button_js_1 = require('../Buttons/Button.js');
|
|
13
|
+
const logWarningInDev = (0, index_js_1.createWarningLogger)();
|
|
12
14
|
/**
|
|
13
15
|
* A breadcrumb trail is used as a navigational aid to help users keep track
|
|
14
16
|
* of their place in the application. It is often placed before a page's main content.
|
|
@@ -104,24 +106,38 @@ const BreadcrumbsComponent = React.forwardRef((props, ref) => {
|
|
|
104
106
|
),
|
|
105
107
|
);
|
|
106
108
|
});
|
|
109
|
+
// ----------------------------------------------------------------------------
|
|
107
110
|
const ListItem = ({ item, isActive }) => {
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
112
|
+
let children = item;
|
|
113
|
+
if (
|
|
114
|
+
children?.type === 'span' ||
|
|
115
|
+
children?.type === 'a' ||
|
|
116
|
+
children?.type === Button_js_1.Button
|
|
117
|
+
) {
|
|
118
|
+
logWarningInDev(
|
|
119
|
+
'Directly using Button/a/span as Breadcrumbs children is deprecated, please use `Breadcrumbs.Item` instead.',
|
|
120
|
+
);
|
|
121
|
+
children = React.createElement(BreadcrumbsItem, { ...children.props });
|
|
122
|
+
}
|
|
108
123
|
return React.createElement(
|
|
109
124
|
index_js_1.Box,
|
|
110
125
|
{ as: 'li', className: 'iui-breadcrumbs-item' },
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
: item,
|
|
126
|
+
children &&
|
|
127
|
+
React.cloneElement(children, {
|
|
128
|
+
'aria-current':
|
|
129
|
+
children.props['aria-current'] ?? isActive ? 'location' : undefined,
|
|
130
|
+
}),
|
|
117
131
|
);
|
|
118
132
|
};
|
|
133
|
+
// ----------------------------------------------------------------------------
|
|
119
134
|
const Separator = ({ separator }) =>
|
|
120
135
|
React.createElement(
|
|
121
136
|
index_js_1.Box,
|
|
122
137
|
{ as: 'li', className: 'iui-breadcrumbs-separator', 'aria-hidden': true },
|
|
123
138
|
separator ?? React.createElement(index_js_1.SvgChevronRight, null),
|
|
124
139
|
);
|
|
140
|
+
// ----------------------------------------------------------------------------
|
|
125
141
|
const BreadcrumbsItem = React.forwardRef((props, forwardedRef) => {
|
|
126
142
|
const { children: childrenProp, className, ...rest } = props;
|
|
127
143
|
const defaultAs = !!props.href ? 'a' : !!props.onClick ? 'button' : 'span';
|
|
@@ -144,6 +160,7 @@ const BreadcrumbsItem = React.forwardRef((props, forwardedRef) => {
|
|
|
144
160
|
);
|
|
145
161
|
});
|
|
146
162
|
BreadcrumbsItem.displayName = 'Breadcrumbs.Item';
|
|
163
|
+
// ----------------------------------------------------------------------------
|
|
147
164
|
exports.Breadcrumbs = Object.assign(BreadcrumbsComponent, {
|
|
148
165
|
/**
|
|
149
166
|
* Breadcrumbs item subcomponent
|
|
@@ -48,10 +48,7 @@ exports.ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
48
48
|
...rest
|
|
49
49
|
} = props;
|
|
50
50
|
const items = React.useMemo(
|
|
51
|
-
() =>
|
|
52
|
-
React.Children.map(children, (child) =>
|
|
53
|
-
!!child ? React.createElement('div', null, child) : undefined,
|
|
54
|
-
)?.filter(Boolean) ?? [],
|
|
51
|
+
() => React.Children.toArray(children).filter(Boolean),
|
|
55
52
|
[children],
|
|
56
53
|
);
|
|
57
54
|
const [overflowRef, visibleCount] = (0, index_js_1.useOverflow)(
|
|
@@ -67,14 +64,15 @@ exports.ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
67
64
|
index_js_1.Box,
|
|
68
65
|
{
|
|
69
66
|
className: (0, classnames_1.default)(
|
|
67
|
+
'iui-button-group',
|
|
70
68
|
{
|
|
71
|
-
'iui-button-group': orientation === 'horizontal',
|
|
72
|
-
'iui-button-group-vertical': orientation === 'vertical',
|
|
73
69
|
'iui-button-group-overflow-x':
|
|
74
70
|
!!overflowButton && orientation === 'horizontal',
|
|
75
71
|
},
|
|
76
72
|
className,
|
|
77
73
|
),
|
|
74
|
+
'data-iui-orientation':
|
|
75
|
+
orientation === 'vertical' ? orientation : undefined,
|
|
78
76
|
ref: refs,
|
|
79
77
|
...rest,
|
|
80
78
|
},
|
|
@@ -91,13 +89,13 @@ exports.ButtonGroup = React.forwardRef((props, ref) => {
|
|
|
91
89
|
null,
|
|
92
90
|
overflowButton &&
|
|
93
91
|
overflowPlacement === 'start' &&
|
|
94
|
-
|
|
92
|
+
overflowButton(overflowStart),
|
|
95
93
|
overflowPlacement === 'start'
|
|
96
94
|
? items.slice(overflowStart + 1)
|
|
97
95
|
: items.slice(0, Math.max(0, overflowStart)),
|
|
98
96
|
overflowButton &&
|
|
99
97
|
overflowPlacement === 'end' &&
|
|
100
|
-
|
|
98
|
+
overflowButton(overflowStart),
|
|
101
99
|
);
|
|
102
100
|
})(),
|
|
103
101
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ButtonBase } from '
|
|
3
|
-
import type { PolymorphicForwardRefComponent } from '
|
|
2
|
+
import { ButtonBase } from '../utils/index.js';
|
|
3
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
4
|
export type ButtonProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Modify size of the button.
|
|
@@ -8,7 +8,7 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
10
10
|
const React = tslib_1.__importStar(require('react'));
|
|
11
|
-
const index_js_1 = require('
|
|
11
|
+
const index_js_1 = require('../utils/index.js');
|
|
12
12
|
/**
|
|
13
13
|
* Generic button component
|
|
14
14
|
* @example
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ButtonProps } from '
|
|
3
|
-
import type { DropdownMenuProps } from '
|
|
4
|
-
import type { PolymorphicForwardRefComponent } from '
|
|
2
|
+
import type { ButtonProps } from './Button.js';
|
|
3
|
+
import type { DropdownMenuProps } from '../DropdownMenu/DropdownMenu.js';
|
|
4
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
5
5
|
export type DropdownButtonProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Items in the dropdown menu.
|
|
@@ -8,9 +8,9 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
11
|
+
const Button_js_1 = require('./Button.js');
|
|
12
|
+
const DropdownMenu_js_1 = require('../DropdownMenu/DropdownMenu.js');
|
|
13
|
+
const index_js_1 = require('../utils/index.js');
|
|
14
14
|
/**
|
|
15
15
|
* Button that opens a DropdownMenu.
|
|
16
16
|
* @example
|
|
@@ -20,7 +20,7 @@ const index_js_3 = require('../../utils/index.js');
|
|
|
20
20
|
* ];
|
|
21
21
|
* <DropdownButton menuItems={menuItems}>Default</DropdownButton>
|
|
22
22
|
*/
|
|
23
|
-
exports.DropdownButton = React.forwardRef((props,
|
|
23
|
+
exports.DropdownButton = React.forwardRef((props, forwardedRef) => {
|
|
24
24
|
const {
|
|
25
25
|
menuItems,
|
|
26
26
|
className,
|
|
@@ -31,44 +31,32 @@ exports.DropdownButton = React.forwardRef((props, ref) => {
|
|
|
31
31
|
...rest
|
|
32
32
|
} = props;
|
|
33
33
|
const [isMenuOpen, setIsMenuOpen] = React.useState(false);
|
|
34
|
-
const [menuWidth, setMenuWidth] = React.useState(0);
|
|
35
|
-
const buttonRef = React.useRef(null);
|
|
36
|
-
const refs = (0, index_js_3.useMergedRefs)(ref, buttonRef);
|
|
37
|
-
React.useEffect(() => {
|
|
38
|
-
if (buttonRef.current) {
|
|
39
|
-
setMenuWidth(buttonRef.current.offsetWidth);
|
|
40
|
-
}
|
|
41
|
-
}, [children, size, styleType]);
|
|
42
34
|
return React.createElement(
|
|
43
|
-
|
|
35
|
+
DropdownMenu_js_1.DropdownMenu,
|
|
44
36
|
{
|
|
45
37
|
menuItems: menuItems,
|
|
38
|
+
matchWidth: true,
|
|
39
|
+
visible: isMenuOpen,
|
|
46
40
|
...dropdownMenuProps,
|
|
47
|
-
|
|
48
|
-
setIsMenuOpen(
|
|
49
|
-
dropdownMenuProps?.
|
|
41
|
+
onVisibleChange: (open) => {
|
|
42
|
+
setIsMenuOpen(open);
|
|
43
|
+
dropdownMenuProps?.onVisibleChange?.(open);
|
|
50
44
|
},
|
|
51
|
-
onHide: (i) => {
|
|
52
|
-
setIsMenuOpen(false);
|
|
53
|
-
dropdownMenuProps?.onHide?.(i);
|
|
54
|
-
},
|
|
55
|
-
style: { minInlineSize: menuWidth, ...dropdownMenuProps?.style },
|
|
56
45
|
},
|
|
57
46
|
React.createElement(
|
|
58
|
-
|
|
47
|
+
Button_js_1.Button,
|
|
59
48
|
{
|
|
60
49
|
className: (0, classnames_1.default)('iui-button-dropdown', className),
|
|
61
50
|
size: size,
|
|
62
51
|
styleType: styleType,
|
|
63
52
|
endIcon: isMenuOpen
|
|
64
|
-
? React.createElement(
|
|
53
|
+
? React.createElement(index_js_1.SvgCaretUpSmall, {
|
|
65
54
|
'aria-hidden': true,
|
|
66
55
|
})
|
|
67
|
-
: React.createElement(
|
|
56
|
+
: React.createElement(index_js_1.SvgCaretDownSmall, {
|
|
68
57
|
'aria-hidden': true,
|
|
69
58
|
}),
|
|
70
|
-
ref:
|
|
71
|
-
'aria-label': 'Dropdown',
|
|
59
|
+
ref: forwardedRef,
|
|
72
60
|
...rest,
|
|
73
61
|
},
|
|
74
62
|
children,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ButtonProps } from '
|
|
3
|
-
import type { PolymorphicForwardRefComponent } from '
|
|
2
|
+
import type { ButtonProps } from './Button.js';
|
|
3
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
4
|
export type IconButtonProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Button gets active style.
|
|
@@ -8,8 +8,9 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
10
10
|
const React = tslib_1.__importStar(require('react'));
|
|
11
|
-
const index_js_1 = require('
|
|
12
|
-
const Tooltip_js_1 = require('
|
|
11
|
+
const index_js_1 = require('../utils/index.js');
|
|
12
|
+
const Tooltip_js_1 = require('../Tooltip/Tooltip.js');
|
|
13
|
+
const VisuallyHidden_js_1 = require('../VisuallyHidden/VisuallyHidden.js');
|
|
13
14
|
/**
|
|
14
15
|
* Icon button
|
|
15
16
|
* @example
|
|
@@ -52,7 +53,9 @@ exports.IconButton = React.forwardRef((props, ref) => {
|
|
|
52
53
|
},
|
|
53
54
|
children,
|
|
54
55
|
),
|
|
55
|
-
label
|
|
56
|
+
label
|
|
57
|
+
? React.createElement(VisuallyHidden_js_1.VisuallyHidden, null, label)
|
|
58
|
+
: null,
|
|
56
59
|
);
|
|
57
60
|
return label
|
|
58
61
|
? React.createElement(
|
|
@@ -7,8 +7,8 @@ const tslib_1 = require('tslib');
|
|
|
7
7
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
|
-
const index_js_1 = require('
|
|
11
|
-
const
|
|
10
|
+
const index_js_1 = require('../utils/index.js');
|
|
11
|
+
const Button_js_1 = require('./Button.js');
|
|
12
12
|
/**
|
|
13
13
|
* Ideas button
|
|
14
14
|
* @example
|
|
@@ -17,7 +17,7 @@ const index_js_2 = require('../Button/index.js');
|
|
|
17
17
|
exports.IdeasButton = React.forwardRef((props, ref) => {
|
|
18
18
|
const { feedbackLabel = 'Feedback', onClick, ...rest } = props;
|
|
19
19
|
return React.createElement(
|
|
20
|
-
|
|
20
|
+
Button_js_1.Button,
|
|
21
21
|
{
|
|
22
22
|
ref: ref,
|
|
23
23
|
'data-iui-variant': 'idea',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ButtonProps } from '
|
|
3
|
-
import { IconButton } from '
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
2
|
+
import type { ButtonProps } from './Button.js';
|
|
3
|
+
import { IconButton } from './IconButton.js';
|
|
4
|
+
import type { PolymorphicForwardRefComponent, PortalProps } from '../utils/index.js';
|
|
5
|
+
import type { Placement } from '@floating-ui/react';
|
|
6
6
|
export type SplitButtonProps = ButtonProps & {
|
|
7
7
|
/**
|
|
8
8
|
* Items in the dropdown menu.
|
|
@@ -26,8 +26,8 @@ export type SplitButtonProps = ButtonProps & {
|
|
|
26
26
|
/**
|
|
27
27
|
* Passes props to SplitButton menu button.
|
|
28
28
|
*/
|
|
29
|
-
menuButtonProps?: React.ComponentProps<typeof IconButton>;
|
|
30
|
-
}
|
|
29
|
+
menuButtonProps?: Omit<React.ComponentProps<typeof IconButton>, 'label' | 'size'>;
|
|
30
|
+
} & Pick<PortalProps, 'portal'>;
|
|
31
31
|
/**
|
|
32
32
|
* Split button component with a DropdownMenu.
|
|
33
33
|
*
|
|
@@ -8,10 +8,11 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
10
10
|
const React = tslib_1.__importStar(require('react'));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
11
|
+
const Button_js_1 = require('./Button.js');
|
|
12
|
+
const IconButton_js_1 = require('./IconButton.js');
|
|
13
|
+
const index_js_1 = require('../utils/index.js');
|
|
14
|
+
const Menu_js_1 = require('../Menu/Menu.js');
|
|
15
|
+
const Popover_js_1 = require('../Popover/Popover.js');
|
|
15
16
|
/**
|
|
16
17
|
* Split button component with a DropdownMenu.
|
|
17
18
|
*
|
|
@@ -37,21 +38,33 @@ exports.SplitButton = React.forwardRef((props, forwardedRef) => {
|
|
|
37
38
|
children,
|
|
38
39
|
wrapperProps,
|
|
39
40
|
menuButtonProps,
|
|
41
|
+
portal = true,
|
|
40
42
|
...rest
|
|
41
43
|
} = props;
|
|
42
|
-
const
|
|
43
|
-
const [
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
const buttonRef = React.useRef(null);
|
|
45
|
+
const [visible, setVisible] = React.useState(false);
|
|
46
|
+
const close = React.useCallback(() => {
|
|
47
|
+
setVisible(false);
|
|
48
|
+
buttonRef.current?.focus({ preventScroll: true });
|
|
49
|
+
}, []);
|
|
50
|
+
const menuContent = React.useMemo(() => {
|
|
51
|
+
if (typeof menuItems === 'function') {
|
|
52
|
+
return menuItems(close);
|
|
48
53
|
}
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
return menuItems;
|
|
55
|
+
}, [menuItems, close]);
|
|
56
|
+
const popover = (0, Popover_js_1.usePopover)({
|
|
57
|
+
visible,
|
|
58
|
+
onVisibleChange: (open) => (open ? setVisible(true) : close()),
|
|
59
|
+
placement: menuPlacement,
|
|
60
|
+
matchWidth: true,
|
|
61
|
+
});
|
|
62
|
+
const labelId = (0, index_js_1.useId)();
|
|
51
63
|
return React.createElement(
|
|
52
|
-
|
|
64
|
+
index_js_1.Box,
|
|
53
65
|
{
|
|
54
66
|
...wrapperProps,
|
|
67
|
+
ref: popover.refs.setPositionReference,
|
|
55
68
|
className: (0, classnames_1.default)(
|
|
56
69
|
'iui-button-split',
|
|
57
70
|
{
|
|
@@ -59,44 +72,54 @@ exports.SplitButton = React.forwardRef((props, forwardedRef) => {
|
|
|
59
72
|
},
|
|
60
73
|
wrapperProps?.className,
|
|
61
74
|
),
|
|
62
|
-
ref: wrapperRef,
|
|
63
75
|
},
|
|
64
76
|
React.createElement(
|
|
65
|
-
|
|
77
|
+
Button_js_1.Button,
|
|
66
78
|
{
|
|
67
79
|
className: className,
|
|
68
80
|
styleType: styleType,
|
|
69
81
|
size: size,
|
|
70
82
|
onClick: onClick,
|
|
71
|
-
ref: forwardedRef,
|
|
83
|
+
ref: (0, index_js_1.useMergedRefs)(buttonRef, forwardedRef),
|
|
72
84
|
...rest,
|
|
73
85
|
labelProps: { id: labelId, ...props.labelProps },
|
|
74
86
|
},
|
|
75
87
|
children,
|
|
76
88
|
),
|
|
77
89
|
React.createElement(
|
|
78
|
-
|
|
90
|
+
IconButton_js_1.IconButton,
|
|
79
91
|
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
92
|
+
styleType: styleType,
|
|
93
|
+
size: size,
|
|
94
|
+
disabled: props.disabled,
|
|
95
|
+
'aria-labelledby': props.labelProps?.id || labelId,
|
|
96
|
+
'aria-expanded': popover.open,
|
|
97
|
+
ref: popover.refs.setReference,
|
|
98
|
+
...popover.getReferenceProps(menuButtonProps),
|
|
85
99
|
},
|
|
100
|
+
visible
|
|
101
|
+
? React.createElement(index_js_1.SvgCaretUpSmall, null)
|
|
102
|
+
: React.createElement(index_js_1.SvgCaretDownSmall, null),
|
|
103
|
+
),
|
|
104
|
+
popover.open &&
|
|
86
105
|
React.createElement(
|
|
87
|
-
|
|
88
|
-
{
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
106
|
+
index_js_1.Portal,
|
|
107
|
+
{ portal: portal },
|
|
108
|
+
React.createElement(
|
|
109
|
+
Menu_js_1.Menu,
|
|
110
|
+
{
|
|
111
|
+
...popover.getFloatingProps({
|
|
112
|
+
onKeyDown: ({ key }) => {
|
|
113
|
+
if (key === 'Tab') {
|
|
114
|
+
close();
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
}),
|
|
118
|
+
ref: popover.refs.setFloating,
|
|
119
|
+
},
|
|
120
|
+
menuContent,
|
|
121
|
+
),
|
|
98
122
|
),
|
|
99
|
-
),
|
|
100
123
|
);
|
|
101
124
|
});
|
|
102
125
|
exports.default = exports.SplitButton;
|
|
@@ -14,7 +14,8 @@ type CarouselProps = {
|
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* The Carousel component consists of a set of slides, normally displayed one at a time. A navigation section is
|
|
17
|
-
*
|
|
17
|
+
* shown below the slides, consisting of "dots" and "previous"/"next" buttons, used for changing slides; this navigation
|
|
18
|
+
* section must be present _before_ the slides in DOM order, even though it is visually shown below the slides.
|
|
18
19
|
*
|
|
19
20
|
* The currently shown slide can also be changed using the left/right arrow keys or by dragging on a touch device.
|
|
20
21
|
*
|
|
@@ -22,27 +23,30 @@ type CarouselProps = {
|
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* <Carousel>
|
|
26
|
+
* <Carousel.Navigation />
|
|
25
27
|
* <Carousel.Slider>
|
|
26
28
|
* <Carousel.Slide>...</Carousel.Slide>
|
|
27
29
|
* <Carousel.Slide>...</Carousel.Slide>
|
|
28
30
|
* <Carousel.Slide>...</Carousel.Slide>
|
|
29
31
|
* </Carousel.Slider>
|
|
30
|
-
* <Carousel.Navigation />
|
|
31
32
|
* </Carousel>
|
|
32
33
|
*/
|
|
33
34
|
export declare const Carousel: PolymorphicForwardRefComponent<"section", CarouselProps> & {
|
|
34
|
-
Slider: PolymorphicForwardRefComponent<"
|
|
35
|
-
Slide: PolymorphicForwardRefComponent<"
|
|
35
|
+
Slider: PolymorphicForwardRefComponent<"div", {}>;
|
|
36
|
+
Slide: PolymorphicForwardRefComponent<"div", {
|
|
36
37
|
index?: number | undefined;
|
|
37
38
|
}>;
|
|
38
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Contains the dots and previous/next buttons for navigating the slides. Must be present _before_ the slides in DOM.
|
|
41
|
+
*/
|
|
42
|
+
Navigation: PolymorphicForwardRefComponent<"div", {}> & {
|
|
39
43
|
PreviousButton: PolymorphicForwardRefComponent<"button", Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
40
44
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
41
45
|
}, "label" | "as" | "size" | "htmlDisabled" | "styleType" | "isActive" | "iconProps"> & {
|
|
42
46
|
isActive?: boolean | undefined;
|
|
43
47
|
label?: React.ReactNode;
|
|
44
48
|
iconProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> | undefined;
|
|
45
|
-
} & Omit<import("../Buttons/Button
|
|
49
|
+
} & Omit<import("../Buttons/Button.js").ButtonProps, "startIcon" | "endIcon" | "labelProps" | "startIconProps" | "endIconProps"> & {
|
|
46
50
|
as?: "button" | undefined;
|
|
47
51
|
}>;
|
|
48
52
|
NextButton: PolymorphicForwardRefComponent<"button", Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
@@ -51,10 +55,13 @@ export declare const Carousel: PolymorphicForwardRefComponent<"section", Carouse
|
|
|
51
55
|
isActive?: boolean | undefined;
|
|
52
56
|
label?: React.ReactNode;
|
|
53
57
|
iconProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> | undefined;
|
|
54
|
-
} & Omit<import("../Buttons/Button
|
|
58
|
+
} & Omit<import("../Buttons/Button.js").ButtonProps, "startIcon" | "endIcon" | "labelProps" | "startIconProps" | "endIconProps"> & {
|
|
55
59
|
as?: "button" | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Contains the dots for activating the slides. Must be present _before_ the slides in DOM.
|
|
64
|
+
*/
|
|
58
65
|
DotsList: PolymorphicForwardRefComponent<"div", {
|
|
59
66
|
length?: number | undefined;
|
|
60
67
|
currentIndex?: number | undefined;
|