@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
|
@@ -8,9 +8,9 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
11
|
+
const IconButton_js_1 = require('../Buttons/IconButton.js');
|
|
12
|
+
const Input_js_1 = require('../Input/Input.js');
|
|
13
|
+
const index_js_1 = require('../utils/index.js');
|
|
14
14
|
const ColorPickerContext_js_1 = require('./ColorPickerContext.js');
|
|
15
15
|
/**
|
|
16
16
|
* `ColorInputPanel` shows input fields to enter precise color values in the specified format.
|
|
@@ -41,10 +41,10 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
41
41
|
if (currentFormat === 'hsl') {
|
|
42
42
|
const hsl = activeColor.toHslColor();
|
|
43
43
|
setInput([
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
index_js_1.ColorValue.getFormattedColorNumber(hsvColor.h),
|
|
45
|
+
index_js_1.ColorValue.getFormattedColorNumber(hsl.s),
|
|
46
|
+
index_js_1.ColorValue.getFormattedColorNumber(hsl.l),
|
|
47
|
+
index_js_1.ColorValue.getFormattedColorNumber(
|
|
48
48
|
hsl.a ?? activeColor.getAlpha() / 255,
|
|
49
49
|
2,
|
|
50
50
|
),
|
|
@@ -55,7 +55,7 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
55
55
|
rgb.r.toString(),
|
|
56
56
|
rgb.g.toString(),
|
|
57
57
|
rgb.b.toString(),
|
|
58
|
-
|
|
58
|
+
index_js_1.ColorValue.getFormattedColorNumber(
|
|
59
59
|
rgb.a ?? activeColor.getAlpha() / 255,
|
|
60
60
|
2,
|
|
61
61
|
),
|
|
@@ -85,7 +85,7 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
85
85
|
if (currentFormat === 'hex') {
|
|
86
86
|
try {
|
|
87
87
|
const value = input[0].replace(/ /g, '').toLowerCase(); // remove white space from input
|
|
88
|
-
color =
|
|
88
|
+
color = index_js_1.ColorValue.create(value);
|
|
89
89
|
setValidHexInput(true);
|
|
90
90
|
if (activeColor.toHexString(showAlpha).toLowerCase() === value) {
|
|
91
91
|
return;
|
|
@@ -113,7 +113,7 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
113
113
|
if (hsl.h === h && hsl.s === s && hsl.l === l && hsl.a === a) {
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
|
-
color =
|
|
116
|
+
color = index_js_1.ColorValue.create({ h, s, l, a });
|
|
117
117
|
}
|
|
118
118
|
if (currentFormat === 'rgb') {
|
|
119
119
|
const [r, g, b, a] = input.map(Number);
|
|
@@ -133,17 +133,18 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
133
133
|
if (rgb.r === r && rgb.g === g && rgb.b === b && rgb.a === a) {
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
|
-
color =
|
|
136
|
+
color = index_js_1.ColorValue.create({ r, g, b, a });
|
|
137
137
|
}
|
|
138
138
|
if (color) {
|
|
139
139
|
applyHsvColorChange(color.toHsvColor(), true, color);
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
const hexInputField = React.createElement(
|
|
142
|
+
const hexInputField = React.createElement(Input_js_1.Input, {
|
|
143
143
|
size: 'small',
|
|
144
144
|
maxLength: showAlpha ? 9 : 7,
|
|
145
145
|
minLength: 1,
|
|
146
146
|
placeholder: 'HEX',
|
|
147
|
+
'aria-label': 'Hex',
|
|
147
148
|
value: input[0],
|
|
148
149
|
onChange: (event) => {
|
|
149
150
|
const value = event.target.value.startsWith('#')
|
|
@@ -166,13 +167,14 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
166
167
|
const hslInputs = React.createElement(
|
|
167
168
|
React.Fragment,
|
|
168
169
|
null,
|
|
169
|
-
React.createElement(
|
|
170
|
+
React.createElement(Input_js_1.Input, {
|
|
170
171
|
size: 'small',
|
|
171
172
|
type: 'number',
|
|
172
173
|
min: '0',
|
|
173
174
|
max: '359',
|
|
174
175
|
step: '.1',
|
|
175
176
|
placeholder: 'H',
|
|
177
|
+
'aria-label': 'Hue',
|
|
176
178
|
value: input[0] ?? '',
|
|
177
179
|
onChange: (event) => {
|
|
178
180
|
setInput([event.target.value, input[1], input[2], input[3]]);
|
|
@@ -192,13 +194,14 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
192
194
|
status:
|
|
193
195
|
Number(input[0]) < 0 || Number(input[0]) > 360 ? 'negative' : undefined,
|
|
194
196
|
}),
|
|
195
|
-
React.createElement(
|
|
197
|
+
React.createElement(Input_js_1.Input, {
|
|
196
198
|
size: 'small',
|
|
197
199
|
type: 'number',
|
|
198
200
|
min: '0',
|
|
199
201
|
max: '100',
|
|
200
202
|
step: '.1',
|
|
201
203
|
placeholder: 'S',
|
|
204
|
+
'aria-label': 'Saturation',
|
|
202
205
|
value: input[1] ?? '',
|
|
203
206
|
onChange: (event) => {
|
|
204
207
|
setInput([input[0], event.target.value, input[2], input[3]]);
|
|
@@ -218,13 +221,14 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
218
221
|
status:
|
|
219
222
|
Number(input[1]) < 0 || Number(input[1]) > 100 ? 'negative' : undefined,
|
|
220
223
|
}),
|
|
221
|
-
React.createElement(
|
|
224
|
+
React.createElement(Input_js_1.Input, {
|
|
222
225
|
size: 'small',
|
|
223
226
|
type: 'number',
|
|
224
227
|
min: '0',
|
|
225
228
|
max: '100',
|
|
226
229
|
step: '.1',
|
|
227
230
|
placeholder: 'L',
|
|
231
|
+
'aria-label': 'Lightness',
|
|
228
232
|
value: input[2] ?? '',
|
|
229
233
|
onChange: (event) => {
|
|
230
234
|
setInput([input[0], input[1], event.target.value, input[3]]);
|
|
@@ -245,13 +249,14 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
245
249
|
Number(input[2]) < 0 || Number(input[2]) > 100 ? 'negative' : undefined,
|
|
246
250
|
}),
|
|
247
251
|
showAlpha &&
|
|
248
|
-
React.createElement(
|
|
252
|
+
React.createElement(Input_js_1.Input, {
|
|
249
253
|
size: 'small',
|
|
250
254
|
type: 'number',
|
|
251
255
|
min: '0',
|
|
252
256
|
max: '1',
|
|
253
257
|
step: '.01',
|
|
254
258
|
placeholder: 'A',
|
|
259
|
+
'aria-label': 'Alpha',
|
|
255
260
|
value: input[3] ?? '',
|
|
256
261
|
onChange: (event) => {
|
|
257
262
|
setInput([input[0], input[1], input[2], event.target.value]);
|
|
@@ -275,12 +280,13 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
275
280
|
const rgbInputs = React.createElement(
|
|
276
281
|
React.Fragment,
|
|
277
282
|
null,
|
|
278
|
-
React.createElement(
|
|
283
|
+
React.createElement(Input_js_1.Input, {
|
|
279
284
|
size: 'small',
|
|
280
285
|
type: 'number',
|
|
281
286
|
min: '0',
|
|
282
287
|
max: '255',
|
|
283
288
|
placeholder: 'R',
|
|
289
|
+
'aria-label': 'Red',
|
|
284
290
|
value: input[0] ?? '',
|
|
285
291
|
onChange: (event) => {
|
|
286
292
|
setInput([event.target.value, input[1], input[2], input[3]]);
|
|
@@ -300,12 +306,13 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
300
306
|
status:
|
|
301
307
|
Number(input[0]) < 0 || Number(input[0]) > 255 ? 'negative' : undefined,
|
|
302
308
|
}),
|
|
303
|
-
React.createElement(
|
|
309
|
+
React.createElement(Input_js_1.Input, {
|
|
304
310
|
size: 'small',
|
|
305
311
|
type: 'number',
|
|
306
312
|
min: '0',
|
|
307
313
|
max: '255',
|
|
308
314
|
placeholder: 'G',
|
|
315
|
+
'aria-label': 'Green',
|
|
309
316
|
value: input[1] ?? '',
|
|
310
317
|
onChange: (event) => {
|
|
311
318
|
setInput([input[0], event.target.value, input[2], input[3]]);
|
|
@@ -325,12 +332,13 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
325
332
|
status:
|
|
326
333
|
Number(input[1]) < 0 || Number(input[1]) > 255 ? 'negative' : undefined,
|
|
327
334
|
}),
|
|
328
|
-
React.createElement(
|
|
335
|
+
React.createElement(Input_js_1.Input, {
|
|
329
336
|
size: 'small',
|
|
330
337
|
type: 'number',
|
|
331
338
|
min: '0',
|
|
332
339
|
max: '255',
|
|
333
340
|
placeholder: 'B',
|
|
341
|
+
'aria-label': 'Blue',
|
|
334
342
|
value: input[2] ?? '',
|
|
335
343
|
onChange: (event) => {
|
|
336
344
|
setInput([input[0], input[1], event.target.value, input[3]]);
|
|
@@ -351,13 +359,14 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
351
359
|
Number(input[2]) < 0 || Number(input[2]) > 255 ? 'negative' : undefined,
|
|
352
360
|
}),
|
|
353
361
|
showAlpha &&
|
|
354
|
-
React.createElement(
|
|
362
|
+
React.createElement(Input_js_1.Input, {
|
|
355
363
|
size: 'small',
|
|
356
364
|
type: 'number',
|
|
357
365
|
min: '0',
|
|
358
366
|
max: '1',
|
|
359
367
|
step: '.01',
|
|
360
368
|
placeholder: 'A',
|
|
369
|
+
'aria-label': 'Alpha',
|
|
361
370
|
value: input[3] ?? '',
|
|
362
371
|
onChange: (event) => {
|
|
363
372
|
setInput([input[0], input[1], input[2], event.target.value]);
|
|
@@ -378,8 +387,9 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
378
387
|
Number(input[3]) < 0 || Number(input[3]) > 1 ? 'negative' : undefined,
|
|
379
388
|
}),
|
|
380
389
|
);
|
|
390
|
+
const labelId = (0, index_js_1.useId)();
|
|
381
391
|
return React.createElement(
|
|
382
|
-
|
|
392
|
+
index_js_1.Box,
|
|
383
393
|
{
|
|
384
394
|
className: (0, classnames_1.default)(
|
|
385
395
|
'iui-color-input-wrapper',
|
|
@@ -389,24 +399,34 @@ exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
389
399
|
...rest,
|
|
390
400
|
},
|
|
391
401
|
React.createElement(
|
|
392
|
-
|
|
393
|
-
{ className: 'iui-color-picker-section-label' },
|
|
394
|
-
showAlpha && currentFormat
|
|
402
|
+
index_js_1.Box,
|
|
403
|
+
{ className: 'iui-color-picker-section-label', id: labelId },
|
|
404
|
+
showAlpha && currentFormat !== 'hex'
|
|
395
405
|
? currentFormat.toUpperCase() + 'A'
|
|
396
406
|
: currentFormat.toUpperCase(),
|
|
397
407
|
),
|
|
398
408
|
React.createElement(
|
|
399
|
-
|
|
409
|
+
index_js_1.Box,
|
|
400
410
|
{ className: 'iui-color-input' },
|
|
401
411
|
allowedColorFormats.length > 1 &&
|
|
402
412
|
React.createElement(
|
|
403
|
-
|
|
404
|
-
{
|
|
405
|
-
|
|
413
|
+
IconButton_js_1.IconButton,
|
|
414
|
+
{
|
|
415
|
+
styleType: 'borderless',
|
|
416
|
+
onClick: swapColorFormat,
|
|
417
|
+
size: 'small',
|
|
418
|
+
label: 'Switch format',
|
|
419
|
+
},
|
|
420
|
+
React.createElement(index_js_1.SvgSwap, null),
|
|
406
421
|
),
|
|
407
422
|
React.createElement(
|
|
408
|
-
|
|
409
|
-
{
|
|
423
|
+
index_js_1.Box,
|
|
424
|
+
{
|
|
425
|
+
ref: inputsContainerRef,
|
|
426
|
+
className: 'iui-color-input-fields',
|
|
427
|
+
role: currentFormat !== 'hex' ? 'group' : undefined,
|
|
428
|
+
'aria-labelledby': currentFormat !== 'hex' ? labelId : undefined,
|
|
429
|
+
},
|
|
410
430
|
currentFormat === 'hex' && hexInputField,
|
|
411
431
|
currentFormat === 'rgb' && rgbInputs,
|
|
412
432
|
currentFormat === 'hsl' && hslInputs,
|
|
@@ -27,79 +27,6 @@ exports.ColorPalette = React.forwardRef((props, ref) => {
|
|
|
27
27
|
const { colors, label, className, children, ...rest } = props;
|
|
28
28
|
const { activeColor, setActiveColor, onChangeComplete } = (0,
|
|
29
29
|
ColorPickerContext_js_1.useColorPickerContext)();
|
|
30
|
-
const [focusedIndex, setFocusedIndex] = React.useState();
|
|
31
|
-
// callback ref to set tabindex=0 on first child if none of the swatches are tabbable
|
|
32
|
-
const setDefaultTabIndex = (el) => {
|
|
33
|
-
if (el && !el.querySelector('[tabindex="0"]')) {
|
|
34
|
-
el.firstElementChild?.setAttribute('tabindex', '0');
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
const paletteRef = React.useRef(null);
|
|
38
|
-
const paletteRefs = (0, index_js_1.useMergedRefs)(
|
|
39
|
-
paletteRef,
|
|
40
|
-
setDefaultTabIndex,
|
|
41
|
-
);
|
|
42
|
-
// Color palette arrow key navigation
|
|
43
|
-
const handleKeyDown = (event) => {
|
|
44
|
-
if (event.altKey) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const swatches = (0, index_js_1.getFocusableElements)(paletteRef.current);
|
|
48
|
-
if (!swatches.length) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
const currentIndex = swatches.findIndex(
|
|
52
|
-
(swatch) => swatch === paletteRef.current?.ownerDocument.activeElement,
|
|
53
|
-
);
|
|
54
|
-
if (currentIndex < 0) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
let newIndex = -1;
|
|
58
|
-
switch (event.key) {
|
|
59
|
-
case 'ArrowDown': {
|
|
60
|
-
// Look for next ColorSwatch with same offsetLeft value
|
|
61
|
-
newIndex = swatches.findIndex(
|
|
62
|
-
(swatch, index) =>
|
|
63
|
-
index > currentIndex &&
|
|
64
|
-
swatch.offsetLeft === swatches[currentIndex].offsetLeft,
|
|
65
|
-
);
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
case 'ArrowUp': {
|
|
69
|
-
// Look backwards for next ColorSwatch with same offsetLeft value
|
|
70
|
-
for (let i = currentIndex - 1; i >= 0; i--) {
|
|
71
|
-
if (swatches[i].offsetLeft === swatches[currentIndex].offsetLeft) {
|
|
72
|
-
newIndex = i;
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
case 'ArrowLeft':
|
|
79
|
-
newIndex = Math.max(currentIndex - 1, 0);
|
|
80
|
-
break;
|
|
81
|
-
case 'ArrowRight':
|
|
82
|
-
newIndex = Math.min(currentIndex + 1, swatches.length - 1);
|
|
83
|
-
break;
|
|
84
|
-
case 'Enter':
|
|
85
|
-
case ' ':
|
|
86
|
-
case 'Spacebar':
|
|
87
|
-
swatches[currentIndex].click();
|
|
88
|
-
event.preventDefault();
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
if (newIndex >= 0 && newIndex < swatches.length) {
|
|
92
|
-
setFocusedIndex(newIndex);
|
|
93
|
-
event.preventDefault();
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
// call focus() when focusedIndex changes
|
|
97
|
-
React.useEffect(() => {
|
|
98
|
-
if (focusedIndex != null) {
|
|
99
|
-
const swatches = (0, index_js_1.getFocusableElements)(paletteRef.current);
|
|
100
|
-
swatches[focusedIndex]?.focus();
|
|
101
|
-
}
|
|
102
|
-
}, [focusedIndex]);
|
|
103
30
|
return React.createElement(
|
|
104
31
|
index_js_1.Box,
|
|
105
32
|
{
|
|
@@ -118,11 +45,7 @@ exports.ColorPalette = React.forwardRef((props, ref) => {
|
|
|
118
45
|
),
|
|
119
46
|
React.createElement(
|
|
120
47
|
index_js_1.Box,
|
|
121
|
-
{
|
|
122
|
-
className: 'iui-color-palette',
|
|
123
|
-
onKeyDown: handleKeyDown,
|
|
124
|
-
ref: paletteRefs,
|
|
125
|
-
},
|
|
48
|
+
{ className: 'iui-color-palette' },
|
|
126
49
|
children,
|
|
127
50
|
colors &&
|
|
128
51
|
colors.map((_color, index) => {
|
|
@@ -130,8 +53,7 @@ exports.ColorPalette = React.forwardRef((props, ref) => {
|
|
|
130
53
|
return React.createElement(ColorSwatch_js_1.ColorSwatch, {
|
|
131
54
|
key: index,
|
|
132
55
|
color: color,
|
|
133
|
-
onClick: (
|
|
134
|
-
event.preventDefault();
|
|
56
|
+
onClick: () => {
|
|
135
57
|
onChangeComplete?.(color);
|
|
136
58
|
setActiveColor(color);
|
|
137
59
|
},
|
|
@@ -30,6 +30,15 @@ type ColorPickerProps = {
|
|
|
30
30
|
* @default false
|
|
31
31
|
*/
|
|
32
32
|
showAlpha?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether there is a background, border, shadow, etc.
|
|
35
|
+
*
|
|
36
|
+
* Should be set to true if used in a popover that doesn't have its own background,
|
|
37
|
+
* or set to false if the popover has its own background or embedding within a page.
|
|
38
|
+
*
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
applyBackground?: boolean;
|
|
33
42
|
};
|
|
34
43
|
/**
|
|
35
44
|
* ColorPicker to display color builder options, color inputs, and a palette of ColorSwatches.
|
|
@@ -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
|
-
import type {
|
|
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;
|
|
@@ -48,7 +49,11 @@ export type ComboBoxProps<T> = {
|
|
|
48
49
|
/**
|
|
49
50
|
* Props to customize dropdown menu behavior.
|
|
50
51
|
*/
|
|
51
|
-
dropdownMenuProps?:
|
|
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`.
|