@itwin/itwinui-react 3.12.1 → 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 +44 -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,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { SvgClose, mergeEventHandlers, Box } from '../../utils/index.js';
|
|
4
|
+
import { IconButton } from '../Buttons/IconButton.js';
|
|
5
|
+
import { useDialogContext } from './DialogContext.js';
|
|
6
|
+
import { DialogTitleBarTitle } from './DialogTitleBarTitle.js';
|
|
7
|
+
import { useDialogDragContext } from './DialogDragContext.js';
|
|
8
|
+
export const DialogTitleBar = Object.assign(React.forwardRef((props, ref)=>{
|
|
9
|
+
let dialogContext = useDialogContext();
|
|
10
|
+
let { children, titleText, isDismissible = dialogContext.isDismissible, onClose = dialogContext.onClose, isDraggable = dialogContext.isDraggable, className, onPointerDown: onPointerDownProp, ...rest } = props;
|
|
11
|
+
let { onPointerDown } = useDialogDragContext();
|
|
12
|
+
return React.createElement(Box, {
|
|
13
|
+
className: cx('iui-dialog-title-bar', className, {
|
|
14
|
+
'iui-dialog-title-bar-filled': isDraggable
|
|
15
|
+
}),
|
|
16
|
+
ref: ref,
|
|
17
|
+
onPointerDown: mergeEventHandlers(onPointerDownProp, onPointerDown),
|
|
18
|
+
...rest
|
|
19
|
+
}, children ? children : React.createElement(React.Fragment, null, React.createElement(DialogTitleBarTitle, null, titleText), isDismissible && React.createElement(IconButton, {
|
|
20
|
+
size: "small",
|
|
21
|
+
styleType: "borderless",
|
|
22
|
+
onClick: onClose,
|
|
23
|
+
"aria-label": "Close",
|
|
24
|
+
"data-iui-shift": "right"
|
|
25
|
+
}, React.createElement(SvgClose, null))));
|
|
26
|
+
}), {
|
|
27
|
+
Title: DialogTitleBarTitle
|
|
28
|
+
});
|
|
29
|
+
DialogTitleBar.displayName = 'Dialog.TitleBar';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { Box } from '../../utils/components/Box.js';
|
|
4
|
+
export const Divider = React.forwardRef((props, ref)=>{
|
|
5
|
+
let { className, orientation = 'horizontal', ...rest } = props;
|
|
6
|
+
return React.createElement(Box, {
|
|
7
|
+
as: "hr",
|
|
8
|
+
className: cx('iui-divider', className),
|
|
9
|
+
"aria-orientation": 'vertical' === orientation ? 'vertical' : void 0,
|
|
10
|
+
ref: ref,
|
|
11
|
+
...rest
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
Divider.displayName = 'Divider';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { mergeEventHandlers, useControlledState } from '../../utils/index.js';
|
|
3
|
+
import { Menu } from '../Menu/Menu.js';
|
|
4
|
+
import { FloatingTree } from '@floating-ui/react';
|
|
5
|
+
export const DropdownMenu = React.forwardRef((props, forwardedRef)=>React.createElement(FloatingTree, null, React.createElement(DropdownMenuContent, {
|
|
6
|
+
ref: forwardedRef,
|
|
7
|
+
...props
|
|
8
|
+
})));
|
|
9
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
10
|
+
let DropdownMenuContent = React.forwardRef((props, forwardedRef)=>{
|
|
11
|
+
let { menuItems, children, role = 'menu', visible: visibleProp, placement = 'bottom-start', matchWidth = false, onVisibleChange, portal = true, ...rest } = props;
|
|
12
|
+
let [visible, setVisible] = useControlledState(false, visibleProp, onVisibleChange);
|
|
13
|
+
let menuContent = React.useMemo(()=>{
|
|
14
|
+
if ('function' == typeof menuItems) return menuItems(()=>setVisible(false));
|
|
15
|
+
return menuItems;
|
|
16
|
+
}, [
|
|
17
|
+
menuItems,
|
|
18
|
+
setVisible
|
|
19
|
+
]);
|
|
20
|
+
return React.createElement(React.Fragment, null, React.createElement(Menu, {
|
|
21
|
+
trigger: children,
|
|
22
|
+
onKeyDown: mergeEventHandlers(props.onKeyDown, (e)=>{
|
|
23
|
+
if (e.defaultPrevented) return;
|
|
24
|
+
if ('Tab' === e.key) setVisible(false);
|
|
25
|
+
}),
|
|
26
|
+
role: role,
|
|
27
|
+
ref: forwardedRef,
|
|
28
|
+
portal: portal,
|
|
29
|
+
popoverProps: {
|
|
30
|
+
placement,
|
|
31
|
+
matchWidth,
|
|
32
|
+
visible,
|
|
33
|
+
onVisibleChange: setVisible
|
|
34
|
+
},
|
|
35
|
+
...rest
|
|
36
|
+
}, menuContent));
|
|
37
|
+
});
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import cx from 'classnames';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { StatusIconMap, SvgChevronRight, Box, useSafeContext, polymorphic, mergeEventHandlers, ButtonBase, useId } from '../../utils/index.js';
|
|
4
|
+
import { Icon } from '../Icon/Icon.js';
|
|
5
|
+
import { LinkBox } from '../LinkAction/LinkAction.js';
|
|
6
|
+
let ExpandableBlockContext = React.createContext(void 0);
|
|
7
|
+
ExpandableBlockContext.displayName = 'ExpandableBlockContext';
|
|
8
|
+
let ExpandableBlockComponent = React.forwardRef((props, forwardedRef)=>{
|
|
9
|
+
let { children, title, caption, endIcon, ...rest } = props;
|
|
10
|
+
return React.createElement(ExpandableBlock.Wrapper, {
|
|
11
|
+
...rest,
|
|
12
|
+
ref: forwardedRef
|
|
13
|
+
}, React.createElement(ExpandableBlock.Trigger, {
|
|
14
|
+
label: title,
|
|
15
|
+
caption: caption,
|
|
16
|
+
endIcon: endIcon
|
|
17
|
+
}), React.createElement(ExpandableBlock.Content, null, children));
|
|
18
|
+
});
|
|
19
|
+
ExpandableBlockComponent.displayName = 'ExpandableBlock';
|
|
20
|
+
let ExpandableBlockWrapper = React.forwardRef((props, forwardedRef)=>{
|
|
21
|
+
let { children, className, onToggle, style, isExpanded, status, size = 'default', styleType = 'default', disabled = false, ...rest } = props;
|
|
22
|
+
let [expandedState, setExpanded] = React.useState(isExpanded ?? false);
|
|
23
|
+
let expanded = isExpanded ?? expandedState;
|
|
24
|
+
let [descriptionId, setDescriptionId] = React.useState(void 0);
|
|
25
|
+
return React.createElement(ExpandableBlockContext.Provider, {
|
|
26
|
+
value: {
|
|
27
|
+
status,
|
|
28
|
+
isExpanded: expanded,
|
|
29
|
+
onToggle,
|
|
30
|
+
size,
|
|
31
|
+
styleType,
|
|
32
|
+
disabled,
|
|
33
|
+
setExpanded,
|
|
34
|
+
children,
|
|
35
|
+
descriptionId,
|
|
36
|
+
setDescriptionId
|
|
37
|
+
}
|
|
38
|
+
}, React.createElement(Box, {
|
|
39
|
+
className: cx('iui-expandable-block', className),
|
|
40
|
+
"data-iui-expanded": expanded,
|
|
41
|
+
"data-iui-size": size,
|
|
42
|
+
"data-iui-variant": 'default' !== styleType ? styleType : void 0,
|
|
43
|
+
style: style,
|
|
44
|
+
ref: forwardedRef,
|
|
45
|
+
...rest
|
|
46
|
+
}, children));
|
|
47
|
+
});
|
|
48
|
+
ExpandableBlockWrapper.displayName = 'ExpandableBlock.Wrapper';
|
|
49
|
+
let ExpandableBlockTrigger = React.forwardRef((props, forwardedRef)=>{
|
|
50
|
+
let { className, children, label, caption, expandIcon, endIcon, ...rest } = props;
|
|
51
|
+
let { disabled, status } = useSafeContext(ExpandableBlockContext);
|
|
52
|
+
return React.createElement(LinkBox, {
|
|
53
|
+
className: cx('iui-expandable-header', className),
|
|
54
|
+
"data-iui-disabled": disabled ? 'true' : void 0,
|
|
55
|
+
ref: forwardedRef,
|
|
56
|
+
...rest
|
|
57
|
+
}, children ?? React.createElement(React.Fragment, null, expandIcon ?? React.createElement(ExpandableBlock.ExpandIcon, null), React.createElement(ExpandableBlock.LabelArea, null, React.createElement(ExpandableBlock.Title, null, label), caption && React.createElement(ExpandableBlock.Caption, null, caption)), endIcon || status ? React.createElement(ExpandableBlock.EndIcon, null, endIcon) : null));
|
|
58
|
+
});
|
|
59
|
+
ExpandableBlockTrigger.displayName = 'ExpandableBlock.Trigger';
|
|
60
|
+
let ExpandableBlockExpandIcon = React.forwardRef((props, forwardedRef)=>{
|
|
61
|
+
let { className, children, ...rest } = props;
|
|
62
|
+
return React.createElement(Icon, {
|
|
63
|
+
className: cx('iui-expandable-block-icon', className),
|
|
64
|
+
ref: forwardedRef,
|
|
65
|
+
...rest
|
|
66
|
+
}, children ?? React.createElement(SvgChevronRight, {
|
|
67
|
+
"aria-hidden": true
|
|
68
|
+
}));
|
|
69
|
+
});
|
|
70
|
+
ExpandableBlockExpandIcon.displayName = 'ExpandableBlock.ExpandIcon';
|
|
71
|
+
let ExpandableBlockLabelArea = polymorphic.span('iui-expandable-block-label');
|
|
72
|
+
ExpandableBlockLabelArea.displayName = 'ExpandableBlock.LabelArea';
|
|
73
|
+
let ExpandableBlockTitle = React.forwardRef((props, forwardedRef)=>{
|
|
74
|
+
let { className, children, onClick: onClickProp, ...rest } = props;
|
|
75
|
+
let { isExpanded, setExpanded, disabled, onToggle, descriptionId } = useSafeContext(ExpandableBlockContext);
|
|
76
|
+
return React.createElement(ButtonBase, {
|
|
77
|
+
className: cx('iui-expandable-block-title', 'iui-link-action', className),
|
|
78
|
+
"aria-expanded": isExpanded,
|
|
79
|
+
"aria-disabled": disabled,
|
|
80
|
+
onClick: mergeEventHandlers(onClickProp, ()=>{
|
|
81
|
+
if (disabled) return;
|
|
82
|
+
setExpanded(!isExpanded);
|
|
83
|
+
onToggle?.(!isExpanded);
|
|
84
|
+
}),
|
|
85
|
+
ref: forwardedRef,
|
|
86
|
+
"aria-describedby": descriptionId,
|
|
87
|
+
...rest
|
|
88
|
+
}, children);
|
|
89
|
+
});
|
|
90
|
+
ExpandableBlockTitle.displayName = 'ExpandableBlock.Title';
|
|
91
|
+
let ExpandableBlockCaption = React.forwardRef((props, forwardedRef)=>{
|
|
92
|
+
let fallbackId = useId();
|
|
93
|
+
let { setDescriptionId } = useSafeContext(ExpandableBlockContext);
|
|
94
|
+
React.useEffect(()=>{
|
|
95
|
+
setDescriptionId(props.id || fallbackId);
|
|
96
|
+
return ()=>setDescriptionId(void 0);
|
|
97
|
+
}, [
|
|
98
|
+
props.id,
|
|
99
|
+
fallbackId,
|
|
100
|
+
setDescriptionId
|
|
101
|
+
]);
|
|
102
|
+
return React.createElement(Box, {
|
|
103
|
+
ref: forwardedRef,
|
|
104
|
+
id: fallbackId,
|
|
105
|
+
...props,
|
|
106
|
+
className: cx('iui-expandable-block-caption', props?.className)
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
ExpandableBlockCaption.displayName = 'ExpandableBlock.Caption';
|
|
110
|
+
let ExpandableBlockEndIcon = React.forwardRef((props, forwardedRef)=>{
|
|
111
|
+
let { children, ...rest } = props;
|
|
112
|
+
let { status } = useSafeContext(ExpandableBlockContext);
|
|
113
|
+
let icon = children ?? (status && StatusIconMap[status]());
|
|
114
|
+
return React.createElement(Icon, {
|
|
115
|
+
fill: status,
|
|
116
|
+
ref: forwardedRef,
|
|
117
|
+
...rest
|
|
118
|
+
}, icon);
|
|
119
|
+
});
|
|
120
|
+
ExpandableBlockEndIcon.displayName = 'ExpandableBlock.EndIcon';
|
|
121
|
+
let ExpandableBlockContent = React.forwardRef((props, forwardedRef)=>{
|
|
122
|
+
let { className, children, innerProps, ...rest } = props;
|
|
123
|
+
return React.createElement(Box, {
|
|
124
|
+
className: cx('iui-expandable-content', className),
|
|
125
|
+
ref: forwardedRef,
|
|
126
|
+
...rest
|
|
127
|
+
}, React.createElement(Box, innerProps, children));
|
|
128
|
+
});
|
|
129
|
+
ExpandableBlockContent.displayName = 'ExpandableBlock.Content';
|
|
130
|
+
export const ExpandableBlock = Object.assign(ExpandableBlockComponent, {
|
|
131
|
+
Wrapper: ExpandableBlockWrapper,
|
|
132
|
+
Trigger: ExpandableBlockTrigger,
|
|
133
|
+
ExpandIcon: ExpandableBlockExpandIcon,
|
|
134
|
+
LabelArea: ExpandableBlockLabelArea,
|
|
135
|
+
Title: ExpandableBlockTitle,
|
|
136
|
+
Caption: ExpandableBlockCaption,
|
|
137
|
+
EndIcon: ExpandableBlockEndIcon,
|
|
138
|
+
Content: ExpandableBlockContent
|
|
139
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FieldsetBase } from '../../utils/index.js';
|
|
3
|
+
import cx from 'classnames';
|
|
4
|
+
export const Fieldset = React.forwardRef((props, ref)=>{
|
|
5
|
+
let { children, className, disabled, legend, ...rest } = props;
|
|
6
|
+
return React.createElement(FieldsetBase, {
|
|
7
|
+
className: cx('iui-fieldset', className),
|
|
8
|
+
disabled: disabled,
|
|
9
|
+
ref: ref,
|
|
10
|
+
...rest
|
|
11
|
+
}, legend && React.createElement("legend", null, legend), disabled ? React.Children.map(children, (child)=>React.isValidElement(child) ? React.cloneElement(child, {
|
|
12
|
+
disabled: true
|
|
13
|
+
}) : child) : children);
|
|
14
|
+
});
|
|
15
|
+
Fieldset.displayName = 'Fieldset';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Box, polymorphic, SvgUpload } from '../../utils/index.js';
|
|
3
|
+
import cx from 'classnames';
|
|
4
|
+
import { FileUploadCard } from './FileUploadCard.js';
|
|
5
|
+
let FileEmptyCardIcon = polymorphic.span('iui-file-card-empty-icon', {
|
|
6
|
+
children: React.createElement(SvgUpload, null)
|
|
7
|
+
});
|
|
8
|
+
FileEmptyCardIcon.displayName = 'FileEmptyCard.Icon';
|
|
9
|
+
let FileEmptyCardText = polymorphic.span('iui-file-card-empty-action');
|
|
10
|
+
FileEmptyCardText.displayName = 'FileEmptyCard.Text';
|
|
11
|
+
let FileEmptyCardComponent = React.forwardRef((props, ref)=>{
|
|
12
|
+
let { children, className, ...rest } = props;
|
|
13
|
+
return React.createElement(Box, {
|
|
14
|
+
className: cx('iui-file-card-empty', className),
|
|
15
|
+
ref: ref,
|
|
16
|
+
...rest
|
|
17
|
+
}, children ?? React.createElement(React.Fragment, null, React.createElement(FileEmptyCard.Icon, null), React.createElement(FileEmptyCard.Text, null, React.createElement(FileUploadCard.InputLabel, null, "Choose a file"), React.createElement("div", null, "to upload."))));
|
|
18
|
+
});
|
|
19
|
+
FileEmptyCardComponent.displayName = 'FileEmptyCard';
|
|
20
|
+
export const FileEmptyCard = Object.assign(FileEmptyCardComponent, {
|
|
21
|
+
Icon: FileEmptyCardIcon,
|
|
22
|
+
Text: FileEmptyCardText
|
|
23
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { Box, mergeEventHandlers } from '../../utils/index.js';
|
|
4
|
+
export const FileUpload = React.forwardRef((props, forwardedRef)=>{
|
|
5
|
+
let { dragContent, children, onFileDropped, contentProps, ...rest } = props;
|
|
6
|
+
let [isDragActive, setIsDragActive] = React.useState(false);
|
|
7
|
+
let onDragOverHandler = (e)=>{
|
|
8
|
+
e.preventDefault();
|
|
9
|
+
e.stopPropagation();
|
|
10
|
+
};
|
|
11
|
+
let onDragEnterHandler = (e)=>{
|
|
12
|
+
e.preventDefault();
|
|
13
|
+
e.stopPropagation();
|
|
14
|
+
if (!isDragActive && e.dataTransfer?.items?.[0]?.kind === 'file') setIsDragActive(true);
|
|
15
|
+
};
|
|
16
|
+
let onDragLeaveHandler = (e)=>{
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
e.stopPropagation();
|
|
19
|
+
if (isDragActive && !e.currentTarget?.contains(e.relatedTarget)) setIsDragActive(false);
|
|
20
|
+
};
|
|
21
|
+
let onDropHandler = (e)=>{
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
if (isDragActive) {
|
|
25
|
+
setIsDragActive(false);
|
|
26
|
+
onFileDropped(e.dataTransfer?.files, e);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return React.createElement(Box, {
|
|
30
|
+
...rest,
|
|
31
|
+
className: cx('iui-file-upload', {
|
|
32
|
+
'iui-drag': isDragActive
|
|
33
|
+
}, props?.className),
|
|
34
|
+
ref: forwardedRef,
|
|
35
|
+
onDragEnter: mergeEventHandlers(props.onDragEnter, onDragEnterHandler),
|
|
36
|
+
onDragOver: mergeEventHandlers(props.onDragOver, onDragOverHandler),
|
|
37
|
+
onDragLeave: mergeEventHandlers(props.onDragLeave, onDragLeaveHandler),
|
|
38
|
+
onDrop: mergeEventHandlers(props.onDrop, onDropHandler)
|
|
39
|
+
}, dragContent ? children : React.createElement(Box, {
|
|
40
|
+
as: "div",
|
|
41
|
+
...contentProps,
|
|
42
|
+
className: cx('iui-content', contentProps?.className)
|
|
43
|
+
}, children), dragContent && React.createElement(Box, {
|
|
44
|
+
as: "div",
|
|
45
|
+
...contentProps,
|
|
46
|
+
className: cx('iui-content', contentProps?.className)
|
|
47
|
+
}, dragContent));
|
|
48
|
+
});
|
|
49
|
+
FileUpload.displayName = 'FileUpload';
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { getWindow, SvgDocument, useMergedRefs, useSafeContext, useId, mergeEventHandlers, polymorphic, Box } from '../../utils/index.js';
|
|
3
|
+
import cx from 'classnames';
|
|
4
|
+
import { FileEmptyCard } from './FileEmptyCard.js';
|
|
5
|
+
import { Anchor } from '../Typography/Anchor.js';
|
|
6
|
+
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
7
|
+
let toBytes = (bytes)=>{
|
|
8
|
+
let units = [
|
|
9
|
+
' bytes',
|
|
10
|
+
'KB',
|
|
11
|
+
'MB',
|
|
12
|
+
'GB',
|
|
13
|
+
'TB'
|
|
14
|
+
];
|
|
15
|
+
let i = 0;
|
|
16
|
+
while(bytes >= 1024 && ++i)bytes /= 1024;
|
|
17
|
+
return bytes.toFixed(bytes < 10 && i > 0 ? 2 : 0) + units[i];
|
|
18
|
+
};
|
|
19
|
+
let toDate = (dateNumber)=>{
|
|
20
|
+
let date = new Date(dateNumber);
|
|
21
|
+
return date.toDateString() + ' ' + date.toLocaleTimeString();
|
|
22
|
+
};
|
|
23
|
+
let FileUploadCardIcon = polymorphic.span('iui-file-card-icon', {
|
|
24
|
+
children: React.createElement(SvgDocument, null)
|
|
25
|
+
});
|
|
26
|
+
FileUploadCardIcon.displayName = 'FileUploadCard.Icon';
|
|
27
|
+
let FileUploadCardInfo = polymorphic.span('iui-file-card-text');
|
|
28
|
+
FileUploadCardInfo.displayName = 'FileUploadCard.Info';
|
|
29
|
+
let FileUploadCardTitle = React.forwardRef((props, ref)=>{
|
|
30
|
+
let { children, className, ...rest } = props;
|
|
31
|
+
let { files } = useSafeContext(FileUploadCardContext);
|
|
32
|
+
let title = files.length > 1 ? files.length + ' files selected' : files[0].name;
|
|
33
|
+
return React.createElement(Box, {
|
|
34
|
+
as: "span",
|
|
35
|
+
className: cx('iui-file-card-title', className),
|
|
36
|
+
ref: ref,
|
|
37
|
+
...rest
|
|
38
|
+
}, children ?? title);
|
|
39
|
+
});
|
|
40
|
+
FileUploadCardTitle.displayName = 'FileUploadCard.Title';
|
|
41
|
+
let FileUploadCardDescription = React.forwardRef((props, ref)=>{
|
|
42
|
+
let { children, className, ...rest } = props;
|
|
43
|
+
let { files } = useSafeContext(FileUploadCardContext);
|
|
44
|
+
let description = files.length > 1 ? files[0].name + ', ' + files[1].name : toBytes(files[0].size) + ' ' + toDate(files[0].lastModified);
|
|
45
|
+
if (files.length > 2) description += ', and ' + (files.length - 2) + ' others';
|
|
46
|
+
return React.createElement(Box, {
|
|
47
|
+
as: "span",
|
|
48
|
+
className: cx('iui-file-card-description', className),
|
|
49
|
+
ref: ref,
|
|
50
|
+
...rest
|
|
51
|
+
}, children ?? description);
|
|
52
|
+
});
|
|
53
|
+
FileUploadCardDescription.displayName = 'FileUploadCard.Description';
|
|
54
|
+
let FileUploadCardAction = polymorphic.div('iui-file-card-action');
|
|
55
|
+
FileUploadCardAction.displayName = 'FileUploadCard.Action';
|
|
56
|
+
let FileUploadCardInputLabel = React.forwardRef((props, ref)=>{
|
|
57
|
+
let { children, ...rest } = props;
|
|
58
|
+
let { inputId } = useSafeContext(FileUploadCardContext);
|
|
59
|
+
return React.createElement(Anchor, {
|
|
60
|
+
as: "label",
|
|
61
|
+
ref: ref,
|
|
62
|
+
htmlFor: inputId,
|
|
63
|
+
...rest
|
|
64
|
+
}, children);
|
|
65
|
+
});
|
|
66
|
+
FileUploadCardInputLabel.displayName = 'FileUploadCard.InputLabel';
|
|
67
|
+
let FileUploadCardInput = React.forwardRef((props, ref)=>{
|
|
68
|
+
let { children, onChange, id, ...rest } = props;
|
|
69
|
+
let { files, onFilesChange, setInternalFiles, inputId, setInputId } = useSafeContext(FileUploadCardContext);
|
|
70
|
+
let setNativeFilesRef = React.useCallback((node)=>{
|
|
71
|
+
if (!node || !getWindow()?.DataTransfer) return;
|
|
72
|
+
let dataTransfer = new DataTransfer();
|
|
73
|
+
dataTransfer.items.clear();
|
|
74
|
+
Array.from(files).forEach((file)=>dataTransfer.items.add(file));
|
|
75
|
+
node.files = dataTransfer.files;
|
|
76
|
+
}, [
|
|
77
|
+
files
|
|
78
|
+
]);
|
|
79
|
+
let refs = useMergedRefs(ref, setNativeFilesRef);
|
|
80
|
+
React.useEffect(()=>{
|
|
81
|
+
if (id && id !== inputId) setInputId(id);
|
|
82
|
+
}, [
|
|
83
|
+
id,
|
|
84
|
+
inputId,
|
|
85
|
+
setInputId
|
|
86
|
+
]);
|
|
87
|
+
return React.createElement(React.Fragment, null, React.createElement(VisuallyHidden, {
|
|
88
|
+
as: "input",
|
|
89
|
+
type: "file",
|
|
90
|
+
unhideOnFocus: false,
|
|
91
|
+
onChange: mergeEventHandlers(onChange, (e)=>{
|
|
92
|
+
let _files = Array.from(e.currentTarget.files || []);
|
|
93
|
+
onFilesChange?.(_files);
|
|
94
|
+
setInternalFiles(_files);
|
|
95
|
+
}),
|
|
96
|
+
ref: refs,
|
|
97
|
+
id: id ?? inputId,
|
|
98
|
+
...rest
|
|
99
|
+
}), children);
|
|
100
|
+
});
|
|
101
|
+
FileUploadCardInput.displayName = 'FileUploadCard.Input';
|
|
102
|
+
let FileUploadCardComponent = React.forwardRef((props, ref)=>{
|
|
103
|
+
let { className, children, files: filesProp, onFilesChange, emptyCard = React.createElement(FileEmptyCard, null), input, ...rest } = props;
|
|
104
|
+
let [internalFiles, setInternalFiles] = React.useState();
|
|
105
|
+
let uid = useId();
|
|
106
|
+
let [inputId, setInputId] = React.useState(uid);
|
|
107
|
+
let files = filesProp ?? internalFiles ?? [];
|
|
108
|
+
return React.createElement(FileUploadCardContext.Provider, {
|
|
109
|
+
value: {
|
|
110
|
+
files,
|
|
111
|
+
onFilesChange,
|
|
112
|
+
setInternalFiles,
|
|
113
|
+
inputId,
|
|
114
|
+
setInputId
|
|
115
|
+
}
|
|
116
|
+
}, files?.length ? React.createElement(Box, {
|
|
117
|
+
className: cx('iui-file-card', className),
|
|
118
|
+
ref: ref,
|
|
119
|
+
...rest
|
|
120
|
+
}, children ?? React.createElement(React.Fragment, null, React.createElement(FileUploadCard.Icon, null), React.createElement(FileUploadCard.Info, null, React.createElement(FileUploadCard.Title, null), React.createElement(FileUploadCard.Description, null)), React.createElement(FileUploadCard.Action, null, React.createElement(FileUploadCard.InputLabel, null, "Replace")))) : emptyCard, input ?? React.createElement(FileUploadCard.Input, null));
|
|
121
|
+
});
|
|
122
|
+
export const FileUploadCard = Object.assign(FileUploadCardComponent, {
|
|
123
|
+
Icon: FileUploadCardIcon,
|
|
124
|
+
Info: FileUploadCardInfo,
|
|
125
|
+
Title: FileUploadCardTitle,
|
|
126
|
+
Description: FileUploadCardDescription,
|
|
127
|
+
Action: FileUploadCardAction,
|
|
128
|
+
InputLabel: FileUploadCardInputLabel,
|
|
129
|
+
Input: FileUploadCardInput
|
|
130
|
+
});
|
|
131
|
+
FileUploadCard.displayName = 'FileUploadCard';
|
|
132
|
+
export const FileUploadCardContext = React.createContext(void 0);
|
|
133
|
+
FileUploadCardContext.displayName = 'FileUploadCardContext';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { SvgUpload, Box } from '../../utils/index.js';
|
|
4
|
+
import { Anchor } from '../Typography/Anchor.js';
|
|
5
|
+
export const FileUploadTemplate = React.forwardRef((props, ref)=>{
|
|
6
|
+
let { onChange, acceptMultiple = true, acceptType, label = 'Choose a file', subtitle = 'or drag & drop it here.', children, className, ...rest } = props;
|
|
7
|
+
return React.createElement(Box, {
|
|
8
|
+
className: cx('iui-file-upload-template', className),
|
|
9
|
+
ref: ref,
|
|
10
|
+
...rest
|
|
11
|
+
}, React.createElement(SvgUpload, {
|
|
12
|
+
className: "iui-template-icon",
|
|
13
|
+
"aria-hidden": true
|
|
14
|
+
}), React.createElement(Box, {
|
|
15
|
+
className: "iui-template-text"
|
|
16
|
+
}, React.createElement(Anchor, {
|
|
17
|
+
as: "label"
|
|
18
|
+
}, React.createElement(Box, {
|
|
19
|
+
as: "input",
|
|
20
|
+
className: "iui-browse-input",
|
|
21
|
+
type: "file",
|
|
22
|
+
onChange: onChange,
|
|
23
|
+
multiple: acceptMultiple,
|
|
24
|
+
accept: acceptType
|
|
25
|
+
}), label), React.createElement("div", null, subtitle), children));
|
|
26
|
+
});
|
|
27
|
+
FileUploadTemplate.displayName = 'FileUploadTemplate';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { Box } from '../../utils/components/Box.js';
|
|
4
|
+
let sizeTokens = [
|
|
5
|
+
'3xs',
|
|
6
|
+
'2xs',
|
|
7
|
+
'xs',
|
|
8
|
+
's',
|
|
9
|
+
'm',
|
|
10
|
+
'l',
|
|
11
|
+
'xl',
|
|
12
|
+
'2xl',
|
|
13
|
+
'3xl'
|
|
14
|
+
];
|
|
15
|
+
let getValueForToken = (token)=>{
|
|
16
|
+
if (sizeTokens.includes(token)) return `var(--iui-size-${token})`;
|
|
17
|
+
return token;
|
|
18
|
+
};
|
|
19
|
+
let FlexComponent = React.forwardRef((props, ref)=>{
|
|
20
|
+
let { display, flexDirection, justifyContent, alignItems, gap, flexWrap, className, style, ...rest } = props;
|
|
21
|
+
return React.createElement(Box, {
|
|
22
|
+
className: cx('iui-flex', className),
|
|
23
|
+
style: {
|
|
24
|
+
'--iui-flex-display': display,
|
|
25
|
+
'--iui-flex-direction': flexDirection,
|
|
26
|
+
'--iui-flex-justify': justifyContent,
|
|
27
|
+
'--iui-flex-align': alignItems,
|
|
28
|
+
'--iui-flex-gap': getValueForToken(gap),
|
|
29
|
+
'--iui-flex-wrap': flexWrap,
|
|
30
|
+
...style
|
|
31
|
+
},
|
|
32
|
+
ref: ref,
|
|
33
|
+
...rest
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
FlexComponent.displayName = 'Flex';
|
|
37
|
+
let FlexSpacer = React.forwardRef((props, ref)=>{
|
|
38
|
+
let { flex, className, style, ...rest } = props;
|
|
39
|
+
return React.createElement(Box, {
|
|
40
|
+
className: cx('iui-flex-spacer', className),
|
|
41
|
+
style: {
|
|
42
|
+
'--iui-flex-spacer-flex': flex,
|
|
43
|
+
...style
|
|
44
|
+
},
|
|
45
|
+
ref: ref,
|
|
46
|
+
...rest
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
FlexSpacer.displayName = 'Flex.Spacer';
|
|
50
|
+
let FlexItem = React.forwardRef((props, ref)=>{
|
|
51
|
+
let { gapBefore, gapAfter, flex, alignSelf, className, style, ...rest } = props;
|
|
52
|
+
let _style = {
|
|
53
|
+
'--iui-flex-item-flex': flex,
|
|
54
|
+
'--iui-flex-item-align': alignSelf,
|
|
55
|
+
'--iui-flex-item-gap-before': getValueForToken(gapBefore),
|
|
56
|
+
'--iui-flex-item-gap-after': getValueForToken(gapAfter),
|
|
57
|
+
...void 0 !== gapBefore && {
|
|
58
|
+
'--iui-flex-item-gap-before-toggle': 'var(--iui-on)'
|
|
59
|
+
},
|
|
60
|
+
...void 0 !== gapAfter && {
|
|
61
|
+
'--iui-flex-item-gap-after-toggle': 'var(--iui-on)'
|
|
62
|
+
},
|
|
63
|
+
...style
|
|
64
|
+
};
|
|
65
|
+
return React.createElement(Box, {
|
|
66
|
+
className: cx('iui-flex-item', className),
|
|
67
|
+
ref: ref,
|
|
68
|
+
style: _style,
|
|
69
|
+
...rest
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
FlexItem.displayName = 'Flex.Item';
|
|
73
|
+
export const Flex = Object.assign(FlexComponent, {
|
|
74
|
+
Item: FlexItem,
|
|
75
|
+
Spacer: FlexSpacer
|
|
76
|
+
});
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import cx from 'classnames';
|
|
3
|
+
import { Box } from '../../utils/index.js';
|
|
4
|
+
import { FooterItem } from './FooterItem.js';
|
|
5
|
+
import { FooterSeparator } from './FooterSeparator.js';
|
|
6
|
+
import { FooterList } from './FooterList.js';
|
|
7
|
+
import { Anchor } from '../Typography/Anchor.js';
|
|
8
|
+
let footerTranslations = {
|
|
9
|
+
cookies: 'Cookies',
|
|
10
|
+
legalNotices: 'Legal notices',
|
|
11
|
+
privacy: 'Privacy',
|
|
12
|
+
termsOfService: 'Terms of service',
|
|
13
|
+
termsOfUse: 'Terms of use'
|
|
14
|
+
};
|
|
15
|
+
export const defaultFooterElements = [
|
|
16
|
+
{
|
|
17
|
+
key: 'copyright',
|
|
18
|
+
title: `© ${new Date().getFullYear()} Bentley Systems, Incorporated`
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'termsOfService',
|
|
22
|
+
title: footerTranslations.termsOfService,
|
|
23
|
+
url: 'https://connect-agreementportal.bentley.com/AgreementApp/Home/Eula/view/readonly/BentleyConnect'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
key: 'privacy',
|
|
27
|
+
title: footerTranslations.privacy,
|
|
28
|
+
url: 'https://www.bentley.com/en/privacy-policy'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: 'termsOfUse',
|
|
32
|
+
title: footerTranslations.termsOfUse,
|
|
33
|
+
url: 'https://www.bentley.com/en/terms-of-use-and-select-online-agreement'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: 'cookies',
|
|
37
|
+
title: footerTranslations.cookies,
|
|
38
|
+
url: 'https://www.bentley.com/en/cookie-policy'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: 'legalNotices',
|
|
42
|
+
title: footerTranslations.legalNotices,
|
|
43
|
+
url: 'https://connect.bentley.com/Legal'
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
export const Footer = Object.assign((props)=>{
|
|
47
|
+
let { children, customElements, translatedTitles, className, ...rest } = props;
|
|
48
|
+
let titles = {
|
|
49
|
+
...footerTranslations,
|
|
50
|
+
...translatedTitles
|
|
51
|
+
};
|
|
52
|
+
let translatedElements = defaultFooterElements.map((element)=>{
|
|
53
|
+
if (element.key && titles.hasOwnProperty(element.key)) {
|
|
54
|
+
let key = element.key;
|
|
55
|
+
return {
|
|
56
|
+
...element,
|
|
57
|
+
title: titles[key]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return element;
|
|
61
|
+
});
|
|
62
|
+
let elements = translatedElements;
|
|
63
|
+
if (customElements) elements = 'function' == typeof customElements ? customElements(translatedElements) : [
|
|
64
|
+
...translatedElements,
|
|
65
|
+
...customElements
|
|
66
|
+
];
|
|
67
|
+
return React.createElement(Box, {
|
|
68
|
+
as: "footer",
|
|
69
|
+
className: cx('iui-legal-footer', className),
|
|
70
|
+
...rest
|
|
71
|
+
}, children ? children : React.createElement(FooterList, null, elements.map((element, index)=>React.createElement(React.Fragment, {
|
|
72
|
+
key: element.key || `${element.title}-${index}`
|
|
73
|
+
}, index > 0 && React.createElement(FooterSeparator, null), React.createElement(FooterItem, null, element.url ? React.createElement(Anchor, {
|
|
74
|
+
href: element.url,
|
|
75
|
+
target: "_blank",
|
|
76
|
+
rel: "noreferrer"
|
|
77
|
+
}, element.title) : element.title)))));
|
|
78
|
+
}, {
|
|
79
|
+
List: FooterList,
|
|
80
|
+
Item: FooterItem,
|
|
81
|
+
Separator: FooterSeparator
|
|
82
|
+
});
|
|
83
|
+
Footer.displayName = 'Footer';
|