@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/cjs/core/index.js
CHANGED
|
@@ -3,15 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.MiddleTextTruncation = exports.ColorValue = exports.useTheme = exports.getUserColor = exports.
|
|
6
|
+
exports.InputGroup = exports.LabeledInput = exports.Label = exports.Input = exports.InformationPanelContent = exports.InformationPanelBody = exports.InformationPanelHeader = exports.InformationPanelWrapper = exports.InformationPanel = exports.HorizontalTabs = exports.Tab = exports.Tabs = exports.VerticalTabs = exports.HeaderLogo = exports.HeaderButton = exports.HeaderBreadcrumbs = exports.Header = exports.defaultFooterElements = exports.Footer = exports.FileUploadTemplate = exports.FileUpload = exports.Fieldset = exports.ExpandableBlock = exports.ErrorPage = exports.DropdownMenu = exports.Dialog = exports.generateLocalizedStrings = exports.DatePicker = exports.ComboBox = exports.ColorPalette = exports.ColorInputPanel = exports.ColorBuilder = exports.ColorSwatch = exports.ColorPicker = exports.Checkbox = exports.Carousel = exports.ButtonGroup = exports.SplitButton = exports.IdeasButton = exports.IconButton = exports.DropdownButton = exports.Button = exports.Breadcrumbs = exports.Badge = exports.Backdrop = exports.UserIconGroup = exports.AvatarGroup = exports.UserIcon = exports.Avatar = exports.Alert = void 0;
|
|
7
|
+
exports.Leading = exports.Headline = exports.Body = exports.Anchor = exports.TreeNodeExpander = exports.TreeNode = exports.Tree = exports.Tooltip = exports.ToggleSwitch = exports.ThemeProvider = exports.toaster = exports.TimePicker = exports.Tile = exports.Textarea = exports.TagContainer = exports.Tag = exports.SelectionColumn = exports.ExpanderColumn = exports.ActionColumn = exports.TablePaginator = exports.EditableCell = exports.DefaultCell = exports.FilterButtonBar = exports.BaseFilter = exports.tableFilters = exports.Table = exports.Surface = exports.StatusMessage = exports.Slider = exports.SkipToContentLink = exports.SidenavSubmenuHeader = exports.SidenavSubmenu = exports.SidenavButton = exports.SideNavigation = exports.Select = exports.RadioTileGroup = exports.RadioTile = exports.Radio = exports.ProgressRadial = exports.ProgressLinear = exports.ModalContent = exports.ModalButtonBar = exports.Modal = exports.MenuItemSkeleton = exports.MenuExtraContent = exports.MenuDivider = exports.MenuItem = exports.Menu = exports.LabeledTextarea = exports.LabeledSelect = void 0;
|
|
8
|
+
exports.MiddleTextTruncation = exports.ColorValue = exports.useTheme = exports.getUserColor = exports.WorkflowDiagram = exports.Stepper = exports.Wizard = exports.Text = exports.KbdKeys = exports.Kbd = exports.Code = exports.Blockquote = exports.Title = exports.Subheading = exports.Small = void 0;
|
|
9
9
|
/*---------------------------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
11
11
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
12
12
|
*--------------------------------------------------------------------------------------------*/
|
|
13
13
|
var Alert_1 = require("./Alert");
|
|
14
14
|
Object.defineProperty(exports, "Alert", { enumerable: true, get: function () { return Alert_1.Alert; } });
|
|
15
|
+
var Avatar_1 = require("./Avatar");
|
|
16
|
+
Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return Avatar_1.Avatar; } });
|
|
17
|
+
Object.defineProperty(exports, "UserIcon", { enumerable: true, get: function () { return Avatar_1.UserIcon; } });
|
|
18
|
+
var AvatarGroup_1 = require("./AvatarGroup");
|
|
19
|
+
Object.defineProperty(exports, "AvatarGroup", { enumerable: true, get: function () { return AvatarGroup_1.AvatarGroup; } });
|
|
20
|
+
Object.defineProperty(exports, "UserIconGroup", { enumerable: true, get: function () { return AvatarGroup_1.UserIconGroup; } });
|
|
15
21
|
var Backdrop_1 = require("./Backdrop");
|
|
16
22
|
Object.defineProperty(exports, "Backdrop", { enumerable: true, get: function () { return Backdrop_1.Backdrop; } });
|
|
17
23
|
var Badge_1 = require("./Badge");
|
|
@@ -64,9 +70,9 @@ Object.defineProperty(exports, "HeaderButton", { enumerable: true, get: function
|
|
|
64
70
|
Object.defineProperty(exports, "HeaderLogo", { enumerable: true, get: function () { return Header_1.HeaderLogo; } });
|
|
65
71
|
var Tabs_1 = require("./Tabs");
|
|
66
72
|
Object.defineProperty(exports, "VerticalTabs", { enumerable: true, get: function () { return Tabs_1.VerticalTabs; } });
|
|
73
|
+
Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return Tabs_1.Tabs; } });
|
|
67
74
|
Object.defineProperty(exports, "Tab", { enumerable: true, get: function () { return Tabs_1.Tab; } });
|
|
68
75
|
Object.defineProperty(exports, "HorizontalTabs", { enumerable: true, get: function () { return Tabs_1.HorizontalTabs; } });
|
|
69
|
-
Object.defineProperty(exports, "HorizontalTab", { enumerable: true, get: function () { return Tabs_1.HorizontalTab; } });
|
|
70
76
|
var InformationPanel_1 = require("./InformationPanel");
|
|
71
77
|
Object.defineProperty(exports, "InformationPanel", { enumerable: true, get: function () { return InformationPanel_1.InformationPanel; } });
|
|
72
78
|
Object.defineProperty(exports, "InformationPanelWrapper", { enumerable: true, get: function () { return InformationPanel_1.InformationPanelWrapper; } });
|
|
@@ -163,12 +169,10 @@ Object.defineProperty(exports, "Code", { enumerable: true, get: function () { re
|
|
|
163
169
|
Object.defineProperty(exports, "Kbd", { enumerable: true, get: function () { return Typography_1.Kbd; } });
|
|
164
170
|
Object.defineProperty(exports, "KbdKeys", { enumerable: true, get: function () { return Typography_1.KbdKeys; } });
|
|
165
171
|
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Typography_1.Text; } });
|
|
166
|
-
var
|
|
167
|
-
Object.defineProperty(exports, "
|
|
168
|
-
|
|
169
|
-
Object.defineProperty(exports, "
|
|
170
|
-
var Wizard_1 = require("./Wizard");
|
|
171
|
-
Object.defineProperty(exports, "Wizard", { enumerable: true, get: function () { return Wizard_1.Wizard; } });
|
|
172
|
+
var Stepper_1 = require("./Stepper");
|
|
173
|
+
Object.defineProperty(exports, "Wizard", { enumerable: true, get: function () { return Stepper_1.Wizard; } });
|
|
174
|
+
Object.defineProperty(exports, "Stepper", { enumerable: true, get: function () { return Stepper_1.Stepper; } });
|
|
175
|
+
Object.defineProperty(exports, "WorkflowDiagram", { enumerable: true, get: function () { return Stepper_1.WorkflowDiagram; } });
|
|
172
176
|
var utils_1 = require("./utils");
|
|
173
177
|
Object.defineProperty(exports, "getUserColor", { enumerable: true, get: function () { return utils_1.getUserColor; } });
|
|
174
178
|
Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return utils_1.useTheme; } });
|
|
@@ -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.
|
|
@@ -32,7 +32,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
32
32
|
var classnames_1 = __importDefault(require("classnames"));
|
|
33
33
|
var react_2 = __importDefault(require("@tippyjs/react"));
|
|
34
34
|
var useMergedRefs_1 = require("../hooks/useMergedRefs");
|
|
35
|
-
require("@itwin/itwinui-css/css/
|
|
35
|
+
require("@itwin/itwinui-css/css/utils.css");
|
|
36
36
|
/**
|
|
37
37
|
* Wrapper around [tippy.js](https://atomiks.github.io/tippyjs)
|
|
38
38
|
* 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.
|
|
@@ -23,7 +23,8 @@ var functions_1 = require("../functions");
|
|
|
23
23
|
* );
|
|
24
24
|
*/
|
|
25
25
|
var Resizer = function (props) {
|
|
26
|
-
var elementRef = props.elementRef, containerRef = props.containerRef, onResizeEnd = props.onResizeEnd;
|
|
26
|
+
var elementRef = props.elementRef, containerRef = props.containerRef, onResizeStart = props.onResizeStart, onResizeEnd = props.onResizeEnd;
|
|
27
|
+
var isResizing = react_1.default.useRef(false);
|
|
27
28
|
var onResizePointerDown = function (event) {
|
|
28
29
|
if (!elementRef.current || event.button !== 0) {
|
|
29
30
|
return;
|
|
@@ -46,6 +47,10 @@ var Resizer = function (props) {
|
|
|
46
47
|
if (!elementRef.current) {
|
|
47
48
|
return;
|
|
48
49
|
}
|
|
50
|
+
if (!isResizing.current) {
|
|
51
|
+
isResizing.current = true;
|
|
52
|
+
onResizeStart === null || onResizeStart === void 0 ? void 0 : onResizeStart();
|
|
53
|
+
}
|
|
49
54
|
var containerRect = (_a = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
50
55
|
var clientX = (0, functions_1.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);
|
|
51
56
|
var clientY = (0, functions_1.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);
|
|
@@ -128,6 +133,7 @@ var Resizer = function (props) {
|
|
|
128
133
|
document.removeEventListener('pointermove', onResizePointerMove);
|
|
129
134
|
if (elementRef.current) {
|
|
130
135
|
elementRef.current.ownerDocument.body.style.userSelect = originalUserSelect;
|
|
136
|
+
isResizing.current = false;
|
|
131
137
|
onResizeEnd === null || onResizeEnd === void 0 ? void 0 : onResizeEnd({
|
|
132
138
|
width: width,
|
|
133
139
|
height: height,
|
|
@@ -33,6 +33,7 @@ exports.VisuallyHidden = void 0;
|
|
|
33
33
|
var react_1 = __importDefault(require("react"));
|
|
34
34
|
var classnames_1 = __importDefault(require("classnames"));
|
|
35
35
|
var hooks_1 = require("../hooks");
|
|
36
|
+
require("@itwin/itwinui-css/css/utils.css");
|
|
36
37
|
/**
|
|
37
38
|
* Hides content visually but is still accessible to screen readers.
|
|
38
39
|
*/
|
|
@@ -22,7 +22,6 @@ __exportStar(require("./Popover"), exports);
|
|
|
22
22
|
__exportStar(require("./Resizer"), exports);
|
|
23
23
|
__exportStar(require("./FocusTrap"), exports);
|
|
24
24
|
__exportStar(require("./InputContainer"), exports);
|
|
25
|
-
__exportStar(require("./icons"), exports);
|
|
26
25
|
__exportStar(require("./WithCSSTransition"), exports);
|
|
27
26
|
__exportStar(require("./MiddleTextTruncation"), exports);
|
|
28
27
|
__exportStar(require("./VirtualScroll"), exports);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export declare const SoftBackgrounds: {
|
|
2
|
-
readonly skyblue: "
|
|
3
|
-
readonly celery: "
|
|
4
|
-
readonly froly: "
|
|
5
|
-
readonly steelblue: "
|
|
6
|
-
readonly sunglow: "
|
|
7
|
-
readonly seabuckthorn: "
|
|
8
|
-
readonly montecarlo: "
|
|
9
|
-
readonly poloblue: "
|
|
10
|
-
readonly bouquet: "
|
|
11
|
-
readonly ash: "
|
|
12
|
-
readonly oak: "
|
|
2
|
+
readonly skyblue: "var(--iui-color-background-skyblue)";
|
|
3
|
+
readonly celery: "var(--iui-color-background-celery)";
|
|
4
|
+
readonly froly: "var(--iui-color-background-froly)";
|
|
5
|
+
readonly steelblue: "var(--iui-color-background-steelblue)";
|
|
6
|
+
readonly sunglow: "var(--iui-color-background-sunglow)";
|
|
7
|
+
readonly seabuckthorn: "var(--iui-color-background-seabuckthorn)";
|
|
8
|
+
readonly montecarlo: "var(--iui-color-background-montecarlo)";
|
|
9
|
+
readonly poloblue: "var(--iui-color-background-poloblue)";
|
|
10
|
+
readonly bouquet: "var(--iui-color-background-bouquet)";
|
|
11
|
+
readonly ash: "var(--iui-color-background-ash)";
|
|
12
|
+
readonly oak: "var(--iui-color-background-oak)";
|
|
13
13
|
};
|
|
14
14
|
/** Returns true if a string value is one of the SoftBackgrounds keys */
|
|
15
15
|
export declare const isSoftBackground: (value: string) => value is "skyblue" | "celery" | "froly" | "steelblue" | "sunglow" | "seabuckthorn" | "montecarlo" | "poloblue" | "bouquet" | "ash" | "oak";
|
|
16
16
|
/**
|
|
17
17
|
* Generate color from user name or email.
|
|
18
|
-
* Recommended to use for `backgroundColor` in `
|
|
18
|
+
* Recommended to use for `backgroundColor` in `Avatar` component.
|
|
19
19
|
*/
|
|
20
20
|
export declare const getUserColor: (emailOrName: string) => string;
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.getUserColor = exports.isSoftBackground = exports.SoftBackgrounds = void 0;
|
|
8
8
|
exports.SoftBackgrounds = {
|
|
9
|
-
skyblue: '
|
|
10
|
-
celery: '
|
|
11
|
-
froly: '
|
|
12
|
-
steelblue: '
|
|
13
|
-
sunglow: '
|
|
14
|
-
seabuckthorn: '
|
|
15
|
-
montecarlo: '
|
|
16
|
-
poloblue: '
|
|
17
|
-
bouquet: '
|
|
18
|
-
ash: '
|
|
19
|
-
oak: '
|
|
9
|
+
skyblue: 'var(--iui-color-background-skyblue)',
|
|
10
|
+
celery: 'var(--iui-color-background-celery)',
|
|
11
|
+
froly: 'var(--iui-color-background-froly)',
|
|
12
|
+
steelblue: 'var(--iui-color-background-steelblue)',
|
|
13
|
+
sunglow: 'var(--iui-color-background-sunglow)',
|
|
14
|
+
seabuckthorn: 'var(--iui-color-background-seabuckthorn)',
|
|
15
|
+
montecarlo: 'var(--iui-color-background-montecarlo)',
|
|
16
|
+
poloblue: 'var(--iui-color-background-poloblue)',
|
|
17
|
+
bouquet: 'var(--iui-color-background-bouquet)',
|
|
18
|
+
ash: 'var(--iui-color-background-ash)',
|
|
19
|
+
oak: 'var(--iui-color-background-oak)',
|
|
20
20
|
};
|
|
21
21
|
/** Returns true if a string value is one of the SoftBackgrounds keys */
|
|
22
22
|
var isSoftBackground = function (value) {
|
|
@@ -38,7 +38,7 @@ var USER_COLORS = [
|
|
|
38
38
|
];
|
|
39
39
|
/**
|
|
40
40
|
* Generate color from user name or email.
|
|
41
|
-
* Recommended to use for `backgroundColor` in `
|
|
41
|
+
* Recommended to use for `backgroundColor` in `Avatar` component.
|
|
42
42
|
*/
|
|
43
43
|
var getUserColor = function (emailOrName) {
|
|
44
44
|
var normalizedString = emailOrName.trim().toLowerCase();
|
|
@@ -28,3 +28,4 @@ __exportStar(require("./useIntersection"), exports);
|
|
|
28
28
|
__exportStar(require("./useMediaQuery"), exports);
|
|
29
29
|
__exportStar(require("./useSafeContext"), exports);
|
|
30
30
|
__exportStar(require("./useLatestRef"), exports);
|
|
31
|
+
__exportStar(require("./useIsomorphicLayoutEffect"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.useIsomorphicLayoutEffect = void 0;
|
|
7
|
+
/*---------------------------------------------------------------------------------------------
|
|
8
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
9
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
10
|
+
*--------------------------------------------------------------------------------------------*/
|
|
11
|
+
var react_1 = __importDefault(require("react"));
|
|
12
|
+
/**
|
|
13
|
+
* SSR-safe version of `useLayoutEffect` that replaces it with `useEffect` on the server.
|
|
14
|
+
*
|
|
15
|
+
* @see https://fb.me/react-uselayouteffect-ssr
|
|
16
|
+
*/
|
|
17
|
+
exports.useIsomorphicLayoutEffect = typeof window !== 'undefined' ? react_1.default.useLayoutEffect : react_1.default.useEffect;
|
|
@@ -10,9 +10,10 @@ exports.useMediaQuery = void 0;
|
|
|
10
10
|
*--------------------------------------------------------------------------------------------*/
|
|
11
11
|
var react_1 = __importDefault(require("react"));
|
|
12
12
|
var functions_1 = require("../functions");
|
|
13
|
+
var useIsomorphicLayoutEffect_1 = require("./useIsomorphicLayoutEffect");
|
|
13
14
|
var useMediaQuery = function (queryString) {
|
|
14
15
|
var _a = react_1.default.useState(), matches = _a[0], setMatches = _a[1];
|
|
15
|
-
|
|
16
|
+
(0, useIsomorphicLayoutEffect_1.useIsomorphicLayoutEffect)(function () {
|
|
16
17
|
var _a, _b, _c;
|
|
17
18
|
var mediaQueryList = (_b = (_a = (0, functions_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.matchMedia) === null || _b === void 0 ? void 0 : _b.call(_a, queryString);
|
|
18
19
|
var handleChange = function (_a) {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import '@itwin/itwinui-css/css/global.css';
|
|
2
|
+
import '@itwin/itwinui-variables/index.css';
|
|
2
3
|
export declare type ThemeOptions = {
|
|
3
4
|
/**
|
|
4
5
|
* Document to which the theme will be applied.
|
|
5
6
|
* Can be specified to handle popup windows.
|
|
6
7
|
* @default document
|
|
8
|
+
*
|
|
9
|
+
* @deprecated This prop will continue to work in `useTheme` but
|
|
10
|
+
* we recommend rendering `ThemeProvider` in the correct document instead.
|
|
7
11
|
*/
|
|
8
12
|
ownerDocument?: Document;
|
|
9
13
|
/**
|
|
@@ -13,10 +17,23 @@ export declare type ThemeOptions = {
|
|
|
13
17
|
highContrast?: boolean;
|
|
14
18
|
};
|
|
15
19
|
export declare type ThemeType = 'light' | 'dark' | 'os';
|
|
20
|
+
export declare type UseThemeProps = {
|
|
21
|
+
/**
|
|
22
|
+
* Theme to be applied. If not set, light theme will be used.
|
|
23
|
+
*/
|
|
24
|
+
theme?: ThemeType;
|
|
25
|
+
/**
|
|
26
|
+
* Options that can be specified to override default theming behavior.
|
|
27
|
+
*/
|
|
28
|
+
themeOptions?: ThemeOptions;
|
|
29
|
+
};
|
|
16
30
|
/**
|
|
17
|
-
* Hook that applies styling and theme to all components.
|
|
18
|
-
* Defaults to light theme if none provided
|
|
31
|
+
* Hook that conditionally applies styling and theme to all components.
|
|
32
|
+
* Defaults to light theme if none provided.
|
|
33
|
+
*
|
|
34
|
+
* If ThemeProvider is used as an ancestor, this hook will not do anything.
|
|
35
|
+
*
|
|
19
36
|
* @param theme Light, dark, or based on OS setting.
|
|
20
37
|
* @param themeOptions Options that override default theming behavior.
|
|
21
38
|
*/
|
|
22
|
-
export declare const useTheme: (theme?:
|
|
39
|
+
export declare const useTheme: (theme?: UseThemeProps['theme'], themeOptions?: UseThemeProps['themeOptions']) => void;
|
|
@@ -9,78 +9,77 @@ exports.useTheme = void 0;
|
|
|
9
9
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
10
10
|
*--------------------------------------------------------------------------------------------*/
|
|
11
11
|
var react_1 = __importDefault(require("react"));
|
|
12
|
+
var ThemeProvider_1 = require("../../ThemeProvider/ThemeProvider");
|
|
13
|
+
var functions_1 = require("../functions");
|
|
14
|
+
var useIsomorphicLayoutEffect_1 = require("./useIsomorphicLayoutEffect");
|
|
12
15
|
require("@itwin/itwinui-css/css/global.css");
|
|
13
|
-
|
|
14
|
-
var useMediaQuery_1 = require("./useMediaQuery");
|
|
16
|
+
require("@itwin/itwinui-variables/index.css");
|
|
15
17
|
/**
|
|
16
|
-
* Hook that applies styling and theme to all components.
|
|
17
|
-
* Defaults to light theme if none provided
|
|
18
|
+
* Hook that conditionally applies styling and theme to all components.
|
|
19
|
+
* Defaults to light theme if none provided.
|
|
20
|
+
*
|
|
21
|
+
* If ThemeProvider is used as an ancestor, this hook will not do anything.
|
|
22
|
+
*
|
|
18
23
|
* @param theme Light, dark, or based on OS setting.
|
|
19
24
|
* @param themeOptions Options that override default theming behavior.
|
|
20
25
|
*/
|
|
21
26
|
var useTheme = function (theme, themeOptions) {
|
|
22
27
|
var _a;
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (
|
|
28
|
-
ownerDocument === null || ownerDocument === void 0 ? void 0 : ownerDocument.body.classList.add('iui-body');
|
|
29
|
-
}
|
|
30
|
-
}, [ownerDocument]);
|
|
31
|
-
react_1.default.useLayoutEffect(function () {
|
|
32
|
-
var _a, _b, _c, _d, _e;
|
|
33
|
-
if (!ownerDocument) {
|
|
28
|
+
var themeContext = react_1.default.useContext(ThemeProvider_1.ThemeContext);
|
|
29
|
+
var ownerDocument = (_a = themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.ownerDocument) !== null && _a !== void 0 ? _a : (0, functions_1.getDocument)();
|
|
30
|
+
(0, useIsomorphicLayoutEffect_1.useIsomorphicLayoutEffect)(function () {
|
|
31
|
+
// exit early if theme was already set by provider
|
|
32
|
+
if (themeContext || !ownerDocument) {
|
|
34
33
|
return;
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
var addOSTheme = function (_a) {
|
|
38
|
-
var isDark = _a.matches;
|
|
39
|
-
if (isDark) {
|
|
40
|
-
applyTheme('dark', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
applyTheme('light', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
44
|
-
}
|
|
45
|
-
};
|
|
35
|
+
ownerDocument.body.classList.toggle('iui-root', true);
|
|
46
36
|
switch (theme) {
|
|
47
37
|
case 'light':
|
|
48
|
-
(_c = prefersDarkMediaQuery === null || prefersDarkMediaQuery === void 0 ? void 0 : prefersDarkMediaQuery.removeEventListener) === null || _c === void 0 ? void 0 : _c.call(prefersDarkMediaQuery, 'change', addOSTheme);
|
|
49
|
-
applyTheme('light', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
50
|
-
break;
|
|
51
38
|
case 'dark':
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
(
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
applyTheme('light', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
62
|
-
}
|
|
63
|
-
break;
|
|
64
|
-
default:
|
|
65
|
-
if (ownerDocument.documentElement.className.indexOf('iui-theme') === -1) {
|
|
66
|
-
applyTheme('light', { ownerDocument: ownerDocument, highContrast: highContrast });
|
|
39
|
+
case 'os': {
|
|
40
|
+
return handleTheme(theme, ownerDocument, themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.highContrast);
|
|
41
|
+
}
|
|
42
|
+
default: {
|
|
43
|
+
// set light theme by default
|
|
44
|
+
if (ownerDocument.documentElement.dataset.iuiTheme == null) {
|
|
45
|
+
return handleTheme('light', ownerDocument, themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.highContrast);
|
|
67
46
|
}
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
68
49
|
}
|
|
69
|
-
|
|
70
|
-
var _a;
|
|
71
|
-
(_a = prefersDarkMediaQuery === null || prefersDarkMediaQuery === void 0 ? void 0 : prefersDarkMediaQuery.removeEventListener) === null || _a === void 0 ? void 0 : _a.call(prefersDarkMediaQuery, 'change', addOSTheme);
|
|
72
|
-
};
|
|
73
|
-
}, [highContrast, ownerDocument, theme]);
|
|
50
|
+
}, [theme, themeContext, themeOptions === null || themeOptions === void 0 ? void 0 : themeOptions.highContrast, ownerDocument]);
|
|
74
51
|
};
|
|
75
52
|
exports.useTheme = useTheme;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Helper function to apply the specified theme, or detect the OS theme.
|
|
55
|
+
* Returns a cleanup function to remove the change handlers.
|
|
56
|
+
*/
|
|
57
|
+
var handleTheme = function (theme, ownerDocument, highContrast) {
|
|
58
|
+
var _a, _b, _c, _d, _e;
|
|
59
|
+
var root = ownerDocument.documentElement;
|
|
60
|
+
var _window = (_a = ownerDocument.defaultView) !== null && _a !== void 0 ? _a : (0, functions_1.getWindow)();
|
|
61
|
+
var applyThemeAttributes = function (isDark, isHC) {
|
|
62
|
+
if (isDark === void 0) { isDark = false; }
|
|
63
|
+
if (isHC === void 0) { isHC = false; }
|
|
64
|
+
root.dataset.iuiTheme = isDark ? 'dark' : 'light';
|
|
65
|
+
root.dataset.iuiContrast = isHC ? 'high' : 'default';
|
|
66
|
+
};
|
|
67
|
+
var prefersDarkQuery = (_b = _window === null || _window === void 0 ? void 0 : _window.matchMedia) === null || _b === void 0 ? void 0 : _b.call(_window, '(prefers-color-scheme: dark)');
|
|
68
|
+
var prefersHCQuery = (_c = _window === null || _window === void 0 ? void 0 : _window.matchMedia) === null || _c === void 0 ? void 0 : _c.call(_window, '(prefers-contrast: more)');
|
|
69
|
+
var changeHandler = function () {
|
|
70
|
+
var isDark = theme === 'dark' || (theme === 'os' && (prefersDarkQuery === null || prefersDarkQuery === void 0 ? void 0 : prefersDarkQuery.matches));
|
|
71
|
+
var isHC = highContrast !== null && highContrast !== void 0 ? highContrast : prefersHCQuery === null || prefersHCQuery === void 0 ? void 0 : prefersHCQuery.matches;
|
|
72
|
+
applyThemeAttributes(isDark, isHC);
|
|
73
|
+
};
|
|
74
|
+
// call handler once to set initial theme
|
|
75
|
+
changeHandler();
|
|
76
|
+
// add listeners in supported browsers
|
|
77
|
+
(_d = prefersDarkQuery === null || prefersDarkQuery === void 0 ? void 0 : prefersDarkQuery.addEventListener) === null || _d === void 0 ? void 0 : _d.call(prefersDarkQuery, 'change', changeHandler);
|
|
78
|
+
(_e = prefersHCQuery === null || prefersHCQuery === void 0 ? void 0 : prefersHCQuery.addEventListener) === null || _e === void 0 ? void 0 : _e.call(prefersHCQuery, 'change', changeHandler);
|
|
79
|
+
// return cleanup function to remove event listeners (should be returned from useEffect)
|
|
80
|
+
return function () {
|
|
81
|
+
var _a, _b;
|
|
82
|
+
(_a = prefersDarkQuery === null || prefersDarkQuery === void 0 ? void 0 : prefersDarkQuery.removeEventListener) === null || _a === void 0 ? void 0 : _a.call(prefersDarkQuery, 'change', changeHandler);
|
|
83
|
+
(_b = prefersHCQuery === null || prefersHCQuery === void 0 ? void 0 : prefersHCQuery.removeEventListener) === null || _b === void 0 ? void 0 : _b.call(prefersHCQuery, 'change', changeHandler);
|
|
84
|
+
};
|
|
86
85
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.StatusIconMap = void 0;
|
|
38
|
+
/*---------------------------------------------------------------------------------------------
|
|
39
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
40
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
41
|
+
*--------------------------------------------------------------------------------------------*/
|
|
42
|
+
var React = __importStar(require("react"));
|
|
43
|
+
var SvgInfoCircular_1 = require("./SvgInfoCircular");
|
|
44
|
+
var SvgStatusError_1 = require("./SvgStatusError");
|
|
45
|
+
var SvgStatusSuccess_1 = require("./SvgStatusSuccess");
|
|
46
|
+
var SvgStatusWarning_1 = require("./SvgStatusWarning");
|
|
47
|
+
exports.StatusIconMap = {
|
|
48
|
+
negative: function (args) { return React.createElement(SvgStatusError_1.SvgStatusError, __assign({ "aria-hidden": true }, args)); },
|
|
49
|
+
positive: function (args) { return React.createElement(SvgStatusSuccess_1.SvgStatusSuccess, __assign({ "aria-hidden": true }, args)); },
|
|
50
|
+
warning: function (args) { return React.createElement(SvgStatusWarning_1.SvgStatusWarning, __assign({ "aria-hidden": true }, args)); },
|
|
51
|
+
informational: function (args) { return (React.createElement(SvgInfoCircular_1.SvgInfoCircular, __assign({ "aria-hidden": true }, args))); },
|
|
52
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.SvgCalendar = void 0;
|
|
38
|
+
/*---------------------------------------------------------------------------------------------
|
|
39
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
40
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
41
|
+
*--------------------------------------------------------------------------------------------*/
|
|
42
|
+
var React = __importStar(require("react"));
|
|
43
|
+
var SvgCalendar = function (props) {
|
|
44
|
+
return (React.createElement("svg", __assign({ viewBox: '0 0 16 16' }, props),
|
|
45
|
+
React.createElement("path", { d: 'M13,13H9V10h4ZM16,3V15a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V3A1,1,0,0,1,1,2H3V0H4V2h8V0h1V2h2A1,1,0,0,1,16,3ZM15,6H1v9H15Z' })));
|
|
46
|
+
};
|
|
47
|
+
exports.SvgCalendar = SvgCalendar;
|