@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextareaProps } from '../Textarea/Textarea';
|
|
3
3
|
import { LabeledInputProps } from '../LabeledInput';
|
|
4
|
-
import '@itwin/itwinui-css/css/
|
|
4
|
+
import '@itwin/itwinui-css/css/input.css';
|
|
5
5
|
export declare type LabeledTextareaProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Label for the textarea.
|
|
@@ -27,7 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import { StatusIconMap, useTheme, InputContainer } from '../utils';
|
|
29
29
|
import { Textarea } from '../Textarea';
|
|
30
|
-
import '@itwin/itwinui-css/css/
|
|
30
|
+
import '@itwin/itwinui-css/css/input.css';
|
|
31
31
|
/**
|
|
32
32
|
* Textarea wrapper that allows for additional styling and labelling
|
|
33
33
|
* @example
|
|
@@ -26,9 +26,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import cx from 'classnames';
|
|
29
|
-
import { useTheme, Popover, useMergedRefs } from '../utils';
|
|
29
|
+
import { useTheme, Popover, useMergedRefs, SvgCaretRightSmall, } from '../utils';
|
|
30
30
|
import '@itwin/itwinui-css/css/menu.css';
|
|
31
|
-
import SvgCaretRightSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretRightSmall';
|
|
32
31
|
import { Menu } from './Menu';
|
|
33
32
|
/**
|
|
34
33
|
* Context used to provide menu item ref to sub-menu items.
|
|
@@ -24,11 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
24
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
25
25
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
|
-
import Positive from '@itwin/itwinui-icons-react/cjs/icons/CheckmarkSmall';
|
|
28
|
-
import Negative from '@itwin/itwinui-icons-react/cjs/icons/ImportantSmall';
|
|
29
27
|
import cx from 'classnames';
|
|
30
28
|
import React from 'react';
|
|
31
|
-
import { useTheme } from '../../utils';
|
|
29
|
+
import { useTheme, SvgCheckmarkSmall, SvgImportantSmall, } from '../../utils';
|
|
32
30
|
import '@itwin/itwinui-css/css/progress-indicator.css';
|
|
33
31
|
/**
|
|
34
32
|
* Circular Progress Indicator
|
|
@@ -50,8 +48,8 @@ export var ProgressRadial = function (props) {
|
|
|
50
48
|
var _b = props.value, value = _b === void 0 ? 0 : _b, _c = props.indeterminate, indeterminate = _c === void 0 ? false : _c, status = props.status, children = props.children, _d = props.size, size = _d === void 0 ? '' : _d, className = props.className, style = props.style, rest = __rest(props, ["value", "indeterminate", "status", "children", "size", "className", "style"]);
|
|
51
49
|
useTheme();
|
|
52
50
|
var statusMap = {
|
|
53
|
-
negative: React.createElement(
|
|
54
|
-
positive: React.createElement(
|
|
51
|
+
negative: React.createElement(SvgImportantSmall, { "aria-hidden": true }),
|
|
52
|
+
positive: React.createElement(SvgCheckmarkSmall, { "aria-hidden": true }),
|
|
55
53
|
};
|
|
56
54
|
var fillStyle = {
|
|
57
55
|
strokeDashoffset: status === 'positive'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/
|
|
2
|
+
import '@itwin/itwinui-css/css/radio.css';
|
|
3
3
|
export declare type RadioProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Label of the radio.
|
|
@@ -9,20 +9,6 @@ export declare type RadioProps = {
|
|
|
9
9
|
* Status of the radio.
|
|
10
10
|
*/
|
|
11
11
|
status?: 'positive' | 'warning' | 'negative';
|
|
12
|
-
/**
|
|
13
|
-
* Custom CSS class name for the checkmark element.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated As of 1.32.0, this is applied on the actual radio `<input>` element.
|
|
16
|
-
* The checkmark has been moved into a pseudo-element.
|
|
17
|
-
*/
|
|
18
|
-
checkmarkClassName?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Custom CSS Style for the checkmark element.
|
|
21
|
-
*
|
|
22
|
-
* @deprecated As of 1.32.0, this is applied on the actual radio `<input>` element.
|
|
23
|
-
* The checkmark has been moved into a pseudo-element.
|
|
24
|
-
*/
|
|
25
|
-
checkmarkStyle?: React.CSSProperties;
|
|
26
12
|
/**
|
|
27
13
|
* Set focus on radio element.
|
|
28
14
|
* @default false
|
|
@@ -48,20 +34,6 @@ export declare const Radio: React.ForwardRefExoticComponent<{
|
|
|
48
34
|
* Status of the radio.
|
|
49
35
|
*/
|
|
50
36
|
status?: "positive" | "warning" | "negative" | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Custom CSS class name for the checkmark element.
|
|
53
|
-
*
|
|
54
|
-
* @deprecated As of 1.32.0, this is applied on the actual radio `<input>` element.
|
|
55
|
-
* The checkmark has been moved into a pseudo-element.
|
|
56
|
-
*/
|
|
57
|
-
checkmarkClassName?: string | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Custom CSS Style for the checkmark element.
|
|
60
|
-
*
|
|
61
|
-
* @deprecated As of 1.32.0, this is applied on the actual radio `<input>` element.
|
|
62
|
-
* The checkmark has been moved into a pseudo-element.
|
|
63
|
-
*/
|
|
64
|
-
checkmarkStyle?: React.CSSProperties | undefined;
|
|
65
37
|
/**
|
|
66
38
|
* Set focus on radio element.
|
|
67
39
|
* @default false
|
package/esm/core/Radio/Radio.js
CHANGED
|
@@ -27,7 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import cx from 'classnames';
|
|
28
28
|
import React from 'react';
|
|
29
29
|
import { useMergedRefs, useTheme } from '../utils';
|
|
30
|
-
import '@itwin/itwinui-css/css/
|
|
30
|
+
import '@itwin/itwinui-css/css/radio.css';
|
|
31
31
|
/**
|
|
32
32
|
* Basic radio input component
|
|
33
33
|
* @example
|
|
@@ -40,7 +40,7 @@ import '@itwin/itwinui-css/css/inputs.css';
|
|
|
40
40
|
*/
|
|
41
41
|
export var Radio = React.forwardRef(function (props, ref) {
|
|
42
42
|
var _a, _b;
|
|
43
|
-
var className = props.className, _c = props.disabled, disabled = _c === void 0 ? false : _c, label = props.label, status = props.status, style = props.style,
|
|
43
|
+
var className = props.className, _c = props.disabled, disabled = _c === void 0 ? false : _c, label = props.label, status = props.status, style = props.style, _d = props.setFocus, setFocus = _d === void 0 ? false : _d, rest = __rest(props, ["className", "disabled", "label", "status", "style", "setFocus"]);
|
|
44
44
|
useTheme();
|
|
45
45
|
var inputElementRef = React.useRef(null);
|
|
46
46
|
var refs = useMergedRefs(inputElementRef, ref);
|
|
@@ -49,7 +49,7 @@ export var Radio = React.forwardRef(function (props, ref) {
|
|
|
49
49
|
inputElementRef.current.focus();
|
|
50
50
|
}
|
|
51
51
|
}, [setFocus]);
|
|
52
|
-
var radio = (React.createElement("input", __assign({ className: cx('iui-radio', className && (_a = {}, _a[className] = !label, _a)
|
|
52
|
+
var radio = (React.createElement("input", __assign({ className: cx('iui-radio', className && (_a = {}, _a[className] = !label, _a)), style: !label ? style : undefined, disabled: disabled, type: 'radio', ref: refs }, rest)));
|
|
53
53
|
return !label ? (radio) : (React.createElement("label", { className: cx('iui-radio-wrapper', (_b = { 'iui-disabled': disabled }, _b["iui-".concat(status)] = !!status, _b), className), style: style },
|
|
54
54
|
radio,
|
|
55
55
|
label && React.createElement("span", { className: 'iui-radio-label' }, label)));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputGroupProps } from '../InputGroup';
|
|
3
|
-
import '@itwin/itwinui-css/css/
|
|
3
|
+
import '@itwin/itwinui-css/css/radio-tile.css';
|
|
4
4
|
export declare type RadioTileGroupProps = Omit<InputGroupProps, 'displayStyle' | 'disabled'>;
|
|
5
5
|
/**
|
|
6
6
|
* RadioTileGroup component to group RadioTile components together
|
|
@@ -26,7 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import { InputGroup } from '../InputGroup';
|
|
29
|
-
import '@itwin/itwinui-css/css/
|
|
29
|
+
import '@itwin/itwinui-css/css/radio-tile.css';
|
|
30
30
|
import { useTheme } from '../utils';
|
|
31
31
|
/**
|
|
32
32
|
* RadioTileGroup component to group RadioTile components together
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PopoverProps, CommonProps } from '../utils';
|
|
3
|
-
import '@itwin/itwinui-css/css/
|
|
3
|
+
import '@itwin/itwinui-css/css/select.css';
|
|
4
4
|
export declare type ItemRendererProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Close handler that closes the dropdown.
|
|
@@ -28,9 +28,8 @@ import React from 'react';
|
|
|
28
28
|
import cx from 'classnames';
|
|
29
29
|
import { DropdownMenu } from '../DropdownMenu';
|
|
30
30
|
import { MenuItem } from '../Menu/MenuItem';
|
|
31
|
-
import { useTheme, useOverflow, } from '../utils';
|
|
32
|
-
import '@itwin/itwinui-css/css/
|
|
33
|
-
import SvgCaretDownSmall from '@itwin/itwinui-icons-react/cjs/icons/CaretDownSmall';
|
|
31
|
+
import { useTheme, useOverflow, SvgCaretDownSmall, } from '../utils';
|
|
32
|
+
import '@itwin/itwinui-css/css/select.css';
|
|
34
33
|
import SelectTag from './SelectTag';
|
|
35
34
|
var isMultipleEnabled = function (variable, multiple) {
|
|
36
35
|
return multiple;
|
|
@@ -90,14 +89,13 @@ var isSingleOnChange = function (onChange, multiple) {
|
|
|
90
89
|
*/
|
|
91
90
|
export var Select = function (props) {
|
|
92
91
|
var _a;
|
|
93
|
-
var _b;
|
|
94
|
-
var options = props.options, value = props.value, onChange = props.onChange, placeholder = props.placeholder, _c = props.disabled, disabled = _c === void 0 ? false : _c, size = props.size, _d = props.setFocus, setFocus = _d === void 0 ? false : _d, itemRenderer = props.itemRenderer, selectedItemRenderer = props.selectedItemRenderer, className = props.className, style = props.style, menuClassName = props.menuClassName, menuStyle = props.menuStyle, onShow = props.onShow, onHide = props.onHide, popoverProps = props.popoverProps, _e = props.multiple, multiple = _e === void 0 ? false : _e, rest = __rest(props, ["options", "value", "onChange", "placeholder", "disabled", "size", "setFocus", "itemRenderer", "selectedItemRenderer", "className", "style", "menuClassName", "menuStyle", "onShow", "onHide", "popoverProps", "multiple"]);
|
|
92
|
+
var options = props.options, value = props.value, onChange = props.onChange, placeholder = props.placeholder, _b = props.disabled, disabled = _b === void 0 ? false : _b, size = props.size, _c = props.setFocus, setFocus = _c === void 0 ? false : _c, itemRenderer = props.itemRenderer, selectedItemRenderer = props.selectedItemRenderer, className = props.className, style = props.style, menuClassName = props.menuClassName, menuStyle = props.menuStyle, onShow = props.onShow, onHide = props.onHide, popoverProps = props.popoverProps, _d = props.multiple, multiple = _d === void 0 ? false : _d, rest = __rest(props, ["options", "value", "onChange", "placeholder", "disabled", "size", "setFocus", "itemRenderer", "selectedItemRenderer", "className", "style", "menuClassName", "menuStyle", "onShow", "onHide", "popoverProps", "multiple"]);
|
|
95
93
|
useTheme();
|
|
96
|
-
var
|
|
94
|
+
var _e = React.useState((_a = popoverProps === null || popoverProps === void 0 ? void 0 : popoverProps.visible) !== null && _a !== void 0 ? _a : false), isOpen = _e[0], setIsOpen = _e[1];
|
|
97
95
|
React.useEffect(function () {
|
|
98
96
|
setIsOpen(function (open) { var _a; return (_a = popoverProps === null || popoverProps === void 0 ? void 0 : popoverProps.visible) !== null && _a !== void 0 ? _a : open; });
|
|
99
97
|
}, [popoverProps]);
|
|
100
|
-
var
|
|
98
|
+
var _f = React.useState(0), minWidth = _f[0], setMinWidth = _f[1];
|
|
101
99
|
var toggle = function () { return setIsOpen(function (open) { return !open; }); };
|
|
102
100
|
var selectRef = React.useRef(null);
|
|
103
101
|
var toggleButtonRef = React.useRef(null);
|
|
@@ -171,19 +169,17 @@ export var Select = function (props) {
|
|
|
171
169
|
return React.createElement(SelectTag, { key: item.label, label: item.label });
|
|
172
170
|
}, []);
|
|
173
171
|
return (React.createElement("div", __assign({ className: cx('iui-input-with-icon', className), "aria-expanded": isOpen, "aria-haspopup": 'listbox', style: style }, rest),
|
|
174
|
-
React.createElement(DropdownMenu, __assign({ menuItems: menuItems, placement: 'bottom-start', className: cx('iui-scroll', menuClassName), style: __assign({ minWidth: minWidth, maxWidth: "min(".concat(minWidth * 2, "px, 90vw)")
|
|
172
|
+
React.createElement(DropdownMenu, __assign({ menuItems: menuItems, placement: 'bottom-start', className: cx('iui-scroll', menuClassName), style: __assign({ minWidth: minWidth, maxWidth: "min(".concat(minWidth * 2, "px, 90vw)") }, menuStyle), role: 'listbox', onShow: onShowHandler, onHide: onHideHandler, disabled: disabled }, popoverProps, { visible: isOpen, onClickOutside: function (_, _a) {
|
|
175
173
|
var _b;
|
|
176
174
|
var target = _a.target;
|
|
177
175
|
if (!((_b = toggleButtonRef.current) === null || _b === void 0 ? void 0 : _b.contains(target))) {
|
|
178
176
|
setIsOpen(false);
|
|
179
177
|
}
|
|
180
178
|
} }),
|
|
181
|
-
React.createElement("div", { ref: selectRef, className: cx('iui-select-button',
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
_a["iui-".concat(size)] = !!size,
|
|
186
|
-
_a)), onClick: function () { return !disabled && toggle(); }, onKeyDown: function (e) { return !disabled && onKeyDown(e, toggle); }, tabIndex: !disabled ? 0 : undefined },
|
|
179
|
+
React.createElement("div", { ref: selectRef, className: cx('iui-select-button', {
|
|
180
|
+
'iui-placeholder': (!selectedItems || selectedItems.length === 0) && !!placeholder,
|
|
181
|
+
'iui-disabled': disabled,
|
|
182
|
+
}), "data-iui-size": size, onClick: function () { return !disabled && toggle(); }, onKeyDown: function (e) { return !disabled && onKeyDown(e, toggle); }, tabIndex: !disabled ? 0 : undefined },
|
|
187
183
|
(!selectedItems || selectedItems.length === 0) && (React.createElement("span", { className: 'iui-content' }, placeholder)),
|
|
188
184
|
isMultipleEnabled(selectedItems, multiple) ? (React.createElement(MultipleSelectButton, { selectedItems: selectedItems, selectedItemsRenderer: selectedItemRenderer, tagRenderer: tagRenderer })) : (React.createElement(SingleSelectButton, { selectedItem: selectedItems, selectedItemRenderer: selectedItemRenderer })))),
|
|
189
185
|
React.createElement("span", { ref: toggleButtonRef, className: cx('iui-end-icon', {
|
|
@@ -27,7 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import cx from 'classnames';
|
|
28
28
|
import React from 'react';
|
|
29
29
|
import { useTheme } from '../utils';
|
|
30
|
-
import '@itwin/itwinui-css/css/
|
|
30
|
+
import '@itwin/itwinui-css/css/select.css';
|
|
31
31
|
/**
|
|
32
32
|
* Tag for showing selected value in `Select`.
|
|
33
33
|
* @private
|
|
@@ -26,8 +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 { useTheme, WithCSSTransition } from '../utils';
|
|
30
|
-
import SvgChevronRight from '@itwin/itwinui-icons-react/cjs/icons/ChevronRight';
|
|
29
|
+
import { useTheme, WithCSSTransition, SvgChevronRight, } from '../utils';
|
|
31
30
|
import { IconButton } from '../Buttons';
|
|
32
31
|
import { Tooltip } from '../Tooltip';
|
|
33
32
|
import '@itwin/itwinui-css/css/side-navigation.css';
|
|
@@ -37,8 +37,7 @@ export var SidenavButton = React.forwardRef(function (props, ref) {
|
|
|
37
37
|
var className = props.className, children = props.children, _a = props.isActive, isActive = _a === void 0 ? false : _a, _b = props.disabled, disabled = _b === void 0 ? false : _b, _c = props.isSubmenuOpen, isSubmenuOpen = _c === void 0 ? false : _c, rest = __rest(props, ["className", "children", "isActive", "disabled", "isSubmenuOpen"]);
|
|
38
38
|
useTheme();
|
|
39
39
|
return (React.createElement(Button, __assign({ className: cx('iui-sidenav-button', {
|
|
40
|
-
'iui-active': isActive,
|
|
41
40
|
'iui-submenu-open': isSubmenuOpen,
|
|
42
|
-
}, className), size: 'large', disabled: disabled, ref: ref }, rest), children));
|
|
41
|
+
}, className), "data-iui-active": isActive, size: 'large', disabled: disabled, ref: ref }, rest), children));
|
|
43
42
|
});
|
|
44
43
|
export default SidenavButton;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '@itwin/itwinui-css/css/stepper.css';
|
|
3
|
+
export declare type StepperLocalization = {
|
|
4
|
+
stepsCountLabel: (currentStep: number, totalSteps: number) => string;
|
|
5
|
+
};
|
|
6
|
+
export declare type StepProperties = {
|
|
7
|
+
/**
|
|
8
|
+
* The title/label of the step.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* A tooltip giving detailed description to this step.
|
|
13
|
+
*/
|
|
14
|
+
description?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare type StepperProps = {
|
|
17
|
+
/**
|
|
18
|
+
* Current step index, 0 - based.
|
|
19
|
+
*/
|
|
20
|
+
currentStep?: number;
|
|
21
|
+
/**
|
|
22
|
+
* An array of step objects.
|
|
23
|
+
*/
|
|
24
|
+
steps: StepProperties[];
|
|
25
|
+
/**
|
|
26
|
+
* The type of Stepper to display.
|
|
27
|
+
* @default 'default'
|
|
28
|
+
*/
|
|
29
|
+
type?: 'default' | 'long';
|
|
30
|
+
/**
|
|
31
|
+
* Option to provide localized strings.
|
|
32
|
+
*/
|
|
33
|
+
localization?: StepperLocalization;
|
|
34
|
+
/**
|
|
35
|
+
* Click handler on completed step.
|
|
36
|
+
*/
|
|
37
|
+
onStepClick?: (clickedIndex: number) => void;
|
|
38
|
+
};
|
|
39
|
+
export declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
export default Stepper;
|
|
@@ -24,40 +24,23 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
24
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
25
25
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
26
26
|
*--------------------------------------------------------------------------------------------*/
|
|
27
|
-
import cx from 'classnames';
|
|
28
27
|
import React from 'react';
|
|
29
28
|
import { useTheme } from '../utils';
|
|
30
|
-
import '@itwin/itwinui-css/css/
|
|
31
|
-
import {
|
|
32
|
-
var
|
|
29
|
+
import '@itwin/itwinui-css/css/stepper.css';
|
|
30
|
+
import { StepperStep } from './StepperStep';
|
|
31
|
+
var defaultStepperLocalization = {
|
|
33
32
|
stepsCountLabel: function (currentStep, totalSteps) {
|
|
34
33
|
return "Step ".concat(currentStep, " of ").concat(totalSteps, ":");
|
|
35
34
|
},
|
|
36
35
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
* It may also be used for navigation.
|
|
40
|
-
*
|
|
41
|
-
* The `type` can be set to 'long' to show labels under steps.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* <Wizard
|
|
45
|
-
* steps=[{name: "Step One"}, {name: "Step Two"}, {name: "Step Three"}]
|
|
46
|
-
* currentStep={0}
|
|
47
|
-
* type='long'
|
|
48
|
-
* />
|
|
49
|
-
*/
|
|
50
|
-
export var Wizard = React.forwardRef(function (props, ref) {
|
|
51
|
-
var currentStep = props.currentStep, steps = props.steps, _a = props.type, type = _a === void 0 ? 'default' : _a, _b = props.localization, localization = _b === void 0 ? defaultWizardLocalization : _b, onStepClick = props.onStepClick, rest = __rest(props, ["currentStep", "steps", "type", "localization", "onStepClick"]);
|
|
36
|
+
export var Stepper = React.forwardRef(function (props, ref) {
|
|
37
|
+
var currentStep = props.currentStep, steps = props.steps, _a = props.type, type = _a === void 0 ? 'default' : _a, _b = props.localization, localization = _b === void 0 ? defaultStepperLocalization : _b, onStepClick = props.onStepClick, rest = __rest(props, ["currentStep", "steps", "type", "localization", "onStepClick"]);
|
|
52
38
|
var boundedCurrentStep = Math.min(Math.max(0, currentStep !== null && currentStep !== void 0 ? currentStep : 0), steps.length - 1);
|
|
53
39
|
useTheme();
|
|
54
|
-
return (React.createElement("div", __assign({ className:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
React.createElement("ol", null, steps.map(function (s, index) { return (React.createElement(Step, { key: index, index: index, title: type === 'long' ? '' : s.name, currentStepNumber: boundedCurrentStep, totalSteps: steps.length, type: type, onClick: onStepClick, description: s.description })); })),
|
|
59
|
-
type === 'long' && (React.createElement("div", { className: 'iui-wizard-steps-label' },
|
|
60
|
-
React.createElement("span", { className: 'iui-steps-count' }, localization.stepsCountLabel(boundedCurrentStep + 1, steps.length)),
|
|
40
|
+
return (React.createElement("div", __assign({ className: 'iui-stepper', ref: ref }, rest),
|
|
41
|
+
React.createElement("ol", null, steps.map(function (s, index) { return (React.createElement(StepperStep, { key: index, index: index, title: type === 'long' ? '' : s.name, currentStepNumber: boundedCurrentStep, totalSteps: steps.length, type: type, onClick: onStepClick, description: s.description })); })),
|
|
42
|
+
type === 'long' && (React.createElement("div", { className: 'iui-stepper-steps-label' },
|
|
43
|
+
React.createElement("span", { className: 'iui-stepper-steps-label-count' }, localization.stepsCountLabel(boundedCurrentStep + 1, steps.length)),
|
|
61
44
|
steps[boundedCurrentStep].name))));
|
|
62
45
|
});
|
|
63
|
-
export default
|
|
46
|
+
export default Stepper;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { StylingProps } from '../utils';
|
|
3
|
-
|
|
4
|
-
export declare type StepProps = {
|
|
3
|
+
export declare type StepperStepProps = {
|
|
5
4
|
/**
|
|
6
5
|
* The title/label of the step.
|
|
7
6
|
*/
|
|
@@ -11,17 +10,17 @@ export declare type StepProps = {
|
|
|
11
10
|
*/
|
|
12
11
|
index: number;
|
|
13
12
|
/**
|
|
14
|
-
* the
|
|
13
|
+
* the Stepper's current step number, 0-based.
|
|
15
14
|
*/
|
|
16
15
|
currentStepNumber: number;
|
|
17
16
|
/**
|
|
18
|
-
* number of total steps in the
|
|
17
|
+
* number of total steps in the stepper.
|
|
19
18
|
*/
|
|
20
19
|
totalSteps: number;
|
|
21
20
|
/**
|
|
22
|
-
*
|
|
21
|
+
* Stepper type.
|
|
23
22
|
*/
|
|
24
|
-
type:
|
|
23
|
+
type: 'default' | 'long';
|
|
25
24
|
/**
|
|
26
25
|
* Click handler on completed step.
|
|
27
26
|
*/
|
|
@@ -31,4 +30,4 @@ export declare type StepProps = {
|
|
|
31
30
|
*/
|
|
32
31
|
description?: string;
|
|
33
32
|
} & StylingProps;
|
|
34
|
-
export declare const
|
|
33
|
+
export declare const StepperStep: (props: StepperStepProps) => JSX.Element;
|
|
@@ -27,11 +27,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import cx from 'classnames';
|
|
28
28
|
import React from 'react';
|
|
29
29
|
import { Tooltip } from '../Tooltip';
|
|
30
|
-
export var
|
|
30
|
+
export var StepperStep = function (props) {
|
|
31
31
|
var title = props.title, index = props.index, currentStepNumber = props.currentStepNumber, totalSteps = props.totalSteps, type = props.type, onClick = props.onClick, description = props.description, className = props.className, style = props.style, rest = __rest(props, ["title", "index", "currentStepNumber", "totalSteps", "type", "onClick", "description", "className", "style"]);
|
|
32
|
-
var isPast =
|
|
33
|
-
var isActive =
|
|
34
|
-
var isClickable =
|
|
32
|
+
var isPast = currentStepNumber > index;
|
|
33
|
+
var isActive = currentStepNumber === index;
|
|
34
|
+
var isClickable = isPast && !!onClick;
|
|
35
35
|
var onCompletedClick = function () {
|
|
36
36
|
if (isClickable) {
|
|
37
37
|
onClick === null || onClick === void 0 ? void 0 : onClick(index);
|
|
@@ -45,12 +45,12 @@ export var Step = function (props) {
|
|
|
45
45
|
onCompletedClick();
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
var stepShape = (React.createElement("li", __assign({ className: cx('iui-
|
|
48
|
+
var stepShape = (React.createElement("li", __assign({ className: cx('iui-stepper-step', {
|
|
49
49
|
'iui-current': isActive,
|
|
50
50
|
'iui-clickable': isClickable,
|
|
51
51
|
}, className), style: __assign({ width: type === 'default' ? "".concat(100 / totalSteps, "%") : undefined }, style), onClick: onCompletedClick, onKeyDown: onKeyDown, "aria-current": isActive ? 'step' : undefined, tabIndex: isClickable ? 0 : undefined }, rest),
|
|
52
|
-
React.createElement("div", { className: 'iui-
|
|
53
|
-
React.createElement("span", { className: 'iui-
|
|
54
|
-
type === 'default' && (React.createElement("span", { className: 'iui-
|
|
52
|
+
React.createElement("div", { className: 'iui-stepper-track-content' },
|
|
53
|
+
React.createElement("span", { className: 'iui-stepper-circle' }, index + 1)),
|
|
54
|
+
type === 'default' && (React.createElement("span", { className: 'iui-stepper-step-name' }, title))));
|
|
55
55
|
return description ? (React.createElement(Tooltip, { content: description }, stepShape)) : (stepShape);
|
|
56
56
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StepperProps, StepperLocalization } from './Stepper';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Since v2:
|
|
5
|
+
*
|
|
6
|
+
* - For `default` | `long`, use `StepperType` with `Stepper` instead
|
|
7
|
+
* - For `workflow`, use `WorkflowDiagram` instead
|
|
8
|
+
*/
|
|
9
|
+
export declare type WizardType = 'default' | 'long' | 'workflow';
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Since v2, use `StepperLocalization` with `Stepper`
|
|
12
|
+
*/
|
|
13
|
+
export declare type WizardLocalization = StepperLocalization;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Since v2, use `StepperProps` with `Stepper` or `WorkflowDiagramProps` with `WorkflowDiagram`
|
|
16
|
+
*/
|
|
17
|
+
export declare type WizardProps = {
|
|
18
|
+
/**
|
|
19
|
+
* The type of Wizard to display.
|
|
20
|
+
* @default 'default'
|
|
21
|
+
*/
|
|
22
|
+
type?: WizardType;
|
|
23
|
+
} & Omit<StepperProps, 'type'>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Since v2, use `Stepper` (type = `default` | `long`) or WorkflowDiagram (type = `workflow`)
|
|
26
|
+
*
|
|
27
|
+
* A wizard displays progress through a sequence of logical and numbered steps.
|
|
28
|
+
* It may also be used for navigation.
|
|
29
|
+
*
|
|
30
|
+
* The `type` can be set to 'long' to show labels under steps.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* <Wizard
|
|
34
|
+
* steps=[{name: "Step One"}, {name: "Step Two"}, {name: "Step Three"}]
|
|
35
|
+
* currentStep={0}
|
|
36
|
+
* type='long'
|
|
37
|
+
* />
|
|
38
|
+
*/
|
|
39
|
+
export declare const Wizard: React.ForwardRefExoticComponent<{
|
|
40
|
+
/**
|
|
41
|
+
* The type of Wizard to display.
|
|
42
|
+
* @default 'default'
|
|
43
|
+
*/
|
|
44
|
+
type?: WizardType | undefined;
|
|
45
|
+
} & Omit<StepperProps, "type"> & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
export default Wizard;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
/*---------------------------------------------------------------------------------------------
|
|
24
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
25
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
26
|
+
*--------------------------------------------------------------------------------------------*/
|
|
27
|
+
import React from 'react';
|
|
28
|
+
import { Stepper } from './Stepper';
|
|
29
|
+
import { WorkflowDiagram } from './WorkflowDiagram';
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Since v2, use `Stepper` (type = `default` | `long`) or WorkflowDiagram (type = `workflow`)
|
|
32
|
+
*
|
|
33
|
+
* A wizard displays progress through a sequence of logical and numbered steps.
|
|
34
|
+
* It may also be used for navigation.
|
|
35
|
+
*
|
|
36
|
+
* The `type` can be set to 'long' to show labels under steps.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* <Wizard
|
|
40
|
+
* steps=[{name: "Step One"}, {name: "Step Two"}, {name: "Step Three"}]
|
|
41
|
+
* currentStep={0}
|
|
42
|
+
* type='long'
|
|
43
|
+
* />
|
|
44
|
+
*/
|
|
45
|
+
export var Wizard = React.forwardRef(function (props, ref) {
|
|
46
|
+
var currentStep = props.currentStep, steps = props.steps, _a = props.type, type = _a === void 0 ? 'default' : _a, localization = props.localization, onStepClick = props.onStepClick, rest = __rest(props, ["currentStep", "steps", "type", "localization", "onStepClick"]);
|
|
47
|
+
return type !== 'workflow' ? (React.createElement(Stepper, __assign({ type: type, currentStep: currentStep, steps: steps, localization: localization, onStepClick: onStepClick, ref: ref }, rest))) : (React.createElement(WorkflowDiagram, __assign({ steps: steps, ref: ref }, rest)));
|
|
48
|
+
});
|
|
49
|
+
export default Wizard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '@itwin/itwinui-css/css/workflow-diagram.css';
|
|
3
|
+
import { StepperProps } from './Stepper';
|
|
4
|
+
export declare type WorkflowDiagramProps = Pick<StepperProps, 'steps'>;
|
|
5
|
+
export declare const WorkflowDiagram: React.ForwardRefExoticComponent<WorkflowDiagramProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export default WorkflowDiagram;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
/*---------------------------------------------------------------------------------------------
|
|
24
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
25
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
26
|
+
*--------------------------------------------------------------------------------------------*/
|
|
27
|
+
import React from 'react';
|
|
28
|
+
import { useTheme } from '../utils';
|
|
29
|
+
import '@itwin/itwinui-css/css/workflow-diagram.css';
|
|
30
|
+
import { WorkflowDiagramStep } from './WorkflowDiagramStep';
|
|
31
|
+
export var WorkflowDiagram = React.forwardRef(function (props, ref) {
|
|
32
|
+
var steps = props.steps, rest = __rest(props, ["steps"]);
|
|
33
|
+
useTheme();
|
|
34
|
+
return (React.createElement("div", { ref: ref },
|
|
35
|
+
React.createElement("ol", __assign({ className: 'iui-workflow-diagram' }, rest), steps.map(function (s, index) { return (React.createElement(WorkflowDiagramStep, { key: index, title: s.name, description: s.description })); }))));
|
|
36
|
+
});
|
|
37
|
+
export default WorkflowDiagram;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StylingProps } from '../utils';
|
|
3
|
+
import { StepperStepProps } from './StepperStep';
|
|
4
|
+
export declare type WorkflowDiagramStepProps = Pick<StepperStepProps, 'title' | 'description'> & StylingProps;
|
|
5
|
+
export declare const WorkflowDiagramStep: (props: WorkflowDiagramStepProps) => JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
/*---------------------------------------------------------------------------------------------
|
|
24
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
25
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
26
|
+
*--------------------------------------------------------------------------------------------*/
|
|
27
|
+
import cx from 'classnames';
|
|
28
|
+
import React from 'react';
|
|
29
|
+
import { Tooltip } from '../Tooltip';
|
|
30
|
+
export var WorkflowDiagramStep = function (props) {
|
|
31
|
+
var title = props.title, description = props.description, className = props.className, style = props.style, rest = __rest(props, ["title", "description", "className", "style"]);
|
|
32
|
+
var stepShape = (React.createElement("li", __assign({ className: cx('iui-workflow-diagram-step', className), style: style }, rest),
|
|
33
|
+
React.createElement("span", { className: 'iui-workflow-diagram-content' }, title)));
|
|
34
|
+
return description ? (React.createElement(Tooltip, { content: description }, stepShape)) : (stepShape);
|
|
35
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Wizard } from './Wizard';
|
|
2
|
+
export { Stepper } from './Stepper';
|
|
3
|
+
export { WorkflowDiagram } from './WorkflowDiagram';
|
|
4
|
+
export type { WizardProps, WizardType, WizardLocalization } from './Wizard';
|
|
5
|
+
export type { StepperProps, StepProperties, StepperLocalization, } from './Stepper';
|
|
6
|
+
export type { WorkflowDiagramProps } from './WorkflowDiagram';
|
|
7
|
+
declare const _default: "./Wizard";
|
|
8
|
+
export default _default;
|