@itwin/itwinui-react 3.0.0-dev.9 → 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 +77 -772
- 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} +7 -7
- package/{esm/core/Buttons/IconButton → cjs/core/Buttons}/IconButton.d.ts +2 -2
- package/cjs/core/Buttons/{IconButton/IconButton.js → IconButton.js} +6 -3
- package/{esm/core/Buttons/IdeasButton → cjs/core/Buttons}/IdeasButton.d.ts +1 -1
- package/cjs/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +3 -3
- package/cjs/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +3 -3
- package/cjs/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +14 -13
- package/cjs/core/Carousel/Carousel.d.ts +14 -7
- package/cjs/core/Carousel/Carousel.js +9 -39
- package/cjs/core/Carousel/CarouselContext.d.ts +0 -4
- package/cjs/core/Carousel/CarouselDot.js +1 -1
- package/cjs/core/Carousel/CarouselDotsList.js +26 -2
- package/cjs/core/Carousel/CarouselNavigation.d.ts +3 -3
- package/cjs/core/Carousel/CarouselNavigation.js +13 -26
- package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlide.js +12 -2
- package/cjs/core/Carousel/CarouselSlider.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlider.js +2 -2
- package/cjs/core/Checkbox/Checkbox.js +7 -7
- package/cjs/core/ColorPicker/ColorBuilder.js +5 -3
- package/cjs/core/ColorPicker/ColorInputPanel.js +50 -30
- package/cjs/core/ColorPicker/ColorPalette.js +2 -80
- package/cjs/core/ColorPicker/ColorPicker.d.ts +9 -0
- package/cjs/core/ColorPicker/ColorPicker.js +6 -1
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorSwatch.js +25 -15
- package/cjs/core/ComboBox/ComboBox.d.ts +6 -1
- package/cjs/core/ComboBox/ComboBox.js +19 -18
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.js +10 -10
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +6 -6
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMenu.js +12 -14
- package/cjs/core/ComboBox/helpers.d.ts +1 -1
- package/cjs/core/DatePicker/DatePicker.d.ts +9 -0
- package/cjs/core/DatePicker/DatePicker.js +13 -8
- package/cjs/core/Dialog/DialogBackdrop.js +4 -4
- package/cjs/core/Dialog/DialogTitleBar.js +2 -2
- package/cjs/core/{utils/components → Divider}/Divider.d.ts +1 -1
- package/cjs/core/{utils/components → Divider}/Divider.js +1 -1
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/cjs/core/DropdownMenu/DropdownMenu.js +4 -3
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +3 -2
- package/cjs/core/FileUpload/FileUploadCard.js +3 -2
- package/cjs/core/FileUpload/FileUploadTemplate.js +1 -1
- package/cjs/core/{utils/components → Flex}/Flex.d.ts +2 -2
- package/cjs/core/{utils/components → Flex}/Flex.js +1 -1
- package/cjs/core/Header/Header.js +11 -11
- package/cjs/core/Header/HeaderBasicButton.d.ts +1 -1
- package/cjs/core/Header/HeaderButton.d.ts +2 -2
- package/cjs/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/cjs/core/Header/HeaderDropdownButton.js +6 -6
- package/cjs/core/Header/HeaderSplitButton.d.ts +1 -1
- package/cjs/core/Header/HeaderSplitButton.js +7 -7
- package/{esm/core/utils/components → cjs/core/Icon}/Icon.d.ts +2 -2
- package/cjs/core/{utils/components → Icon}/Icon.js +1 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.js +7 -7
- package/cjs/core/Input/Input.d.ts +0 -1
- package/cjs/core/Input/Input.js +0 -1
- package/cjs/core/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/core/InputGroup/InputGroup.js +6 -6
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/cjs/core/InputWithDecorations/InputWithDecorations.js +2 -2
- package/cjs/core/LabeledInput/LabeledInput.d.ts +4 -4
- package/cjs/core/LabeledInput/LabeledInput.js +11 -13
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +2 -2
- package/cjs/core/LabeledSelect/LabeledSelect.js +10 -9
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +2 -2
- package/{esm/core/utils/components → cjs/core/LinkAction}/LinkAction.d.ts +2 -2
- package/cjs/core/{utils/components → LinkAction}/LinkAction.js +1 -1
- package/cjs/core/Menu/MenuItem.js +2 -1
- package/cjs/core/Menu/MenuItemSkeleton.js +2 -1
- package/cjs/core/Modal/Modal.js +5 -5
- package/cjs/core/NonIdealState/ErrorPage.js +17 -15
- package/cjs/core/{utils/components → Popover}/Popover.d.ts +29 -13
- package/cjs/core/{utils/components → Popover}/Popover.js +43 -25
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +4 -4
- package/cjs/core/SearchBox/SearchBox.d.ts +3 -2
- package/cjs/core/SearchBox/SearchBox.js +4 -3
- package/cjs/core/Select/Select.d.ts +2 -2
- package/cjs/core/Select/Select.js +32 -29
- package/cjs/core/Select/SelectTagContainer.js +2 -2
- package/cjs/core/SideNavigation/SideNavigation.js +5 -5
- package/cjs/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavButton.js +2 -2
- package/cjs/core/Slider/Slider.d.ts +3 -7
- package/cjs/core/Slider/Slider.js +8 -22
- package/cjs/core/Slider/Thumb.d.ts +2 -3
- package/cjs/core/Slider/Thumb.js +5 -9
- package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/cjs/core/StatusMessage/StatusMessage.js +2 -1
- package/cjs/core/Stepper/StepperStep.js +7 -7
- package/cjs/core/Stepper/WorkflowDiagramStep.js +5 -5
- package/cjs/core/Surface/Surface.d.ts +8 -0
- package/cjs/core/Surface/Surface.js +19 -1
- package/cjs/core/Table/SubRowExpander.d.ts +1 -1
- package/cjs/core/Table/SubRowExpander.js +2 -2
- package/cjs/core/Table/Table.d.ts +1 -1
- package/cjs/core/Table/Table.js +53 -60
- package/cjs/core/Table/TableCell.d.ts +1 -1
- package/cjs/core/Table/TablePaginator.js +27 -25
- package/cjs/core/Table/TableRowMemoized.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/cjs/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/cjs/core/Table/cells/DefaultCell.d.ts +1 -1
- package/cjs/core/Table/cells/EditableCell.d.ts +1 -1
- package/cjs/core/Table/columns/actionColumn.d.ts +2 -2
- package/cjs/core/Table/columns/actionColumn.js +10 -15
- package/cjs/core/Table/columns/expanderColumn.d.ts +1 -1
- package/cjs/core/Table/columns/expanderColumn.js +5 -4
- package/cjs/core/Table/columns/selectionColumn.d.ts +1 -1
- package/cjs/core/Table/columns/selectionColumn.js +5 -5
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +25 -19
- package/cjs/core/Table/filters/FilterButtonBar.js +3 -3
- package/cjs/core/Table/filters/FilterToggle.d.ts +1 -1
- package/cjs/core/Table/filters/FilterToggle.js +5 -3
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +3 -3
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +2 -2
- package/cjs/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/types.d.ts +2 -19
- package/cjs/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/cjs/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.d.ts +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.js +1 -1
- package/cjs/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/cjs/core/Table/index.d.ts +1 -1
- package/cjs/core/Table/utils.d.ts +1 -1
- package/cjs/core/Tabs/Tabs.d.ts +222 -52
- package/cjs/core/Tabs/Tabs.js +429 -375
- package/cjs/core/Tag/Tag.js +2 -2
- package/cjs/core/Textarea/Textarea.js +2 -2
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +3 -2
- package/cjs/core/ThemeProvider/ThemeProvider.js +17 -8
- package/cjs/core/Tile/Tile.d.ts +2 -2
- package/cjs/core/Tile/Tile.js +20 -18
- package/cjs/core/Toast/Toast.js +2 -2
- package/cjs/core/TransferList/TransferList.d.ts +1 -1
- package/cjs/core/TransferList/TransferList.js +6 -5
- package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/cjs/core/Tree/TreeNodeExpander.js +2 -2
- package/{esm/core/Typography/Anchor → cjs/core/Typography}/Anchor.d.ts +1 -1
- package/cjs/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
- package/{esm/core/Typography/Blockquote → cjs/core/Typography}/Blockquote.d.ts +1 -1
- package/cjs/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +1 -1
- package/cjs/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/cjs/core/Typography/{Code/Code.js → Code.js} +1 -1
- package/{esm/core/Typography/Kbd → cjs/core/Typography}/Kbd.d.ts +1 -1
- package/cjs/core/Typography/{Kbd/Kbd.js → Kbd.js} +1 -1
- package/{esm/core/Typography/Text → cjs/core/Typography}/Text.d.ts +1 -1
- package/cjs/core/Typography/{Text/Text.js → Text.js} +1 -1
- package/{esm/core/utils/components → cjs/core/VisuallyHidden}/VisuallyHidden.d.ts +1 -1
- package/cjs/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +1 -1
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/cjs/core/utils/components/InputContainer.js +4 -4
- package/cjs/core/utils/components/WithCSSTransition.js +7 -1
- package/cjs/core/utils/components/index.d.ts +0 -6
- package/cjs/core/utils/components/index.js +0 -6
- package/cjs/core/utils/functions/dev.d.ts +11 -0
- package/cjs/core/utils/functions/dev.js +34 -0
- package/cjs/core/utils/functions/index.d.ts +1 -0
- package/cjs/core/utils/functions/index.js +1 -0
- package/cjs/core/utils/hooks/useGlobals.d.ts +1 -1
- package/cjs/core/utils/hooks/useGlobals.js +3 -7
- package/cjs/core/utils/hooks/useOverflow.js +3 -1
- package/cjs/index.d.ts +112 -2
- package/cjs/index.js +950 -5
- package/cjs/react-table/react-table.d.ts +745 -0
- package/cjs/{core/Badge/index.js → react-table/react-table.js} +5 -10
- package/cjs/styles.js +15 -15
- package/esm/core/Alert/Alert.d.ts +1 -1
- package/esm/core/Alert/Alert.js +2 -2
- package/esm/core/Avatar/Avatar.js +2 -6
- package/esm/core/Breadcrumbs/Breadcrumbs.js +24 -6
- package/esm/core/ButtonGroup/ButtonGroup.js +6 -8
- package/esm/core/Buttons/{Button/Button.d.ts → Button.d.ts} +2 -2
- package/esm/core/Buttons/{Button/Button.js → Button.js} +1 -1
- package/{cjs/core/Buttons/DropdownButton → esm/core/Buttons}/DropdownButton.d.ts +3 -3
- package/esm/core/Buttons/{DropdownButton/DropdownButton.js → DropdownButton.js} +3 -3
- package/{cjs/core/Buttons/IconButton → esm/core/Buttons}/IconButton.d.ts +2 -2
- package/esm/core/Buttons/{IconButton/IconButton.js → IconButton.js} +3 -2
- package/{cjs/core/Buttons/IdeasButton → esm/core/Buttons}/IdeasButton.d.ts +1 -1
- package/esm/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +2 -2
- package/esm/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +3 -3
- package/esm/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +5 -5
- package/esm/core/Carousel/Carousel.d.ts +14 -7
- package/esm/core/Carousel/Carousel.js +9 -39
- package/esm/core/Carousel/CarouselContext.d.ts +0 -4
- package/esm/core/Carousel/CarouselDot.js +1 -1
- package/esm/core/Carousel/CarouselDotsList.js +26 -2
- package/esm/core/Carousel/CarouselNavigation.d.ts +3 -3
- package/esm/core/Carousel/CarouselNavigation.js +6 -23
- package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlide.js +15 -3
- package/esm/core/Carousel/CarouselSlider.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlider.js +2 -2
- package/esm/core/Checkbox/Checkbox.js +1 -1
- package/esm/core/ColorPicker/ColorBuilder.js +3 -1
- package/esm/core/ColorPicker/ColorInputPanel.js +27 -7
- package/esm/core/ColorPicker/ColorPalette.js +3 -83
- package/esm/core/ColorPicker/ColorPicker.d.ts +9 -0
- package/esm/core/ColorPicker/ColorPicker.js +6 -1
- package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/esm/core/ColorPicker/ColorSwatch.js +18 -12
- package/esm/core/ComboBox/ComboBox.d.ts +6 -1
- package/esm/core/ComboBox/ComboBox.js +6 -4
- package/esm/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/esm/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInput.js +1 -1
- package/esm/core/ComboBox/ComboBoxInputContainer.js +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.js +2 -4
- package/esm/core/ComboBox/helpers.d.ts +1 -1
- package/esm/core/DatePicker/DatePicker.d.ts +9 -0
- package/esm/core/DatePicker/DatePicker.js +12 -3
- package/esm/core/Dialog/DialogBackdrop.js +1 -1
- package/esm/core/Dialog/DialogTitleBar.js +1 -1
- package/esm/core/{utils/components → Divider}/Divider.d.ts +1 -1
- package/esm/core/{utils/components → Divider}/Divider.js +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/esm/core/DropdownMenu/DropdownMenu.js +2 -3
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -1
- package/esm/core/FileUpload/FileUploadCard.js +2 -2
- package/esm/core/FileUpload/FileUploadTemplate.js +1 -1
- package/esm/core/{utils/components → Flex}/Flex.d.ts +2 -2
- package/esm/core/{utils/components → Flex}/Flex.js +1 -1
- package/esm/core/Header/Header.js +2 -2
- package/esm/core/Header/HeaderBasicButton.d.ts +1 -1
- package/esm/core/Header/HeaderButton.d.ts +2 -2
- package/esm/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/esm/core/Header/HeaderDropdownButton.js +1 -1
- package/esm/core/Header/HeaderSplitButton.d.ts +1 -1
- package/esm/core/Header/HeaderSplitButton.js +1 -1
- package/{cjs/core/utils/components → esm/core/Icon}/Icon.d.ts +2 -2
- package/esm/core/{utils/components → Icon}/Icon.js +1 -1
- package/esm/core/InformationPanel/InformationPanelHeader.js +1 -1
- package/esm/core/Input/Input.d.ts +0 -1
- package/esm/core/Input/Input.js +0 -1
- package/esm/core/InputGroup/InputGroup.d.ts +1 -1
- package/esm/core/InputGroup/InputGroup.js +3 -3
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/esm/core/InputWithDecorations/InputWithDecorations.js +1 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +4 -4
- package/esm/core/LabeledInput/LabeledInput.js +5 -4
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +2 -2
- package/esm/core/LabeledSelect/LabeledSelect.js +6 -4
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.js +2 -2
- package/{cjs/core/utils/components → esm/core/LinkAction}/LinkAction.d.ts +2 -2
- package/esm/core/{utils/components → LinkAction}/LinkAction.js +1 -1
- package/esm/core/Menu/MenuItem.js +1 -1
- package/esm/core/Menu/MenuItemSkeleton.js +2 -1
- package/esm/core/Modal/Modal.js +1 -1
- package/esm/core/NonIdealState/ErrorPage.js +2 -2
- package/esm/core/{utils/components → Popover}/Popover.d.ts +29 -13
- package/esm/core/{utils/components → Popover}/Popover.js +45 -25
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +1 -1
- package/esm/core/SearchBox/SearchBox.d.ts +3 -2
- package/esm/core/SearchBox/SearchBox.js +2 -2
- package/esm/core/Select/Select.d.ts +2 -2
- package/esm/core/Select/Select.js +10 -9
- package/esm/core/Select/SelectTagContainer.js +1 -1
- package/esm/core/SideNavigation/SideNavigation.js +2 -2
- package/esm/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavButton.js +1 -1
- package/esm/core/Slider/Slider.d.ts +3 -7
- package/esm/core/Slider/Slider.js +8 -19
- package/esm/core/Slider/Thumb.d.ts +2 -3
- package/esm/core/Slider/Thumb.js +2 -6
- package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/esm/core/StatusMessage/StatusMessage.js +2 -1
- package/esm/core/Stepper/StepperStep.js +1 -1
- package/esm/core/Stepper/WorkflowDiagramStep.js +1 -1
- package/esm/core/Surface/Surface.d.ts +8 -0
- package/esm/core/Surface/Surface.js +19 -1
- package/esm/core/Table/SubRowExpander.d.ts +1 -1
- package/esm/core/Table/SubRowExpander.js +1 -1
- package/esm/core/Table/Table.d.ts +1 -1
- package/esm/core/Table/Table.js +7 -13
- package/esm/core/Table/TableCell.d.ts +1 -1
- package/esm/core/Table/TablePaginator.js +5 -3
- package/esm/core/Table/TableRowMemoized.d.ts +1 -1
- package/esm/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/esm/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/esm/core/Table/cells/DefaultCell.d.ts +1 -1
- package/esm/core/Table/cells/EditableCell.d.ts +1 -1
- package/esm/core/Table/columns/actionColumn.d.ts +2 -2
- package/esm/core/Table/columns/actionColumn.js +4 -6
- package/esm/core/Table/columns/expanderColumn.d.ts +1 -1
- package/esm/core/Table/columns/expanderColumn.js +2 -1
- package/esm/core/Table/columns/selectionColumn.d.ts +1 -1
- package/esm/core/Table/columns/selectionColumn.js +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +8 -5
- package/esm/core/Table/filters/FilterButtonBar.js +1 -1
- package/esm/core/Table/filters/FilterToggle.d.ts +1 -1
- package/esm/core/Table/filters/FilterToggle.js +4 -7
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -1
- package/esm/core/Table/filters/TextFilter/TextFilter.js +1 -1
- package/esm/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/types.d.ts +2 -19
- package/esm/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/esm/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/esm/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useScrollToRow.d.ts +1 -1
- package/esm/core/Table/hooks/useScrollToRow.js +1 -1
- package/esm/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/esm/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/esm/core/Table/index.d.ts +1 -1
- package/esm/core/Table/utils.d.ts +1 -1
- package/esm/core/Tabs/Tabs.d.ts +222 -52
- package/esm/core/Tabs/Tabs.js +424 -368
- package/esm/core/Tag/Tag.js +1 -1
- package/esm/core/Textarea/Textarea.js +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +3 -2
- package/esm/core/ThemeProvider/ThemeProvider.js +17 -8
- package/esm/core/Tile/Tile.d.ts +2 -2
- package/esm/core/Tile/Tile.js +15 -14
- package/esm/core/Toast/Toast.js +1 -1
- package/esm/core/TransferList/TransferList.d.ts +1 -1
- package/esm/core/TransferList/TransferList.js +3 -2
- package/esm/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/esm/core/Tree/TreeNodeExpander.js +1 -1
- package/{cjs/core/Typography/Anchor → esm/core/Typography}/Anchor.d.ts +1 -1
- package/esm/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
- package/{cjs/core/Typography/Blockquote → esm/core/Typography}/Blockquote.d.ts +1 -1
- package/esm/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +1 -1
- package/esm/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/esm/core/Typography/{Code/Code.js → Code.js} +1 -1
- package/{cjs/core/Typography/Kbd → esm/core/Typography}/Kbd.d.ts +1 -1
- package/esm/core/Typography/{Kbd/Kbd.js → Kbd.js} +1 -1
- package/{cjs/core/Typography/Text → esm/core/Typography}/Text.d.ts +1 -1
- package/esm/core/Typography/{Text/Text.js → Text.js} +1 -1
- package/{cjs/core/utils/components → esm/core/VisuallyHidden}/VisuallyHidden.d.ts +1 -1
- package/esm/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +1 -1
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/esm/core/utils/components/InputContainer.js +2 -2
- package/esm/core/utils/components/WithCSSTransition.js +7 -1
- package/esm/core/utils/components/index.d.ts +0 -6
- package/esm/core/utils/components/index.js +0 -6
- package/esm/core/utils/functions/dev.d.ts +11 -0
- package/esm/core/utils/functions/dev.js +29 -0
- package/esm/core/utils/functions/index.d.ts +1 -0
- package/esm/core/utils/functions/index.js +1 -0
- package/esm/core/utils/hooks/useGlobals.d.ts +1 -1
- package/esm/core/utils/hooks/useGlobals.js +1 -5
- package/esm/core/utils/hooks/useOverflow.js +3 -1
- package/esm/index.d.ts +112 -2
- package/esm/index.js +123 -2
- package/esm/react-table/react-table.d.ts +745 -0
- package/esm/{core/Backdrop/index.js → react-table/react-table.js} +5 -1
- package/esm/styles.js +15 -15
- package/package.json +22 -21
- package/react-table.d.ts +745 -0
- package/styles.css +57 -66
- package/cjs/core/Alert/index.d.ts +0 -3
- package/cjs/core/Alert/index.js +0 -15
- package/cjs/core/Avatar/index.d.ts +0 -3
- package/cjs/core/Avatar/index.js +0 -15
- package/cjs/core/AvatarGroup/index.d.ts +0 -3
- package/cjs/core/AvatarGroup/index.js +0 -15
- package/cjs/core/Backdrop/index.d.ts +0 -1
- package/cjs/core/Backdrop/index.js +0 -14
- package/cjs/core/Badge/index.d.ts +0 -3
- package/cjs/core/Breadcrumbs/index.d.ts +0 -3
- package/cjs/core/Breadcrumbs/index.js +0 -15
- package/cjs/core/ButtonGroup/index.d.ts +0 -3
- package/cjs/core/ButtonGroup/index.js +0 -15
- package/cjs/core/Buttons/Button/index.d.ts +0 -3
- package/cjs/core/Buttons/Button/index.js +0 -15
- package/cjs/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/cjs/core/Buttons/DropdownButton/index.js +0 -15
- package/cjs/core/Buttons/IconButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IconButton/index.js +0 -15
- package/cjs/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IdeasButton/index.js +0 -15
- package/cjs/core/Buttons/SplitButton/index.d.ts +0 -3
- package/cjs/core/Buttons/SplitButton/index.js +0 -15
- package/cjs/core/Buttons/index.d.ts +0 -5
- package/cjs/core/Buttons/index.js +0 -47
- package/cjs/core/Carousel/index.d.ts +0 -3
- package/cjs/core/Carousel/index.js +0 -15
- package/cjs/core/Checkbox/index.d.ts +0 -3
- package/cjs/core/Checkbox/index.js +0 -15
- package/cjs/core/ColorPicker/index.d.ts +0 -7
- package/cjs/core/ColorPicker/index.js +0 -48
- package/cjs/core/ComboBox/index.d.ts +0 -3
- package/cjs/core/ComboBox/index.js +0 -15
- package/cjs/core/DatePicker/index.d.ts +0 -3
- package/cjs/core/DatePicker/index.js +0 -21
- package/cjs/core/Dialog/index.d.ts +0 -3
- package/cjs/core/Dialog/index.js +0 -15
- package/cjs/core/DropdownMenu/index.d.ts +0 -4
- package/cjs/core/DropdownMenu/index.js +0 -15
- package/cjs/core/ExpandableBlock/index.d.ts +0 -3
- package/cjs/core/ExpandableBlock/index.js +0 -15
- package/cjs/core/Fieldset/index.d.ts +0 -3
- package/cjs/core/Fieldset/index.js +0 -15
- package/cjs/core/FileUpload/index.d.ts +0 -6
- package/cjs/core/FileUpload/index.js +0 -40
- package/cjs/core/Footer/index.d.ts +0 -4
- package/cjs/core/Footer/index.js +0 -21
- package/cjs/core/Header/index.d.ts +0 -6
- package/cjs/core/Header/index.js +0 -40
- package/cjs/core/InformationPanel/index.d.ts +0 -7
- package/cjs/core/InformationPanel/index.js +0 -48
- package/cjs/core/Input/index.d.ts +0 -3
- package/cjs/core/Input/index.js +0 -15
- package/cjs/core/InputGrid/index.d.ts +0 -3
- package/cjs/core/InputGrid/index.js +0 -15
- package/cjs/core/InputGroup/index.d.ts +0 -3
- package/cjs/core/InputGroup/index.js +0 -15
- package/cjs/core/InputWithDecorations/index.d.ts +0 -3
- package/cjs/core/InputWithDecorations/index.js +0 -15
- package/cjs/core/Label/index.d.ts +0 -3
- package/cjs/core/Label/index.js +0 -15
- package/cjs/core/LabeledInput/index.d.ts +0 -3
- package/cjs/core/LabeledInput/index.js +0 -15
- package/cjs/core/LabeledSelect/index.d.ts +0 -3
- package/cjs/core/LabeledSelect/index.js +0 -15
- package/cjs/core/LabeledTextarea/index.d.ts +0 -3
- package/cjs/core/LabeledTextarea/index.js +0 -15
- package/cjs/core/List/index.d.ts +0 -2
- package/cjs/core/List/index.js +0 -21
- package/cjs/core/Menu/index.d.ts +0 -5
- package/cjs/core/Menu/index.js +0 -47
- package/cjs/core/Modal/index.d.ts +0 -5
- package/cjs/core/Modal/index.js +0 -29
- package/cjs/core/NonIdealState/index.d.ts +0 -5
- package/cjs/core/NonIdealState/index.js +0 -22
- package/cjs/core/NotificationMarker/index.d.ts +0 -3
- package/cjs/core/NotificationMarker/index.js +0 -15
- package/cjs/core/Overlay/index.d.ts +0 -1
- package/cjs/core/Overlay/index.js +0 -14
- package/cjs/core/ProgressIndicators/index.d.ts +0 -2
- package/cjs/core/ProgressIndicators/index.js +0 -21
- package/cjs/core/Radio/index.d.ts +0 -3
- package/cjs/core/Radio/index.js +0 -15
- package/cjs/core/RadioTiles/index.d.ts +0 -4
- package/cjs/core/RadioTiles/index.js +0 -22
- package/cjs/core/SearchBox/index.d.ts +0 -3
- package/cjs/core/SearchBox/index.js +0 -15
- package/cjs/core/Select/index.d.ts +0 -4
- package/cjs/core/Select/index.js +0 -15
- package/cjs/core/SideNavigation/index.d.ts +0 -6
- package/cjs/core/SideNavigation/index.js +0 -40
- package/cjs/core/SkipToContentLink/index.d.ts +0 -3
- package/cjs/core/SkipToContentLink/index.js +0 -15
- package/cjs/core/Slider/index.d.ts +0 -3
- package/cjs/core/Slider/index.js +0 -15
- package/cjs/core/StatusMessage/index.d.ts +0 -3
- package/cjs/core/StatusMessage/index.js +0 -15
- package/cjs/core/Stepper/index.d.ts +0 -3
- package/cjs/core/Stepper/index.js +0 -21
- package/cjs/core/Surface/index.d.ts +0 -3
- package/cjs/core/Surface/index.js +0 -15
- package/cjs/core/Tabs/Tab.d.ts +0 -40
- package/cjs/core/Tabs/Tab.js +0 -65
- package/cjs/core/Tabs/index.d.ts +0 -2
- package/cjs/core/Tabs/index.js +0 -21
- package/cjs/core/Tag/index.d.ts +0 -4
- package/cjs/core/Tag/index.js +0 -22
- package/cjs/core/Textarea/index.d.ts +0 -3
- package/cjs/core/Textarea/index.js +0 -15
- package/cjs/core/ThemeProvider/index.d.ts +0 -4
- package/cjs/core/ThemeProvider/index.js +0 -15
- package/cjs/core/Tile/index.d.ts +0 -3
- package/cjs/core/Tile/index.js +0 -15
- package/cjs/core/TimePicker/index.d.ts +0 -4
- package/cjs/core/TimePicker/index.js +0 -15
- package/cjs/core/Toast/index.d.ts +0 -1
- package/cjs/core/Toast/index.js +0 -14
- package/cjs/core/ToggleSwitch/index.d.ts +0 -3
- package/cjs/core/ToggleSwitch/index.js +0 -15
- package/cjs/core/Tooltip/index.d.ts +0 -3
- package/cjs/core/Tooltip/index.js +0 -15
- package/cjs/core/TransferList/index.d.ts +0 -3
- package/cjs/core/TransferList/index.js +0 -15
- package/cjs/core/Tree/index.d.ts +0 -4
- package/cjs/core/Tree/index.js +0 -28
- package/cjs/core/Typography/Anchor/index.d.ts +0 -3
- package/cjs/core/Typography/Anchor/index.js +0 -15
- package/cjs/core/Typography/Blockquote/index.d.ts +0 -3
- package/cjs/core/Typography/Blockquote/index.js +0 -15
- package/cjs/core/Typography/Code/index.d.ts +0 -3
- package/cjs/core/Typography/Code/index.js +0 -15
- package/cjs/core/Typography/Kbd/index.d.ts +0 -3
- package/cjs/core/Typography/Kbd/index.js +0 -21
- package/cjs/core/Typography/Text/index.d.ts +0 -3
- package/cjs/core/Typography/Text/index.js +0 -15
- package/cjs/core/Typography/index.d.ts +0 -5
- package/cjs/core/Typography/index.js +0 -54
- package/cjs/core/index.d.ts +0 -68
- package/cjs/core/index.js +0 -916
- package/cjs/types/react-table-config.d.ts +0 -135
- package/cjs/types/react-table-config.js +0 -2
- package/esm/core/Alert/index.d.ts +0 -3
- package/esm/core/Alert/index.js +0 -6
- package/esm/core/Avatar/index.d.ts +0 -3
- package/esm/core/Avatar/index.js +0 -6
- package/esm/core/AvatarGroup/index.d.ts +0 -3
- package/esm/core/AvatarGroup/index.js +0 -6
- package/esm/core/Backdrop/index.d.ts +0 -1
- package/esm/core/Badge/index.d.ts +0 -3
- package/esm/core/Badge/index.js +0 -6
- package/esm/core/Breadcrumbs/index.d.ts +0 -3
- package/esm/core/Breadcrumbs/index.js +0 -6
- package/esm/core/ButtonGroup/index.d.ts +0 -3
- package/esm/core/ButtonGroup/index.js +0 -6
- package/esm/core/Buttons/Button/index.d.ts +0 -3
- package/esm/core/Buttons/Button/index.js +0 -6
- package/esm/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/esm/core/Buttons/DropdownButton/index.js +0 -6
- package/esm/core/Buttons/IconButton/index.d.ts +0 -3
- package/esm/core/Buttons/IconButton/index.js +0 -6
- package/esm/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/esm/core/Buttons/IdeasButton/index.js +0 -6
- package/esm/core/Buttons/SplitButton/index.d.ts +0 -3
- package/esm/core/Buttons/SplitButton/index.js +0 -6
- package/esm/core/Buttons/index.d.ts +0 -5
- package/esm/core/Buttons/index.js +0 -9
- package/esm/core/Carousel/index.d.ts +0 -3
- package/esm/core/Carousel/index.js +0 -6
- package/esm/core/Checkbox/index.d.ts +0 -3
- package/esm/core/Checkbox/index.js +0 -6
- package/esm/core/ColorPicker/index.d.ts +0 -7
- package/esm/core/ColorPicker/index.js +0 -10
- package/esm/core/ComboBox/index.d.ts +0 -3
- package/esm/core/ComboBox/index.js +0 -6
- package/esm/core/DatePicker/index.d.ts +0 -3
- package/esm/core/DatePicker/index.js +0 -6
- package/esm/core/Dialog/index.d.ts +0 -3
- package/esm/core/Dialog/index.js +0 -6
- package/esm/core/DropdownMenu/index.d.ts +0 -4
- package/esm/core/DropdownMenu/index.js +0 -6
- package/esm/core/ExpandableBlock/index.d.ts +0 -3
- package/esm/core/ExpandableBlock/index.js +0 -6
- package/esm/core/Fieldset/index.d.ts +0 -3
- package/esm/core/Fieldset/index.js +0 -6
- package/esm/core/FileUpload/index.d.ts +0 -6
- package/esm/core/FileUpload/index.js +0 -9
- package/esm/core/Footer/index.d.ts +0 -4
- package/esm/core/Footer/index.js +0 -6
- package/esm/core/Header/index.d.ts +0 -6
- package/esm/core/Header/index.js +0 -9
- package/esm/core/InformationPanel/index.d.ts +0 -7
- package/esm/core/InformationPanel/index.js +0 -10
- package/esm/core/Input/index.d.ts +0 -3
- package/esm/core/Input/index.js +0 -6
- package/esm/core/InputGrid/index.d.ts +0 -3
- package/esm/core/InputGrid/index.js +0 -6
- package/esm/core/InputGroup/index.d.ts +0 -3
- package/esm/core/InputGroup/index.js +0 -6
- package/esm/core/InputWithDecorations/index.d.ts +0 -3
- package/esm/core/InputWithDecorations/index.js +0 -6
- package/esm/core/Label/index.d.ts +0 -3
- package/esm/core/Label/index.js +0 -6
- package/esm/core/LabeledInput/index.d.ts +0 -3
- package/esm/core/LabeledInput/index.js +0 -6
- package/esm/core/LabeledSelect/index.d.ts +0 -3
- package/esm/core/LabeledSelect/index.js +0 -6
- package/esm/core/LabeledTextarea/index.d.ts +0 -3
- package/esm/core/LabeledTextarea/index.js +0 -6
- package/esm/core/List/index.d.ts +0 -2
- package/esm/core/List/index.js +0 -6
- package/esm/core/Menu/index.d.ts +0 -5
- package/esm/core/Menu/index.js +0 -9
- package/esm/core/Modal/index.d.ts +0 -5
- package/esm/core/Modal/index.js +0 -8
- package/esm/core/NonIdealState/index.d.ts +0 -5
- package/esm/core/NonIdealState/index.js +0 -7
- package/esm/core/NotificationMarker/index.d.ts +0 -3
- package/esm/core/NotificationMarker/index.js +0 -6
- package/esm/core/Overlay/index.d.ts +0 -1
- package/esm/core/Overlay/index.js +0 -5
- package/esm/core/ProgressIndicators/index.d.ts +0 -2
- package/esm/core/ProgressIndicators/index.js +0 -6
- package/esm/core/Radio/index.d.ts +0 -3
- package/esm/core/Radio/index.js +0 -6
- package/esm/core/RadioTiles/index.d.ts +0 -4
- package/esm/core/RadioTiles/index.js +0 -7
- package/esm/core/SearchBox/index.d.ts +0 -3
- package/esm/core/SearchBox/index.js +0 -6
- package/esm/core/Select/index.d.ts +0 -4
- package/esm/core/Select/index.js +0 -6
- package/esm/core/SideNavigation/index.d.ts +0 -6
- package/esm/core/SideNavigation/index.js +0 -9
- package/esm/core/SkipToContentLink/index.d.ts +0 -3
- package/esm/core/SkipToContentLink/index.js +0 -6
- package/esm/core/Slider/index.d.ts +0 -3
- package/esm/core/Slider/index.js +0 -6
- package/esm/core/StatusMessage/index.d.ts +0 -3
- package/esm/core/StatusMessage/index.js +0 -6
- package/esm/core/Stepper/index.d.ts +0 -3
- package/esm/core/Stepper/index.js +0 -6
- package/esm/core/Surface/index.d.ts +0 -3
- package/esm/core/Surface/index.js +0 -6
- package/esm/core/Tabs/Tab.d.ts +0 -40
- package/esm/core/Tabs/Tab.js +0 -57
- package/esm/core/Tabs/index.d.ts +0 -2
- package/esm/core/Tabs/index.js +0 -6
- package/esm/core/Tag/index.d.ts +0 -4
- package/esm/core/Tag/index.js +0 -7
- package/esm/core/Textarea/index.d.ts +0 -3
- package/esm/core/Textarea/index.js +0 -6
- package/esm/core/ThemeProvider/index.d.ts +0 -4
- package/esm/core/ThemeProvider/index.js +0 -6
- package/esm/core/Tile/index.d.ts +0 -3
- package/esm/core/Tile/index.js +0 -6
- package/esm/core/TimePicker/index.d.ts +0 -4
- package/esm/core/TimePicker/index.js +0 -6
- package/esm/core/Toast/index.d.ts +0 -1
- package/esm/core/Toast/index.js +0 -5
- package/esm/core/ToggleSwitch/index.d.ts +0 -3
- package/esm/core/ToggleSwitch/index.js +0 -6
- package/esm/core/Tooltip/index.d.ts +0 -3
- package/esm/core/Tooltip/index.js +0 -6
- package/esm/core/TransferList/index.d.ts +0 -3
- package/esm/core/TransferList/index.js +0 -6
- package/esm/core/Tree/index.d.ts +0 -4
- package/esm/core/Tree/index.js +0 -7
- package/esm/core/Typography/Anchor/index.d.ts +0 -3
- package/esm/core/Typography/Anchor/index.js +0 -6
- package/esm/core/Typography/Blockquote/index.d.ts +0 -3
- package/esm/core/Typography/Blockquote/index.js +0 -6
- package/esm/core/Typography/Code/index.d.ts +0 -3
- package/esm/core/Typography/Code/index.js +0 -6
- package/esm/core/Typography/Kbd/index.d.ts +0 -3
- package/esm/core/Typography/Kbd/index.js +0 -6
- package/esm/core/Typography/Text/index.d.ts +0 -3
- package/esm/core/Typography/Text/index.js +0 -6
- package/esm/core/Typography/index.d.ts +0 -5
- package/esm/core/Typography/index.js +0 -9
- package/esm/core/index.d.ts +0 -68
- package/esm/core/index.js +0 -132
- package/esm/types/react-table-config.d.ts +0 -135
- package/esm/types/react-table-config.js +0 -1
|
@@ -38,6 +38,7 @@ exports.ColorPicker = React.forwardRef((props, forwardedRef) => {
|
|
|
38
38
|
onChange,
|
|
39
39
|
onChangeComplete,
|
|
40
40
|
showAlpha = false,
|
|
41
|
+
applyBackground = true,
|
|
41
42
|
...rest
|
|
42
43
|
} = props;
|
|
43
44
|
const ref = React.useRef(null);
|
|
@@ -83,7 +84,11 @@ exports.ColorPicker = React.forwardRef((props, forwardedRef) => {
|
|
|
83
84
|
return React.createElement(
|
|
84
85
|
index_js_1.Box,
|
|
85
86
|
{
|
|
86
|
-
className: (0, classnames_1.default)(
|
|
87
|
+
className: (0, classnames_1.default)(
|
|
88
|
+
'iui-color-picker',
|
|
89
|
+
{ 'iui-popover-surface': applyBackground },
|
|
90
|
+
className,
|
|
91
|
+
),
|
|
87
92
|
ref: (0, index_js_1.useMergedRefs)(ref, forwardedRef),
|
|
88
93
|
...rest,
|
|
89
94
|
},
|
|
@@ -16,5 +16,5 @@ type ColorSwatchProps = {
|
|
|
16
16
|
* <ColorSwatch color='#23450b' onClick={onClick}/>
|
|
17
17
|
* <ColorSwatch color={{ r: 255, g: 255, b: 0 }} onClick={onClick}/>
|
|
18
18
|
*/
|
|
19
|
-
export declare const ColorSwatch: PolymorphicForwardRefComponent<"
|
|
19
|
+
export declare const ColorSwatch: PolymorphicForwardRefComponent<"button", ColorSwatchProps>;
|
|
20
20
|
export default ColorSwatch;
|
|
@@ -10,6 +10,7 @@ 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
12
|
const ColorPicker_js_1 = require('./ColorPicker.js');
|
|
13
|
+
const VisuallyHidden_js_1 = require('../VisuallyHidden/VisuallyHidden.js');
|
|
13
14
|
/**
|
|
14
15
|
* ColorSwatch component to display within a color palette.
|
|
15
16
|
* @example
|
|
@@ -25,21 +26,30 @@ exports.ColorSwatch = React.forwardRef((props, ref) => {
|
|
|
25
26
|
: (0, ColorPicker_js_1.getColorValue)(color).toHslString(true),
|
|
26
27
|
[color],
|
|
27
28
|
);
|
|
28
|
-
return React.createElement(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
className,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
return React.createElement(
|
|
30
|
+
index_js_1.Box,
|
|
31
|
+
{
|
|
32
|
+
as: !!onClick ? index_js_1.ButtonBase : 'span',
|
|
33
|
+
className: (0, classnames_1.default)(
|
|
34
|
+
'iui-color-swatch',
|
|
35
|
+
{ 'iui-active': isActive },
|
|
36
|
+
className,
|
|
37
|
+
),
|
|
38
|
+
style: {
|
|
39
|
+
'--iui-color-swatch-background': colorString,
|
|
40
|
+
...style,
|
|
41
|
+
},
|
|
42
|
+
onClick: onClick,
|
|
43
|
+
'aria-pressed': !!onClick && isActive ? 'true' : undefined,
|
|
44
|
+
ref: ref,
|
|
45
|
+
...rest,
|
|
37
46
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
props.children ??
|
|
48
|
+
React.createElement(
|
|
49
|
+
VisuallyHidden_js_1.VisuallyHidden,
|
|
50
|
+
null,
|
|
51
|
+
colorString.toUpperCase(),
|
|
52
|
+
),
|
|
53
|
+
);
|
|
44
54
|
});
|
|
45
55
|
exports.default = exports.ColorSwatch;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { SelectOption } from '../Select/
|
|
2
|
+
import type { SelectOption } from '../Select/Select.js';
|
|
3
3
|
import type { Input } from '../Input/Input.js';
|
|
4
4
|
import type { InputContainerProps, CommonProps } from '../utils/index.js';
|
|
5
|
+
import { ComboBoxEndIcon } from './ComboBoxEndIcon.js';
|
|
5
6
|
type ActionType = 'added' | 'removed';
|
|
6
7
|
type MultipleOnChangeProps<T> = {
|
|
7
8
|
value: T;
|
|
@@ -49,6 +50,10 @@ export type ComboBoxProps<T> = {
|
|
|
49
50
|
* Props to customize dropdown menu behavior.
|
|
50
51
|
*/
|
|
51
52
|
dropdownMenuProps?: React.ComponentProps<'div'>;
|
|
53
|
+
/**
|
|
54
|
+
* End icon props.
|
|
55
|
+
*/
|
|
56
|
+
endIconProps?: React.ComponentProps<typeof ComboBoxEndIcon>;
|
|
52
57
|
/**
|
|
53
58
|
* Message shown when no options are available.
|
|
54
59
|
* If `JSX.Element` is provided, it will be rendered as is and won't be wrapped with `MenuExtraContent`.
|
|
@@ -7,12 +7,11 @@ 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 SelectTag_js_1 =
|
|
12
|
-
|
|
13
|
-
);
|
|
14
|
-
const
|
|
15
|
-
const index_js_3 = require('../utils/index.js');
|
|
10
|
+
const MenuExtraContent_js_1 = require('../Menu/MenuExtraContent.js');
|
|
11
|
+
const SelectTag_js_1 = require('../Select/SelectTag.js');
|
|
12
|
+
const Text_js_1 = require('../Typography/Text.js');
|
|
13
|
+
const index_js_1 = require('../utils/index.js');
|
|
14
|
+
const Popover_js_1 = require('../Popover/Popover.js');
|
|
16
15
|
const helpers_js_1 = require('./helpers.js');
|
|
17
16
|
const ComboBoxEndIcon_js_1 = require('./ComboBoxEndIcon.js');
|
|
18
17
|
const ComboBoxInput_js_1 = require('./ComboBoxInput.js');
|
|
@@ -51,6 +50,7 @@ const ComboBox = (props) => {
|
|
|
51
50
|
onChange,
|
|
52
51
|
filterFunction,
|
|
53
52
|
inputProps,
|
|
53
|
+
endIconProps,
|
|
54
54
|
dropdownMenuProps,
|
|
55
55
|
emptyStateMessage = 'No options found',
|
|
56
56
|
itemRenderer,
|
|
@@ -65,13 +65,13 @@ const ComboBox = (props) => {
|
|
|
65
65
|
() =>
|
|
66
66
|
props.id ??
|
|
67
67
|
(inputProps?.id && `${inputProps.id}-cb`) ??
|
|
68
|
-
`iui-cb-${(0,
|
|
68
|
+
`iui-cb-${(0, index_js_1.getRandomValue)(10)}`,
|
|
69
69
|
);
|
|
70
70
|
// Refs get set in subcomponents
|
|
71
71
|
const inputRef = React.useRef(null);
|
|
72
72
|
const menuRef = React.useRef(null);
|
|
73
|
-
const onChangeProp = (0,
|
|
74
|
-
const optionsRef = (0,
|
|
73
|
+
const onChangeProp = (0, index_js_1.useLatestRef)(onChange);
|
|
74
|
+
const optionsRef = (0, index_js_1.useLatestRef)(options);
|
|
75
75
|
// Record to store all extra information (e.g. original indexes), where the key is the id of the option
|
|
76
76
|
const optionsExtraInfoRef = React.useRef({});
|
|
77
77
|
// Clear the extra info when the options change so that it can be reinitialized below
|
|
@@ -115,8 +115,8 @@ const ComboBox = (props) => {
|
|
|
115
115
|
focusedIndex: -1,
|
|
116
116
|
},
|
|
117
117
|
);
|
|
118
|
-
const onShowRef = (0,
|
|
119
|
-
const onHideRef = (0,
|
|
118
|
+
const onShowRef = (0, index_js_1.useLatestRef)(onShowProp);
|
|
119
|
+
const onHideRef = (0, index_js_1.useLatestRef)(onHideProp);
|
|
120
120
|
const show = React.useCallback(() => {
|
|
121
121
|
dispatch({ type: 'open' });
|
|
122
122
|
onShowRef.current?.();
|
|
@@ -125,7 +125,7 @@ const ComboBox = (props) => {
|
|
|
125
125
|
dispatch({ type: 'close' });
|
|
126
126
|
onHideRef.current?.();
|
|
127
127
|
}, [onHideRef]);
|
|
128
|
-
(0,
|
|
128
|
+
(0, index_js_1.useIsomorphicLayoutEffect)(() => {
|
|
129
129
|
// When the dropdown opens
|
|
130
130
|
if (isOpen) {
|
|
131
131
|
inputRef.current?.focus(); // Focus the input
|
|
@@ -316,7 +316,7 @@ const ComboBox = (props) => {
|
|
|
316
316
|
focused: focusedIndex === __originalIndex,
|
|
317
317
|
'data-iui-index': __originalIndex,
|
|
318
318
|
'data-iui-filtered-index': filteredIndex,
|
|
319
|
-
ref: (0,
|
|
319
|
+
ref: (0, index_js_1.mergeRefs)(customItem.props.ref, (el) => {
|
|
320
320
|
if (!enableVirtualization && focusedIndex === __originalIndex) {
|
|
321
321
|
el?.scrollIntoView({ block: 'nearest' });
|
|
322
322
|
}
|
|
@@ -357,10 +357,10 @@ const ComboBox = (props) => {
|
|
|
357
357
|
React.isValidElement(emptyStateMessage)
|
|
358
358
|
? emptyStateMessage
|
|
359
359
|
: React.createElement(
|
|
360
|
-
|
|
360
|
+
MenuExtraContent_js_1.MenuExtraContent,
|
|
361
361
|
null,
|
|
362
362
|
React.createElement(
|
|
363
|
-
|
|
363
|
+
Text_js_1.Text,
|
|
364
364
|
{ isMuted: true },
|
|
365
365
|
emptyStateMessage,
|
|
366
366
|
),
|
|
@@ -368,7 +368,7 @@ const ComboBox = (props) => {
|
|
|
368
368
|
),
|
|
369
369
|
[emptyStateMessage],
|
|
370
370
|
);
|
|
371
|
-
const popover = (0,
|
|
371
|
+
const popover = (0, Popover_js_1.usePopover)({
|
|
372
372
|
visible: isOpen,
|
|
373
373
|
onVisibleChange: (open) => (open ? show() : hide()),
|
|
374
374
|
matchWidth: true,
|
|
@@ -412,7 +412,7 @@ const ComboBox = (props) => {
|
|
|
412
412
|
selectTags: isMultipleEnabled(selected, multiple)
|
|
413
413
|
? selected.map((index) => {
|
|
414
414
|
const item = optionsRef.current[index];
|
|
415
|
-
return React.createElement(SelectTag_js_1.
|
|
415
|
+
return React.createElement(SelectTag_js_1.SelectTag, {
|
|
416
416
|
key: item.label,
|
|
417
417
|
label: item.label,
|
|
418
418
|
});
|
|
@@ -421,11 +421,12 @@ const ComboBox = (props) => {
|
|
|
421
421
|
}),
|
|
422
422
|
),
|
|
423
423
|
React.createElement(ComboBoxEndIcon_js_1.ComboBoxEndIcon, {
|
|
424
|
+
...endIconProps,
|
|
424
425
|
disabled: inputProps?.disabled,
|
|
425
426
|
isOpen: isOpen,
|
|
426
427
|
}),
|
|
427
428
|
multiple
|
|
428
|
-
? React.createElement(
|
|
429
|
+
? React.createElement(index_js_1.AutoclearingHiddenLiveRegion, {
|
|
429
430
|
text: liveRegionSelection,
|
|
430
431
|
})
|
|
431
432
|
: null,
|
|
@@ -9,10 +9,11 @@ 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
|
exports.ComboBoxEndIcon = React.forwardRef((props, forwardedRef) => {
|
|
13
14
|
const { className, children, disabled, isOpen, ...rest } = props;
|
|
14
15
|
return React.createElement(
|
|
15
|
-
|
|
16
|
+
Icon_js_1.Icon,
|
|
16
17
|
{
|
|
17
18
|
as: 'span',
|
|
18
19
|
ref: forwardedRef,
|
|
@@ -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 Input_js_1 = require('../Input/Input.js');
|
|
11
|
+
const index_js_1 = require('../utils/index.js');
|
|
12
12
|
const ComboBoxMultipleContainer_js_1 = require('./ComboBoxMultipleContainer.js');
|
|
13
13
|
const helpers_js_1 = require('./helpers.js');
|
|
14
14
|
exports.ComboBoxInput = React.forwardRef((props, forwardedRef) => {
|
|
@@ -29,13 +29,13 @@ exports.ComboBoxInput = React.forwardRef((props, forwardedRef) => {
|
|
|
29
29
|
popover,
|
|
30
30
|
show,
|
|
31
31
|
hide,
|
|
32
|
-
} = (0,
|
|
33
|
-
const dispatch = (0,
|
|
32
|
+
} = (0, index_js_1.useSafeContext)(helpers_js_1.ComboBoxStateContext);
|
|
33
|
+
const dispatch = (0, index_js_1.useSafeContext)(
|
|
34
34
|
helpers_js_1.ComboBoxActionContext,
|
|
35
35
|
);
|
|
36
36
|
const { inputRef, menuRef, optionsExtraInfoRef } = (0,
|
|
37
|
-
|
|
38
|
-
const refs = (0,
|
|
37
|
+
index_js_1.useSafeContext)(helpers_js_1.ComboBoxRefsContext);
|
|
38
|
+
const refs = (0, index_js_1.useMergedRefs)(
|
|
39
39
|
inputRef,
|
|
40
40
|
popover.refs.setReference,
|
|
41
41
|
forwardedRef,
|
|
@@ -178,13 +178,13 @@ exports.ComboBoxInput = React.forwardRef((props, forwardedRef) => {
|
|
|
178
178
|
}
|
|
179
179
|
}, [hide, isOpen, show]);
|
|
180
180
|
const [tagContainerWidthRef, tagContainerWidth] = (0,
|
|
181
|
-
|
|
181
|
+
index_js_1.useContainerWidth)();
|
|
182
182
|
return React.createElement(
|
|
183
183
|
React.Fragment,
|
|
184
184
|
null,
|
|
185
|
-
React.createElement(
|
|
185
|
+
React.createElement(Input_js_1.Input, {
|
|
186
186
|
ref: refs,
|
|
187
|
-
onClick: (0,
|
|
187
|
+
onClick: (0, index_js_1.mergeEventHandlers)(onClickProp, handleClick),
|
|
188
188
|
'aria-expanded': isOpen,
|
|
189
189
|
'aria-activedescendant':
|
|
190
190
|
isOpen && focusedIndex != undefined && focusedIndex > -1
|
|
@@ -200,7 +200,7 @@ exports.ComboBoxInput = React.forwardRef((props, forwardedRef) => {
|
|
|
200
200
|
'aria-describedby': multiple ? `${id}-selected-live` : undefined,
|
|
201
201
|
size: size,
|
|
202
202
|
...popover.getReferenceProps({
|
|
203
|
-
onKeyDown: (0,
|
|
203
|
+
onKeyDown: (0, index_js_1.mergeEventHandlers)(
|
|
204
204
|
onKeyDownProp,
|
|
205
205
|
handleKeyDown,
|
|
206
206
|
),
|
|
@@ -7,23 +7,23 @@ 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 StatusMessage_js_1 = require('../StatusMessage/StatusMessage.js');
|
|
11
|
+
const index_js_1 = require('../utils/index.js');
|
|
12
12
|
const helpers_js_1 = require('./helpers.js');
|
|
13
13
|
exports.ComboBoxInputContainer = React.forwardRef((props, forwardedRef) => {
|
|
14
14
|
const { className, status, message, children, ...rest } = props;
|
|
15
|
-
const { id } = (0,
|
|
15
|
+
const { id } = (0, index_js_1.useSafeContext)(
|
|
16
16
|
helpers_js_1.ComboBoxStateContext,
|
|
17
17
|
);
|
|
18
18
|
return React.createElement(
|
|
19
|
-
|
|
19
|
+
index_js_1.InputContainer,
|
|
20
20
|
{
|
|
21
21
|
className: className,
|
|
22
22
|
status: status,
|
|
23
23
|
statusMessage:
|
|
24
24
|
typeof message === 'string'
|
|
25
25
|
? React.createElement(
|
|
26
|
-
|
|
26
|
+
StatusMessage_js_1.StatusMessage,
|
|
27
27
|
{ status: status },
|
|
28
28
|
message,
|
|
29
29
|
)
|
|
@@ -34,7 +34,7 @@ exports.ComboBoxInputContainer = React.forwardRef((props, forwardedRef) => {
|
|
|
34
34
|
id: id,
|
|
35
35
|
},
|
|
36
36
|
React.createElement(
|
|
37
|
-
|
|
37
|
+
index_js_1.Box,
|
|
38
38
|
{ className: 'iui-input-with-icon' },
|
|
39
39
|
children,
|
|
40
40
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Menu } from '../Menu/
|
|
2
|
+
import { Menu } from '../Menu/Menu.js';
|
|
3
3
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
4
|
type ComboBoxMenuProps = Omit<React.ComponentPropsWithoutRef<typeof Menu>, 'onClick'> & React.ComponentPropsWithoutRef<'div'>;
|
|
5
5
|
export declare const ComboBoxMenu: PolymorphicForwardRefComponent<"div", ComboBoxMenuProps>;
|
|
@@ -6,16 +6,15 @@ const tslib_1 = require('tslib');
|
|
|
6
6
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
7
7
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
|
-
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
10
9
|
const React = tslib_1.__importStar(require('react'));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
10
|
+
const Menu_js_1 = require('../Menu/Menu.js');
|
|
11
|
+
const index_js_1 = require('../utils/index.js');
|
|
13
12
|
const helpers_js_1 = require('./helpers.js');
|
|
14
13
|
const VirtualizedComboBoxMenu = (props) => {
|
|
15
14
|
const { children, ...rest } = props;
|
|
16
15
|
const { filteredOptions, getMenuItem, focusedIndex } = (0,
|
|
17
|
-
|
|
18
|
-
const { menuRef } = (0,
|
|
16
|
+
index_js_1.useSafeContext)(helpers_js_1.ComboBoxStateContext);
|
|
17
|
+
const { menuRef } = (0, index_js_1.useSafeContext)(
|
|
19
18
|
helpers_js_1.ComboBoxRefsContext,
|
|
20
19
|
);
|
|
21
20
|
const virtualItemRenderer = React.useCallback(
|
|
@@ -37,7 +36,7 @@ const VirtualizedComboBoxMenu = (props) => {
|
|
|
37
36
|
);
|
|
38
37
|
}, [focusedIndex, menuRef]);
|
|
39
38
|
const { outerProps, innerProps, visibleChildren } = (0,
|
|
40
|
-
|
|
39
|
+
index_js_1.useVirtualization)({
|
|
41
40
|
// 'Fool' VirtualScroll by passing length 1
|
|
42
41
|
// whenever there is no elements, to show empty state message
|
|
43
42
|
itemsLength: filteredOptions.length || 1,
|
|
@@ -45,7 +44,7 @@ const VirtualizedComboBoxMenu = (props) => {
|
|
|
45
44
|
scrollToIndex: focusedVisibleIndex,
|
|
46
45
|
});
|
|
47
46
|
return React.createElement(
|
|
48
|
-
|
|
47
|
+
index_js_1.Box,
|
|
49
48
|
{ as: 'div', ...outerProps, ...rest },
|
|
50
49
|
React.createElement(
|
|
51
50
|
'div',
|
|
@@ -55,14 +54,14 @@ const VirtualizedComboBoxMenu = (props) => {
|
|
|
55
54
|
);
|
|
56
55
|
};
|
|
57
56
|
exports.ComboBoxMenu = React.forwardRef((props, forwardedRef) => {
|
|
58
|
-
const {
|
|
59
|
-
const { id, enableVirtualization, popover } = (0,
|
|
57
|
+
const { children, style, ...rest } = props;
|
|
58
|
+
const { id, enableVirtualization, popover } = (0, index_js_1.useSafeContext)(
|
|
60
59
|
helpers_js_1.ComboBoxStateContext,
|
|
61
60
|
);
|
|
62
|
-
const { menuRef } = (0,
|
|
61
|
+
const { menuRef } = (0, index_js_1.useSafeContext)(
|
|
63
62
|
helpers_js_1.ComboBoxRefsContext,
|
|
64
63
|
);
|
|
65
|
-
const refs = (0,
|
|
64
|
+
const refs = (0, index_js_1.useMergedRefs)(
|
|
66
65
|
popover.refs.setFloating,
|
|
67
66
|
forwardedRef,
|
|
68
67
|
menuRef,
|
|
@@ -70,16 +69,15 @@ exports.ComboBoxMenu = React.forwardRef((props, forwardedRef) => {
|
|
|
70
69
|
return (
|
|
71
70
|
popover.open &&
|
|
72
71
|
React.createElement(
|
|
73
|
-
|
|
72
|
+
index_js_1.Portal,
|
|
74
73
|
{ portal: true },
|
|
75
74
|
React.createElement(
|
|
76
|
-
|
|
75
|
+
Menu_js_1.Menu,
|
|
77
76
|
{
|
|
78
77
|
id: `${id}-list`,
|
|
79
78
|
setFocus: false,
|
|
80
79
|
role: 'listbox',
|
|
81
80
|
ref: refs,
|
|
82
|
-
className: (0, classnames_1.default)('iui-scroll', className),
|
|
83
81
|
...popover.getFloatingProps({
|
|
84
82
|
style: !enableVirtualization
|
|
85
83
|
? style
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { SelectOption } from '../Select/Select.js';
|
|
3
|
-
import type { usePopover } from '../
|
|
3
|
+
import type { usePopover } from '../Popover/Popover.js';
|
|
4
4
|
type ComboBoxAction = {
|
|
5
5
|
type: 'multiselect';
|
|
6
6
|
value: number[];
|
|
@@ -87,6 +87,15 @@ type DatePickerProps = {
|
|
|
87
87
|
* Disabled dates cannot be selected.
|
|
88
88
|
*/
|
|
89
89
|
isDateDisabled?: (date: Date) => boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Whether there is a background, border, shadow, etc.
|
|
92
|
+
*
|
|
93
|
+
* Should be set to true if used in a popover that doesn't have its own background,
|
|
94
|
+
* or set to false if the popover has its own background or embedding within a page.
|
|
95
|
+
*
|
|
96
|
+
* @default true
|
|
97
|
+
*/
|
|
98
|
+
applyBackground?: boolean;
|
|
90
99
|
} & DateRangePickerProps & Omit<TimePickerProps, 'date' | 'onChange' | 'setFocusHour'>;
|
|
91
100
|
/**
|
|
92
101
|
* Date picker component
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Popover } from '../utils/index.js';
|
|
3
2
|
import type { PolymorphicForwardRefComponent, PortalProps } from '../utils/index.js';
|
|
3
|
+
import { usePopover } from '../Popover/Popover.js';
|
|
4
4
|
export type DropdownMenuProps = {
|
|
5
5
|
/**
|
|
6
6
|
* List of menu items. Recommended to use MenuItem component.
|
|
@@ -16,7 +16,7 @@ export type DropdownMenuProps = {
|
|
|
16
16
|
* Child element to wrap dropdown with.
|
|
17
17
|
*/
|
|
18
18
|
children: React.ReactNode;
|
|
19
|
-
} & Pick<
|
|
19
|
+
} & Pick<Parameters<typeof usePopover>[0], 'visible' | 'onVisibleChange' | 'placement' | 'matchWidth'> & React.ComponentPropsWithoutRef<'ul'> & Pick<PortalProps, 'portal'>;
|
|
20
20
|
/**
|
|
21
21
|
* Dropdown menu component.
|
|
22
22
|
* Built on top of the {@link Popover} component.
|
|
@@ -8,7 +8,8 @@ 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.
|
|
@@ -56,7 +57,7 @@ exports.DropdownMenu = React.forwardRef((props, forwardedRef) => {
|
|
|
56
57
|
}
|
|
57
58
|
return menuItems;
|
|
58
59
|
}, [menuItems, close]);
|
|
59
|
-
const popover = (0,
|
|
60
|
+
const popover = (0, Popover_js_1.usePopover)({
|
|
60
61
|
visible,
|
|
61
62
|
onVisibleChange: (open) => (open ? setVisible(true) : close()),
|
|
62
63
|
placement,
|
|
@@ -79,7 +80,7 @@ exports.DropdownMenu = React.forwardRef((props, forwardedRef) => {
|
|
|
79
80
|
index_js_1.Portal,
|
|
80
81
|
{ portal: portal },
|
|
81
82
|
React.createElement(
|
|
82
|
-
|
|
83
|
+
Menu_js_1.Menu,
|
|
83
84
|
{
|
|
84
85
|
...popover.getFloatingProps({
|
|
85
86
|
role,
|
|
@@ -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"> & {
|