@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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FilterButtonBarTranslation } from '../FilterButtonBar.js';
|
|
3
3
|
import type { TableFilterProps } from '../types.js';
|
|
4
|
-
import '@itwin/itwinui-css/css/table.css';
|
|
5
4
|
export declare type DateRangeTranslation = {
|
|
6
5
|
from: string;
|
|
7
6
|
to: string;
|
|
@@ -35,7 +35,6 @@ const React = __importStar(require("react"));
|
|
|
35
35
|
const index_js_1 = require("../../../utils/index.js");
|
|
36
36
|
const FilterButtonBar_js_1 = require("../FilterButtonBar.js");
|
|
37
37
|
const BaseFilter_js_1 = require("../BaseFilter.js");
|
|
38
|
-
require("@itwin/itwinui-css/css/table.css");
|
|
39
38
|
const DatePickerInput_js_1 = __importDefault(require("./DatePickerInput.js"));
|
|
40
39
|
const defaultStrings = {
|
|
41
40
|
from: 'From',
|
|
@@ -33,7 +33,6 @@ exports.FilterButtonBar = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
|
-
require("@itwin/itwinui-css/css/table.css");
|
|
37
36
|
const index_js_1 = require("../../utils/index.js");
|
|
38
37
|
const index_js_2 = require("../../Buttons/index.js");
|
|
39
38
|
const defaultStrings = {
|
|
@@ -49,7 +48,7 @@ const FilterButtonBar = (props) => {
|
|
|
49
48
|
const { children, setFilter, clearFilter, translatedLabels, className, style, id, } = props;
|
|
50
49
|
const translatedStrings = { ...defaultStrings, ...translatedLabels };
|
|
51
50
|
(0, index_js_1.useGlobals)();
|
|
52
|
-
return (React.createElement(
|
|
51
|
+
return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-button-bar', className), style: style, id: id },
|
|
53
52
|
children,
|
|
54
53
|
React.createElement(index_js_2.Button, { styleType: 'high-visibility', onClick: setFilter }, translatedStrings.filter),
|
|
55
54
|
React.createElement(index_js_2.Button, { onClick: clearFilter }, translatedStrings.clear)));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { HeaderGroup } from 'react-table';
|
|
3
|
-
import '@itwin/itwinui-css/css/table.css';
|
|
4
3
|
import type { CommonProps } from '../../utils/index.js';
|
|
5
4
|
export declare type FilterToggleProps<T extends Record<string, unknown>> = {
|
|
6
5
|
column: HeaderGroup<T>;
|
|
@@ -33,7 +33,6 @@ exports.FilterToggle = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
|
-
require("@itwin/itwinui-css/css/table.css");
|
|
37
36
|
const index_js_1 = require("../../utils/index.js");
|
|
38
37
|
const index_js_2 = require("../../Buttons/index.js");
|
|
39
38
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FilterButtonBarTranslation } from '../FilterButtonBar.js';
|
|
3
3
|
import type { TableFilterProps } from '../types.js';
|
|
4
|
-
import '@itwin/itwinui-css/css/table.css';
|
|
5
4
|
export declare type NumberRangeTranslation = {
|
|
6
5
|
from: string;
|
|
7
6
|
to: string;
|
|
@@ -32,7 +32,6 @@ const React = __importStar(require("react"));
|
|
|
32
32
|
const index_js_1 = require("../../../utils/index.js");
|
|
33
33
|
const FilterButtonBar_js_1 = require("../FilterButtonBar.js");
|
|
34
34
|
const BaseFilter_js_1 = require("../BaseFilter.js");
|
|
35
|
-
require("@itwin/itwinui-css/css/table.css");
|
|
36
35
|
const index_js_2 = require("../../../LabeledInput/index.js");
|
|
37
36
|
const defaultStrings = {
|
|
38
37
|
from: 'From',
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import '@itwin/itwinui-css/css/table.css';
|
|
3
2
|
import type { FilterButtonBarTranslation } from '../FilterButtonBar.js';
|
|
4
3
|
import type { TableFilterProps } from '../types.js';
|
|
5
4
|
export declare type TextFilterProps<T extends Record<string, unknown>> = TableFilterProps<T> & {
|
|
@@ -29,7 +29,6 @@ exports.TextFilter = void 0;
|
|
|
29
29
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
30
30
|
*--------------------------------------------------------------------------------------------*/
|
|
31
31
|
const React = __importStar(require("react"));
|
|
32
|
-
require("@itwin/itwinui-css/css/table.css");
|
|
33
32
|
const index_js_1 = require("../../../utils/index.js");
|
|
34
33
|
const index_js_2 = require("../../../Input/index.js");
|
|
35
34
|
const FilterButtonBar_js_1 = require("../FilterButtonBar.js");
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.useColumnDragAndDrop = void 0;
|
|
4
7
|
const react_table_1 = require("react-table");
|
|
8
|
+
const styles_js_1 = __importDefault(require("../../../styles.js"));
|
|
5
9
|
const REORDER_ACTIONS = {
|
|
6
10
|
columnDragStart: 'columnDragStart',
|
|
7
11
|
columnDragEnd: 'columnDragEnd',
|
|
@@ -24,13 +28,13 @@ const defaultGetDragAndDropProps = (isEnabled) => (props, { instance, header, })
|
|
|
24
28
|
};
|
|
25
29
|
const setOnDragColumnStyle = (event, position) => {
|
|
26
30
|
const columnElement = event.currentTarget;
|
|
27
|
-
columnElement.classList.remove('iui-table-reorder-column-right');
|
|
28
|
-
columnElement.classList.remove('iui-table-reorder-column-left');
|
|
31
|
+
columnElement.classList.remove(styles_js_1.default['iui-table-reorder-column-right']);
|
|
32
|
+
columnElement.classList.remove(styles_js_1.default['iui-table-reorder-column-left']);
|
|
29
33
|
if (position === 'left') {
|
|
30
|
-
columnElement.classList.add('iui-table-reorder-column-left');
|
|
34
|
+
columnElement.classList.add(styles_js_1.default['iui-table-reorder-column-left']);
|
|
31
35
|
}
|
|
32
36
|
else if (position === 'right') {
|
|
33
|
-
columnElement.classList.add('iui-table-reorder-column-right');
|
|
37
|
+
columnElement.classList.add(styles_js_1.default['iui-table-reorder-column-right']);
|
|
34
38
|
}
|
|
35
39
|
};
|
|
36
40
|
const reorderColumns = (tableColumns, srcIndex, dstIndex) => {
|
package/cjs/core/Tabs/Tab.d.ts
CHANGED
package/cjs/core/Tabs/Tab.js
CHANGED
|
@@ -34,7 +34,6 @@ exports.Tab = 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/tabs.css");
|
|
38
37
|
/**
|
|
39
38
|
* Individual tab component to be used in the `labels` prop of `Tabs`.
|
|
40
39
|
* @example
|
package/cjs/core/Tabs/Tabs.d.ts
CHANGED
package/cjs/core/Tabs/Tabs.js
CHANGED
|
@@ -34,8 +34,8 @@ exports.VerticalTabs = exports.HorizontalTabs = exports.Tabs = 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/tabs.css");
|
|
38
37
|
const Tab_js_1 = require("./Tab.js");
|
|
38
|
+
const styles_js_1 = __importDefault(require("../../styles.js"));
|
|
39
39
|
/**
|
|
40
40
|
* Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.
|
|
41
41
|
* @example
|
|
@@ -114,7 +114,7 @@ const Tabs = (props) => {
|
|
|
114
114
|
const [focusedIndex, setFocusedIndex] = React.useState();
|
|
115
115
|
React.useEffect(() => {
|
|
116
116
|
if (tablistRef.current && focusedIndex !== undefined) {
|
|
117
|
-
const tab = tablistRef.current.querySelectorAll('
|
|
117
|
+
const tab = tablistRef.current.querySelectorAll(`.${styles_js_1.default['iui-tab']}`)[focusedIndex];
|
|
118
118
|
tab === null || tab === void 0 ? void 0 : tab.focus();
|
|
119
119
|
}
|
|
120
120
|
}, [focusedIndex]);
|
|
@@ -122,7 +122,7 @@ const Tabs = (props) => {
|
|
|
122
122
|
(0, index_js_1.useIsomorphicLayoutEffect)(() => {
|
|
123
123
|
var _a;
|
|
124
124
|
setHasSublabel(type !== 'pill' && // pill tabs should never have sublabels
|
|
125
|
-
!!((_a = tablistRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('
|
|
125
|
+
!!((_a = tablistRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(`.${styles_js_1.default['iui-tab-description']}`)));
|
|
126
126
|
}, [type]);
|
|
127
127
|
const enableHorizontalScroll = React.useCallback((e) => {
|
|
128
128
|
var _a;
|
|
@@ -232,7 +232,7 @@ const Tabs = (props) => {
|
|
|
232
232
|
if (ownerDoc !== null &&
|
|
233
233
|
(overflowOptions === null || overflowOptions === void 0 ? void 0 : overflowOptions.useOverflow) &&
|
|
234
234
|
currentActiveIndex !== undefined) {
|
|
235
|
-
const activeTab = ownerDoc.querySelectorAll('
|
|
235
|
+
const activeTab = ownerDoc.querySelectorAll(`.${styles_js_1.default['iui-tab']}`)[currentActiveIndex];
|
|
236
236
|
const isVertical = orientation === 'vertical';
|
|
237
237
|
const tabPlacement = isTabHidden(activeTab, isVertical);
|
|
238
238
|
if (tabPlacement) {
|
package/cjs/core/Tag/Tag.d.ts
CHANGED
package/cjs/core/Tag/Tag.js
CHANGED
|
@@ -34,7 +34,6 @@ exports.Tag = 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/tag.css");
|
|
38
37
|
const index_js_2 = require("../Buttons/index.js");
|
|
39
38
|
/**
|
|
40
39
|
* Tag for showing categories, filters etc.
|
|
@@ -34,7 +34,6 @@ exports.TagContainer = 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/tag.css");
|
|
38
37
|
/**
|
|
39
38
|
* TagContainer for grouping tags.
|
|
40
39
|
* @example
|
|
@@ -34,7 +34,6 @@ exports.Textarea = 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/input.css");
|
|
38
37
|
/**
|
|
39
38
|
* Basic textarea component
|
|
40
39
|
* @example
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
-
import '@itwin/itwinui-css/css/global.css';
|
|
4
|
-
import '@itwin/itwinui-variables/index.css';
|
|
5
3
|
export declare type ThemeOptions = {
|
|
6
4
|
/**
|
|
7
5
|
* Whether to apply high-contrast versions of light and dark themes.
|
|
@@ -35,8 +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 ThemeContext_js_1 = require("./ThemeContext.js");
|
|
38
|
-
require("@itwin/itwinui-css/css/global.css");
|
|
39
|
-
require("@itwin/itwinui-variables/index.css");
|
|
40
38
|
/**
|
|
41
39
|
* This component provides global styles and applies theme to the entire tree
|
|
42
40
|
* that it is wrapping around. The `theme` prop is optional and defaults to the
|
package/cjs/core/Tile/Tile.d.ts
CHANGED
|
@@ -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/tile.css';
|
|
4
3
|
/**
|
|
5
4
|
* Polymorphic Tile action component. Recommended to be used in a "name" of `Tile`.
|
|
6
5
|
* Renders `a` element by default.
|
package/cjs/core/Tile/Tile.js
CHANGED
|
@@ -34,7 +34,6 @@ exports.Tile = exports.TileAction = 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/tile.css");
|
|
38
37
|
const index_js_2 = require("../DropdownMenu/index.js");
|
|
39
38
|
const index_js_3 = require("../Buttons/index.js");
|
|
40
39
|
const index_js_4 = require("../ProgressIndicators/index.js");
|
|
@@ -96,9 +95,7 @@ exports.Tile = Object.assign(React.forwardRef((props, forwardedRef) => {
|
|
|
96
95
|
thumbnail && (React.createElement(index_js_1.Box, { className: 'iui-tile-thumbnail' },
|
|
97
96
|
typeof thumbnail === 'string' ? (React.createElement(index_js_1.Box, { className: 'iui-tile-thumbnail-picture', style: { backgroundImage: `url(${thumbnail})` } })) : thumbnail && thumbnail.type === 'img' ? (React.cloneElement(thumbnail, {
|
|
98
97
|
className: 'iui-tile-thumbnail-picture',
|
|
99
|
-
})) : React.
|
|
100
|
-
className: (0, classnames_1.default)('iui-thumbnail-icon', thumbnail.props.className),
|
|
101
|
-
})) : (thumbnail),
|
|
98
|
+
})) : (React.createElement(index_js_1.Box, { as: 'span', className: 'iui-thumbnail-icon' }, thumbnail)),
|
|
102
99
|
leftIcon &&
|
|
103
100
|
React.cloneElement(leftIcon, {
|
|
104
101
|
className: 'iui-tile-thumbnail-type-indicator',
|
|
@@ -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/time-picker.css';
|
|
4
3
|
export declare type MeridiemType = 'AM' | 'PM';
|
|
5
4
|
export declare type Precision = 'hours' | 'minutes' | 'seconds';
|
|
6
5
|
export declare type TimePickerProps = {
|
|
@@ -34,7 +34,6 @@ exports.TimePicker = 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/time-picker.css");
|
|
38
37
|
const isSameHour = (date1, date2, meridiem) => {
|
|
39
38
|
const adjustedHours = meridiem
|
|
40
39
|
? formatHourFrom12(date1.getHours(), meridiem)
|
package/cjs/core/Toast/Toast.js
CHANGED
|
@@ -35,7 +35,6 @@ const React = __importStar(require("react"));
|
|
|
35
35
|
const react_transition_group_1 = require("react-transition-group");
|
|
36
36
|
const classnames_1 = __importDefault(require("classnames"));
|
|
37
37
|
const index_js_1 = require("../utils/index.js");
|
|
38
|
-
require("@itwin/itwinui-css/css/toast.css");
|
|
39
38
|
const index_js_2 = require("../Buttons/index.js");
|
|
40
39
|
const isMotionOk = () => { var _a, _b, _c; return (_c = (_b = (_a = (0, index_js_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.matchMedia) === null || _b === void 0 ? void 0 : _b.call(_a, '(prefers-reduced-motion: no-preference)')) === null || _c === void 0 ? void 0 : _c.matches; };
|
|
41
40
|
/**
|
|
@@ -31,7 +31,6 @@ exports.ToastWrapper = void 0;
|
|
|
31
31
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
32
32
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
|
-
require("@itwin/itwinui-css/css/toast.css");
|
|
35
34
|
const React = __importStar(require("react"));
|
|
36
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
37
36
|
const Toast_js_1 = __importDefault(require("./Toast.js"));
|
|
@@ -34,7 +34,6 @@ exports.ToggleSwitch = 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/toggle-switch.css");
|
|
38
37
|
/**
|
|
39
38
|
* A switch for turning on and off.
|
|
40
39
|
* @example
|
|
@@ -63,13 +62,12 @@ exports.ToggleSwitch = React.forwardRef((props, ref) => {
|
|
|
63
62
|
const { disabled = false, labelPosition = 'right', label, setFocus = false, className, style, size = 'default', ...rest } = props;
|
|
64
63
|
const inputElementRef = React.useRef(null);
|
|
65
64
|
const refs = (0, index_js_1.useMergedRefs)(inputElementRef, ref);
|
|
66
|
-
const WrapperComponent = label ? 'label' : 'div';
|
|
67
65
|
React.useEffect(() => {
|
|
68
66
|
if (inputElementRef.current && setFocus) {
|
|
69
67
|
inputElementRef.current.focus();
|
|
70
68
|
}
|
|
71
69
|
}, [setFocus]);
|
|
72
|
-
return (React.createElement(
|
|
70
|
+
return (React.createElement(index_js_1.Box, { as: label ? 'label' : 'div', className: (0, classnames_1.default)('iui-toggle-switch-wrapper', {
|
|
73
71
|
'iui-disabled': disabled,
|
|
74
72
|
'iui-label-on-right': label && labelPosition === 'right',
|
|
75
73
|
'iui-label-on-left': label && labelPosition === 'left',
|
|
@@ -34,7 +34,6 @@ exports.Tooltip = 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/tooltip.css");
|
|
38
37
|
/**
|
|
39
38
|
* Basic tooltip component to display informative content when an element is hovered or focused.
|
|
40
39
|
* Uses the {@link Popover} component, which is a wrapper around [tippy.js](https://atomiks.github.io/tippyjs).
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
+
import { ListItem } from '../List/index.js';
|
|
4
|
+
declare type TransferListListboxWrapperOwnProps = {};
|
|
5
|
+
declare type TransferListItemOwnProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Callback fired when the the active state changes.
|
|
8
|
+
*/
|
|
9
|
+
onActiveChange?: (value: boolean) => void;
|
|
10
|
+
} & React.ComponentProps<typeof ListItem>;
|
|
11
|
+
declare type TransferListListboxLabelOwnProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Text label that is wrapped by `TransferList.ListboxLabel`
|
|
14
|
+
*/
|
|
15
|
+
children?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The TransferList component is used to display a list within a box
|
|
19
|
+
* @example
|
|
20
|
+
* <TransferList>
|
|
21
|
+
* <TransferList.ListboxWrapper>
|
|
22
|
+
* <TransferList.Listbox>
|
|
23
|
+
* <TransferList.Item>Item 1</TransferList.Item>
|
|
24
|
+
* <TransferList.Item>Item 2</TransferList.Item>
|
|
25
|
+
* <TransferList.Item>Item 3</TransferList.Item>
|
|
26
|
+
* <TransferList.Item>Item 4</TransferList.Item>
|
|
27
|
+
* <TransferList.Item>Item 5</TransferList.Item>
|
|
28
|
+
* <TransferList.Item>Item 6</TransferList.Item>
|
|
29
|
+
* </TransferList.Listbox>
|
|
30
|
+
* </TransferList.ListboxWrapper>
|
|
31
|
+
* </TransferList>
|
|
32
|
+
*/
|
|
33
|
+
export declare const TransferList: PolymorphicForwardRefComponent<keyof JSX.IntrinsicElements, {}> & {
|
|
34
|
+
/**
|
|
35
|
+
* TransferList listbox wrapper subcomponent
|
|
36
|
+
*/
|
|
37
|
+
ListboxWrapper: PolymorphicForwardRefComponent<"div", TransferListListboxWrapperOwnProps>;
|
|
38
|
+
/**
|
|
39
|
+
* TransferList listbox subcomponent
|
|
40
|
+
*/
|
|
41
|
+
Listbox: PolymorphicForwardRefComponent<"ul", Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "key" | keyof React.HTMLAttributes<HTMLUListElement>> & {
|
|
42
|
+
ref?: ((instance: HTMLUListElement | null) => void) | React.RefObject<HTMLUListElement> | null | undefined;
|
|
43
|
+
}, "as"> & {
|
|
44
|
+
as?: "ul" | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* TransferList item subcomponent
|
|
48
|
+
*/
|
|
49
|
+
Item: PolymorphicForwardRefComponent<"li", TransferListItemOwnProps>;
|
|
50
|
+
/**
|
|
51
|
+
* TransferList listbox label subcomponent
|
|
52
|
+
*/
|
|
53
|
+
ListboxLabel: PolymorphicForwardRefComponent<"div", TransferListListboxLabelOwnProps>;
|
|
54
|
+
/**
|
|
55
|
+
* TransferList toolbar subcomponent
|
|
56
|
+
*/
|
|
57
|
+
Toolbar: PolymorphicForwardRefComponent<keyof JSX.IntrinsicElements, {}>;
|
|
58
|
+
};
|
|
59
|
+
export declare const TransferListContext: React.Context<{
|
|
60
|
+
/**
|
|
61
|
+
* Id to set to label and set 'aria-labelledby' prop of the listbox
|
|
62
|
+
*/
|
|
63
|
+
labelId?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Callback that's fired when labelId is changed
|
|
66
|
+
*/
|
|
67
|
+
setLabelId: (labelId: string) => void;
|
|
68
|
+
} | undefined>;
|
|
69
|
+
export default TransferList;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TransferListContext = exports.TransferList = void 0;
|
|
7
|
+
/*---------------------------------------------------------------------------------------------
|
|
8
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
9
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
10
|
+
*--------------------------------------------------------------------------------------------*/
|
|
11
|
+
const react_1 = __importDefault(require("react"));
|
|
12
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
13
|
+
const index_js_1 = require("../utils/index.js");
|
|
14
|
+
const index_js_2 = require("../List/index.js");
|
|
15
|
+
// ----------------------------------------------------------------------------
|
|
16
|
+
// TransferListComponent
|
|
17
|
+
const TransferListComponent = (0, index_js_1.polymorphic)('iui-transfer-list-wrapper');
|
|
18
|
+
TransferListComponent.displayName = 'TransferList';
|
|
19
|
+
const TransferListListboxWrapper = react_1.default.forwardRef((props, ref) => {
|
|
20
|
+
const { className, children, ...rest } = props;
|
|
21
|
+
const uid = (0, index_js_1.useId)();
|
|
22
|
+
const [labelId, setLabelId] = react_1.default.useState(uid);
|
|
23
|
+
return (react_1.default.createElement(index_js_1.Box, { as: 'div', className: (0, classnames_1.default)('iui-transfer-list-listbox-wrapper', className), ref: ref, ...rest },
|
|
24
|
+
react_1.default.createElement(exports.TransferListContext.Provider, { value: { labelId, setLabelId } }, children)));
|
|
25
|
+
});
|
|
26
|
+
TransferListListboxWrapper.displayName = 'TransferList.ListboxWrapper';
|
|
27
|
+
const TransferListListbox = react_1.default.forwardRef((props, ref) => {
|
|
28
|
+
const { children, className, ...rest } = props;
|
|
29
|
+
const { labelId } = (0, index_js_1.useSafeContext)(exports.TransferListContext);
|
|
30
|
+
const [focusedIndex, setFocusedIndex] = react_1.default.useState();
|
|
31
|
+
const listRef = react_1.default.useRef(null);
|
|
32
|
+
const refs = (0, index_js_1.useMergedRefs)(listRef, ref);
|
|
33
|
+
const getFocusableNodes = react_1.default.useCallback(() => {
|
|
34
|
+
const focusableItems = (0, index_js_1.getFocusableElements)(listRef.current);
|
|
35
|
+
// Filter out focusable elements that are inside each list item, e.g. checkbox, anchor
|
|
36
|
+
return focusableItems.filter((i) => !focusableItems.some((p) => p.contains(i.parentElement)));
|
|
37
|
+
}, []);
|
|
38
|
+
react_1.default.useEffect(() => {
|
|
39
|
+
var _a;
|
|
40
|
+
const items = getFocusableNodes();
|
|
41
|
+
if (focusedIndex != null) {
|
|
42
|
+
(_a = items === null || items === void 0 ? void 0 : items[focusedIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
}, [focusedIndex, getFocusableNodes]);
|
|
46
|
+
const onKeyDown = (event) => {
|
|
47
|
+
if (event.altKey) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const items = getFocusableNodes();
|
|
51
|
+
if (!(items === null || items === void 0 ? void 0 : items.length)) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const currentIndex = focusedIndex !== null && focusedIndex !== void 0 ? focusedIndex : 0;
|
|
55
|
+
switch (event.key) {
|
|
56
|
+
case 'ArrowDown': {
|
|
57
|
+
setFocusedIndex(Math.min(currentIndex + 1, items.length - 1));
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
event.stopPropagation();
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
case 'ArrowUp': {
|
|
63
|
+
setFocusedIndex(Math.max(currentIndex - 1, 0));
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
event.stopPropagation();
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
default:
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
return (react_1.default.createElement(index_js_2.List, { className: (0, classnames_1.default)('iui-transfer-list-listbox', className), onKeyDown: onKeyDown, role: 'listbox', "aria-multiselectable": true, "aria-labelledby": labelId, tabIndex: 0, ref: refs, ...rest }, children));
|
|
73
|
+
});
|
|
74
|
+
TransferListListbox.displayName = 'TransferList.Listbox';
|
|
75
|
+
const TransferListItem = react_1.default.forwardRef((props, ref) => {
|
|
76
|
+
const { actionable = true, disabled, onActiveChange, children, active, ...rest } = props;
|
|
77
|
+
const onClickEvents = () => actionable && onActiveChange && onActiveChange(!active);
|
|
78
|
+
const onKeyDown = (event) => {
|
|
79
|
+
if (event.altKey) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (event.key === 'Enter' ||
|
|
83
|
+
event.key === ' ' ||
|
|
84
|
+
event.key === 'Spacebar') {
|
|
85
|
+
!disabled && onClickEvents();
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
return (react_1.default.createElement(index_js_2.ListItem, { ref: ref, onClick: onClickEvents, onKeyDown: onKeyDown, active: active, actionable: actionable, tabIndex: -1, role: 'option', "aria-disabled": disabled ? 'true' : undefined, "aria-selected": active ? 'true' : undefined, disabled: disabled, ...rest }, children));
|
|
90
|
+
});
|
|
91
|
+
TransferListItem.displayName = 'TransferList.Item';
|
|
92
|
+
const TransferListListboxLabel = react_1.default.forwardRef((props, ref) => {
|
|
93
|
+
const { children, className, id, ...rest } = props;
|
|
94
|
+
const { labelId, setLabelId } = (0, index_js_1.useSafeContext)(exports.TransferListContext);
|
|
95
|
+
react_1.default.useEffect(() => {
|
|
96
|
+
if (id && id !== labelId) {
|
|
97
|
+
setLabelId(id);
|
|
98
|
+
}
|
|
99
|
+
}, [id, labelId, setLabelId]);
|
|
100
|
+
return (react_1.default.createElement(index_js_1.Box, { as: 'div', className: (0, classnames_1.default)('iui-transfer-list-listbox-label', className), id: labelId, ref: ref, ...rest }, children));
|
|
101
|
+
});
|
|
102
|
+
TransferListListboxLabel.displayName = 'TransferList.ListboxLabel';
|
|
103
|
+
// ----------------------------------------------------------------------------
|
|
104
|
+
// TransferList.Toolbar component
|
|
105
|
+
const TransferListToolbar = (0, index_js_1.polymorphic)('iui-transfer-list-toolbar', {
|
|
106
|
+
role: 'toolbar',
|
|
107
|
+
});
|
|
108
|
+
TransferListToolbar.displayName = 'TransferList.Toolbar';
|
|
109
|
+
/**
|
|
110
|
+
* The TransferList component is used to display a list within a box
|
|
111
|
+
* @example
|
|
112
|
+
* <TransferList>
|
|
113
|
+
* <TransferList.ListboxWrapper>
|
|
114
|
+
* <TransferList.Listbox>
|
|
115
|
+
* <TransferList.Item>Item 1</TransferList.Item>
|
|
116
|
+
* <TransferList.Item>Item 2</TransferList.Item>
|
|
117
|
+
* <TransferList.Item>Item 3</TransferList.Item>
|
|
118
|
+
* <TransferList.Item>Item 4</TransferList.Item>
|
|
119
|
+
* <TransferList.Item>Item 5</TransferList.Item>
|
|
120
|
+
* <TransferList.Item>Item 6</TransferList.Item>
|
|
121
|
+
* </TransferList.Listbox>
|
|
122
|
+
* </TransferList.ListboxWrapper>
|
|
123
|
+
* </TransferList>
|
|
124
|
+
*/
|
|
125
|
+
exports.TransferList = Object.assign(TransferListComponent, {
|
|
126
|
+
/**
|
|
127
|
+
* TransferList listbox wrapper subcomponent
|
|
128
|
+
*/
|
|
129
|
+
ListboxWrapper: TransferListListboxWrapper,
|
|
130
|
+
/**
|
|
131
|
+
* TransferList listbox subcomponent
|
|
132
|
+
*/
|
|
133
|
+
Listbox: TransferListListbox,
|
|
134
|
+
/**
|
|
135
|
+
* TransferList item subcomponent
|
|
136
|
+
*/
|
|
137
|
+
Item: TransferListItem,
|
|
138
|
+
/**
|
|
139
|
+
* TransferList listbox label subcomponent
|
|
140
|
+
*/
|
|
141
|
+
ListboxLabel: TransferListListboxLabel,
|
|
142
|
+
/**
|
|
143
|
+
* TransferList toolbar subcomponent
|
|
144
|
+
*/
|
|
145
|
+
Toolbar: TransferListToolbar,
|
|
146
|
+
});
|
|
147
|
+
exports.TransferListContext = react_1.default.createContext(undefined);
|
|
148
|
+
exports.default = exports.TransferList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransferList = void 0;
|
|
4
|
+
/*---------------------------------------------------------------------------------------------
|
|
5
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
6
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
|
+
*--------------------------------------------------------------------------------------------*/
|
|
8
|
+
var TransferList_js_1 = require("./TransferList.js");
|
|
9
|
+
Object.defineProperty(exports, "TransferList", { enumerable: true, get: function () { return TransferList_js_1.TransferList; } });
|
|
10
|
+
exports.default = './TransferList';
|