@itwin/itwinui-react 2.11.5 → 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 +35 -0
- package/README.md +30 -24
- package/cjs/core/Alert/Alert.d.ts +4 -5
- package/cjs/core/Alert/Alert.js +8 -11
- package/cjs/core/Alert/index.d.ts +0 -1
- package/cjs/core/Avatar/Avatar.d.ts +6 -15
- package/cjs/core/Avatar/Avatar.js +6 -9
- package/cjs/core/Avatar/index.d.ts +0 -1
- package/cjs/core/AvatarGroup/AvatarGroup.d.ts +5 -10
- package/cjs/core/AvatarGroup/AvatarGroup.js +14 -18
- package/cjs/core/AvatarGroup/index.d.ts +0 -1
- package/cjs/core/Backdrop/Backdrop.d.ts +3 -4
- package/cjs/core/Backdrop/Backdrop.js +1 -3
- package/cjs/core/Backdrop/index.d.ts +0 -1
- package/cjs/core/Badge/Badge.d.ts +4 -7
- package/cjs/core/Badge/Badge.js +3 -6
- package/cjs/core/Badge/index.d.ts +0 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +4 -78
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +5 -7
- package/cjs/core/Breadcrumbs/index.d.ts +0 -1
- package/cjs/core/ButtonGroup/ButtonGroup.d.ts +4 -4
- package/cjs/core/ButtonGroup/ButtonGroup.js +15 -14
- package/cjs/core/ButtonGroup/index.d.ts +0 -1
- package/cjs/core/Buttons/Button/Button.d.ts +4 -11
- package/cjs/core/Buttons/Button/Button.js +4 -6
- package/cjs/core/Buttons/Button/index.d.ts +0 -1
- package/cjs/core/Buttons/DropdownButton/DropdownButton.d.ts +5 -22
- package/cjs/core/Buttons/DropdownButton/DropdownButton.js +0 -2
- package/cjs/core/Buttons/DropdownButton/index.d.ts +0 -1
- package/cjs/core/Buttons/IconButton/IconButton.d.ts +2 -5
- package/cjs/core/Buttons/IconButton/IconButton.js +4 -7
- package/cjs/core/Buttons/IconButton/index.d.ts +0 -1
- package/cjs/core/Buttons/IdeasButton/IdeasButton.d.ts +3 -3
- package/cjs/core/Buttons/IdeasButton/IdeasButton.js +0 -1
- package/cjs/core/Buttons/IdeasButton/index.d.ts +0 -1
- package/cjs/core/Buttons/SplitButton/SplitButton.d.ts +2 -4
- package/cjs/core/Buttons/SplitButton/SplitButton.js +1 -3
- package/cjs/core/Buttons/SplitButton/index.d.ts +0 -1
- package/cjs/core/Buttons/index.d.ts +0 -5
- package/cjs/core/Carousel/Carousel.d.ts +24 -27
- package/cjs/core/Carousel/Carousel.js +22 -23
- package/cjs/core/Carousel/CarouselDot.d.ts +11 -9
- package/cjs/core/Carousel/CarouselDot.js +2 -1
- package/cjs/core/Carousel/CarouselDotsList.d.ts +11 -10
- package/cjs/core/Carousel/CarouselDotsList.js +1 -3
- package/cjs/core/Carousel/CarouselNavigation.d.ts +14 -5
- package/cjs/core/Carousel/CarouselNavigation.js +13 -9
- package/cjs/core/Carousel/CarouselSlide.d.ts +10 -8
- package/cjs/core/Carousel/CarouselSlide.js +1 -1
- package/cjs/core/Carousel/CarouselSlider.d.ts +2 -2
- package/cjs/core/Carousel/CarouselSlider.js +1 -1
- package/cjs/core/Carousel/index.d.ts +0 -1
- package/cjs/core/Checkbox/Checkbox.d.ts +4 -32
- package/cjs/core/Checkbox/Checkbox.js +3 -5
- package/cjs/core/Checkbox/index.d.ts +0 -1
- package/cjs/core/ColorPicker/ColorBuilder.d.ts +2 -5
- package/cjs/core/ColorPicker/ColorBuilder.js +3 -5
- package/cjs/core/ColorPicker/ColorInputPanel.d.ts +4 -19
- package/cjs/core/ColorPicker/ColorInputPanel.js +4 -6
- package/cjs/core/ColorPicker/ColorPalette.d.ts +3 -17
- package/cjs/core/ColorPicker/ColorPalette.js +3 -5
- package/cjs/core/ColorPicker/ColorPicker.d.ts +4 -5
- package/cjs/core/ColorPicker/ColorPicker.js +3 -6
- package/cjs/core/ColorPicker/ColorSwatch.d.ts +4 -6
- package/cjs/core/ColorPicker/ColorSwatch.js +1 -3
- package/cjs/core/ColorPicker/index.d.ts +0 -5
- package/cjs/core/ComboBox/ComboBox.d.ts +4 -5
- package/cjs/core/ComboBox/ComboBox.js +5 -8
- package/cjs/core/ComboBox/ComboBoxDropdown.d.ts +3 -3
- package/cjs/core/ComboBox/ComboBoxEndIcon.d.ts +7 -5
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +7 -6
- package/cjs/core/ComboBox/ComboBoxInputContainer.d.ts +3 -7
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +4 -5
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +5 -2
- package/cjs/core/ComboBox/ComboBoxMenu.js +2 -2
- package/cjs/core/ComboBox/ComboBoxMenuItem.d.ts +6 -19
- package/cjs/core/ComboBox/ComboBoxMenuItem.js +8 -22
- package/cjs/core/ComboBox/ComboBoxMultipleContainer.d.ts +6 -3
- package/cjs/core/ComboBox/index.d.ts +0 -1
- package/cjs/core/DatePicker/DatePicker.d.ts +4 -5
- package/cjs/core/DatePicker/DatePicker.js +9 -12
- package/cjs/core/DatePicker/index.d.ts +0 -1
- package/cjs/core/Dialog/Dialog.d.ts +13 -10
- package/cjs/core/Dialog/Dialog.js +22 -23
- package/cjs/core/Dialog/DialogBackdrop.d.ts +4 -4
- package/cjs/core/Dialog/DialogBackdrop.js +1 -3
- package/cjs/core/Dialog/DialogButtonBar.d.ts +1 -9
- package/cjs/core/Dialog/DialogButtonBar.js +1 -34
- package/cjs/core/Dialog/DialogContent.d.ts +1 -9
- package/cjs/core/Dialog/DialogContent.js +1 -34
- package/cjs/core/Dialog/DialogContext.d.ts +4 -0
- package/cjs/core/Dialog/DialogMain.d.ts +3 -3
- package/cjs/core/Dialog/DialogMain.js +3 -5
- package/cjs/core/Dialog/DialogTitleBar.d.ts +5 -5
- package/cjs/core/Dialog/DialogTitleBar.js +1 -3
- package/cjs/core/Dialog/DialogTitleBarTitle.d.ts +1 -9
- package/cjs/core/Dialog/DialogTitleBarTitle.js +1 -34
- package/cjs/core/Dialog/index.d.ts +0 -5
- package/cjs/core/DropdownMenu/DropdownMenu.js +0 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +9 -5
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +14 -14
- package/cjs/core/ExpandableBlock/index.d.ts +0 -1
- package/cjs/core/Fieldset/Fieldset.d.ts +4 -4
- package/cjs/core/Fieldset/Fieldset.js +3 -6
- package/cjs/core/Fieldset/index.d.ts +0 -1
- package/cjs/core/FileUpload/FileEmptyCard.d.ts +4 -11
- package/cjs/core/FileUpload/FileEmptyCard.js +16 -13
- package/cjs/core/FileUpload/FileUpload.d.ts +4 -26
- package/cjs/core/FileUpload/FileUpload.js +3 -5
- package/cjs/core/FileUpload/FileUploadCard.d.ts +11 -52
- package/cjs/core/FileUpload/FileUploadCard.js +43 -36
- package/cjs/core/FileUpload/FileUploadTemplate.d.ts +4 -4
- package/cjs/core/FileUpload/FileUploadTemplate.js +5 -8
- package/cjs/core/FileUpload/index.d.ts +0 -4
- package/cjs/core/Footer/Footer.d.ts +6 -11
- package/cjs/core/Footer/Footer.js +1 -3
- package/cjs/core/Footer/FooterItem.d.ts +1 -4
- package/cjs/core/Footer/FooterItem.js +1 -35
- package/cjs/core/Footer/FooterList.d.ts +1 -4
- package/cjs/core/Footer/FooterList.js +1 -35
- package/cjs/core/Footer/FooterSeparator.d.ts +1 -4
- package/cjs/core/Footer/FooterSeparator.js +3 -35
- package/cjs/core/Footer/index.d.ts +1 -1
- package/cjs/core/Header/Header.d.ts +5 -6
- package/cjs/core/Header/Header.js +7 -10
- package/cjs/core/Header/HeaderBasicButton.d.ts +2 -4
- package/cjs/core/Header/HeaderBasicButton.js +4 -11
- package/cjs/core/Header/HeaderBreadcrumbs.d.ts +3 -3
- package/cjs/core/Header/HeaderBreadcrumbs.js +10 -9
- package/cjs/core/Header/HeaderButton.d.ts +5 -7
- package/cjs/core/Header/HeaderButton.js +8 -25
- package/cjs/core/Header/HeaderDropdownButton.d.ts +2 -4
- package/cjs/core/Header/HeaderDropdownButton.js +0 -1
- package/cjs/core/Header/HeaderLogo.d.ts +1 -3
- package/cjs/core/Header/HeaderLogo.js +5 -13
- package/cjs/core/Header/HeaderSplitButton.d.ts +2 -4
- package/cjs/core/Header/HeaderSplitButton.js +3 -4
- package/cjs/core/Header/index.d.ts +0 -4
- package/cjs/core/InformationPanel/InformationPanel.d.ts +4 -25
- package/cjs/core/InformationPanel/InformationPanel.js +3 -5
- package/cjs/core/InformationPanel/InformationPanelBody.d.ts +1 -10
- package/cjs/core/InformationPanel/InformationPanelBody.js +1 -35
- package/cjs/core/InformationPanel/InformationPanelContent.d.ts +4 -5
- package/cjs/core/InformationPanel/InformationPanelContent.js +3 -6
- package/cjs/core/InformationPanel/InformationPanelHeader.d.ts +4 -5
- package/cjs/core/InformationPanel/InformationPanelHeader.js +5 -8
- package/cjs/core/InformationPanel/InformationPanelWrapper.d.ts +1 -7
- package/cjs/core/InformationPanel/InformationPanelWrapper.js +1 -35
- package/cjs/core/InformationPanel/index.d.ts +0 -5
- package/cjs/core/Input/Input.d.ts +3 -14
- package/cjs/core/Input/Input.js +1 -3
- package/cjs/core/Input/index.d.ts +0 -1
- package/cjs/core/InputGroup/InputGroup.d.ts +4 -5
- package/cjs/core/InputGroup/InputGroup.js +5 -8
- package/cjs/core/InputGroup/index.d.ts +0 -1
- package/cjs/core/Label/Label.d.ts +3 -10
- package/cjs/core/Label/Label.js +5 -8
- package/cjs/core/Label/index.d.ts +0 -1
- package/cjs/core/LabeledInput/LabeledInput.d.ts +2 -47
- package/cjs/core/LabeledInput/LabeledInput.js +0 -2
- package/cjs/core/LabeledInput/index.d.ts +0 -1
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +1 -2
- package/cjs/core/LabeledSelect/LabeledSelect.js +0 -2
- package/cjs/core/LabeledSelect/index.d.ts +0 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +4 -27
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +0 -2
- package/cjs/core/LabeledTextarea/index.d.ts +0 -1
- package/cjs/core/List/List.d.ts +1 -6
- package/cjs/core/List/List.js +2 -34
- package/cjs/core/List/ListItem.d.ts +6 -14
- package/cjs/core/List/ListItem.js +9 -16
- package/cjs/core/List/index.d.ts +0 -2
- package/cjs/core/Menu/Menu.d.ts +4 -28
- package/cjs/core/Menu/Menu.js +2 -4
- package/cjs/core/Menu/MenuDivider.d.ts +1 -5
- package/cjs/core/Menu/MenuDivider.js +3 -35
- package/cjs/core/Menu/MenuExtraContent.d.ts +1 -7
- package/cjs/core/Menu/MenuExtraContent.js +3 -35
- package/cjs/core/Menu/MenuItem.d.ts +14 -61
- package/cjs/core/Menu/MenuItem.js +12 -24
- package/cjs/core/Menu/MenuItemSkeleton.d.ts +4 -6
- package/cjs/core/Menu/MenuItemSkeleton.js +8 -11
- package/cjs/core/Menu/index.d.ts +0 -5
- package/cjs/core/Modal/Modal.d.ts +5 -6
- package/cjs/core/Modal/Modal.js +3 -6
- package/cjs/core/Modal/ModalButtonBar.d.ts +1 -9
- package/cjs/core/Modal/ModalButtonBar.js +1 -26
- package/cjs/core/Modal/ModalContent.d.ts +1 -9
- package/cjs/core/Modal/ModalContent.js +1 -26
- package/cjs/core/Modal/index.d.ts +0 -3
- package/cjs/core/NonIdealState/NonIdealState.d.ts +4 -4
- package/cjs/core/NonIdealState/NonIdealState.js +7 -10
- package/cjs/core/NonIdealState/index.d.ts +1 -2
- package/cjs/core/NotificationMarker/NotificationMarker.d.ts +4 -4
- package/cjs/core/NotificationMarker/NotificationMarker.js +1 -3
- package/cjs/core/NotificationMarker/index.d.ts +0 -1
- package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +4 -5
- package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +8 -11
- package/cjs/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -1
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +4 -5
- package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +10 -13
- package/cjs/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -1
- package/cjs/core/ProgressIndicators/index.d.ts +0 -2
- package/cjs/core/Radio/Radio.d.ts +4 -18
- package/cjs/core/Radio/Radio.js +3 -5
- package/cjs/core/Radio/index.d.ts +0 -1
- package/cjs/core/RadioTiles/RadioTile.d.ts +4 -22
- package/cjs/core/RadioTiles/RadioTile.js +6 -11
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +5 -5
- package/cjs/core/RadioTiles/RadioTileGroup.js +4 -7
- package/cjs/core/RadioTiles/index.d.ts +0 -2
- package/cjs/core/SearchBox/SearchBox.d.ts +4 -17
- package/cjs/core/SearchBox/SearchBox.js +1 -3
- package/cjs/core/SearchBox/index.d.ts +0 -1
- package/cjs/core/Select/Select.d.ts +6 -2
- package/cjs/core/Select/Select.js +12 -13
- package/cjs/core/Select/SelectTag.d.ts +4 -6
- package/cjs/core/Select/SelectTag.js +4 -7
- package/cjs/core/Select/SelectTagContainer.d.ts +4 -8
- package/cjs/core/Select/SelectTagContainer.js +1 -2
- package/cjs/core/Select/index.d.ts +1 -1
- package/cjs/core/SideNavigation/SideNavigation.d.ts +4 -5
- package/cjs/core/SideNavigation/SideNavigation.js +7 -10
- package/cjs/core/SideNavigation/SidenavButton.d.ts +3 -5
- package/cjs/core/SideNavigation/SidenavButton.js +2 -7
- package/cjs/core/SideNavigation/SidenavSubmenu.d.ts +2 -15
- package/cjs/core/SideNavigation/SidenavSubmenu.js +2 -4
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.d.ts +4 -9
- package/cjs/core/SideNavigation/SidenavSubmenuHeader.js +5 -8
- package/cjs/core/SideNavigation/index.d.ts +0 -4
- package/cjs/core/SkipToContentLink/SkipToContentLink.d.ts +4 -14
- package/cjs/core/SkipToContentLink/SkipToContentLink.js +1 -3
- package/cjs/core/SkipToContentLink/index.d.ts +0 -1
- package/cjs/core/Slider/Slider.d.ts +4 -100
- package/cjs/core/Slider/Slider.js +6 -8
- package/cjs/core/Slider/Thumb.d.ts +3 -2
- package/cjs/core/Slider/Thumb.js +2 -1
- package/cjs/core/Slider/Track.js +2 -1
- package/cjs/core/Slider/index.d.ts +0 -1
- package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/cjs/core/StatusMessage/StatusMessage.js +3 -18
- package/cjs/core/StatusMessage/index.d.ts +0 -1
- package/cjs/core/Stepper/Stepper.d.ts +2 -3
- package/cjs/core/Stepper/Stepper.js +3 -5
- package/cjs/core/Stepper/StepperStep.d.ts +3 -4
- package/cjs/core/Stepper/StepperStep.js +8 -8
- package/cjs/core/Stepper/Wizard.js +3 -1
- package/cjs/core/Stepper/WorkflowDiagram.d.ts +3 -4
- package/cjs/core/Stepper/WorkflowDiagram.js +5 -5
- package/cjs/core/Stepper/WorkflowDiagramStep.d.ts +2 -2
- package/cjs/core/Stepper/WorkflowDiagramStep.js +3 -2
- package/cjs/core/Stepper/index.d.ts +2 -3
- package/cjs/core/Surface/Surface.d.ts +5 -18
- package/cjs/core/Surface/Surface.js +7 -7
- package/cjs/core/Surface/index.d.ts +0 -1
- package/cjs/core/Table/Table.d.ts +0 -1
- package/cjs/core/Table/Table.js +19 -20
- package/cjs/core/Table/TableCell.js +3 -2
- package/cjs/core/Table/TablePaginator.d.ts +0 -1
- package/cjs/core/Table/TablePaginator.js +9 -10
- 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/columns/actionColumn.js +1 -1
- package/cjs/core/Table/columns/expanderColumn.d.ts +1 -1
- package/cjs/core/Table/columns/expanderColumn.js +1 -1
- package/cjs/core/Table/filters/BaseFilter.d.ts +0 -1
- package/cjs/core/Table/filters/BaseFilter.js +2 -3
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +3 -3
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +1 -2
- package/cjs/core/Table/filters/FilterButtonBar.d.ts +0 -1
- package/cjs/core/Table/filters/FilterButtonBar.js +2 -3
- package/cjs/core/Table/filters/FilterToggle.d.ts +2 -3
- package/cjs/core/Table/filters/FilterToggle.js +1 -2
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -2
- package/cjs/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +1 -2
- package/cjs/core/Table/hooks/useColumnDragAndDrop.js +8 -4
- package/cjs/core/Tabs/Tab.d.ts +10 -4
- package/cjs/core/Tabs/Tab.js +7 -14
- package/cjs/core/Tabs/Tabs.d.ts +2 -3
- package/cjs/core/Tabs/Tabs.js +10 -13
- package/cjs/core/Tabs/index.d.ts +0 -2
- package/cjs/core/Tag/Tag.d.ts +4 -5
- package/cjs/core/Tag/Tag.js +5 -8
- package/cjs/core/Tag/TagContainer.d.ts +4 -5
- package/cjs/core/Tag/TagContainer.js +4 -7
- package/cjs/core/Tag/index.d.ts +0 -2
- package/cjs/core/Textarea/Textarea.d.ts +3 -10
- package/cjs/core/Textarea/Textarea.js +1 -3
- package/cjs/core/Textarea/index.d.ts +0 -1
- package/cjs/core/ThemeProvider/ThemeContext.d.ts +7 -0
- package/cjs/core/{Typography/Small/Small.js → ThemeProvider/ThemeContext.js} +2 -18
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +11 -14
- package/cjs/core/ThemeProvider/ThemeProvider.js +6 -18
- package/cjs/core/ThemeProvider/index.d.ts +1 -1
- package/cjs/core/Tile/Tile.d.ts +6 -8
- package/cjs/core/Tile/Tile.js +18 -23
- package/cjs/core/Tile/index.d.ts +0 -1
- package/cjs/core/TimePicker/TimePicker.d.ts +3 -4
- package/cjs/core/TimePicker/TimePicker.js +5 -8
- package/cjs/core/TimePicker/index.d.ts +1 -1
- package/cjs/core/Toast/Toast.d.ts +0 -1
- package/cjs/core/Toast/Toast.js +5 -6
- package/cjs/core/Toast/ToastWrapper.d.ts +0 -1
- package/cjs/core/Toast/ToastWrapper.js +2 -2
- package/cjs/core/ToggleSwitch/ToggleSwitch.d.ts +4 -4
- package/cjs/core/ToggleSwitch/ToggleSwitch.js +4 -12
- package/cjs/core/ToggleSwitch/index.d.ts +0 -1
- package/cjs/core/Tooltip/Tooltip.d.ts +0 -1
- package/cjs/core/Tooltip/Tooltip.js +1 -3
- package/cjs/core/Tooltip/index.d.ts +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/{Typography/Headline → TransferList}/index.js +4 -4
- package/cjs/core/Tree/Tree.d.ts +1 -2
- package/cjs/core/Tree/Tree.js +4 -5
- package/cjs/core/Tree/TreeNode.d.ts +1 -2
- package/cjs/core/Tree/TreeNode.js +10 -16
- package/cjs/core/Tree/TreeNodeExpander.d.ts +4 -5
- package/cjs/core/Tree/TreeNodeExpander.js +3 -5
- package/cjs/core/Tree/index.d.ts +1 -3
- package/cjs/core/Typography/Anchor/Anchor.d.ts +1 -6
- package/cjs/core/Typography/Anchor/Anchor.js +1 -34
- package/cjs/core/Typography/Anchor/index.d.ts +0 -1
- package/cjs/core/Typography/Blockquote/Blockquote.d.ts +4 -9
- package/cjs/core/Typography/Blockquote/Blockquote.js +1 -3
- package/cjs/core/Typography/Blockquote/index.d.ts +0 -1
- package/cjs/core/Typography/Code/Code.d.ts +1 -10
- package/cjs/core/Typography/Code/Code.js +1 -35
- package/cjs/core/Typography/Code/index.d.ts +0 -1
- package/cjs/core/Typography/Kbd/Kbd.d.ts +4 -6
- package/cjs/core/Typography/Kbd/Kbd.js +3 -6
- package/cjs/core/Typography/Kbd/index.d.ts +0 -1
- package/cjs/core/Typography/Text/Text.d.ts +3 -7
- package/cjs/core/Typography/Text/Text.js +2 -4
- package/cjs/core/Typography/Text/index.d.ts +0 -1
- package/cjs/core/Typography/index.d.ts +0 -17
- package/cjs/core/Typography/index.js +10 -22
- package/cjs/core/index.d.ts +11 -57
- package/cjs/core/index.js +118 -123
- package/cjs/core/utils/components/Box.d.ts +6 -0
- package/cjs/core/{Typography/Leading/index.js → utils/components/Box.js} +8 -4
- package/cjs/core/utils/components/Divider.d.ts +4 -5
- package/cjs/core/utils/components/Divider.js +2 -4
- package/cjs/core/utils/components/Flex.d.ts +1 -5
- package/cjs/core/utils/components/Flex.js +10 -7
- package/cjs/core/utils/components/Icon.d.ts +2 -25
- package/cjs/core/utils/components/Icon.js +2 -2
- package/cjs/core/utils/components/InputContainer.d.ts +0 -1
- package/cjs/core/utils/components/InputContainer.js +6 -11
- package/cjs/core/utils/components/InputFlexContainer.d.ts +3 -6
- package/cjs/core/utils/components/InputFlexContainer.js +3 -3
- package/cjs/core/utils/components/LinkAction.d.ts +2 -9
- package/cjs/core/utils/components/LinkAction.js +3 -37
- package/cjs/core/utils/components/Popover.d.ts +1 -2
- package/cjs/core/utils/components/Popover.js +2 -3
- package/cjs/core/utils/components/VisuallyHidden.d.ts +1 -3
- package/cjs/core/utils/components/VisuallyHidden.js +3 -5
- package/cjs/core/utils/components/index.d.ts +1 -0
- package/cjs/core/utils/components/index.js +1 -0
- 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 +1 -1
- package/cjs/core/utils/functions/index.js +1 -1
- package/cjs/core/utils/functions/polymorphic.d.ts +198 -0
- package/cjs/core/utils/functions/polymorphic.js +89 -0
- package/cjs/core/utils/hooks/index.d.ts +1 -1
- package/cjs/core/utils/hooks/index.js +1 -1
- package/cjs/core/utils/hooks/useGlobals.d.ts +8 -0
- package/cjs/core/utils/hooks/useGlobals.js +77 -0
- package/cjs/core/utils/hooks/useIsThemeAlreadySet.js +2 -2
- package/cjs/core/utils/icons/Svg.d.ts +1 -0
- package/cjs/core/{Typography/Body/index.js → utils/icons/Svg.js} +3 -4
- package/cjs/core/utils/icons/SvgCalendar.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCalendar.js +2 -1
- package/cjs/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCaretDownSmall.js +2 -1
- package/cjs/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCaretRightSmall.js +2 -1
- package/cjs/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCaretUpSmall.js +2 -1
- package/cjs/core/utils/icons/SvgCheckmark.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCheckmark.js +2 -1
- package/cjs/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCheckmarkSmall.js +2 -1
- package/cjs/core/utils/icons/SvgChevronLeft.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronLeft.js +2 -1
- package/cjs/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronLeftDouble.js +2 -1
- package/cjs/core/utils/icons/SvgChevronRight.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronRight.js +2 -1
- package/cjs/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
- package/cjs/core/utils/icons/SvgChevronRightDouble.js +2 -1
- package/cjs/core/utils/icons/SvgClose.d.ts +1 -1
- package/cjs/core/utils/icons/SvgClose.js +2 -1
- package/cjs/core/utils/icons/SvgCloseSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgCloseSmall.js +2 -1
- package/cjs/core/utils/icons/SvgColumnManager.d.ts +1 -1
- package/cjs/core/utils/icons/SvgColumnManager.js +2 -1
- package/cjs/core/utils/icons/SvgDocument.d.ts +1 -1
- package/cjs/core/utils/icons/SvgDocument.js +2 -1
- package/cjs/core/utils/icons/SvgFilter.d.ts +1 -1
- package/cjs/core/utils/icons/SvgFilter.js +2 -1
- package/cjs/core/utils/icons/SvgFilterHollow.d.ts +1 -1
- package/cjs/core/utils/icons/SvgFilterHollow.js +2 -1
- package/cjs/core/utils/icons/SvgImportantSmall.d.ts +1 -1
- package/cjs/core/utils/icons/SvgImportantSmall.js +2 -1
- package/cjs/core/utils/icons/SvgInfoCircular.d.ts +1 -1
- package/cjs/core/utils/icons/SvgInfoCircular.js +2 -1
- package/cjs/core/utils/icons/SvgMore.d.ts +1 -1
- package/cjs/core/utils/icons/SvgMore.js +2 -1
- package/cjs/core/utils/icons/SvgMoreVertical.d.ts +1 -1
- package/cjs/core/utils/icons/SvgMoreVertical.js +2 -1
- package/cjs/core/utils/icons/SvgNew.d.ts +1 -1
- package/cjs/core/utils/icons/SvgNew.js +2 -1
- package/cjs/core/utils/icons/SvgSearch.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSearch.js +2 -1
- package/cjs/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSmileyHappy.js +2 -1
- package/cjs/core/utils/icons/SvgSortDown.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSortDown.js +2 -1
- package/cjs/core/utils/icons/SvgSortUp.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSortUp.js +2 -1
- package/cjs/core/utils/icons/SvgStatusError.d.ts +1 -1
- package/cjs/core/utils/icons/SvgStatusError.js +2 -1
- package/cjs/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
- package/cjs/core/utils/icons/SvgStatusSuccess.js +2 -1
- package/cjs/core/utils/icons/SvgStatusWarning.d.ts +1 -1
- package/cjs/core/utils/icons/SvgStatusWarning.js +2 -1
- package/cjs/core/utils/icons/SvgSwap.d.ts +1 -1
- package/cjs/core/utils/icons/SvgSwap.js +2 -1
- package/cjs/core/utils/icons/SvgUpload.d.ts +1 -1
- package/cjs/core/utils/icons/SvgUpload.js +2 -1
- package/cjs/core/utils/props.d.ts +10 -33
- package/{esm/core/Typography/Body/index.js → cjs/styles.d.ts} +1 -2
- package/cjs/styles.js +453 -0
- package/cjs/types/react-table-config.d.ts +1 -1
- package/esm/core/Alert/Alert.d.ts +4 -5
- package/esm/core/Alert/Alert.js +9 -11
- package/esm/core/Alert/index.d.ts +0 -1
- package/esm/core/Avatar/Avatar.d.ts +6 -15
- package/esm/core/Avatar/Avatar.js +7 -9
- package/esm/core/Avatar/index.d.ts +0 -1
- package/esm/core/AvatarGroup/AvatarGroup.d.ts +5 -10
- package/esm/core/AvatarGroup/AvatarGroup.js +15 -18
- package/esm/core/AvatarGroup/index.d.ts +0 -1
- package/esm/core/Backdrop/Backdrop.d.ts +3 -4
- package/esm/core/Backdrop/Backdrop.js +2 -4
- package/esm/core/Backdrop/index.d.ts +0 -1
- package/esm/core/Badge/Badge.d.ts +4 -7
- package/esm/core/Badge/Badge.js +4 -6
- package/esm/core/Badge/index.d.ts +0 -1
- package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +4 -78
- package/esm/core/Breadcrumbs/Breadcrumbs.js +6 -8
- package/esm/core/Breadcrumbs/index.d.ts +0 -1
- package/esm/core/ButtonGroup/ButtonGroup.d.ts +4 -4
- package/esm/core/ButtonGroup/ButtonGroup.js +16 -15
- package/esm/core/ButtonGroup/index.d.ts +0 -1
- package/esm/core/Buttons/Button/Button.d.ts +4 -11
- package/esm/core/Buttons/Button/Button.js +5 -7
- package/esm/core/Buttons/Button/index.d.ts +0 -1
- package/esm/core/Buttons/DropdownButton/DropdownButton.d.ts +5 -22
- package/esm/core/Buttons/DropdownButton/DropdownButton.js +1 -3
- package/esm/core/Buttons/DropdownButton/index.d.ts +0 -1
- package/esm/core/Buttons/IconButton/IconButton.d.ts +2 -5
- package/esm/core/Buttons/IconButton/IconButton.js +5 -8
- package/esm/core/Buttons/IconButton/index.d.ts +0 -1
- package/esm/core/Buttons/IdeasButton/IdeasButton.d.ts +3 -3
- package/esm/core/Buttons/IdeasButton/IdeasButton.js +1 -2
- package/esm/core/Buttons/IdeasButton/index.d.ts +0 -1
- package/esm/core/Buttons/SplitButton/SplitButton.d.ts +2 -4
- package/esm/core/Buttons/SplitButton/SplitButton.js +2 -4
- package/esm/core/Buttons/SplitButton/index.d.ts +0 -1
- package/esm/core/Buttons/index.d.ts +0 -5
- package/esm/core/Carousel/Carousel.d.ts +24 -27
- package/esm/core/Carousel/Carousel.js +23 -24
- package/esm/core/Carousel/CarouselDot.d.ts +11 -9
- package/esm/core/Carousel/CarouselDot.js +2 -1
- package/esm/core/Carousel/CarouselDotsList.d.ts +11 -10
- package/esm/core/Carousel/CarouselDotsList.js +2 -4
- package/esm/core/Carousel/CarouselNavigation.d.ts +14 -5
- package/esm/core/Carousel/CarouselNavigation.js +14 -10
- package/esm/core/Carousel/CarouselSlide.d.ts +10 -8
- package/esm/core/Carousel/CarouselSlide.js +2 -2
- package/esm/core/Carousel/CarouselSlider.d.ts +2 -2
- package/esm/core/Carousel/CarouselSlider.js +2 -2
- package/esm/core/Carousel/index.d.ts +0 -1
- package/esm/core/Checkbox/Checkbox.d.ts +4 -32
- package/esm/core/Checkbox/Checkbox.js +4 -6
- package/esm/core/Checkbox/index.d.ts +0 -1
- package/esm/core/ColorPicker/ColorBuilder.d.ts +2 -5
- package/esm/core/ColorPicker/ColorBuilder.js +4 -6
- package/esm/core/ColorPicker/ColorInputPanel.d.ts +4 -19
- package/esm/core/ColorPicker/ColorInputPanel.js +5 -7
- package/esm/core/ColorPicker/ColorPalette.d.ts +3 -17
- package/esm/core/ColorPicker/ColorPalette.js +4 -6
- package/esm/core/ColorPicker/ColorPicker.d.ts +4 -5
- package/esm/core/ColorPicker/ColorPicker.js +4 -6
- package/esm/core/ColorPicker/ColorSwatch.d.ts +4 -6
- package/esm/core/ColorPicker/ColorSwatch.js +2 -4
- package/esm/core/ColorPicker/index.d.ts +0 -5
- package/esm/core/ComboBox/ComboBox.d.ts +4 -5
- package/esm/core/ComboBox/ComboBox.js +6 -9
- package/esm/core/ComboBox/ComboBoxDropdown.d.ts +3 -3
- package/esm/core/ComboBox/ComboBoxEndIcon.d.ts +7 -5
- package/esm/core/ComboBox/ComboBoxEndIcon.js +2 -2
- package/esm/core/ComboBox/ComboBoxInput.d.ts +7 -6
- package/esm/core/ComboBox/ComboBoxInputContainer.d.ts +3 -7
- package/esm/core/ComboBox/ComboBoxInputContainer.js +5 -5
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +5 -2
- package/esm/core/ComboBox/ComboBoxMenu.js +2 -2
- package/esm/core/ComboBox/ComboBoxMenuItem.d.ts +6 -19
- package/esm/core/ComboBox/ComboBoxMenuItem.js +8 -19
- package/esm/core/ComboBox/ComboBoxMultipleContainer.d.ts +6 -3
- package/esm/core/ComboBox/index.d.ts +0 -1
- package/esm/core/DatePicker/DatePicker.d.ts +4 -5
- package/esm/core/DatePicker/DatePicker.js +10 -12
- package/esm/core/DatePicker/index.d.ts +0 -1
- package/esm/core/Dialog/Dialog.d.ts +13 -10
- package/esm/core/Dialog/Dialog.js +23 -24
- package/esm/core/Dialog/DialogBackdrop.d.ts +4 -4
- package/esm/core/Dialog/DialogBackdrop.js +1 -3
- package/esm/core/Dialog/DialogButtonBar.d.ts +1 -9
- package/esm/core/Dialog/DialogButtonBar.js +2 -9
- package/esm/core/Dialog/DialogContent.d.ts +1 -9
- package/esm/core/Dialog/DialogContent.js +2 -9
- package/esm/core/Dialog/DialogContext.d.ts +4 -0
- package/esm/core/Dialog/DialogMain.d.ts +3 -3
- package/esm/core/Dialog/DialogMain.js +4 -6
- package/esm/core/Dialog/DialogTitleBar.d.ts +5 -5
- package/esm/core/Dialog/DialogTitleBar.js +2 -4
- package/esm/core/Dialog/DialogTitleBarTitle.d.ts +1 -9
- package/esm/core/Dialog/DialogTitleBarTitle.js +2 -9
- package/esm/core/Dialog/index.d.ts +0 -5
- package/esm/core/DropdownMenu/DropdownMenu.js +1 -2
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +9 -5
- package/esm/core/ExpandableBlock/ExpandableBlock.js +15 -14
- package/esm/core/ExpandableBlock/index.d.ts +0 -1
- package/esm/core/Fieldset/Fieldset.d.ts +4 -4
- package/esm/core/Fieldset/Fieldset.js +4 -6
- package/esm/core/Fieldset/index.d.ts +0 -1
- package/esm/core/FileUpload/FileEmptyCard.d.ts +4 -11
- package/esm/core/FileUpload/FileEmptyCard.js +17 -14
- package/esm/core/FileUpload/FileUpload.d.ts +4 -26
- package/esm/core/FileUpload/FileUpload.js +4 -6
- package/esm/core/FileUpload/FileUploadCard.d.ts +11 -52
- package/esm/core/FileUpload/FileUploadCard.js +44 -37
- package/esm/core/FileUpload/FileUploadTemplate.d.ts +4 -4
- package/esm/core/FileUpload/FileUploadTemplate.js +6 -8
- package/esm/core/FileUpload/index.d.ts +0 -4
- package/esm/core/Footer/Footer.d.ts +6 -11
- package/esm/core/Footer/Footer.js +2 -4
- package/esm/core/Footer/FooterItem.d.ts +1 -4
- package/esm/core/Footer/FooterItem.js +2 -9
- package/esm/core/Footer/FooterList.d.ts +1 -4
- package/esm/core/Footer/FooterList.js +2 -9
- package/esm/core/Footer/FooterSeparator.d.ts +1 -4
- package/esm/core/Footer/FooterSeparator.js +4 -9
- package/esm/core/Footer/index.d.ts +1 -1
- package/esm/core/Header/Header.d.ts +5 -6
- package/esm/core/Header/Header.js +8 -10
- package/esm/core/Header/HeaderBasicButton.d.ts +2 -4
- package/esm/core/Header/HeaderBasicButton.js +5 -12
- package/esm/core/Header/HeaderBreadcrumbs.d.ts +3 -3
- package/esm/core/Header/HeaderBreadcrumbs.js +8 -9
- package/esm/core/Header/HeaderButton.d.ts +5 -7
- package/esm/core/Header/HeaderButton.js +9 -23
- package/esm/core/Header/HeaderDropdownButton.d.ts +2 -4
- package/esm/core/Header/HeaderDropdownButton.js +1 -2
- package/esm/core/Header/HeaderLogo.d.ts +1 -3
- package/esm/core/Header/HeaderLogo.js +6 -14
- package/esm/core/Header/HeaderSplitButton.d.ts +2 -4
- package/esm/core/Header/HeaderSplitButton.js +4 -5
- package/esm/core/Header/index.d.ts +0 -4
- package/esm/core/InformationPanel/InformationPanel.d.ts +4 -25
- package/esm/core/InformationPanel/InformationPanel.js +4 -6
- package/esm/core/InformationPanel/InformationPanelBody.d.ts +1 -10
- package/esm/core/InformationPanel/InformationPanelBody.js +2 -9
- package/esm/core/InformationPanel/InformationPanelContent.d.ts +4 -5
- package/esm/core/InformationPanel/InformationPanelContent.js +4 -6
- package/esm/core/InformationPanel/InformationPanelHeader.d.ts +4 -5
- package/esm/core/InformationPanel/InformationPanelHeader.js +6 -8
- package/esm/core/InformationPanel/InformationPanelWrapper.d.ts +1 -7
- package/esm/core/InformationPanel/InformationPanelWrapper.js +2 -9
- package/esm/core/InformationPanel/index.d.ts +0 -5
- package/esm/core/Input/Input.d.ts +3 -14
- package/esm/core/Input/Input.js +2 -4
- package/esm/core/Input/index.d.ts +0 -1
- package/esm/core/InputGroup/InputGroup.d.ts +4 -5
- package/esm/core/InputGroup/InputGroup.js +6 -8
- package/esm/core/InputGroup/index.d.ts +0 -1
- package/esm/core/Label/Label.d.ts +3 -10
- package/esm/core/Label/Label.js +6 -8
- package/esm/core/Label/index.d.ts +0 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +2 -47
- package/esm/core/LabeledInput/LabeledInput.js +1 -3
- package/esm/core/LabeledInput/index.d.ts +0 -1
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +1 -2
- package/esm/core/LabeledSelect/LabeledSelect.js +1 -3
- package/esm/core/LabeledSelect/index.d.ts +0 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +4 -27
- package/esm/core/LabeledTextarea/LabeledTextarea.js +1 -3
- package/esm/core/LabeledTextarea/index.d.ts +0 -1
- package/esm/core/List/List.d.ts +1 -6
- package/esm/core/List/List.js +3 -9
- package/esm/core/List/ListItem.d.ts +6 -14
- package/esm/core/List/ListItem.js +10 -17
- package/esm/core/List/index.d.ts +0 -2
- package/esm/core/Menu/Menu.d.ts +4 -28
- package/esm/core/Menu/Menu.js +3 -5
- package/esm/core/Menu/MenuDivider.d.ts +1 -5
- package/esm/core/Menu/MenuDivider.js +4 -9
- package/esm/core/Menu/MenuExtraContent.d.ts +1 -7
- package/esm/core/Menu/MenuExtraContent.js +4 -9
- package/esm/core/Menu/MenuItem.d.ts +14 -61
- package/esm/core/Menu/MenuItem.js +13 -22
- package/esm/core/Menu/MenuItemSkeleton.d.ts +4 -6
- package/esm/core/Menu/MenuItemSkeleton.js +9 -11
- package/esm/core/Menu/index.d.ts +0 -5
- package/esm/core/Modal/Modal.d.ts +5 -6
- package/esm/core/Modal/Modal.js +4 -6
- package/esm/core/Modal/ModalButtonBar.d.ts +1 -9
- package/esm/core/Modal/ModalButtonBar.js +1 -2
- package/esm/core/Modal/ModalContent.d.ts +1 -9
- package/esm/core/Modal/ModalContent.js +1 -2
- package/esm/core/Modal/index.d.ts +0 -3
- package/esm/core/NonIdealState/NonIdealState.d.ts +4 -4
- package/esm/core/NonIdealState/NonIdealState.js +8 -10
- package/esm/core/NonIdealState/index.d.ts +1 -2
- package/esm/core/NotificationMarker/NotificationMarker.d.ts +4 -4
- package/esm/core/NotificationMarker/NotificationMarker.js +2 -4
- package/esm/core/NotificationMarker/index.d.ts +0 -1
- package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +4 -5
- package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +9 -11
- package/esm/core/ProgressIndicators/ProgressLinear/index.d.ts +0 -1
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.d.ts +4 -5
- package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +11 -13
- package/esm/core/ProgressIndicators/ProgressRadial/index.d.ts +0 -1
- package/esm/core/ProgressIndicators/index.d.ts +0 -2
- package/esm/core/Radio/Radio.d.ts +4 -18
- package/esm/core/Radio/Radio.js +4 -6
- package/esm/core/Radio/index.d.ts +0 -1
- package/esm/core/RadioTiles/RadioTile.d.ts +4 -22
- package/esm/core/RadioTiles/RadioTile.js +7 -12
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +5 -5
- package/esm/core/RadioTiles/RadioTileGroup.js +5 -7
- package/esm/core/RadioTiles/index.d.ts +0 -2
- package/esm/core/SearchBox/SearchBox.d.ts +4 -17
- package/esm/core/SearchBox/SearchBox.js +2 -4
- package/esm/core/SearchBox/index.d.ts +0 -1
- package/esm/core/Select/Select.d.ts +6 -2
- package/esm/core/Select/Select.js +13 -14
- package/esm/core/Select/SelectTag.d.ts +4 -6
- package/esm/core/Select/SelectTag.js +5 -7
- package/esm/core/Select/SelectTagContainer.d.ts +4 -8
- package/esm/core/Select/SelectTagContainer.js +2 -3
- package/esm/core/Select/index.d.ts +1 -1
- package/esm/core/SideNavigation/SideNavigation.d.ts +4 -5
- package/esm/core/SideNavigation/SideNavigation.js +8 -10
- package/esm/core/SideNavigation/SidenavButton.d.ts +3 -5
- package/esm/core/SideNavigation/SidenavButton.js +1 -6
- package/esm/core/SideNavigation/SidenavSubmenu.d.ts +2 -15
- package/esm/core/SideNavigation/SidenavSubmenu.js +3 -5
- package/esm/core/SideNavigation/SidenavSubmenuHeader.d.ts +4 -9
- package/esm/core/SideNavigation/SidenavSubmenuHeader.js +6 -8
- package/esm/core/SideNavigation/index.d.ts +0 -4
- package/esm/core/SkipToContentLink/SkipToContentLink.d.ts +4 -14
- package/esm/core/SkipToContentLink/SkipToContentLink.js +2 -4
- package/esm/core/SkipToContentLink/index.d.ts +0 -1
- package/esm/core/Slider/Slider.d.ts +4 -100
- package/esm/core/Slider/Slider.js +7 -9
- package/esm/core/Slider/Thumb.d.ts +3 -2
- package/esm/core/Slider/Thumb.js +2 -1
- package/esm/core/Slider/Track.js +2 -1
- package/esm/core/Slider/index.d.ts +0 -1
- package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/esm/core/StatusMessage/StatusMessage.js +4 -16
- package/esm/core/StatusMessage/index.d.ts +0 -1
- package/esm/core/Stepper/Stepper.d.ts +2 -3
- package/esm/core/Stepper/Stepper.js +4 -6
- package/esm/core/Stepper/StepperStep.d.ts +3 -4
- package/esm/core/Stepper/StepperStep.js +8 -7
- package/esm/core/Stepper/Wizard.js +3 -1
- package/esm/core/Stepper/WorkflowDiagram.d.ts +3 -4
- package/esm/core/Stepper/WorkflowDiagram.js +6 -6
- package/esm/core/Stepper/WorkflowDiagramStep.d.ts +2 -2
- package/esm/core/Stepper/WorkflowDiagramStep.js +3 -2
- package/esm/core/Stepper/index.d.ts +2 -3
- package/esm/core/Surface/Surface.d.ts +5 -18
- package/esm/core/Surface/Surface.js +8 -8
- package/esm/core/Surface/index.d.ts +0 -1
- package/esm/core/Table/Table.d.ts +0 -1
- package/esm/core/Table/Table.js +20 -21
- package/esm/core/Table/TableCell.js +3 -2
- package/esm/core/Table/TablePaginator.d.ts +0 -1
- package/esm/core/Table/TablePaginator.js +10 -11
- 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/columns/actionColumn.js +1 -1
- package/esm/core/Table/columns/expanderColumn.d.ts +1 -1
- package/esm/core/Table/columns/expanderColumn.js +1 -1
- package/esm/core/Table/filters/BaseFilter.d.ts +0 -1
- package/esm/core/Table/filters/BaseFilter.js +3 -4
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +3 -3
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.d.ts +0 -1
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +2 -3
- package/esm/core/Table/filters/FilterButtonBar.d.ts +0 -1
- package/esm/core/Table/filters/FilterButtonBar.js +3 -4
- package/esm/core/Table/filters/FilterToggle.d.ts +2 -3
- package/esm/core/Table/filters/FilterToggle.js +2 -3
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.d.ts +0 -1
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +2 -3
- package/esm/core/Table/filters/TextFilter/TextFilter.d.ts +0 -1
- package/esm/core/Table/filters/TextFilter/TextFilter.js +2 -3
- package/esm/core/Table/hooks/useColumnDragAndDrop.js +5 -4
- package/esm/core/Tabs/Tab.d.ts +10 -4
- package/esm/core/Tabs/Tab.js +8 -14
- package/esm/core/Tabs/Tabs.d.ts +2 -3
- package/esm/core/Tabs/Tabs.js +11 -14
- package/esm/core/Tabs/index.d.ts +0 -2
- package/esm/core/Tag/Tag.d.ts +4 -5
- package/esm/core/Tag/Tag.js +6 -8
- package/esm/core/Tag/TagContainer.d.ts +4 -5
- package/esm/core/Tag/TagContainer.js +5 -7
- package/esm/core/Tag/index.d.ts +0 -2
- package/esm/core/Textarea/Textarea.d.ts +3 -10
- package/esm/core/Textarea/Textarea.js +2 -4
- package/esm/core/Textarea/index.d.ts +0 -1
- package/esm/core/ThemeProvider/ThemeContext.d.ts +7 -0
- package/esm/core/{Typography/Leading/index.js → ThemeProvider/ThemeContext.js} +2 -2
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +11 -14
- package/esm/core/ThemeProvider/ThemeProvider.js +4 -16
- package/esm/core/ThemeProvider/index.d.ts +1 -1
- package/esm/core/Tile/Tile.d.ts +6 -8
- package/esm/core/Tile/Tile.js +19 -23
- package/esm/core/Tile/index.d.ts +0 -1
- package/esm/core/TimePicker/TimePicker.d.ts +3 -4
- package/esm/core/TimePicker/TimePicker.js +6 -8
- package/esm/core/TimePicker/index.d.ts +1 -1
- package/esm/core/Toast/Toast.d.ts +0 -1
- package/esm/core/Toast/Toast.js +6 -7
- package/esm/core/Toast/ToastWrapper.d.ts +0 -1
- package/esm/core/Toast/ToastWrapper.js +2 -2
- package/esm/core/ToggleSwitch/ToggleSwitch.d.ts +4 -4
- package/esm/core/ToggleSwitch/ToggleSwitch.js +5 -13
- package/esm/core/ToggleSwitch/index.d.ts +0 -1
- package/esm/core/Tooltip/Tooltip.d.ts +0 -1
- package/esm/core/Tooltip/Tooltip.js +2 -4
- package/esm/core/Tooltip/index.d.ts +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/{Typography/Headline → TransferList}/index.js +2 -2
- package/esm/core/Tree/Tree.d.ts +1 -2
- package/esm/core/Tree/Tree.js +5 -6
- package/esm/core/Tree/TreeNode.d.ts +1 -2
- package/esm/core/Tree/TreeNode.js +11 -17
- package/esm/core/Tree/TreeNodeExpander.d.ts +4 -5
- package/esm/core/Tree/TreeNodeExpander.js +3 -4
- package/esm/core/Tree/index.d.ts +1 -3
- package/esm/core/Typography/Anchor/Anchor.d.ts +1 -6
- package/esm/core/Typography/Anchor/Anchor.js +2 -9
- package/esm/core/Typography/Anchor/index.d.ts +0 -1
- package/esm/core/Typography/Blockquote/Blockquote.d.ts +4 -9
- package/esm/core/Typography/Blockquote/Blockquote.js +2 -4
- package/esm/core/Typography/Blockquote/index.d.ts +0 -1
- package/esm/core/Typography/Code/Code.d.ts +1 -10
- package/esm/core/Typography/Code/Code.js +2 -9
- package/esm/core/Typography/Code/index.d.ts +0 -1
- package/esm/core/Typography/Kbd/Kbd.d.ts +4 -6
- package/esm/core/Typography/Kbd/Kbd.js +4 -6
- package/esm/core/Typography/Kbd/index.d.ts +0 -1
- package/esm/core/Typography/Text/Text.d.ts +3 -7
- package/esm/core/Typography/Text/Text.js +3 -5
- package/esm/core/Typography/Text/index.d.ts +0 -1
- package/esm/core/Typography/index.d.ts +0 -17
- package/esm/core/Typography/index.js +0 -6
- package/esm/core/index.d.ts +11 -57
- package/esm/core/index.js +3 -2
- package/esm/core/utils/components/Box.d.ts +6 -0
- package/esm/core/utils/components/Box.js +11 -0
- package/esm/core/utils/components/Divider.d.ts +4 -5
- package/esm/core/utils/components/Divider.js +2 -4
- package/esm/core/utils/components/Flex.d.ts +1 -5
- package/esm/core/utils/components/Flex.js +10 -7
- package/esm/core/utils/components/Icon.d.ts +2 -25
- package/esm/core/utils/components/Icon.js +2 -2
- package/esm/core/utils/components/InputContainer.d.ts +0 -1
- package/esm/core/utils/components/InputContainer.js +6 -11
- package/esm/core/utils/components/InputFlexContainer.d.ts +3 -6
- package/esm/core/utils/components/InputFlexContainer.js +3 -3
- package/esm/core/utils/components/LinkAction.d.ts +2 -9
- package/esm/core/utils/components/LinkAction.js +3 -11
- package/esm/core/utils/components/Popover.d.ts +1 -2
- package/esm/core/utils/components/Popover.js +1 -2
- package/esm/core/utils/components/VisuallyHidden.d.ts +1 -3
- package/esm/core/utils/components/VisuallyHidden.js +3 -5
- package/esm/core/utils/components/index.d.ts +1 -0
- package/esm/core/utils/components/index.js +1 -0
- 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 +1 -1
- package/esm/core/utils/functions/index.js +1 -1
- package/esm/core/utils/functions/polymorphic.d.ts +198 -0
- package/esm/core/utils/functions/polymorphic.js +60 -0
- package/esm/core/utils/hooks/index.d.ts +1 -1
- package/esm/core/utils/hooks/index.js +1 -1
- package/esm/core/utils/hooks/useGlobals.d.ts +8 -0
- package/esm/core/utils/hooks/useGlobals.js +49 -0
- package/esm/core/utils/hooks/useIsThemeAlreadySet.js +1 -1
- package/esm/core/utils/icons/Svg.d.ts +1 -0
- package/esm/core/{Typography/Small/index.js → utils/icons/Svg.js} +2 -2
- package/esm/core/utils/icons/SvgCalendar.d.ts +1 -1
- package/esm/core/utils/icons/SvgCalendar.js +2 -1
- package/esm/core/utils/icons/SvgCaretDownSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCaretDownSmall.js +2 -1
- package/esm/core/utils/icons/SvgCaretRightSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCaretRightSmall.js +2 -1
- package/esm/core/utils/icons/SvgCaretUpSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCaretUpSmall.js +2 -1
- package/esm/core/utils/icons/SvgCheckmark.d.ts +1 -1
- package/esm/core/utils/icons/SvgCheckmark.js +2 -1
- package/esm/core/utils/icons/SvgCheckmarkSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCheckmarkSmall.js +2 -1
- package/esm/core/utils/icons/SvgChevronLeft.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronLeft.js +2 -1
- package/esm/core/utils/icons/SvgChevronLeftDouble.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronLeftDouble.js +2 -1
- package/esm/core/utils/icons/SvgChevronRight.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronRight.js +2 -1
- package/esm/core/utils/icons/SvgChevronRightDouble.d.ts +1 -1
- package/esm/core/utils/icons/SvgChevronRightDouble.js +2 -1
- package/esm/core/utils/icons/SvgClose.d.ts +1 -1
- package/esm/core/utils/icons/SvgClose.js +2 -1
- package/esm/core/utils/icons/SvgCloseSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgCloseSmall.js +2 -1
- package/esm/core/utils/icons/SvgColumnManager.d.ts +1 -1
- package/esm/core/utils/icons/SvgColumnManager.js +2 -1
- package/esm/core/utils/icons/SvgDocument.d.ts +1 -1
- package/esm/core/utils/icons/SvgDocument.js +2 -1
- package/esm/core/utils/icons/SvgFilter.d.ts +1 -1
- package/esm/core/utils/icons/SvgFilter.js +2 -1
- package/esm/core/utils/icons/SvgFilterHollow.d.ts +1 -1
- package/esm/core/utils/icons/SvgFilterHollow.js +2 -1
- package/esm/core/utils/icons/SvgImportantSmall.d.ts +1 -1
- package/esm/core/utils/icons/SvgImportantSmall.js +2 -1
- package/esm/core/utils/icons/SvgInfoCircular.d.ts +1 -1
- package/esm/core/utils/icons/SvgInfoCircular.js +2 -1
- package/esm/core/utils/icons/SvgMore.d.ts +1 -1
- package/esm/core/utils/icons/SvgMore.js +2 -1
- package/esm/core/utils/icons/SvgMoreVertical.d.ts +1 -1
- package/esm/core/utils/icons/SvgMoreVertical.js +2 -1
- package/esm/core/utils/icons/SvgNew.d.ts +1 -1
- package/esm/core/utils/icons/SvgNew.js +2 -1
- package/esm/core/utils/icons/SvgSearch.d.ts +1 -1
- package/esm/core/utils/icons/SvgSearch.js +2 -1
- package/esm/core/utils/icons/SvgSmileyHappy.d.ts +1 -1
- package/esm/core/utils/icons/SvgSmileyHappy.js +2 -1
- package/esm/core/utils/icons/SvgSortDown.d.ts +1 -1
- package/esm/core/utils/icons/SvgSortDown.js +2 -1
- package/esm/core/utils/icons/SvgSortUp.d.ts +1 -1
- package/esm/core/utils/icons/SvgSortUp.js +2 -1
- package/esm/core/utils/icons/SvgStatusError.d.ts +1 -1
- package/esm/core/utils/icons/SvgStatusError.js +2 -1
- package/esm/core/utils/icons/SvgStatusSuccess.d.ts +1 -1
- package/esm/core/utils/icons/SvgStatusSuccess.js +2 -1
- package/esm/core/utils/icons/SvgStatusWarning.d.ts +1 -1
- package/esm/core/utils/icons/SvgStatusWarning.js +2 -1
- package/esm/core/utils/icons/SvgSwap.d.ts +1 -1
- package/esm/core/utils/icons/SvgSwap.js +2 -1
- package/esm/core/utils/icons/SvgUpload.d.ts +1 -1
- package/esm/core/utils/icons/SvgUpload.js +2 -1
- package/esm/core/utils/props.d.ts +10 -33
- package/esm/{core/Typography/Title/index.js → styles.d.ts} +1 -2
- package/esm/styles.js +454 -0
- package/esm/types/react-table-config.d.ts +1 -1
- package/package.json +14 -11
- package/styles.css +1942 -0
- package/cjs/core/Typography/Body/Body.d.ts +0 -35
- package/cjs/core/Typography/Body/Body.js +0 -51
- package/cjs/core/Typography/Body/index.d.ts +0 -4
- package/cjs/core/Typography/Headline/Headline.d.ts +0 -22
- package/cjs/core/Typography/Headline/Headline.js +0 -48
- package/cjs/core/Typography/Headline/index.d.ts +0 -4
- package/cjs/core/Typography/Leading/Leading.d.ts +0 -22
- package/cjs/core/Typography/Leading/Leading.js +0 -48
- package/cjs/core/Typography/Leading/index.d.ts +0 -4
- package/cjs/core/Typography/Small/Small.d.ts +0 -22
- package/cjs/core/Typography/Small/index.d.ts +0 -4
- package/cjs/core/Typography/Small/index.js +0 -10
- package/cjs/core/Typography/Subheading/Subheading.d.ts +0 -22
- package/cjs/core/Typography/Subheading/Subheading.js +0 -48
- package/cjs/core/Typography/Subheading/index.d.ts +0 -4
- package/cjs/core/Typography/Subheading/index.js +0 -10
- package/cjs/core/Typography/Title/Title.d.ts +0 -22
- package/cjs/core/Typography/Title/Title.js +0 -48
- package/cjs/core/Typography/Title/index.d.ts +0 -4
- package/cjs/core/Typography/Title/index.js +0 -10
- package/cjs/core/utils/functions/styles.d.ts +0 -6
- package/cjs/core/utils/functions/styles.js +0 -21
- package/cjs/core/utils/hooks/useTheme.d.ts +0 -39
- package/cjs/core/utils/hooks/useTheme.js +0 -127
- package/esm/core/Typography/Body/Body.d.ts +0 -35
- package/esm/core/Typography/Body/Body.js +0 -22
- package/esm/core/Typography/Body/index.d.ts +0 -4
- package/esm/core/Typography/Headline/Headline.d.ts +0 -22
- package/esm/core/Typography/Headline/Headline.js +0 -19
- package/esm/core/Typography/Headline/index.d.ts +0 -4
- package/esm/core/Typography/Leading/Leading.d.ts +0 -22
- package/esm/core/Typography/Leading/Leading.js +0 -19
- package/esm/core/Typography/Leading/index.d.ts +0 -4
- package/esm/core/Typography/Small/Small.d.ts +0 -22
- package/esm/core/Typography/Small/Small.js +0 -19
- package/esm/core/Typography/Small/index.d.ts +0 -4
- package/esm/core/Typography/Subheading/Subheading.d.ts +0 -22
- package/esm/core/Typography/Subheading/Subheading.js +0 -19
- package/esm/core/Typography/Subheading/index.d.ts +0 -4
- package/esm/core/Typography/Subheading/index.js +0 -6
- package/esm/core/Typography/Title/Title.d.ts +0 -22
- package/esm/core/Typography/Title/Title.js +0 -19
- package/esm/core/Typography/Title/index.d.ts +0 -4
- package/esm/core/utils/functions/styles.d.ts +0 -6
- package/esm/core/utils/functions/styles.js +0 -17
- package/esm/core/utils/hooks/useTheme.d.ts +0 -39
- package/esm/core/utils/hooks/useTheme.js +0 -100
package/esm/core/index.d.ts
CHANGED
|
@@ -1,112 +1,66 @@
|
|
|
1
1
|
export { Alert } from './Alert/index.js';
|
|
2
|
-
export type { AlertProps } from './Alert/index.js';
|
|
3
2
|
export { Avatar, UserIcon } from './Avatar/index.js';
|
|
4
|
-
export type { AvatarProps, StatusTitles, AvatarStatus, UserIconProps, UserIconStatus, } from './Avatar/index.js';
|
|
5
3
|
export { AvatarGroup, UserIconGroup } from './AvatarGroup/index.js';
|
|
6
|
-
export type { AvatarGroupProps, UserIconGroupProps, } from './AvatarGroup/index.js';
|
|
7
4
|
export { Backdrop } from './Backdrop/index.js';
|
|
8
|
-
export type { BackdropProps } from './Backdrop/index.js';
|
|
9
5
|
export { Badge } from './Badge/index.js';
|
|
10
|
-
export type { BadgeProps } from './Badge/index.js';
|
|
11
6
|
export { Breadcrumbs } from './Breadcrumbs/index.js';
|
|
12
|
-
export type { BreadcrumbsProps } from './Breadcrumbs/index.js';
|
|
13
7
|
export { Button, DropdownButton, IconButton, IdeasButton, SplitButton, } from './Buttons/index.js';
|
|
14
|
-
export type { ButtonProps, DropdownButtonProps, IconButtonProps, IdeasButtonProps, SplitButtonProps, } from './Buttons/index.js';
|
|
15
8
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
16
|
-
export type { ButtonGroupProps } from './ButtonGroup/index.js';
|
|
17
9
|
export { Carousel } from './Carousel/index.js';
|
|
18
|
-
export type { CarouselProps } from './Carousel/index.js';
|
|
19
10
|
export { Checkbox } from './Checkbox/index.js';
|
|
20
|
-
export type { CheckboxProps } from './Checkbox/index.js';
|
|
21
11
|
export { ColorPicker, ColorSwatch, ColorBuilder, ColorInputPanel, ColorPalette, } from './ColorPicker/index.js';
|
|
22
|
-
export type { ColorPickerProps, ColorSwatchProps, ColorBuilderProps, ColorInputPanelProps, ColorPaletteProps, } from './ColorPicker/index.js';
|
|
23
12
|
export { ComboBox } from './ComboBox/index.js';
|
|
24
|
-
export type { ComboBoxProps } from './ComboBox/index.js';
|
|
25
13
|
export { DatePicker, generateLocalizedStrings } from './DatePicker/index.js';
|
|
26
|
-
export type { DatePickerProps } from './DatePicker/index.js';
|
|
27
14
|
export { Dialog } from './Dialog/index.js';
|
|
28
|
-
export type { DialogProps, DialogButtonBarProps, DialogContentProps, DialogMainProps, DialogTitleBarProps, } from './Dialog/index.js';
|
|
29
15
|
export { DropdownMenu } from './DropdownMenu/index.js';
|
|
30
|
-
export type { DropdownMenuProps } from './DropdownMenu/index.js';
|
|
31
16
|
export { ErrorPage, NonIdealState } from './NonIdealState/index.js';
|
|
32
|
-
export type {
|
|
17
|
+
export type { ErrorPageType, ErrorTypeTranslations, } from './NonIdealState/index.js';
|
|
33
18
|
export { ExpandableBlock } from './ExpandableBlock/index.js';
|
|
34
|
-
export type { ExpandableBlockProps } from './ExpandableBlock/index.js';
|
|
35
19
|
export { Fieldset } from './Fieldset/index.js';
|
|
36
|
-
export type { FieldsetProps } from './Fieldset/index.js';
|
|
37
20
|
export { FileUpload, FileUploadTemplate, FileUploadCard, FileEmptyCard, } from './FileUpload/index.js';
|
|
38
|
-
export type { FileUploadProps, FileUploadTemplateProps, FileUploadCardProps, FileUploadCardIconProps, FileUploadCardInfoProps, FileUploadCardTitleProps, FileUploadCardDescriptionProps, FileUploadCardActionProps, FileUploadCardInputLabelProps, FileUploadCardInputProps, FileEmptyCardProps, FileEmptyCardIconProps, FileEmptyCardTextProps, } from './FileUpload/index.js';
|
|
39
21
|
export { Footer, defaultFooterElements } from './Footer/index.js';
|
|
40
|
-
export type {
|
|
22
|
+
export type { FooterElement, TitleTranslations } from './Footer/index.js';
|
|
41
23
|
export { Header, HeaderBreadcrumbs, HeaderButton, HeaderLogo, } from './Header/index.js';
|
|
42
|
-
export type { HeaderProps, HeaderBreadcrumbsProps, HeaderButtonProps, HeaderLogoProps, } from './Header/index.js';
|
|
43
24
|
export { List, ListItem } from './List/index.js';
|
|
44
|
-
export
|
|
25
|
+
export { TransferList } from './TransferList/index.js';
|
|
45
26
|
export { VerticalTabs, Tabs, Tab, HorizontalTabs } from './Tabs/index.js';
|
|
46
|
-
export type { VerticalTabsProps, TabProps, HorizontalTabsProps, } from './Tabs/index.js';
|
|
47
27
|
export { InformationPanel, InformationPanelWrapper, InformationPanelHeader, InformationPanelBody, InformationPanelContent, } from './InformationPanel/index.js';
|
|
48
|
-
export type { InformationPanelProps, InformationPanelWrapperProps, InformationPanelHeaderProps, InformationPanelBodyProps, InformationPanelContentProps, } from './InformationPanel/index.js';
|
|
49
28
|
export { Input } from './Input/index.js';
|
|
50
|
-
export type { InputProps } from './Input/index.js';
|
|
51
29
|
export { Label } from './Label/index.js';
|
|
52
|
-
export type { LabelProps } from './Label/index.js';
|
|
53
30
|
export { LabeledInput } from './LabeledInput/index.js';
|
|
54
|
-
export type { LabeledInputProps } from './LabeledInput/index.js';
|
|
55
31
|
export { InputGroup } from './InputGroup/index.js';
|
|
56
|
-
export type { InputGroupProps } from './InputGroup/index.js';
|
|
57
32
|
export { LabeledSelect } from './LabeledSelect/index.js';
|
|
58
|
-
export type { LabeledSelectProps } from './LabeledSelect/index.js';
|
|
59
33
|
export { LabeledTextarea } from './LabeledTextarea/index.js';
|
|
60
|
-
export type { LabeledTextareaProps } from './LabeledTextarea/index.js';
|
|
61
34
|
export { Menu, MenuItem, MenuDivider, MenuExtraContent, MenuItemSkeleton, } from './Menu/index.js';
|
|
62
|
-
export type { MenuProps, MenuItemProps, MenuDividerProps, MenuExtraContentProps, MenuItemSkeletonProps, } from './Menu/index.js';
|
|
63
35
|
export { Modal, ModalButtonBar, ModalContent } from './Modal/index.js';
|
|
64
|
-
export type { ModalProps, ModalButtonBarProps, ModalContentProps, } from './Modal/index.js';
|
|
65
36
|
export { NotificationMarker } from './NotificationMarker/index.js';
|
|
66
|
-
export type { NotificationMarkerProps } from './NotificationMarker/index.js';
|
|
67
37
|
export { ProgressLinear, ProgressRadial } from './ProgressIndicators/index.js';
|
|
68
|
-
export type { ProgressLinearProps, ProgressRadialProps, } from './ProgressIndicators/index.js';
|
|
69
38
|
export { Radio } from './Radio/index.js';
|
|
70
|
-
export type { RadioProps } from './Radio/index.js';
|
|
71
39
|
export { RadioTile, RadioTileGroup } from './RadioTiles/index.js';
|
|
72
|
-
export type { RadioTileGroupProps, RadioTileProps, } from './RadioTiles/index.js';
|
|
73
40
|
export { Select } from './Select/index.js';
|
|
74
|
-
export type {
|
|
41
|
+
export type { SelectOption, ItemRendererProps, SelectValueChangeEvent, } from './Select/index.js';
|
|
75
42
|
export { SideNavigation, SidenavButton, SidenavSubmenu, SidenavSubmenuHeader, } from './SideNavigation/index.js';
|
|
76
|
-
export type { SideNavigationProps, SidenavButtonProps, SidenavSubmenuProps, SidenavSubmenuHeaderProps, } from './SideNavigation/index.js';
|
|
77
43
|
export { SkipToContentLink } from './SkipToContentLink/index.js';
|
|
78
|
-
export type { SkipToContentLinkProps } from './SkipToContentLink/index.js';
|
|
79
44
|
export { Slider } from './Slider/index.js';
|
|
80
|
-
export type { SliderProps } from './Slider/index.js';
|
|
81
45
|
export { StatusMessage } from './StatusMessage/index.js';
|
|
82
|
-
export type { StatusMessageProps } from './StatusMessage/index.js';
|
|
83
46
|
export { Surface } from './Surface/index.js';
|
|
84
|
-
export type { SurfaceProps, SurfaceHeaderProps, SurfaceBodyProps, } from './Surface/index.js';
|
|
85
47
|
export { Table, tableFilters, BaseFilter, FilterButtonBar, DefaultCell, EditableCell, TablePaginator, ActionColumn, ExpanderColumn, SelectionColumn, } from './Table/index.js';
|
|
86
|
-
export type {
|
|
48
|
+
export type { TableFilterValue, DateRangeFilterOptions, TablePaginatorRendererProps, } from './Table/index.js';
|
|
87
49
|
export { Tag, TagContainer } from './Tag/index.js';
|
|
88
|
-
export type { TagProps, TagContainerProps } from './Tag/index.js';
|
|
89
50
|
export { Textarea } from './Textarea/index.js';
|
|
90
|
-
export type { TextareaProps } from './Textarea/index.js';
|
|
91
51
|
export { Tile } from './Tile/index.js';
|
|
92
|
-
export type { TileProps } from './Tile/index.js';
|
|
93
52
|
export { TimePicker } from './TimePicker/index.js';
|
|
94
|
-
export type { MeridiemType
|
|
53
|
+
export type { MeridiemType } from './TimePicker/index.js';
|
|
95
54
|
export { default as toaster } from './Toast/index.js';
|
|
96
55
|
export type { ToastOptions } from './Toast/index.js';
|
|
97
56
|
export { ThemeProvider } from './ThemeProvider/index.js';
|
|
98
|
-
export type {
|
|
57
|
+
export type { ThemeType } from './ThemeProvider/index.js';
|
|
99
58
|
export { ToggleSwitch } from './ToggleSwitch/index.js';
|
|
100
|
-
export type { ToggleSwitchProps } from './ToggleSwitch/index.js';
|
|
101
59
|
export { Tooltip } from './Tooltip/index.js';
|
|
102
|
-
export type { TooltipProps } from './Tooltip/index.js';
|
|
103
60
|
export { Tree, TreeNode, TreeNodeExpander } from './Tree/index.js';
|
|
104
|
-
export type {
|
|
105
|
-
export { Anchor,
|
|
106
|
-
export type { AnchorProps, BodyProps, HeadlineProps, LeadingProps, SmallProps, SubheadingProps, TitleProps, BlockquoteProps, CodeProps, KbdProps, TextProps, } from './Typography/index.js';
|
|
61
|
+
export type { NodeData, NodeRenderProps } from './Tree/index.js';
|
|
62
|
+
export { Anchor, Blockquote, Code, Kbd, KbdKeys, Text, } from './Typography/index.js';
|
|
107
63
|
export { Wizard, Stepper, WorkflowDiagram } from './Stepper/index.js';
|
|
108
|
-
export type {
|
|
64
|
+
export type { StepProperties, WizardType, WizardLocalization, StepperLocalization, } from './Stepper/index.js';
|
|
109
65
|
export { SearchBox } from './SearchBox/index.js';
|
|
110
|
-
export
|
|
111
|
-
export { getUserColor, useTheme, ColorValue, MiddleTextTruncation, LinkBox, LinkAction, Icon, Flex, VisuallyHidden, Divider, } from './utils/index.js';
|
|
112
|
-
export type { ThemeType, MiddleTextTruncationProps, IconProps, FlexProps, FlexItemProps, FlexSpacerProps, DividerProps, LinkBoxProps, LinkActionProps, VisuallyHiddenProps, } from './utils/index.js';
|
|
66
|
+
export { getUserColor, ColorValue, MiddleTextTruncation, LinkBox, LinkAction, Icon, Flex, VisuallyHidden, Divider, } from './utils/index.js';
|
package/esm/core/index.js
CHANGED
|
@@ -24,6 +24,7 @@ export { FileUpload, FileUploadTemplate, FileUploadCard, FileEmptyCard, } from '
|
|
|
24
24
|
export { Footer, defaultFooterElements } from './Footer/index.js';
|
|
25
25
|
export { Header, HeaderBreadcrumbs, HeaderButton, HeaderLogo, } from './Header/index.js';
|
|
26
26
|
export { List, ListItem } from './List/index.js';
|
|
27
|
+
export { TransferList } from './TransferList/index.js';
|
|
27
28
|
export { VerticalTabs, Tabs, Tab, HorizontalTabs } from './Tabs/index.js';
|
|
28
29
|
export { InformationPanel, InformationPanelWrapper, InformationPanelHeader, InformationPanelBody, InformationPanelContent, } from './InformationPanel/index.js';
|
|
29
30
|
export { Input } from './Input/index.js';
|
|
@@ -54,7 +55,7 @@ export { ThemeProvider } from './ThemeProvider/index.js';
|
|
|
54
55
|
export { ToggleSwitch } from './ToggleSwitch/index.js';
|
|
55
56
|
export { Tooltip } from './Tooltip/index.js';
|
|
56
57
|
export { Tree, TreeNode, TreeNodeExpander } from './Tree/index.js';
|
|
57
|
-
export { Anchor,
|
|
58
|
+
export { Anchor, Blockquote, Code, Kbd, KbdKeys, Text, } from './Typography/index.js';
|
|
58
59
|
export { Wizard, Stepper, WorkflowDiagram } from './Stepper/index.js';
|
|
59
60
|
export { SearchBox } from './SearchBox/index.js';
|
|
60
|
-
export { getUserColor,
|
|
61
|
+
export { getUserColor, ColorValue, MiddleTextTruncation, LinkBox, LinkAction, Icon, Flex, VisuallyHidden, Divider, } from './utils/index.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { polymorphic } from '../functions/polymorphic.js';
|
|
6
|
+
/**
|
|
7
|
+
* Polymorphic component that renders a div element by default.
|
|
8
|
+
* Intended to be used as a base for other components.
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export const Box = polymorphic.div('');
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export declare type DividerProps = {
|
|
1
|
+
import type { PolymorphicForwardRefComponent } from '../props.js';
|
|
2
|
+
declare type DividerProps = {
|
|
4
3
|
/**
|
|
5
4
|
* Sets the orientation of the divider
|
|
6
5
|
* @default 'horizontal'
|
|
7
6
|
*/
|
|
8
7
|
orientation?: 'horizontal' | 'vertical';
|
|
9
|
-
}
|
|
8
|
+
};
|
|
10
9
|
/**
|
|
11
10
|
* Shows a divider
|
|
12
11
|
*/
|
|
13
|
-
export declare const Divider:
|
|
12
|
+
export declare const Divider: PolymorphicForwardRefComponent<"hr", DividerProps>;
|
|
14
13
|
export default Divider;
|
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import {
|
|
8
|
-
import '@itwin/itwinui-css/css/utils.css';
|
|
7
|
+
import { Box } from './Box.js';
|
|
9
8
|
/**
|
|
10
9
|
* Shows a divider
|
|
11
10
|
*/
|
|
12
11
|
export const Divider = React.forwardRef((props, ref) => {
|
|
13
12
|
const { className, orientation = 'horizontal', ...rest } = props;
|
|
14
|
-
|
|
15
|
-
return (React.createElement("hr", { className: cx('iui-divider', className), "aria-orientation": orientation === 'vertical' ? 'vertical' : undefined, ref: ref, ...rest }));
|
|
13
|
+
return (React.createElement(Box, { as: 'hr', className: cx('iui-divider', className), "aria-orientation": orientation === 'vertical' ? 'vertical' : undefined, ref: ref, ...rest }));
|
|
16
14
|
});
|
|
17
15
|
export default Divider;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { AnyString } from '../types.js';
|
|
3
|
-
import type {
|
|
4
|
-
import '@itwin/itwinui-css/css/utils.css';
|
|
3
|
+
import type { PolymorphicForwardRefComponent } from '../props.js';
|
|
5
4
|
declare const sizeTokens: readonly ["3xs", "2xs", "xs", "s", "m", "l", "xl", "2xl", "3xl"];
|
|
6
5
|
/**
|
|
7
6
|
* String literal shorthands that correspond to the size tokens in [itwinui-variables](https://github.com/iTwin/iTwinUI/blob/main/packages/itwinui-variables/src/sizes.scss).
|
|
@@ -136,7 +135,4 @@ export declare const Flex: PolymorphicForwardRefComponent<"div", FlexOwnProps> &
|
|
|
136
135
|
*/
|
|
137
136
|
Spacer: PolymorphicForwardRefComponent<"div", FlexSpacerOwnProps>;
|
|
138
137
|
};
|
|
139
|
-
export declare type FlexProps = PolymorphicComponentProps<'div', FlexOwnProps>;
|
|
140
|
-
export declare type FlexItemProps = PolymorphicComponentProps<'div', FlexItemOwnProps>;
|
|
141
|
-
export declare type FlexSpacerProps = PolymorphicComponentProps<'div', FlexSpacerOwnProps>;
|
|
142
138
|
export default Flex;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import '
|
|
7
|
+
import { Box } from './Box.js';
|
|
8
8
|
const sizeTokens = [
|
|
9
9
|
'3xs',
|
|
10
10
|
'2xs',
|
|
@@ -25,8 +25,8 @@ const getValueForToken = (token) => {
|
|
|
25
25
|
// ----------------------------------------------------------------------------
|
|
26
26
|
// Main Flex component
|
|
27
27
|
const FlexComponent = React.forwardRef((props, ref) => {
|
|
28
|
-
const {
|
|
29
|
-
return (React.createElement(
|
|
28
|
+
const { display, flexDirection, justifyContent, alignItems, gap, flexWrap, className, style, ...rest } = props;
|
|
29
|
+
return (React.createElement(Box, { className: cx('iui-flex', className), style: {
|
|
30
30
|
'--iui-flex-display': display,
|
|
31
31
|
'--iui-flex-direction': flexDirection,
|
|
32
32
|
'--iui-flex-justify': justifyContent,
|
|
@@ -36,16 +36,18 @@ const FlexComponent = React.forwardRef((props, ref) => {
|
|
|
36
36
|
...style,
|
|
37
37
|
}, ref: ref, ...rest }));
|
|
38
38
|
});
|
|
39
|
+
FlexComponent.displayName = 'Flex';
|
|
39
40
|
// ----------------------------------------------------------------------------
|
|
40
41
|
// Flex.Spacer component
|
|
41
42
|
const FlexSpacer = React.forwardRef((props, ref) => {
|
|
42
|
-
const {
|
|
43
|
-
return (React.createElement(
|
|
43
|
+
const { flex, className, style, ...rest } = props;
|
|
44
|
+
return (React.createElement(Box, { className: cx('iui-flex-spacer', className), style: { '--iui-flex-spacer-flex': flex, ...style }, ref: ref, ...rest }));
|
|
44
45
|
});
|
|
46
|
+
FlexSpacer.displayName = 'Flex.Spacer';
|
|
45
47
|
// ----------------------------------------------------------------------------
|
|
46
48
|
// Flex.Item subcomponent
|
|
47
49
|
const FlexItem = React.forwardRef((props, ref) => {
|
|
48
|
-
const {
|
|
50
|
+
const { gapBefore, gapAfter, flex, alignSelf, className, style, ...rest } = props;
|
|
49
51
|
const _style = {
|
|
50
52
|
'--iui-flex-item-flex': flex,
|
|
51
53
|
'--iui-flex-item-align': alignSelf,
|
|
@@ -59,8 +61,9 @@ const FlexItem = React.forwardRef((props, ref) => {
|
|
|
59
61
|
}),
|
|
60
62
|
...style,
|
|
61
63
|
};
|
|
62
|
-
return (React.createElement(
|
|
64
|
+
return (React.createElement(Box, { className: cx('iui-flex-item', className), ref: ref, style: _style, ...rest }));
|
|
63
65
|
});
|
|
66
|
+
FlexItem.displayName = 'Flex.Item';
|
|
64
67
|
// ----------------------------------------------------------------------------
|
|
65
68
|
// Exported compound component
|
|
66
69
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { AnyString } from '../types.js';
|
|
3
|
-
import '
|
|
3
|
+
import type { PolymorphicForwardRefComponent } from '../props.js';
|
|
4
4
|
export declare type IconProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Size of the svg.
|
|
@@ -39,28 +39,5 @@ export declare type IconProps = {
|
|
|
39
39
|
* <SvgStatusError />
|
|
40
40
|
* </Icon>
|
|
41
41
|
*/
|
|
42
|
-
export declare const Icon:
|
|
43
|
-
/**
|
|
44
|
-
* Size of the svg.
|
|
45
|
-
* - 'medium': works well with most text
|
|
46
|
-
* - 'small': smaller than medium
|
|
47
|
-
* - 'large': larger than medium
|
|
48
|
-
* - 'auto': scales with text
|
|
49
|
-
*
|
|
50
|
-
* Also accepts a custom string value that will be used unchanged.
|
|
51
|
-
*
|
|
52
|
-
* @default 'medium'
|
|
53
|
-
*/
|
|
54
|
-
size?: "small" | "auto" | "medium" | "large" | AnyString | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Fill (color) of the svg.
|
|
57
|
-
* Defaults to `--iui-color-icon-muted`. Can be specified to
|
|
58
|
-
* use one of the status colors.
|
|
59
|
-
*
|
|
60
|
-
* Also accepts a custom string value that will be used unchanged.
|
|
61
|
-
*
|
|
62
|
-
* @default 'default'
|
|
63
|
-
*/
|
|
64
|
-
fill?: "default" | "positive" | "warning" | "negative" | AnyString | "informational" | undefined;
|
|
65
|
-
} & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & React.RefAttributes<HTMLSpanElement>>;
|
|
42
|
+
export declare const Icon: PolymorphicForwardRefComponent<"span", IconProps>;
|
|
66
43
|
export default Icon;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import '
|
|
7
|
+
import { Box } from './Box.js';
|
|
8
8
|
const getSizeValue = (size) => {
|
|
9
9
|
switch (size) {
|
|
10
10
|
case 'small':
|
|
@@ -33,6 +33,6 @@ const getSizeValue = (size) => {
|
|
|
33
33
|
*/
|
|
34
34
|
export const Icon = React.forwardRef((props, ref) => {
|
|
35
35
|
const { size = 'medium', fill = 'default', className, ...rest } = props;
|
|
36
|
-
return (React.createElement(
|
|
36
|
+
return (React.createElement(Box, { as: 'span', className: cx('iui-svg-icon', className), "data-iui-icon-size": getSizeValue(size), "data-iui-icon-color": fill, ref: ref, ...rest }));
|
|
37
37
|
});
|
|
38
38
|
export default Icon;
|
|
@@ -4,30 +4,25 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import '
|
|
7
|
+
import { Box } from './Box.js';
|
|
8
8
|
/**
|
|
9
9
|
* Input container to wrap inputs with label, and add optional message and icon.
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
12
|
export const InputContainer = (props) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const LabelElement = inputId && Element !== 'label' ? 'label' : 'div';
|
|
16
|
-
return (React.createElement(Element, { className: cx('iui-input-container', {
|
|
13
|
+
const { label, disabled, required, status, message, icon, isLabelInline, isIconInline, children, className, style, statusMessage, inputId, labelId, ...rest } = props;
|
|
14
|
+
return (React.createElement(Box, { className: cx('iui-input-container', {
|
|
17
15
|
'iui-disabled': disabled,
|
|
18
16
|
[`iui-${status}`]: !!status,
|
|
19
17
|
'iui-inline-label': isLabelInline,
|
|
20
18
|
'iui-inline-icon': isIconInline,
|
|
21
19
|
'iui-with-message': (!!message || !!icon || !!statusMessage) && !isLabelInline,
|
|
22
20
|
}, className), style: style, ...rest },
|
|
23
|
-
label && (React.createElement(
|
|
21
|
+
label && (React.createElement(Box, { as: inputId && props.as !== 'label' ? 'label' : 'div', className: cx('iui-label', {
|
|
24
22
|
'iui-required': required,
|
|
25
23
|
}), htmlFor: inputId, id: labelId }, label)),
|
|
26
24
|
children,
|
|
27
25
|
statusMessage ? (statusMessage) : (React.createElement(React.Fragment, null,
|
|
28
|
-
icon &&
|
|
29
|
-
|
|
30
|
-
className: cx('iui-input-icon', (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className),
|
|
31
|
-
}),
|
|
32
|
-
message && !isLabelInline && (React.createElement("div", { className: 'iui-message' }, message))))));
|
|
26
|
+
icon && (React.createElement(Box, { as: 'span', className: 'iui-input-icon', "aria-hidden": true }, icon)),
|
|
27
|
+
message && !isLabelInline && (React.createElement(Box, { className: 'iui-message' }, message))))));
|
|
33
28
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
declare type InputFlexContainerOwnProps = {
|
|
1
|
+
import type { PolymorphicForwardRefComponent } from '../props.js';
|
|
2
|
+
export declare type InputFlexContainerProps = {
|
|
4
3
|
isDisabled?: boolean;
|
|
5
4
|
status?: 'positive' | 'warning' | 'negative';
|
|
6
5
|
};
|
|
@@ -8,6 +7,4 @@ declare type InputFlexContainerOwnProps = {
|
|
|
8
7
|
* Utility component for input container with display flex abilities.
|
|
9
8
|
* @private
|
|
10
9
|
*/
|
|
11
|
-
export declare const InputFlexContainer: PolymorphicForwardRefComponent<"div",
|
|
12
|
-
export declare type InputFlexContainerProps = PolymorphicComponentProps<'div', InputFlexContainerOwnProps>;
|
|
13
|
-
export {};
|
|
10
|
+
export declare const InputFlexContainer: PolymorphicForwardRefComponent<"div", InputFlexContainerProps>;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import '
|
|
7
|
+
import { Box } from './Box.js';
|
|
8
8
|
/**
|
|
9
9
|
* Utility component for input container with display flex abilities.
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
12
|
export const InputFlexContainer = React.forwardRef((props, ref) => {
|
|
13
|
-
const {
|
|
14
|
-
return (React.createElement(
|
|
13
|
+
const { isDisabled, status, children, className, style, ...rest } = props;
|
|
14
|
+
return (React.createElement(Box, { className: cx('iui-input-flex-container', className), "data-iui-status": status, "data-iui-disabled": isDisabled ? 'true' : undefined, ref: ref, style: style, ...rest }, children));
|
|
15
15
|
});
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import type { PolymorphicComponentProps, PolymorphicForwardRefComponent } from '../props.js';
|
|
2
|
-
import '@itwin/itwinui-css/css/utils.css';
|
|
3
|
-
declare type LinkActionOwnProps = {};
|
|
4
|
-
declare type LinkBoxOwnProps = {};
|
|
5
|
-
export declare type LinkActionProps = PolymorphicComponentProps<'a', LinkActionOwnProps>;
|
|
6
|
-
export declare type LinkBoxProps = PolymorphicComponentProps<'div', LinkBoxOwnProps>;
|
|
7
1
|
/**
|
|
8
2
|
* Polymorphic link action component.
|
|
9
3
|
* It is rendered as `a` by default.
|
|
@@ -14,7 +8,7 @@ export declare type LinkBoxProps = PolymorphicComponentProps<'div', LinkBoxOwnPr
|
|
|
14
8
|
* </Surface>
|
|
15
9
|
* </LinkBox>
|
|
16
10
|
*/
|
|
17
|
-
export declare const LinkAction: PolymorphicForwardRefComponent<"a",
|
|
11
|
+
export declare const LinkAction: import("../props.js").PolymorphicForwardRefComponent<"a", {}>;
|
|
18
12
|
/**
|
|
19
13
|
* Polymorphic link box component.
|
|
20
14
|
* Used to wrap around your component to use LinkAction.
|
|
@@ -26,5 +20,4 @@ export declare const LinkAction: PolymorphicForwardRefComponent<"a", LinkActionO
|
|
|
26
20
|
* </Surface>
|
|
27
21
|
* </LinkBox>
|
|
28
22
|
*/
|
|
29
|
-
export declare const LinkBox: PolymorphicForwardRefComponent<"div",
|
|
30
|
-
export {};
|
|
23
|
+
export declare const LinkBox: import("../props.js").PolymorphicForwardRefComponent<"div", {}>;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import cx from 'classnames';
|
|
7
|
-
import '@itwin/itwinui-css/css/utils.css';
|
|
5
|
+
import { polymorphic } from '../functions/polymorphic.js';
|
|
8
6
|
/**
|
|
9
7
|
* Polymorphic link action component.
|
|
10
8
|
* It is rendered as `a` by default.
|
|
@@ -15,10 +13,7 @@ import '@itwin/itwinui-css/css/utils.css';
|
|
|
15
13
|
* </Surface>
|
|
16
14
|
* </LinkBox>
|
|
17
15
|
*/
|
|
18
|
-
export const LinkAction =
|
|
19
|
-
const { as: Element = 'a', className, ...rest } = props;
|
|
20
|
-
return (React.createElement(Element, { ref: ref, className: cx('iui-link-action', className), ...rest }));
|
|
21
|
-
});
|
|
16
|
+
export const LinkAction = polymorphic.a('iui-link-action');
|
|
22
17
|
LinkAction.displayName = 'LinkAction';
|
|
23
18
|
/**
|
|
24
19
|
* Polymorphic link box component.
|
|
@@ -31,8 +26,5 @@ LinkAction.displayName = 'LinkAction';
|
|
|
31
26
|
* </Surface>
|
|
32
27
|
* </LinkBox>
|
|
33
28
|
*/
|
|
34
|
-
export const LinkBox =
|
|
35
|
-
const { as: Element = 'div', className, ...rest } = props;
|
|
36
|
-
return (React.createElement(Element, { ref: ref, className: cx('iui-link-box', className), ...rest }));
|
|
37
|
-
});
|
|
29
|
+
export const LinkBox = polymorphic.div('iui-link-box');
|
|
38
30
|
LinkBox.displayName = 'LinkBox';
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import type { TippyProps } from '@tippyjs/react';
|
|
3
3
|
import type { Placement, Instance } from 'tippy.js';
|
|
4
4
|
export declare type PopoverInstance = Instance;
|
|
5
|
-
import '@itwin/itwinui-css/css/utils.css';
|
|
6
5
|
export declare type PopoverProps = {
|
|
7
6
|
/**
|
|
8
7
|
* Controlled flag for whether the popover is visible.
|
|
@@ -26,7 +25,7 @@ export declare type PopoverProps = {
|
|
|
26
25
|
* with pre-configured props and plugins (e.g. lazy mounting, focus, etc).
|
|
27
26
|
* @private
|
|
28
27
|
*/
|
|
29
|
-
export declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, "disabled" | "
|
|
28
|
+
export declare const Popover: React.ForwardRefExoticComponent<Pick<PopoverProps, "disabled" | "className" | "role" | "offset" | "children" | "content" | "plugins" | "theme" | "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<unknown>>;
|
|
30
29
|
/**
|
|
31
30
|
* Plugin to hide Popover when either Esc key is pressed,
|
|
32
31
|
* or when the content inside is not tabbable and Tab key is pressed.
|
|
@@ -6,8 +6,7 @@ import * as React from 'react';
|
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import Tippy from '@tippyjs/react';
|
|
8
8
|
import { useMergedRefs, useIsClient } from '../hooks/index.js';
|
|
9
|
-
import '
|
|
10
|
-
import { ThemeContext } from '../../ThemeProvider/ThemeProvider.js';
|
|
9
|
+
import { ThemeContext } from '../../ThemeProvider/ThemeContext.js';
|
|
11
10
|
/**
|
|
12
11
|
* Wrapper around [tippy.js](https://atomiks.github.io/tippyjs)
|
|
13
12
|
* with pre-configured props and plugins (e.g. lazy mounting, focus, etc).
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import type { PolymorphicComponentProps, PolymorphicForwardRefComponent } from '../props.js';
|
|
1
|
+
import type { PolymorphicForwardRefComponent } from '../props.js';
|
|
3
2
|
declare type VisuallyHiddenOwnProps = {
|
|
4
3
|
/**
|
|
5
4
|
* When VisuallyHidden is used with an interactive element (e.g. button),
|
|
@@ -9,7 +8,6 @@ declare type VisuallyHiddenOwnProps = {
|
|
|
9
8
|
*/
|
|
10
9
|
unhideOnFocus?: boolean;
|
|
11
10
|
};
|
|
12
|
-
export declare type VisuallyHiddenProps = PolymorphicComponentProps<'span', VisuallyHiddenOwnProps>;
|
|
13
11
|
/**
|
|
14
12
|
* Hides content visually but keeps it still accessible to screen readers
|
|
15
13
|
* and other assistive technologies.
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import {
|
|
8
|
-
import '@itwin/itwinui-css/css/utils.css';
|
|
7
|
+
import { Box } from './Box.js';
|
|
9
8
|
/**
|
|
10
9
|
* Hides content visually but keeps it still accessible to screen readers
|
|
11
10
|
* and other assistive technologies.
|
|
@@ -17,8 +16,7 @@ import '@itwin/itwinui-css/css/utils.css';
|
|
|
17
16
|
* @see https://www.scottohara.me/blog/2017/04/14/inclusively-hidden.html
|
|
18
17
|
*/
|
|
19
18
|
export const VisuallyHidden = React.forwardRef((props, ref) => {
|
|
20
|
-
const {
|
|
21
|
-
|
|
22
|
-
return (React.createElement(Element, { className: cx('iui-visually-hidden', className), "data-iui-unhide-on-focus": unhideOnFocus ? true : undefined, ref: ref, ...rest }));
|
|
19
|
+
const { className, unhideOnFocus = true, ...rest } = props;
|
|
20
|
+
return (React.createElement(Box, { as: 'span', className: cx('iui-visually-hidden', className), "data-iui-unhide-on-focus": unhideOnFocus ? true : undefined, ref: ref, ...rest }));
|
|
23
21
|
});
|
|
24
22
|
export default VisuallyHidden;
|
|
@@ -22,3 +22,9 @@ export declare const getWindow: () => (Window & typeof globalThis) | undefined;
|
|
|
22
22
|
* `defaultPrevented` is respected for each callback.
|
|
23
23
|
*/
|
|
24
24
|
export declare const mergeEventHandlers: <E extends import("react").SyntheticEvent<Element, Event>>(...callbacks: (((event: E) => void) | undefined)[]) => (event: E) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Returns translate values as an array of a given element.
|
|
27
|
+
* @param element HTML element you want to get translate value of
|
|
28
|
+
* @returns Translate values in pixels in an array `[translateX, translateY]`
|
|
29
|
+
*/
|
|
30
|
+
export declare const getTranslateValues: (element: HTMLElement | null | undefined) => number[];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
3
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
import styles from '../../../styles.js';
|
|
5
6
|
/**
|
|
6
7
|
* Get the container as a child of body, or create one if it doesn't exist.
|
|
7
8
|
* Mostly used for dynamic components like Modal or Toast.
|
|
@@ -15,7 +16,7 @@ export const getContainer = (containerId, ownerDocument = getDocument()) => {
|
|
|
15
16
|
if (container == null && !!ownerDocument) {
|
|
16
17
|
container = ownerDocument.createElement('div');
|
|
17
18
|
container.setAttribute('id', containerId);
|
|
18
|
-
const root = (_b = ownerDocument.querySelector('
|
|
19
|
+
const root = (_b = ownerDocument.querySelector(`.${styles['iui-root']}`)) !== null && _b !== void 0 ? _b : ownerDocument.body;
|
|
19
20
|
root.appendChild(container);
|
|
20
21
|
}
|
|
21
22
|
return container;
|
|
@@ -46,3 +47,16 @@ export const mergeEventHandlers = (...callbacks) => (event) => {
|
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Returns translate values as an array of a given element.
|
|
52
|
+
* @param element HTML element you want to get translate value of
|
|
53
|
+
* @returns Translate values in pixels in an array `[translateX, translateY]`
|
|
54
|
+
*/
|
|
55
|
+
export const getTranslateValues = (element) => {
|
|
56
|
+
if (!element) {
|
|
57
|
+
return [];
|
|
58
|
+
}
|
|
59
|
+
const transformValue = getComputedStyle(element).getPropertyValue('transform');
|
|
60
|
+
const matrix = new DOMMatrix(transformValue);
|
|
61
|
+
return [matrix.m41, matrix.m42];
|
|
62
|
+
};
|