@itwin/itwinui-react 2.11.10 → 2.12.0
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 +19 -1
- 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 +2 -3
- package/cjs/core/Buttons/DropdownButton/DropdownButton.js +1 -2
- 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/ComboBox/ComboBoxDropdown.d.ts +1 -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 +2 -3
- 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 +1 -2
- 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 +0 -1
- 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 -4
- 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/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 +0 -1
- package/cjs/core/Table/TablePaginator.d.ts +0 -1
- package/cjs/core/Table/TablePaginator.js +0 -1
- package/cjs/core/Table/filters/BaseFilter.d.ts +0 -1
- package/cjs/core/Table/filters/BaseFilter.js +0 -1
- 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 +0 -1
- 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/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 +0 -1
- 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 +20 -2
- package/cjs/core/ThemeProvider/ThemeProvider.js +15 -4
- package/cjs/core/Tile/Tile.d.ts +0 -1
- package/cjs/core/Tile/Tile.js +0 -1
- package/cjs/core/TimePicker/TimePicker.d.ts +0 -1
- package/cjs/core/TimePicker/TimePicker.js +0 -1
- package/cjs/core/Toast/Toast.d.ts +0 -1
- package/cjs/core/Toast/Toast.js +0 -1
- package/cjs/core/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 +0 -1
- package/cjs/core/Tooltip/Tooltip.d.ts +0 -1
- package/cjs/core/Tooltip/Tooltip.js +0 -1
- package/cjs/core/Tree/Tree.d.ts +0 -1
- package/cjs/core/Tree/Tree.js +0 -1
- package/cjs/core/Tree/TreeNode.d.ts +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/Body/Body.d.ts +0 -1
- package/cjs/core/Typography/Body/Body.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/Headline/Headline.d.ts +0 -1
- package/cjs/core/Typography/Headline/Headline.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/Leading/Leading.d.ts +0 -1
- package/cjs/core/Typography/Leading/Leading.js +0 -1
- package/cjs/core/Typography/Small/Small.d.ts +0 -1
- package/cjs/core/Typography/Small/Small.js +0 -1
- package/cjs/core/Typography/Subheading/Subheading.d.ts +0 -1
- package/cjs/core/Typography/Subheading/Subheading.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/Typography/Title/Title.d.ts +0 -1
- package/cjs/core/Typography/Title/Title.js +0 -1
- 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 +2 -1
- package/cjs/core/utils/components/Icon.d.ts +0 -1
- package/cjs/core/utils/components/Icon.js +2 -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 +2 -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 +1 -2
- package/cjs/core/utils/components/Popover.js +0 -1
- package/cjs/core/utils/components/Resizer.js +5 -0
- 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 +15 -1
- package/cjs/core/utils/functions/index.d.ts +0 -1
- package/cjs/core/utils/functions/index.js +0 -1
- package/cjs/core/utils/hooks/useStyles.d.ts +10 -0
- package/cjs/core/utils/hooks/useStyles.js +93 -0
- package/cjs/core/utils/hooks/useTheme.d.ts +2 -2
- package/cjs/core/utils/hooks/useTheme.js +4 -2
- package/cjs/styles.js +348 -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 +2 -3
- package/esm/core/Buttons/DropdownButton/DropdownButton.js +1 -2
- 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/ComboBox/ComboBoxDropdown.d.ts +1 -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 +2 -3
- 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 +1 -2
- 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 +0 -1
- 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 -4
- 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/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 +0 -1
- package/esm/core/Table/TablePaginator.d.ts +0 -1
- package/esm/core/Table/TablePaginator.js +0 -1
- package/esm/core/Table/filters/BaseFilter.d.ts +0 -1
- package/esm/core/Table/filters/BaseFilter.js +0 -1
- 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 +0 -1
- 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/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 +0 -1
- 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 +20 -2
- package/esm/core/ThemeProvider/ThemeProvider.js +15 -4
- package/esm/core/Tile/Tile.d.ts +0 -1
- package/esm/core/Tile/Tile.js +0 -1
- package/esm/core/TimePicker/TimePicker.d.ts +0 -1
- package/esm/core/TimePicker/TimePicker.js +0 -1
- package/esm/core/Toast/Toast.d.ts +0 -1
- package/esm/core/Toast/Toast.js +0 -1
- package/esm/core/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 +0 -1
- package/esm/core/Tooltip/Tooltip.d.ts +0 -1
- package/esm/core/Tooltip/Tooltip.js +0 -1
- package/esm/core/Tree/Tree.d.ts +0 -1
- package/esm/core/Tree/Tree.js +0 -1
- package/esm/core/Tree/TreeNode.d.ts +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/Body/Body.d.ts +0 -1
- package/esm/core/Typography/Body/Body.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/Headline/Headline.d.ts +0 -1
- package/esm/core/Typography/Headline/Headline.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/Leading/Leading.d.ts +0 -1
- package/esm/core/Typography/Leading/Leading.js +0 -1
- package/esm/core/Typography/Small/Small.d.ts +0 -1
- package/esm/core/Typography/Small/Small.js +0 -1
- package/esm/core/Typography/Subheading/Subheading.d.ts +0 -1
- package/esm/core/Typography/Subheading/Subheading.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/Typography/Title/Title.d.ts +0 -1
- package/esm/core/Typography/Title/Title.js +0 -1
- 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 +2 -1
- package/esm/core/utils/components/Icon.d.ts +0 -1
- package/esm/core/utils/components/Icon.js +2 -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 +2 -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 +1 -2
- package/esm/core/utils/components/Popover.js +0 -1
- package/esm/core/utils/components/Resizer.js +5 -0
- 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 +13 -0
- package/esm/core/utils/functions/index.d.ts +0 -1
- package/esm/core/utils/functions/index.js +0 -1
- package/esm/core/utils/hooks/useStyles.d.ts +10 -0
- package/esm/core/utils/hooks/useStyles.js +66 -0
- package/esm/core/utils/hooks/useTheme.d.ts +2 -2
- package/esm/core/utils/hooks/useTheme.js +4 -2
- package/esm/styles.js +348 -0
- package/package.json +8 -6
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1415](https://github.com/iTwin/iTwinUI/pull/1415): The styling strategy has changed so there will now be a single stylesheet included at runtime, instead of separate css imports inside every component. All the styles are also wrapped in a cascade layer named `itwinui`. This behavior can be customized using the `includeCss` prop in `ThemeProvider`.
|
|
8
|
+
|
|
9
|
+
**Important note**: The dependencies on `@itwin/itwinui-css` and `@itwin/itwinui-variables` have been removed, so these packages _don't_ need to be installed if you are only using components from `@itwin/itwinui-react`.
|
|
10
|
+
- [#1422](https://github.com/iTwin/iTwinUI/pull/1422): Changed `all: revert` to `all: revert-layer` so that only styles from the v1 layer are reverted, thus avoiding issues with inadvertently removing browser default styles.
|
|
11
|
+
- [#1443](https://github.com/iTwin/iTwinUI/pull/1443): `DropdownButton` now supports `styleType='high-visibility'` to make it blue. This should be used sparingly, as a default or borderless dropdown button is the better choice in most cases.
|
|
12
|
+
- [#1454](https://github.com/iTwin/iTwinUI/pull/1454): Added `disabled` prop to `ExpandableBlock` to disable intersction with it.
|
|
13
|
+
- [#1441](https://github.com/iTwin/iTwinUI/pull/1441): Added `placement` prop to `Dialog` to allow placing it at one of the corners.
|
|
14
|
+
|
|
15
|
+
## 2.11.11
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#1448](https://github.com/iTwin/iTwinUI/pull/1448): Fix resizable Dialog bug where Dialog jumped around the screen when resized on right side.
|
|
20
|
+
|
|
3
21
|
## 2.11.10
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
6
24
|
|
|
7
|
-
- [#
|
|
25
|
+
- [#1424](https://github.com/iTwin/iTwinUI/pull/1424), [#1427](https://github.com/iTwin/iTwinUI/pull/1427): Fixed a few different resizing issues in Dialog.
|
|
8
26
|
- Updated dependencies:
|
|
9
27
|
- @itwin/itwinui-css@1.11.5
|
|
10
28
|
|
package/cjs/core/Alert/Alert.js
CHANGED
|
@@ -33,7 +33,6 @@ exports.Alert = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const classnames_1 = __importDefault(require("classnames"));
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
|
-
require("@itwin/itwinui-css/css/alert.css");
|
|
37
36
|
const index_js_1 = require("../utils/index.js");
|
|
38
37
|
/**
|
|
39
38
|
* A small box to quickly grab user attention and communicate a brief message
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { CommonProps } from '../utils/index.js';
|
|
3
|
-
import '@itwin/itwinui-css/css/avatar.css';
|
|
4
3
|
export declare type AvatarStatus = 'online' | 'busy' | 'away' | 'offline';
|
|
5
4
|
/**
|
|
6
5
|
* @deprecated Since v2, this has been renamed to `AvatarStatus` (Use with `Avatar`)
|
|
@@ -34,7 +34,6 @@ exports.UserIcon = exports.Avatar = exports.defaultStatusTitles = 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/avatar.css");
|
|
38
37
|
exports.defaultStatusTitles = {
|
|
39
38
|
away: 'Away',
|
|
40
39
|
busy: 'Busy',
|
|
@@ -34,7 +34,6 @@ exports.UserIconGroup = exports.AvatarGroup = 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/avatar.css");
|
|
38
37
|
/**
|
|
39
38
|
* Group Avatars together.
|
|
40
39
|
*
|
|
@@ -34,7 +34,6 @@ exports.Backdrop = 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/backdrop.css");
|
|
38
37
|
exports.Backdrop = React.forwardRef((props, ref) => {
|
|
39
38
|
const { isVisible = true, className, ...rest } = props;
|
|
40
39
|
(0, index_js_1.useTheme)();
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { SoftBackgrounds } from '../utils/index.js';
|
|
3
3
|
import type { CommonProps } from '../utils/index.js';
|
|
4
4
|
import type { AnyString } from '../utils/index.js';
|
|
5
|
-
import '@itwin/itwinui-css/css/badge.css';
|
|
6
5
|
export declare type BadgeProps = {
|
|
7
6
|
/**
|
|
8
7
|
* Background color of the badge.
|
package/cjs/core/Badge/Badge.js
CHANGED
|
@@ -34,7 +34,6 @@ exports.Badge = 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/badge.css");
|
|
38
37
|
/**
|
|
39
38
|
* Helper function that returns one of the preset badge color values.
|
|
40
39
|
*/
|
|
@@ -34,7 +34,6 @@ exports.Breadcrumbs = 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/breadcrumbs.css");
|
|
38
37
|
/**
|
|
39
38
|
* A breadcrumb trail is used as a navigational aid to help users keep track
|
|
40
39
|
* of their place in the application. It is often placed before a page's main content.
|
|
@@ -34,7 +34,6 @@ exports.ButtonGroup = 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/button.css");
|
|
38
37
|
/**
|
|
39
38
|
* Group buttons together for common actions.
|
|
40
39
|
* Handles responsive overflow when the `overflowButton` prop is specified.
|
|
@@ -34,7 +34,6 @@ exports.Button = 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/button.css");
|
|
38
37
|
/**
|
|
39
38
|
* Generic button component
|
|
40
39
|
* @example
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ButtonProps } from '../Button/index.js';
|
|
3
3
|
import type { DropdownMenuProps } from '../../DropdownMenu/index.js';
|
|
4
|
-
import '@itwin/itwinui-css/css/button.css';
|
|
5
4
|
export declare type DropdownButtonProps = {
|
|
6
5
|
/**
|
|
7
6
|
* Items in the dropdown menu.
|
|
@@ -14,7 +13,7 @@ export declare type DropdownButtonProps = {
|
|
|
14
13
|
* Use 'borderless' to hide outline.
|
|
15
14
|
* @default 'default'
|
|
16
15
|
*/
|
|
17
|
-
styleType?: 'default' | 'borderless';
|
|
16
|
+
styleType?: 'default' | 'borderless' | 'high-visibility';
|
|
18
17
|
/**
|
|
19
18
|
* Props for the `DropdownMenu` which extends `PopoverProps`.
|
|
20
19
|
*/
|
|
@@ -41,7 +40,7 @@ export declare const DropdownButton: React.ForwardRefExoticComponent<{
|
|
|
41
40
|
* Use 'borderless' to hide outline.
|
|
42
41
|
* @default 'default'
|
|
43
42
|
*/
|
|
44
|
-
styleType?: "default" | "borderless" | undefined;
|
|
43
|
+
styleType?: "default" | "high-visibility" | "borderless" | undefined;
|
|
45
44
|
/**
|
|
46
45
|
* Props for the `DropdownMenu` which extends `PopoverProps`.
|
|
47
46
|
*/
|
|
@@ -36,7 +36,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
36
36
|
const index_js_1 = require("../Button/index.js");
|
|
37
37
|
const index_js_2 = require("../../DropdownMenu/index.js");
|
|
38
38
|
const index_js_3 = require("../../utils/index.js");
|
|
39
|
-
require("@itwin/itwinui-css/css/button.css");
|
|
40
39
|
/**
|
|
41
40
|
* Button that opens a DropdownMenu.
|
|
42
41
|
* @example
|
|
@@ -67,6 +66,6 @@ exports.DropdownButton = React.forwardRef((props, ref) => {
|
|
|
67
66
|
setIsMenuOpen(false);
|
|
68
67
|
(_a = dropdownMenuProps === null || dropdownMenuProps === void 0 ? void 0 : dropdownMenuProps.onHide) === null || _a === void 0 ? void 0 : _a.call(dropdownMenuProps, i);
|
|
69
68
|
}, style: { minWidth: menuWidth, ...dropdownMenuProps === null || dropdownMenuProps === void 0 ? void 0 : dropdownMenuProps.style } },
|
|
70
|
-
React.createElement(index_js_1.Button, { className: (0, classnames_1.default)('iui-button-dropdown', className), size: size, styleType: styleType, endIcon: isMenuOpen ? (React.createElement(index_js_3.SvgCaretUpSmall, { "aria-hidden": true })) : (React.createElement(index_js_3.SvgCaretDownSmall, { "aria-hidden": true })), ref: refs,
|
|
69
|
+
React.createElement(index_js_1.Button, { className: (0, classnames_1.default)('iui-button-dropdown', className), size: size, styleType: styleType, endIcon: isMenuOpen ? (React.createElement(index_js_3.SvgCaretUpSmall, { "aria-hidden": true })) : (React.createElement(index_js_3.SvgCaretDownSmall, { "aria-hidden": true })), ref: refs, ...rest }, children)));
|
|
71
70
|
});
|
|
72
71
|
exports.default = exports.DropdownButton;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ButtonProps } from '../Button/index.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.
|
|
@@ -34,8 +34,6 @@ exports.IconButton = 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/button.css");
|
|
38
|
-
require("@itwin/itwinui-css/css/tooltip.css");
|
|
39
37
|
/**
|
|
40
38
|
* Icon button
|
|
41
39
|
* @example
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import type { ButtonProps } from '../Button/index.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.
|
|
@@ -37,7 +37,6 @@ const index_js_1 = require("../Button/index.js");
|
|
|
37
37
|
const index_js_2 = require("../IconButton/index.js");
|
|
38
38
|
const index_js_3 = require("../../DropdownMenu/index.js");
|
|
39
39
|
const index_js_4 = require("../../utils/index.js");
|
|
40
|
-
require("@itwin/itwinui-css/css/button.css");
|
|
41
40
|
/**
|
|
42
41
|
* Split button component with a DropdownMenu.
|
|
43
42
|
*
|
|
@@ -34,7 +34,6 @@ exports.Carousel = 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/carousel.css");
|
|
38
37
|
const CarouselContext_js_1 = require("./CarouselContext.js");
|
|
39
38
|
const CarouselSlider_js_1 = require("./CarouselSlider.js");
|
|
40
39
|
const CarouselSlide_js_1 = require("./CarouselSlide.js");
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/carousel.css';
|
|
3
2
|
/**
|
|
4
3
|
* The `CarouselDotsList` component shows a list of `CarouselDot` components which can be used to
|
|
5
4
|
* choose a specific slide. If used as a descendant of `Carousel`, then this component does not need
|
|
@@ -36,7 +36,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
36
36
|
const CarouselContext_js_1 = require("./CarouselContext.js");
|
|
37
37
|
const index_js_1 = require("../utils/index.js");
|
|
38
38
|
const CarouselDot_js_1 = require("./CarouselDot.js");
|
|
39
|
-
require("@itwin/itwinui-css/css/carousel.css");
|
|
40
39
|
/**
|
|
41
40
|
* The `CarouselDotsList` component shows a list of `CarouselDot` components which can be used to
|
|
42
41
|
* choose a specific slide. If used as a descendant of `Carousel`, then this component does not need
|
|
@@ -35,7 +35,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
36
|
const index_js_1 = require("../ProgressIndicators/index.js");
|
|
37
37
|
const index_js_2 = require("../utils/index.js");
|
|
38
|
-
require("@itwin/itwinui-css/css/checkbox.css");
|
|
39
38
|
/**
|
|
40
39
|
* Simple input checkbox
|
|
41
40
|
* @example
|
|
@@ -35,7 +35,6 @@ const React = __importStar(require("react"));
|
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
37
|
const index_js_2 = require("../Slider/index.js");
|
|
38
|
-
require("@itwin/itwinui-css/css/color-picker.css");
|
|
39
38
|
const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
|
|
40
39
|
const getVerticalPercentageOfRectangle = (rect, pointer) => {
|
|
41
40
|
const position = (0, index_js_1.getBoundedValue)(pointer, rect.top, rect.bottom);
|
|
@@ -37,7 +37,6 @@ const index_js_1 = require("../Buttons/index.js");
|
|
|
37
37
|
const index_js_2 = require("../Input/index.js");
|
|
38
38
|
const index_js_3 = require("../utils/index.js");
|
|
39
39
|
const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
|
|
40
|
-
require("@itwin/itwinui-css/css/color-picker.css");
|
|
41
40
|
/**
|
|
42
41
|
* `ColorInputPanel` shows input fields to enter precise color values in the specified format.
|
|
43
42
|
* 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 { CommonProps, ColorType } 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.
|
|
@@ -37,7 +37,6 @@ const index_js_1 = require("../utils/index.js");
|
|
|
37
37
|
const ColorPicker_js_1 = require("./ColorPicker.js");
|
|
38
38
|
const ColorSwatch_js_1 = require("./ColorSwatch.js");
|
|
39
39
|
const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
|
|
40
|
-
require("@itwin/itwinui-css/css/color-picker.css");
|
|
41
40
|
/**
|
|
42
41
|
* `ColorPalette` is used to show a group of `ColorSwatch` components.
|
|
43
42
|
* @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 { CommonProps, ColorType } from '../utils/index.js';
|
|
5
4
|
export declare const getColorValue: (color: ColorType | ColorValue | undefined) => ColorValue;
|
|
@@ -32,7 +32,6 @@ exports.ColorPicker = exports.getColorValue = void 0;
|
|
|
32
32
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
|
-
require("@itwin/itwinui-css/css/color-picker.css");
|
|
36
35
|
const index_js_1 = require("../utils/index.js");
|
|
37
36
|
const classnames_1 = __importDefault(require("classnames"));
|
|
38
37
|
const ColorPickerContext_js_1 = require("./ColorPickerContext.js");
|
|
@@ -33,7 +33,6 @@ exports.ColorSwatch = 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/color-picker.css");
|
|
37
36
|
const index_js_1 = require("../utils/index.js");
|
|
38
37
|
const ColorPicker_js_1 = require("./ColorPicker.js");
|
|
39
38
|
/**
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import type { InputProps } from '../Input/index.js';
|
|
3
3
|
import type { SelectOption } from '../Select/index.js';
|
|
4
4
|
import type { PopoverProps, CommonProps, InputContainerProps } 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;
|
|
@@ -37,7 +37,6 @@ const index_js_1 = require("../Menu/index.js");
|
|
|
37
37
|
const SelectTag_js_1 = __importDefault(require("../Select/SelectTag.js"));
|
|
38
38
|
const index_js_2 = require("../Typography/index.js");
|
|
39
39
|
const index_js_3 = require("../utils/index.js");
|
|
40
|
-
require("tippy.js/animations/shift-away.css");
|
|
41
40
|
const helpers_js_1 = require("./helpers.js");
|
|
42
41
|
const ComboBoxDropdown_js_1 = require("./ComboBoxDropdown.js");
|
|
43
42
|
const ComboBoxEndIcon_js_1 = require("./ComboBoxEndIcon.js");
|
|
@@ -3,5 +3,5 @@ import type { PopoverProps } from '../utils/index.js';
|
|
|
3
3
|
declare type ComboBoxDropdownProps = PopoverProps & {
|
|
4
4
|
children: JSX.Element;
|
|
5
5
|
};
|
|
6
|
-
export declare const ComboBoxDropdown: React.ForwardRefExoticComponent<Pick<ComboBoxDropdownProps, "disabled" | "
|
|
6
|
+
export declare const ComboBoxDropdown: React.ForwardRefExoticComponent<Pick<ComboBoxDropdownProps, "disabled" | "children" | "theme" | "className" | "role" | "offset" | "content" | "plugins" | "placement" | "trigger" | "visible" | "render" | "animateFill" | "appendTo" | "aria" | "delay" | "duration" | "followCursor" | "getReferenceClientRect" | "hideOnClick" | "ignoreAttributes" | "inlinePositioning" | "interactive" | "interactiveBorder" | "interactiveDebounce" | "moveTransition" | "popperOptions" | "showOnCreate" | "sticky" | "touch" | "triggerTarget" | "onAfterUpdate" | "onBeforeUpdate" | "onCreate" | "onDestroy" | "onHidden" | "onHide" | "onMount" | "onShow" | "onShown" | "onTrigger" | "onUntrigger" | "onClickOutside" | "allowHTML" | "animation" | "arrow" | "inertia" | "maxWidth" | "zIndex" | "singleton" | "reference"> & React.RefAttributes<Element>>;
|
|
7
7
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import '@itwin/itwinui-css/css/date-picker.css';
|
|
3
2
|
import type { TimePickerProps } from '../TimePicker/index.js';
|
|
4
3
|
/**
|
|
5
4
|
* Generate localized months and days strings using `Intl.DateTimeFormat` for passed locale to use in DatePicker component.
|
|
@@ -34,7 +34,6 @@ exports.DatePicker = exports.generateLocalizedStrings = 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/date-picker.css");
|
|
38
37
|
const index_js_2 = require("../Buttons/IconButton/index.js");
|
|
39
38
|
const index_js_3 = require("../TimePicker/index.js");
|
|
40
39
|
const isSameDay = (a, b) => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/dialog.css';
|
|
3
2
|
import type { DialogContextProps } from './DialogContext.js';
|
|
4
3
|
export declare type DialogProps = {
|
|
5
4
|
/**
|
|
@@ -29,9 +28,9 @@ export declare type DialogProps = {
|
|
|
29
28
|
* </Dialog.Main>
|
|
30
29
|
* </Dialog>
|
|
31
30
|
*/
|
|
32
|
-
export declare const Dialog: React.ForwardRefExoticComponent<Pick<DialogProps, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "onClose" | "setFocus" | "isOpen" | "isDismissible" | "isDraggable" | "closeOnExternalClick" | "closeOnEsc" | "trapFocus" | "preventDocumentScroll" | "isResizable" | "relativeTo"> & React.RefAttributes<HTMLDivElement>> & {
|
|
31
|
+
export declare const Dialog: React.ForwardRefExoticComponent<Pick<DialogProps, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "onClose" | "placement" | "setFocus" | "isOpen" | "isDismissible" | "isDraggable" | "closeOnExternalClick" | "closeOnEsc" | "trapFocus" | "preventDocumentScroll" | "isResizable" | "relativeTo"> & React.RefAttributes<HTMLDivElement>> & {
|
|
33
32
|
Backdrop: React.ForwardRefExoticComponent<Pick<import("./DialogBackdrop.js").DialogBackdropProps, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "onClose" | "isVisible" | "isDismissible" | "closeOnExternalClick" | "relativeTo"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
-
Main: React.ForwardRefExoticComponent<Pick<import("./DialogMain.js").DialogMainProps, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "onClose" | "styleType" | "setFocus" | "isOpen" | "isDismissible" | "isDraggable" | "closeOnEsc" | "trapFocus" | "preventDocumentScroll" | "isResizable" | "relativeTo"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
Main: React.ForwardRefExoticComponent<Pick<import("./DialogMain.js").DialogMainProps, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "onClose" | "placement" | "styleType" | "setFocus" | "isOpen" | "isDismissible" | "isDraggable" | "closeOnEsc" | "trapFocus" | "preventDocumentScroll" | "isResizable" | "relativeTo"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
34
|
TitleBar: React.ForwardRefExoticComponent<Pick<import("./DialogTitleBar.js").DialogTitleBarProps, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "onClose" | "isDismissible" | "isDraggable" | "titleText"> & React.RefAttributes<HTMLDivElement>> & {
|
|
36
35
|
Title: React.ForwardRefExoticComponent<Pick<import("./DialogTitleBarTitle.js").DialogTitleBarTitleProps, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
|
|
37
36
|
};
|
|
@@ -33,7 +33,6 @@ exports.Dialog = 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/dialog.css");
|
|
37
36
|
const DialogTitleBar_js_1 = require("./DialogTitleBar.js");
|
|
38
37
|
const DialogContent_js_1 = require("./DialogContent.js");
|
|
39
38
|
const DialogBackdrop_js_1 = require("./DialogBackdrop.js");
|
|
@@ -64,7 +63,7 @@ const index_js_1 = require("../utils/index.js");
|
|
|
64
63
|
* </Dialog>
|
|
65
64
|
*/
|
|
66
65
|
exports.Dialog = Object.assign(React.forwardRef((props, ref) => {
|
|
67
|
-
const { children, trapFocus = false, setFocus = false, preventDocumentScroll = false, isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = false, onClose, isDraggable = false, isResizable = false, relativeTo = 'viewport', className, style, ...rest } = props;
|
|
66
|
+
const { children, trapFocus = false, setFocus = false, preventDocumentScroll = false, isOpen = false, isDismissible = true, closeOnEsc = true, closeOnExternalClick = false, onClose, isDraggable = false, isResizable = false, relativeTo = 'viewport', placement, className, style, ...rest } = props;
|
|
68
67
|
const dialogRootRef = React.useRef(null);
|
|
69
68
|
const refs = (0, index_js_1.useMergedRefs)(ref, dialogRootRef);
|
|
70
69
|
return (React.createElement(DialogContext_js_1.DialogContext.Provider, { value: {
|
|
@@ -80,6 +79,7 @@ exports.Dialog = Object.assign(React.forwardRef((props, ref) => {
|
|
|
80
79
|
isResizable,
|
|
81
80
|
relativeTo,
|
|
82
81
|
dialogRootRef,
|
|
82
|
+
placement,
|
|
83
83
|
} },
|
|
84
84
|
React.createElement("div", { className: (0, classnames_1.default)('iui-dialog-wrapper', className), "data-iui-relative": relativeTo === 'container', ref: refs, style: {
|
|
85
85
|
...style,
|
|
@@ -34,7 +34,6 @@ exports.DialogButtonBar = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
38
37
|
/**
|
|
39
38
|
* Container for Buttons in `Dialog`. Recommended to be used as a child of `Dialog`.
|
|
40
39
|
* @example
|
|
@@ -34,7 +34,6 @@ exports.DialogContent = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
38
37
|
/**
|
|
39
38
|
* Container for content in `Dialog`. Recommended to be used as a child of `Dialog`.
|
|
40
39
|
* @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;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/dialog.css';
|
|
3
2
|
import type { DialogContextProps } from './DialogContext.js';
|
|
4
3
|
export declare type DialogMainProps = {
|
|
5
4
|
/**
|
|
@@ -32,5 +31,5 @@ export declare type DialogMainProps = {
|
|
|
32
31
|
* </Dialog.ButtonBar>
|
|
33
32
|
* </Dialog.Main>
|
|
34
33
|
*/
|
|
35
|
-
export declare const DialogMain: React.ForwardRefExoticComponent<Pick<DialogMainProps, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "onClose" | "styleType" | "setFocus" | "isOpen" | "isDismissible" | "isDraggable" | "closeOnEsc" | "trapFocus" | "preventDocumentScroll" | "isResizable" | "relativeTo"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export declare const DialogMain: React.ForwardRefExoticComponent<Pick<DialogMainProps, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "onClose" | "placement" | "styleType" | "setFocus" | "isOpen" | "isDismissible" | "isDraggable" | "closeOnEsc" | "trapFocus" | "preventDocumentScroll" | "isResizable" | "relativeTo"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
35
|
export default DialogMain;
|
|
@@ -34,7 +34,6 @@ exports.DialogMain = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
38
37
|
const DialogContext_js_1 = require("./DialogContext.js");
|
|
39
38
|
const react_transition_group_1 = require("react-transition-group");
|
|
40
39
|
const DialogDragContext_js_1 = require("./DialogDragContext.js");
|
|
@@ -61,7 +60,7 @@ const useDragAndDrop_js_1 = __importDefault(require("../utils/hooks/useDragAndDr
|
|
|
61
60
|
*/
|
|
62
61
|
exports.DialogMain = React.forwardRef((props, ref) => {
|
|
63
62
|
const dialogContext = (0, DialogContext_js_1.useDialogContext)();
|
|
64
|
-
const { className, children, styleType = 'default', isOpen = dialogContext.isOpen, isDismissible = dialogContext.isDismissible, onClose = dialogContext.onClose, closeOnEsc = dialogContext.closeOnEsc, trapFocus = dialogContext.trapFocus, setFocus = dialogContext.setFocus, preventDocumentScroll = dialogContext.preventDocumentScroll, onKeyDown, isDraggable = dialogContext.isDraggable, isResizable = dialogContext.isResizable, style: propStyle, ...rest } = props;
|
|
63
|
+
const { className, children, styleType = 'default', isOpen = dialogContext.isOpen, isDismissible = dialogContext.isDismissible, onClose = dialogContext.onClose, closeOnEsc = dialogContext.closeOnEsc, trapFocus = dialogContext.trapFocus, setFocus = dialogContext.setFocus, preventDocumentScroll = dialogContext.preventDocumentScroll, onKeyDown, isDraggable = dialogContext.isDraggable, isResizable = dialogContext.isResizable, style: propStyle, placement = dialogContext.placement, ...rest } = props;
|
|
65
64
|
(0, index_js_1.useTheme)();
|
|
66
65
|
const [style, setStyle] = React.useState();
|
|
67
66
|
const dialogRef = React.useRef(null);
|
|
@@ -143,7 +142,7 @@ exports.DialogMain = React.forwardRef((props, ref) => {
|
|
|
143
142
|
'iui-dialog-full-page': styleType === 'fullPage',
|
|
144
143
|
'iui-dialog-visible': isOpen,
|
|
145
144
|
'iui-dialog-draggable': isDraggable,
|
|
146
|
-
}, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, style: {
|
|
145
|
+
}, className), role: 'dialog', ref: refs, onKeyDown: handleKeyDown, tabIndex: -1, "data-iui-placement": placement, style: {
|
|
147
146
|
transform,
|
|
148
147
|
...style,
|
|
149
148
|
...propStyle,
|
|
@@ -35,7 +35,6 @@ const React = __importStar(require("react"));
|
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
37
|
const index_js_2 = require("../Buttons/index.js");
|
|
38
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
39
38
|
const DialogContext_js_1 = require("./DialogContext.js");
|
|
40
39
|
const DialogTitleBarTitle_js_1 = require("./DialogTitleBarTitle.js");
|
|
41
40
|
const DialogDragContext_js_1 = require("./DialogDragContext.js");
|
|
@@ -34,7 +34,6 @@ exports.DialogTitleBarTitle = void 0;
|
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
36
|
const index_js_1 = require("../utils/index.js");
|
|
37
|
-
require("@itwin/itwinui-css/css/dialog.css");
|
|
38
37
|
/**
|
|
39
38
|
* Dialog title bar. Recommended to be used as a child of `Dialog`.
|
|
40
39
|
* @example
|