@itwin/itwinui-react 3.8.1 → 3.9.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 +26 -0
- package/cjs/core/Alert/Alert.d.ts +7 -3
- package/cjs/core/Alert/Alert.js +1 -1
- package/cjs/core/Avatar/Avatar.d.ts +2 -2
- package/cjs/core/Avatar/Avatar.js +1 -1
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/cjs/core/AvatarGroup/AvatarGroup.js +1 -1
- package/cjs/core/Backdrop/Backdrop.d.ts +1 -1
- package/cjs/core/Backdrop/Backdrop.js +1 -1
- package/cjs/core/Badge/Badge.d.ts +2 -2
- package/cjs/core/Badge/Badge.js +1 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +1 -2
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +11 -2
- package/cjs/core/ButtonGroup/ButtonGroup.js +43 -31
- package/cjs/core/Buttons/Button.d.ts +8 -2
- package/cjs/core/Buttons/Button.js +6 -3
- package/cjs/core/Buttons/DropdownButton.d.ts +1 -1
- package/cjs/core/Buttons/DropdownButton.js +1 -1
- package/cjs/core/Buttons/IconButton.d.ts +1 -1
- package/cjs/core/Buttons/IconButton.js +1 -1
- package/cjs/core/Buttons/IdeasButton.d.ts +1 -1
- package/cjs/core/Buttons/IdeasButton.js +1 -1
- package/cjs/core/Buttons/SplitButton.d.ts +1 -1
- package/cjs/core/Buttons/SplitButton.js +1 -1
- package/cjs/core/Carousel/Carousel.d.ts +5 -5
- package/cjs/core/Carousel/Carousel.js +1 -1
- package/cjs/core/Carousel/CarouselDot.d.ts +1 -1
- package/cjs/core/Carousel/CarouselDot.js +1 -1
- package/cjs/core/Carousel/CarouselDotsList.d.ts +1 -1
- package/cjs/core/Carousel/CarouselDotsList.js +1 -1
- package/cjs/core/Carousel/CarouselNavigation.d.ts +5 -5
- package/cjs/core/Carousel/CarouselNavigation.js +1 -1
- package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlide.js +1 -1
- package/cjs/core/Carousel/CarouselSlider.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlider.js +1 -1
- package/cjs/core/Checkbox/Checkbox.d.ts +1 -1
- package/cjs/core/Checkbox/Checkbox.js +1 -1
- package/cjs/core/ColorPicker/ColorBuilder.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorBuilder.js +1 -1
- package/cjs/core/ColorPicker/ColorInputPanel.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorInputPanel.js +1 -1
- package/cjs/core/ColorPicker/ColorPalette.d.ts +2 -2
- package/cjs/core/ColorPicker/ColorPalette.js +1 -1
- package/cjs/core/ColorPicker/ColorPicker.d.ts +2 -2
- package/cjs/core/ColorPicker/ColorPicker.js +1 -1
- package/cjs/core/ColorPicker/ColorPickerContext.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +2 -2
- package/cjs/core/ColorPicker/ColorSwatch.js +1 -1
- package/cjs/core/ComboBox/ComboBox.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBox.js +1 -1
- package/cjs/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.js +1 -1
- package/cjs/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +1 -1
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMenu.js +1 -1
- package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMenuItem.js +1 -1
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
- package/cjs/core/DatePicker/DatePicker.d.ts +1 -1
- package/cjs/core/DatePicker/DatePicker.js +1 -1
- package/cjs/core/Dialog/Dialog.d.ts +1 -1
- package/cjs/core/Dialog/Dialog.js +1 -1
- package/cjs/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/cjs/core/Dialog/DialogBackdrop.js +1 -1
- package/cjs/core/Dialog/DialogButtonBar.d.ts +1 -1
- package/cjs/core/Dialog/DialogButtonBar.js +1 -1
- package/cjs/core/Dialog/DialogContent.d.ts +1 -1
- package/cjs/core/Dialog/DialogContent.js +1 -1
- package/cjs/core/Dialog/DialogContext.d.ts +1 -1
- package/cjs/core/Dialog/DialogMain.d.ts +1 -1
- package/cjs/core/Dialog/DialogMain.js +2 -5
- package/cjs/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/cjs/core/Dialog/DialogTitleBar.js +1 -1
- package/cjs/core/Dialog/DialogTitleBarTitle.d.ts +1 -1
- package/cjs/core/Dialog/DialogTitleBarTitle.js +1 -1
- package/cjs/core/Divider/Divider.d.ts +1 -1
- package/cjs/core/Divider/Divider.js +1 -1
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/cjs/core/DropdownMenu/DropdownMenu.js +1 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +4 -7
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +1 -1
- package/cjs/core/Fieldset/Fieldset.d.ts +1 -1
- package/cjs/core/Fieldset/Fieldset.js +1 -1
- package/cjs/core/FileUpload/FileEmptyCard.d.ts +1 -1
- package/cjs/core/FileUpload/FileEmptyCard.js +1 -1
- package/cjs/core/FileUpload/FileUpload.d.ts +1 -1
- package/cjs/core/FileUpload/FileUpload.js +1 -1
- package/cjs/core/FileUpload/FileUploadCard.d.ts +1 -1
- package/cjs/core/FileUpload/FileUploadCard.js +1 -1
- package/cjs/core/FileUpload/FileUploadTemplate.d.ts +1 -1
- package/cjs/core/FileUpload/FileUploadTemplate.js +1 -1
- package/cjs/core/Flex/Flex.d.ts +2 -2
- package/cjs/core/Flex/Flex.js +1 -1
- package/cjs/core/Footer/Footer.d.ts +4 -4
- package/cjs/core/Footer/Footer.js +1 -1
- package/cjs/core/Footer/FooterItem.d.ts +1 -1
- package/cjs/core/Footer/FooterItem.js +1 -1
- package/cjs/core/Footer/FooterList.d.ts +1 -1
- package/cjs/core/Footer/FooterList.js +1 -1
- package/cjs/core/Footer/FooterSeparator.d.ts +1 -1
- package/cjs/core/Footer/FooterSeparator.js +1 -1
- package/cjs/core/Header/Header.d.ts +1 -1
- package/cjs/core/Header/Header.js +1 -1
- package/cjs/core/Header/HeaderBasicButton.d.ts +1 -1
- package/cjs/core/Header/HeaderBasicButton.js +1 -1
- package/cjs/core/Header/HeaderBreadcrumbs.d.ts +1 -1
- package/cjs/core/Header/HeaderBreadcrumbs.js +1 -1
- package/cjs/core/Header/HeaderButton.d.ts +1 -1
- package/cjs/core/Header/HeaderButton.js +2 -2
- package/cjs/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/cjs/core/Header/HeaderDropdownButton.js +1 -1
- package/cjs/core/Header/HeaderLogo.d.ts +1 -1
- package/cjs/core/Header/HeaderLogo.js +2 -3
- package/cjs/core/Header/HeaderSplitButton.d.ts +1 -1
- package/cjs/core/Header/HeaderSplitButton.js +1 -1
- package/cjs/core/Icon/Icon.d.ts +2 -2
- package/cjs/core/Icon/Icon.js +1 -1
- package/cjs/core/InformationPanel/InformationPanel.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanel.js +1 -1
- package/cjs/core/InformationPanel/InformationPanelBody.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanelBody.js +1 -1
- package/cjs/core/InformationPanel/InformationPanelContent.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanelContent.js +1 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.js +1 -1
- package/cjs/core/InformationPanel/InformationPanelWrapper.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanelWrapper.js +1 -1
- package/cjs/core/Input/Input.d.ts +1 -1
- package/cjs/core/Input/Input.js +1 -1
- package/cjs/core/InputGrid/InputGrid.d.ts +1 -1
- package/cjs/core/InputGrid/InputGrid.js +1 -1
- package/cjs/core/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/core/InputGroup/InputGroup.js +2 -2
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +3 -3
- package/cjs/core/InputWithDecorations/InputWithDecorations.js +1 -1
- package/cjs/core/Label/Label.d.ts +1 -1
- package/cjs/core/Label/Label.js +1 -1
- package/cjs/core/LabeledInput/LabeledInput.d.ts +1 -1
- package/cjs/core/LabeledInput/LabeledInput.js +1 -1
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +6 -6
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/cjs/core/LinkAction/LinkAction.d.ts +1 -1
- package/cjs/core/LinkAction/LinkAction.js +2 -2
- package/cjs/core/List/List.d.ts +1 -1
- package/cjs/core/List/List.js +1 -1
- package/cjs/core/List/ListItem.d.ts +1 -1
- package/cjs/core/List/ListItem.js +1 -1
- package/cjs/core/Menu/Menu.d.ts +1 -1
- package/cjs/core/Menu/Menu.js +1 -1
- package/cjs/core/Menu/MenuDivider.d.ts +1 -1
- package/cjs/core/Menu/MenuDivider.js +1 -1
- package/cjs/core/Menu/MenuExtraContent.d.ts +1 -1
- package/cjs/core/Menu/MenuExtraContent.js +1 -1
- package/cjs/core/Menu/MenuItem.d.ts +1 -1
- package/cjs/core/Menu/MenuItem.js +1 -1
- package/cjs/core/Menu/MenuItemSkeleton.d.ts +1 -1
- package/cjs/core/Menu/MenuItemSkeleton.js +1 -1
- package/cjs/core/Modal/Modal.d.ts +1 -1
- package/cjs/core/Modal/ModalButtonBar.d.ts +1 -1
- package/cjs/core/Modal/ModalContent.d.ts +1 -1
- package/cjs/core/NonIdealState/ErrorPage.d.ts +1 -1
- package/cjs/core/NonIdealState/ErrorPage.js +3 -3
- package/cjs/core/NonIdealState/NonIdealState.d.ts +1 -1
- package/cjs/core/NonIdealState/NonIdealState.js +1 -1
- package/cjs/core/NotificationMarker/NotificationMarker.d.ts +1 -1
- package/cjs/core/NotificationMarker/NotificationMarker.js +1 -1
- package/cjs/core/Overlay/Overlay.d.ts +1 -1
- package/cjs/core/Overlay/Overlay.js +1 -1
- package/cjs/core/Popover/Popover.d.ts +2 -2
- package/cjs/core/Popover/Popover.js +2 -2
- package/cjs/core/ProgressIndicators/ProgressLinear.d.ts +1 -1
- package/cjs/core/ProgressIndicators/ProgressLinear.js +1 -1
- package/cjs/core/ProgressIndicators/ProgressRadial.d.ts +1 -1
- package/cjs/core/ProgressIndicators/ProgressRadial.js +1 -1
- package/cjs/core/Radio/Radio.d.ts +1 -1
- package/cjs/core/Radio/Radio.js +1 -1
- package/cjs/core/RadioTiles/RadioTile.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTile.js +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +1 -1
- package/cjs/core/SearchBox/SearchBox.d.ts +1 -1
- package/cjs/core/SearchBox/SearchBox.js +1 -1
- package/cjs/core/Select/Select.d.ts +1 -1
- package/cjs/core/Select/Select.js +5 -3
- package/cjs/core/Select/SelectTag.d.ts +1 -1
- package/cjs/core/Select/SelectTag.js +1 -1
- package/cjs/core/Select/SelectTagContainer.d.ts +1 -1
- package/cjs/core/Select/SelectTagContainer.js +1 -1
- package/cjs/core/SideNavigation/SideNavigation.d.ts +1 -1
- package/cjs/core/SideNavigation/SideNavigation.js +1 -1
- package/cjs/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavSubmenu.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavSubmenu.js +1 -1
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +1 -1
- package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
- package/cjs/core/SkipToContentLink/SkipToContentLink.js +1 -1
- package/cjs/core/Slider/Slider.d.ts +1 -1
- package/cjs/core/Slider/Slider.js +1 -1
- package/cjs/core/Slider/Thumb.js +1 -1
- package/cjs/core/Slider/Track.js +1 -1
- package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/cjs/core/StatusMessage/StatusMessage.js +1 -1
- package/cjs/core/Stepper/Stepper.d.ts +1 -1
- package/cjs/core/Stepper/Stepper.js +1 -1
- package/cjs/core/Stepper/StepperStep.d.ts +1 -1
- package/cjs/core/Stepper/StepperStep.js +1 -1
- package/cjs/core/Stepper/WorkflowDiagram.d.ts +1 -1
- package/cjs/core/Stepper/WorkflowDiagram.js +1 -1
- package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +1 -1
- package/cjs/core/Stepper/WorkflowDiagramStep.js +1 -1
- package/cjs/core/Surface/Surface.d.ts +1 -1
- package/cjs/core/Surface/Surface.js +1 -1
- package/cjs/core/Table/SubRowExpander.js +1 -1
- package/cjs/core/Table/Table.d.ts +1 -1
- package/cjs/core/Table/Table.js +2 -2
- package/cjs/core/Table/TableCell.js +1 -1
- package/cjs/core/Table/TablePaginator.d.ts +1 -1
- package/cjs/core/Table/TablePaginator.js +1 -1
- package/cjs/core/Table/TableRowMemoized.js +1 -1
- package/cjs/core/Table/cells/DefaultCell.js +1 -1
- package/cjs/core/Table/cells/EditableCell.js +1 -1
- package/cjs/core/Table/columns/actionColumn.js +1 -1
- package/cjs/core/Table/columns/expanderColumn.js +1 -1
- package/cjs/core/Table/filters/BaseFilter.d.ts +1 -1
- package/cjs/core/Table/filters/BaseFilter.js +1 -1
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +3 -2
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +3 -3
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +2 -1
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +4 -4
- package/cjs/core/Table/filters/FilterButtonBar.d.ts +1 -1
- package/cjs/core/Table/filters/FilterButtonBar.js +1 -1
- package/cjs/core/Table/filters/FilterToggle.d.ts +1 -1
- package/cjs/core/Table/filters/FilterToggle.js +1 -1
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -1
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +1 -1
- package/cjs/core/Table/filters/tableFilters.d.ts +2 -1
- package/cjs/core/Tabs/Tabs.d.ts +3 -3
- package/cjs/core/Tabs/Tabs.js +1 -1
- package/cjs/core/Tag/Tag.d.ts +1 -1
- package/cjs/core/Tag/Tag.js +2 -4
- package/cjs/core/Tag/TagContainer.d.ts +1 -1
- package/cjs/core/Tag/TagContainer.js +1 -1
- package/cjs/core/Textarea/Textarea.d.ts +1 -1
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/cjs/core/ThemeProvider/ThemeProvider.js +1 -1
- package/cjs/core/Tile/Tile.d.ts +3 -3
- package/cjs/core/Tile/Tile.js +1 -1
- package/cjs/core/TimePicker/TimePicker.d.ts +1 -1
- package/cjs/core/TimePicker/TimePicker.js +1 -1
- package/cjs/core/Toast/Toast.d.ts +1 -1
- package/cjs/core/Toast/Toast.js +1 -1
- package/cjs/core/Toast/Toaster.js +1 -1
- package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +1 -1
- package/cjs/core/Tooltip/Tooltip.d.ts +1 -1
- package/cjs/core/Tooltip/Tooltip.js +1 -2
- package/cjs/core/TransferList/TransferList.d.ts +1 -1
- package/cjs/core/TransferList/TransferList.js +1 -1
- package/cjs/core/Tree/Tree.d.ts +1 -1
- package/cjs/core/Tree/Tree.js +1 -1
- package/cjs/core/Tree/TreeNode.d.ts +1 -1
- package/cjs/core/Tree/TreeNode.js +1 -1
- package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/cjs/core/Tree/TreeNodeExpander.js +1 -1
- package/cjs/core/Typography/Anchor.d.ts +1 -1
- package/cjs/core/Typography/Anchor.js +4 -2
- package/cjs/core/Typography/Blockquote.d.ts +1 -1
- package/cjs/core/Typography/Blockquote.js +1 -1
- package/cjs/core/Typography/Code.d.ts +1 -1
- package/cjs/core/Typography/Code.js +1 -1
- package/cjs/core/Typography/Kbd.d.ts +1 -1
- package/cjs/core/Typography/Kbd.js +1 -1
- package/cjs/core/Typography/Text.d.ts +3 -1
- package/cjs/core/Typography/Text.js +12 -8
- package/cjs/core/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/cjs/core/VisuallyHidden/VisuallyHidden.js +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/react-table/react-table.js +0 -1
- package/cjs/{core/utils → utils}/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/cjs/{core/utils → utils}/components/InputContainer.js +2 -2
- package/{esm/core → cjs}/utils/components/InputFlexContainer.d.ts +2 -2
- package/cjs/{core/utils → utils}/components/InputFlexContainer.js +2 -2
- package/cjs/{core/utils → utils}/components/Portal.js +1 -1
- package/cjs/{core/utils → utils}/components/WithCSSTransition.js +1 -1
- package/cjs/{core/utils → utils}/functions/dev.js +2 -2
- package/cjs/{core/utils → utils}/functions/polymorphic.js +1 -2
- package/cjs/{core/utils → utils}/functions/react.js +0 -1
- package/{esm/core → cjs}/utils/hooks/useGlobals.d.ts +3 -3
- package/cjs/{core/utils → utils}/hooks/useGlobals.js +1 -1
- package/esm/core/Alert/Alert.d.ts +7 -3
- package/esm/core/Alert/Alert.js +1 -1
- package/esm/core/Avatar/Avatar.d.ts +2 -2
- package/esm/core/Avatar/Avatar.js +1 -1
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/esm/core/AvatarGroup/AvatarGroup.js +1 -1
- package/esm/core/Backdrop/Backdrop.d.ts +1 -1
- package/esm/core/Backdrop/Backdrop.js +1 -1
- package/esm/core/Badge/Badge.d.ts +2 -2
- package/esm/core/Badge/Badge.js +1 -1
- package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/esm/core/Breadcrumbs/Breadcrumbs.js +1 -2
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +11 -2
- package/esm/core/ButtonGroup/ButtonGroup.js +44 -32
- package/esm/core/Buttons/Button.d.ts +8 -2
- package/esm/core/Buttons/Button.js +6 -3
- package/esm/core/Buttons/DropdownButton.d.ts +1 -1
- package/esm/core/Buttons/DropdownButton.js +1 -1
- package/esm/core/Buttons/IconButton.d.ts +1 -1
- package/esm/core/Buttons/IconButton.js +1 -1
- package/esm/core/Buttons/IdeasButton.d.ts +1 -1
- package/esm/core/Buttons/IdeasButton.js +1 -1
- package/esm/core/Buttons/SplitButton.d.ts +1 -1
- package/esm/core/Buttons/SplitButton.js +1 -1
- package/esm/core/Carousel/Carousel.d.ts +5 -5
- package/esm/core/Carousel/Carousel.js +1 -1
- package/esm/core/Carousel/CarouselDot.d.ts +1 -1
- package/esm/core/Carousel/CarouselDot.js +1 -1
- package/esm/core/Carousel/CarouselDotsList.d.ts +1 -1
- package/esm/core/Carousel/CarouselDotsList.js +1 -1
- package/esm/core/Carousel/CarouselNavigation.d.ts +5 -5
- package/esm/core/Carousel/CarouselNavigation.js +1 -1
- package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlide.js +1 -1
- package/esm/core/Carousel/CarouselSlider.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlider.js +1 -1
- package/esm/core/Checkbox/Checkbox.d.ts +1 -1
- package/esm/core/Checkbox/Checkbox.js +1 -1
- package/esm/core/ColorPicker/ColorBuilder.d.ts +1 -1
- package/esm/core/ColorPicker/ColorBuilder.js +1 -1
- package/esm/core/ColorPicker/ColorInputPanel.d.ts +1 -1
- package/esm/core/ColorPicker/ColorInputPanel.js +1 -1
- package/esm/core/ColorPicker/ColorPalette.d.ts +2 -2
- package/esm/core/ColorPicker/ColorPalette.js +1 -1
- package/esm/core/ColorPicker/ColorPicker.d.ts +2 -2
- package/esm/core/ColorPicker/ColorPicker.js +1 -1
- package/esm/core/ColorPicker/ColorPickerContext.d.ts +1 -1
- package/esm/core/ColorPicker/ColorSwatch.d.ts +2 -2
- package/esm/core/ColorPicker/ColorSwatch.js +1 -1
- package/esm/core/ComboBox/ComboBox.d.ts +1 -1
- package/esm/core/ComboBox/ComboBox.js +1 -1
- package/esm/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxEndIcon.js +1 -1
- package/esm/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInput.js +1 -1
- package/esm/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInputContainer.js +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.js +1 -1
- package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenuItem.js +1 -1
- package/esm/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
- package/esm/core/DatePicker/DatePicker.d.ts +1 -1
- package/esm/core/DatePicker/DatePicker.js +1 -1
- package/esm/core/Dialog/Dialog.d.ts +1 -1
- package/esm/core/Dialog/Dialog.js +1 -1
- package/esm/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/esm/core/Dialog/DialogBackdrop.js +1 -1
- package/esm/core/Dialog/DialogButtonBar.d.ts +1 -1
- package/esm/core/Dialog/DialogButtonBar.js +1 -1
- package/esm/core/Dialog/DialogContent.d.ts +1 -1
- package/esm/core/Dialog/DialogContent.js +1 -1
- package/esm/core/Dialog/DialogContext.d.ts +1 -1
- package/esm/core/Dialog/DialogMain.d.ts +1 -1
- package/esm/core/Dialog/DialogMain.js +2 -5
- package/esm/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/esm/core/Dialog/DialogTitleBar.js +1 -1
- package/esm/core/Dialog/DialogTitleBarTitle.d.ts +1 -1
- package/esm/core/Dialog/DialogTitleBarTitle.js +1 -1
- package/esm/core/Divider/Divider.d.ts +1 -1
- package/esm/core/Divider/Divider.js +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.js +1 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +4 -7
- package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -1
- package/esm/core/Fieldset/Fieldset.d.ts +1 -1
- package/esm/core/Fieldset/Fieldset.js +1 -1
- package/esm/core/FileUpload/FileEmptyCard.d.ts +1 -1
- package/esm/core/FileUpload/FileEmptyCard.js +1 -1
- package/esm/core/FileUpload/FileUpload.d.ts +1 -1
- package/esm/core/FileUpload/FileUpload.js +1 -1
- package/esm/core/FileUpload/FileUploadCard.d.ts +1 -1
- package/esm/core/FileUpload/FileUploadCard.js +1 -1
- package/esm/core/FileUpload/FileUploadTemplate.d.ts +1 -1
- package/esm/core/FileUpload/FileUploadTemplate.js +1 -1
- package/esm/core/Flex/Flex.d.ts +2 -2
- package/esm/core/Flex/Flex.js +1 -1
- package/esm/core/Footer/Footer.d.ts +4 -4
- package/esm/core/Footer/Footer.js +1 -1
- package/esm/core/Footer/FooterItem.d.ts +1 -1
- package/esm/core/Footer/FooterItem.js +1 -1
- package/esm/core/Footer/FooterList.d.ts +1 -1
- package/esm/core/Footer/FooterList.js +1 -1
- package/esm/core/Footer/FooterSeparator.d.ts +1 -1
- package/esm/core/Footer/FooterSeparator.js +1 -1
- package/esm/core/Header/Header.d.ts +1 -1
- package/esm/core/Header/Header.js +1 -1
- package/esm/core/Header/HeaderBasicButton.d.ts +1 -1
- package/esm/core/Header/HeaderBasicButton.js +1 -1
- package/esm/core/Header/HeaderBreadcrumbs.d.ts +1 -1
- package/esm/core/Header/HeaderBreadcrumbs.js +1 -1
- package/esm/core/Header/HeaderButton.d.ts +1 -1
- package/esm/core/Header/HeaderButton.js +2 -2
- package/esm/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/esm/core/Header/HeaderDropdownButton.js +1 -1
- package/esm/core/Header/HeaderLogo.d.ts +1 -1
- package/esm/core/Header/HeaderLogo.js +2 -3
- package/esm/core/Header/HeaderSplitButton.d.ts +1 -1
- package/esm/core/Header/HeaderSplitButton.js +1 -1
- package/esm/core/Icon/Icon.d.ts +2 -2
- package/esm/core/Icon/Icon.js +1 -1
- package/esm/core/InformationPanel/InformationPanel.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanel.js +1 -1
- package/esm/core/InformationPanel/InformationPanelBody.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanelBody.js +1 -1
- package/esm/core/InformationPanel/InformationPanelContent.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanelContent.js +1 -1
- package/esm/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanelHeader.js +1 -1
- package/esm/core/InformationPanel/InformationPanelWrapper.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanelWrapper.js +1 -1
- package/esm/core/Input/Input.d.ts +1 -1
- package/esm/core/Input/Input.js +1 -1
- package/esm/core/InputGrid/InputGrid.d.ts +1 -1
- package/esm/core/InputGrid/InputGrid.js +1 -1
- package/esm/core/InputGroup/InputGroup.d.ts +1 -1
- package/esm/core/InputGroup/InputGroup.js +2 -2
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +3 -3
- package/esm/core/InputWithDecorations/InputWithDecorations.js +1 -1
- package/esm/core/Label/Label.d.ts +1 -1
- package/esm/core/Label/Label.js +1 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +1 -1
- package/esm/core/LabeledInput/LabeledInput.js +1 -1
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +6 -6
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/esm/core/LinkAction/LinkAction.d.ts +1 -1
- package/esm/core/LinkAction/LinkAction.js +2 -2
- package/esm/core/List/List.d.ts +1 -1
- package/esm/core/List/List.js +1 -1
- package/esm/core/List/ListItem.d.ts +1 -1
- package/esm/core/List/ListItem.js +1 -1
- package/esm/core/Menu/Menu.d.ts +1 -1
- package/esm/core/Menu/Menu.js +1 -1
- package/esm/core/Menu/MenuDivider.d.ts +1 -1
- package/esm/core/Menu/MenuDivider.js +1 -1
- package/esm/core/Menu/MenuExtraContent.d.ts +1 -1
- package/esm/core/Menu/MenuExtraContent.js +1 -1
- package/esm/core/Menu/MenuItem.d.ts +1 -1
- package/esm/core/Menu/MenuItem.js +1 -1
- package/esm/core/Menu/MenuItemSkeleton.d.ts +1 -1
- package/esm/core/Menu/MenuItemSkeleton.js +1 -1
- package/esm/core/Modal/Modal.d.ts +1 -1
- package/esm/core/Modal/ModalButtonBar.d.ts +1 -1
- package/esm/core/Modal/ModalContent.d.ts +1 -1
- package/esm/core/NonIdealState/ErrorPage.d.ts +1 -1
- package/esm/core/NonIdealState/ErrorPage.js +3 -3
- package/esm/core/NonIdealState/NonIdealState.d.ts +1 -1
- package/esm/core/NonIdealState/NonIdealState.js +1 -1
- package/esm/core/NotificationMarker/NotificationMarker.d.ts +1 -1
- package/esm/core/NotificationMarker/NotificationMarker.js +1 -1
- package/esm/core/Overlay/Overlay.d.ts +1 -1
- package/esm/core/Overlay/Overlay.js +1 -1
- package/esm/core/Popover/Popover.d.ts +2 -2
- package/esm/core/Popover/Popover.js +2 -2
- package/esm/core/ProgressIndicators/ProgressLinear.d.ts +1 -1
- package/esm/core/ProgressIndicators/ProgressLinear.js +1 -1
- package/esm/core/ProgressIndicators/ProgressRadial.d.ts +1 -1
- package/esm/core/ProgressIndicators/ProgressRadial.js +1 -1
- package/esm/core/Radio/Radio.d.ts +1 -1
- package/esm/core/Radio/Radio.js +1 -1
- package/esm/core/RadioTiles/RadioTile.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTile.js +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +1 -1
- package/esm/core/SearchBox/SearchBox.d.ts +1 -1
- package/esm/core/SearchBox/SearchBox.js +1 -1
- package/esm/core/Select/Select.d.ts +1 -1
- package/esm/core/Select/Select.js +5 -3
- package/esm/core/Select/SelectTag.d.ts +1 -1
- package/esm/core/Select/SelectTag.js +1 -1
- package/esm/core/Select/SelectTagContainer.d.ts +1 -1
- package/esm/core/Select/SelectTagContainer.js +1 -1
- package/esm/core/SideNavigation/SideNavigation.d.ts +1 -1
- package/esm/core/SideNavigation/SideNavigation.js +1 -1
- package/esm/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavSubmenu.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavSubmenu.js +1 -1
- package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavSubmenuHeader.js +1 -1
- package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
- package/esm/core/SkipToContentLink/SkipToContentLink.js +1 -1
- package/esm/core/Slider/Slider.d.ts +1 -1
- package/esm/core/Slider/Slider.js +1 -1
- package/esm/core/Slider/Thumb.js +1 -1
- package/esm/core/Slider/Track.js +1 -1
- package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/esm/core/StatusMessage/StatusMessage.js +1 -1
- package/esm/core/Stepper/Stepper.d.ts +1 -1
- package/esm/core/Stepper/Stepper.js +1 -1
- package/esm/core/Stepper/StepperStep.d.ts +1 -1
- package/esm/core/Stepper/StepperStep.js +1 -1
- package/esm/core/Stepper/WorkflowDiagram.d.ts +1 -1
- package/esm/core/Stepper/WorkflowDiagram.js +1 -1
- package/esm/core/Stepper/WorkflowDiagramStep.d.ts +1 -1
- package/esm/core/Stepper/WorkflowDiagramStep.js +1 -1
- package/esm/core/Surface/Surface.d.ts +1 -1
- package/esm/core/Surface/Surface.js +1 -1
- package/esm/core/Table/SubRowExpander.js +1 -1
- package/esm/core/Table/Table.d.ts +1 -1
- package/esm/core/Table/Table.js +2 -2
- package/esm/core/Table/TableCell.js +1 -1
- package/esm/core/Table/TablePaginator.d.ts +1 -1
- package/esm/core/Table/TablePaginator.js +1 -1
- package/esm/core/Table/TableRowMemoized.js +1 -1
- package/esm/core/Table/cells/DefaultCell.js +1 -1
- package/esm/core/Table/cells/EditableCell.js +1 -1
- package/esm/core/Table/columns/actionColumn.js +1 -1
- package/esm/core/Table/columns/expanderColumn.js +1 -1
- package/esm/core/Table/filters/BaseFilter.d.ts +1 -1
- package/esm/core/Table/filters/BaseFilter.js +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +3 -2
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +3 -3
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +2 -1
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +4 -4
- package/esm/core/Table/filters/FilterButtonBar.d.ts +1 -1
- package/esm/core/Table/filters/FilterButtonBar.js +1 -1
- package/esm/core/Table/filters/FilterToggle.d.ts +1 -1
- package/esm/core/Table/filters/FilterToggle.js +1 -1
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -1
- package/esm/core/Table/filters/TextFilter/TextFilter.js +1 -1
- package/esm/core/Table/filters/tableFilters.d.ts +2 -1
- package/esm/core/Tabs/Tabs.d.ts +3 -3
- package/esm/core/Tabs/Tabs.js +1 -1
- package/esm/core/Tag/Tag.d.ts +1 -1
- package/esm/core/Tag/Tag.js +2 -4
- package/esm/core/Tag/TagContainer.d.ts +1 -1
- package/esm/core/Tag/TagContainer.js +1 -1
- package/esm/core/Textarea/Textarea.d.ts +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.js +1 -1
- package/esm/core/Tile/Tile.d.ts +3 -3
- package/esm/core/Tile/Tile.js +1 -1
- package/esm/core/TimePicker/TimePicker.d.ts +1 -1
- package/esm/core/TimePicker/TimePicker.js +1 -1
- package/esm/core/Toast/Toast.d.ts +1 -1
- package/esm/core/Toast/Toast.js +1 -1
- package/esm/core/Toast/Toaster.js +1 -1
- package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/esm/core/ToggleSwitch/ToggleSwitch.js +1 -1
- package/esm/core/Tooltip/Tooltip.d.ts +1 -1
- package/esm/core/Tooltip/Tooltip.js +1 -2
- package/esm/core/TransferList/TransferList.d.ts +1 -1
- package/esm/core/TransferList/TransferList.js +1 -1
- package/esm/core/Tree/Tree.d.ts +1 -1
- package/esm/core/Tree/Tree.js +1 -1
- package/esm/core/Tree/TreeNode.d.ts +1 -1
- package/esm/core/Tree/TreeNode.js +1 -1
- package/esm/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/esm/core/Tree/TreeNodeExpander.js +1 -1
- package/esm/core/Typography/Anchor.d.ts +1 -1
- package/esm/core/Typography/Anchor.js +4 -2
- package/esm/core/Typography/Blockquote.d.ts +1 -1
- package/esm/core/Typography/Blockquote.js +1 -1
- package/esm/core/Typography/Code.d.ts +1 -1
- package/esm/core/Typography/Code.js +1 -1
- package/esm/core/Typography/Kbd.d.ts +1 -1
- package/esm/core/Typography/Kbd.js +1 -1
- package/esm/core/Typography/Text.d.ts +3 -1
- package/esm/core/Typography/Text.js +11 -7
- package/esm/core/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/esm/core/VisuallyHidden/VisuallyHidden.js +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/react-table/react-table.js +0 -1
- package/esm/{core/utils → utils}/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/esm/{core/utils → utils}/components/InputContainer.js +2 -2
- package/{cjs/core → esm}/utils/components/InputFlexContainer.d.ts +2 -2
- package/esm/{core/utils → utils}/components/InputFlexContainer.js +2 -2
- package/esm/{core/utils → utils}/components/Portal.js +1 -1
- package/esm/{core/utils → utils}/components/WithCSSTransition.js +1 -1
- package/esm/{core/utils → utils}/functions/dev.js +2 -2
- package/esm/{core/utils → utils}/functions/polymorphic.js +1 -2
- package/esm/{core/utils → utils}/functions/react.js +0 -1
- package/{cjs/core → esm}/utils/hooks/useGlobals.d.ts +3 -3
- package/esm/{core/utils → utils}/hooks/useGlobals.js +1 -1
- package/package.json +2 -2
- package/styles.css +9 -1
- /package/cjs/{core/utils → utils}/color/ColorValue.d.ts +0 -0
- /package/cjs/{core/utils → utils}/color/ColorValue.js +0 -0
- /package/cjs/{core/utils → utils}/color/index.d.ts +0 -0
- /package/cjs/{core/utils → utils}/color/index.js +0 -0
- /package/cjs/{core/utils → utils}/components/AutoclearingHiddenLiveRegion.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/Box.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/Box.js +0 -0
- /package/cjs/{core/utils → utils}/components/ButtonBase.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/ButtonBase.js +0 -0
- /package/cjs/{core/utils → utils}/components/FocusTrap.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/FocusTrap.js +0 -0
- /package/cjs/{core/utils → utils}/components/InputContainer.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/InputWithIcon.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/InputWithIcon.js +0 -0
- /package/cjs/{core/utils → utils}/components/LineClamp.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/LineClamp.js +0 -0
- /package/cjs/{core/utils → utils}/components/MiddleTextTruncation.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/MiddleTextTruncation.js +0 -0
- /package/cjs/{core/utils → utils}/components/Portal.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/Resizer.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/Resizer.js +0 -0
- /package/cjs/{core/utils → utils}/components/ShadowRoot.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/ShadowRoot.js +0 -0
- /package/cjs/{core/utils → utils}/components/VirtualScroll.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/VirtualScroll.js +0 -0
- /package/cjs/{core/utils → utils}/components/WithCSSTransition.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/index.d.ts +0 -0
- /package/cjs/{core/utils → utils}/components/index.js +0 -0
- /package/cjs/{core/utils → utils}/functions/colors.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/colors.js +0 -0
- /package/cjs/{core/utils → utils}/functions/date.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/date.js +0 -0
- /package/cjs/{core/utils → utils}/functions/dev.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/dom.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/dom.js +0 -0
- /package/cjs/{core/utils → utils}/functions/focusable.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/focusable.js +0 -0
- /package/cjs/{core/utils → utils}/functions/import.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/import.js +0 -0
- /package/cjs/{core/utils → utils}/functions/index.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/index.js +0 -0
- /package/cjs/{core/utils → utils}/functions/numbers.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/numbers.js +0 -0
- /package/cjs/{core/utils → utils}/functions/polymorphic.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/react.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/supports.d.ts +0 -0
- /package/cjs/{core/utils → utils}/functions/supports.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/index.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/index.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useContainerWidth.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useContainerWidth.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useControlledState.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useControlledState.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useDragAndDrop.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useDragAndDrop.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useEventListener.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useEventListener.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useId.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useId.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useIntersection.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useIntersection.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useIsClient.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useIsClient.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useIsomorphicLayoutEffect.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useIsomorphicLayoutEffect.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useLatestRef.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useLatestRef.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useMediaQuery.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useMediaQuery.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useMergedRefs.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useMergedRefs.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useOverflow.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useOverflow.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useResizeObserver.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useResizeObserver.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useSafeContext.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useSafeContext.js +0 -0
- /package/cjs/{core/utils → utils}/hooks/useSyncExternalStore.d.ts +0 -0
- /package/cjs/{core/utils → utils}/hooks/useSyncExternalStore.js +0 -0
- /package/cjs/{core/utils → utils}/icons/StatusIconMap.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/StatusIconMap.js +0 -0
- /package/cjs/{core/utils → utils}/icons/Svg.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/Svg.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCalendar.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCalendar.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCaretDownSmall.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCaretDownSmall.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCaretRightSmall.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCaretRightSmall.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCaretUpSmall.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCaretUpSmall.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCheckmark.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCheckmark.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCheckmarkSmall.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCheckmarkSmall.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronLeft.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronLeft.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronLeftDouble.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronLeftDouble.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronRight.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronRight.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronRightDouble.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronRightDouble.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronRightSmall.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgChevronRightSmall.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgClose.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgClose.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCloseSmall.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgCloseSmall.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgColumnManager.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgColumnManager.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgDocument.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgDocument.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgFilter.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgFilter.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgFilterHollow.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgFilterHollow.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgImportantSmall.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgImportantSmall.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgInfoCircular.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgInfoCircular.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgMore.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgMore.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgMoreVertical.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgMoreVertical.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgNew.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgNew.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSearch.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSearch.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSmileyHappy.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSmileyHappy.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSortDown.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSortDown.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSortUp.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSortUp.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgStatusError.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgStatusError.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgStatusSuccess.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgStatusSuccess.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgStatusWarning.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgStatusWarning.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSwap.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgSwap.js +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgUpload.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/SvgUpload.js +0 -0
- /package/cjs/{core/utils → utils}/icons/index.d.ts +0 -0
- /package/cjs/{core/utils → utils}/icons/index.js +0 -0
- /package/cjs/{core/utils → utils}/index.d.ts +0 -0
- /package/cjs/{core/utils → utils}/index.js +0 -0
- /package/cjs/{core/utils → utils}/props.d.ts +0 -0
- /package/cjs/{core/utils → utils}/props.js +0 -0
- /package/cjs/{core/utils → utils}/providers/HydrationProvider.d.ts +0 -0
- /package/cjs/{core/utils → utils}/providers/HydrationProvider.js +0 -0
- /package/cjs/{core/utils → utils}/providers/index.d.ts +0 -0
- /package/cjs/{core/utils → utils}/providers/index.js +0 -0
- /package/cjs/{core/utils → utils}/types.d.ts +0 -0
- /package/cjs/{core/utils → utils}/types.js +0 -0
- /package/esm/{core/utils → utils}/color/ColorValue.d.ts +0 -0
- /package/esm/{core/utils → utils}/color/ColorValue.js +0 -0
- /package/esm/{core/utils → utils}/color/index.d.ts +0 -0
- /package/esm/{core/utils → utils}/color/index.js +0 -0
- /package/esm/{core/utils → utils}/components/AutoclearingHiddenLiveRegion.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/Box.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/Box.js +0 -0
- /package/esm/{core/utils → utils}/components/ButtonBase.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/ButtonBase.js +0 -0
- /package/esm/{core/utils → utils}/components/FocusTrap.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/FocusTrap.js +0 -0
- /package/esm/{core/utils → utils}/components/InputContainer.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/InputWithIcon.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/InputWithIcon.js +0 -0
- /package/esm/{core/utils → utils}/components/LineClamp.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/LineClamp.js +0 -0
- /package/esm/{core/utils → utils}/components/MiddleTextTruncation.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/MiddleTextTruncation.js +0 -0
- /package/esm/{core/utils → utils}/components/Portal.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/Resizer.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/Resizer.js +0 -0
- /package/esm/{core/utils → utils}/components/ShadowRoot.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/ShadowRoot.js +0 -0
- /package/esm/{core/utils → utils}/components/VirtualScroll.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/VirtualScroll.js +0 -0
- /package/esm/{core/utils → utils}/components/WithCSSTransition.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/index.d.ts +0 -0
- /package/esm/{core/utils → utils}/components/index.js +0 -0
- /package/esm/{core/utils → utils}/functions/colors.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/colors.js +0 -0
- /package/esm/{core/utils → utils}/functions/date.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/date.js +0 -0
- /package/esm/{core/utils → utils}/functions/dev.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/dom.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/dom.js +0 -0
- /package/esm/{core/utils → utils}/functions/focusable.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/focusable.js +0 -0
- /package/esm/{core/utils → utils}/functions/import.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/import.js +0 -0
- /package/esm/{core/utils → utils}/functions/index.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/index.js +0 -0
- /package/esm/{core/utils → utils}/functions/numbers.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/numbers.js +0 -0
- /package/esm/{core/utils → utils}/functions/polymorphic.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/react.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/supports.d.ts +0 -0
- /package/esm/{core/utils → utils}/functions/supports.js +0 -0
- /package/esm/{core/utils → utils}/hooks/index.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/index.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useContainerWidth.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useContainerWidth.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useControlledState.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useControlledState.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useDragAndDrop.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useDragAndDrop.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useEventListener.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useEventListener.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useId.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useId.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useIntersection.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useIntersection.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useIsClient.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useIsClient.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useIsomorphicLayoutEffect.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useIsomorphicLayoutEffect.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useLatestRef.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useLatestRef.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useMediaQuery.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useMediaQuery.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useMergedRefs.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useMergedRefs.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useOverflow.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useOverflow.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useResizeObserver.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useResizeObserver.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useSafeContext.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useSafeContext.js +0 -0
- /package/esm/{core/utils → utils}/hooks/useSyncExternalStore.d.ts +0 -0
- /package/esm/{core/utils → utils}/hooks/useSyncExternalStore.js +0 -0
- /package/esm/{core/utils → utils}/icons/StatusIconMap.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/StatusIconMap.js +0 -0
- /package/esm/{core/utils → utils}/icons/Svg.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/Svg.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCalendar.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCalendar.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCaretDownSmall.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCaretDownSmall.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCaretRightSmall.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCaretRightSmall.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCaretUpSmall.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCaretUpSmall.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCheckmark.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCheckmark.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCheckmarkSmall.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCheckmarkSmall.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronLeft.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronLeft.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronLeftDouble.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronLeftDouble.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronRight.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronRight.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronRightDouble.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronRightDouble.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronRightSmall.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgChevronRightSmall.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgClose.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgClose.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCloseSmall.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgCloseSmall.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgColumnManager.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgColumnManager.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgDocument.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgDocument.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgFilter.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgFilter.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgFilterHollow.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgFilterHollow.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgImportantSmall.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgImportantSmall.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgInfoCircular.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgInfoCircular.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgMore.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgMore.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgMoreVertical.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgMoreVertical.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgNew.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgNew.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSearch.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSearch.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSmileyHappy.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSmileyHappy.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSortDown.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSortDown.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSortUp.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSortUp.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgStatusError.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgStatusError.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgStatusSuccess.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgStatusSuccess.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgStatusWarning.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgStatusWarning.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSwap.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgSwap.js +0 -0
- /package/esm/{core/utils → utils}/icons/SvgUpload.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/SvgUpload.js +0 -0
- /package/esm/{core/utils → utils}/icons/index.d.ts +0 -0
- /package/esm/{core/utils → utils}/icons/index.js +0 -0
- /package/esm/{core/utils → utils}/index.d.ts +0 -0
- /package/esm/{core/utils → utils}/index.js +0 -0
- /package/esm/{core/utils → utils}/props.d.ts +0 -0
- /package/esm/{core/utils → utils}/props.js +0 -0
- /package/esm/{core/utils → utils}/providers/HydrationProvider.d.ts +0 -0
- /package/esm/{core/utils → utils}/providers/HydrationProvider.js +0 -0
- /package/esm/{core/utils → utils}/providers/index.d.ts +0 -0
- /package/esm/{core/utils → utils}/providers/index.js +0 -0
- /package/esm/{core/utils → utils}/types.d.ts +0 -0
- /package/esm/{core/utils → utils}/types.js +0 -0
|
@@ -32,7 +32,7 @@ exports.TreeNode = void 0;
|
|
|
32
32
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
|
-
const index_js_1 = require("
|
|
35
|
+
const index_js_1 = require("../../utils/index.js");
|
|
36
36
|
const classnames_1 = __importDefault(require("classnames"));
|
|
37
37
|
const TreeNodeExpander_js_1 = require("./TreeNodeExpander.js");
|
|
38
38
|
const TreeContext_js_1 = require("./TreeContext.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PolymorphicForwardRefComponent } from '
|
|
1
|
+
import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
|
|
2
2
|
import type { IconButtonProps } from '../Buttons/IconButton.js';
|
|
3
3
|
type TreeNodeExpanderProps = {
|
|
4
4
|
isExpanded?: boolean;
|
|
@@ -33,7 +33,7 @@ exports.TreeNodeExpander = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
|
-
const index_js_1 = require("
|
|
36
|
+
const index_js_1 = require("../../utils/index.js");
|
|
37
37
|
const IconButton_js_1 = require("../Buttons/IconButton.js");
|
|
38
38
|
const TreeContext_js_1 = require("./TreeContext.js");
|
|
39
39
|
exports.TreeNodeExpander = React.forwardRef((props, ref) => {
|
|
@@ -33,8 +33,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
33
33
|
exports.Anchor = void 0;
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
|
-
const index_js_1 = require("
|
|
36
|
+
const index_js_1 = require("../../utils/index.js");
|
|
37
37
|
const VisuallyHidden_js_1 = require("../VisuallyHidden/VisuallyHidden.js");
|
|
38
|
+
const Text_js_1 = require("./Text.js");
|
|
38
39
|
/**
|
|
39
40
|
* A consistently styled anchor component.
|
|
40
41
|
*
|
|
@@ -51,7 +52,8 @@ const VisuallyHidden_js_1 = require("../VisuallyHidden/VisuallyHidden.js");
|
|
|
51
52
|
* <Anchor as='button' onClick={() => {}}>click me</Anchor>
|
|
52
53
|
*/
|
|
53
54
|
exports.Anchor = React.forwardRef((props, forwardedRef) => {
|
|
54
|
-
const
|
|
55
|
+
const isInsideText = React.useContext(Text_js_1.TextContext);
|
|
56
|
+
const { isExternal, underline = isInsideText, children, ...rest } = props;
|
|
55
57
|
return (React.createElement(index_js_1.Box, { as: 'a', "data-iui-underline": underline ? 'true' : undefined, ...rest, ref: forwardedRef, className: (0, classnames_1.default)('iui-anchor', { 'iui-anchor-external': isExternal }, props.className) },
|
|
56
58
|
children,
|
|
57
59
|
props.target === '_blank' && (React.createElement(VisuallyHidden_js_1.VisuallyHidden, null, " (opens in new tab)"))));
|
|
@@ -33,7 +33,7 @@ exports.Blockquote = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const classnames_1 = __importDefault(require("classnames"));
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
|
-
const index_js_1 = require("
|
|
36
|
+
const index_js_1 = require("../../utils/index.js");
|
|
37
37
|
/**
|
|
38
38
|
* Basic blockquote component
|
|
39
39
|
* @example
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @example
|
|
4
4
|
* <p>Some <Code>inline code</Code> in a paragraph</p>
|
|
5
5
|
*/
|
|
6
|
-
export declare const Code: import("
|
|
6
|
+
export declare const Code: import("../../utils/props.js").PolymorphicForwardRefComponent<"code", {}>;
|
|
@@ -5,7 +5,7 @@ exports.Code = void 0;
|
|
|
5
5
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
|
-
const index_js_1 = require("
|
|
8
|
+
const index_js_1 = require("../../utils/index.js");
|
|
9
9
|
/**
|
|
10
10
|
* Inline code element.
|
|
11
11
|
* @example
|
|
@@ -33,7 +33,7 @@ exports.Kbd = exports.KbdKeys = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const classnames_1 = __importDefault(require("classnames"));
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
|
-
const index_js_1 = require("
|
|
36
|
+
const index_js_1 = require("../../utils/index.js");
|
|
37
37
|
/**
|
|
38
38
|
* Some predefined strings for common keyboard keys.
|
|
39
39
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
|
|
2
3
|
type TextProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Which typography variant/size should be used for the styling?
|
|
@@ -37,4 +38,5 @@ type TextProps = {
|
|
|
37
38
|
* <Text isSkeleton>Skeleton text</Text>
|
|
38
39
|
*/
|
|
39
40
|
export declare const Text: PolymorphicForwardRefComponent<"div", TextProps>;
|
|
41
|
+
export declare const TextContext: React.Context<boolean>;
|
|
40
42
|
export {};
|
|
@@ -26,14 +26,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Text = void 0;
|
|
29
|
+
exports.TextContext = exports.Text = void 0;
|
|
30
30
|
/*---------------------------------------------------------------------------------------------
|
|
31
31
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
32
32
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const classnames_1 = __importDefault(require("classnames"));
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
|
-
const index_js_1 = require("
|
|
36
|
+
const index_js_1 = require("../../utils/index.js");
|
|
37
|
+
// ----------------------------------------------------------------------------
|
|
37
38
|
/**
|
|
38
39
|
* Polymorphic typography component to render any kind of text as any kind of element.
|
|
39
40
|
* Users should decide which element to render based on the context of their app. Link to heading levels docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#accessibility_concerns
|
|
@@ -48,10 +49,13 @@ const index_js_1 = require("../utils/index.js");
|
|
|
48
49
|
*/
|
|
49
50
|
exports.Text = React.forwardRef((props, ref) => {
|
|
50
51
|
const { variant = 'body', className, isMuted = false, isSkeleton = false, ...rest } = props;
|
|
51
|
-
return (React.createElement(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
return (React.createElement(exports.TextContext.Provider, { value: true },
|
|
53
|
+
React.createElement(index_js_1.Box, { className: (0, classnames_1.default)({
|
|
54
|
+
[`iui-text-${variant}`]: variant !== 'body',
|
|
55
|
+
'iui-text-block': variant === 'body',
|
|
56
|
+
'iui-text-muted': isMuted,
|
|
57
|
+
'iui-skeleton': isSkeleton,
|
|
58
|
+
}, className), ref: ref, ...rest })));
|
|
57
59
|
});
|
|
60
|
+
// ----------------------------------------------------------------------------
|
|
61
|
+
exports.TextContext = React.createContext(false);
|
|
@@ -33,7 +33,7 @@ exports.VisuallyHidden = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
|
-
const index_js_1 = require("
|
|
36
|
+
const index_js_1 = require("../../utils/index.js");
|
|
37
37
|
/**
|
|
38
38
|
* Hides content visually but keeps it still accessible to screen readers
|
|
39
39
|
* and other assistive technologies.
|
package/cjs/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export { Stepper } from './core/Stepper/Stepper.js';
|
|
|
103
103
|
export { WorkflowDiagram } from './core/Stepper/WorkflowDiagram.js';
|
|
104
104
|
export type { StepProperties, StepperLocalization, } from './core/Stepper/Stepper.js';
|
|
105
105
|
export { SearchBox } from './core/SearchBox/SearchBox.js';
|
|
106
|
-
export { getUserColor, ColorValue, MiddleTextTruncation, } from './
|
|
106
|
+
export { getUserColor, ColorValue, MiddleTextTruncation, } from './utils/index.js';
|
|
107
107
|
export { LinkBox, LinkAction } from './core/LinkAction/LinkAction.js';
|
|
108
108
|
export { VisuallyHidden } from './core/VisuallyHidden/VisuallyHidden.js';
|
|
109
109
|
export { Icon } from './core/Icon/Icon.js';
|
package/cjs/index.js
CHANGED
|
@@ -215,7 +215,7 @@ var WorkflowDiagram_js_1 = require("./core/Stepper/WorkflowDiagram.js");
|
|
|
215
215
|
Object.defineProperty(exports, "WorkflowDiagram", { enumerable: true, get: function () { return WorkflowDiagram_js_1.WorkflowDiagram; } });
|
|
216
216
|
var SearchBox_js_1 = require("./core/SearchBox/SearchBox.js");
|
|
217
217
|
Object.defineProperty(exports, "SearchBox", { enumerable: true, get: function () { return SearchBox_js_1.SearchBox; } });
|
|
218
|
-
var index_js_2 = require("./
|
|
218
|
+
var index_js_2 = require("./utils/index.js");
|
|
219
219
|
Object.defineProperty(exports, "getUserColor", { enumerable: true, get: function () { return index_js_2.getUserColor; } });
|
|
220
220
|
Object.defineProperty(exports, "ColorValue", { enumerable: true, get: function () { return index_js_2.ColorValue; } });
|
|
221
221
|
Object.defineProperty(exports, "MiddleTextTruncation", { enumerable: true, get: function () { return index_js_2.MiddleTextTruncation; } });
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
4
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
6
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
8
7
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
9
8
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
@@ -29,7 +29,7 @@ exports.AutoclearingHiddenLiveRegion = void 0;
|
|
|
29
29
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
30
30
|
*--------------------------------------------------------------------------------------------*/
|
|
31
31
|
const React = __importStar(require("react"));
|
|
32
|
-
const VisuallyHidden_js_1 = require("../../VisuallyHidden/VisuallyHidden.js");
|
|
32
|
+
const VisuallyHidden_js_1 = require("../../core/VisuallyHidden/VisuallyHidden.js");
|
|
33
33
|
const index_js_1 = require("../functions/index.js");
|
|
34
34
|
/**
|
|
35
35
|
* Visually-hidden polite live region that automatically clears itself after 5 seconds.
|
|
@@ -34,8 +34,8 @@ exports.InputContainer = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const Box_js_1 = require("./Box.js");
|
|
37
|
-
const Label_js_1 = require("../../Label/Label.js");
|
|
38
|
-
const StatusMessage_js_1 = require("../../StatusMessage/StatusMessage.js");
|
|
37
|
+
const Label_js_1 = require("../../core/Label/Label.js");
|
|
38
|
+
const StatusMessage_js_1 = require("../../core/StatusMessage/StatusMessage.js");
|
|
39
39
|
/**
|
|
40
40
|
* Input container to wrap inputs with label, and add optional message and icon.
|
|
41
41
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PolymorphicForwardRefComponent } from '../props.js';
|
|
2
|
-
import type { IconProps } from '../../Icon/Icon.js';
|
|
3
|
-
import type { IconButtonProps } from '../../Buttons/IconButton.js';
|
|
2
|
+
import type { IconProps } from '../../core/Icon/Icon.js';
|
|
3
|
+
import type { IconButtonProps } from '../../core/Buttons/IconButton.js';
|
|
4
4
|
export type InputFlexContainerProps = {
|
|
5
5
|
isDisabled?: boolean;
|
|
6
6
|
status?: 'positive' | 'warning' | 'negative';
|
|
@@ -11,8 +11,8 @@ exports.InputFlexContainerIcon = exports.InputFlexContainerButton = exports.Inpu
|
|
|
11
11
|
const react_1 = __importDefault(require("react"));
|
|
12
12
|
const classnames_1 = __importDefault(require("classnames"));
|
|
13
13
|
const Box_js_1 = require("./Box.js");
|
|
14
|
-
const Icon_js_1 = require("../../Icon/Icon.js");
|
|
15
|
-
const IconButton_js_1 = require("../../Buttons/IconButton.js");
|
|
14
|
+
const Icon_js_1 = require("../../core/Icon/Icon.js");
|
|
15
|
+
const IconButton_js_1 = require("../../core/Buttons/IconButton.js");
|
|
16
16
|
/**
|
|
17
17
|
* Utility component for input container with display flex abilities.
|
|
18
18
|
* @private
|
|
@@ -30,7 +30,7 @@ exports.Portal = void 0;
|
|
|
30
30
|
*--------------------------------------------------------------------------------------------*/
|
|
31
31
|
const React = __importStar(require("react"));
|
|
32
32
|
const ReactDOM = __importStar(require("react-dom"));
|
|
33
|
-
const ThemeContext_js_1 = require("../../ThemeProvider/ThemeContext.js");
|
|
33
|
+
const ThemeContext_js_1 = require("../../core/ThemeProvider/ThemeContext.js");
|
|
34
34
|
const dom_js_1 = require("../functions/dom.js");
|
|
35
35
|
const useIsClient_js_1 = require("../hooks/useIsClient.js");
|
|
36
36
|
// ----------------------------------------------------------------------------
|
|
@@ -33,7 +33,7 @@ exports.WithCSSTransition = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const react_transition_group_1 = require("react-transition-group");
|
|
36
|
-
const styles_js_1 = __importDefault(require("
|
|
36
|
+
const styles_js_1 = __importDefault(require("../../styles.js"));
|
|
37
37
|
const WithCSSTransition = (props) => {
|
|
38
38
|
const { in: visible, dimension = 'height', children, ...rest } = props;
|
|
39
39
|
const expandedSize = React.useRef(0);
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
4
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
7
|
exports.createWarningLogger = exports.isDev = exports.isUnitTest = void 0;
|
|
9
|
-
|
|
8
|
+
// @ts-expect-error -- jest is not used in iTwinUI but may be used in consuming apps
|
|
9
|
+
const isJest = typeof jest !== 'undefined';
|
|
10
10
|
const isMocha = typeof globalThis.beforeEach !== 'undefined' &&
|
|
11
11
|
`${globalThis.beforeEach}`.replace(/\s/g, '') ===
|
|
12
12
|
'function(name,fn){suites[0].beforeEach(name,fn);}';
|
|
@@ -31,11 +31,10 @@ exports.polymorphic = void 0;
|
|
|
31
31
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
32
32
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
35
34
|
const React = __importStar(require("react"));
|
|
36
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
37
36
|
const useGlobals_js_1 = require("../hooks/useGlobals.js");
|
|
38
|
-
const styles_js_1 = __importDefault(require("
|
|
37
|
+
const styles_js_1 = __importDefault(require("../../styles.js"));
|
|
39
38
|
const _base = (defaultElement) => {
|
|
40
39
|
return (className, attrs) => {
|
|
41
40
|
const Comp = React.forwardRef(({ as = defaultElement, ...props }, ref) => {
|
|
@@ -45,7 +45,6 @@ const cloneElementWithRef = (children, getProps) => {
|
|
|
45
45
|
}
|
|
46
46
|
const props = getProps(children);
|
|
47
47
|
const ref = (0, useMergedRefs_js_1.mergeRefs)(...[
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
48
|
'ref' in children ? children.ref : null,
|
|
50
49
|
'ref' in props ? props.ref : null,
|
|
51
50
|
].filter(Boolean));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ThemeContext } from '../../ThemeProvider/ThemeContext.js';
|
|
2
|
+
import { ThemeContext } from '../../core/ThemeProvider/ThemeContext.js';
|
|
3
3
|
/**
|
|
4
4
|
* Hook used in every component for any shared setup and side effects.
|
|
5
5
|
* Returns the nearest ThemeContext.
|
|
@@ -7,8 +7,8 @@ import { ThemeContext } from '../../ThemeProvider/ThemeContext.js';
|
|
|
7
7
|
* @private
|
|
8
8
|
*/
|
|
9
9
|
export declare const useGlobals: () => {
|
|
10
|
-
theme?: import("../../
|
|
11
|
-
themeOptions?: import("../../ThemeProvider/ThemeProvider.js").ThemeOptions | undefined;
|
|
10
|
+
theme?: import("../../index.js").ThemeType | undefined;
|
|
11
|
+
themeOptions?: import("../../core/ThemeProvider/ThemeProvider.js").ThemeOptions | undefined;
|
|
12
12
|
portalContainer?: HTMLElement | null | undefined;
|
|
13
13
|
} | undefined;
|
|
14
14
|
/** Shows console error if ThemeProvider is not used */
|
|
@@ -29,7 +29,7 @@ exports.useThemeProviderWarning = exports.useGlobals = void 0;
|
|
|
29
29
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
30
30
|
*--------------------------------------------------------------------------------------------*/
|
|
31
31
|
const React = __importStar(require("react"));
|
|
32
|
-
const ThemeContext_js_1 = require("../../ThemeProvider/ThemeContext.js");
|
|
32
|
+
const ThemeContext_js_1 = require("../../core/ThemeProvider/ThemeContext.js");
|
|
33
33
|
const dev_js_1 = require("../functions/dev.js");
|
|
34
34
|
const didLogWarning = {
|
|
35
35
|
fontSize: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PolymorphicForwardRefComponent } from '
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
|
|
3
3
|
type AlertOwnProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Type of the alert.
|
|
@@ -55,8 +55,12 @@ export declare const Alert: PolymorphicForwardRefComponent<"div", AlertOwnProps
|
|
|
55
55
|
Icon: PolymorphicForwardRefComponent<"span", Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
56
56
|
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
57
57
|
}, "fill" | "as" | "key" | "size" | keyof React.HTMLAttributes<HTMLSpanElement> | "padded"> & {
|
|
58
|
-
size?: "small" | "auto" | "medium" | "large" | import("
|
|
59
|
-
|
|
58
|
+
size?: "small" | "auto" | "medium" | "large" | import("../../utils/types.js").AnyString | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Type of the alert.
|
|
61
|
+
* @default 'informational'
|
|
62
|
+
*/
|
|
63
|
+
fill?: "default" | import("../../utils/types.js").AnyString | "informational" | "negative" | "positive" | "warning" | undefined;
|
|
60
64
|
padded?: boolean | undefined;
|
|
61
65
|
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
62
66
|
as?: "span" | undefined;
|
package/esm/core/Alert/Alert.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import { useSafeContext, polymorphic, StatusIconMap, SvgCloseSmall, Box, } from '
|
|
7
|
+
import { useSafeContext, polymorphic, StatusIconMap, SvgCloseSmall, Box, } from '../../utils/index.js';
|
|
8
8
|
import { IconButton } from '../Buttons/IconButton.js';
|
|
9
9
|
import { Icon } from '../Icon/Icon.js';
|
|
10
10
|
import { Anchor } from '../Typography/Anchor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SoftBackgrounds } from '
|
|
2
|
-
import type { AnyString, PolymorphicForwardRefComponent } from '
|
|
1
|
+
import { SoftBackgrounds } from '../../utils/index.js';
|
|
2
|
+
import type { AnyString, PolymorphicForwardRefComponent } from '../../utils/index.js';
|
|
3
3
|
export type AvatarStatus = 'online' | 'busy' | 'away' | 'offline';
|
|
4
4
|
type StatusTitles = {
|
|
5
5
|
[key in Exclude<AvatarStatus, ''>]: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import { Box, SoftBackgrounds, isSoftBackground } from '
|
|
7
|
+
import { Box, SoftBackgrounds, isSoftBackground } from '../../utils/index.js';
|
|
8
8
|
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
9
9
|
/**
|
|
10
10
|
* Helper function that returns one of the preset badge color values.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import { Box } from '
|
|
7
|
+
import { Box } from '../../utils/index.js';
|
|
8
8
|
/**
|
|
9
9
|
* Group Avatars together.
|
|
10
10
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import { Box } from '
|
|
7
|
+
import { Box } from '../../utils/index.js';
|
|
8
8
|
export const Backdrop = React.forwardRef((props, ref) => {
|
|
9
9
|
const { isVisible = true, className, ...rest } = props;
|
|
10
10
|
return (React.createElement(Box, { className: cx('iui-backdrop', { 'iui-backdrop-visible': isVisible }, className), ref: ref, ...rest }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SoftBackgrounds } from '
|
|
2
|
-
import type { AnyString, PolymorphicForwardRefComponent } from '
|
|
1
|
+
import { SoftBackgrounds } from '../../utils/index.js';
|
|
2
|
+
import type { AnyString, PolymorphicForwardRefComponent } from '../../utils/index.js';
|
|
3
3
|
type BadgeProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Background color of the badge.
|
package/esm/core/Badge/Badge.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import { isSoftBackground, SoftBackgrounds, Box } from '
|
|
7
|
+
import { isSoftBackground, SoftBackgrounds, Box } from '../../utils/index.js';
|
|
8
8
|
/**
|
|
9
9
|
* Helper function that returns one of the preset badge color values.
|
|
10
10
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import { useMergedRefs, useOverflow, SvgChevronRight, Box, createWarningLogger, } from '
|
|
7
|
+
import { useMergedRefs, useOverflow, SvgChevronRight, Box, createWarningLogger, } from '../../utils/index.js';
|
|
8
8
|
import { Button } from '../Buttons/Button.js';
|
|
9
9
|
import { Anchor } from '../Typography/Anchor.js';
|
|
10
10
|
const logWarningInDev = createWarningLogger();
|
|
@@ -57,7 +57,6 @@ const BreadcrumbsComponent = React.forwardRef((props, ref) => {
|
|
|
57
57
|
});
|
|
58
58
|
// ----------------------------------------------------------------------------
|
|
59
59
|
const ListItem = ({ item, isActive, }) => {
|
|
60
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
61
60
|
let children = item;
|
|
62
61
|
if (children?.type === 'span' ||
|
|
63
62
|
children?.type === 'a' ||
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PolymorphicForwardRefComponent } from '
|
|
2
|
+
import type { AnyString, PolymorphicForwardRefComponent } from '../../utils/index.js';
|
|
3
3
|
/** This context is used for letting descendant IconButtons know the ButtonGroup's orientation. */
|
|
4
4
|
export declare const ButtonGroupContext: React.Context<string | undefined>;
|
|
5
5
|
type ButtonGroupProps = {
|
|
@@ -27,13 +27,22 @@ type ButtonGroupProps = {
|
|
|
27
27
|
* @default 'horizontal'
|
|
28
28
|
*/
|
|
29
29
|
orientation?: 'horizontal' | 'vertical';
|
|
30
|
+
/**
|
|
31
|
+
* ARIA role for the ButtonGroup.
|
|
32
|
+
*
|
|
33
|
+
* If set to toolbar', it will automatically support arrow-key navigation.
|
|
34
|
+
*
|
|
35
|
+
* **Note**: `role="toolbar"` should not be used when the ButtonGroup contains
|
|
36
|
+
* non-button elements (such as inputs).
|
|
37
|
+
*/
|
|
38
|
+
role?: 'toolbar' | AnyString;
|
|
30
39
|
};
|
|
31
40
|
/**
|
|
32
41
|
* Group buttons together for common actions.
|
|
33
42
|
* Handles responsive overflow when the `overflowButton` prop is specified.
|
|
34
43
|
*
|
|
35
44
|
* @example
|
|
36
|
-
* <ButtonGroup>
|
|
45
|
+
* <ButtonGroup role="toolbar">
|
|
37
46
|
* <IconButton>
|
|
38
47
|
* <SvgAdd />
|
|
39
48
|
* </IconButton>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import { useOverflow, useMergedRefs, Box } from '
|
|
8
|
-
import { FloatingDelayGroup } from '@floating-ui/react';
|
|
7
|
+
import { useOverflow, useMergedRefs, Box } from '../../utils/index.js';
|
|
8
|
+
import { Composite, CompositeItem, FloatingDelayGroup, } from '@floating-ui/react';
|
|
9
9
|
// ----------------------------------------------------------------------------
|
|
10
10
|
/** This context is used for letting descendant IconButtons know the ButtonGroup's orientation. */
|
|
11
11
|
export const ButtonGroupContext = React.createContext(undefined);
|
|
@@ -15,7 +15,7 @@ ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
|
15
15
|
* Handles responsive overflow when the `overflowButton` prop is specified.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* <ButtonGroup>
|
|
18
|
+
* <ButtonGroup role="toolbar">
|
|
19
19
|
* <IconButton>
|
|
20
20
|
* <SvgAdd />
|
|
21
21
|
* </IconButton>
|
|
@@ -38,34 +38,46 @@ ButtonGroupContext.displayName = 'ButtonGroupContext';
|
|
|
38
38
|
* {buttons}
|
|
39
39
|
* </ButtonGroup>
|
|
40
40
|
*/
|
|
41
|
-
export const ButtonGroup = React.forwardRef((props,
|
|
42
|
-
const { children
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
export const ButtonGroup = React.forwardRef((props, forwardedRef) => {
|
|
42
|
+
const { children: childrenProp, overflowButton, overflowPlacement = 'end', orientation = 'horizontal', ...rest } = props;
|
|
43
|
+
const children = React.useMemo(() => {
|
|
44
|
+
if (props.role !== 'toolbar') {
|
|
45
|
+
return childrenProp;
|
|
46
|
+
}
|
|
47
|
+
return React.Children.map(childrenProp, (child, index) => React.isValidElement(child) ? (React.createElement(CompositeItem, { key: index, render: child })) : (child));
|
|
48
|
+
}, [childrenProp, props.role]);
|
|
49
|
+
const node = overflowButton ? (React.createElement(OverflowGroup, { orientation: orientation, overflowButton: overflowButton, overflowPlacement: overflowPlacement, ref: forwardedRef, ...rest }, children)) : (React.createElement(BaseGroup, { orientation: orientation, ref: forwardedRef, ...rest }, children));
|
|
46
50
|
return (React.createElement(FloatingDelayGroup, { delay: { open: 50, close: 250 } },
|
|
47
|
-
React.createElement(ButtonGroupContext.Provider, { value: orientation },
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
51
|
+
React.createElement(ButtonGroupContext.Provider, { value: orientation }, props.role === 'toolbar' ? (React.createElement(Composite, { orientation: orientation, render: node })) : (node))));
|
|
52
|
+
});
|
|
53
|
+
// ----------------------------------------------------------------------------
|
|
54
|
+
const BaseGroup = React.forwardRef((props, forwardedRef) => {
|
|
55
|
+
const { orientation, className, ...rest } = props;
|
|
56
|
+
return (React.createElement(Box, { className: cx('iui-button-group', className), "data-iui-orientation": orientation === 'vertical' ? orientation : undefined, ref: forwardedRef, ...rest }));
|
|
57
|
+
});
|
|
58
|
+
// ----------------------------------------------------------------------------
|
|
59
|
+
const OverflowGroup = React.forwardRef((props, forwardedRef) => {
|
|
60
|
+
const { children: childrenProp, orientation, overflowButton, overflowPlacement, ...rest } = props;
|
|
61
|
+
const items = React.useMemo(() => React.Children.toArray(childrenProp).filter(Boolean), [childrenProp]);
|
|
62
|
+
const [overflowRef, visibleCount] = useOverflow(items, !overflowButton, orientation);
|
|
63
|
+
return (React.createElement(BaseGroup, { orientation: orientation, ...rest, className: cx({
|
|
64
|
+
'iui-button-group-overflow-x': !!overflowButton && orientation === 'horizontal',
|
|
65
|
+
}, props.className), ref: useMergedRefs(forwardedRef, overflowRef) }, (() => {
|
|
66
|
+
if (!(visibleCount < items.length)) {
|
|
67
|
+
return items;
|
|
68
|
+
}
|
|
69
|
+
const overflowStart = overflowPlacement === 'start'
|
|
70
|
+
? items.length - visibleCount
|
|
71
|
+
: visibleCount - 1;
|
|
72
|
+
return (React.createElement(React.Fragment, null,
|
|
73
|
+
overflowButton &&
|
|
74
|
+
overflowPlacement === 'start' &&
|
|
75
|
+
overflowButton(overflowStart),
|
|
76
|
+
overflowPlacement === 'start'
|
|
77
|
+
? items.slice(overflowStart + 1)
|
|
78
|
+
: items.slice(0, Math.max(0, overflowStart)),
|
|
79
|
+
overflowButton &&
|
|
80
|
+
overflowPlacement === 'end' &&
|
|
81
|
+
overflowButton(overflowStart)));
|
|
82
|
+
})()));
|
|
71
83
|
});
|