@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
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '@itwin/itwinui-css/css/stepper.css';
|
|
1
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
2
|
export declare type StepperLocalization = {
|
|
4
3
|
stepsCountLabel: (currentStep: number, totalSteps: number) => string;
|
|
5
4
|
};
|
|
@@ -36,5 +35,5 @@ export declare type StepperProps = {
|
|
|
36
35
|
*/
|
|
37
36
|
onStepClick?: (clickedIndex: number) => void;
|
|
38
37
|
};
|
|
39
|
-
export declare const Stepper:
|
|
38
|
+
export declare const Stepper: PolymorphicForwardRefComponent<"div", StepperProps>;
|
|
40
39
|
export default Stepper;
|
|
@@ -30,7 +30,6 @@ exports.Stepper = void 0;
|
|
|
30
30
|
*--------------------------------------------------------------------------------------------*/
|
|
31
31
|
const React = __importStar(require("react"));
|
|
32
32
|
const index_js_1 = require("../utils/index.js");
|
|
33
|
-
require("@itwin/itwinui-css/css/stepper.css");
|
|
34
33
|
const StepperStep_js_1 = require("./StepperStep.js");
|
|
35
34
|
const defaultStepperLocalization = {
|
|
36
35
|
stepsCountLabel: (currentStep, totalSteps) => `Step ${currentStep} of ${totalSteps}:`,
|
|
@@ -38,11 +37,10 @@ const defaultStepperLocalization = {
|
|
|
38
37
|
exports.Stepper = React.forwardRef((props, ref) => {
|
|
39
38
|
const { currentStep, steps, type = 'default', localization = defaultStepperLocalization, onStepClick, ...rest } = props;
|
|
40
39
|
const boundedCurrentStep = Math.min(Math.max(0, currentStep !== null && currentStep !== void 0 ? currentStep : 0), steps.length - 1);
|
|
41
|
-
(
|
|
42
|
-
return (React.createElement("div", { className: 'iui-stepper', ref: ref, ...rest },
|
|
40
|
+
return (React.createElement(index_js_1.Box, { className: 'iui-stepper', ref: ref, ...rest },
|
|
43
41
|
React.createElement("ol", null, steps.map((s, index) => (React.createElement(StepperStep_js_1.StepperStep, { key: index, index: index, title: type === 'long' ? '' : s.name, currentStepNumber: boundedCurrentStep, totalSteps: steps.length, type: type, onClick: onStepClick, description: s.description })))),
|
|
44
|
-
type === 'long' && (React.createElement(
|
|
45
|
-
React.createElement(
|
|
42
|
+
type === 'long' && (React.createElement(index_js_1.Box, { className: 'iui-stepper-steps-label' },
|
|
43
|
+
React.createElement(index_js_1.Box, { as: 'span', className: 'iui-stepper-steps-label-count' }, localization.stepsCountLabel(boundedCurrentStep + 1, steps.length)),
|
|
46
44
|
steps[boundedCurrentStep].name))));
|
|
47
45
|
});
|
|
48
46
|
exports.default = exports.Stepper;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { StylingProps } from '../utils/index.js';
|
|
1
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
2
|
export declare type StepperStepProps = {
|
|
4
3
|
/**
|
|
5
4
|
* The title/label of the step.
|
|
@@ -29,5 +28,5 @@ export declare type StepperStepProps = {
|
|
|
29
28
|
* A tooltip giving detailed description to this step.
|
|
30
29
|
*/
|
|
31
30
|
description?: string;
|
|
32
|
-
}
|
|
33
|
-
export declare const StepperStep:
|
|
31
|
+
};
|
|
32
|
+
export declare const StepperStep: PolymorphicForwardRefComponent<"li", StepperStepProps>;
|
|
@@ -34,7 +34,8 @@ exports.StepperStep = void 0;
|
|
|
34
34
|
const classnames_1 = __importDefault(require("classnames"));
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
36
|
const index_js_1 = require("../Tooltip/index.js");
|
|
37
|
-
const
|
|
37
|
+
const index_js_2 = require("../utils/index.js");
|
|
38
|
+
exports.StepperStep = React.forwardRef((props, forwardedRef) => {
|
|
38
39
|
const { title, index, currentStepNumber, totalSteps, type, onClick, description, className, style, ...rest } = props;
|
|
39
40
|
const isPast = currentStepNumber > index;
|
|
40
41
|
const isActive = currentStepNumber === index;
|
|
@@ -55,16 +56,15 @@ const StepperStep = (props) => {
|
|
|
55
56
|
onCompletedClick();
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
|
-
const stepShape = (React.createElement(
|
|
59
|
+
const stepShape = (React.createElement(index_js_2.Box, { as: 'li', className: (0, classnames_1.default)('iui-stepper-step', {
|
|
59
60
|
'iui-current': isActive,
|
|
60
61
|
'iui-clickable': isClickable,
|
|
61
62
|
}, className), style: {
|
|
62
63
|
width: type === 'default' ? `${100 / totalSteps}%` : undefined,
|
|
63
64
|
...style,
|
|
64
|
-
}, onClick: onCompletedClick, onKeyDown: onKeyDown, "aria-current": isActive ? 'step' : undefined, tabIndex: isClickable ? 0 : undefined, ...rest },
|
|
65
|
-
React.createElement(
|
|
66
|
-
React.createElement(
|
|
67
|
-
type === 'default' && (React.createElement(
|
|
65
|
+
}, onClick: onCompletedClick, onKeyDown: onKeyDown, "aria-current": isActive ? 'step' : undefined, tabIndex: isClickable ? 0 : undefined, ref: forwardedRef, ...rest },
|
|
66
|
+
React.createElement(index_js_2.Box, { className: 'iui-stepper-track-content' },
|
|
67
|
+
React.createElement(index_js_2.Box, { as: 'span', className: 'iui-stepper-circle' }, index + 1)),
|
|
68
|
+
type === 'default' && (React.createElement(index_js_2.Box, { as: 'span', className: 'iui-stepper-step-name' }, title))));
|
|
68
69
|
return description ? (React.createElement(index_js_1.Tooltip, { content: description }, stepShape)) : (stepShape);
|
|
69
|
-
};
|
|
70
|
-
exports.StepperStep = StepperStep;
|
|
70
|
+
});
|
|
@@ -46,7 +46,9 @@ const WorkflowDiagram_js_1 = require("./WorkflowDiagram.js");
|
|
|
46
46
|
* type='long'
|
|
47
47
|
* />
|
|
48
48
|
*/
|
|
49
|
-
exports.Wizard = React.forwardRef(
|
|
49
|
+
exports.Wizard = React.forwardRef(
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
|
+
(props, ref) => {
|
|
50
52
|
const { currentStep, steps, type = 'default', localization, onStepClick, ...rest } = props;
|
|
51
53
|
return type !== 'workflow' ? (React.createElement(Stepper_js_1.Stepper, { type: type, currentStep: currentStep, steps: steps, localization: localization, onStepClick: onStepClick, ref: ref, ...rest })) : (React.createElement(WorkflowDiagram_js_1.WorkflowDiagram, { steps: steps, ref: ref, ...rest }));
|
|
52
54
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '@itwin/itwinui-css/css/workflow-diagram.css';
|
|
1
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
2
|
import type { StepperProps } from './Stepper.js';
|
|
4
|
-
|
|
5
|
-
export declare const WorkflowDiagram:
|
|
3
|
+
declare type WorkflowDiagramProps = Pick<StepperProps, 'steps'>;
|
|
4
|
+
export declare const WorkflowDiagram: PolymorphicForwardRefComponent<"ol", WorkflowDiagramProps>;
|
|
6
5
|
export default WorkflowDiagram;
|
|
@@ -30,12 +30,12 @@ exports.WorkflowDiagram = void 0;
|
|
|
30
30
|
*--------------------------------------------------------------------------------------------*/
|
|
31
31
|
const React = __importStar(require("react"));
|
|
32
32
|
const index_js_1 = require("../utils/index.js");
|
|
33
|
-
require("@itwin/itwinui-css/css/workflow-diagram.css");
|
|
34
33
|
const WorkflowDiagramStep_js_1 = require("./WorkflowDiagramStep.js");
|
|
35
|
-
exports.WorkflowDiagram = React.forwardRef(
|
|
34
|
+
exports.WorkflowDiagram = React.forwardRef(
|
|
35
|
+
// TODO: Remove this ref cast. ref and rest props should be applied on the same element
|
|
36
|
+
(props, ref) => {
|
|
36
37
|
const { steps, ...rest } = props;
|
|
37
|
-
(
|
|
38
|
-
|
|
39
|
-
React.createElement("ol", { className: 'iui-workflow-diagram', ...rest }, steps.map((s, index) => (React.createElement(WorkflowDiagramStep_js_1.WorkflowDiagramStep, { key: index, title: s.name, description: s.description }))))));
|
|
38
|
+
return (React.createElement(index_js_1.Box, { ref: ref },
|
|
39
|
+
React.createElement(index_js_1.Box, { as: 'ol', className: 'iui-workflow-diagram', ...rest }, steps.map((s, index) => (React.createElement(WorkflowDiagramStep_js_1.WorkflowDiagramStep, { key: index, title: s.name, description: s.description }))))));
|
|
40
40
|
});
|
|
41
41
|
exports.default = exports.WorkflowDiagram;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type
|
|
2
|
+
import { type CommonProps } from '../utils/index.js';
|
|
3
3
|
import type { StepperStepProps } from './StepperStep.js';
|
|
4
|
-
export declare type WorkflowDiagramStepProps = Pick<StepperStepProps, 'title' | 'description'> &
|
|
4
|
+
export declare type WorkflowDiagramStepProps = Pick<StepperStepProps, 'title' | 'description'> & Omit<CommonProps, 'title'>;
|
|
5
5
|
export declare const WorkflowDiagramStep: (props: WorkflowDiagramStepProps) => JSX.Element;
|
|
@@ -34,10 +34,11 @@ exports.WorkflowDiagramStep = void 0;
|
|
|
34
34
|
const classnames_1 = __importDefault(require("classnames"));
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
36
|
const index_js_1 = require("../Tooltip/index.js");
|
|
37
|
+
const index_js_2 = require("../utils/index.js");
|
|
37
38
|
const WorkflowDiagramStep = (props) => {
|
|
38
39
|
const { title, description, className, style, ...rest } = props;
|
|
39
|
-
const stepShape = (React.createElement(
|
|
40
|
-
React.createElement(
|
|
40
|
+
const stepShape = (React.createElement(index_js_2.Box, { as: 'li', className: (0, classnames_1.default)('iui-workflow-diagram-step', className), style: style, ...rest },
|
|
41
|
+
React.createElement(index_js_2.Box, { as: 'span', className: 'iui-workflow-diagram-content' }, title)));
|
|
41
42
|
return description ? (React.createElement(index_js_1.Tooltip, { content: description }, stepShape)) : (stepShape);
|
|
42
43
|
};
|
|
43
44
|
exports.WorkflowDiagramStep = WorkflowDiagramStep;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { Wizard } from './Wizard.js';
|
|
2
2
|
export { Stepper } from './Stepper.js';
|
|
3
3
|
export { WorkflowDiagram } from './WorkflowDiagram.js';
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
6
|
-
export type { WorkflowDiagramProps } from './WorkflowDiagram.js';
|
|
4
|
+
export type { WizardType, WizardLocalization } from './Wizard.js';
|
|
5
|
+
export type { StepProperties, StepperLocalization } from './Stepper.js';
|
|
7
6
|
declare const _default: "./Wizard";
|
|
8
7
|
export default _default;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import '@itwin/itwinui-css/css/surface.css';
|
|
4
|
-
declare type SurfaceHeaderOwnProps = {};
|
|
5
|
-
export declare type SurfaceHeaderProps<T extends React.ElementType = 'div'> = PolymorphicComponentProps<T, SurfaceHeaderOwnProps>;
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
6
3
|
declare type SurfaceBodyOwnProps = {
|
|
7
4
|
/**
|
|
8
5
|
* Gives padding to the surface body
|
|
9
6
|
*/
|
|
10
7
|
isPadded?: boolean;
|
|
11
8
|
};
|
|
12
|
-
|
|
13
|
-
export declare type SurfaceProps = {
|
|
9
|
+
declare type SurfaceProps = {
|
|
14
10
|
/**
|
|
15
11
|
* Sets the elevation of the surface
|
|
16
12
|
*/
|
|
@@ -19,7 +15,7 @@ export declare type SurfaceProps = {
|
|
|
19
15
|
* Content in the surface.
|
|
20
16
|
*/
|
|
21
17
|
children: React.ReactNode;
|
|
22
|
-
}
|
|
18
|
+
};
|
|
23
19
|
/**
|
|
24
20
|
* The Surface container allows content to appear elevated through the use of a drop shadow
|
|
25
21
|
* @example
|
|
@@ -30,20 +26,11 @@ export declare type SurfaceProps = {
|
|
|
30
26
|
* <Surface.Body isPadded={true}>Surface Body Content</Surface.Body>
|
|
31
27
|
* </Surface>
|
|
32
28
|
*/
|
|
33
|
-
export declare const Surface:
|
|
34
|
-
/**
|
|
35
|
-
* Sets the elevation of the surface
|
|
36
|
-
*/
|
|
37
|
-
elevation?: 0 | 1 | 2 | 3 | 4 | 5 | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Content in the surface.
|
|
40
|
-
*/
|
|
41
|
-
children: React.ReactNode;
|
|
42
|
-
} & Omit<CommonProps, "title"> & React.RefAttributes<HTMLDivElement>> & {
|
|
29
|
+
export declare const Surface: PolymorphicForwardRefComponent<"div", SurfaceProps> & {
|
|
43
30
|
/**
|
|
44
31
|
* Surface header subcomponent
|
|
45
32
|
*/
|
|
46
|
-
Header: PolymorphicForwardRefComponent<"div",
|
|
33
|
+
Header: PolymorphicForwardRefComponent<"div", {}>;
|
|
47
34
|
/**
|
|
48
35
|
* Surface body subcomponent. Additional padding can be added to the body through the 'isPadded' prop
|
|
49
36
|
*/
|
|
@@ -34,7 +34,6 @@ exports.Surface = 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/surface.css");
|
|
38
37
|
/**
|
|
39
38
|
* Helper function that returns one of the preset surface elevation values.
|
|
40
39
|
*/
|
|
@@ -56,25 +55,27 @@ const getSurfaceElevationValue = (elevation) => {
|
|
|
56
55
|
return '';
|
|
57
56
|
}
|
|
58
57
|
};
|
|
58
|
+
// ----------------------------------------------------------------------------
|
|
59
|
+
// Surface.Header component
|
|
59
60
|
const SurfaceHeader = React.forwardRef((props, ref) => {
|
|
60
|
-
const {
|
|
61
|
+
const { children, className, ...rest } = props;
|
|
61
62
|
const { setHasLayout } = (0, index_js_1.useSafeContext)(SurfaceContext);
|
|
62
63
|
React.useEffect(() => {
|
|
63
64
|
if (!(0, index_js_1.supportsHas)()) {
|
|
64
65
|
setHasLayout(true);
|
|
65
66
|
}
|
|
66
67
|
}, [setHasLayout]);
|
|
67
|
-
return (React.createElement(
|
|
68
|
+
return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-surface-header', className), ref: ref, ...rest }, children));
|
|
68
69
|
});
|
|
69
70
|
const SurfaceBody = React.forwardRef((props, ref) => {
|
|
70
|
-
const {
|
|
71
|
+
const { children, className, isPadded, ...rest } = props;
|
|
71
72
|
const { setHasLayout } = (0, index_js_1.useSafeContext)(SurfaceContext);
|
|
72
73
|
React.useEffect(() => {
|
|
73
74
|
if (!(0, index_js_1.supportsHas)()) {
|
|
74
75
|
setHasLayout(true);
|
|
75
76
|
}
|
|
76
77
|
}, [setHasLayout]);
|
|
77
|
-
return (React.createElement(
|
|
78
|
+
return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-surface-body', className), ref: ref, "data-iui-padded": isPadded ? 'true' : undefined, ...rest }, children));
|
|
78
79
|
});
|
|
79
80
|
/**
|
|
80
81
|
* The Surface container allows content to appear elevated through the use of a drop shadow
|
|
@@ -88,13 +89,12 @@ const SurfaceBody = React.forwardRef((props, ref) => {
|
|
|
88
89
|
*/
|
|
89
90
|
exports.Surface = Object.assign(React.forwardRef((props, ref) => {
|
|
90
91
|
const { elevation, className, style, children, ...rest } = props;
|
|
91
|
-
(0, index_js_1.useTheme)();
|
|
92
92
|
const [hasLayout, setHasLayout] = React.useState(false);
|
|
93
93
|
const _style = {
|
|
94
94
|
'--iui-surface-elevation': getSurfaceElevationValue(elevation),
|
|
95
95
|
...style,
|
|
96
96
|
};
|
|
97
|
-
return (React.createElement(
|
|
97
|
+
return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-surface', className), style: _style, ref: ref, "data-iui-layout": hasLayout ? 'true' : undefined, ...rest },
|
|
98
98
|
React.createElement(SurfaceContext.Provider, { value: { setHasLayout } }, children)));
|
|
99
99
|
}), {
|
|
100
100
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { CellProps, TableOptions, Row, TableState } from 'react-table';
|
|
3
3
|
import type { CommonProps } from '../utils/index.js';
|
|
4
|
-
import '@itwin/itwinui-css/css/table.css';
|
|
5
4
|
import type { TableFilterValue } from './filters/index.js';
|
|
6
5
|
export declare const tableResizeStartAction = "tableResizeStart";
|
|
7
6
|
export declare type TablePaginatorRendererProps = {
|
package/cjs/core/Table/Table.js
CHANGED
|
@@ -36,7 +36,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
36
36
|
const react_table_1 = require("react-table");
|
|
37
37
|
const index_js_1 = require("../ProgressIndicators/index.js");
|
|
38
38
|
const index_js_2 = require("../utils/index.js");
|
|
39
|
-
require("@itwin/itwinui-css/css/table.css");
|
|
40
39
|
const utils_js_1 = require("./utils.js");
|
|
41
40
|
const TableRowMemoized_js_1 = require("./TableRowMemoized.js");
|
|
42
41
|
const index_js_3 = require("./filters/index.js");
|
|
@@ -105,7 +104,7 @@ const flattenColumns = (columns) => {
|
|
|
105
104
|
*/
|
|
106
105
|
const Table = (props) => {
|
|
107
106
|
const { data, columns, isLoading = false, emptyTableContent, className, style, id, isSelectable = false, onSelect, onRowClick, selectionMode = 'multi', isSortable = false, onSort, stateReducer, onBottomReached, onRowInViewport, intersectionMargin = 300, subComponent, onExpand, onFilter, globalFilterValue, emptyFilteredTableContent, filterTypes: filterFunctions, expanderCell, isRowDisabled, rowProps, density = 'default', selectSubRows = true, getSubRows, selectRowOnClick = true, paginatorRenderer, pageSize = 25, isResizable = false, columnResizeMode = 'fit', styleType = 'default', enableVirtualization = false, enableColumnReordering = false, ...rest } = props;
|
|
108
|
-
(0, index_js_2.
|
|
107
|
+
(0, index_js_2.useGlobals)();
|
|
109
108
|
const ownerDocument = React.useRef();
|
|
110
109
|
const defaultColumn = React.useMemo(() => ({
|
|
111
110
|
maxWidth: 0,
|
|
@@ -409,7 +408,7 @@ const Table = (props) => {
|
|
|
409
408
|
}, []);
|
|
410
409
|
const isHeaderDirectClick = React.useRef(false);
|
|
411
410
|
return (React.createElement(React.Fragment, null,
|
|
412
|
-
React.createElement(
|
|
411
|
+
React.createElement(index_js_2.Box, { ref: (element) => {
|
|
413
412
|
ownerDocument.current = element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
414
413
|
if (isResizable) {
|
|
415
414
|
resizeRef(element);
|
|
@@ -428,14 +427,14 @@ const Table = (props) => {
|
|
|
428
427
|
const headerGroupProps = headerGroup.getHeaderGroupProps({
|
|
429
428
|
className: 'iui-table-row',
|
|
430
429
|
});
|
|
431
|
-
return (React.createElement(
|
|
430
|
+
return (React.createElement(index_js_2.Box, { className: 'iui-table-header-wrapper', ref: headerRef, onScroll: () => {
|
|
432
431
|
if (headerRef.current && bodyRef.current) {
|
|
433
432
|
bodyRef.current.scrollLeft = headerRef.current.scrollLeft;
|
|
434
433
|
updateStickyState();
|
|
435
434
|
}
|
|
436
435
|
}, key: headerGroupProps.key },
|
|
437
|
-
React.createElement(
|
|
438
|
-
React.createElement(
|
|
436
|
+
React.createElement(index_js_2.Box, { className: 'iui-table-header' },
|
|
437
|
+
React.createElement(index_js_2.Box, { ...headerGroupProps }, headerGroup.headers.map((column, index) => {
|
|
439
438
|
const { onClick, ...restSortProps } = column.getSortByToggleProps();
|
|
440
439
|
const columnProps = column.getHeaderProps({
|
|
441
440
|
...restSortProps,
|
|
@@ -450,7 +449,7 @@ const Table = (props) => {
|
|
|
450
449
|
flexWrap: 'unset',
|
|
451
450
|
},
|
|
452
451
|
});
|
|
453
|
-
return (React.createElement(
|
|
452
|
+
return (React.createElement(index_js_2.Box, { ...columnProps, ...column.getDragAndDropProps(), key: columnProps.key, title: undefined, ref: (el) => {
|
|
454
453
|
if (el) {
|
|
455
454
|
columnRefs.current[column.id] = el;
|
|
456
455
|
column.resizeWidth =
|
|
@@ -471,24 +470,24 @@ const Table = (props) => {
|
|
|
471
470
|
} },
|
|
472
471
|
column.render('Header'),
|
|
473
472
|
(showFilterButton(column) ||
|
|
474
|
-
showSortButton(column)) && (React.createElement(
|
|
473
|
+
showSortButton(column)) && (React.createElement(index_js_2.Box, { className: 'iui-table-header-actions-container' },
|
|
475
474
|
showFilterButton(column) && (React.createElement(index_js_3.FilterToggle, { column: column })),
|
|
476
|
-
showSortButton(column) && (React.createElement(
|
|
475
|
+
showSortButton(column) && (React.createElement(index_js_2.Box, { className: 'iui-table-cell-end-icon' }, column.isSortedDesc ||
|
|
477
476
|
(!column.isSorted && column.sortDescFirst) ? (React.createElement(index_js_2.SvgSortDown, { className: 'iui-table-sort', "aria-hidden": true })) : (React.createElement(index_js_2.SvgSortUp, { className: 'iui-table-sort', "aria-hidden": true })))))),
|
|
478
477
|
isResizable &&
|
|
479
478
|
column.isResizerVisible &&
|
|
480
479
|
(index !== headerGroup.headers.length - 1 ||
|
|
481
|
-
columnResizeMode === 'expand') && (React.createElement(
|
|
482
|
-
React.createElement(
|
|
480
|
+
columnResizeMode === 'expand') && (React.createElement(index_js_2.Box, { ...column.getResizerProps(), className: 'iui-table-resizer' },
|
|
481
|
+
React.createElement(index_js_2.Box, { className: 'iui-table-resizer-bar' }))),
|
|
483
482
|
enableColumnReordering &&
|
|
484
|
-
!column.disableReordering && (React.createElement(
|
|
483
|
+
!column.disableReordering && (React.createElement(index_js_2.Box, { className: 'iui-table-reorder-bar' })),
|
|
485
484
|
column.sticky === 'left' &&
|
|
486
|
-
state.sticky.isScrolledToRight && (React.createElement(
|
|
485
|
+
state.sticky.isScrolledToRight && (React.createElement(index_js_2.Box, { className: 'iui-table-cell-shadow-right' })),
|
|
487
486
|
column.sticky === 'right' &&
|
|
488
|
-
state.sticky.isScrolledToLeft && (React.createElement(
|
|
487
|
+
state.sticky.isScrolledToLeft && (React.createElement(index_js_2.Box, { className: 'iui-table-cell-shadow-left' }))));
|
|
489
488
|
})))));
|
|
490
489
|
}),
|
|
491
|
-
React.createElement(
|
|
490
|
+
React.createElement(index_js_2.Box, { ...getTableBodyProps({
|
|
492
491
|
className: (0, classnames_1.default)('iui-table-body', {
|
|
493
492
|
'iui-zebra-striping': styleType === 'zebra-rows',
|
|
494
493
|
}),
|
|
@@ -500,16 +499,16 @@ const Table = (props) => {
|
|
|
500
499
|
}
|
|
501
500
|
}, tabIndex: -1, "aria-multiselectable": (isSelectable && selectionMode === 'multi') || undefined },
|
|
502
501
|
data.length !== 0 && (React.createElement(React.Fragment, null, enableVirtualization ? (React.createElement(VirtualScroll_js_1.default, { itemsLength: page.length, itemRenderer: virtualizedItemRenderer, scrollToIndex: scrollToIndex })) : (page.map((_, index) => getPreparedRow(index))))),
|
|
503
|
-
isLoading && data.length === 0 && (React.createElement(
|
|
502
|
+
isLoading && data.length === 0 && (React.createElement(index_js_2.Box, { className: 'iui-table-empty' },
|
|
504
503
|
React.createElement(index_js_1.ProgressRadial, { indeterminate: true }))),
|
|
505
|
-
isLoading && data.length !== 0 && (React.createElement(
|
|
506
|
-
React.createElement(
|
|
504
|
+
isLoading && data.length !== 0 && (React.createElement(index_js_2.Box, { className: 'iui-table-row' },
|
|
505
|
+
React.createElement(index_js_2.Box, { className: 'iui-table-cell', style: { justifyContent: 'center' } },
|
|
507
506
|
React.createElement(index_js_1.ProgressRadial, { indeterminate: true, size: 'small', style: { float: 'none', marginLeft: 0 } })))),
|
|
508
|
-
!isLoading && data.length === 0 && !areFiltersSet && (React.createElement(
|
|
507
|
+
!isLoading && data.length === 0 && !areFiltersSet && (React.createElement(index_js_2.Box, { className: 'iui-table-empty' },
|
|
509
508
|
React.createElement("div", null, emptyTableContent))),
|
|
510
509
|
!isLoading &&
|
|
511
510
|
(data.length === 0 || rows.length === 0) &&
|
|
512
|
-
areFiltersSet && (React.createElement(
|
|
511
|
+
areFiltersSet && (React.createElement(index_js_2.Box, { className: 'iui-table-empty' },
|
|
513
512
|
React.createElement("div", null, emptyFilteredTableContent)))), paginatorRenderer === null || paginatorRenderer === void 0 ? void 0 :
|
|
514
513
|
paginatorRenderer(paginatorRendererProps))));
|
|
515
514
|
};
|
|
@@ -37,6 +37,7 @@ const utils_js_1 = require("./utils.js");
|
|
|
37
37
|
const SubRowExpander_js_1 = require("./SubRowExpander.js");
|
|
38
38
|
const index_js_1 = require("./columns/index.js");
|
|
39
39
|
const index_js_2 = require("./cells/index.js");
|
|
40
|
+
const index_js_3 = require("../utils/index.js");
|
|
40
41
|
const TableCell = (props) => {
|
|
41
42
|
const { cell, cellIndex, isDisabled, tableHasSubRows, tableInstance, expanderCell, density, } = props;
|
|
42
43
|
const hasSubRowExpander = cellIndex ===
|
|
@@ -85,9 +86,9 @@ const TableCell = (props) => {
|
|
|
85
86
|
children: (React.createElement(React.Fragment, null,
|
|
86
87
|
cellContent,
|
|
87
88
|
cell.column.sticky === 'left' &&
|
|
88
|
-
tableInstance.state.sticky.isScrolledToRight && (React.createElement(
|
|
89
|
+
tableInstance.state.sticky.isScrolledToRight && (React.createElement(index_js_3.Box, { className: 'iui-table-cell-shadow-right' })),
|
|
89
90
|
cell.column.sticky === 'right' &&
|
|
90
|
-
tableInstance.state.sticky.isScrolledToLeft && (React.createElement(
|
|
91
|
+
tableInstance.state.sticky.isScrolledToLeft && (React.createElement(index_js_3.Box, { className: 'iui-table-cell-shadow-left' })))),
|
|
91
92
|
};
|
|
92
93
|
return (React.createElement(React.Fragment, null, cell.column.cellRenderer ? (cell.column.cellRenderer({
|
|
93
94
|
...cellRendererProps,
|
|
@@ -33,7 +33,6 @@ exports.TablePaginator = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
|
-
require("@itwin/itwinui-css/css/table.css");
|
|
37
36
|
const index_js_1 = require("../Buttons/index.js");
|
|
38
37
|
const index_js_2 = require("../ProgressIndicators/index.js");
|
|
39
38
|
const index_js_3 = require("../Menu/index.js");
|
|
@@ -60,7 +59,7 @@ const defaultLocalization = {
|
|
|
60
59
|
*/
|
|
61
60
|
const TablePaginator = (props) => {
|
|
62
61
|
const { currentPage, totalRowsCount, pageSize, onPageChange, totalSelectedRowsCount = 0, focusActivationMode = 'manual', isLoading = false, size = 'default', pageSizeList, onPageSizeChange, localization: userLocalization, className, ...rest } = props;
|
|
63
|
-
(0, index_js_4.
|
|
62
|
+
(0, index_js_4.useGlobals)();
|
|
64
63
|
const localization = React.useMemo(() => ({ ...defaultLocalization, ...userLocalization }), [userLocalization]);
|
|
65
64
|
const pageListRef = React.useRef(null);
|
|
66
65
|
const [focusedIndex, setFocusedIndex] = React.useState(currentPage);
|
|
@@ -81,7 +80,7 @@ const TablePaginator = (props) => {
|
|
|
81
80
|
isMounted.current = true;
|
|
82
81
|
}, [focusedIndex]);
|
|
83
82
|
const buttonSize = size != 'default' ? 'small' : undefined;
|
|
84
|
-
const pageButton = React.useCallback((index, tabIndex = index === focusedIndex ? 0 : -1) => (React.createElement(
|
|
83
|
+
const pageButton = React.useCallback((index, tabIndex = index === focusedIndex ? 0 : -1) => (React.createElement(index_js_4.Box, { as: 'button', key: index, type: 'button', className: (0, classnames_1.default)('iui-table-paginator-page-button', {
|
|
85
84
|
'iui-table-paginator-page-button-small': buttonSize === 'small',
|
|
86
85
|
}), "data-iui-active": index === currentPage, onClick: () => onPageChange(index), "aria-current": index === currentPage, "aria-label": localization.goToPageLabel(index + 1), tabIndex: tabIndex }, index + 1)), [focusedIndex, currentPage, localization, buttonSize, onPageChange]);
|
|
87
86
|
const totalPagesCount = Math.ceil(totalRowsCount / pageSize);
|
|
@@ -142,19 +141,19 @@ const TablePaginator = (props) => {
|
|
|
142
141
|
const hasNoRows = totalPagesCount === 0;
|
|
143
142
|
const showPagesList = totalPagesCount > 1 || isLoading;
|
|
144
143
|
const showPageSizeList = pageSizeList && !!onPageSizeChange && !!totalRowsCount;
|
|
145
|
-
const ellipsis = (React.createElement(
|
|
144
|
+
const ellipsis = (React.createElement(index_js_4.Box, { as: 'span', className: (0, classnames_1.default)('iui-table-paginator-ellipsis', {
|
|
146
145
|
'iui-table-paginator-ellipsis-small': size === 'small',
|
|
147
146
|
}) }, "\u2026"));
|
|
148
147
|
const noRowsContent = (React.createElement(React.Fragment, null, isLoading ? (React.createElement(index_js_2.ProgressRadial, { indeterminate: true, size: 'small' })) : (React.createElement(index_js_1.Button, { styleType: 'borderless', disabled: true, size: buttonSize }, "1"))));
|
|
149
148
|
if (!showPagesList && !showPageSizeList) {
|
|
150
149
|
return null;
|
|
151
150
|
}
|
|
152
|
-
return (React.createElement(
|
|
153
|
-
React.createElement(
|
|
154
|
-
showPagesList && (React.createElement(
|
|
151
|
+
return (React.createElement(index_js_4.Box, { className: (0, classnames_1.default)('iui-table-paginator', className), ref: paginatorResizeRef, ...rest },
|
|
152
|
+
React.createElement(index_js_4.Box, { className: 'iui-left' }, totalSelectedRowsCount > 0 && (React.createElement("span", null, localization.rowsSelectedLabel(totalSelectedRowsCount)))),
|
|
153
|
+
showPagesList && (React.createElement(index_js_4.Box, { className: 'iui-center', ref: overflowRef },
|
|
155
154
|
React.createElement(index_js_1.IconButton, { styleType: 'borderless', disabled: currentPage === 0, onClick: () => onPageChange(currentPage - 1), size: buttonSize, "aria-label": localization.previousPage },
|
|
156
155
|
React.createElement(index_js_4.SvgChevronLeft, null)),
|
|
157
|
-
React.createElement(
|
|
156
|
+
React.createElement(index_js_4.Box, { as: 'span', className: 'iui-table-paginator-pages-group', onKeyDown: onKeyDown, ref: pageListRef }, (() => {
|
|
158
157
|
if (hasNoRows) {
|
|
159
158
|
return noRowsContent;
|
|
160
159
|
}
|
|
@@ -175,9 +174,9 @@ const TablePaginator = (props) => {
|
|
|
175
174
|
})()),
|
|
176
175
|
React.createElement(index_js_1.IconButton, { styleType: 'borderless', disabled: currentPage === totalPagesCount - 1 || hasNoRows, onClick: () => onPageChange(currentPage + 1), size: buttonSize, "aria-label": localization.nextPage },
|
|
177
176
|
React.createElement(index_js_4.SvgChevronRight, null)))),
|
|
178
|
-
React.createElement(
|
|
177
|
+
React.createElement(index_js_4.Box, { className: 'iui-right' }, showPageSizeList && (React.createElement(React.Fragment, null,
|
|
179
178
|
localization.rowsPerPageLabel !== null &&
|
|
180
|
-
paginatorWidth >= 1024 && (React.createElement(
|
|
179
|
+
paginatorWidth >= 1024 && (React.createElement(index_js_4.Box, { as: 'span', className: 'iui-table-paginator-page-size-label' }, localization.rowsPerPageLabel)),
|
|
181
180
|
React.createElement(index_js_1.DropdownButton, { styleType: 'borderless', size: buttonSize, menuItems: (close) => pageSizeList.map((size) => (React.createElement(index_js_3.MenuItem, { key: size, isSelected: size === pageSize, onClick: () => {
|
|
182
181
|
close();
|
|
183
182
|
onPageSizeChange(size);
|
|
@@ -80,7 +80,7 @@ const TableRow = (props) => {
|
|
|
80
80
|
};
|
|
81
81
|
const refs = (0, index_js_1.useMergedRefs)(intersectionRef, mergedProps.ref, tableRowRef);
|
|
82
82
|
return (React.createElement(React.Fragment, null,
|
|
83
|
-
React.createElement(
|
|
83
|
+
React.createElement(index_js_1.Box, { ...mergedProps, ref: refs, onClick: (event) => {
|
|
84
84
|
var _a;
|
|
85
85
|
(_a = mergedProps === null || mergedProps === void 0 ? void 0 : mergedProps.onClick) === null || _a === void 0 ? void 0 : _a.call(mergedProps, event);
|
|
86
86
|
onClick === null || onClick === void 0 ? void 0 : onClick(event, row);
|
|
@@ -88,7 +88,7 @@ const TableRow = (props) => {
|
|
|
88
88
|
return (React.createElement(TableCell_js_1.TableCell, { key: cell.getCellProps().key, cell: cell, cellIndex: index, isDisabled: isDisabled, tableHasSubRows: tableHasSubRows, tableInstance: tableInstance, expanderCell: expanderCell, density: density }));
|
|
89
89
|
})),
|
|
90
90
|
subComponent && (React.createElement(index_js_1.WithCSSTransition, { in: row.isExpanded },
|
|
91
|
-
React.createElement(
|
|
91
|
+
React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-table-row', 'iui-table-expanded-content'), "aria-disabled": isDisabled }, subComponent(row))))));
|
|
92
92
|
};
|
|
93
93
|
exports.TableRow = TableRow;
|
|
94
94
|
const hasAnySelectedSubRow = (row, selectedRowIds) => {
|
|
@@ -33,6 +33,7 @@ exports.DefaultCell = void 0;
|
|
|
33
33
|
*--------------------------------------------------------------------------------------------*/
|
|
34
34
|
const React = __importStar(require("react"));
|
|
35
35
|
const classnames_1 = __importDefault(require("classnames"));
|
|
36
|
+
const index_js_1 = require("../../utils/index.js");
|
|
36
37
|
/**
|
|
37
38
|
* Default cell.
|
|
38
39
|
* It should be passed to `cellRenderer`.
|
|
@@ -48,10 +49,10 @@ const DefaultCell = (props) => {
|
|
|
48
49
|
// Omitting `cellProps`
|
|
49
50
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
51
|
const { cellElementProps: { className: cellElementClassName, style: cellElementStyle, ...cellElementProps }, children, startIcon, endIcon, cellProps, isDisabled, className, style, status, ...rest } = props;
|
|
51
|
-
return (React.createElement(
|
|
52
|
-
startIcon && (React.createElement(
|
|
52
|
+
return (React.createElement(index_js_1.Box, { ...cellElementProps, ...rest, className: (0, classnames_1.default)(cellElementClassName, className), "aria-disabled": (isDisabled === null || isDisabled === void 0 ? void 0 : isDisabled(cellProps.row.original)) || undefined, "data-iui-status": status, style: { ...cellElementStyle, ...style } },
|
|
53
|
+
startIcon && (React.createElement(index_js_1.Box, { className: 'iui-table-cell-start-icon' }, startIcon)),
|
|
53
54
|
children,
|
|
54
|
-
endIcon && React.createElement(
|
|
55
|
+
endIcon && React.createElement(index_js_1.Box, { className: 'iui-table-cell-end-icon' }, endIcon)));
|
|
55
56
|
};
|
|
56
57
|
exports.DefaultCell = DefaultCell;
|
|
57
58
|
exports.default = exports.DefaultCell;
|
|
@@ -52,7 +52,7 @@ const EditableCell = (props) => {
|
|
|
52
52
|
}, [cellProps.value]);
|
|
53
53
|
const [key, setKey] = React.useState((0, index_js_1.getRandomValue)(10));
|
|
54
54
|
const [isDirty, setIsDirty] = React.useState(false);
|
|
55
|
-
return (React.createElement(
|
|
55
|
+
return (React.createElement(index_js_1.Box, { ...cellElementProps, contentEditable: true, suppressContentEditableWarning: true, key: key, ...rest, onInput: (e) => {
|
|
56
56
|
var _a;
|
|
57
57
|
setValue(sanitizeString(e.target.innerText));
|
|
58
58
|
setIsDirty(true);
|
|
@@ -104,7 +104,7 @@ const ActionColumn = ({ columnManager = false, } = {}) => {
|
|
|
104
104
|
(_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView();
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
return (React.createElement(index_js_5.MenuItem, { key: column.id,
|
|
107
|
+
return (React.createElement(index_js_5.MenuItem, { key: column.id, startIcon: React.createElement(index_js_1.Checkbox, { checked: checked, disabled: column.disableToggleVisibility, onClick: (e) => e.stopPropagation(), onChange: onClick, "aria-labelledby": `iui-column-${column.id}` }), onClick: onClick, disabled: column.disableToggleVisibility },
|
|
108
108
|
React.createElement("div", { id: `iui-column-${column.id}` }, column.render('Header'))));
|
|
109
109
|
});
|
|
110
110
|
const dropdownMenuProps = typeof columnManager !== 'boolean'
|
|
@@ -8,7 +8,7 @@ export declare const EXPANDER_CELL_ID = "iui-table-expander";
|
|
|
8
8
|
* const subComponent = useCallback(
|
|
9
9
|
* (row: Row) => (
|
|
10
10
|
* <div style={{ padding: 16 }}>
|
|
11
|
-
* <
|
|
11
|
+
* <Text variant='leading'>Extra information</Text>
|
|
12
12
|
* <pre>
|
|
13
13
|
* <code>{JSON.stringify({ values: row.values }, null, 2)}</code>
|
|
14
14
|
* </pre>
|
|
@@ -40,7 +40,7 @@ exports.EXPANDER_CELL_ID = 'iui-table-expander';
|
|
|
40
40
|
* const subComponent = useCallback(
|
|
41
41
|
* (row: Row) => (
|
|
42
42
|
* <div style={{ padding: 16 }}>
|
|
43
|
-
* <
|
|
43
|
+
* <Text variant='leading'>Extra information</Text>
|
|
44
44
|
* <pre>
|
|
45
45
|
* <code>{JSON.stringify({ values: row.values }, null, 2)}</code>
|
|
46
46
|
* </pre>
|