@itwin/itwinui-react 1.48.1 → 2.0.0-dev.1
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/README.md +4 -22
- package/cjs/core/Alert/Alert.d.ts +7 -6
- package/cjs/core/Alert/Alert.js +13 -8
- package/cjs/core/Avatar/Avatar.d.ts +69 -0
- package/cjs/core/{UserIcon/UserIcon.js → Avatar/Avatar.js} +15 -11
- package/cjs/core/Avatar/index.d.ts +4 -0
- package/cjs/core/{UserIcon → Avatar}/index.js +5 -4
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +70 -0
- package/cjs/core/{UserIconGroup/UserIconGroup.js → AvatarGroup/AvatarGroup.js} +23 -19
- package/cjs/core/AvatarGroup/index.d.ts +4 -0
- package/cjs/core/{UserIconGroup → AvatarGroup}/index.js +5 -4
- package/cjs/core/Badge/Badge.js +2 -4
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +1 -2
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/cjs/core/Buttons/Button/Button.js +5 -14
- package/cjs/core/Buttons/DropdownButton/DropdownButton.js +1 -3
- package/cjs/core/Buttons/IconButton/IconButton.js +3 -9
- package/cjs/core/Buttons/IdeasButton/IdeasButton.js +1 -2
- package/cjs/core/Buttons/SplitButton/SplitButton.js +4 -8
- package/cjs/core/Carousel/CarouselNavigation.js +3 -4
- package/cjs/core/Checkbox/Checkbox.d.ts +1 -29
- package/cjs/core/Checkbox/Checkbox.js +3 -3
- package/cjs/core/ColorPicker/ColorBuilder.js +16 -27
- package/cjs/core/ColorPicker/ColorInputPanel.js +1 -2
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorSwatch.js +1 -6
- package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +1 -2
- package/cjs/core/ComboBox/ComboBoxMenu.js +2 -4
- package/cjs/core/DatePicker/DatePicker.js +4 -8
- package/cjs/core/Dialog/Dialog.d.ts +4 -4
- package/cjs/core/Dialog/Dialog.js +1 -1
- package/cjs/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/cjs/core/Dialog/DialogBackdrop.js +5 -2
- package/cjs/core/Dialog/DialogMain.d.ts +1 -1
- package/cjs/core/Dialog/DialogMain.js +7 -1
- package/cjs/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/cjs/core/Dialog/DialogTitleBar.js +1 -2
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +5 -6
- package/cjs/core/FileUpload/FileUploadTemplate.js +1 -2
- package/cjs/core/Header/Header.d.ts +16 -6
- package/cjs/core/Header/Header.js +9 -12
- package/cjs/core/Header/HeaderBasicButton.d.ts +6 -0
- package/cjs/core/Header/HeaderBasicButton.js +52 -0
- package/cjs/core/Header/HeaderBreadcrumbs.js +6 -5
- package/cjs/core/Header/HeaderButton.d.ts +3 -2
- package/cjs/core/Header/HeaderButton.js +10 -18
- package/cjs/core/Header/HeaderDropdownButton.d.ts +6 -0
- package/cjs/core/Header/HeaderDropdownButton.js +53 -0
- package/cjs/core/Header/HeaderLogo.js +3 -3
- package/cjs/core/Header/HeaderSplitButton.d.ts +6 -0
- package/cjs/core/Header/HeaderSplitButton.js +54 -0
- package/cjs/core/InformationPanel/InformationPanelHeader.js +1 -2
- package/cjs/core/Input/Input.d.ts +1 -1
- package/cjs/core/Input/Input.js +3 -4
- package/cjs/core/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/core/InputGroup/InputGroup.js +1 -1
- package/cjs/core/Label/Label.d.ts +1 -1
- package/cjs/core/Label/Label.js +1 -1
- package/cjs/core/LabeledInput/LabeledInput.d.ts +2 -2
- package/cjs/core/LabeledInput/LabeledInput.js +1 -1
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +1 -1
- package/cjs/core/LabeledSelect/LabeledSelect.js +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +1 -1
- package/cjs/core/Menu/MenuItem.js +1 -2
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +2 -4
- package/cjs/core/Radio/Radio.d.ts +1 -29
- package/cjs/core/Radio/Radio.js +3 -3
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +1 -1
- package/cjs/core/Select/Select.d.ts +1 -1
- package/cjs/core/Select/Select.js +10 -14
- package/cjs/core/Select/SelectTag.d.ts +1 -1
- package/cjs/core/Select/SelectTag.js +1 -1
- package/cjs/core/SideNavigation/SideNavigation.js +1 -2
- package/cjs/core/SideNavigation/SidenavButton.js +1 -2
- package/cjs/core/Stepper/Stepper.d.ts +40 -0
- package/cjs/core/{Wizard/Wizard.js → Stepper/Stepper.js} +11 -28
- package/cjs/core/{Wizard/Step.d.ts → Stepper/StepperStep.d.ts} +6 -7
- package/cjs/core/{Wizard/Step.js → Stepper/StepperStep.js} +10 -10
- package/cjs/core/Stepper/Wizard.d.ts +46 -0
- package/cjs/core/Stepper/Wizard.js +55 -0
- package/cjs/core/Stepper/WorkflowDiagram.d.ts +6 -0
- package/cjs/core/Stepper/WorkflowDiagram.js +43 -0
- package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +5 -0
- package/cjs/core/Stepper/WorkflowDiagramStep.js +42 -0
- package/cjs/core/Stepper/index.d.ts +8 -0
- package/cjs/core/{Wizard → Stepper}/index.js +5 -1
- package/cjs/core/Surface/Surface.d.ts +0 -2
- package/cjs/core/Surface/Surface.js +10 -10
- package/cjs/core/Table/SubRowExpander.js +3 -3
- package/cjs/core/Table/Table.d.ts +5 -4
- package/cjs/core/Table/Table.js +30 -23
- package/cjs/core/Table/TableCell.js +4 -4
- package/cjs/core/Table/TablePaginator.js +16 -19
- package/cjs/core/Table/TableRowMemoized.d.ts +2 -0
- package/cjs/core/Table/TableRowMemoized.js +10 -13
- package/cjs/core/Table/cells/DefaultCell.js +4 -9
- package/cjs/core/Table/columns/actionColumn.js +3 -3
- package/cjs/core/Table/columns/expanderColumn.js +3 -3
- package/cjs/core/Table/filters/BaseFilter.js +1 -1
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +1 -2
- package/cjs/core/Table/filters/FilterToggle.js +2 -4
- package/cjs/core/Table/hooks/useColumnDragAndDrop.js +4 -4
- package/cjs/core/Table/hooks/useResizeColumns.js +110 -106
- package/cjs/core/Tabs/Tab.d.ts +0 -8
- package/cjs/core/Tabs/Tab.js +1 -5
- package/cjs/core/Tabs/Tabs.d.ts +32 -12
- package/cjs/core/Tabs/Tabs.js +16 -12
- package/cjs/core/Tabs/index.d.ts +4 -4
- package/cjs/core/Tabs/index.js +2 -2
- package/cjs/core/Tag/Tag.js +1 -2
- package/cjs/core/Textarea/Textarea.d.ts +1 -1
- package/cjs/core/Textarea/Textarea.js +2 -2
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +27 -17
- package/cjs/core/ThemeProvider/ThemeProvider.js +64 -7
- package/cjs/core/Tile/Tile.d.ts +19 -1
- package/cjs/core/Tile/Tile.js +36 -16
- package/cjs/core/Toast/Toast.d.ts +3 -3
- package/cjs/core/Toast/Toast.js +4 -5
- package/cjs/core/Toast/ToastWrapper.d.ts +1 -1
- package/cjs/core/Toast/ToastWrapper.js +1 -1
- package/cjs/core/Tree/TreeNode.js +1 -7
- package/cjs/core/Tree/TreeNodeExpander.js +2 -2
- package/cjs/core/Typography/Body/Body.d.ts +5 -3
- package/cjs/core/Typography/Body/Body.js +2 -3
- package/cjs/core/Typography/Headline/Headline.d.ts +2 -3
- package/cjs/core/Typography/Headline/Headline.js +2 -3
- package/cjs/core/Typography/Leading/Leading.d.ts +2 -3
- package/cjs/core/Typography/Leading/Leading.js +2 -3
- package/cjs/core/Typography/Small/Small.d.ts +2 -3
- package/cjs/core/Typography/Small/Small.js +2 -3
- package/cjs/core/Typography/Subheading/Subheading.d.ts +2 -3
- package/cjs/core/Typography/Subheading/Subheading.js +2 -3
- package/cjs/core/Typography/Text/Text.d.ts +2 -0
- package/cjs/core/Typography/Text/Text.js +2 -0
- package/cjs/core/Typography/Title/Title.d.ts +2 -3
- package/cjs/core/Typography/Title/Title.js +2 -3
- package/cjs/core/index.d.ts +8 -8
- package/cjs/core/index.js +14 -10
- package/cjs/core/utils/components/Popover.d.ts +2 -2
- package/cjs/core/utils/components/Popover.js +1 -1
- package/cjs/core/utils/components/Resizer.d.ts +5 -0
- package/cjs/core/utils/components/Resizer.js +7 -1
- package/cjs/core/utils/components/VisuallyHidden.d.ts +1 -0
- package/cjs/core/utils/components/VisuallyHidden.js +1 -0
- package/cjs/core/utils/components/index.d.ts +0 -1
- package/cjs/core/utils/components/index.js +0 -1
- package/cjs/core/utils/functions/colors.d.ts +12 -12
- package/cjs/core/utils/functions/colors.js +12 -12
- package/cjs/core/utils/hooks/index.d.ts +1 -0
- package/cjs/core/utils/hooks/index.js +1 -0
- package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.d.ts +7 -0
- package/cjs/core/utils/hooks/useIsomorphicLayoutEffect.js +17 -0
- package/cjs/core/utils/hooks/useMediaQuery.js +2 -1
- package/cjs/core/utils/hooks/useTheme.d.ts +20 -3
- package/cjs/core/utils/hooks/useTheme.js +57 -58
- package/cjs/core/utils/{components/icons.d.ts → icons/StatusIconMap.d.ts} +1 -1
- package/cjs/core/utils/icons/StatusIconMap.js +52 -0
- package/cjs/core/utils/icons/SvgCalendar.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCalendar.js +47 -0
- package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCaretDownSmall.js +47 -0
- package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCaretRightSmall.js +47 -0
- package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCaretUpSmall.js +47 -0
- package/cjs/core/utils/icons/SvgCheckmark.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCheckmark.js +47 -0
- package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCheckmarkSmall.js +47 -0
- package/cjs/core/utils/icons/SvgChevronLeft.d.ts +2 -0
- package/cjs/core/utils/icons/SvgChevronLeft.js +47 -0
- package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +2 -0
- package/cjs/core/utils/icons/SvgChevronLeftDouble.js +47 -0
- package/cjs/core/utils/icons/SvgChevronRight.d.ts +2 -0
- package/cjs/core/utils/icons/SvgChevronRight.js +47 -0
- package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +2 -0
- package/cjs/core/utils/icons/SvgChevronRightDouble.js +47 -0
- package/cjs/core/utils/icons/SvgClose.d.ts +2 -0
- package/cjs/core/utils/icons/SvgClose.js +47 -0
- package/cjs/core/utils/icons/SvgCloseSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgCloseSmall.js +47 -0
- package/cjs/core/utils/icons/SvgColumnManager.d.ts +2 -0
- package/cjs/core/utils/icons/SvgColumnManager.js +47 -0
- package/cjs/core/utils/icons/SvgFilter.d.ts +2 -0
- package/cjs/core/utils/icons/SvgFilter.js +47 -0
- package/cjs/core/utils/icons/SvgFilterHollow.d.ts +2 -0
- package/cjs/core/utils/icons/SvgFilterHollow.js +47 -0
- package/cjs/core/utils/icons/SvgImportantSmall.d.ts +2 -0
- package/cjs/core/utils/icons/SvgImportantSmall.js +47 -0
- package/cjs/core/utils/icons/SvgInfoCircular.d.ts +2 -0
- package/cjs/core/utils/icons/SvgInfoCircular.js +47 -0
- package/cjs/core/utils/icons/SvgMore.d.ts +2 -0
- package/cjs/core/utils/icons/SvgMore.js +47 -0
- package/cjs/core/utils/icons/SvgMoreVertical.d.ts +2 -0
- package/cjs/core/utils/icons/SvgMoreVertical.js +47 -0
- package/cjs/core/utils/icons/SvgNew.d.ts +2 -0
- package/cjs/core/utils/icons/SvgNew.js +47 -0
- package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +2 -0
- package/cjs/core/utils/icons/SvgSmileyHappy.js +47 -0
- package/cjs/core/utils/icons/SvgSortDown.d.ts +2 -0
- package/cjs/core/utils/icons/SvgSortDown.js +47 -0
- package/cjs/core/utils/icons/SvgSortUp.d.ts +2 -0
- package/cjs/core/utils/icons/SvgSortUp.js +47 -0
- package/cjs/core/utils/icons/SvgStatusError.d.ts +2 -0
- package/cjs/core/utils/icons/SvgStatusError.js +47 -0
- package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +2 -0
- package/cjs/core/utils/icons/SvgStatusSuccess.js +47 -0
- package/cjs/core/utils/icons/SvgStatusWarning.d.ts +2 -0
- package/cjs/core/utils/icons/SvgStatusWarning.js +47 -0
- package/cjs/core/utils/icons/SvgSwap.d.ts +2 -0
- package/cjs/core/utils/icons/SvgSwap.js +47 -0
- package/cjs/core/utils/icons/SvgUpload.d.ts +2 -0
- package/cjs/core/utils/icons/SvgUpload.js +47 -0
- package/cjs/core/utils/icons/index.d.ts +29 -0
- package/cjs/core/utils/icons/index.js +49 -0
- package/cjs/core/utils/index.d.ts +1 -0
- package/cjs/core/utils/index.js +1 -0
- package/esm/core/Alert/Alert.d.ts +7 -6
- package/esm/core/Alert/Alert.js +14 -9
- package/esm/core/Avatar/Avatar.d.ts +69 -0
- package/esm/core/{UserIcon/UserIcon.js → Avatar/Avatar.js} +13 -9
- package/esm/core/Avatar/index.d.ts +4 -0
- package/esm/core/{UserIcon → Avatar}/index.js +2 -2
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +70 -0
- package/esm/core/{UserIconGroup/UserIconGroup.js → AvatarGroup/AvatarGroup.js} +21 -17
- package/esm/core/AvatarGroup/index.d.ts +4 -0
- package/esm/core/{UserIconGroup → AvatarGroup}/index.js +2 -2
- package/esm/core/Badge/Badge.js +3 -5
- package/esm/core/Breadcrumbs/Breadcrumbs.js +1 -2
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/esm/core/Buttons/Button/Button.js +5 -14
- package/esm/core/Buttons/DropdownButton/DropdownButton.js +2 -4
- package/esm/core/Buttons/IconButton/IconButton.js +3 -9
- package/esm/core/Buttons/IdeasButton/IdeasButton.js +2 -3
- package/esm/core/Buttons/SplitButton/SplitButton.js +5 -9
- package/esm/core/Carousel/CarouselNavigation.js +1 -2
- package/esm/core/Checkbox/Checkbox.d.ts +1 -29
- package/esm/core/Checkbox/Checkbox.js +3 -3
- package/esm/core/ColorPicker/ColorBuilder.js +17 -28
- package/esm/core/ColorPicker/ColorInputPanel.js +1 -2
- package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/esm/core/ColorPicker/ColorSwatch.js +2 -7
- package/esm/core/ComboBox/ComboBoxDropdown.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxEndIcon.js +1 -2
- package/esm/core/ComboBox/ComboBoxMenu.js +2 -4
- package/esm/core/DatePicker/DatePicker.js +1 -5
- package/esm/core/Dialog/Dialog.d.ts +4 -4
- package/esm/core/Dialog/Dialog.js +1 -1
- package/esm/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/esm/core/Dialog/DialogBackdrop.js +5 -2
- package/esm/core/Dialog/DialogMain.d.ts +1 -1
- package/esm/core/Dialog/DialogMain.js +7 -1
- package/esm/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/esm/core/Dialog/DialogTitleBar.js +1 -2
- package/esm/core/ExpandableBlock/ExpandableBlock.js +5 -6
- package/esm/core/FileUpload/FileUploadTemplate.js +1 -2
- package/esm/core/Header/Header.d.ts +16 -6
- package/esm/core/Header/Header.js +9 -12
- package/esm/core/Header/HeaderBasicButton.d.ts +6 -0
- package/esm/core/Header/HeaderBasicButton.js +46 -0
- package/esm/core/Header/HeaderBreadcrumbs.js +7 -6
- package/esm/core/Header/HeaderButton.d.ts +3 -2
- package/esm/core/Header/HeaderButton.js +10 -18
- package/esm/core/Header/HeaderDropdownButton.d.ts +6 -0
- package/esm/core/Header/HeaderDropdownButton.js +47 -0
- package/esm/core/Header/HeaderLogo.js +3 -3
- package/esm/core/Header/HeaderSplitButton.d.ts +6 -0
- package/esm/core/Header/HeaderSplitButton.js +48 -0
- package/esm/core/InformationPanel/InformationPanelHeader.js +1 -2
- package/esm/core/Input/Input.d.ts +1 -1
- package/esm/core/Input/Input.js +3 -4
- package/esm/core/InputGroup/InputGroup.d.ts +1 -1
- package/esm/core/InputGroup/InputGroup.js +1 -1
- package/esm/core/Label/Label.d.ts +1 -1
- package/esm/core/Label/Label.js +1 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +2 -2
- package/esm/core/LabeledInput/LabeledInput.js +1 -1
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +1 -1
- package/esm/core/LabeledSelect/LabeledSelect.js +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.js +1 -1
- package/esm/core/Menu/MenuItem.js +1 -2
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +3 -5
- package/esm/core/Radio/Radio.d.ts +1 -29
- package/esm/core/Radio/Radio.js +3 -3
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +1 -1
- package/esm/core/Select/Select.d.ts +1 -1
- package/esm/core/Select/Select.js +10 -14
- package/esm/core/Select/SelectTag.d.ts +1 -1
- package/esm/core/Select/SelectTag.js +1 -1
- package/esm/core/SideNavigation/SideNavigation.js +1 -2
- package/esm/core/SideNavigation/SidenavButton.js +1 -2
- package/esm/core/Stepper/Stepper.d.ts +40 -0
- package/esm/core/{Wizard/Wizard.js → Stepper/Stepper.js} +10 -27
- package/esm/core/{Wizard/Step.d.ts → Stepper/StepperStep.d.ts} +6 -7
- package/esm/core/{Wizard/Step.js → Stepper/StepperStep.js} +8 -8
- package/esm/core/Stepper/Wizard.d.ts +46 -0
- package/esm/core/Stepper/Wizard.js +49 -0
- package/esm/core/Stepper/WorkflowDiagram.d.ts +6 -0
- package/esm/core/Stepper/WorkflowDiagram.js +37 -0
- package/esm/core/Stepper/WorkflowDiagramStep.d.ts +5 -0
- package/esm/core/Stepper/WorkflowDiagramStep.js +35 -0
- package/esm/core/Stepper/index.d.ts +8 -0
- package/esm/core/{Wizard → Stepper}/index.js +2 -0
- package/esm/core/Surface/Surface.d.ts +0 -2
- package/esm/core/Surface/Surface.js +11 -11
- package/esm/core/Table/SubRowExpander.js +2 -2
- package/esm/core/Table/Table.d.ts +5 -4
- package/esm/core/Table/Table.js +31 -24
- package/esm/core/Table/TableCell.js +4 -4
- package/esm/core/Table/TablePaginator.js +15 -18
- package/esm/core/Table/TableRowMemoized.d.ts +2 -0
- package/esm/core/Table/TableRowMemoized.js +10 -13
- package/esm/core/Table/cells/DefaultCell.js +4 -9
- package/esm/core/Table/columns/actionColumn.js +2 -2
- package/esm/core/Table/columns/expanderColumn.js +2 -2
- package/esm/core/Table/filters/BaseFilter.js +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +1 -2
- package/esm/core/Table/filters/FilterToggle.js +2 -4
- package/esm/core/Table/hooks/useColumnDragAndDrop.js +4 -4
- package/esm/core/Table/hooks/useResizeColumns.js +110 -106
- package/esm/core/Tabs/Tab.d.ts +0 -8
- package/esm/core/Tabs/Tab.js +0 -4
- package/esm/core/Tabs/Tabs.d.ts +32 -12
- package/esm/core/Tabs/Tabs.js +17 -13
- package/esm/core/Tabs/index.d.ts +4 -4
- package/esm/core/Tabs/index.js +2 -2
- package/esm/core/Tag/Tag.js +1 -2
- package/esm/core/Textarea/Textarea.d.ts +1 -1
- package/esm/core/Textarea/Textarea.js +2 -2
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +27 -17
- package/esm/core/ThemeProvider/ThemeProvider.js +64 -6
- package/esm/core/Tile/Tile.d.ts +19 -1
- package/esm/core/Tile/Tile.js +36 -16
- package/esm/core/Toast/Toast.d.ts +3 -3
- package/esm/core/Toast/Toast.js +4 -5
- package/esm/core/Toast/ToastWrapper.d.ts +1 -1
- package/esm/core/Toast/ToastWrapper.js +1 -1
- package/esm/core/Tree/TreeNode.js +2 -8
- package/esm/core/Tree/TreeNodeExpander.js +1 -1
- package/esm/core/Typography/Body/Body.d.ts +5 -3
- package/esm/core/Typography/Body/Body.js +2 -3
- package/esm/core/Typography/Headline/Headline.d.ts +2 -3
- package/esm/core/Typography/Headline/Headline.js +2 -3
- package/esm/core/Typography/Leading/Leading.d.ts +2 -3
- package/esm/core/Typography/Leading/Leading.js +2 -3
- package/esm/core/Typography/Small/Small.d.ts +2 -3
- package/esm/core/Typography/Small/Small.js +2 -3
- package/esm/core/Typography/Subheading/Subheading.d.ts +2 -3
- package/esm/core/Typography/Subheading/Subheading.js +2 -3
- package/esm/core/Typography/Text/Text.d.ts +2 -0
- package/esm/core/Typography/Text/Text.js +2 -0
- package/esm/core/Typography/Title/Title.d.ts +2 -3
- package/esm/core/Typography/Title/Title.js +2 -3
- package/esm/core/index.d.ts +8 -8
- package/esm/core/index.js +4 -4
- package/esm/core/utils/components/Popover.d.ts +2 -2
- package/esm/core/utils/components/Popover.js +1 -1
- package/esm/core/utils/components/Resizer.d.ts +5 -0
- package/esm/core/utils/components/Resizer.js +7 -1
- package/esm/core/utils/components/VisuallyHidden.d.ts +1 -0
- package/esm/core/utils/components/VisuallyHidden.js +1 -0
- package/esm/core/utils/components/index.d.ts +0 -1
- package/esm/core/utils/components/index.js +0 -1
- package/esm/core/utils/functions/colors.d.ts +12 -12
- package/esm/core/utils/functions/colors.js +12 -12
- package/esm/core/utils/hooks/index.d.ts +1 -0
- package/esm/core/utils/hooks/index.js +1 -0
- package/esm/core/utils/hooks/useIsomorphicLayoutEffect.d.ts +7 -0
- package/esm/core/utils/hooks/useIsomorphicLayoutEffect.js +11 -0
- package/esm/core/utils/hooks/useMediaQuery.js +2 -1
- package/esm/core/utils/hooks/useTheme.d.ts +20 -3
- package/esm/core/utils/hooks/useTheme.js +56 -57
- package/esm/core/utils/{components/icons.d.ts → icons/StatusIconMap.d.ts} +1 -1
- package/esm/core/utils/{components/icons.js → icons/StatusIconMap.js} +5 -5
- package/esm/core/utils/icons/SvgCalendar.d.ts +2 -0
- package/esm/core/utils/icons/SvgCalendar.js +20 -0
- package/esm/core/utils/icons/SvgCaretDownSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCaretDownSmall.js +20 -0
- package/esm/core/utils/icons/SvgCaretRightSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCaretRightSmall.js +20 -0
- package/esm/core/utils/icons/SvgCaretUpSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCaretUpSmall.js +20 -0
- package/esm/core/utils/icons/SvgCheckmark.d.ts +2 -0
- package/esm/core/utils/icons/SvgCheckmark.js +20 -0
- package/esm/core/utils/icons/SvgCheckmarkSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCheckmarkSmall.js +20 -0
- package/esm/core/utils/icons/SvgChevronLeft.d.ts +2 -0
- package/esm/core/utils/icons/SvgChevronLeft.js +20 -0
- package/esm/core/utils/icons/SvgChevronLeftDouble.d.ts +2 -0
- package/esm/core/utils/icons/SvgChevronLeftDouble.js +20 -0
- package/esm/core/utils/icons/SvgChevronRight.d.ts +2 -0
- package/esm/core/utils/icons/SvgChevronRight.js +20 -0
- package/esm/core/utils/icons/SvgChevronRightDouble.d.ts +2 -0
- package/esm/core/utils/icons/SvgChevronRightDouble.js +20 -0
- package/esm/core/utils/icons/SvgClose.d.ts +2 -0
- package/esm/core/utils/icons/SvgClose.js +20 -0
- package/esm/core/utils/icons/SvgCloseSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgCloseSmall.js +20 -0
- package/esm/core/utils/icons/SvgColumnManager.d.ts +2 -0
- package/esm/core/utils/icons/SvgColumnManager.js +20 -0
- package/esm/core/utils/icons/SvgFilter.d.ts +2 -0
- package/esm/core/utils/icons/SvgFilter.js +20 -0
- package/esm/core/utils/icons/SvgFilterHollow.d.ts +2 -0
- package/esm/core/utils/icons/SvgFilterHollow.js +20 -0
- package/esm/core/utils/icons/SvgImportantSmall.d.ts +2 -0
- package/esm/core/utils/icons/SvgImportantSmall.js +20 -0
- package/esm/core/utils/icons/SvgInfoCircular.d.ts +2 -0
- package/esm/core/utils/icons/SvgInfoCircular.js +20 -0
- package/esm/core/utils/icons/SvgMore.d.ts +2 -0
- package/esm/core/utils/icons/SvgMore.js +20 -0
- package/esm/core/utils/icons/SvgMoreVertical.d.ts +2 -0
- package/esm/core/utils/icons/SvgMoreVertical.js +20 -0
- package/esm/core/utils/icons/SvgNew.d.ts +2 -0
- package/esm/core/utils/icons/SvgNew.js +20 -0
- package/esm/core/utils/icons/SvgSmileyHappy.d.ts +2 -0
- package/esm/core/utils/icons/SvgSmileyHappy.js +20 -0
- package/esm/core/utils/icons/SvgSortDown.d.ts +2 -0
- package/esm/core/utils/icons/SvgSortDown.js +20 -0
- package/esm/core/utils/icons/SvgSortUp.d.ts +2 -0
- package/esm/core/utils/icons/SvgSortUp.js +20 -0
- package/esm/core/utils/icons/SvgStatusError.d.ts +2 -0
- package/esm/core/utils/icons/SvgStatusError.js +20 -0
- package/esm/core/utils/icons/SvgStatusSuccess.d.ts +2 -0
- package/esm/core/utils/icons/SvgStatusSuccess.js +20 -0
- package/esm/core/utils/icons/SvgStatusWarning.d.ts +2 -0
- package/esm/core/utils/icons/SvgStatusWarning.js +20 -0
- package/esm/core/utils/icons/SvgSwap.d.ts +2 -0
- package/esm/core/utils/icons/SvgSwap.js +20 -0
- package/esm/core/utils/icons/SvgUpload.d.ts +2 -0
- package/esm/core/utils/icons/SvgUpload.js +20 -0
- package/esm/core/utils/icons/index.d.ts +29 -0
- package/esm/core/utils/icons/index.js +33 -0
- package/esm/core/utils/index.d.ts +1 -0
- package/esm/core/utils/index.js +1 -0
- package/package.json +3 -3
- package/cjs/core/UserIcon/UserIcon.d.ts +0 -57
- package/cjs/core/UserIcon/index.d.ts +0 -4
- package/cjs/core/UserIconGroup/UserIconGroup.d.ts +0 -62
- package/cjs/core/UserIconGroup/index.d.ts +0 -4
- package/cjs/core/Wizard/Wizard.d.ts +0 -54
- package/cjs/core/Wizard/index.d.ts +0 -4
- package/cjs/core/utils/components/icons.js +0 -32
- package/esm/core/UserIcon/UserIcon.d.ts +0 -57
- package/esm/core/UserIcon/index.d.ts +0 -4
- package/esm/core/UserIconGroup/UserIconGroup.d.ts +0 -62
- package/esm/core/UserIconGroup/index.d.ts +0 -4
- package/esm/core/Wizard/Wizard.d.ts +0 -54
- package/esm/core/Wizard/index.d.ts +0 -4
package/esm/core/Tile/Tile.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare type TileProps = {
|
|
|
33
33
|
* // ...
|
|
34
34
|
* thumbnail='/url/to/image.jpg'
|
|
35
35
|
* // or
|
|
36
|
-
* thumbnail={<
|
|
36
|
+
* thumbnail={<Avatar image={<img src='icon.png' />} />}
|
|
37
37
|
* // or
|
|
38
38
|
* thumbnail={<SvgImodelHollow />}
|
|
39
39
|
* />
|
|
@@ -61,6 +61,10 @@ export declare type TileProps = {
|
|
|
61
61
|
* Dropdown menu containing `MenuItem`s.
|
|
62
62
|
*/
|
|
63
63
|
moreOptions?: React.ReactNode[];
|
|
64
|
+
/**
|
|
65
|
+
* Status of the tile.
|
|
66
|
+
*/
|
|
67
|
+
status?: 'positive' | 'warning' | 'negative';
|
|
64
68
|
/**
|
|
65
69
|
* Whether the tile is selected or in "active" state.
|
|
66
70
|
* Gets highlighted and shows a checkmark icon near tile name.
|
|
@@ -84,6 +88,20 @@ export declare type TileProps = {
|
|
|
84
88
|
* It becomes focusable and gets on hover styling.
|
|
85
89
|
*/
|
|
86
90
|
isActionable?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Display a loading state.
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
isLoading?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Flag whether the tile is disabled.
|
|
98
|
+
*
|
|
99
|
+
* Note: This only affects the tile. You need to manually disable
|
|
100
|
+
* the buttons and other interactive elements inside the tile.
|
|
101
|
+
*
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
104
|
+
isDisabled?: boolean;
|
|
87
105
|
} & React.ComponentPropsWithoutRef<'div'>;
|
|
88
106
|
/**
|
|
89
107
|
* Tile component that displays content and actions in a card-like format.
|
package/esm/core/Tile/Tile.js
CHANGED
|
@@ -26,13 +26,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import cx from 'classnames';
|
|
29
|
-
import SvgCheckmark from '
|
|
30
|
-
import SvgMore from '@itwin/itwinui-icons-react/cjs/icons/More';
|
|
31
|
-
import SvgNew from '@itwin/itwinui-icons-react/cjs/icons/New';
|
|
32
|
-
import { useTheme } from '../utils';
|
|
29
|
+
import { StatusIconMap, useTheme, SvgMore, SvgNew, SvgCheckmark, } from '../utils';
|
|
33
30
|
import '@itwin/itwinui-css/css/tile.css';
|
|
34
31
|
import { DropdownMenu } from '../DropdownMenu';
|
|
35
32
|
import { IconButton } from '../Buttons';
|
|
33
|
+
import { ProgressRadial } from '../ProgressIndicators';
|
|
36
34
|
/**
|
|
37
35
|
* Tile component that displays content and actions in a card-like format.
|
|
38
36
|
* @example
|
|
@@ -51,17 +49,21 @@ import { IconButton } from '../Buttons';
|
|
|
51
49
|
* />
|
|
52
50
|
*/
|
|
53
51
|
export var Tile = function (props) {
|
|
54
|
-
var
|
|
52
|
+
var _a;
|
|
53
|
+
var className = props.className, name = props.name, description = props.description, metadata = props.metadata, thumbnail = props.thumbnail, buttons = props.buttons, leftIcon = props.leftIcon, rightIcon = props.rightIcon, badge = props.badge, isNew = props.isNew, isSelected = props.isSelected, moreOptions = props.moreOptions, _b = props.variant, variant = _b === void 0 ? 'default' : _b, children = props.children, isActionable = props.isActionable, status = props.status, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, _d = props.isDisabled, isDisabled = _d === void 0 ? false : _d, rest = __rest(props, ["className", "name", "description", "metadata", "thumbnail", "buttons", "leftIcon", "rightIcon", "badge", "isNew", "isSelected", "moreOptions", "variant", "children", "isActionable", "status", "isLoading", "isDisabled"]);
|
|
55
54
|
useTheme();
|
|
56
|
-
var
|
|
55
|
+
var _e = React.useState(false), isMenuVisible = _e[0], setIsMenuVisible = _e[1];
|
|
57
56
|
var showMenu = React.useCallback(function () { return setIsMenuVisible(true); }, []);
|
|
58
57
|
var hideMenu = React.useCallback(function () { return setIsMenuVisible(false); }, []);
|
|
59
|
-
return (React.createElement("div", __assign({ className: cx('iui-tile', {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
return (React.createElement("div", __assign({ className: cx('iui-tile', (_a = {
|
|
59
|
+
'iui-folder': variant === 'folder',
|
|
60
|
+
'iui-new': isNew,
|
|
61
|
+
'iui-selected': isSelected,
|
|
62
|
+
'iui-actionable': isActionable
|
|
63
|
+
},
|
|
64
|
+
_a["iui-".concat(status)] = !!status,
|
|
65
|
+
_a['iui-loading'] = isLoading,
|
|
66
|
+
_a), className), "aria-disabled": isDisabled, tabIndex: isActionable && !isDisabled ? 0 : undefined }, rest),
|
|
65
67
|
thumbnail && (React.createElement("div", { className: 'iui-tile-thumbnail' },
|
|
66
68
|
typeof thumbnail === 'string' ? (React.createElement("div", { className: 'iui-tile-thumbnail-picture', style: { backgroundImage: "url(".concat(thumbnail, ")") } })) : thumbnail && thumbnail.type === 'img' ? (React.cloneElement(thumbnail, {
|
|
67
69
|
className: 'iui-tile-thumbnail-picture',
|
|
@@ -70,17 +72,18 @@ export var Tile = function (props) {
|
|
|
70
72
|
})) : (thumbnail),
|
|
71
73
|
leftIcon &&
|
|
72
74
|
React.cloneElement(leftIcon, {
|
|
73
|
-
className: 'iui-
|
|
75
|
+
className: 'iui-tile-thumbnail-type-indicator',
|
|
76
|
+
'data-iui-size': 'small',
|
|
74
77
|
}),
|
|
75
78
|
rightIcon &&
|
|
76
79
|
React.cloneElement(rightIcon, {
|
|
77
|
-
className: 'iui-
|
|
80
|
+
className: 'iui-tile-thumbnail-quick-action',
|
|
81
|
+
'data-iui-size': 'small',
|
|
78
82
|
}),
|
|
79
83
|
badge && (React.createElement("div", { className: 'iui-tile-thumbnail-badge-container' }, badge)))),
|
|
80
84
|
React.createElement("div", { className: 'iui-tile-content' },
|
|
81
85
|
React.createElement("div", { className: 'iui-tile-name' },
|
|
82
|
-
|
|
83
|
-
isNew && (React.createElement(SvgNew, { className: cx('iui-tile-status-icon', 'iui-positive'), "aria-hidden": true })),
|
|
86
|
+
React.createElement(TitleIcon, { isLoading: isLoading, isSelected: isSelected, isNew: isNew, status: status }),
|
|
84
87
|
React.createElement("span", { className: 'iui-tile-name-label' }, name)),
|
|
85
88
|
description != undefined && (React.createElement("div", { className: 'iui-tile-description' }, description)),
|
|
86
89
|
metadata != undefined && (React.createElement("div", { className: 'iui-tile-metadata' }, metadata)),
|
|
@@ -103,4 +106,21 @@ export var Tile = function (props) {
|
|
|
103
106
|
children),
|
|
104
107
|
buttons && React.createElement("div", { className: 'iui-tile-buttons' }, buttons)));
|
|
105
108
|
};
|
|
109
|
+
var TitleIcon = function (_a) {
|
|
110
|
+
var _b = _a.isLoading, isLoading = _b === void 0 ? false : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, _d = _a.isNew, isNew = _d === void 0 ? false : _d, status = _a.status;
|
|
111
|
+
var StatusIcon = !!status && StatusIconMap[status];
|
|
112
|
+
if (isLoading) {
|
|
113
|
+
return (React.createElement(ProgressRadial, { className: 'iui-tile-status-icon', "aria-hidden": true, indeterminate: true }));
|
|
114
|
+
}
|
|
115
|
+
if (isSelected) {
|
|
116
|
+
return React.createElement(SvgCheckmark, { className: 'iui-tile-status-icon', "aria-hidden": true });
|
|
117
|
+
}
|
|
118
|
+
if (isNew) {
|
|
119
|
+
return React.createElement(SvgNew, { className: 'iui-tile-status-icon', "aria-hidden": true });
|
|
120
|
+
}
|
|
121
|
+
if (StatusIcon) {
|
|
122
|
+
return React.createElement(StatusIcon, { className: 'iui-tile-status-icon' });
|
|
123
|
+
}
|
|
124
|
+
return null;
|
|
125
|
+
};
|
|
106
126
|
export default Tile;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CommonProps } from '../utils';
|
|
3
|
-
import '@itwin/itwinui-css/css/toast
|
|
3
|
+
import '@itwin/itwinui-css/css/toast.css';
|
|
4
4
|
export declare type ToastCategory = 'informational' | 'negative' | 'positive' | 'warning';
|
|
5
5
|
export declare type ToastProps = {
|
|
6
6
|
/**
|
|
@@ -58,7 +58,7 @@ export declare type ToastProps = {
|
|
|
58
58
|
placementPosition?: 'top' | 'bottom';
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
|
-
* Generic Toast
|
|
61
|
+
* Generic Toast Component
|
|
62
62
|
* @example
|
|
63
63
|
* <Toast type='persisting' content='Job processing completed.' category='positive' link={{onClick:() => {alert('Link callback')}, title:'View the report'}} />
|
|
64
64
|
* <Toast type='temporary' content='Processing completed.' category='positive' />
|
|
@@ -70,7 +70,7 @@ export declare type ToastPresentationProps = Omit<ToastProps, 'duration' | 'id'
|
|
|
70
70
|
onClose?: () => void;
|
|
71
71
|
} & CommonProps;
|
|
72
72
|
/**
|
|
73
|
-
* The presentational part of a toast
|
|
73
|
+
* The presentational part of a toast, without any animation or logic.
|
|
74
74
|
* @private
|
|
75
75
|
*/
|
|
76
76
|
export declare const ToastPresentation: (props: ToastPresentationProps) => JSX.Element;
|
package/esm/core/Toast/Toast.js
CHANGED
|
@@ -26,13 +26,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import { Transition } from 'react-transition-group';
|
|
29
|
-
import SvgCloseSmall from '@itwin/itwinui-icons-react/cjs/icons/CloseSmall';
|
|
30
29
|
import cx from 'classnames';
|
|
31
|
-
import { useTheme, getWindow, StatusIconMap } from '../utils';
|
|
32
|
-
import '@itwin/itwinui-css/css/toast
|
|
30
|
+
import { useTheme, getWindow, StatusIconMap, SvgCloseSmall, } from '../utils';
|
|
31
|
+
import '@itwin/itwinui-css/css/toast.css';
|
|
33
32
|
import { IconButton } from '../Buttons';
|
|
34
33
|
/**
|
|
35
|
-
* Generic Toast
|
|
34
|
+
* Generic Toast Component
|
|
36
35
|
* @example
|
|
37
36
|
* <Toast type='persisting' content='Job processing completed.' category='positive' link={{onClick:() => {alert('Link callback')}, title:'View the report'}} />
|
|
38
37
|
* <Toast type='temporary' content='Processing completed.' category='positive' />
|
|
@@ -127,7 +126,7 @@ export var Toast = function (props) {
|
|
|
127
126
|
React.createElement(ToastPresentation, { category: category, content: content, link: link, type: type, hasCloseButton: hasCloseButton, onClose: close })))));
|
|
128
127
|
};
|
|
129
128
|
/**
|
|
130
|
-
* The presentational part of a toast
|
|
129
|
+
* The presentational part of a toast, without any animation or logic.
|
|
131
130
|
* @private
|
|
132
131
|
*/
|
|
133
132
|
export var ToastPresentation = function (props) {
|
|
@@ -13,7 +13,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
14
14
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
15
15
|
*--------------------------------------------------------------------------------------------*/
|
|
16
|
-
import '@itwin/itwinui-css/css/toast
|
|
16
|
+
import '@itwin/itwinui-css/css/toast.css';
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import cx from 'classnames';
|
|
19
19
|
import Toast from './Toast';
|
|
@@ -25,7 +25,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
27
|
import React from 'react';
|
|
28
|
-
import { getFocusableElements,
|
|
28
|
+
import { getFocusableElements, useTheme } from '../utils';
|
|
29
29
|
import '@itwin/itwinui-css/css/tree.css';
|
|
30
30
|
import cx from 'classnames';
|
|
31
31
|
import { TreeNodeExpander } from './TreeNodeExpander';
|
|
@@ -55,12 +55,6 @@ export var TreeNode = function (props) {
|
|
|
55
55
|
var _e = useTreeContext(), nodeDepth = _e.nodeDepth, _f = _e.subNodeIds, subNodeIds = _f === void 0 ? [] : _f, parentNodeId = _e.parentNodeId, scrollToParent = _e.scrollToParent, groupSize = _e.groupSize, indexInGroup = _e.indexInGroup;
|
|
56
56
|
var _g = React.useState(false), isFocused = _g[0], setIsFocused = _g[1];
|
|
57
57
|
var nodeRef = React.useRef(null);
|
|
58
|
-
var styleDepth = React.useMemo(function () {
|
|
59
|
-
var _a, _b, _c;
|
|
60
|
-
return ((_c = (_b = (_a = getWindow()) === null || _a === void 0 ? void 0 : _a.CSS) === null || _b === void 0 ? void 0 : _b.supports) === null || _c === void 0 ? void 0 : _c.call(_b, "--level: ".concat(nodeDepth)))
|
|
61
|
-
? { '--level': nodeDepth }
|
|
62
|
-
: { marginLeft: nodeDepth ? nodeDepth * 28 : 0 };
|
|
63
|
-
}, [nodeDepth]);
|
|
64
58
|
var onKeyDown = function (event) {
|
|
65
59
|
var _a, _b, _c, _d, _e, _f;
|
|
66
60
|
var isNodeFocused = nodeRef.current === ((_a = nodeRef.current) === null || _a === void 0 ? void 0 : _a.ownerDocument.activeElement);
|
|
@@ -138,7 +132,7 @@ export var TreeNode = function (props) {
|
|
|
138
132
|
React.createElement("div", { className: cx('iui-tree-node', {
|
|
139
133
|
'iui-active': isSelected,
|
|
140
134
|
'iui-disabled': isDisabled,
|
|
141
|
-
}), style:
|
|
135
|
+
}), style: { '--level': nodeDepth }, onClick: function () { return !isDisabled && (onSelected === null || onSelected === void 0 ? void 0 : onSelected(nodeId, !isSelected)); } },
|
|
142
136
|
checkbox && React.isValidElement(checkbox)
|
|
143
137
|
? React.cloneElement(checkbox, {
|
|
144
138
|
className: cx('iui-tree-node-checkbox', checkbox.props.className),
|
|
@@ -26,7 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import cx from 'classnames';
|
|
29
|
-
import SvgChevronRight from '
|
|
29
|
+
import { SvgChevronRight } from '../utils';
|
|
30
30
|
import { IconButton } from '../Buttons/IconButton';
|
|
31
31
|
import '@itwin/itwinui-css/css/tree.css';
|
|
32
32
|
export var TreeNodeExpander = function (props) {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '@itwin/itwinui-css/css/text.css';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Since v2, use `Text` with variant 'body'.
|
|
5
|
+
*/
|
|
3
6
|
export declare type BodyProps = {
|
|
4
7
|
/**
|
|
5
8
|
* Set text to muted.
|
|
@@ -13,10 +16,9 @@ export declare type BodyProps = {
|
|
|
13
16
|
isSkeleton?: boolean;
|
|
14
17
|
} & React.HTMLAttributes<HTMLParagraphElement>;
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
19
|
+
* @deprecated Since v2, use `Text` with variant 'body'.
|
|
17
20
|
* @example
|
|
18
|
-
* <
|
|
19
|
-
* <Body isMuted>I'm some muted body text.</Body>
|
|
21
|
+
* <Text variant='body' as='p'>I'm some body text!</Text>
|
|
20
22
|
*/
|
|
21
23
|
export declare const Body: React.ForwardRefExoticComponent<{
|
|
22
24
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'body'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Body isMuted>I'm some muted body text.</Body>
|
|
34
|
+
* <Text variant='body' as='p'>I'm some body text!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Body = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, _b = props.isSkeleton, isSkeleton = _b === void 0 ? false : _b, rest = __rest(props, ["className", "isMuted", "isSkeleton"]);
|
|
@@ -8,10 +8,9 @@ export declare type HeadlineProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'headline'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Headline isMuted>I'm a muted headline.</Headline>
|
|
13
|
+
* <Text variant='headline' as='h1'>I'm a headline!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Headline: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'headline'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Headline isMuted>I'm a muted headline.</Headline>
|
|
34
|
+
* <Text variant='headline' as='h1'>I'm a headline!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Headline = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
|
@@ -8,10 +8,9 @@ export declare type LeadingProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'leading'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Leading isMuted>I'm a muted Leading.</Leading>
|
|
13
|
+
* <Text variant='leading' as='h3'>I'm a leading!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Leading: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'leading'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Leading isMuted>I'm a muted Leading.</Leading>
|
|
34
|
+
* <Text variant='leading' as='h3'>I'm a leading!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Leading = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
|
@@ -8,10 +8,9 @@ export declare type SmallProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLParagraphElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'small'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Small isMuted>I'm some muted small text.</Small>
|
|
13
|
+
* <Text variant='small' as='small'>I'm some small text!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Small: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'small'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Small isMuted>I'm some muted small text.</Small>
|
|
34
|
+
* <Text variant='small' as='small'>I'm some small text!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Small = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
|
@@ -8,10 +8,9 @@ export declare type SubheadingProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'subheading'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Subheading isMuted>I'm a muted subheading.</Subheading>
|
|
13
|
+
* <Text variant='subheading' as='h3'>I'm a subheading!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Subheading: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'subheading'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Subheading isMuted>I'm a muted subheading.</Subheading>
|
|
34
|
+
* <Text variant='subheading' as='h3'>I'm a subheading!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Subheading = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
|
@@ -30,6 +30,8 @@ export declare type TextProps<T extends React.ElementType = 'div'> = Polymorphic
|
|
|
30
30
|
declare type TextComponent = PolymorphicForwardRefComponent<'div', TextOwnProps>;
|
|
31
31
|
/**
|
|
32
32
|
* Polymorphic typography component to render any kind of text as any kind of element.
|
|
33
|
+
* Users should decide which element to render based on the context of their app. Link to heading levels docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#accessibility_concerns
|
|
34
|
+
*
|
|
33
35
|
* @example
|
|
34
36
|
* <Text>Some normal paragraph text rendered as a div</Text>
|
|
35
37
|
* @example
|
|
@@ -30,6 +30,8 @@ import { useTheme, } from '../../utils';
|
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
32
|
* Polymorphic typography component to render any kind of text as any kind of element.
|
|
33
|
+
* Users should decide which element to render based on the context of their app. Link to heading levels docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#accessibility_concerns
|
|
34
|
+
*
|
|
33
35
|
* @example
|
|
34
36
|
* <Text>Some normal paragraph text rendered as a div</Text>
|
|
35
37
|
* @example
|
|
@@ -8,10 +8,9 @@ export declare type TitleProps = {
|
|
|
8
8
|
isMuted?: boolean;
|
|
9
9
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated Since v2, use `Text` with variant 'title'.
|
|
12
12
|
* @example
|
|
13
|
-
* <
|
|
14
|
-
* <Title isMuted>I'm a muted title.</Title>
|
|
13
|
+
* <Text variant='title' as='h2'>I'm a title!</Text>
|
|
15
14
|
*/
|
|
16
15
|
export declare const Title: React.ForwardRefExoticComponent<{
|
|
17
16
|
/**
|
|
@@ -29,10 +29,9 @@ import React from 'react';
|
|
|
29
29
|
import { useTheme } from '../../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/text.css';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* @deprecated Since v2, use `Text` with variant 'title'.
|
|
33
33
|
* @example
|
|
34
|
-
* <
|
|
35
|
-
* <Title isMuted>I'm a muted title.</Title>
|
|
34
|
+
* <Text variant='title' as='h2'>I'm a title!</Text>
|
|
36
35
|
*/
|
|
37
36
|
export var Title = React.forwardRef(function (props, ref) {
|
|
38
37
|
var className = props.className, _a = props.isMuted, isMuted = _a === void 0 ? false : _a, rest = __rest(props, ["className", "isMuted"]);
|
package/esm/core/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export { Alert } from './Alert';
|
|
2
2
|
export type { AlertProps } from './Alert';
|
|
3
|
+
export { Avatar, UserIcon } from './Avatar';
|
|
4
|
+
export type { AvatarProps, StatusTitles, AvatarStatus, UserIconProps, UserIconStatus, } from './Avatar';
|
|
5
|
+
export { AvatarGroup, UserIconGroup } from './AvatarGroup';
|
|
6
|
+
export type { AvatarGroupProps, UserIconGroupProps } from './AvatarGroup';
|
|
3
7
|
export { Backdrop } from './Backdrop';
|
|
4
8
|
export type { BackdropProps } from './Backdrop';
|
|
5
9
|
export { Badge } from './Badge';
|
|
@@ -36,8 +40,8 @@ export { Footer, defaultFooterElements } from './Footer';
|
|
|
36
40
|
export type { FooterProps, FooterElement, TitleTranslations } from './Footer';
|
|
37
41
|
export { Header, HeaderBreadcrumbs, HeaderButton, HeaderLogo } from './Header';
|
|
38
42
|
export type { HeaderProps, HeaderBreadcrumbsProps, HeaderButtonProps, HeaderLogoProps, } from './Header';
|
|
39
|
-
export { VerticalTabs, Tab, HorizontalTabs
|
|
40
|
-
export type { VerticalTabsProps, TabProps, HorizontalTabsProps
|
|
43
|
+
export { VerticalTabs, Tabs, Tab, HorizontalTabs } from './Tabs';
|
|
44
|
+
export type { VerticalTabsProps, TabProps, HorizontalTabsProps } from './Tabs';
|
|
41
45
|
export { InformationPanel, InformationPanelWrapper, InformationPanelHeader, InformationPanelBody, InformationPanelContent, } from './InformationPanel';
|
|
42
46
|
export type { InformationPanelProps, InformationPanelWrapperProps, InformationPanelHeaderProps, InformationPanelBodyProps, InformationPanelContentProps, } from './InformationPanel';
|
|
43
47
|
export { Input } from './Input';
|
|
@@ -96,11 +100,7 @@ export { Tree, TreeNode, TreeNodeExpander } from './Tree';
|
|
|
96
100
|
export type { TreeProps, TreeNodeProps, TreeNodeExpanderProps, NodeData, NodeRenderProps, } from './Tree';
|
|
97
101
|
export { Anchor, Body, Headline, Leading, Small, Subheading, Title, Blockquote, Code, Kbd, KbdKeys, Text, } from './Typography';
|
|
98
102
|
export type { BodyProps, HeadlineProps, LeadingProps, SmallProps, SubheadingProps, TitleProps, BlockquoteProps, CodeProps, KbdProps, TextProps, } from './Typography';
|
|
99
|
-
export {
|
|
100
|
-
export type {
|
|
101
|
-
export { UserIconGroup } from './UserIconGroup';
|
|
102
|
-
export type { UserIconGroupProps } from './UserIconGroup';
|
|
103
|
-
export { Wizard } from './Wizard';
|
|
104
|
-
export type { WizardProps, StepProperties, WizardType, WizardLocalization, } from './Wizard';
|
|
103
|
+
export { Wizard, Stepper, WorkflowDiagram } from './Stepper';
|
|
104
|
+
export type { WizardProps, StepProperties, WizardType, WizardLocalization, StepperProps, StepperLocalization, WorkflowDiagramProps, } from './Stepper';
|
|
105
105
|
export { getUserColor, useTheme, ColorValue, MiddleTextTruncation, } from './utils';
|
|
106
106
|
export type { ThemeType, MiddleTextTruncationProps } from './utils';
|
package/esm/core/index.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
export { Alert } from './Alert';
|
|
6
|
+
export { Avatar, UserIcon } from './Avatar';
|
|
7
|
+
export { AvatarGroup, UserIconGroup } from './AvatarGroup';
|
|
6
8
|
export { Backdrop } from './Backdrop';
|
|
7
9
|
export { Badge } from './Badge';
|
|
8
10
|
export { Breadcrumbs } from './Breadcrumbs';
|
|
@@ -21,7 +23,7 @@ export { Fieldset } from './Fieldset';
|
|
|
21
23
|
export { FileUpload, FileUploadTemplate } from './FileUpload';
|
|
22
24
|
export { Footer, defaultFooterElements } from './Footer';
|
|
23
25
|
export { Header, HeaderBreadcrumbs, HeaderButton, HeaderLogo } from './Header';
|
|
24
|
-
export { VerticalTabs, Tab, HorizontalTabs
|
|
26
|
+
export { VerticalTabs, Tabs, Tab, HorizontalTabs } from './Tabs';
|
|
25
27
|
export { InformationPanel, InformationPanelWrapper, InformationPanelHeader, InformationPanelBody, InformationPanelContent, } from './InformationPanel';
|
|
26
28
|
export { Input } from './Input';
|
|
27
29
|
export { Label } from './Label';
|
|
@@ -51,7 +53,5 @@ export { ToggleSwitch } from './ToggleSwitch';
|
|
|
51
53
|
export { Tooltip } from './Tooltip';
|
|
52
54
|
export { Tree, TreeNode, TreeNodeExpander } from './Tree';
|
|
53
55
|
export { Anchor, Body, Headline, Leading, Small, Subheading, Title, Blockquote, Code, Kbd, KbdKeys, Text, } from './Typography';
|
|
54
|
-
export {
|
|
55
|
-
export { UserIconGroup } from './UserIconGroup';
|
|
56
|
-
export { Wizard } from './Wizard';
|
|
56
|
+
export { Wizard, Stepper, WorkflowDiagram } from './Stepper';
|
|
57
57
|
export { getUserColor, useTheme, ColorValue, MiddleTextTruncation, } from './utils';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
|
3
3
|
import type { Placement, Instance } from 'tippy.js';
|
|
4
4
|
export declare type PopoverInstance = Instance;
|
|
5
|
-
import '@itwin/itwinui-css/css/
|
|
5
|
+
import '@itwin/itwinui-css/css/utils.css';
|
|
6
6
|
export declare type PopoverProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Controlled flag for whether the popover is visible.
|
|
@@ -26,7 +26,7 @@ export declare type PopoverProps = {
|
|
|
26
26
|
* with pre-configured props and plugins (e.g. lazy mounting, focus, etc).
|
|
27
27
|
* @private
|
|
28
28
|
*/
|
|
29
|
-
export declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, "disabled" | "children" | "placement" | "trigger" | "visible" | "content" | "render" | "animateFill" | "appendTo" | "aria" | "delay" | "duration" | "followCursor" | "getReferenceClientRect" | "hideOnClick" | "ignoreAttributes" | "inlinePositioning" | "interactive" | "interactiveBorder" | "interactiveDebounce" | "moveTransition" | "offset" | "
|
|
29
|
+
export declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, "disabled" | "theme" | "className" | "role" | "children" | "plugins" | "placement" | "trigger" | "visible" | "content" | "render" | "animateFill" | "appendTo" | "aria" | "delay" | "duration" | "followCursor" | "getReferenceClientRect" | "hideOnClick" | "ignoreAttributes" | "inlinePositioning" | "interactive" | "interactiveBorder" | "interactiveDebounce" | "moveTransition" | "offset" | "popperOptions" | "showOnCreate" | "sticky" | "touch" | "triggerTarget" | "onAfterUpdate" | "onBeforeUpdate" | "onCreate" | "onDestroy" | "onHidden" | "onHide" | "onMount" | "onShow" | "onShown" | "onTrigger" | "onUntrigger" | "onClickOutside" | "allowHTML" | "animation" | "arrow" | "inertia" | "maxWidth" | "zIndex" | "singleton" | "reference"> & React.RefAttributes<unknown>>;
|
|
30
30
|
/**
|
|
31
31
|
* Plugin to hide Popover when either Esc key is pressed,
|
|
32
32
|
* or when the content inside is not tabbable and Tab key is pressed.
|
|
@@ -26,7 +26,7 @@ import React from 'react';
|
|
|
26
26
|
import cx from 'classnames';
|
|
27
27
|
import Tippy from '@tippyjs/react';
|
|
28
28
|
import { useMergedRefs } from '../hooks/useMergedRefs';
|
|
29
|
-
import '@itwin/itwinui-css/css/
|
|
29
|
+
import '@itwin/itwinui-css/css/utils.css';
|
|
30
30
|
/**
|
|
31
31
|
* Wrapper around [tippy.js](https://atomiks.github.io/tippyjs)
|
|
32
32
|
* with pre-configured props and plugins (e.g. lazy mounting, focus, etc).
|
|
@@ -9,6 +9,11 @@ export declare type ResizerProps = {
|
|
|
9
9
|
* If not passed, viewport will be used.
|
|
10
10
|
*/
|
|
11
11
|
containerRef?: React.RefObject<HTMLElement>;
|
|
12
|
+
/**
|
|
13
|
+
* Callback that is being called on resize start.
|
|
14
|
+
* Useful to set state, style, or other properties when resizing is started.
|
|
15
|
+
*/
|
|
16
|
+
onResizeStart?: () => void;
|
|
12
17
|
/**
|
|
13
18
|
* Callback that is being called on resize end.
|
|
14
19
|
* Useful to preserve state if element is being closed.
|
|
@@ -17,7 +17,8 @@ import { getBoundedValue, getTranslateValues } from '../functions';
|
|
|
17
17
|
* );
|
|
18
18
|
*/
|
|
19
19
|
export var Resizer = function (props) {
|
|
20
|
-
var elementRef = props.elementRef, containerRef = props.containerRef, onResizeEnd = props.onResizeEnd;
|
|
20
|
+
var elementRef = props.elementRef, containerRef = props.containerRef, onResizeStart = props.onResizeStart, onResizeEnd = props.onResizeEnd;
|
|
21
|
+
var isResizing = React.useRef(false);
|
|
21
22
|
var onResizePointerDown = function (event) {
|
|
22
23
|
if (!elementRef.current || event.button !== 0) {
|
|
23
24
|
return;
|
|
@@ -40,6 +41,10 @@ export var Resizer = function (props) {
|
|
|
40
41
|
if (!elementRef.current) {
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
44
|
+
if (!isResizing.current) {
|
|
45
|
+
isResizing.current = true;
|
|
46
|
+
onResizeStart === null || onResizeStart === void 0 ? void 0 : onResizeStart();
|
|
47
|
+
}
|
|
43
48
|
var containerRect = (_a = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
44
49
|
var clientX = getBoundedValue(event.clientX, (_b = containerRect === null || containerRect === void 0 ? void 0 : containerRect.left) !== null && _b !== void 0 ? _b : 0, (_d = (_c = containerRect === null || containerRect === void 0 ? void 0 : containerRect.right) !== null && _c !== void 0 ? _c : elementRef.current.ownerDocument.documentElement.clientWidth) !== null && _d !== void 0 ? _d : 0);
|
|
45
50
|
var clientY = getBoundedValue(event.clientY, (_e = containerRect === null || containerRect === void 0 ? void 0 : containerRect.top) !== null && _e !== void 0 ? _e : 0, (_g = (_f = containerRect === null || containerRect === void 0 ? void 0 : containerRect.bottom) !== null && _f !== void 0 ? _f : elementRef.current.ownerDocument.documentElement.clientHeight) !== null && _g !== void 0 ? _g : 0);
|
|
@@ -122,6 +127,7 @@ export var Resizer = function (props) {
|
|
|
122
127
|
document.removeEventListener('pointermove', onResizePointerMove);
|
|
123
128
|
if (elementRef.current) {
|
|
124
129
|
elementRef.current.ownerDocument.body.style.userSelect = originalUserSelect;
|
|
130
|
+
isResizing.current = false;
|
|
125
131
|
onResizeEnd === null || onResizeEnd === void 0 ? void 0 : onResizeEnd({
|
|
126
132
|
width: width,
|
|
127
133
|
height: height,
|
|
@@ -27,6 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import cx from 'classnames';
|
|
29
29
|
import { useTheme } from '../hooks';
|
|
30
|
+
import '@itwin/itwinui-css/css/utils.css';
|
|
30
31
|
/**
|
|
31
32
|
* Hides content visually but is still accessible to screen readers.
|
|
32
33
|
*/
|