@itwin/itwinui-react 3.0.0-dev.1 → 3.0.0-dev.11
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 +301 -1
- package/cjs/core/Alert/Alert.d.ts +57 -27
- package/cjs/core/Alert/Alert.js +157 -53
- package/cjs/core/Avatar/Avatar.d.ts +6 -9
- package/cjs/core/Avatar/Avatar.js +64 -49
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +1 -5
- package/cjs/core/AvatarGroup/AvatarGroup.js +65 -58
- package/cjs/core/Backdrop/Backdrop.d.ts +1 -1
- package/cjs/core/Backdrop/Backdrop.js +16 -33
- package/cjs/core/Badge/Badge.d.ts +1 -1
- package/cjs/core/Badge/Badge.js +39 -47
- package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +16 -24
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +149 -63
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/cjs/core/ButtonGroup/ButtonGroup.js +64 -52
- package/cjs/core/Buttons/{Button/Button.d.ts → Button.d.ts} +17 -4
- package/cjs/core/Buttons/Button.js +74 -0
- package/{esm/core/Buttons/DropdownButton → cjs/core/Buttons}/DropdownButton.d.ts +5 -5
- package/cjs/core/Buttons/DropdownButton.js +66 -0
- package/{esm/core/Buttons/IconButton → cjs/core/Buttons}/IconButton.d.ts +8 -4
- package/cjs/core/Buttons/IconButton.js +68 -0
- package/{esm/core/Buttons/IdeasButton → cjs/core/Buttons}/IdeasButton.d.ts +2 -2
- package/cjs/core/Buttons/IdeasButton.js +33 -0
- package/cjs/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +14 -5
- package/cjs/core/Buttons/SplitButton.js +125 -0
- package/cjs/core/Carousel/Carousel.d.ts +9 -7
- package/cjs/core/Carousel/Carousel.js +109 -109
- package/cjs/core/Carousel/CarouselContext.js +4 -26
- package/cjs/core/Carousel/CarouselDot.d.ts +1 -1
- package/cjs/core/Carousel/CarouselDot.js +23 -37
- package/cjs/core/Carousel/CarouselDotsList.d.ts +1 -1
- package/cjs/core/Carousel/CarouselDotsList.js +129 -97
- package/cjs/core/Carousel/CarouselNavigation.d.ts +8 -6
- package/cjs/core/Carousel/CarouselNavigation.js +97 -68
- package/cjs/core/Carousel/CarouselSlide.d.ts +1 -1
- package/cjs/core/Carousel/CarouselSlide.js +39 -46
- package/cjs/core/Carousel/CarouselSlider.js +66 -76
- package/cjs/core/Checkbox/Checkbox.d.ts +9 -5
- package/cjs/core/Checkbox/Checkbox.js +88 -60
- package/cjs/core/ColorPicker/ColorBuilder.js +290 -201
- package/cjs/core/ColorPicker/ColorInputPanel.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorInputPanel.js +393 -284
- package/cjs/core/ColorPicker/ColorPalette.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorPalette.js +124 -115
- package/cjs/core/ColorPicker/ColorPicker.d.ts +10 -6
- package/cjs/core/ColorPicker/ColorPicker.js +87 -85
- package/cjs/core/ColorPicker/ColorPickerContext.js +11 -31
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorSwatch.js +30 -39
- package/cjs/core/ComboBox/ComboBox.d.ts +14 -9
- package/cjs/core/ComboBox/ComboBox.js +403 -302
- package/cjs/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +28 -43
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +3 -3
- package/cjs/core/ComboBox/ComboBoxInput.js +208 -151
- package/cjs/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +35 -34
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +3 -3
- package/cjs/core/ComboBox/ComboBoxMenu.js +89 -77
- package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
- package/cjs/core/ComboBox/ComboBoxMenuItem.js +73 -42
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.js +13 -32
- package/cjs/core/ComboBox/helpers.d.ts +7 -5
- package/cjs/core/ComboBox/helpers.js +47 -66
- package/cjs/core/DatePicker/DatePicker.d.ts +41 -10
- package/cjs/core/DatePicker/DatePicker.js +569 -357
- package/cjs/core/Dialog/Dialog.d.ts +1 -1
- package/cjs/core/Dialog/Dialog.js +65 -61
- package/cjs/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/cjs/core/Dialog/DialogBackdrop.js +47 -52
- package/cjs/core/Dialog/DialogButtonBar.js +3 -3
- package/cjs/core/Dialog/DialogContent.d.ts +2 -1
- package/cjs/core/Dialog/DialogContent.js +28 -4
- package/cjs/core/Dialog/DialogContext.d.ts +11 -1
- package/cjs/core/Dialog/DialogContext.js +5 -27
- package/cjs/core/Dialog/DialogDragContext.d.ts +1 -1
- package/cjs/core/Dialog/DialogDragContext.js +8 -30
- package/cjs/core/Dialog/DialogMain.d.ts +1 -1
- package/cjs/core/Dialog/DialogMain.js +183 -148
- package/cjs/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/cjs/core/Dialog/DialogTitleBar.js +67 -45
- package/cjs/core/Dialog/DialogTitleBarTitle.js +3 -3
- package/{esm/core/utils/components → cjs/core/Divider}/Divider.d.ts +2 -2
- package/cjs/core/Divider/Divider.js +25 -0
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +8 -7
- package/cjs/core/DropdownMenu/DropdownMenu.js +83 -58
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +83 -21
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +255 -76
- package/cjs/core/Fieldset/Fieldset.d.ts +1 -1
- package/cjs/core/Fieldset/Fieldset.js +25 -39
- package/cjs/core/FileUpload/FileEmptyCard.js +43 -42
- package/cjs/core/FileUpload/FileUpload.d.ts +8 -5
- package/cjs/core/FileUpload/FileUpload.js +90 -72
- package/cjs/core/FileUpload/FileUploadCard.d.ts +1 -1
- package/cjs/core/FileUpload/FileUploadCard.js +169 -109
- package/cjs/core/FileUpload/FileUploadTemplate.d.ts +2 -1
- package/cjs/core/FileUpload/FileUploadTemplate.js +52 -41
- package/{esm/core/utils/components → cjs/core/Flex}/Flex.d.ts +6 -6
- package/cjs/core/Flex/Flex.js +148 -0
- package/cjs/core/Footer/Footer.d.ts +4 -4
- package/cjs/core/Footer/Footer.js +103 -89
- package/cjs/core/Footer/FooterItem.js +3 -3
- package/cjs/core/Footer/FooterList.js +3 -3
- package/cjs/core/Footer/FooterSeparator.js +8 -5
- package/cjs/core/Header/Header.d.ts +3 -22
- package/cjs/core/Header/Header.js +67 -48
- package/cjs/core/Header/HeaderBasicButton.d.ts +1 -1
- package/cjs/core/Header/HeaderBasicButton.js +24 -38
- package/cjs/core/Header/HeaderBreadcrumbs.d.ts +1 -1
- package/cjs/core/Header/HeaderBreadcrumbs.js +38 -39
- package/cjs/core/Header/HeaderButton.d.ts +7 -3
- package/cjs/core/Header/HeaderButton.js +76 -43
- package/cjs/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/cjs/core/Header/HeaderDropdownButton.js +48 -45
- package/cjs/core/Header/HeaderLogo.d.ts +1 -1
- package/cjs/core/Header/HeaderLogo.js +42 -36
- package/cjs/core/Header/HeaderSplitButton.d.ts +1 -1
- package/cjs/core/Header/HeaderSplitButton.js +66 -46
- package/{esm/core/utils/components → cjs/core/Icon}/Icon.d.ts +8 -3
- package/cjs/core/Icon/Icon.js +56 -0
- package/cjs/core/InformationPanel/InformationPanel.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanel.js +77 -70
- package/cjs/core/InformationPanel/InformationPanelBody.js +6 -4
- package/cjs/core/InformationPanel/InformationPanelContent.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanelContent.js +20 -33
- package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.js +34 -39
- package/cjs/core/InformationPanel/InformationPanelWrapper.js +6 -4
- package/cjs/core/Input/Input.d.ts +10 -7
- package/cjs/core/Input/Input.js +18 -41
- package/cjs/core/InputGrid/InputGrid.d.ts +25 -0
- package/cjs/core/InputGrid/InputGrid.js +39 -0
- package/cjs/core/InputGroup/InputGroup.d.ts +14 -1
- package/cjs/core/InputGroup/InputGroup.js +72 -41
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +39 -0
- package/cjs/core/InputWithDecorations/InputWithDecorations.js +81 -0
- package/cjs/core/Label/Label.d.ts +6 -1
- package/cjs/core/Label/Label.js +32 -36
- package/cjs/core/LabeledInput/LabeledInput.d.ts +24 -18
- package/cjs/core/LabeledInput/LabeledInput.js +71 -34
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +18 -8
- package/cjs/core/LabeledSelect/LabeledSelect.js +76 -44
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +16 -7
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +17 -34
- package/{esm/core/utils/components → cjs/core/LinkAction}/LinkAction.d.ts +2 -2
- package/cjs/core/{utils/components → LinkAction}/LinkAction.js +3 -3
- package/cjs/core/List/List.js +3 -3
- package/cjs/core/List/ListItem.d.ts +4 -4
- package/cjs/core/List/ListItem.js +55 -60
- package/cjs/core/Menu/Menu.d.ts +2 -2
- package/cjs/core/Menu/Menu.js +66 -79
- package/cjs/core/Menu/MenuDivider.d.ts +2 -1
- package/cjs/core/Menu/MenuDivider.js +5 -5
- package/cjs/core/Menu/MenuExtraContent.js +4 -4
- package/cjs/core/Menu/MenuItem.d.ts +2 -2
- package/cjs/core/Menu/MenuItem.js +169 -91
- package/cjs/core/Menu/MenuItemSkeleton.d.ts +2 -2
- package/cjs/core/Menu/MenuItemSkeleton.js +54 -43
- package/cjs/core/Modal/Modal.d.ts +9 -10
- package/cjs/core/Modal/Modal.js +38 -43
- package/cjs/core/Modal/ModalButtonBar.js +7 -4
- package/cjs/core/Modal/ModalContent.js +3 -3
- package/cjs/core/NonIdealState/ErrorPage.d.ts +6 -7
- package/cjs/core/NonIdealState/ErrorPage.js +189 -146
- package/cjs/core/NonIdealState/NonIdealState.d.ts +17 -1
- package/cjs/core/NonIdealState/NonIdealState.js +77 -37
- package/cjs/core/NotificationMarker/NotificationMarker.d.ts +1 -1
- package/cjs/core/NotificationMarker/NotificationMarker.js +29 -33
- package/cjs/core/Overlay/Overlay.d.ts +57 -0
- package/cjs/core/Overlay/Overlay.js +96 -0
- package/cjs/core/Popover/Popover.d.ts +121 -0
- package/cjs/core/Popover/Popover.js +174 -0
- package/cjs/core/ProgressIndicators/{ProgressLinear/ProgressLinear.d.ts → ProgressLinear.d.ts} +10 -6
- package/cjs/core/ProgressIndicators/ProgressLinear.js +72 -0
- package/cjs/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -4
- package/cjs/core/ProgressIndicators/ProgressRadial.js +74 -0
- package/cjs/core/Radio/Radio.d.ts +7 -4
- package/cjs/core/Radio/Radio.js +54 -42
- package/cjs/core/RadioTiles/RadioTile.d.ts +15 -4
- package/cjs/core/RadioTiles/RadioTile.js +80 -45
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +2 -2
- package/cjs/core/RadioTiles/RadioTileGroup.js +16 -31
- package/cjs/core/SearchBox/SearchBox.d.ts +6 -5
- package/cjs/core/SearchBox/SearchBox.js +221 -128
- package/cjs/core/Select/Select.d.ts +12 -13
- package/cjs/core/Select/Select.js +273 -185
- package/cjs/core/Select/SelectTag.d.ts +1 -1
- package/cjs/core/Select/SelectTag.js +21 -34
- package/cjs/core/Select/SelectTagContainer.d.ts +1 -1
- package/cjs/core/Select/SelectTagContainer.js +30 -39
- package/cjs/core/SideNavigation/SideNavigation.d.ts +17 -1
- package/cjs/core/SideNavigation/SideNavigation.js +138 -54
- package/cjs/core/SideNavigation/SidenavButton.d.ts +2 -2
- package/cjs/core/SideNavigation/SidenavButton.js +30 -33
- package/cjs/core/SideNavigation/SidenavSubmenu.js +23 -34
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +29 -35
- package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
- package/cjs/core/SkipToContentLink/SkipToContentLink.js +20 -33
- package/cjs/core/Slider/Slider.d.ts +29 -9
- package/cjs/core/Slider/Slider.js +391 -230
- package/cjs/core/Slider/Thumb.d.ts +4 -4
- package/cjs/core/Slider/Thumb.js +112 -84
- package/cjs/core/Slider/Track.d.ts +4 -4
- package/cjs/core/Slider/Track.js +83 -76
- package/cjs/core/StatusMessage/StatusMessage.d.ts +13 -3
- package/cjs/core/StatusMessage/StatusMessage.js +37 -35
- package/cjs/core/Stepper/Stepper.d.ts +29 -4
- package/cjs/core/Stepper/Stepper.js +80 -36
- package/cjs/core/Stepper/StepperStep.d.ts +18 -1
- package/cjs/core/Stepper/StepperStep.js +109 -63
- package/cjs/core/Stepper/WorkflowDiagram.d.ts +11 -1
- package/cjs/core/Stepper/WorkflowDiagram.js +39 -34
- package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +8 -3
- package/cjs/core/Stepper/WorkflowDiagramStep.js +39 -36
- package/cjs/core/Surface/Surface.d.ts +2 -2
- package/cjs/core/Surface/Surface.js +78 -70
- package/cjs/core/Table/SubRowExpander.d.ts +3 -3
- package/cjs/core/Table/SubRowExpander.js +37 -37
- package/cjs/core/Table/Table.d.ts +19 -3
- package/cjs/core/Table/Table.js +764 -453
- package/cjs/core/Table/TableCell.d.ts +3 -3
- package/cjs/core/Table/TableCell.js +113 -88
- package/cjs/core/Table/TablePaginator.d.ts +3 -3
- package/cjs/core/Table/TablePaginator.js +312 -160
- package/cjs/core/Table/TableRowMemoized.d.ts +5 -5
- package/cjs/core/Table/TableRowMemoized.js +156 -115
- package/cjs/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/expandHandler.js +12 -12
- package/cjs/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/filterHandler.js +25 -18
- package/cjs/core/Table/actionHandlers/index.js +56 -14
- package/cjs/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/cjs/core/Table/actionHandlers/resizeHandler.js +13 -13
- package/cjs/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/cjs/core/Table/actionHandlers/selectHandler.js +123 -96
- package/cjs/core/Table/cells/DefaultCell.d.ts +3 -3
- package/cjs/core/Table/cells/DefaultCell.js +48 -38
- package/cjs/core/Table/cells/EditableCell.d.ts +3 -3
- package/cjs/core/Table/cells/EditableCell.js +75 -74
- package/cjs/core/Table/cells/index.js +16 -6
- package/cjs/core/Table/columns/actionColumn.d.ts +5 -5
- package/cjs/core/Table/columns/actionColumn.js +97 -99
- package/cjs/core/Table/columns/expanderColumn.d.ts +3 -3
- package/cjs/core/Table/columns/expanderColumn.js +45 -54
- package/cjs/core/Table/columns/index.js +41 -11
- package/cjs/core/Table/columns/selectionColumn.d.ts +5 -5
- package/cjs/core/Table/columns/selectionColumn.js +57 -51
- package/cjs/core/Table/filters/BaseFilter.d.ts +2 -2
- package/cjs/core/Table/filters/BaseFilter.js +24 -38
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +9 -3
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +122 -75
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +6 -4
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +120 -80
- package/cjs/core/Table/filters/FilterButtonBar.d.ts +3 -3
- package/cjs/core/Table/filters/FilterButtonBar.js +39 -41
- package/cjs/core/Table/filters/FilterToggle.d.ts +4 -4
- package/cjs/core/Table/filters/FilterToggle.js +62 -51
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -4
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +58 -53
- package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +3 -3
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +40 -45
- package/cjs/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/customFilterFunctions.js +16 -14
- package/cjs/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/defaultFilterFunctions.js +86 -81
- package/cjs/core/Table/filters/index.js +35 -11
- package/cjs/core/Table/filters/tableFilters.d.ts +5 -5
- package/cjs/core/Table/filters/tableFilters.js +44 -54
- package/cjs/core/Table/filters/types.d.ts +2 -19
- package/cjs/core/Table/filters/types.js +2 -2
- package/cjs/core/Table/hooks/index.js +67 -19
- package/cjs/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/cjs/core/Table/hooks/useColumnDragAndDrop.js +101 -88
- package/cjs/core/Table/hooks/useExpanderCell.d.ts +2 -2
- package/cjs/core/Table/hooks/useExpanderCell.js +33 -47
- package/cjs/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useResizeColumns.js +362 -296
- package/cjs/core/Table/hooks/useScrollToRow.d.ts +3 -3
- package/cjs/core/Table/hooks/useScrollToRow.js +46 -61
- package/cjs/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useSelectionCell.js +17 -10
- package/cjs/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useStickyColumns.js +64 -64
- package/cjs/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowFiltering.js +95 -112
- package/cjs/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowSelection.js +32 -53
- package/cjs/core/Table/index.d.ts +1 -1
- package/cjs/core/Table/index.js +78 -18
- package/cjs/core/Table/utils.d.ts +1 -1
- package/cjs/core/Table/utils.js +42 -40
- package/cjs/core/Tabs/Tab.d.ts +2 -2
- package/cjs/core/Tabs/Tab.js +50 -38
- package/cjs/core/Tabs/Tabs.d.ts +6 -42
- package/cjs/core/Tabs/Tabs.js +409 -368
- package/cjs/core/Tag/Tag.d.ts +1 -1
- package/cjs/core/Tag/Tag.js +42 -40
- package/cjs/core/Tag/TagContainer.d.ts +1 -1
- package/cjs/core/Tag/TagContainer.js +23 -36
- package/cjs/core/Textarea/Textarea.d.ts +4 -5
- package/cjs/core/Textarea/Textarea.js +13 -42
- package/cjs/core/ThemeProvider/ThemeContext.d.ts +1 -1
- package/cjs/core/ThemeProvider/ThemeContext.js +4 -26
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +29 -10
- package/cjs/core/ThemeProvider/ThemeProvider.js +114 -57
- package/cjs/core/Tile/Tile.d.ts +200 -17
- package/cjs/core/Tile/Tile.js +496 -132
- package/cjs/core/TimePicker/TimePicker.d.ts +3 -3
- package/cjs/core/TimePicker/TimePicker.js +458 -259
- package/cjs/core/Toast/Toast.d.ts +20 -17
- package/cjs/core/Toast/Toast.js +206 -134
- package/cjs/core/Toast/Toaster.d.ts +26 -28
- package/cjs/core/Toast/Toaster.js +126 -153
- package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +1 -6
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +66 -53
- package/cjs/core/Tooltip/Tooltip.d.ts +81 -14
- package/cjs/core/Tooltip/Tooltip.js +153 -41
- package/cjs/core/TransferList/TransferList.d.ts +7 -7
- package/cjs/core/TransferList/TransferList.js +177 -104
- package/cjs/core/Tree/Tree.d.ts +5 -5
- package/cjs/core/Tree/Tree.js +205 -161
- package/cjs/core/Tree/TreeContext.d.ts +1 -1
- package/cjs/core/Tree/TreeContext.js +9 -31
- package/cjs/core/Tree/TreeNode.d.ts +2 -2
- package/cjs/core/Tree/TreeNode.js +207 -130
- package/cjs/core/Tree/TreeNodeExpander.d.ts +2 -2
- package/cjs/core/Tree/TreeNodeExpander.js +26 -37
- package/{esm/core/Typography/Anchor → cjs/core/Typography}/Anchor.d.ts +1 -1
- package/cjs/core/Typography/{Anchor/Anchor.js → Anchor.js} +3 -3
- package/cjs/core/Typography/{Blockquote/Blockquote.d.ts → Blockquote.d.ts} +2 -2
- package/cjs/core/Typography/Blockquote.js +34 -0
- package/cjs/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/cjs/core/Typography/{Code/Code.js → Code.js} +3 -3
- package/cjs/core/Typography/{Kbd/Kbd.d.ts → Kbd.d.ts} +2 -2
- package/cjs/core/Typography/Kbd.js +49 -0
- package/cjs/core/Typography/{Text/Text.d.ts → Text.d.ts} +2 -2
- package/cjs/core/Typography/Text.js +46 -0
- package/cjs/core/{utils/components → VisuallyHidden}/VisuallyHidden.d.ts +2 -2
- package/cjs/core/VisuallyHidden/VisuallyHidden.js +32 -0
- package/cjs/core/utils/color/ColorValue.d.ts +4 -4
- package/cjs/core/utils/color/ColorValue.js +535 -459
- package/cjs/core/utils/color/index.js +4 -17
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +20 -36
- package/cjs/core/utils/components/Box.js +3 -3
- package/cjs/core/utils/components/ButtonBase.d.ts +14 -0
- package/cjs/core/utils/components/ButtonBase.js +46 -0
- package/cjs/core/utils/components/FocusTrap.d.ts +3 -3
- package/cjs/core/utils/components/FocusTrap.js +47 -60
- package/cjs/core/utils/components/InputContainer.d.ts +4 -5
- package/cjs/core/utils/components/InputContainer.js +62 -49
- package/cjs/core/utils/components/InputFlexContainer.d.ts +2 -1
- package/cjs/core/utils/components/InputFlexContainer.js +24 -10
- package/cjs/core/utils/components/MiddleTextTruncation.d.ts +2 -2
- package/cjs/core/utils/components/MiddleTextTruncation.js +32 -45
- package/cjs/core/utils/components/Portal.d.ts +27 -0
- package/cjs/core/utils/components/Portal.js +43 -0
- package/cjs/core/utils/components/Resizer.d.ts +2 -2
- package/cjs/core/utils/components/Resizer.js +254 -210
- package/cjs/core/utils/components/VirtualScroll.d.ts +2 -2
- package/cjs/core/utils/components/VirtualScroll.js +303 -251
- package/cjs/core/utils/components/WithCSSTransition.d.ts +2 -2
- package/cjs/core/utils/components/WithCSSTransition.js +43 -48
- package/cjs/core/utils/components/index.d.ts +2 -6
- package/cjs/core/utils/components/index.js +14 -31
- package/cjs/core/utils/functions/colors.d.ts +1 -1
- package/cjs/core/utils/functions/colors.js +26 -35
- package/cjs/core/utils/functions/date.js +10 -10
- package/cjs/core/utils/functions/dev.d.ts +11 -0
- package/cjs/core/utils/functions/dev.js +34 -0
- package/cjs/core/utils/functions/dom.d.ts +0 -8
- package/cjs/core/utils/functions/dom.js +24 -40
- package/cjs/core/utils/functions/focusable.js +26 -17
- package/cjs/core/utils/functions/import.d.ts +6 -0
- package/cjs/core/utils/functions/import.js +61 -0
- package/cjs/core/utils/functions/index.d.ts +3 -0
- package/cjs/core/utils/functions/index.js +13 -23
- package/cjs/core/utils/functions/numbers.js +9 -9
- package/cjs/core/utils/functions/polymorphic.d.ts +5 -3
- package/cjs/core/utils/functions/polymorphic.js +43 -55
- package/cjs/core/utils/functions/react.d.ts +8 -0
- package/cjs/core/utils/functions/react.js +40 -0
- package/cjs/core/utils/functions/supports.js +5 -4
- package/cjs/core/utils/hooks/index.d.ts +1 -1
- package/cjs/core/utils/hooks/index.js +17 -30
- package/cjs/core/utils/hooks/useContainerWidth.js +26 -41
- package/cjs/core/utils/hooks/useControlledState.d.ts +13 -0
- package/cjs/core/utils/hooks/useControlledState.js +39 -0
- package/cjs/core/utils/hooks/useDragAndDrop.js +110 -111
- package/cjs/core/utils/hooks/useEventListener.js +22 -44
- package/cjs/core/utils/hooks/useGlobals.d.ts +9 -2
- package/cjs/core/utils/hooks/useGlobals.js +35 -54
- package/cjs/core/utils/hooks/useId.js +9 -31
- package/cjs/core/utils/hooks/useIntersection.js +30 -47
- package/cjs/core/utils/hooks/useIsClient.js +9 -31
- package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.js +6 -27
- package/cjs/core/utils/hooks/useLatestRef.js +9 -31
- package/cjs/core/utils/hooks/useMediaQuery.js +31 -55
- package/cjs/core/utils/hooks/useMergedRefs.js +15 -38
- package/cjs/core/utils/hooks/useOverflow.js +69 -79
- package/cjs/core/utils/hooks/useResizeObserver.js +22 -40
- package/cjs/core/utils/hooks/useSafeContext.js +9 -31
- package/cjs/core/utils/icons/StatusIconMap.d.ts +5 -5
- package/cjs/core/utils/icons/StatusIconMap.js +28 -34
- package/cjs/core/utils/icons/Svg.js +3 -3
- package/cjs/core/utils/icons/SvgCalendar.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCalendar.js +12 -29
- package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCaretDownSmall.js +12 -29
- package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCaretRightSmall.js +12 -29
- package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCaretUpSmall.js +12 -29
- package/cjs/core/utils/icons/SvgCheckmark.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCheckmark.js +10 -29
- package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCheckmarkSmall.js +12 -29
- package/cjs/core/utils/icons/SvgChevronLeft.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronLeft.js +12 -29
- package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronLeftDouble.js +12 -29
- package/cjs/core/utils/icons/SvgChevronRight.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronRight.js +12 -29
- package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronRightDouble.js +12 -29
- package/cjs/core/utils/icons/SvgClose.d.ts +1 -1
- package/cjs/core/utils/icons/SvgClose.js +12 -29
- package/cjs/core/utils/icons/SvgCloseSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCloseSmall.js +12 -29
- package/cjs/core/utils/icons/SvgColumnManager.d.ts +1 -1
- package/cjs/core/utils/icons/SvgColumnManager.js +12 -29
- package/cjs/core/utils/icons/SvgDocument.d.ts +1 -1
- package/cjs/core/utils/icons/SvgDocument.js +10 -29
- package/cjs/core/utils/icons/SvgFilter.d.ts +1 -1
- package/cjs/core/utils/icons/SvgFilter.js +10 -29
- package/cjs/core/utils/icons/SvgFilterHollow.d.ts +1 -1
- package/cjs/core/utils/icons/SvgFilterHollow.js +12 -29
- package/cjs/core/utils/icons/SvgImportantSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgImportantSmall.js +12 -29
- package/cjs/core/utils/icons/SvgInfoCircular.d.ts +1 -1
- package/cjs/core/utils/icons/SvgInfoCircular.js +12 -29
- package/cjs/core/utils/icons/SvgMore.d.ts +1 -1
- package/cjs/core/utils/icons/SvgMore.js +12 -29
- package/cjs/core/utils/icons/SvgMoreVertical.d.ts +1 -1
- package/cjs/core/utils/icons/SvgMoreVertical.js +12 -29
- package/cjs/core/utils/icons/SvgNew.d.ts +1 -1
- package/cjs/core/utils/icons/SvgNew.js +12 -29
- package/cjs/core/utils/icons/SvgSearch.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSearch.js +12 -29
- package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSmileyHappy.js +12 -29
- package/cjs/core/utils/icons/SvgSortDown.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSortDown.js +12 -29
- package/cjs/core/utils/icons/SvgSortUp.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSortUp.js +12 -29
- package/cjs/core/utils/icons/SvgStatusError.d.ts +1 -1
- package/cjs/core/utils/icons/SvgStatusError.js +12 -29
- package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
- package/cjs/core/utils/icons/SvgStatusSuccess.js +12 -29
- package/cjs/core/utils/icons/SvgStatusWarning.d.ts +1 -1
- package/cjs/core/utils/icons/SvgStatusWarning.js +12 -29
- package/cjs/core/utils/icons/SvgSwap.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSwap.js +12 -29
- package/cjs/core/utils/icons/SvgUpload.d.ts +1 -1
- package/cjs/core/utils/icons/SvgUpload.js +12 -29
- package/cjs/core/utils/icons/index.js +34 -47
- package/cjs/core/utils/index.js +10 -23
- package/cjs/core/utils/props.d.ts +2 -2
- package/cjs/core/utils/props.js +2 -2
- package/cjs/core/utils/types.d.ts +1 -1
- package/cjs/core/utils/types.js +2 -2
- package/cjs/index.d.ts +113 -2
- package/cjs/index.js +951 -18
- package/cjs/package.json +1 -0
- package/cjs/react-table/react-table.d.ts +745 -0
- package/cjs/{core/Badge/index.js → react-table/react-table.js} +6 -6
- package/cjs/styles.js +425 -448
- package/esm/core/Alert/Alert.d.ts +57 -27
- package/esm/core/Alert/Alert.js +159 -23
- package/esm/core/Avatar/Avatar.d.ts +6 -9
- package/esm/core/Avatar/Avatar.js +49 -18
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +1 -5
- package/esm/core/AvatarGroup/AvatarGroup.js +58 -26
- package/esm/core/Backdrop/Backdrop.d.ts +1 -1
- package/esm/core/Backdrop/Backdrop.js +10 -2
- package/esm/core/Badge/Badge.d.ts +1 -1
- package/esm/core/Badge/Badge.js +31 -16
- package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +16 -24
- package/esm/core/Breadcrumbs/Breadcrumbs.js +147 -33
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/esm/core/ButtonGroup/ButtonGroup.js +58 -21
- package/esm/core/Buttons/{Button/Button.d.ts → Button.d.ts} +17 -4
- package/esm/core/Buttons/Button.js +64 -0
- package/{cjs/core/Buttons/DropdownButton → esm/core/Buttons}/DropdownButton.d.ts +5 -5
- package/esm/core/Buttons/DropdownButton.js +58 -0
- package/{cjs/core/Buttons/IconButton → esm/core/Buttons}/IconButton.d.ts +8 -4
- package/esm/core/Buttons/IconButton.js +59 -0
- package/{cjs/core/Buttons/IdeasButton → esm/core/Buttons}/IdeasButton.d.ts +2 -2
- package/esm/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +14 -4
- package/esm/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +14 -5
- package/esm/core/Buttons/SplitButton.js +128 -0
- package/esm/core/Carousel/Carousel.d.ts +9 -7
- package/esm/core/Carousel/Carousel.js +103 -73
- package/esm/core/Carousel/CarouselDot.d.ts +1 -1
- package/esm/core/Carousel/CarouselDot.js +18 -7
- package/esm/core/Carousel/CarouselDotsList.d.ts +1 -1
- package/esm/core/Carousel/CarouselDotsList.js +123 -65
- package/esm/core/Carousel/CarouselNavigation.d.ts +8 -6
- package/esm/core/Carousel/CarouselNavigation.js +86 -35
- package/esm/core/Carousel/CarouselSlide.d.ts +1 -1
- package/esm/core/Carousel/CarouselSlide.js +29 -14
- package/esm/core/Carousel/CarouselSlider.js +65 -45
- package/esm/core/Checkbox/Checkbox.d.ts +9 -5
- package/esm/core/Checkbox/Checkbox.js +79 -29
- package/esm/core/ColorPicker/ColorBuilder.js +279 -170
- package/esm/core/ColorPicker/ColorInputPanel.d.ts +1 -1
- package/esm/core/ColorPicker/ColorInputPanel.js +380 -253
- package/esm/core/ColorPicker/ColorPalette.d.ts +1 -1
- package/esm/core/ColorPicker/ColorPalette.js +115 -82
- package/esm/core/ColorPicker/ColorPicker.d.ts +10 -6
- package/esm/core/ColorPicker/ColorPicker.js +80 -54
- package/esm/core/ColorPicker/ColorPickerContext.js +7 -5
- package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/esm/core/ColorPicker/ColorSwatch.js +19 -7
- package/esm/core/ComboBox/ComboBox.d.ts +14 -9
- package/esm/core/ComboBox/ComboBox.js +400 -267
- package/esm/core/ComboBox/ComboBoxEndIcon.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxEndIcon.js +20 -13
- package/esm/core/ComboBox/ComboBoxInput.d.ts +3 -3
- package/esm/core/ComboBox/ComboBoxInput.js +199 -124
- package/esm/core/ComboBox/ComboBoxInputContainer.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInputContainer.js +21 -6
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +3 -3
- package/esm/core/ComboBox/ComboBoxMenu.js +80 -47
- package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +2 -2
- package/esm/core/ComboBox/ComboBoxMenuItem.js +62 -14
- package/esm/core/ComboBox/ComboBoxMultipleContainer.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMultipleContainer.js +6 -2
- package/esm/core/ComboBox/helpers.d.ts +7 -5
- package/esm/core/ComboBox/helpers.js +38 -39
- package/esm/core/DatePicker/DatePicker.d.ts +41 -10
- package/esm/core/DatePicker/DatePicker.js +557 -327
- package/esm/core/Dialog/Dialog.d.ts +1 -1
- package/esm/core/Dialog/Dialog.js +54 -25
- package/esm/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/esm/core/Dialog/DialogBackdrop.js +40 -20
- package/esm/core/Dialog/DialogContent.d.ts +2 -1
- package/esm/core/Dialog/DialogContent.js +25 -2
- package/esm/core/Dialog/DialogContext.d.ts +11 -1
- package/esm/core/Dialog/DialogContext.js +1 -1
- package/esm/core/Dialog/DialogDragContext.d.ts +1 -1
- package/esm/core/Dialog/DialogDragContext.js +4 -4
- package/esm/core/Dialog/DialogMain.d.ts +1 -1
- package/esm/core/Dialog/DialogMain.js +177 -114
- package/esm/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/esm/core/Dialog/DialogTitleBar.js +46 -11
- package/{cjs/core/utils/components → esm/core/Divider}/Divider.d.ts +2 -2
- package/esm/core/{utils/components → Divider}/Divider.js +9 -3
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +8 -7
- package/esm/core/DropdownMenu/DropdownMenu.js +80 -31
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +83 -21
- package/esm/core/ExpandableBlock/ExpandableBlock.js +246 -46
- package/esm/core/Fieldset/Fieldset.d.ts +1 -1
- package/esm/core/Fieldset/Fieldset.js +19 -8
- package/esm/core/FileUpload/FileEmptyCard.js +19 -8
- package/esm/core/FileUpload/FileUpload.d.ts +8 -5
- package/esm/core/FileUpload/FileUpload.js +74 -41
- package/esm/core/FileUpload/FileUploadCard.d.ts +1 -1
- package/esm/core/FileUpload/FileUploadCard.js +155 -78
- package/esm/core/FileUpload/FileUploadTemplate.d.ts +2 -1
- package/esm/core/FileUpload/FileUploadTemplate.js +39 -10
- package/{cjs/core/utils/components → esm/core/Flex}/Flex.d.ts +6 -6
- package/esm/core/Flex/Flex.js +144 -0
- package/esm/core/Footer/Footer.d.ts +4 -4
- package/esm/core/Footer/Footer.js +86 -55
- package/esm/core/Footer/FooterSeparator.js +1 -1
- package/esm/core/Header/Header.d.ts +3 -22
- package/esm/core/Header/Header.js +57 -17
- package/esm/core/Header/HeaderBasicButton.d.ts +1 -1
- package/esm/core/Header/HeaderBasicButton.js +16 -8
- package/esm/core/Header/HeaderBreadcrumbs.d.ts +1 -1
- package/esm/core/Header/HeaderBreadcrumbs.js +32 -8
- package/esm/core/Header/HeaderButton.d.ts +7 -3
- package/esm/core/Header/HeaderButton.js +62 -13
- package/esm/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/esm/core/Header/HeaderDropdownButton.js +43 -14
- package/esm/core/Header/HeaderLogo.d.ts +1 -1
- package/esm/core/Header/HeaderLogo.js +36 -5
- package/esm/core/Header/HeaderSplitButton.d.ts +1 -1
- package/esm/core/Header/HeaderSplitButton.js +62 -15
- package/{cjs/core/utils/components → esm/core/Icon}/Icon.d.ts +8 -3
- package/esm/core/{utils/components → Icon}/Icon.js +27 -13
- package/esm/core/InformationPanel/InformationPanel.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanel.js +71 -39
- package/esm/core/InformationPanel/InformationPanelContent.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanelContent.js +17 -3
- package/esm/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanelHeader.js +33 -9
- package/esm/core/InformationPanel/InformationPanelWrapper.js +3 -1
- package/esm/core/Input/Input.d.ts +10 -7
- package/esm/core/Input/Input.js +12 -10
- package/esm/core/InputGrid/InputGrid.d.ts +25 -0
- package/esm/core/InputGrid/InputGrid.js +35 -0
- package/esm/core/InputGroup/InputGroup.d.ts +14 -1
- package/esm/core/InputGroup/InputGroup.js +62 -15
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +39 -0
- package/esm/core/InputWithDecorations/InputWithDecorations.js +80 -0
- package/esm/core/Label/Label.d.ts +6 -1
- package/esm/core/Label/Label.js +26 -5
- package/esm/core/LabeledInput/LabeledInput.d.ts +24 -18
- package/esm/core/LabeledInput/LabeledInput.js +70 -7
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +18 -8
- package/esm/core/LabeledSelect/LabeledSelect.js +72 -18
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +16 -7
- package/esm/core/LabeledTextarea/LabeledTextarea.js +15 -8
- package/{cjs/core/utils/components → esm/core/LinkAction}/LinkAction.d.ts +2 -2
- package/esm/core/{utils/components → LinkAction}/LinkAction.js +1 -1
- package/esm/core/List/ListItem.d.ts +4 -4
- package/esm/core/List/ListItem.js +46 -28
- package/esm/core/Menu/Menu.d.ts +2 -2
- package/esm/core/Menu/Menu.js +64 -49
- package/esm/core/Menu/MenuDivider.d.ts +2 -1
- package/esm/core/Menu/MenuDivider.js +2 -2
- package/esm/core/Menu/MenuExtraContent.js +1 -1
- package/esm/core/Menu/MenuItem.d.ts +2 -2
- package/esm/core/Menu/MenuItem.js +167 -63
- package/esm/core/Menu/MenuItemSkeleton.d.ts +2 -2
- package/esm/core/Menu/MenuItemSkeleton.js +45 -13
- package/esm/core/Modal/Modal.d.ts +9 -10
- package/esm/core/Modal/Modal.js +34 -14
- package/esm/core/NonIdealState/ErrorPage.d.ts +6 -7
- package/esm/core/NonIdealState/ErrorPage.js +178 -118
- package/esm/core/NonIdealState/NonIdealState.d.ts +17 -1
- package/esm/core/NonIdealState/NonIdealState.js +65 -6
- package/esm/core/NotificationMarker/NotificationMarker.d.ts +1 -1
- package/esm/core/NotificationMarker/NotificationMarker.js +20 -2
- package/esm/core/Overlay/Overlay.d.ts +57 -0
- package/esm/core/Overlay/Overlay.js +88 -0
- package/esm/core/Popover/Popover.d.ts +121 -0
- package/esm/core/Popover/Popover.js +189 -0
- package/esm/core/ProgressIndicators/{ProgressLinear/ProgressLinear.d.ts → ProgressLinear.d.ts} +10 -6
- package/esm/core/ProgressIndicators/ProgressLinear.js +65 -0
- package/esm/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts} +4 -4
- package/esm/core/ProgressIndicators/ProgressRadial.js +64 -0
- package/esm/core/Radio/Radio.d.ts +7 -4
- package/esm/core/Radio/Radio.js +45 -11
- package/esm/core/RadioTiles/RadioTile.d.ts +15 -4
- package/esm/core/RadioTiles/RadioTile.js +62 -14
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +2 -2
- package/esm/core/RadioTiles/RadioTileGroup.js +11 -4
- package/esm/core/SearchBox/SearchBox.d.ts +6 -5
- package/esm/core/SearchBox/SearchBox.js +216 -98
- package/esm/core/Select/Select.d.ts +12 -13
- package/esm/core/Select/Select.js +271 -155
- package/esm/core/Select/SelectTag.d.ts +1 -1
- package/esm/core/Select/SelectTag.js +15 -3
- package/esm/core/Select/SelectTagContainer.d.ts +1 -1
- package/esm/core/Select/SelectTagContainer.js +21 -8
- package/esm/core/SideNavigation/SideNavigation.d.ts +17 -1
- package/esm/core/SideNavigation/SideNavigation.js +120 -23
- package/esm/core/SideNavigation/SidenavButton.d.ts +2 -2
- package/esm/core/SideNavigation/SidenavButton.js +25 -3
- package/esm/core/SideNavigation/SidenavSubmenu.js +14 -3
- package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavSubmenuHeader.js +20 -4
- package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
- package/esm/core/SkipToContentLink/SkipToContentLink.js +11 -2
- package/esm/core/Slider/Slider.d.ts +29 -9
- package/esm/core/Slider/Slider.js +352 -197
- package/esm/core/Slider/Thumb.d.ts +4 -4
- package/esm/core/Slider/Thumb.js +102 -53
- package/esm/core/Slider/Track.d.ts +4 -4
- package/esm/core/Slider/Track.js +75 -49
- package/esm/core/StatusMessage/StatusMessage.d.ts +13 -3
- package/esm/core/StatusMessage/StatusMessage.js +28 -7
- package/esm/core/Stepper/Stepper.d.ts +29 -4
- package/esm/core/Stepper/Stepper.js +71 -8
- package/esm/core/Stepper/StepperStep.d.ts +18 -1
- package/esm/core/Stepper/StepperStep.js +93 -32
- package/esm/core/Stepper/WorkflowDiagram.d.ts +11 -1
- package/esm/core/Stepper/WorkflowDiagram.js +23 -6
- package/esm/core/Stepper/WorkflowDiagramStep.d.ts +8 -3
- package/esm/core/Stepper/WorkflowDiagramStep.js +23 -5
- package/esm/core/Surface/Surface.d.ts +2 -2
- package/esm/core/Surface/Surface.js +68 -39
- package/esm/core/Table/SubRowExpander.d.ts +3 -3
- package/esm/core/Table/SubRowExpander.js +32 -10
- package/esm/core/Table/Table.d.ts +19 -3
- package/esm/core/Table/Table.js +764 -417
- package/esm/core/Table/TableCell.d.ts +3 -3
- package/esm/core/Table/TableCell.js +87 -53
- package/esm/core/Table/TablePaginator.d.ts +3 -3
- package/esm/core/Table/TablePaginator.js +311 -129
- package/esm/core/Table/TableRowMemoized.d.ts +5 -5
- package/esm/core/Table/TableRowMemoized.js +148 -84
- package/esm/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/expandHandler.js +10 -10
- package/esm/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/filterHandler.js +23 -16
- package/esm/core/Table/actionHandlers/index.js +5 -1
- package/esm/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/esm/core/Table/actionHandlers/resizeHandler.js +11 -11
- package/esm/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/esm/core/Table/actionHandlers/selectHandler.js +117 -93
- package/esm/core/Table/cells/DefaultCell.d.ts +3 -3
- package/esm/core/Table/cells/DefaultCell.js +42 -7
- package/esm/core/Table/cells/EditableCell.d.ts +3 -3
- package/esm/core/Table/cells/EditableCell.js +70 -47
- package/esm/core/Table/columns/actionColumn.d.ts +5 -5
- package/esm/core/Table/columns/actionColumn.js +89 -66
- package/esm/core/Table/columns/expanderColumn.d.ts +3 -3
- package/esm/core/Table/columns/expanderColumn.js +39 -26
- package/esm/core/Table/columns/selectionColumn.d.ts +5 -5
- package/esm/core/Table/columns/selectionColumn.js +52 -24
- package/esm/core/Table/filters/BaseFilter.d.ts +2 -2
- package/esm/core/Table/filters/BaseFilter.js +15 -7
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +9 -3
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +115 -49
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +6 -4
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +110 -47
- package/esm/core/Table/filters/FilterButtonBar.d.ts +3 -3
- package/esm/core/Table/filters/FilterButtonBar.js +29 -10
- package/esm/core/Table/filters/FilterToggle.d.ts +4 -4
- package/esm/core/Table/filters/FilterToggle.js +54 -21
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +4 -4
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +51 -24
- package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +3 -3
- package/esm/core/Table/filters/TextFilter/TextFilter.js +33 -16
- package/esm/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/customFilterFunctions.js +14 -12
- package/esm/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/defaultFilterFunctions.js +84 -79
- package/esm/core/Table/filters/tableFilters.d.ts +5 -5
- package/esm/core/Table/filters/tableFilters.js +34 -25
- package/esm/core/Table/filters/types.d.ts +2 -19
- package/esm/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/esm/core/Table/hooks/useColumnDragAndDrop.js +88 -81
- package/esm/core/Table/hooks/useExpanderCell.d.ts +2 -2
- package/esm/core/Table/hooks/useExpanderCell.js +26 -20
- package/esm/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useResizeColumns.js +353 -293
- package/esm/core/Table/hooks/useScrollToRow.d.ts +3 -3
- package/esm/core/Table/hooks/useScrollToRow.js +42 -35
- package/esm/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/esm/core/Table/hooks/useSelectionCell.js +10 -6
- package/esm/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useStickyColumns.js +61 -61
- package/esm/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowFiltering.js +90 -85
- package/esm/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowSelection.js +28 -27
- package/esm/core/Table/index.d.ts +1 -1
- package/esm/core/Table/index.js +5 -1
- package/esm/core/Table/utils.d.ts +1 -1
- package/esm/core/Table/utils.js +40 -38
- package/esm/core/Tabs/Tab.d.ts +2 -2
- package/esm/core/Tabs/Tab.js +41 -8
- package/esm/core/Tabs/Tabs.d.ts +6 -42
- package/esm/core/Tabs/Tabs.js +392 -333
- package/esm/core/Tag/Tag.d.ts +1 -1
- package/esm/core/Tag/Tag.js +36 -9
- package/esm/core/Tag/TagContainer.d.ts +1 -1
- package/esm/core/Tag/TagContainer.js +17 -5
- package/esm/core/Textarea/Textarea.d.ts +4 -5
- package/esm/core/Textarea/Textarea.js +9 -13
- package/esm/core/ThemeProvider/ThemeContext.d.ts +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +29 -10
- package/esm/core/ThemeProvider/ThemeProvider.js +112 -26
- package/esm/core/Tile/Tile.d.ts +200 -17
- package/esm/core/Tile/Tile.js +478 -101
- package/esm/core/TimePicker/TimePicker.d.ts +3 -3
- package/esm/core/TimePicker/TimePicker.js +448 -228
- package/esm/core/Toast/Toast.d.ts +20 -17
- package/esm/core/Toast/Toast.js +197 -102
- package/esm/core/Toast/Toaster.d.ts +26 -28
- package/esm/core/Toast/Toaster.js +106 -126
- package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +1 -6
- package/esm/core/ToggleSwitch/ToggleSwitch.js +60 -22
- package/esm/core/Tooltip/Tooltip.d.ts +81 -14
- package/esm/core/Tooltip/Tooltip.js +167 -10
- package/esm/core/TransferList/TransferList.d.ts +7 -7
- package/esm/core/TransferList/TransferList.js +160 -95
- package/esm/core/Tree/Tree.d.ts +5 -5
- package/esm/core/Tree/Tree.js +197 -129
- package/esm/core/Tree/TreeContext.d.ts +1 -1
- package/esm/core/Tree/TreeContext.js +5 -5
- package/esm/core/Tree/TreeNode.d.ts +2 -2
- package/esm/core/Tree/TreeNode.js +195 -97
- package/esm/core/Tree/TreeNodeExpander.d.ts +2 -2
- package/esm/core/Tree/TreeNodeExpander.js +17 -6
- package/{cjs/core/Typography/Anchor → esm/core/Typography}/Anchor.d.ts +1 -1
- package/esm/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
- package/esm/core/Typography/{Blockquote/Blockquote.d.ts → Blockquote.d.ts} +2 -2
- package/esm/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +13 -5
- package/esm/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/esm/core/Typography/{Code/Code.js → Code.js} +1 -1
- package/esm/core/Typography/{Kbd/Kbd.d.ts → Kbd.d.ts} +2 -2
- package/esm/core/Typography/{Kbd/Kbd.js → Kbd.js} +25 -16
- package/esm/core/Typography/{Text/Text.d.ts → Text.d.ts} +2 -2
- package/esm/core/Typography/{Text/Text.js → Text.js} +21 -8
- package/esm/core/{utils/components → VisuallyHidden}/VisuallyHidden.d.ts +2 -2
- package/esm/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +9 -3
- package/esm/core/utils/color/ColorValue.d.ts +4 -4
- package/esm/core/utils/color/ColorValue.js +524 -455
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.d.ts +2 -2
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +12 -9
- package/esm/core/utils/components/ButtonBase.d.ts +14 -0
- package/esm/core/utils/components/ButtonBase.js +42 -0
- package/esm/core/utils/components/FocusTrap.d.ts +3 -3
- package/esm/core/utils/components/FocusTrap.js +41 -32
- package/esm/core/utils/components/InputContainer.d.ts +4 -5
- package/esm/core/utils/components/InputContainer.js +56 -17
- package/esm/core/utils/components/InputFlexContainer.d.ts +2 -1
- package/esm/core/utils/components/InputFlexContainer.js +15 -2
- package/esm/core/utils/components/MiddleTextTruncation.d.ts +2 -2
- package/esm/core/utils/components/MiddleTextTruncation.js +27 -18
- package/esm/core/utils/components/Portal.d.ts +27 -0
- package/esm/core/utils/components/Portal.js +36 -0
- package/esm/core/utils/components/Resizer.d.ts +2 -2
- package/esm/core/utils/components/Resizer.js +250 -183
- package/esm/core/utils/components/VirtualScroll.d.ts +2 -2
- package/esm/core/utils/components/VirtualScroll.js +296 -224
- package/esm/core/utils/components/WithCSSTransition.d.ts +2 -2
- package/esm/core/utils/components/WithCSSTransition.js +38 -21
- package/esm/core/utils/components/index.d.ts +2 -6
- package/esm/core/utils/components/index.js +2 -6
- package/esm/core/utils/functions/colors.d.ts +1 -1
- package/esm/core/utils/functions/colors.js +20 -32
- package/esm/core/utils/functions/date.js +8 -8
- package/esm/core/utils/functions/dev.d.ts +11 -0
- package/esm/core/utils/functions/dev.js +29 -0
- package/esm/core/utils/functions/dom.d.ts +0 -8
- package/esm/core/utils/functions/dom.js +17 -33
- package/esm/core/utils/functions/focusable.js +24 -15
- package/esm/core/utils/functions/import.d.ts +6 -0
- package/esm/core/utils/functions/import.js +14 -0
- package/esm/core/utils/functions/index.d.ts +3 -0
- package/esm/core/utils/functions/index.js +3 -0
- package/esm/core/utils/functions/numbers.js +7 -7
- package/esm/core/utils/functions/polymorphic.d.ts +5 -3
- package/esm/core/utils/functions/polymorphic.js +32 -23
- package/esm/core/utils/functions/react.d.ts +8 -0
- package/esm/core/utils/functions/react.js +35 -0
- package/esm/core/utils/functions/supports.js +2 -1
- package/esm/core/utils/hooks/index.d.ts +1 -1
- package/esm/core/utils/hooks/index.js +1 -1
- package/esm/core/utils/hooks/useContainerWidth.js +16 -13
- package/esm/core/utils/hooks/useControlledState.d.ts +13 -0
- package/esm/core/utils/hooks/useControlledState.js +34 -0
- package/esm/core/utils/hooks/useDragAndDrop.js +99 -82
- package/esm/core/utils/hooks/useEventListener.js +18 -18
- package/esm/core/utils/hooks/useGlobals.d.ts +9 -2
- package/esm/core/utils/hooks/useGlobals.js +30 -27
- package/esm/core/utils/hooks/useId.js +3 -4
- package/esm/core/utils/hooks/useIntersection.js +25 -20
- package/esm/core/utils/hooks/useIsClient.js +5 -5
- package/esm/core/utils/hooks/useIsomorphicLayoutEffect.js +2 -1
- package/esm/core/utils/hooks/useLatestRef.js +5 -5
- package/esm/core/utils/hooks/useMediaQuery.js +23 -27
- package/esm/core/utils/hooks/useMergedRefs.js +11 -12
- package/esm/core/utils/hooks/useOverflow.js +62 -51
- package/esm/core/utils/hooks/useResizeObserver.js +17 -13
- package/esm/core/utils/hooks/useSafeContext.js +5 -5
- package/esm/core/utils/icons/StatusIconMap.d.ts +5 -5
- package/esm/core/utils/icons/StatusIconMap.js +8 -4
- package/esm/core/utils/icons/SvgCalendar.d.ts +1 -1
- package/esm/core/utils/icons/SvgCalendar.js +7 -2
- package/esm/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCaretDownSmall.js +7 -2
- package/esm/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCaretRightSmall.js +7 -2
- package/esm/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCaretUpSmall.js +7 -2
- package/esm/core/utils/icons/SvgCheckmark.d.ts +1 -1
- package/esm/core/utils/icons/SvgCheckmark.js +5 -2
- package/esm/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCheckmarkSmall.js +7 -2
- package/esm/core/utils/icons/SvgChevronLeft.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronLeft.js +7 -2
- package/esm/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronLeftDouble.js +7 -2
- package/esm/core/utils/icons/SvgChevronRight.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronRight.js +7 -2
- package/esm/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronRightDouble.js +7 -2
- package/esm/core/utils/icons/SvgClose.d.ts +1 -1
- package/esm/core/utils/icons/SvgClose.js +7 -2
- package/esm/core/utils/icons/SvgCloseSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCloseSmall.js +7 -2
- package/esm/core/utils/icons/SvgColumnManager.d.ts +1 -1
- package/esm/core/utils/icons/SvgColumnManager.js +7 -2
- package/esm/core/utils/icons/SvgDocument.d.ts +1 -1
- package/esm/core/utils/icons/SvgDocument.js +5 -2
- package/esm/core/utils/icons/SvgFilter.d.ts +1 -1
- package/esm/core/utils/icons/SvgFilter.js +5 -2
- package/esm/core/utils/icons/SvgFilterHollow.d.ts +1 -1
- package/esm/core/utils/icons/SvgFilterHollow.js +7 -2
- package/esm/core/utils/icons/SvgImportantSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgImportantSmall.js +7 -2
- package/esm/core/utils/icons/SvgInfoCircular.d.ts +1 -1
- package/esm/core/utils/icons/SvgInfoCircular.js +7 -2
- package/esm/core/utils/icons/SvgMore.d.ts +1 -1
- package/esm/core/utils/icons/SvgMore.js +7 -2
- package/esm/core/utils/icons/SvgMoreVertical.d.ts +1 -1
- package/esm/core/utils/icons/SvgMoreVertical.js +7 -2
- package/esm/core/utils/icons/SvgNew.d.ts +1 -1
- package/esm/core/utils/icons/SvgNew.js +7 -2
- package/esm/core/utils/icons/SvgSearch.d.ts +1 -1
- package/esm/core/utils/icons/SvgSearch.js +7 -2
- package/esm/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
- package/esm/core/utils/icons/SvgSmileyHappy.js +7 -2
- package/esm/core/utils/icons/SvgSortDown.d.ts +1 -1
- package/esm/core/utils/icons/SvgSortDown.js +7 -2
- package/esm/core/utils/icons/SvgSortUp.d.ts +1 -1
- package/esm/core/utils/icons/SvgSortUp.js +7 -2
- package/esm/core/utils/icons/SvgStatusError.d.ts +1 -1
- package/esm/core/utils/icons/SvgStatusError.js +7 -2
- package/esm/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
- package/esm/core/utils/icons/SvgStatusSuccess.js +7 -2
- package/esm/core/utils/icons/SvgStatusWarning.d.ts +1 -1
- package/esm/core/utils/icons/SvgStatusWarning.js +7 -2
- package/esm/core/utils/icons/SvgSwap.d.ts +1 -1
- package/esm/core/utils/icons/SvgSwap.js +7 -2
- package/esm/core/utils/icons/SvgUpload.d.ts +1 -1
- package/esm/core/utils/icons/SvgUpload.js +7 -2
- package/esm/core/utils/props.d.ts +2 -2
- package/esm/core/utils/types.d.ts +1 -1
- package/esm/index.d.ts +113 -2
- package/esm/index.js +124 -2
- package/esm/react-table/react-table.d.ts +745 -0
- package/esm/{core/Alert/index.js → react-table/react-table.js} +5 -2
- package/esm/styles.js +425 -450
- package/package.json +50 -47
- package/react-table.d.ts +745 -0
- package/styles.css +751 -1610
- package/cjs/core/Alert/index.d.ts +0 -3
- package/cjs/core/Alert/index.js +0 -10
- package/cjs/core/Avatar/index.d.ts +0 -3
- package/cjs/core/Avatar/index.js +0 -11
- package/cjs/core/AvatarGroup/index.d.ts +0 -3
- package/cjs/core/AvatarGroup/index.js +0 -11
- package/cjs/core/Backdrop/index.d.ts +0 -1
- package/cjs/core/Backdrop/index.js +0 -9
- package/cjs/core/Badge/index.d.ts +0 -3
- package/cjs/core/Breadcrumbs/index.d.ts +0 -3
- package/cjs/core/Breadcrumbs/index.js +0 -10
- package/cjs/core/ButtonGroup/index.d.ts +0 -3
- package/cjs/core/ButtonGroup/index.js +0 -10
- package/cjs/core/Buttons/Button/Button.js +0 -53
- package/cjs/core/Buttons/Button/index.d.ts +0 -3
- package/cjs/core/Buttons/Button/index.js +0 -10
- package/cjs/core/Buttons/DropdownButton/DropdownButton.js +0 -70
- package/cjs/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/cjs/core/Buttons/DropdownButton/index.js +0 -10
- package/cjs/core/Buttons/IconButton/IconButton.js +0 -55
- package/cjs/core/Buttons/IconButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IconButton/index.js +0 -10
- package/cjs/core/Buttons/IdeasButton/IdeasButton.js +0 -43
- package/cjs/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IdeasButton/index.js +0 -10
- package/cjs/core/Buttons/SplitButton/SplitButton.js +0 -71
- package/cjs/core/Buttons/SplitButton/index.d.ts +0 -3
- package/cjs/core/Buttons/SplitButton/index.js +0 -10
- package/cjs/core/Buttons/index.d.ts +0 -5
- package/cjs/core/Buttons/index.js +0 -17
- package/cjs/core/Carousel/index.d.ts +0 -3
- package/cjs/core/Carousel/index.js +0 -10
- package/cjs/core/Checkbox/index.d.ts +0 -3
- package/cjs/core/Checkbox/index.js +0 -10
- package/cjs/core/ColorPicker/index.d.ts +0 -7
- package/cjs/core/ColorPicker/index.js +0 -18
- package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
- package/cjs/core/ComboBox/ComboBoxDropdown.js +0 -52
- package/cjs/core/ComboBox/index.d.ts +0 -3
- package/cjs/core/ComboBox/index.js +0 -10
- package/cjs/core/DatePicker/index.d.ts +0 -3
- package/cjs/core/DatePicker/index.js +0 -11
- package/cjs/core/Dialog/index.d.ts +0 -3
- package/cjs/core/Dialog/index.js +0 -10
- package/cjs/core/DropdownMenu/index.d.ts +0 -4
- package/cjs/core/DropdownMenu/index.js +0 -10
- package/cjs/core/ExpandableBlock/index.d.ts +0 -3
- package/cjs/core/ExpandableBlock/index.js +0 -10
- package/cjs/core/Fieldset/index.d.ts +0 -3
- package/cjs/core/Fieldset/index.js +0 -10
- package/cjs/core/FileUpload/index.d.ts +0 -6
- package/cjs/core/FileUpload/index.js +0 -16
- package/cjs/core/Footer/index.d.ts +0 -4
- package/cjs/core/Footer/index.js +0 -11
- package/cjs/core/Header/index.d.ts +0 -6
- package/cjs/core/Header/index.js +0 -16
- package/cjs/core/InformationPanel/index.d.ts +0 -7
- package/cjs/core/InformationPanel/index.js +0 -18
- package/cjs/core/Input/index.d.ts +0 -3
- package/cjs/core/Input/index.js +0 -10
- package/cjs/core/InputGroup/index.d.ts +0 -3
- package/cjs/core/InputGroup/index.js +0 -10
- package/cjs/core/Label/index.d.ts +0 -3
- package/cjs/core/Label/index.js +0 -10
- package/cjs/core/LabeledInput/index.d.ts +0 -3
- package/cjs/core/LabeledInput/index.js +0 -10
- package/cjs/core/LabeledSelect/index.d.ts +0 -3
- package/cjs/core/LabeledSelect/index.js +0 -10
- package/cjs/core/LabeledTextarea/index.d.ts +0 -3
- package/cjs/core/LabeledTextarea/index.js +0 -10
- package/cjs/core/List/index.d.ts +0 -2
- package/cjs/core/List/index.js +0 -11
- package/cjs/core/Menu/index.d.ts +0 -5
- package/cjs/core/Menu/index.js +0 -17
- package/cjs/core/Modal/index.d.ts +0 -5
- package/cjs/core/Modal/index.js +0 -14
- package/cjs/core/NonIdealState/index.d.ts +0 -5
- package/cjs/core/NonIdealState/index.js +0 -12
- package/cjs/core/NotificationMarker/index.d.ts +0 -3
- package/cjs/core/NotificationMarker/index.js +0 -10
- package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -65
- package/cjs/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
- package/cjs/core/ProgressIndicators/ProgressLinear/index.js +0 -10
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -77
- package/cjs/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
- package/cjs/core/ProgressIndicators/ProgressRadial/index.js +0 -10
- package/cjs/core/ProgressIndicators/index.d.ts +0 -2
- package/cjs/core/ProgressIndicators/index.js +0 -11
- package/cjs/core/Radio/index.d.ts +0 -3
- package/cjs/core/Radio/index.js +0 -10
- package/cjs/core/RadioTiles/index.d.ts +0 -4
- package/cjs/core/RadioTiles/index.js +0 -12
- package/cjs/core/SearchBox/index.d.ts +0 -3
- package/cjs/core/SearchBox/index.js +0 -10
- package/cjs/core/Select/index.d.ts +0 -4
- package/cjs/core/Select/index.js +0 -10
- package/cjs/core/SideNavigation/index.d.ts +0 -6
- package/cjs/core/SideNavigation/index.js +0 -16
- package/cjs/core/SkipToContentLink/index.d.ts +0 -3
- package/cjs/core/SkipToContentLink/index.js +0 -10
- package/cjs/core/Slider/index.d.ts +0 -3
- package/cjs/core/Slider/index.js +0 -10
- package/cjs/core/StatusMessage/index.d.ts +0 -3
- package/cjs/core/StatusMessage/index.js +0 -10
- package/cjs/core/Stepper/Wizard.d.ts +0 -46
- package/cjs/core/Stepper/Wizard.js +0 -55
- package/cjs/core/Stepper/index.d.ts +0 -7
- package/cjs/core/Stepper/index.js +0 -14
- package/cjs/core/Surface/index.d.ts +0 -3
- package/cjs/core/Surface/index.js +0 -10
- package/cjs/core/Tabs/index.d.ts +0 -2
- package/cjs/core/Tabs/index.js +0 -13
- package/cjs/core/Tag/index.d.ts +0 -4
- package/cjs/core/Tag/index.js +0 -12
- package/cjs/core/Textarea/index.d.ts +0 -3
- package/cjs/core/Textarea/index.js +0 -10
- package/cjs/core/ThemeProvider/index.d.ts +0 -4
- package/cjs/core/ThemeProvider/index.js +0 -10
- package/cjs/core/Tile/index.d.ts +0 -3
- package/cjs/core/Tile/index.js +0 -10
- package/cjs/core/TimePicker/index.d.ts +0 -4
- package/cjs/core/TimePicker/index.js +0 -10
- package/cjs/core/Toast/ToastWrapper.d.ts +0 -10
- package/cjs/core/Toast/ToastWrapper.js +0 -49
- package/cjs/core/Toast/index.d.ts +0 -4
- package/cjs/core/Toast/index.js +0 -12
- package/cjs/core/ToggleSwitch/index.d.ts +0 -3
- package/cjs/core/ToggleSwitch/index.js +0 -10
- package/cjs/core/Tooltip/index.d.ts +0 -3
- package/cjs/core/Tooltip/index.js +0 -10
- package/cjs/core/TransferList/index.d.ts +0 -3
- package/cjs/core/TransferList/index.js +0 -10
- package/cjs/core/Tree/index.d.ts +0 -4
- package/cjs/core/Tree/index.js +0 -13
- package/cjs/core/Typography/Anchor/index.d.ts +0 -3
- package/cjs/core/Typography/Anchor/index.js +0 -10
- package/cjs/core/Typography/Blockquote/Blockquote.js +0 -51
- package/cjs/core/Typography/Blockquote/index.d.ts +0 -3
- package/cjs/core/Typography/Blockquote/index.js +0 -10
- package/cjs/core/Typography/Code/index.d.ts +0 -3
- package/cjs/core/Typography/Code/index.js +0 -10
- package/cjs/core/Typography/Kbd/Kbd.js +0 -65
- package/cjs/core/Typography/Kbd/index.d.ts +0 -3
- package/cjs/core/Typography/Kbd/index.js +0 -11
- package/cjs/core/Typography/Text/Text.js +0 -58
- package/cjs/core/Typography/Text/index.d.ts +0 -3
- package/cjs/core/Typography/Text/index.js +0 -10
- package/cjs/core/Typography/index.d.ts +0 -5
- package/cjs/core/Typography/index.js +0 -18
- package/cjs/core/index.d.ts +0 -66
- package/cjs/core/index.js +0 -191
- package/cjs/core/utils/components/Divider.js +0 -44
- package/cjs/core/utils/components/Flex.js +0 -157
- package/cjs/core/utils/components/Icon.js +0 -67
- package/cjs/core/utils/components/Popover.d.ts +0 -39
- package/cjs/core/utils/components/Popover.js +0 -157
- package/cjs/core/utils/components/VisuallyHidden.js +0 -51
- package/cjs/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
- package/cjs/core/utils/hooks/useIsThemeAlreadySet.js +0 -54
- package/cjs/types/react-table-config.d.ts +0 -135
- package/cjs/types/react-table-config.js +0 -2
- package/esm/core/Alert/index.d.ts +0 -3
- package/esm/core/Avatar/index.d.ts +0 -3
- package/esm/core/Avatar/index.js +0 -6
- package/esm/core/AvatarGroup/index.d.ts +0 -3
- package/esm/core/AvatarGroup/index.js +0 -6
- package/esm/core/Backdrop/index.d.ts +0 -1
- package/esm/core/Backdrop/index.js +0 -5
- package/esm/core/Badge/index.d.ts +0 -3
- package/esm/core/Badge/index.js +0 -6
- package/esm/core/Breadcrumbs/index.d.ts +0 -3
- package/esm/core/Breadcrumbs/index.js +0 -6
- package/esm/core/ButtonGroup/index.d.ts +0 -3
- package/esm/core/ButtonGroup/index.js +0 -6
- package/esm/core/Buttons/Button/Button.js +0 -24
- package/esm/core/Buttons/Button/index.d.ts +0 -3
- package/esm/core/Buttons/Button/index.js +0 -6
- package/esm/core/Buttons/DropdownButton/DropdownButton.js +0 -41
- package/esm/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/esm/core/Buttons/DropdownButton/index.js +0 -6
- package/esm/core/Buttons/IconButton/IconButton.js +0 -26
- package/esm/core/Buttons/IconButton/index.d.ts +0 -3
- package/esm/core/Buttons/IconButton/index.js +0 -6
- package/esm/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/esm/core/Buttons/IdeasButton/index.js +0 -6
- package/esm/core/Buttons/SplitButton/SplitButton.js +0 -42
- package/esm/core/Buttons/SplitButton/index.d.ts +0 -3
- package/esm/core/Buttons/SplitButton/index.js +0 -6
- package/esm/core/Buttons/index.d.ts +0 -5
- package/esm/core/Buttons/index.js +0 -9
- package/esm/core/Carousel/index.d.ts +0 -3
- package/esm/core/Carousel/index.js +0 -6
- package/esm/core/Checkbox/index.d.ts +0 -3
- package/esm/core/Checkbox/index.js +0 -6
- package/esm/core/ColorPicker/index.d.ts +0 -7
- package/esm/core/ColorPicker/index.js +0 -10
- package/esm/core/ComboBox/ComboBoxDropdown.d.ts +0 -7
- package/esm/core/ComboBox/ComboBoxDropdown.js +0 -26
- package/esm/core/ComboBox/index.d.ts +0 -3
- package/esm/core/ComboBox/index.js +0 -6
- package/esm/core/DatePicker/index.d.ts +0 -3
- package/esm/core/DatePicker/index.js +0 -6
- package/esm/core/Dialog/index.d.ts +0 -3
- package/esm/core/Dialog/index.js +0 -6
- package/esm/core/DropdownMenu/index.d.ts +0 -4
- package/esm/core/DropdownMenu/index.js +0 -6
- package/esm/core/ExpandableBlock/index.d.ts +0 -3
- package/esm/core/ExpandableBlock/index.js +0 -6
- package/esm/core/Fieldset/index.d.ts +0 -3
- package/esm/core/Fieldset/index.js +0 -6
- package/esm/core/FileUpload/index.d.ts +0 -6
- package/esm/core/FileUpload/index.js +0 -9
- package/esm/core/Footer/index.d.ts +0 -4
- package/esm/core/Footer/index.js +0 -6
- package/esm/core/Header/index.d.ts +0 -6
- package/esm/core/Header/index.js +0 -9
- package/esm/core/InformationPanel/index.d.ts +0 -7
- package/esm/core/InformationPanel/index.js +0 -10
- package/esm/core/Input/index.d.ts +0 -3
- package/esm/core/Input/index.js +0 -6
- package/esm/core/InputGroup/index.d.ts +0 -3
- package/esm/core/InputGroup/index.js +0 -6
- package/esm/core/Label/index.d.ts +0 -3
- package/esm/core/Label/index.js +0 -6
- package/esm/core/LabeledInput/index.d.ts +0 -3
- package/esm/core/LabeledInput/index.js +0 -6
- package/esm/core/LabeledSelect/index.d.ts +0 -3
- package/esm/core/LabeledSelect/index.js +0 -6
- package/esm/core/LabeledTextarea/index.d.ts +0 -3
- package/esm/core/LabeledTextarea/index.js +0 -6
- package/esm/core/List/index.d.ts +0 -2
- package/esm/core/List/index.js +0 -6
- package/esm/core/Menu/index.d.ts +0 -5
- package/esm/core/Menu/index.js +0 -9
- package/esm/core/Modal/index.d.ts +0 -5
- package/esm/core/Modal/index.js +0 -8
- package/esm/core/NonIdealState/index.d.ts +0 -5
- package/esm/core/NonIdealState/index.js +0 -7
- package/esm/core/NotificationMarker/index.d.ts +0 -3
- package/esm/core/NotificationMarker/index.js +0 -6
- package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -36
- package/esm/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -3
- package/esm/core/ProgressIndicators/ProgressLinear/index.js +0 -6
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -48
- package/esm/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -3
- package/esm/core/ProgressIndicators/ProgressRadial/index.js +0 -6
- package/esm/core/ProgressIndicators/index.d.ts +0 -2
- package/esm/core/ProgressIndicators/index.js +0 -6
- package/esm/core/Radio/index.d.ts +0 -3
- package/esm/core/Radio/index.js +0 -6
- package/esm/core/RadioTiles/index.d.ts +0 -4
- package/esm/core/RadioTiles/index.js +0 -7
- package/esm/core/SearchBox/index.d.ts +0 -3
- package/esm/core/SearchBox/index.js +0 -6
- package/esm/core/Select/index.d.ts +0 -4
- package/esm/core/Select/index.js +0 -6
- package/esm/core/SideNavigation/index.d.ts +0 -6
- package/esm/core/SideNavigation/index.js +0 -9
- package/esm/core/SkipToContentLink/index.d.ts +0 -3
- package/esm/core/SkipToContentLink/index.js +0 -6
- package/esm/core/Slider/index.d.ts +0 -3
- package/esm/core/Slider/index.js +0 -6
- package/esm/core/StatusMessage/index.d.ts +0 -3
- package/esm/core/StatusMessage/index.js +0 -6
- package/esm/core/Stepper/Wizard.d.ts +0 -46
- package/esm/core/Stepper/Wizard.js +0 -29
- package/esm/core/Stepper/index.d.ts +0 -7
- package/esm/core/Stepper/index.js +0 -8
- package/esm/core/Surface/index.d.ts +0 -3
- package/esm/core/Surface/index.js +0 -6
- package/esm/core/Tabs/index.d.ts +0 -2
- package/esm/core/Tabs/index.js +0 -6
- package/esm/core/Tag/index.d.ts +0 -4
- package/esm/core/Tag/index.js +0 -7
- package/esm/core/Textarea/index.d.ts +0 -3
- package/esm/core/Textarea/index.js +0 -6
- package/esm/core/ThemeProvider/index.d.ts +0 -4
- package/esm/core/ThemeProvider/index.js +0 -6
- package/esm/core/Tile/index.d.ts +0 -3
- package/esm/core/Tile/index.js +0 -6
- package/esm/core/TimePicker/index.d.ts +0 -4
- package/esm/core/TimePicker/index.js +0 -6
- package/esm/core/Toast/ToastWrapper.d.ts +0 -10
- package/esm/core/Toast/ToastWrapper.js +0 -20
- package/esm/core/Toast/index.d.ts +0 -4
- package/esm/core/Toast/index.js +0 -7
- package/esm/core/ToggleSwitch/index.d.ts +0 -3
- package/esm/core/ToggleSwitch/index.js +0 -6
- package/esm/core/Tooltip/index.d.ts +0 -3
- package/esm/core/Tooltip/index.js +0 -6
- package/esm/core/TransferList/index.d.ts +0 -3
- package/esm/core/TransferList/index.js +0 -6
- package/esm/core/Tree/index.d.ts +0 -4
- package/esm/core/Tree/index.js +0 -7
- package/esm/core/Typography/Anchor/index.d.ts +0 -3
- package/esm/core/Typography/Anchor/index.js +0 -6
- package/esm/core/Typography/Blockquote/index.d.ts +0 -3
- package/esm/core/Typography/Blockquote/index.js +0 -6
- package/esm/core/Typography/Code/index.d.ts +0 -3
- package/esm/core/Typography/Code/index.js +0 -6
- package/esm/core/Typography/Kbd/index.d.ts +0 -3
- package/esm/core/Typography/Kbd/index.js +0 -6
- package/esm/core/Typography/Text/index.d.ts +0 -3
- package/esm/core/Typography/Text/index.js +0 -6
- package/esm/core/Typography/index.d.ts +0 -5
- package/esm/core/Typography/index.js +0 -9
- package/esm/core/index.d.ts +0 -66
- package/esm/core/index.js +0 -61
- package/esm/core/utils/components/Flex.js +0 -128
- package/esm/core/utils/components/Popover.d.ts +0 -39
- package/esm/core/utils/components/Popover.js +0 -128
- package/esm/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
- package/esm/core/utils/hooks/useIsThemeAlreadySet.js +0 -27
- package/esm/types/react-table-config.d.ts +0 -135
- package/esm/types/react-table-config.js +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
+
type OverlayComponentProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The sub-component elements of Overlay.
|
|
6
|
+
*/
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Placeholder for Progress Indicator in Overlay
|
|
10
|
+
*/
|
|
11
|
+
content?: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* This is an Overlay Component.
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <Overlay content="loading">
|
|
20
|
+
* content beneath the overlay... (text, img, etc.)
|
|
21
|
+
* </Overlay>
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* This is an Overlay Component using subcomponents.
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <Overlay.Wrapper>
|
|
29
|
+
* <Overlay.Overlay>
|
|
30
|
+
* loading...
|
|
31
|
+
* <Overlay.Overlay>
|
|
32
|
+
* <Overlay.HiddenContent>
|
|
33
|
+
* content beneath the overlay... (text, img, etc.)
|
|
34
|
+
* <Overlay.HiddenContent />
|
|
35
|
+
* </Overlay.Wrapper>
|
|
36
|
+
*
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare const Overlay: PolymorphicForwardRefComponent<"div", OverlayComponentProps> & {
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* The main component is a wrapper to hold the
|
|
43
|
+
* Overlay HiddenContent and Overlay Message.
|
|
44
|
+
*/
|
|
45
|
+
Wrapper: PolymorphicForwardRefComponent<NonNullable<keyof JSX.IntrinsicElements>, {}>;
|
|
46
|
+
/**
|
|
47
|
+
* HiddenContent houses page elements that are blurred by the
|
|
48
|
+
* Overlay.
|
|
49
|
+
*/
|
|
50
|
+
HiddenContent: PolymorphicForwardRefComponent<"div", {}>;
|
|
51
|
+
/**
|
|
52
|
+
* Message contains the progress indicator and loading message
|
|
53
|
+
* for the Overlay. It sits on top of the HiddenContent.
|
|
54
|
+
*/
|
|
55
|
+
Overlay: PolymorphicForwardRefComponent<NonNullable<keyof JSX.IntrinsicElements>, {}>;
|
|
56
|
+
};
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
exports.Overlay = void 0;
|
|
4
|
+
const tslib_1 = require('tslib');
|
|
5
|
+
/*---------------------------------------------------------------------------------------------
|
|
6
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
7
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
|
+
*--------------------------------------------------------------------------------------------*/
|
|
9
|
+
const react_1 = tslib_1.__importDefault(require('react'));
|
|
10
|
+
const index_js_1 = require('../utils/index.js');
|
|
11
|
+
// --------------------------------------------------------------------------------
|
|
12
|
+
const OverlayComponent = react_1.default.forwardRef((props, forwardedRef) => {
|
|
13
|
+
const { content, children, ...rest } = props;
|
|
14
|
+
return react_1.default.createElement(
|
|
15
|
+
OverlayWrapper,
|
|
16
|
+
{ ref: forwardedRef, ...rest },
|
|
17
|
+
react_1.default.createElement(OverlayMessage, null, content),
|
|
18
|
+
react_1.default.createElement(OverlayHiddenContent, null, children),
|
|
19
|
+
);
|
|
20
|
+
});
|
|
21
|
+
OverlayComponent.displayName = 'Overlay';
|
|
22
|
+
// --------------------------------------------------------------------------------
|
|
23
|
+
const OverlayHiddenContent = react_1.default.forwardRef((props, ref) => {
|
|
24
|
+
const { children, ...rest } = props;
|
|
25
|
+
useInertPolyfill();
|
|
26
|
+
return react_1.default.createElement(
|
|
27
|
+
index_js_1.Box,
|
|
28
|
+
{ inert: '', ref: ref, ...rest },
|
|
29
|
+
children,
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
OverlayHiddenContent.displayName = 'Overlay.HiddenContent';
|
|
33
|
+
// --------------------------------------------------------------------------------
|
|
34
|
+
const OverlayMessage = (0, index_js_1.polymorphic)('iui-overlay');
|
|
35
|
+
OverlayMessage.displayName = 'Overlay.Overlay';
|
|
36
|
+
// --------------------------------------------------------------------------------
|
|
37
|
+
const OverlayWrapper = (0, index_js_1.polymorphic)('iui-overlay-wrapper');
|
|
38
|
+
OverlayWrapper.displayName = 'Overlay.Wrapper';
|
|
39
|
+
// --------------------------------------------------------------------------------
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* This is an Overlay Component.
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* <Overlay content="loading">
|
|
47
|
+
* content beneath the overlay... (text, img, etc.)
|
|
48
|
+
* </Overlay>
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
* This is an Overlay Component using subcomponents.
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* <Overlay.Wrapper>
|
|
56
|
+
* <Overlay.Overlay>
|
|
57
|
+
* loading...
|
|
58
|
+
* <Overlay.Overlay>
|
|
59
|
+
* <Overlay.HiddenContent>
|
|
60
|
+
* content beneath the overlay... (text, img, etc.)
|
|
61
|
+
* <Overlay.HiddenContent />
|
|
62
|
+
* </Overlay.Wrapper>
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
exports.Overlay = Object.assign(OverlayComponent, {
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* The main component is a wrapper to hold the
|
|
70
|
+
* Overlay HiddenContent and Overlay Message.
|
|
71
|
+
*/
|
|
72
|
+
Wrapper: OverlayWrapper,
|
|
73
|
+
/**
|
|
74
|
+
* HiddenContent houses page elements that are blurred by the
|
|
75
|
+
* Overlay.
|
|
76
|
+
*/
|
|
77
|
+
HiddenContent: OverlayHiddenContent,
|
|
78
|
+
/**
|
|
79
|
+
* Message contains the progress indicator and loading message
|
|
80
|
+
* for the Overlay. It sits on top of the HiddenContent.
|
|
81
|
+
*/
|
|
82
|
+
Overlay: OverlayMessage,
|
|
83
|
+
});
|
|
84
|
+
const useInertPolyfill = () => {
|
|
85
|
+
const loaded = react_1.default.useRef(false);
|
|
86
|
+
const modulePath =
|
|
87
|
+
'https://cdn.jsdelivr.net/npm/wicg-inert@3.1.2/dist/inert.min.js';
|
|
88
|
+
react_1.default.useEffect(() => {
|
|
89
|
+
async () => {
|
|
90
|
+
if (!HTMLElement.prototype.hasOwnProperty('inert') && !loaded.current) {
|
|
91
|
+
await (0, index_js_1.dynamicImport)(modulePath);
|
|
92
|
+
loaded.current = true;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}, []);
|
|
96
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Placement } from '@floating-ui/react';
|
|
3
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
|
+
import type { PortalProps } from '../utils/components/Portal.js';
|
|
5
|
+
type PopoverOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* Placement of the popover content.
|
|
8
|
+
* @default 'bottom-start'
|
|
9
|
+
*/
|
|
10
|
+
placement?: Placement;
|
|
11
|
+
/**
|
|
12
|
+
* Controlled flag for whether the popover is visible.
|
|
13
|
+
*/
|
|
14
|
+
visible?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Callback invoked every time the popover visibility changes as a result
|
|
17
|
+
* of internal logic. Should be used alongside `visible` prop.
|
|
18
|
+
*/
|
|
19
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
20
|
+
/**
|
|
21
|
+
* If true, the popover will close when clicking outside it.
|
|
22
|
+
*/
|
|
23
|
+
closeOnOutsideClick?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the popover should match the width of the trigger.
|
|
26
|
+
*/
|
|
27
|
+
matchWidth?: boolean;
|
|
28
|
+
};
|
|
29
|
+
type PopoverInternalProps = {
|
|
30
|
+
/**
|
|
31
|
+
* autoUpdate options that recalculates position
|
|
32
|
+
* to ensure the floating element remains anchored
|
|
33
|
+
* to its reference element, such as when scrolling
|
|
34
|
+
* and resizing the screen
|
|
35
|
+
*
|
|
36
|
+
* https://floating-ui.com/docs/autoUpdate#options
|
|
37
|
+
*/
|
|
38
|
+
autoUpdateOptions?: {
|
|
39
|
+
ancestorScroll?: boolean;
|
|
40
|
+
ancestorResize?: boolean;
|
|
41
|
+
elementResize?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Use this if you want popover to follow moving trigger element
|
|
44
|
+
*/
|
|
45
|
+
animationFrame?: boolean;
|
|
46
|
+
layoutShift?: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Middleware options.
|
|
50
|
+
*
|
|
51
|
+
* @see https://floating-ui.com/docs/offset
|
|
52
|
+
*/
|
|
53
|
+
middleware?: {
|
|
54
|
+
offset?: number;
|
|
55
|
+
flip?: boolean;
|
|
56
|
+
shift?: boolean;
|
|
57
|
+
autoPlacement?: boolean;
|
|
58
|
+
hide?: boolean;
|
|
59
|
+
inline?: boolean;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* By default, the popover will only open on click.
|
|
63
|
+
* `hover` and `focus` can be manually specified as triggers.
|
|
64
|
+
*/
|
|
65
|
+
trigger?: Partial<Record<'hover' | 'click' | 'focus', boolean>>;
|
|
66
|
+
role?: 'dialog' | 'menu' | 'listbox';
|
|
67
|
+
};
|
|
68
|
+
export declare const usePopover: (options: PopoverOptions & PopoverInternalProps) => {
|
|
69
|
+
placement: Placement;
|
|
70
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
71
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
72
|
+
x: number;
|
|
73
|
+
y: number;
|
|
74
|
+
isPositioned: boolean;
|
|
75
|
+
update: () => void;
|
|
76
|
+
floatingStyles: React.CSSProperties;
|
|
77
|
+
refs: {
|
|
78
|
+
reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
|
|
79
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
80
|
+
setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
|
|
81
|
+
setFloating: (node: HTMLElement | null) => void;
|
|
82
|
+
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
83
|
+
elements: {
|
|
84
|
+
reference: import("@floating-ui/react-dom").ReferenceType | null;
|
|
85
|
+
floating: HTMLElement | null;
|
|
86
|
+
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
87
|
+
context: {
|
|
88
|
+
x: number;
|
|
89
|
+
y: number;
|
|
90
|
+
placement: Placement;
|
|
91
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
92
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
93
|
+
isPositioned: boolean;
|
|
94
|
+
update: () => void;
|
|
95
|
+
floatingStyles: React.CSSProperties;
|
|
96
|
+
open: boolean;
|
|
97
|
+
onOpenChange: (open: boolean, event?: Event | undefined) => void;
|
|
98
|
+
events: import("@floating-ui/react").FloatingEvents;
|
|
99
|
+
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
100
|
+
nodeId: string | undefined;
|
|
101
|
+
floatingId: string;
|
|
102
|
+
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
103
|
+
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
104
|
+
};
|
|
105
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
106
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
107
|
+
getItemProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
108
|
+
open: boolean | undefined;
|
|
109
|
+
onOpenChange: React.Dispatch<React.SetStateAction<boolean | undefined>>;
|
|
110
|
+
};
|
|
111
|
+
type PopoverPublicProps = {
|
|
112
|
+
content?: React.ReactNode;
|
|
113
|
+
children?: React.ReactNode;
|
|
114
|
+
applyBackground?: boolean;
|
|
115
|
+
} & PortalProps & PopoverOptions;
|
|
116
|
+
/**
|
|
117
|
+
* A utility component to help with positioning of floating content.
|
|
118
|
+
* Built on top of [`floating-ui`](https://floating-ui.com/)
|
|
119
|
+
*/
|
|
120
|
+
export declare const Popover: PolymorphicForwardRefComponent<"div", PopoverPublicProps>;
|
|
121
|
+
export default Popover;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
|
+
exports.Popover = exports.usePopover = void 0;
|
|
8
|
+
const tslib_1 = require('tslib');
|
|
9
|
+
const React = tslib_1.__importStar(require('react'));
|
|
10
|
+
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
|
+
const react_1 = require('@floating-ui/react');
|
|
12
|
+
const index_js_1 = require('../utils/index.js');
|
|
13
|
+
const Portal_js_1 = require('../utils/components/Portal.js');
|
|
14
|
+
const ThemeProvider_js_1 = require('../ThemeProvider/ThemeProvider.js');
|
|
15
|
+
// ----------------------------------------------------------------------------
|
|
16
|
+
const usePopover = (options) => {
|
|
17
|
+
const {
|
|
18
|
+
placement = 'bottom-start',
|
|
19
|
+
visible,
|
|
20
|
+
onVisibleChange,
|
|
21
|
+
closeOnOutsideClick,
|
|
22
|
+
autoUpdateOptions,
|
|
23
|
+
middleware = { flip: true, shift: true },
|
|
24
|
+
matchWidth,
|
|
25
|
+
trigger = { click: true, hover: false, focus: false },
|
|
26
|
+
role,
|
|
27
|
+
} = options;
|
|
28
|
+
const [open, onOpenChange] = (0, index_js_1.useControlledState)(
|
|
29
|
+
false,
|
|
30
|
+
visible,
|
|
31
|
+
onVisibleChange,
|
|
32
|
+
);
|
|
33
|
+
const floating = (0, react_1.useFloating)({
|
|
34
|
+
placement,
|
|
35
|
+
open,
|
|
36
|
+
onOpenChange,
|
|
37
|
+
whileElementsMounted: (...args) =>
|
|
38
|
+
(0, react_1.autoUpdate)(...args, autoUpdateOptions),
|
|
39
|
+
middleware: [
|
|
40
|
+
middleware.offset !== undefined && (0, react_1.offset)(middleware.offset),
|
|
41
|
+
middleware.flip && (0, react_1.flip)(),
|
|
42
|
+
middleware.shift && (0, react_1.shift)(),
|
|
43
|
+
matchWidth &&
|
|
44
|
+
(0, react_1.size)({
|
|
45
|
+
apply: ({ rects }) => {
|
|
46
|
+
setReferenceWidth(rects.reference.width);
|
|
47
|
+
},
|
|
48
|
+
}),
|
|
49
|
+
middleware.autoPlacement && (0, react_1.autoPlacement)(),
|
|
50
|
+
middleware.inline && (0, react_1.inline)(),
|
|
51
|
+
middleware.hide && (0, react_1.hide)(),
|
|
52
|
+
].filter(Boolean),
|
|
53
|
+
});
|
|
54
|
+
const interactions = (0, react_1.useInteractions)([
|
|
55
|
+
(0, react_1.useClick)(floating.context, { enabled: !!trigger.click }),
|
|
56
|
+
(0, react_1.useDismiss)(floating.context, {
|
|
57
|
+
outsidePress: closeOnOutsideClick,
|
|
58
|
+
}),
|
|
59
|
+
(0, react_1.useHover)(floating.context, {
|
|
60
|
+
enabled: !!trigger.hover,
|
|
61
|
+
delay: 100,
|
|
62
|
+
handleClose: (0, react_1.safePolygon)({ buffer: 1 }),
|
|
63
|
+
}),
|
|
64
|
+
(0, react_1.useFocus)(floating.context, { enabled: !!trigger.focus }),
|
|
65
|
+
(0, react_1.useRole)(floating.context, { role: 'dialog', enabled: !!role }),
|
|
66
|
+
]);
|
|
67
|
+
const [referenceWidth, setReferenceWidth] = React.useState();
|
|
68
|
+
const getFloatingProps = React.useCallback(
|
|
69
|
+
(userProps) =>
|
|
70
|
+
interactions.getFloatingProps({
|
|
71
|
+
...userProps,
|
|
72
|
+
style: {
|
|
73
|
+
...floating.floatingStyles,
|
|
74
|
+
zIndex: 9999,
|
|
75
|
+
...(matchWidth && referenceWidth
|
|
76
|
+
? {
|
|
77
|
+
minInlineSize: `${referenceWidth}px`,
|
|
78
|
+
maxInlineSize: `min(${referenceWidth * 2}px, 90vw)`,
|
|
79
|
+
}
|
|
80
|
+
: {}),
|
|
81
|
+
...userProps?.style,
|
|
82
|
+
},
|
|
83
|
+
}),
|
|
84
|
+
[floating.floatingStyles, interactions, matchWidth, referenceWidth],
|
|
85
|
+
);
|
|
86
|
+
return React.useMemo(
|
|
87
|
+
() => ({
|
|
88
|
+
open,
|
|
89
|
+
onOpenChange,
|
|
90
|
+
...interactions,
|
|
91
|
+
getFloatingProps,
|
|
92
|
+
...floating,
|
|
93
|
+
}),
|
|
94
|
+
[open, onOpenChange, interactions, getFloatingProps, floating],
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
exports.usePopover = usePopover;
|
|
98
|
+
/**
|
|
99
|
+
* A utility component to help with positioning of floating content.
|
|
100
|
+
* Built on top of [`floating-ui`](https://floating-ui.com/)
|
|
101
|
+
*/
|
|
102
|
+
exports.Popover = React.forwardRef((props, forwardedRef) => {
|
|
103
|
+
const {
|
|
104
|
+
portal = true,
|
|
105
|
+
//
|
|
106
|
+
// popover options
|
|
107
|
+
visible,
|
|
108
|
+
placement,
|
|
109
|
+
onVisibleChange,
|
|
110
|
+
closeOnOutsideClick,
|
|
111
|
+
matchWidth,
|
|
112
|
+
//
|
|
113
|
+
// dom props
|
|
114
|
+
className,
|
|
115
|
+
children,
|
|
116
|
+
content,
|
|
117
|
+
applyBackground,
|
|
118
|
+
...rest
|
|
119
|
+
} = props;
|
|
120
|
+
const popover = (0, exports.usePopover)({
|
|
121
|
+
visible,
|
|
122
|
+
placement,
|
|
123
|
+
onVisibleChange,
|
|
124
|
+
closeOnOutsideClick,
|
|
125
|
+
matchWidth,
|
|
126
|
+
role: 'dialog',
|
|
127
|
+
});
|
|
128
|
+
const [popoverElement, setPopoverElement] = React.useState();
|
|
129
|
+
const popoverRef = (0, index_js_1.useMergedRefs)(
|
|
130
|
+
popover.refs.setFloating,
|
|
131
|
+
forwardedRef,
|
|
132
|
+
setPopoverElement,
|
|
133
|
+
);
|
|
134
|
+
return React.createElement(
|
|
135
|
+
React.Fragment,
|
|
136
|
+
null,
|
|
137
|
+
(0, index_js_1.cloneElementWithRef)(children, (children) => ({
|
|
138
|
+
...popover.getReferenceProps(children.props),
|
|
139
|
+
ref: popover.refs.setReference,
|
|
140
|
+
})),
|
|
141
|
+
popover.open
|
|
142
|
+
? React.createElement(
|
|
143
|
+
Portal_js_1.Portal,
|
|
144
|
+
{ portal: portal },
|
|
145
|
+
React.createElement(
|
|
146
|
+
ThemeProvider_js_1.ThemeProvider,
|
|
147
|
+
{ portalContainer: popoverElement },
|
|
148
|
+
React.createElement(
|
|
149
|
+
react_1.FloatingFocusManager,
|
|
150
|
+
{
|
|
151
|
+
context: popover.context,
|
|
152
|
+
modal: false,
|
|
153
|
+
initialFocus: -1,
|
|
154
|
+
returnFocus: true,
|
|
155
|
+
},
|
|
156
|
+
React.createElement(
|
|
157
|
+
index_js_1.Box,
|
|
158
|
+
{
|
|
159
|
+
className: (0, classnames_1.default)(
|
|
160
|
+
{ 'iui-popover-surface': applyBackground },
|
|
161
|
+
className,
|
|
162
|
+
),
|
|
163
|
+
...popover.getFloatingProps(rest),
|
|
164
|
+
ref: popoverRef,
|
|
165
|
+
},
|
|
166
|
+
content,
|
|
167
|
+
),
|
|
168
|
+
),
|
|
169
|
+
),
|
|
170
|
+
)
|
|
171
|
+
: null,
|
|
172
|
+
);
|
|
173
|
+
});
|
|
174
|
+
exports.default = exports.Popover;
|
package/cjs/core/ProgressIndicators/{ProgressLinear/ProgressLinear.d.ts → ProgressLinear.d.ts}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PolymorphicForwardRefComponent } from '
|
|
3
|
-
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
+
type ProgressLinearProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Progress percentage. Should be a number between 0 and 100.
|
|
6
|
-
* @default 0
|
|
7
6
|
*/
|
|
8
7
|
value?: number;
|
|
9
8
|
/**
|
|
10
|
-
* Progress variant. If true, value will be ignored.
|
|
11
|
-
*
|
|
9
|
+
* Progress variant. If true, `value` will be ignored.
|
|
10
|
+
*
|
|
11
|
+
* Defaults to true if `value` is passed, otherwise false.
|
|
12
12
|
*/
|
|
13
13
|
indeterminate?: boolean;
|
|
14
14
|
/**
|
|
@@ -21,9 +21,13 @@ declare type ProgressLinearProps = {
|
|
|
21
21
|
*/
|
|
22
22
|
isAnimated?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
* Status of progress.
|
|
24
|
+
* Status of progress.
|
|
25
25
|
*/
|
|
26
26
|
status?: 'positive' | 'negative';
|
|
27
|
+
/**
|
|
28
|
+
* Pass props to ProgressLinear label group.
|
|
29
|
+
*/
|
|
30
|
+
labelGroupProps?: React.ComponentProps<'div'>;
|
|
27
31
|
};
|
|
28
32
|
/**
|
|
29
33
|
* Shows progress on a linear bar
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
exports.ProgressLinear = void 0;
|
|
4
|
+
const tslib_1 = require('tslib');
|
|
5
|
+
/*---------------------------------------------------------------------------------------------
|
|
6
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
7
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
|
+
*--------------------------------------------------------------------------------------------*/
|
|
9
|
+
const React = tslib_1.__importStar(require('react'));
|
|
10
|
+
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
|
+
const index_js_1 = require('../utils/index.js');
|
|
12
|
+
/**
|
|
13
|
+
* Shows progress on a linear bar
|
|
14
|
+
* @example
|
|
15
|
+
* Determinate
|
|
16
|
+
* <ProgressLinear value={25}/>
|
|
17
|
+
* Indeterminate
|
|
18
|
+
* <ProgressLinear indeterminate={true}/>
|
|
19
|
+
* Labeled - Center
|
|
20
|
+
* <ProgressLinear value={50} labels={['Centered Label']} />
|
|
21
|
+
* Labeled - Left & Right
|
|
22
|
+
* <ProgressLinear value={50} labels={['Loading...', '50%']} />
|
|
23
|
+
* Positive / Negative.
|
|
24
|
+
* <ProgressLinear status='positive' labels={['Upload done!', <SvgStatusSuccessHollow />]} />
|
|
25
|
+
* <ProgressLinear status='negative' />
|
|
26
|
+
*/
|
|
27
|
+
exports.ProgressLinear = React.forwardRef((props, forwardedRef) => {
|
|
28
|
+
const {
|
|
29
|
+
value,
|
|
30
|
+
indeterminate = value === undefined,
|
|
31
|
+
labels = [],
|
|
32
|
+
isAnimated = false,
|
|
33
|
+
status,
|
|
34
|
+
className,
|
|
35
|
+
labelGroupProps,
|
|
36
|
+
...rest
|
|
37
|
+
} = props;
|
|
38
|
+
const boundedValue = (0, index_js_1.getBoundedValue)(value ?? 100, 0, 100);
|
|
39
|
+
return React.createElement(
|
|
40
|
+
index_js_1.Box,
|
|
41
|
+
{
|
|
42
|
+
className: (0, classnames_1.default)(
|
|
43
|
+
'iui-progress-indicator-linear',
|
|
44
|
+
className,
|
|
45
|
+
),
|
|
46
|
+
ref: forwardedRef,
|
|
47
|
+
'data-iui-status': status,
|
|
48
|
+
'data-iui-indeterminate': indeterminate ? 'true' : undefined,
|
|
49
|
+
'data-iui-animated': isAnimated ? 'true' : undefined,
|
|
50
|
+
style: {
|
|
51
|
+
'--iui-progress-percentage': `${boundedValue}%`,
|
|
52
|
+
},
|
|
53
|
+
...rest,
|
|
54
|
+
},
|
|
55
|
+
labels.length > 0 &&
|
|
56
|
+
React.createElement(
|
|
57
|
+
index_js_1.Box,
|
|
58
|
+
{
|
|
59
|
+
as: 'div',
|
|
60
|
+
...labelGroupProps,
|
|
61
|
+
className: (0, classnames_1.default)(
|
|
62
|
+
'iui-progress-indicator-linear-label',
|
|
63
|
+
labelGroupProps?.className,
|
|
64
|
+
),
|
|
65
|
+
},
|
|
66
|
+
labels.map((label, index) =>
|
|
67
|
+
React.createElement('span', { key: index }, label),
|
|
68
|
+
),
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
});
|
|
72
|
+
exports.default = exports.ProgressLinear;
|
package/cjs/core/ProgressIndicators/{ProgressRadial/ProgressRadial.d.ts → ProgressRadial.d.ts}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PolymorphicForwardRefComponent } from '
|
|
3
|
-
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
+
type ProgressRadialProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Progress percentage. Should be a number between 0 and 100.
|
|
6
|
-
* @default 0
|
|
7
6
|
*/
|
|
8
7
|
value?: number;
|
|
9
8
|
/**
|
|
10
9
|
* Progress variant. If true, value will be ignored.
|
|
11
|
-
*
|
|
10
|
+
*
|
|
11
|
+
* @default false if value is provided, true otherwise
|
|
12
12
|
*/
|
|
13
13
|
indeterminate?: boolean;
|
|
14
14
|
/**
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
exports.ProgressRadial = void 0;
|
|
4
|
+
const tslib_1 = require('tslib');
|
|
5
|
+
/*---------------------------------------------------------------------------------------------
|
|
6
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
7
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
|
+
*--------------------------------------------------------------------------------------------*/
|
|
9
|
+
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
10
|
+
const React = tslib_1.__importStar(require('react'));
|
|
11
|
+
const index_js_1 = require('../utils/index.js');
|
|
12
|
+
/**
|
|
13
|
+
* Circular Progress Indicator
|
|
14
|
+
* @example
|
|
15
|
+
* Basic
|
|
16
|
+
* <ProgressRadial value={50} />
|
|
17
|
+
* Indeterminate
|
|
18
|
+
* <ProgressRadial indeterminate />
|
|
19
|
+
* Positive / Negative
|
|
20
|
+
* <ProgressRadial status='positive' />
|
|
21
|
+
* <ProgressRadial status='negative' />
|
|
22
|
+
* Centered Content
|
|
23
|
+
* <ProgressRadial value={63}>63</ProgressRadial>
|
|
24
|
+
* Small
|
|
25
|
+
* <ProgressRadial size={'small'} indeterminate/>
|
|
26
|
+
*/
|
|
27
|
+
exports.ProgressRadial = React.forwardRef((props, forwardedRef) => {
|
|
28
|
+
const {
|
|
29
|
+
value,
|
|
30
|
+
indeterminate = value === undefined,
|
|
31
|
+
status,
|
|
32
|
+
size,
|
|
33
|
+
className,
|
|
34
|
+
style,
|
|
35
|
+
children,
|
|
36
|
+
...rest
|
|
37
|
+
} = props;
|
|
38
|
+
const statusMap = {
|
|
39
|
+
negative: React.createElement(index_js_1.SvgImportantSmall, {
|
|
40
|
+
'aria-hidden': true,
|
|
41
|
+
}),
|
|
42
|
+
positive: React.createElement(index_js_1.SvgCheckmarkSmall, {
|
|
43
|
+
'aria-hidden': true,
|
|
44
|
+
}),
|
|
45
|
+
};
|
|
46
|
+
return React.createElement(
|
|
47
|
+
index_js_1.Box,
|
|
48
|
+
{
|
|
49
|
+
className: (0, classnames_1.default)(
|
|
50
|
+
'iui-progress-indicator-radial',
|
|
51
|
+
className,
|
|
52
|
+
),
|
|
53
|
+
'data-iui-size': size,
|
|
54
|
+
'data-iui-status': status,
|
|
55
|
+
'data-iui-indeterminate': indeterminate ? 'true' : undefined,
|
|
56
|
+
ref: forwardedRef,
|
|
57
|
+
style: {
|
|
58
|
+
...(value !== undefined && {
|
|
59
|
+
'--iui-progress-percentage': `${(0, index_js_1.getBoundedValue)(
|
|
60
|
+
value,
|
|
61
|
+
0,
|
|
62
|
+
100,
|
|
63
|
+
)}%`,
|
|
64
|
+
}),
|
|
65
|
+
...style,
|
|
66
|
+
},
|
|
67
|
+
...rest,
|
|
68
|
+
},
|
|
69
|
+
size !== 'x-small'
|
|
70
|
+
? children ?? (!!status ? statusMap[status] : null)
|
|
71
|
+
: null,
|
|
72
|
+
);
|
|
73
|
+
});
|
|
74
|
+
exports.default = exports.ProgressRadial;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
-
|
|
3
|
+
type RadioProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Label of the radio.
|
|
6
6
|
*/
|
|
@@ -10,10 +10,13 @@ declare type RadioProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
status?: 'positive' | 'warning' | 'negative';
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @default false
|
|
13
|
+
* Passes props to Radio label.
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
labelProps?: React.ComponentProps<'span'>;
|
|
16
|
+
/**
|
|
17
|
+
* Passes props to Radio wrapper.
|
|
18
|
+
*/
|
|
19
|
+
wrapperProps?: React.ComponentProps<'label'>;
|
|
17
20
|
};
|
|
18
21
|
/**
|
|
19
22
|
* Basic radio input component
|