@itwin/itwinui-react 2.10.1 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +1 -1
- package/cjs/core/Alert/Alert.d.ts +2 -2
- package/cjs/core/Alert/Alert.js +34 -11
- package/cjs/core/Alert/index.d.ts +2 -2
- package/cjs/core/Alert/index.js +2 -2
- package/cjs/core/Avatar/Avatar.d.ts +1 -1
- package/cjs/core/Avatar/Avatar.js +30 -7
- package/cjs/core/Avatar/index.d.ts +2 -2
- package/cjs/core/Avatar/index.js +3 -3
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/cjs/core/AvatarGroup/AvatarGroup.js +34 -11
- package/cjs/core/AvatarGroup/index.d.ts +2 -2
- package/cjs/core/AvatarGroup/index.js +3 -3
- package/cjs/core/Backdrop/Backdrop.d.ts +1 -1
- package/cjs/core/Backdrop/Backdrop.js +28 -5
- package/cjs/core/Backdrop/index.d.ts +2 -2
- package/cjs/core/Backdrop/index.js +2 -2
- package/cjs/core/Badge/Badge.d.ts +3 -2
- package/cjs/core/Badge/Badge.js +28 -5
- package/cjs/core/Badge/index.d.ts +2 -2
- package/cjs/core/Badge/index.js +2 -2
- package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +43 -20
- package/cjs/core/Breadcrumbs/index.d.ts +2 -2
- package/cjs/core/Breadcrumbs/index.js +2 -2
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/cjs/core/ButtonGroup/ButtonGroup.js +37 -11
- package/cjs/core/ButtonGroup/index.d.ts +2 -2
- package/cjs/core/ButtonGroup/index.js +2 -2
- package/cjs/core/Buttons/Button/Button.d.ts +2 -2
- package/cjs/core/Buttons/Button/Button.js +31 -8
- package/cjs/core/Buttons/Button/index.d.ts +2 -2
- package/cjs/core/Buttons/Button/index.js +2 -2
- package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +3 -3
- package/cjs/core/Buttons/DropdownButton/DropdownButton.js +36 -13
- package/cjs/core/Buttons/DropdownButton/index.d.ts +2 -2
- package/cjs/core/Buttons/DropdownButton/index.js +2 -2
- package/cjs/core/Buttons/IconButton/IconButton.d.ts +3 -3
- package/cjs/core/Buttons/IconButton/IconButton.js +32 -9
- package/cjs/core/Buttons/IconButton/index.d.ts +2 -2
- package/cjs/core/Buttons/IconButton/index.js +2 -2
- package/cjs/core/Buttons/IdeasButton/IdeasButton.d.ts +1 -1
- package/cjs/core/Buttons/IdeasButton/IdeasButton.js +28 -8
- package/cjs/core/Buttons/IdeasButton/index.d.ts +2 -2
- package/cjs/core/Buttons/IdeasButton/index.js +2 -2
- package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +4 -4
- package/cjs/core/Buttons/SplitButton/SplitButton.js +38 -15
- package/cjs/core/Buttons/SplitButton/index.d.ts +2 -2
- package/cjs/core/Buttons/SplitButton/index.js +2 -2
- package/cjs/core/Buttons/index.d.ts +10 -10
- package/cjs/core/Buttons/index.js +10 -10
- package/cjs/core/Carousel/Carousel.d.ts +3 -3
- package/cjs/core/Carousel/Carousel.js +52 -29
- package/cjs/core/Carousel/CarouselContext.d.ts +1 -1
- package/cjs/core/Carousel/CarouselContext.js +24 -4
- package/cjs/core/Carousel/CarouselDot.d.ts +1 -1
- package/cjs/core/Carousel/CarouselDot.js +26 -3
- package/cjs/core/Carousel/CarouselDotsList.d.ts +1 -1
- package/cjs/core/Carousel/CarouselDotsList.js +47 -24
- package/cjs/core/Carousel/CarouselNavigation.d.ts +3 -3
- package/cjs/core/Carousel/CarouselNavigation.js +43 -20
- package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlide.js +32 -9
- package/cjs/core/Carousel/CarouselSlider.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlider.js +40 -17
- package/cjs/core/Carousel/index.d.ts +2 -2
- package/cjs/core/Carousel/index.js +2 -2
- package/cjs/core/Checkbox/Checkbox.d.ts +1 -1
- package/cjs/core/Checkbox/Checkbox.js +37 -14
- package/cjs/core/Checkbox/index.d.ts +2 -2
- package/cjs/core/Checkbox/index.js +2 -2
- package/cjs/core/ColorPicker/ColorBuilder.d.ts +2 -2
- package/cjs/core/ColorPicker/ColorBuilder.js +58 -35
- package/cjs/core/ColorPicker/ColorInputPanel.d.ts +2 -2
- package/cjs/core/ColorPicker/ColorInputPanel.js +72 -49
- package/cjs/core/ColorPicker/ColorPalette.d.ts +3 -2
- package/cjs/core/ColorPicker/ColorPalette.js +42 -19
- package/cjs/core/ColorPicker/ColorPicker.d.ts +3 -2
- package/cjs/core/ColorPicker/ColorPicker.js +42 -19
- package/cjs/core/ColorPicker/ColorPickerContext.d.ts +2 -2
- package/cjs/core/ColorPicker/ColorPickerContext.js +25 -5
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +3 -2
- package/cjs/core/ColorPicker/ColorSwatch.js +31 -8
- package/cjs/core/ColorPicker/index.d.ts +10 -10
- package/cjs/core/ColorPicker/index.js +10 -10
- package/cjs/core/ComboBox/ComboBox.d.ts +4 -4
- package/cjs/core/ComboBox/ComboBox.js +82 -52
- package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +2 -2
- package/cjs/core/ComboBox/ComboBoxDropdown.js +31 -11
- package/cjs/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +32 -9
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.js +42 -22
- package/cjs/core/ComboBox/ComboBoxInputContainer.d.ts +2 -2
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +30 -10
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +2 -2
- package/cjs/core/ComboBox/ComboBoxMenu.js +44 -21
- package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
- package/cjs/core/ComboBox/ComboBoxMenuItem.js +35 -12
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.js +27 -4
- package/cjs/core/ComboBox/helpers.d.ts +2 -2
- package/cjs/core/ComboBox/helpers.js +26 -6
- package/cjs/core/ComboBox/index.d.ts +2 -2
- package/cjs/core/ComboBox/index.js +2 -2
- package/cjs/core/DatePicker/DatePicker.d.ts +1 -1
- package/cjs/core/DatePicker/DatePicker.js +61 -38
- package/cjs/core/DatePicker/index.d.ts +2 -2
- package/cjs/core/DatePicker/index.js +3 -3
- package/cjs/core/Dialog/Dialog.d.ts +8 -8
- package/cjs/core/Dialog/Dialog.js +41 -18
- package/cjs/core/Dialog/DialogBackdrop.d.ts +3 -3
- package/cjs/core/Dialog/DialogBackdrop.js +32 -9
- package/cjs/core/Dialog/DialogButtonBar.d.ts +1 -1
- package/cjs/core/Dialog/DialogButtonBar.js +28 -5
- package/cjs/core/Dialog/DialogContent.d.ts +1 -1
- package/cjs/core/Dialog/DialogContent.js +28 -5
- package/cjs/core/Dialog/DialogContext.d.ts +1 -1
- package/cjs/core/Dialog/DialogContext.js +25 -5
- package/cjs/core/Dialog/DialogDragContext.d.ts +1 -1
- package/cjs/core/Dialog/DialogDragContext.js +25 -5
- package/cjs/core/Dialog/DialogMain.d.ts +2 -2
- package/cjs/core/Dialog/DialogMain.js +49 -26
- package/cjs/core/Dialog/DialogTitleBar.d.ts +3 -3
- package/cjs/core/Dialog/DialogTitleBar.js +40 -17
- package/cjs/core/Dialog/DialogTitleBarTitle.d.ts +1 -1
- package/cjs/core/Dialog/DialogTitleBarTitle.js +28 -5
- package/cjs/core/Dialog/index.d.ts +6 -6
- package/cjs/core/Dialog/index.js +2 -2
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/cjs/core/DropdownMenu/DropdownMenu.js +35 -15
- package/cjs/core/DropdownMenu/index.d.ts +2 -2
- package/cjs/core/DropdownMenu/index.js +2 -2
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +2 -2
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +39 -16
- package/cjs/core/ExpandableBlock/index.d.ts +2 -2
- package/cjs/core/ExpandableBlock/index.js +2 -2
- package/cjs/core/Fieldset/Fieldset.d.ts +1 -1
- package/cjs/core/Fieldset/Fieldset.js +30 -7
- package/cjs/core/Fieldset/index.d.ts +2 -2
- package/cjs/core/Fieldset/index.js +2 -2
- package/cjs/core/FileUpload/FileEmptyCard.d.ts +1 -1
- package/cjs/core/FileUpload/FileEmptyCard.js +36 -13
- package/cjs/core/FileUpload/FileUpload.d.ts +3 -3
- package/cjs/core/FileUpload/FileUpload.js +33 -10
- package/cjs/core/FileUpload/FileUploadCard.d.ts +1 -1
- package/cjs/core/FileUpload/FileUploadCard.js +63 -41
- package/cjs/core/FileUpload/FileUploadTemplate.d.ts +1 -1
- package/cjs/core/FileUpload/FileUploadTemplate.js +32 -9
- package/cjs/core/FileUpload/index.d.ts +8 -8
- package/cjs/core/FileUpload/index.js +8 -8
- package/cjs/core/Footer/Footer.d.ts +3 -3
- package/cjs/core/Footer/Footer.js +36 -13
- package/cjs/core/Footer/FooterItem.d.ts +1 -1
- package/cjs/core/Footer/FooterItem.js +27 -4
- package/cjs/core/Footer/FooterList.d.ts +1 -1
- package/cjs/core/Footer/FooterList.js +27 -4
- package/cjs/core/Footer/FooterSeparator.d.ts +1 -1
- package/cjs/core/Footer/FooterSeparator.js +27 -4
- package/cjs/core/Footer/index.d.ts +2 -2
- package/cjs/core/Footer/index.js +3 -3
- package/cjs/core/Header/Header.d.ts +2 -2
- package/cjs/core/Header/Header.js +36 -13
- package/cjs/core/Header/HeaderBasicButton.d.ts +2 -2
- package/cjs/core/Header/HeaderBasicButton.js +30 -7
- package/cjs/core/Header/HeaderBreadcrumbs.d.ts +1 -1
- package/cjs/core/Header/HeaderBreadcrumbs.js +29 -9
- package/cjs/core/Header/HeaderButton.d.ts +4 -4
- package/cjs/core/Header/HeaderButton.js +37 -14
- package/cjs/core/Header/HeaderDropdownButton.d.ts +2 -2
- package/cjs/core/Header/HeaderDropdownButton.js +36 -13
- package/cjs/core/Header/HeaderLogo.d.ts +1 -1
- package/cjs/core/Header/HeaderLogo.js +31 -8
- package/cjs/core/Header/HeaderSplitButton.d.ts +2 -2
- package/cjs/core/Header/HeaderSplitButton.js +37 -14
- package/cjs/core/Header/index.d.ts +8 -8
- package/cjs/core/Header/index.js +8 -8
- package/cjs/core/InformationPanel/InformationPanel.d.ts +2 -2
- package/cjs/core/InformationPanel/InformationPanel.js +33 -10
- package/cjs/core/InformationPanel/InformationPanelBody.d.ts +2 -2
- package/cjs/core/InformationPanel/InformationPanelBody.js +27 -4
- package/cjs/core/InformationPanel/InformationPanelContent.d.ts +2 -2
- package/cjs/core/InformationPanel/InformationPanelContent.js +27 -4
- package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +2 -2
- package/cjs/core/InformationPanel/InformationPanelHeader.js +32 -9
- package/cjs/core/InformationPanel/InformationPanelWrapper.d.ts +2 -2
- package/cjs/core/InformationPanel/InformationPanelWrapper.js +27 -4
- package/cjs/core/InformationPanel/index.d.ts +10 -10
- package/cjs/core/InformationPanel/index.js +10 -10
- package/cjs/core/Input/Input.d.ts +1 -1
- package/cjs/core/Input/Input.js +31 -8
- package/cjs/core/Input/index.d.ts +2 -2
- package/cjs/core/Input/index.js +2 -2
- package/cjs/core/InputGroup/InputGroup.d.ts +2 -2
- package/cjs/core/InputGroup/InputGroup.js +29 -9
- package/cjs/core/InputGroup/index.d.ts +2 -2
- package/cjs/core/InputGroup/index.js +2 -2
- package/cjs/core/Label/Label.d.ts +1 -1
- package/cjs/core/Label/Label.js +27 -4
- package/cjs/core/Label/index.d.ts +2 -2
- package/cjs/core/Label/index.js +2 -2
- package/cjs/core/LabeledInput/LabeledInput.d.ts +2 -2
- package/cjs/core/LabeledInput/LabeledInput.js +31 -11
- package/cjs/core/LabeledInput/index.d.ts +2 -2
- package/cjs/core/LabeledInput/index.js +2 -2
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +3 -3
- package/cjs/core/LabeledSelect/LabeledSelect.js +31 -11
- package/cjs/core/LabeledSelect/index.d.ts +2 -2
- package/cjs/core/LabeledSelect/index.js +2 -2
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +3 -3
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +31 -11
- package/cjs/core/LabeledTextarea/index.d.ts +2 -2
- package/cjs/core/LabeledTextarea/index.js +2 -2
- package/cjs/core/List/List.d.ts +1 -1
- package/cjs/core/List/List.js +28 -5
- package/cjs/core/List/ListItem.d.ts +1 -1
- package/cjs/core/List/ListItem.js +34 -11
- package/cjs/core/List/index.d.ts +4 -4
- package/cjs/core/List/index.js +4 -4
- package/cjs/core/Menu/Menu.d.ts +2 -2
- package/cjs/core/Menu/Menu.js +34 -11
- package/cjs/core/Menu/MenuDivider.d.ts +1 -1
- package/cjs/core/Menu/MenuDivider.js +27 -4
- package/cjs/core/Menu/MenuExtraContent.d.ts +2 -2
- package/cjs/core/Menu/MenuExtraContent.js +27 -4
- package/cjs/core/Menu/MenuItem.d.ts +6 -3
- package/cjs/core/Menu/MenuItem.js +44 -21
- package/cjs/core/Menu/MenuItemSkeleton.d.ts +1 -1
- package/cjs/core/Menu/MenuItemSkeleton.js +32 -9
- package/cjs/core/Menu/index.d.ts +10 -10
- package/cjs/core/Menu/index.js +10 -10
- package/cjs/core/Modal/Modal.d.ts +3 -3
- package/cjs/core/Modal/Modal.js +36 -13
- package/cjs/core/Modal/ModalButtonBar.d.ts +2 -2
- package/cjs/core/Modal/ModalButtonBar.js +25 -5
- package/cjs/core/Modal/ModalContent.d.ts +2 -2
- package/cjs/core/Modal/ModalContent.js +25 -5
- package/cjs/core/Modal/index.d.ts +6 -6
- package/cjs/core/Modal/index.js +6 -6
- package/cjs/core/NonIdealState/ErrorPage.d.ts +2 -2
- package/cjs/core/NonIdealState/ErrorPage.js +38 -18
- package/cjs/core/NonIdealState/NonIdealState.d.ts +1 -1
- package/cjs/core/NonIdealState/NonIdealState.js +31 -8
- package/cjs/core/NonIdealState/index.d.ts +4 -4
- package/cjs/core/NonIdealState/index.js +4 -4
- package/cjs/core/NotificationMarker/NotificationMarker.d.ts +1 -1
- package/cjs/core/NotificationMarker/NotificationMarker.js +28 -5
- package/cjs/core/NotificationMarker/index.d.ts +2 -2
- package/cjs/core/NotificationMarker/index.js +2 -2
- package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +2 -2
- package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +30 -7
- package/cjs/core/ProgressIndicators/ProgressLinear/index.d.ts +2 -2
- package/cjs/core/ProgressIndicators/ProgressLinear/index.js +2 -2
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +2 -2
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +35 -12
- package/cjs/core/ProgressIndicators/ProgressRadial/index.d.ts +2 -2
- package/cjs/core/ProgressIndicators/ProgressRadial/index.js +2 -2
- package/cjs/core/ProgressIndicators/index.d.ts +4 -4
- package/cjs/core/ProgressIndicators/index.js +4 -4
- package/cjs/core/Radio/Radio.d.ts +1 -1
- package/cjs/core/Radio/Radio.js +33 -10
- package/cjs/core/Radio/index.d.ts +2 -2
- package/cjs/core/Radio/index.js +2 -2
- package/cjs/core/RadioTiles/RadioTile.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTile.js +36 -13
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +28 -8
- package/cjs/core/RadioTiles/index.d.ts +4 -4
- package/cjs/core/RadioTiles/index.js +4 -4
- package/cjs/core/SearchBox/SearchBox.d.ts +104 -0
- package/cjs/core/SearchBox/SearchBox.js +200 -0
- package/cjs/core/SearchBox/index.d.ts +4 -0
- package/cjs/core/SearchBox/index.js +10 -0
- package/cjs/core/Select/Select.d.ts +2 -2
- package/cjs/core/Select/Select.js +73 -36
- package/cjs/core/Select/SelectTag.d.ts +1 -1
- package/cjs/core/Select/SelectTag.js +28 -5
- package/cjs/core/Select/SelectTagContainer.d.ts +1 -1
- package/cjs/core/Select/SelectTagContainer.js +33 -10
- package/cjs/core/Select/index.d.ts +2 -2
- package/cjs/core/Select/index.js +2 -2
- package/cjs/core/SideNavigation/SideNavigation.d.ts +2 -2
- package/cjs/core/SideNavigation/SideNavigation.js +38 -15
- package/cjs/core/SideNavigation/SidenavButton.d.ts +2 -2
- package/cjs/core/SideNavigation/SidenavButton.js +29 -6
- package/cjs/core/SideNavigation/SidenavSubmenu.d.ts +2 -2
- package/cjs/core/SideNavigation/SidenavSubmenu.js +29 -6
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +2 -2
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +29 -6
- package/cjs/core/SideNavigation/index.d.ts +8 -8
- package/cjs/core/SideNavigation/index.js +8 -8
- package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
- package/cjs/core/SkipToContentLink/SkipToContentLink.js +28 -5
- package/cjs/core/SkipToContentLink/index.d.ts +2 -2
- package/cjs/core/SkipToContentLink/index.js +2 -2
- package/cjs/core/Slider/Slider.d.ts +3 -3
- package/cjs/core/Slider/Slider.js +64 -41
- package/cjs/core/Slider/Thumb.d.ts +3 -3
- package/cjs/core/Slider/Thumb.js +32 -9
- package/cjs/core/Slider/Track.d.ts +1 -1
- package/cjs/core/Slider/Track.js +27 -7
- package/cjs/core/Slider/index.d.ts +2 -2
- package/cjs/core/Slider/index.js +2 -2
- package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/cjs/core/StatusMessage/StatusMessage.js +31 -8
- package/cjs/core/StatusMessage/index.d.ts +2 -2
- package/cjs/core/StatusMessage/index.js +2 -2
- package/cjs/core/Stepper/Stepper.d.ts +1 -1
- package/cjs/core/Stepper/Stepper.js +31 -11
- package/cjs/core/Stepper/StepperStep.d.ts +1 -1
- package/cjs/core/Stepper/StepperStep.js +30 -7
- package/cjs/core/Stepper/Wizard.d.ts +2 -2
- package/cjs/core/Stepper/Wizard.js +27 -7
- package/cjs/core/Stepper/WorkflowDiagram.d.ts +2 -2
- package/cjs/core/Stepper/WorkflowDiagram.js +29 -9
- package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +2 -2
- package/cjs/core/Stepper/WorkflowDiagramStep.js +28 -5
- package/cjs/core/Stepper/index.d.ts +6 -6
- package/cjs/core/Stepper/index.js +6 -6
- package/cjs/core/Surface/Surface.d.ts +2 -2
- package/cjs/core/Surface/Surface.js +41 -18
- package/cjs/core/Surface/index.d.ts +2 -2
- package/cjs/core/Surface/index.js +2 -2
- package/cjs/core/Table/SubRowExpander.d.ts +2 -2
- package/cjs/core/Table/SubRowExpander.js +27 -7
- package/cjs/core/Table/Table.d.ts +4 -4
- package/cjs/core/Table/Table.js +106 -83
- package/cjs/core/Table/TableCell.d.ts +2 -2
- package/cjs/core/Table/TableCell.js +38 -15
- package/cjs/core/Table/TablePaginator.d.ts +2 -2
- package/cjs/core/Table/TablePaginator.js +59 -36
- package/cjs/core/Table/TableRowMemoized.d.ts +2 -2
- package/cjs/core/Table/TableRowMemoized.js +36 -13
- package/cjs/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/filterHandler.d.ts +2 -2
- package/cjs/core/Table/actionHandlers/index.d.ts +4 -4
- package/cjs/core/Table/actionHandlers/index.js +11 -11
- package/cjs/core/Table/actionHandlers/resizeHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/selectHandler.d.ts +1 -1
- package/cjs/core/Table/cells/DefaultCell.d.ts +2 -2
- package/cjs/core/Table/cells/DefaultCell.js +27 -4
- package/cjs/core/Table/cells/EditableCell.d.ts +2 -2
- package/cjs/core/Table/cells/EditableCell.js +30 -10
- package/cjs/core/Table/cells/index.d.ts +4 -4
- package/cjs/core/Table/cells/index.js +4 -4
- package/cjs/core/Table/columns/actionColumn.d.ts +2 -2
- package/cjs/core/Table/columns/actionColumn.js +42 -19
- package/cjs/core/Table/columns/expanderColumn.d.ts +2 -2
- package/cjs/core/Table/columns/expanderColumn.js +29 -9
- package/cjs/core/Table/columns/index.d.ts +3 -3
- package/cjs/core/Table/columns/index.js +8 -8
- package/cjs/core/Table/columns/selectionColumn.d.ts +1 -1
- package/cjs/core/Table/columns/selectionColumn.js +28 -8
- package/cjs/core/Table/filters/BaseFilter.d.ts +2 -2
- package/cjs/core/Table/filters/BaseFilter.js +27 -4
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +39 -19
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +2 -2
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +37 -14
- package/cjs/core/Table/filters/FilterButtonBar.d.ts +2 -2
- package/cjs/core/Table/filters/FilterButtonBar.js +30 -7
- package/cjs/core/Table/filters/FilterToggle.d.ts +2 -2
- package/cjs/core/Table/filters/FilterToggle.js +34 -11
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +2 -2
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +34 -14
- package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +2 -2
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +32 -12
- 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/index.d.ts +8 -8
- package/cjs/core/Table/filters/index.js +8 -8
- package/cjs/core/Table/filters/tableFilters.d.ts +4 -4
- package/cjs/core/Table/filters/tableFilters.js +29 -9
- package/cjs/core/Table/filters/types.d.ts +1 -1
- package/cjs/core/Table/hooks/index.d.ts +8 -8
- package/cjs/core/Table/hooks/index.js +16 -16
- package/cjs/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/cjs/core/Table/hooks/useExpanderCell.d.ts +2 -2
- package/cjs/core/Table/hooks/useExpanderCell.js +27 -7
- package/cjs/core/Table/hooks/useResizeColumns.d.ts +2 -2
- package/cjs/core/Table/hooks/useResizeColumns.js +3 -0
- package/cjs/core/Table/hooks/useScrollToRow.d.ts +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.js +29 -9
- package/cjs/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useSelectionCell.js +3 -3
- 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/useSubRowFiltering.js +26 -6
- package/cjs/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowSelection.js +24 -4
- package/cjs/core/Table/index.d.ts +9 -9
- package/cjs/core/Table/index.js +15 -15
- package/cjs/core/Table/utils.d.ts +1 -1
- package/cjs/core/Tabs/Tab.d.ts +1 -1
- package/cjs/core/Tabs/Tab.js +31 -8
- package/cjs/core/Tabs/Tabs.d.ts +26 -2
- package/cjs/core/Tabs/Tabs.js +247 -48
- package/cjs/core/Tabs/index.d.ts +4 -4
- package/cjs/core/Tabs/index.js +6 -6
- package/cjs/core/Tag/Tag.d.ts +2 -2
- package/cjs/core/Tag/Tag.js +31 -8
- package/cjs/core/Tag/TagContainer.d.ts +2 -2
- package/cjs/core/Tag/TagContainer.js +27 -4
- package/cjs/core/Tag/index.d.ts +4 -4
- package/cjs/core/Tag/index.js +4 -4
- package/cjs/core/Textarea/Textarea.d.ts +1 -1
- package/cjs/core/Textarea/Textarea.js +31 -8
- package/cjs/core/Textarea/index.d.ts +2 -2
- package/cjs/core/Textarea/index.js +2 -2
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +2 -2
- package/cjs/core/ThemeProvider/ThemeProvider.js +44 -21
- package/cjs/core/ThemeProvider/index.d.ts +2 -2
- package/cjs/core/ThemeProvider/index.js +2 -2
- package/cjs/core/Tile/Tile.d.ts +2 -2
- package/cjs/core/Tile/Tile.js +62 -39
- package/cjs/core/Tile/index.d.ts +2 -2
- package/cjs/core/Tile/index.js +2 -2
- package/cjs/core/TimePicker/TimePicker.d.ts +2 -2
- package/cjs/core/TimePicker/TimePicker.js +45 -22
- package/cjs/core/TimePicker/index.d.ts +2 -2
- package/cjs/core/TimePicker/index.js +2 -2
- package/cjs/core/Toast/Toast.d.ts +2 -2
- package/cjs/core/Toast/Toast.js +48 -25
- package/cjs/core/Toast/ToastWrapper.d.ts +3 -3
- package/cjs/core/Toast/ToastWrapper.js +31 -8
- package/cjs/core/Toast/Toaster.d.ts +2 -2
- package/cjs/core/Toast/Toaster.js +6 -9
- package/cjs/core/Toast/index.d.ts +2 -2
- package/cjs/core/Toast/index.js +2 -2
- package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +34 -11
- package/cjs/core/ToggleSwitch/index.d.ts +2 -2
- package/cjs/core/ToggleSwitch/index.js +2 -2
- package/cjs/core/Tooltip/Tooltip.d.ts +2 -2
- package/cjs/core/Tooltip/Tooltip.js +27 -4
- package/cjs/core/Tooltip/index.d.ts +2 -2
- package/cjs/core/Tooltip/index.js +2 -2
- package/cjs/core/Tree/Tree.d.ts +1 -1
- package/cjs/core/Tree/Tree.js +46 -23
- package/cjs/core/Tree/TreeContext.d.ts +1 -1
- package/cjs/core/Tree/TreeContext.js +25 -5
- package/cjs/core/Tree/TreeNode.d.ts +2 -2
- package/cjs/core/Tree/TreeNode.js +45 -22
- package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/cjs/core/Tree/TreeNodeExpander.js +28 -5
- package/cjs/core/Tree/index.d.ts +6 -6
- package/cjs/core/Tree/index.js +6 -6
- package/cjs/core/Typography/Anchor/Anchor.d.ts +2 -2
- package/cjs/core/Typography/Anchor/Anchor.js +28 -5
- package/cjs/core/Typography/Anchor/index.d.ts +2 -2
- package/cjs/core/Typography/Anchor/index.js +2 -2
- package/cjs/core/Typography/Blockquote/Blockquote.d.ts +1 -1
- package/cjs/core/Typography/Blockquote/Blockquote.js +29 -6
- package/cjs/core/Typography/Blockquote/index.d.ts +2 -2
- package/cjs/core/Typography/Blockquote/index.js +2 -2
- package/cjs/core/Typography/Body/Body.d.ts +1 -1
- package/cjs/core/Typography/Body/Body.js +28 -5
- package/cjs/core/Typography/Body/index.d.ts +2 -2
- package/cjs/core/Typography/Body/index.js +2 -2
- package/cjs/core/Typography/Code/Code.d.ts +2 -2
- package/cjs/core/Typography/Code/Code.js +27 -4
- package/cjs/core/Typography/Code/index.d.ts +2 -2
- package/cjs/core/Typography/Code/index.js +2 -2
- package/cjs/core/Typography/Headline/Headline.d.ts +1 -1
- package/cjs/core/Typography/Headline/Headline.js +28 -5
- package/cjs/core/Typography/Headline/index.d.ts +2 -2
- package/cjs/core/Typography/Headline/index.js +2 -2
- package/cjs/core/Typography/Kbd/Kbd.d.ts +1 -1
- package/cjs/core/Typography/Kbd/Kbd.js +27 -4
- package/cjs/core/Typography/Kbd/index.d.ts +2 -2
- package/cjs/core/Typography/Kbd/index.js +3 -3
- package/cjs/core/Typography/Leading/Leading.d.ts +1 -1
- package/cjs/core/Typography/Leading/Leading.js +28 -5
- package/cjs/core/Typography/Leading/index.d.ts +2 -2
- package/cjs/core/Typography/Leading/index.js +2 -2
- package/cjs/core/Typography/Small/Small.d.ts +1 -1
- package/cjs/core/Typography/Small/Small.js +28 -5
- package/cjs/core/Typography/Small/index.d.ts +2 -2
- package/cjs/core/Typography/Small/index.js +2 -2
- package/cjs/core/Typography/Subheading/Subheading.d.ts +1 -1
- package/cjs/core/Typography/Subheading/Subheading.js +28 -5
- package/cjs/core/Typography/Subheading/index.d.ts +2 -2
- package/cjs/core/Typography/Subheading/index.js +2 -2
- package/cjs/core/Typography/Text/Text.d.ts +2 -2
- package/cjs/core/Typography/Text/Text.js +28 -5
- package/cjs/core/Typography/Text/index.d.ts +2 -2
- package/cjs/core/Typography/Text/index.js +2 -2
- package/cjs/core/Typography/Title/Title.d.ts +1 -1
- package/cjs/core/Typography/Title/Title.js +28 -5
- package/cjs/core/Typography/Title/index.d.ts +2 -2
- package/cjs/core/Typography/Title/index.js +2 -2
- package/cjs/core/Typography/index.d.ts +22 -22
- package/cjs/core/Typography/index.js +23 -23
- package/cjs/core/index.d.ts +112 -110
- package/cjs/core/index.js +185 -183
- package/cjs/core/utils/color/ColorValue.js +5 -5
- package/cjs/core/utils/color/index.d.ts +1 -1
- package/cjs/core/utils/color/index.js +1 -1
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +12 -0
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +52 -0
- package/cjs/core/utils/components/Divider.d.ts +1 -1
- package/cjs/core/utils/components/Divider.js +28 -5
- package/cjs/core/utils/components/Flex.d.ts +3 -3
- package/cjs/core/utils/components/Flex.js +30 -7
- package/cjs/core/utils/components/FocusTrap.js +32 -12
- package/cjs/core/utils/components/Icon.d.ts +27 -4
- package/cjs/core/utils/components/Icon.js +26 -3
- package/cjs/core/utils/components/InputContainer.d.ts +1 -1
- package/cjs/core/utils/components/InputContainer.js +29 -6
- package/cjs/core/utils/components/InputFlexContainer.d.ts +13 -0
- package/cjs/core/utils/components/InputFlexContainer.js +21 -0
- package/cjs/core/utils/components/LinkAction.d.ts +1 -1
- package/cjs/core/utils/components/LinkAction.js +28 -5
- package/cjs/core/utils/components/MiddleTextTruncation.d.ts +2 -2
- package/cjs/core/utils/components/MiddleTextTruncation.js +27 -7
- package/cjs/core/utils/components/Popover.d.ts +2 -2
- package/cjs/core/utils/components/Popover.js +39 -12
- package/cjs/core/utils/components/Resizer.d.ts +1 -1
- package/cjs/core/utils/components/Resizer.js +37 -17
- package/cjs/core/utils/components/VirtualScroll.d.ts +1 -1
- package/cjs/core/utils/components/VirtualScroll.js +28 -31
- package/cjs/core/utils/components/VisuallyHidden.d.ts +1 -1
- package/cjs/core/utils/components/VisuallyHidden.js +28 -5
- package/cjs/core/utils/components/WithCSSTransition.d.ts +1 -1
- package/cjs/core/utils/components/WithCSSTransition.js +26 -6
- package/cjs/core/utils/components/index.d.ts +14 -12
- package/cjs/core/utils/components/index.js +14 -12
- package/cjs/core/utils/functions/index.d.ts +7 -7
- package/cjs/core/utils/functions/index.js +7 -7
- package/cjs/core/utils/functions/supports.js +2 -2
- package/cjs/core/utils/hooks/index.d.ts +14 -14
- package/cjs/core/utils/hooks/index.js +14 -14
- package/cjs/core/utils/hooks/useContainerWidth.js +30 -10
- package/cjs/core/utils/hooks/useDragAndDrop.d.ts +1 -1
- package/cjs/core/utils/hooks/useDragAndDrop.js +44 -24
- package/cjs/core/utils/hooks/useEventListener.js +26 -6
- package/cjs/core/utils/hooks/useId.js +29 -6
- package/cjs/core/utils/hooks/useIntersection.js +27 -7
- package/cjs/core/utils/hooks/useIsClient.js +25 -5
- package/cjs/core/utils/hooks/useIsThemeAlreadySet.d.ts +1 -1
- package/cjs/core/utils/hooks/useIsThemeAlreadySet.js +30 -10
- package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
- package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.js +24 -4
- package/cjs/core/utils/hooks/useLatestRef.d.ts +1 -1
- package/cjs/core/utils/hooks/useLatestRef.js +25 -5
- package/cjs/core/utils/hooks/useMediaQuery.js +28 -8
- package/cjs/core/utils/hooks/useMergedRefs.d.ts +1 -1
- package/cjs/core/utils/hooks/useMergedRefs.js +24 -4
- package/cjs/core/utils/hooks/useOverflow.d.ts +1 -1
- package/cjs/core/utils/hooks/useOverflow.js +38 -18
- package/cjs/core/utils/hooks/useResizeObserver.js +27 -7
- package/cjs/core/utils/hooks/useSafeContext.d.ts +1 -1
- package/cjs/core/utils/hooks/useSafeContext.js +24 -4
- package/cjs/core/utils/hooks/useTheme.js +7 -7
- package/cjs/core/utils/icons/StatusIconMap.d.ts +1 -1
- package/cjs/core/utils/icons/StatusIconMap.js +8 -8
- package/cjs/core/utils/icons/SvgSearch.d.ts +2 -0
- package/cjs/core/utils/icons/SvgSearch.js +36 -0
- package/cjs/core/utils/icons/index.d.ts +31 -30
- package/cjs/core/utils/icons/index.js +31 -30
- package/cjs/core/utils/index.d.ts +7 -7
- package/cjs/core/utils/index.js +7 -7
- package/cjs/core/utils/props.d.ts +1 -1
- package/cjs/index.d.ts +2 -2
- package/cjs/index.js +2 -2
- package/cjs/types/react-table-config.d.ts +1 -1
- package/esm/core/Alert/Alert.d.ts +2 -2
- package/esm/core/Alert/Alert.js +2 -2
- package/esm/core/Alert/index.d.ts +2 -2
- package/esm/core/Alert/index.js +1 -1
- package/esm/core/Avatar/Avatar.d.ts +1 -1
- package/esm/core/Avatar/Avatar.js +2 -2
- package/esm/core/Avatar/index.d.ts +2 -2
- package/esm/core/Avatar/index.js +1 -1
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/esm/core/AvatarGroup/AvatarGroup.js +2 -2
- package/esm/core/AvatarGroup/index.d.ts +2 -2
- package/esm/core/AvatarGroup/index.js +1 -1
- package/esm/core/Backdrop/Backdrop.d.ts +1 -1
- package/esm/core/Backdrop/Backdrop.js +2 -2
- package/esm/core/Backdrop/index.d.ts +2 -2
- package/esm/core/Backdrop/index.js +1 -1
- package/esm/core/Badge/Badge.d.ts +3 -2
- package/esm/core/Badge/Badge.js +2 -2
- package/esm/core/Badge/index.d.ts +2 -2
- package/esm/core/Badge/index.js +1 -1
- package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/esm/core/Breadcrumbs/Breadcrumbs.js +2 -2
- package/esm/core/Breadcrumbs/index.d.ts +2 -2
- package/esm/core/Breadcrumbs/index.js +1 -1
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/esm/core/ButtonGroup/ButtonGroup.js +6 -3
- package/esm/core/ButtonGroup/index.d.ts +2 -2
- package/esm/core/ButtonGroup/index.js +1 -1
- package/esm/core/Buttons/Button/Button.d.ts +2 -2
- package/esm/core/Buttons/Button/Button.js +2 -2
- package/esm/core/Buttons/Button/index.d.ts +2 -2
- package/esm/core/Buttons/Button/index.js +1 -1
- package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +3 -3
- package/esm/core/Buttons/DropdownButton/DropdownButton.js +4 -4
- package/esm/core/Buttons/DropdownButton/index.d.ts +2 -2
- package/esm/core/Buttons/DropdownButton/index.js +1 -1
- package/esm/core/Buttons/IconButton/IconButton.d.ts +3 -3
- package/esm/core/Buttons/IconButton/IconButton.js +2 -2
- package/esm/core/Buttons/IconButton/index.d.ts +2 -2
- package/esm/core/Buttons/IconButton/index.js +1 -1
- package/esm/core/Buttons/IdeasButton/IdeasButton.d.ts +1 -1
- package/esm/core/Buttons/IdeasButton/IdeasButton.js +3 -3
- package/esm/core/Buttons/IdeasButton/index.d.ts +2 -2
- package/esm/core/Buttons/IdeasButton/index.js +1 -1
- package/esm/core/Buttons/SplitButton/SplitButton.d.ts +4 -4
- package/esm/core/Buttons/SplitButton/SplitButton.js +5 -5
- package/esm/core/Buttons/SplitButton/index.d.ts +2 -2
- package/esm/core/Buttons/SplitButton/index.js +1 -1
- package/esm/core/Buttons/index.d.ts +10 -10
- package/esm/core/Buttons/index.js +5 -5
- package/esm/core/Carousel/Carousel.d.ts +3 -3
- package/esm/core/Carousel/Carousel.js +8 -8
- package/esm/core/Carousel/CarouselContext.d.ts +1 -1
- package/esm/core/Carousel/CarouselContext.js +1 -1
- package/esm/core/Carousel/CarouselDot.d.ts +1 -1
- package/esm/core/Carousel/CarouselDot.js +1 -1
- package/esm/core/Carousel/CarouselDotsList.d.ts +1 -1
- package/esm/core/Carousel/CarouselDotsList.js +4 -4
- package/esm/core/Carousel/CarouselNavigation.d.ts +3 -3
- package/esm/core/Carousel/CarouselNavigation.js +5 -5
- package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlide.js +3 -3
- package/esm/core/Carousel/CarouselSlider.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlider.js +3 -3
- package/esm/core/Carousel/index.d.ts +2 -2
- package/esm/core/Carousel/index.js +1 -1
- package/esm/core/Checkbox/Checkbox.d.ts +1 -1
- package/esm/core/Checkbox/Checkbox.js +3 -3
- package/esm/core/Checkbox/index.d.ts +2 -2
- package/esm/core/Checkbox/index.js +1 -1
- package/esm/core/ColorPicker/ColorBuilder.d.ts +2 -2
- package/esm/core/ColorPicker/ColorBuilder.js +4 -4
- package/esm/core/ColorPicker/ColorInputPanel.d.ts +2 -2
- package/esm/core/ColorPicker/ColorInputPanel.js +5 -5
- package/esm/core/ColorPicker/ColorPalette.d.ts +3 -2
- package/esm/core/ColorPicker/ColorPalette.js +5 -5
- package/esm/core/ColorPicker/ColorPicker.d.ts +3 -2
- package/esm/core/ColorPicker/ColorPicker.js +3 -3
- package/esm/core/ColorPicker/ColorPickerContext.d.ts +2 -2
- package/esm/core/ColorPicker/ColorPickerContext.js +1 -1
- package/esm/core/ColorPicker/ColorSwatch.d.ts +3 -2
- package/esm/core/ColorPicker/ColorSwatch.js +3 -3
- package/esm/core/ColorPicker/index.d.ts +10 -10
- package/esm/core/ColorPicker/index.js +5 -5
- package/esm/core/ComboBox/ComboBox.d.ts +4 -4
- package/esm/core/ComboBox/ComboBox.js +20 -13
- package/esm/core/ComboBox/ComboBoxDropdown.d.ts +2 -2
- package/esm/core/ComboBox/ComboBoxDropdown.js +3 -3
- package/esm/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxEndIcon.js +3 -3
- package/esm/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInput.js +7 -7
- package/esm/core/ComboBox/ComboBoxInputContainer.d.ts +2 -2
- package/esm/core/ComboBox/ComboBoxInputContainer.js +4 -4
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +2 -2
- package/esm/core/ComboBox/ComboBoxMenu.js +5 -5
- package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
- package/esm/core/ComboBox/ComboBoxMenuItem.js +3 -3
- package/esm/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMultipleContainer.js +2 -2
- package/esm/core/ComboBox/helpers.d.ts +2 -2
- package/esm/core/ComboBox/helpers.js +1 -1
- package/esm/core/ComboBox/index.d.ts +2 -2
- package/esm/core/ComboBox/index.js +1 -1
- package/esm/core/DatePicker/DatePicker.d.ts +1 -1
- package/esm/core/DatePicker/DatePicker.js +4 -4
- package/esm/core/DatePicker/index.d.ts +2 -2
- package/esm/core/DatePicker/index.js +1 -1
- package/esm/core/Dialog/Dialog.d.ts +8 -8
- package/esm/core/Dialog/Dialog.js +8 -8
- package/esm/core/Dialog/DialogBackdrop.d.ts +3 -3
- package/esm/core/Dialog/DialogBackdrop.js +4 -4
- package/esm/core/Dialog/DialogButtonBar.d.ts +1 -1
- package/esm/core/Dialog/DialogButtonBar.js +2 -2
- package/esm/core/Dialog/DialogContent.d.ts +1 -1
- package/esm/core/Dialog/DialogContent.js +2 -2
- package/esm/core/Dialog/DialogContext.d.ts +1 -1
- package/esm/core/Dialog/DialogContext.js +1 -1
- package/esm/core/Dialog/DialogDragContext.d.ts +1 -1
- package/esm/core/Dialog/DialogDragContext.js +1 -1
- package/esm/core/Dialog/DialogMain.d.ts +2 -2
- package/esm/core/Dialog/DialogMain.js +5 -5
- package/esm/core/Dialog/DialogTitleBar.d.ts +3 -3
- package/esm/core/Dialog/DialogTitleBar.js +6 -6
- package/esm/core/Dialog/DialogTitleBarTitle.d.ts +1 -1
- package/esm/core/Dialog/DialogTitleBarTitle.js +2 -2
- package/esm/core/Dialog/index.d.ts +6 -6
- package/esm/core/Dialog/index.js +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/esm/core/DropdownMenu/DropdownMenu.js +3 -3
- package/esm/core/DropdownMenu/index.d.ts +2 -2
- package/esm/core/DropdownMenu/index.js +1 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +2 -2
- package/esm/core/ExpandableBlock/ExpandableBlock.js +2 -2
- package/esm/core/ExpandableBlock/index.d.ts +2 -2
- package/esm/core/ExpandableBlock/index.js +1 -1
- package/esm/core/Fieldset/Fieldset.d.ts +1 -1
- package/esm/core/Fieldset/Fieldset.js +2 -2
- package/esm/core/Fieldset/index.d.ts +2 -2
- package/esm/core/Fieldset/index.js +1 -1
- package/esm/core/FileUpload/FileEmptyCard.d.ts +1 -1
- package/esm/core/FileUpload/FileEmptyCard.js +3 -3
- package/esm/core/FileUpload/FileUpload.d.ts +3 -3
- package/esm/core/FileUpload/FileUpload.js +2 -2
- package/esm/core/FileUpload/FileUploadCard.d.ts +1 -1
- package/esm/core/FileUpload/FileUploadCard.js +3 -4
- package/esm/core/FileUpload/FileUploadTemplate.d.ts +1 -1
- package/esm/core/FileUpload/FileUploadTemplate.js +2 -2
- package/esm/core/FileUpload/index.d.ts +8 -8
- package/esm/core/FileUpload/index.js +4 -4
- package/esm/core/Footer/Footer.d.ts +3 -3
- package/esm/core/Footer/Footer.js +5 -5
- package/esm/core/Footer/FooterItem.d.ts +1 -1
- package/esm/core/Footer/FooterItem.js +2 -2
- package/esm/core/Footer/FooterList.d.ts +1 -1
- package/esm/core/Footer/FooterList.js +2 -2
- package/esm/core/Footer/FooterSeparator.d.ts +1 -1
- package/esm/core/Footer/FooterSeparator.js +2 -2
- package/esm/core/Footer/index.d.ts +2 -2
- package/esm/core/Footer/index.js +1 -1
- package/esm/core/Header/Header.d.ts +2 -2
- package/esm/core/Header/Header.js +4 -4
- package/esm/core/Header/HeaderBasicButton.d.ts +2 -2
- package/esm/core/Header/HeaderBasicButton.js +2 -2
- package/esm/core/Header/HeaderBreadcrumbs.d.ts +1 -1
- package/esm/core/Header/HeaderBreadcrumbs.js +2 -2
- package/esm/core/Header/HeaderButton.d.ts +4 -4
- package/esm/core/Header/HeaderButton.js +5 -5
- package/esm/core/Header/HeaderDropdownButton.d.ts +2 -2
- package/esm/core/Header/HeaderDropdownButton.js +4 -4
- package/esm/core/Header/HeaderLogo.d.ts +1 -1
- package/esm/core/Header/HeaderLogo.js +2 -2
- package/esm/core/Header/HeaderSplitButton.d.ts +2 -2
- package/esm/core/Header/HeaderSplitButton.js +4 -4
- package/esm/core/Header/index.d.ts +8 -8
- package/esm/core/Header/index.js +4 -4
- package/esm/core/InformationPanel/InformationPanel.d.ts +2 -2
- package/esm/core/InformationPanel/InformationPanel.js +2 -2
- package/esm/core/InformationPanel/InformationPanelBody.d.ts +2 -2
- package/esm/core/InformationPanel/InformationPanelBody.js +2 -2
- package/esm/core/InformationPanel/InformationPanelContent.d.ts +2 -2
- package/esm/core/InformationPanel/InformationPanelContent.js +2 -2
- package/esm/core/InformationPanel/InformationPanelHeader.d.ts +2 -2
- package/esm/core/InformationPanel/InformationPanelHeader.js +3 -3
- package/esm/core/InformationPanel/InformationPanelWrapper.d.ts +2 -2
- package/esm/core/InformationPanel/InformationPanelWrapper.js +2 -2
- package/esm/core/InformationPanel/index.d.ts +10 -10
- package/esm/core/InformationPanel/index.js +5 -5
- package/esm/core/Input/Input.d.ts +1 -1
- package/esm/core/Input/Input.js +2 -2
- package/esm/core/Input/index.d.ts +2 -2
- package/esm/core/Input/index.js +1 -1
- package/esm/core/InputGroup/InputGroup.d.ts +2 -2
- package/esm/core/InputGroup/InputGroup.js +2 -2
- package/esm/core/InputGroup/index.d.ts +2 -2
- package/esm/core/InputGroup/index.js +1 -1
- package/esm/core/Label/Label.d.ts +1 -1
- package/esm/core/Label/Label.js +2 -2
- package/esm/core/Label/index.d.ts +2 -2
- package/esm/core/Label/index.js +1 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +2 -2
- package/esm/core/LabeledInput/LabeledInput.js +3 -3
- package/esm/core/LabeledInput/index.d.ts +2 -2
- package/esm/core/LabeledInput/index.js +1 -1
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +3 -3
- package/esm/core/LabeledSelect/LabeledSelect.js +3 -3
- package/esm/core/LabeledSelect/index.d.ts +2 -2
- package/esm/core/LabeledSelect/index.js +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +3 -3
- package/esm/core/LabeledTextarea/LabeledTextarea.js +3 -3
- package/esm/core/LabeledTextarea/index.d.ts +2 -2
- package/esm/core/LabeledTextarea/index.js +1 -1
- package/esm/core/List/List.d.ts +1 -1
- package/esm/core/List/List.js +2 -2
- package/esm/core/List/ListItem.d.ts +1 -1
- package/esm/core/List/ListItem.js +2 -2
- package/esm/core/List/index.d.ts +4 -4
- package/esm/core/List/index.js +2 -2
- package/esm/core/Menu/Menu.d.ts +2 -2
- package/esm/core/Menu/Menu.js +2 -2
- package/esm/core/Menu/MenuDivider.d.ts +1 -1
- package/esm/core/Menu/MenuDivider.js +2 -2
- package/esm/core/Menu/MenuExtraContent.d.ts +2 -2
- package/esm/core/Menu/MenuExtraContent.js +2 -2
- package/esm/core/Menu/MenuItem.d.ts +6 -3
- package/esm/core/Menu/MenuItem.js +3 -3
- package/esm/core/Menu/MenuItemSkeleton.d.ts +1 -1
- package/esm/core/Menu/MenuItemSkeleton.js +2 -2
- package/esm/core/Menu/index.d.ts +10 -10
- package/esm/core/Menu/index.js +5 -5
- package/esm/core/Modal/Modal.d.ts +3 -3
- package/esm/core/Modal/Modal.js +3 -3
- package/esm/core/Modal/ModalButtonBar.d.ts +2 -2
- package/esm/core/Modal/ModalButtonBar.js +2 -2
- package/esm/core/Modal/ModalContent.d.ts +2 -2
- package/esm/core/Modal/ModalContent.js +2 -2
- package/esm/core/Modal/index.d.ts +6 -6
- package/esm/core/Modal/index.js +3 -3
- package/esm/core/NonIdealState/ErrorPage.d.ts +2 -2
- package/esm/core/NonIdealState/ErrorPage.js +3 -3
- package/esm/core/NonIdealState/NonIdealState.d.ts +1 -1
- package/esm/core/NonIdealState/NonIdealState.js +2 -2
- package/esm/core/NonIdealState/index.d.ts +4 -4
- package/esm/core/NonIdealState/index.js +2 -2
- package/esm/core/NotificationMarker/NotificationMarker.d.ts +1 -1
- package/esm/core/NotificationMarker/NotificationMarker.js +2 -2
- package/esm/core/NotificationMarker/index.d.ts +2 -2
- package/esm/core/NotificationMarker/index.js +1 -1
- package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +2 -2
- package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +2 -2
- package/esm/core/ProgressIndicators/ProgressLinear/index.d.ts +2 -2
- package/esm/core/ProgressIndicators/ProgressLinear/index.js +1 -1
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +2 -2
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +2 -2
- package/esm/core/ProgressIndicators/ProgressRadial/index.d.ts +2 -2
- package/esm/core/ProgressIndicators/ProgressRadial/index.js +1 -1
- package/esm/core/ProgressIndicators/index.d.ts +4 -4
- package/esm/core/ProgressIndicators/index.js +2 -2
- package/esm/core/Radio/Radio.d.ts +1 -1
- package/esm/core/Radio/Radio.js +2 -2
- package/esm/core/Radio/index.d.ts +2 -2
- package/esm/core/Radio/index.js +1 -1
- package/esm/core/RadioTiles/RadioTile.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTile.js +2 -2
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +3 -3
- package/esm/core/RadioTiles/index.d.ts +4 -4
- package/esm/core/RadioTiles/index.js +2 -2
- package/esm/core/SearchBox/SearchBox.d.ts +104 -0
- package/esm/core/SearchBox/SearchBox.js +171 -0
- package/esm/core/SearchBox/index.d.ts +4 -0
- package/esm/core/SearchBox/index.js +6 -0
- package/esm/core/Select/Select.d.ts +2 -2
- package/esm/core/Select/Select.js +20 -6
- package/esm/core/Select/SelectTag.d.ts +1 -1
- package/esm/core/Select/SelectTag.js +2 -2
- package/esm/core/Select/SelectTagContainer.d.ts +1 -1
- package/esm/core/Select/SelectTagContainer.js +3 -3
- package/esm/core/Select/index.d.ts +2 -2
- package/esm/core/Select/index.js +1 -1
- package/esm/core/SideNavigation/SideNavigation.d.ts +2 -2
- package/esm/core/SideNavigation/SideNavigation.js +4 -4
- package/esm/core/SideNavigation/SidenavButton.d.ts +2 -2
- package/esm/core/SideNavigation/SidenavButton.js +3 -3
- package/esm/core/SideNavigation/SidenavSubmenu.d.ts +2 -2
- package/esm/core/SideNavigation/SidenavSubmenu.js +2 -2
- package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +2 -2
- package/esm/core/SideNavigation/SidenavSubmenuHeader.js +2 -2
- package/esm/core/SideNavigation/index.d.ts +8 -8
- package/esm/core/SideNavigation/index.js +4 -4
- package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
- package/esm/core/SkipToContentLink/SkipToContentLink.js +2 -2
- package/esm/core/SkipToContentLink/index.d.ts +2 -2
- package/esm/core/SkipToContentLink/index.js +1 -1
- package/esm/core/Slider/Slider.d.ts +3 -3
- package/esm/core/Slider/Slider.js +4 -4
- package/esm/core/Slider/Thumb.d.ts +3 -3
- package/esm/core/Slider/Thumb.js +2 -2
- package/esm/core/Slider/Track.d.ts +1 -1
- package/esm/core/Slider/Track.js +1 -1
- package/esm/core/Slider/index.d.ts +2 -2
- package/esm/core/Slider/index.js +1 -1
- package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/esm/core/StatusMessage/StatusMessage.js +2 -2
- package/esm/core/StatusMessage/index.d.ts +2 -2
- package/esm/core/StatusMessage/index.js +1 -1
- package/esm/core/Stepper/Stepper.d.ts +1 -1
- package/esm/core/Stepper/Stepper.js +3 -3
- package/esm/core/Stepper/StepperStep.d.ts +1 -1
- package/esm/core/Stepper/StepperStep.js +2 -2
- package/esm/core/Stepper/Wizard.d.ts +2 -2
- package/esm/core/Stepper/Wizard.js +3 -3
- package/esm/core/Stepper/WorkflowDiagram.d.ts +2 -2
- package/esm/core/Stepper/WorkflowDiagram.js +3 -3
- package/esm/core/Stepper/WorkflowDiagramStep.d.ts +2 -2
- package/esm/core/Stepper/WorkflowDiagramStep.js +2 -2
- package/esm/core/Stepper/index.d.ts +6 -6
- package/esm/core/Stepper/index.js +3 -3
- package/esm/core/Surface/Surface.d.ts +2 -2
- package/esm/core/Surface/Surface.js +2 -2
- package/esm/core/Surface/index.d.ts +2 -2
- package/esm/core/Surface/index.js +1 -1
- package/esm/core/Table/SubRowExpander.d.ts +2 -2
- package/esm/core/Table/SubRowExpander.js +3 -3
- package/esm/core/Table/Table.d.ts +4 -4
- package/esm/core/Table/Table.js +11 -11
- package/esm/core/Table/TableCell.d.ts +2 -2
- package/esm/core/Table/TableCell.js +5 -5
- package/esm/core/Table/TablePaginator.d.ts +2 -2
- package/esm/core/Table/TablePaginator.js +5 -5
- package/esm/core/Table/TableRowMemoized.d.ts +2 -2
- package/esm/core/Table/TableRowMemoized.js +3 -3
- package/esm/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/filterHandler.d.ts +2 -2
- package/esm/core/Table/actionHandlers/index.d.ts +4 -4
- package/esm/core/Table/actionHandlers/index.js +4 -4
- package/esm/core/Table/actionHandlers/resizeHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/selectHandler.d.ts +1 -1
- package/esm/core/Table/cells/DefaultCell.d.ts +2 -2
- package/esm/core/Table/cells/DefaultCell.js +1 -1
- package/esm/core/Table/cells/EditableCell.d.ts +2 -2
- package/esm/core/Table/cells/EditableCell.js +2 -2
- package/esm/core/Table/cells/index.d.ts +4 -4
- package/esm/core/Table/cells/index.js +2 -2
- package/esm/core/Table/columns/actionColumn.d.ts +2 -2
- package/esm/core/Table/columns/actionColumn.js +9 -9
- package/esm/core/Table/columns/expanderColumn.d.ts +2 -2
- package/esm/core/Table/columns/expanderColumn.js +4 -4
- package/esm/core/Table/columns/index.d.ts +3 -3
- package/esm/core/Table/columns/index.js +3 -3
- package/esm/core/Table/columns/selectionColumn.d.ts +1 -1
- package/esm/core/Table/columns/selectionColumn.js +3 -3
- package/esm/core/Table/filters/BaseFilter.d.ts +2 -2
- package/esm/core/Table/filters/BaseFilter.js +2 -2
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +5 -5
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +2 -2
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +5 -5
- package/esm/core/Table/filters/FilterButtonBar.d.ts +2 -2
- package/esm/core/Table/filters/FilterButtonBar.js +3 -3
- package/esm/core/Table/filters/FilterToggle.d.ts +2 -2
- package/esm/core/Table/filters/FilterToggle.js +3 -3
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +2 -2
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +5 -5
- package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +2 -2
- package/esm/core/Table/filters/TextFilter/TextFilter.js +5 -5
- 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/index.d.ts +8 -8
- package/esm/core/Table/filters/index.js +4 -4
- package/esm/core/Table/filters/tableFilters.d.ts +4 -4
- package/esm/core/Table/filters/tableFilters.js +4 -4
- package/esm/core/Table/filters/types.d.ts +1 -1
- package/esm/core/Table/hooks/index.d.ts +8 -8
- package/esm/core/Table/hooks/index.js +8 -8
- package/esm/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/esm/core/Table/hooks/useColumnDragAndDrop.js +1 -1
- package/esm/core/Table/hooks/useExpanderCell.d.ts +2 -2
- package/esm/core/Table/hooks/useExpanderCell.js +2 -2
- package/esm/core/Table/hooks/useResizeColumns.d.ts +2 -2
- package/esm/core/Table/hooks/useResizeColumns.js +4 -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/useSelectionCell.js +1 -1
- package/esm/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useStickyColumns.js +1 -1
- package/esm/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowFiltering.js +2 -2
- package/esm/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowSelection.js +1 -1
- package/esm/core/Table/index.d.ts +9 -9
- package/esm/core/Table/index.js +5 -5
- package/esm/core/Table/utils.d.ts +1 -1
- package/esm/core/Tabs/Tab.d.ts +1 -1
- package/esm/core/Tabs/Tab.js +2 -2
- package/esm/core/Tabs/Tabs.d.ts +26 -2
- package/esm/core/Tabs/Tabs.js +201 -25
- package/esm/core/Tabs/index.d.ts +4 -4
- package/esm/core/Tabs/index.js +2 -2
- package/esm/core/Tag/Tag.d.ts +2 -2
- package/esm/core/Tag/Tag.js +3 -3
- package/esm/core/Tag/TagContainer.d.ts +2 -2
- package/esm/core/Tag/TagContainer.js +2 -2
- package/esm/core/Tag/index.d.ts +4 -4
- package/esm/core/Tag/index.js +2 -2
- package/esm/core/Textarea/Textarea.d.ts +1 -1
- package/esm/core/Textarea/Textarea.js +2 -2
- package/esm/core/Textarea/index.d.ts +2 -2
- package/esm/core/Textarea/index.js +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +2 -2
- package/esm/core/ThemeProvider/ThemeProvider.js +2 -2
- package/esm/core/ThemeProvider/index.d.ts +2 -2
- package/esm/core/ThemeProvider/index.js +1 -1
- package/esm/core/Tile/Tile.d.ts +2 -2
- package/esm/core/Tile/Tile.js +5 -5
- package/esm/core/Tile/index.d.ts +2 -2
- package/esm/core/Tile/index.js +1 -1
- package/esm/core/TimePicker/TimePicker.d.ts +2 -2
- package/esm/core/TimePicker/TimePicker.js +2 -2
- package/esm/core/TimePicker/index.d.ts +2 -2
- package/esm/core/TimePicker/index.js +1 -1
- package/esm/core/Toast/Toast.d.ts +2 -2
- package/esm/core/Toast/Toast.js +3 -3
- package/esm/core/Toast/ToastWrapper.d.ts +3 -3
- package/esm/core/Toast/ToastWrapper.js +2 -2
- package/esm/core/Toast/Toaster.d.ts +2 -2
- package/esm/core/Toast/Toaster.js +3 -3
- package/esm/core/Toast/index.d.ts +2 -2
- package/esm/core/Toast/index.js +1 -1
- package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/esm/core/ToggleSwitch/ToggleSwitch.js +2 -2
- package/esm/core/ToggleSwitch/index.d.ts +2 -2
- package/esm/core/ToggleSwitch/index.js +1 -1
- package/esm/core/Tooltip/Tooltip.d.ts +2 -2
- package/esm/core/Tooltip/Tooltip.js +2 -2
- package/esm/core/Tooltip/index.d.ts +2 -2
- package/esm/core/Tooltip/index.js +1 -1
- package/esm/core/Tree/Tree.d.ts +1 -1
- package/esm/core/Tree/Tree.js +3 -3
- package/esm/core/Tree/TreeContext.d.ts +1 -1
- package/esm/core/Tree/TreeContext.js +1 -1
- package/esm/core/Tree/TreeNode.d.ts +2 -2
- package/esm/core/Tree/TreeNode.js +4 -4
- package/esm/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/esm/core/Tree/TreeNodeExpander.js +3 -3
- package/esm/core/Tree/index.d.ts +6 -6
- package/esm/core/Tree/index.js +3 -3
- package/esm/core/Typography/Anchor/Anchor.d.ts +2 -2
- package/esm/core/Typography/Anchor/Anchor.js +2 -2
- package/esm/core/Typography/Anchor/index.d.ts +2 -2
- package/esm/core/Typography/Anchor/index.js +1 -1
- package/esm/core/Typography/Blockquote/Blockquote.d.ts +1 -1
- package/esm/core/Typography/Blockquote/Blockquote.js +2 -2
- package/esm/core/Typography/Blockquote/index.d.ts +2 -2
- package/esm/core/Typography/Blockquote/index.js +1 -1
- package/esm/core/Typography/Body/Body.d.ts +1 -1
- package/esm/core/Typography/Body/Body.js +2 -2
- package/esm/core/Typography/Body/index.d.ts +2 -2
- package/esm/core/Typography/Body/index.js +1 -1
- package/esm/core/Typography/Code/Code.d.ts +2 -2
- package/esm/core/Typography/Code/Code.js +2 -2
- package/esm/core/Typography/Code/index.d.ts +2 -2
- package/esm/core/Typography/Code/index.js +1 -1
- package/esm/core/Typography/Headline/Headline.d.ts +1 -1
- package/esm/core/Typography/Headline/Headline.js +2 -2
- package/esm/core/Typography/Headline/index.d.ts +2 -2
- package/esm/core/Typography/Headline/index.js +1 -1
- package/esm/core/Typography/Kbd/Kbd.d.ts +1 -1
- package/esm/core/Typography/Kbd/Kbd.js +2 -2
- package/esm/core/Typography/Kbd/index.d.ts +2 -2
- package/esm/core/Typography/Kbd/index.js +1 -1
- package/esm/core/Typography/Leading/Leading.d.ts +1 -1
- package/esm/core/Typography/Leading/Leading.js +2 -2
- package/esm/core/Typography/Leading/index.d.ts +2 -2
- package/esm/core/Typography/Leading/index.js +1 -1
- package/esm/core/Typography/Small/Small.d.ts +1 -1
- package/esm/core/Typography/Small/Small.js +2 -2
- package/esm/core/Typography/Small/index.d.ts +2 -2
- package/esm/core/Typography/Small/index.js +1 -1
- package/esm/core/Typography/Subheading/Subheading.d.ts +1 -1
- package/esm/core/Typography/Subheading/Subheading.js +2 -2
- package/esm/core/Typography/Subheading/index.d.ts +2 -2
- package/esm/core/Typography/Subheading/index.js +1 -1
- package/esm/core/Typography/Text/Text.d.ts +2 -2
- package/esm/core/Typography/Text/Text.js +2 -2
- package/esm/core/Typography/Text/index.d.ts +2 -2
- package/esm/core/Typography/Text/index.js +1 -1
- package/esm/core/Typography/Title/Title.d.ts +1 -1
- package/esm/core/Typography/Title/Title.js +2 -2
- package/esm/core/Typography/Title/index.d.ts +2 -2
- package/esm/core/Typography/Title/index.js +1 -1
- package/esm/core/Typography/index.d.ts +22 -22
- package/esm/core/Typography/index.js +11 -11
- package/esm/core/index.d.ts +112 -110
- package/esm/core/index.js +56 -55
- package/esm/core/utils/color/ColorValue.js +1 -1
- package/esm/core/utils/color/index.d.ts +1 -1
- package/esm/core/utils/color/index.js +1 -1
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +12 -0
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +25 -0
- package/esm/core/utils/components/Divider.d.ts +1 -1
- package/esm/core/utils/components/Divider.js +2 -2
- package/esm/core/utils/components/Flex.d.ts +3 -3
- package/esm/core/utils/components/Flex.js +1 -1
- package/esm/core/utils/components/FocusTrap.js +3 -3
- package/esm/core/utils/components/Icon.d.ts +27 -4
- package/esm/core/utils/components/Icon.js +1 -1
- package/esm/core/utils/components/InputContainer.d.ts +1 -1
- package/esm/core/utils/components/InputContainer.js +1 -1
- package/esm/core/utils/components/InputFlexContainer.d.ts +13 -0
- package/esm/core/utils/components/InputFlexContainer.js +15 -0
- package/esm/core/utils/components/LinkAction.d.ts +1 -1
- package/esm/core/utils/components/LinkAction.js +1 -1
- package/esm/core/utils/components/MiddleTextTruncation.d.ts +2 -2
- package/esm/core/utils/components/MiddleTextTruncation.js +2 -2
- package/esm/core/utils/components/Popover.d.ts +2 -2
- package/esm/core/utils/components/Popover.js +7 -3
- package/esm/core/utils/components/Resizer.d.ts +1 -1
- package/esm/core/utils/components/Resizer.js +2 -2
- package/esm/core/utils/components/VirtualScroll.d.ts +1 -1
- package/esm/core/utils/components/VirtualScroll.js +2 -2
- package/esm/core/utils/components/VisuallyHidden.d.ts +1 -1
- package/esm/core/utils/components/VisuallyHidden.js +2 -2
- package/esm/core/utils/components/WithCSSTransition.d.ts +1 -1
- package/esm/core/utils/components/WithCSSTransition.js +1 -1
- package/esm/core/utils/components/index.d.ts +14 -12
- package/esm/core/utils/components/index.js +14 -12
- package/esm/core/utils/functions/index.d.ts +7 -7
- package/esm/core/utils/functions/index.js +7 -7
- package/esm/core/utils/functions/supports.js +1 -1
- package/esm/core/utils/hooks/index.d.ts +14 -14
- package/esm/core/utils/hooks/index.js +14 -14
- package/esm/core/utils/hooks/useContainerWidth.js +3 -3
- package/esm/core/utils/hooks/useDragAndDrop.d.ts +1 -1
- package/esm/core/utils/hooks/useDragAndDrop.js +4 -4
- package/esm/core/utils/hooks/useEventListener.js +1 -1
- package/esm/core/utils/hooks/useId.js +6 -3
- package/esm/core/utils/hooks/useIntersection.js +2 -2
- package/esm/core/utils/hooks/useIsClient.js +1 -1
- package/esm/core/utils/hooks/useIsThemeAlreadySet.d.ts +1 -1
- package/esm/core/utils/hooks/useIsThemeAlreadySet.js +4 -4
- package/esm/core/utils/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
- package/esm/core/utils/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/esm/core/utils/hooks/useLatestRef.d.ts +1 -1
- package/esm/core/utils/hooks/useLatestRef.js +1 -1
- package/esm/core/utils/hooks/useMediaQuery.js +3 -3
- package/esm/core/utils/hooks/useMergedRefs.d.ts +1 -1
- package/esm/core/utils/hooks/useMergedRefs.js +1 -1
- package/esm/core/utils/hooks/useOverflow.d.ts +1 -1
- package/esm/core/utils/hooks/useOverflow.js +4 -4
- package/esm/core/utils/hooks/useResizeObserver.js +2 -2
- package/esm/core/utils/hooks/useSafeContext.d.ts +1 -1
- package/esm/core/utils/hooks/useSafeContext.js +1 -1
- package/esm/core/utils/hooks/useTheme.js +3 -3
- package/esm/core/utils/icons/StatusIconMap.d.ts +1 -1
- package/esm/core/utils/icons/StatusIconMap.js +4 -4
- package/esm/core/utils/icons/SvgSearch.d.ts +2 -0
- package/esm/core/utils/icons/SvgSearch.js +9 -0
- package/esm/core/utils/icons/index.d.ts +31 -30
- package/esm/core/utils/icons/index.js +31 -30
- package/esm/core/utils/index.d.ts +7 -7
- package/esm/core/utils/index.js +7 -7
- package/esm/core/utils/props.d.ts +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.js +2 -2
- package/esm/types/react-table-config.d.ts +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
@@ -8,12 +31,12 @@ exports.ColorInputPanel = void 0;
|
|
|
8
31
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
9
32
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
10
33
|
*--------------------------------------------------------------------------------------------*/
|
|
11
|
-
const
|
|
34
|
+
const React = __importStar(require("react"));
|
|
12
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
36
|
+
const index_js_1 = require("../Buttons/index.js");
|
|
37
|
+
const index_js_2 = require("../Input/index.js");
|
|
38
|
+
const index_js_3 = require("../utils/index.js");
|
|
39
|
+
const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
|
|
17
40
|
require("@itwin/itwinui-css/css/color-picker.css");
|
|
18
41
|
/**
|
|
19
42
|
* `ColorInputPanel` shows input fields to enter precise color values in the specified format.
|
|
@@ -24,27 +47,27 @@ require("@itwin/itwinui-css/css/color-picker.css");
|
|
|
24
47
|
* <ColorInputPanel defaultColorFormat='hsl' />
|
|
25
48
|
* </ColorPicker>
|
|
26
49
|
*/
|
|
27
|
-
exports.ColorInputPanel =
|
|
50
|
+
exports.ColorInputPanel = React.forwardRef((props, ref) => {
|
|
28
51
|
var _a, _b, _c, _d, _f, _g, _h, _j;
|
|
29
52
|
const { defaultColorFormat, allowedColorFormats = ['hsl', 'rgb', 'hex'], className, ...rest } = props;
|
|
30
|
-
(0,
|
|
31
|
-
const inputsContainerRef =
|
|
32
|
-
const { activeColor, applyHsvColorChange, hsvColor, showAlpha } = (0,
|
|
33
|
-
const [currentFormat, setCurrentFormat] =
|
|
34
|
-
|
|
53
|
+
(0, index_js_3.useTheme)();
|
|
54
|
+
const inputsContainerRef = React.useRef(null);
|
|
55
|
+
const { activeColor, applyHsvColorChange, hsvColor, showAlpha } = (0, ColorPickerContext_js_1.useColorPickerContext)();
|
|
56
|
+
const [currentFormat, setCurrentFormat] = React.useState(defaultColorFormat);
|
|
57
|
+
React.useEffect(() => {
|
|
35
58
|
setCurrentFormat(defaultColorFormat);
|
|
36
59
|
}, [defaultColorFormat]);
|
|
37
60
|
// need to use state since input may have parsing error
|
|
38
|
-
const [input, setInput] =
|
|
39
|
-
|
|
61
|
+
const [input, setInput] = React.useState(['', '', '', '']);
|
|
62
|
+
React.useEffect(() => {
|
|
40
63
|
var _a, _b;
|
|
41
64
|
if (currentFormat === 'hsl') {
|
|
42
65
|
const hsl = activeColor.toHslColor();
|
|
43
66
|
setInput([
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
67
|
+
index_js_3.ColorValue.getFormattedColorNumber(hsvColor.h),
|
|
68
|
+
index_js_3.ColorValue.getFormattedColorNumber(hsl.s),
|
|
69
|
+
index_js_3.ColorValue.getFormattedColorNumber(hsl.l),
|
|
70
|
+
index_js_3.ColorValue.getFormattedColorNumber((_a = hsl.a) !== null && _a !== void 0 ? _a : activeColor.getAlpha() / 255, 2),
|
|
48
71
|
]);
|
|
49
72
|
}
|
|
50
73
|
else if (currentFormat === 'rgb') {
|
|
@@ -53,7 +76,7 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
53
76
|
rgb.r.toString(),
|
|
54
77
|
rgb.g.toString(),
|
|
55
78
|
rgb.b.toString(),
|
|
56
|
-
|
|
79
|
+
index_js_3.ColorValue.getFormattedColorNumber((_b = rgb.a) !== null && _b !== void 0 ? _b : activeColor.getAlpha() / 255, 2),
|
|
57
80
|
]);
|
|
58
81
|
}
|
|
59
82
|
else {
|
|
@@ -61,8 +84,8 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
61
84
|
setValidHexInput(true);
|
|
62
85
|
}
|
|
63
86
|
}, [activeColor, hsvColor.h, currentFormat, showAlpha]);
|
|
64
|
-
const [validHexInput, setValidHexInput] =
|
|
65
|
-
const swapColorFormat =
|
|
87
|
+
const [validHexInput, setValidHexInput] = React.useState(true);
|
|
88
|
+
const swapColorFormat = React.useCallback(() => {
|
|
66
89
|
var _a;
|
|
67
90
|
const newFormat = (_a = allowedColorFormats[(allowedColorFormats.indexOf(currentFormat) + 1) %
|
|
68
91
|
allowedColorFormats.length]) !== null && _a !== void 0 ? _a : allowedColorFormats[0];
|
|
@@ -76,7 +99,7 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
76
99
|
if (currentFormat === 'hex') {
|
|
77
100
|
try {
|
|
78
101
|
const value = input[0].replace(/ /g, '').toLowerCase(); // remove white space from input
|
|
79
|
-
color =
|
|
102
|
+
color = index_js_3.ColorValue.create(value);
|
|
80
103
|
setValidHexInput(true);
|
|
81
104
|
if (activeColor.toHexString(showAlpha).toLowerCase() === value) {
|
|
82
105
|
return;
|
|
@@ -103,7 +126,7 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
103
126
|
if (hsl.h === h && hsl.s === s && hsl.l === l && hsl.a === a) {
|
|
104
127
|
return;
|
|
105
128
|
}
|
|
106
|
-
color =
|
|
129
|
+
color = index_js_3.ColorValue.create({ h, s, l, a });
|
|
107
130
|
}
|
|
108
131
|
if (currentFormat === 'rgb') {
|
|
109
132
|
const [r, g, b, a] = input.map(Number);
|
|
@@ -121,14 +144,14 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
121
144
|
if (rgb.r === r && rgb.g === g && rgb.b === b && rgb.a === a) {
|
|
122
145
|
return;
|
|
123
146
|
}
|
|
124
|
-
color =
|
|
147
|
+
color = index_js_3.ColorValue.create({ r, g, b, a });
|
|
125
148
|
}
|
|
126
149
|
if (color) {
|
|
127
150
|
applyHsvColorChange(color.toHsvColor(), true, color);
|
|
128
151
|
}
|
|
129
152
|
};
|
|
130
|
-
const hexInputField = (
|
|
131
|
-
|
|
153
|
+
const hexInputField = (React.createElement(index_js_3.InputContainer, { status: validHexInput ? undefined : 'negative' },
|
|
154
|
+
React.createElement(index_js_2.Input, { size: 'small', maxLength: showAlpha ? 9 : 7, minLength: 1, placeholder: 'HEX', value: input[0], onChange: (event) => {
|
|
132
155
|
const value = event.target.value.startsWith('#')
|
|
133
156
|
? event.target.value
|
|
134
157
|
: `#${event.target.value}`;
|
|
@@ -142,11 +165,11 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
142
165
|
event.preventDefault();
|
|
143
166
|
handleColorInputChange();
|
|
144
167
|
} })));
|
|
145
|
-
const hslInputs = (
|
|
146
|
-
|
|
168
|
+
const hslInputs = (React.createElement(React.Fragment, null,
|
|
169
|
+
React.createElement(index_js_3.InputContainer, { status: Number(input[0]) < 0 || Number(input[0]) > 360
|
|
147
170
|
? 'negative'
|
|
148
171
|
: undefined },
|
|
149
|
-
|
|
172
|
+
React.createElement(index_js_2.Input, { size: 'small', type: 'number', min: '0', max: '359', step: '.1', placeholder: 'H', value: (_a = input[0]) !== null && _a !== void 0 ? _a : '', onChange: (event) => {
|
|
150
173
|
setInput([event.target.value, input[1], input[2], input[3]]);
|
|
151
174
|
}, onKeyDown: (event) => {
|
|
152
175
|
if (event.key === 'Enter') {
|
|
@@ -159,10 +182,10 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
159
182
|
handleColorInputChange();
|
|
160
183
|
}
|
|
161
184
|
} })),
|
|
162
|
-
|
|
185
|
+
React.createElement(index_js_3.InputContainer, { status: Number(input[1]) < 0 || Number(input[1]) > 100
|
|
163
186
|
? 'negative'
|
|
164
187
|
: undefined },
|
|
165
|
-
|
|
188
|
+
React.createElement(index_js_2.Input, { size: 'small', type: 'number', min: '0', max: '100', step: '.1', placeholder: 'S', value: (_b = input[1]) !== null && _b !== void 0 ? _b : '', onChange: (event) => {
|
|
166
189
|
setInput([input[0], event.target.value, input[2], input[3]]);
|
|
167
190
|
}, onKeyDown: (event) => {
|
|
168
191
|
if (event.key === 'Enter') {
|
|
@@ -175,10 +198,10 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
175
198
|
handleColorInputChange();
|
|
176
199
|
}
|
|
177
200
|
} })),
|
|
178
|
-
|
|
201
|
+
React.createElement(index_js_3.InputContainer, { status: Number(input[2]) < 0 || Number(input[2]) > 100
|
|
179
202
|
? 'negative'
|
|
180
203
|
: undefined },
|
|
181
|
-
|
|
204
|
+
React.createElement(index_js_2.Input, { size: 'small', type: 'number', min: '0', max: '100', step: '.1', placeholder: 'L', value: (_c = input[2]) !== null && _c !== void 0 ? _c : '', onChange: (event) => {
|
|
182
205
|
setInput([input[0], input[1], event.target.value, input[3]]);
|
|
183
206
|
}, onKeyDown: (event) => {
|
|
184
207
|
if (event.key === 'Enter') {
|
|
@@ -191,10 +214,10 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
191
214
|
handleColorInputChange();
|
|
192
215
|
}
|
|
193
216
|
} })),
|
|
194
|
-
showAlpha && (
|
|
217
|
+
showAlpha && (React.createElement(index_js_3.InputContainer, { status: Number(input[3]) < 0 || Number(input[3]) > 1
|
|
195
218
|
? 'negative'
|
|
196
219
|
: undefined },
|
|
197
|
-
|
|
220
|
+
React.createElement(index_js_2.Input, { size: 'small', type: 'number', min: '0', max: '1', step: '.01', placeholder: 'A', value: (_d = input[3]) !== null && _d !== void 0 ? _d : '', onChange: (event) => {
|
|
198
221
|
setInput([input[0], input[1], input[2], event.target.value]);
|
|
199
222
|
}, onKeyDown: (event) => {
|
|
200
223
|
if (event.key === 'Enter') {
|
|
@@ -207,11 +230,11 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
207
230
|
handleColorInputChange();
|
|
208
231
|
}
|
|
209
232
|
} })))));
|
|
210
|
-
const rgbInputs = (
|
|
211
|
-
|
|
233
|
+
const rgbInputs = (React.createElement(React.Fragment, null,
|
|
234
|
+
React.createElement(index_js_3.InputContainer, { status: Number(input[0]) < 0 || Number(input[0]) > 255
|
|
212
235
|
? 'negative'
|
|
213
236
|
: undefined },
|
|
214
|
-
|
|
237
|
+
React.createElement(index_js_2.Input, { size: 'small', type: 'number', min: '0', max: '255', placeholder: 'R', value: (_f = input[0]) !== null && _f !== void 0 ? _f : '', onChange: (event) => {
|
|
215
238
|
setInput([event.target.value, input[1], input[2], input[3]]);
|
|
216
239
|
}, onKeyDown: (event) => {
|
|
217
240
|
if (event.key === 'Enter') {
|
|
@@ -224,10 +247,10 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
224
247
|
handleColorInputChange();
|
|
225
248
|
}
|
|
226
249
|
} })),
|
|
227
|
-
|
|
250
|
+
React.createElement(index_js_3.InputContainer, { status: Number(input[1]) < 0 || Number(input[1]) > 255
|
|
228
251
|
? 'negative'
|
|
229
252
|
: undefined },
|
|
230
|
-
|
|
253
|
+
React.createElement(index_js_2.Input, { size: 'small', type: 'number', min: '0', max: '255', placeholder: 'G', value: (_g = input[1]) !== null && _g !== void 0 ? _g : '', onChange: (event) => {
|
|
231
254
|
setInput([input[0], event.target.value, input[2], input[3]]);
|
|
232
255
|
}, onKeyDown: (event) => {
|
|
233
256
|
if (event.key === 'Enter') {
|
|
@@ -240,10 +263,10 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
240
263
|
handleColorInputChange();
|
|
241
264
|
}
|
|
242
265
|
} })),
|
|
243
|
-
|
|
266
|
+
React.createElement(index_js_3.InputContainer, { status: Number(input[2]) < 0 || Number(input[2]) > 255
|
|
244
267
|
? 'negative'
|
|
245
268
|
: undefined },
|
|
246
|
-
|
|
269
|
+
React.createElement(index_js_2.Input, { size: 'small', type: 'number', min: '0', max: '255', placeholder: 'B', value: (_h = input[2]) !== null && _h !== void 0 ? _h : '', onChange: (event) => {
|
|
247
270
|
setInput([input[0], input[1], event.target.value, input[3]]);
|
|
248
271
|
}, onKeyDown: (event) => {
|
|
249
272
|
if (event.key === 'Enter') {
|
|
@@ -256,10 +279,10 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
256
279
|
handleColorInputChange();
|
|
257
280
|
}
|
|
258
281
|
} })),
|
|
259
|
-
showAlpha && (
|
|
282
|
+
showAlpha && (React.createElement(index_js_3.InputContainer, { status: Number(input[3]) < 0 || Number(input[3]) > 1
|
|
260
283
|
? 'negative'
|
|
261
284
|
: undefined },
|
|
262
|
-
|
|
285
|
+
React.createElement(index_js_2.Input, { size: 'small', type: 'number', min: '0', max: '1', step: '.01', placeholder: 'A', value: (_j = input[3]) !== null && _j !== void 0 ? _j : '', onChange: (event) => {
|
|
263
286
|
setInput([input[0], input[1], input[2], event.target.value]);
|
|
264
287
|
}, onKeyDown: (event) => {
|
|
265
288
|
if (event.key === 'Enter') {
|
|
@@ -272,14 +295,14 @@ exports.ColorInputPanel = react_1.default.forwardRef((props, ref) => {
|
|
|
272
295
|
handleColorInputChange();
|
|
273
296
|
}
|
|
274
297
|
} })))));
|
|
275
|
-
return (
|
|
276
|
-
|
|
298
|
+
return (React.createElement("div", { className: (0, classnames_1.default)('iui-color-input-wrapper', className), ref: ref, ...rest },
|
|
299
|
+
React.createElement("div", { className: 'iui-color-picker-section-label' }, showAlpha && currentFormat != 'hex'
|
|
277
300
|
? currentFormat.toUpperCase() + 'A'
|
|
278
301
|
: currentFormat.toUpperCase()),
|
|
279
|
-
|
|
280
|
-
allowedColorFormats.length > 1 && (
|
|
281
|
-
|
|
282
|
-
|
|
302
|
+
React.createElement("div", { className: 'iui-color-input' },
|
|
303
|
+
allowedColorFormats.length > 1 && (React.createElement(index_js_1.IconButton, { styleType: 'borderless', onClick: swapColorFormat, size: 'small' },
|
|
304
|
+
React.createElement(index_js_3.SvgSwap, null))),
|
|
305
|
+
React.createElement("div", { ref: inputsContainerRef, className: 'iui-color-input-fields' },
|
|
283
306
|
currentFormat === 'hex' && hexInputField,
|
|
284
307
|
currentFormat === 'rgb' && rgbInputs,
|
|
285
308
|
currentFormat === 'hsl' && hslInputs))));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ColorValue } from '../utils/index.js';
|
|
3
|
+
import type { CommonProps, ColorType } from '../utils/index.js';
|
|
3
4
|
import '@itwin/itwinui-css/css/color-picker.css';
|
|
4
5
|
export declare type ColorPaletteProps = {
|
|
5
6
|
/**
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
@@ -8,12 +31,12 @@ exports.ColorPalette = void 0;
|
|
|
8
31
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
9
32
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
10
33
|
*--------------------------------------------------------------------------------------------*/
|
|
11
|
-
const
|
|
34
|
+
const React = __importStar(require("react"));
|
|
12
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
36
|
+
const index_js_1 = require("../utils/index.js");
|
|
37
|
+
const ColorPicker_js_1 = require("./ColorPicker.js");
|
|
38
|
+
const ColorSwatch_js_1 = require("./ColorSwatch.js");
|
|
39
|
+
const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
|
|
17
40
|
require("@itwin/itwinui-css/css/color-picker.css");
|
|
18
41
|
/**
|
|
19
42
|
* `ColorPalette` is used to show a group of `ColorSwatch` components.
|
|
@@ -26,11 +49,11 @@ require("@itwin/itwinui-css/css/color-picker.css");
|
|
|
26
49
|
* // ...
|
|
27
50
|
* </ColorPalette>
|
|
28
51
|
*/
|
|
29
|
-
exports.ColorPalette =
|
|
52
|
+
exports.ColorPalette = React.forwardRef((props, ref) => {
|
|
30
53
|
const { colors, label, className, children, ...rest } = props;
|
|
31
|
-
(0,
|
|
32
|
-
const { activeColor, setActiveColor, onChangeComplete } = (0,
|
|
33
|
-
const [focusedIndex, setFocusedIndex] =
|
|
54
|
+
(0, index_js_1.useTheme)();
|
|
55
|
+
const { activeColor, setActiveColor, onChangeComplete } = (0, ColorPickerContext_js_1.useColorPickerContext)();
|
|
56
|
+
const [focusedIndex, setFocusedIndex] = React.useState();
|
|
34
57
|
// callback ref to set tabindex=0 on first child if none of the swatches are tabbable
|
|
35
58
|
const setDefaultTabIndex = (el) => {
|
|
36
59
|
var _a;
|
|
@@ -38,14 +61,14 @@ exports.ColorPalette = react_1.default.forwardRef((props, ref) => {
|
|
|
38
61
|
(_a = el.firstElementChild) === null || _a === void 0 ? void 0 : _a.setAttribute('tabindex', '0');
|
|
39
62
|
}
|
|
40
63
|
};
|
|
41
|
-
const paletteRef =
|
|
42
|
-
const paletteRefs = (0,
|
|
64
|
+
const paletteRef = React.useRef(null);
|
|
65
|
+
const paletteRefs = (0, index_js_1.useMergedRefs)(paletteRef, setDefaultTabIndex);
|
|
43
66
|
// Color palette arrow key navigation
|
|
44
67
|
const handleKeyDown = (event) => {
|
|
45
68
|
if (event.altKey) {
|
|
46
69
|
return;
|
|
47
70
|
}
|
|
48
|
-
const swatches = (0,
|
|
71
|
+
const swatches = (0, index_js_1.getFocusableElements)(paletteRef.current);
|
|
49
72
|
if (!swatches.length) {
|
|
50
73
|
return;
|
|
51
74
|
}
|
|
@@ -90,21 +113,21 @@ exports.ColorPalette = react_1.default.forwardRef((props, ref) => {
|
|
|
90
113
|
}
|
|
91
114
|
};
|
|
92
115
|
// call focus() when focusedIndex changes
|
|
93
|
-
|
|
116
|
+
React.useEffect(() => {
|
|
94
117
|
var _a;
|
|
95
118
|
if (focusedIndex != null) {
|
|
96
|
-
const swatches = (0,
|
|
119
|
+
const swatches = (0, index_js_1.getFocusableElements)(paletteRef.current);
|
|
97
120
|
(_a = swatches[focusedIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
98
121
|
}
|
|
99
122
|
}, [focusedIndex]);
|
|
100
|
-
return (
|
|
101
|
-
label &&
|
|
102
|
-
|
|
123
|
+
return (React.createElement("div", { className: (0, classnames_1.default)('iui-color-palette-wrapper', className), ref: ref, ...rest },
|
|
124
|
+
label && React.createElement("div", { className: 'iui-color-picker-section-label' }, label),
|
|
125
|
+
React.createElement("div", { className: 'iui-color-palette', onKeyDown: handleKeyDown, ref: paletteRefs },
|
|
103
126
|
children,
|
|
104
127
|
colors &&
|
|
105
128
|
colors.map((_color, index) => {
|
|
106
|
-
const color = (0,
|
|
107
|
-
return (
|
|
129
|
+
const color = (0, ColorPicker_js_1.getColorValue)(_color);
|
|
130
|
+
return (React.createElement(ColorSwatch_js_1.ColorSwatch, { key: index, color: color, onClick: (event) => {
|
|
108
131
|
event.preventDefault();
|
|
109
132
|
onChangeComplete === null || onChangeComplete === void 0 ? void 0 : onChangeComplete(color);
|
|
110
133
|
setActiveColor(color);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import '@itwin/itwinui-css/css/color-picker.css';
|
|
3
|
-
import {
|
|
3
|
+
import { ColorValue } from '../utils/index.js';
|
|
4
|
+
import type { CommonProps, ColorType } from '../utils/index.js';
|
|
4
5
|
export declare const getColorValue: (color: ColorType | ColorValue | undefined) => ColorValue;
|
|
5
6
|
export declare type ColorPickerProps = {
|
|
6
7
|
/**
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
@@ -8,16 +31,16 @@ exports.ColorPicker = exports.getColorValue = void 0;
|
|
|
8
31
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
9
32
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
10
33
|
*--------------------------------------------------------------------------------------------*/
|
|
11
|
-
const
|
|
34
|
+
const React = __importStar(require("react"));
|
|
12
35
|
require("@itwin/itwinui-css/css/color-picker.css");
|
|
13
|
-
const
|
|
36
|
+
const index_js_1 = require("../utils/index.js");
|
|
14
37
|
const classnames_1 = __importDefault(require("classnames"));
|
|
15
|
-
const
|
|
38
|
+
const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
|
|
16
39
|
const getColorValue = (color) => {
|
|
17
|
-
if (color instanceof
|
|
40
|
+
if (color instanceof index_js_1.ColorValue) {
|
|
18
41
|
return color;
|
|
19
42
|
}
|
|
20
|
-
return
|
|
43
|
+
return index_js_1.ColorValue.create(color);
|
|
21
44
|
};
|
|
22
45
|
exports.getColorValue = getColorValue;
|
|
23
46
|
/**
|
|
@@ -35,35 +58,35 @@ exports.getColorValue = getColorValue;
|
|
|
35
58
|
*/
|
|
36
59
|
const ColorPicker = (props) => {
|
|
37
60
|
const { children, className, selectedColor, onChange, onChangeComplete, setFocus = false, showAlpha = false, ...rest } = props;
|
|
38
|
-
(0,
|
|
39
|
-
const ref =
|
|
61
|
+
(0, index_js_1.useTheme)();
|
|
62
|
+
const ref = React.useRef(null);
|
|
40
63
|
// set focus on the first tabbable element
|
|
41
|
-
|
|
64
|
+
React.useEffect(() => {
|
|
42
65
|
if (ref.current && setFocus) {
|
|
43
|
-
const tabbableElements = (0,
|
|
66
|
+
const tabbableElements = (0, index_js_1.getTabbableElements)(ref.current);
|
|
44
67
|
tabbableElements[0].focus();
|
|
45
68
|
}
|
|
46
69
|
}, [setFocus]);
|
|
47
|
-
const inColor =
|
|
48
|
-
const activeColorTbgr =
|
|
49
|
-
const [activeColor, setActiveColor] =
|
|
50
|
-
|
|
70
|
+
const inColor = React.useMemo(() => (0, exports.getColorValue)(selectedColor), [selectedColor]);
|
|
71
|
+
const activeColorTbgr = React.useRef(inColor.toTbgr());
|
|
72
|
+
const [activeColor, setActiveColor] = React.useState(inColor); // Color of colorDot or active ColorSwatch
|
|
73
|
+
React.useEffect(() => {
|
|
51
74
|
setActiveColor(inColor);
|
|
52
75
|
}, [inColor]);
|
|
53
|
-
const [hsvColor, setHsvColor] =
|
|
76
|
+
const [hsvColor, setHsvColor] = React.useState(() => activeColor.toHsvColor());
|
|
54
77
|
// The following code is used to preserve the Hue after initial mount. If the current HSV value produces the same rgb value
|
|
55
78
|
// as the selectedColor prop then leave the HSV color unchanged. This prevents the jumping of HUE as the s/v values are changed
|
|
56
79
|
// by user moving the pointer.
|
|
57
|
-
|
|
80
|
+
React.useEffect(() => {
|
|
58
81
|
if (inColor.toTbgr() !== activeColorTbgr.current) {
|
|
59
82
|
activeColorTbgr.current = inColor.toTbgr();
|
|
60
83
|
setHsvColor(inColor.toHsvColor());
|
|
61
84
|
}
|
|
62
85
|
}, [inColor]);
|
|
63
|
-
const applyHsvColorChange =
|
|
86
|
+
const applyHsvColorChange = React.useCallback((newColor, selectionChanged, newColorValue) => {
|
|
64
87
|
// save the HSV values
|
|
65
88
|
setHsvColor(newColor);
|
|
66
|
-
const newActiveColor = newColorValue !== null && newColorValue !== void 0 ? newColorValue :
|
|
89
|
+
const newActiveColor = newColorValue !== null && newColorValue !== void 0 ? newColorValue : index_js_1.ColorValue.create(newColor);
|
|
67
90
|
// Only update selected color when dragging is done
|
|
68
91
|
if (selectionChanged) {
|
|
69
92
|
onChangeComplete === null || onChangeComplete === void 0 ? void 0 : onChangeComplete(newActiveColor);
|
|
@@ -75,8 +98,8 @@ const ColorPicker = (props) => {
|
|
|
75
98
|
// this converts it to store in tbgr
|
|
76
99
|
setActiveColor(newActiveColor);
|
|
77
100
|
}, [onChange, onChangeComplete]);
|
|
78
|
-
return (
|
|
79
|
-
|
|
101
|
+
return (React.createElement("div", { className: (0, classnames_1.default)('iui-color-picker', className), ref: ref, ...rest },
|
|
102
|
+
React.createElement(ColorPickerContext_js_1.ColorPickerContext.Provider, { value: {
|
|
80
103
|
activeColor,
|
|
81
104
|
setActiveColor,
|
|
82
105
|
hsvColor,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ColorValue, HsvColor } from '../utils';
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ColorValue, HsvColor } from '../utils/index.js';
|
|
3
3
|
export declare const ColorPickerContext: React.Context<{
|
|
4
4
|
activeColor: ColorValue;
|
|
5
5
|
setActiveColor: (color: ColorValue | ((prevColor: ColorValue) => ColorValue)) => void;
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
4
24
|
};
|
|
5
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
26
|
exports.useColorPickerContext = exports.ColorPickerContext = void 0;
|
|
@@ -8,10 +28,10 @@ exports.useColorPickerContext = exports.ColorPickerContext = void 0;
|
|
|
8
28
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
9
29
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
10
30
|
*--------------------------------------------------------------------------------------------*/
|
|
11
|
-
const
|
|
12
|
-
exports.ColorPickerContext =
|
|
31
|
+
const React = __importStar(require("react"));
|
|
32
|
+
exports.ColorPickerContext = React.createContext(undefined);
|
|
13
33
|
const useColorPickerContext = () => {
|
|
14
|
-
const context =
|
|
34
|
+
const context = React.useContext(exports.ColorPickerContext);
|
|
15
35
|
if (context == undefined) {
|
|
16
36
|
throw new Error('useColorPickerContext must be used within a ColorPickerContext.Provider');
|
|
17
37
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import '@itwin/itwinui-css/css/color-picker.css';
|
|
3
|
-
import { ColorValue
|
|
3
|
+
import { ColorValue } from '../utils/index.js';
|
|
4
|
+
import type { ColorType } from '../utils/index.js';
|
|
4
5
|
export declare type ColorSwatchProps = {
|
|
5
6
|
/**
|
|
6
7
|
* Color code.
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
@@ -8,24 +31,24 @@ exports.ColorSwatch = void 0;
|
|
|
8
31
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
9
32
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
10
33
|
*--------------------------------------------------------------------------------------------*/
|
|
11
|
-
const
|
|
34
|
+
const React = __importStar(require("react"));
|
|
12
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
13
36
|
require("@itwin/itwinui-css/css/color-picker.css");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
37
|
+
const index_js_1 = require("../utils/index.js");
|
|
38
|
+
const ColorPicker_js_1 = require("./ColorPicker.js");
|
|
16
39
|
/**
|
|
17
40
|
* ColorSwatch component to display within a color palette.
|
|
18
41
|
* @example
|
|
19
42
|
* <ColorSwatch color='#23450b' onClick={onClick}/>
|
|
20
43
|
* <ColorSwatch color={{ r: 255, g: 255, b: 0 }} onClick={onClick}/>
|
|
21
44
|
*/
|
|
22
|
-
exports.ColorSwatch =
|
|
45
|
+
exports.ColorSwatch = React.forwardRef((props, ref) => {
|
|
23
46
|
const { color, style, onClick, isActive, className, ...rest } = props;
|
|
24
|
-
(0,
|
|
25
|
-
const colorString =
|
|
47
|
+
(0, index_js_1.useTheme)();
|
|
48
|
+
const colorString = React.useMemo(() => typeof color === 'string'
|
|
26
49
|
? color
|
|
27
|
-
: (0,
|
|
28
|
-
return (
|
|
50
|
+
: (0, ColorPicker_js_1.getColorValue)(color).toHslString(true), [color]);
|
|
51
|
+
return (React.createElement("div", { className: (0, classnames_1.default)('iui-color-swatch', { 'iui-active': isActive }, className), style: {
|
|
29
52
|
'--iui-color-swatch-background': colorString,
|
|
30
53
|
...style,
|
|
31
54
|
}, onClick: onClick, tabIndex: isActive ? 0 : -1, "aria-selected": isActive, ref: ref, ...rest }));
|