@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,13 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import '
|
|
3
|
-
|
|
4
|
-
export declare type FileUploadCardInfoProps = React.ComponentPropsWithRef<'span'>;
|
|
5
|
-
export declare type FileUploadCardTitleProps = React.ComponentPropsWithRef<'span'>;
|
|
6
|
-
export declare type FileUploadCardDescriptionProps = React.ComponentPropsWithRef<'span'>;
|
|
7
|
-
export declare type FileUploadCardActionProps = React.ComponentPropsWithRef<'div'>;
|
|
8
|
-
export declare type FileUploadCardInputLabelProps = React.ComponentPropsWithRef<'label'>;
|
|
9
|
-
export declare type FileUploadCardInputProps = React.ComponentPropsWithRef<'input'>;
|
|
10
|
-
export declare type FileUploadCardProps = {
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
+
declare type FileUploadCardProps = {
|
|
11
4
|
/**
|
|
12
5
|
* Files to pass (only needed when passing a custom action)
|
|
13
6
|
*/
|
|
@@ -27,7 +20,7 @@ export declare type FileUploadCardProps = {
|
|
|
27
20
|
* @default <FileUploadCard.Input />
|
|
28
21
|
*/
|
|
29
22
|
input?: React.ReactNode;
|
|
30
|
-
}
|
|
23
|
+
};
|
|
31
24
|
/**
|
|
32
25
|
* Default card to be used with the `FileUpload` wrapper component for single-file uploading.
|
|
33
26
|
* @example
|
|
@@ -52,48 +45,14 @@ export declare type FileUploadCardProps = {
|
|
|
52
45
|
* </FileUploadCard.Action>
|
|
53
46
|
* </FileUploadCard>
|
|
54
47
|
*/
|
|
55
|
-
export declare const FileUploadCard:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
onFilesChange?: ((files: File[]) => void) | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Node that is shown when there is no file uploaded
|
|
66
|
-
* Either pass `FileEmptyCard` (for default state) or a different component to show
|
|
67
|
-
* @default <FileEmptyCard />
|
|
68
|
-
*/
|
|
69
|
-
emptyCard?: React.ReactNode;
|
|
70
|
-
/**
|
|
71
|
-
* Input node
|
|
72
|
-
* @default <FileUploadCard.Input />
|
|
73
|
-
*/
|
|
74
|
-
input?: React.ReactNode;
|
|
75
|
-
} & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>> & {
|
|
76
|
-
Icon: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
|
77
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
78
|
-
}, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & React.RefAttributes<HTMLSpanElement>>;
|
|
79
|
-
Info: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
|
80
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
81
|
-
}, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & React.RefAttributes<HTMLSpanElement>>;
|
|
82
|
-
Title: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
|
83
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
84
|
-
}, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & React.RefAttributes<HTMLSpanElement>>;
|
|
85
|
-
Description: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
|
86
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
87
|
-
}, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & React.RefAttributes<HTMLSpanElement>>;
|
|
88
|
-
Action: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
89
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
90
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
InputLabel: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "key" | keyof React.LabelHTMLAttributes<HTMLLabelElement>> & {
|
|
92
|
-
ref?: ((instance: HTMLLabelElement | null) => void) | React.RefObject<HTMLLabelElement> | null | undefined;
|
|
93
|
-
}, "key" | keyof React.LabelHTMLAttributes<HTMLLabelElement>> & React.RefAttributes<HTMLLabelElement>>;
|
|
94
|
-
Input: React.ForwardRefExoticComponent<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
95
|
-
ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
96
|
-
}, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
48
|
+
export declare const FileUploadCard: PolymorphicForwardRefComponent<"div", FileUploadCardProps> & {
|
|
49
|
+
Icon: PolymorphicForwardRefComponent<"span", {}>;
|
|
50
|
+
Info: PolymorphicForwardRefComponent<"span", {}>;
|
|
51
|
+
Title: PolymorphicForwardRefComponent<"span", {}>;
|
|
52
|
+
Description: PolymorphicForwardRefComponent<"span", {}>;
|
|
53
|
+
Action: PolymorphicForwardRefComponent<"div", {}>;
|
|
54
|
+
InputLabel: PolymorphicForwardRefComponent<"label", {}>;
|
|
55
|
+
Input: PolymorphicForwardRefComponent<"input", {}>;
|
|
97
56
|
};
|
|
98
57
|
export default FileUploadCard;
|
|
99
58
|
export declare const FileUploadCardContext: React.Context<{
|
|
@@ -36,7 +36,6 @@ const index_js_1 = require("../utils/index.js");
|
|
|
36
36
|
const classnames_1 = __importDefault(require("classnames"));
|
|
37
37
|
const FileEmptyCard_js_1 = require("./FileEmptyCard.js");
|
|
38
38
|
const Anchor_js_1 = require("../Typography/Anchor/Anchor.js");
|
|
39
|
-
require("@itwin/itwinui-css/css/file-upload.css");
|
|
40
39
|
const toBytes = (bytes) => {
|
|
41
40
|
const units = [' bytes', 'KB', 'MB', 'GB', 'TB'];
|
|
42
41
|
let i = 0;
|
|
@@ -49,23 +48,27 @@ const toDate = (dateNumber) => {
|
|
|
49
48
|
const date = new Date(dateNumber);
|
|
50
49
|
return date.toDateString() + ' ' + date.toLocaleTimeString();
|
|
51
50
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
// ----------------------------------------------------------------------------
|
|
52
|
+
// FileUploadCard.Icon component
|
|
53
|
+
const FileUploadCardIcon = index_js_1.polymorphic.span('iui-file-card-icon', {
|
|
54
|
+
children: React.createElement(index_js_1.SvgDocument, null),
|
|
55
55
|
});
|
|
56
56
|
FileUploadCardIcon.displayName = 'FileUploadCard.Icon';
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
57
|
+
// ----------------------------------------------------------------------------
|
|
58
|
+
// FileUploadCard.Info component
|
|
59
|
+
const FileUploadCardInfo = index_js_1.polymorphic.span('iui-file-card-text');
|
|
61
60
|
FileUploadCardInfo.displayName = 'FileUploadCard.Info';
|
|
61
|
+
// ----------------------------------------------------------------------------
|
|
62
|
+
// FileUploadCard.Title component
|
|
62
63
|
const FileUploadCardTitle = React.forwardRef((props, ref) => {
|
|
63
64
|
const { children, className, ...rest } = props;
|
|
64
65
|
const { files } = (0, index_js_1.useSafeContext)(exports.FileUploadCardContext);
|
|
65
66
|
const title = files.length > 1 ? files.length + ' files selected' : files[0].name;
|
|
66
|
-
return (React.createElement(
|
|
67
|
+
return (React.createElement(index_js_1.Box, { as: 'span', className: (0, classnames_1.default)('iui-file-card-title', className), ref: ref, ...rest }, children !== null && children !== void 0 ? children : title));
|
|
67
68
|
});
|
|
68
69
|
FileUploadCardTitle.displayName = 'FileUploadCard.Title';
|
|
70
|
+
// ----------------------------------------------------------------------------
|
|
71
|
+
// FileUploadCard.Description component
|
|
69
72
|
const FileUploadCardDescription = React.forwardRef((props, ref) => {
|
|
70
73
|
const { children, className, ...rest } = props;
|
|
71
74
|
const { files } = (0, index_js_1.useSafeContext)(exports.FileUploadCardContext);
|
|
@@ -75,20 +78,23 @@ const FileUploadCardDescription = React.forwardRef((props, ref) => {
|
|
|
75
78
|
if (files.length > 2) {
|
|
76
79
|
description += ', and ' + (files.length - 2) + ' others';
|
|
77
80
|
}
|
|
78
|
-
return (React.createElement(
|
|
81
|
+
return (React.createElement(index_js_1.Box, { as: 'span', className: (0, classnames_1.default)('iui-file-card-description', className), ref: ref, ...rest }, children !== null && children !== void 0 ? children : description));
|
|
79
82
|
});
|
|
80
83
|
FileUploadCardDescription.displayName = 'FileUploadCard.Description';
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
});
|
|
84
|
+
// ----------------------------------------------------------------------------
|
|
85
|
+
// FileUploadCard.Action component
|
|
86
|
+
const FileUploadCardAction = index_js_1.polymorphic.div('iui-file-card-action');
|
|
85
87
|
FileUploadCardAction.displayName = 'FileUploadCard.Action';
|
|
88
|
+
// ----------------------------------------------------------------------------
|
|
89
|
+
// FileUploadCard.InputLabel component
|
|
86
90
|
const FileUploadCardInputLabel = React.forwardRef((props, ref) => {
|
|
87
91
|
const { children, ...rest } = props;
|
|
88
92
|
const { inputId } = (0, index_js_1.useSafeContext)(exports.FileUploadCardContext);
|
|
89
93
|
return (React.createElement(Anchor_js_1.Anchor, { as: 'label', ref: ref, htmlFor: inputId, ...rest }, children));
|
|
90
94
|
});
|
|
91
95
|
FileUploadCardInputLabel.displayName = 'FileUploadCard.InputLabel';
|
|
96
|
+
// ----------------------------------------------------------------------------
|
|
97
|
+
// FileUploadCard.Input component
|
|
92
98
|
const FileUploadCardInput = React.forwardRef((props, ref) => {
|
|
93
99
|
const { children, onChange, id, ...rest } = props;
|
|
94
100
|
const { files, onFilesChange, setInternalFiles, inputId, setInputId } = (0, index_js_1.useSafeContext)(exports.FileUploadCardContext);
|
|
@@ -117,6 +123,28 @@ const FileUploadCardInput = React.forwardRef((props, ref) => {
|
|
|
117
123
|
children));
|
|
118
124
|
});
|
|
119
125
|
FileUploadCardInput.displayName = 'FileUploadCard.Input';
|
|
126
|
+
const FileUploadCardComponent = React.forwardRef((props, ref) => {
|
|
127
|
+
var _a;
|
|
128
|
+
const { className, children, files: filesProp, onFilesChange, emptyCard = React.createElement(FileEmptyCard_js_1.FileEmptyCard, null), input, ...rest } = props;
|
|
129
|
+
const [internalFiles, setInternalFiles] = React.useState();
|
|
130
|
+
const uid = (0, index_js_1.useId)();
|
|
131
|
+
const [inputId, setInputId] = React.useState(uid);
|
|
132
|
+
const files = (_a = filesProp !== null && filesProp !== void 0 ? filesProp : internalFiles) !== null && _a !== void 0 ? _a : [];
|
|
133
|
+
return (React.createElement(exports.FileUploadCardContext.Provider, { value: {
|
|
134
|
+
files,
|
|
135
|
+
onFilesChange,
|
|
136
|
+
setInternalFiles,
|
|
137
|
+
inputId,
|
|
138
|
+
setInputId,
|
|
139
|
+
} },
|
|
140
|
+
(files === null || files === void 0 ? void 0 : files.length) ? (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-file-card', className), ref: ref, ...rest }, children !== null && children !== void 0 ? children : (React.createElement(React.Fragment, null,
|
|
141
|
+
React.createElement(exports.FileUploadCard.Icon, null),
|
|
142
|
+
React.createElement(exports.FileUploadCard.Info, null,
|
|
143
|
+
React.createElement(exports.FileUploadCard.Title, null),
|
|
144
|
+
React.createElement(exports.FileUploadCard.Description, null)),
|
|
145
|
+
React.createElement(exports.FileUploadCard.Action, null,
|
|
146
|
+
React.createElement(exports.FileUploadCard.InputLabel, null, "Replace")))))) : (emptyCard), input !== null && input !== void 0 ? input : React.createElement(exports.FileUploadCard.Input, null)));
|
|
147
|
+
});
|
|
120
148
|
/**
|
|
121
149
|
* Default card to be used with the `FileUpload` wrapper component for single-file uploading.
|
|
122
150
|
* @example
|
|
@@ -141,28 +169,7 @@ FileUploadCardInput.displayName = 'FileUploadCard.Input';
|
|
|
141
169
|
* </FileUploadCard.Action>
|
|
142
170
|
* </FileUploadCard>
|
|
143
171
|
*/
|
|
144
|
-
exports.FileUploadCard = Object.assign(
|
|
145
|
-
var _a;
|
|
146
|
-
const { className, children, files: filesProp, onFilesChange, emptyCard = React.createElement(FileEmptyCard_js_1.FileEmptyCard, null), input, ...rest } = props;
|
|
147
|
-
const [internalFiles, setInternalFiles] = React.useState();
|
|
148
|
-
const uid = (0, index_js_1.useId)();
|
|
149
|
-
const [inputId, setInputId] = React.useState(uid);
|
|
150
|
-
const files = (_a = filesProp !== null && filesProp !== void 0 ? filesProp : internalFiles) !== null && _a !== void 0 ? _a : [];
|
|
151
|
-
return (React.createElement(exports.FileUploadCardContext.Provider, { value: {
|
|
152
|
-
files,
|
|
153
|
-
onFilesChange,
|
|
154
|
-
setInternalFiles,
|
|
155
|
-
inputId,
|
|
156
|
-
setInputId,
|
|
157
|
-
} },
|
|
158
|
-
(files === null || files === void 0 ? void 0 : files.length) ? (React.createElement("div", { className: (0, classnames_1.default)('iui-file-card', className), ref: ref, ...rest }, children !== null && children !== void 0 ? children : (React.createElement(React.Fragment, null,
|
|
159
|
-
React.createElement(exports.FileUploadCard.Icon, null),
|
|
160
|
-
React.createElement(exports.FileUploadCard.Info, null,
|
|
161
|
-
React.createElement(exports.FileUploadCard.Title, null),
|
|
162
|
-
React.createElement(exports.FileUploadCard.Description, null)),
|
|
163
|
-
React.createElement(exports.FileUploadCard.Action, null,
|
|
164
|
-
React.createElement(exports.FileUploadCard.InputLabel, null, "Replace")))))) : (emptyCard), input !== null && input !== void 0 ? input : React.createElement(exports.FileUploadCard.Input, null)));
|
|
165
|
-
}), {
|
|
172
|
+
exports.FileUploadCard = Object.assign(FileUploadCardComponent, {
|
|
166
173
|
Icon: FileUploadCardIcon,
|
|
167
174
|
Info: FileUploadCardInfo,
|
|
168
175
|
Title: FileUploadCardTitle,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import '
|
|
3
|
-
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
+
declare type FileUploadTemplateProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Callback fired when a file is selected from the device.
|
|
6
6
|
*/
|
|
@@ -30,12 +30,12 @@ export declare type FileUploadTemplateProps = {
|
|
|
30
30
|
* Optional children appended to the template.
|
|
31
31
|
*/
|
|
32
32
|
children?: React.ReactNode;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
/**
|
|
35
35
|
* Default template to be used with the `FileUpload` wrapper component.
|
|
36
36
|
* Contains a hidden input with styled labels (customizable).
|
|
37
37
|
* @example
|
|
38
38
|
* <FileUploadTemplate onChange={(e) => console.log(e.target.files)} />
|
|
39
39
|
*/
|
|
40
|
-
export declare const FileUploadTemplate:
|
|
40
|
+
export declare const FileUploadTemplate: PolymorphicForwardRefComponent<"div", FileUploadTemplateProps>;
|
|
41
41
|
export default FileUploadTemplate;
|
|
@@ -34,7 +34,6 @@ exports.FileUploadTemplate = 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/file-upload.css");
|
|
38
37
|
const Anchor_js_1 = require("../Typography/Anchor/Anchor.js");
|
|
39
38
|
/**
|
|
40
39
|
* Default template to be used with the `FileUpload` wrapper component.
|
|
@@ -42,17 +41,15 @@ const Anchor_js_1 = require("../Typography/Anchor/Anchor.js");
|
|
|
42
41
|
* @example
|
|
43
42
|
* <FileUploadTemplate onChange={(e) => console.log(e.target.files)} />
|
|
44
43
|
*/
|
|
45
|
-
|
|
44
|
+
exports.FileUploadTemplate = React.forwardRef((props, ref) => {
|
|
46
45
|
const { onChange, acceptMultiple = true, acceptType, label = 'Choose a file', subtitle = 'or drag & drop it here.', children, className, ...rest } = props;
|
|
47
|
-
(0,
|
|
48
|
-
return (React.createElement("div", { className: (0, classnames_1.default)('iui-file-upload-template', className), ...rest },
|
|
46
|
+
return (React.createElement(index_js_1.Box, { className: (0, classnames_1.default)('iui-file-upload-template', className), ref: ref, ...rest },
|
|
49
47
|
React.createElement(index_js_1.SvgUpload, { className: 'iui-template-icon', "aria-hidden": true }),
|
|
50
|
-
React.createElement(
|
|
48
|
+
React.createElement(index_js_1.Box, { className: 'iui-template-text' },
|
|
51
49
|
React.createElement(Anchor_js_1.Anchor, { as: 'label' },
|
|
52
|
-
React.createElement(
|
|
50
|
+
React.createElement(index_js_1.Box, { as: 'input', className: 'iui-browse-input', type: 'file', onChange: onChange, multiple: acceptMultiple, accept: acceptType }),
|
|
53
51
|
label),
|
|
54
52
|
React.createElement("div", null, subtitle),
|
|
55
53
|
children)));
|
|
56
|
-
};
|
|
57
|
-
exports.FileUploadTemplate = FileUploadTemplate;
|
|
54
|
+
});
|
|
58
55
|
exports.default = exports.FileUploadTemplate;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export { FileUpload } from './FileUpload.js';
|
|
2
|
-
export type { FileUploadProps } from './FileUpload.js';
|
|
3
2
|
declare const _default: "./FileUpload";
|
|
4
3
|
export default _default;
|
|
5
4
|
export { FileUploadTemplate } from './FileUploadTemplate.js';
|
|
6
|
-
export type { FileUploadTemplateProps } from './FileUploadTemplate.js';
|
|
7
5
|
export { FileUploadCard } from './FileUploadCard.js';
|
|
8
|
-
export type { FileUploadCardProps, FileUploadCardIconProps, FileUploadCardInfoProps, FileUploadCardTitleProps, FileUploadCardDescriptionProps, FileUploadCardActionProps, FileUploadCardInputLabelProps, FileUploadCardInputProps, } from './FileUploadCard.js';
|
|
9
6
|
export { FileEmptyCard } from './FileEmptyCard.js';
|
|
10
|
-
export type { FileEmptyCardProps, FileEmptyCardIconProps, FileEmptyCardTextProps, } from './FileEmptyCard.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import '@itwin/itwinui-css/css/footer.css';
|
|
2
|
+
import type { CommonProps } from '../utils/index.js';
|
|
4
3
|
export declare type TitleTranslations = {
|
|
5
4
|
termsOfService: string;
|
|
6
5
|
privacy: string;
|
|
@@ -8,7 +7,7 @@ export declare type TitleTranslations = {
|
|
|
8
7
|
cookies: string;
|
|
9
8
|
legalNotices: string;
|
|
10
9
|
};
|
|
11
|
-
|
|
10
|
+
declare type FooterProps = {
|
|
12
11
|
/**
|
|
13
12
|
* Customize footer elements.
|
|
14
13
|
* Providing a `FooterElement[]` will append the custom elements to the end of the default elements.
|
|
@@ -24,7 +23,7 @@ export declare type FooterProps = {
|
|
|
24
23
|
* Use `defaultFooterElements` to get the default footer elements.
|
|
25
24
|
*/
|
|
26
25
|
children?: React.ReactNode;
|
|
27
|
-
} &
|
|
26
|
+
} & CommonProps;
|
|
28
27
|
export declare type FooterElement = {
|
|
29
28
|
/**
|
|
30
29
|
* Title of the footer element.
|
|
@@ -54,12 +53,8 @@ export declare const defaultFooterElements: FooterElement[];
|
|
|
54
53
|
* <Footer customElements={(defaultElements) => defaultElements.map(element => ({ ...element, url: element.key === 'privacy' ? customPrivacyUrl : element.url }))} />
|
|
55
54
|
*/
|
|
56
55
|
export declare const Footer: ((props: FooterProps) => JSX.Element) & {
|
|
57
|
-
List: (props
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Item: (props: Pick<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof React.LiHTMLAttributes<HTMLLIElement>> & {
|
|
61
|
-
ref?: ((instance: HTMLLIElement | null) => void) | React.RefObject<HTMLLIElement> | null | undefined;
|
|
62
|
-
}) => JSX.Element;
|
|
63
|
-
Separator: (props: import("./FooterSeparator.js").FooterSeparatorProps) => JSX.Element;
|
|
56
|
+
List: import("../utils/props.js").PolymorphicForwardRefComponent<"ul", {}>;
|
|
57
|
+
Item: import("../utils/props.js").PolymorphicForwardRefComponent<"li", {}>;
|
|
58
|
+
Separator: import("../utils/props.js").PolymorphicForwardRefComponent<"li", {}>;
|
|
64
59
|
};
|
|
65
60
|
export default Footer;
|
|
@@ -34,7 +34,6 @@ exports.Footer = exports.defaultFooterElements = 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/footer.css");
|
|
38
37
|
const FooterItem_js_1 = require("./FooterItem.js");
|
|
39
38
|
const FooterSeparator_js_1 = require("./FooterSeparator.js");
|
|
40
39
|
const FooterList_js_1 = require("./FooterList.js");
|
|
@@ -91,7 +90,6 @@ exports.defaultFooterElements = [
|
|
|
91
90
|
*/
|
|
92
91
|
exports.Footer = Object.assign((props) => {
|
|
93
92
|
const { children, customElements, translatedTitles, className, ...rest } = props;
|
|
94
|
-
(0, index_js_1.useTheme)();
|
|
95
93
|
const titles = { ...footerTranslations, ...translatedTitles };
|
|
96
94
|
const translatedElements = exports.defaultFooterElements.map((element) => {
|
|
97
95
|
if (element.key && titles.hasOwnProperty(element.key)) {
|
|
@@ -110,7 +108,7 @@ exports.Footer = Object.assign((props) => {
|
|
|
110
108
|
? customElements(translatedElements)
|
|
111
109
|
: [...translatedElements, ...customElements];
|
|
112
110
|
}
|
|
113
|
-
return (React.createElement(
|
|
111
|
+
return (React.createElement(index_js_1.Box, { as: 'footer', className: (0, classnames_1.default)('iui-legal-footer', className), ...rest }, children ? (children) : (React.createElement(FooterList_js_1.FooterList, null, elements.map((element, index) => {
|
|
114
112
|
return (React.createElement(React.Fragment, { key: element.key || `${element.title}-${index}` },
|
|
115
113
|
index > 0 && React.createElement(FooterSeparator_js_1.FooterSeparator, null),
|
|
116
114
|
React.createElement(FooterItem_js_1.FooterItem, null, element.url ? (React.createElement("a", { href: element.url, target: '_blank', rel: 'noreferrer' }, element.title)) : (element.title))));
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/footer.css';
|
|
3
|
-
export declare type FooterItemProps = React.ComponentPropsWithRef<'li'>;
|
|
4
1
|
/**
|
|
5
2
|
* Footer item. Recommended to use inside `Footer.List`.
|
|
6
3
|
*/
|
|
7
|
-
export declare const FooterItem: (props
|
|
4
|
+
export declare const FooterItem: import("../utils/props.js").PolymorphicForwardRefComponent<"li", {}>;
|
|
8
5
|
export default FooterItem;
|
|
@@ -1,47 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
3
|
exports.FooterItem = void 0;
|
|
30
4
|
/*---------------------------------------------------------------------------------------------
|
|
31
5
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
32
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
7
|
*--------------------------------------------------------------------------------------------*/
|
|
34
|
-
const React = __importStar(require("react"));
|
|
35
8
|
const index_js_1 = require("../utils/index.js");
|
|
36
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
37
|
-
require("@itwin/itwinui-css/css/footer.css");
|
|
38
9
|
/**
|
|
39
10
|
* Footer item. Recommended to use inside `Footer.List`.
|
|
40
11
|
*/
|
|
41
|
-
|
|
42
|
-
const { children, className, ...rest } = props;
|
|
43
|
-
(0, index_js_1.useTheme)();
|
|
44
|
-
return (React.createElement("li", { className: (0, classnames_1.default)('iui-legal-footer-item', className), ...rest }, children));
|
|
45
|
-
};
|
|
46
|
-
exports.FooterItem = FooterItem;
|
|
12
|
+
exports.FooterItem = index_js_1.polymorphic.li('iui-legal-footer-item');
|
|
47
13
|
exports.default = exports.FooterItem;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/footer.css';
|
|
3
|
-
export declare type FooterListProps = React.ComponentPropsWithRef<'ul'>;
|
|
4
1
|
/**
|
|
5
2
|
* Footer list. Recommended to use inside `Footer` with `Footer.Item` and `Footer.Separator`.
|
|
6
3
|
*/
|
|
7
|
-
export declare const FooterList: (props
|
|
4
|
+
export declare const FooterList: import("../utils/props.js").PolymorphicForwardRefComponent<"ul", {}>;
|
|
8
5
|
export default FooterList;
|
|
@@ -1,47 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
3
|
exports.FooterList = void 0;
|
|
30
4
|
/*---------------------------------------------------------------------------------------------
|
|
31
5
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
32
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
7
|
*--------------------------------------------------------------------------------------------*/
|
|
34
|
-
const React = __importStar(require("react"));
|
|
35
8
|
const index_js_1 = require("../utils/index.js");
|
|
36
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
37
|
-
require("@itwin/itwinui-css/css/footer.css");
|
|
38
9
|
/**
|
|
39
10
|
* Footer list. Recommended to use inside `Footer` with `Footer.Item` and `Footer.Separator`.
|
|
40
11
|
*/
|
|
41
|
-
|
|
42
|
-
const { className, children, ...rest } = props;
|
|
43
|
-
(0, index_js_1.useTheme)();
|
|
44
|
-
return (React.createElement("ul", { className: (0, classnames_1.default)('iui-legal-footer-list', className), ...rest }, children));
|
|
45
|
-
};
|
|
46
|
-
exports.FooterList = FooterList;
|
|
12
|
+
exports.FooterList = index_js_1.polymorphic.ul('iui-legal-footer-list');
|
|
47
13
|
exports.default = exports.FooterList;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import '@itwin/itwinui-css/css/footer.css';
|
|
3
|
-
export declare type FooterSeparatorProps = Omit<React.ComponentPropsWithRef<'li'>, 'children'>;
|
|
4
1
|
/**
|
|
5
2
|
* Footer separator. Recommended to use inside `Footer.List`.
|
|
6
3
|
*/
|
|
7
|
-
export declare const FooterSeparator: (props
|
|
4
|
+
export declare const FooterSeparator: import("../utils/props.js").PolymorphicForwardRefComponent<"li", {}>;
|
|
8
5
|
export default FooterSeparator;
|
|
@@ -1,47 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
3
|
exports.FooterSeparator = void 0;
|
|
30
4
|
/*---------------------------------------------------------------------------------------------
|
|
31
5
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
32
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
33
7
|
*--------------------------------------------------------------------------------------------*/
|
|
34
|
-
const React = __importStar(require("react"));
|
|
35
8
|
const index_js_1 = require("../utils/index.js");
|
|
36
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
37
|
-
require("@itwin/itwinui-css/css/footer.css");
|
|
38
9
|
/**
|
|
39
10
|
* Footer separator. Recommended to use inside `Footer.List`.
|
|
40
11
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return (React.createElement("li", { className: (0, classnames_1.default)('iui-legal-footer-separator', className), "aria-hidden": true, ...rest }));
|
|
45
|
-
};
|
|
46
|
-
exports.FooterSeparator = FooterSeparator;
|
|
12
|
+
exports.FooterSeparator = index_js_1.polymorphic.li('iui-legal-footer-separator', {
|
|
13
|
+
'aria-hidden': true,
|
|
14
|
+
});
|
|
47
15
|
exports.default = exports.FooterSeparator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Footer, defaultFooterElements } from './Footer.js';
|
|
2
|
-
export type { FooterElement,
|
|
2
|
+
export type { FooterElement, TitleTranslations } from './Footer.js';
|
|
3
3
|
declare const _default: "./Footer";
|
|
4
4
|
export default _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export declare type HeaderTranslations = {
|
|
2
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
+
declare type HeaderTranslations = {
|
|
5
4
|
/**
|
|
6
5
|
* 'More' menu button aria-label.
|
|
7
6
|
*/
|
|
8
7
|
moreOptions: string;
|
|
9
8
|
};
|
|
10
|
-
|
|
9
|
+
declare type HeaderProps = {
|
|
11
10
|
/**
|
|
12
11
|
* Application logo.
|
|
13
12
|
* (expects `HeaderLogo`)
|
|
@@ -83,7 +82,7 @@ export declare type HeaderProps = {
|
|
|
83
82
|
* Provide localized strings.
|
|
84
83
|
*/
|
|
85
84
|
translatedStrings?: HeaderTranslations;
|
|
86
|
-
}
|
|
85
|
+
};
|
|
87
86
|
/**
|
|
88
87
|
* Application header
|
|
89
88
|
* @example
|
|
@@ -111,5 +110,5 @@ export declare type HeaderProps = {
|
|
|
111
110
|
* isSlim
|
|
112
111
|
* />
|
|
113
112
|
*/
|
|
114
|
-
export declare const Header:
|
|
113
|
+
export declare const Header: PolymorphicForwardRefComponent<"header", HeaderProps>;
|
|
115
114
|
export default Header;
|
|
@@ -35,7 +35,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
35
35
|
const React = __importStar(require("react"));
|
|
36
36
|
const index_js_1 = require("../Buttons/index.js");
|
|
37
37
|
const index_js_2 = require("../utils/index.js");
|
|
38
|
-
require("@itwin/itwinui-css/css/header.css");
|
|
39
38
|
const index_js_3 = require("../DropdownMenu/index.js");
|
|
40
39
|
const defaultTranslations = {
|
|
41
40
|
moreOptions: 'More options',
|
|
@@ -67,22 +66,20 @@ const defaultTranslations = {
|
|
|
67
66
|
* isSlim
|
|
68
67
|
* />
|
|
69
68
|
*/
|
|
70
|
-
|
|
69
|
+
exports.Header = React.forwardRef((props, forwardedRef) => {
|
|
71
70
|
const { appLogo, breadcrumbs, isSlim = false, actions, userIcon, menuItems, translatedStrings, className, children, ...rest } = props;
|
|
72
|
-
(0, index_js_2.useTheme)();
|
|
73
71
|
const headerTranslations = { ...defaultTranslations, ...translatedStrings };
|
|
74
|
-
return (React.createElement(
|
|
75
|
-
React.createElement(
|
|
72
|
+
return (React.createElement(index_js_2.Box, { as: 'header', className: (0, classnames_1.default)('iui-page-header', className), "data-iui-size": isSlim ? 'slim' : undefined, ref: forwardedRef, ...rest },
|
|
73
|
+
React.createElement(index_js_2.Box, { className: 'iui-page-header-left' },
|
|
76
74
|
appLogo,
|
|
77
|
-
breadcrumbs && React.createElement(
|
|
75
|
+
breadcrumbs && React.createElement(index_js_2.Box, { className: 'iui-page-header-divider' }),
|
|
78
76
|
breadcrumbs),
|
|
79
|
-
children && React.createElement(
|
|
80
|
-
React.createElement(
|
|
77
|
+
children && React.createElement(index_js_2.Box, { className: 'iui-page-header-center' }, children),
|
|
78
|
+
React.createElement(index_js_2.Box, { className: 'iui-page-header-right' },
|
|
81
79
|
actions,
|
|
82
80
|
userIcon,
|
|
83
81
|
menuItems && (React.createElement(index_js_3.DropdownMenu, { menuItems: menuItems },
|
|
84
82
|
React.createElement(index_js_1.IconButton, { styleType: 'borderless', "aria-label": headerTranslations.moreOptions },
|
|
85
83
|
React.createElement(index_js_2.SvgMoreVertical, { "aria-hidden": true })))))));
|
|
86
|
-
};
|
|
87
|
-
exports.Header = Header;
|
|
84
|
+
});
|
|
88
85
|
exports.default = exports.Header;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
2
|
-
import type { ButtonProps } from '../Buttons/
|
|
3
|
-
export declare
|
|
4
|
-
declare type HeaderBasicButtonComponent = PolymorphicForwardRefComponent<'button', HeaderBasicButtonProps>;
|
|
5
|
-
export declare const HeaderBasicButton: HeaderBasicButtonComponent;
|
|
2
|
+
import type { ButtonProps } from '../Buttons/Button/Button.js';
|
|
3
|
+
export declare const HeaderBasicButton: PolymorphicForwardRefComponent<"button", ButtonProps>;
|
|
6
4
|
export default HeaderBasicButton;
|