@itwin/itwinui-react 3.13.3 → 3.14.0
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 +54 -0
- package/DEV-cjs/core/Alert/Alert.js +125 -72
- package/DEV-cjs/core/Avatar/Avatar.js +70 -44
- package/DEV-cjs/core/AvatarGroup/AvatarGroup.js +71 -34
- package/DEV-cjs/core/Backdrop/Backdrop.js +26 -22
- package/DEV-cjs/core/Badge/Badge.js +49 -42
- package/DEV-cjs/core/Breadcrumbs/Breadcrumbs.js +164 -85
- package/DEV-cjs/core/ButtonGroup/ButtonGroup.js +141 -79
- package/DEV-cjs/core/Buttons/Button.js +95 -49
- package/DEV-cjs/core/Buttons/DropdownButton.js +53 -35
- package/DEV-cjs/core/Buttons/IconButton.js +77 -41
- package/DEV-cjs/core/Buttons/IdeasButton.js +30 -26
- package/DEV-cjs/core/Buttons/SplitButton.js +90 -56
- package/DEV-cjs/core/Carousel/Carousel.js +77 -67
- package/DEV-cjs/core/Carousel/CarouselContext.js +10 -10
- package/DEV-cjs/core/Carousel/CarouselDot.js +31 -27
- package/DEV-cjs/core/Carousel/CarouselDotsList.js +148 -113
- package/DEV-cjs/core/Carousel/CarouselNavigation.js +98 -69
- package/DEV-cjs/core/Carousel/CarouselSlide.js +51 -42
- package/DEV-cjs/core/Carousel/CarouselSlider.js +68 -61
- package/DEV-cjs/core/Checkbox/Checkbox.js +96 -54
- package/DEV-cjs/core/ColorPicker/ColorBuilder.js +274 -228
- package/DEV-cjs/core/ColorPicker/ColorInputPanel.js +398 -366
- package/DEV-cjs/core/ColorPicker/ColorPalette.js +56 -36
- package/DEV-cjs/core/ColorPicker/ColorPicker.js +88 -69
- package/DEV-cjs/core/ColorPicker/ColorPickerContext.js +22 -18
- package/DEV-cjs/core/ColorPicker/ColorSwatch.js +50 -33
- package/DEV-cjs/core/ComboBox/ComboBox.js +395 -294
- package/DEV-cjs/core/ComboBox/ComboBox.types-test.js +87 -80
- package/DEV-cjs/core/ComboBox/ComboBoxEndIcon.js +36 -27
- package/DEV-cjs/core/ComboBox/ComboBoxInput.js +190 -128
- package/DEV-cjs/core/ComboBox/ComboBoxInputContainer.js +40 -28
- package/DEV-cjs/core/ComboBox/ComboBoxMenu.js +132 -93
- package/DEV-cjs/core/ComboBox/ComboBoxMenuItem.js +75 -34
- package/DEV-cjs/core/ComboBox/ComboBoxMultipleContainer.js +18 -18
- package/DEV-cjs/core/ComboBox/helpers.js +15 -14
- package/DEV-cjs/core/DatePicker/DatePicker.js +556 -353
- package/DEV-cjs/core/Dialog/Dialog.js +86 -58
- package/DEV-cjs/core/Dialog/DialogBackdrop.js +52 -39
- package/DEV-cjs/core/Dialog/DialogButtonBar.js +9 -9
- package/DEV-cjs/core/Dialog/DialogContent.js +9 -9
- package/DEV-cjs/core/Dialog/DialogContext.js +16 -15
- package/DEV-cjs/core/Dialog/DialogDragContext.js +20 -19
- package/DEV-cjs/core/Dialog/DialogMain.js +174 -122
- package/DEV-cjs/core/Dialog/DialogTitleBar.js +68 -33
- package/DEV-cjs/core/Dialog/DialogTitleBarTitle.js +9 -9
- package/DEV-cjs/core/Divider/Divider.js +22 -22
- package/DEV-cjs/core/DropdownMenu/DropdownMenu.js +63 -37
- package/DEV-cjs/core/ExpandableBlock/ExpandableBlock.js +195 -125
- package/DEV-cjs/core/Fieldset/Fieldset.js +34 -23
- package/DEV-cjs/core/FileUpload/FileEmptyCard.js +43 -24
- package/DEV-cjs/core/FileUpload/FileUpload.js +94 -57
- package/DEV-cjs/core/FileUpload/FileUploadCard.js +181 -124
- package/DEV-cjs/core/FileUpload/FileUploadTemplate.js +63 -35
- package/DEV-cjs/core/Flex/Flex.js +78 -77
- package/DEV-cjs/core/Footer/Footer.js +119 -85
- package/DEV-cjs/core/Footer/FooterItem.js +9 -9
- package/DEV-cjs/core/Footer/FooterList.js +9 -9
- package/DEV-cjs/core/Footer/FooterSeparator.js +10 -10
- package/DEV-cjs/core/Header/Header.js +86 -44
- package/DEV-cjs/core/Header/HeaderBasicButton.js +30 -20
- package/DEV-cjs/core/Header/HeaderBreadcrumbs.js +59 -36
- package/DEV-cjs/core/Header/HeaderButton.js +90 -46
- package/DEV-cjs/core/Header/HeaderDropdownButton.js +55 -44
- package/DEV-cjs/core/Header/HeaderLogo.js +53 -30
- package/DEV-cjs/core/Header/HeaderSplitButton.js +72 -44
- package/DEV-cjs/core/Icon/Icon.js +41 -35
- package/DEV-cjs/core/InformationPanel/InformationPanel.js +97 -62
- package/DEV-cjs/core/InformationPanel/InformationPanelBody.js +9 -9
- package/DEV-cjs/core/InformationPanel/InformationPanelContent.js +30 -22
- package/DEV-cjs/core/InformationPanel/InformationPanelHeader.js +51 -32
- package/DEV-cjs/core/InformationPanel/InformationPanelWrapper.js +12 -10
- package/DEV-cjs/core/Input/Input.js +26 -26
- package/DEV-cjs/core/InputGrid/InputGrid.js +151 -117
- package/DEV-cjs/core/InputGroup/InputGroup.js +85 -48
- package/DEV-cjs/core/InputWithDecorations/InputWithDecorations.js +60 -44
- package/DEV-cjs/core/Label/Label.js +40 -25
- package/DEV-cjs/core/LabeledInput/LabeledInput.js +86 -42
- package/DEV-cjs/core/LabeledSelect/LabeledSelect.js +71 -39
- package/DEV-cjs/core/LabeledSelect/LabeledSelect.types-test.js +100 -81
- package/DEV-cjs/core/LabeledTextarea/LabeledTextarea.js +19 -17
- package/DEV-cjs/core/LinkAction/LinkAction.js +27 -26
- package/DEV-cjs/core/List/List.js +11 -11
- package/DEV-cjs/core/List/ListItem.js +42 -34
- package/DEV-cjs/core/Menu/Menu.js +213 -127
- package/DEV-cjs/core/Menu/MenuDivider.js +11 -11
- package/DEV-cjs/core/Menu/MenuExtraContent.js +10 -10
- package/DEV-cjs/core/Menu/MenuItem.js +139 -76
- package/DEV-cjs/core/Menu/MenuItemSkeleton.js +65 -40
- package/DEV-cjs/core/Modal/Modal.js +54 -31
- package/DEV-cjs/core/Modal/ModalButtonBar.js +9 -9
- package/DEV-cjs/core/Modal/ModalContent.js +9 -9
- package/DEV-cjs/core/NonIdealState/ErrorPage.js +208 -127
- package/DEV-cjs/core/NonIdealState/NonIdealState.js +84 -35
- package/DEV-cjs/core/NotificationMarker/NotificationMarker.js +39 -25
- package/DEV-cjs/core/Overlay/Overlay.js +55 -41
- package/DEV-cjs/core/Popover/Popover.js +302 -193
- package/DEV-cjs/core/ProgressIndicators/ProgressLinear.js +70 -33
- package/DEV-cjs/core/ProgressIndicators/ProgressRadial.js +67 -40
- package/DEV-cjs/core/Radio/Radio.js +66 -38
- package/DEV-cjs/core/RadioTiles/RadioTile.js +88 -43
- package/DEV-cjs/core/RadioTiles/RadioTileGroup.js +29 -21
- package/DEV-cjs/core/SearchBox/SearchBox.js +203 -130
- package/DEV-cjs/core/Select/Select.js +457 -274
- package/DEV-cjs/core/Select/Select.types-test.js +112 -87
- package/DEV-cjs/core/Select/SelectTag.js +32 -24
- package/DEV-cjs/core/Select/SelectTagContainer.js +38 -25
- package/DEV-cjs/core/SideNavigation/SideNavigation.js +132 -64
- package/DEV-cjs/core/SideNavigation/SidenavButton.js +55 -33
- package/DEV-cjs/core/SideNavigation/SidenavSubmenu.js +33 -22
- package/DEV-cjs/core/SideNavigation/SidenavSubmenuHeader.js +41 -24
- package/DEV-cjs/core/SkipToContentLink/SkipToContentLink.js +28 -21
- package/DEV-cjs/core/Slider/Slider.js +352 -259
- package/DEV-cjs/core/Slider/Thumb.js +111 -98
- package/DEV-cjs/core/Slider/Track.js +93 -61
- package/DEV-cjs/core/StatusMessage/StatusMessage.js +46 -27
- package/DEV-cjs/core/Stepper/Stepper.js +86 -44
- package/DEV-cjs/core/Stepper/StepperStep.js +113 -59
- package/DEV-cjs/core/Stepper/WorkflowDiagram.js +37 -29
- package/DEV-cjs/core/Stepper/WorkflowDiagramStep.js +48 -28
- package/DEV-cjs/core/Surface/Surface.js +98 -76
- package/DEV-cjs/core/Table/ColumnHeader.js +194 -0
- package/DEV-cjs/core/Table/SubRowExpander.js +45 -34
- package/DEV-cjs/core/Table/Table.js +687 -506
- package/DEV-cjs/core/Table/TableCell.js +104 -61
- package/DEV-cjs/core/Table/TablePaginator.js +314 -178
- package/DEV-cjs/core/Table/TableRowMemoized.js +183 -90
- package/DEV-cjs/core/Table/actionHandlers/expandHandler.js +18 -18
- package/DEV-cjs/core/Table/actionHandlers/filterHandler.js +31 -23
- package/DEV-cjs/core/Table/actionHandlers/index.js +32 -31
- package/DEV-cjs/core/Table/actionHandlers/resizeHandler.js +26 -25
- package/DEV-cjs/core/Table/actionHandlers/selectHandler.js +124 -88
- package/DEV-cjs/core/Table/cells/DefaultCell.js +93 -44
- package/DEV-cjs/core/Table/cells/EditableCell.js +85 -63
- package/DEV-cjs/core/Table/cells/index.js +15 -14
- package/DEV-cjs/core/Table/columns/actionColumn.js +100 -78
- package/DEV-cjs/core/Table/columns/expanderColumn.js +56 -49
- package/DEV-cjs/core/Table/columns/index.js +25 -24
- package/DEV-cjs/core/Table/columns/selectionColumn.js +79 -58
- package/DEV-cjs/core/Table/filters/BaseFilter.js +31 -25
- package/DEV-cjs/core/Table/filters/DateRangeFilter/DatePickerInput.js +108 -72
- package/DEV-cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +115 -91
- package/DEV-cjs/core/Table/filters/FilterButtonBar.js +56 -33
- package/DEV-cjs/core/Table/filters/FilterToggle.js +71 -54
- package/DEV-cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +56 -60
- package/DEV-cjs/core/Table/filters/TextFilter/TextFilter.js +38 -36
- package/DEV-cjs/core/Table/filters/customFilterFunctions.js +26 -20
- package/DEV-cjs/core/Table/filters/defaultFilterFunctions.js +119 -77
- package/DEV-cjs/core/Table/filters/index.js +23 -22
- package/DEV-cjs/core/Table/filters/tableFilters.js +28 -25
- package/DEV-cjs/core/Table/filters/types.js +3 -3
- package/DEV-cjs/core/Table/hooks/index.js +39 -38
- package/DEV-cjs/core/Table/hooks/useColumnDragAndDrop.js +118 -101
- package/DEV-cjs/core/Table/hooks/useExpanderCell.js +39 -29
- package/DEV-cjs/core/Table/hooks/useResizeColumns.js +346 -248
- package/DEV-cjs/core/Table/hooks/useScrollToRow.js +42 -38
- package/DEV-cjs/core/Table/hooks/useSelectionCell.js +26 -19
- package/DEV-cjs/core/Table/hooks/useStickyColumns.js +55 -47
- package/DEV-cjs/core/Table/hooks/useSubRowFiltering.js +89 -86
- package/DEV-cjs/core/Table/hooks/useSubRowSelection.js +39 -39
- package/DEV-cjs/core/Table/index.js +42 -41
- package/DEV-cjs/core/Table/utils.js +66 -64
- package/DEV-cjs/core/Tabs/Tabs.js +388 -260
- package/DEV-cjs/core/Tag/Tag.js +80 -42
- package/DEV-cjs/core/Tag/TagContainer.js +31 -23
- package/DEV-cjs/core/Textarea/Textarea.js +19 -17
- package/DEV-cjs/core/ThemeProvider/ThemeContext.js +10 -10
- package/DEV-cjs/core/ThemeProvider/ThemeProvider.js +276 -172
- package/DEV-cjs/core/Tile/Tile.js +310 -173
- package/DEV-cjs/core/TimePicker/TimePicker.js +451 -263
- package/DEV-cjs/core/Toast/Toast.js +226 -157
- package/DEV-cjs/core/Toast/Toaster.js +142 -118
- package/DEV-cjs/core/ToggleSwitch/ToggleSwitch.js +76 -42
- package/DEV-cjs/core/Tooltip/Tooltip.js +221 -170
- package/DEV-cjs/core/TransferList/TransferList.js +171 -132
- package/DEV-cjs/core/Tree/Tree.js +226 -179
- package/DEV-cjs/core/Tree/TreeContext.js +20 -18
- package/DEV-cjs/core/Tree/TreeNode.js +254 -143
- package/DEV-cjs/core/Tree/TreeNodeExpander.js +40 -31
- package/DEV-cjs/core/Typography/Anchor.js +41 -27
- package/DEV-cjs/core/Typography/Blockquote.js +26 -21
- package/DEV-cjs/core/Typography/Code.js +9 -9
- package/DEV-cjs/core/Typography/Kbd.js +43 -38
- package/DEV-cjs/core/Typography/Text.js +45 -31
- package/DEV-cjs/core/VisuallyHidden/VisuallyHidden.js +47 -30
- package/DEV-cjs/index.js +475 -474
- package/DEV-cjs/package.json +1 -0
- package/DEV-cjs/react-table/react-table.js +3 -3
- package/DEV-cjs/react-table/react-table.types-test.js +628 -476
- package/DEV-cjs/styles.js +17 -1
- package/DEV-cjs/utils/color/ColorValue.js +429 -323
- package/DEV-cjs/utils/color/index.js +5 -5
- package/DEV-cjs/utils/components/AutoclearingHiddenLiveRegion.js +31 -26
- package/DEV-cjs/utils/components/Box.js +9 -9
- package/DEV-cjs/utils/components/ButtonBase.js +41 -35
- package/DEV-cjs/utils/components/FieldsetBase.js +9 -9
- package/DEV-cjs/utils/components/FocusTrap.js +48 -45
- package/DEV-cjs/utils/components/InputContainer.js +67 -34
- package/DEV-cjs/utils/components/InputFlexContainer.js +63 -49
- package/DEV-cjs/utils/components/InputWithIcon.js +9 -9
- package/DEV-cjs/utils/components/LineClamp.js +33 -24
- package/DEV-cjs/utils/components/MiddleTextTruncation.js +37 -33
- package/DEV-cjs/utils/components/Portal.js +35 -32
- package/DEV-cjs/utils/components/Resizer.js +221 -185
- package/DEV-cjs/utils/components/ShadowRoot.js +85 -69
- package/DEV-cjs/utils/components/WithCSSTransition.js +57 -50
- package/DEV-cjs/utils/components/index.js +18 -18
- package/DEV-cjs/utils/functions/colors.js +37 -35
- package/DEV-cjs/utils/functions/date.js +15 -15
- package/DEV-cjs/utils/functions/dev.js +25 -19
- package/DEV-cjs/utils/functions/dom.js +39 -39
- package/DEV-cjs/utils/functions/focusable.js +81 -63
- package/DEV-cjs/utils/functions/import.js +28 -22
- package/DEV-cjs/utils/functions/index.js +14 -14
- package/DEV-cjs/utils/functions/numbers.js +26 -24
- package/DEV-cjs/utils/functions/polymorphic.js +56 -43
- package/DEV-cjs/utils/functions/react.js +25 -23
- package/DEV-cjs/utils/functions/supports.js +11 -10
- package/DEV-cjs/utils/hooks/index.js +20 -20
- package/DEV-cjs/utils/hooks/useContainerWidth.js +31 -26
- package/DEV-cjs/utils/hooks/useControlledState.js +28 -27
- package/DEV-cjs/utils/hooks/useDragAndDrop.js +112 -88
- package/DEV-cjs/utils/hooks/useEventListener.js +23 -28
- package/DEV-cjs/utils/hooks/useGlobals.js +46 -40
- package/DEV-cjs/utils/hooks/useId.js +17 -17
- package/DEV-cjs/utils/hooks/useIntersection.js +38 -38
- package/DEV-cjs/utils/hooks/useIsClient.js +16 -16
- package/DEV-cjs/utils/hooks/useIsomorphicLayoutEffect.js +12 -11
- package/DEV-cjs/utils/hooks/useLatestRef.js +16 -18
- package/DEV-cjs/utils/hooks/useMediaQuery.js +32 -23
- package/DEV-cjs/utils/hooks/useMergedRefs.js +25 -23
- package/DEV-cjs/utils/hooks/useOverflow.js +68 -72
- package/DEV-cjs/utils/hooks/useResizeObserver.js +31 -33
- package/DEV-cjs/utils/hooks/useSafeContext.js +15 -14
- package/DEV-cjs/utils/hooks/useSyncExternalStore.js +37 -40
- package/DEV-cjs/utils/hooks/useVirtualScroll.js +42 -40
- package/DEV-cjs/utils/icons/StatusIconMap.js +34 -30
- package/DEV-cjs/utils/icons/Svg.js +12 -12
- package/DEV-cjs/utils/icons/SvgCalendar.js +19 -14
- package/DEV-cjs/utils/icons/SvgCaretDownSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgCaretRightSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgCaretUpSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgCheckmark.js +19 -14
- package/DEV-cjs/utils/icons/SvgCheckmarkSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronLeft.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronLeftDouble.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronRight.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronRightDouble.js +19 -14
- package/DEV-cjs/utils/icons/SvgChevronRightSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgClose.js +19 -14
- package/DEV-cjs/utils/icons/SvgCloseSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgColumnManager.js +19 -14
- package/DEV-cjs/utils/icons/SvgDocument.js +19 -14
- package/DEV-cjs/utils/icons/SvgFilter.js +19 -14
- package/DEV-cjs/utils/icons/SvgFilterHollow.js +19 -14
- package/DEV-cjs/utils/icons/SvgImportantSmall.js +19 -14
- package/DEV-cjs/utils/icons/SvgInfoCircular.js +19 -14
- package/DEV-cjs/utils/icons/SvgMore.js +19 -14
- package/DEV-cjs/utils/icons/SvgMoreVertical.js +19 -14
- package/DEV-cjs/utils/icons/SvgNew.js +19 -14
- package/DEV-cjs/utils/icons/SvgSearch.js +19 -14
- package/DEV-cjs/utils/icons/SvgSmileyHappy.js +19 -14
- package/DEV-cjs/utils/icons/SvgSortDown.js +19 -14
- package/DEV-cjs/utils/icons/SvgSortUp.js +19 -14
- package/DEV-cjs/utils/icons/SvgStatusError.js +19 -14
- package/DEV-cjs/utils/icons/SvgStatusSuccess.js +19 -14
- package/DEV-cjs/utils/icons/SvgStatusWarning.js +19 -14
- package/DEV-cjs/utils/icons/SvgSwap.js +19 -14
- package/DEV-cjs/utils/icons/SvgUpload.js +19 -14
- package/DEV-cjs/utils/icons/index.js +36 -36
- package/DEV-cjs/utils/index.js +12 -12
- package/DEV-cjs/utils/meta.js +11 -11
- package/DEV-cjs/utils/props.js +3 -3
- package/DEV-cjs/utils/providers/HydrationProvider.js +47 -35
- package/DEV-cjs/utils/providers/ScopeProvider.js +55 -53
- package/DEV-cjs/utils/providers/index.js +6 -6
- package/DEV-cjs/utils/types.js +3 -3
- package/DEV-esm/core/Alert/Alert.js +112 -57
- package/DEV-esm/core/Avatar/Avatar.js +45 -26
- package/DEV-esm/core/AvatarGroup/AvatarGroup.js +58 -21
- package/DEV-esm/core/Backdrop/Backdrop.js +13 -9
- package/DEV-esm/core/Badge/Badge.js +34 -29
- package/DEV-esm/core/Breadcrumbs/Breadcrumbs.js +150 -71
- package/DEV-esm/core/ButtonGroup/ButtonGroup.js +127 -62
- package/DEV-esm/core/Buttons/Button.js +71 -34
- package/DEV-esm/core/Buttons/DropdownButton.js +38 -20
- package/DEV-esm/core/Buttons/IconButton.js +54 -25
- package/DEV-esm/core/Buttons/IdeasButton.js +16 -12
- package/DEV-esm/core/Buttons/SplitButton.js +80 -41
- package/DEV-esm/core/Carousel/Carousel.js +58 -48
- package/DEV-esm/core/Carousel/CarouselDot.js +18 -14
- package/DEV-esm/core/Carousel/CarouselDotsList.js +134 -98
- package/DEV-esm/core/Carousel/CarouselNavigation.js +82 -53
- package/DEV-esm/core/Carousel/CarouselSlide.js +40 -29
- package/DEV-esm/core/Carousel/CarouselSlider.js +59 -48
- package/DEV-esm/core/Checkbox/Checkbox.js +79 -40
- package/DEV-esm/core/ColorPicker/ColorBuilder.js +263 -214
- package/DEV-esm/core/ColorPicker/ColorInputPanel.js +382 -350
- package/DEV-esm/core/ColorPicker/ColorPalette.js +37 -20
- package/DEV-esm/core/ColorPicker/ColorPicker.js +69 -51
- package/DEV-esm/core/ColorPicker/ColorPickerContext.js +7 -4
- package/DEV-esm/core/ColorPicker/ColorSwatch.js +29 -18
- package/DEV-esm/core/ComboBox/ComboBox.js +382 -274
- package/DEV-esm/core/ComboBox/ComboBox.types-test.js +82 -75
- package/DEV-esm/core/ComboBox/ComboBoxEndIcon.js +22 -13
- package/DEV-esm/core/ComboBox/ComboBoxInput.js +170 -114
- package/DEV-esm/core/ComboBox/ComboBoxInputContainer.js +29 -11
- package/DEV-esm/core/ComboBox/ComboBoxMenu.js +121 -79
- package/DEV-esm/core/ComboBox/ComboBoxMenuItem.js +65 -22
- package/DEV-esm/core/ComboBox/ComboBoxMultipleContainer.js +7 -7
- package/DEV-esm/core/DatePicker/DatePicker.js +527 -335
- package/DEV-esm/core/Dialog/Dialog.js +66 -38
- package/DEV-esm/core/Dialog/DialogBackdrop.js +37 -24
- package/DEV-esm/core/Dialog/DialogContext.js +1 -1
- package/DEV-esm/core/Dialog/DialogDragContext.js +5 -5
- package/DEV-esm/core/Dialog/DialogMain.js +166 -106
- package/DEV-esm/core/Dialog/DialogTitleBar.js +43 -15
- package/DEV-esm/core/Divider/Divider.js +9 -9
- package/DEV-esm/core/DropdownMenu/DropdownMenu.js +50 -24
- package/DEV-esm/core/ExpandableBlock/ExpandableBlock.js +177 -110
- package/DEV-esm/core/Fieldset/Fieldset.js +21 -10
- package/DEV-esm/core/FileUpload/FileEmptyCard.js +25 -10
- package/DEV-esm/core/FileUpload/FileUpload.js +66 -44
- package/DEV-esm/core/FileUpload/FileUploadCard.js +163 -105
- package/DEV-esm/core/FileUpload/FileUploadTemplate.js +46 -21
- package/DEV-esm/core/Flex/Flex.js +65 -64
- package/DEV-esm/core/Footer/Footer.js +96 -64
- package/DEV-esm/core/Footer/FooterSeparator.js +1 -1
- package/DEV-esm/core/Header/Header.js +71 -29
- package/DEV-esm/core/Header/HeaderBasicButton.js +14 -7
- package/DEV-esm/core/Header/HeaderBreadcrumbs.js +39 -23
- package/DEV-esm/core/Header/HeaderButton.js +70 -32
- package/DEV-esm/core/Header/HeaderDropdownButton.js +41 -29
- package/DEV-esm/core/Header/HeaderLogo.js +40 -17
- package/DEV-esm/core/Header/HeaderSplitButton.js +60 -30
- package/DEV-esm/core/Icon/Icon.js +28 -22
- package/DEV-esm/core/InformationPanel/InformationPanel.js +84 -49
- package/DEV-esm/core/InformationPanel/InformationPanelContent.js +18 -8
- package/DEV-esm/core/InformationPanel/InformationPanelHeader.js +37 -16
- package/DEV-esm/core/InformationPanel/InformationPanelWrapper.js +3 -1
- package/DEV-esm/core/Input/Input.js +13 -13
- package/DEV-esm/core/InputGrid/InputGrid.js +128 -98
- package/DEV-esm/core/InputGroup/InputGroup.js +66 -32
- package/DEV-esm/core/InputWithDecorations/InputWithDecorations.js +59 -34
- package/DEV-esm/core/Label/Label.js +27 -12
- package/DEV-esm/core/LabeledInput/LabeledInput.js +65 -24
- package/DEV-esm/core/LabeledSelect/LabeledSelect.js +57 -25
- package/DEV-esm/core/LabeledSelect/LabeledSelect.types-test.js +95 -76
- package/DEV-esm/core/LabeledTextarea/LabeledTextarea.js +8 -6
- package/DEV-esm/core/LinkAction/LinkAction.js +8 -8
- package/DEV-esm/core/List/List.js +2 -2
- package/DEV-esm/core/List/ListItem.js +28 -20
- package/DEV-esm/core/Menu/Menu.js +207 -111
- package/DEV-esm/core/Menu/MenuDivider.js +2 -2
- package/DEV-esm/core/Menu/MenuExtraContent.js +1 -1
- package/DEV-esm/core/Menu/MenuItem.js +129 -62
- package/DEV-esm/core/Menu/MenuItemSkeleton.js +47 -26
- package/DEV-esm/core/Modal/Modal.js +43 -20
- package/DEV-esm/core/NonIdealState/ErrorPage.js +159 -114
- package/DEV-esm/core/NonIdealState/NonIdealState.js +65 -22
- package/DEV-esm/core/NotificationMarker/NotificationMarker.js +26 -12
- package/DEV-esm/core/Overlay/Overlay.js +44 -30
- package/DEV-esm/core/Popover/Popover.js +306 -172
- package/DEV-esm/core/ProgressIndicators/ProgressLinear.js +52 -19
- package/DEV-esm/core/ProgressIndicators/ProgressRadial.js +52 -27
- package/DEV-esm/core/Radio/Radio.js +50 -25
- package/DEV-esm/core/RadioTiles/RadioTile.js +63 -30
- package/DEV-esm/core/RadioTiles/RadioTileGroup.js +17 -9
- package/DEV-esm/core/SearchBox/SearchBox.js +200 -118
- package/DEV-esm/core/Select/Select.js +434 -256
- package/DEV-esm/core/Select/Select.types-test.js +107 -82
- package/DEV-esm/core/Select/SelectTag.js +19 -11
- package/DEV-esm/core/Select/SelectTagContainer.js +21 -11
- package/DEV-esm/core/SideNavigation/SideNavigation.js +103 -46
- package/DEV-esm/core/SideNavigation/SidenavButton.js +39 -18
- package/DEV-esm/core/SideNavigation/SidenavSubmenu.js +17 -9
- package/DEV-esm/core/SideNavigation/SidenavSubmenuHeader.js +25 -11
- package/DEV-esm/core/SkipToContentLink/SkipToContentLink.js +12 -8
- package/DEV-esm/core/Slider/Slider.js +317 -244
- package/DEV-esm/core/Slider/Thumb.js +97 -84
- package/DEV-esm/core/Slider/Track.js +77 -48
- package/DEV-esm/core/StatusMessage/StatusMessage.js +32 -13
- package/DEV-esm/core/Stepper/Stepper.js +69 -30
- package/DEV-esm/core/Stepper/StepperStep.js +93 -45
- package/DEV-esm/core/Stepper/WorkflowDiagram.js +23 -15
- package/DEV-esm/core/Stepper/WorkflowDiagramStep.js +28 -14
- package/DEV-esm/core/Surface/Surface.js +85 -63
- package/DEV-esm/core/Table/ColumnHeader.js +188 -0
- package/DEV-esm/core/Table/SubRowExpander.js +33 -22
- package/DEV-esm/core/Table/Table.js +694 -486
- package/DEV-esm/core/Table/TableCell.js +80 -44
- package/DEV-esm/core/Table/TablePaginator.js +305 -161
- package/DEV-esm/core/Table/TableRowMemoized.js +167 -73
- package/DEV-esm/core/Table/actionHandlers/expandHandler.js +10 -10
- package/DEV-esm/core/Table/actionHandlers/filterHandler.js +23 -15
- package/DEV-esm/core/Table/actionHandlers/index.js +5 -1
- package/DEV-esm/core/Table/actionHandlers/resizeHandler.js +14 -14
- package/DEV-esm/core/Table/actionHandlers/selectHandler.js +108 -73
- package/DEV-esm/core/Table/cells/DefaultCell.js +79 -30
- package/DEV-esm/core/Table/cells/EditableCell.js +70 -50
- package/DEV-esm/core/Table/columns/actionColumn.js +81 -59
- package/DEV-esm/core/Table/columns/expanderColumn.js +38 -32
- package/DEV-esm/core/Table/columns/selectionColumn.js +62 -42
- package/DEV-esm/core/Table/filters/BaseFilter.js +16 -13
- package/DEV-esm/core/Table/filters/DateRangeFilter/DatePickerInput.js +92 -56
- package/DEV-esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +101 -77
- package/DEV-esm/core/Table/filters/FilterButtonBar.js +42 -19
- package/DEV-esm/core/Table/filters/FilterToggle.js +58 -40
- package/DEV-esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +42 -46
- package/DEV-esm/core/Table/filters/TextFilter/TextFilter.js +24 -22
- package/DEV-esm/core/Table/filters/customFilterFunctions.js +18 -12
- package/DEV-esm/core/Table/filters/defaultFilterFunctions.js +111 -69
- package/DEV-esm/core/Table/filters/tableFilters.js +15 -12
- package/DEV-esm/core/Table/filters/types.js +1 -1
- package/DEV-esm/core/Table/hooks/useColumnDragAndDrop.js +100 -91
- package/DEV-esm/core/Table/hooks/useExpanderCell.js +26 -18
- package/DEV-esm/core/Table/hooks/useResizeColumns.js +333 -238
- package/DEV-esm/core/Table/hooks/useScrollToRow.js +32 -28
- package/DEV-esm/core/Table/hooks/useSelectionCell.js +17 -10
- package/DEV-esm/core/Table/hooks/useStickyColumns.js +46 -38
- package/DEV-esm/core/Table/hooks/useSubRowFiltering.js +78 -75
- package/DEV-esm/core/Table/hooks/useSubRowSelection.js +29 -29
- package/DEV-esm/core/Table/index.js +5 -1
- package/DEV-esm/core/Table/utils.js +45 -44
- package/DEV-esm/core/Tabs/Tabs.js +372 -243
- package/DEV-esm/core/Tag/Tag.js +55 -27
- package/DEV-esm/core/Tag/TagContainer.js +18 -10
- package/DEV-esm/core/Textarea/Textarea.js +8 -6
- package/DEV-esm/core/ThemeProvider/ThemeProvider.js +258 -155
- package/DEV-esm/core/Tile/Tile.js +286 -157
- package/DEV-esm/core/TimePicker/TimePicker.js +438 -250
- package/DEV-esm/core/Toast/Toast.js +199 -138
- package/DEV-esm/core/Toast/Toaster.js +114 -94
- package/DEV-esm/core/ToggleSwitch/ToggleSwitch.js +60 -29
- package/DEV-esm/core/Tooltip/Tooltip.js +229 -159
- package/DEV-esm/core/TransferList/TransferList.js +146 -112
- package/DEV-esm/core/Tree/Tree.js +226 -174
- package/DEV-esm/core/Tree/TreeContext.js +5 -4
- package/DEV-esm/core/Tree/TreeNode.js +226 -129
- package/DEV-esm/core/Tree/TreeNodeExpander.js +24 -16
- package/DEV-esm/core/Typography/Anchor.js +22 -12
- package/DEV-esm/core/Typography/Blockquote.js +13 -8
- package/DEV-esm/core/Typography/Kbd.js +25 -21
- package/DEV-esm/core/Typography/Text.js +27 -14
- package/DEV-esm/core/VisuallyHidden/VisuallyHidden.js +34 -17
- package/DEV-esm/index.js +21 -3
- package/DEV-esm/react-table/react-table.js +1 -1
- package/DEV-esm/react-table/react-table.types-test.js +635 -471
- package/DEV-esm/styles.js +7 -10
- package/DEV-esm/utils/color/ColorValue.js +406 -304
- package/DEV-esm/utils/components/AutoclearingHiddenLiveRegion.js +16 -14
- package/DEV-esm/utils/components/ButtonBase.js +27 -21
- package/DEV-esm/utils/components/FocusTrap.js +36 -33
- package/DEV-esm/utils/components/InputContainer.js +52 -19
- package/DEV-esm/utils/components/InputFlexContainer.js +31 -27
- package/DEV-esm/utils/components/LineClamp.js +21 -12
- package/DEV-esm/utils/components/MiddleTextTruncation.js +26 -22
- package/DEV-esm/utils/components/Portal.js +11 -11
- package/DEV-esm/utils/components/Resizer.js +215 -175
- package/DEV-esm/utils/components/ShadowRoot.js +72 -56
- package/DEV-esm/utils/components/WithCSSTransition.js +45 -38
- package/DEV-esm/utils/functions/colors.js +21 -20
- package/DEV-esm/utils/functions/date.js +7 -7
- package/DEV-esm/utils/functions/dev.js +12 -7
- package/DEV-esm/utils/functions/dom.js +18 -18
- package/DEV-esm/utils/functions/focusable.js +62 -45
- package/DEV-esm/utils/functions/import.js +20 -14
- package/DEV-esm/utils/functions/numbers.js +11 -9
- package/DEV-esm/utils/functions/polymorphic.js +42 -29
- package/DEV-esm/utils/functions/react.js +14 -12
- package/DEV-esm/utils/functions/supports.js +2 -1
- package/DEV-esm/utils/hooks/useContainerWidth.js +14 -14
- package/DEV-esm/utils/hooks/useControlledState.js +18 -17
- package/DEV-esm/utils/hooks/useDragAndDrop.js +100 -76
- package/DEV-esm/utils/hooks/useEventListener.js +13 -18
- package/DEV-esm/utils/hooks/useGlobals.js +29 -24
- package/DEV-esm/utils/hooks/useId.js +5 -6
- package/DEV-esm/utils/hooks/useIntersection.js +27 -27
- package/DEV-esm/utils/hooks/useIsClient.js +6 -6
- package/DEV-esm/utils/hooks/useIsomorphicLayoutEffect.js +2 -1
- package/DEV-esm/utils/hooks/useLatestRef.js +6 -8
- package/DEV-esm/utils/hooks/useMediaQuery.js +17 -12
- package/DEV-esm/utils/hooks/useMergedRefs.js +10 -9
- package/DEV-esm/utils/hooks/useOverflow.js +57 -59
- package/DEV-esm/utils/hooks/useResizeObserver.js +20 -22
- package/DEV-esm/utils/hooks/useSafeContext.js +5 -4
- package/DEV-esm/utils/hooks/useSyncExternalStore.js +27 -30
- package/DEV-esm/utils/hooks/useVirtualScroll.js +31 -29
- package/DEV-esm/utils/icons/StatusIconMap.js +20 -16
- package/DEV-esm/utils/icons/Svg.js +3 -3
- package/DEV-esm/utils/icons/SvgCalendar.js +8 -3
- package/DEV-esm/utils/icons/SvgCaretDownSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgCaretRightSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgCaretUpSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgCheckmark.js +8 -3
- package/DEV-esm/utils/icons/SvgCheckmarkSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronLeft.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronLeftDouble.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronRight.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronRightDouble.js +8 -3
- package/DEV-esm/utils/icons/SvgChevronRightSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgClose.js +8 -3
- package/DEV-esm/utils/icons/SvgCloseSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgColumnManager.js +8 -3
- package/DEV-esm/utils/icons/SvgDocument.js +8 -3
- package/DEV-esm/utils/icons/SvgFilter.js +8 -3
- package/DEV-esm/utils/icons/SvgFilterHollow.js +8 -3
- package/DEV-esm/utils/icons/SvgImportantSmall.js +8 -3
- package/DEV-esm/utils/icons/SvgInfoCircular.js +8 -3
- package/DEV-esm/utils/icons/SvgMore.js +8 -3
- package/DEV-esm/utils/icons/SvgMoreVertical.js +8 -3
- package/DEV-esm/utils/icons/SvgNew.js +8 -3
- package/DEV-esm/utils/icons/SvgSearch.js +8 -3
- package/DEV-esm/utils/icons/SvgSmileyHappy.js +8 -3
- package/DEV-esm/utils/icons/SvgSortDown.js +8 -3
- package/DEV-esm/utils/icons/SvgSortUp.js +8 -3
- package/DEV-esm/utils/icons/SvgStatusError.js +8 -3
- package/DEV-esm/utils/icons/SvgStatusSuccess.js +8 -3
- package/DEV-esm/utils/icons/SvgStatusWarning.js +8 -3
- package/DEV-esm/utils/icons/SvgSwap.js +8 -3
- package/DEV-esm/utils/icons/SvgUpload.js +8 -3
- package/DEV-esm/utils/meta.js +2 -2
- package/DEV-esm/utils/props.js +1 -1
- package/DEV-esm/utils/providers/HydrationProvider.js +31 -20
- package/DEV-esm/utils/providers/ScopeProvider.js +36 -35
- package/DEV-esm/utils/types.js +1 -1
- package/cjs/core/Buttons/IconButton.d.ts +4 -0
- package/cjs/core/Buttons/IconButton.js +3 -1
- package/cjs/core/Carousel/Carousel.d.ts +4 -2
- package/cjs/core/Carousel/CarouselNavigation.d.ts +4 -2
- package/cjs/core/ComboBox/ComboBox.js +5 -0
- package/cjs/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/cjs/core/List/List.d.ts +1 -1
- package/cjs/core/List/List.js +1 -1
- package/cjs/core/List/ListItem.d.ts +4 -4
- package/cjs/core/List/ListItem.js +4 -6
- package/cjs/core/Menu/Menu.js +6 -0
- package/cjs/core/Menu/MenuDivider.d.ts +1 -1
- package/cjs/core/Menu/MenuDivider.js +1 -1
- package/cjs/core/Overlay/Overlay.d.ts +2 -2
- package/cjs/core/Overlay/Overlay.js +2 -2
- package/cjs/core/Popover/Popover.d.ts +8 -1
- package/cjs/core/Popover/Popover.js +40 -9
- package/cjs/core/Select/Select.js +5 -0
- package/cjs/core/Table/ColumnHeader.d.ts +19 -0
- package/cjs/core/Table/ColumnHeader.js +194 -0
- package/cjs/core/Table/Table.js +38 -184
- package/cjs/core/Table/filters/BaseFilter.d.ts +2 -9
- package/cjs/core/Table/filters/BaseFilter.js +17 -15
- package/cjs/core/Table/filters/DateRangeFilter/DateRangeFilter.js +3 -8
- package/cjs/core/Table/filters/FilterButtonBar.d.ts +4 -2
- package/cjs/core/Table/filters/FilterButtonBar.js +1 -0
- package/cjs/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +3 -9
- package/cjs/core/Table/filters/TextFilter/TextFilter.js +4 -7
- package/cjs/core/Table/filters/index.d.ts +0 -1
- package/cjs/core/Table/index.d.ts +1 -1
- package/cjs/core/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/cjs/core/ThemeProvider/ThemeProvider.js +66 -49
- package/cjs/core/Tile/Tile.d.ts +10 -9
- package/cjs/core/Tile/Tile.js +8 -8
- package/cjs/core/Toast/Toaster.d.ts +3 -2
- package/cjs/core/Toast/Toaster.js +2 -1
- package/cjs/core/Tooltip/Tooltip.js +22 -7
- package/cjs/core/TransferList/TransferList.d.ts +5 -5
- package/cjs/core/TransferList/TransferList.js +2 -2
- package/cjs/core/Tree/Tree.js +2 -1
- package/cjs/styles.js +1 -1
- package/cjs/utils/functions/polymorphic.d.ts +3 -7
- package/cjs/utils/functions/polymorphic.js +8 -5
- package/esm/core/Buttons/IconButton.d.ts +4 -0
- package/esm/core/Buttons/IconButton.js +4 -2
- package/esm/core/Carousel/Carousel.d.ts +4 -2
- package/esm/core/Carousel/CarouselNavigation.d.ts +4 -2
- package/esm/core/ComboBox/ComboBox.js +5 -0
- package/esm/core/InputWithDecorations/InputWithDecorations.d.ts +1 -1
- package/esm/core/List/List.d.ts +1 -1
- package/esm/core/List/List.js +1 -1
- package/esm/core/List/ListItem.d.ts +4 -4
- package/esm/core/List/ListItem.js +4 -4
- package/esm/core/Menu/Menu.js +6 -0
- package/esm/core/Menu/MenuDivider.d.ts +1 -1
- package/esm/core/Menu/MenuDivider.js +1 -1
- package/esm/core/Overlay/Overlay.d.ts +2 -2
- package/esm/core/Overlay/Overlay.js +2 -2
- package/esm/core/Popover/Popover.d.ts +8 -1
- package/esm/core/Popover/Popover.js +40 -9
- package/esm/core/Select/Select.js +5 -0
- package/esm/core/Table/ColumnHeader.d.ts +19 -0
- package/esm/core/Table/ColumnHeader.js +188 -0
- package/esm/core/Table/Table.js +20 -171
- package/esm/core/Table/filters/BaseFilter.d.ts +2 -9
- package/esm/core/Table/filters/BaseFilter.js +15 -16
- package/esm/core/Table/filters/DateRangeFilter/DateRangeFilter.js +3 -8
- package/esm/core/Table/filters/FilterButtonBar.d.ts +4 -2
- package/esm/core/Table/filters/FilterButtonBar.js +1 -0
- package/esm/core/Table/filters/NumberRangeFilter/NumberRangeFilter.js +3 -9
- package/esm/core/Table/filters/TextFilter/TextFilter.js +4 -7
- package/esm/core/Table/filters/index.d.ts +0 -1
- package/esm/core/Table/index.d.ts +1 -1
- package/esm/core/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/esm/core/ThemeProvider/ThemeProvider.js +65 -44
- package/esm/core/Tile/Tile.d.ts +10 -9
- package/esm/core/Tile/Tile.js +8 -8
- package/esm/core/Toast/Toaster.d.ts +3 -2
- package/esm/core/Toast/Toaster.js +2 -1
- package/esm/core/Tooltip/Tooltip.js +22 -8
- package/esm/core/TransferList/TransferList.d.ts +5 -5
- package/esm/core/TransferList/TransferList.js +2 -2
- package/esm/core/Tree/Tree.js +2 -1
- package/esm/styles.js +1 -1
- package/esm/utils/functions/polymorphic.d.ts +3 -7
- package/esm/utils/functions/polymorphic.js +8 -5
- package/package.json +3 -3
- package/styles.css +22 -14
|
@@ -314,6 +314,11 @@ export const ComboBox = React.forwardRef((props, forwardedRef) => {
|
|
|
314
314
|
visible: isOpen,
|
|
315
315
|
onVisibleChange: (open) => (open ? show() : hide()),
|
|
316
316
|
matchWidth: true,
|
|
317
|
+
middleware: {
|
|
318
|
+
size: {
|
|
319
|
+
maxHeight: 'var(--iui-menu-max-height)',
|
|
320
|
+
},
|
|
321
|
+
},
|
|
317
322
|
closeOnOutsideClick: true,
|
|
318
323
|
interactions: {
|
|
319
324
|
click: false,
|
|
@@ -32,7 +32,7 @@ export declare const InputWithDecorations: PolymorphicForwardRefComponent<"div",
|
|
|
32
32
|
*/
|
|
33
33
|
Button: PolymorphicForwardRefComponent<"button", Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
34
34
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
35
|
-
}, "label" | "as" | "size" | "htmlDisabled" | "styleType" | "labelProps" | "stretched" | "isActive" | "iconProps"> & Omit<import("../Buttons/IconButton.js").IconButtonProps, "styleType"> & {
|
|
35
|
+
}, "label" | "title" | "as" | "size" | "htmlDisabled" | "styleType" | "labelProps" | "stretched" | "isActive" | "iconProps"> & Omit<import("../Buttons/IconButton.js").IconButtonProps, "styleType"> & {
|
|
36
36
|
styleType?: import("../Buttons/IconButton.js").IconButtonProps["styleType"];
|
|
37
37
|
} & {
|
|
38
38
|
as?: "button" | undefined;
|
package/esm/core/List/List.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const List: import("../../utils/props.js").PolymorphicForwardRefComponent<"
|
|
1
|
+
export declare const List: import("../../utils/props.js").PolymorphicForwardRefComponent<"div", {}>;
|
package/esm/core/List/List.js
CHANGED
|
@@ -40,11 +40,11 @@ export type ListItemOwnProps = {
|
|
|
40
40
|
* <ListItem>item 3</ListItem>
|
|
41
41
|
* </List>
|
|
42
42
|
*/
|
|
43
|
-
export declare const ListItem: PolymorphicForwardRefComponent<"
|
|
43
|
+
export declare const ListItem: PolymorphicForwardRefComponent<"div", ListItemOwnProps> & {
|
|
44
44
|
/**
|
|
45
45
|
* Icon to be placed at the beginning or end of the ListItem.
|
|
46
46
|
*/
|
|
47
|
-
Icon: PolymorphicForwardRefComponent<
|
|
47
|
+
Icon: PolymorphicForwardRefComponent<"div", {}>;
|
|
48
48
|
/**
|
|
49
49
|
* Wrapper for the main content of the ListItem.
|
|
50
50
|
*
|
|
@@ -53,7 +53,7 @@ export declare const ListItem: PolymorphicForwardRefComponent<"li", ListItemOwnP
|
|
|
53
53
|
* and push the icon to the end
|
|
54
54
|
* - When using `ListItem.Description`.
|
|
55
55
|
*/
|
|
56
|
-
Content: PolymorphicForwardRefComponent<
|
|
56
|
+
Content: PolymorphicForwardRefComponent<"div", {}>;
|
|
57
57
|
/**
|
|
58
58
|
* Description to be used in addition to the main label of the ListItem.
|
|
59
59
|
* Should be used as a child of `ListItem.Content`.
|
|
@@ -66,7 +66,7 @@ export declare const ListItem: PolymorphicForwardRefComponent<"li", ListItemOwnP
|
|
|
66
66
|
* </ListItem.Content>
|
|
67
67
|
* </ListItem>
|
|
68
68
|
*/
|
|
69
|
-
Description: PolymorphicForwardRefComponent<
|
|
69
|
+
Description: PolymorphicForwardRefComponent<"div", {}>;
|
|
70
70
|
/**
|
|
71
71
|
* Wrapper over [LinkAction](https://itwinui.bentley.com/docs/linkaction) which allows rendering a link inside a ListItem.
|
|
72
72
|
* This ensures that clicking anywhere on the ListItem will trigger the link.
|
|
@@ -13,7 +13,7 @@ let ListItemComponent = React.forwardRef((props, ref) => {
|
|
|
13
13
|
...rest
|
|
14
14
|
} = props;
|
|
15
15
|
return React.createElement(Box, {
|
|
16
|
-
|
|
16
|
+
role: 'listitem',
|
|
17
17
|
className: cx('iui-list-item', className),
|
|
18
18
|
'data-iui-active': active ? 'true' : void 0,
|
|
19
19
|
'data-iui-disabled': disabled ? 'true' : void 0,
|
|
@@ -24,9 +24,9 @@ let ListItemComponent = React.forwardRef((props, ref) => {
|
|
|
24
24
|
...rest,
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
let ListItemIcon = polymorphic('iui-list-item-icon');
|
|
28
|
-
let ListItemContent = polymorphic('iui-list-item-content');
|
|
29
|
-
let ListItemDescription = polymorphic('iui-list-item-description');
|
|
27
|
+
let ListItemIcon = polymorphic.div('iui-list-item-icon');
|
|
28
|
+
let ListItemContent = polymorphic.div('iui-list-item-content');
|
|
29
|
+
let ListItemDescription = polymorphic.div('iui-list-item-description');
|
|
30
30
|
let ListItemAction = LinkAction;
|
|
31
31
|
export const ListItem = Object.assign(ListItemComponent, {
|
|
32
32
|
Icon: ListItemIcon,
|
package/esm/core/Menu/Menu.js
CHANGED
|
@@ -77,6 +77,12 @@ export const Menu = React.forwardRef((props, ref) => {
|
|
|
77
77
|
...restInteractionsProps,
|
|
78
78
|
},
|
|
79
79
|
...restPopoverProps,
|
|
80
|
+
middleware: {
|
|
81
|
+
size: {
|
|
82
|
+
maxHeight: 'var(--iui-menu-max-height)',
|
|
83
|
+
},
|
|
84
|
+
...restPopoverProps.middleware,
|
|
85
|
+
},
|
|
80
86
|
});
|
|
81
87
|
let { getReferenceProps, getFloatingProps, getItemProps } = useInteractions([
|
|
82
88
|
useListNavigation(popover.context, {
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* ]}
|
|
14
14
|
* </Menu>
|
|
15
15
|
*/
|
|
16
|
-
export declare const MenuDivider: import("../../utils/props.js").PolymorphicForwardRefComponent<
|
|
16
|
+
export declare const MenuDivider: import("../../utils/props.js").PolymorphicForwardRefComponent<"div", {}>;
|
|
@@ -38,7 +38,7 @@ export declare const Overlay: PolymorphicForwardRefComponent<"div", OverlayCompo
|
|
|
38
38
|
* The main component is a wrapper to hold the
|
|
39
39
|
* `Overlay.HiddenContent` and `Overlay.Overlay`.
|
|
40
40
|
*/
|
|
41
|
-
Wrapper: PolymorphicForwardRefComponent<
|
|
41
|
+
Wrapper: PolymorphicForwardRefComponent<"div", {}>;
|
|
42
42
|
/**
|
|
43
43
|
* `Overlay.HiddenContent` houses page elements that are blurred by the
|
|
44
44
|
* Overlay. These elements will become inert when the overlay is active.
|
|
@@ -48,6 +48,6 @@ export declare const Overlay: PolymorphicForwardRefComponent<"div", OverlayCompo
|
|
|
48
48
|
* `Overlay.Overlay` sits on top of the HiddenContent, and can show
|
|
49
49
|
* any arbitrary content like a progress indicator and loading message.
|
|
50
50
|
*/
|
|
51
|
-
Overlay: PolymorphicForwardRefComponent<
|
|
51
|
+
Overlay: PolymorphicForwardRefComponent<"div", {}>;
|
|
52
52
|
};
|
|
53
53
|
export {};
|
|
@@ -25,8 +25,8 @@ let OverlayHiddenContent = React.forwardRef((props, ref) => {
|
|
|
25
25
|
children,
|
|
26
26
|
);
|
|
27
27
|
});
|
|
28
|
-
let OverlayOverlay = polymorphic('iui-overlay');
|
|
29
|
-
let OverlayWrapper = polymorphic('iui-overlay-wrapper');
|
|
28
|
+
let OverlayOverlay = polymorphic.div('iui-overlay');
|
|
29
|
+
let OverlayWrapper = polymorphic.div('iui-overlay-wrapper');
|
|
30
30
|
export const Overlay = Object.assign(OverlayComponent, {
|
|
31
31
|
Wrapper: OverlayWrapper,
|
|
32
32
|
HiddenContent: OverlayHiddenContent,
|
|
@@ -26,7 +26,7 @@ type PopoverOptions = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Middleware options.
|
|
28
28
|
*
|
|
29
|
-
* By default, `flip` and `
|
|
29
|
+
* By default, `flip`, `shift` and `size` are enabled.
|
|
30
30
|
*
|
|
31
31
|
* @see https://floating-ui.com/docs/middleware
|
|
32
32
|
*/
|
|
@@ -34,6 +34,13 @@ type PopoverOptions = {
|
|
|
34
34
|
offset?: number;
|
|
35
35
|
flip?: boolean;
|
|
36
36
|
shift?: boolean;
|
|
37
|
+
size?: boolean | {
|
|
38
|
+
/**
|
|
39
|
+
* Override the maximum height of the popover. Must be a CSS-compatible value.
|
|
40
|
+
* @default "400px"
|
|
41
|
+
*/
|
|
42
|
+
maxHeight?: string;
|
|
43
|
+
};
|
|
37
44
|
autoPlacement?: boolean;
|
|
38
45
|
hide?: boolean;
|
|
39
46
|
inline?: boolean;
|
|
@@ -61,10 +61,13 @@ export const usePopover = (options) => {
|
|
|
61
61
|
() => ({
|
|
62
62
|
flip: true,
|
|
63
63
|
shift: true,
|
|
64
|
+
size: true,
|
|
64
65
|
...options.middleware,
|
|
65
66
|
}),
|
|
66
67
|
[options.middleware],
|
|
67
68
|
);
|
|
69
|
+
let maxHeight =
|
|
70
|
+
'boolean' == typeof middleware.size ? '400px' : middleware.size?.maxHeight;
|
|
68
71
|
let [open, onOpenChange] = useControlledState(
|
|
69
72
|
false,
|
|
70
73
|
visible,
|
|
@@ -74,6 +77,7 @@ export const usePopover = (options) => {
|
|
|
74
77
|
placement,
|
|
75
78
|
open,
|
|
76
79
|
onOpenChange,
|
|
80
|
+
strategy: 'fixed',
|
|
77
81
|
whileElementsMounted: React.useMemo(
|
|
78
82
|
() =>
|
|
79
83
|
open ? (...args) => autoUpdate(...args, autoUpdateOptions) : void 0,
|
|
@@ -84,17 +88,32 @@ export const usePopover = (options) => {
|
|
|
84
88
|
() =>
|
|
85
89
|
[
|
|
86
90
|
void 0 !== middleware.offset && offset(middleware.offset),
|
|
87
|
-
middleware.flip &&
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
middleware.flip &&
|
|
92
|
+
flip({
|
|
93
|
+
padding: 4,
|
|
94
|
+
}),
|
|
95
|
+
middleware.shift &&
|
|
96
|
+
shift({
|
|
97
|
+
padding: 4,
|
|
98
|
+
}),
|
|
99
|
+
(matchWidth || middleware.size) &&
|
|
90
100
|
size({
|
|
91
|
-
|
|
92
|
-
|
|
101
|
+
padding: 4,
|
|
102
|
+
apply: ({ rects, availableHeight }) => {
|
|
103
|
+
if (middleware.size)
|
|
104
|
+
setAvailableHeight(Math.round(availableHeight));
|
|
105
|
+
if (matchWidth) setReferenceWidth(rects.reference.width);
|
|
93
106
|
},
|
|
94
107
|
}),
|
|
95
|
-
middleware.autoPlacement &&
|
|
108
|
+
middleware.autoPlacement &&
|
|
109
|
+
autoPlacement({
|
|
110
|
+
padding: 4,
|
|
111
|
+
}),
|
|
96
112
|
middleware.inline && inline(),
|
|
97
|
-
middleware.hide &&
|
|
113
|
+
middleware.hide &&
|
|
114
|
+
hide({
|
|
115
|
+
padding: 4,
|
|
116
|
+
}),
|
|
98
117
|
].filter(Boolean),
|
|
99
118
|
[matchWidth, middleware],
|
|
100
119
|
),
|
|
@@ -130,12 +149,17 @@ export const usePopover = (options) => {
|
|
|
130
149
|
}),
|
|
131
150
|
]);
|
|
132
151
|
let [referenceWidth, setReferenceWidth] = React.useState();
|
|
152
|
+
let [availableHeight, setAvailableHeight] = React.useState();
|
|
133
153
|
let getFloatingProps = React.useCallback(
|
|
134
154
|
(userProps) =>
|
|
135
155
|
interactions.getFloatingProps({
|
|
136
156
|
...userProps,
|
|
137
157
|
style: {
|
|
138
158
|
...floating.floatingStyles,
|
|
159
|
+
...(middleware.size &&
|
|
160
|
+
availableHeight && {
|
|
161
|
+
maxBlockSize: `min(${availableHeight}px, ${maxHeight})`,
|
|
162
|
+
}),
|
|
139
163
|
zIndex: 9999,
|
|
140
164
|
...(matchWidth && referenceWidth
|
|
141
165
|
? {
|
|
@@ -146,7 +170,15 @@ export const usePopover = (options) => {
|
|
|
146
170
|
...userProps?.style,
|
|
147
171
|
},
|
|
148
172
|
}),
|
|
149
|
-
[
|
|
173
|
+
[
|
|
174
|
+
floating.floatingStyles,
|
|
175
|
+
interactions,
|
|
176
|
+
matchWidth,
|
|
177
|
+
referenceWidth,
|
|
178
|
+
middleware.size,
|
|
179
|
+
availableHeight,
|
|
180
|
+
maxHeight,
|
|
181
|
+
],
|
|
150
182
|
);
|
|
151
183
|
let getReferenceProps = React.useCallback(
|
|
152
184
|
(userProps) =>
|
|
@@ -236,7 +268,6 @@ export const Popover = React.forwardRef((props, forwardedRef) => {
|
|
|
236
268
|
{
|
|
237
269
|
context: popover.context,
|
|
238
270
|
modal: false,
|
|
239
|
-
initialFocus: popover.refs.floating,
|
|
240
271
|
},
|
|
241
272
|
React.createElement(
|
|
242
273
|
Box,
|
|
@@ -224,6 +224,11 @@ let CustomSelect = React.forwardRef((props, forwardedRef) => {
|
|
|
224
224
|
visible: isOpen,
|
|
225
225
|
matchWidth: true,
|
|
226
226
|
closeOnOutsideClick: true,
|
|
227
|
+
middleware: {
|
|
228
|
+
size: {
|
|
229
|
+
maxHeight: 'var(--iui-menu-max-height)',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
227
232
|
...popoverProps,
|
|
228
233
|
onVisibleChange: (open) => (open ? show() : hide()),
|
|
229
234
|
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ColumnInstance, HeaderGroup, TableKeyedProps, TableState } from '../../react-table/react-table.js';
|
|
3
|
+
type ColumnHeaderProps<T extends Record<string, unknown> = Record<string, unknown>> = TableKeyedProps & {
|
|
4
|
+
columnRefs: React.MutableRefObject<Record<string, HTMLDivElement>>;
|
|
5
|
+
column: HeaderGroup<T>;
|
|
6
|
+
index: number;
|
|
7
|
+
areFiltersSet: boolean;
|
|
8
|
+
hasAnySubRows: boolean;
|
|
9
|
+
headers: HeaderGroup<T>[];
|
|
10
|
+
state: TableState<T>;
|
|
11
|
+
data: T[];
|
|
12
|
+
isResizable: boolean;
|
|
13
|
+
columnResizeMode: 'fit' | 'expand';
|
|
14
|
+
enableColumnReordering: boolean;
|
|
15
|
+
density: string | undefined;
|
|
16
|
+
visibleColumns: ColumnInstance<T>[];
|
|
17
|
+
};
|
|
18
|
+
export declare const ColumnHeader: <T extends Record<string, unknown> = Record<string, unknown>>(props: ColumnHeaderProps<T>) => JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Box,
|
|
4
|
+
ShadowRoot,
|
|
5
|
+
LineClamp,
|
|
6
|
+
SvgSortDown,
|
|
7
|
+
SvgSortUp,
|
|
8
|
+
} from '../../utils/index.js';
|
|
9
|
+
import { SELECTION_CELL_ID } from './columns/index.js';
|
|
10
|
+
import { FilterToggle } from './filters/FilterToggle.js';
|
|
11
|
+
import { getCellStyle, getSubRowStyle, getStickyStyle } from './utils.js';
|
|
12
|
+
import cx from 'classnames';
|
|
13
|
+
export const ColumnHeader = (props) => {
|
|
14
|
+
let {
|
|
15
|
+
columnRefs,
|
|
16
|
+
column,
|
|
17
|
+
index,
|
|
18
|
+
areFiltersSet,
|
|
19
|
+
hasAnySubRows,
|
|
20
|
+
headers,
|
|
21
|
+
state,
|
|
22
|
+
data,
|
|
23
|
+
isResizable,
|
|
24
|
+
columnResizeMode,
|
|
25
|
+
enableColumnReordering,
|
|
26
|
+
density,
|
|
27
|
+
visibleColumns,
|
|
28
|
+
...rest
|
|
29
|
+
} = props;
|
|
30
|
+
let isHeaderDirectClick = React.useRef(false);
|
|
31
|
+
let COLUMN_MIN_WIDTHS = {
|
|
32
|
+
default: 72,
|
|
33
|
+
withExpander: 108,
|
|
34
|
+
};
|
|
35
|
+
let showFilterButton = (column) =>
|
|
36
|
+
(0 !== data.length || areFiltersSet) && column.canFilter && !!column.Filter;
|
|
37
|
+
let showSortButton = (column) => 0 !== data.length && column.canSort;
|
|
38
|
+
let { onClick, ...restSortProps } = column.getSortByToggleProps();
|
|
39
|
+
let columnHasExpanders =
|
|
40
|
+
hasAnySubRows &&
|
|
41
|
+
index === headers.findIndex((c) => c.id !== SELECTION_CELL_ID);
|
|
42
|
+
if ([void 0, 0].includes(column.minWidth)) {
|
|
43
|
+
column.minWidth = columnHasExpanders
|
|
44
|
+
? COLUMN_MIN_WIDTHS.withExpander
|
|
45
|
+
: COLUMN_MIN_WIDTHS.default;
|
|
46
|
+
if ('number' == typeof column.width && column.minWidth > column.width)
|
|
47
|
+
column.minWidth = column.width;
|
|
48
|
+
}
|
|
49
|
+
let columnProps = column.getHeaderProps({
|
|
50
|
+
...restSortProps,
|
|
51
|
+
className: cx(
|
|
52
|
+
'iui-table-cell',
|
|
53
|
+
{
|
|
54
|
+
'iui-actionable': column.canSort,
|
|
55
|
+
'iui-sorted': column.isSorted,
|
|
56
|
+
'iui-table-cell-sticky': !!column.sticky,
|
|
57
|
+
},
|
|
58
|
+
column.columnClassName,
|
|
59
|
+
),
|
|
60
|
+
style: {
|
|
61
|
+
...getCellStyle(column, !!state.isTableResizing),
|
|
62
|
+
...(columnHasExpanders &&
|
|
63
|
+
getSubRowStyle({
|
|
64
|
+
density,
|
|
65
|
+
})),
|
|
66
|
+
...getStickyStyle(column, visibleColumns),
|
|
67
|
+
flexWrap: 'wrap',
|
|
68
|
+
columnGap: 'var(--iui-size-xs)',
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
return React.createElement(
|
|
72
|
+
Box,
|
|
73
|
+
{
|
|
74
|
+
...columnProps,
|
|
75
|
+
...rest,
|
|
76
|
+
key: columnProps.key,
|
|
77
|
+
title: void 0,
|
|
78
|
+
ref: React.useCallback(
|
|
79
|
+
(el) => {
|
|
80
|
+
if (el) {
|
|
81
|
+
columnRefs.current[column.id] = el;
|
|
82
|
+
column.resizeWidth = el.getBoundingClientRect().width;
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
[column, columnRefs],
|
|
86
|
+
),
|
|
87
|
+
onMouseDown: () => {
|
|
88
|
+
isHeaderDirectClick.current = true;
|
|
89
|
+
},
|
|
90
|
+
onClick: (e) => {
|
|
91
|
+
if (isHeaderDirectClick.current) {
|
|
92
|
+
onClick?.(e);
|
|
93
|
+
isHeaderDirectClick.current = false;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
tabIndex: showSortButton(column) ? 0 : void 0,
|
|
97
|
+
onKeyDown: (e) => {
|
|
98
|
+
if ('Enter' == e.key && showSortButton(column)) column.toggleSortBy();
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
React.createElement(
|
|
102
|
+
React.Fragment,
|
|
103
|
+
null,
|
|
104
|
+
React.createElement(
|
|
105
|
+
ShadowRoot,
|
|
106
|
+
null,
|
|
107
|
+
'string' == typeof column.Header
|
|
108
|
+
? React.createElement(
|
|
109
|
+
LineClamp,
|
|
110
|
+
null,
|
|
111
|
+
React.createElement('slot', null),
|
|
112
|
+
)
|
|
113
|
+
: React.createElement('slot', null),
|
|
114
|
+
React.createElement('slot', {
|
|
115
|
+
name: 'actions',
|
|
116
|
+
}),
|
|
117
|
+
React.createElement('slot', {
|
|
118
|
+
name: 'resizers',
|
|
119
|
+
}),
|
|
120
|
+
React.createElement('slot', {
|
|
121
|
+
name: 'shadows',
|
|
122
|
+
}),
|
|
123
|
+
),
|
|
124
|
+
column.render('Header'),
|
|
125
|
+
(showFilterButton(column) || showSortButton(column)) &&
|
|
126
|
+
React.createElement(
|
|
127
|
+
Box,
|
|
128
|
+
{
|
|
129
|
+
className: 'iui-table-header-actions-container',
|
|
130
|
+
onKeyDown: (e) => e.stopPropagation(),
|
|
131
|
+
slot: 'actions',
|
|
132
|
+
},
|
|
133
|
+
showFilterButton(column) &&
|
|
134
|
+
React.createElement(FilterToggle, {
|
|
135
|
+
column: column,
|
|
136
|
+
}),
|
|
137
|
+
showSortButton(column) &&
|
|
138
|
+
React.createElement(
|
|
139
|
+
Box,
|
|
140
|
+
{
|
|
141
|
+
className: 'iui-table-cell-end-icon',
|
|
142
|
+
},
|
|
143
|
+
column.isSortedDesc || (!column.isSorted && column.sortDescFirst)
|
|
144
|
+
? React.createElement(SvgSortDown, {
|
|
145
|
+
className: 'iui-table-sort',
|
|
146
|
+
'aria-hidden': true,
|
|
147
|
+
})
|
|
148
|
+
: React.createElement(SvgSortUp, {
|
|
149
|
+
className: 'iui-table-sort',
|
|
150
|
+
'aria-hidden': true,
|
|
151
|
+
}),
|
|
152
|
+
),
|
|
153
|
+
),
|
|
154
|
+
isResizable &&
|
|
155
|
+
column.isResizerVisible &&
|
|
156
|
+
(index !== headers.length - 1 || 'expand' === columnResizeMode) &&
|
|
157
|
+
React.createElement(
|
|
158
|
+
Box,
|
|
159
|
+
{
|
|
160
|
+
...column.getResizerProps(),
|
|
161
|
+
className: 'iui-table-resizer',
|
|
162
|
+
slot: 'resizers',
|
|
163
|
+
},
|
|
164
|
+
React.createElement(Box, {
|
|
165
|
+
className: 'iui-table-resizer-bar',
|
|
166
|
+
}),
|
|
167
|
+
),
|
|
168
|
+
enableColumnReordering &&
|
|
169
|
+
!column.disableReordering &&
|
|
170
|
+
React.createElement(Box, {
|
|
171
|
+
className: 'iui-table-reorder-bar',
|
|
172
|
+
slot: 'resizers',
|
|
173
|
+
}),
|
|
174
|
+
'left' === column.sticky &&
|
|
175
|
+
state.sticky.isScrolledToRight &&
|
|
176
|
+
React.createElement(Box, {
|
|
177
|
+
className: 'iui-table-cell-shadow-right',
|
|
178
|
+
slot: 'shadows',
|
|
179
|
+
}),
|
|
180
|
+
'right' === column.sticky &&
|
|
181
|
+
state.sticky.isScrolledToLeft &&
|
|
182
|
+
React.createElement(Box, {
|
|
183
|
+
className: 'iui-table-cell-shadow-left',
|
|
184
|
+
slot: 'shadows',
|
|
185
|
+
}),
|
|
186
|
+
),
|
|
187
|
+
);
|
|
188
|
+
};
|