@itwin/itwinui-react 3.0.0-dev.10 → 3.0.0-dev.12
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 +40 -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 +2 -2
- 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/cjs/core/{utils/components → Popover}/Popover.d.ts +29 -13
- package/cjs/core/{utils/components → Popover}/Popover.js +43 -25
- 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/Surface/Surface.d.ts +8 -0
- package/cjs/core/Surface/Surface.js +19 -1
- 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 +5 -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 +2 -2
- 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/esm/core/{utils/components → Popover}/Popover.d.ts +29 -13
- package/esm/core/{utils/components → Popover}/Popover.js +45 -25
- 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/Surface/Surface.d.ts +8 -0
- package/esm/core/Surface/Surface.js +19 -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 +2 -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
|
@@ -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 LabeledInput_js_1 = require('../LabeledInput/LabeledInput.js');
|
|
11
11
|
/**
|
|
12
12
|
* Textarea wrapper that allows for additional styling and labelling
|
|
13
13
|
* @example
|
|
@@ -34,7 +34,7 @@ exports.LabeledTextarea = React.forwardRef((props, forwardedRef) => {
|
|
|
34
34
|
// ref types don't match but it's internal, so ts-ignore is ok here
|
|
35
35
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
36
36
|
// @ts-ignore
|
|
37
|
-
React.createElement(
|
|
37
|
+
React.createElement(LabeledInput_js_1.LabeledInput, {
|
|
38
38
|
as: 'textarea',
|
|
39
39
|
rows: 3,
|
|
40
40
|
ref: forwardedRef,
|
|
@@ -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.
|
|
@@ -19,12 +19,10 @@ type PopoverOptions = {
|
|
|
19
19
|
onVisibleChange?: (visible: boolean) => void;
|
|
20
20
|
/**
|
|
21
21
|
* If true, the popover will close when clicking outside it.
|
|
22
|
+
*
|
|
23
|
+
* @default true
|
|
22
24
|
*/
|
|
23
25
|
closeOnOutsideClick?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Whether the popover should match the width of the trigger.
|
|
26
|
-
*/
|
|
27
|
-
matchWidth?: boolean;
|
|
28
26
|
};
|
|
29
27
|
type PopoverInternalProps = {
|
|
30
28
|
/**
|
|
@@ -64,6 +62,10 @@ type PopoverInternalProps = {
|
|
|
64
62
|
*/
|
|
65
63
|
trigger?: Partial<Record<'hover' | 'click' | 'focus', boolean>>;
|
|
66
64
|
role?: 'dialog' | 'menu' | 'listbox';
|
|
65
|
+
/**
|
|
66
|
+
* Whether the popover should match the width of the trigger.
|
|
67
|
+
*/
|
|
68
|
+
matchWidth?: boolean;
|
|
67
69
|
};
|
|
68
70
|
export declare const usePopover: (options: PopoverOptions & PopoverInternalProps) => {
|
|
69
71
|
placement: Placement;
|
|
@@ -81,11 +83,7 @@ export declare const usePopover: (options: PopoverOptions & PopoverInternalProps
|
|
|
81
83
|
setFloating: (node: HTMLElement | null) => void;
|
|
82
84
|
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
83
85
|
elements: {
|
|
84
|
-
reference: import("@floating-ui/react-dom").ReferenceType | null;
|
|
85
|
-
* Middleware options.
|
|
86
|
-
*
|
|
87
|
-
* @see https://floating-ui.com/docs/offset
|
|
88
|
-
*/
|
|
86
|
+
reference: import("@floating-ui/react-dom").ReferenceType | null;
|
|
89
87
|
floating: HTMLElement | null;
|
|
90
88
|
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
91
89
|
context: {
|
|
@@ -113,13 +111,31 @@ export declare const usePopover: (options: PopoverOptions & PopoverInternalProps
|
|
|
113
111
|
onOpenChange: React.Dispatch<React.SetStateAction<boolean | undefined>>;
|
|
114
112
|
};
|
|
115
113
|
type PopoverPublicProps = {
|
|
114
|
+
/**
|
|
115
|
+
* Content displayed inside the popover.
|
|
116
|
+
*/
|
|
116
117
|
content?: React.ReactNode;
|
|
118
|
+
/**
|
|
119
|
+
* Element that triggers the popover. Should usually be a button.
|
|
120
|
+
*/
|
|
117
121
|
children?: React.ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the popover adds recommended CSS (background-color, box-shadow, etc.) to itself.
|
|
124
|
+
*
|
|
125
|
+
* @default false
|
|
126
|
+
*/
|
|
118
127
|
applyBackground?: boolean;
|
|
119
128
|
} & PortalProps & PopoverOptions;
|
|
120
129
|
/**
|
|
121
|
-
* A utility component to help with positioning of floating content.
|
|
122
|
-
* Built on top of [`floating-ui`](https://floating-ui.com/)
|
|
130
|
+
* A utility component to help with positioning of floating content relative to a trigger.
|
|
131
|
+
* Built on top of [`floating-ui`](https://floating-ui.com/).
|
|
132
|
+
*
|
|
133
|
+
* @see https://itwinui.bentley.com/docs/popover
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* <Popover content='This is a popover'>
|
|
137
|
+
* <Button>Show popover</Button>
|
|
138
|
+
* </Popover>
|
|
123
139
|
*/
|
|
124
140
|
export declare const Popover: PolymorphicForwardRefComponent<"div", PopoverPublicProps>;
|
|
125
141
|
export default Popover;
|
|
@@ -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 {
|
|
@@ -96,8 +96,15 @@ const usePopover = (options) => {
|
|
|
96
96
|
};
|
|
97
97
|
exports.usePopover = usePopover;
|
|
98
98
|
/**
|
|
99
|
-
* A utility component to help with positioning of floating content.
|
|
100
|
-
* Built on top of [`floating-ui`](https://floating-ui.com/)
|
|
99
|
+
* A utility component to help with positioning of floating content relative to a trigger.
|
|
100
|
+
* Built on top of [`floating-ui`](https://floating-ui.com/).
|
|
101
|
+
*
|
|
102
|
+
* @see https://itwinui.bentley.com/docs/popover
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* <Popover content='This is a popover'>
|
|
106
|
+
* <Button>Show popover</Button>
|
|
107
|
+
* </Popover>
|
|
101
108
|
*/
|
|
102
109
|
exports.Popover = React.forwardRef((props, forwardedRef) => {
|
|
103
110
|
const {
|
|
@@ -105,15 +112,15 @@ exports.Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
105
112
|
//
|
|
106
113
|
// popover options
|
|
107
114
|
visible,
|
|
108
|
-
placement,
|
|
115
|
+
placement = 'bottom-start',
|
|
109
116
|
onVisibleChange,
|
|
110
|
-
closeOnOutsideClick,
|
|
111
|
-
matchWidth,
|
|
117
|
+
closeOnOutsideClick = true,
|
|
112
118
|
//
|
|
113
119
|
// dom props
|
|
120
|
+
className,
|
|
114
121
|
children,
|
|
115
122
|
content,
|
|
116
|
-
applyBackground,
|
|
123
|
+
applyBackground = false,
|
|
117
124
|
...rest
|
|
118
125
|
} = props;
|
|
119
126
|
const popover = (0, exports.usePopover)({
|
|
@@ -121,7 +128,6 @@ exports.Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
121
128
|
placement,
|
|
122
129
|
onVisibleChange,
|
|
123
130
|
closeOnOutsideClick,
|
|
124
|
-
matchWidth,
|
|
125
131
|
role: 'dialog',
|
|
126
132
|
});
|
|
127
133
|
const [popoverElement, setPopoverElement] = React.useState();
|
|
@@ -130,10 +136,13 @@ exports.Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
130
136
|
forwardedRef,
|
|
131
137
|
setPopoverElement,
|
|
132
138
|
);
|
|
139
|
+
const triggerId = `${(0, index_js_1.useId)()}-trigger`;
|
|
140
|
+
const hasAriaLabel = !!props['aria-labelledby'] || !!props['aria-label'];
|
|
133
141
|
return React.createElement(
|
|
134
142
|
React.Fragment,
|
|
135
143
|
null,
|
|
136
144
|
(0, index_js_1.cloneElementWithRef)(children, (children) => ({
|
|
145
|
+
id: children.props.id || triggerId,
|
|
137
146
|
...popover.getReferenceProps(children.props),
|
|
138
147
|
ref: popover.refs.setReference,
|
|
139
148
|
})),
|
|
@@ -142,24 +151,33 @@ exports.Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
142
151
|
Portal_js_1.Portal,
|
|
143
152
|
{ portal: portal },
|
|
144
153
|
React.createElement(
|
|
145
|
-
|
|
146
|
-
|
|
154
|
+
react_1.FloatingPortal,
|
|
155
|
+
null,
|
|
147
156
|
React.createElement(
|
|
148
|
-
|
|
149
|
-
{
|
|
150
|
-
context: popover.context,
|
|
151
|
-
modal: false,
|
|
152
|
-
initialFocus: -1,
|
|
153
|
-
returnFocus: true,
|
|
154
|
-
},
|
|
157
|
+
ThemeProvider_js_1.ThemeProvider,
|
|
158
|
+
{ portalContainer: popoverElement },
|
|
155
159
|
React.createElement(
|
|
156
|
-
|
|
160
|
+
react_1.FloatingFocusManager,
|
|
157
161
|
{
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
context: popover.context,
|
|
163
|
+
modal: false,
|
|
164
|
+
initialFocus: popover.refs.floating,
|
|
161
165
|
},
|
|
162
|
-
|
|
166
|
+
React.createElement(
|
|
167
|
+
index_js_1.Box,
|
|
168
|
+
{
|
|
169
|
+
className: (0, classnames_1.default)(
|
|
170
|
+
{ 'iui-popover-surface': applyBackground },
|
|
171
|
+
className,
|
|
172
|
+
),
|
|
173
|
+
'aria-labelledby': !hasAriaLabel
|
|
174
|
+
? popover.refs.domReference.current?.id
|
|
175
|
+
: undefined,
|
|
176
|
+
...popover.getFloatingProps(rest),
|
|
177
|
+
ref: popoverRef,
|
|
178
|
+
},
|
|
179
|
+
content,
|
|
180
|
+
),
|
|
163
181
|
),
|
|
164
182
|
),
|
|
165
183
|
),
|
|
@@ -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
|
),
|