@itwin/itwinui-react 3.0.0-dev.10 → 3.0.0-dev.11
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 +24 -0
- package/cjs/core/Alert/Alert.d.ts +1 -1
- package/cjs/core/Alert/Alert.js +4 -3
- package/cjs/core/Avatar/Avatar.js +2 -1
- package/cjs/core/Breadcrumbs/Breadcrumbs.js +2 -2
- package/cjs/core/Buttons/{Button/Button.d.ts → Button.d.ts} +2 -2
- package/cjs/core/Buttons/{Button/Button.js → Button.js} +1 -1
- package/{esm/core/Buttons/DropdownButton → cjs/core/Buttons}/DropdownButton.d.ts +3 -3
- package/cjs/core/Buttons/{DropdownButton/DropdownButton.js → DropdownButton.js} +7 -7
- package/{esm/core/Buttons/IconButton → cjs/core/Buttons}/IconButton.d.ts +2 -2
- package/cjs/core/Buttons/{IconButton/IconButton.js → IconButton.js} +6 -3
- package/{esm/core/Buttons/IdeasButton → cjs/core/Buttons}/IdeasButton.d.ts +1 -1
- package/cjs/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +3 -3
- package/cjs/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +3 -3
- package/cjs/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +14 -13
- package/cjs/core/Carousel/Carousel.d.ts +2 -2
- package/cjs/core/Carousel/CarouselNavigation.d.ts +2 -2
- package/cjs/core/Carousel/CarouselNavigation.js +9 -9
- package/cjs/core/Checkbox/Checkbox.js +7 -7
- package/cjs/core/ColorPicker/ColorBuilder.js +3 -3
- package/cjs/core/ColorPicker/ColorInputPanel.js +26 -26
- package/cjs/core/ColorPicker/ColorPicker.js +5 -3
- package/cjs/core/ComboBox/ComboBox.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBox.js +17 -18
- package/cjs/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/cjs/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxInput.js +10 -10
- package/cjs/core/ComboBox/ComboBoxInputContainer.js +6 -6
- package/cjs/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/cjs/core/ComboBox/ComboBoxMenu.js +11 -11
- package/cjs/core/ComboBox/helpers.d.ts +1 -1
- package/cjs/core/DatePicker/DatePicker.js +12 -10
- package/cjs/core/Dialog/DialogBackdrop.js +4 -4
- package/cjs/core/Dialog/DialogTitleBar.js +2 -2
- package/cjs/core/{utils/components → Divider}/Divider.d.ts +1 -1
- package/cjs/core/{utils/components → Divider}/Divider.js +1 -1
- package/cjs/core/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/cjs/core/DropdownMenu/DropdownMenu.js +4 -3
- package/cjs/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/cjs/core/ExpandableBlock/ExpandableBlock.js +3 -2
- package/cjs/core/FileUpload/FileUploadCard.js +3 -2
- package/cjs/core/FileUpload/FileUploadTemplate.js +1 -1
- package/cjs/core/{utils/components → Flex}/Flex.d.ts +2 -2
- package/cjs/core/{utils/components → Flex}/Flex.js +1 -1
- package/cjs/core/Header/Header.js +11 -11
- package/cjs/core/Header/HeaderBasicButton.d.ts +1 -1
- package/cjs/core/Header/HeaderButton.d.ts +2 -2
- package/cjs/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/cjs/core/Header/HeaderDropdownButton.js +6 -6
- package/cjs/core/Header/HeaderSplitButton.d.ts +1 -1
- package/cjs/core/Header/HeaderSplitButton.js +7 -7
- package/{esm/core/utils/components → cjs/core/Icon}/Icon.d.ts +2 -2
- package/cjs/core/{utils/components → Icon}/Icon.js +1 -1
- package/cjs/core/InformationPanel/InformationPanelHeader.js +7 -7
- package/cjs/core/Input/Input.d.ts +0 -1
- package/cjs/core/Input/Input.js +0 -1
- package/cjs/core/InputGroup/InputGroup.d.ts +1 -1
- package/cjs/core/InputGroup/InputGroup.js +6 -6
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/cjs/core/InputWithDecorations/InputWithDecorations.js +2 -2
- package/cjs/core/LabeledInput/LabeledInput.d.ts +4 -4
- package/cjs/core/LabeledInput/LabeledInput.js +11 -13
- package/cjs/core/LabeledSelect/LabeledSelect.d.ts +1 -1
- package/cjs/core/LabeledSelect/LabeledSelect.js +7 -6
- package/cjs/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/cjs/core/LabeledTextarea/LabeledTextarea.js +2 -2
- package/{esm/core/utils/components → cjs/core/LinkAction}/LinkAction.d.ts +2 -2
- package/cjs/core/{utils/components → LinkAction}/LinkAction.js +1 -1
- package/cjs/core/Menu/MenuItem.js +2 -1
- package/cjs/core/Menu/MenuItemSkeleton.js +2 -1
- package/cjs/core/Modal/Modal.js +5 -5
- package/cjs/core/NonIdealState/ErrorPage.js +17 -15
- package/{esm/core/utils/components → cjs/core/Popover}/Popover.d.ts +3 -7
- package/cjs/core/{utils/components → Popover}/Popover.js +10 -6
- package/cjs/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/cjs/core/RadioTiles/RadioTileGroup.js +4 -4
- package/cjs/core/SearchBox/SearchBox.d.ts +3 -2
- package/cjs/core/SearchBox/SearchBox.js +4 -3
- package/cjs/core/Select/Select.d.ts +1 -1
- package/cjs/core/Select/Select.js +25 -24
- package/cjs/core/Select/SelectTagContainer.js +2 -2
- package/cjs/core/SideNavigation/SideNavigation.js +5 -5
- package/cjs/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/cjs/core/SideNavigation/SidenavButton.js +2 -2
- package/cjs/core/Slider/Slider.d.ts +1 -1
- package/cjs/core/Slider/Thumb.d.ts +1 -1
- package/cjs/core/Slider/Thumb.js +4 -4
- package/cjs/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/cjs/core/StatusMessage/StatusMessage.js +2 -1
- package/cjs/core/Stepper/StepperStep.js +7 -7
- package/cjs/core/Stepper/WorkflowDiagramStep.js +5 -5
- package/cjs/core/Table/SubRowExpander.d.ts +1 -1
- package/cjs/core/Table/SubRowExpander.js +2 -2
- package/cjs/core/Table/Table.d.ts +1 -1
- package/cjs/core/Table/Table.js +49 -49
- package/cjs/core/Table/TableCell.d.ts +1 -1
- package/cjs/core/Table/TablePaginator.js +27 -25
- package/cjs/core/Table/TableRowMemoized.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/cjs/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/cjs/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/cjs/core/Table/cells/DefaultCell.d.ts +1 -1
- package/cjs/core/Table/cells/EditableCell.d.ts +1 -1
- package/cjs/core/Table/columns/actionColumn.d.ts +2 -2
- package/cjs/core/Table/columns/actionColumn.js +10 -10
- package/cjs/core/Table/columns/expanderColumn.d.ts +1 -1
- package/cjs/core/Table/columns/expanderColumn.js +4 -4
- package/cjs/core/Table/columns/selectionColumn.d.ts +1 -1
- package/cjs/core/Table/columns/selectionColumn.js +5 -5
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +23 -19
- package/cjs/core/Table/filters/FilterButtonBar.js +3 -3
- package/cjs/core/Table/filters/FilterToggle.d.ts +1 -1
- package/cjs/core/Table/filters/FilterToggle.js +4 -3
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +3 -3
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +2 -2
- package/cjs/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/cjs/core/Table/filters/types.d.ts +1 -1
- package/cjs/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/cjs/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.d.ts +1 -1
- package/cjs/core/Table/hooks/useScrollToRow.js +1 -1
- package/cjs/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/cjs/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/cjs/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/cjs/core/Table/utils.d.ts +1 -1
- package/cjs/core/Tag/Tag.js +2 -2
- package/cjs/core/Textarea/Textarea.js +2 -2
- package/cjs/core/Tile/Tile.d.ts +2 -2
- package/cjs/core/Tile/Tile.js +9 -8
- package/cjs/core/Toast/Toast.js +2 -2
- package/cjs/core/TransferList/TransferList.d.ts +1 -1
- package/cjs/core/TransferList/TransferList.js +6 -5
- package/cjs/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/cjs/core/Tree/TreeNodeExpander.js +2 -2
- package/{esm/core/Typography/Anchor → cjs/core/Typography}/Anchor.d.ts +1 -1
- package/cjs/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
- package/{esm/core/Typography/Blockquote → cjs/core/Typography}/Blockquote.d.ts +1 -1
- package/cjs/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +1 -1
- package/cjs/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/cjs/core/Typography/{Code/Code.js → Code.js} +1 -1
- package/{esm/core/Typography/Kbd → cjs/core/Typography}/Kbd.d.ts +1 -1
- package/cjs/core/Typography/{Kbd/Kbd.js → Kbd.js} +1 -1
- package/{esm/core/Typography/Text → cjs/core/Typography}/Text.d.ts +1 -1
- package/cjs/core/Typography/{Text/Text.js → Text.js} +1 -1
- package/{esm/core/utils/components → cjs/core/VisuallyHidden}/VisuallyHidden.d.ts +1 -1
- package/cjs/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +1 -1
- package/cjs/core/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/cjs/core/utils/components/InputContainer.js +4 -4
- package/cjs/core/utils/components/index.d.ts +0 -6
- package/cjs/core/utils/components/index.js +0 -6
- package/cjs/core/utils/hooks/useGlobals.d.ts +1 -1
- package/cjs/index.d.ts +113 -1
- package/cjs/index.js +951 -4
- package/cjs/styles.js +5 -4
- package/esm/core/Alert/Alert.d.ts +1 -1
- package/esm/core/Alert/Alert.js +2 -2
- package/esm/core/Avatar/Avatar.js +2 -6
- package/esm/core/Breadcrumbs/Breadcrumbs.js +1 -1
- package/esm/core/Buttons/{Button/Button.d.ts → Button.d.ts} +2 -2
- package/esm/core/Buttons/{Button/Button.js → Button.js} +1 -1
- package/{cjs/core/Buttons/DropdownButton → esm/core/Buttons}/DropdownButton.d.ts +3 -3
- package/esm/core/Buttons/{DropdownButton/DropdownButton.js → DropdownButton.js} +3 -3
- package/{cjs/core/Buttons/IconButton → esm/core/Buttons}/IconButton.d.ts +2 -2
- package/esm/core/Buttons/{IconButton/IconButton.js → IconButton.js} +3 -2
- package/{cjs/core/Buttons/IdeasButton → esm/core/Buttons}/IdeasButton.d.ts +1 -1
- package/esm/core/Buttons/{IdeasButton/IdeasButton.js → IdeasButton.js} +2 -2
- package/esm/core/Buttons/{SplitButton/SplitButton.d.ts → SplitButton.d.ts} +3 -3
- package/esm/core/Buttons/{SplitButton/SplitButton.js → SplitButton.js} +5 -5
- package/esm/core/Carousel/Carousel.d.ts +2 -2
- package/esm/core/Carousel/CarouselNavigation.d.ts +2 -2
- package/esm/core/Carousel/CarouselNavigation.js +1 -1
- package/esm/core/Checkbox/Checkbox.js +1 -1
- package/esm/core/ColorPicker/ColorBuilder.js +1 -1
- package/esm/core/ColorPicker/ColorInputPanel.js +2 -2
- package/esm/core/ColorPicker/ColorPicker.js +5 -3
- package/esm/core/ComboBox/ComboBox.d.ts +1 -1
- package/esm/core/ComboBox/ComboBox.js +4 -4
- package/esm/core/ComboBox/ComboBoxEndIcon.js +2 -1
- package/esm/core/ComboBox/ComboBoxInput.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxInput.js +1 -1
- package/esm/core/ComboBox/ComboBoxInputContainer.js +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.d.ts +1 -1
- package/esm/core/ComboBox/ComboBoxMenu.js +1 -1
- package/esm/core/ComboBox/helpers.d.ts +1 -1
- package/esm/core/DatePicker/DatePicker.js +7 -5
- package/esm/core/Dialog/DialogBackdrop.js +1 -1
- package/esm/core/Dialog/DialogTitleBar.js +1 -1
- package/esm/core/{utils/components → Divider}/Divider.d.ts +1 -1
- package/esm/core/{utils/components → Divider}/Divider.js +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/esm/core/DropdownMenu/DropdownMenu.js +2 -3
- package/esm/core/ExpandableBlock/ExpandableBlock.d.ts +1 -1
- package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -1
- package/esm/core/FileUpload/FileUploadCard.js +2 -2
- package/esm/core/FileUpload/FileUploadTemplate.js +1 -1
- package/esm/core/{utils/components → Flex}/Flex.d.ts +2 -2
- package/esm/core/{utils/components → Flex}/Flex.js +1 -1
- package/esm/core/Header/Header.js +2 -2
- package/esm/core/Header/HeaderBasicButton.d.ts +1 -1
- package/esm/core/Header/HeaderButton.d.ts +2 -2
- package/esm/core/Header/HeaderDropdownButton.d.ts +1 -1
- package/esm/core/Header/HeaderDropdownButton.js +1 -1
- package/esm/core/Header/HeaderSplitButton.d.ts +1 -1
- package/esm/core/Header/HeaderSplitButton.js +1 -1
- package/{cjs/core/utils/components → esm/core/Icon}/Icon.d.ts +2 -2
- package/esm/core/{utils/components → Icon}/Icon.js +1 -1
- package/esm/core/InformationPanel/InformationPanelHeader.js +1 -1
- package/esm/core/Input/Input.d.ts +0 -1
- package/esm/core/Input/Input.js +0 -1
- package/esm/core/InputGroup/InputGroup.d.ts +1 -1
- package/esm/core/InputGroup/InputGroup.js +3 -3
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/esm/core/InputWithDecorations/InputWithDecorations.js +1 -1
- package/esm/core/LabeledInput/LabeledInput.d.ts +4 -4
- package/esm/core/LabeledInput/LabeledInput.js +5 -4
- package/esm/core/LabeledSelect/LabeledSelect.d.ts +1 -1
- package/esm/core/LabeledSelect/LabeledSelect.js +3 -2
- package/esm/core/LabeledTextarea/LabeledTextarea.d.ts +1 -1
- package/esm/core/LabeledTextarea/LabeledTextarea.js +2 -2
- package/{cjs/core/utils/components → esm/core/LinkAction}/LinkAction.d.ts +2 -2
- package/esm/core/{utils/components → LinkAction}/LinkAction.js +1 -1
- package/esm/core/Menu/MenuItem.js +1 -1
- package/esm/core/Menu/MenuItemSkeleton.js +2 -1
- package/esm/core/Modal/Modal.js +1 -1
- package/esm/core/NonIdealState/ErrorPage.js +2 -2
- package/{cjs/core/utils/components → esm/core/Popover}/Popover.d.ts +3 -7
- package/esm/core/{utils/components → Popover}/Popover.js +9 -5
- package/esm/core/RadioTiles/RadioTileGroup.d.ts +1 -1
- package/esm/core/RadioTiles/RadioTileGroup.js +1 -1
- package/esm/core/SearchBox/SearchBox.d.ts +3 -2
- package/esm/core/SearchBox/SearchBox.js +2 -2
- package/esm/core/Select/Select.d.ts +1 -1
- package/esm/core/Select/Select.js +6 -5
- package/esm/core/Select/SelectTagContainer.js +1 -1
- package/esm/core/SideNavigation/SideNavigation.js +2 -2
- package/esm/core/SideNavigation/SidenavButton.d.ts +1 -1
- package/esm/core/SideNavigation/SidenavButton.js +1 -1
- package/esm/core/Slider/Slider.d.ts +1 -1
- package/esm/core/Slider/Thumb.d.ts +1 -1
- package/esm/core/Slider/Thumb.js +1 -1
- package/esm/core/StatusMessage/StatusMessage.d.ts +1 -1
- package/esm/core/StatusMessage/StatusMessage.js +2 -1
- package/esm/core/Stepper/StepperStep.js +1 -1
- package/esm/core/Stepper/WorkflowDiagramStep.js +1 -1
- package/esm/core/Table/SubRowExpander.d.ts +1 -1
- package/esm/core/Table/SubRowExpander.js +1 -1
- package/esm/core/Table/Table.d.ts +1 -1
- package/esm/core/Table/Table.js +1 -1
- package/esm/core/Table/TableCell.d.ts +1 -1
- package/esm/core/Table/TablePaginator.js +5 -3
- package/esm/core/Table/TableRowMemoized.d.ts +1 -1
- package/esm/core/Table/actionHandlers/expandHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/filterHandler.d.ts +1 -1
- package/esm/core/Table/actionHandlers/resizeHandler.d.ts +17 -17
- package/esm/core/Table/actionHandlers/selectHandler.d.ts +8 -8
- package/esm/core/Table/cells/DefaultCell.d.ts +1 -1
- package/esm/core/Table/cells/EditableCell.d.ts +1 -1
- package/esm/core/Table/columns/actionColumn.d.ts +2 -2
- package/esm/core/Table/columns/actionColumn.js +4 -4
- package/esm/core/Table/columns/expanderColumn.d.ts +1 -1
- package/esm/core/Table/columns/expanderColumn.js +1 -1
- package/esm/core/Table/columns/selectionColumn.d.ts +1 -1
- package/esm/core/Table/columns/selectionColumn.js +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.d.ts +1 -1
- package/esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +6 -5
- package/esm/core/Table/filters/FilterButtonBar.js +1 -1
- package/esm/core/Table/filters/FilterToggle.d.ts +1 -1
- package/esm/core/Table/filters/FilterToggle.js +3 -7
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +1 -1
- package/esm/core/Table/filters/TextFilter/TextFilter.js +1 -1
- package/esm/core/Table/filters/customFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/defaultFilterFunctions.d.ts +1 -1
- package/esm/core/Table/filters/types.d.ts +1 -1
- package/esm/core/Table/hooks/useColumnDragAndDrop.d.ts +1 -1
- package/esm/core/Table/hooks/useExpanderCell.d.ts +1 -1
- package/esm/core/Table/hooks/useResizeColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useScrollToRow.d.ts +1 -1
- package/esm/core/Table/hooks/useScrollToRow.js +1 -1
- package/esm/core/Table/hooks/useSelectionCell.d.ts +1 -1
- package/esm/core/Table/hooks/useStickyColumns.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowFiltering.d.ts +1 -1
- package/esm/core/Table/hooks/useSubRowSelection.d.ts +1 -1
- package/esm/core/Table/utils.d.ts +1 -1
- package/esm/core/Tag/Tag.js +1 -1
- package/esm/core/Textarea/Textarea.js +1 -1
- package/esm/core/Tile/Tile.d.ts +2 -2
- package/esm/core/Tile/Tile.js +4 -4
- package/esm/core/Toast/Toast.js +1 -1
- package/esm/core/TransferList/TransferList.d.ts +1 -1
- package/esm/core/TransferList/TransferList.js +3 -2
- package/esm/core/Tree/TreeNodeExpander.d.ts +1 -1
- package/esm/core/Tree/TreeNodeExpander.js +1 -1
- package/{cjs/core/Typography/Anchor → esm/core/Typography}/Anchor.d.ts +1 -1
- package/esm/core/Typography/{Anchor/Anchor.js → Anchor.js} +1 -1
- package/{cjs/core/Typography/Blockquote → esm/core/Typography}/Blockquote.d.ts +1 -1
- package/esm/core/Typography/{Blockquote/Blockquote.js → Blockquote.js} +1 -1
- package/esm/core/Typography/{Code/Code.d.ts → Code.d.ts} +1 -1
- package/esm/core/Typography/{Code/Code.js → Code.js} +1 -1
- package/{cjs/core/Typography/Kbd → esm/core/Typography}/Kbd.d.ts +1 -1
- package/esm/core/Typography/{Kbd/Kbd.js → Kbd.js} +1 -1
- package/{cjs/core/Typography/Text → esm/core/Typography}/Text.d.ts +1 -1
- package/esm/core/Typography/{Text/Text.js → Text.js} +1 -1
- package/{cjs/core/utils/components → esm/core/VisuallyHidden}/VisuallyHidden.d.ts +1 -1
- package/esm/core/{utils/components → VisuallyHidden}/VisuallyHidden.js +1 -1
- package/esm/core/utils/components/AutoclearingHiddenLiveRegion.js +1 -1
- package/esm/core/utils/components/InputContainer.js +2 -2
- package/esm/core/utils/components/index.d.ts +0 -6
- package/esm/core/utils/components/index.js +0 -6
- package/esm/core/utils/hooks/useGlobals.d.ts +1 -1
- package/esm/index.d.ts +113 -1
- package/esm/index.js +124 -1
- package/esm/styles.js +5 -4
- package/package.json +8 -9
- package/styles.css +15 -15
- package/cjs/core/Alert/index.d.ts +0 -3
- package/cjs/core/Alert/index.js +0 -15
- package/cjs/core/Avatar/index.d.ts +0 -3
- package/cjs/core/Avatar/index.js +0 -15
- package/cjs/core/AvatarGroup/index.d.ts +0 -3
- package/cjs/core/AvatarGroup/index.js +0 -15
- package/cjs/core/Backdrop/index.d.ts +0 -1
- package/cjs/core/Backdrop/index.js +0 -14
- package/cjs/core/Badge/index.d.ts +0 -3
- package/cjs/core/Badge/index.js +0 -15
- package/cjs/core/Breadcrumbs/index.d.ts +0 -3
- package/cjs/core/Breadcrumbs/index.js +0 -15
- package/cjs/core/ButtonGroup/index.d.ts +0 -3
- package/cjs/core/ButtonGroup/index.js +0 -15
- package/cjs/core/Buttons/Button/index.d.ts +0 -3
- package/cjs/core/Buttons/Button/index.js +0 -15
- package/cjs/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/cjs/core/Buttons/DropdownButton/index.js +0 -15
- package/cjs/core/Buttons/IconButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IconButton/index.js +0 -15
- package/cjs/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/cjs/core/Buttons/IdeasButton/index.js +0 -15
- package/cjs/core/Buttons/SplitButton/index.d.ts +0 -3
- package/cjs/core/Buttons/SplitButton/index.js +0 -15
- package/cjs/core/Buttons/index.d.ts +0 -5
- package/cjs/core/Buttons/index.js +0 -47
- package/cjs/core/Carousel/index.d.ts +0 -3
- package/cjs/core/Carousel/index.js +0 -15
- package/cjs/core/Checkbox/index.d.ts +0 -3
- package/cjs/core/Checkbox/index.js +0 -15
- package/cjs/core/ColorPicker/index.d.ts +0 -7
- package/cjs/core/ColorPicker/index.js +0 -48
- package/cjs/core/ComboBox/index.d.ts +0 -3
- package/cjs/core/ComboBox/index.js +0 -15
- package/cjs/core/DatePicker/index.d.ts +0 -3
- package/cjs/core/DatePicker/index.js +0 -21
- package/cjs/core/Dialog/index.d.ts +0 -3
- package/cjs/core/Dialog/index.js +0 -15
- package/cjs/core/DropdownMenu/index.d.ts +0 -4
- package/cjs/core/DropdownMenu/index.js +0 -15
- package/cjs/core/ExpandableBlock/index.d.ts +0 -3
- package/cjs/core/ExpandableBlock/index.js +0 -15
- package/cjs/core/Fieldset/index.d.ts +0 -3
- package/cjs/core/Fieldset/index.js +0 -15
- package/cjs/core/FileUpload/index.d.ts +0 -6
- package/cjs/core/FileUpload/index.js +0 -40
- package/cjs/core/Footer/index.d.ts +0 -4
- package/cjs/core/Footer/index.js +0 -21
- package/cjs/core/Header/index.d.ts +0 -6
- package/cjs/core/Header/index.js +0 -40
- package/cjs/core/InformationPanel/index.d.ts +0 -7
- package/cjs/core/InformationPanel/index.js +0 -48
- package/cjs/core/Input/index.d.ts +0 -3
- package/cjs/core/Input/index.js +0 -15
- package/cjs/core/InputGrid/index.d.ts +0 -3
- package/cjs/core/InputGrid/index.js +0 -15
- package/cjs/core/InputGroup/index.d.ts +0 -3
- package/cjs/core/InputGroup/index.js +0 -15
- package/cjs/core/InputWithDecorations/index.d.ts +0 -3
- package/cjs/core/InputWithDecorations/index.js +0 -15
- package/cjs/core/Label/index.d.ts +0 -3
- package/cjs/core/Label/index.js +0 -15
- package/cjs/core/LabeledInput/index.d.ts +0 -3
- package/cjs/core/LabeledInput/index.js +0 -15
- package/cjs/core/LabeledSelect/index.d.ts +0 -3
- package/cjs/core/LabeledSelect/index.js +0 -15
- package/cjs/core/LabeledTextarea/index.d.ts +0 -3
- package/cjs/core/LabeledTextarea/index.js +0 -15
- package/cjs/core/List/index.d.ts +0 -2
- package/cjs/core/List/index.js +0 -21
- package/cjs/core/Menu/index.d.ts +0 -5
- package/cjs/core/Menu/index.js +0 -47
- package/cjs/core/Modal/index.d.ts +0 -5
- package/cjs/core/Modal/index.js +0 -29
- package/cjs/core/NonIdealState/index.d.ts +0 -5
- package/cjs/core/NonIdealState/index.js +0 -22
- package/cjs/core/NotificationMarker/index.d.ts +0 -3
- package/cjs/core/NotificationMarker/index.js +0 -15
- package/cjs/core/Overlay/index.d.ts +0 -1
- package/cjs/core/Overlay/index.js +0 -14
- package/cjs/core/ProgressIndicators/index.d.ts +0 -2
- package/cjs/core/ProgressIndicators/index.js +0 -21
- package/cjs/core/Radio/index.d.ts +0 -3
- package/cjs/core/Radio/index.js +0 -15
- package/cjs/core/RadioTiles/index.d.ts +0 -4
- package/cjs/core/RadioTiles/index.js +0 -22
- package/cjs/core/SearchBox/index.d.ts +0 -3
- package/cjs/core/SearchBox/index.js +0 -15
- package/cjs/core/Select/index.d.ts +0 -4
- package/cjs/core/Select/index.js +0 -15
- package/cjs/core/SideNavigation/index.d.ts +0 -6
- package/cjs/core/SideNavigation/index.js +0 -40
- package/cjs/core/SkipToContentLink/index.d.ts +0 -3
- package/cjs/core/SkipToContentLink/index.js +0 -15
- package/cjs/core/Slider/index.d.ts +0 -3
- package/cjs/core/Slider/index.js +0 -15
- package/cjs/core/StatusMessage/index.d.ts +0 -3
- package/cjs/core/StatusMessage/index.js +0 -15
- package/cjs/core/Stepper/index.d.ts +0 -3
- package/cjs/core/Stepper/index.js +0 -21
- package/cjs/core/Surface/index.d.ts +0 -3
- package/cjs/core/Surface/index.js +0 -15
- package/cjs/core/Tabs/index.d.ts +0 -2
- package/cjs/core/Tabs/index.js +0 -21
- package/cjs/core/Tag/index.d.ts +0 -4
- package/cjs/core/Tag/index.js +0 -22
- package/cjs/core/Textarea/index.d.ts +0 -3
- package/cjs/core/Textarea/index.js +0 -15
- package/cjs/core/ThemeProvider/index.d.ts +0 -4
- package/cjs/core/ThemeProvider/index.js +0 -15
- package/cjs/core/Tile/index.d.ts +0 -3
- package/cjs/core/Tile/index.js +0 -15
- package/cjs/core/TimePicker/index.d.ts +0 -4
- package/cjs/core/TimePicker/index.js +0 -15
- package/cjs/core/Toast/index.d.ts +0 -1
- package/cjs/core/Toast/index.js +0 -14
- package/cjs/core/ToggleSwitch/index.d.ts +0 -3
- package/cjs/core/ToggleSwitch/index.js +0 -15
- package/cjs/core/Tooltip/index.d.ts +0 -3
- package/cjs/core/Tooltip/index.js +0 -15
- package/cjs/core/TransferList/index.d.ts +0 -3
- package/cjs/core/TransferList/index.js +0 -15
- package/cjs/core/Tree/index.d.ts +0 -4
- package/cjs/core/Tree/index.js +0 -28
- package/cjs/core/Typography/Anchor/index.d.ts +0 -3
- package/cjs/core/Typography/Anchor/index.js +0 -15
- package/cjs/core/Typography/Blockquote/index.d.ts +0 -3
- package/cjs/core/Typography/Blockquote/index.js +0 -15
- package/cjs/core/Typography/Code/index.d.ts +0 -3
- package/cjs/core/Typography/Code/index.js +0 -15
- package/cjs/core/Typography/Kbd/index.d.ts +0 -3
- package/cjs/core/Typography/Kbd/index.js +0 -21
- package/cjs/core/Typography/Text/index.d.ts +0 -3
- package/cjs/core/Typography/Text/index.js +0 -15
- package/cjs/core/Typography/index.d.ts +0 -5
- package/cjs/core/Typography/index.js +0 -54
- package/cjs/core/index.d.ts +0 -68
- package/cjs/core/index.js +0 -916
- package/esm/core/Alert/index.d.ts +0 -3
- package/esm/core/Alert/index.js +0 -6
- package/esm/core/Avatar/index.d.ts +0 -3
- package/esm/core/Avatar/index.js +0 -6
- package/esm/core/AvatarGroup/index.d.ts +0 -3
- package/esm/core/AvatarGroup/index.js +0 -6
- package/esm/core/Backdrop/index.d.ts +0 -1
- package/esm/core/Backdrop/index.js +0 -5
- package/esm/core/Badge/index.d.ts +0 -3
- package/esm/core/Badge/index.js +0 -6
- package/esm/core/Breadcrumbs/index.d.ts +0 -3
- package/esm/core/Breadcrumbs/index.js +0 -6
- package/esm/core/ButtonGroup/index.d.ts +0 -3
- package/esm/core/ButtonGroup/index.js +0 -6
- package/esm/core/Buttons/Button/index.d.ts +0 -3
- package/esm/core/Buttons/Button/index.js +0 -6
- package/esm/core/Buttons/DropdownButton/index.d.ts +0 -3
- package/esm/core/Buttons/DropdownButton/index.js +0 -6
- package/esm/core/Buttons/IconButton/index.d.ts +0 -3
- package/esm/core/Buttons/IconButton/index.js +0 -6
- package/esm/core/Buttons/IdeasButton/index.d.ts +0 -3
- package/esm/core/Buttons/IdeasButton/index.js +0 -6
- package/esm/core/Buttons/SplitButton/index.d.ts +0 -3
- package/esm/core/Buttons/SplitButton/index.js +0 -6
- package/esm/core/Buttons/index.d.ts +0 -5
- package/esm/core/Buttons/index.js +0 -9
- package/esm/core/Carousel/index.d.ts +0 -3
- package/esm/core/Carousel/index.js +0 -6
- package/esm/core/Checkbox/index.d.ts +0 -3
- package/esm/core/Checkbox/index.js +0 -6
- package/esm/core/ColorPicker/index.d.ts +0 -7
- package/esm/core/ColorPicker/index.js +0 -10
- package/esm/core/ComboBox/index.d.ts +0 -3
- package/esm/core/ComboBox/index.js +0 -6
- package/esm/core/DatePicker/index.d.ts +0 -3
- package/esm/core/DatePicker/index.js +0 -6
- package/esm/core/Dialog/index.d.ts +0 -3
- package/esm/core/Dialog/index.js +0 -6
- package/esm/core/DropdownMenu/index.d.ts +0 -4
- package/esm/core/DropdownMenu/index.js +0 -6
- package/esm/core/ExpandableBlock/index.d.ts +0 -3
- package/esm/core/ExpandableBlock/index.js +0 -6
- package/esm/core/Fieldset/index.d.ts +0 -3
- package/esm/core/Fieldset/index.js +0 -6
- package/esm/core/FileUpload/index.d.ts +0 -6
- package/esm/core/FileUpload/index.js +0 -9
- package/esm/core/Footer/index.d.ts +0 -4
- package/esm/core/Footer/index.js +0 -6
- package/esm/core/Header/index.d.ts +0 -6
- package/esm/core/Header/index.js +0 -9
- package/esm/core/InformationPanel/index.d.ts +0 -7
- package/esm/core/InformationPanel/index.js +0 -10
- package/esm/core/Input/index.d.ts +0 -3
- package/esm/core/Input/index.js +0 -6
- package/esm/core/InputGrid/index.d.ts +0 -3
- package/esm/core/InputGrid/index.js +0 -6
- package/esm/core/InputGroup/index.d.ts +0 -3
- package/esm/core/InputGroup/index.js +0 -6
- package/esm/core/InputWithDecorations/index.d.ts +0 -3
- package/esm/core/InputWithDecorations/index.js +0 -6
- package/esm/core/Label/index.d.ts +0 -3
- package/esm/core/Label/index.js +0 -6
- package/esm/core/LabeledInput/index.d.ts +0 -3
- package/esm/core/LabeledInput/index.js +0 -6
- package/esm/core/LabeledSelect/index.d.ts +0 -3
- package/esm/core/LabeledSelect/index.js +0 -6
- package/esm/core/LabeledTextarea/index.d.ts +0 -3
- package/esm/core/LabeledTextarea/index.js +0 -6
- package/esm/core/List/index.d.ts +0 -2
- package/esm/core/List/index.js +0 -6
- package/esm/core/Menu/index.d.ts +0 -5
- package/esm/core/Menu/index.js +0 -9
- package/esm/core/Modal/index.d.ts +0 -5
- package/esm/core/Modal/index.js +0 -8
- package/esm/core/NonIdealState/index.d.ts +0 -5
- package/esm/core/NonIdealState/index.js +0 -7
- package/esm/core/NotificationMarker/index.d.ts +0 -3
- package/esm/core/NotificationMarker/index.js +0 -6
- package/esm/core/Overlay/index.d.ts +0 -1
- package/esm/core/Overlay/index.js +0 -5
- package/esm/core/ProgressIndicators/index.d.ts +0 -2
- package/esm/core/ProgressIndicators/index.js +0 -6
- package/esm/core/Radio/index.d.ts +0 -3
- package/esm/core/Radio/index.js +0 -6
- package/esm/core/RadioTiles/index.d.ts +0 -4
- package/esm/core/RadioTiles/index.js +0 -7
- package/esm/core/SearchBox/index.d.ts +0 -3
- package/esm/core/SearchBox/index.js +0 -6
- package/esm/core/Select/index.d.ts +0 -4
- package/esm/core/Select/index.js +0 -6
- package/esm/core/SideNavigation/index.d.ts +0 -6
- package/esm/core/SideNavigation/index.js +0 -9
- package/esm/core/SkipToContentLink/index.d.ts +0 -3
- package/esm/core/SkipToContentLink/index.js +0 -6
- package/esm/core/Slider/index.d.ts +0 -3
- package/esm/core/Slider/index.js +0 -6
- package/esm/core/StatusMessage/index.d.ts +0 -3
- package/esm/core/StatusMessage/index.js +0 -6
- package/esm/core/Stepper/index.d.ts +0 -3
- package/esm/core/Stepper/index.js +0 -6
- package/esm/core/Surface/index.d.ts +0 -3
- package/esm/core/Surface/index.js +0 -6
- package/esm/core/Tabs/index.d.ts +0 -2
- package/esm/core/Tabs/index.js +0 -6
- package/esm/core/Tag/index.d.ts +0 -4
- package/esm/core/Tag/index.js +0 -7
- package/esm/core/Textarea/index.d.ts +0 -3
- package/esm/core/Textarea/index.js +0 -6
- package/esm/core/ThemeProvider/index.d.ts +0 -4
- package/esm/core/ThemeProvider/index.js +0 -6
- package/esm/core/Tile/index.d.ts +0 -3
- package/esm/core/Tile/index.js +0 -6
- package/esm/core/TimePicker/index.d.ts +0 -4
- package/esm/core/TimePicker/index.js +0 -6
- package/esm/core/Toast/index.d.ts +0 -1
- package/esm/core/Toast/index.js +0 -5
- package/esm/core/ToggleSwitch/index.d.ts +0 -3
- package/esm/core/ToggleSwitch/index.js +0 -6
- package/esm/core/Tooltip/index.d.ts +0 -3
- package/esm/core/Tooltip/index.js +0 -6
- package/esm/core/TransferList/index.d.ts +0 -3
- package/esm/core/TransferList/index.js +0 -6
- package/esm/core/Tree/index.d.ts +0 -4
- package/esm/core/Tree/index.js +0 -7
- package/esm/core/Typography/Anchor/index.d.ts +0 -3
- package/esm/core/Typography/Anchor/index.js +0 -6
- package/esm/core/Typography/Blockquote/index.d.ts +0 -3
- package/esm/core/Typography/Blockquote/index.js +0 -6
- package/esm/core/Typography/Code/index.d.ts +0 -3
- package/esm/core/Typography/Code/index.js +0 -6
- package/esm/core/Typography/Kbd/index.d.ts +0 -3
- package/esm/core/Typography/Kbd/index.js +0 -6
- package/esm/core/Typography/Text/index.d.ts +0 -3
- package/esm/core/Typography/Text/index.js +0 -6
- package/esm/core/Typography/index.d.ts +0 -5
- package/esm/core/Typography/index.js +0 -9
- package/esm/core/index.d.ts +0 -68
- package/esm/core/index.js +0 -132
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* </Surface>
|
|
9
9
|
* </LinkBox>
|
|
10
10
|
*/
|
|
11
|
-
export declare const LinkAction: import("../props.js").PolymorphicForwardRefComponent<"a", {}>;
|
|
11
|
+
export declare const LinkAction: import("../utils/props.js").PolymorphicForwardRefComponent<"a", {}>;
|
|
12
12
|
/**
|
|
13
13
|
* Polymorphic link box component.
|
|
14
14
|
* Used to wrap around your component to use LinkAction.
|
|
@@ -20,4 +20,4 @@ export declare const LinkAction: import("../props.js").PolymorphicForwardRefComp
|
|
|
20
20
|
* </Surface>
|
|
21
21
|
* </LinkBox>
|
|
22
22
|
*/
|
|
23
|
-
export declare const LinkBox: import("../props.js").PolymorphicForwardRefComponent<"div", {}>;
|
|
23
|
+
export declare const LinkBox: import("../utils/props.js").PolymorphicForwardRefComponent<"div", {}>;
|
|
@@ -5,7 +5,7 @@ exports.LinkBox = exports.LinkAction = void 0;
|
|
|
5
5
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
6
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
|
-
const polymorphic_js_1 = require('../functions/polymorphic.js');
|
|
8
|
+
const polymorphic_js_1 = require('../utils/functions/polymorphic.js');
|
|
9
9
|
/**
|
|
10
10
|
* Polymorphic link action component.
|
|
11
11
|
* It is rendered as `a` by default.
|
|
@@ -11,6 +11,7 @@ const index_js_1 = require('../utils/index.js');
|
|
|
11
11
|
const Menu_js_1 = require('./Menu.js');
|
|
12
12
|
const ListItem_js_1 = require('../List/ListItem.js');
|
|
13
13
|
const react_dom_1 = require('react-dom');
|
|
14
|
+
const Popover_js_1 = require('../Popover/Popover.js');
|
|
14
15
|
/**
|
|
15
16
|
* Context used to provide menu item ref to sub-menu items.
|
|
16
17
|
*/
|
|
@@ -51,7 +52,7 @@ exports.MenuItem = React.forwardRef((props, forwardedRef) => {
|
|
|
51
52
|
// so we need to let the parent know whether the submenu is still open.
|
|
52
53
|
parent.setIsNestedSubmenuVisible(open);
|
|
53
54
|
};
|
|
54
|
-
const popover = (0,
|
|
55
|
+
const popover = (0, Popover_js_1.usePopover)({
|
|
55
56
|
visible: isSubmenuVisible || isNestedSubmenuVisible,
|
|
56
57
|
onVisibleChange,
|
|
57
58
|
placement: 'right-start',
|
|
@@ -9,6 +9,7 @@ const tslib_1 = require('tslib');
|
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
11
|
const index_js_1 = require('../utils/index.js');
|
|
12
|
+
const VisuallyHidden_js_1 = require('../VisuallyHidden/VisuallyHidden.js');
|
|
12
13
|
/**
|
|
13
14
|
* Menu item that uses skeletons to indicate loading state.
|
|
14
15
|
*/
|
|
@@ -54,7 +55,7 @@ exports.MenuItemSkeleton = React.forwardRef((props, forwardedRef) => {
|
|
|
54
55
|
'aria-hidden': true,
|
|
55
56
|
}),
|
|
56
57
|
React.createElement(
|
|
57
|
-
|
|
58
|
+
VisuallyHidden_js_1.VisuallyHidden,
|
|
58
59
|
null,
|
|
59
60
|
translatedStrings.loading,
|
|
60
61
|
),
|
package/cjs/core/Modal/Modal.js
CHANGED
|
@@ -7,7 +7,7 @@ const tslib_1 = require('tslib');
|
|
|
7
7
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
|
-
const
|
|
10
|
+
const Dialog_js_1 = require('../Dialog/Dialog.js');
|
|
11
11
|
/**
|
|
12
12
|
* Modal component which can wrap any content.
|
|
13
13
|
* @example
|
|
@@ -42,7 +42,7 @@ exports.Modal = React.forwardRef((props, forwardedRef) => {
|
|
|
42
42
|
...rest
|
|
43
43
|
} = props;
|
|
44
44
|
return React.createElement(
|
|
45
|
-
|
|
45
|
+
Dialog_js_1.Dialog,
|
|
46
46
|
{
|
|
47
47
|
isOpen: isOpen,
|
|
48
48
|
closeOnEsc: closeOnEsc,
|
|
@@ -55,11 +55,11 @@ exports.Modal = React.forwardRef((props, forwardedRef) => {
|
|
|
55
55
|
ref: forwardedRef,
|
|
56
56
|
portal: portal,
|
|
57
57
|
},
|
|
58
|
-
React.createElement(
|
|
58
|
+
React.createElement(Dialog_js_1.Dialog.Backdrop, null),
|
|
59
59
|
React.createElement(
|
|
60
|
-
|
|
60
|
+
Dialog_js_1.Dialog.Main,
|
|
61
61
|
{ 'aria-modal': true, ...rest },
|
|
62
|
-
React.createElement(
|
|
62
|
+
React.createElement(Dialog_js_1.Dialog.TitleBar, { titleText: title }),
|
|
63
63
|
children,
|
|
64
64
|
),
|
|
65
65
|
);
|
|
@@ -7,38 +7,38 @@ const tslib_1 = require('tslib');
|
|
|
7
7
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
|
-
const
|
|
10
|
+
const Button_js_1 = require('../Buttons/Button.js');
|
|
11
11
|
const NonIdealState_js_1 = require('./NonIdealState.js');
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const ProgressRadial_js_1 = require('../ProgressIndicators/ProgressRadial.js');
|
|
13
|
+
const index_js_1 = require('../utils/index.js');
|
|
14
14
|
const Svg401 = React.lazy(() =>
|
|
15
|
-
(0,
|
|
15
|
+
(0, index_js_1.dynamicImport)('@itwin/itwinui-illustrations-react/Svg401'),
|
|
16
16
|
);
|
|
17
17
|
const Svg403 = React.lazy(() =>
|
|
18
|
-
(0,
|
|
18
|
+
(0, index_js_1.dynamicImport)('@itwin/itwinui-illustrations-react/Svg403'),
|
|
19
19
|
);
|
|
20
20
|
const Svg404 = React.lazy(() =>
|
|
21
|
-
(0,
|
|
21
|
+
(0, index_js_1.dynamicImport)('@itwin/itwinui-illustrations-react/Svg404'),
|
|
22
22
|
);
|
|
23
23
|
const Svg500 = React.lazy(() =>
|
|
24
|
-
(0,
|
|
24
|
+
(0, index_js_1.dynamicImport)('@itwin/itwinui-illustrations-react/Svg500'),
|
|
25
25
|
);
|
|
26
26
|
const Svg502 = React.lazy(() =>
|
|
27
|
-
(0,
|
|
27
|
+
(0, index_js_1.dynamicImport)('@itwin/itwinui-illustrations-react/Svg502'),
|
|
28
28
|
);
|
|
29
29
|
const Svg503 = React.lazy(() =>
|
|
30
|
-
(0,
|
|
30
|
+
(0, index_js_1.dynamicImport)('@itwin/itwinui-illustrations-react/Svg503'),
|
|
31
31
|
);
|
|
32
32
|
const SvgError = React.lazy(() =>
|
|
33
|
-
(0,
|
|
33
|
+
(0, index_js_1.dynamicImport)('@itwin/itwinui-illustrations-react/SvgError'),
|
|
34
34
|
);
|
|
35
35
|
const SvgRedirect = React.lazy(() =>
|
|
36
|
-
(0,
|
|
36
|
+
(0, index_js_1.dynamicImport)(
|
|
37
37
|
'@itwin/itwinui-illustrations-react/SvgRedirect',
|
|
38
38
|
),
|
|
39
39
|
);
|
|
40
40
|
const SvgTimedOut = React.lazy(() =>
|
|
41
|
-
(0,
|
|
41
|
+
(0, index_js_1.dynamicImport)(
|
|
42
42
|
'@itwin/itwinui-illustrations-react/SvgTimedOut',
|
|
43
43
|
),
|
|
44
44
|
);
|
|
@@ -161,7 +161,7 @@ exports.ErrorPage = React.forwardRef((props, forwardedRef) => {
|
|
|
161
161
|
return undefined;
|
|
162
162
|
}
|
|
163
163
|
return React.createElement(
|
|
164
|
-
|
|
164
|
+
Button_js_1.Button,
|
|
165
165
|
{ styleType: 'high-visibility', onClick: primaryButtonHandle },
|
|
166
166
|
primaryButtonLabel,
|
|
167
167
|
);
|
|
@@ -171,7 +171,7 @@ exports.ErrorPage = React.forwardRef((props, forwardedRef) => {
|
|
|
171
171
|
return undefined;
|
|
172
172
|
}
|
|
173
173
|
return React.createElement(
|
|
174
|
-
|
|
174
|
+
Button_js_1.Button,
|
|
175
175
|
{ styleType: 'default', onClick: secondaryButtonHandle },
|
|
176
176
|
secondaryButtonLabel,
|
|
177
177
|
);
|
|
@@ -192,7 +192,9 @@ exports.ErrorPage = React.forwardRef((props, forwardedRef) => {
|
|
|
192
192
|
return React.createElement(NonIdealState_js_1.NonIdealState, {
|
|
193
193
|
svg: React.createElement(
|
|
194
194
|
React.Suspense,
|
|
195
|
-
{
|
|
195
|
+
{
|
|
196
|
+
fallback: React.createElement(ProgressRadial_js_1.ProgressRadial, null),
|
|
197
|
+
},
|
|
196
198
|
getErrorIcon(),
|
|
197
199
|
),
|
|
198
200
|
heading: getHeadingMessage(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { Placement } from '@floating-ui/react';
|
|
3
|
-
import type { PolymorphicForwardRefComponent } from '../index.js';
|
|
4
|
-
import type { PortalProps } from '
|
|
3
|
+
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
|
+
import type { PortalProps } from '../utils/components/Portal.js';
|
|
5
5
|
type PopoverOptions = {
|
|
6
6
|
/**
|
|
7
7
|
* Placement of the popover content.
|
|
@@ -81,11 +81,7 @@ export declare const usePopover: (options: PopoverOptions & PopoverInternalProps
|
|
|
81
81
|
setFloating: (node: HTMLElement | null) => void;
|
|
82
82
|
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
83
83
|
elements: {
|
|
84
|
-
reference: import("@floating-ui/react-dom").ReferenceType | null;
|
|
85
|
-
* Middleware options.
|
|
86
|
-
*
|
|
87
|
-
* @see https://floating-ui.com/docs/offset
|
|
88
|
-
*/
|
|
84
|
+
reference: import("@floating-ui/react-dom").ReferenceType | null;
|
|
89
85
|
floating: HTMLElement | null;
|
|
90
86
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
91
87
|
context: {
|
|
@@ -7,11 +7,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
7
7
|
exports.Popover = exports.usePopover = void 0;
|
|
8
8
|
const tslib_1 = require('tslib');
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
|
+
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
10
11
|
const react_1 = require('@floating-ui/react');
|
|
11
|
-
const index_js_1 = require('../index.js');
|
|
12
|
-
const Portal_js_1 = require('
|
|
13
|
-
const
|
|
14
|
-
const index_js_3 = require('../../ThemeProvider/index.js');
|
|
12
|
+
const index_js_1 = require('../utils/index.js');
|
|
13
|
+
const Portal_js_1 = require('../utils/components/Portal.js');
|
|
14
|
+
const ThemeProvider_js_1 = require('../ThemeProvider/ThemeProvider.js');
|
|
15
15
|
// ----------------------------------------------------------------------------
|
|
16
16
|
const usePopover = (options) => {
|
|
17
17
|
const {
|
|
@@ -111,6 +111,7 @@ exports.Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
111
111
|
matchWidth,
|
|
112
112
|
//
|
|
113
113
|
// dom props
|
|
114
|
+
className,
|
|
114
115
|
children,
|
|
115
116
|
content,
|
|
116
117
|
applyBackground,
|
|
@@ -142,7 +143,7 @@ exports.Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
142
143
|
Portal_js_1.Portal,
|
|
143
144
|
{ portal: portal },
|
|
144
145
|
React.createElement(
|
|
145
|
-
|
|
146
|
+
ThemeProvider_js_1.ThemeProvider,
|
|
146
147
|
{ portalContainer: popoverElement },
|
|
147
148
|
React.createElement(
|
|
148
149
|
react_1.FloatingFocusManager,
|
|
@@ -155,7 +156,10 @@ exports.Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
155
156
|
React.createElement(
|
|
156
157
|
index_js_1.Box,
|
|
157
158
|
{
|
|
158
|
-
|
|
159
|
+
className: (0, classnames_1.default)(
|
|
160
|
+
{ 'iui-popover-surface': applyBackground },
|
|
161
|
+
className,
|
|
162
|
+
),
|
|
159
163
|
...popover.getFloatingProps(rest),
|
|
160
164
|
ref: popoverRef,
|
|
161
165
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { InputGroup } from '../InputGroup/
|
|
2
|
+
import { InputGroup } from '../InputGroup/InputGroup.js';
|
|
3
3
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
4
4
|
type RadioTileGroupProps = Omit<React.ComponentProps<typeof InputGroup>, 'displayStyle' | 'disabled'>;
|
|
5
5
|
/**
|
|
@@ -7,8 +7,8 @@ const tslib_1 = require('tslib');
|
|
|
7
7
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
|
-
const
|
|
11
|
-
const
|
|
10
|
+
const InputGroup_js_1 = require('../InputGroup/InputGroup.js');
|
|
11
|
+
const index_js_1 = require('../utils/index.js');
|
|
12
12
|
/**
|
|
13
13
|
* RadioTileGroup component to group RadioTile components together
|
|
14
14
|
* @example
|
|
@@ -20,10 +20,10 @@ const index_js_2 = require('../utils/index.js');
|
|
|
20
20
|
exports.RadioTileGroup = React.forwardRef((props, forwardedRef) => {
|
|
21
21
|
const { children, label, ...rest } = props;
|
|
22
22
|
return React.createElement(
|
|
23
|
-
|
|
23
|
+
InputGroup_js_1.InputGroup,
|
|
24
24
|
{ label: label, ref: forwardedRef, ...rest },
|
|
25
25
|
React.createElement(
|
|
26
|
-
|
|
26
|
+
index_js_1.Box,
|
|
27
27
|
{ className: 'iui-radio-tile-container' },
|
|
28
28
|
children,
|
|
29
29
|
),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import type { IconButtonProps } from '../Buttons/IconButton
|
|
2
|
+
import type { PolymorphicForwardRefComponent, InputFlexContainerProps } from '../utils/index.js';
|
|
3
|
+
import type { IconButtonProps } from '../Buttons/IconButton.js';
|
|
4
|
+
import type { IconProps } from '../Icon/Icon.js';
|
|
4
5
|
type SearchBoxOwnProps = {
|
|
5
6
|
/**
|
|
6
7
|
* Whether the searchbox is expandable.
|
|
@@ -9,7 +9,8 @@ const tslib_1 = require('tslib');
|
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
11
|
const index_js_1 = require('../utils/index.js');
|
|
12
|
-
const
|
|
12
|
+
const IconButton_js_1 = require('../Buttons/IconButton.js');
|
|
13
|
+
const Icon_js_1 = require('../Icon/Icon.js');
|
|
13
14
|
const SearchBoxContext = React.createContext(undefined);
|
|
14
15
|
const SearchBoxComponent = React.forwardRef((props, ref) => {
|
|
15
16
|
const {
|
|
@@ -122,7 +123,7 @@ SearchBoxExpandedState.displayName = 'SearchBox.ExpandedState';
|
|
|
122
123
|
const SearchBoxIcon = React.forwardRef((props, ref) => {
|
|
123
124
|
const { className, children, ...rest } = props;
|
|
124
125
|
return React.createElement(
|
|
125
|
-
|
|
126
|
+
Icon_js_1.Icon,
|
|
126
127
|
{
|
|
127
128
|
'aria-hidden': true,
|
|
128
129
|
className: (0, classnames_1.default)('iui-search-icon', className),
|
|
@@ -162,7 +163,7 @@ const SearchBoxButton = React.forwardRef((props, ref) => {
|
|
|
162
163
|
SearchBoxContext,
|
|
163
164
|
);
|
|
164
165
|
return React.createElement(
|
|
165
|
-
|
|
166
|
+
IconButton_js_1.IconButton,
|
|
166
167
|
{
|
|
167
168
|
styleType: 'borderless',
|
|
168
169
|
size: sizeContext,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { usePopover } from '../utils/index.js';
|
|
3
2
|
import type { CommonProps } from '../utils/index.js';
|
|
3
|
+
import { usePopover } from '../Popover/Popover.js';
|
|
4
4
|
export type ItemRendererProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Close handler that closes the dropdown.
|
|
@@ -8,12 +8,13 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
);
|
|
11
|
+
const Menu_js_1 = require('../Menu/Menu.js');
|
|
12
|
+
const MenuItem_js_1 = require('../Menu/MenuItem.js');
|
|
13
|
+
const index_js_1 = require('../utils/index.js');
|
|
14
|
+
const SelectTag_js_1 = require('./SelectTag.js');
|
|
15
|
+
const SelectTagContainer_js_1 = require('./SelectTagContainer.js');
|
|
16
|
+
const Icon_js_1 = require('../Icon/Icon.js');
|
|
17
|
+
const Popover_js_1 = require('../Popover/Popover.js');
|
|
17
18
|
const isMultipleEnabled = (variable, multiple) => {
|
|
18
19
|
return multiple;
|
|
19
20
|
};
|
|
@@ -71,7 +72,7 @@ const isSingleOnChange = (onChange, multiple) => {
|
|
|
71
72
|
* />
|
|
72
73
|
*/
|
|
73
74
|
const Select = (props) => {
|
|
74
|
-
const uid = (0,
|
|
75
|
+
const uid = (0, index_js_1.useId)();
|
|
75
76
|
const {
|
|
76
77
|
options,
|
|
77
78
|
value,
|
|
@@ -113,7 +114,7 @@ const Select = (props) => {
|
|
|
113
114
|
: value === option.value;
|
|
114
115
|
const menuItem = itemRenderer
|
|
115
116
|
? itemRenderer(option, { close: () => setIsOpen(false), isSelected })
|
|
116
|
-
: React.createElement(
|
|
117
|
+
: React.createElement(MenuItem_js_1.MenuItem, null, option.label);
|
|
117
118
|
const { label, icon, startIcon: startIconProp, ...restOption } = option;
|
|
118
119
|
const startIcon = startIconProp ?? icon;
|
|
119
120
|
return React.cloneElement(menuItem, {
|
|
@@ -121,7 +122,7 @@ const Select = (props) => {
|
|
|
121
122
|
isSelected,
|
|
122
123
|
startIcon: startIcon,
|
|
123
124
|
endIcon: isSelected
|
|
124
|
-
? React.createElement(
|
|
125
|
+
? React.createElement(index_js_1.SvgCheckmark, {
|
|
125
126
|
'aria-hidden': true,
|
|
126
127
|
})
|
|
127
128
|
: null,
|
|
@@ -170,12 +171,12 @@ const Select = (props) => {
|
|
|
170
171
|
: options.find((option) => option.value === value);
|
|
171
172
|
}, [multiple, options, value]);
|
|
172
173
|
const tagRenderer = React.useCallback((item) => {
|
|
173
|
-
return React.createElement(SelectTag_js_1.
|
|
174
|
+
return React.createElement(SelectTag_js_1.SelectTag, {
|
|
174
175
|
key: item.label,
|
|
175
176
|
label: item.label,
|
|
176
177
|
});
|
|
177
178
|
}, []);
|
|
178
|
-
const popover = (0,
|
|
179
|
+
const popover = (0, Popover_js_1.usePopover)({
|
|
179
180
|
visible: isOpen,
|
|
180
181
|
matchWidth: true,
|
|
181
182
|
closeOnOutsideClick: true,
|
|
@@ -186,7 +187,7 @@ const Select = (props) => {
|
|
|
186
187
|
React.Fragment,
|
|
187
188
|
null,
|
|
188
189
|
React.createElement(
|
|
189
|
-
|
|
190
|
+
index_js_1.Box,
|
|
190
191
|
{
|
|
191
192
|
className: (0, classnames_1.default)('iui-input-with-icon', className),
|
|
192
193
|
style: style,
|
|
@@ -194,7 +195,7 @@ const Select = (props) => {
|
|
|
194
195
|
ref: popover.refs.setPositionReference,
|
|
195
196
|
},
|
|
196
197
|
React.createElement(
|
|
197
|
-
|
|
198
|
+
index_js_1.Box,
|
|
198
199
|
{
|
|
199
200
|
...popover.getReferenceProps(),
|
|
200
201
|
tabIndex: 0,
|
|
@@ -207,7 +208,7 @@ const Select = (props) => {
|
|
|
207
208
|
'aria-haspopup': 'listbox',
|
|
208
209
|
'aria-controls': `${uid}-menu`,
|
|
209
210
|
...triggerProps,
|
|
210
|
-
ref: (0,
|
|
211
|
+
ref: (0, index_js_1.useMergedRefs)(
|
|
211
212
|
selectRef,
|
|
212
213
|
popover.refs.setReference,
|
|
213
214
|
),
|
|
@@ -223,7 +224,7 @@ const Select = (props) => {
|
|
|
223
224
|
},
|
|
224
225
|
(!selectedItems || selectedItems.length === 0) &&
|
|
225
226
|
React.createElement(
|
|
226
|
-
|
|
227
|
+
index_js_1.Box,
|
|
227
228
|
{ as: 'span', className: 'iui-content' },
|
|
228
229
|
placeholder,
|
|
229
230
|
),
|
|
@@ -239,7 +240,7 @@ const Select = (props) => {
|
|
|
239
240
|
}),
|
|
240
241
|
),
|
|
241
242
|
React.createElement(
|
|
242
|
-
|
|
243
|
+
Icon_js_1.Icon,
|
|
243
244
|
{
|
|
244
245
|
as: 'span',
|
|
245
246
|
'aria-hidden': true,
|
|
@@ -248,20 +249,20 @@ const Select = (props) => {
|
|
|
248
249
|
'iui-open': isOpen,
|
|
249
250
|
}),
|
|
250
251
|
},
|
|
251
|
-
React.createElement(
|
|
252
|
+
React.createElement(index_js_1.SvgCaretDownSmall, null),
|
|
252
253
|
),
|
|
253
254
|
multiple
|
|
254
|
-
? React.createElement(
|
|
255
|
+
? React.createElement(index_js_1.AutoclearingHiddenLiveRegion, {
|
|
255
256
|
text: liveRegionSelection,
|
|
256
257
|
})
|
|
257
258
|
: null,
|
|
258
259
|
),
|
|
259
260
|
popover.open &&
|
|
260
261
|
React.createElement(
|
|
261
|
-
|
|
262
|
+
index_js_1.Portal,
|
|
262
263
|
null,
|
|
263
264
|
React.createElement(
|
|
264
|
-
|
|
265
|
+
Menu_js_1.Menu,
|
|
265
266
|
{
|
|
266
267
|
role: 'listbox',
|
|
267
268
|
className: menuClassName,
|
|
@@ -296,12 +297,12 @@ const SingleSelectButton = ({ selectedItem, selectedItemRenderer }) => {
|
|
|
296
297
|
null,
|
|
297
298
|
startIcon &&
|
|
298
299
|
React.createElement(
|
|
299
|
-
|
|
300
|
+
index_js_1.Box,
|
|
300
301
|
{ as: 'span', className: 'iui-icon', 'aria-hidden': true },
|
|
301
302
|
startIcon,
|
|
302
303
|
),
|
|
303
304
|
React.createElement(
|
|
304
|
-
|
|
305
|
+
index_js_1.Box,
|
|
305
306
|
{ as: 'span', className: 'iui-content' },
|
|
306
307
|
selectedItem.label,
|
|
307
308
|
),
|
|
@@ -328,9 +329,9 @@ const MultipleSelectButton = ({
|
|
|
328
329
|
selectedItems &&
|
|
329
330
|
!selectedItemsRenderer &&
|
|
330
331
|
React.createElement(
|
|
331
|
-
|
|
332
|
+
index_js_1.Box,
|
|
332
333
|
{ as: 'span', className: 'iui-content' },
|
|
333
|
-
React.createElement(SelectTagContainer_js_1.
|
|
334
|
+
React.createElement(SelectTagContainer_js_1.SelectTagContainer, {
|
|
334
335
|
tags: selectedItemsElements,
|
|
335
336
|
}),
|
|
336
337
|
),
|
|
@@ -9,7 +9,7 @@ const tslib_1 = require('tslib');
|
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
11
|
const index_js_1 = require('../utils/index.js');
|
|
12
|
-
const SelectTag_js_1 =
|
|
12
|
+
const SelectTag_js_1 = require('./SelectTag.js');
|
|
13
13
|
/**
|
|
14
14
|
*/
|
|
15
15
|
exports.SelectTagContainer = React.forwardRef((props, ref) => {
|
|
@@ -31,7 +31,7 @@ exports.SelectTagContainer = React.forwardRef((props, ref) => {
|
|
|
31
31
|
null,
|
|
32
32
|
visibleCount < tags.length ? tags.slice(0, visibleCount - 1) : tags,
|
|
33
33
|
visibleCount < tags.length &&
|
|
34
|
-
React.createElement(SelectTag_js_1.
|
|
34
|
+
React.createElement(SelectTag_js_1.SelectTag, {
|
|
35
35
|
label: `+${tags.length - visibleCount + 1} item(s)`,
|
|
36
36
|
}),
|
|
37
37
|
),
|
|
@@ -9,8 +9,8 @@ const tslib_1 = require('tslib');
|
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
11
|
const index_js_1 = require('../utils/index.js');
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const IconButton_js_1 = require('../Buttons/IconButton.js');
|
|
13
|
+
const Tooltip_js_1 = require('../Tooltip/Tooltip.js');
|
|
14
14
|
/**
|
|
15
15
|
* Left side navigation menu component.
|
|
16
16
|
* @example
|
|
@@ -46,7 +46,7 @@ exports.SideNavigation = React.forwardRef((props, forwardedRef) => {
|
|
|
46
46
|
_setIsExpanded(isExpanded);
|
|
47
47
|
}, [isExpanded]);
|
|
48
48
|
const ExpandButton = React.createElement(
|
|
49
|
-
|
|
49
|
+
IconButton_js_1.IconButton,
|
|
50
50
|
{
|
|
51
51
|
label: 'Toggle icon labels',
|
|
52
52
|
'aria-expanded': _isExpanded,
|
|
@@ -106,7 +106,7 @@ exports.SideNavigation = React.forwardRef((props, forwardedRef) => {
|
|
|
106
106
|
items.map((sidenavButton, index) =>
|
|
107
107
|
!_isExpanded
|
|
108
108
|
? React.createElement(
|
|
109
|
-
|
|
109
|
+
Tooltip_js_1.Tooltip,
|
|
110
110
|
{
|
|
111
111
|
content: sidenavButton.props.children,
|
|
112
112
|
placement: 'right',
|
|
@@ -130,7 +130,7 @@ exports.SideNavigation = React.forwardRef((props, forwardedRef) => {
|
|
|
130
130
|
secondaryItems?.map((sidenavButton, index) =>
|
|
131
131
|
!_isExpanded
|
|
132
132
|
? React.createElement(
|
|
133
|
-
|
|
133
|
+
Tooltip_js_1.Tooltip,
|
|
134
134
|
{
|
|
135
135
|
content: sidenavButton.props.children,
|
|
136
136
|
placement: 'right',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
2
|
-
import type { ButtonProps } from '../Buttons/Button
|
|
2
|
+
import type { ButtonProps } from '../Buttons/Button.js';
|
|
3
3
|
type SidenavButtonProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Whether the sidenav button is active,
|
|
@@ -8,7 +8,7 @@ exports.SidenavButton = void 0;
|
|
|
8
8
|
const tslib_1 = require('tslib');
|
|
9
9
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
10
10
|
const React = tslib_1.__importStar(require('react'));
|
|
11
|
-
const
|
|
11
|
+
const Button_js_1 = require('../Buttons/Button.js');
|
|
12
12
|
/**
|
|
13
13
|
* Wrapper around Button to be used as SideNavigation items.
|
|
14
14
|
* Label is hidden when sidenav is collapsed.
|
|
@@ -23,7 +23,7 @@ exports.SidenavButton = React.forwardRef((props, ref) => {
|
|
|
23
23
|
...rest
|
|
24
24
|
} = props;
|
|
25
25
|
return React.createElement(
|
|
26
|
-
|
|
26
|
+
Button_js_1.Button,
|
|
27
27
|
{
|
|
28
28
|
className: (0, classnames_1.default)(
|
|
29
29
|
'iui-sidenav-button',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
-
import type { Tooltip } from '../Tooltip/
|
|
3
|
+
import type { Tooltip } from '../Tooltip/Tooltip.js';
|
|
4
4
|
/**
|
|
5
5
|
* Determines which segments are shown with color.
|
|
6
6
|
*/
|
package/cjs/core/Slider/Thumb.js
CHANGED
|
@@ -8,8 +8,8 @@ const tslib_1 = require('tslib');
|
|
|
8
8
|
*--------------------------------------------------------------------------------------------*/
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const Tooltip_js_1 = require('../Tooltip/Tooltip.js');
|
|
12
|
+
const index_js_1 = require('../utils/index.js');
|
|
13
13
|
/**
|
|
14
14
|
* Thumb is a local component used to show and modify the values maintained by the Slider.
|
|
15
15
|
* Only one Thumb can be active at a time. A Thumb is made active when the user selects
|
|
@@ -88,14 +88,14 @@ const Thumb = (props) => {
|
|
|
88
88
|
}, [adjustedValue, sliderMax, sliderMin]);
|
|
89
89
|
const { style, className, ...rest } = thumbProps || {};
|
|
90
90
|
return React.createElement(
|
|
91
|
-
|
|
91
|
+
Tooltip_js_1.Tooltip,
|
|
92
92
|
{
|
|
93
93
|
placement: 'top',
|
|
94
94
|
autoUpdateOptions: { animationFrame: true },
|
|
95
95
|
ariaStrategy: 'none',
|
|
96
96
|
...tooltipProps,
|
|
97
97
|
},
|
|
98
|
-
React.createElement(
|
|
98
|
+
React.createElement(index_js_1.Box, {
|
|
99
99
|
...rest,
|
|
100
100
|
'data-index': index,
|
|
101
101
|
ref: thumbRef,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Icon } from '../utils/index.js';
|
|
3
2
|
import type { PolymorphicForwardRefComponent } from '../utils/index.js';
|
|
3
|
+
import { Icon } from '../Icon/Icon.js';
|
|
4
4
|
type StatusMessageProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Custom icon to be displayed at the beginning.
|
|
@@ -9,6 +9,7 @@ const tslib_1 = require('tslib');
|
|
|
9
9
|
const React = tslib_1.__importStar(require('react'));
|
|
10
10
|
const index_js_1 = require('../utils/index.js');
|
|
11
11
|
const classnames_1 = tslib_1.__importDefault(require('classnames'));
|
|
12
|
+
const Icon_js_1 = require('../Icon/Icon.js');
|
|
12
13
|
/**
|
|
13
14
|
* Component to display icon and text below the form field.
|
|
14
15
|
* @example
|
|
@@ -36,7 +37,7 @@ exports.StatusMessage = React.forwardRef((props, ref) => {
|
|
|
36
37
|
},
|
|
37
38
|
!!icon
|
|
38
39
|
? React.createElement(
|
|
39
|
-
|
|
40
|
+
Icon_js_1.Icon,
|
|
40
41
|
{ 'aria-hidden': true, ...iconProps },
|
|
41
42
|
icon,
|
|
42
43
|
)
|