@itwin/itwinui-react 3.12.2 → 3.13.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 +48 -0
- package/DEV-cjs/core/Alert/Alert.js +90 -0
- package/DEV-cjs/core/Avatar/Avatar.js +55 -0
- package/DEV-cjs/core/AvatarGroup/AvatarGroup.js +38 -0
- package/DEV-cjs/core/Backdrop/Backdrop.js +26 -0
- package/DEV-cjs/core/Badge/Badge.js +48 -0
- package/DEV-cjs/core/Breadcrumbs/Breadcrumbs.js +96 -0
- package/DEV-cjs/core/ButtonGroup/ButtonGroup.js +91 -0
- package/DEV-cjs/core/Buttons/Button.js +54 -0
- package/DEV-cjs/core/Buttons/DropdownButton.js +43 -0
- package/DEV-cjs/core/Buttons/IconButton.js +46 -0
- package/DEV-cjs/core/Buttons/IdeasButton.js +30 -0
- package/DEV-cjs/core/Buttons/SplitButton.js +71 -0
- package/DEV-cjs/core/Carousel/Carousel.js +74 -0
- package/DEV-cjs/core/Carousel/CarouselContext.js +14 -0
- package/DEV-cjs/core/Carousel/CarouselDot.js +31 -0
- package/DEV-cjs/core/Carousel/CarouselDotsList.js +122 -0
- package/DEV-cjs/core/Carousel/CarouselNavigation.js +79 -0
- package/DEV-cjs/core/Carousel/CarouselSlide.js +46 -0
- package/DEV-cjs/core/Carousel/CarouselSlider.js +65 -0
- package/DEV-cjs/core/Checkbox/Checkbox.js +58 -0
- package/DEV-cjs/core/ColorPicker/ColorBuilder.js +250 -0
- package/DEV-cjs/core/ColorPicker/ColorInputPanel.js +384 -0
- package/DEV-cjs/core/ColorPicker/ColorPalette.js +43 -0
- package/DEV-cjs/core/ColorPicker/ColorPicker.js +79 -0
- package/DEV-cjs/core/ColorPicker/ColorPickerContext.js +26 -0
- package/DEV-cjs/core/ColorPicker/ColorSwatch.js +38 -0
- package/DEV-cjs/core/ComboBox/ComboBox.js +310 -0
- package/DEV-cjs/core/ComboBox/ComboBox.types-test.js +82 -0
- package/DEV-cjs/core/ComboBox/ComboBoxEndIcon.js +31 -0
- package/DEV-cjs/core/ComboBox/ComboBoxInput.js +133 -0
- package/DEV-cjs/core/ComboBox/ComboBoxInputContainer.js +32 -0
- package/DEV-cjs/core/ComboBox/ComboBoxMenu.js +101 -0
- package/DEV-cjs/core/ComboBox/ComboBoxMenuItem.js +48 -0
- package/DEV-cjs/core/ComboBox/ComboBoxMultipleContainer.js +22 -0
- package/DEV-cjs/core/ComboBox/helpers.js +24 -0
- package/DEV-cjs/core/DatePicker/DatePicker.js +382 -0
- package/DEV-cjs/core/Dialog/Dialog.js +65 -0
- package/DEV-cjs/core/Dialog/DialogBackdrop.js +43 -0
- package/DEV-cjs/core/Dialog/DialogButtonBar.js +13 -0
- package/DEV-cjs/core/Dialog/DialogContent.js +13 -0
- package/DEV-cjs/core/Dialog/DialogContext.js +22 -0
- package/DEV-cjs/core/Dialog/DialogDragContext.js +27 -0
- package/DEV-cjs/core/Dialog/DialogMain.js +131 -0
- package/DEV-cjs/core/Dialog/DialogTitleBar.js +41 -0
- package/DEV-cjs/core/Dialog/DialogTitleBarTitle.js +13 -0
- package/DEV-cjs/core/Divider/Divider.js +26 -0
- package/DEV-cjs/core/DropdownMenu/DropdownMenu.js +48 -0
- package/DEV-cjs/core/ExpandableBlock/ExpandableBlock.js +151 -0
- package/DEV-cjs/core/Fieldset/Fieldset.js +27 -0
- package/DEV-cjs/core/FileUpload/FileEmptyCard.js +35 -0
- package/DEV-cjs/core/FileUpload/FileUpload.js +61 -0
- package/DEV-cjs/core/FileUpload/FileUploadCard.js +153 -0
- package/DEV-cjs/core/FileUpload/FileUploadTemplate.js +39 -0
- package/DEV-cjs/core/Flex/Flex.js +88 -0
- package/DEV-cjs/core/Footer/Footer.js +103 -0
- package/DEV-cjs/core/Footer/FooterItem.js +13 -0
- package/DEV-cjs/core/Footer/FooterList.js +13 -0
- package/DEV-cjs/core/Footer/FooterSeparator.js +15 -0
- package/DEV-cjs/core/Header/Header.js +50 -0
- package/DEV-cjs/core/Header/HeaderBasicButton.js +23 -0
- package/DEV-cjs/core/Header/HeaderBreadcrumbs.js +41 -0
- package/DEV-cjs/core/Header/HeaderButton.js +51 -0
- package/DEV-cjs/core/Header/HeaderDropdownButton.js +48 -0
- package/DEV-cjs/core/Header/HeaderLogo.js +34 -0
- package/DEV-cjs/core/Header/HeaderSplitButton.js +53 -0
- package/DEV-cjs/core/Icon/Icon.js +40 -0
- package/DEV-cjs/core/InformationPanel/InformationPanel.js +68 -0
- package/DEV-cjs/core/InformationPanel/InformationPanelBody.js +13 -0
- package/DEV-cjs/core/InformationPanel/InformationPanelContent.js +26 -0
- package/DEV-cjs/core/InformationPanel/InformationPanelHeader.js +36 -0
- package/DEV-cjs/core/InformationPanel/InformationPanelWrapper.js +13 -0
- package/DEV-cjs/core/Input/Input.js +30 -0
- package/DEV-cjs/core/InputGrid/InputGrid.js +125 -0
- package/DEV-cjs/core/InputGroup/InputGroup.js +58 -0
- package/DEV-cjs/core/InputWithDecorations/InputWithDecorations.js +61 -0
- package/DEV-cjs/core/Label/Label.js +29 -0
- package/DEV-cjs/core/LabeledInput/LabeledInput.js +49 -0
- package/DEV-cjs/core/LabeledSelect/LabeledSelect.js +43 -0
- package/DEV-cjs/core/LabeledSelect/LabeledSelect.types-test.js +84 -0
- package/DEV-cjs/core/LabeledTextarea/LabeledTextarea.js +20 -0
- package/DEV-cjs/core/LinkAction/LinkAction.js +36 -0
- package/DEV-cjs/core/List/List.js +15 -0
- package/DEV-cjs/core/List/ListItem.js +45 -0
- package/DEV-cjs/core/Menu/Menu.js +140 -0
- package/DEV-cjs/core/Menu/MenuDivider.js +15 -0
- package/DEV-cjs/core/Menu/MenuExtraContent.js +15 -0
- package/DEV-cjs/core/Menu/MenuItem.js +82 -0
- package/DEV-cjs/core/Menu/MenuItemSkeleton.js +44 -0
- package/DEV-cjs/core/Modal/Modal.js +36 -0
- package/DEV-cjs/core/Modal/ModalButtonBar.js +13 -0
- package/DEV-cjs/core/Modal/ModalContent.js +13 -0
- package/DEV-cjs/core/NonIdealState/ErrorPage.js +133 -0
- package/DEV-cjs/core/NonIdealState/NonIdealState.js +40 -0
- package/DEV-cjs/core/NotificationMarker/NotificationMarker.js +29 -0
- package/DEV-cjs/core/Overlay/Overlay.js +52 -0
- package/DEV-cjs/core/Popover/Popover.js +209 -0
- package/DEV-cjs/core/ProgressIndicators/ProgressLinear.js +38 -0
- package/DEV-cjs/core/ProgressIndicators/ProgressRadial.js +45 -0
- package/DEV-cjs/core/Radio/Radio.js +42 -0
- package/DEV-cjs/core/RadioTiles/RadioTile.js +47 -0
- package/DEV-cjs/core/RadioTiles/RadioTileGroup.js +25 -0
- package/DEV-cjs/core/SearchBox/SearchBox.js +154 -0
- package/DEV-cjs/core/Select/Select.js +300 -0
- package/DEV-cjs/core/Select/Select.types-test.js +90 -0
- package/DEV-cjs/core/Select/SelectTag.js +27 -0
- package/DEV-cjs/core/Select/SelectTagContainer.js +28 -0
- package/DEV-cjs/core/SideNavigation/SideNavigation.js +74 -0
- package/DEV-cjs/core/SideNavigation/SidenavButton.js +37 -0
- package/DEV-cjs/core/SideNavigation/SidenavSubmenu.js +26 -0
- package/DEV-cjs/core/SideNavigation/SidenavSubmenuHeader.js +28 -0
- package/DEV-cjs/core/SkipToContentLink/SkipToContentLink.js +25 -0
- package/DEV-cjs/core/Slider/Slider.js +281 -0
- package/DEV-cjs/core/Slider/Thumb.js +102 -0
- package/DEV-cjs/core/Slider/Track.js +70 -0
- package/DEV-cjs/core/StatusMessage/StatusMessage.js +31 -0
- package/DEV-cjs/core/Stepper/Stepper.js +56 -0
- package/DEV-cjs/core/Stepper/StepperStep.js +64 -0
- package/DEV-cjs/core/Stepper/WorkflowDiagram.js +37 -0
- package/DEV-cjs/core/Stepper/WorkflowDiagramStep.js +32 -0
- package/DEV-cjs/core/Surface/Surface.js +94 -0
- package/DEV-cjs/core/Table/SubRowExpander.js +37 -0
- package/DEV-cjs/core/Table/Table.js +538 -0
- package/DEV-cjs/core/Table/TableCell.js +69 -0
- package/DEV-cjs/core/Table/TablePaginator.js +188 -0
- package/DEV-cjs/core/Table/TableRowMemoized.js +99 -0
- package/DEV-cjs/core/Table/actionHandlers/expandHandler.js +21 -0
- package/DEV-cjs/core/Table/actionHandlers/filterHandler.js +26 -0
- package/DEV-cjs/core/Table/actionHandlers/index.js +37 -0
- package/DEV-cjs/core/Table/actionHandlers/resizeHandler.js +32 -0
- package/DEV-cjs/core/Table/actionHandlers/selectHandler.js +100 -0
- package/DEV-cjs/core/Table/cells/DefaultCell.js +48 -0
- package/DEV-cjs/core/Table/cells/EditableCell.js +67 -0
- package/DEV-cjs/core/Table/cells/index.js +20 -0
- package/DEV-cjs/core/Table/columns/actionColumn.js +81 -0
- package/DEV-cjs/core/Table/columns/expanderColumn.js +57 -0
- package/DEV-cjs/core/Table/columns/index.js +30 -0
- package/DEV-cjs/core/Table/columns/selectionColumn.js +67 -0
- package/DEV-cjs/core/Table/filters/BaseFilter.js +27 -0
- package/DEV-cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +91 -0
- package/DEV-cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +98 -0
- package/DEV-cjs/core/Table/filters/FilterButtonBar.js +38 -0
- package/DEV-cjs/core/Table/filters/FilterToggle.js +60 -0
- package/DEV-cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +65 -0
- package/DEV-cjs/core/Table/filters/TextFilter/TextFilter.js +39 -0
- package/DEV-cjs/core/Table/filters/customFilterFunctions.js +25 -0
- package/DEV-cjs/core/Table/filters/defaultFilterFunctions.js +83 -0
- package/DEV-cjs/core/Table/filters/index.js +28 -0
- package/DEV-cjs/core/Table/filters/tableFilters.js +29 -0
- package/DEV-cjs/core/Table/filters/types.js +4 -0
- package/DEV-cjs/core/Table/hooks/index.js +44 -0
- package/DEV-cjs/core/Table/hooks/useColumnDragAndDrop.js +109 -0
- package/DEV-cjs/core/Table/hooks/useExpanderCell.js +31 -0
- package/DEV-cjs/core/Table/hooks/useResizeColumns.js +269 -0
- package/DEV-cjs/core/Table/hooks/useScrollToRow.js +41 -0
- package/DEV-cjs/core/Table/hooks/useSelectionCell.js +21 -0
- package/DEV-cjs/core/Table/hooks/useStickyColumns.js +57 -0
- package/DEV-cjs/core/Table/hooks/useSubRowFiltering.js +92 -0
- package/DEV-cjs/core/Table/hooks/useSubRowSelection.js +43 -0
- package/DEV-cjs/core/Table/index.js +47 -0
- package/DEV-cjs/core/Table/utils.js +74 -0
- package/DEV-cjs/core/Tabs/Tabs.js +300 -0
- package/DEV-cjs/core/Tag/Tag.js +46 -0
- package/DEV-cjs/core/Tag/TagContainer.js +27 -0
- package/DEV-cjs/core/Textarea/Textarea.js +20 -0
- package/DEV-cjs/core/ThemeProvider/ThemeContext.js +13 -0
- package/DEV-cjs/core/ThemeProvider/ThemeProvider.js +189 -0
- package/DEV-cjs/core/Tile/Tile.js +211 -0
- package/DEV-cjs/core/TimePicker/TimePicker.js +283 -0
- package/DEV-cjs/core/Toast/Toast.js +173 -0
- package/DEV-cjs/core/Toast/Toaster.js +136 -0
- package/DEV-cjs/core/ToggleSwitch/ToggleSwitch.js +46 -0
- package/DEV-cjs/core/Tooltip/Tooltip.js +180 -0
- package/DEV-cjs/core/TransferList/TransferList.js +153 -0
- package/DEV-cjs/core/Tree/Tree.js +198 -0
- package/DEV-cjs/core/Tree/TreeContext.js +26 -0
- package/DEV-cjs/core/Tree/TreeNode.js +153 -0
- package/DEV-cjs/core/Tree/TreeNodeExpander.js +35 -0
- package/DEV-cjs/core/Typography/Anchor.js +31 -0
- package/DEV-cjs/core/Typography/Blockquote.js +25 -0
- package/DEV-cjs/core/Typography/Code.js +13 -0
- package/DEV-cjs/core/Typography/Kbd.js +48 -0
- package/DEV-cjs/core/Typography/Text.js +40 -0
- package/DEV-cjs/core/VisuallyHidden/VisuallyHidden.js +44 -0
- package/DEV-cjs/index.js +481 -0
- package/DEV-cjs/react-table/react-table.js +4 -0
- package/DEV-cjs/react-table/react-table.types-test.js +496 -0
- package/DEV-cjs/styles.js +1 -0
- package/DEV-cjs/utils/color/ColorValue.js +343 -0
- package/DEV-cjs/utils/color/index.js +6 -0
- package/DEV-cjs/utils/components/AutoclearingHiddenLiveRegion.js +29 -0
- package/DEV-cjs/utils/components/Box.js +12 -0
- package/DEV-cjs/utils/components/ButtonBase.js +39 -0
- package/DEV-cjs/utils/components/FieldsetBase.js +12 -0
- package/DEV-cjs/utils/components/FocusTrap.js +48 -0
- package/DEV-cjs/utils/components/InputContainer.js +37 -0
- package/DEV-cjs/utils/components/InputFlexContainer.js +58 -0
- package/DEV-cjs/utils/components/InputWithIcon.js +13 -0
- package/DEV-cjs/utils/components/LineClamp.js +35 -0
- package/DEV-cjs/utils/components/MiddleTextTruncation.js +38 -0
- package/DEV-cjs/utils/components/Portal.js +41 -0
- package/DEV-cjs/utils/components/Resizer.js +226 -0
- package/DEV-cjs/utils/components/ShadowRoot.js +77 -0
- package/DEV-cjs/utils/components/WithCSSTransition.js +53 -0
- package/DEV-cjs/utils/components/index.js +19 -0
- package/DEV-cjs/utils/functions/colors.js +45 -0
- package/DEV-cjs/utils/functions/date.js +18 -0
- package/DEV-cjs/utils/functions/dev.js +31 -0
- package/DEV-cjs/utils/functions/dom.js +47 -0
- package/DEV-cjs/utils/functions/focusable.js +73 -0
- package/DEV-cjs/utils/functions/import.js +27 -0
- package/DEV-cjs/utils/functions/index.js +15 -0
- package/DEV-cjs/utils/functions/numbers.js +32 -0
- package/DEV-cjs/utils/functions/polymorphic.js +48 -0
- package/DEV-cjs/utils/functions/react.js +26 -0
- package/DEV-cjs/utils/functions/supports.js +12 -0
- package/DEV-cjs/utils/hooks/index.js +21 -0
- package/DEV-cjs/utils/hooks/useContainerWidth.js +29 -0
- package/DEV-cjs/utils/hooks/useControlledState.js +30 -0
- package/DEV-cjs/utils/hooks/useDragAndDrop.js +92 -0
- package/DEV-cjs/utils/hooks/useEventListener.js +31 -0
- package/DEV-cjs/utils/hooks/useGlobals.js +51 -0
- package/DEV-cjs/utils/hooks/useId.js +21 -0
- package/DEV-cjs/utils/hooks/useIntersection.js +41 -0
- package/DEV-cjs/utils/hooks/useIsClient.js +19 -0
- package/DEV-cjs/utils/hooks/useIsomorphicLayoutEffect.js +13 -0
- package/DEV-cjs/utils/hooks/useLatestRef.js +21 -0
- package/DEV-cjs/utils/hooks/useMediaQuery.js +26 -0
- package/DEV-cjs/utils/hooks/useMergedRefs.js +29 -0
- package/DEV-cjs/utils/hooks/useOverflow.js +76 -0
- package/DEV-cjs/utils/hooks/useResizeObserver.js +36 -0
- package/DEV-cjs/utils/hooks/useSafeContext.js +17 -0
- package/DEV-cjs/utils/hooks/useSyncExternalStore.js +46 -0
- package/DEV-cjs/utils/hooks/useVirtualScroll.js +38 -0
- package/DEV-cjs/utils/icons/StatusIconMap.js +34 -0
- package/DEV-cjs/utils/icons/Svg.js +16 -0
- package/DEV-cjs/utils/icons/SvgCalendar.js +16 -0
- package/DEV-cjs/utils/icons/SvgCaretDownSmall.js +16 -0
- package/DEV-cjs/utils/icons/SvgCaretRightSmall.js +16 -0
- package/DEV-cjs/utils/icons/SvgCaretUpSmall.js +16 -0
- package/DEV-cjs/utils/icons/SvgCheckmark.js +16 -0
- package/DEV-cjs/utils/icons/SvgCheckmarkSmall.js +16 -0
- package/DEV-cjs/utils/icons/SvgChevronLeft.js +16 -0
- package/DEV-cjs/utils/icons/SvgChevronLeftDouble.js +16 -0
- package/DEV-cjs/utils/icons/SvgChevronRight.js +16 -0
- package/DEV-cjs/utils/icons/SvgChevronRightDouble.js +16 -0
- package/DEV-cjs/utils/icons/SvgChevronRightSmall.js +16 -0
- package/DEV-cjs/utils/icons/SvgClose.js +16 -0
- package/DEV-cjs/utils/icons/SvgCloseSmall.js +16 -0
- package/DEV-cjs/utils/icons/SvgColumnManager.js +16 -0
- package/DEV-cjs/utils/icons/SvgDocument.js +16 -0
- package/DEV-cjs/utils/icons/SvgFilter.js +16 -0
- package/DEV-cjs/utils/icons/SvgFilterHollow.js +16 -0
- package/DEV-cjs/utils/icons/SvgImportantSmall.js +16 -0
- package/DEV-cjs/utils/icons/SvgInfoCircular.js +16 -0
- package/DEV-cjs/utils/icons/SvgMore.js +16 -0
- package/DEV-cjs/utils/icons/SvgMoreVertical.js +16 -0
- package/DEV-cjs/utils/icons/SvgNew.js +16 -0
- package/DEV-cjs/utils/icons/SvgSearch.js +16 -0
- package/DEV-cjs/utils/icons/SvgSmileyHappy.js +16 -0
- package/DEV-cjs/utils/icons/SvgSortDown.js +16 -0
- package/DEV-cjs/utils/icons/SvgSortUp.js +16 -0
- package/DEV-cjs/utils/icons/SvgStatusError.js +16 -0
- package/DEV-cjs/utils/icons/SvgStatusSuccess.js +16 -0
- package/DEV-cjs/utils/icons/SvgStatusWarning.js +16 -0
- package/DEV-cjs/utils/icons/SvgSwap.js +16 -0
- package/DEV-cjs/utils/icons/SvgUpload.js +16 -0
- package/DEV-cjs/utils/icons/index.js +37 -0
- package/DEV-cjs/utils/index.js +13 -0
- package/DEV-cjs/utils/meta.js +16 -0
- package/DEV-cjs/utils/props.js +4 -0
- package/DEV-cjs/utils/providers/HydrationProvider.js +46 -0
- package/DEV-cjs/utils/providers/ScopeProvider.js +64 -0
- package/DEV-cjs/utils/providers/index.js +7 -0
- package/DEV-cjs/utils/types.js +4 -0
- package/DEV-esm/core/Alert/Alert.js +78 -0
- package/DEV-esm/core/Avatar/Avatar.js +35 -0
- package/DEV-esm/core/AvatarGroup/AvatarGroup.js +26 -0
- package/DEV-esm/core/Backdrop/Backdrop.js +14 -0
- package/DEV-esm/core/Badge/Badge.js +36 -0
- package/DEV-esm/core/Breadcrumbs/Breadcrumbs.js +84 -0
- package/DEV-esm/core/ButtonGroup/ButtonGroup.js +71 -0
- package/DEV-esm/core/Buttons/Button.js +42 -0
- package/DEV-esm/core/Buttons/DropdownButton.js +31 -0
- package/DEV-esm/core/Buttons/IconButton.js +34 -0
- package/DEV-esm/core/Buttons/IdeasButton.js +18 -0
- package/DEV-esm/core/Buttons/SplitButton.js +59 -0
- package/DEV-esm/core/Carousel/Carousel.js +62 -0
- package/DEV-esm/core/Carousel/CarouselContext.js +3 -0
- package/DEV-esm/core/Carousel/CarouselDot.js +19 -0
- package/DEV-esm/core/Carousel/CarouselDotsList.js +110 -0
- package/DEV-esm/core/Carousel/CarouselNavigation.js +67 -0
- package/DEV-esm/core/Carousel/CarouselSlide.js +34 -0
- package/DEV-esm/core/Carousel/CarouselSlider.js +53 -0
- package/DEV-esm/core/Checkbox/Checkbox.js +46 -0
- package/DEV-esm/core/ColorPicker/ColorBuilder.js +238 -0
- package/DEV-esm/core/ColorPicker/ColorInputPanel.js +372 -0
- package/DEV-esm/core/ColorPicker/ColorPalette.js +31 -0
- package/DEV-esm/core/ColorPicker/ColorPicker.js +59 -0
- package/DEV-esm/core/ColorPicker/ColorPickerContext.js +7 -0
- package/DEV-esm/core/ColorPicker/ColorSwatch.js +26 -0
- package/DEV-esm/core/ComboBox/ComboBox.js +299 -0
- package/DEV-esm/core/ComboBox/ComboBox.types-test.js +78 -0
- package/DEV-esm/core/ComboBox/ComboBoxEndIcon.js +19 -0
- package/DEV-esm/core/ComboBox/ComboBoxInput.js +122 -0
- package/DEV-esm/core/ComboBox/ComboBoxInputContainer.js +21 -0
- package/DEV-esm/core/ComboBox/ComboBoxMenu.js +89 -0
- package/DEV-esm/core/ComboBox/ComboBoxMenuItem.js +37 -0
- package/DEV-esm/core/ComboBox/ComboBoxMultipleContainer.js +11 -0
- package/DEV-esm/core/ComboBox/helpers.js +5 -0
- package/DEV-esm/core/DatePicker/DatePicker.js +362 -0
- package/DEV-esm/core/Dialog/Dialog.js +53 -0
- package/DEV-esm/core/Dialog/DialogBackdrop.js +31 -0
- package/DEV-esm/core/Dialog/DialogButtonBar.js +3 -0
- package/DEV-esm/core/Dialog/DialogContent.js +3 -0
- package/DEV-esm/core/Dialog/DialogContext.js +3 -0
- package/DEV-esm/core/Dialog/DialogDragContext.js +8 -0
- package/DEV-esm/core/Dialog/DialogMain.js +119 -0
- package/DEV-esm/core/Dialog/DialogTitleBar.js +29 -0
- package/DEV-esm/core/Dialog/DialogTitleBarTitle.js +3 -0
- package/DEV-esm/core/Divider/Divider.js +14 -0
- package/DEV-esm/core/DropdownMenu/DropdownMenu.js +37 -0
- package/DEV-esm/core/ExpandableBlock/ExpandableBlock.js +139 -0
- package/DEV-esm/core/Fieldset/Fieldset.js +15 -0
- package/DEV-esm/core/FileUpload/FileEmptyCard.js +23 -0
- package/DEV-esm/core/FileUpload/FileUpload.js +49 -0
- package/DEV-esm/core/FileUpload/FileUploadCard.js +133 -0
- package/DEV-esm/core/FileUpload/FileUploadTemplate.js +27 -0
- package/DEV-esm/core/Flex/Flex.js +76 -0
- package/DEV-esm/core/Footer/Footer.js +83 -0
- package/DEV-esm/core/Footer/FooterItem.js +3 -0
- package/DEV-esm/core/Footer/FooterList.js +3 -0
- package/DEV-esm/core/Footer/FooterSeparator.js +5 -0
- package/DEV-esm/core/Header/Header.js +38 -0
- package/DEV-esm/core/Header/HeaderBasicButton.js +11 -0
- package/DEV-esm/core/Header/HeaderBreadcrumbs.js +29 -0
- package/DEV-esm/core/Header/HeaderButton.js +40 -0
- package/DEV-esm/core/Header/HeaderDropdownButton.js +36 -0
- package/DEV-esm/core/Header/HeaderLogo.js +22 -0
- package/DEV-esm/core/Header/HeaderSplitButton.js +41 -0
- package/DEV-esm/core/Icon/Icon.js +28 -0
- package/DEV-esm/core/InformationPanel/InformationPanel.js +56 -0
- package/DEV-esm/core/InformationPanel/InformationPanelBody.js +3 -0
- package/DEV-esm/core/InformationPanel/InformationPanelContent.js +14 -0
- package/DEV-esm/core/InformationPanel/InformationPanelHeader.js +24 -0
- package/DEV-esm/core/InformationPanel/InformationPanelWrapper.js +3 -0
- package/DEV-esm/core/Input/Input.js +18 -0
- package/DEV-esm/core/InputGrid/InputGrid.js +113 -0
- package/DEV-esm/core/InputGroup/InputGroup.js +46 -0
- package/DEV-esm/core/InputWithDecorations/InputWithDecorations.js +50 -0
- package/DEV-esm/core/Label/Label.js +17 -0
- package/DEV-esm/core/LabeledInput/LabeledInput.js +37 -0
- package/DEV-esm/core/LabeledSelect/LabeledSelect.js +32 -0
- package/DEV-esm/core/LabeledSelect/LabeledSelect.types-test.js +80 -0
- package/DEV-esm/core/LabeledTextarea/LabeledTextarea.js +9 -0
- package/DEV-esm/core/LinkAction/LinkAction.js +16 -0
- package/DEV-esm/core/List/List.js +5 -0
- package/DEV-esm/core/List/ListItem.js +33 -0
- package/DEV-esm/core/Menu/Menu.js +120 -0
- package/DEV-esm/core/Menu/MenuDivider.js +5 -0
- package/DEV-esm/core/Menu/MenuExtraContent.js +5 -0
- package/DEV-esm/core/Menu/MenuItem.js +70 -0
- package/DEV-esm/core/Menu/MenuItemSkeleton.js +32 -0
- package/DEV-esm/core/Modal/Modal.js +25 -0
- package/DEV-esm/core/Modal/ModalButtonBar.js +3 -0
- package/DEV-esm/core/Modal/ModalContent.js +3 -0
- package/DEV-esm/core/NonIdealState/ErrorPage.js +122 -0
- package/DEV-esm/core/NonIdealState/NonIdealState.js +28 -0
- package/DEV-esm/core/NotificationMarker/NotificationMarker.js +17 -0
- package/DEV-esm/core/Overlay/Overlay.js +41 -0
- package/DEV-esm/core/Popover/Popover.js +186 -0
- package/DEV-esm/core/ProgressIndicators/ProgressLinear.js +26 -0
- package/DEV-esm/core/ProgressIndicators/ProgressRadial.js +33 -0
- package/DEV-esm/core/Radio/Radio.js +30 -0
- package/DEV-esm/core/RadioTiles/RadioTile.js +35 -0
- package/DEV-esm/core/RadioTiles/RadioTileGroup.js +14 -0
- package/DEV-esm/core/SearchBox/SearchBox.js +142 -0
- package/DEV-esm/core/Select/Select.js +288 -0
- package/DEV-esm/core/Select/Select.types-test.js +86 -0
- package/DEV-esm/core/Select/SelectTag.js +15 -0
- package/DEV-esm/core/Select/SelectTagContainer.js +16 -0
- package/DEV-esm/core/SideNavigation/SideNavigation.js +54 -0
- package/DEV-esm/core/SideNavigation/SidenavButton.js +25 -0
- package/DEV-esm/core/SideNavigation/SidenavSubmenu.js +14 -0
- package/DEV-esm/core/SideNavigation/SidenavSubmenuHeader.js +16 -0
- package/DEV-esm/core/SkipToContentLink/SkipToContentLink.js +13 -0
- package/DEV-esm/core/Slider/Slider.js +269 -0
- package/DEV-esm/core/Slider/Thumb.js +90 -0
- package/DEV-esm/core/Slider/Track.js +58 -0
- package/DEV-esm/core/StatusMessage/StatusMessage.js +19 -0
- package/DEV-esm/core/Stepper/Stepper.js +44 -0
- package/DEV-esm/core/Stepper/StepperStep.js +52 -0
- package/DEV-esm/core/Stepper/WorkflowDiagram.js +25 -0
- package/DEV-esm/core/Stepper/WorkflowDiagramStep.js +20 -0
- package/DEV-esm/core/Surface/Surface.js +82 -0
- package/DEV-esm/core/Table/SubRowExpander.js +26 -0
- package/DEV-esm/core/Table/Table.js +518 -0
- package/DEV-esm/core/Table/TableCell.js +57 -0
- package/DEV-esm/core/Table/TablePaginator.js +176 -0
- package/DEV-esm/core/Table/TableRowMemoized.js +79 -0
- package/DEV-esm/core/Table/actionHandlers/expandHandler.js +11 -0
- package/DEV-esm/core/Table/actionHandlers/filterHandler.js +16 -0
- package/DEV-esm/core/Table/actionHandlers/index.js +4 -0
- package/DEV-esm/core/Table/actionHandlers/resizeHandler.js +14 -0
- package/DEV-esm/core/Table/actionHandlers/selectHandler.js +79 -0
- package/DEV-esm/core/Table/cells/DefaultCell.js +36 -0
- package/DEV-esm/core/Table/cells/EditableCell.js +55 -0
- package/DEV-esm/core/Table/cells/index.js +2 -0
- package/DEV-esm/core/Table/columns/actionColumn.js +70 -0
- package/DEV-esm/core/Table/columns/expanderColumn.js +38 -0
- package/DEV-esm/core/Table/columns/index.js +3 -0
- package/DEV-esm/core/Table/columns/selectionColumn.js +48 -0
- package/DEV-esm/core/Table/filters/BaseFilter.js +15 -0
- package/DEV-esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +80 -0
- package/DEV-esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +87 -0
- package/DEV-esm/core/Table/filters/FilterButtonBar.js +26 -0
- package/DEV-esm/core/Table/filters/FilterToggle.js +48 -0
- package/DEV-esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +54 -0
- package/DEV-esm/core/Table/filters/TextFilter/TextFilter.js +28 -0
- package/DEV-esm/core/Table/filters/customFilterFunctions.js +15 -0
- package/DEV-esm/core/Table/filters/defaultFilterFunctions.js +73 -0
- package/DEV-esm/core/Table/filters/index.js +4 -0
- package/DEV-esm/core/Table/filters/tableFilters.js +18 -0
- package/DEV-esm/core/Table/filters/types.js +1 -0
- package/DEV-esm/core/Table/hooks/index.js +8 -0
- package/DEV-esm/core/Table/hooks/useColumnDragAndDrop.js +99 -0
- package/DEV-esm/core/Table/hooks/useExpanderCell.js +20 -0
- package/DEV-esm/core/Table/hooks/useResizeColumns.js +259 -0
- package/DEV-esm/core/Table/hooks/useScrollToRow.js +30 -0
- package/DEV-esm/core/Table/hooks/useSelectionCell.js +11 -0
- package/DEV-esm/core/Table/hooks/useStickyColumns.js +47 -0
- package/DEV-esm/core/Table/hooks/useSubRowFiltering.js +81 -0
- package/DEV-esm/core/Table/hooks/useSubRowSelection.js +32 -0
- package/DEV-esm/core/Table/index.js +5 -0
- package/DEV-esm/core/Table/utils.js +49 -0
- package/DEV-esm/core/Tabs/Tabs.js +281 -0
- package/DEV-esm/core/Tag/Tag.js +34 -0
- package/DEV-esm/core/Tag/TagContainer.js +15 -0
- package/DEV-esm/core/Textarea/Textarea.js +9 -0
- package/DEV-esm/core/ThemeProvider/ThemeContext.js +2 -0
- package/DEV-esm/core/ThemeProvider/ThemeProvider.js +177 -0
- package/DEV-esm/core/Tile/Tile.js +199 -0
- package/DEV-esm/core/TimePicker/TimePicker.js +271 -0
- package/DEV-esm/core/Toast/Toast.js +153 -0
- package/DEV-esm/core/Toast/Toaster.js +110 -0
- package/DEV-esm/core/ToggleSwitch/ToggleSwitch.js +34 -0
- package/DEV-esm/core/Tooltip/Tooltip.js +168 -0
- package/DEV-esm/core/TransferList/TransferList.js +133 -0
- package/DEV-esm/core/Tree/Tree.js +187 -0
- package/DEV-esm/core/Tree/TreeContext.js +7 -0
- package/DEV-esm/core/Tree/TreeNode.js +141 -0
- package/DEV-esm/core/Tree/TreeNodeExpander.js +23 -0
- package/DEV-esm/core/Typography/Anchor.js +19 -0
- package/DEV-esm/core/Typography/Blockquote.js +13 -0
- package/DEV-esm/core/Typography/Code.js +3 -0
- package/DEV-esm/core/Typography/Kbd.js +28 -0
- package/DEV-esm/core/Typography/Text.js +20 -0
- package/DEV-esm/core/VisuallyHidden/VisuallyHidden.js +32 -0
- package/DEV-esm/index.js +106 -0
- package/DEV-esm/react-table/react-table.js +1 -0
- package/DEV-esm/react-table/react-table.types-test.js +491 -0
- package/DEV-esm/styles.js +17 -0
- package/DEV-esm/utils/color/ColorValue.js +319 -0
- package/DEV-esm/utils/color/index.js +1 -0
- package/DEV-esm/utils/components/AutoclearingHiddenLiveRegion.js +18 -0
- package/DEV-esm/utils/components/Box.js +2 -0
- package/DEV-esm/utils/components/ButtonBase.js +27 -0
- package/DEV-esm/utils/components/FieldsetBase.js +2 -0
- package/DEV-esm/utils/components/FocusTrap.js +37 -0
- package/DEV-esm/utils/components/InputContainer.js +25 -0
- package/DEV-esm/utils/components/InputFlexContainer.js +35 -0
- package/DEV-esm/utils/components/InputWithIcon.js +3 -0
- package/DEV-esm/utils/components/LineClamp.js +24 -0
- package/DEV-esm/utils/components/MiddleTextTruncation.js +27 -0
- package/DEV-esm/utils/components/Portal.js +19 -0
- package/DEV-esm/utils/components/Resizer.js +215 -0
- package/DEV-esm/utils/components/ShadowRoot.js +66 -0
- package/DEV-esm/utils/components/WithCSSTransition.js +42 -0
- package/DEV-esm/utils/components/index.js +14 -0
- package/DEV-esm/utils/functions/colors.js +24 -0
- package/DEV-esm/utils/functions/date.js +8 -0
- package/DEV-esm/utils/functions/dev.js +14 -0
- package/DEV-esm/utils/functions/dom.js +20 -0
- package/DEV-esm/utils/functions/focusable.js +51 -0
- package/DEV-esm/utils/functions/import.js +17 -0
- package/DEV-esm/utils/functions/index.js +10 -0
- package/DEV-esm/utils/functions/numbers.js +11 -0
- package/DEV-esm/utils/functions/polymorphic.js +36 -0
- package/DEV-esm/utils/functions/react.js +15 -0
- package/DEV-esm/utils/functions/supports.js +2 -0
- package/DEV-esm/utils/hooks/index.js +16 -0
- package/DEV-esm/utils/hooks/useContainerWidth.js +18 -0
- package/DEV-esm/utils/hooks/useControlledState.js +19 -0
- package/DEV-esm/utils/hooks/useDragAndDrop.js +81 -0
- package/DEV-esm/utils/hooks/useEventListener.js +20 -0
- package/DEV-esm/utils/hooks/useGlobals.js +32 -0
- package/DEV-esm/utils/hooks/useId.js +10 -0
- package/DEV-esm/utils/hooks/useIntersection.js +30 -0
- package/DEV-esm/utils/hooks/useIsClient.js +8 -0
- package/DEV-esm/utils/hooks/useIsomorphicLayoutEffect.js +3 -0
- package/DEV-esm/utils/hooks/useLatestRef.js +10 -0
- package/DEV-esm/utils/hooks/useMediaQuery.js +15 -0
- package/DEV-esm/utils/hooks/useMergedRefs.js +10 -0
- package/DEV-esm/utils/hooks/useOverflow.js +65 -0
- package/DEV-esm/utils/hooks/useResizeObserver.js +25 -0
- package/DEV-esm/utils/hooks/useSafeContext.js +6 -0
- package/DEV-esm/utils/hooks/useSyncExternalStore.js +35 -0
- package/DEV-esm/utils/hooks/useVirtualScroll.js +27 -0
- package/DEV-esm/utils/icons/StatusIconMap.js +23 -0
- package/DEV-esm/utils/icons/Svg.js +6 -0
- package/DEV-esm/utils/icons/SvgCalendar.js +5 -0
- package/DEV-esm/utils/icons/SvgCaretDownSmall.js +5 -0
- package/DEV-esm/utils/icons/SvgCaretRightSmall.js +5 -0
- package/DEV-esm/utils/icons/SvgCaretUpSmall.js +5 -0
- package/DEV-esm/utils/icons/SvgCheckmark.js +5 -0
- package/DEV-esm/utils/icons/SvgCheckmarkSmall.js +5 -0
- package/DEV-esm/utils/icons/SvgChevronLeft.js +5 -0
- package/DEV-esm/utils/icons/SvgChevronLeftDouble.js +5 -0
- package/DEV-esm/utils/icons/SvgChevronRight.js +5 -0
- package/DEV-esm/utils/icons/SvgChevronRightDouble.js +5 -0
- package/DEV-esm/utils/icons/SvgChevronRightSmall.js +5 -0
- package/DEV-esm/utils/icons/SvgClose.js +5 -0
- package/DEV-esm/utils/icons/SvgCloseSmall.js +5 -0
- package/DEV-esm/utils/icons/SvgColumnManager.js +5 -0
- package/DEV-esm/utils/icons/SvgDocument.js +5 -0
- package/DEV-esm/utils/icons/SvgFilter.js +5 -0
- package/DEV-esm/utils/icons/SvgFilterHollow.js +5 -0
- package/DEV-esm/utils/icons/SvgImportantSmall.js +5 -0
- package/DEV-esm/utils/icons/SvgInfoCircular.js +5 -0
- package/DEV-esm/utils/icons/SvgMore.js +5 -0
- package/DEV-esm/utils/icons/SvgMoreVertical.js +5 -0
- package/DEV-esm/utils/icons/SvgNew.js +5 -0
- package/DEV-esm/utils/icons/SvgSearch.js +5 -0
- package/DEV-esm/utils/icons/SvgSmileyHappy.js +5 -0
- package/DEV-esm/utils/icons/SvgSortDown.js +5 -0
- package/DEV-esm/utils/icons/SvgSortUp.js +5 -0
- package/DEV-esm/utils/icons/SvgStatusError.js +5 -0
- package/DEV-esm/utils/icons/SvgStatusSuccess.js +5 -0
- package/DEV-esm/utils/icons/SvgStatusWarning.js +5 -0
- package/DEV-esm/utils/icons/SvgSwap.js +5 -0
- package/DEV-esm/utils/icons/SvgUpload.js +5 -0
- package/DEV-esm/utils/icons/index.js +32 -0
- package/DEV-esm/utils/index.js +8 -0
- package/DEV-esm/utils/meta.js +6 -0
- package/DEV-esm/utils/props.js +1 -0
- package/DEV-esm/utils/providers/HydrationProvider.js +27 -0
- package/DEV-esm/utils/providers/ScopeProvider.js +42 -0
- package/DEV-esm/utils/providers/index.js +2 -0
- package/DEV-esm/utils/types.js +1 -0
- package/cjs/core/Alert/Alert.js +11 -17
- package/cjs/core/Avatar/Avatar.js +5 -7
- package/cjs/core/AvatarGroup/AvatarGroup.js +8 -9
- package/cjs/core/Backdrop/Backdrop.js +1 -1
- package/cjs/core/Badge/Badge.js +8 -10
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +14 -20
- package/cjs/core/ButtonGroup/ButtonGroup.js +18 -24
- package/cjs/core/Buttons/Button.js +7 -7
- package/cjs/core/Buttons/DropdownButton.js +2 -2
- package/cjs/core/Buttons/IconButton.js +7 -7
- package/cjs/core/Buttons/IdeasButton.js +1 -1
- package/cjs/core/Buttons/SplitButton.js +9 -12
- package/cjs/core/Carousel/Carousel.js +10 -10
- package/cjs/core/Carousel/CarouselContext.js +1 -1
- package/cjs/core/Carousel/CarouselDot.js +1 -1
- package/cjs/core/Carousel/CarouselDotsList.js +59 -68
- package/cjs/core/Carousel/CarouselNavigation.js +9 -11
- package/cjs/core/Carousel/CarouselSlide.js +11 -15
- package/cjs/core/Carousel/CarouselSlider.js +13 -19
- package/cjs/core/Checkbox/Checkbox.js +13 -14
- package/cjs/core/ColorPicker/ColorBuilder.js +44 -57
- package/cjs/core/ColorPicker/ColorInputPanel.js +65 -92
- package/cjs/core/ColorPicker/ColorPalette.js +3 -3
- package/cjs/core/ColorPicker/ColorPicker.js +11 -19
- package/cjs/core/ColorPicker/ColorPickerContext.js +3 -4
- package/cjs/core/ColorPicker/ColorSwatch.js +5 -5
- package/cjs/core/ComboBox/ComboBox.js +80 -115
- package/cjs/core/ComboBox/ComboBox.types-test.js +14 -17
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +1 -2
- package/cjs/core/ComboBox/ComboBoxInput.js +39 -68
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +3 -4
- package/cjs/core/ComboBox/ComboBoxMenu.js +76 -44
- package/cjs/core/ComboBox/ComboBoxMenuItem.js +7 -9
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.js +1 -2
- package/cjs/core/ComboBox/helpers.js +2 -4
- package/cjs/core/DatePicker/DatePicker.js +132 -167
- package/cjs/core/Dialog/Dialog.js +3 -3
- package/cjs/core/Dialog/DialogBackdrop.js +8 -12
- package/cjs/core/Dialog/DialogContext.js +2 -4
- package/cjs/core/Dialog/DialogDragContext.js +2 -2
- package/cjs/core/Dialog/DialogMain.js +26 -40
- package/cjs/core/Dialog/DialogTitleBar.js +3 -3
- package/cjs/core/Dialog/DialogTitleBarTitle.d.ts +3 -1
- package/cjs/core/Divider/Divider.js +2 -2
- package/cjs/core/DropdownMenu/DropdownMenu.js +10 -15
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +21 -37
- package/cjs/core/Fieldset/Fieldset.js +2 -3
- package/cjs/core/FileUpload/FileEmptyCard.js +1 -1
- package/cjs/core/FileUpload/FileUpload.js +8 -10
- package/cjs/core/FileUpload/FileUploadCard.js +25 -40
- package/cjs/core/FileUpload/FileUploadTemplate.js +1 -1
- package/cjs/core/Flex/Flex.js +7 -12
- package/cjs/core/Footer/Footer.js +10 -11
- package/cjs/core/Header/Header.js +3 -3
- package/cjs/core/Header/HeaderBasicButton.js +1 -3
- package/cjs/core/Header/HeaderBreadcrumbs.js +1 -1
- package/cjs/core/Header/HeaderButton.js +7 -7
- package/cjs/core/Header/HeaderDropdownButton.js +6 -8
- package/cjs/core/Header/HeaderLogo.js +3 -3
- package/cjs/core/Header/HeaderSplitButton.js +5 -7
- package/cjs/core/Icon/Icon.js +2 -2
- package/cjs/core/InformationPanel/InformationPanel.js +25 -33
- package/cjs/core/InformationPanel/InformationPanelContent.js +2 -2
- package/cjs/core/InformationPanel/InformationPanelHeader.js +1 -1
- package/cjs/core/Input/Input.js +3 -3
- package/cjs/core/InputGrid/InputGrid.js +40 -71
- package/cjs/core/InputGroup/InputGroup.js +5 -8
- package/cjs/core/InputWithDecorations/InputWithDecorations.js +6 -9
- package/cjs/core/Label/Label.js +3 -3
- package/cjs/core/LabeledInput/LabeledInput.js +4 -4
- package/cjs/core/LabeledSelect/LabeledSelect.js +4 -6
- package/cjs/core/LabeledSelect/LabeledSelect.types-test.js +11 -14
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +4 -4
- package/cjs/core/LinkAction/LinkAction.js +1 -3
- package/cjs/core/List/List.js +0 -1
- package/cjs/core/List/ListItem.js +6 -11
- package/cjs/core/Menu/Menu.js +32 -38
- package/cjs/core/Menu/MenuItem.js +18 -24
- package/cjs/core/Menu/MenuItemSkeleton.js +2 -4
- package/cjs/core/Modal/Modal.js +1 -1
- package/cjs/core/NonIdealState/ErrorPage.js +26 -52
- package/cjs/core/NonIdealState/NonIdealState.js +1 -1
- package/cjs/core/NotificationMarker/NotificationMarker.js +1 -1
- package/cjs/core/Overlay/Overlay.js +10 -12
- package/cjs/core/Popover/Popover.js +35 -41
- package/cjs/core/ProgressIndicators/ProgressLinear.js +6 -6
- package/cjs/core/ProgressIndicators/ProgressRadial.js +7 -9
- package/cjs/core/Radio/Radio.js +8 -8
- package/cjs/core/RadioTiles/RadioTile.js +4 -4
- package/cjs/core/RadioTiles/RadioTileGroup.js +1 -1
- package/cjs/core/SearchBox/SearchBox.js +24 -42
- package/cjs/core/Select/Select.js +130 -142
- package/cjs/core/Select/Select.types-test.js +13 -17
- package/cjs/core/Select/SelectTag.js +1 -1
- package/cjs/core/Select/SelectTagContainer.js +3 -3
- package/cjs/core/SideNavigation/SideNavigation.js +6 -6
- package/cjs/core/SideNavigation/SidenavButton.js +8 -8
- package/cjs/core/SideNavigation/SidenavSubmenu.js +1 -1
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +1 -1
- package/cjs/core/SkipToContentLink/SkipToContentLink.js +1 -1
- package/cjs/core/Slider/Slider.js +58 -83
- package/cjs/core/Slider/Thumb.js +13 -21
- package/cjs/core/Slider/Track.js +10 -14
- package/cjs/core/StatusMessage/StatusMessage.js +3 -3
- package/cjs/core/Stepper/Stepper.js +8 -8
- package/cjs/core/Stepper/StepperStep.js +15 -22
- package/cjs/core/Stepper/WorkflowDiagram.js +2 -2
- package/cjs/core/Stepper/WorkflowDiagramStep.js +2 -2
- package/cjs/core/Surface/Surface.d.ts +1 -0
- package/cjs/core/Surface/Surface.js +15 -24
- package/cjs/core/Table/SubRowExpander.js +3 -3
- package/cjs/core/Table/Table.d.ts +4 -1
- package/cjs/core/Table/Table.js +256 -244
- package/cjs/core/Table/TableCell.js +12 -14
- package/cjs/core/Table/TablePaginator.js +38 -55
- package/cjs/core/Table/TableRowMemoized.d.ts +3 -0
- package/cjs/core/Table/TableRowMemoized.js +43 -35
- package/cjs/core/Table/actionHandlers/expandHandler.js +2 -4
- package/cjs/core/Table/actionHandlers/filterHandler.js +3 -3
- package/cjs/core/Table/actionHandlers/resizeHandler.js +13 -17
- package/cjs/core/Table/actionHandlers/selectHandler.js +20 -29
- package/cjs/core/Table/cells/DefaultCell.d.ts +4 -1
- package/cjs/core/Table/cells/DefaultCell.js +5 -5
- package/cjs/core/Table/cells/EditableCell.d.ts +4 -1
- package/cjs/core/Table/cells/EditableCell.js +7 -13
- package/cjs/core/Table/columns/actionColumn.d.ts +2 -2
- package/cjs/core/Table/columns/actionColumn.js +79 -88
- package/cjs/core/Table/columns/expanderColumn.js +4 -6
- package/cjs/core/Table/columns/selectionColumn.js +8 -10
- package/cjs/core/Table/filters/BaseFilter.js +1 -1
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +16 -25
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +17 -29
- package/cjs/core/Table/filters/FilterButtonBar.js +2 -2
- package/cjs/core/Table/filters/FilterToggle.js +8 -8
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +11 -17
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +7 -13
- package/cjs/core/Table/filters/customFilterFunctions.js +11 -12
- package/cjs/core/Table/filters/defaultFilterFunctions.js +69 -78
- package/cjs/core/Table/hooks/useColumnDragAndDrop.js +20 -26
- package/cjs/core/Table/hooks/useExpanderCell.js +4 -8
- package/cjs/core/Table/hooks/useResizeColumns.js +63 -100
- package/cjs/core/Table/hooks/useScrollToRow.js +13 -20
- package/cjs/core/Table/hooks/useSelectionCell.js +2 -4
- package/cjs/core/Table/hooks/useStickyColumns.js +10 -23
- package/cjs/core/Table/hooks/useSubRowFiltering.js +20 -34
- package/cjs/core/Table/hooks/useSubRowSelection.js +4 -5
- package/cjs/core/Table/utils.js +18 -31
- package/cjs/core/Tabs/Tabs.js +70 -102
- package/cjs/core/Tag/Tag.js +8 -8
- package/cjs/core/Tag/TagContainer.js +2 -2
- package/cjs/core/Textarea/Textarea.js +4 -4
- package/cjs/core/ThemeProvider/ThemeContext.js +1 -1
- package/cjs/core/ThemeProvider/ThemeProvider.js +60 -56
- package/cjs/core/Tile/Tile.js +27 -52
- package/cjs/core/TimePicker/TimePicker.js +82 -111
- package/cjs/core/Toast/Toast.js +30 -39
- package/cjs/core/Toast/Toaster.js +19 -25
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +5 -5
- package/cjs/core/Tooltip/Tooltip.js +30 -39
- package/cjs/core/TransferList/TransferList.js +33 -51
- package/cjs/core/Tree/Tree.d.ts +4 -1
- package/cjs/core/Tree/Tree.js +97 -77
- package/cjs/core/Tree/TreeContext.js +3 -4
- package/cjs/core/Tree/TreeNode.d.ts +2 -2
- package/cjs/core/Tree/TreeNode.js +22 -37
- package/cjs/core/Tree/TreeNodeExpander.js +4 -4
- package/cjs/core/Typography/Anchor.js +4 -4
- package/cjs/core/Typography/Blockquote.js +1 -1
- package/cjs/core/Typography/Kbd.js +1 -1
- package/cjs/core/Typography/Text.js +3 -3
- package/cjs/core/VisuallyHidden/VisuallyHidden.js +7 -7
- package/cjs/react-table/react-table.types-test.js +110 -115
- package/cjs/styles.js +5 -5
- package/cjs/utils/color/ColorValue.js +114 -161
- package/cjs/utils/components/AutoclearingHiddenLiveRegion.js +2 -2
- package/cjs/utils/components/ButtonBase.js +10 -13
- package/cjs/utils/components/FieldsetBase.d.ts +6 -0
- package/cjs/utils/components/FieldsetBase.js +12 -0
- package/cjs/utils/components/FocusTrap.js +14 -20
- package/cjs/utils/components/InputContainer.js +3 -3
- package/cjs/utils/components/InputFlexContainer.js +4 -5
- package/cjs/utils/components/InputWithIcon.js +0 -1
- package/cjs/utils/components/LineClamp.js +1 -1
- package/cjs/utils/components/MiddleTextTruncation.d.ts +4 -1
- package/cjs/utils/components/MiddleTextTruncation.js +5 -7
- package/cjs/utils/components/Portal.js +8 -12
- package/cjs/utils/components/Resizer.js +33 -49
- package/cjs/utils/components/ShadowRoot.js +19 -28
- package/cjs/utils/components/WithCSSTransition.js +4 -5
- package/cjs/utils/components/index.d.ts +1 -1
- package/cjs/utils/components/index.js +1 -1
- package/cjs/utils/functions/colors.js +4 -5
- package/cjs/utils/functions/date.js +3 -5
- package/cjs/utils/functions/dev.d.ts +11 -5
- package/cjs/utils/functions/dev.js +6 -23
- package/cjs/utils/functions/dom.js +7 -16
- package/cjs/utils/functions/focusable.js +18 -22
- package/cjs/utils/functions/import.js +1 -1
- package/cjs/utils/functions/numbers.js +5 -8
- package/cjs/utils/functions/polymorphic.js +31 -43
- package/cjs/utils/functions/react.js +4 -8
- package/cjs/utils/hooks/index.d.ts +1 -0
- package/cjs/utils/hooks/index.js +1 -0
- package/cjs/utils/hooks/useContainerWidth.js +8 -12
- package/cjs/utils/hooks/useControlledState.js +4 -5
- package/cjs/utils/hooks/useDragAndDrop.js +31 -42
- package/cjs/utils/hooks/useEventListener.js +3 -5
- package/cjs/utils/hooks/useGlobals.js +3 -22
- package/cjs/utils/hooks/useId.js +1 -1
- package/cjs/utils/hooks/useIntersection.js +6 -10
- package/cjs/utils/hooks/useIsClient.js +1 -1
- package/cjs/utils/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/cjs/utils/hooks/useLatestRef.js +1 -1
- package/cjs/utils/hooks/useMediaQuery.js +10 -8
- package/cjs/utils/hooks/useMergedRefs.js +7 -11
- package/cjs/utils/hooks/useOverflow.js +23 -25
- package/cjs/utils/hooks/useResizeObserver.js +5 -9
- package/cjs/utils/hooks/useSafeContext.js +3 -4
- package/cjs/utils/hooks/useSyncExternalStore.js +5 -7
- package/cjs/utils/hooks/useVirtualScroll.d.ts +14 -0
- package/cjs/utils/hooks/useVirtualScroll.js +39 -0
- package/cjs/utils/icons/SvgCalendar.js +2 -3
- package/cjs/utils/icons/SvgCaretDownSmall.js +2 -3
- package/cjs/utils/icons/SvgCaretRightSmall.js +2 -3
- package/cjs/utils/icons/SvgCaretUpSmall.js +2 -3
- package/cjs/utils/icons/SvgCheckmark.js +2 -3
- package/cjs/utils/icons/SvgCheckmarkSmall.js +2 -3
- package/cjs/utils/icons/SvgChevronLeft.js +2 -3
- package/cjs/utils/icons/SvgChevronLeftDouble.js +2 -3
- package/cjs/utils/icons/SvgChevronRight.js +2 -3
- package/cjs/utils/icons/SvgChevronRightDouble.js +2 -3
- package/cjs/utils/icons/SvgChevronRightSmall.js +2 -3
- package/cjs/utils/icons/SvgClose.js +2 -3
- package/cjs/utils/icons/SvgCloseSmall.js +2 -3
- package/cjs/utils/icons/SvgColumnManager.js +2 -3
- package/cjs/utils/icons/SvgDocument.js +2 -3
- package/cjs/utils/icons/SvgFilter.js +2 -3
- package/cjs/utils/icons/SvgFilterHollow.js +2 -3
- package/cjs/utils/icons/SvgImportantSmall.js +2 -3
- package/cjs/utils/icons/SvgInfoCircular.js +2 -3
- package/cjs/utils/icons/SvgMore.js +2 -3
- package/cjs/utils/icons/SvgMoreVertical.js +2 -3
- package/cjs/utils/icons/SvgNew.js +2 -3
- package/cjs/utils/icons/SvgSearch.js +2 -3
- package/cjs/utils/icons/SvgSmileyHappy.js +2 -3
- package/cjs/utils/icons/SvgSortDown.js +2 -3
- package/cjs/utils/icons/SvgSortUp.js +2 -3
- package/cjs/utils/icons/SvgStatusError.js +2 -3
- package/cjs/utils/icons/SvgStatusSuccess.js +2 -3
- package/cjs/utils/icons/SvgStatusWarning.js +2 -3
- package/cjs/utils/icons/SvgSwap.js +2 -3
- package/cjs/utils/icons/SvgUpload.js +2 -3
- package/cjs/utils/meta.js +1 -1
- package/cjs/utils/providers/HydrationProvider.js +12 -16
- package/cjs/utils/providers/ScopeProvider.js +8 -10
- package/esm/core/Alert/Alert.js +17 -23
- package/esm/core/Avatar/Avatar.js +6 -8
- package/esm/core/AvatarGroup/AvatarGroup.js +8 -9
- package/esm/core/Backdrop/Backdrop.js +1 -1
- package/esm/core/Badge/Badge.js +10 -12
- package/esm/core/Breadcrumbs/Breadcrumbs.js +18 -24
- package/esm/core/ButtonGroup/ButtonGroup.js +20 -26
- package/esm/core/Buttons/Button.js +7 -7
- package/esm/core/Buttons/DropdownButton.js +2 -2
- package/esm/core/Buttons/IconButton.js +7 -7
- package/esm/core/Buttons/IdeasButton.js +1 -1
- package/esm/core/Buttons/SplitButton.js +9 -12
- package/esm/core/Carousel/Carousel.js +11 -11
- package/esm/core/Carousel/CarouselContext.js +1 -1
- package/esm/core/Carousel/CarouselDot.js +1 -1
- package/esm/core/Carousel/CarouselDotsList.js +59 -68
- package/esm/core/Carousel/CarouselNavigation.js +12 -14
- package/esm/core/Carousel/CarouselSlide.js +11 -15
- package/esm/core/Carousel/CarouselSlider.js +13 -20
- package/esm/core/Checkbox/Checkbox.js +13 -14
- package/esm/core/ColorPicker/ColorBuilder.js +46 -59
- package/esm/core/ColorPicker/ColorInputPanel.js +65 -92
- package/esm/core/ColorPicker/ColorPalette.js +3 -3
- package/esm/core/ColorPicker/ColorPicker.js +11 -18
- package/esm/core/ColorPicker/ColorPickerContext.js +3 -4
- package/esm/core/ColorPicker/ColorSwatch.js +5 -7
- package/esm/core/ComboBox/ComboBox.js +80 -115
- package/esm/core/ComboBox/ComboBox.types-test.js +14 -17
- package/esm/core/ComboBox/ComboBoxEndIcon.js +1 -2
- package/esm/core/ComboBox/ComboBoxInput.js +39 -68
- package/esm/core/ComboBox/ComboBoxInputContainer.js +3 -4
- package/esm/core/ComboBox/ComboBoxMenu.js +80 -45
- package/esm/core/ComboBox/ComboBoxMenuItem.js +7 -9
- package/esm/core/ComboBox/ComboBoxMultipleContainer.js +1 -2
- package/esm/core/ComboBox/helpers.js +2 -4
- package/esm/core/DatePicker/DatePicker.js +136 -171
- package/esm/core/Dialog/Dialog.js +4 -4
- package/esm/core/Dialog/DialogBackdrop.js +8 -12
- package/esm/core/Dialog/DialogContext.js +2 -4
- package/esm/core/Dialog/DialogDragContext.js +2 -2
- package/esm/core/Dialog/DialogMain.js +26 -40
- package/esm/core/Dialog/DialogTitleBar.js +3 -3
- package/esm/core/Dialog/DialogTitleBarTitle.d.ts +3 -1
- package/esm/core/Divider/Divider.js +2 -2
- package/esm/core/DropdownMenu/DropdownMenu.js +11 -16
- package/esm/core/ExpandableBlock/ExpandableBlock.js +30 -42
- package/esm/core/Fieldset/Fieldset.js +3 -4
- package/esm/core/FileUpload/FileEmptyCard.js +4 -4
- package/esm/core/FileUpload/FileUpload.js +8 -10
- package/esm/core/FileUpload/FileUploadCard.js +35 -50
- package/esm/core/FileUpload/FileUploadTemplate.js +1 -1
- package/esm/core/Flex/Flex.js +12 -17
- package/esm/core/Footer/Footer.js +11 -12
- package/esm/core/Header/Header.js +4 -4
- package/esm/core/Header/HeaderBasicButton.js +1 -3
- package/esm/core/Header/HeaderBreadcrumbs.js +1 -1
- package/esm/core/Header/HeaderButton.js +7 -7
- package/esm/core/Header/HeaderDropdownButton.js +6 -8
- package/esm/core/Header/HeaderLogo.js +3 -3
- package/esm/core/Header/HeaderSplitButton.js +5 -7
- package/esm/core/Icon/Icon.js +3 -3
- package/esm/core/InformationPanel/InformationPanel.js +25 -33
- package/esm/core/InformationPanel/InformationPanelContent.js +2 -2
- package/esm/core/InformationPanel/InformationPanelHeader.js +1 -1
- package/esm/core/Input/Input.js +3 -3
- package/esm/core/InputGrid/InputGrid.js +43 -75
- package/esm/core/InputGroup/InputGroup.js +6 -9
- package/esm/core/InputWithDecorations/InputWithDecorations.js +10 -13
- package/esm/core/Label/Label.js +3 -3
- package/esm/core/LabeledInput/LabeledInput.js +4 -4
- package/esm/core/LabeledSelect/LabeledSelect.js +4 -6
- package/esm/core/LabeledSelect/LabeledSelect.types-test.js +11 -14
- package/esm/core/LabeledTextarea/LabeledTextarea.js +4 -4
- package/esm/core/LinkAction/LinkAction.js +1 -3
- package/esm/core/List/List.js +0 -1
- package/esm/core/List/ListItem.js +11 -16
- package/esm/core/Menu/Menu.js +40 -48
- package/esm/core/Menu/MenuItem.js +18 -24
- package/esm/core/Menu/MenuItemSkeleton.js +2 -4
- package/esm/core/Modal/Modal.js +1 -1
- package/esm/core/NonIdealState/ErrorPage.js +35 -61
- package/esm/core/NonIdealState/NonIdealState.js +1 -1
- package/esm/core/NotificationMarker/NotificationMarker.js +1 -1
- package/esm/core/Overlay/Overlay.js +16 -16
- package/esm/core/Popover/Popover.js +36 -42
- package/esm/core/ProgressIndicators/ProgressLinear.js +6 -6
- package/esm/core/ProgressIndicators/ProgressRadial.js +7 -9
- package/esm/core/Radio/Radio.js +8 -8
- package/esm/core/RadioTiles/RadioTile.js +4 -4
- package/esm/core/RadioTiles/RadioTileGroup.js +1 -1
- package/esm/core/SearchBox/SearchBox.js +32 -46
- package/esm/core/Select/Select.js +137 -149
- package/esm/core/Select/Select.types-test.js +13 -17
- package/esm/core/Select/SelectTag.js +1 -1
- package/esm/core/Select/SelectTagContainer.js +3 -3
- package/esm/core/SideNavigation/SideNavigation.js +6 -6
- package/esm/core/SideNavigation/SidenavButton.js +7 -7
- package/esm/core/SideNavigation/SidenavSubmenu.js +1 -1
- package/esm/core/SideNavigation/SidenavSubmenuHeader.js +1 -1
- package/esm/core/SkipToContentLink/SkipToContentLink.js +1 -1
- package/esm/core/Slider/Slider.js +63 -84
- package/esm/core/Slider/Thumb.js +13 -21
- package/esm/core/Slider/Track.js +10 -14
- package/esm/core/StatusMessage/StatusMessage.js +3 -3
- package/esm/core/Stepper/Stepper.js +9 -9
- package/esm/core/Stepper/StepperStep.js +15 -22
- package/esm/core/Stepper/WorkflowDiagram.js +2 -2
- package/esm/core/Stepper/WorkflowDiagramStep.js +2 -2
- package/esm/core/Surface/Surface.d.ts +1 -0
- package/esm/core/Surface/Surface.js +19 -28
- package/esm/core/Table/SubRowExpander.js +3 -3
- package/esm/core/Table/Table.d.ts +4 -1
- package/esm/core/Table/Table.js +262 -249
- package/esm/core/Table/TableCell.js +12 -14
- package/esm/core/Table/TablePaginator.js +39 -56
- package/esm/core/Table/TableRowMemoized.d.ts +3 -0
- package/esm/core/Table/TableRowMemoized.js +48 -36
- package/esm/core/Table/actionHandlers/expandHandler.js +2 -4
- package/esm/core/Table/actionHandlers/filterHandler.js +3 -3
- package/esm/core/Table/actionHandlers/resizeHandler.js +13 -17
- package/esm/core/Table/actionHandlers/selectHandler.js +22 -31
- package/esm/core/Table/cells/DefaultCell.d.ts +4 -1
- package/esm/core/Table/cells/DefaultCell.js +5 -5
- package/esm/core/Table/cells/EditableCell.d.ts +4 -1
- package/esm/core/Table/cells/EditableCell.js +7 -15
- package/esm/core/Table/columns/actionColumn.d.ts +2 -2
- package/esm/core/Table/columns/actionColumn.js +81 -90
- package/esm/core/Table/columns/expanderColumn.js +4 -6
- package/esm/core/Table/columns/selectionColumn.js +8 -10
- package/esm/core/Table/filters/BaseFilter.js +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +16 -25
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +20 -32
- package/esm/core/Table/filters/FilterButtonBar.js +3 -3
- package/esm/core/Table/filters/FilterToggle.js +8 -8
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +12 -18
- package/esm/core/Table/filters/TextFilter/TextFilter.js +7 -13
- package/esm/core/Table/filters/customFilterFunctions.js +13 -14
- package/esm/core/Table/filters/defaultFilterFunctions.js +71 -80
- package/esm/core/Table/hooks/useColumnDragAndDrop.js +24 -30
- package/esm/core/Table/hooks/useExpanderCell.js +4 -8
- package/esm/core/Table/hooks/useResizeColumns.js +74 -111
- package/esm/core/Table/hooks/useScrollToRow.js +13 -20
- package/esm/core/Table/hooks/useSelectionCell.js +2 -4
- package/esm/core/Table/hooks/useStickyColumns.js +12 -25
- package/esm/core/Table/hooks/useSubRowFiltering.js +22 -36
- package/esm/core/Table/hooks/useSubRowSelection.js +5 -6
- package/esm/core/Table/utils.js +18 -31
- package/esm/core/Tabs/Tabs.js +79 -109
- package/esm/core/Tag/Tag.js +8 -8
- package/esm/core/Tag/TagContainer.js +2 -2
- package/esm/core/Textarea/Textarea.js +4 -4
- package/esm/core/ThemeProvider/ThemeContext.js +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.js +61 -63
- package/esm/core/Tile/Tile.js +44 -69
- package/esm/core/TimePicker/TimePicker.js +87 -116
- package/esm/core/Toast/Toast.js +31 -40
- package/esm/core/Toast/Toaster.js +21 -27
- package/esm/core/ToggleSwitch/ToggleSwitch.js +5 -5
- package/esm/core/Tooltip/Tooltip.js +31 -39
- package/esm/core/TransferList/TransferList.js +39 -55
- package/esm/core/Tree/Tree.d.ts +4 -1
- package/esm/core/Tree/Tree.js +100 -79
- package/esm/core/Tree/TreeContext.js +3 -4
- package/esm/core/Tree/TreeNode.d.ts +2 -2
- package/esm/core/Tree/TreeNode.js +22 -37
- package/esm/core/Tree/TreeNodeExpander.js +3 -3
- package/esm/core/Typography/Anchor.js +4 -4
- package/esm/core/Typography/Blockquote.js +1 -1
- package/esm/core/Typography/Kbd.js +1 -1
- package/esm/core/Typography/Text.js +3 -3
- package/esm/core/VisuallyHidden/VisuallyHidden.js +8 -8
- package/esm/react-table/react-table.types-test.js +93 -96
- package/esm/styles.js +2 -2
- package/esm/utils/color/ColorValue.js +116 -163
- package/esm/utils/components/AutoclearingHiddenLiveRegion.js +2 -2
- package/esm/utils/components/ButtonBase.js +10 -13
- package/esm/utils/components/FieldsetBase.d.ts +6 -0
- package/esm/utils/components/FieldsetBase.js +2 -0
- package/esm/utils/components/FocusTrap.js +14 -20
- package/esm/utils/components/InputContainer.js +3 -3
- package/esm/utils/components/InputFlexContainer.js +4 -5
- package/esm/utils/components/InputWithIcon.js +0 -1
- package/esm/utils/components/LineClamp.js +2 -2
- package/esm/utils/components/MiddleTextTruncation.d.ts +4 -1
- package/esm/utils/components/MiddleTextTruncation.js +6 -8
- package/esm/utils/components/Portal.js +8 -12
- package/esm/utils/components/Resizer.js +38 -53
- package/esm/utils/components/ShadowRoot.js +22 -31
- package/esm/utils/components/WithCSSTransition.js +4 -5
- package/esm/utils/components/index.d.ts +1 -1
- package/esm/utils/components/index.js +1 -1
- package/esm/utils/functions/colors.js +5 -6
- package/esm/utils/functions/date.js +3 -5
- package/esm/utils/functions/dev.d.ts +11 -5
- package/esm/utils/functions/dev.js +9 -23
- package/esm/utils/functions/dom.js +8 -16
- package/esm/utils/functions/focusable.js +19 -23
- package/esm/utils/functions/import.js +1 -1
- package/esm/utils/functions/numbers.js +6 -8
- package/esm/utils/functions/polymorphic.js +32 -40
- package/esm/utils/functions/react.js +4 -8
- package/esm/utils/hooks/index.d.ts +1 -0
- package/esm/utils/hooks/index.js +1 -0
- package/esm/utils/hooks/useContainerWidth.js +7 -11
- package/esm/utils/hooks/useControlledState.js +4 -5
- package/esm/utils/hooks/useDragAndDrop.js +32 -43
- package/esm/utils/hooks/useEventListener.js +3 -5
- package/esm/utils/hooks/useGlobals.js +6 -25
- package/esm/utils/hooks/useId.js +3 -3
- package/esm/utils/hooks/useIntersection.js +6 -10
- package/esm/utils/hooks/useIsClient.js +1 -1
- package/esm/utils/hooks/useIsomorphicLayoutEffect.js +2 -2
- package/esm/utils/hooks/useLatestRef.js +1 -1
- package/esm/utils/hooks/useMediaQuery.js +10 -8
- package/esm/utils/hooks/useMergedRefs.js +7 -11
- package/esm/utils/hooks/useOverflow.js +24 -26
- package/esm/utils/hooks/useResizeObserver.js +5 -9
- package/esm/utils/hooks/useSafeContext.js +3 -4
- package/esm/utils/hooks/useSyncExternalStore.js +6 -8
- package/esm/utils/hooks/useVirtualScroll.d.ts +14 -0
- package/esm/utils/hooks/useVirtualScroll.js +28 -0
- package/esm/utils/icons/SvgCalendar.js +2 -3
- package/esm/utils/icons/SvgCaretDownSmall.js +2 -3
- package/esm/utils/icons/SvgCaretRightSmall.js +2 -3
- package/esm/utils/icons/SvgCaretUpSmall.js +2 -3
- package/esm/utils/icons/SvgCheckmark.js +2 -3
- package/esm/utils/icons/SvgCheckmarkSmall.js +2 -3
- package/esm/utils/icons/SvgChevronLeft.js +2 -3
- package/esm/utils/icons/SvgChevronLeftDouble.js +2 -3
- package/esm/utils/icons/SvgChevronRight.js +2 -3
- package/esm/utils/icons/SvgChevronRightDouble.js +2 -3
- package/esm/utils/icons/SvgChevronRightSmall.js +2 -3
- package/esm/utils/icons/SvgClose.js +2 -3
- package/esm/utils/icons/SvgCloseSmall.js +2 -3
- package/esm/utils/icons/SvgColumnManager.js +2 -3
- package/esm/utils/icons/SvgDocument.js +2 -3
- package/esm/utils/icons/SvgFilter.js +2 -3
- package/esm/utils/icons/SvgFilterHollow.js +2 -3
- package/esm/utils/icons/SvgImportantSmall.js +2 -3
- package/esm/utils/icons/SvgInfoCircular.js +2 -3
- package/esm/utils/icons/SvgMore.js +2 -3
- package/esm/utils/icons/SvgMoreVertical.js +2 -3
- package/esm/utils/icons/SvgNew.js +2 -3
- package/esm/utils/icons/SvgSearch.js +2 -3
- package/esm/utils/icons/SvgSmileyHappy.js +2 -3
- package/esm/utils/icons/SvgSortDown.js +2 -3
- package/esm/utils/icons/SvgSortUp.js +2 -3
- package/esm/utils/icons/SvgStatusError.js +2 -3
- package/esm/utils/icons/SvgStatusSuccess.js +2 -3
- package/esm/utils/icons/SvgStatusWarning.js +2 -3
- package/esm/utils/icons/SvgSwap.js +2 -3
- package/esm/utils/icons/SvgUpload.js +2 -3
- package/esm/utils/meta.js +1 -1
- package/esm/utils/providers/HydrationProvider.js +15 -19
- package/esm/utils/providers/ScopeProvider.js +9 -11
- package/package.json +18 -7
- package/styles.css +9 -13
- package/cjs/utils/components/VirtualScroll.d.ts +0 -75
- package/cjs/utils/components/VirtualScroll.js +0 -334
- package/esm/utils/components/VirtualScroll.d.ts +0 -75
- package/esm/utils/components/VirtualScroll.js +0 -318
|
@@ -9,26 +9,26 @@ import {
|
|
|
9
9
|
} from '../../utils/index.js';
|
|
10
10
|
import { Slider } from '../Slider/Slider.js';
|
|
11
11
|
import { useColorPickerContext } from './ColorPickerContext.js';
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
let getVerticalPercentageOfRectangle = (rect, pointer) => {
|
|
13
|
+
let position = getBoundedValue(pointer, rect.top, rect.bottom);
|
|
14
14
|
return ((position - rect.top) / rect.height) * 100;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
let getHorizontalPercentageOfRectangle = (rect, pointer) => {
|
|
17
|
+
let position = getBoundedValue(pointer, rect.left, rect.right);
|
|
18
18
|
return ((position - rect.left) / rect.width) * 100;
|
|
19
19
|
};
|
|
20
20
|
export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
let { className, ...rest } = props;
|
|
22
|
+
let builderRef = React.useRef();
|
|
23
|
+
let refs = useMergedRefs(builderRef, ref);
|
|
24
|
+
let {
|
|
25
25
|
activeColor,
|
|
26
26
|
hsvColor,
|
|
27
27
|
onChangeComplete,
|
|
28
28
|
applyHsvColorChange,
|
|
29
29
|
showAlpha,
|
|
30
30
|
} = useColorPickerContext();
|
|
31
|
-
|
|
31
|
+
let hueSliderColor = React.useMemo(
|
|
32
32
|
() =>
|
|
33
33
|
ColorValue.create({
|
|
34
34
|
h: hsvColor.h,
|
|
@@ -37,23 +37,23 @@ export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
|
37
37
|
}),
|
|
38
38
|
[hsvColor.h],
|
|
39
39
|
);
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
let sliderValue = React.useMemo(() => hsvColor.h, [hsvColor]);
|
|
41
|
+
let alphaValue = React.useMemo(
|
|
42
42
|
() => (showAlpha ? hsvColor.a ?? 1 : 1),
|
|
43
43
|
[hsvColor.a, showAlpha],
|
|
44
44
|
);
|
|
45
|
-
|
|
45
|
+
let dotColorString = React.useMemo(
|
|
46
46
|
() => activeColor.toHexString(),
|
|
47
47
|
[activeColor],
|
|
48
48
|
);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
let [colorDotActive, setColorDotActive] = React.useState(false);
|
|
50
|
+
let hueColorString = hueSliderColor.toHexString();
|
|
51
|
+
let squareTop = 100 - hsvColor.v;
|
|
52
|
+
let squareLeft = hsvColor.s;
|
|
53
|
+
let updateHueSlider = React.useCallback(
|
|
54
54
|
(huePercent, selectionChanged) => {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
let hue = Number(huePercent.toFixed(2));
|
|
56
|
+
let newHsvColor = {
|
|
57
57
|
h: hue,
|
|
58
58
|
s: hsvColor.s,
|
|
59
59
|
v: hsvColor.v,
|
|
@@ -63,10 +63,10 @@ export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
|
63
63
|
},
|
|
64
64
|
[applyHsvColorChange, hsvColor],
|
|
65
65
|
);
|
|
66
|
-
|
|
66
|
+
let updateOpacitySlider = React.useCallback(
|
|
67
67
|
(alphaPercent, selectionChanged) => {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
let alpha = Number(alphaPercent.toFixed(2));
|
|
69
|
+
let newHsvColor = {
|
|
70
70
|
h: hsvColor.h,
|
|
71
71
|
s: hsvColor.s,
|
|
72
72
|
v: hsvColor.v,
|
|
@@ -76,11 +76,11 @@ export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
|
76
76
|
},
|
|
77
77
|
[applyHsvColorChange, hsvColor],
|
|
78
78
|
);
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
let squareRef = React.useRef(null);
|
|
80
|
+
let colorDotRef = React.useRef(null);
|
|
81
|
+
let updateColorDot = React.useCallback(
|
|
82
82
|
(x, y, selectionChanged) => {
|
|
83
|
-
|
|
83
|
+
let newHsvColor = {
|
|
84
84
|
h: hsvColor.h,
|
|
85
85
|
s: x,
|
|
86
86
|
v: 100 - y,
|
|
@@ -90,34 +90,30 @@ export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
|
90
90
|
},
|
|
91
91
|
[applyHsvColorChange, hsvColor],
|
|
92
92
|
);
|
|
93
|
-
|
|
93
|
+
let updateSquareValue = React.useCallback(
|
|
94
94
|
(event, callbackType) => {
|
|
95
95
|
if (
|
|
96
96
|
(squareRef.current && colorDotActive) ||
|
|
97
|
-
(squareRef.current &&
|
|
97
|
+
(squareRef.current && 'onClick' === callbackType)
|
|
98
98
|
) {
|
|
99
|
-
|
|
99
|
+
let percentX = getHorizontalPercentageOfRectangle(
|
|
100
100
|
squareRef.current.getBoundingClientRect(),
|
|
101
101
|
event.clientX,
|
|
102
102
|
);
|
|
103
|
-
|
|
103
|
+
let percentY = getVerticalPercentageOfRectangle(
|
|
104
104
|
squareRef.current.getBoundingClientRect(),
|
|
105
105
|
event.clientY,
|
|
106
106
|
);
|
|
107
|
-
|
|
108
|
-
updateColorDot(percentX, percentY, true)
|
|
109
|
-
|
|
110
|
-
updateColorDot(percentX, percentY, false);
|
|
111
|
-
}
|
|
107
|
+
'onChange' === callbackType
|
|
108
|
+
? updateColorDot(percentX, percentY, true)
|
|
109
|
+
: updateColorDot(percentX, percentY, false);
|
|
112
110
|
}
|
|
113
111
|
},
|
|
114
112
|
[colorDotActive, updateColorDot],
|
|
115
113
|
);
|
|
116
|
-
|
|
114
|
+
let handleSquarePointerUp = React.useCallback(
|
|
117
115
|
(event) => {
|
|
118
|
-
if (!colorDotActive)
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
116
|
+
if (!colorDotActive) return;
|
|
121
117
|
updateSquareValue(event, 'onChange');
|
|
122
118
|
setColorDotActive(false);
|
|
123
119
|
event.preventDefault();
|
|
@@ -130,11 +126,9 @@ export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
|
130
126
|
handleSquarePointerUp,
|
|
131
127
|
builderRef.current?.ownerDocument,
|
|
132
128
|
);
|
|
133
|
-
|
|
129
|
+
let handleSquarePointerMove = React.useCallback(
|
|
134
130
|
(event) => {
|
|
135
|
-
if (!colorDotActive)
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
131
|
+
if (!colorDotActive) return;
|
|
138
132
|
event.preventDefault();
|
|
139
133
|
event.stopPropagation();
|
|
140
134
|
updateSquareValue(event, 'onUpdate');
|
|
@@ -146,11 +140,9 @@ export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
|
146
140
|
handleSquarePointerMove,
|
|
147
141
|
builderRef.current?.ownerDocument,
|
|
148
142
|
);
|
|
149
|
-
|
|
143
|
+
let handleSquarePointerLeave = React.useCallback(
|
|
150
144
|
(event) => {
|
|
151
|
-
if (!colorDotActive)
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
145
|
+
if (!colorDotActive) return;
|
|
154
146
|
updateSquareValue(event, 'onChange');
|
|
155
147
|
setColorDotActive(false);
|
|
156
148
|
},
|
|
@@ -161,25 +153,21 @@ export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
|
161
153
|
handleSquarePointerLeave,
|
|
162
154
|
builderRef.current?.ownerDocument,
|
|
163
155
|
);
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
if (event.altKey)
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
156
|
+
let keysPressed = React.useRef({});
|
|
157
|
+
let handleColorDotKeyDown = (event) => {
|
|
158
|
+
if (event.altKey) return;
|
|
169
159
|
let x = squareLeft;
|
|
170
160
|
let y = squareTop;
|
|
171
161
|
keysPressed.current[event.key] = true;
|
|
172
162
|
switch (event.key) {
|
|
173
|
-
case 'ArrowDown':
|
|
163
|
+
case 'ArrowDown':
|
|
174
164
|
y = Math.min(y + 1, 100);
|
|
175
165
|
updateColorDot(x, y, false);
|
|
176
166
|
break;
|
|
177
|
-
|
|
178
|
-
case 'ArrowUp': {
|
|
167
|
+
case 'ArrowUp':
|
|
179
168
|
y = Math.max(y - 1, 0);
|
|
180
169
|
updateColorDot(x, y, false);
|
|
181
170
|
break;
|
|
182
|
-
}
|
|
183
171
|
case 'ArrowLeft':
|
|
184
172
|
x = Math.max(x - 1, 0);
|
|
185
173
|
updateColorDot(x, y, false);
|
|
@@ -190,7 +178,7 @@ export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
|
190
178
|
break;
|
|
191
179
|
}
|
|
192
180
|
};
|
|
193
|
-
|
|
181
|
+
let handleColorDotKeyUp = (event) => {
|
|
194
182
|
keysPressed.current[event.key] = false;
|
|
195
183
|
switch (event.key) {
|
|
196
184
|
case 'ArrowUp':
|
|
@@ -202,9 +190,8 @@ export const ColorBuilder = React.forwardRef((props, ref) => {
|
|
|
202
190
|
keysPressed.current['ArrowDown'] ||
|
|
203
191
|
keysPressed.current['ArrowLeft'] ||
|
|
204
192
|
keysPressed.current['ArrowRight']
|
|
205
|
-
)
|
|
193
|
+
)
|
|
206
194
|
return;
|
|
207
|
-
}
|
|
208
195
|
onChangeComplete?.(ColorValue.create(hsvColor));
|
|
209
196
|
break;
|
|
210
197
|
}
|
|
@@ -5,23 +5,23 @@ import { Input } from '../Input/Input.js';
|
|
|
5
5
|
import { ColorValue, SvgSwap, Box, useId } from '../../utils/index.js';
|
|
6
6
|
import { useColorPickerContext } from './ColorPickerContext.js';
|
|
7
7
|
export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
8
|
-
|
|
8
|
+
let {
|
|
9
9
|
defaultColorFormat,
|
|
10
10
|
allowedColorFormats = ['hsl', 'rgb', 'hex'],
|
|
11
11
|
className,
|
|
12
12
|
...rest
|
|
13
13
|
} = props;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
let inputsContainerRef = React.useRef(null);
|
|
15
|
+
let { activeColor, applyHsvColorChange, hsvColor, showAlpha } =
|
|
16
16
|
useColorPickerContext();
|
|
17
|
-
|
|
17
|
+
let [currentFormat, setCurrentFormat] = React.useState(defaultColorFormat);
|
|
18
18
|
React.useEffect(() => {
|
|
19
19
|
setCurrentFormat(defaultColorFormat);
|
|
20
20
|
}, [defaultColorFormat]);
|
|
21
|
-
|
|
21
|
+
let [input, setInput] = React.useState(['', '', '', '']);
|
|
22
22
|
React.useEffect(() => {
|
|
23
|
-
if (
|
|
24
|
-
|
|
23
|
+
if ('hsl' === currentFormat) {
|
|
24
|
+
let hsl = activeColor.toHslColor();
|
|
25
25
|
setInput([
|
|
26
26
|
ColorValue.getFormattedColorNumber(hsvColor.h),
|
|
27
27
|
ColorValue.getFormattedColorNumber(hsl.s),
|
|
@@ -31,8 +31,8 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
31
31
|
2,
|
|
32
32
|
),
|
|
33
33
|
]);
|
|
34
|
-
} else if (
|
|
35
|
-
|
|
34
|
+
} else if ('rgb' === currentFormat) {
|
|
35
|
+
let rgb = activeColor.toRgbColor();
|
|
36
36
|
setInput([
|
|
37
37
|
rgb.r.toString(),
|
|
38
38
|
rgb.g.toString(),
|
|
@@ -47,38 +47,35 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
47
47
|
setValidHexInput(true);
|
|
48
48
|
}
|
|
49
49
|
}, [activeColor, hsvColor.h, currentFormat, showAlpha]);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
let [validHexInput, setValidHexInput] = React.useState(true);
|
|
51
|
+
let swapColorFormat = React.useCallback(() => {
|
|
52
|
+
let newFormat =
|
|
53
53
|
allowedColorFormats[
|
|
54
54
|
(allowedColorFormats.indexOf(currentFormat) + 1) %
|
|
55
55
|
allowedColorFormats.length
|
|
56
56
|
] ?? allowedColorFormats[0];
|
|
57
57
|
setCurrentFormat(newFormat);
|
|
58
58
|
}, [currentFormat, allowedColorFormats]);
|
|
59
|
-
|
|
59
|
+
let isFocusInside = (focused) =>
|
|
60
60
|
!!(
|
|
61
61
|
focused &&
|
|
62
62
|
inputsContainerRef.current &&
|
|
63
63
|
inputsContainerRef.current.contains(focused)
|
|
64
64
|
);
|
|
65
|
-
|
|
65
|
+
let handleColorInputChange = () => {
|
|
66
66
|
let color;
|
|
67
|
-
if (
|
|
67
|
+
if ('hex' === currentFormat)
|
|
68
68
|
try {
|
|
69
|
-
|
|
69
|
+
let value = input[0].replace(/ /g, '').toLowerCase();
|
|
70
70
|
color = ColorValue.create(value);
|
|
71
71
|
setValidHexInput(true);
|
|
72
|
-
if (activeColor.toHexString(showAlpha).toLowerCase() === value)
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
72
|
+
if (activeColor.toHexString(showAlpha).toLowerCase() === value) return;
|
|
75
73
|
} catch (_e) {
|
|
76
74
|
setValidHexInput(false);
|
|
77
75
|
return;
|
|
78
76
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const [h, s, l, a] = input.map(Number);
|
|
77
|
+
if ('hsl' === currentFormat) {
|
|
78
|
+
let [h, s, l, a] = input.map(Number);
|
|
82
79
|
if (
|
|
83
80
|
h < 0 ||
|
|
84
81
|
h > 360 ||
|
|
@@ -88,13 +85,10 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
88
85
|
l > 100 ||
|
|
89
86
|
a < 0 ||
|
|
90
87
|
a > 1
|
|
91
|
-
)
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
const hsl = activeColor.toHslColor();
|
|
95
|
-
if (hsl.h === h && hsl.s === s && hsl.l === l && hsl.a === a) {
|
|
88
|
+
)
|
|
96
89
|
return;
|
|
97
|
-
|
|
90
|
+
let hsl = activeColor.toHslColor();
|
|
91
|
+
if (hsl.h === h && hsl.s === s && hsl.l === l && hsl.a === a) return;
|
|
98
92
|
color = ColorValue.create({
|
|
99
93
|
h,
|
|
100
94
|
s,
|
|
@@ -102,8 +96,8 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
102
96
|
a,
|
|
103
97
|
});
|
|
104
98
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
99
|
+
if ('rgb' === currentFormat) {
|
|
100
|
+
let [r, g, b, a] = input.map(Number);
|
|
107
101
|
if (
|
|
108
102
|
r < 0 ||
|
|
109
103
|
r > 255 ||
|
|
@@ -113,13 +107,10 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
113
107
|
b > 255 ||
|
|
114
108
|
a < 0 ||
|
|
115
109
|
a > 1
|
|
116
|
-
)
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
const rgb = activeColor.toRgbColor();
|
|
120
|
-
if (rgb.r === r && rgb.g === g && rgb.b === b && rgb.a === a) {
|
|
110
|
+
)
|
|
121
111
|
return;
|
|
122
|
-
|
|
112
|
+
let rgb = activeColor.toRgbColor();
|
|
113
|
+
if (rgb.r === r && rgb.g === g && rgb.b === b && rgb.a === a) return;
|
|
123
114
|
color = ColorValue.create({
|
|
124
115
|
r,
|
|
125
116
|
g,
|
|
@@ -127,11 +118,9 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
127
118
|
a,
|
|
128
119
|
});
|
|
129
120
|
}
|
|
130
|
-
if (color)
|
|
131
|
-
applyHsvColorChange(color.toHsvColor(), true, color);
|
|
132
|
-
}
|
|
121
|
+
if (color) applyHsvColorChange(color.toHsvColor(), true, color);
|
|
133
122
|
};
|
|
134
|
-
|
|
123
|
+
let hexInputField = React.createElement(Input, {
|
|
135
124
|
size: 'small',
|
|
136
125
|
maxLength: showAlpha ? 9 : 7,
|
|
137
126
|
minLength: 1,
|
|
@@ -139,13 +128,13 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
139
128
|
'aria-label': 'Hex',
|
|
140
129
|
value: input[0],
|
|
141
130
|
onChange: (event) => {
|
|
142
|
-
|
|
131
|
+
let value = event.target.value.startsWith('#')
|
|
143
132
|
? event.target.value
|
|
144
133
|
: `#${event.target.value}`;
|
|
145
134
|
setInput([value]);
|
|
146
135
|
},
|
|
147
136
|
onKeyDown: (event) => {
|
|
148
|
-
if (event.key
|
|
137
|
+
if ('Enter' === event.key) {
|
|
149
138
|
event.preventDefault();
|
|
150
139
|
handleColorInputChange();
|
|
151
140
|
}
|
|
@@ -154,9 +143,9 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
154
143
|
event.preventDefault();
|
|
155
144
|
handleColorInputChange();
|
|
156
145
|
},
|
|
157
|
-
status: validHexInput ?
|
|
146
|
+
status: validHexInput ? void 0 : 'negative',
|
|
158
147
|
});
|
|
159
|
-
|
|
148
|
+
let hslInputs = React.createElement(
|
|
160
149
|
React.Fragment,
|
|
161
150
|
null,
|
|
162
151
|
React.createElement(Input, {
|
|
@@ -172,19 +161,17 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
172
161
|
setInput([event.target.value, input[1], input[2], input[3]]);
|
|
173
162
|
},
|
|
174
163
|
onKeyDown: (event) => {
|
|
175
|
-
if (event.key
|
|
164
|
+
if ('Enter' === event.key) {
|
|
176
165
|
event.preventDefault();
|
|
177
166
|
handleColorInputChange();
|
|
178
167
|
}
|
|
179
168
|
},
|
|
180
169
|
onBlur: (event) => {
|
|
181
170
|
event.preventDefault();
|
|
182
|
-
if (!isFocusInside(event.relatedTarget))
|
|
183
|
-
handleColorInputChange();
|
|
184
|
-
}
|
|
171
|
+
if (!isFocusInside(event.relatedTarget)) handleColorInputChange();
|
|
185
172
|
},
|
|
186
173
|
status:
|
|
187
|
-
Number(input[0]) < 0 || Number(input[0]) > 360 ? 'negative' :
|
|
174
|
+
Number(input[0]) < 0 || Number(input[0]) > 360 ? 'negative' : void 0,
|
|
188
175
|
}),
|
|
189
176
|
React.createElement(Input, {
|
|
190
177
|
size: 'small',
|
|
@@ -199,19 +186,17 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
199
186
|
setInput([input[0], event.target.value, input[2], input[3]]);
|
|
200
187
|
},
|
|
201
188
|
onKeyDown: (event) => {
|
|
202
|
-
if (event.key
|
|
189
|
+
if ('Enter' === event.key) {
|
|
203
190
|
event.preventDefault();
|
|
204
191
|
handleColorInputChange();
|
|
205
192
|
}
|
|
206
193
|
},
|
|
207
194
|
onBlur: (event) => {
|
|
208
195
|
event.preventDefault();
|
|
209
|
-
if (!isFocusInside(event.relatedTarget))
|
|
210
|
-
handleColorInputChange();
|
|
211
|
-
}
|
|
196
|
+
if (!isFocusInside(event.relatedTarget)) handleColorInputChange();
|
|
212
197
|
},
|
|
213
198
|
status:
|
|
214
|
-
Number(input[1]) < 0 || Number(input[1]) > 100 ? 'negative' :
|
|
199
|
+
Number(input[1]) < 0 || Number(input[1]) > 100 ? 'negative' : void 0,
|
|
215
200
|
}),
|
|
216
201
|
React.createElement(Input, {
|
|
217
202
|
size: 'small',
|
|
@@ -226,19 +211,17 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
226
211
|
setInput([input[0], input[1], event.target.value, input[3]]);
|
|
227
212
|
},
|
|
228
213
|
onKeyDown: (event) => {
|
|
229
|
-
if (event.key
|
|
214
|
+
if ('Enter' === event.key) {
|
|
230
215
|
event.preventDefault();
|
|
231
216
|
handleColorInputChange();
|
|
232
217
|
}
|
|
233
218
|
},
|
|
234
219
|
onBlur: (event) => {
|
|
235
220
|
event.preventDefault();
|
|
236
|
-
if (!isFocusInside(event.relatedTarget))
|
|
237
|
-
handleColorInputChange();
|
|
238
|
-
}
|
|
221
|
+
if (!isFocusInside(event.relatedTarget)) handleColorInputChange();
|
|
239
222
|
},
|
|
240
223
|
status:
|
|
241
|
-
Number(input[2]) < 0 || Number(input[2]) > 100 ? 'negative' :
|
|
224
|
+
Number(input[2]) < 0 || Number(input[2]) > 100 ? 'negative' : void 0,
|
|
242
225
|
}),
|
|
243
226
|
showAlpha &&
|
|
244
227
|
React.createElement(Input, {
|
|
@@ -254,22 +237,20 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
254
237
|
setInput([input[0], input[1], input[2], event.target.value]);
|
|
255
238
|
},
|
|
256
239
|
onKeyDown: (event) => {
|
|
257
|
-
if (event.key
|
|
240
|
+
if ('Enter' === event.key) {
|
|
258
241
|
event.preventDefault();
|
|
259
242
|
handleColorInputChange();
|
|
260
243
|
}
|
|
261
244
|
},
|
|
262
245
|
onBlur: (event) => {
|
|
263
246
|
event.preventDefault();
|
|
264
|
-
if (!isFocusInside(event.relatedTarget))
|
|
265
|
-
handleColorInputChange();
|
|
266
|
-
}
|
|
247
|
+
if (!isFocusInside(event.relatedTarget)) handleColorInputChange();
|
|
267
248
|
},
|
|
268
249
|
status:
|
|
269
|
-
Number(input[3]) < 0 || Number(input[3]) > 1 ? 'negative' :
|
|
250
|
+
Number(input[3]) < 0 || Number(input[3]) > 1 ? 'negative' : void 0,
|
|
270
251
|
}),
|
|
271
252
|
);
|
|
272
|
-
|
|
253
|
+
let rgbInputs = React.createElement(
|
|
273
254
|
React.Fragment,
|
|
274
255
|
null,
|
|
275
256
|
React.createElement(Input, {
|
|
@@ -284,19 +265,17 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
284
265
|
setInput([event.target.value, input[1], input[2], input[3]]);
|
|
285
266
|
},
|
|
286
267
|
onKeyDown: (event) => {
|
|
287
|
-
if (event.key
|
|
268
|
+
if ('Enter' === event.key) {
|
|
288
269
|
event.preventDefault();
|
|
289
270
|
handleColorInputChange();
|
|
290
271
|
}
|
|
291
272
|
},
|
|
292
273
|
onBlur: (event) => {
|
|
293
274
|
event.preventDefault();
|
|
294
|
-
if (!isFocusInside(event.relatedTarget))
|
|
295
|
-
handleColorInputChange();
|
|
296
|
-
}
|
|
275
|
+
if (!isFocusInside(event.relatedTarget)) handleColorInputChange();
|
|
297
276
|
},
|
|
298
277
|
status:
|
|
299
|
-
Number(input[0]) < 0 || Number(input[0]) > 255 ? 'negative' :
|
|
278
|
+
Number(input[0]) < 0 || Number(input[0]) > 255 ? 'negative' : void 0,
|
|
300
279
|
}),
|
|
301
280
|
React.createElement(Input, {
|
|
302
281
|
size: 'small',
|
|
@@ -310,19 +289,17 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
310
289
|
setInput([input[0], event.target.value, input[2], input[3]]);
|
|
311
290
|
},
|
|
312
291
|
onKeyDown: (event) => {
|
|
313
|
-
if (event.key
|
|
292
|
+
if ('Enter' === event.key) {
|
|
314
293
|
event.preventDefault();
|
|
315
294
|
handleColorInputChange();
|
|
316
295
|
}
|
|
317
296
|
},
|
|
318
297
|
onBlur: (event) => {
|
|
319
298
|
event.preventDefault();
|
|
320
|
-
if (!isFocusInside(event.relatedTarget))
|
|
321
|
-
handleColorInputChange();
|
|
322
|
-
}
|
|
299
|
+
if (!isFocusInside(event.relatedTarget)) handleColorInputChange();
|
|
323
300
|
},
|
|
324
301
|
status:
|
|
325
|
-
Number(input[1]) < 0 || Number(input[1]) > 255 ? 'negative' :
|
|
302
|
+
Number(input[1]) < 0 || Number(input[1]) > 255 ? 'negative' : void 0,
|
|
326
303
|
}),
|
|
327
304
|
React.createElement(Input, {
|
|
328
305
|
size: 'small',
|
|
@@ -336,19 +313,17 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
336
313
|
setInput([input[0], input[1], event.target.value, input[3]]);
|
|
337
314
|
},
|
|
338
315
|
onKeyDown: (event) => {
|
|
339
|
-
if (event.key
|
|
316
|
+
if ('Enter' === event.key) {
|
|
340
317
|
event.preventDefault();
|
|
341
318
|
handleColorInputChange();
|
|
342
319
|
}
|
|
343
320
|
},
|
|
344
321
|
onBlur: (event) => {
|
|
345
322
|
event.preventDefault();
|
|
346
|
-
if (!isFocusInside(event.relatedTarget))
|
|
347
|
-
handleColorInputChange();
|
|
348
|
-
}
|
|
323
|
+
if (!isFocusInside(event.relatedTarget)) handleColorInputChange();
|
|
349
324
|
},
|
|
350
325
|
status:
|
|
351
|
-
Number(input[2]) < 0 || Number(input[2]) > 255 ? 'negative' :
|
|
326
|
+
Number(input[2]) < 0 || Number(input[2]) > 255 ? 'negative' : void 0,
|
|
352
327
|
}),
|
|
353
328
|
showAlpha &&
|
|
354
329
|
React.createElement(Input, {
|
|
@@ -364,22 +339,20 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
364
339
|
setInput([input[0], input[1], input[2], event.target.value]);
|
|
365
340
|
},
|
|
366
341
|
onKeyDown: (event) => {
|
|
367
|
-
if (event.key
|
|
342
|
+
if ('Enter' === event.key) {
|
|
368
343
|
event.preventDefault();
|
|
369
344
|
handleColorInputChange();
|
|
370
345
|
}
|
|
371
346
|
},
|
|
372
347
|
onBlur: (event) => {
|
|
373
348
|
event.preventDefault();
|
|
374
|
-
if (!isFocusInside(event.relatedTarget))
|
|
375
|
-
handleColorInputChange();
|
|
376
|
-
}
|
|
349
|
+
if (!isFocusInside(event.relatedTarget)) handleColorInputChange();
|
|
377
350
|
},
|
|
378
351
|
status:
|
|
379
|
-
Number(input[3]) < 0 || Number(input[3]) > 1 ? 'negative' :
|
|
352
|
+
Number(input[3]) < 0 || Number(input[3]) > 1 ? 'negative' : void 0,
|
|
380
353
|
}),
|
|
381
354
|
);
|
|
382
|
-
|
|
355
|
+
let labelId = useId();
|
|
383
356
|
return React.createElement(
|
|
384
357
|
Box,
|
|
385
358
|
{
|
|
@@ -393,7 +366,7 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
393
366
|
className: 'iui-color-picker-section-label',
|
|
394
367
|
id: labelId,
|
|
395
368
|
},
|
|
396
|
-
showAlpha &&
|
|
369
|
+
showAlpha && 'hex' !== currentFormat
|
|
397
370
|
? currentFormat.toUpperCase() + 'A'
|
|
398
371
|
: currentFormat.toUpperCase(),
|
|
399
372
|
),
|
|
@@ -418,12 +391,12 @@ export const ColorInputPanel = React.forwardRef((props, ref) => {
|
|
|
418
391
|
{
|
|
419
392
|
ref: inputsContainerRef,
|
|
420
393
|
className: 'iui-color-input-fields',
|
|
421
|
-
role:
|
|
422
|
-
'aria-labelledby':
|
|
394
|
+
role: 'hex' !== currentFormat ? 'group' : void 0,
|
|
395
|
+
'aria-labelledby': 'hex' !== currentFormat ? labelId : void 0,
|
|
423
396
|
},
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
397
|
+
'hex' === currentFormat && hexInputField,
|
|
398
|
+
'rgb' === currentFormat && rgbInputs,
|
|
399
|
+
'hsl' === currentFormat && hslInputs,
|
|
427
400
|
),
|
|
428
401
|
),
|
|
429
402
|
);
|
|
@@ -5,8 +5,8 @@ import { getColorValue } from './ColorPicker.js';
|
|
|
5
5
|
import { ColorSwatch } from './ColorSwatch.js';
|
|
6
6
|
import { useColorPickerContext } from './ColorPickerContext.js';
|
|
7
7
|
export const ColorPalette = React.forwardRef((props, ref) => {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
let { colors, label, className, children, ...rest } = props;
|
|
9
|
+
let { activeColor, setActiveColor, onChangeComplete } =
|
|
10
10
|
useColorPickerContext();
|
|
11
11
|
return React.createElement(
|
|
12
12
|
Box,
|
|
@@ -31,7 +31,7 @@ export const ColorPalette = React.forwardRef((props, ref) => {
|
|
|
31
31
|
children,
|
|
32
32
|
colors &&
|
|
33
33
|
colors.map((_color, index) => {
|
|
34
|
-
|
|
34
|
+
let color = getColorValue(_color);
|
|
35
35
|
return React.createElement(ColorSwatch, {
|
|
36
36
|
key: index,
|
|
37
37
|
color: color,
|