@itwin/itwinui-react 3.4.0 → 3.4.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/CHANGELOG.md +7 -0
- package/cjs/core/Alert/Alert.d.ts +1 -1
- package/cjs/core/Alert/Alert.js +0 -1
- package/cjs/core/Avatar/Avatar.d.ts +1 -1
- package/cjs/core/Avatar/Avatar.js +0 -1
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/cjs/core/AvatarGroup/AvatarGroup.js +0 -1
- package/cjs/core/Badge/Badge.d.ts +1 -1
- package/cjs/core/Badge/Badge.js +0 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +0 -1
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/cjs/core/ButtonGroup/ButtonGroup.js +0 -1
- package/cjs/core/Buttons/Button.d.ts +0 -1
- package/cjs/core/Buttons/Button.js +0 -1
- package/cjs/core/Buttons/DropdownButton.d.ts +0 -1
- package/cjs/core/Buttons/DropdownButton.js +0 -1
- package/cjs/core/Buttons/IconButton.d.ts +0 -1
- package/cjs/core/Buttons/IconButton.js +0 -1
- package/cjs/core/Buttons/IdeasButton.d.ts +1 -1
- package/cjs/core/Buttons/IdeasButton.js +0 -1
- package/cjs/core/Buttons/SplitButton.d.ts +0 -1
- package/cjs/core/Buttons/SplitButton.js +0 -1
- package/cjs/core/Carousel/Carousel.d.ts +1 -1
- package/cjs/core/Carousel/Carousel.js +0 -1
- package/cjs/core/Checkbox/Checkbox.d.ts +1 -1
- package/cjs/core/Checkbox/Checkbox.js +0 -1
- package/cjs/core/ColorPicker/ColorInputPanel.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorInputPanel.js +0 -1
- package/cjs/core/ColorPicker/ColorPalette.d.ts +0 -1
- package/cjs/core/ColorPicker/ColorPalette.js +0 -1
- package/cjs/core/ColorPicker/ColorPicker.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorPicker.js +0 -1
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/cjs/core/ColorPicker/ColorSwatch.js +0 -1
- package/cjs/core/ComboBox/ComboBox.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBox.js +0 -1
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.js +2 -5
- package/cjs/core/DatePicker/DatePicker.d.ts +1 -1
- package/cjs/core/DatePicker/DatePicker.js +0 -1
- package/cjs/core/Dialog/Dialog.d.ts +1 -1
- package/cjs/core/Dialog/Dialog.js +0 -1
- package/cjs/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/cjs/core/Dialog/DialogBackdrop.js +0 -1
- package/cjs/core/Dialog/DialogButtonBar.d.ts +0 -1
- package/cjs/core/Dialog/DialogButtonBar.js +0 -1
- package/cjs/core/Dialog/DialogContent.d.ts +0 -1
- package/cjs/core/Dialog/DialogContent.js +0 -1
- package/cjs/core/Dialog/DialogMain.d.ts +0 -1
- package/cjs/core/Dialog/DialogMain.js +12 -15
- package/cjs/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/cjs/core/Dialog/DialogTitleBar.js +0 -1
- package/cjs/core/Dialog/DialogTitleBarTitle.d.ts +0 -1
- package/cjs/core/Dialog/DialogTitleBarTitle.js +0 -1
- package/cjs/core/Divider/Divider.d.ts +1 -1
- package/cjs/core/Divider/Divider.js +0 -1
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +0 -1
- package/cjs/core/DropdownMenu/DropdownMenu.js +0 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +0 -1
- package/cjs/core/Fieldset/Fieldset.d.ts +1 -1
- package/cjs/core/Fieldset/Fieldset.js +0 -1
- package/cjs/core/FileUpload/FileEmptyCard.d.ts +0 -1
- package/cjs/core/FileUpload/FileEmptyCard.js +2 -3
- package/cjs/core/FileUpload/FileUpload.d.ts +1 -1
- package/cjs/core/FileUpload/FileUpload.js +0 -1
- package/cjs/core/FileUpload/FileUploadCard.d.ts +1 -1
- package/cjs/core/FileUpload/FileUploadCard.js +0 -1
- package/cjs/core/FileUpload/FileUploadTemplate.d.ts +1 -1
- package/cjs/core/FileUpload/FileUploadTemplate.js +0 -1
- package/cjs/core/Flex/Flex.d.ts +1 -1
- package/cjs/core/Flex/Flex.js +0 -1
- package/cjs/core/Footer/Footer.d.ts +1 -1
- package/cjs/core/Footer/Footer.js +0 -1
- package/cjs/core/Footer/FooterItem.d.ts +0 -1
- package/cjs/core/Footer/FooterItem.js +0 -1
- package/cjs/core/Footer/FooterList.d.ts +0 -1
- package/cjs/core/Footer/FooterList.js +0 -1
- package/cjs/core/Footer/FooterSeparator.d.ts +0 -1
- package/cjs/core/Footer/FooterSeparator.js +0 -1
- package/cjs/core/Header/Header.d.ts +1 -1
- package/cjs/core/Header/Header.js +0 -1
- package/cjs/core/Header/HeaderBasicButton.d.ts +0 -1
- package/cjs/core/Header/HeaderBasicButton.js +0 -1
- package/cjs/core/Header/HeaderBreadcrumbs.d.ts +1 -1
- package/cjs/core/Header/HeaderBreadcrumbs.js +0 -1
- package/cjs/core/Header/HeaderButton.d.ts +1 -1
- package/cjs/core/Header/HeaderButton.js +0 -1
- package/cjs/core/Header/HeaderDropdownButton.d.ts +0 -1
- package/cjs/core/Header/HeaderDropdownButton.js +0 -1
- package/cjs/core/Header/HeaderLogo.d.ts +1 -1
- package/cjs/core/Header/HeaderLogo.js +0 -1
- package/cjs/core/Header/HeaderSplitButton.d.ts +0 -1
- package/cjs/core/Header/HeaderSplitButton.js +0 -1
- package/cjs/core/Icon/Icon.d.ts +0 -1
- package/cjs/core/Icon/Icon.js +0 -1
- package/cjs/core/InformationPanel/InformationPanel.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanel.js +0 -1
- package/cjs/core/InformationPanel/InformationPanelBody.d.ts +0 -1
- package/cjs/core/InformationPanel/InformationPanelBody.js +0 -1
- package/cjs/core/InformationPanel/InformationPanelContent.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanelContent.js +0 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.js +0 -1
- package/cjs/core/InformationPanel/InformationPanelWrapper.d.ts +0 -1
- package/cjs/core/InformationPanel/InformationPanelWrapper.js +0 -1
- package/cjs/core/Input/Input.d.ts +0 -1
- package/cjs/core/Input/Input.js +0 -1
- package/cjs/core/InputGrid/InputGrid.d.ts +1 -1
- package/cjs/core/InputGrid/InputGrid.js +0 -1
- package/cjs/core/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/core/InputGroup/InputGroup.js +0 -1
- package/cjs/core/Label/Label.d.ts +1 -1
- package/cjs/core/Label/Label.js +0 -1
- package/cjs/core/LabeledInput/LabeledInput.d.ts +0 -1
- package/cjs/core/LabeledInput/LabeledInput.js +0 -1
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +0 -1
- package/cjs/core/LabeledSelect/LabeledSelect.js +0 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +0 -1
- package/cjs/core/Menu/Menu.d.ts +1 -1
- package/cjs/core/Menu/Menu.js +0 -1
- package/cjs/core/Menu/MenuDivider.d.ts +0 -1
- package/cjs/core/Menu/MenuDivider.js +0 -1
- package/cjs/core/Menu/MenuExtraContent.d.ts +0 -1
- package/cjs/core/Menu/MenuExtraContent.js +0 -1
- package/cjs/core/Menu/MenuItem.d.ts +0 -1
- package/cjs/core/Menu/MenuItem.js +0 -1
- package/cjs/core/Menu/MenuItemSkeleton.d.ts +1 -1
- package/cjs/core/Menu/MenuItemSkeleton.js +0 -1
- package/cjs/core/Modal/Modal.d.ts +1 -1
- package/cjs/core/Modal/Modal.js +0 -1
- package/cjs/core/Modal/ModalButtonBar.d.ts +0 -1
- package/cjs/core/Modal/ModalButtonBar.js +0 -1
- package/cjs/core/Modal/ModalContent.d.ts +0 -1
- package/cjs/core/Modal/ModalContent.js +0 -1
- package/cjs/core/NonIdealState/ErrorPage.d.ts +1 -1
- package/cjs/core/NonIdealState/ErrorPage.js +0 -1
- package/cjs/core/NonIdealState/NonIdealState.d.ts +1 -1
- package/cjs/core/NonIdealState/NonIdealState.js +0 -1
- package/cjs/core/NotificationMarker/NotificationMarker.d.ts +1 -1
- package/cjs/core/NotificationMarker/NotificationMarker.js +0 -1
- package/cjs/core/Popover/Popover.d.ts +1 -1
- package/cjs/core/Popover/Popover.js +0 -1
- package/cjs/core/ProgressIndicators/ProgressLinear.d.ts +1 -1
- package/cjs/core/ProgressIndicators/ProgressLinear.js +0 -1
- package/cjs/core/ProgressIndicators/ProgressRadial.d.ts +1 -1
- package/cjs/core/ProgressIndicators/ProgressRadial.js +0 -1
- package/cjs/core/Radio/Radio.d.ts +1 -1
- package/cjs/core/Radio/Radio.js +0 -1
- package/cjs/core/RadioTiles/RadioTile.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTile.js +0 -1
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +0 -1
- package/cjs/core/SearchBox/SearchBox.d.ts +1 -1
- package/cjs/core/SearchBox/SearchBox.js +0 -1
- package/cjs/core/Select/Select.d.ts +0 -1
- package/cjs/core/Select/Select.js +0 -1
- package/cjs/core/Select/SelectTag.d.ts +1 -1
- package/cjs/core/Select/SelectTag.js +0 -1
- package/cjs/core/Select/SelectTagContainer.d.ts +1 -1
- package/cjs/core/Select/SelectTagContainer.js +0 -1
- package/cjs/core/SideNavigation/SideNavigation.d.ts +1 -1
- package/cjs/core/SideNavigation/SideNavigation.js +0 -1
- package/cjs/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavButton.js +0 -1
- package/cjs/core/SideNavigation/SidenavSubmenu.d.ts +0 -1
- package/cjs/core/SideNavigation/SidenavSubmenu.js +0 -1
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +0 -1
- package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
- package/cjs/core/SkipToContentLink/SkipToContentLink.js +0 -1
- package/cjs/core/Slider/Slider.d.ts +1 -1
- package/cjs/core/Slider/Slider.js +0 -1
- package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/cjs/core/StatusMessage/StatusMessage.js +0 -1
- package/cjs/core/Stepper/Stepper.d.ts +0 -1
- package/cjs/core/Stepper/Stepper.js +0 -1
- package/cjs/core/Stepper/WorkflowDiagram.d.ts +1 -1
- package/cjs/core/Stepper/WorkflowDiagram.js +0 -1
- package/cjs/core/Surface/Surface.d.ts +1 -1
- package/cjs/core/Surface/Surface.js +0 -1
- package/cjs/core/Table/SubRowExpander.d.ts +0 -1
- package/cjs/core/Table/SubRowExpander.js +0 -1
- package/cjs/core/Table/Table.d.ts +0 -1
- package/cjs/core/Table/Table.js +3 -22
- package/cjs/core/Table/TableCell.d.ts +0 -1
- package/cjs/core/Table/TableCell.js +0 -1
- package/cjs/core/Table/TablePaginator.d.ts +0 -1
- package/cjs/core/Table/TablePaginator.js +0 -1
- package/cjs/core/Table/cells/DefaultCell.d.ts +0 -1
- package/cjs/core/Table/cells/DefaultCell.js +0 -1
- package/cjs/core/Table/cells/EditableCell.d.ts +0 -1
- package/cjs/core/Table/cells/EditableCell.js +0 -1
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -2
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +2 -2
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +3 -6
- package/cjs/core/Table/index.d.ts +0 -2
- package/cjs/core/Table/index.js +0 -1
- package/cjs/core/Tabs/Tabs.d.ts +0 -1
- package/cjs/core/Tabs/Tabs.js +0 -1
- package/cjs/core/Tag/Tag.d.ts +1 -1
- package/cjs/core/Tag/Tag.js +0 -1
- package/cjs/core/Tag/TagContainer.d.ts +1 -1
- package/cjs/core/Tag/TagContainer.js +0 -1
- package/cjs/core/Textarea/Textarea.d.ts +0 -1
- package/cjs/core/Textarea/Textarea.js +0 -1
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/cjs/core/ThemeProvider/ThemeProvider.js +0 -1
- package/cjs/core/Tile/Tile.d.ts +1 -1
- package/cjs/core/Tile/Tile.js +0 -1
- package/cjs/core/TimePicker/TimePicker.d.ts +0 -1
- package/cjs/core/TimePicker/TimePicker.js +0 -1
- package/cjs/core/Toast/Toast.d.ts +0 -1
- package/cjs/core/Toast/Toast.js +0 -1
- package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +0 -1
- package/cjs/core/Tooltip/Tooltip.d.ts +1 -1
- package/cjs/core/Tooltip/Tooltip.js +0 -1
- package/cjs/core/TransferList/TransferList.d.ts +1 -1
- package/cjs/core/TransferList/TransferList.js +0 -1
- package/cjs/core/Tree/Tree.d.ts +0 -1
- package/cjs/core/Tree/Tree.js +0 -1
- package/cjs/core/Tree/TreeNode.d.ts +1 -1
- package/cjs/core/Tree/TreeNode.js +0 -1
- package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/cjs/core/Tree/TreeNodeExpander.js +0 -1
- package/cjs/core/Typography/Anchor.d.ts +0 -1
- package/cjs/core/Typography/Anchor.js +0 -1
- package/cjs/core/Typography/Blockquote.d.ts +1 -1
- package/cjs/core/Typography/Blockquote.js +0 -1
- package/cjs/core/Typography/Code.d.ts +0 -1
- package/cjs/core/Typography/Code.js +0 -1
- package/cjs/core/Typography/Kbd.d.ts +1 -1
- package/cjs/core/Typography/Kbd.js +0 -1
- package/cjs/core/Typography/Text.d.ts +1 -1
- package/cjs/core/Typography/Text.js +0 -1
- package/cjs/core/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/cjs/core/VisuallyHidden/VisuallyHidden.js +0 -1
- package/cjs/core/utils/components/FocusTrap.d.ts +0 -1
- package/cjs/core/utils/components/FocusTrap.js +0 -1
- package/cjs/core/utils/components/MiddleTextTruncation.d.ts +0 -1
- package/cjs/core/utils/components/MiddleTextTruncation.js +0 -1
- package/cjs/core/utils/components/Resizer.d.ts +2 -1
- package/cjs/core/utils/components/Resizer.js +55 -66
- package/cjs/core/utils/components/ShadowRoot.d.ts +10 -0
- package/cjs/core/utils/components/ShadowRoot.js +67 -0
- package/cjs/core/utils/components/VirtualScroll.d.ts +0 -1
- package/cjs/core/utils/components/VirtualScroll.js +0 -1
- package/cjs/core/utils/components/WithCSSTransition.d.ts +0 -1
- package/cjs/core/utils/components/WithCSSTransition.js +0 -1
- package/cjs/core/utils/components/index.d.ts +1 -0
- package/cjs/core/utils/components/index.js +1 -0
- package/cjs/core/utils/hooks/useContainerWidth.d.ts +0 -1
- package/cjs/core/utils/hooks/useContainerWidth.js +0 -1
- package/cjs/core/utils/hooks/useDragAndDrop.d.ts +0 -1
- package/cjs/core/utils/hooks/useDragAndDrop.js +0 -1
- package/cjs/core/utils/hooks/useMediaQuery.d.ts +0 -1
- package/cjs/core/utils/hooks/useMediaQuery.js +0 -1
- package/esm/core/Alert/Alert.d.ts +1 -1
- package/esm/core/Alert/Alert.js +0 -1
- package/esm/core/Avatar/Avatar.d.ts +1 -1
- package/esm/core/Avatar/Avatar.js +0 -1
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/esm/core/AvatarGroup/AvatarGroup.js +0 -1
- package/esm/core/Badge/Badge.d.ts +1 -1
- package/esm/core/Badge/Badge.js +0 -1
- package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/esm/core/Breadcrumbs/Breadcrumbs.js +0 -1
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/esm/core/ButtonGroup/ButtonGroup.js +0 -1
- package/esm/core/Buttons/Button.d.ts +0 -1
- package/esm/core/Buttons/Button.js +0 -1
- package/esm/core/Buttons/DropdownButton.d.ts +0 -1
- package/esm/core/Buttons/DropdownButton.js +0 -1
- package/esm/core/Buttons/IconButton.d.ts +0 -1
- package/esm/core/Buttons/IconButton.js +0 -1
- package/esm/core/Buttons/IdeasButton.d.ts +1 -1
- package/esm/core/Buttons/IdeasButton.js +0 -1
- package/esm/core/Buttons/SplitButton.d.ts +0 -1
- package/esm/core/Buttons/SplitButton.js +0 -1
- package/esm/core/Carousel/Carousel.d.ts +1 -1
- package/esm/core/Carousel/Carousel.js +0 -1
- package/esm/core/Checkbox/Checkbox.d.ts +1 -1
- package/esm/core/Checkbox/Checkbox.js +0 -1
- package/esm/core/ColorPicker/ColorInputPanel.d.ts +1 -1
- package/esm/core/ColorPicker/ColorInputPanel.js +0 -1
- package/esm/core/ColorPicker/ColorPalette.d.ts +0 -1
- package/esm/core/ColorPicker/ColorPalette.js +0 -1
- package/esm/core/ColorPicker/ColorPicker.d.ts +1 -1
- package/esm/core/ColorPicker/ColorPicker.js +0 -1
- package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
- package/esm/core/ColorPicker/ColorSwatch.js +0 -1
- package/esm/core/ComboBox/ComboBox.d.ts +1 -1
- package/esm/core/ComboBox/ComboBox.js +0 -1
- package/esm/core/ComboBox/ComboBoxMultipleContainer.js +1 -1
- package/esm/core/DatePicker/DatePicker.d.ts +1 -1
- package/esm/core/DatePicker/DatePicker.js +0 -1
- package/esm/core/Dialog/Dialog.d.ts +1 -1
- package/esm/core/Dialog/Dialog.js +0 -1
- package/esm/core/Dialog/DialogBackdrop.d.ts +1 -1
- package/esm/core/Dialog/DialogBackdrop.js +0 -1
- package/esm/core/Dialog/DialogButtonBar.d.ts +0 -1
- package/esm/core/Dialog/DialogButtonBar.js +0 -1
- package/esm/core/Dialog/DialogContent.d.ts +0 -1
- package/esm/core/Dialog/DialogContent.js +0 -1
- package/esm/core/Dialog/DialogMain.d.ts +0 -1
- package/esm/core/Dialog/DialogMain.js +13 -16
- package/esm/core/Dialog/DialogTitleBar.d.ts +1 -1
- package/esm/core/Dialog/DialogTitleBar.js +0 -1
- package/esm/core/Dialog/DialogTitleBarTitle.d.ts +0 -1
- package/esm/core/Dialog/DialogTitleBarTitle.js +0 -1
- package/esm/core/Divider/Divider.d.ts +1 -1
- package/esm/core/Divider/Divider.js +0 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +0 -1
- package/esm/core/DropdownMenu/DropdownMenu.js +0 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.js +0 -1
- package/esm/core/Fieldset/Fieldset.d.ts +1 -1
- package/esm/core/Fieldset/Fieldset.js +0 -1
- package/esm/core/FileUpload/FileEmptyCard.d.ts +0 -1
- package/esm/core/FileUpload/FileEmptyCard.js +1 -2
- package/esm/core/FileUpload/FileUpload.d.ts +1 -1
- package/esm/core/FileUpload/FileUpload.js +0 -1
- package/esm/core/FileUpload/FileUploadCard.d.ts +1 -1
- package/esm/core/FileUpload/FileUploadCard.js +0 -1
- package/esm/core/FileUpload/FileUploadTemplate.d.ts +1 -1
- package/esm/core/FileUpload/FileUploadTemplate.js +0 -1
- package/esm/core/Flex/Flex.d.ts +1 -1
- package/esm/core/Flex/Flex.js +0 -1
- package/esm/core/Footer/Footer.d.ts +1 -1
- package/esm/core/Footer/Footer.js +0 -1
- package/esm/core/Footer/FooterItem.d.ts +0 -1
- package/esm/core/Footer/FooterItem.js +0 -1
- package/esm/core/Footer/FooterList.d.ts +0 -1
- package/esm/core/Footer/FooterList.js +0 -1
- package/esm/core/Footer/FooterSeparator.d.ts +0 -1
- package/esm/core/Footer/FooterSeparator.js +0 -1
- package/esm/core/Header/Header.d.ts +1 -1
- package/esm/core/Header/Header.js +0 -1
- package/esm/core/Header/HeaderBasicButton.d.ts +0 -1
- package/esm/core/Header/HeaderBasicButton.js +0 -1
- package/esm/core/Header/HeaderBreadcrumbs.d.ts +1 -1
- package/esm/core/Header/HeaderBreadcrumbs.js +0 -1
- package/esm/core/Header/HeaderButton.d.ts +1 -1
- package/esm/core/Header/HeaderButton.js +0 -1
- package/esm/core/Header/HeaderDropdownButton.d.ts +0 -1
- package/esm/core/Header/HeaderDropdownButton.js +0 -1
- package/esm/core/Header/HeaderLogo.d.ts +1 -1
- package/esm/core/Header/HeaderLogo.js +0 -1
- package/esm/core/Header/HeaderSplitButton.d.ts +0 -1
- package/esm/core/Header/HeaderSplitButton.js +0 -1
- package/esm/core/Icon/Icon.d.ts +0 -1
- package/esm/core/Icon/Icon.js +0 -1
- package/esm/core/InformationPanel/InformationPanel.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanel.js +0 -1
- package/esm/core/InformationPanel/InformationPanelBody.d.ts +0 -1
- package/esm/core/InformationPanel/InformationPanelBody.js +0 -1
- package/esm/core/InformationPanel/InformationPanelContent.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanelContent.js +0 -1
- package/esm/core/InformationPanel/InformationPanelHeader.d.ts +1 -1
- package/esm/core/InformationPanel/InformationPanelHeader.js +0 -1
- package/esm/core/InformationPanel/InformationPanelWrapper.d.ts +0 -1
- package/esm/core/InformationPanel/InformationPanelWrapper.js +0 -1
- package/esm/core/Input/Input.d.ts +0 -1
- package/esm/core/Input/Input.js +0 -1
- package/esm/core/InputGrid/InputGrid.d.ts +1 -1
- package/esm/core/InputGrid/InputGrid.js +0 -1
- package/esm/core/InputGroup/InputGroup.d.ts +1 -1
- package/esm/core/InputGroup/InputGroup.js +0 -1
- package/esm/core/Label/Label.d.ts +1 -1
- package/esm/core/Label/Label.js +0 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +0 -1
- package/esm/core/LabeledInput/LabeledInput.js +0 -1
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +0 -1
- package/esm/core/LabeledSelect/LabeledSelect.js +0 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.js +0 -1
- package/esm/core/Menu/Menu.d.ts +1 -1
- package/esm/core/Menu/Menu.js +0 -1
- package/esm/core/Menu/MenuDivider.d.ts +0 -1
- package/esm/core/Menu/MenuDivider.js +0 -1
- package/esm/core/Menu/MenuExtraContent.d.ts +0 -1
- package/esm/core/Menu/MenuExtraContent.js +0 -1
- package/esm/core/Menu/MenuItem.d.ts +0 -1
- package/esm/core/Menu/MenuItem.js +0 -1
- package/esm/core/Menu/MenuItemSkeleton.d.ts +1 -1
- package/esm/core/Menu/MenuItemSkeleton.js +0 -1
- package/esm/core/Modal/Modal.d.ts +1 -1
- package/esm/core/Modal/Modal.js +0 -1
- package/esm/core/Modal/ModalButtonBar.d.ts +0 -1
- package/esm/core/Modal/ModalButtonBar.js +0 -1
- package/esm/core/Modal/ModalContent.d.ts +0 -1
- package/esm/core/Modal/ModalContent.js +0 -1
- package/esm/core/NonIdealState/ErrorPage.d.ts +1 -1
- package/esm/core/NonIdealState/ErrorPage.js +0 -1
- package/esm/core/NonIdealState/NonIdealState.d.ts +1 -1
- package/esm/core/NonIdealState/NonIdealState.js +0 -1
- package/esm/core/NotificationMarker/NotificationMarker.d.ts +1 -1
- package/esm/core/NotificationMarker/NotificationMarker.js +0 -1
- package/esm/core/Popover/Popover.d.ts +1 -1
- package/esm/core/Popover/Popover.js +0 -1
- package/esm/core/ProgressIndicators/ProgressLinear.d.ts +1 -1
- package/esm/core/ProgressIndicators/ProgressLinear.js +0 -1
- package/esm/core/ProgressIndicators/ProgressRadial.d.ts +1 -1
- package/esm/core/ProgressIndicators/ProgressRadial.js +0 -1
- package/esm/core/Radio/Radio.d.ts +1 -1
- package/esm/core/Radio/Radio.js +0 -1
- package/esm/core/RadioTiles/RadioTile.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTile.js +0 -1
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +0 -1
- package/esm/core/SearchBox/SearchBox.d.ts +1 -1
- package/esm/core/SearchBox/SearchBox.js +0 -1
- package/esm/core/Select/Select.d.ts +0 -1
- package/esm/core/Select/Select.js +0 -1
- package/esm/core/Select/SelectTag.d.ts +1 -1
- package/esm/core/Select/SelectTag.js +0 -1
- package/esm/core/Select/SelectTagContainer.d.ts +1 -1
- package/esm/core/Select/SelectTagContainer.js +0 -1
- package/esm/core/SideNavigation/SideNavigation.d.ts +1 -1
- package/esm/core/SideNavigation/SideNavigation.js +0 -1
- package/esm/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavButton.js +0 -1
- package/esm/core/SideNavigation/SidenavSubmenu.d.ts +0 -1
- package/esm/core/SideNavigation/SidenavSubmenu.js +0 -1
- package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavSubmenuHeader.js +0 -1
- package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +1 -1
- package/esm/core/SkipToContentLink/SkipToContentLink.js +0 -1
- package/esm/core/Slider/Slider.d.ts +1 -1
- package/esm/core/Slider/Slider.js +0 -1
- package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/esm/core/StatusMessage/StatusMessage.js +0 -1
- package/esm/core/Stepper/Stepper.d.ts +0 -1
- package/esm/core/Stepper/Stepper.js +0 -1
- package/esm/core/Stepper/WorkflowDiagram.d.ts +1 -1
- package/esm/core/Stepper/WorkflowDiagram.js +0 -1
- package/esm/core/Surface/Surface.d.ts +1 -1
- package/esm/core/Surface/Surface.js +0 -1
- package/esm/core/Table/SubRowExpander.d.ts +0 -1
- package/esm/core/Table/SubRowExpander.js +0 -1
- package/esm/core/Table/Table.d.ts +0 -1
- package/esm/core/Table/Table.js +3 -22
- package/esm/core/Table/TableCell.d.ts +0 -1
- package/esm/core/Table/TableCell.js +0 -1
- package/esm/core/Table/TablePaginator.d.ts +0 -1
- package/esm/core/Table/TablePaginator.js +0 -1
- package/esm/core/Table/cells/DefaultCell.d.ts +0 -1
- package/esm/core/Table/cells/DefaultCell.js +0 -1
- package/esm/core/Table/cells/EditableCell.d.ts +0 -1
- package/esm/core/Table/cells/EditableCell.js +0 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -2
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +1 -2
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +1 -1
- package/esm/core/Table/index.d.ts +0 -2
- package/esm/core/Table/index.js +0 -1
- package/esm/core/Tabs/Tabs.d.ts +0 -1
- package/esm/core/Tabs/Tabs.js +0 -1
- package/esm/core/Tag/Tag.d.ts +1 -1
- package/esm/core/Tag/Tag.js +0 -1
- package/esm/core/Tag/TagContainer.d.ts +1 -1
- package/esm/core/Tag/TagContainer.js +0 -1
- package/esm/core/Textarea/Textarea.d.ts +0 -1
- package/esm/core/Textarea/Textarea.js +0 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.js +0 -1
- package/esm/core/Tile/Tile.d.ts +1 -1
- package/esm/core/Tile/Tile.js +0 -1
- package/esm/core/TimePicker/TimePicker.d.ts +0 -1
- package/esm/core/TimePicker/TimePicker.js +0 -1
- package/esm/core/Toast/Toast.d.ts +0 -1
- package/esm/core/Toast/Toast.js +0 -1
- package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +1 -1
- package/esm/core/ToggleSwitch/ToggleSwitch.js +0 -1
- package/esm/core/Tooltip/Tooltip.d.ts +1 -1
- package/esm/core/Tooltip/Tooltip.js +0 -1
- package/esm/core/TransferList/TransferList.d.ts +1 -1
- package/esm/core/TransferList/TransferList.js +0 -1
- package/esm/core/Tree/Tree.d.ts +0 -1
- package/esm/core/Tree/Tree.js +0 -1
- package/esm/core/Tree/TreeNode.d.ts +1 -1
- package/esm/core/Tree/TreeNode.js +0 -1
- package/esm/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/esm/core/Tree/TreeNodeExpander.js +0 -1
- package/esm/core/Typography/Anchor.d.ts +0 -1
- package/esm/core/Typography/Anchor.js +0 -1
- package/esm/core/Typography/Blockquote.d.ts +1 -1
- package/esm/core/Typography/Blockquote.js +0 -1
- package/esm/core/Typography/Code.d.ts +0 -1
- package/esm/core/Typography/Code.js +0 -1
- package/esm/core/Typography/Kbd.d.ts +1 -1
- package/esm/core/Typography/Kbd.js +0 -1
- package/esm/core/Typography/Text.d.ts +1 -1
- package/esm/core/Typography/Text.js +0 -1
- package/esm/core/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/esm/core/VisuallyHidden/VisuallyHidden.js +0 -1
- package/esm/core/utils/components/FocusTrap.d.ts +0 -1
- package/esm/core/utils/components/FocusTrap.js +0 -1
- package/esm/core/utils/components/MiddleTextTruncation.d.ts +0 -1
- package/esm/core/utils/components/MiddleTextTruncation.js +0 -1
- package/esm/core/utils/components/Resizer.d.ts +2 -1
- package/esm/core/utils/components/Resizer.js +54 -65
- package/esm/core/utils/components/ShadowRoot.d.ts +10 -0
- package/esm/core/utils/components/ShadowRoot.js +40 -0
- package/esm/core/utils/components/VirtualScroll.d.ts +0 -1
- package/esm/core/utils/components/VirtualScroll.js +0 -1
- package/esm/core/utils/components/WithCSSTransition.d.ts +0 -1
- package/esm/core/utils/components/WithCSSTransition.js +0 -1
- package/esm/core/utils/components/index.d.ts +1 -0
- package/esm/core/utils/components/index.js +1 -0
- package/esm/core/utils/hooks/useContainerWidth.d.ts +0 -1
- package/esm/core/utils/hooks/useContainerWidth.js +0 -1
- package/esm/core/utils/hooks/useDragAndDrop.d.ts +0 -1
- package/esm/core/utils/hooks/useDragAndDrop.js +0 -1
- package/esm/core/utils/hooks/useMediaQuery.d.ts +0 -1
- package/esm/core/utils/hooks/useMediaQuery.js +0 -1
- package/package.json +6 -9
- package/styles.css +6 -6
|
@@ -23,6 +23,8 @@ export type ResizerProps = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Component that allows to resize parent element.
|
|
25
25
|
* Parent must have `position: relative`.
|
|
26
|
+
*
|
|
27
|
+
* Ideally should be used within a shadow root.
|
|
26
28
|
* @private
|
|
27
29
|
* @example
|
|
28
30
|
* const ref = React.useRef<HTMLDivElement>(null);
|
|
@@ -33,4 +35,3 @@ export type ResizerProps = {
|
|
|
33
35
|
* );
|
|
34
36
|
*/
|
|
35
37
|
export declare const Resizer: (props: ResizerProps) => React.JSX.Element;
|
|
36
|
-
export default Resizer;
|
|
@@ -33,6 +33,8 @@ const index_js_1 = require("../functions/index.js");
|
|
|
33
33
|
/**
|
|
34
34
|
* Component that allows to resize parent element.
|
|
35
35
|
* Parent must have `position: relative`.
|
|
36
|
+
*
|
|
37
|
+
* Ideally should be used within a shadow root.
|
|
36
38
|
* @private
|
|
37
39
|
* @example
|
|
38
40
|
* const ref = React.useRef<HTMLDivElement>(null);
|
|
@@ -43,6 +45,17 @@ const index_js_1 = require("../functions/index.js");
|
|
|
43
45
|
* );
|
|
44
46
|
*/
|
|
45
47
|
const Resizer = (props) => {
|
|
48
|
+
return (React.createElement("div", { style: {
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
inset: -6,
|
|
51
|
+
display: 'grid',
|
|
52
|
+
pointerEvents: 'none',
|
|
53
|
+
} },
|
|
54
|
+
React.createElement(ResizerStyles, null),
|
|
55
|
+
React.createElement(Resizers, { ...props })));
|
|
56
|
+
};
|
|
57
|
+
exports.Resizer = Resizer;
|
|
58
|
+
const Resizers = (props) => {
|
|
46
59
|
const { elementRef, containerRef, onResizeStart, onResizeEnd } = props;
|
|
47
60
|
const isResizing = React.useRef(false);
|
|
48
61
|
const onResizePointerDown = (event) => {
|
|
@@ -173,70 +186,46 @@ const Resizer = (props) => {
|
|
|
173
186
|
}, { once: true });
|
|
174
187
|
};
|
|
175
188
|
return (React.createElement(React.Fragment, null,
|
|
176
|
-
React.createElement("div", { "data-iui-resizer": 'top-left', onPointerDown: onResizePointerDown, style: {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
React.createElement("div", { "data-iui-resizer": 'top', onPointerDown: onResizePointerDown, style: {
|
|
185
|
-
position: 'absolute',
|
|
186
|
-
top: 0,
|
|
187
|
-
left: 8,
|
|
188
|
-
right: 8,
|
|
189
|
-
height: 8,
|
|
190
|
-
cursor: 'n-resize',
|
|
191
|
-
} }),
|
|
192
|
-
React.createElement("div", { "data-iui-resizer": 'top-right', onPointerDown: onResizePointerDown, style: {
|
|
193
|
-
position: 'absolute',
|
|
194
|
-
top: 0,
|
|
195
|
-
right: 0,
|
|
196
|
-
width: 12,
|
|
197
|
-
height: 12,
|
|
198
|
-
cursor: 'ne-resize',
|
|
199
|
-
} }),
|
|
200
|
-
React.createElement("div", { "data-iui-resizer": 'right', onPointerDown: onResizePointerDown, style: {
|
|
201
|
-
position: 'absolute',
|
|
202
|
-
top: 8,
|
|
203
|
-
right: 0,
|
|
204
|
-
bottom: 8,
|
|
205
|
-
width: 8,
|
|
206
|
-
cursor: 'e-resize',
|
|
207
|
-
} }),
|
|
208
|
-
React.createElement("div", { "data-iui-resizer": 'bottom-right', onPointerDown: onResizePointerDown, style: {
|
|
209
|
-
position: 'absolute',
|
|
210
|
-
bottom: 0,
|
|
211
|
-
right: 0,
|
|
212
|
-
width: 12,
|
|
213
|
-
height: 12,
|
|
214
|
-
cursor: 'se-resize',
|
|
215
|
-
} }),
|
|
216
|
-
React.createElement("div", { "data-iui-resizer": 'bottom', onPointerDown: onResizePointerDown, style: {
|
|
217
|
-
position: 'absolute',
|
|
218
|
-
bottom: 0,
|
|
219
|
-
left: 8,
|
|
220
|
-
right: 8,
|
|
221
|
-
height: 8,
|
|
222
|
-
cursor: 's-resize',
|
|
223
|
-
} }),
|
|
224
|
-
React.createElement("div", { "data-iui-resizer": 'bottom-left', onPointerDown: onResizePointerDown, style: {
|
|
225
|
-
position: 'absolute',
|
|
226
|
-
bottom: 0,
|
|
227
|
-
left: 0,
|
|
228
|
-
width: 12,
|
|
229
|
-
height: 12,
|
|
230
|
-
cursor: 'sw-resize',
|
|
231
|
-
} }),
|
|
232
|
-
React.createElement("div", { "data-iui-resizer": 'left', onPointerDown: onResizePointerDown, style: {
|
|
233
|
-
position: 'absolute',
|
|
234
|
-
top: 8,
|
|
235
|
-
left: 0,
|
|
236
|
-
bottom: 8,
|
|
237
|
-
width: 8,
|
|
238
|
-
cursor: 'w-resize',
|
|
239
|
-
} })));
|
|
189
|
+
React.createElement("div", { "data-iui-resizer": 'top-left', onPointerDown: onResizePointerDown, style: { cursor: 'nw-resize' } }),
|
|
190
|
+
React.createElement("div", { "data-iui-resizer": 'top', onPointerDown: onResizePointerDown, style: { cursor: 'n-resize' } }),
|
|
191
|
+
React.createElement("div", { "data-iui-resizer": 'top-right', onPointerDown: onResizePointerDown, style: { cursor: 'ne-resize' } }),
|
|
192
|
+
React.createElement("div", { "data-iui-resizer": 'right', onPointerDown: onResizePointerDown, style: { cursor: 'e-resize' } }),
|
|
193
|
+
React.createElement("div", { "data-iui-resizer": 'bottom-right', onPointerDown: onResizePointerDown, style: { cursor: 'se-resize' } }),
|
|
194
|
+
React.createElement("div", { "data-iui-resizer": 'bottom', onPointerDown: onResizePointerDown, style: { cursor: 's-resize' } }),
|
|
195
|
+
React.createElement("div", { "data-iui-resizer": 'bottom-left', onPointerDown: onResizePointerDown, style: { cursor: 'sw-resize' } }),
|
|
196
|
+
React.createElement("div", { "data-iui-resizer": 'left', onPointerDown: onResizePointerDown, style: { cursor: 'w-resize' } })));
|
|
240
197
|
};
|
|
241
|
-
|
|
242
|
-
|
|
198
|
+
// ----------------------------------------------------------------------------
|
|
199
|
+
const ResizerStyles = React.memo(() => React.createElement("style", null, resizerStyles));
|
|
200
|
+
const resizerStyles = /* css */ `
|
|
201
|
+
[data-iui-resizer] {
|
|
202
|
+
pointer-events: auto;
|
|
203
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
204
|
+
width: 12px;
|
|
205
|
+
height: 12px;
|
|
206
|
+
z-index: 1;
|
|
207
|
+
}
|
|
208
|
+
[data-iui-resizer='top'],
|
|
209
|
+
[data-iui-resizer='bottom'] {
|
|
210
|
+
height: 8px;
|
|
211
|
+
width: auto;
|
|
212
|
+
z-index: 0;
|
|
213
|
+
}
|
|
214
|
+
[data-iui-resizer='left'],
|
|
215
|
+
[data-iui-resizer='right'] {
|
|
216
|
+
height: auto;
|
|
217
|
+
width: 8px;
|
|
218
|
+
z-index: 0;
|
|
219
|
+
}
|
|
220
|
+
[data-iui-resizer^='top'] {
|
|
221
|
+
align-self: start;
|
|
222
|
+
}
|
|
223
|
+
[data-iui-resizer^='bottom'] {
|
|
224
|
+
align-self: end;
|
|
225
|
+
}
|
|
226
|
+
[data-iui-resizer$='left'] {
|
|
227
|
+
justify-self: start;
|
|
228
|
+
}
|
|
229
|
+
[data-iui-resizer$='right'] {
|
|
230
|
+
justify-self: end;
|
|
231
|
+
}`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper around `<template>` element that attaches shadow root to its parent
|
|
4
|
+
* and moves its children into the shadow root.
|
|
5
|
+
*
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
export declare const ShadowRoot: ({ children }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}) => React.JSX.Element | null;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ShadowRoot = void 0;
|
|
27
|
+
/*---------------------------------------------------------------------------------------------
|
|
28
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
29
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
30
|
+
*--------------------------------------------------------------------------------------------*/
|
|
31
|
+
const React = __importStar(require("react"));
|
|
32
|
+
const ReactDOM = __importStar(require("react-dom"));
|
|
33
|
+
const isBrowser = typeof document !== 'undefined';
|
|
34
|
+
const supportsDSD = isBrowser && 'shadowRootMode' in HTMLTemplateElement.prototype;
|
|
35
|
+
/**
|
|
36
|
+
* Wrapper around `<template>` element that attaches shadow root to its parent
|
|
37
|
+
* and moves its children into the shadow root.
|
|
38
|
+
*
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
const ShadowRoot = ({ children }) => {
|
|
42
|
+
const [shadowRoot, setShadowRoot] = React.useState();
|
|
43
|
+
const isFirstRender = useIsFirstRender();
|
|
44
|
+
const attachShadowRef = React.useCallback((template) => {
|
|
45
|
+
const parent = template?.parentElement;
|
|
46
|
+
if (!template || !parent) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
queueMicrotask(() => ReactDOM.flushSync(() => setShadowRoot(parent.shadowRoot || parent.attachShadow({ mode: 'open' }))));
|
|
50
|
+
}, []);
|
|
51
|
+
if (!isBrowser) {
|
|
52
|
+
return React.createElement("template", { shadowrootmode: 'open' }, children);
|
|
53
|
+
}
|
|
54
|
+
// In browsers that support DSD, the template will be automatically removed as soon as it's parsed.
|
|
55
|
+
// To pass hydration, the first client render needs to emulate this browser behavior and return null.
|
|
56
|
+
if (supportsDSD && isFirstRender) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return (React.createElement(React.Fragment, null, shadowRoot ? (ReactDOM.createPortal(children, shadowRoot)) : (React.createElement("template", { ref: attachShadowRef }))));
|
|
60
|
+
};
|
|
61
|
+
exports.ShadowRoot = ShadowRoot;
|
|
62
|
+
// ----------------------------------------------------------------------------
|
|
63
|
+
function useIsFirstRender() {
|
|
64
|
+
const [isFirstRender, setIsFirstRender] = React.useState(true);
|
|
65
|
+
React.useEffect(() => setIsFirstRender(false), []);
|
|
66
|
+
return isFirstRender;
|
|
67
|
+
}
|
|
@@ -30,3 +30,4 @@ __exportStar(require("./AutoclearingHiddenLiveRegion.js"), exports);
|
|
|
30
30
|
__exportStar(require("./Box.js"), exports);
|
|
31
31
|
__exportStar(require("./ButtonBase.js"), exports);
|
|
32
32
|
__exportStar(require("./Portal.js"), exports);
|
|
33
|
+
__exportStar(require("./ShadowRoot.js"), exports);
|
package/esm/core/Alert/Alert.js
CHANGED
|
@@ -52,4 +52,4 @@ export declare const defaultStatusTitles: StatusTitles;
|
|
|
52
52
|
* <Avatar size='x-large' title='Terry Rivers' abbreviation='TR' backgroundColor='green' image={<img src="https://cdn.example.com/user/profile/pic.png" />}/>
|
|
53
53
|
*/
|
|
54
54
|
export declare const Avatar: PolymorphicForwardRefComponent<"span", AvatarProps>;
|
|
55
|
-
export
|
|
55
|
+
export {};
|
package/esm/core/Badge/Badge.js
CHANGED
|
@@ -41,4 +41,3 @@ export const Badge = React.forwardRef((props, forwardedRef) => {
|
|
|
41
41
|
: { ...style };
|
|
42
42
|
return (React.createElement(Box, { as: 'span', className: cx('iui-badge', className), style: _style, "data-iui-status": statusValue, ref: forwardedRef, ...rest }, children));
|
|
43
43
|
});
|
|
44
|
-
export default Badge;
|
|
@@ -21,4 +21,3 @@ export const Button = React.forwardRef((props, ref) => {
|
|
|
21
21
|
children && React.createElement("span", { ...labelProps }, children),
|
|
22
22
|
endIcon && (React.createElement(Box, { as: 'span', "aria-hidden": true, ...endIconProps, className: cx('iui-button-icon', endIconProps?.className) }, endIcon))));
|
|
23
23
|
});
|
|
24
|
-
export default Button;
|
|
@@ -25,4 +25,3 @@ export const DropdownButton = React.forwardRef((props, forwardedRef) => {
|
|
|
25
25
|
} },
|
|
26
26
|
React.createElement(Button, { className: cx('iui-button-dropdown', className), size: size, styleType: styleType, endIcon: isMenuOpen ? (React.createElement(SvgCaretUpSmall, { "aria-hidden": true })) : (React.createElement(SvgCaretDownSmall, { "aria-hidden": true })), ref: forwardedRef, ...rest }, children)));
|
|
27
27
|
});
|
|
28
|
-
export default DropdownButton;
|
|
@@ -23,4 +23,3 @@ export const IconButton = React.forwardRef((props, ref) => {
|
|
|
23
23
|
label ? React.createElement(VisuallyHidden, null, label) : null));
|
|
24
24
|
return label ? (React.createElement(Tooltip, { placement: buttonGroupOrientation === 'vertical' ? 'right' : 'top', ...labelProps, content: label, ariaStrategy: 'none' }, button)) : (button);
|
|
25
25
|
});
|
|
26
|
-
export default IconButton;
|
|
@@ -14,4 +14,3 @@ export const IdeasButton = React.forwardRef((props, ref) => {
|
|
|
14
14
|
const { feedbackLabel = 'Feedback', onClick, ...rest } = props;
|
|
15
15
|
return (React.createElement(Button, { ref: ref, "data-iui-variant": 'idea', onClick: onClick, startIcon: React.createElement(SvgSmileyHappy, { "aria-hidden": true }), ...rest }, feedbackLabel));
|
|
16
16
|
});
|
|
17
|
-
export default IdeasButton;
|
|
@@ -43,4 +43,3 @@ export type SplitButtonProps = ButtonProps & {
|
|
|
43
43
|
* <SplitButton onClick={onClick} menuItems={menuItems} styleType='high-visibility'>High visibility</SplitButton>
|
|
44
44
|
*/
|
|
45
45
|
export declare const SplitButton: PolymorphicForwardRefComponent<"button", SplitButtonProps>;
|
|
46
|
-
export default SplitButton;
|
|
@@ -23,4 +23,3 @@ export const ColorSwatch = React.forwardRef((props, ref) => {
|
|
|
23
23
|
...style,
|
|
24
24
|
}, onClick: onClick, "aria-pressed": !!onClick && isActive ? 'true' : undefined, ref: ref, ...rest }, props.children ?? (React.createElement(VisuallyHidden, null, colorString.toUpperCase()))));
|
|
25
25
|
});
|
|
26
|
-
export default ColorSwatch;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import SelectTagContainer from '../Select/SelectTagContainer.js';
|
|
6
|
+
import { SelectTagContainer } from '../Select/SelectTagContainer.js';
|
|
7
7
|
export const ComboBoxMultipleContainer = React.forwardRef((props, ref) => {
|
|
8
8
|
const { selectedItems = [], ...rest } = props;
|
|
9
9
|
return React.createElement(SelectTagContainer, { ref: ref, tags: selectedItems, ...rest });
|
|
@@ -367,4 +367,3 @@ export const DatePicker = React.forwardRef((props, forwardedRef) => {
|
|
|
367
367
|
? onChange?.(date)
|
|
368
368
|
: onChange?.(new Date(selectedStartDay?.getFullYear() ?? date.getFullYear(), selectedStartDay?.getMonth() ?? date.getMonth(), selectedStartDay?.getDate() ?? date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds()), new Date(selectedEndDay?.getFullYear() ?? date.getFullYear(), selectedEndDay?.getMonth() ?? date.getMonth(), selectedEndDay?.getDate() ?? date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds())) }))));
|
|
369
369
|
});
|
|
370
|
-
export default DatePicker;
|