@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
|
@@ -9,8 +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
|
|
13
|
-
const
|
|
12
|
+
const IconButton_js_1 = require('../Buttons/IconButton.js');
|
|
13
|
+
const TimePicker_js_1 = require('../TimePicker/TimePicker.js');
|
|
14
14
|
const isSameDay = (a, b) => {
|
|
15
15
|
return (
|
|
16
16
|
a &&
|
|
@@ -146,6 +146,7 @@ exports.DatePicker = React.forwardRef((props, forwardedRef) => {
|
|
|
146
146
|
dayProps,
|
|
147
147
|
weekProps,
|
|
148
148
|
isDateDisabled,
|
|
149
|
+
applyBackground = true,
|
|
149
150
|
...rest
|
|
150
151
|
} = props;
|
|
151
152
|
const monthNames = localizedNames?.months ?? defaultMonths;
|
|
@@ -417,7 +418,11 @@ exports.DatePicker = React.forwardRef((props, forwardedRef) => {
|
|
|
417
418
|
return React.createElement(
|
|
418
419
|
index_js_1.Box,
|
|
419
420
|
{
|
|
420
|
-
className: (0, classnames_1.default)(
|
|
421
|
+
className: (0, classnames_1.default)(
|
|
422
|
+
'iui-date-picker',
|
|
423
|
+
{ 'iui-popover-surface': applyBackground },
|
|
424
|
+
className,
|
|
425
|
+
),
|
|
421
426
|
ref: forwardedRef,
|
|
422
427
|
...rest,
|
|
423
428
|
},
|
|
@@ -436,7 +441,7 @@ exports.DatePicker = React.forwardRef((props, forwardedRef) => {
|
|
|
436
441
|
},
|
|
437
442
|
showYearSelection &&
|
|
438
443
|
React.createElement(
|
|
439
|
-
|
|
444
|
+
IconButton_js_1.IconButton,
|
|
440
445
|
{
|
|
441
446
|
styleType: 'borderless',
|
|
442
447
|
onClick: handleMoveToPreviousYear,
|
|
@@ -446,7 +451,7 @@ exports.DatePicker = React.forwardRef((props, forwardedRef) => {
|
|
|
446
451
|
React.createElement(index_js_1.SvgChevronLeftDouble, null),
|
|
447
452
|
),
|
|
448
453
|
React.createElement(
|
|
449
|
-
|
|
454
|
+
IconButton_js_1.IconButton,
|
|
450
455
|
{
|
|
451
456
|
styleType: 'borderless',
|
|
452
457
|
onClick: handleMoveToPreviousMonth,
|
|
@@ -476,7 +481,7 @@ exports.DatePicker = React.forwardRef((props, forwardedRef) => {
|
|
|
476
481
|
displayedYear,
|
|
477
482
|
),
|
|
478
483
|
React.createElement(
|
|
479
|
-
|
|
484
|
+
IconButton_js_1.IconButton,
|
|
480
485
|
{
|
|
481
486
|
styleType: 'borderless',
|
|
482
487
|
onClick: handleMoveToNextMonth,
|
|
@@ -487,7 +492,7 @@ exports.DatePicker = React.forwardRef((props, forwardedRef) => {
|
|
|
487
492
|
),
|
|
488
493
|
showYearSelection &&
|
|
489
494
|
React.createElement(
|
|
490
|
-
|
|
495
|
+
IconButton_js_1.IconButton,
|
|
491
496
|
{
|
|
492
497
|
styleType: 'borderless',
|
|
493
498
|
onClick: handleMoveToNextYear,
|
|
@@ -561,7 +566,7 @@ exports.DatePicker = React.forwardRef((props, forwardedRef) => {
|
|
|
561
566
|
),
|
|
562
567
|
),
|
|
563
568
|
showTime &&
|
|
564
|
-
React.createElement(
|
|
569
|
+
React.createElement(TimePicker_js_1.TimePicker, {
|
|
565
570
|
date: selectedStartDay ?? selectedDay,
|
|
566
571
|
use12Hours: use12Hours,
|
|
567
572
|
precision: precision,
|
|
@@ -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
|
|
11
|
-
const
|
|
10
|
+
const Backdrop_js_1 = require('../Backdrop/Backdrop.js');
|
|
11
|
+
const index_js_1 = require('../utils/index.js');
|
|
12
12
|
const DialogContext_js_1 = require('./DialogContext.js');
|
|
13
13
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
14
14
|
/**
|
|
@@ -31,7 +31,7 @@ exports.DialogBackdrop = React.forwardRef((props, ref) => {
|
|
|
31
31
|
...rest
|
|
32
32
|
} = props;
|
|
33
33
|
const backdropRef = React.useRef(null);
|
|
34
|
-
const refs = (0,
|
|
34
|
+
const refs = (0, index_js_1.useMergedRefs)(backdropRef, ref);
|
|
35
35
|
const handleMouseDown = (event) => {
|
|
36
36
|
// Prevents React from resetting its properties
|
|
37
37
|
event.persist();
|
|
@@ -43,7 +43,7 @@ exports.DialogBackdrop = React.forwardRef((props, ref) => {
|
|
|
43
43
|
}
|
|
44
44
|
onMouseDown?.(event);
|
|
45
45
|
};
|
|
46
|
-
return React.createElement(
|
|
46
|
+
return React.createElement(Backdrop_js_1.Backdrop, {
|
|
47
47
|
isVisible: isVisible,
|
|
48
48
|
className: (0, classnames_1.default)(
|
|
49
49
|
{ 'iui-backdrop-fixed': relativeTo === 'viewport' },
|
|
@@ -9,7 +9,7 @@ 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
|
|
12
|
+
const IconButton_js_1 = require('../Buttons/IconButton.js');
|
|
13
13
|
const DialogContext_js_1 = require('./DialogContext.js');
|
|
14
14
|
const DialogTitleBarTitle_js_1 = require('./DialogTitleBarTitle.js');
|
|
15
15
|
const DialogDragContext_js_1 = require('./DialogDragContext.js');
|
|
@@ -74,7 +74,7 @@ exports.DialogTitleBar = Object.assign(
|
|
|
74
74
|
),
|
|
75
75
|
isDismissible &&
|
|
76
76
|
React.createElement(
|
|
77
|
-
|
|
77
|
+
IconButton_js_1.IconButton,
|
|
78
78
|
{
|
|
79
79
|
size: 'small',
|
|
80
80
|
styleType: 'borderless',
|
|
@@ -8,7 +8,7 @@ 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 Box_js_1 = require('
|
|
11
|
+
const Box_js_1 = require('../utils/components/Box.js');
|
|
12
12
|
/**
|
|
13
13
|
* Shows a divider
|
|
14
14
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PolymorphicForwardRefComponent, PortalProps } from '../utils/index.js';
|
|
3
|
+
import { usePopover } from '../Popover/Popover.js';
|
|
3
4
|
export type DropdownMenuProps = {
|
|
4
5
|
/**
|
|
5
6
|
* List of menu items. Recommended to use MenuItem component.
|
|
6
7
|
* You can pass function that takes argument `close` that closes the dropdown menu, or a list of MenuItems.
|
|
7
8
|
*/
|
|
8
|
-
menuItems: (close: () => void) => JSX.Element[] | JSX.Element[] | JSX.Element;
|
|
9
|
+
menuItems: ((close: () => void) => JSX.Element[]) | JSX.Element[] | JSX.Element;
|
|
9
10
|
/**
|
|
10
11
|
* ARIA role. Role of menu. For menu use 'menu', for select use 'listbox'.
|
|
11
12
|
* @default 'menu'
|
|
@@ -15,10 +16,10 @@ export type DropdownMenuProps = {
|
|
|
15
16
|
* Child element to wrap dropdown with.
|
|
16
17
|
*/
|
|
17
18
|
children: React.ReactNode;
|
|
18
|
-
} &
|
|
19
|
+
} & Pick<Parameters<typeof usePopover>[0], 'visible' | 'onVisibleChange' | 'placement' | 'matchWidth'> & React.ComponentPropsWithoutRef<'ul'> & Pick<PortalProps, 'portal'>;
|
|
19
20
|
/**
|
|
20
21
|
* Dropdown menu component.
|
|
21
|
-
*
|
|
22
|
+
* Built on top of the {@link Popover} component.
|
|
22
23
|
* @example
|
|
23
24
|
* const menuItems = (close: () => void) => [
|
|
24
25
|
* <MenuItem key={1} onClick={onClick(1, close)}>
|
|
@@ -35,5 +36,5 @@ export type DropdownMenuProps = {
|
|
|
35
36
|
* <Button>Menu</Button>
|
|
36
37
|
* </DropdownMenu>
|
|
37
38
|
*/
|
|
38
|
-
export declare const DropdownMenu:
|
|
39
|
+
export declare const DropdownMenu: PolymorphicForwardRefComponent<"div", DropdownMenuProps>;
|
|
39
40
|
export default DropdownMenu;
|
|
@@ -8,10 +8,11 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const index_js_1 = require('../utils/index.js');
|
|
11
|
-
const
|
|
11
|
+
const Menu_js_1 = require('../Menu/Menu.js');
|
|
12
|
+
const Popover_js_1 = require('../Popover/Popover.js');
|
|
12
13
|
/**
|
|
13
14
|
* Dropdown menu component.
|
|
14
|
-
*
|
|
15
|
+
* Built on top of the {@link Popover} component.
|
|
15
16
|
* @example
|
|
16
17
|
* const menuItems = (close: () => void) => [
|
|
17
18
|
* <MenuItem key={1} onClick={onClick(1, close)}>
|
|
@@ -28,75 +29,79 @@ const index_js_2 = require('../Menu/index.js');
|
|
|
28
29
|
* <Button>Menu</Button>
|
|
29
30
|
* </DropdownMenu>
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
|
+
exports.DropdownMenu = React.forwardRef((props, forwardedRef) => {
|
|
32
33
|
const {
|
|
33
34
|
menuItems,
|
|
34
35
|
children,
|
|
35
|
-
className,
|
|
36
|
-
style,
|
|
37
36
|
role = 'menu',
|
|
38
|
-
visible,
|
|
37
|
+
visible: visibleProp,
|
|
39
38
|
placement = 'bottom-start',
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
id,
|
|
39
|
+
matchWidth = false,
|
|
40
|
+
onVisibleChange,
|
|
41
|
+
portal = true,
|
|
44
42
|
...rest
|
|
45
43
|
} = props;
|
|
46
|
-
const [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const
|
|
44
|
+
const [visible, setVisible] = (0, index_js_1.useControlledState)(
|
|
45
|
+
false,
|
|
46
|
+
visibleProp,
|
|
47
|
+
onVisibleChange,
|
|
48
|
+
);
|
|
49
|
+
const triggerRef = React.useRef(null);
|
|
50
|
+
const close = React.useCallback(() => {
|
|
51
|
+
setVisible(false);
|
|
52
|
+
triggerRef.current?.focus({ preventScroll: true });
|
|
53
|
+
}, [setVisible]);
|
|
52
54
|
const menuContent = React.useMemo(() => {
|
|
53
55
|
if (typeof menuItems === 'function') {
|
|
54
56
|
return menuItems(close);
|
|
55
57
|
}
|
|
56
58
|
return menuItems;
|
|
57
59
|
}, [menuItems, close]);
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
(instance) => {
|
|
68
|
-
setIsVisible(false);
|
|
69
|
-
targetRef.current?.focus();
|
|
70
|
-
onHide?.(instance);
|
|
71
|
-
},
|
|
72
|
-
[onHide],
|
|
60
|
+
const popover = (0, Popover_js_1.usePopover)({
|
|
61
|
+
visible,
|
|
62
|
+
onVisibleChange: (open) => (open ? setVisible(true) : close()),
|
|
63
|
+
placement,
|
|
64
|
+
matchWidth,
|
|
65
|
+
});
|
|
66
|
+
const popoverRef = (0, index_js_1.useMergedRefs)(
|
|
67
|
+
forwardedRef,
|
|
68
|
+
popover.refs.setFloating,
|
|
73
69
|
);
|
|
74
70
|
return React.createElement(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
71
|
+
React.Fragment,
|
|
72
|
+
null,
|
|
73
|
+
(0, index_js_1.cloneElementWithRef)(children, (children) => ({
|
|
74
|
+
...popover.getReferenceProps(children.props),
|
|
75
|
+
'aria-expanded': popover.open,
|
|
76
|
+
ref: (0, index_js_1.mergeRefs)(triggerRef, popover.refs.setReference),
|
|
77
|
+
})),
|
|
78
|
+
popover.open &&
|
|
79
|
+
React.createElement(
|
|
80
|
+
index_js_1.Portal,
|
|
81
|
+
{ portal: portal },
|
|
82
|
+
React.createElement(
|
|
83
|
+
Menu_js_1.Menu,
|
|
84
|
+
{
|
|
85
|
+
...popover.getFloatingProps({
|
|
86
|
+
role,
|
|
87
|
+
...rest,
|
|
88
|
+
onKeyDown: (0, index_js_1.mergeEventHandlers)(
|
|
89
|
+
props.onKeyDown,
|
|
90
|
+
(e) => {
|
|
91
|
+
if (e.defaultPrevented) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (e.key === 'Tab') {
|
|
95
|
+
close();
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
),
|
|
99
|
+
}),
|
|
100
|
+
ref: popoverRef,
|
|
96
101
|
},
|
|
97
|
-
|
|
98
|
-
|
|
102
|
+
menuContent,
|
|
103
|
+
),
|
|
104
|
+
),
|
|
99
105
|
);
|
|
100
|
-
};
|
|
101
|
-
exports.DropdownMenu = DropdownMenu;
|
|
106
|
+
});
|
|
102
107
|
exports.default = exports.DropdownMenu;
|
|
@@ -106,7 +106,7 @@ export declare const ExpandableBlock: PolymorphicForwardRefComponent<"div", Expa
|
|
|
106
106
|
EndIcon: PolymorphicForwardRefComponent<"span", Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
107
107
|
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
108
108
|
}, "fill" | "as" | "key" | "size" | keyof React.HTMLAttributes<HTMLSpanElement> | "padded"> & {
|
|
109
|
-
size?: "small" | "
|
|
109
|
+
size?: "small" | "auto" | "medium" | "large" | import("../utils/types.js").AnyString | undefined;
|
|
110
110
|
fill?: "default" | "informational" | "negative" | "positive" | "warning" | import("../utils/types.js").AnyString | undefined;
|
|
111
111
|
padded?: boolean | undefined;
|
|
112
112
|
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
@@ -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 Icon_js_1 = require('../Icon/Icon.js');
|
|
12
13
|
const ExpandableBlockContext = React.createContext(undefined);
|
|
13
14
|
ExpandableBlockContext.displayName = 'ExpandableBlockContext';
|
|
14
15
|
const ExpandableBlockComponent = React.forwardRef((props, forwardedRef) => {
|
|
@@ -125,7 +126,7 @@ ExpandableBlockTrigger.displayName = 'ExpandableBlock.Trigger';
|
|
|
125
126
|
const ExpandableBlockExpandIcon = React.forwardRef((props, forwardedRef) => {
|
|
126
127
|
const { className, children, ...rest } = props;
|
|
127
128
|
return React.createElement(
|
|
128
|
-
|
|
129
|
+
Icon_js_1.Icon,
|
|
129
130
|
{
|
|
130
131
|
className: (0, classnames_1.default)(
|
|
131
132
|
'iui-expandable-block-icon',
|
|
@@ -176,7 +177,7 @@ const ExpandableBlockEndIcon = React.forwardRef((props, forwardedRef) => {
|
|
|
176
177
|
const { status } = (0, index_js_1.useSafeContext)(ExpandableBlockContext);
|
|
177
178
|
const icon = children ?? (status && index_js_1.StatusIconMap[status]());
|
|
178
179
|
return React.createElement(
|
|
179
|
-
|
|
180
|
+
Icon_js_1.Icon,
|
|
180
181
|
{ fill: status, ref: forwardedRef, ...rest },
|
|
181
182
|
icon,
|
|
182
183
|
);
|
|
@@ -10,7 +10,8 @@ const React = tslib_1.__importStar(require('react'));
|
|
|
10
10
|
const index_js_1 = require('../utils/index.js');
|
|
11
11
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
12
12
|
const FileEmptyCard_js_1 = require('./FileEmptyCard.js');
|
|
13
|
-
const Anchor_js_1 = require('../Typography/Anchor
|
|
13
|
+
const Anchor_js_1 = require('../Typography/Anchor.js');
|
|
14
|
+
const VisuallyHidden_js_1 = require('../VisuallyHidden/VisuallyHidden.js');
|
|
14
15
|
const toBytes = (bytes) => {
|
|
15
16
|
const units = [' bytes', 'KB', 'MB', 'GB', 'TB'];
|
|
16
17
|
let i = 0;
|
|
@@ -128,7 +129,7 @@ const FileUploadCardInput = React.forwardRef((props, ref) => {
|
|
|
128
129
|
return React.createElement(
|
|
129
130
|
React.Fragment,
|
|
130
131
|
null,
|
|
131
|
-
React.createElement(
|
|
132
|
+
React.createElement(VisuallyHidden_js_1.VisuallyHidden, {
|
|
132
133
|
as: 'input',
|
|
133
134
|
type: 'file',
|
|
134
135
|
unhideOnFocus: false,
|
|
@@ -9,7 +9,7 @@ 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 Anchor_js_1 = require('../Typography/Anchor
|
|
12
|
+
const Anchor_js_1 = require('../Typography/Anchor.js');
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated Use `FileUploadCard` instead.
|
|
15
15
|
* Default template to be used with the `FileUpload` wrapper component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { AnyString } from '../types.js';
|
|
3
|
-
import type { PolymorphicForwardRefComponent } from '../props.js';
|
|
2
|
+
import type { AnyString } from '../utils/types.js';
|
|
3
|
+
import type { PolymorphicForwardRefComponent } from '../utils/props.js';
|
|
4
4
|
declare const sizeTokens: readonly ["3xs", "2xs", "xs", "s", "m", "l", "xl", "2xl", "3xl"];
|
|
5
5
|
/**
|
|
6
6
|
* String literal shorthands that correspond to the size tokens in [itwinui-variables](https://github.com/iTwin/iTwinUI/blob/main/packages/itwinui-variables/src/sizes.scss).
|
|
@@ -8,7 +8,7 @@ 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 Box_js_1 = require('
|
|
11
|
+
const Box_js_1 = require('../utils/components/Box.js');
|
|
12
12
|
const sizeTokens = ['3xs', '2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl'];
|
|
13
13
|
const getValueForToken = (token) => {
|
|
14
14
|
if (sizeTokens.includes(token)) {
|
|
@@ -8,9 +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
|
|
12
|
-
const
|
|
13
|
-
const
|
|
11
|
+
const IconButton_js_1 = require('../Buttons/IconButton.js');
|
|
12
|
+
const index_js_1 = require('../utils/index.js');
|
|
13
|
+
const DropdownMenu_js_1 = require('../DropdownMenu/DropdownMenu.js');
|
|
14
14
|
const defaultTranslations = {
|
|
15
15
|
moreOptions: 'More options',
|
|
16
16
|
};
|
|
@@ -55,7 +55,7 @@ exports.Header = React.forwardRef((props, forwardedRef) => {
|
|
|
55
55
|
} = props;
|
|
56
56
|
const headerTranslations = { ...defaultTranslations, ...translatedStrings };
|
|
57
57
|
return React.createElement(
|
|
58
|
-
|
|
58
|
+
index_js_1.Box,
|
|
59
59
|
{
|
|
60
60
|
as: 'header',
|
|
61
61
|
className: (0, classnames_1.default)('iui-page-header', className),
|
|
@@ -64,36 +64,36 @@ exports.Header = React.forwardRef((props, forwardedRef) => {
|
|
|
64
64
|
...rest,
|
|
65
65
|
},
|
|
66
66
|
React.createElement(
|
|
67
|
-
|
|
67
|
+
index_js_1.Box,
|
|
68
68
|
{ className: 'iui-page-header-left' },
|
|
69
69
|
appLogo,
|
|
70
70
|
breadcrumbs &&
|
|
71
|
-
React.createElement(
|
|
71
|
+
React.createElement(index_js_1.Box, {
|
|
72
72
|
className: 'iui-page-header-divider',
|
|
73
73
|
}),
|
|
74
74
|
breadcrumbs,
|
|
75
75
|
),
|
|
76
76
|
children &&
|
|
77
77
|
React.createElement(
|
|
78
|
-
|
|
78
|
+
index_js_1.Box,
|
|
79
79
|
{ className: 'iui-page-header-center' },
|
|
80
80
|
children,
|
|
81
81
|
),
|
|
82
82
|
React.createElement(
|
|
83
|
-
|
|
83
|
+
index_js_1.Box,
|
|
84
84
|
{ className: 'iui-page-header-right' },
|
|
85
85
|
actions,
|
|
86
86
|
menuItems &&
|
|
87
87
|
React.createElement(
|
|
88
|
-
|
|
88
|
+
DropdownMenu_js_1.DropdownMenu,
|
|
89
89
|
{ menuItems: menuItems },
|
|
90
90
|
React.createElement(
|
|
91
|
-
|
|
91
|
+
IconButton_js_1.IconButton,
|
|
92
92
|
{
|
|
93
93
|
styleType: 'borderless',
|
|
94
94
|
'aria-label': headerTranslations.moreOptions,
|
|
95
95
|
},
|
|
96
|
-
React.createElement(
|
|
96
|
+
React.createElement(index_js_1.SvgMoreVertical, {
|
|
97
97
|
'aria-hidden': true,
|
|
98
98
|
}),
|
|
99
99
|
),
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
export declare const HeaderBasicButton: PolymorphicForwardRefComponent<"button", ButtonProps>;
|
|
4
4
|
export default HeaderBasicButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ButtonProps } from '../Buttons/Button
|
|
2
|
+
import type { ButtonProps } from '../Buttons/Button.js';
|
|
3
3
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
|
-
import type { DropdownButtonProps } from '../Buttons/DropdownButton
|
|
4
|
+
import type { DropdownButtonProps } from '../Buttons/DropdownButton.js';
|
|
5
5
|
type HeaderButtonProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Main label of the header button.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
2
|
-
import type { DropdownButtonProps } from '../Buttons/DropdownButton
|
|
2
|
+
import type { DropdownButtonProps } from '../Buttons/DropdownButton.js';
|
|
3
3
|
export declare const HeaderDropdownButton: PolymorphicForwardRefComponent<"button", DropdownButtonProps>;
|
|
4
4
|
export default HeaderDropdownButton;
|
|
@@ -8,27 +8,26 @@ 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
|
|
11
|
+
const DropdownMenu_js_1 = require('../DropdownMenu/DropdownMenu.js');
|
|
12
|
+
const index_js_1 = require('../utils/index.js');
|
|
13
13
|
const HeaderBasicButton_js_1 = require('./HeaderBasicButton.js');
|
|
14
14
|
exports.HeaderDropdownButton = React.forwardRef((props, ref) => {
|
|
15
15
|
const { menuItems, className, children, ...rest } = props;
|
|
16
16
|
const [isMenuOpen, setIsMenuOpen] = React.useState(false);
|
|
17
17
|
const [menuWidth, setMenuWidth] = React.useState(0);
|
|
18
18
|
const buttonRef = React.useRef(null);
|
|
19
|
-
const refs = (0,
|
|
19
|
+
const refs = (0, index_js_1.useMergedRefs)(ref, buttonRef);
|
|
20
20
|
React.useEffect(() => {
|
|
21
21
|
if (buttonRef.current) {
|
|
22
22
|
setMenuWidth(buttonRef.current.offsetWidth);
|
|
23
23
|
}
|
|
24
24
|
}, [children]);
|
|
25
25
|
return React.createElement(
|
|
26
|
-
|
|
26
|
+
DropdownMenu_js_1.DropdownMenu,
|
|
27
27
|
{
|
|
28
28
|
menuItems: menuItems,
|
|
29
29
|
style: { minInlineSize: menuWidth },
|
|
30
|
-
|
|
31
|
-
onHide: () => setIsMenuOpen(false),
|
|
30
|
+
onVisibleChange: (open) => setIsMenuOpen(open),
|
|
32
31
|
},
|
|
33
32
|
React.createElement(
|
|
34
33
|
HeaderBasicButton_js_1.HeaderBasicButton,
|
|
@@ -40,11 +39,11 @@ exports.HeaderDropdownButton = React.forwardRef((props, ref) => {
|
|
|
40
39
|
ref: refs,
|
|
41
40
|
'aria-label': 'Dropdown',
|
|
42
41
|
endIcon: isMenuOpen
|
|
43
|
-
? React.createElement(
|
|
42
|
+
? React.createElement(index_js_1.SvgCaretUpSmall, {
|
|
44
43
|
className: 'iui-header-breadcrumb-button-dropdown-icon',
|
|
45
44
|
'aria-hidden': true,
|
|
46
45
|
})
|
|
47
|
-
: React.createElement(
|
|
46
|
+
: React.createElement(index_js_1.SvgCaretDownSmall, {
|
|
48
47
|
className: 'iui-header-breadcrumb-button-dropdown-icon',
|
|
49
48
|
'aria-hidden': true,
|
|
50
49
|
}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
2
|
-
import type { SplitButtonProps } from '../Buttons/SplitButton
|
|
2
|
+
import type { SplitButtonProps } from '../Buttons/SplitButton.js';
|
|
3
3
|
export declare const HeaderSplitButton: PolymorphicForwardRefComponent<"button", SplitButtonProps>;
|
|
4
4
|
export default HeaderSplitButton;
|
|
@@ -8,8 +8,8 @@ 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
|
|
11
|
+
const DropdownMenu_js_1 = require('../DropdownMenu/DropdownMenu.js');
|
|
12
|
+
const index_js_1 = require('../utils/index.js');
|
|
13
13
|
const HeaderBasicButton_js_1 = require('./HeaderBasicButton.js');
|
|
14
14
|
exports.HeaderSplitButton = React.forwardRef((props, forwardedRef) => {
|
|
15
15
|
const {
|
|
@@ -29,7 +29,7 @@ exports.HeaderSplitButton = React.forwardRef((props, forwardedRef) => {
|
|
|
29
29
|
}
|
|
30
30
|
}, [children]);
|
|
31
31
|
return React.createElement(
|
|
32
|
-
|
|
32
|
+
index_js_1.Box,
|
|
33
33
|
{
|
|
34
34
|
className: (0, classnames_1.default)(
|
|
35
35
|
'iui-header-breadcrumb-button-wrapper',
|
|
@@ -43,16 +43,15 @@ exports.HeaderSplitButton = React.forwardRef((props, forwardedRef) => {
|
|
|
43
43
|
children,
|
|
44
44
|
),
|
|
45
45
|
React.createElement(
|
|
46
|
-
|
|
46
|
+
DropdownMenu_js_1.DropdownMenu,
|
|
47
47
|
{
|
|
48
48
|
placement: menuPlacement,
|
|
49
49
|
menuItems: menuItems,
|
|
50
50
|
style: { minInlineSize: menuWidth },
|
|
51
|
-
|
|
52
|
-
onHide: React.useCallback(() => setIsMenuOpen(false), []),
|
|
51
|
+
onVisibleChange: (open) => setIsMenuOpen(open),
|
|
53
52
|
},
|
|
54
53
|
React.createElement(
|
|
55
|
-
|
|
54
|
+
index_js_1.ButtonBase,
|
|
56
55
|
{
|
|
57
56
|
'aria-label': 'More',
|
|
58
57
|
className:
|
|
@@ -60,11 +59,11 @@ exports.HeaderSplitButton = React.forwardRef((props, forwardedRef) => {
|
|
|
60
59
|
disabled: disabled,
|
|
61
60
|
},
|
|
62
61
|
isMenuOpen
|
|
63
|
-
? React.createElement(
|
|
62
|
+
? React.createElement(index_js_1.SvgCaretUpSmall, {
|
|
64
63
|
className: 'iui-header-breadcrumb-button-dropdown-icon',
|
|
65
64
|
'aria-hidden': true,
|
|
66
65
|
})
|
|
67
|
-
: React.createElement(
|
|
66
|
+
: React.createElement(index_js_1.SvgCaretDownSmall, {
|
|
68
67
|
className: 'iui-header-breadcrumb-button-dropdown-icon',
|
|
69
68
|
'aria-hidden': true,
|
|
70
69
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { AnyString } from '../types.js';
|
|
3
|
-
import type { PolymorphicForwardRefComponent } from '../props.js';
|
|
2
|
+
import type { AnyString } from '../utils/types.js';
|
|
3
|
+
import type { PolymorphicForwardRefComponent } from '../utils/props.js';
|
|
4
4
|
export type IconProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Size of the svg.
|
|
@@ -8,7 +8,7 @@ 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 Box_js_1 = require('
|
|
11
|
+
const Box_js_1 = require('../utils/components/Box.js');
|
|
12
12
|
const getSizeValue = (size) => {
|
|
13
13
|
switch (size) {
|
|
14
14
|
case 'small':
|