@react-md/core 1.0.0-next.2 → 1.0.0-next.3
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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-lint.log +12 -0
- package/.turbo/turbo-test.log +179 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +103 -0
- package/coverage/clover.xml +437 -3
- package/coverage/coverage-final.json +4 -1
- package/coverage/lcov-report/Avatar.tsx.html +472 -0
- package/coverage/lcov-report/IconRotator.tsx.html +322 -0
- package/coverage/lcov-report/ListItem.tsx.html +892 -0
- package/coverage/lcov-report/Portal.tsx.html +223 -0
- package/coverage/lcov-report/PortalContainerProvider.tsx.html +367 -0
- package/coverage/lcov-report/SkeletonPlaceholder.tsx.html +613 -0
- package/coverage/lcov-report/Tab.tsx.html +261 -147
- package/coverage/lcov-report/TreeGroup.tsx.html +313 -0
- package/coverage/lcov-report/app-bar/AppBar.tsx.html +178 -28
- package/coverage/lcov-report/app-bar/index.html +7 -7
- package/coverage/lcov-report/button/TooltippedButton.tsx.html +445 -0
- package/coverage/lcov-report/button/index.html +10 -10
- package/coverage/lcov-report/card/Card.tsx.html +349 -0
- package/coverage/lcov-report/card/CardContent.tsx.html +223 -0
- package/coverage/lcov-report/card/ClickableCard.tsx.html +400 -0
- package/coverage/lcov-report/card/index.html +21 -21
- package/coverage/lcov-report/card/styles.ts.html +428 -392
- package/coverage/lcov-report/cssUtils.ts.html +86 -59
- package/coverage/lcov-report/draggable/index.html +21 -36
- package/coverage/lcov-report/draggable/useDraggable.ts.html +377 -368
- package/coverage/lcov-report/draggable/utils.ts.html +96 -195
- package/coverage/lcov-report/expansion-panel/ExpansionList.tsx.html +211 -0
- package/coverage/lcov-report/expansion-panel/ExpansionPanel.tsx.html +12 -15
- package/coverage/lcov-report/expansion-panel/index.html +34 -19
- package/coverage/lcov-report/expansion-panel/useExpansionPanels.ts.html +928 -0
- package/coverage/lcov-report/form/MenuItemInputToggle.tsx.html +2 -2
- package/coverage/lcov-report/form/Select.tsx.html +1663 -0
- package/coverage/lcov-report/form/Slider.tsx.html +163 -40
- package/coverage/lcov-report/form/index.html +21 -21
- package/coverage/lcov-report/icon/FontIcon.tsx.html +28 -28
- package/coverage/lcov-report/icon/index.html +1 -1
- package/coverage/lcov-report/index.html +41 -11
- package/coverage/lcov-report/interaction/UserInteractionModeProvider.tsx.html +679 -0
- package/coverage/lcov-report/interaction/config.ts.html +181 -0
- package/coverage/lcov-report/interaction/index.html +33 -18
- package/coverage/lcov-report/list/List.tsx.html +490 -0
- package/coverage/lcov-report/list/ListItem.tsx.html +886 -0
- package/coverage/lcov-report/list/ListItemAddon.tsx.html +286 -0
- package/coverage/lcov-report/list/ListItemChildren.tsx.html +445 -0
- package/coverage/lcov-report/list/ListItemLink.tsx.html +5 -5
- package/coverage/lcov-report/list/index.html +81 -6
- package/coverage/lcov-report/list/listItemStyles.ts.html +703 -0
- package/coverage/lcov-report/media-queries/appSize.ts.html +1 -1
- package/coverage/lcov-report/media-queries/index.html +1 -1
- package/coverage/lcov-report/menu/Menu.tsx.html +37 -19
- package/coverage/lcov-report/menu/index.html +14 -44
- package/coverage/lcov-report/sheet/index.html +8 -8
- package/coverage/lcov-report/sheet/styles.ts.html +376 -0
- package/coverage/lcov-report/skeletonPlaceholderUtils.ts.html +400 -0
- package/coverage/lcov-report/src/CoreProviders.tsx.html +20 -20
- package/coverage/lcov-report/src/NoSsr.tsx.html +1 -1
- package/coverage/lcov-report/src/SsrProvider.tsx.html +10 -10
- package/coverage/lcov-report/src/app-bar/AppBar.tsx.html +143 -23
- package/coverage/lcov-report/src/app-bar/AppBarTitle.tsx.html +1 -1
- package/coverage/lcov-report/src/app-bar/index.html +5 -5
- package/coverage/lcov-report/src/avatar/Avatar.tsx.html +2 -2
- package/coverage/lcov-report/src/avatar/index.html +1 -1
- package/coverage/lcov-report/src/avatar/styles.ts.html +1 -1
- package/coverage/lcov-report/src/badge/Badge.tsx.html +1 -1
- package/coverage/lcov-report/src/badge/index.html +1 -1
- package/coverage/lcov-report/src/box/Box.tsx.html +1 -1
- package/coverage/lcov-report/src/box/index.html +23 -8
- package/coverage/lcov-report/src/box/styles.ts.html +46 -46
- package/coverage/lcov-report/src/button/AsyncButton.tsx.html +1 -1
- package/coverage/lcov-report/src/button/Button.tsx.html +84 -84
- package/coverage/lcov-report/src/button/ButtonUnstyled.tsx.html +1 -1
- package/coverage/lcov-report/src/button/FloatingActionButton.tsx.html +11 -11
- package/coverage/lcov-report/src/button/TooltippedButton.tsx.html +445 -0
- package/coverage/lcov-report/src/button/buttonStyles.ts.html +52 -52
- package/coverage/lcov-report/src/button/buttonUnstyledStyles.ts.html +1 -1
- package/coverage/lcov-report/src/button/index.html +83 -8
- package/coverage/lcov-report/src/card/Card.tsx.html +37 -31
- package/coverage/lcov-report/src/card/CardContent.tsx.html +4 -4
- package/coverage/lcov-report/src/card/CardFooter.tsx.html +1 -1
- package/coverage/lcov-report/src/card/CardHeader.tsx.html +1 -1
- package/coverage/lcov-report/src/card/CardSubtitle.tsx.html +1 -1
- package/coverage/lcov-report/src/card/CardTitle.tsx.html +1 -1
- package/coverage/lcov-report/src/card/ClickableCard.tsx.html +400 -0
- package/coverage/lcov-report/src/card/index.html +24 -9
- package/coverage/lcov-report/src/card/styles.ts.html +58 -31
- package/coverage/lcov-report/src/chip/Chip.tsx.html +1 -1
- package/coverage/lcov-report/src/chip/index.html +7 -7
- package/coverage/lcov-report/src/chip/styles.ts.html +9 -12
- package/coverage/lcov-report/src/cssUtils.ts.html +53 -53
- package/coverage/lcov-report/src/delegateEvent.ts.html +109 -109
- package/coverage/lcov-report/src/dialog/Dialog.tsx.html +1 -1
- package/coverage/lcov-report/src/dialog/DialogContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/dialog/DialogContent.tsx.html +1 -1
- package/coverage/lcov-report/src/dialog/DialogFooter.tsx.html +1 -1
- package/coverage/lcov-report/src/dialog/DialogHeader.tsx.html +1 -1
- package/coverage/lcov-report/src/dialog/DialogTitle.tsx.html +1 -1
- package/coverage/lcov-report/src/dialog/FixedDialog.tsx.html +1 -1
- package/coverage/lcov-report/src/dialog/NestedDialogProvider.ts.html +1 -1
- package/coverage/lcov-report/src/dialog/index.html +129 -9
- package/coverage/lcov-report/src/dialog/styles.ts.html +1 -1
- package/coverage/lcov-report/src/divider/Divider.tsx.html +4 -7
- package/coverage/lcov-report/src/divider/index.html +5 -5
- package/coverage/lcov-report/src/divider/styles.ts.html +1 -1
- package/coverage/lcov-report/src/draggable/index.html +27 -27
- package/coverage/lcov-report/src/draggable/useDraggable.ts.html +47 -44
- package/coverage/lcov-report/src/draggable/utils.ts.html +29 -131
- package/coverage/lcov-report/src/expansion-panel/ExpansionList.tsx.html +1 -1
- package/coverage/lcov-report/src/expansion-panel/ExpansionPanel.tsx.html +1 -1
- package/coverage/lcov-report/src/expansion-panel/ExpansionPanelHeader.tsx.html +1 -1
- package/coverage/lcov-report/src/expansion-panel/index.html +8 -8
- package/coverage/lcov-report/src/expansion-panel/useExpansionList.ts.html +1 -1
- package/coverage/lcov-report/src/expansion-panel/useExpansionPanels.ts.html +36 -24
- package/coverage/lcov-report/src/focus/index.html +1 -1
- package/coverage/lcov-report/src/focus/useFocusContainer.ts.html +1 -1
- package/coverage/lcov-report/src/focus/utils.ts.html +1 -1
- package/coverage/lcov-report/src/form/Checkbox.tsx.html +1 -1
- package/coverage/lcov-report/src/form/Fieldset.tsx.html +1 -1
- package/coverage/lcov-report/src/form/FileInput.tsx.html +1 -1
- package/coverage/lcov-report/src/form/Form.tsx.html +1 -1
- package/coverage/lcov-report/src/form/FormMessage.tsx.html +1 -1
- package/coverage/lcov-report/src/form/FormMessageContainer.tsx.html +5 -5
- package/coverage/lcov-report/src/form/FormMessageCounter.tsx.html +1 -1
- package/coverage/lcov-report/src/form/InputToggle.tsx.html +110 -110
- package/coverage/lcov-report/src/form/InputToggleIcon.tsx.html +63 -63
- package/coverage/lcov-report/src/form/Label.tsx.html +98 -98
- package/coverage/lcov-report/src/form/Legend.tsx.html +1 -1
- package/coverage/lcov-report/src/form/MenuItemCheckbox.tsx.html +1 -1
- package/coverage/lcov-report/src/form/MenuItemFileInput.tsx.html +1 -1
- package/coverage/lcov-report/src/form/MenuItemInputToggle.tsx.html +2 -2
- package/coverage/lcov-report/src/form/MenuItemRadio.tsx.html +1 -1
- package/coverage/lcov-report/src/form/MenuItemSwitch.tsx.html +1 -1
- package/coverage/lcov-report/src/form/MenuItemTextField.tsx.html +1 -1
- package/coverage/lcov-report/src/form/NativeSelect.tsx.html +1 -1
- package/coverage/lcov-report/src/form/OptGroup.tsx.html +1 -1
- package/coverage/lcov-report/src/form/Option.tsx.html +1 -1
- package/coverage/lcov-report/src/form/Password.tsx.html +1 -1
- package/coverage/lcov-report/src/form/Radio.tsx.html +3 -3
- package/coverage/lcov-report/src/form/Select.tsx.html +29 -5
- package/coverage/lcov-report/src/form/SelectValue.tsx.html +1 -1
- package/coverage/lcov-report/src/form/Slider.tsx.html +1 -1
- package/coverage/lcov-report/src/form/SliderContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/form/SliderMark.tsx.html +1 -1
- package/coverage/lcov-report/src/form/SliderMarkLabel.tsx.html +1 -1
- package/coverage/lcov-report/src/form/SliderThumb.tsx.html +1 -1
- package/coverage/lcov-report/src/form/SliderTrack.tsx.html +1 -1
- package/coverage/lcov-report/src/form/SliderValueMarks.tsx.html +1 -1
- package/coverage/lcov-report/src/form/SliderValueTooltip.tsx.html +1 -1
- package/coverage/lcov-report/src/form/Switch.tsx.html +1 -1
- package/coverage/lcov-report/src/form/SwitchTrack.tsx.html +1 -1
- package/coverage/lcov-report/src/form/TextArea.tsx.html +2 -2
- package/coverage/lcov-report/src/form/TextField.tsx.html +1 -1
- package/coverage/lcov-report/src/form/TextFieldAddon.tsx.html +1 -1
- package/coverage/lcov-report/src/form/TextFieldContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/form/TextFieldContainerStyles.ts.html +8 -8
- package/coverage/lcov-report/src/form/fileUtils.ts.html +1 -1
- package/coverage/lcov-report/src/form/formConfig.ts.html +1 -1
- package/coverage/lcov-report/src/form/formMessageStyles.ts.html +1 -1
- package/coverage/lcov-report/src/form/index.html +940 -10
- package/coverage/lcov-report/src/form/inputToggleStyles.ts.html +30 -30
- package/coverage/lcov-report/src/form/nativeSelectStyles.ts.html +1 -1
- package/coverage/lcov-report/src/form/optionStyles.ts.html +1 -1
- package/coverage/lcov-report/src/form/passwordStyles.ts.html +1 -1
- package/coverage/lcov-report/src/form/selectStyles.ts.html +1 -1
- package/coverage/lcov-report/src/form/selectUtils.ts.html +1 -1
- package/coverage/lcov-report/src/form/sliderUtils.ts.html +1 -1
- package/coverage/lcov-report/src/form/switchStyles.ts.html +1 -1
- package/coverage/lcov-report/src/form/textAreaStyles.ts.html +3 -3
- package/coverage/lcov-report/src/form/textFieldStyles.ts.html +1 -1
- package/coverage/lcov-report/src/form/useCheckboxGroup.ts.html +1 -1
- package/coverage/lcov-report/src/form/useFileUpload.ts.html +1 -1
- package/coverage/lcov-report/src/form/useListboxProvider.ts.html +1 -1
- package/coverage/lcov-report/src/form/useNumberField.ts.html +1 -1
- package/coverage/lcov-report/src/form/useRadioGroup.ts.html +47 -47
- package/coverage/lcov-report/src/form/useRangeSlider.ts.html +1 -1
- package/coverage/lcov-report/src/form/useResizingTextArea.ts.html +1 -1
- package/coverage/lcov-report/src/form/useSlider.ts.html +1 -1
- package/coverage/lcov-report/src/form/useTextField.ts.html +1 -1
- package/coverage/lcov-report/src/form/utils.ts.html +1 -1
- package/coverage/lcov-report/src/form/validation.ts.html +1 -1
- package/coverage/lcov-report/src/hoverMode/index.html +1 -1
- package/coverage/lcov-report/src/hoverMode/useHoverMode.ts.html +98 -98
- package/coverage/lcov-report/src/hoverMode/useHoverModeProvider.ts.html +19 -19
- package/coverage/lcov-report/src/icon/FontIcon.tsx.html +28 -28
- package/coverage/lcov-report/src/icon/IconRotator.tsx.html +5 -8
- package/coverage/lcov-report/src/icon/MaterialIcon.tsx.html +1 -1
- package/coverage/lcov-report/src/icon/MaterialSymbol.tsx.html +1 -1
- package/coverage/lcov-report/src/icon/SVGIcon.tsx.html +1 -1
- package/coverage/lcov-report/src/icon/TextIconSpacing.tsx.html +1 -1
- package/coverage/lcov-report/src/icon/iconConfig.tsx.html +8 -8
- package/coverage/lcov-report/src/icon/index.html +7 -7
- package/coverage/lcov-report/src/icon/material.ts.html +1 -1
- package/coverage/lcov-report/src/icon/materialConfig.ts.html +1 -1
- package/coverage/lcov-report/src/icon/styles.ts.html +38 -38
- package/coverage/lcov-report/src/index.html +354 -9
- package/coverage/lcov-report/src/interaction/Ripple.tsx.html +1 -1
- package/coverage/lcov-report/src/interaction/RippleContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/interaction/UserInteractionModeProvider.tsx.html +87 -87
- package/coverage/lcov-report/src/interaction/config.ts.html +7 -7
- package/coverage/lcov-report/src/interaction/index.html +1 -1
- package/coverage/lcov-report/src/interaction/useElementInteraction.tsx.html +123 -123
- package/coverage/lcov-report/src/interaction/useHigherContrastChildren.tsx.html +17 -17
- package/coverage/lcov-report/src/interaction/utils.ts.html +1 -1
- package/coverage/lcov-report/src/layout/LayoutAppBar.tsx.html +1 -1
- package/coverage/lcov-report/src/layout/LayoutNav.tsx.html +60 -60
- package/coverage/lcov-report/src/layout/LayoutWindowSplitter.tsx.html +1 -1
- package/coverage/lcov-report/src/layout/Main.tsx.html +1 -1
- package/coverage/lcov-report/src/layout/index.html +15 -15
- package/coverage/lcov-report/src/layout/layoutNavStyles.ts.html +5 -5
- package/coverage/lcov-report/src/layout/layoutWindowSplitterStyles.ts.html +1 -1
- package/coverage/lcov-report/src/layout/mainStyles.ts.html +1 -1
- package/coverage/lcov-report/src/layout/useExpandableLayout.ts.html +1 -1
- package/coverage/lcov-report/src/layout/useHorizontalLayoutTransition.ts.html +1 -1
- package/coverage/lcov-report/src/layout/useLayoutAppBarHeight.ts.html +20 -32
- package/coverage/lcov-report/src/layout/useLayoutTree.ts.html +1 -1
- package/coverage/lcov-report/src/layout/useLayoutWindowSplitter.ts.html +1 -1
- package/coverage/lcov-report/src/layout/useMainTabIndex.ts.html +1 -1
- package/coverage/lcov-report/src/layout/useResizableLayout.ts.html +1 -1
- package/coverage/lcov-report/src/layout/useTemporaryLayout.ts.html +1 -1
- package/coverage/lcov-report/src/link/Link.tsx.html +1 -1
- package/coverage/lcov-report/src/link/SkipToMainContent.tsx.html +1 -1
- package/coverage/lcov-report/src/link/index.html +1 -1
- package/coverage/lcov-report/src/link/styles.ts.html +1 -1
- package/coverage/lcov-report/src/list/List.tsx.html +30 -30
- package/coverage/lcov-report/src/list/ListItem.tsx.html +37 -16
- package/coverage/lcov-report/src/list/ListItemAddon.tsx.html +13 -7
- package/coverage/lcov-report/src/list/ListItemChildren.tsx.html +12 -6
- package/coverage/lcov-report/src/list/ListItemLink.tsx.html +4 -4
- package/coverage/lcov-report/src/list/ListItemText.tsx.html +1 -1
- package/coverage/lcov-report/src/list/ListSubheader.tsx.html +1 -1
- package/coverage/lcov-report/src/list/getListItemHeight.ts.html +1 -1
- package/coverage/lcov-report/src/list/index.html +11 -11
- package/coverage/lcov-report/src/list/listItemStyles.ts.html +39 -9
- package/coverage/lcov-report/src/media-queries/AppSizeProvider.tsx.html +54 -54
- package/coverage/lcov-report/src/media-queries/appSize.ts.html +1 -1
- package/coverage/lcov-report/src/media-queries/index.html +1 -1
- package/coverage/lcov-report/src/media-queries/useMediaQuery.ts.html +25 -25
- package/coverage/lcov-report/src/menu/DropdownMenu.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/Menu.tsx.html +2 -2
- package/coverage/lcov-report/src/menu/MenuBar.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuButton.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuConfigurationProvider.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuItem.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuItemButton.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuItemGroup.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuItemSeparator.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuSheet.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuVisibilityProvider.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuWidget.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/MenuWidgetKeyboardProvider.tsx.html +1 -1
- package/coverage/lcov-report/src/menu/index.html +1 -1
- package/coverage/lcov-report/src/menu/useContextMenu.ts.html +1 -1
- package/coverage/lcov-report/src/menu/useMenuBarProvider.ts.html +1 -1
- package/coverage/lcov-report/src/menu/utils.ts.html +1 -1
- package/coverage/lcov-report/src/movement/constants.ts.html +1 -1
- package/coverage/lcov-report/src/movement/findMatchIndex.ts.html +1 -1
- package/coverage/lcov-report/src/movement/index.html +1 -1
- package/coverage/lcov-report/src/movement/useKeyboardMovementProvider.ts.html +3 -3
- package/coverage/lcov-report/src/movement/utils.ts.html +1 -1
- package/coverage/lcov-report/src/overlay/Overlay.tsx.html +1 -1
- package/coverage/lcov-report/src/overlay/index.html +1 -1
- package/coverage/lcov-report/src/overlay/overlayStyles.ts.html +1 -1
- package/coverage/lcov-report/src/portal/Portal.tsx.html +7 -7
- package/coverage/lcov-report/src/portal/PortalContainerProvider.tsx.html +59 -35
- package/coverage/lcov-report/src/portal/index.html +7 -7
- package/coverage/lcov-report/src/positioning/constants.ts.html +1 -1
- package/coverage/lcov-report/src/positioning/createHorizontalPosition.ts.html +47 -47
- package/coverage/lcov-report/src/positioning/createVerticalPosition.ts.html +55 -55
- package/coverage/lcov-report/src/positioning/getFixedPosition.ts.html +89 -89
- package/coverage/lcov-report/src/positioning/index.html +1 -1
- package/coverage/lcov-report/src/positioning/useFixedPositioning.ts.html +193 -193
- package/coverage/lcov-report/src/positioning/utils.ts.html +59 -59
- package/coverage/lcov-report/src/progress/CircularProgress.tsx.html +3 -3
- package/coverage/lcov-report/src/progress/LinearProgress.tsx.html +3 -3
- package/coverage/lcov-report/src/progress/getProgressA11y.ts.html +1 -1
- package/coverage/lcov-report/src/progress/index.html +20 -5
- package/coverage/lcov-report/src/responsive-item/ResponsiveItemContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/responsive-item/ResponsiveItemOverlay.tsx.html +1 -1
- package/coverage/lcov-report/src/responsive-item/index.html +1 -1
- package/coverage/lcov-report/src/responsive-item/styles.ts.html +1 -1
- package/coverage/lcov-report/src/scroll/ScrollLock.tsx.html +1 -1
- package/coverage/lcov-report/src/scroll/getScrollbarWidth.ts.html +1 -1
- package/coverage/lcov-report/src/scroll/index.html +1 -1
- package/coverage/lcov-report/src/scroll/useScrollLock.ts.html +1 -1
- package/coverage/lcov-report/src/segmented-button/SegmentedButton.tsx.html +1 -1
- package/coverage/lcov-report/src/segmented-button/SegmentedButtonContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/segmented-button/index.html +1 -1
- package/coverage/lcov-report/src/segmented-button/segmentedButtonContainerStyles.ts.html +1 -1
- package/coverage/lcov-report/src/segmented-button/segmentedButtonStyles.ts.html +1 -1
- package/coverage/lcov-report/src/sheet/Sheet.tsx.html +1 -1
- package/coverage/lcov-report/src/sheet/index.html +5 -5
- package/coverage/lcov-report/src/sheet/styles.ts.html +45 -48
- package/coverage/lcov-report/src/snackbar/DefaultToastRenderer.tsx.html +80 -80
- package/coverage/lcov-report/src/snackbar/Snackbar.tsx.html +21 -45
- package/coverage/lcov-report/src/snackbar/Toast.tsx.html +108 -93
- package/coverage/lcov-report/src/snackbar/ToastActionButton.tsx.html +1 -1
- package/coverage/lcov-report/src/snackbar/ToastCloseButton.tsx.html +1 -1
- package/coverage/lcov-report/src/snackbar/ToastContent.tsx.html +48 -48
- package/coverage/lcov-report/src/snackbar/ToastManager.tsx.html +278 -275
- package/coverage/lcov-report/src/snackbar/ToastManagerProvider.tsx.html +6 -6
- package/coverage/lcov-report/src/snackbar/index.html +19 -19
- package/coverage/lcov-report/src/snackbar/snackbarStyles.ts.html +15 -15
- package/coverage/lcov-report/src/snackbar/toastContentStyles.ts.html +14 -14
- package/coverage/lcov-report/src/snackbar/toastStyles.ts.html +27 -27
- package/coverage/lcov-report/src/snackbar/useCurrentToastActions.ts.html +1 -1
- package/coverage/lcov-report/src/suspense/CircularProgressSuspense.tsx.html +1 -1
- package/coverage/lcov-report/src/suspense/NullSuspense.tsx.html +1 -1
- package/coverage/lcov-report/src/suspense/index.html +20 -5
- package/coverage/lcov-report/src/table/Table.tsx.html +45 -114
- package/coverage/lcov-report/src/table/TableBody.tsx.html +43 -43
- package/coverage/lcov-report/src/table/TableCell.tsx.html +109 -298
- package/coverage/lcov-report/src/table/TableCellContent.tsx.html +81 -27
- package/coverage/lcov-report/src/table/TableCheckbox.tsx.html +16 -10
- package/coverage/lcov-report/src/table/TableConfigurationProvider.tsx.html +20 -20
- package/coverage/lcov-report/src/table/TableContainer.tsx.html +7 -28
- package/coverage/lcov-report/src/table/TableContainerProvider.tsx.html +1 -1
- package/coverage/lcov-report/src/table/TableFooter.tsx.html +64 -43
- package/coverage/lcov-report/src/table/TableHeader.tsx.html +41 -92
- package/coverage/lcov-report/src/table/TableRadio.tsx.html +676 -0
- package/coverage/lcov-report/src/table/TableRow.tsx.html +38 -119
- package/coverage/lcov-report/src/table/index.html +151 -46
- package/coverage/lcov-report/src/table/tableCellStyles.ts.html +334 -0
- package/coverage/lcov-report/src/table/tableContainerStyles.ts.html +142 -0
- package/coverage/lcov-report/src/table/tableFooterStyles.ts.html +166 -0
- package/coverage/lcov-report/src/table/tableHeaderStyles.ts.html +172 -0
- package/coverage/lcov-report/src/table/tableRowStyles.ts.html +169 -0
- package/coverage/lcov-report/src/table/tableStyles.ts.html +157 -0
- package/coverage/lcov-report/src/tabs/Tab.tsx.html +263 -143
- package/coverage/lcov-report/src/tabs/TabList.tsx.html +1 -1
- package/coverage/lcov-report/src/tabs/TabListScrollButton.tsx.html +1 -1
- package/coverage/lcov-report/src/tabs/index.html +25 -25
- package/coverage/lcov-report/src/tabs/tabIndicatorStyles.ts.html +37 -7
- package/coverage/lcov-report/src/tabs/tabListScrollButtonStyles.ts.html +1 -1
- package/coverage/lcov-report/src/tabs/tabListStyles.ts.html +2 -2
- package/coverage/lcov-report/src/tabs/tabStyles.ts.html +64 -28
- package/coverage/lcov-report/src/tabs/useTabList.ts.html +44 -38
- package/coverage/lcov-report/src/tabs/useTabs.ts.html +1 -1
- package/coverage/lcov-report/src/tabs/utils.ts.html +3 -3
- package/coverage/lcov-report/src/test-utils/IntersectionObserver.ts.html +1 -1
- package/coverage/lcov-report/src/test-utils/ResizeObserver.ts.html +205 -205
- package/coverage/lcov-report/src/test-utils/data-testid.ts.html +1 -1
- package/coverage/lcov-report/src/test-utils/drag.ts.html +1 -1
- package/coverage/lcov-report/src/test-utils/index.html +4 -4
- package/coverage/lcov-report/src/test-utils/jest-setup.ts.html +9 -9
- package/coverage/lcov-report/src/test-utils/matchMedia.ts.html +4 -4
- package/coverage/lcov-report/src/test-utils/polyfills/IntersectionObserver.ts.html +4 -4
- package/coverage/lcov-report/src/test-utils/polyfills/ResizeObserver.ts.html +3 -3
- package/coverage/lcov-report/src/test-utils/polyfills/index.html +1 -1
- package/coverage/lcov-report/src/test-utils/polyfills/matchMedia.ts.html +6 -6
- package/coverage/lcov-report/src/test-utils/polyfills/offsetParent.ts.html +14 -14
- package/coverage/lcov-report/src/test-utils/polyfills/scrollIntoView.ts.html +5 -5
- package/coverage/lcov-report/src/test-utils/render.tsx.html +21 -21
- package/coverage/lcov-report/src/test-utils/timers.ts.html +1 -1
- package/coverage/lcov-report/src/theme/LocalStorageColorSchemeProvider.tsx.html +1 -1
- package/coverage/lcov-report/src/theme/ThemeProvider.tsx.html +1 -1
- package/coverage/lcov-report/src/theme/colors.ts.html +1 -1
- package/coverage/lcov-report/src/theme/cssVars.ts.html +1 -1
- package/coverage/lcov-report/src/theme/index.html +1 -1
- package/coverage/lcov-report/src/theme/useCSSVariables.ts.html +25 -25
- package/coverage/lcov-report/src/theme/useColorScheme.ts.html +1 -1
- package/coverage/lcov-report/src/theme/useColorSchemeMetaTag.ts.html +1 -1
- package/coverage/lcov-report/src/theme/useColorSchemeProvider.ts.html +1 -1
- package/coverage/lcov-report/src/theme/usePrefersColorScheme.ts.html +1 -1
- package/coverage/lcov-report/src/theme/utils.ts.html +1 -1
- package/coverage/lcov-report/src/tooltip/Tooltip.tsx.html +62 -62
- package/coverage/lcov-report/src/tooltip/TooltipHoverModeProvider.tsx.html +3 -3
- package/coverage/lcov-report/src/tooltip/constants.ts.html +1 -1
- package/coverage/lcov-report/src/tooltip/index.html +9 -9
- package/coverage/lcov-report/src/tooltip/tooltipStyles.ts.html +12 -12
- package/coverage/lcov-report/src/tooltip/useTooltip.ts.html +243 -222
- package/coverage/lcov-report/src/tooltip/useTooltipPosition.ts.html +27 -27
- package/coverage/lcov-report/src/tooltip/utils.ts.html +22 -22
- package/coverage/lcov-report/src/transition/CSSTransition.tsx.html +1 -1
- package/coverage/lcov-report/src/transition/Collapse.tsx.html +1 -1
- package/coverage/lcov-report/src/transition/CrossFade.tsx.html +1 -1
- package/coverage/lcov-report/src/transition/ScaleTransition.tsx.html +1 -1
- package/coverage/lcov-report/src/transition/SkeletonPlaceholder.tsx.html +374 -338
- package/coverage/lcov-report/src/transition/Slide.tsx.html +1 -1
- package/coverage/lcov-report/src/transition/SlideContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/transition/collapseStyles.ts.html +13 -13
- package/coverage/lcov-report/src/transition/config.ts.html +5 -5
- package/coverage/lcov-report/src/transition/index.html +47 -32
- package/coverage/lcov-report/src/transition/maxWidthTransition.ts.html +1 -1
- package/coverage/lcov-report/src/transition/skeletonPlaceholderUtils.ts.html +400 -0
- package/coverage/lcov-report/src/transition/useCSSTransition.ts.html +68 -68
- package/coverage/lcov-report/src/transition/useCarousel.ts.html +1 -1
- package/coverage/lcov-report/src/transition/useCollapseTransition.ts.html +87 -87
- package/coverage/lcov-report/src/transition/useCrossFadeTransition.ts.html +1 -1
- package/coverage/lcov-report/src/transition/useMaxWidthTransition.ts.html +1 -1
- package/coverage/lcov-report/src/transition/useScaleTransition.ts.html +18 -18
- package/coverage/lcov-report/src/transition/useSkeletonPlaceholder.ts.html +607 -562
- package/coverage/lcov-report/src/transition/useSlideTransition.ts.html +1 -1
- package/coverage/lcov-report/src/transition/useTransition.ts.html +237 -237
- package/coverage/lcov-report/src/transition/utils.ts.html +43 -43
- package/coverage/lcov-report/src/tree/DefaultTreeItemRenderer.tsx.html +18 -6
- package/coverage/lcov-report/src/tree/Tree.tsx.html +20 -8
- package/coverage/lcov-report/src/tree/TreeGroup.tsx.html +45 -45
- package/coverage/lcov-report/src/tree/TreeItem.tsx.html +7 -10
- package/coverage/lcov-report/src/tree/TreeItemExpander.tsx.html +1 -1
- package/coverage/lcov-report/src/tree/TreeProvider.tsx.html +8 -8
- package/coverage/lcov-report/src/tree/index.html +11 -11
- package/coverage/lcov-report/src/tree/styles.ts.html +8 -35
- package/coverage/lcov-report/src/tree/useTree.ts.html +1 -1
- package/coverage/lcov-report/src/tree/useTreeExpansion.ts.html +1 -1
- package/coverage/lcov-report/src/tree/useTreeItems.ts.html +1 -1
- package/coverage/lcov-report/src/tree/useTreeMovement.ts.html +1 -1
- package/coverage/lcov-report/src/tree/useTreeSelection.ts.html +1 -1
- package/coverage/lcov-report/src/tree/utils.ts.html +1 -1
- package/coverage/lcov-report/src/typography/SrOnly.tsx.html +1 -1
- package/coverage/lcov-report/src/typography/TextContainer.tsx.html +1 -1
- package/coverage/lcov-report/src/typography/Typography.tsx.html +1 -1
- package/coverage/lcov-report/src/typography/WritingDirectionProvider.tsx.html +1 -1
- package/coverage/lcov-report/src/typography/index.html +1 -1
- package/coverage/lcov-report/src/useAsyncAction.ts.html +1 -1
- package/coverage/lcov-report/src/useDebouncedFunction.ts.html +1 -1
- package/coverage/lcov-report/src/useDropzone.ts.html +1 -1
- package/coverage/lcov-report/src/useElementSize.ts.html +334 -0
- package/coverage/lcov-report/src/useEnsuredId.ts.html +8 -8
- package/coverage/lcov-report/src/useEnsuredRef.ts.html +14 -14
- package/coverage/lcov-report/src/useEnsuredState.ts.html +1 -1
- package/coverage/lcov-report/src/useHtmlClassName.ts.html +1 -1
- package/coverage/lcov-report/src/useIntersectionObserver.ts.html +1 -1
- package/coverage/lcov-report/src/useIsomorphicLayoutEffect.ts.html +1 -1
- package/coverage/lcov-report/src/useLocalStorage.ts.html +1 -1
- package/coverage/lcov-report/src/useOrientation.ts.html +32 -32
- package/coverage/lcov-report/src/usePageInactive.ts.html +30 -30
- package/coverage/lcov-report/src/useResizeListener.ts.html +38 -32
- package/coverage/lcov-report/src/useResizeObserver.ts.html +68 -179
- package/coverage/lcov-report/src/useThrottledFunction.ts.html +1 -1
- package/coverage/lcov-report/src/useToggle.ts.html +1 -1
- package/coverage/lcov-report/src/useUnmounted.ts.html +1 -1
- package/coverage/lcov-report/src/useWindowSize.ts.html +124 -94
- package/coverage/lcov-report/src/utils/RenderRecursively.tsx.html +1 -1
- package/coverage/lcov-report/src/utils/alphaNumericSort.ts.html +1 -1
- package/coverage/lcov-report/src/utils/applyRef.ts.html +11 -11
- package/coverage/lcov-report/src/utils/bem.ts.html +45 -45
- package/coverage/lcov-report/src/utils/filters.ts.html +1 -1
- package/coverage/lcov-report/src/utils/getClientPosition.ts.html +1 -1
- package/coverage/lcov-report/src/utils/getMiddleOfRange.ts.html +163 -0
- package/coverage/lcov-report/src/utils/getPercentage.ts.html +9 -9
- package/coverage/lcov-report/src/utils/getRangeDefaultValue.ts.html +66 -87
- package/coverage/lcov-report/src/utils/getRangeSteps.ts.html +7 -7
- package/coverage/lcov-report/src/utils/identity.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +46 -31
- package/coverage/lcov-report/src/utils/isElementVisible.ts.html +1 -1
- package/coverage/lcov-report/src/utils/isValidNumber.ts.html +118 -0
- package/coverage/lcov-report/src/utils/loop.ts.html +1 -1
- package/coverage/lcov-report/src/utils/nearest.ts.html +21 -21
- package/coverage/lcov-report/src/utils/parseCssLengthUnit.ts.html +18 -18
- package/coverage/lcov-report/src/utils/randomInt.ts.html +52 -52
- package/coverage/lcov-report/src/utils/wait.ts.html +1 -1
- package/coverage/lcov-report/src/utils/withinRange.ts.html +1 -1
- package/coverage/lcov-report/src/window-splitter/WindowSplitter.tsx.html +1 -1
- package/coverage/lcov-report/src/window-splitter/index.html +14 -14
- package/coverage/lcov-report/src/window-splitter/useWindowSplitter.ts.html +19 -67
- package/coverage/lcov-report/src/window-splitter/useWindowSplitterMaxValue.ts.html +256 -0
- package/coverage/lcov-report/suspense/CircularProgressSuspense.tsx.html +283 -0
- package/coverage/lcov-report/suspense/NullSuspense.tsx.html +202 -0
- package/coverage/lcov-report/suspense/index.html +131 -0
- package/coverage/lcov-report/tabIndicatorStyles.ts.html +43 -13
- package/coverage/lcov-report/tabListStyles.ts.html +35 -26
- package/coverage/lcov-report/tabStyles.ts.html +68 -26
- package/coverage/lcov-report/tabs/Tab.tsx.html +233 -143
- package/coverage/lcov-report/tabs/TabList.tsx.html +85 -85
- package/coverage/lcov-report/tabs/index.html +56 -11
- package/coverage/lcov-report/tabs/tabIndicatorStyles.ts.html +187 -0
- package/coverage/lcov-report/tabs/tabListStyles.ts.html +241 -0
- package/coverage/lcov-report/tabs/tabStyles.ts.html +253 -0
- package/coverage/lcov-report/tabs/useTabList.ts.html +736 -0
- package/coverage/lcov-report/tabs/useTabs.ts.html +1 -1
- package/coverage/lcov-report/tabs/utils.ts.html +1 -1
- package/coverage/lcov-report/test-utils/index.html +21 -21
- package/coverage/lcov-report/test-utils/use.ts.html +187 -0
- package/coverage/lcov-report/tooltip/Tooltip.tsx.html +62 -62
- package/coverage/lcov-report/tooltip/index.html +10 -70
- package/coverage/lcov-report/tooltip/useTooltip.ts.html +243 -222
- package/coverage/lcov-report/transition/SkeletonPlaceholder.tsx.html +595 -0
- package/coverage/lcov-report/transition/config.ts.html +5 -5
- package/coverage/lcov-report/transition/index.html +1 -1
- package/coverage/lcov-report/transition/skeletonPlaceholderUtils.ts.html +400 -0
- package/coverage/lcov-report/transition/useSkeletonPlaceholder.ts.html +952 -0
- package/coverage/lcov-report/tree/TreeItem.tsx.html +7 -10
- package/coverage/lcov-report/tree/index.html +12 -27
- package/coverage/lcov-report/tree/styles.ts.html +538 -0
- package/coverage/lcov-report/typography/Typography.tsx.html +110 -110
- package/coverage/lcov-report/typography/WritingDirectionProvider.tsx.html +75 -75
- package/coverage/lcov-report/typography/index.html +15 -15
- package/coverage/lcov-report/useSkeletonPlaceholder.ts.html +952 -0
- package/coverage/lcov-report/useTabList.ts.html +142 -136
- package/coverage/lcov-report/useWindowSplitter.ts.html +640 -0
- package/coverage/lcov-report/useWindowSplitterMaxValue.ts.html +256 -0
- package/coverage/lcov-report/utils/index.html +16 -31
- package/coverage/lcov-report/utils/isElementVisible.ts.html +14 -14
- package/coverage/lcov-report/utils/randomInt.ts.html +148 -0
- package/coverage/lcov-report/utils/wait.ts.html +1 -1
- package/coverage/lcov-report/window-splitter/index.html +21 -36
- package/coverage/lcov-report/window-splitter/useWindowSplitter.ts.html +406 -328
- package/coverage/lcov.info +474 -0
- package/dist/_box-shadows.scss +12 -2
- package/dist/_core.scss +0 -2
- package/dist/_utils.scss +22 -0
- package/dist/app-bar/AppBar.d.ts +4 -9
- package/dist/app-bar/AppBar.js +29 -7
- package/dist/app-bar/AppBar.js.map +1 -1
- package/dist/app-bar/_app-bar.scss +7 -9
- package/dist/avatar/Avatar.d.ts +1 -1
- package/dist/avatar/Avatar.js.map +1 -1
- package/dist/badge/_badge.scss +12 -7
- package/dist/button/TooltippedButton.d.ts +62 -0
- package/dist/button/TooltippedButton.js +62 -0
- package/dist/button/TooltippedButton.js.map +1 -0
- package/dist/card/Card.js +3 -2
- package/dist/card/Card.js.map +1 -1
- package/dist/card/CardContent.js +1 -1
- package/dist/card/CardContent.js.map +1 -1
- package/dist/card/ClickableCard.d.ts +42 -0
- package/dist/card/ClickableCard.js +73 -0
- package/dist/card/ClickableCard.js.map +1 -0
- package/dist/card/_card.scss +15 -9
- package/dist/card/styles.d.ts +8 -0
- package/dist/card/styles.js +6 -3
- package/dist/card/styles.js.map +1 -1
- package/dist/dialog/_dialog.scss +28 -15
- package/dist/divider/_divider.scss +9 -10
- package/dist/draggable/useDraggable.d.ts +12 -23
- package/dist/draggable/useDraggable.js +15 -6
- package/dist/draggable/useDraggable.js.map +1 -1
- package/dist/draggable/utils.d.ts +4 -17
- package/dist/draggable/utils.js +9 -25
- package/dist/draggable/utils.js.map +1 -1
- package/dist/expansion-panel/_expansion-panel.scss +25 -16
- package/dist/expansion-panel/useExpansionPanels.d.ts +5 -3
- package/dist/expansion-panel/useExpansionPanels.js +16 -9
- package/dist/expansion-panel/useExpansionPanels.js.map +1 -1
- package/dist/form/MenuItemInputToggle.d.ts +1 -1
- package/dist/form/MenuItemInputToggle.js.map +1 -1
- package/dist/form/Select.js +6 -1
- package/dist/form/Select.js.map +1 -1
- package/dist/form/_form.scss +40 -22
- package/dist/icon/IconRotator.js +2 -3
- package/dist/icon/IconRotator.js.map +1 -1
- package/dist/icon/_icon.scss +7 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/interaction/_interaction.scss +12 -9
- package/dist/layout/useLayoutAppBarHeight.js +5 -9
- package/dist/layout/useLayoutAppBarHeight.js.map +1 -1
- package/dist/link/_link.scss +26 -12
- package/dist/list/ListItem.d.ts +8 -3
- package/dist/list/ListItem.js +4 -3
- package/dist/list/ListItem.js.map +1 -1
- package/dist/list/ListItemAddon.js +2 -1
- package/dist/list/ListItemAddon.js.map +1 -1
- package/dist/list/ListItemChildren.js +3 -2
- package/dist/list/ListItemChildren.js.map +1 -1
- package/dist/list/ListItemLink.js +3 -3
- package/dist/list/ListItemLink.js.map +1 -1
- package/dist/list/_list.scss +29 -18
- package/dist/list/listItemStyles.d.ts +9 -1
- package/dist/list/listItemStyles.js +5 -5
- package/dist/list/listItemStyles.js.map +1 -1
- package/dist/list/types.d.ts +14 -4
- package/dist/list/types.js.map +1 -1
- package/dist/menu/Menu.d.ts +1 -1
- package/dist/menu/Menu.js.map +1 -1
- package/dist/menu/_menu.scss +3 -14
- package/dist/portal/PortalContainerProvider.d.ts +2 -2
- package/dist/portal/PortalContainerProvider.js +6 -1
- package/dist/portal/PortalContainerProvider.js.map +1 -1
- package/dist/sheet/styles.d.ts +14 -15
- package/dist/sheet/styles.js.map +1 -1
- package/dist/table/TableCheckbox.d.ts +3 -2
- package/dist/table/TableCheckbox.js +4 -2
- package/dist/table/TableCheckbox.js.map +1 -1
- package/dist/table/TableRadio.d.ts +3 -2
- package/dist/table/TableRadio.js +4 -2
- package/dist/table/TableRadio.js.map +1 -1
- package/dist/table/tableCellStyles.d.ts +1 -1
- package/dist/table/tableCellStyles.js.map +1 -1
- package/dist/tabs/Tab.d.ts +24 -3
- package/dist/tabs/Tab.js +15 -8
- package/dist/tabs/Tab.js.map +1 -1
- package/dist/tabs/_tabs.scss +28 -16
- package/dist/tabs/tabIndicatorStyles.d.ts +2 -1
- package/dist/tabs/tabIndicatorStyles.js +6 -3
- package/dist/tabs/tabIndicatorStyles.js.map +1 -1
- package/dist/tabs/tabListStyles.js +2 -1
- package/dist/tabs/tabListStyles.js.map +1 -1
- package/dist/tabs/tabStyles.d.ts +2 -0
- package/dist/tabs/tabStyles.js +6 -3
- package/dist/tabs/tabStyles.js.map +1 -1
- package/dist/tabs/useTabList.d.ts +3 -3
- package/dist/tabs/useTabList.js +9 -6
- package/dist/tabs/useTabList.js.map +1 -1
- package/dist/tooltip/useTooltip.d.ts +14 -14
- package/dist/tooltip/useTooltip.js.map +1 -1
- package/dist/transition/SkeletonPlaceholder.d.ts +2 -2
- package/dist/transition/SkeletonPlaceholder.js +8 -3
- package/dist/transition/SkeletonPlaceholder.js.map +1 -1
- package/dist/transition/_transition.scss +12 -7
- package/dist/transition/skeletonPlaceholderUtils.d.ts +77 -0
- package/dist/transition/skeletonPlaceholderUtils.js +38 -0
- package/dist/transition/skeletonPlaceholderUtils.js.map +1 -0
- package/dist/transition/useSkeletonPlaceholder.d.ts +12 -7
- package/dist/transition/useSkeletonPlaceholder.js +38 -37
- package/dist/transition/useSkeletonPlaceholder.js.map +1 -1
- package/dist/tree/DefaultTreeItemRenderer.d.ts +2 -2
- package/dist/tree/DefaultTreeItemRenderer.js.map +1 -1
- package/dist/tree/Tree.d.ts +8 -4
- package/dist/tree/Tree.js.map +1 -1
- package/dist/tree/TreeItem.js +3 -4
- package/dist/tree/TreeItem.js.map +1 -1
- package/dist/tree/_tree.scss +29 -22
- package/dist/tree/styles.d.ts +0 -6
- package/dist/tree/styles.js +1 -2
- package/dist/tree/styles.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/dist/types.js +1 -2
- package/dist/types.js.map +1 -1
- package/dist/typography/_typography.scss +12 -2
- package/dist/useElementSize.d.ts +40 -0
- package/dist/useElementSize.js +53 -0
- package/dist/useElementSize.js.map +1 -0
- package/dist/useResizeListener.d.ts +1 -1
- package/dist/useResizeListener.js +1 -0
- package/dist/useResizeListener.js.map +1 -1
- package/dist/useResizeObserver.d.ts +4 -43
- package/dist/useResizeObserver.js +3 -42
- package/dist/useResizeObserver.js.map +1 -1
- package/dist/useWindowSize.d.ts +14 -11
- package/dist/useWindowSize.js +12 -7
- package/dist/useWindowSize.js.map +1 -1
- package/dist/utils/getMiddleOfRange.d.ts +13 -0
- package/dist/utils/getMiddleOfRange.js +20 -0
- package/dist/utils/getMiddleOfRange.js.map +1 -0
- package/dist/utils/getRangeDefaultValue.d.ts +3 -5
- package/dist/utils/getRangeDefaultValue.js +3 -13
- package/dist/utils/getRangeDefaultValue.js.map +1 -1
- package/dist/utils/getRangeSteps.d.ts +1 -1
- package/dist/utils/getRangeSteps.js +2 -2
- package/dist/utils/getRangeSteps.js.map +1 -1
- package/dist/utils/nearest.js +1 -1
- package/dist/utils/nearest.js.map +1 -1
- package/dist/window-splitter/_window-splitter.scss +11 -16
- package/dist/window-splitter/useWindowSplitter.d.ts +3 -5
- package/dist/window-splitter/useWindowSplitter.js +3 -11
- package/dist/window-splitter/useWindowSplitter.js.map +1 -1
- package/package.json +18 -18
- package/src/__tests__/useElementSize.tsx +181 -0
- package/src/__tests__/useWindowSize.node.tsx +56 -0
- package/src/__tests__/useWindowSize.tsx +156 -0
- package/src/_box-shadows.scss +12 -2
- package/src/_core.scss +0 -2
- package/src/_utils.scss +22 -0
- package/src/app-bar/AppBar.tsx +59 -19
- package/src/app-bar/__tests__/__snapshots__/AppBar.tsx.snap +21 -21
- package/src/app-bar/_app-bar.scss +7 -9
- package/src/avatar/Avatar.tsx +1 -1
- package/src/badge/_badge.scss +12 -7
- package/src/button/TooltippedButton.tsx +120 -0
- package/src/button/__tests__/TooltippedButton.tsx +60 -0
- package/src/button/__tests__/__snapshots__/TooltippedButton.tsx.snap +26 -0
- package/src/card/Card.tsx +5 -3
- package/src/card/CardContent.tsx +3 -3
- package/src/card/ClickableCard.tsx +105 -0
- package/src/card/__tests__/ClickableCard.tsx +66 -0
- package/src/card/__tests__/__snapshots__/CardHeader.tsx.snap +1 -1
- package/src/card/__tests__/__snapshots__/CardSubtitle.tsx.snap +2 -2
- package/src/card/__tests__/__snapshots__/ClickableCard.tsx.snap +20 -0
- package/src/card/__tests__/__snapshots__/styles.ts.snap +1 -1
- package/src/card/_card.scss +15 -9
- package/src/card/styles.ts +19 -10
- package/src/dialog/_dialog.scss +28 -15
- package/src/divider/_divider.scss +9 -10
- package/src/draggable/useDraggable.ts +26 -25
- package/src/draggable/utils.ts +16 -50
- package/src/expansion-panel/__tests__/ExpansionPanel.tsx +2 -2
- package/src/expansion-panel/_expansion-panel.scss +25 -16
- package/src/expansion-panel/useExpansionPanels.ts +20 -16
- package/src/form/MenuItemInputToggle.tsx +1 -1
- package/src/form/Select.tsx +9 -1
- package/src/form/_form.scss +40 -22
- package/src/icon/IconRotator.tsx +1 -2
- package/src/icon/_icon.scss +7 -2
- package/src/index.ts +5 -0
- package/src/interaction/_interaction.scss +12 -9
- package/src/layout/__tests__/__snapshots__/LayoutAppBar.tsx.snap +4 -4
- package/src/layout/__tests__/__snapshots__/useExpandableLayout.tsx.snap +1 -1
- package/src/layout/__tests__/__snapshots__/useLayoutTree.tsx.snap +18 -18
- package/src/layout/__tests__/__snapshots__/useResizableLayout.tsx.snap +1 -1
- package/src/layout/__tests__/__snapshots__/useTemporaryLayout.tsx.snap +1 -1
- package/src/layout/useLayoutAppBarHeight.ts +5 -9
- package/src/link/_link.scss +26 -12
- package/src/list/ListItem.tsx +19 -12
- package/src/list/ListItemAddon.tsx +5 -3
- package/src/list/ListItemChildren.tsx +4 -2
- package/src/list/ListItemLink.tsx +3 -3
- package/src/list/__tests__/ListItem.tsx +1 -1
- package/src/list/__tests__/__snapshots__/ListItem.tsx.snap +1 -1
- package/src/list/_list.scss +29 -18
- package/src/list/listItemStyles.ts +15 -5
- package/src/list/types.ts +15 -4
- package/src/menu/Menu.tsx +1 -1
- package/src/menu/_menu.scss +3 -14
- package/src/portal/PortalContainerProvider.tsx +10 -2
- package/src/portal/__tests__/PortalContainerProvider.tsx +23 -0
- package/src/sheet/styles.ts +14 -15
- package/src/suspense/__tests__/CircularProgressSuspense.tsx +90 -0
- package/src/suspense/__tests__/NullSuspense.tsx +46 -0
- package/src/suspense/__tests__/__snapshots__/CircularProgressSuspense.tsx.snap +24 -0
- package/src/table/TableCheckbox.tsx +4 -2
- package/src/table/TableRadio.tsx +4 -2
- package/src/table/tableCellStyles.ts +1 -1
- package/src/tabs/Tab.tsx +110 -70
- package/src/tabs/__tests__/Tab.tsx +25 -2
- package/src/tabs/__tests__/TabList.tsx +4 -4
- package/src/tabs/__tests__/__snapshots__/TabList.tsx.snap +2 -2
- package/src/tabs/_tabs.scss +28 -16
- package/src/tabs/tabIndicatorStyles.ts +13 -3
- package/src/tabs/tabListStyles.ts +1 -1
- package/src/tabs/tabStyles.ts +16 -4
- package/src/tabs/useTabList.ts +10 -8
- package/src/tooltip/useTooltip.ts +23 -16
- package/src/transition/SkeletonPlaceholder.tsx +18 -6
- package/src/transition/__tests__/SkeletonPlaceholder.tsx +72 -0
- package/src/transition/__tests__/__snapshots__/SkeletonPlaceholder.tsx.snap +24 -0
- package/src/transition/_transition.scss +12 -7
- package/src/transition/skeletonPlaceholderUtils.ts +105 -0
- package/src/transition/useSkeletonPlaceholder.ts +62 -47
- package/src/tree/DefaultTreeItemRenderer.tsx +6 -2
- package/src/tree/Tree.tsx +8 -4
- package/src/tree/TreeItem.tsx +3 -4
- package/src/tree/__tests__/Tree.tsx +1 -1
- package/src/tree/__tests__/__snapshots__/Tree.tsx.snap +124 -124
- package/src/tree/_tree.scss +29 -22
- package/src/tree/styles.ts +0 -9
- package/src/types.ts +8 -0
- package/src/typography/_typography.scss +12 -2
- package/src/useElementSize.ts +83 -0
- package/src/useResizeListener.ts +3 -1
- package/src/useResizeObserver.ts +7 -44
- package/src/useWindowSize.ts +29 -19
- package/src/utils/__tests__/getMiddleOfRange.ts +12 -0
- package/src/utils/__tests__/getRangeDefaultValue.ts +47 -0
- package/src/utils/getMiddleOfRange.ts +26 -0
- package/src/utils/getRangeDefaultValue.ts +8 -15
- package/src/utils/getRangeSteps.ts +2 -2
- package/src/utils/nearest.ts +1 -1
- package/src/window-splitter/_window-splitter.scss +11 -16
- package/src/window-splitter/useWindowSplitter.ts +12 -28
package/src/link/_link.scss
CHANGED
|
@@ -26,7 +26,7 @@ $skip-to-main-styles: (
|
|
|
26
26
|
z-index: $skip-to-main-z-index,
|
|
27
27
|
) !default;
|
|
28
28
|
$skip-to-main-active-styles: (
|
|
29
|
-
outline: 0.25rem dashed
|
|
29
|
+
outline: 0.25rem dashed currentcolor,
|
|
30
30
|
) !default;
|
|
31
31
|
|
|
32
32
|
$variables: (color, visited-color, hover-color);
|
|
@@ -75,14 +75,6 @@ $variables: (color, visited-color, hover-color);
|
|
|
75
75
|
@mixin styles {
|
|
76
76
|
@if not $disable-everything {
|
|
77
77
|
.rmd-link {
|
|
78
|
-
// can't use the normal @include interaction.surface since links are
|
|
79
|
-
// rendered inline and the `::before`/`::after` pseudo selectors only work
|
|
80
|
-
// nicely with block-like elements
|
|
81
|
-
@include utils.keyboard-only {
|
|
82
|
-
&:focus {
|
|
83
|
-
@include interaction.focus-styles($disable-background: true);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
78
|
@include interaction.outline($outline-offset: false);
|
|
87
79
|
@include use-var(color);
|
|
88
80
|
|
|
@@ -96,6 +88,21 @@ $variables: (color, visited-color, hover-color);
|
|
|
96
88
|
@include set-var(color, get-var(hover-color));
|
|
97
89
|
}
|
|
98
90
|
|
|
91
|
+
// can't use the normal @include interaction.surface since links are
|
|
92
|
+
// rendered inline and the `::before`/`::after` pseudo selectors only work
|
|
93
|
+
// nicely with block-like elements
|
|
94
|
+
@if utils.$disable-focus-visible {
|
|
95
|
+
@include utils.keyboard-only {
|
|
96
|
+
&:focus {
|
|
97
|
+
@include interaction.focus-styles($disable-background: true);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
} @else {
|
|
101
|
+
&:focus-visible {
|
|
102
|
+
@include interaction.focus-styles($disable-background: true);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
99
106
|
@if not $disable-flex {
|
|
100
107
|
&--flex {
|
|
101
108
|
@include icon.use-var(gap, spacing);
|
|
@@ -120,9 +127,16 @@ $variables: (color, visited-color, hover-color);
|
|
|
120
127
|
|
|
121
128
|
&--skip-styled {
|
|
122
129
|
@include utils.map-to-styles($skip-to-main-styles);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
130
|
+
|
|
131
|
+
@if utils.$disable-focus-visible {
|
|
132
|
+
@include utils.keyboard-only {
|
|
133
|
+
&:focus,
|
|
134
|
+
&:active {
|
|
135
|
+
@include utils.map-to-styles($skip-to-main-active-styles);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
} @else {
|
|
139
|
+
&:focus-visible {
|
|
126
140
|
@include utils.map-to-styles($skip-to-main-active-styles);
|
|
127
141
|
}
|
|
128
142
|
}
|
package/src/list/ListItem.tsx
CHANGED
|
@@ -16,13 +16,18 @@ declare module "react" {
|
|
|
16
16
|
"--rmd-list-item-medium-height"?: string | number;
|
|
17
17
|
"--rmd-list-item-large-height"?: string | number;
|
|
18
18
|
"--rmd-list-item-extra-large-height"?: string | number;
|
|
19
|
-
"--rmd-list-item-
|
|
19
|
+
"--rmd-list-item-multiline-clamp"?: string | number;
|
|
20
|
+
"--rmd-list-item-multiline-height"?: string | number;
|
|
20
21
|
"--rmd-list-item-media-size"?: string | number;
|
|
21
22
|
"--rmd-list-item-media-spacing"?: string | number;
|
|
22
|
-
"--rmd-list-item-text-
|
|
23
|
+
"--rmd-list-item-text-multiline-height"?: string | number;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
/**
|
|
28
|
+
* @remarks \@since 6.0.0 Renamed `threeLines` to `multiline` since it can
|
|
29
|
+
* support more than three lines of text.
|
|
30
|
+
*/
|
|
26
31
|
export interface ListItemProps
|
|
27
32
|
extends HTMLAttributes<HTMLLIElement>,
|
|
28
33
|
ListItemChildrenProps {
|
|
@@ -45,7 +50,7 @@ export interface ListItemProps
|
|
|
45
50
|
/**
|
|
46
51
|
* @defaultValue `false`
|
|
47
52
|
*/
|
|
48
|
-
|
|
53
|
+
multiline?: boolean;
|
|
49
54
|
|
|
50
55
|
/**
|
|
51
56
|
* @defaultValue `false`
|
|
@@ -148,18 +153,19 @@ export const ListItem = forwardRef<HTMLLIElement, ListItemProps>(
|
|
|
148
153
|
disableTextChildren = false,
|
|
149
154
|
height: propHeight = "auto",
|
|
150
155
|
leftAddon,
|
|
151
|
-
leftAddonType
|
|
152
|
-
leftAddonPosition
|
|
156
|
+
leftAddonType,
|
|
157
|
+
leftAddonPosition,
|
|
153
158
|
leftAddonClassName,
|
|
154
159
|
leftAddonForceWrap,
|
|
155
160
|
rightAddon,
|
|
156
|
-
rightAddonType
|
|
157
|
-
rightAddonPosition
|
|
161
|
+
rightAddonType,
|
|
162
|
+
rightAddonPosition,
|
|
158
163
|
rightAddonClassName,
|
|
159
164
|
rightAddonForceWrap,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
165
|
+
disableLeftAddonSpacing,
|
|
166
|
+
disableLeftAddonCenteredMedia,
|
|
167
|
+
disableRightAddonCenteredMedia,
|
|
168
|
+
multiline = false,
|
|
163
169
|
disabled = false,
|
|
164
170
|
disabledOpacity = false,
|
|
165
171
|
role = "button",
|
|
@@ -226,13 +232,13 @@ export const ListItem = forwardRef<HTMLLIElement, ListItemProps>(
|
|
|
226
232
|
height,
|
|
227
233
|
disabled,
|
|
228
234
|
disabledOpacity,
|
|
229
|
-
|
|
235
|
+
multiline,
|
|
230
236
|
clickable: !presentational,
|
|
231
237
|
pressedClassName,
|
|
232
238
|
})}
|
|
233
239
|
>
|
|
234
240
|
<ListItemChildren
|
|
235
|
-
|
|
241
|
+
multiline={multiline}
|
|
236
242
|
textClassName={textClassName}
|
|
237
243
|
secondaryTextClassName={secondaryTextClassName}
|
|
238
244
|
disableTextChildren={disableTextChildren}
|
|
@@ -250,6 +256,7 @@ export const ListItem = forwardRef<HTMLLIElement, ListItemProps>(
|
|
|
250
256
|
rightAddonPosition={rightAddonPosition}
|
|
251
257
|
rightAddonClassName={rightAddonClassName}
|
|
252
258
|
rightAddonForceWrap={rightAddonForceWrap}
|
|
259
|
+
disableLeftAddonSpacing={disableLeftAddonSpacing}
|
|
253
260
|
disableLeftAddonCenteredMedia={disableLeftAddonCenteredMedia}
|
|
254
261
|
disableRightAddonCenteredMedia={disableRightAddonCenteredMedia}
|
|
255
262
|
>
|
|
@@ -35,11 +35,12 @@ export function ListItemAddon(props: ListItemAddonProps): ReactElement {
|
|
|
35
35
|
className,
|
|
36
36
|
children,
|
|
37
37
|
addon,
|
|
38
|
-
addonAfter
|
|
38
|
+
addonAfter,
|
|
39
39
|
type = "icon",
|
|
40
|
-
position
|
|
40
|
+
position,
|
|
41
41
|
forceAddonWrap,
|
|
42
|
-
disableCenteredMedia
|
|
42
|
+
disableCenteredMedia,
|
|
43
|
+
disableBeforeSpacing,
|
|
43
44
|
...remaining
|
|
44
45
|
} = props;
|
|
45
46
|
|
|
@@ -55,6 +56,7 @@ export function ListItemAddon(props: ListItemAddonProps): ReactElement {
|
|
|
55
56
|
position,
|
|
56
57
|
className,
|
|
57
58
|
addonAfter,
|
|
59
|
+
disableBeforeSpacing,
|
|
58
60
|
disableCenteredMedia,
|
|
59
61
|
})}
|
|
60
62
|
iconAfter={addonAfter}
|
|
@@ -41,7 +41,7 @@ import { type ListItemChildrenProps } from "./types.js";
|
|
|
41
41
|
*/
|
|
42
42
|
export function ListItemChildren(props: ListItemChildrenProps): ReactElement {
|
|
43
43
|
const {
|
|
44
|
-
|
|
44
|
+
multiline,
|
|
45
45
|
textProps,
|
|
46
46
|
textClassName,
|
|
47
47
|
secondaryTextClassName,
|
|
@@ -54,6 +54,7 @@ export function ListItemChildren(props: ListItemChildrenProps): ReactElement {
|
|
|
54
54
|
leftAddonPosition = "middle",
|
|
55
55
|
leftAddonClassName,
|
|
56
56
|
leftAddonForceWrap,
|
|
57
|
+
disableLeftAddonSpacing,
|
|
57
58
|
disableLeftAddonCenteredMedia,
|
|
58
59
|
rightAddon,
|
|
59
60
|
rightAddonType = "icon",
|
|
@@ -75,7 +76,7 @@ export function ListItemChildren(props: ListItemChildrenProps): ReactElement {
|
|
|
75
76
|
className={textClassName}
|
|
76
77
|
secondaryText={secondaryText}
|
|
77
78
|
secondaryTextProps={secondaryTextProps}
|
|
78
|
-
secondaryTextClamped={
|
|
79
|
+
secondaryTextClamped={multiline}
|
|
79
80
|
secondaryTextClassName={secondaryTextClassName}
|
|
80
81
|
>
|
|
81
82
|
{(!disableTextChildren && children) || primaryText}
|
|
@@ -90,6 +91,7 @@ export function ListItemChildren(props: ListItemChildrenProps): ReactElement {
|
|
|
90
91
|
position={leftAddonPosition}
|
|
91
92
|
className={leftAddonClassName}
|
|
92
93
|
forceAddonWrap={leftAddonForceWrap}
|
|
94
|
+
disableBeforeSpacing={disableLeftAddonSpacing}
|
|
93
95
|
disableCenteredMedia={disableLeftAddonCenteredMedia}
|
|
94
96
|
>
|
|
95
97
|
{children}
|
|
@@ -76,7 +76,7 @@ export const ListItemLink = forwardRef<HTMLAnchorElement, ListItemLinkProps>(
|
|
|
76
76
|
rightAddonForceWrap,
|
|
77
77
|
disableLeftAddonCenteredMedia = false,
|
|
78
78
|
disableRightAddonCenteredMedia = false,
|
|
79
|
-
|
|
79
|
+
multiline = false,
|
|
80
80
|
disabled = false,
|
|
81
81
|
disabledOpacity = false,
|
|
82
82
|
onBlur,
|
|
@@ -137,7 +137,7 @@ export const ListItemLink = forwardRef<HTMLAnchorElement, ListItemLinkProps>(
|
|
|
137
137
|
height,
|
|
138
138
|
disabled,
|
|
139
139
|
disabledOpacity,
|
|
140
|
-
|
|
140
|
+
multiline,
|
|
141
141
|
pressedClassName,
|
|
142
142
|
})}
|
|
143
143
|
// TODO: Figure out a better type for the CustomLinkComponent to fix this
|
|
@@ -146,7 +146,7 @@ export const ListItemLink = forwardRef<HTMLAnchorElement, ListItemLinkProps>(
|
|
|
146
146
|
tabIndex={tabIndex}
|
|
147
147
|
>
|
|
148
148
|
<ListItemChildren
|
|
149
|
-
|
|
149
|
+
multiline={multiline}
|
|
150
150
|
textClassName={textClassName}
|
|
151
151
|
secondaryTextClassName={secondaryTextClassName}
|
|
152
152
|
disableTextChildren={disableTextChildren}
|
|
@@ -280,7 +280,7 @@ exports[`ListItem should update the height based on the provided addons and rend
|
|
|
280
280
|
|
|
281
281
|
exports[`ListItem should update the height based on the provided addons and render correctly 9`] = `
|
|
282
282
|
<li
|
|
283
|
-
class="rmd-list-item rmd-list-item--extra-large rmd-list-item--
|
|
283
|
+
class="rmd-list-item rmd-list-item--extra-large rmd-list-item--multiline rmd-interaction-surface"
|
|
284
284
|
role="button"
|
|
285
285
|
tabindex="0"
|
|
286
286
|
>
|
package/src/list/_list.scss
CHANGED
|
@@ -17,14 +17,15 @@ $disable-item-media-large: false !default;
|
|
|
17
17
|
$disable-medium-height: false !default;
|
|
18
18
|
$disable-large-height: false !default;
|
|
19
19
|
$disable-extra-large-height: false !default;
|
|
20
|
-
$disable-
|
|
20
|
+
$disable-multiline-clamp: false !default;
|
|
21
|
+
$disable-multiline-height: true !default;
|
|
21
22
|
$disable-item-link-styles: false !default;
|
|
22
23
|
|
|
23
24
|
$disable-subheader: false !default;
|
|
24
25
|
$disable-subheader-inset: false !default;
|
|
25
26
|
|
|
26
27
|
$item-secondary-text-line-height: 1.42857 !default;
|
|
27
|
-
$item-secondary-text-
|
|
28
|
+
$item-secondary-text-multiline-max-height: 3rem !default;
|
|
28
29
|
|
|
29
30
|
$vertical-padding: 0.5rem !default;
|
|
30
31
|
$dense-vertical-padding: 0.25rem !default;
|
|
@@ -51,8 +52,9 @@ $item-large-height: 4rem !default;
|
|
|
51
52
|
$item-dense-large-height: 3.5rem !default;
|
|
52
53
|
$item-extra-large-height: 4.5rem !default;
|
|
53
54
|
$item-dense-extra-large-height: 4rem !default;
|
|
54
|
-
$item-
|
|
55
|
-
$item-
|
|
55
|
+
$item-multiline-clamp: 2 !default;
|
|
56
|
+
$item-multiline-height: 5.5rem !default;
|
|
57
|
+
$item-dense-multiline-height: 5rem !default;
|
|
56
58
|
|
|
57
59
|
$item-media-spacing: 1rem !default;
|
|
58
60
|
$item-media-size: 3.5rem !default;
|
|
@@ -70,10 +72,11 @@ $variables: (
|
|
|
70
72
|
item-medium-height,
|
|
71
73
|
item-large-height,
|
|
72
74
|
item-extra-large-height,
|
|
73
|
-
item-
|
|
75
|
+
item-multiline-height,
|
|
74
76
|
item-media-size,
|
|
75
77
|
item-media-spacing,
|
|
76
|
-
item-text-
|
|
78
|
+
item-text-multiline-height,
|
|
79
|
+
item-multiline-clamp
|
|
77
80
|
);
|
|
78
81
|
|
|
79
82
|
@function get-var($name, $fallback: null) {
|
|
@@ -111,6 +114,7 @@ $variables: (
|
|
|
111
114
|
@include set-var(vertical-padding, $vertical-padding);
|
|
112
115
|
@include set-var(item-horizontal-padding, $item-horizontal-padding);
|
|
113
116
|
@include set-var(item-vertical-padding, $item-vertical-padding);
|
|
117
|
+
@include set-var(item-keyline, $item-keyline);
|
|
114
118
|
|
|
115
119
|
@include set-var(item-height, $item-height);
|
|
116
120
|
@if not $disable-medium-height {
|
|
@@ -122,11 +126,14 @@ $variables: (
|
|
|
122
126
|
@if not $disable-extra-large-height {
|
|
123
127
|
@include set-var(item-extra-large-height, $item-extra-large-height);
|
|
124
128
|
}
|
|
125
|
-
@if not $disable-
|
|
126
|
-
@include set-var(item-
|
|
129
|
+
@if not $disable-multiline-clamp {
|
|
130
|
+
@include set-var(item-multiline-clamp, $item-multiline-clamp);
|
|
131
|
+
}
|
|
132
|
+
@if not $disable-multiline-height {
|
|
133
|
+
@include set-var(item-multiline-height, $item-multiline-height);
|
|
127
134
|
@include set-var(
|
|
128
|
-
item-text-
|
|
129
|
-
$item-secondary-text-
|
|
135
|
+
item-text-multiline-height,
|
|
136
|
+
$item-secondary-text-multiline-max-height
|
|
130
137
|
);
|
|
131
138
|
}
|
|
132
139
|
|
|
@@ -212,9 +219,9 @@ $variables: (
|
|
|
212
219
|
}
|
|
213
220
|
}
|
|
214
221
|
|
|
215
|
-
@if not $disable-
|
|
216
|
-
&--
|
|
217
|
-
@include set-var(item-height, get-var(item-
|
|
222
|
+
@if not $disable-multiline-height {
|
|
223
|
+
&--multiline {
|
|
224
|
+
@include set-var(item-height, get-var(item-multiline-height));
|
|
218
225
|
}
|
|
219
226
|
}
|
|
220
227
|
|
|
@@ -231,12 +238,16 @@ $variables: (
|
|
|
231
238
|
@include theme.theme-use-var(color, text-secondary-color);
|
|
232
239
|
}
|
|
233
240
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
241
|
+
@if not $disable-multiline-clamp {
|
|
242
|
+
&--clamped {
|
|
243
|
+
@include typography.line-clamp(get-var(item-multiline-clamp));
|
|
244
|
+
@if not $disable-multiline-height {
|
|
245
|
+
@include use-var(max-height, item-text-multiline-height);
|
|
246
|
+
}
|
|
237
247
|
|
|
238
|
-
|
|
239
|
-
|
|
248
|
+
line-height: $item-secondary-text-line-height;
|
|
249
|
+
white-space: normal;
|
|
250
|
+
}
|
|
240
251
|
}
|
|
241
252
|
}
|
|
242
253
|
|
|
@@ -21,7 +21,7 @@ export interface ListItemClassNameOptions {
|
|
|
21
21
|
/**
|
|
22
22
|
* @defaultValue `false`
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
multiline?: boolean;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @defaultValue `false`
|
|
@@ -72,7 +72,7 @@ export function listItem(
|
|
|
72
72
|
link = false,
|
|
73
73
|
height = "auto",
|
|
74
74
|
clickable = true,
|
|
75
|
-
|
|
75
|
+
multiline = false,
|
|
76
76
|
disabled = false,
|
|
77
77
|
disabledOpacity = false,
|
|
78
78
|
pressedClassName,
|
|
@@ -82,7 +82,7 @@ export function listItem(
|
|
|
82
82
|
styles({
|
|
83
83
|
link,
|
|
84
84
|
[height]: height !== "auto",
|
|
85
|
-
|
|
85
|
+
multiline,
|
|
86
86
|
"disabled-color": disabled && !disabledOpacity,
|
|
87
87
|
"disabled-opacity": disabled && disabledOpacity,
|
|
88
88
|
}),
|
|
@@ -162,6 +162,15 @@ export interface ListItemAddonClassNameOptions {
|
|
|
162
162
|
* @remarks \@since 6.0.0
|
|
163
163
|
*/
|
|
164
164
|
disableCenteredMedia?: boolean;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Set this to `true` to disable the additional spacing applied to the addons
|
|
168
|
+
* that appear before the `children` and the normal `--rmd-text-icon-spacing`
|
|
169
|
+
* value is used instead.
|
|
170
|
+
*
|
|
171
|
+
* @defaultValue `false`
|
|
172
|
+
*/
|
|
173
|
+
disableBeforeSpacing?: boolean;
|
|
165
174
|
}
|
|
166
175
|
|
|
167
176
|
/**
|
|
@@ -177,6 +186,7 @@ export function listItemAddon(
|
|
|
177
186
|
className,
|
|
178
187
|
addonAfter = false,
|
|
179
188
|
disableCenteredMedia = false,
|
|
189
|
+
disableBeforeSpacing = false,
|
|
180
190
|
} = options;
|
|
181
191
|
|
|
182
192
|
const isMedia = type === "media" || type === "large-media";
|
|
@@ -185,8 +195,8 @@ export function listItemAddon(
|
|
|
185
195
|
return cnb(
|
|
186
196
|
styles("addon", {
|
|
187
197
|
[position]: position !== "middle",
|
|
188
|
-
before: !addonAfter,
|
|
189
|
-
"avatar-before": !addonAfter && isAvatar,
|
|
198
|
+
before: !disableBeforeSpacing && !addonAfter,
|
|
199
|
+
"avatar-before": !disableBeforeSpacing && !addonAfter && isAvatar,
|
|
190
200
|
media: isMedia,
|
|
191
201
|
"media-large": type === "large-media",
|
|
192
202
|
"media-centered": isMedia && !disableCenteredMedia,
|
package/src/list/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
import { type PropsWithRef } from "../types.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The height to apply to the list item.
|
|
@@ -61,6 +61,15 @@ export interface ListItemChildrenAddonProps {
|
|
|
61
61
|
*/
|
|
62
62
|
leftAddonForceWrap?: boolean;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Set this to `true` to disable the additional spacing applied to the addons
|
|
66
|
+
* that appear before the `children` and the normal `--rmd-text-icon-spacing`
|
|
67
|
+
* value is used instead.
|
|
68
|
+
*
|
|
69
|
+
* @defaultValue `false`
|
|
70
|
+
*/
|
|
71
|
+
disableLeftAddonSpacing?: boolean;
|
|
72
|
+
|
|
64
73
|
/**
|
|
65
74
|
* An optional addon to display to the right of the `primaryText` or
|
|
66
75
|
* `children` and should be used with the `rightAddonType` prop to adjust
|
|
@@ -196,10 +205,12 @@ export interface ListItemChildrenProps extends ListItemChildrenAddonProps {
|
|
|
196
205
|
|
|
197
206
|
/**
|
|
198
207
|
* Set this to `true` to allow the {@link secondaryText} to span multiple
|
|
199
|
-
* lines and use the CSS clamp after two lines of text are visible.
|
|
208
|
+
* lines and use the CSS clamp after two lines of text are visible. The number
|
|
209
|
+
* of lines can be configured by `core.$list-item-multiline-clamp` or
|
|
210
|
+
* `@include core.list-set-var(item-multiline-clamp, $new-value)`.
|
|
200
211
|
*
|
|
201
212
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-line-clamp}
|
|
202
213
|
* @defaultValue `false`
|
|
203
214
|
*/
|
|
204
|
-
|
|
215
|
+
multiline?: boolean;
|
|
205
216
|
}
|
package/src/menu/Menu.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
type CSSProperties,
|
|
8
8
|
type HTMLAttributes,
|
|
9
9
|
} from "react";
|
|
10
|
-
import { type FloatingActionButtonPosition } from "../button/FloatingActionButton.
|
|
10
|
+
import { type FloatingActionButtonPosition } from "../button/FloatingActionButton.js";
|
|
11
11
|
import { useFocusContainer } from "../focus/useFocusContainer.js";
|
|
12
12
|
import { useUserInteractionMode } from "../interaction/UserInteractionModeProvider.js";
|
|
13
13
|
import { type ListElement, type ListProps } from "../list/List.js";
|
package/src/menu/_menu.scss
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
$disable-everything: false !default;
|
|
9
9
|
$disable-menu-item: false !default;
|
|
10
10
|
$disable-menu-item-group: false !default;
|
|
11
|
-
$disable-focus-outline: false !default;
|
|
12
11
|
$disable-elevation-colors: theme.$disable-dark-elevation !default;
|
|
13
12
|
|
|
14
13
|
$elevation: 8 !default;
|
|
@@ -46,19 +45,6 @@ $variables: (background-color, color, min-width, spacing);
|
|
|
46
45
|
outline: none;
|
|
47
46
|
overflow: auto;
|
|
48
47
|
|
|
49
|
-
@if not $disable-focus-outline {
|
|
50
|
-
@include utils.keyboard-only {
|
|
51
|
-
&--outline:focus {
|
|
52
|
-
// Note: Do not use the `interaction-outline` mixin +
|
|
53
|
-
// `interaction.set-var(interaction.$focus-color)` like normal focus
|
|
54
|
-
// elements since it'll make all focusable children update with the
|
|
55
|
-
// outline color as well
|
|
56
|
-
outline: interaction.get-var(focus-color) solid
|
|
57
|
-
interaction.get-var(focus-width);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
48
|
&--elevated {
|
|
63
49
|
@include box-shadows.box-shadow(
|
|
64
50
|
$elevation,
|
|
@@ -82,6 +68,9 @@ $variables: (background-color, color, min-width, spacing);
|
|
|
82
68
|
height: var(--rmd-list-item-height);
|
|
83
69
|
|
|
84
70
|
&--focused {
|
|
71
|
+
// can't use `:focus-visible` here since this is mostly for virtual
|
|
72
|
+
// keyboard movement for comboboxes. the focus is on the button or textbox
|
|
73
|
+
// instead of a parent element
|
|
85
74
|
@include utils.keyboard-only {
|
|
86
75
|
@include interaction.set-var(
|
|
87
76
|
background-color,
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
useState,
|
|
7
7
|
type ReactElement,
|
|
8
8
|
type ReactNode,
|
|
9
|
+
type RefObject,
|
|
9
10
|
} from "react";
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -40,7 +41,7 @@ export interface PortalContainerProviderProps {
|
|
|
40
41
|
* `<div id="rmd-portal-container"></div>` will be added as the last child to
|
|
41
42
|
* the `document.body` and be used as the container element.
|
|
42
43
|
*/
|
|
43
|
-
container?: PortalContainer
|
|
44
|
+
container?: PortalContainer | RefObject<PortalContainer>;
|
|
44
45
|
children: ReactNode;
|
|
45
46
|
}
|
|
46
47
|
|
|
@@ -61,6 +62,11 @@ export function PortalContainerProvider(
|
|
|
61
62
|
const { container, children } = props;
|
|
62
63
|
const [value, setValue] = useState<PortalContainer>(portalContainer);
|
|
63
64
|
useEffect(() => {
|
|
65
|
+
if (container && "current" in container) {
|
|
66
|
+
setValue(container.current);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
64
70
|
if (typeof container !== "undefined") {
|
|
65
71
|
return;
|
|
66
72
|
}
|
|
@@ -82,5 +88,7 @@ export function PortalContainerProvider(
|
|
|
82
88
|
};
|
|
83
89
|
}, [container]);
|
|
84
90
|
|
|
85
|
-
|
|
91
|
+
const containerValue =
|
|
92
|
+
(container && "current" in container) || !container ? value : container;
|
|
93
|
+
return <Provider value={containerValue}>{children}</Provider>;
|
|
86
94
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { describe, expect, it } from "@jest/globals";
|
|
2
2
|
import { render, screen } from "../../test-utils/index.js";
|
|
3
3
|
|
|
4
|
+
import { useRef, type ReactElement } from "react";
|
|
4
5
|
import { Portal } from "../Portal.js";
|
|
5
6
|
import {
|
|
6
7
|
PORTAL_CONTAINER_ID,
|
|
@@ -58,4 +59,26 @@ describe("PortalContainerProvider", () => {
|
|
|
58
59
|
expect(container).toContainElement(div2);
|
|
59
60
|
document.body.removeChild(container);
|
|
60
61
|
});
|
|
62
|
+
|
|
63
|
+
it("should allow for a ref container", () => {
|
|
64
|
+
function Test(): ReactElement {
|
|
65
|
+
const portalContainer = useRef<HTMLDivElement>(null);
|
|
66
|
+
return (
|
|
67
|
+
<PortalContainerProvider container={portalContainer}>
|
|
68
|
+
<div data-testid="container" ref={portalContainer} />
|
|
69
|
+
<Portal>
|
|
70
|
+
<div data-testid="portal">
|
|
71
|
+
This will always be rendered in the portalContainer
|
|
72
|
+
</div>
|
|
73
|
+
</Portal>
|
|
74
|
+
</PortalContainerProvider>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
render(<Test />);
|
|
79
|
+
const container = screen.getByTestId("container");
|
|
80
|
+
const portal = screen.getByTestId("portal");
|
|
81
|
+
expect(document.getElementById(PORTAL_CONTAINER_ID)).toBe(null);
|
|
82
|
+
expect(container).toContainElement(portal);
|
|
83
|
+
});
|
|
61
84
|
});
|
package/src/sheet/styles.ts
CHANGED
|
@@ -12,16 +12,15 @@ export type SheetPosition = "top" | "right" | "bottom" | "left";
|
|
|
12
12
|
* The size to use for sheets that have been positioned left or right. The
|
|
13
13
|
* default supported values are:
|
|
14
14
|
*
|
|
15
|
-
* - none - the size is based on content, but is still limited to the
|
|
16
|
-
* width so that the horizontal scrolling will not occur within the
|
|
17
|
-
* limits added to sizing.
|
|
18
|
-
* - touch - the `
|
|
19
|
-
* touchable area and
|
|
20
|
-
*
|
|
21
|
-
* - static - the width is set to a static `16rem` and generally used for
|
|
15
|
+
* - `"none"` - the size is based on content, but is still limited to the
|
|
16
|
+
* viewport width so that the horizontal scrolling will not occur within the
|
|
17
|
+
* page. No limits added to sizing.
|
|
18
|
+
* - `"touch"` - the `width` is set to be the entire viewport width minus a
|
|
19
|
+
* touchable area and is normally recommended for mobile devices.
|
|
20
|
+
* - `"static"` - the `width` is set to a static `16rem` and generally used for
|
|
22
21
|
* landscape tablets and desktops.
|
|
23
|
-
* - media - automatically switches between "touch" and "static" based on
|
|
24
|
-
* media queries. (this is the default)
|
|
22
|
+
* - `"media"` - automatically switches between "touch" and "static" based on
|
|
23
|
+
* css media queries. (this is the default)
|
|
25
24
|
*/
|
|
26
25
|
export type SheetHorizontalSize = "none" | "media" | "touch" | "static";
|
|
27
26
|
|
|
@@ -29,12 +28,12 @@ export type SheetHorizontalSize = "none" | "media" | "touch" | "static";
|
|
|
29
28
|
* The size to use for sheets that have been positioned top or bottom. The
|
|
30
29
|
* supported sizes are:
|
|
31
30
|
*
|
|
32
|
-
* - none - the size is based on content and is limited to the viewport
|
|
33
|
-
* height
|
|
34
|
-
* - touch - the size is based on content and is limited to the viewport
|
|
35
|
-
* height
|
|
36
|
-
* - recommended - the material design recommended sizing that forces a
|
|
37
|
-
* max-height of 50vh and min-height of 3.5rem
|
|
31
|
+
* - `"none"` - the size is based on content and is limited to the viewport
|
|
32
|
+
* height
|
|
33
|
+
* - `"touch"` - the size is based on content and is limited to the viewport
|
|
34
|
+
* height minus a small touchable area
|
|
35
|
+
* - `"recommended"` - the material design recommended sizing that forces a
|
|
36
|
+
* `max-height` of 50vh and `min-height` of 3.5rem
|
|
38
37
|
*/
|
|
39
38
|
export type SheetVerticalSize = "none" | "touch" | "recommended";
|
|
40
39
|
|