@itwin/itwinui-react 3.12.2 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Select } from '../Select/Select.js';
|
|
3
|
+
import { StatusMessage } from '../StatusMessage/StatusMessage.js';
|
|
4
|
+
import { InputGrid } from '../InputGrid/InputGrid.js';
|
|
5
|
+
import { Label } from '../Label/Label.js';
|
|
6
|
+
export const LabeledSelect = React.forwardRef((props, forwardedRef)=>{
|
|
7
|
+
let { className, disabled = false, label, message, status, svgIcon, displayStyle = 'default', style, required = false, wrapperProps, labelProps, messageContentProps, messageIconProps, ...rest } = props;
|
|
8
|
+
return React.createElement(InputGrid, {
|
|
9
|
+
labelPlacement: displayStyle,
|
|
10
|
+
"data-iui-status": status,
|
|
11
|
+
...wrapperProps
|
|
12
|
+
}, label && React.createElement(Label, {
|
|
13
|
+
as: "div",
|
|
14
|
+
required: required,
|
|
15
|
+
disabled: disabled,
|
|
16
|
+
...labelProps
|
|
17
|
+
}, label), React.createElement(Select, {
|
|
18
|
+
disabled: disabled,
|
|
19
|
+
className: className,
|
|
20
|
+
style: style,
|
|
21
|
+
required: props.native ? required : void 0,
|
|
22
|
+
...rest,
|
|
23
|
+
ref: forwardedRef,
|
|
24
|
+
styleType: 'default'
|
|
25
|
+
}), 'string' == typeof message ? React.createElement(StatusMessage, {
|
|
26
|
+
status: status,
|
|
27
|
+
startIcon: svgIcon,
|
|
28
|
+
iconProps: messageIconProps,
|
|
29
|
+
contentProps: messageContentProps
|
|
30
|
+
}, message) : message);
|
|
31
|
+
});
|
|
32
|
+
LabeledSelect.displayName = 'LabeledSelect';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { useRef } from 'react';
|
|
2
|
+
import { LabeledSelect } from './LabeledSelect.js';
|
|
3
|
+
()=>{
|
|
4
|
+
let ref = useRef(null);
|
|
5
|
+
return React.createElement(React.Fragment, null, React.createElement(LabeledSelect, {
|
|
6
|
+
options: [
|
|
7
|
+
{
|
|
8
|
+
value: 1,
|
|
9
|
+
label: 'Option 1'
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
value: 2,
|
|
13
|
+
label: 'Option 2'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: 3,
|
|
17
|
+
label: 'Option 3'
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
onChange: (value)=>{
|
|
21
|
+
let returnValue = value;
|
|
22
|
+
return returnValue;
|
|
23
|
+
},
|
|
24
|
+
ref: ref
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
27
|
+
()=>React.createElement(React.Fragment, null, React.createElement(LabeledSelect, {
|
|
28
|
+
options: [
|
|
29
|
+
{
|
|
30
|
+
value: 1,
|
|
31
|
+
label: 'Option 1'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: 2,
|
|
35
|
+
label: 'Option 2'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: 3,
|
|
39
|
+
label: 'Option 3'
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
onChange: (value)=>{
|
|
43
|
+
let returnValue = value;
|
|
44
|
+
return returnValue;
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
()=>React.createElement(React.Fragment, null, React.createElement(LabeledSelect, {
|
|
48
|
+
label: "Select Label",
|
|
49
|
+
options: [
|
|
50
|
+
{
|
|
51
|
+
value: '1',
|
|
52
|
+
label: 'Item #1'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
value: '2',
|
|
56
|
+
label: 'Item #2'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: '3',
|
|
60
|
+
label: 'Item #3'
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
onChange: (value)=>{
|
|
64
|
+
let returnValue = value;
|
|
65
|
+
return returnValue;
|
|
66
|
+
}
|
|
67
|
+
}));
|
|
68
|
+
()=>React.createElement(React.Fragment, null, React.createElement(LabeledSelect, {
|
|
69
|
+
label: "Select Label",
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
value: 1,
|
|
73
|
+
label: 'Item #1'
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
onChange: (value)=>{
|
|
77
|
+
let returnValue = value;
|
|
78
|
+
return returnValue;
|
|
79
|
+
}
|
|
80
|
+
}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LabeledInput } from '../LabeledInput/LabeledInput.js';
|
|
3
|
+
export const LabeledTextarea = React.forwardRef((props, forwardedRef)=>React.createElement(LabeledInput, {
|
|
4
|
+
as: "textarea",
|
|
5
|
+
rows: 3,
|
|
6
|
+
ref: forwardedRef,
|
|
7
|
+
...props
|
|
8
|
+
}));
|
|
9
|
+
LabeledTextarea.displayName = 'LabeledTextarea';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { polymorphic } from '../../utils/functions/polymorphic.js';
|
|
4
|
+
import { Box } from '../../utils/components/index.js';
|
|
5
|
+
export const LinkAction = React.forwardRef((props, forwardedRef)=>{
|
|
6
|
+
let { as: asProp = props.href ? 'a' : 'button' } = props;
|
|
7
|
+
return React.createElement(Box, {
|
|
8
|
+
...props,
|
|
9
|
+
as: asProp,
|
|
10
|
+
className: cx('iui-link-action', props.className),
|
|
11
|
+
ref: forwardedRef
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
LinkAction.displayName = 'LinkAction';
|
|
15
|
+
export const LinkBox = polymorphic.div('iui-link-box');
|
|
16
|
+
LinkBox.displayName = 'LinkBox';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { polymorphic, Box } from '../../utils/index.js';
|
|
4
|
+
import { LinkAction } from '../LinkAction/LinkAction.js';
|
|
5
|
+
let ListItemComponent = React.forwardRef((props, ref)=>{
|
|
6
|
+
let { size = 'default', disabled = false, active = false, actionable = false, focused = false, className, ...rest } = props;
|
|
7
|
+
return React.createElement(Box, {
|
|
8
|
+
as: "li",
|
|
9
|
+
className: cx('iui-list-item', className),
|
|
10
|
+
"data-iui-active": active ? 'true' : void 0,
|
|
11
|
+
"data-iui-disabled": disabled ? 'true' : void 0,
|
|
12
|
+
"data-iui-size": 'large' === size ? 'large' : void 0,
|
|
13
|
+
"data-iui-actionable": actionable ? 'true' : void 0,
|
|
14
|
+
"data-iui-focused": focused ? 'true' : void 0,
|
|
15
|
+
ref: ref,
|
|
16
|
+
...rest
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
ListItemComponent.displayName = 'ListItem';
|
|
20
|
+
let ListItemIcon = polymorphic('iui-list-item-icon');
|
|
21
|
+
ListItemIcon.displayName = 'ListItem.Icon';
|
|
22
|
+
let ListItemContent = polymorphic('iui-list-item-content');
|
|
23
|
+
ListItemContent.displayName = 'ListItem.Content';
|
|
24
|
+
let ListItemDescription = polymorphic('iui-list-item-description');
|
|
25
|
+
ListItemDescription.displayName = 'ListItem.Description';
|
|
26
|
+
let ListItemAction = LinkAction;
|
|
27
|
+
ListItemAction.displayName = 'ListItem.Action';
|
|
28
|
+
export const ListItem = Object.assign(ListItemComponent, {
|
|
29
|
+
Icon: ListItemIcon,
|
|
30
|
+
Content: ListItemContent,
|
|
31
|
+
Description: ListItemDescription,
|
|
32
|
+
Action: ListItemAction
|
|
33
|
+
});
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { useMergedRefs, Box, Portal, useControlledState, cloneElementWithRef, mergeRefs, useSyncExternalStore, mergeEventHandlers, useFocusableElements } from '../../utils/index.js';
|
|
4
|
+
import { PopoverOpenContext, usePopover } from '../Popover/Popover.js';
|
|
5
|
+
import { FloatingNode, useFloatingNodeId, useFloatingParentNodeId, useFloatingTree, useListNavigation, useInteractions } from '@floating-ui/react';
|
|
6
|
+
export const Menu = React.forwardRef((props, ref)=>{
|
|
7
|
+
let { className, trigger, positionReference, portal = true, popoverProps: popoverPropsProp, children, ...rest } = props;
|
|
8
|
+
let tree = useFloatingTree();
|
|
9
|
+
let nodeId = useFloatingNodeId();
|
|
10
|
+
let parentId = useFloatingParentNodeId();
|
|
11
|
+
let { interactions: interactionsProp, visible: visibleProp, onVisibleChange: onVisibleChangeProp, ...restPopoverProps } = popoverPropsProp ?? {};
|
|
12
|
+
let { listNavigation: listNavigationPropsProp, hover: hoverProp, ...restInteractionsProps } = interactionsProp ?? {};
|
|
13
|
+
let [visible, setVisible] = useControlledState(false, visibleProp, onVisibleChangeProp);
|
|
14
|
+
let [hasFocusedNodeInSubmenu, setHasFocusedNodeInSubmenu] = React.useState(false);
|
|
15
|
+
let [menuElement, setMenuElement] = React.useState(null);
|
|
16
|
+
let { focusableElementsRef, focusableElements } = useFocusableElements(menuElement, {
|
|
17
|
+
filter: (allElements)=>allElements.filter((i)=>!allElements?.some((p)=>p.contains(i.parentElement)))
|
|
18
|
+
});
|
|
19
|
+
let [activeIndex, setActiveIndex] = React.useState(null);
|
|
20
|
+
let popover = usePopover({
|
|
21
|
+
nodeId,
|
|
22
|
+
visible,
|
|
23
|
+
onVisibleChange: (open)=>open ? setVisible(true) : close(),
|
|
24
|
+
interactions: {
|
|
25
|
+
hover: null == tree ? hoverProp : {
|
|
26
|
+
enabled: !!hoverProp && !hasFocusedNodeInSubmenu,
|
|
27
|
+
...hoverProp
|
|
28
|
+
},
|
|
29
|
+
...restInteractionsProps
|
|
30
|
+
},
|
|
31
|
+
...restPopoverProps
|
|
32
|
+
});
|
|
33
|
+
let { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([
|
|
34
|
+
useListNavigation(popover.context, {
|
|
35
|
+
activeIndex,
|
|
36
|
+
focusItemOnHover: false,
|
|
37
|
+
listRef: focusableElementsRef,
|
|
38
|
+
onNavigate: setActiveIndex,
|
|
39
|
+
...listNavigationPropsProp
|
|
40
|
+
})
|
|
41
|
+
]);
|
|
42
|
+
React.useEffect(()=>{
|
|
43
|
+
if (void 0 !== positionReference) popover.refs.setPositionReference(positionReference);
|
|
44
|
+
}, [
|
|
45
|
+
popover.refs,
|
|
46
|
+
positionReference
|
|
47
|
+
]);
|
|
48
|
+
let refs = useMergedRefs(setMenuElement, ref, popover.refs.setFloating);
|
|
49
|
+
let triggerRef = React.useRef(null);
|
|
50
|
+
let close = React.useCallback(()=>{
|
|
51
|
+
setVisible(false);
|
|
52
|
+
if (null == parentId) triggerRef.current?.focus({
|
|
53
|
+
preventScroll: true
|
|
54
|
+
});
|
|
55
|
+
}, [
|
|
56
|
+
parentId,
|
|
57
|
+
setVisible
|
|
58
|
+
]);
|
|
59
|
+
useSyncExternalStore(React.useCallback(()=>{
|
|
60
|
+
let closeUnrelatedMenus = (event)=>{
|
|
61
|
+
if (parentId === event.parentId && nodeId !== event.nodeId || parentId === event.nodeId) {
|
|
62
|
+
setVisible(false);
|
|
63
|
+
setHasFocusedNodeInSubmenu(false);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
tree?.events.on('onNodeFocused', closeUnrelatedMenus);
|
|
67
|
+
return ()=>{
|
|
68
|
+
tree?.events.off('onNodeFocused', closeUnrelatedMenus);
|
|
69
|
+
};
|
|
70
|
+
}, [
|
|
71
|
+
nodeId,
|
|
72
|
+
parentId,
|
|
73
|
+
tree?.events,
|
|
74
|
+
setVisible
|
|
75
|
+
]), ()=>void 0, ()=>void 0);
|
|
76
|
+
let popoverGetItemProps = ({ focusableItemIndex, userProps })=>getItemProps({
|
|
77
|
+
...userProps,
|
|
78
|
+
tabIndex: null != activeIndex && activeIndex >= 0 && null != focusableItemIndex && focusableItemIndex >= 0 && activeIndex === focusableItemIndex ? 0 : -1,
|
|
79
|
+
onFocus: mergeEventHandlers(userProps?.onFocus, ()=>{
|
|
80
|
+
queueMicrotask(()=>{
|
|
81
|
+
setHasFocusedNodeInSubmenu(true);
|
|
82
|
+
});
|
|
83
|
+
tree?.events.emit('onNodeFocused', {
|
|
84
|
+
nodeId: nodeId,
|
|
85
|
+
parentId: parentId
|
|
86
|
+
});
|
|
87
|
+
}),
|
|
88
|
+
onMouseEnter: mergeEventHandlers(userProps?.onMouseEnter, (event)=>{
|
|
89
|
+
if (null != focusableItemIndex && focusableItemIndex >= 0) setActiveIndex(focusableItemIndex);
|
|
90
|
+
if (event.target === event.currentTarget) event.currentTarget.focus();
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
let reference = cloneElementWithRef(trigger, (triggerChild)=>getReferenceProps(popover.getReferenceProps({
|
|
94
|
+
...triggerChild.props,
|
|
95
|
+
'aria-expanded': popover.open,
|
|
96
|
+
ref: mergeRefs(triggerRef, popover.refs.setReference)
|
|
97
|
+
})));
|
|
98
|
+
let floating = popover.open && React.createElement(Portal, {
|
|
99
|
+
portal: portal
|
|
100
|
+
}, React.createElement(Box, {
|
|
101
|
+
as: "div",
|
|
102
|
+
className: cx('iui-menu', className),
|
|
103
|
+
ref: refs,
|
|
104
|
+
...getFloatingProps(popover.getFloatingProps({
|
|
105
|
+
role: 'menu',
|
|
106
|
+
...rest
|
|
107
|
+
}))
|
|
108
|
+
}, children));
|
|
109
|
+
return React.createElement(React.Fragment, null, React.createElement(MenuContext.Provider, {
|
|
110
|
+
value: {
|
|
111
|
+
popoverGetItemProps,
|
|
112
|
+
focusableElements
|
|
113
|
+
}
|
|
114
|
+
}, React.createElement(PopoverOpenContext.Provider, {
|
|
115
|
+
value: popover.open
|
|
116
|
+
}, reference), null != tree ? React.createElement(FloatingNode, {
|
|
117
|
+
id: nodeId
|
|
118
|
+
}, floating) : floating));
|
|
119
|
+
});
|
|
120
|
+
export const MenuContext = React.createContext(void 0);
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SvgCaretRightSmall, useMergedRefs, useId, createWarningLogger } from '../../utils/index.js';
|
|
3
|
+
import { Menu, MenuContext } from './Menu.js';
|
|
4
|
+
import { ListItem } from '../List/ListItem.js';
|
|
5
|
+
import cx from 'classnames';
|
|
6
|
+
let logWarning = createWarningLogger();
|
|
7
|
+
export const MenuItem = React.forwardRef((props, forwardedRef)=>{
|
|
8
|
+
let { className, children, isSelected, disabled, value, onClick: onClickProp, sublabel, size = sublabel ? 'large' : 'default', icon, startIcon = icon, badge, endIcon = badge, role = 'menuitem', subMenuItems = [], ...rest } = props;
|
|
9
|
+
if (null != onClickProp && subMenuItems.length > 0) logWarning('Passing a non-empty submenuItems array and onClick to MenuItem at the same time is not supported. This is because when a non empty submenuItems array is passed, clicking the MenuItem toggles the submenu visibility.');
|
|
10
|
+
let parentMenu = React.useContext(MenuContext);
|
|
11
|
+
let menuItemRef = React.useRef(null);
|
|
12
|
+
let submenuId = useId();
|
|
13
|
+
let popoverProps = React.useMemo(()=>({
|
|
14
|
+
placement: 'right-start',
|
|
15
|
+
interactions: {
|
|
16
|
+
click: true,
|
|
17
|
+
hover: true,
|
|
18
|
+
listNavigation: {
|
|
19
|
+
nested: subMenuItems.length > 0,
|
|
20
|
+
openOnArrowKeyDown: true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}), [
|
|
24
|
+
subMenuItems.length
|
|
25
|
+
]);
|
|
26
|
+
let onClick = ()=>{
|
|
27
|
+
if (disabled) return;
|
|
28
|
+
onClickProp?.(value);
|
|
29
|
+
};
|
|
30
|
+
let handlers = {
|
|
31
|
+
onClick
|
|
32
|
+
};
|
|
33
|
+
let focusableItemIndex = parentMenu?.focusableElements.findIndex((el)=>el === menuItemRef.current);
|
|
34
|
+
let trigger = React.createElement(ListItem, {
|
|
35
|
+
as: "button",
|
|
36
|
+
type: "button",
|
|
37
|
+
className: cx('iui-button-base', className),
|
|
38
|
+
actionable: true,
|
|
39
|
+
size: size,
|
|
40
|
+
active: isSelected,
|
|
41
|
+
disabled: disabled,
|
|
42
|
+
ref: useMergedRefs(menuItemRef, forwardedRef),
|
|
43
|
+
role: role,
|
|
44
|
+
tabIndex: isSelected ? 0 : -1,
|
|
45
|
+
"aria-selected": isSelected,
|
|
46
|
+
"aria-haspopup": subMenuItems.length > 0 ? 'true' : void 0,
|
|
47
|
+
"aria-controls": subMenuItems.length > 0 ? submenuId : void 0,
|
|
48
|
+
"aria-disabled": disabled,
|
|
49
|
+
...parentMenu?.popoverGetItemProps != null ? parentMenu.popoverGetItemProps({
|
|
50
|
+
focusableItemIndex,
|
|
51
|
+
userProps: handlers
|
|
52
|
+
}) : handlers,
|
|
53
|
+
...rest
|
|
54
|
+
}, startIcon && React.createElement(ListItem.Icon, {
|
|
55
|
+
as: "span",
|
|
56
|
+
"aria-hidden": true
|
|
57
|
+
}, startIcon), React.createElement(ListItem.Content, null, React.createElement("div", null, children), sublabel && React.createElement(ListItem.Description, null, sublabel)), !endIcon && subMenuItems.length > 0 && React.createElement(ListItem.Icon, {
|
|
58
|
+
as: "span",
|
|
59
|
+
"aria-hidden": true
|
|
60
|
+
}, React.createElement(SvgCaretRightSmall, null)), endIcon && React.createElement(ListItem.Icon, {
|
|
61
|
+
as: "span",
|
|
62
|
+
"aria-hidden": true
|
|
63
|
+
}, endIcon));
|
|
64
|
+
return React.createElement(React.Fragment, null, subMenuItems.length > 0 && !disabled ? React.createElement(Menu, {
|
|
65
|
+
id: submenuId,
|
|
66
|
+
trigger: trigger,
|
|
67
|
+
popoverProps: popoverProps
|
|
68
|
+
}, subMenuItems) : trigger);
|
|
69
|
+
});
|
|
70
|
+
MenuItem.displayName = 'MenuItem';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { Box } from '../../utils/index.js';
|
|
4
|
+
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
5
|
+
export const MenuItemSkeleton = React.forwardRef((props, forwardedRef)=>{
|
|
6
|
+
let { hasSublabel, hasIcon, contentWidth, translatedStrings = {
|
|
7
|
+
loading: 'Loading…'
|
|
8
|
+
}, className, style, ...rest } = props;
|
|
9
|
+
return React.createElement(Box, {
|
|
10
|
+
className: cx('iui-menu-item-skeleton', className),
|
|
11
|
+
"data-iui-size": hasSublabel && 'large',
|
|
12
|
+
style: {
|
|
13
|
+
'--iui-menu-item-content-skeleton-max-width': contentWidth,
|
|
14
|
+
...style
|
|
15
|
+
},
|
|
16
|
+
ref: forwardedRef,
|
|
17
|
+
...rest
|
|
18
|
+
}, hasIcon && React.createElement(Box, {
|
|
19
|
+
className: "iui-icon iui-skeleton",
|
|
20
|
+
"aria-hidden": true
|
|
21
|
+
}), React.createElement(Box, {
|
|
22
|
+
as: "span",
|
|
23
|
+
className: "iui-content"
|
|
24
|
+
}, React.createElement(Box, {
|
|
25
|
+
className: "iui-menu-label iui-skeleton",
|
|
26
|
+
"aria-hidden": true
|
|
27
|
+
}), hasSublabel && React.createElement(Box, {
|
|
28
|
+
className: "iui-menu-description iui-skeleton",
|
|
29
|
+
"aria-hidden": true
|
|
30
|
+
}), React.createElement(VisuallyHidden, null, translatedStrings.loading)));
|
|
31
|
+
});
|
|
32
|
+
MenuItemSkeleton.displayName = 'MenuItemSkeleton';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dialog } from '../Dialog/Dialog.js';
|
|
3
|
+
export const Modal = React.forwardRef((props, forwardedRef)=>{
|
|
4
|
+
let { isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = true, onClose, title, children, portal = true, wrapperProps, backdropProps, titleBarProps, ...rest } = props;
|
|
5
|
+
return React.createElement(Dialog, {
|
|
6
|
+
isOpen: isOpen,
|
|
7
|
+
closeOnEsc: closeOnEsc,
|
|
8
|
+
closeOnExternalClick: closeOnExternalClick,
|
|
9
|
+
isDismissible: isDismissible,
|
|
10
|
+
onClose: onClose,
|
|
11
|
+
preventDocumentScroll: true,
|
|
12
|
+
trapFocus: true,
|
|
13
|
+
setFocus: true,
|
|
14
|
+
ref: forwardedRef,
|
|
15
|
+
portal: portal,
|
|
16
|
+
...wrapperProps
|
|
17
|
+
}, React.createElement(Dialog.Backdrop, backdropProps), React.createElement(Dialog.Main, {
|
|
18
|
+
"aria-modal": true,
|
|
19
|
+
...rest
|
|
20
|
+
}, React.createElement(Dialog.TitleBar, {
|
|
21
|
+
titleText: title,
|
|
22
|
+
...titleBarProps
|
|
23
|
+
}), children));
|
|
24
|
+
});
|
|
25
|
+
Modal.displayName = 'Modal';
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Button } from '../Buttons/Button.js';
|
|
3
|
+
import { NonIdealState } from './NonIdealState.js';
|
|
4
|
+
import { ProgressRadial } from '../ProgressIndicators/ProgressRadial.js';
|
|
5
|
+
let Svg401 = React.lazy(()=>import('@itwin/itwinui-illustrations-react/Svg401'));
|
|
6
|
+
let Svg403 = React.lazy(()=>import('@itwin/itwinui-illustrations-react/Svg403'));
|
|
7
|
+
let Svg404 = React.lazy(()=>import('@itwin/itwinui-illustrations-react/Svg404'));
|
|
8
|
+
let Svg500 = React.lazy(()=>import('@itwin/itwinui-illustrations-react/Svg500'));
|
|
9
|
+
let Svg502 = React.lazy(()=>import('@itwin/itwinui-illustrations-react/Svg502'));
|
|
10
|
+
let Svg503 = React.lazy(()=>import('@itwin/itwinui-illustrations-react/Svg503'));
|
|
11
|
+
let SvgError = React.lazy(()=>import('@itwin/itwinui-illustrations-react/SvgError'));
|
|
12
|
+
let SvgRedirect = React.lazy(()=>import('@itwin/itwinui-illustrations-react/SvgRedirect'));
|
|
13
|
+
let SvgTimedOut = React.lazy(()=>import('@itwin/itwinui-illustrations-react/SvgTimedOut'));
|
|
14
|
+
export const ErrorPage = React.forwardRef((props, forwardedRef)=>{
|
|
15
|
+
let { errorType, errorName, errorMessage, primaryButtonHandle, primaryButtonLabel, secondaryButtonHandle, secondaryButtonLabel, translatedErrorMessages, ...rest } = props;
|
|
16
|
+
let defaultErrorMessages = {
|
|
17
|
+
badGateway: 'Bad gateway',
|
|
18
|
+
error: 'Error',
|
|
19
|
+
forbidden: 'Forbidden',
|
|
20
|
+
internalServerError: 'Internal server error',
|
|
21
|
+
redirect: 'Redirect',
|
|
22
|
+
pageNotFound: 'Page not found',
|
|
23
|
+
serviceUnavailable: 'Service unavailable',
|
|
24
|
+
timedOut: 'Timed out',
|
|
25
|
+
unauthorized: 'Unauthorized',
|
|
26
|
+
...translatedErrorMessages
|
|
27
|
+
};
|
|
28
|
+
function getErrorIcon() {
|
|
29
|
+
switch(errorType){
|
|
30
|
+
case '300':
|
|
31
|
+
case '301':
|
|
32
|
+
case '302':
|
|
33
|
+
case '303':
|
|
34
|
+
case '304':
|
|
35
|
+
case '305':
|
|
36
|
+
case '307':
|
|
37
|
+
case '308':
|
|
38
|
+
return React.createElement(SvgRedirect, null);
|
|
39
|
+
case '401':
|
|
40
|
+
return React.createElement(Svg401, null);
|
|
41
|
+
case '403':
|
|
42
|
+
return React.createElement(Svg403, null);
|
|
43
|
+
case '404':
|
|
44
|
+
return React.createElement(Svg404, null);
|
|
45
|
+
case '408':
|
|
46
|
+
case '504':
|
|
47
|
+
return React.createElement(SvgTimedOut, null);
|
|
48
|
+
case '500':
|
|
49
|
+
return React.createElement(Svg500, null);
|
|
50
|
+
case '502':
|
|
51
|
+
return React.createElement(Svg502, null);
|
|
52
|
+
case '503':
|
|
53
|
+
return React.createElement(Svg503, null);
|
|
54
|
+
case 'generic':
|
|
55
|
+
default:
|
|
56
|
+
return React.createElement(SvgError, null);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function getHeadingMessage() {
|
|
60
|
+
if (errorName) return errorName;
|
|
61
|
+
switch(errorType){
|
|
62
|
+
case '300':
|
|
63
|
+
case '301':
|
|
64
|
+
case '302':
|
|
65
|
+
case '303':
|
|
66
|
+
case '304':
|
|
67
|
+
case '305':
|
|
68
|
+
case '307':
|
|
69
|
+
case '308':
|
|
70
|
+
return defaultErrorMessages.redirect || '';
|
|
71
|
+
case '401':
|
|
72
|
+
return defaultErrorMessages.unauthorized;
|
|
73
|
+
case '403':
|
|
74
|
+
return defaultErrorMessages.forbidden;
|
|
75
|
+
case '404':
|
|
76
|
+
return defaultErrorMessages.pageNotFound;
|
|
77
|
+
case '408':
|
|
78
|
+
case '504':
|
|
79
|
+
return defaultErrorMessages.timedOut || '';
|
|
80
|
+
case '500':
|
|
81
|
+
return defaultErrorMessages.internalServerError;
|
|
82
|
+
case '502':
|
|
83
|
+
return defaultErrorMessages.badGateway;
|
|
84
|
+
case '503':
|
|
85
|
+
return defaultErrorMessages.serviceUnavailable;
|
|
86
|
+
case 'generic':
|
|
87
|
+
default:
|
|
88
|
+
return defaultErrorMessages.error;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function getPrimaryButton() {
|
|
92
|
+
if (!primaryButtonHandle || !primaryButtonLabel) return null;
|
|
93
|
+
return React.createElement(Button, {
|
|
94
|
+
styleType: "high-visibility",
|
|
95
|
+
onClick: primaryButtonHandle
|
|
96
|
+
}, primaryButtonLabel);
|
|
97
|
+
}
|
|
98
|
+
function getSecondaryButton() {
|
|
99
|
+
if (!secondaryButtonHandle || !secondaryButtonLabel) return null;
|
|
100
|
+
return React.createElement(Button, {
|
|
101
|
+
styleType: "default",
|
|
102
|
+
onClick: secondaryButtonHandle
|
|
103
|
+
}, secondaryButtonLabel);
|
|
104
|
+
}
|
|
105
|
+
function getActions() {
|
|
106
|
+
let primaryButton = getPrimaryButton();
|
|
107
|
+
let secondaryButton = getSecondaryButton();
|
|
108
|
+
if (!primaryButton && !secondaryButton) return null;
|
|
109
|
+
return React.createElement(React.Fragment, null, primaryButton, secondaryButton);
|
|
110
|
+
}
|
|
111
|
+
return React.createElement(NonIdealState, {
|
|
112
|
+
svg: React.createElement(React.Suspense, {
|
|
113
|
+
fallback: React.createElement(ProgressRadial, null)
|
|
114
|
+
}, getErrorIcon()),
|
|
115
|
+
heading: getHeadingMessage(),
|
|
116
|
+
description: errorMessage,
|
|
117
|
+
actions: getActions(),
|
|
118
|
+
ref: forwardedRef,
|
|
119
|
+
...rest
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
ErrorPage.displayName = 'ErrorPage';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Box } from '../../utils/index.js';
|
|
3
|
+
import cx from 'classnames';
|
|
4
|
+
export const NonIdealState = React.forwardRef((props, forwardedRef)=>{
|
|
5
|
+
let { className, svg, heading, description, actions, illustrationProps, titleProps, descriptionProps, actionsProps, ...rest } = props;
|
|
6
|
+
return React.createElement(Box, {
|
|
7
|
+
className: cx('iui-non-ideal-state', className),
|
|
8
|
+
ref: forwardedRef,
|
|
9
|
+
...rest
|
|
10
|
+
}, React.createElement(Box, {
|
|
11
|
+
as: "div",
|
|
12
|
+
...illustrationProps,
|
|
13
|
+
className: cx('iui-non-ideal-state-illustration', illustrationProps?.className)
|
|
14
|
+
}, svg), heading && React.createElement(Box, {
|
|
15
|
+
as: "div",
|
|
16
|
+
...titleProps,
|
|
17
|
+
className: cx('iui-non-ideal-state-title', titleProps?.className)
|
|
18
|
+
}, heading), description && React.createElement(Box, {
|
|
19
|
+
as: "div",
|
|
20
|
+
...descriptionProps,
|
|
21
|
+
className: cx('iui-non-ideal-state-description', descriptionProps?.className)
|
|
22
|
+
}, description), actions && React.createElement(Box, {
|
|
23
|
+
as: "div",
|
|
24
|
+
...actionsProps,
|
|
25
|
+
className: cx('iui-non-ideal-state-actions', actionsProps?.className)
|
|
26
|
+
}, actions));
|
|
27
|
+
});
|
|
28
|
+
NonIdealState.displayName = 'NonIdealState';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Box } from '../../utils/index.js';
|
|
3
|
+
import cx from 'classnames';
|
|
4
|
+
export const NotificationMarker = React.forwardRef((props, ref)=>{
|
|
5
|
+
let { className, children, status = 'primary', pulsing = false, enabled = true, ...rest } = props;
|
|
6
|
+
return React.createElement(Box, {
|
|
7
|
+
as: "span",
|
|
8
|
+
ref: ref,
|
|
9
|
+
className: cx({
|
|
10
|
+
'iui-notification-marker': enabled
|
|
11
|
+
}, className),
|
|
12
|
+
"data-iui-variant": enabled ? status : null,
|
|
13
|
+
"data-iui-urgent": enabled ? pulsing : null,
|
|
14
|
+
...rest
|
|
15
|
+
}, children);
|
|
16
|
+
});
|
|
17
|
+
NotificationMarker.displayName = 'NotificationMarker';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Box, isUnitTest, polymorphic } from '../../utils/index.js';
|
|
3
|
+
let OverlayComponent = React.forwardRef((props, forwardedRef)=>{
|
|
4
|
+
let { content, children, ...rest } = props;
|
|
5
|
+
return React.createElement(OverlayWrapper, {
|
|
6
|
+
ref: forwardedRef,
|
|
7
|
+
...rest
|
|
8
|
+
}, React.createElement(OverlayOverlay, null, content), React.createElement(OverlayHiddenContent, null, children));
|
|
9
|
+
});
|
|
10
|
+
OverlayComponent.displayName = 'Overlay';
|
|
11
|
+
let OverlayHiddenContent = React.forwardRef((props, ref)=>{
|
|
12
|
+
let { children, ...rest } = props;
|
|
13
|
+
useInertPolyfill();
|
|
14
|
+
return React.createElement(Box, {
|
|
15
|
+
inert: '',
|
|
16
|
+
ref: ref,
|
|
17
|
+
...rest
|
|
18
|
+
}, children);
|
|
19
|
+
});
|
|
20
|
+
OverlayHiddenContent.displayName = 'Overlay.HiddenContent';
|
|
21
|
+
let OverlayOverlay = polymorphic('iui-overlay');
|
|
22
|
+
OverlayOverlay.displayName = 'Overlay.Overlay';
|
|
23
|
+
let OverlayWrapper = polymorphic('iui-overlay-wrapper');
|
|
24
|
+
OverlayWrapper.displayName = 'Overlay.Wrapper';
|
|
25
|
+
export const Overlay = Object.assign(OverlayComponent, {
|
|
26
|
+
Wrapper: OverlayWrapper,
|
|
27
|
+
HiddenContent: OverlayHiddenContent,
|
|
28
|
+
Overlay: OverlayOverlay
|
|
29
|
+
});
|
|
30
|
+
let useInertPolyfill = ()=>{
|
|
31
|
+
let loaded = React.useRef(false);
|
|
32
|
+
let modulePath = 'https://cdn.jsdelivr.net/npm/wicg-inert@3.1.2/dist/inert.min.js';
|
|
33
|
+
React.useEffect(()=>{
|
|
34
|
+
(async ()=>{
|
|
35
|
+
if (!HTMLElement.prototype.hasOwnProperty('inert') && !loaded.current && !isUnitTest) {
|
|
36
|
+
await new Function('url', 'return import(url)')(modulePath);
|
|
37
|
+
loaded.current = true;
|
|
38
|
+
}
|
|
39
|
+
})();
|
|
40
|
+
}, []);
|
|
41
|
+
};
|