@itwin/itwinui-react 3.0.0-dev.0 → 3.0.0-dev.2
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 +38 -0
- package/README.md +28 -22
- package/cjs/core/Alert/Alert.d.ts +47 -29
- package/cjs/core/Alert/Alert.js +73 -22
- package/cjs/core/Avatar/Avatar.d.ts +0 -1
- package/cjs/core/Avatar/Avatar.js +1 -2
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +0 -1
- package/cjs/core/AvatarGroup/AvatarGroup.js +1 -2
- package/cjs/core/Backdrop/Backdrop.d.ts +0 -1
- package/cjs/core/Backdrop/Backdrop.js +0 -1
- package/cjs/core/Badge/Badge.d.ts +0 -1
- package/cjs/core/Badge/Badge.js +0 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +0 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +2 -4
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/cjs/core/ButtonGroup/ButtonGroup.js +1 -5
- package/cjs/core/Buttons/Button/Button.d.ts +0 -1
- package/cjs/core/Buttons/Button/Button.js +0 -1
- package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +0 -1
- package/cjs/core/Buttons/DropdownButton/DropdownButton.js +3 -6
- package/cjs/core/Buttons/IconButton/IconButton.d.ts +0 -2
- package/cjs/core/Buttons/IconButton/IconButton.js +0 -2
- package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +0 -1
- package/cjs/core/Buttons/SplitButton/SplitButton.js +0 -1
- package/cjs/core/Carousel/Carousel.d.ts +2 -3
- package/cjs/core/Carousel/Carousel.js +3 -6
- package/cjs/core/Carousel/CarouselDotsList.d.ts +0 -1
- package/cjs/core/Carousel/CarouselDotsList.js +8 -11
- package/cjs/core/Carousel/CarouselNavigation.d.ts +2 -2
- package/cjs/core/Carousel/CarouselNavigation.js +3 -5
- package/cjs/core/Carousel/CarouselSlider.js +10 -15
- package/cjs/core/Checkbox/Checkbox.d.ts +0 -1
- package/cjs/core/Checkbox/Checkbox.js +0 -1
- package/cjs/core/ColorPicker/ColorBuilder.d.ts +0 -1
- package/cjs/core/ColorPicker/ColorBuilder.js +7 -11
- package/cjs/core/ColorPicker/ColorInputPanel.d.ts +0 -1
- package/cjs/core/ColorPicker/ColorInputPanel.js +12 -16
- package/cjs/core/ColorPicker/ColorPalette.d.ts +0 -1
- package/cjs/core/ColorPicker/ColorPalette.js +4 -7
- package/cjs/core/ColorPicker/ColorPicker.d.ts +0 -1
- package/cjs/core/ColorPicker/ColorPicker.js +3 -4
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +0 -1
- package/cjs/core/ColorPicker/ColorSwatch.js +0 -1
- package/cjs/core/ComboBox/ComboBox.d.ts +0 -1
- package/cjs/core/ComboBox/ComboBox.js +25 -33
- package/cjs/core/ComboBox/ComboBoxDropdown.js +1 -2
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.js +21 -20
- package/cjs/core/ComboBox/ComboBoxMenu.js +3 -4
- package/cjs/core/ComboBox/ComboBoxMenuItem.js +2 -2
- package/cjs/core/ComboBox/helpers.js +4 -5
- package/cjs/core/DatePicker/DatePicker.d.ts +0 -1
- package/cjs/core/DatePicker/DatePicker.js +32 -33
- package/cjs/core/Dialog/Dialog.d.ts +0 -1
- package/cjs/core/Dialog/Dialog.js +12 -5
- package/cjs/core/Dialog/DialogBackdrop.js +1 -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/DialogContext.d.ts +15 -0
- package/cjs/core/Dialog/DialogMain.d.ts +0 -1
- package/cjs/core/Dialog/DialogMain.js +18 -25
- package/cjs/core/Dialog/DialogTitleBar.d.ts +0 -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/DropdownMenu/DropdownMenu.js +6 -8
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +5 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +8 -6
- package/cjs/core/Fieldset/Fieldset.d.ts +0 -1
- package/cjs/core/Fieldset/Fieldset.js +0 -1
- package/cjs/core/FileUpload/FileEmptyCard.js +1 -1
- package/cjs/core/FileUpload/FileUpload.d.ts +0 -1
- package/cjs/core/FileUpload/FileUpload.js +3 -7
- package/cjs/core/FileUpload/FileUploadCard.d.ts +0 -1
- package/cjs/core/FileUpload/FileUploadCard.js +10 -12
- package/cjs/core/FileUpload/FileUploadTemplate.d.ts +0 -1
- package/cjs/core/FileUpload/FileUploadTemplate.js +0 -1
- package/cjs/core/Footer/Footer.d.ts +0 -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 +0 -1
- package/cjs/core/Header/Header.js +0 -1
- package/cjs/core/Header/HeaderBreadcrumbs.d.ts +0 -1
- package/cjs/core/Header/HeaderBreadcrumbs.js +0 -1
- package/cjs/core/Header/HeaderButton.d.ts +0 -1
- package/cjs/core/Header/HeaderButton.js +0 -1
- package/cjs/core/Header/HeaderLogo.d.ts +0 -1
- package/cjs/core/Header/HeaderLogo.js +0 -1
- package/cjs/core/InformationPanel/InformationPanel.d.ts +0 -1
- package/cjs/core/InformationPanel/InformationPanel.js +1 -5
- package/cjs/core/InformationPanel/InformationPanelBody.d.ts +0 -1
- package/cjs/core/InformationPanel/InformationPanelBody.js +0 -1
- package/cjs/core/InformationPanel/InformationPanelContent.d.ts +0 -1
- package/cjs/core/InformationPanel/InformationPanelContent.js +0 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +0 -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/InputGroup/InputGroup.d.ts +0 -1
- package/cjs/core/InputGroup/InputGroup.js +0 -1
- package/cjs/core/Label/Label.d.ts +0 -1
- package/cjs/core/Label/Label.js +0 -1
- package/cjs/core/LabeledInput/LabeledInput.d.ts +0 -1
- package/cjs/core/LabeledInput/LabeledInput.js +1 -2
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +0 -1
- package/cjs/core/LabeledSelect/LabeledSelect.js +0 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +0 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +1 -2
- package/cjs/core/List/List.d.ts +0 -1
- package/cjs/core/List/List.js +0 -1
- package/cjs/core/List/ListItem.d.ts +0 -1
- package/cjs/core/List/ListItem.js +0 -1
- package/cjs/core/Menu/Menu.d.ts +0 -1
- package/cjs/core/Menu/Menu.js +3 -5
- 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 +8 -12
- package/cjs/core/Menu/MenuItemSkeleton.d.ts +0 -1
- package/cjs/core/Menu/MenuItemSkeleton.js +0 -1
- package/cjs/core/Modal/Modal.d.ts +8 -10
- package/cjs/core/Modal/Modal.js +7 -18
- package/cjs/core/NonIdealState/NonIdealState.d.ts +0 -1
- package/cjs/core/NonIdealState/NonIdealState.js +0 -1
- package/cjs/core/NotificationMarker/NotificationMarker.d.ts +0 -1
- package/cjs/core/NotificationMarker/NotificationMarker.js +0 -1
- package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +0 -1
- package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -1
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +0 -1
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -1
- package/cjs/core/Radio/Radio.d.ts +0 -1
- package/cjs/core/Radio/Radio.js +0 -1
- package/cjs/core/RadioTiles/RadioTile.d.ts +0 -1
- package/cjs/core/RadioTiles/RadioTile.js +0 -1
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +0 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +0 -1
- package/cjs/core/SearchBox/SearchBox.d.ts +0 -1
- package/cjs/core/SearchBox/SearchBox.js +12 -13
- package/cjs/core/Select/Select.d.ts +0 -1
- package/cjs/core/Select/Select.js +12 -18
- package/cjs/core/Select/SelectTag.d.ts +0 -1
- package/cjs/core/Select/SelectTag.js +0 -1
- package/cjs/core/SideNavigation/SideNavigation.d.ts +0 -1
- package/cjs/core/SideNavigation/SideNavigation.js +2 -3
- package/cjs/core/SideNavigation/SidenavButton.d.ts +0 -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 +0 -1
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +0 -1
- package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +0 -1
- package/cjs/core/SkipToContentLink/SkipToContentLink.js +0 -1
- package/cjs/core/Slider/Slider.d.ts +0 -1
- package/cjs/core/Slider/Slider.js +16 -20
- package/cjs/core/Slider/Thumb.js +1 -1
- package/cjs/core/Slider/Track.js +2 -1
- package/cjs/core/StatusMessage/StatusMessage.js +1 -1
- package/cjs/core/Stepper/Stepper.d.ts +0 -1
- package/cjs/core/Stepper/Stepper.js +1 -2
- package/cjs/core/Stepper/StepperStep.js +1 -1
- package/cjs/core/Stepper/WorkflowDiagram.d.ts +0 -1
- package/cjs/core/Stepper/WorkflowDiagram.js +0 -1
- package/cjs/core/Surface/Surface.d.ts +0 -1
- package/cjs/core/Surface/Surface.js +0 -1
- package/cjs/core/Table/Table.d.ts +0 -1
- package/cjs/core/Table/Table.js +33 -34
- package/cjs/core/Table/TableCell.js +3 -2
- package/cjs/core/Table/TablePaginator.d.ts +0 -1
- package/cjs/core/Table/TablePaginator.js +10 -12
- package/cjs/core/Table/TableRowMemoized.js +40 -47
- package/cjs/core/Table/actionHandlers/expandHandler.js +3 -3
- package/cjs/core/Table/actionHandlers/filterHandler.js +4 -5
- package/cjs/core/Table/actionHandlers/selectHandler.js +6 -6
- package/cjs/core/Table/cells/DefaultCell.js +4 -3
- package/cjs/core/Table/cells/EditableCell.js +7 -13
- package/cjs/core/Table/columns/actionColumn.js +3 -6
- package/cjs/core/Table/columns/expanderColumn.js +3 -3
- package/cjs/core/Table/columns/selectionColumn.js +4 -4
- package/cjs/core/Table/filters/BaseFilter.d.ts +0 -1
- package/cjs/core/Table/filters/BaseFilter.js +1 -2
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +2 -4
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +2 -4
- package/cjs/core/Table/filters/FilterButtonBar.d.ts +0 -1
- package/cjs/core/Table/filters/FilterButtonBar.js +1 -2
- package/cjs/core/Table/filters/FilterToggle.d.ts +0 -1
- package/cjs/core/Table/filters/FilterToggle.js +0 -1
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +2 -4
- package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +1 -3
- package/cjs/core/Table/hooks/useColumnDragAndDrop.js +8 -4
- package/cjs/core/Table/hooks/useResizeColumns.js +16 -22
- package/cjs/core/Table/hooks/useScrollToRow.js +1 -2
- package/cjs/core/Table/hooks/useStickyColumns.js +3 -5
- package/cjs/core/Table/hooks/useSubRowFiltering.js +2 -4
- package/cjs/core/Tabs/Tab.d.ts +0 -1
- package/cjs/core/Tabs/Tab.js +0 -1
- package/cjs/core/Tabs/Tabs.d.ts +0 -1
- package/cjs/core/Tabs/Tabs.js +16 -19
- package/cjs/core/Tag/Tag.d.ts +0 -1
- package/cjs/core/Tag/Tag.js +0 -1
- package/cjs/core/Tag/TagContainer.d.ts +0 -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/ThemeContext.d.ts +1 -1
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +2 -5
- package/cjs/core/ThemeProvider/ThemeProvider.js +11 -15
- package/cjs/core/Tile/Tile.d.ts +0 -1
- package/cjs/core/Tile/Tile.js +3 -7
- package/cjs/core/TimePicker/TimePicker.d.ts +0 -1
- package/cjs/core/TimePicker/TimePicker.js +13 -14
- package/cjs/core/Toast/Toast.d.ts +0 -1
- package/cjs/core/Toast/Toast.js +2 -4
- package/cjs/core/Toast/ToastWrapper.d.ts +0 -1
- package/cjs/core/Toast/ToastWrapper.js +0 -1
- package/cjs/core/Toast/Toaster.js +6 -11
- package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +0 -1
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +1 -3
- package/cjs/core/Tooltip/Tooltip.d.ts +0 -1
- package/cjs/core/Tooltip/Tooltip.js +0 -1
- package/cjs/core/TransferList/TransferList.d.ts +69 -0
- package/cjs/core/TransferList/TransferList.js +147 -0
- package/cjs/core/TransferList/index.d.ts +3 -0
- package/cjs/core/TransferList/index.js +10 -0
- package/cjs/core/Tree/Tree.d.ts +0 -1
- package/cjs/core/Tree/Tree.js +9 -14
- package/cjs/core/Tree/TreeNode.d.ts +0 -1
- package/cjs/core/Tree/TreeNode.js +9 -11
- package/cjs/core/Tree/TreeNodeExpander.d.ts +0 -1
- package/cjs/core/Tree/TreeNodeExpander.js +0 -1
- package/cjs/core/Typography/Anchor/Anchor.d.ts +0 -1
- package/cjs/core/Typography/Anchor/Anchor.js +0 -1
- package/cjs/core/Typography/Blockquote/Blockquote.d.ts +0 -1
- package/cjs/core/Typography/Blockquote/Blockquote.js +0 -1
- package/cjs/core/Typography/Code/Code.d.ts +0 -1
- package/cjs/core/Typography/Code/Code.js +0 -1
- package/cjs/core/Typography/Kbd/Kbd.d.ts +0 -1
- package/cjs/core/Typography/Kbd/Kbd.js +0 -1
- package/cjs/core/Typography/Text/Text.d.ts +0 -1
- package/cjs/core/Typography/Text/Text.js +0 -1
- package/cjs/core/index.d.ts +1 -0
- package/cjs/core/index.js +118 -116
- package/cjs/core/utils/color/ColorValue.js +9 -15
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +2 -3
- package/cjs/core/utils/components/Divider.d.ts +0 -1
- package/cjs/core/utils/components/Divider.js +0 -1
- package/cjs/core/utils/components/Flex.d.ts +0 -1
- package/cjs/core/utils/components/Flex.js +0 -1
- package/cjs/core/utils/components/FocusTrap.js +4 -4
- package/cjs/core/utils/components/Icon.d.ts +0 -1
- package/cjs/core/utils/components/Icon.js +0 -1
- package/cjs/core/utils/components/InputContainer.d.ts +0 -1
- package/cjs/core/utils/components/InputContainer.js +0 -1
- package/cjs/core/utils/components/InputFlexContainer.d.ts +0 -1
- package/cjs/core/utils/components/InputFlexContainer.js +0 -1
- package/cjs/core/utils/components/LinkAction.d.ts +0 -1
- package/cjs/core/utils/components/LinkAction.js +0 -1
- package/cjs/core/utils/components/MiddleTextTruncation.js +1 -2
- package/cjs/core/utils/components/Popover.d.ts +0 -1
- package/cjs/core/utils/components/Popover.js +5 -9
- package/cjs/core/utils/components/Resizer.js +7 -6
- package/cjs/core/utils/components/VirtualScroll.js +14 -21
- package/cjs/core/utils/components/VisuallyHidden.d.ts +0 -1
- package/cjs/core/utils/components/VisuallyHidden.js +0 -1
- package/cjs/core/utils/functions/dom.d.ts +6 -0
- package/cjs/core/utils/functions/dom.js +24 -6
- package/cjs/core/utils/functions/index.d.ts +0 -1
- package/cjs/core/utils/functions/index.js +0 -1
- package/cjs/core/utils/functions/polymorphic.js +9 -1
- package/cjs/core/utils/functions/supports.js +1 -1
- package/cjs/core/utils/hooks/index.d.ts +0 -1
- package/cjs/core/utils/hooks/index.js +0 -1
- package/cjs/core/utils/hooks/useContainerWidth.js +1 -1
- package/cjs/core/utils/hooks/useDragAndDrop.js +8 -10
- package/cjs/core/utils/hooks/useEventListener.js +1 -1
- package/cjs/core/utils/hooks/useGlobals.d.ts +9 -4
- package/cjs/core/utils/hooks/useGlobals.js +6 -6
- package/cjs/core/utils/hooks/useId.js +1 -2
- package/cjs/core/utils/hooks/useIntersection.js +2 -3
- package/cjs/core/utils/hooks/useMediaQuery.js +6 -8
- package/cjs/core/utils/hooks/useOverflow.js +1 -2
- package/cjs/core/utils/hooks/useResizeObserver.js +3 -4
- package/cjs/styles.d.ts +5 -0
- package/cjs/styles.js +450 -0
- package/esm/core/Alert/Alert.d.ts +47 -29
- package/esm/core/Alert/Alert.js +74 -23
- package/esm/core/Avatar/Avatar.d.ts +0 -1
- package/esm/core/Avatar/Avatar.js +1 -2
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +0 -1
- package/esm/core/AvatarGroup/AvatarGroup.js +1 -2
- package/esm/core/Backdrop/Backdrop.d.ts +0 -1
- package/esm/core/Backdrop/Backdrop.js +0 -1
- package/esm/core/Badge/Badge.d.ts +0 -1
- package/esm/core/Badge/Badge.js +0 -1
- package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +0 -1
- package/esm/core/Breadcrumbs/Breadcrumbs.js +2 -4
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/esm/core/ButtonGroup/ButtonGroup.js +1 -5
- package/esm/core/Buttons/Button/Button.d.ts +0 -1
- package/esm/core/Buttons/Button/Button.js +0 -1
- package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +0 -1
- package/esm/core/Buttons/DropdownButton/DropdownButton.js +3 -6
- package/esm/core/Buttons/IconButton/IconButton.d.ts +0 -2
- package/esm/core/Buttons/IconButton/IconButton.js +0 -2
- package/esm/core/Buttons/SplitButton/SplitButton.d.ts +0 -1
- package/esm/core/Buttons/SplitButton/SplitButton.js +0 -1
- package/esm/core/Carousel/Carousel.d.ts +2 -3
- package/esm/core/Carousel/Carousel.js +3 -6
- package/esm/core/Carousel/CarouselDotsList.d.ts +0 -1
- package/esm/core/Carousel/CarouselDotsList.js +8 -11
- package/esm/core/Carousel/CarouselNavigation.d.ts +2 -2
- package/esm/core/Carousel/CarouselNavigation.js +3 -5
- package/esm/core/Carousel/CarouselSlider.js +10 -15
- package/esm/core/Checkbox/Checkbox.d.ts +0 -1
- package/esm/core/Checkbox/Checkbox.js +0 -1
- package/esm/core/ColorPicker/ColorBuilder.d.ts +0 -1
- package/esm/core/ColorPicker/ColorBuilder.js +7 -11
- package/esm/core/ColorPicker/ColorInputPanel.d.ts +0 -1
- package/esm/core/ColorPicker/ColorInputPanel.js +12 -16
- package/esm/core/ColorPicker/ColorPalette.d.ts +0 -1
- package/esm/core/ColorPicker/ColorPalette.js +4 -7
- package/esm/core/ColorPicker/ColorPicker.d.ts +0 -1
- package/esm/core/ColorPicker/ColorPicker.js +3 -4
- package/esm/core/ColorPicker/ColorSwatch.d.ts +0 -1
- package/esm/core/ColorPicker/ColorSwatch.js +0 -1
- package/esm/core/ComboBox/ComboBox.d.ts +0 -1
- package/esm/core/ComboBox/ComboBox.js +25 -33
- package/esm/core/ComboBox/ComboBoxDropdown.js +1 -2
- package/esm/core/ComboBox/ComboBoxEndIcon.js +1 -1
- package/esm/core/ComboBox/ComboBoxInput.js +21 -20
- package/esm/core/ComboBox/ComboBoxMenu.js +3 -4
- package/esm/core/ComboBox/ComboBoxMenuItem.js +2 -2
- package/esm/core/ComboBox/helpers.js +4 -5
- package/esm/core/DatePicker/DatePicker.d.ts +0 -1
- package/esm/core/DatePicker/DatePicker.js +32 -33
- package/esm/core/Dialog/Dialog.d.ts +0 -1
- package/esm/core/Dialog/Dialog.js +13 -6
- package/esm/core/Dialog/DialogBackdrop.js +1 -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/DialogContext.d.ts +15 -0
- package/esm/core/Dialog/DialogMain.d.ts +0 -1
- package/esm/core/Dialog/DialogMain.js +18 -25
- package/esm/core/Dialog/DialogTitleBar.d.ts +0 -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/DropdownMenu/DropdownMenu.js +6 -8
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +5 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.js +8 -6
- package/esm/core/Fieldset/Fieldset.d.ts +0 -1
- package/esm/core/Fieldset/Fieldset.js +0 -1
- package/esm/core/FileUpload/FileEmptyCard.js +1 -1
- package/esm/core/FileUpload/FileUpload.d.ts +0 -1
- package/esm/core/FileUpload/FileUpload.js +3 -7
- package/esm/core/FileUpload/FileUploadCard.d.ts +0 -1
- package/esm/core/FileUpload/FileUploadCard.js +10 -12
- package/esm/core/FileUpload/FileUploadTemplate.d.ts +0 -1
- package/esm/core/FileUpload/FileUploadTemplate.js +0 -1
- package/esm/core/Footer/Footer.d.ts +0 -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 +0 -1
- package/esm/core/Header/Header.js +0 -1
- package/esm/core/Header/HeaderBreadcrumbs.d.ts +0 -1
- package/esm/core/Header/HeaderBreadcrumbs.js +0 -1
- package/esm/core/Header/HeaderButton.d.ts +0 -1
- package/esm/core/Header/HeaderButton.js +0 -1
- package/esm/core/Header/HeaderLogo.d.ts +0 -1
- package/esm/core/Header/HeaderLogo.js +0 -1
- package/esm/core/InformationPanel/InformationPanel.d.ts +0 -1
- package/esm/core/InformationPanel/InformationPanel.js +1 -5
- package/esm/core/InformationPanel/InformationPanelBody.d.ts +0 -1
- package/esm/core/InformationPanel/InformationPanelBody.js +0 -1
- package/esm/core/InformationPanel/InformationPanelContent.d.ts +0 -1
- package/esm/core/InformationPanel/InformationPanelContent.js +0 -1
- package/esm/core/InformationPanel/InformationPanelHeader.d.ts +0 -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/InputGroup/InputGroup.d.ts +0 -1
- package/esm/core/InputGroup/InputGroup.js +0 -1
- package/esm/core/Label/Label.d.ts +0 -1
- package/esm/core/Label/Label.js +0 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +0 -1
- package/esm/core/LabeledInput/LabeledInput.js +1 -2
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +0 -1
- package/esm/core/LabeledSelect/LabeledSelect.js +0 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +0 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.js +1 -2
- package/esm/core/List/List.d.ts +0 -1
- package/esm/core/List/List.js +0 -1
- package/esm/core/List/ListItem.d.ts +0 -1
- package/esm/core/List/ListItem.js +0 -1
- package/esm/core/Menu/Menu.d.ts +0 -1
- package/esm/core/Menu/Menu.js +3 -5
- 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 +8 -12
- package/esm/core/Menu/MenuItemSkeleton.d.ts +0 -1
- package/esm/core/Menu/MenuItemSkeleton.js +0 -1
- package/esm/core/Modal/Modal.d.ts +8 -10
- package/esm/core/Modal/Modal.js +3 -11
- package/esm/core/NonIdealState/NonIdealState.d.ts +0 -1
- package/esm/core/NonIdealState/NonIdealState.js +0 -1
- package/esm/core/NotificationMarker/NotificationMarker.d.ts +0 -1
- package/esm/core/NotificationMarker/NotificationMarker.js +0 -1
- package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +0 -1
- package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +0 -1
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +0 -1
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +0 -1
- package/esm/core/Radio/Radio.d.ts +0 -1
- package/esm/core/Radio/Radio.js +0 -1
- package/esm/core/RadioTiles/RadioTile.d.ts +0 -1
- package/esm/core/RadioTiles/RadioTile.js +0 -1
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +0 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +0 -1
- package/esm/core/SearchBox/SearchBox.d.ts +0 -1
- package/esm/core/SearchBox/SearchBox.js +12 -13
- package/esm/core/Select/Select.d.ts +0 -1
- package/esm/core/Select/Select.js +12 -18
- package/esm/core/Select/SelectTag.d.ts +0 -1
- package/esm/core/Select/SelectTag.js +0 -1
- package/esm/core/SideNavigation/SideNavigation.d.ts +0 -1
- package/esm/core/SideNavigation/SideNavigation.js +2 -3
- package/esm/core/SideNavigation/SidenavButton.d.ts +0 -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 +0 -1
- package/esm/core/SideNavigation/SidenavSubmenuHeader.js +0 -1
- package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +0 -1
- package/esm/core/SkipToContentLink/SkipToContentLink.js +0 -1
- package/esm/core/Slider/Slider.d.ts +0 -1
- package/esm/core/Slider/Slider.js +16 -20
- package/esm/core/Slider/Thumb.js +1 -1
- package/esm/core/Slider/Track.js +2 -1
- package/esm/core/StatusMessage/StatusMessage.js +1 -1
- package/esm/core/Stepper/Stepper.d.ts +0 -1
- package/esm/core/Stepper/Stepper.js +1 -2
- package/esm/core/Stepper/StepperStep.js +1 -1
- package/esm/core/Stepper/WorkflowDiagram.d.ts +0 -1
- package/esm/core/Stepper/WorkflowDiagram.js +0 -1
- package/esm/core/Surface/Surface.d.ts +0 -1
- package/esm/core/Surface/Surface.js +0 -1
- package/esm/core/Table/Table.d.ts +0 -1
- package/esm/core/Table/Table.js +34 -35
- package/esm/core/Table/TableCell.js +3 -2
- package/esm/core/Table/TablePaginator.d.ts +0 -1
- package/esm/core/Table/TablePaginator.js +11 -13
- package/esm/core/Table/TableRowMemoized.js +41 -48
- package/esm/core/Table/actionHandlers/expandHandler.js +3 -3
- package/esm/core/Table/actionHandlers/filterHandler.js +4 -5
- package/esm/core/Table/actionHandlers/selectHandler.js +6 -6
- package/esm/core/Table/cells/DefaultCell.js +4 -3
- package/esm/core/Table/cells/EditableCell.js +8 -14
- package/esm/core/Table/columns/actionColumn.js +3 -6
- package/esm/core/Table/columns/expanderColumn.js +3 -3
- package/esm/core/Table/columns/selectionColumn.js +4 -4
- package/esm/core/Table/filters/BaseFilter.d.ts +0 -1
- package/esm/core/Table/filters/BaseFilter.js +2 -3
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +2 -4
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +2 -4
- package/esm/core/Table/filters/FilterButtonBar.d.ts +0 -1
- package/esm/core/Table/filters/FilterButtonBar.js +2 -3
- package/esm/core/Table/filters/FilterToggle.d.ts +0 -1
- package/esm/core/Table/filters/FilterToggle.js +0 -1
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +2 -4
- package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
- package/esm/core/Table/filters/TextFilter/TextFilter.js +1 -3
- package/esm/core/Table/hooks/useColumnDragAndDrop.js +5 -4
- package/esm/core/Table/hooks/useResizeColumns.js +16 -22
- package/esm/core/Table/hooks/useScrollToRow.js +1 -2
- package/esm/core/Table/hooks/useStickyColumns.js +3 -5
- package/esm/core/Table/hooks/useSubRowFiltering.js +2 -4
- package/esm/core/Tabs/Tab.d.ts +0 -1
- package/esm/core/Tabs/Tab.js +0 -1
- package/esm/core/Tabs/Tabs.d.ts +0 -1
- package/esm/core/Tabs/Tabs.js +16 -19
- package/esm/core/Tag/Tag.d.ts +0 -1
- package/esm/core/Tag/Tag.js +0 -1
- package/esm/core/Tag/TagContainer.d.ts +0 -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/ThemeContext.d.ts +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +2 -5
- package/esm/core/ThemeProvider/ThemeProvider.js +12 -16
- package/esm/core/Tile/Tile.d.ts +0 -1
- package/esm/core/Tile/Tile.js +3 -7
- package/esm/core/TimePicker/TimePicker.d.ts +0 -1
- package/esm/core/TimePicker/TimePicker.js +13 -14
- package/esm/core/Toast/Toast.d.ts +0 -1
- package/esm/core/Toast/Toast.js +2 -4
- package/esm/core/Toast/ToastWrapper.d.ts +0 -1
- package/esm/core/Toast/ToastWrapper.js +0 -1
- package/esm/core/Toast/Toaster.js +6 -11
- package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +0 -1
- package/esm/core/ToggleSwitch/ToggleSwitch.js +1 -3
- package/esm/core/Tooltip/Tooltip.d.ts +0 -1
- package/esm/core/Tooltip/Tooltip.js +0 -1
- package/esm/core/TransferList/TransferList.d.ts +69 -0
- package/esm/core/TransferList/TransferList.js +141 -0
- package/esm/core/TransferList/index.d.ts +3 -0
- package/esm/core/TransferList/index.js +6 -0
- package/esm/core/Tree/Tree.d.ts +0 -1
- package/esm/core/Tree/Tree.js +9 -14
- package/esm/core/Tree/TreeNode.d.ts +0 -1
- package/esm/core/Tree/TreeNode.js +9 -11
- package/esm/core/Tree/TreeNodeExpander.d.ts +0 -1
- package/esm/core/Tree/TreeNodeExpander.js +0 -1
- package/esm/core/Typography/Anchor/Anchor.d.ts +0 -1
- package/esm/core/Typography/Anchor/Anchor.js +0 -1
- package/esm/core/Typography/Blockquote/Blockquote.d.ts +0 -1
- package/esm/core/Typography/Blockquote/Blockquote.js +0 -1
- package/esm/core/Typography/Code/Code.d.ts +0 -1
- package/esm/core/Typography/Code/Code.js +0 -1
- package/esm/core/Typography/Kbd/Kbd.d.ts +0 -1
- package/esm/core/Typography/Kbd/Kbd.js +0 -1
- package/esm/core/Typography/Text/Text.d.ts +0 -1
- package/esm/core/Typography/Text/Text.js +0 -1
- package/esm/core/index.d.ts +1 -0
- package/esm/core/index.js +1 -0
- package/esm/core/utils/color/ColorValue.js +9 -15
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +2 -3
- package/esm/core/utils/components/Divider.d.ts +0 -1
- package/esm/core/utils/components/Divider.js +0 -1
- package/esm/core/utils/components/Flex.d.ts +0 -1
- package/esm/core/utils/components/Flex.js +0 -1
- package/esm/core/utils/components/FocusTrap.js +4 -4
- package/esm/core/utils/components/Icon.d.ts +0 -1
- package/esm/core/utils/components/Icon.js +0 -1
- package/esm/core/utils/components/InputContainer.d.ts +0 -1
- package/esm/core/utils/components/InputContainer.js +0 -1
- package/esm/core/utils/components/InputFlexContainer.d.ts +0 -1
- package/esm/core/utils/components/InputFlexContainer.js +0 -1
- package/esm/core/utils/components/LinkAction.d.ts +0 -1
- package/esm/core/utils/components/LinkAction.js +0 -1
- package/esm/core/utils/components/MiddleTextTruncation.js +1 -2
- package/esm/core/utils/components/Popover.d.ts +0 -1
- package/esm/core/utils/components/Popover.js +5 -9
- package/esm/core/utils/components/Resizer.js +7 -6
- package/esm/core/utils/components/VirtualScroll.js +14 -21
- package/esm/core/utils/components/VisuallyHidden.d.ts +0 -1
- package/esm/core/utils/components/VisuallyHidden.js +0 -1
- package/esm/core/utils/functions/dom.d.ts +6 -0
- package/esm/core/utils/functions/dom.js +19 -5
- package/esm/core/utils/functions/index.d.ts +0 -1
- package/esm/core/utils/functions/index.js +0 -1
- package/esm/core/utils/functions/polymorphic.js +9 -1
- package/esm/core/utils/functions/supports.js +1 -1
- package/esm/core/utils/hooks/index.d.ts +0 -1
- package/esm/core/utils/hooks/index.js +0 -1
- package/esm/core/utils/hooks/useContainerWidth.js +1 -1
- package/esm/core/utils/hooks/useDragAndDrop.js +8 -10
- package/esm/core/utils/hooks/useEventListener.js +1 -1
- package/esm/core/utils/hooks/useGlobals.d.ts +9 -4
- package/esm/core/utils/hooks/useGlobals.js +6 -6
- package/esm/core/utils/hooks/useId.js +1 -2
- package/esm/core/utils/hooks/useIntersection.js +2 -3
- package/esm/core/utils/hooks/useMediaQuery.js +6 -8
- package/esm/core/utils/hooks/useOverflow.js +1 -2
- package/esm/core/utils/hooks/useResizeObserver.js +3 -4
- package/esm/styles.d.ts +5 -0
- package/esm/styles.js +451 -0
- package/package.json +14 -11
- package/styles.css +1940 -0
- package/cjs/core/utils/functions/styles.d.ts +0 -6
- package/cjs/core/utils/functions/styles.js +0 -21
- package/cjs/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
- package/cjs/core/utils/hooks/useIsThemeAlreadySet.js +0 -54
- package/esm/core/utils/functions/styles.d.ts +0 -6
- package/esm/core/utils/functions/styles.js +0 -17
- package/esm/core/utils/hooks/useIsThemeAlreadySet.d.ts +0 -7
- package/esm/core/utils/hooks/useIsThemeAlreadySet.js +0 -27
|
@@ -6,7 +6,6 @@ exports.DialogButtonBar = void 0;
|
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
const index_js_1 = require("../utils/index.js");
|
|
9
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
10
9
|
/**
|
|
11
10
|
* Container for Buttons in `Dialog`. Recommended to be used as a child of `Dialog`.
|
|
12
11
|
* @example
|
|
@@ -6,7 +6,6 @@ exports.DialogContent = void 0;
|
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
const index_js_1 = require("../utils/index.js");
|
|
9
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
10
9
|
/**
|
|
11
10
|
* Container for content in `Dialog`. Recommended to be used as a child of `Dialog`.
|
|
12
11
|
* @example
|
|
@@ -61,10 +61,25 @@ export declare type DialogContextProps = {
|
|
|
61
61
|
* @default 'viewport'
|
|
62
62
|
*/
|
|
63
63
|
relativeTo?: 'container' | 'viewport';
|
|
64
|
+
/**
|
|
65
|
+
* If true, the dialog will be portaled into a <div> inside the nearest `ThemeProvider`.
|
|
66
|
+
* Recommended to set to true when for modal dialogs that use `relativeTo='viewport'`.
|
|
67
|
+
*
|
|
68
|
+
* Can be set to an object with a `to` property to portal into a specific element.
|
|
69
|
+
*
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
portal?: boolean | {
|
|
73
|
+
to: HTMLElement;
|
|
74
|
+
};
|
|
64
75
|
/**
|
|
65
76
|
* Dialog root ref. For internal use.
|
|
66
77
|
*/
|
|
67
78
|
dialogRootRef?: React.RefObject<HTMLDivElement>;
|
|
79
|
+
/**
|
|
80
|
+
* Determines the positioning of Dialog on page.
|
|
81
|
+
*/
|
|
82
|
+
placement?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
68
83
|
};
|
|
69
84
|
export declare const DialogContext: React.Context<DialogContextProps | undefined>;
|
|
70
85
|
export declare const useDialogContext: () => DialogContextProps;
|
|
@@ -34,7 +34,6 @@ exports.DialogMain = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
38
37
|
const DialogContext_js_1 = require("./DialogContext.js");
|
|
39
38
|
const react_transition_group_1 = require("react-transition-group");
|
|
40
39
|
const DialogDragContext_js_1 = require("./DialogDragContext.js");
|
|
@@ -61,7 +60,7 @@ const useDragAndDrop_js_1 = __importDefault(require("../utils/hooks/useDragAndDr
|
|
|
61
60
|
*/
|
|
62
61
|
exports.DialogMain = React.forwardRef((props, ref) => {
|
|
63
62
|
const dialogContext = (0, DialogContext_js_1.useDialogContext)();
|
|
64
|
-
const { className, children, styleType = 'default', isOpen = dialogContext.isOpen, isDismissible = dialogContext.isDismissible, onClose = dialogContext.onClose, closeOnEsc = dialogContext.closeOnEsc, trapFocus = dialogContext.trapFocus, setFocus = dialogContext.setFocus, preventDocumentScroll = dialogContext.preventDocumentScroll, onKeyDown, isDraggable = dialogContext.isDraggable, isResizable = dialogContext.isResizable, style: propStyle, ...rest } = props;
|
|
63
|
+
const { className, children, styleType = 'default', isOpen = dialogContext.isOpen, isDismissible = dialogContext.isDismissible, onClose = dialogContext.onClose, closeOnEsc = dialogContext.closeOnEsc, trapFocus = dialogContext.trapFocus, setFocus = dialogContext.setFocus, preventDocumentScroll = dialogContext.preventDocumentScroll, onKeyDown, isDraggable = dialogContext.isDraggable, isResizable = dialogContext.isResizable, style: propStyle, placement = dialogContext.placement, ...rest } = props;
|
|
65
64
|
const [style, setStyle] = React.useState();
|
|
66
65
|
const dialogRef = React.useRef(null);
|
|
67
66
|
const refs = (0, index_js_1.useMergedRefs)(dialogRef, ref);
|
|
@@ -75,8 +74,7 @@ exports.DialogMain = React.forwardRef((props, ref) => {
|
|
|
75
74
|
}, [isOpen]);
|
|
76
75
|
// Prevents document from scrolling when the dialog is open.
|
|
77
76
|
React.useEffect(() => {
|
|
78
|
-
|
|
79
|
-
const ownerDocument = (_a = dialogRef.current) === null || _a === void 0 ? void 0 : _a.ownerDocument;
|
|
77
|
+
const ownerDocument = dialogRef.current?.ownerDocument;
|
|
80
78
|
// If there is no `ownerDocument` or `preventDocumentScroll` is false or
|
|
81
79
|
// document body originally has `overflow: hidden` (possibly from other/parent dialog), then do nothing.
|
|
82
80
|
if (!ownerDocument ||
|
|
@@ -103,7 +101,7 @@ exports.DialogMain = React.forwardRef((props, ref) => {
|
|
|
103
101
|
if (isDismissible && closeOnEsc && event.key === 'Escape' && onClose) {
|
|
104
102
|
onClose(event);
|
|
105
103
|
}
|
|
106
|
-
onKeyDown
|
|
104
|
+
onKeyDown?.(event);
|
|
107
105
|
};
|
|
108
106
|
const { onPointerDown, transform } = (0, useDragAndDrop_js_1.default)(dialogRef, dialogContext.dialogRootRef, isDraggable);
|
|
109
107
|
const handlePointerDown = React.useCallback((event) => {
|
|
@@ -113,23 +111,19 @@ exports.DialogMain = React.forwardRef((props, ref) => {
|
|
|
113
111
|
}, [isDraggable, onPointerDown]);
|
|
114
112
|
// Prevents dialog from moving when window is being resized
|
|
115
113
|
(0, index_js_1.useIsomorphicLayoutEffect)(() => {
|
|
116
|
-
var _a;
|
|
117
114
|
if (!isDraggable || !isOpen) {
|
|
118
115
|
return;
|
|
119
116
|
}
|
|
120
|
-
const rect =
|
|
117
|
+
const rect = dialogRef.current?.getBoundingClientRect();
|
|
121
118
|
const [translateX, translateY] = (0, index_js_1.getTranslateValues)(dialogRef.current);
|
|
122
|
-
setStyle((oldStyle) => {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
transform: `translate(${translateX}px,${translateY}px)`,
|
|
131
|
-
});
|
|
132
|
-
});
|
|
119
|
+
setStyle((oldStyle) => ({
|
|
120
|
+
...oldStyle,
|
|
121
|
+
width: rect?.width,
|
|
122
|
+
height: rect?.height,
|
|
123
|
+
left: dialogRef.current?.offsetLeft,
|
|
124
|
+
top: dialogRef.current?.offsetTop,
|
|
125
|
+
transform: `translate(${translateX}px,${translateY}px)`,
|
|
126
|
+
}));
|
|
133
127
|
}, [isDraggable, isOpen]);
|
|
134
128
|
const setResizeStyle = React.useCallback((newStyle) => {
|
|
135
129
|
setStyle((oldStyle) => ({
|
|
@@ -142,7 +136,7 @@ exports.DialogMain = React.forwardRef((props, ref) => {
|
|
|
142
136
|
'iui-dialog-full-page': styleType === 'fullPage',
|
|
143
137
|
'iui-dialog-visible': isOpen,
|
|
144
138
|
'iui-dialog-draggable': isDraggable,
|
|
145
|
-
}, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, style: {
|
|
139
|
+
}, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, "data-iui-placement": placement, style: {
|
|
146
140
|
transform,
|
|
147
141
|
overflow: 'unset',
|
|
148
142
|
...style,
|
|
@@ -161,15 +155,14 @@ exports.DialogMain = React.forwardRef((props, ref) => {
|
|
|
161
155
|
}, timeout: { exit: 600 },
|
|
162
156
|
// Focuses dialog when opened
|
|
163
157
|
onEntered: () => {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
setFocus &&
|
|
158
|
+
previousFocusedElement.current = dialogRef.current?.ownerDocument
|
|
159
|
+
.activeElement;
|
|
160
|
+
setFocus && dialogRef.current?.focus({ preventScroll: true });
|
|
167
161
|
},
|
|
168
162
|
// Brings back focus to the previously focused element when closed
|
|
169
163
|
onExit: () => {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
(_c = previousFocusedElement.current) === null || _c === void 0 ? void 0 : _c.focus();
|
|
164
|
+
if (dialogRef.current?.contains(dialogRef.current?.ownerDocument.activeElement)) {
|
|
165
|
+
previousFocusedElement.current?.focus();
|
|
173
166
|
}
|
|
174
167
|
}, unmountOnExit: true, nodeRef: dialogRef },
|
|
175
168
|
React.createElement(DialogDragContext_js_1.DialogDragContext.Provider, { value: { onPointerDown: handlePointerDown } },
|
|
@@ -35,7 +35,6 @@ const React = __importStar(require("react"));
|
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
37
|
const index_js_2 = require("../Buttons/index.js");
|
|
38
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
39
38
|
const DialogContext_js_1 = require("./DialogContext.js");
|
|
40
39
|
const DialogTitleBarTitle_js_1 = require("./DialogTitleBarTitle.js");
|
|
41
40
|
const DialogDragContext_js_1 = require("./DialogDragContext.js");
|
|
@@ -6,7 +6,6 @@ exports.DialogTitleBarTitle = void 0;
|
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
const index_js_1 = require("../utils/index.js");
|
|
9
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
10
9
|
/**
|
|
11
10
|
* Dialog title bar. Recommended to be used as a child of `Dialog`.
|
|
12
11
|
* @example
|
|
@@ -52,29 +52,27 @@ const index_js_2 = require("../Menu/index.js");
|
|
|
52
52
|
*/
|
|
53
53
|
const DropdownMenu = (props) => {
|
|
54
54
|
const { menuItems, children, className, style, role = 'menu', visible, placement = 'bottom-start', onShow, onHide, trigger, id, ...rest } = props;
|
|
55
|
-
const [isVisible, setIsVisible] = React.useState(visible
|
|
55
|
+
const [isVisible, setIsVisible] = React.useState(visible ?? false);
|
|
56
56
|
React.useEffect(() => {
|
|
57
|
-
setIsVisible(visible
|
|
57
|
+
setIsVisible(visible ?? false);
|
|
58
58
|
}, [visible]);
|
|
59
59
|
const open = React.useCallback(() => setIsVisible(true), []);
|
|
60
60
|
const close = React.useCallback(() => setIsVisible(false), []);
|
|
61
61
|
const targetRef = React.useRef(null);
|
|
62
62
|
const onShowHandler = React.useCallback((instance) => {
|
|
63
63
|
setIsVisible(true);
|
|
64
|
-
onShow
|
|
64
|
+
onShow?.(instance);
|
|
65
65
|
}, [onShow]);
|
|
66
66
|
const onHideHandler = React.useCallback((instance) => {
|
|
67
|
-
var _a;
|
|
68
67
|
setIsVisible(false);
|
|
69
|
-
|
|
70
|
-
onHide
|
|
68
|
+
targetRef.current?.focus();
|
|
69
|
+
onHide?.(instance);
|
|
71
70
|
}, [onHide]);
|
|
72
71
|
return (React.createElement(index_js_1.Popover, { content: React.createElement(index_js_2.Menu, { className: className, style: style, role: role, id: id }, React.useMemo(() => menuItems(close), [menuItems, close])), visible: trigger === undefined ? isVisible : undefined, onClickOutside: close, placement: placement, onShow: onShowHandler, onHide: onHideHandler, trigger: visible === undefined ? trigger : undefined, ...rest }, React.cloneElement(children, {
|
|
73
72
|
ref: (0, index_js_1.mergeRefs)(targetRef, props.children.ref),
|
|
74
73
|
onClick: (args) => {
|
|
75
|
-
var _a, _b;
|
|
76
74
|
trigger === undefined && (isVisible ? close() : open());
|
|
77
|
-
|
|
75
|
+
children.props.onClick?.(args);
|
|
78
76
|
},
|
|
79
77
|
})));
|
|
80
78
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
-
import '@itwin/itwinui-css/css/expandable-block.css';
|
|
4
3
|
declare type ExpandableBlockProps = {
|
|
5
4
|
/**
|
|
6
5
|
* The main text displayed on the block, regardless of state.
|
|
@@ -44,6 +43,11 @@ declare type ExpandableBlockProps = {
|
|
|
44
43
|
* @default 'default'
|
|
45
44
|
*/
|
|
46
45
|
styleType?: 'default' | 'borderless';
|
|
46
|
+
/**
|
|
47
|
+
* Disables ExpandableBlock.
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
disabled?: boolean;
|
|
47
51
|
};
|
|
48
52
|
/**
|
|
49
53
|
* Container that allows content to be hidden behind a brief title and a caption.
|
|
@@ -34,7 +34,6 @@ exports.ExpandableBlock = void 0;
|
|
|
34
34
|
const classnames_1 = __importDefault(require("classnames"));
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/expandable-block.css");
|
|
38
37
|
/**
|
|
39
38
|
* Container that allows content to be hidden behind a brief title and a caption.
|
|
40
39
|
* @example
|
|
@@ -45,18 +44,21 @@ require("@itwin/itwinui-css/css/expandable-block.css");
|
|
|
45
44
|
* <ExpandableBlock title='Block with icon' endIcon={<SvgPlaceholder />}>Content</ExpandableBlock>
|
|
46
45
|
*/
|
|
47
46
|
exports.ExpandableBlock = React.forwardRef((props, ref) => {
|
|
48
|
-
const { caption, children, className, title, onToggle, style, isExpanded = false, endIcon, status, size = 'default', styleType = 'default', ...rest } = props;
|
|
49
|
-
const icon = endIcon
|
|
47
|
+
const { caption, children, className, title, onToggle, style, isExpanded = false, endIcon, status, size = 'default', styleType = 'default', disabled = false, ...rest } = props;
|
|
48
|
+
const icon = endIcon ?? (status && index_js_1.StatusIconMap[status]());
|
|
50
49
|
const [expanded, setExpanded] = React.useState(isExpanded);
|
|
51
50
|
React.useEffect(() => {
|
|
52
51
|
setExpanded(isExpanded);
|
|
53
52
|
}, [isExpanded]);
|
|
54
53
|
const handleToggle = () => {
|
|
54
|
+
if (disabled) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
55
57
|
setExpanded(!expanded);
|
|
56
|
-
onToggle
|
|
58
|
+
onToggle?.(!expanded);
|
|
57
59
|
};
|
|
58
60
|
const onKeyDown = (event) => {
|
|
59
|
-
if (event.altKey) {
|
|
61
|
+
if (event.altKey || disabled) {
|
|
60
62
|
return;
|
|
61
63
|
}
|
|
62
64
|
if (event.key === 'Enter' ||
|
|
@@ -71,7 +73,7 @@ exports.ExpandableBlock = React.forwardRef((props, ref) => {
|
|
|
71
73
|
'iui-small': size === 'small',
|
|
72
74
|
'iui-borderless': styleType === 'borderless',
|
|
73
75
|
}, className), style: style, ref: ref, ...rest },
|
|
74
|
-
React.createElement(index_js_1.Box, { "aria-expanded": expanded, className: 'iui-header', tabIndex: 0, onClick: handleToggle, onKeyDown: onKeyDown },
|
|
76
|
+
React.createElement(index_js_1.Box, { role: 'button', "aria-expanded": expanded, className: 'iui-header', "aria-disabled": disabled, tabIndex: 0, onClick: handleToggle, onKeyDown: onKeyDown },
|
|
75
77
|
React.createElement(index_js_1.SvgChevronRight, { className: 'iui-icon', "aria-hidden": true }),
|
|
76
78
|
React.createElement(index_js_1.Box, { as: 'span', className: 'iui-expandable-block-label' },
|
|
77
79
|
React.createElement(index_js_1.Box, { className: 'iui-title' }, title),
|
|
@@ -34,7 +34,6 @@ exports.Fieldset = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const index_js_1 = require("../utils/index.js");
|
|
36
36
|
const classnames_1 = __importDefault(require("classnames"));
|
|
37
|
-
require("@itwin/itwinui-css/css/fieldset.css");
|
|
38
37
|
/**
|
|
39
38
|
* Fieldset component to group several inputs, controls and labels within a form.
|
|
40
39
|
* @example
|
|
@@ -47,7 +47,7 @@ const FileEmptyCardText = index_js_1.polymorphic.span('iui-file-card-empty-actio
|
|
|
47
47
|
// FileEmptyCard component
|
|
48
48
|
const FileEmptyCardComponent = React.forwardRef((props, ref) => {
|
|
49
49
|
const { children, className, ...rest } = props;
|
|
50
|
-
return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-file-card-empty', className), ref: ref, ...rest }, children
|
|
50
|
+
return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-file-card-empty', className), ref: ref, ...rest }, children ?? (React.createElement(React.Fragment, null,
|
|
51
51
|
React.createElement(exports.FileEmptyCard.Icon, null),
|
|
52
52
|
React.createElement(exports.FileEmptyCard.Text, null,
|
|
53
53
|
React.createElement(FileUploadCard_js_1.default.InputLabel, null, "Choose a file"),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
-
import '@itwin/itwinui-css/css/file-upload.css';
|
|
4
3
|
declare type FileUploadProps = {
|
|
5
4
|
/**
|
|
6
5
|
* Content shown over `children` when file is being dragged onto the component.
|
|
@@ -34,7 +34,6 @@ exports.FileUpload = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/file-upload.css");
|
|
38
37
|
/**
|
|
39
38
|
* File upload component to be wrapped around `FileUploadTemplate` or any arbitrary component.
|
|
40
39
|
* Provides support for dragging and dropping multiple files.
|
|
@@ -52,31 +51,28 @@ exports.FileUpload = React.forwardRef((props, ref) => {
|
|
|
52
51
|
e.stopPropagation();
|
|
53
52
|
};
|
|
54
53
|
const onDragEnterHandler = (e) => {
|
|
55
|
-
var _a, _b, _c;
|
|
56
54
|
e.preventDefault();
|
|
57
55
|
e.stopPropagation();
|
|
58
56
|
// only set active if a file is dragged over
|
|
59
|
-
if (!isDragActive &&
|
|
57
|
+
if (!isDragActive && e.dataTransfer?.items?.[0]?.kind === 'file') {
|
|
60
58
|
setIsDragActive(true);
|
|
61
59
|
}
|
|
62
60
|
};
|
|
63
61
|
const onDragLeaveHandler = (e) => {
|
|
64
|
-
var _a;
|
|
65
62
|
e.preventDefault();
|
|
66
63
|
e.stopPropagation();
|
|
67
64
|
// only set inactive if secondary target is outside the component
|
|
68
65
|
if (isDragActive &&
|
|
69
|
-
!
|
|
66
|
+
!fileUploadRef.current?.contains(e.relatedTarget)) {
|
|
70
67
|
setIsDragActive(false);
|
|
71
68
|
}
|
|
72
69
|
};
|
|
73
70
|
const onDropHandler = (e) => {
|
|
74
|
-
var _a;
|
|
75
71
|
e.preventDefault();
|
|
76
72
|
e.stopPropagation();
|
|
77
73
|
if (isDragActive) {
|
|
78
74
|
setIsDragActive(false);
|
|
79
|
-
onFileDropped(
|
|
75
|
+
onFileDropped(e.dataTransfer?.files);
|
|
80
76
|
}
|
|
81
77
|
};
|
|
82
78
|
return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-file-upload', { 'iui-drag': isDragActive }, className), onDragEnter: onDragEnterHandler, onDragOver: onDragOverHandler, onDragLeave: onDragLeaveHandler, onDrop: onDropHandler, ref: refs, ...rest },
|
|
@@ -36,7 +36,6 @@ const index_js_1 = require("../utils/index.js");
|
|
|
36
36
|
const classnames_1 = __importDefault(require("classnames"));
|
|
37
37
|
const FileEmptyCard_js_1 = require("./FileEmptyCard.js");
|
|
38
38
|
const Anchor_js_1 = require("../Typography/Anchor/Anchor.js");
|
|
39
|
-
require("@itwin/itwinui-css/css/file-upload.css");
|
|
40
39
|
const toBytes = (bytes) => {
|
|
41
40
|
const units = [' bytes', 'KB', 'MB', 'GB', 'TB'];
|
|
42
41
|
let i = 0;
|
|
@@ -65,7 +64,7 @@ const FileUploadCardTitle = React.forwardRef((props, ref) => {
|
|
|
65
64
|
const { children, className, ...rest } = props;
|
|
66
65
|
const { files } = (0, index_js_1.useSafeContext)(exports.FileUploadCardContext);
|
|
67
66
|
const title = files.length > 1 ? files.length + ' files selected' : files[0].name;
|
|
68
|
-
return (React.createElement(index_js_1.Box, { as: 'span', className: (0, classnames_1.default)('iui-file-card-title', className), ref: ref, ...rest }, children
|
|
67
|
+
return (React.createElement(index_js_1.Box, { as: 'span', className: (0, classnames_1.default)('iui-file-card-title', className), ref: ref, ...rest }, children ?? title));
|
|
69
68
|
});
|
|
70
69
|
FileUploadCardTitle.displayName = 'FileUploadCard.Title';
|
|
71
70
|
// ----------------------------------------------------------------------------
|
|
@@ -79,7 +78,7 @@ const FileUploadCardDescription = React.forwardRef((props, ref) => {
|
|
|
79
78
|
if (files.length > 2) {
|
|
80
79
|
description += ', and ' + (files.length - 2) + ' others';
|
|
81
80
|
}
|
|
82
|
-
return (React.createElement(index_js_1.Box, { as: 'span', className: (0, classnames_1.default)('iui-file-card-description', className), ref: ref, ...rest }, children
|
|
81
|
+
return (React.createElement(index_js_1.Box, { as: 'span', className: (0, classnames_1.default)('iui-file-card-description', className), ref: ref, ...rest }, children ?? description));
|
|
83
82
|
});
|
|
84
83
|
FileUploadCardDescription.displayName = 'FileUploadCard.Description';
|
|
85
84
|
// ----------------------------------------------------------------------------
|
|
@@ -100,8 +99,7 @@ const FileUploadCardInput = React.forwardRef((props, ref) => {
|
|
|
100
99
|
const { children, onChange, id, ...rest } = props;
|
|
101
100
|
const { files, onFilesChange, setInternalFiles, inputId, setInputId } = (0, index_js_1.useSafeContext)(exports.FileUploadCardContext);
|
|
102
101
|
const setNativeFilesRef = React.useCallback((node) => {
|
|
103
|
-
|
|
104
|
-
if (!node || !((_a = (0, index_js_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.DataTransfer)) {
|
|
102
|
+
if (!node || !(0, index_js_1.getWindow)()?.DataTransfer) {
|
|
105
103
|
return;
|
|
106
104
|
}
|
|
107
105
|
const dataTransfer = new DataTransfer();
|
|
@@ -116,21 +114,20 @@ const FileUploadCardInput = React.forwardRef((props, ref) => {
|
|
|
116
114
|
}
|
|
117
115
|
}, [id, inputId, setInputId]);
|
|
118
116
|
return (React.createElement(React.Fragment, null,
|
|
119
|
-
React.createElement(index_js_1.VisuallyHidden, { as: 'input', type: 'file', onChange: (0, index_js_1.mergeEventHandlers)(onChange, (e) => {
|
|
117
|
+
React.createElement(index_js_1.VisuallyHidden, { as: 'input', type: 'file', unhideOnFocus: false, onChange: (0, index_js_1.mergeEventHandlers)(onChange, (e) => {
|
|
120
118
|
const _files = Array.from(e.currentTarget.files || []);
|
|
121
|
-
onFilesChange
|
|
119
|
+
onFilesChange?.(_files);
|
|
122
120
|
setInternalFiles(_files);
|
|
123
|
-
}), ref: refs, id: id
|
|
121
|
+
}), ref: refs, id: id ?? inputId, ...rest }),
|
|
124
122
|
children));
|
|
125
123
|
});
|
|
126
124
|
FileUploadCardInput.displayName = 'FileUploadCard.Input';
|
|
127
125
|
const FileUploadCardComponent = React.forwardRef((props, ref) => {
|
|
128
|
-
var _a;
|
|
129
126
|
const { className, children, files: filesProp, onFilesChange, emptyCard = React.createElement(FileEmptyCard_js_1.FileEmptyCard, null), input, ...rest } = props;
|
|
130
127
|
const [internalFiles, setInternalFiles] = React.useState();
|
|
131
128
|
const uid = (0, index_js_1.useId)();
|
|
132
129
|
const [inputId, setInputId] = React.useState(uid);
|
|
133
|
-
const files =
|
|
130
|
+
const files = filesProp ?? internalFiles ?? [];
|
|
134
131
|
return (React.createElement(exports.FileUploadCardContext.Provider, { value: {
|
|
135
132
|
files,
|
|
136
133
|
onFilesChange,
|
|
@@ -138,13 +135,14 @@ const FileUploadCardComponent = React.forwardRef((props, ref) => {
|
|
|
138
135
|
inputId,
|
|
139
136
|
setInputId,
|
|
140
137
|
} },
|
|
141
|
-
|
|
138
|
+
files?.length ? (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-file-card', className), ref: ref, ...rest }, children ?? (React.createElement(React.Fragment, null,
|
|
142
139
|
React.createElement(exports.FileUploadCard.Icon, null),
|
|
143
140
|
React.createElement(exports.FileUploadCard.Info, null,
|
|
144
141
|
React.createElement(exports.FileUploadCard.Title, null),
|
|
145
142
|
React.createElement(exports.FileUploadCard.Description, null)),
|
|
146
143
|
React.createElement(exports.FileUploadCard.Action, null,
|
|
147
|
-
React.createElement(exports.FileUploadCard.InputLabel, null, "Replace")))))) : (emptyCard),
|
|
144
|
+
React.createElement(exports.FileUploadCard.InputLabel, null, "Replace")))))) : (emptyCard),
|
|
145
|
+
input ?? React.createElement(exports.FileUploadCard.Input, null)));
|
|
148
146
|
});
|
|
149
147
|
/**
|
|
150
148
|
* Default card to be used with the `FileUpload` wrapper component for single-file uploading.
|
|
@@ -34,7 +34,6 @@ exports.FileUploadTemplate = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/file-upload.css");
|
|
38
37
|
const Anchor_js_1 = require("../Typography/Anchor/Anchor.js");
|
|
39
38
|
/**
|
|
40
39
|
* Default template to be used with the `FileUpload` wrapper component.
|
|
@@ -34,7 +34,6 @@ exports.Footer = exports.defaultFooterElements = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/footer.css");
|
|
38
37
|
const FooterItem_js_1 = require("./FooterItem.js");
|
|
39
38
|
const FooterSeparator_js_1 = require("./FooterSeparator.js");
|
|
40
39
|
const FooterList_js_1 = require("./FooterList.js");
|
|
@@ -6,7 +6,6 @@ exports.FooterItem = void 0;
|
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
const index_js_1 = require("../utils/index.js");
|
|
9
|
-
require("@itwin/itwinui-css/css/footer.css");
|
|
10
9
|
/**
|
|
11
10
|
* Footer item. Recommended to use inside `Footer.List`.
|
|
12
11
|
*/
|
|
@@ -6,7 +6,6 @@ exports.FooterList = void 0;
|
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
const index_js_1 = require("../utils/index.js");
|
|
9
|
-
require("@itwin/itwinui-css/css/footer.css");
|
|
10
9
|
/**
|
|
11
10
|
* Footer list. Recommended to use inside `Footer` with `Footer.Item` and `Footer.Separator`.
|
|
12
11
|
*/
|
|
@@ -6,7 +6,6 @@ exports.FooterSeparator = void 0;
|
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
const index_js_1 = require("../utils/index.js");
|
|
9
|
-
require("@itwin/itwinui-css/css/footer.css");
|
|
10
9
|
/**
|
|
11
10
|
* Footer separator. Recommended to use inside `Footer.List`.
|
|
12
11
|
*/
|
|
@@ -35,7 +35,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
36
|
const index_js_1 = require("../Buttons/index.js");
|
|
37
37
|
const index_js_2 = require("../utils/index.js");
|
|
38
|
-
require("@itwin/itwinui-css/css/header.css");
|
|
39
38
|
const index_js_3 = require("../DropdownMenu/index.js");
|
|
40
39
|
const defaultTranslations = {
|
|
41
40
|
moreOptions: 'More options',
|
|
@@ -34,7 +34,6 @@ exports.HeaderBreadcrumbs = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/header.css");
|
|
38
37
|
/**
|
|
39
38
|
* Header breadcrumbs, adds chevron between each provided items.
|
|
40
39
|
* @example
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ButtonProps } from '../Buttons/Button/Button.js';
|
|
3
3
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
|
-
import '@itwin/itwinui-css/css/header.css';
|
|
5
4
|
import type { DropdownButtonProps } from '../Buttons/DropdownButton/DropdownButton.js';
|
|
6
5
|
declare type HeaderButtonProps = {
|
|
7
6
|
/**
|
|
@@ -30,7 +30,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
30
30
|
exports.HeaderButton = void 0;
|
|
31
31
|
const React = __importStar(require("react"));
|
|
32
32
|
const index_js_1 = require("../utils/index.js");
|
|
33
|
-
require("@itwin/itwinui-css/css/header.css");
|
|
34
33
|
const HeaderSplitButton_js_1 = require("./HeaderSplitButton.js");
|
|
35
34
|
const HeaderDropdownButton_js_1 = require("./HeaderDropdownButton.js");
|
|
36
35
|
const HeaderBasicButton_js_1 = require("./HeaderBasicButton.js");
|
|
@@ -34,7 +34,6 @@ exports.HeaderLogo = void 0;
|
|
|
34
34
|
const classnames_1 = __importDefault(require("classnames"));
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/header.css");
|
|
38
37
|
/**
|
|
39
38
|
* Header Title section
|
|
40
39
|
* @example
|