@itwin/itwinui-react 3.0.0-dev.0 → 3.0.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +28 -22
- package/cjs/core/Alert/Alert.d.ts +0 -1
- package/cjs/core/Alert/Alert.js +0 -1
- package/cjs/core/Avatar/Avatar.d.ts +0 -1
- package/cjs/core/Avatar/Avatar.js +0 -1
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +0 -1
- package/cjs/core/AvatarGroup/AvatarGroup.js +0 -1
- 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 +0 -1
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/cjs/core/ButtonGroup/ButtonGroup.js +0 -1
- 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 +0 -1
- 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 +0 -1
- package/cjs/core/Carousel/Carousel.js +0 -1
- package/cjs/core/Carousel/CarouselDotsList.d.ts +0 -1
- package/cjs/core/Carousel/CarouselDotsList.js +0 -1
- 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 +0 -1
- package/cjs/core/ColorPicker/ColorInputPanel.d.ts +0 -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 +0 -1
- package/cjs/core/ColorPicker/ColorPicker.js +0 -1
- 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 +0 -1
- package/cjs/core/DatePicker/DatePicker.d.ts +0 -1
- package/cjs/core/DatePicker/DatePicker.js +0 -1
- package/cjs/core/Dialog/Dialog.d.ts +0 -1
- package/cjs/core/Dialog/Dialog.js +2 -2
- 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 +4 -0
- package/cjs/core/Dialog/DialogMain.d.ts +0 -1
- package/cjs/core/Dialog/DialogMain.js +2 -3
- 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/ExpandableBlock/ExpandableBlock.d.ts +5 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +6 -4
- package/cjs/core/Fieldset/Fieldset.d.ts +0 -1
- package/cjs/core/Fieldset/Fieldset.js +0 -1
- package/cjs/core/FileUpload/FileUpload.d.ts +0 -1
- package/cjs/core/FileUpload/FileUpload.js +0 -1
- package/cjs/core/FileUpload/FileUploadCard.d.ts +0 -1
- package/cjs/core/FileUpload/FileUploadCard.js +1 -2
- 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 +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 +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 +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 +0 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +0 -1
- 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 +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 +0 -1
- package/cjs/core/Menu/MenuItemSkeleton.js +0 -1
- package/cjs/core/Modal/Modal.d.ts +0 -1
- package/cjs/core/Modal/Modal.js +0 -1
- 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 +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 +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 +0 -1
- 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 +0 -1
- package/cjs/core/Slider/Track.js +2 -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 +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 +18 -19
- package/cjs/core/Table/TableCell.js +3 -2
- package/cjs/core/Table/TablePaginator.d.ts +0 -1
- package/cjs/core/Table/TablePaginator.js +8 -9
- package/cjs/core/Table/TableRowMemoized.js +2 -2
- package/cjs/core/Table/cells/DefaultCell.js +4 -3
- package/cjs/core/Table/cells/EditableCell.js +1 -1
- 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/DateRangeFilter.d.ts +0 -1
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +0 -1
- 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 +0 -1
- package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +0 -1
- package/cjs/core/Table/hooks/useColumnDragAndDrop.js +8 -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 +4 -4
- 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/ThemeProvider.d.ts +0 -2
- package/cjs/core/ThemeProvider/ThemeProvider.js +0 -2
- package/cjs/core/Tile/Tile.d.ts +0 -1
- package/cjs/core/Tile/Tile.js +1 -4
- 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/Toast/ToastWrapper.d.ts +0 -1
- package/cjs/core/Toast/ToastWrapper.js +0 -1
- 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 +148 -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 +0 -1
- package/cjs/core/Tree/TreeNode.d.ts +0 -1
- package/cjs/core/Tree/TreeNode.js +0 -1
- 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/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/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/Popover.d.ts +0 -1
- package/cjs/core/utils/components/Popover.js +0 -1
- 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 +20 -2
- 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/hooks/useGlobals.d.ts +0 -2
- package/cjs/core/utils/hooks/useGlobals.js +0 -2
- package/cjs/styles.d.ts +5 -0
- package/cjs/styles.js +453 -0
- package/esm/core/Alert/Alert.d.ts +0 -1
- package/esm/core/Alert/Alert.js +0 -1
- package/esm/core/Avatar/Avatar.d.ts +0 -1
- package/esm/core/Avatar/Avatar.js +0 -1
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +0 -1
- package/esm/core/AvatarGroup/AvatarGroup.js +0 -1
- 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 +0 -1
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/esm/core/ButtonGroup/ButtonGroup.js +0 -1
- 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 +0 -1
- 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 +0 -1
- package/esm/core/Carousel/Carousel.js +0 -1
- package/esm/core/Carousel/CarouselDotsList.d.ts +0 -1
- package/esm/core/Carousel/CarouselDotsList.js +0 -1
- 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 +0 -1
- package/esm/core/ColorPicker/ColorInputPanel.d.ts +0 -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 +0 -1
- package/esm/core/ColorPicker/ColorPicker.js +0 -1
- 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 +0 -1
- package/esm/core/DatePicker/DatePicker.d.ts +0 -1
- package/esm/core/DatePicker/DatePicker.js +0 -1
- package/esm/core/Dialog/Dialog.d.ts +0 -1
- package/esm/core/Dialog/Dialog.js +2 -2
- 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 +4 -0
- package/esm/core/Dialog/DialogMain.d.ts +0 -1
- package/esm/core/Dialog/DialogMain.js +2 -3
- 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/ExpandableBlock/ExpandableBlock.d.ts +5 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.js +6 -4
- package/esm/core/Fieldset/Fieldset.d.ts +0 -1
- package/esm/core/Fieldset/Fieldset.js +0 -1
- package/esm/core/FileUpload/FileUpload.d.ts +0 -1
- package/esm/core/FileUpload/FileUpload.js +0 -1
- package/esm/core/FileUpload/FileUploadCard.d.ts +0 -1
- package/esm/core/FileUpload/FileUploadCard.js +1 -2
- 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 +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 +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 +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 +0 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.js +0 -1
- 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 +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 +0 -1
- package/esm/core/Menu/MenuItemSkeleton.js +0 -1
- package/esm/core/Modal/Modal.d.ts +0 -1
- package/esm/core/Modal/Modal.js +0 -1
- 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 +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 +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 +0 -1
- 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 +0 -1
- package/esm/core/Slider/Track.js +2 -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 +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 +19 -20
- package/esm/core/Table/TableCell.js +3 -2
- package/esm/core/Table/TablePaginator.d.ts +0 -1
- package/esm/core/Table/TablePaginator.js +9 -10
- package/esm/core/Table/TableRowMemoized.js +3 -3
- package/esm/core/Table/cells/DefaultCell.js +4 -3
- package/esm/core/Table/cells/EditableCell.js +2 -2
- 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/DateRangeFilter.d.ts +0 -1
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +0 -1
- 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 +0 -1
- package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
- package/esm/core/Table/filters/TextFilter/TextFilter.js +0 -1
- package/esm/core/Table/hooks/useColumnDragAndDrop.js +5 -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 +4 -4
- 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/ThemeProvider.d.ts +0 -2
- package/esm/core/ThemeProvider/ThemeProvider.js +0 -2
- package/esm/core/Tile/Tile.d.ts +0 -1
- package/esm/core/Tile/Tile.js +1 -4
- 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/Toast/ToastWrapper.d.ts +0 -1
- package/esm/core/Toast/ToastWrapper.js +0 -1
- 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 +142 -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 +0 -1
- package/esm/core/Tree/TreeNode.d.ts +0 -1
- package/esm/core/Tree/TreeNode.js +0 -1
- 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/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/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/Popover.d.ts +0 -1
- package/esm/core/utils/components/Popover.js +0 -1
- 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 +15 -1
- 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/hooks/useGlobals.d.ts +0 -2
- package/esm/core/utils/hooks/useGlobals.js +0 -2
- package/esm/styles.d.ts +5 -0
- package/esm/styles.js +454 -0
- package/package.json +14 -11
- package/styles.css +1942 -0
- package/cjs/core/utils/functions/styles.d.ts +0 -6
- package/cjs/core/utils/functions/styles.js +0 -21
- package/esm/core/utils/functions/styles.d.ts +0 -6
- package/esm/core/utils/functions/styles.js +0 -17
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { useMergedRefs, useOverflow, SvgChevronRight, Box, } from '../utils/index.js';
|
|
8
|
-
import '@itwin/itwinui-css/css/breadcrumbs.css';
|
|
9
8
|
/**
|
|
10
9
|
* A breadcrumb trail is used as a navigational aid to help users keep track
|
|
11
10
|
* of their place in the application. It is often placed before a page's main content.
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { useOverflow, useMergedRefs, Box } from '../utils/index.js';
|
|
8
|
-
import '@itwin/itwinui-css/css/button.css';
|
|
9
8
|
/**
|
|
10
9
|
* Group buttons together for common actions.
|
|
11
10
|
* Handles responsive overflow when the `overflowButton` prop is specified.
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import type { ButtonProps } from '../Button/Button.js';
|
|
3
3
|
import type { DropdownMenuProps } from '../../DropdownMenu/index.js';
|
|
4
4
|
import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
|
|
5
|
-
import '@itwin/itwinui-css/css/button.css';
|
|
6
5
|
export declare type DropdownButtonProps = {
|
|
7
6
|
/**
|
|
8
7
|
* Items in the dropdown menu.
|
|
@@ -7,7 +7,6 @@ import cx from 'classnames';
|
|
|
7
7
|
import { Button } from '../Button/index.js';
|
|
8
8
|
import { DropdownMenu } from '../../DropdownMenu/index.js';
|
|
9
9
|
import { SvgCaretDownSmall, SvgCaretUpSmall, useMergedRefs, } from '../../utils/index.js';
|
|
10
|
-
import '@itwin/itwinui-css/css/button.css';
|
|
11
10
|
/**
|
|
12
11
|
* Button that opens a DropdownMenu.
|
|
13
12
|
* @example
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ButtonProps } from '../Button/Button.js';
|
|
3
3
|
import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
|
|
4
|
-
import '@itwin/itwinui-css/css/button.css';
|
|
5
|
-
import '@itwin/itwinui-css/css/tooltip.css';
|
|
6
4
|
export declare type IconButtonProps = {
|
|
7
5
|
/**
|
|
8
6
|
* Button gets active style.
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import type { ButtonProps } from '../Button/Button.js';
|
|
3
3
|
import type { Placement } from 'tippy.js';
|
|
4
4
|
import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
|
|
5
|
-
import '@itwin/itwinui-css/css/button.css';
|
|
6
5
|
export declare type SplitButtonProps = ButtonProps & {
|
|
7
6
|
/**
|
|
8
7
|
* Items in the dropdown menu.
|
|
@@ -8,7 +8,6 @@ import { Button } from '../Button/index.js';
|
|
|
8
8
|
import { IconButton } from '../IconButton/index.js';
|
|
9
9
|
import { DropdownMenu } from '../../DropdownMenu/index.js';
|
|
10
10
|
import { Box, SvgCaretDownSmall, SvgCaretUpSmall } from '../../utils/index.js';
|
|
11
|
-
import '@itwin/itwinui-css/css/button.css';
|
|
12
11
|
/**
|
|
13
12
|
* Split button component with a DropdownMenu.
|
|
14
13
|
*
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { getRandomValue, useMergedRefs, Box } from '../utils/index.js';
|
|
8
|
-
import '@itwin/itwinui-css/css/carousel.css';
|
|
9
8
|
import { CarouselContext } from './CarouselContext.js';
|
|
10
9
|
import { CarouselSlider } from './CarouselSlider.js';
|
|
11
10
|
import { CarouselSlide } from './CarouselSlide.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
2
|
-
import '@itwin/itwinui-css/css/carousel.css';
|
|
3
2
|
declare type CarouselDotsListProps = {
|
|
4
3
|
/** Number of total dots/slides in the carousel. Will be inferred from Carousel context or children. Otherwise, it is required to be passed. */
|
|
5
4
|
length?: number;
|
|
@@ -7,7 +7,6 @@ import cx from 'classnames';
|
|
|
7
7
|
import { CarouselContext } from './CarouselContext.js';
|
|
8
8
|
import { getBoundedValue, getWindow, useMergedRefs, useResizeObserver, Box, } from '../utils/index.js';
|
|
9
9
|
import { CarouselDot } from './CarouselDot.js';
|
|
10
|
-
import '@itwin/itwinui-css/css/carousel.css';
|
|
11
10
|
/**
|
|
12
11
|
* The `CarouselDotsList` component shows a list of `CarouselDot` components which can be used to
|
|
13
12
|
* choose a specific slide. If used as a descendant of `Carousel`, then this component does not need
|
|
@@ -6,7 +6,6 @@ import cx from 'classnames';
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ProgressRadial } from '../ProgressIndicators/index.js';
|
|
8
8
|
import { useMergedRefs, Box } from '../utils/index.js';
|
|
9
|
-
import '@itwin/itwinui-css/css/checkbox.css';
|
|
10
9
|
/**
|
|
11
10
|
* Simple input checkbox
|
|
12
11
|
* @example
|
|
@@ -6,7 +6,6 @@ import * as React from 'react';
|
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { ColorValue, getBoundedValue, useEventListener, useMergedRefs, Box, } from '../utils/index.js';
|
|
8
8
|
import { Slider } from '../Slider/index.js';
|
|
9
|
-
import '@itwin/itwinui-css/css/color-picker.css';
|
|
10
9
|
import { useColorPickerContext } from './ColorPickerContext.js';
|
|
11
10
|
const getVerticalPercentageOfRectangle = (rect, pointer) => {
|
|
12
11
|
const position = getBoundedValue(pointer, rect.top, rect.bottom);
|
|
@@ -8,7 +8,6 @@ import { IconButton } from '../Buttons/index.js';
|
|
|
8
8
|
import { Input } from '../Input/index.js';
|
|
9
9
|
import { ColorValue, InputContainer, SvgSwap, Box } from '../utils/index.js';
|
|
10
10
|
import { useColorPickerContext } from './ColorPickerContext.js';
|
|
11
|
-
import '@itwin/itwinui-css/css/color-picker.css';
|
|
12
11
|
/**
|
|
13
12
|
* `ColorInputPanel` shows input fields to enter precise color values in the specified format.
|
|
14
13
|
* It also allows switching between the specified formats using a swap button.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ColorValue } from '../utils/index.js';
|
|
3
3
|
import type { ColorType, PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
|
-
import '@itwin/itwinui-css/css/color-picker.css';
|
|
5
4
|
export declare type ColorPaletteProps = {
|
|
6
5
|
/**
|
|
7
6
|
* Label shown above the palette.
|
|
@@ -8,7 +8,6 @@ import { ColorValue, getFocusableElements, useMergedRefs, Box, } from '../utils/
|
|
|
8
8
|
import { getColorValue } from './ColorPicker.js';
|
|
9
9
|
import { ColorSwatch } from './ColorSwatch.js';
|
|
10
10
|
import { useColorPickerContext } from './ColorPickerContext.js';
|
|
11
|
-
import '@itwin/itwinui-css/css/color-picker.css';
|
|
12
11
|
/**
|
|
13
12
|
* `ColorPalette` is used to show a group of `ColorSwatch` components.
|
|
14
13
|
* @example
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/color-picker.css';
|
|
3
2
|
import { ColorValue } from '../utils/index.js';
|
|
4
3
|
import type { ColorType, PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
5
4
|
export declare const getColorValue: (color: ColorType | ColorValue | undefined) => ColorValue;
|
|
@@ -3,7 +3,6 @@
|
|
|
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 '@itwin/itwinui-css/css/color-picker.css';
|
|
7
6
|
import { ColorValue, getTabbableElements, useMergedRefs, Box, } from '../utils/index.js';
|
|
8
7
|
import cx from 'classnames';
|
|
9
8
|
import { ColorPickerContext } from './ColorPickerContext.js';
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import '@itwin/itwinui-css/css/color-picker.css';
|
|
8
7
|
import { ColorValue, Box } from '../utils/index.js';
|
|
9
8
|
import { getColorValue } from './ColorPicker.js';
|
|
10
9
|
/**
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import type { SelectOption } from '../Select/index.js';
|
|
3
3
|
import type { Input } from '../Input/Input.js';
|
|
4
4
|
import type { PopoverProps, InputContainerProps, CommonProps } from '../utils/index.js';
|
|
5
|
-
import 'tippy.js/animations/shift-away.css';
|
|
6
5
|
declare type ActionType = 'added' | 'removed';
|
|
7
6
|
declare type MultipleOnChangeProps<T> = {
|
|
8
7
|
value: T;
|
|
@@ -7,7 +7,6 @@ import { MenuExtraContent } from '../Menu/index.js';
|
|
|
7
7
|
import SelectTag from '../Select/SelectTag.js';
|
|
8
8
|
import { Text } from '../Typography/index.js';
|
|
9
9
|
import { getRandomValue, mergeRefs, useLatestRef, useIsomorphicLayoutEffect, AutoclearingHiddenLiveRegion, } from '../utils/index.js';
|
|
10
|
-
import 'tippy.js/animations/shift-away.css';
|
|
11
10
|
import { ComboBoxActionContext, comboBoxReducer, ComboBoxRefsContext, ComboBoxStateContext, } from './helpers.js';
|
|
12
11
|
import { ComboBoxDropdown } from './ComboBoxDropdown.js';
|
|
13
12
|
import { ComboBoxEndIcon } from './ComboBoxEndIcon.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
2
|
-
import '@itwin/itwinui-css/css/date-picker.css';
|
|
3
2
|
import type { TimePickerProps } from '../TimePicker/TimePicker.js';
|
|
4
3
|
/**
|
|
5
4
|
* Generate localized months and days strings using `Intl.DateTimeFormat` for passed locale to use in DatePicker component.
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { SvgChevronLeft, SvgChevronRight, SvgChevronLeftDouble, SvgChevronRightDouble, isBefore, Box, } from '../utils/index.js';
|
|
8
|
-
import '@itwin/itwinui-css/css/date-picker.css';
|
|
9
8
|
import { IconButton } from '../Buttons/IconButton/index.js';
|
|
10
9
|
import { TimePicker } from '../TimePicker/index.js';
|
|
11
10
|
const isSameDay = (a, b) => {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import '@itwin/itwinui-css/css/dialog.css';
|
|
8
7
|
import { DialogTitleBar } from './DialogTitleBar.js';
|
|
9
8
|
import { DialogContent } from './DialogContent.js';
|
|
10
9
|
import { DialogBackdrop } from './DialogBackdrop.js';
|
|
@@ -13,7 +12,7 @@ import { DialogButtonBar } from './DialogButtonBar.js';
|
|
|
13
12
|
import { DialogMain } from './DialogMain.js';
|
|
14
13
|
import { useMergedRefs, Box } from '../utils/index.js';
|
|
15
14
|
const DialogComponent = React.forwardRef((props, ref) => {
|
|
16
|
-
const { trapFocus = false, setFocus = false, preventDocumentScroll = false, isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = false, onClose, isDraggable = false, isResizable = false, relativeTo = 'viewport', className, ...rest } = props;
|
|
15
|
+
const { trapFocus = false, setFocus = false, preventDocumentScroll = false, isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = false, onClose, isDraggable = false, isResizable = false, relativeTo = 'viewport', placement, className, ...rest } = props;
|
|
17
16
|
const dialogRootRef = React.useRef(null);
|
|
18
17
|
const refs = useMergedRefs(ref, dialogRootRef);
|
|
19
18
|
return (React.createElement(DialogContext.Provider, { value: {
|
|
@@ -29,6 +28,7 @@ const DialogComponent = React.forwardRef((props, ref) => {
|
|
|
29
28
|
isResizable,
|
|
30
29
|
relativeTo,
|
|
31
30
|
dialogRootRef,
|
|
31
|
+
placement,
|
|
32
32
|
} },
|
|
33
33
|
React.createElement(Box, { className: cx('iui-dialog-wrapper', className), "data-iui-relative": relativeTo === 'container', ref: refs, ...rest })));
|
|
34
34
|
});
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { polymorphic } from '../utils/index.js';
|
|
6
|
-
import '@itwin/itwinui-css/css/dialog.css';
|
|
7
6
|
/**
|
|
8
7
|
* Container for Buttons in `Dialog`. Recommended to be used as a child of `Dialog`.
|
|
9
8
|
* @example
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { polymorphic } from '../utils/index.js';
|
|
6
|
-
import '@itwin/itwinui-css/css/dialog.css';
|
|
7
6
|
/**
|
|
8
7
|
* Container for content in `Dialog`. Recommended to be used as a child of `Dialog`.
|
|
9
8
|
* @example
|
|
@@ -65,6 +65,10 @@ export declare type DialogContextProps = {
|
|
|
65
65
|
* Dialog root ref. For internal use.
|
|
66
66
|
*/
|
|
67
67
|
dialogRootRef?: React.RefObject<HTMLDivElement>;
|
|
68
|
+
/**
|
|
69
|
+
* Determines the positioning of Dialog on page.
|
|
70
|
+
*/
|
|
71
|
+
placement?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
68
72
|
};
|
|
69
73
|
export declare const DialogContext: React.Context<DialogContextProps | undefined>;
|
|
70
74
|
export declare const useDialogContext: () => DialogContextProps;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { FocusTrap, getTranslateValues, Resizer, useMergedRefs, useIsomorphicLayoutEffect, Box, } from '../utils/index.js';
|
|
8
|
-
import '@itwin/itwinui-css/css/dialog.css';
|
|
9
8
|
import { useDialogContext } from './DialogContext.js';
|
|
10
9
|
import { CSSTransition } from 'react-transition-group';
|
|
11
10
|
import { DialogDragContext } from './DialogDragContext.js';
|
|
@@ -32,7 +31,7 @@ import useDragAndDrop from '../utils/hooks/useDragAndDrop.js';
|
|
|
32
31
|
*/
|
|
33
32
|
export const DialogMain = React.forwardRef((props, ref) => {
|
|
34
33
|
const dialogContext = useDialogContext();
|
|
35
|
-
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;
|
|
34
|
+
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;
|
|
36
35
|
const [style, setStyle] = React.useState();
|
|
37
36
|
const dialogRef = React.useRef(null);
|
|
38
37
|
const refs = useMergedRefs(dialogRef, ref);
|
|
@@ -113,7 +112,7 @@ export const DialogMain = React.forwardRef((props, ref) => {
|
|
|
113
112
|
'iui-dialog-full-page': styleType === 'fullPage',
|
|
114
113
|
'iui-dialog-visible': isOpen,
|
|
115
114
|
'iui-dialog-draggable': isDraggable,
|
|
116
|
-
}, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, style: {
|
|
115
|
+
}, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, "data-iui-placement": placement, style: {
|
|
117
116
|
transform,
|
|
118
117
|
overflow: 'unset',
|
|
119
118
|
...style,
|
|
@@ -6,7 +6,6 @@ import * as React from 'react';
|
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { SvgClose, mergeEventHandlers, Box } from '../utils/index.js';
|
|
8
8
|
import { IconButton } from '../Buttons/index.js';
|
|
9
|
-
import '@itwin/itwinui-css/css/dialog.css';
|
|
10
9
|
import { useDialogContext } from './DialogContext.js';
|
|
11
10
|
import { DialogTitleBarTitle } from './DialogTitleBarTitle.js';
|
|
12
11
|
import { useDialogDragContext } from './DialogDragContext.js';
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { polymorphic } from '../utils/index.js';
|
|
6
|
-
import '@itwin/itwinui-css/css/dialog.css';
|
|
7
6
|
/**
|
|
8
7
|
* Dialog title bar. Recommended to be used as a child of `Dialog`.
|
|
9
8
|
* @example
|
|
@@ -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.
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { StatusIconMap, WithCSSTransition, SvgChevronRight, Icon, Box, } from '../utils/index.js';
|
|
8
|
-
import '@itwin/itwinui-css/css/expandable-block.css';
|
|
9
8
|
/**
|
|
10
9
|
* Container that allows content to be hidden behind a brief title and a caption.
|
|
11
10
|
* @example
|
|
@@ -16,18 +15,21 @@ import '@itwin/itwinui-css/css/expandable-block.css';
|
|
|
16
15
|
* <ExpandableBlock title='Block with icon' endIcon={<SvgPlaceholder />}>Content</ExpandableBlock>
|
|
17
16
|
*/
|
|
18
17
|
export const ExpandableBlock = React.forwardRef((props, ref) => {
|
|
19
|
-
const { caption, children, className, title, onToggle, style, isExpanded = false, endIcon, status, size = 'default', styleType = 'default', ...rest } = props;
|
|
18
|
+
const { caption, children, className, title, onToggle, style, isExpanded = false, endIcon, status, size = 'default', styleType = 'default', disabled = false, ...rest } = props;
|
|
20
19
|
const icon = endIcon !== null && endIcon !== void 0 ? endIcon : (status && StatusIconMap[status]());
|
|
21
20
|
const [expanded, setExpanded] = React.useState(isExpanded);
|
|
22
21
|
React.useEffect(() => {
|
|
23
22
|
setExpanded(isExpanded);
|
|
24
23
|
}, [isExpanded]);
|
|
25
24
|
const handleToggle = () => {
|
|
25
|
+
if (disabled) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
26
28
|
setExpanded(!expanded);
|
|
27
29
|
onToggle === null || onToggle === void 0 ? void 0 : onToggle(!expanded);
|
|
28
30
|
};
|
|
29
31
|
const onKeyDown = (event) => {
|
|
30
|
-
if (event.altKey) {
|
|
32
|
+
if (event.altKey || disabled) {
|
|
31
33
|
return;
|
|
32
34
|
}
|
|
33
35
|
if (event.key === 'Enter' ||
|
|
@@ -42,7 +44,7 @@ export const ExpandableBlock = React.forwardRef((props, ref) => {
|
|
|
42
44
|
'iui-small': size === 'small',
|
|
43
45
|
'iui-borderless': styleType === 'borderless',
|
|
44
46
|
}, className), style: style, ref: ref, ...rest },
|
|
45
|
-
React.createElement(Box, { "aria-expanded": expanded, className: 'iui-header', tabIndex: 0, onClick: handleToggle, onKeyDown: onKeyDown },
|
|
47
|
+
React.createElement(Box, { role: 'button', "aria-expanded": expanded, className: 'iui-header', "aria-disabled": disabled, tabIndex: 0, onClick: handleToggle, onKeyDown: onKeyDown },
|
|
46
48
|
React.createElement(SvgChevronRight, { className: 'iui-icon', "aria-hidden": true }),
|
|
47
49
|
React.createElement(Box, { as: 'span', className: 'iui-expandable-block-label' },
|
|
48
50
|
React.createElement(Box, { className: 'iui-title' }, title),
|
|
@@ -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.
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { Box, useMergedRefs } from '../utils/index.js';
|
|
8
|
-
import '@itwin/itwinui-css/css/file-upload.css';
|
|
9
8
|
/**
|
|
10
9
|
* File upload component to be wrapped around `FileUploadTemplate` or any arbitrary component.
|
|
11
10
|
* Provides support for dragging and dropping multiple files.
|
|
@@ -7,7 +7,6 @@ import { getWindow, SvgDocument, useMergedRefs, useSafeContext, useId, mergeEven
|
|
|
7
7
|
import cx from 'classnames';
|
|
8
8
|
import { FileEmptyCard } from './FileEmptyCard.js';
|
|
9
9
|
import { Anchor } from '../Typography/Anchor/Anchor.js';
|
|
10
|
-
import '@itwin/itwinui-css/css/file-upload.css';
|
|
11
10
|
const toBytes = (bytes) => {
|
|
12
11
|
const units = [' bytes', 'KB', 'MB', 'GB', 'TB'];
|
|
13
12
|
let i = 0;
|
|
@@ -87,7 +86,7 @@ const FileUploadCardInput = React.forwardRef((props, ref) => {
|
|
|
87
86
|
}
|
|
88
87
|
}, [id, inputId, setInputId]);
|
|
89
88
|
return (React.createElement(React.Fragment, null,
|
|
90
|
-
React.createElement(VisuallyHidden, { as: 'input', type: 'file', onChange: mergeEventHandlers(onChange, (e) => {
|
|
89
|
+
React.createElement(VisuallyHidden, { as: 'input', type: 'file', unhideOnFocus: false, onChange: mergeEventHandlers(onChange, (e) => {
|
|
91
90
|
const _files = Array.from(e.currentTarget.files || []);
|
|
92
91
|
onFilesChange === null || onFilesChange === void 0 ? void 0 : onFilesChange(_files);
|
|
93
92
|
setInternalFiles(_files);
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { SvgUpload, Box } from '../utils/index.js';
|
|
8
|
-
import '@itwin/itwinui-css/css/file-upload.css';
|
|
9
8
|
import { Anchor } from '../Typography/Anchor/Anchor.js';
|
|
10
9
|
/**
|
|
11
10
|
* Default template to be used with the `FileUpload` wrapper component.
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { Box } from '../utils/index.js';
|
|
8
|
-
import '@itwin/itwinui-css/css/footer.css';
|
|
9
8
|
import { FooterItem } from './FooterItem.js';
|
|
10
9
|
import { FooterSeparator } from './FooterSeparator.js';
|
|
11
10
|
import { FooterList } from './FooterList.js';
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { polymorphic } from '../utils/index.js';
|
|
6
|
-
import '@itwin/itwinui-css/css/footer.css';
|
|
7
6
|
/**
|
|
8
7
|
* Footer item. Recommended to use inside `Footer.List`.
|
|
9
8
|
*/
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { polymorphic } from '../utils/index.js';
|
|
6
|
-
import '@itwin/itwinui-css/css/footer.css';
|
|
7
6
|
/**
|
|
8
7
|
* Footer list. Recommended to use inside `Footer` with `Footer.Item` and `Footer.Separator`.
|
|
9
8
|
*/
|