@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,183 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.0.0-dev.11
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#1583](https://github.com/iTwin/iTwinUI/pull/1583): Bumped minimum react version to 17. If you're still on react 16, please update to react 17 (which has no breaking changes).
|
|
8
|
+
- [#1565](https://github.com/iTwin/iTwinUI/pull/1565): Removed `Menu` component. Use `DropdownMenu` instead.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [#1605](https://github.com/iTwin/iTwinUI/pull/1605): Added `'use client'` directive for React Server Components support.
|
|
13
|
+
|
|
14
|
+
## 3.0.0-dev.10
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- [#1514](https://github.com/iTwin/iTwinUI/pull/1514): Table now has better type support. Users must now import types from `@itwin/itwinui-react/react-table` instead of from `@types/react-table`.
|
|
19
|
+
- [#1433](https://github.com/iTwin/iTwinUI/pull/1433): Updated `exports` to prevent importing internal utilities.
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- [#1573](https://github.com/iTwin/iTwinUI/pull/1573): Added `applyBackground` prop to ColorPicker and DatePicker.
|
|
24
|
+
- [#1567](https://github.com/iTwin/iTwinUI/pull/1567): Added `endIconProps` prop to ComboBox.
|
|
25
|
+
|
|
26
|
+
## 3.0.0-dev.9
|
|
27
|
+
|
|
28
|
+
### Major Changes
|
|
29
|
+
|
|
30
|
+
- [#1506](https://github.com/iTwin/iTwinUI/pull/1506): Replaced `tippy.js` with `floating-ui` in all popover-based components. While the basic usage is unchanged, all advanced props from tippy are no longer available.
|
|
31
|
+
|
|
32
|
+
Components affected: Select, ComboBox, DropdownMenu, DropdownButton, SplitButton.
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- [#1506](https://github.com/iTwin/iTwinUI/pull/1506): Added new `Popover` component for public use.
|
|
37
|
+
|
|
38
|
+
## 3.0.0-dev.8
|
|
39
|
+
|
|
40
|
+
### Major Changes
|
|
41
|
+
|
|
42
|
+
- [#1544](https://github.com/iTwin/iTwinUI/pull/1544): Removed `iconDisplayStyle` prop from `LabeledInput` and `LabeledTextarea` components. `svgIcon` is now added inline. Users must use `StatusMessage` to add custom icon to the message.
|
|
43
|
+
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Removed `inputStyle` and `inputClassName` props from `LabeledInput`; style and className props are being passed down to input. Added `wrapperProps`, `labelProps`, `messageProps`, `messageIconProps`, `inputWrapperProps` to pass props to sub elements.
|
|
44
|
+
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Removed `selectStyle` and `selectClassName` props from `LabeledSelect`; style and className props are being passed down to textarea. Added `wrapperProps`, `labelProps`, `messageProps`, `messageIconProps` to pass props to sub elements.
|
|
45
|
+
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Removed `textareaStyle` and `textareaClassName` props from `LabeledTextarea`; style and className props are being passed down to textarea. Added `wrapperProps`, `labelProps`, `messageProps`, `messageIconProps` to pass props to sub elements.
|
|
46
|
+
|
|
47
|
+
### Minor Changes
|
|
48
|
+
|
|
49
|
+
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added `status` prop to `Input`, `Textarea` and `Select`.
|
|
50
|
+
- [#1510](https://github.com/iTwin/iTwinUI/pull/1510): Added `domProps` to allow Toast's DOM customisation.
|
|
51
|
+
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added two new components for building complex input layouts.
|
|
52
|
+
|
|
53
|
+
- `InputGrid` for the "outer" layout (label, inputs and statusMessage)
|
|
54
|
+
- `InputWithDecorations` for the "inner" layout (start icon/button, end icon/button)
|
|
55
|
+
|
|
56
|
+
`LabeledInput`, `LabeledSelect`, `LabeledTextarea` and table `DatePickerInput` have been updated to make use of these new components internally.
|
|
57
|
+
|
|
58
|
+
- [#1531](https://github.com/iTwin/iTwinUI/pull/1531): Selected options in Select/ComboBox will now have a checkmark.
|
|
59
|
+
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added new `padded` prop to `Icon`.
|
|
60
|
+
- [#1466](https://github.com/iTwin/iTwinUI/pull/1466): Adding the ability for every DOM node inside DatePicker component to have a custom className passed to it.
|
|
61
|
+
- [#1523](https://github.com/iTwin/iTwinUI/pull/1523): Added `ariaStrategy` prop to Tooltip. Can be used to change how the tooltip is associated with the trigger element.
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- [#1533](https://github.com/iTwin/iTwinUI/pull/1533): Fixed missing accessible name in SplitButton.
|
|
66
|
+
- [#1495](https://github.com/iTwin/iTwinUI/pull/1495): Added accessible name to dropdown menu button in HeaderSplitButton.
|
|
67
|
+
- [#1496](https://github.com/iTwin/iTwinUI/pull/1496): Added accessible button name to SideNavigation expand button.
|
|
68
|
+
- [#1505](https://github.com/iTwin/iTwinUI/pull/1505): Gave accessible label to the sub-row toggle in <Table>.
|
|
69
|
+
|
|
70
|
+
## 3.0.0-dev.7
|
|
71
|
+
|
|
72
|
+
### Major Changes
|
|
73
|
+
|
|
74
|
+
- [#1478](https://github.com/iTwin/iTwinUI/pull/1478): ThemeProvider now defaults the `theme` value to `"inherit"` and falls back to `"light"` there is no parent theme found. Also the inherit behavior has been made more resilient for cases where react context fails.
|
|
75
|
+
- [#1458](https://github.com/iTwin/iTwinUI/pull/1458): Added wrapperProps, contentProps, topProps, and bottomProps to Side Navigation component to improve customization. Top-level props (className, styling, etc) now passed to SideNav button instead of to the wrapper.
|
|
76
|
+
- [#1435](https://github.com/iTwin/iTwinUI/pull/1435): Improving customization of SplitButton with wrapperProps and menuButtonProps. ClassName now passed to the button instead of the component wrapper.
|
|
77
|
+
- [#1461](https://github.com/iTwin/iTwinUI/pull/1461): Changed disabled button behavior to make them focusable and use `aria-disabled` instead of `disabled` attribute.
|
|
78
|
+
|
|
79
|
+
### Minor Changes
|
|
80
|
+
|
|
81
|
+
- [#1440](https://github.com/iTwin/iTwinUI/pull/1440): Adding the ability for every DOM node to have a custom className passed to it.
|
|
82
|
+
New prop for `FileUpload` component: `contentProps`
|
|
83
|
+
- [#1430](https://github.com/iTwin/iTwinUI/pull/1430): Adding the ability for each node element in `Stepper` to have a custom `prop`.
|
|
84
|
+
New props include: `stepProps`, `trackContentProps`, `circleProps`, `nameProps`, `labelProps`, `labelCountProps`
|
|
85
|
+
- [#1435](https://github.com/iTwin/iTwinUI/pull/1435): Improving customization of Button with new props: labelProps, startIconProps, and endIconProps.
|
|
86
|
+
Improving customization of IconButton with iconProps.
|
|
87
|
+
- [#1477](https://github.com/iTwin/iTwinUI/pull/1477): Added a new `portalContainer` prop to `ThemeProvider`. When specified, all floating elements (tooltips, toats, dialogs) under the ThemeProvider will read this prop from context and portal into it.
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- [#1446](https://github.com/iTwin/iTwinUI/pull/1446): Avatar has been refactored to be a single `<span>`. The colors have been updated to pass AAA contrast ratio.
|
|
92
|
+
- [#1492](https://github.com/iTwin/iTwinUI/pull/1492): Fixed `aria-owns` syntax for `TreeNode`
|
|
93
|
+
- [#1486](https://github.com/iTwin/iTwinUI/pull/1486): DatePicker date tables now have accessible labels.
|
|
94
|
+
- [#1499](https://github.com/iTwin/iTwinUI/pull/1499): Removed special handling of iPhone notch in Header and SideNavigation.
|
|
95
|
+
|
|
96
|
+
## 3.0.0-dev.6
|
|
97
|
+
|
|
98
|
+
### Major Changes
|
|
99
|
+
|
|
100
|
+
- [#1409](https://github.com/iTwin/iTwinUI/pull/1409): `RadioTile`'s `className` and `style` props will now be applied on the `<input>` element instead of the wrapper. Added `wrapperProps`, `iconProps`, `labelProps`, `subLabelProps` to individually customize each part of the component.
|
|
101
|
+
|
|
102
|
+
### Minor Changes
|
|
103
|
+
|
|
104
|
+
- [#1457](https://github.com/iTwin/iTwinUI/pull/1457): Added `htmlName` prop to the `HeaderButton` subcomponent which handles the native `name` attribute in `<button>`.
|
|
105
|
+
- [#1437](https://github.com/iTwin/iTwinUI/pull/1437): Added headerWrapperProps, headerProps, bodyProps, and emptyTableContentProps to make each part of the Table component more customizable.
|
|
106
|
+
- [#1412](https://github.com/iTwin/iTwinUI/pull/1412): All styles have been wrapped inside a cascade layer named `itwinui`.
|
|
107
|
+
- [#1419](https://github.com/iTwin/iTwinUI/pull/1419): Added `htmlSize` prop to the `Input` component which handles the native `size` attribute in `<input>`.
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- [#1420](https://github.com/iTwin/iTwinUI/pull/1420): RadioTile DOM has been simplified to remove a content wrapper `div`.
|
|
112
|
+
|
|
113
|
+
## 3.0.0-dev.5
|
|
114
|
+
|
|
115
|
+
### Major Changes
|
|
116
|
+
|
|
117
|
+
- [#1370](https://github.com/iTwin/iTwinUI/pull/1370): ProgressLinear has been refactored to be a single `<div>`.
|
|
118
|
+
- [#1371](https://github.com/iTwin/iTwinUI/pull/1371): Checkbox: `className` and `style` will now always be applied on the checkbox input element. Added new `wrapperProps` and `labelProps` to allow for styling of wrapper and label elements.
|
|
119
|
+
- [#1389](https://github.com/iTwin/iTwinUI/pull/1389): iTwinUI now correctly supports both ESM and CJS environments.
|
|
120
|
+
- [#1369](https://github.com/iTwin/iTwinUI/pull/1369): Added new `Breadcrumbs.Item` subcomponent to use for custom `a` and `button` elements within the `Breadcrumbs`
|
|
121
|
+
- [#1400](https://github.com/iTwin/iTwinUI/pull/1400): `ErrorPage` will now dynamically import illustrations. The peer dependency on `@itwin/itwinui-illustrations-react` will need to be manually installed if using `ErrorPage`.
|
|
122
|
+
- [#1354](https://github.com/iTwin/iTwinUI/pull/1354): Updated Expandable Block component to be composition of customizable subcomponents: <ExpandableBlock.Header/>, <ExpandableBlock.ExpandIcon/>, <ExpandableBlock.LabelArea/>, <ExpandableBlock.Title/>, <ExpandableBlock.Caption/>, <ExpandableBlock.EndIcon/>, <ExpandableBlock.Content/>
|
|
123
|
+
|
|
124
|
+
The following props have been removed as they are now subcomponents: `title`, `caption`, `endIcon`
|
|
125
|
+
|
|
126
|
+
- [#1406](https://github.com/iTwin/iTwinUI/pull/1406): Removed `setFocus` prop from Checkbox, ColorPicker, ComboBox, Input, LabeledInput, LabeledTextarea, Radio, RadioTile, Select, Slider, ToggleSwitch. Users can use `ref` to focus the element.
|
|
127
|
+
|
|
128
|
+
### Minor Changes
|
|
129
|
+
|
|
130
|
+
- [#1373](https://github.com/iTwin/iTwinUI/pull/1373): Converted all physical CSS properties to their logical equivalents.
|
|
131
|
+
- [#1328](https://github.com/iTwin/iTwinUI/pull/1328): Created new Overlay component with customizable subcomponents: Overlay.Wrapper, Overlay.HiddenContent, Overlay.Overlay
|
|
132
|
+
- [#1403](https://github.com/iTwin/iTwinUI/pull/1403): Updated `DropdownMenu` to additionally accept list of JSX elements or a JSX fragment for `menuItems` prop,
|
|
133
|
+
- [#1407](https://github.com/iTwin/iTwinUI/pull/1407): Adding the ability for each node element in `NonIdealState` to have a custom `className`.
|
|
134
|
+
|
|
135
|
+
### Patch Changes
|
|
136
|
+
|
|
137
|
+
- [#1354](https://github.com/iTwin/iTwinUI/pull/1354): Expandable block animation now uses pure css instead of javascript for transitioning.
|
|
138
|
+
- [#1389](https://github.com/iTwin/iTwinUI/pull/1389): The build output is now more readable, using a combination of `prettier` for formatting and `tslib` for import helpers.
|
|
139
|
+
- [#1397](https://github.com/iTwin/iTwinUI/pull/1397): Avatar will no longer incorrectly set aria-label on the status dot.
|
|
140
|
+
- [#1404](https://github.com/iTwin/iTwinUI/pull/1404): `aria-orientation` attribute removed from ButtonGroup to meet accessibility requirements.
|
|
141
|
+
|
|
142
|
+
## 3.0.0-dev.4
|
|
143
|
+
|
|
144
|
+
### Major Changes
|
|
145
|
+
|
|
146
|
+
- [#1383](https://github.com/iTwin/iTwinUI/pull/1383): Removed previously-deprecated `UserIcon` and `UserIconGroup` components. Also removed `userIcon` prop from `Header`.
|
|
147
|
+
- [#1384](https://github.com/iTwin/iTwinUI/pull/1384): Removed previously-deprecated `Wizard` component (replaced by `Stepper` and `WorkflowDiagram`).
|
|
148
|
+
- [#1255](https://github.com/iTwin/iTwinUI/pull/1255): Updated Tile component to be composition of customizable subcomponents: `Tile.Name`, `Tile.NameIcon`, `Tile.NameLabel`, `Tile.Action`, `Tile.ThumbnailArea`, `Tile.ThumbnailPicture`, `Tile.BadgeContainer`, `Tile.TypeIndicator`, `Tile.QuickAction`, `Tile.ContentArea`, `Tile.Description`, `Tile.MoreOptions`, `Tile.Metadata`, `Tile.Buttons`. Certain props have been removed as they are now subcomponents: `name`, `description`, `metadata`, `thumbnail`, `badge`, `leftIcon`, `rightIcon`, `button`, `moreOptions`, `isActionable` props have been removed.
|
|
149
|
+
|
|
150
|
+
- [#1356](https://github.com/iTwin/iTwinUI/pull/1356): ProgressRadial has been refactored to be a single `<div>` instead of using a nested svg. Also it is recommended to explicitly set `size` when using in other components.
|
|
151
|
+
- [#1311](https://github.com/iTwin/iTwinUI/pull/1311): - Removed Tippy.js as dependency in Tooltip. Using FloatingUI instead.
|
|
152
|
+
- [#1388](https://github.com/iTwin/iTwinUI/pull/1388): Removed deprecated `HorizontalTabs` and `VerticalTabs` (replaced by `orientation` prop in `Tabs`).
|
|
153
|
+
|
|
154
|
+
### Minor Changes
|
|
155
|
+
|
|
156
|
+
- [#1362](https://github.com/iTwin/iTwinUI/pull/1362): All elements under the root will now get a default focus styling matching `--iui-color-border-accent`.
|
|
157
|
+
|
|
158
|
+
### Patch Changes
|
|
159
|
+
|
|
160
|
+
- [#1360](https://github.com/iTwin/iTwinUI/pull/1360): The `color-scheme` property will now be correctly set for dark theme, resulting in better theming of built-in html elements.
|
|
161
|
+
|
|
162
|
+
## 3.0.0-dev.3
|
|
163
|
+
|
|
164
|
+
### Major Changes
|
|
165
|
+
|
|
166
|
+
- [#1330](https://github.com/iTwin/iTwinUI/pull/1330): Deprecated `FileUploadTemplate`. Removed all of its references.
|
|
167
|
+
- [#1351](https://github.com/iTwin/iTwinUI/pull/1351): `toaster` import has been removed and replaced with `useToaster` which returns a toaster object with the same API.
|
|
168
|
+
|
|
169
|
+
## 3.0.0-dev.2
|
|
170
|
+
|
|
171
|
+
### Major Changes
|
|
172
|
+
|
|
173
|
+
- [#1300](https://github.com/iTwin/iTwinUI/pull/1300): `modalRootId` and `ownerDocument` props have been removed from `Modal`, in favor of the new `portal` prop (also available in `Dialog`).
|
|
174
|
+
- [#1247](https://github.com/iTwin/iTwinUI/pull/1247): Alert composition has been updated such that it is now made up of customizable subcomponents, thus removing the `onClose`, `clickableText`, and `clickableTextProps` props from `Alert`.
|
|
175
|
+
- [#1346](https://github.com/iTwin/iTwinUI/pull/1346): The build now targets `es2020` instead of `es2018`.
|
|
176
|
+
|
|
177
|
+
### Patch Changes
|
|
178
|
+
|
|
179
|
+
- [#1347](https://github.com/iTwin/iTwinUI/pull/1347): Fixed an issue where ThemeProvider warning was always logged even when using ThemeProvider.
|
|
180
|
+
|
|
3
181
|
## 3.0.0-dev.1
|
|
4
182
|
|
|
5
183
|
### Major Changes
|
|
@@ -35,6 +213,128 @@
|
|
|
35
213
|
- Updated dependencies:
|
|
36
214
|
- @itwin/itwinui-css@2.0.0-dev.0
|
|
37
215
|
|
|
216
|
+
## 2.12.10
|
|
217
|
+
|
|
218
|
+
### Patch Changes
|
|
219
|
+
|
|
220
|
+
- [#1590](https://github.com/iTwin/iTwinUI/pull/1590): Fixed undefined property access in `useScrollToRow`.
|
|
221
|
+
- [#1587](https://github.com/iTwin/iTwinUI/pull/1587): Fixed an issue where v2 toasts and modals were being added to v1 containers.
|
|
222
|
+
|
|
223
|
+
## 2.12.9
|
|
224
|
+
|
|
225
|
+
### Patch Changes
|
|
226
|
+
|
|
227
|
+
- [#1586](https://github.com/iTwin/iTwinUI/pull/1586): Fixed an issue with toggle-switch border styles not working in popout windows.
|
|
228
|
+
|
|
229
|
+
## 2.12.8
|
|
230
|
+
|
|
231
|
+
### Patch Changes
|
|
232
|
+
|
|
233
|
+
- [#1576](https://github.com/iTwin/iTwinUI/pull/1576): Dropdown menus will now automatically become scrollable if there are too many menu items. Also added delay to submenu.
|
|
234
|
+
- [#1578](https://github.com/iTwin/iTwinUI/pull/1578): Fixed missing animation in ComboBox.
|
|
235
|
+
- [#1572](https://github.com/iTwin/iTwinUI/pull/1572): Adjusted borders and shadow values to be more prominent in dark theme.
|
|
236
|
+
- [#1575](https://github.com/iTwin/iTwinUI/pull/1575): ProgressRadial now stays inside container when using size="x-small".
|
|
237
|
+
|
|
238
|
+
## 2.12.7
|
|
239
|
+
|
|
240
|
+
### Patch Changes
|
|
241
|
+
|
|
242
|
+
- [#1545](https://github.com/iTwin/iTwinUI/pull/1545): `tableFilters.DateRangeFilter` now supports localizing the date picker using `translatedLabels.datePicker`.
|
|
243
|
+
|
|
244
|
+
## 2.12.6
|
|
245
|
+
|
|
246
|
+
### Patch Changes
|
|
247
|
+
|
|
248
|
+
- [#1516](https://github.com/iTwin/iTwinUI/pull/1516): Update SearchBox placeholder color to match Input.
|
|
249
|
+
|
|
250
|
+
## 2.12.5
|
|
251
|
+
|
|
252
|
+
### Patch Changes
|
|
253
|
+
|
|
254
|
+
- [#1511](https://github.com/iTwin/iTwinUI/pull/1511): Fix high-visibility button background on hover.
|
|
255
|
+
|
|
256
|
+
## 2.12.4
|
|
257
|
+
|
|
258
|
+
### Patch Changes
|
|
259
|
+
|
|
260
|
+
- [#1508](https://github.com/iTwin/iTwinUI/pull/1508): Fixed an issue where styles were not included in CommonJS environments.
|
|
261
|
+
|
|
262
|
+
## 2.12.3
|
|
263
|
+
|
|
264
|
+
### Patch Changes
|
|
265
|
+
|
|
266
|
+
- [#1485](https://github.com/iTwin/iTwinUI/pull/1485): Improved color contrast for input and select placeholder text.
|
|
267
|
+
- [#1501](https://github.com/iTwin/iTwinUI/pull/1501): Fixed a small misalignment in Table when using sticky columns.
|
|
268
|
+
|
|
269
|
+
## 2.12.2
|
|
270
|
+
|
|
271
|
+
### Patch Changes
|
|
272
|
+
|
|
273
|
+
- [#1494](https://github.com/iTwin/iTwinUI/pull/1494): Updated color-picker dot so its outline adapts dynamically to the backgrounds for better contrast.
|
|
274
|
+
|
|
275
|
+
## 2.12.1
|
|
276
|
+
|
|
277
|
+
### Patch Changes
|
|
278
|
+
|
|
279
|
+
- [#1467](https://github.com/iTwin/iTwinUI/pull/1467): Fixed an issue in Carousel where latest `onSlideChange` callback was being ignored.
|
|
280
|
+
|
|
281
|
+
## 2.12.0
|
|
282
|
+
|
|
283
|
+
### Minor Changes
|
|
284
|
+
|
|
285
|
+
- [#1415](https://github.com/iTwin/iTwinUI/pull/1415): The styling strategy has changed so there will now be a single stylesheet included at runtime, instead of separate css imports inside every component. All the styles are also wrapped in a cascade layer named `itwinui`. This behavior can be customized using the `includeCss` prop in `ThemeProvider`.
|
|
286
|
+
|
|
287
|
+
**Important note**: The dependencies on `@itwin/itwinui-css` and `@itwin/itwinui-variables` have been removed, so these packages _don't_ need to be installed if you are only using components from `@itwin/itwinui-react`.
|
|
288
|
+
|
|
289
|
+
- [#1422](https://github.com/iTwin/iTwinUI/pull/1422): Changed `all: revert` to `all: revert-layer` so that only styles from the v1 layer are reverted, thus avoiding issues with inadvertently removing browser default styles.
|
|
290
|
+
- [#1443](https://github.com/iTwin/iTwinUI/pull/1443): `DropdownButton` now supports `styleType='high-visibility'` to make it blue. This should be used sparingly, as a default or borderless dropdown button is the better choice in most cases.
|
|
291
|
+
- [#1454](https://github.com/iTwin/iTwinUI/pull/1454): Added `disabled` prop to `ExpandableBlock` to disable intersction with it.
|
|
292
|
+
- [#1441](https://github.com/iTwin/iTwinUI/pull/1441): Added `placement` prop to `Dialog` to allow placing it at one of the corners.
|
|
293
|
+
|
|
294
|
+
## 2.11.11
|
|
295
|
+
|
|
296
|
+
### Patch Changes
|
|
297
|
+
|
|
298
|
+
- [#1448](https://github.com/iTwin/iTwinUI/pull/1448): Fix resizable Dialog bug where Dialog jumped around the screen when resized on right side.
|
|
299
|
+
|
|
300
|
+
## 2.11.10
|
|
301
|
+
|
|
302
|
+
### Patch Changes
|
|
303
|
+
|
|
304
|
+
- [#1424](https://github.com/iTwin/iTwinUI/pull/1424), [#1427](https://github.com/iTwin/iTwinUI/pull/1427): Fixed a few different resizing issues in Dialog.
|
|
305
|
+
- Updated dependencies:
|
|
306
|
+
- @itwin/itwinui-css@1.11.5
|
|
307
|
+
|
|
308
|
+
## 2.11.9
|
|
309
|
+
|
|
310
|
+
### Patch Changes
|
|
311
|
+
|
|
312
|
+
- [#1421](https://github.com/iTwin/iTwinUI/pull/1421): Fixed an issue in Table where column reordering and editable cells were not working when v2 Table was used within a v1 app.
|
|
313
|
+
- Updated dependencies:
|
|
314
|
+
- @itwin/itwinui-css@1.11.4
|
|
315
|
+
|
|
316
|
+
## 2.11.8
|
|
317
|
+
|
|
318
|
+
### Patch Changes
|
|
319
|
+
|
|
320
|
+
- [#1410](https://github.com/iTwin/iTwinUI/pull/1410): Fixed an issue in `Tabs` where tabs-list was becoming too tall when the tabpanel didn't have enough content inside.
|
|
321
|
+
- Updated dependencies:
|
|
322
|
+
- @itwin/itwinui-css@1.11.3
|
|
323
|
+
|
|
324
|
+
## 2.11.7
|
|
325
|
+
|
|
326
|
+
### Patch Changes
|
|
327
|
+
|
|
328
|
+
- [#1376](https://github.com/iTwin/iTwinUI/pull/1376): Fix issue where a nested expandable block's expander icon would always display as expanded.
|
|
329
|
+
- Updated dependencies:
|
|
330
|
+
- @itwin/itwinui-css@1.11.2
|
|
331
|
+
|
|
332
|
+
## 2.11.6
|
|
333
|
+
|
|
334
|
+
### Patch Changes
|
|
335
|
+
|
|
336
|
+
- [#1341](https://github.com/iTwin/iTwinUI/pull/1341): Table: fixed action column header content alignment when using globalFilterValue.
|
|
337
|
+
|
|
38
338
|
## 2.11.5
|
|
39
339
|
|
|
40
340
|
### Patch Changes
|
|
@@ -546,4 +846,4 @@ If you're interested in more details about every signle change, check out a full
|
|
|
546
846
|
|
|
547
847
|
## 1.X
|
|
548
848
|
|
|
549
|
-
For any changes prior to 2.0.0, check out the [1.X changelog](https://github.com/iTwin/iTwinUI
|
|
849
|
+
For any changes prior to 2.0.0, check out the [1.X changelog](https://github.com/iTwin/iTwinUI/blob/legacy/v1-react/packages/iTwinUI-react/CHANGELOG.md).
|
|
@@ -1,47 +1,77 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
-
|
|
3
|
+
type AlertOwnProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Type of the alert.
|
|
6
6
|
* @default 'informational'
|
|
7
7
|
*/
|
|
8
8
|
type?: 'positive' | 'warning' | 'negative' | 'informational';
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Stick the alert to the top.
|
|
11
|
+
* @default false
|
|
11
12
|
*/
|
|
13
|
+
isSticky?: boolean;
|
|
14
|
+
};
|
|
15
|
+
type AlertLegacyProps = {
|
|
16
|
+
/** @deprecated Use `Alert.Action` subcomponent. */
|
|
12
17
|
clickableText?: React.ReactNode;
|
|
18
|
+
/** @deprecated Use `Alert.Action` subcomponent. */
|
|
19
|
+
clickableTextProps?: React.ComponentPropsWithoutRef<'a'>;
|
|
20
|
+
/** @deprecated Use `Alert.CloseButton` subcomponent. */
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A small box to quickly grab user attention and communicate a brief message
|
|
25
|
+
* @example
|
|
26
|
+
* <Alert>This is an alert.</Alert>
|
|
27
|
+
* @example
|
|
28
|
+
* <Alert.Wrapper type='informational'>
|
|
29
|
+
* <Alert.Icon />
|
|
30
|
+
* <Alert.Message>This is an informational alert.</Alert.Message>
|
|
31
|
+
* <Alert.CloseButton onClick={() => {}} />
|
|
32
|
+
* </Alert.Wrapper>
|
|
33
|
+
* @example
|
|
34
|
+
* <Alert.Wrapper type='positive'>
|
|
35
|
+
* <Alert.Icon>
|
|
36
|
+
* <SvgSmileyHappy />
|
|
37
|
+
* </Alert.Icon>
|
|
38
|
+
* <Alert.Message>
|
|
39
|
+
* This is an alert.
|
|
40
|
+
* <Alert.Action>This is clickable text.</Alert.Action>
|
|
41
|
+
* </Alert.Message>
|
|
42
|
+
* <Alert.CloseButton onClick={() => {}}>
|
|
43
|
+
* <SvgCollapse />
|
|
44
|
+
* </Alert.CloseButton>
|
|
45
|
+
* </Alert.Wrapper>
|
|
46
|
+
*/
|
|
47
|
+
export declare const Alert: PolymorphicForwardRefComponent<"div", AlertOwnProps & AlertLegacyProps> & {
|
|
13
48
|
/**
|
|
14
|
-
*
|
|
49
|
+
* Alert wrapper subcomponent
|
|
15
50
|
*/
|
|
16
|
-
|
|
51
|
+
Wrapper: PolymorphicForwardRefComponent<"div", AlertOwnProps>;
|
|
17
52
|
/**
|
|
18
|
-
*
|
|
53
|
+
* Alert icon subcomponent
|
|
19
54
|
*/
|
|
20
|
-
|
|
55
|
+
Icon: PolymorphicForwardRefComponent<"span", Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
56
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
57
|
+
}, "fill" | "as" | "key" | "size" | keyof React.HTMLAttributes<HTMLSpanElement> | "padded"> & {
|
|
58
|
+
size?: "small" | "auto" | "medium" | "large" | import("../utils/types.js").AnyString | undefined;
|
|
59
|
+
fill?: "default" | "informational" | "negative" | "positive" | "warning" | import("../utils/types.js").AnyString | undefined;
|
|
60
|
+
padded?: boolean | undefined;
|
|
61
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
62
|
+
as?: "span" | undefined;
|
|
63
|
+
}>;
|
|
21
64
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @default false
|
|
65
|
+
* Alert message subcomponent
|
|
24
66
|
*/
|
|
25
|
-
|
|
67
|
+
Message: PolymorphicForwardRefComponent<"span", {}>;
|
|
26
68
|
/**
|
|
27
|
-
*
|
|
69
|
+
* Alert action subcomponent for the link you want to provide.
|
|
28
70
|
*/
|
|
29
|
-
|
|
71
|
+
Action: PolymorphicForwardRefComponent<"a", {}>;
|
|
72
|
+
/**
|
|
73
|
+
* Alert close button subcomponent
|
|
74
|
+
*/
|
|
75
|
+
CloseButton: PolymorphicForwardRefComponent<"button", {}>;
|
|
30
76
|
};
|
|
31
|
-
/**
|
|
32
|
-
* A small box to quickly grab user attention and communicate a brief message
|
|
33
|
-
* @example
|
|
34
|
-
* <Alert>This is a basic alert.</Alert>
|
|
35
|
-
* <Alert type='positive'>This is a positive alert.</Alert>
|
|
36
|
-
* <Alert type='warning'>This is a warning alert.</Alert>
|
|
37
|
-
* <Alert type='negative'>This is a negative alert.</Alert>
|
|
38
|
-
* <Alert
|
|
39
|
-
* type='positive'
|
|
40
|
-
* clickableText="I am a clickable text"
|
|
41
|
-
* clickableTextProps={{ href: 'https://www.example.com' }}
|
|
42
|
-
* >
|
|
43
|
-
* This is a positive alert with a clickable text
|
|
44
|
-
* </Alert>
|
|
45
|
-
*/
|
|
46
|
-
export declare const Alert: PolymorphicForwardRefComponent<"div", AlertProps>;
|
|
47
77
|
export default Alert;
|
package/cjs/core/Alert/Alert.js
CHANGED
|
@@ -1,64 +1,168 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
29
3
|
exports.Alert = void 0;
|
|
4
|
+
const tslib_1 = require('tslib');
|
|
30
5
|
/*---------------------------------------------------------------------------------------------
|
|
31
6
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
32
7
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
8
|
*--------------------------------------------------------------------------------------------*/
|
|
34
|
-
const classnames_1 = __importDefault(require(
|
|
35
|
-
const React = __importStar(require(
|
|
36
|
-
const index_js_1 = require(
|
|
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
|
+
const IconButton_js_1 = require('../Buttons/IconButton.js');
|
|
13
|
+
const Icon_js_1 = require('../Icon/Icon.js');
|
|
14
|
+
const AlertContext = React.createContext(undefined);
|
|
15
|
+
// ----------------------------------------------------------------------------
|
|
16
|
+
// Alert component
|
|
17
|
+
const AlertComponent = React.forwardRef((props, forwardedRef) => {
|
|
18
|
+
const {
|
|
19
|
+
children,
|
|
20
|
+
type = 'informational',
|
|
21
|
+
isSticky = false,
|
|
22
|
+
clickableText,
|
|
23
|
+
clickableTextProps,
|
|
24
|
+
onClose,
|
|
25
|
+
...rest
|
|
26
|
+
} = props;
|
|
27
|
+
return React.createElement(
|
|
28
|
+
exports.Alert.Wrapper,
|
|
29
|
+
{ type: type, isSticky: isSticky, ref: forwardedRef, ...rest },
|
|
30
|
+
React.createElement(exports.Alert.Icon, null),
|
|
31
|
+
React.createElement(
|
|
32
|
+
exports.Alert.Message,
|
|
33
|
+
null,
|
|
34
|
+
children,
|
|
35
|
+
clickableText
|
|
36
|
+
? React.createElement(
|
|
37
|
+
exports.Alert.Action,
|
|
38
|
+
{ ...clickableTextProps },
|
|
39
|
+
clickableText,
|
|
40
|
+
)
|
|
41
|
+
: null,
|
|
42
|
+
),
|
|
43
|
+
onClose
|
|
44
|
+
? React.createElement(exports.Alert.CloseButton, { onClick: onClose })
|
|
45
|
+
: null,
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
AlertComponent.displayName = 'Alert';
|
|
49
|
+
// ----------------------------------------------------------------------------
|
|
50
|
+
// Alert.Wrapper component
|
|
51
|
+
const AlertWrapper = React.forwardRef((props, ref) => {
|
|
52
|
+
const {
|
|
53
|
+
children,
|
|
54
|
+
className,
|
|
55
|
+
type = 'informational',
|
|
56
|
+
isSticky = false,
|
|
57
|
+
...rest
|
|
58
|
+
} = props;
|
|
59
|
+
return React.createElement(
|
|
60
|
+
index_js_1.Box,
|
|
61
|
+
{
|
|
62
|
+
className: (0, classnames_1.default)('iui-alert', className),
|
|
63
|
+
'data-iui-status': type,
|
|
64
|
+
'data-iui-variant': isSticky ? 'sticky' : undefined,
|
|
65
|
+
ref: ref,
|
|
66
|
+
...rest,
|
|
67
|
+
},
|
|
68
|
+
React.createElement(AlertContext.Provider, { value: { type } }, children),
|
|
69
|
+
);
|
|
70
|
+
});
|
|
71
|
+
AlertWrapper.displayName = 'Alert.Wrapper';
|
|
72
|
+
// ----------------------------------------------------------------------------
|
|
73
|
+
// Alert.Icon component
|
|
74
|
+
const AlertIcon = React.forwardRef((props, ref) => {
|
|
75
|
+
const { children, ...rest } = props;
|
|
76
|
+
const { type } = (0, index_js_1.useSafeContext)(AlertContext);
|
|
77
|
+
const StatusIcon = index_js_1.StatusIconMap[type];
|
|
78
|
+
return React.createElement(
|
|
79
|
+
Icon_js_1.Icon,
|
|
80
|
+
{ fill: type, ref: ref, ...rest },
|
|
81
|
+
children ?? React.createElement(StatusIcon, null),
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
AlertIcon.displayName = 'Alert.Icon';
|
|
85
|
+
// ----------------------------------------------------------------------------
|
|
86
|
+
// Alert.Message component
|
|
87
|
+
const AlertMessage = index_js_1.polymorphic.span('iui-alert-message');
|
|
88
|
+
AlertMessage.displayName = 'Alert.Message';
|
|
89
|
+
// ----------------------------------------------------------------------------
|
|
90
|
+
// Alert.Action component
|
|
91
|
+
const AlertAction = React.forwardRef((props, ref) => {
|
|
92
|
+
const { children, className, ...rest } = props;
|
|
93
|
+
return React.createElement(
|
|
94
|
+
index_js_1.ButtonBase,
|
|
95
|
+
{
|
|
96
|
+
as: !!props.href ? 'a' : 'button',
|
|
97
|
+
className: (0, classnames_1.default)('iui-alert-link', className),
|
|
98
|
+
ref: ref,
|
|
99
|
+
...rest,
|
|
100
|
+
},
|
|
101
|
+
children,
|
|
102
|
+
);
|
|
103
|
+
});
|
|
104
|
+
AlertAction.displayName = 'Alert.Action';
|
|
105
|
+
// ----------------------------------------------------------------------------
|
|
106
|
+
// Alert.CloseButton component
|
|
107
|
+
const AlertCloseButton = React.forwardRef((props, ref) => {
|
|
108
|
+
const { children, ...rest } = props;
|
|
109
|
+
return React.createElement(
|
|
110
|
+
IconButton_js_1.IconButton,
|
|
111
|
+
{
|
|
112
|
+
styleType: 'borderless',
|
|
113
|
+
size: 'small',
|
|
114
|
+
'aria-label': 'Close',
|
|
115
|
+
ref: ref,
|
|
116
|
+
...rest,
|
|
117
|
+
},
|
|
118
|
+
children ?? React.createElement(index_js_1.SvgCloseSmall, null),
|
|
119
|
+
);
|
|
120
|
+
});
|
|
121
|
+
AlertCloseButton.displayName = 'Alert.CloseButton';
|
|
37
122
|
/**
|
|
38
123
|
* A small box to quickly grab user attention and communicate a brief message
|
|
39
124
|
* @example
|
|
40
|
-
* <Alert>This is
|
|
41
|
-
*
|
|
42
|
-
* <Alert type='
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* >
|
|
49
|
-
*
|
|
50
|
-
*
|
|
125
|
+
* <Alert>This is an alert.</Alert>
|
|
126
|
+
* @example
|
|
127
|
+
* <Alert.Wrapper type='informational'>
|
|
128
|
+
* <Alert.Icon />
|
|
129
|
+
* <Alert.Message>This is an informational alert.</Alert.Message>
|
|
130
|
+
* <Alert.CloseButton onClick={() => {}} />
|
|
131
|
+
* </Alert.Wrapper>
|
|
132
|
+
* @example
|
|
133
|
+
* <Alert.Wrapper type='positive'>
|
|
134
|
+
* <Alert.Icon>
|
|
135
|
+
* <SvgSmileyHappy />
|
|
136
|
+
* </Alert.Icon>
|
|
137
|
+
* <Alert.Message>
|
|
138
|
+
* This is an alert.
|
|
139
|
+
* <Alert.Action>This is clickable text.</Alert.Action>
|
|
140
|
+
* </Alert.Message>
|
|
141
|
+
* <Alert.CloseButton onClick={() => {}}>
|
|
142
|
+
* <SvgCollapse />
|
|
143
|
+
* </Alert.CloseButton>
|
|
144
|
+
* </Alert.Wrapper>
|
|
51
145
|
*/
|
|
52
|
-
exports.Alert =
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
146
|
+
exports.Alert = Object.assign(AlertComponent, {
|
|
147
|
+
/**
|
|
148
|
+
* Alert wrapper subcomponent
|
|
149
|
+
*/
|
|
150
|
+
Wrapper: AlertWrapper,
|
|
151
|
+
/**
|
|
152
|
+
* Alert icon subcomponent
|
|
153
|
+
*/
|
|
154
|
+
Icon: AlertIcon,
|
|
155
|
+
/**
|
|
156
|
+
* Alert message subcomponent
|
|
157
|
+
*/
|
|
158
|
+
Message: AlertMessage,
|
|
159
|
+
/**
|
|
160
|
+
* Alert action subcomponent for the link you want to provide.
|
|
161
|
+
*/
|
|
162
|
+
Action: AlertAction,
|
|
163
|
+
/**
|
|
164
|
+
* Alert close button subcomponent
|
|
165
|
+
*/
|
|
166
|
+
CloseButton: AlertCloseButton,
|
|
63
167
|
});
|
|
64
168
|
exports.default = exports.Alert;
|