@windmorph/react 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/NOTICE +23 -0
- package/README.md +149 -2
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +112 -0
- package/dist/cli.js.map +1 -0
- package/dist/components/app-bar/AppBarItems.js +23 -0
- package/dist/components/app-bar/AppBarItems.js.map +1 -0
- package/dist/components/app-bar/TopAppBar.d.ts +89 -0
- package/dist/components/app-bar/TopAppBar.js +103 -0
- package/dist/components/app-bar/TopAppBar.js.map +1 -0
- package/dist/components/app-bar/app-bar-styles.d.ts +280 -0
- package/dist/components/app-bar/app-bar-styles.js +142 -0
- package/dist/components/app-bar/app-bar-styles.js.map +1 -0
- package/dist/components/app-bar/app-bar-tokens.d.ts +7 -0
- package/dist/components/app-bar/app-bar-tokens.js +64 -0
- package/dist/components/app-bar/app-bar-tokens.js.map +1 -0
- package/dist/components/app-bar/use-app-bar-scroll.d.ts +6 -0
- package/dist/components/app-bar/use-app-bar-scroll.js +139 -0
- package/dist/components/app-bar/use-app-bar-scroll.js.map +1 -0
- package/dist/components/autocomplete/Autocomplete.d.ts +142 -0
- package/dist/components/autocomplete/Autocomplete.js +284 -0
- package/dist/components/autocomplete/Autocomplete.js.map +1 -0
- package/dist/components/badge/Badge.d.ts +71 -0
- package/dist/components/badge/Badge.js +72 -0
- package/dist/components/badge/Badge.js.map +1 -0
- package/dist/components/badge/badge-styles.d.ts +100 -0
- package/dist/components/badge/badge-styles.js +43 -0
- package/dist/components/badge/badge-styles.js.map +1 -0
- package/dist/components/badge/badge-tokens.d.ts +7 -0
- package/dist/components/badge/badge-tokens.js +40 -0
- package/dist/components/badge/badge-tokens.js.map +1 -0
- package/dist/components/button/Button.d.ts +91 -0
- package/dist/components/button/Button.js +96 -0
- package/dist/components/button/Button.js.map +1 -0
- package/dist/components/button/ButtonContext.d.ts +30 -0
- package/dist/components/button/ButtonContext.js +18 -0
- package/dist/components/button/ButtonContext.js.map +1 -0
- package/dist/components/button/DensityZeroButtons.js +25 -0
- package/dist/components/button/DensityZeroButtons.js.map +1 -0
- package/dist/components/button/button-pending.d.ts +10 -0
- package/dist/components/button/button-pending.js +166 -0
- package/dist/components/button/button-pending.js.map +1 -0
- package/dist/components/button/button-styles.d.ts +216 -0
- package/dist/components/button/button-styles.js +199 -0
- package/dist/components/button/button-styles.js.map +1 -0
- package/dist/components/button/button-tokens.d.ts +10 -0
- package/dist/components/button/button-tokens.js +257 -0
- package/dist/components/button/button-tokens.js.map +1 -0
- package/dist/components/button/connected-shapes.js +152 -0
- package/dist/components/button/connected-shapes.js.map +1 -0
- package/dist/components/card/Card.d.ts +60 -0
- package/dist/components/card/Card.js +69 -0
- package/dist/components/card/Card.js.map +1 -0
- package/dist/components/card/card-styles.d.ts +42 -0
- package/dist/components/card/card-styles.js +64 -0
- package/dist/components/card/card-styles.js.map +1 -0
- package/dist/components/card/card-tokens.d.ts +7 -0
- package/dist/components/card/card-tokens.js +84 -0
- package/dist/components/card/card-tokens.js.map +1 -0
- package/dist/components/carousel/Carousel.d.ts +124 -0
- package/dist/components/carousel/Carousel.js +387 -0
- package/dist/components/carousel/Carousel.js.map +1 -0
- package/dist/components/carousel/carousel-keylines.js +486 -0
- package/dist/components/carousel/carousel-keylines.js.map +1 -0
- package/dist/components/carousel/carousel-press-area.js +35 -0
- package/dist/components/carousel/carousel-press-area.js.map +1 -0
- package/dist/components/carousel/carousel-styles.d.ts +188 -0
- package/dist/components/carousel/carousel-styles.js +116 -0
- package/dist/components/carousel/carousel-styles.js.map +1 -0
- package/dist/components/carousel/carousel-tokens.d.ts +7 -0
- package/dist/components/carousel/carousel-tokens.js +18 -0
- package/dist/components/carousel/carousel-tokens.js.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +78 -0
- package/dist/components/checkbox/Checkbox.js +77 -0
- package/dist/components/checkbox/Checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox-box.js +34 -0
- package/dist/components/checkbox/checkbox-box.js.map +1 -0
- package/dist/components/checkbox/checkbox-styles.d.ts +100 -0
- package/dist/components/checkbox/checkbox-styles.js +54 -0
- package/dist/components/checkbox/checkbox-styles.js.map +1 -0
- package/dist/components/checkbox/checkbox-tokens.d.ts +7 -0
- package/dist/components/checkbox/checkbox-tokens.js +41 -0
- package/dist/components/checkbox/checkbox-tokens.js.map +1 -0
- package/dist/components/chip/Chip.d.ts +171 -0
- package/dist/components/chip/Chip.js +348 -0
- package/dist/components/chip/Chip.js.map +1 -0
- package/dist/components/chip/ChipSet.d.ts +70 -0
- package/dist/components/chip/ChipSet.js +198 -0
- package/dist/components/chip/ChipSet.js.map +1 -0
- package/dist/components/chip/chip-styles.d.ts +263 -0
- package/dist/components/chip/chip-styles.js +360 -0
- package/dist/components/chip/chip-styles.js.map +1 -0
- package/dist/components/chip/chip-tokens.d.ts +13 -0
- package/dist/components/chip/chip-tokens.js +185 -0
- package/dist/components/chip/chip-tokens.js.map +1 -0
- package/dist/components/date-picker/CalendarGrid.js +94 -0
- package/dist/components/date-picker/CalendarGrid.js.map +1 -0
- package/dist/components/date-picker/CompactDateDialog.js +63 -0
- package/dist/components/date-picker/CompactDateDialog.js.map +1 -0
- package/dist/components/date-picker/DateField.d.ts +161 -0
- package/dist/components/date-picker/DateField.js +393 -0
- package/dist/components/date-picker/DateField.js.map +1 -0
- package/dist/components/date-picker/DateInput.d.ts +20 -0
- package/dist/components/date-picker/DateInput.js +99 -0
- package/dist/components/date-picker/DateInput.js.map +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +165 -0
- package/dist/components/date-picker/DatePicker.js +492 -0
- package/dist/components/date-picker/DatePicker.js.map +1 -0
- package/dist/components/date-picker/PickerDialog.d.ts +121 -0
- package/dist/components/date-picker/PickerDialog.js +161 -0
- package/dist/components/date-picker/PickerDialog.js.map +1 -0
- package/dist/components/date-picker/calendar-parts.js +141 -0
- package/dist/components/date-picker/calendar-parts.js.map +1 -0
- package/dist/components/date-picker/date-format.js +72 -0
- package/dist/components/date-picker/date-format.js.map +1 -0
- package/dist/components/date-picker/date-picker-styles.d.ts +247 -0
- package/dist/components/date-picker/date-picker-styles.js +163 -0
- package/dist/components/date-picker/date-picker-styles.js.map +1 -0
- package/dist/components/date-picker/date-picker-tokens.d.ts +7 -0
- package/dist/components/date-picker/date-picker-tokens.js +104 -0
- package/dist/components/date-picker/date-picker-tokens.js.map +1 -0
- package/dist/components/date-picker/picker-dialog-context.js +8 -0
- package/dist/components/date-picker/picker-dialog-context.js.map +1 -0
- package/dist/components/date-picker/picker-dialog-styles.d.ts +95 -0
- package/dist/components/date-picker/picker-dialog-styles.js +57 -0
- package/dist/components/date-picker/picker-dialog-styles.js.map +1 -0
- package/dist/components/date-picker/picker-icons.js +24 -0
- package/dist/components/date-picker/picker-icons.js.map +1 -0
- package/dist/components/date-picker/use-media-query.js +21 -0
- package/dist/components/date-picker/use-media-query.js.map +1 -0
- package/dist/components/date-picker/use-size-transform.js +62 -0
- package/dist/components/date-picker/use-size-transform.js.map +1 -0
- package/dist/components/date-picker/use-view-exit.js +68 -0
- package/dist/components/date-picker/use-view-exit.js.map +1 -0
- package/dist/components/dialog/Dialog.d.ts +267 -0
- package/dist/components/dialog/Dialog.js +521 -0
- package/dist/components/dialog/Dialog.js.map +1 -0
- package/dist/components/dialog/dialog-styles.d.ts +335 -0
- package/dist/components/dialog/dialog-styles.js +377 -0
- package/dist/components/dialog/dialog-styles.js.map +1 -0
- package/dist/components/dialog/dialog-tokens.d.ts +7 -0
- package/dist/components/dialog/dialog-tokens.js +57 -0
- package/dist/components/dialog/dialog-tokens.js.map +1 -0
- package/dist/components/divider/Divider.d.ts +59 -0
- package/dist/components/divider/Divider.js +53 -0
- package/dist/components/divider/Divider.js.map +1 -0
- package/dist/components/divider/divider-styles.d.ts +90 -0
- package/dist/components/divider/divider-styles.js +66 -0
- package/dist/components/divider/divider-styles.js.map +1 -0
- package/dist/components/divider/divider-tokens.d.ts +7 -0
- package/dist/components/divider/divider-tokens.js +16 -0
- package/dist/components/divider/divider-tokens.js.map +1 -0
- package/dist/components/fab/Fab.d.ts +130 -0
- package/dist/components/fab/Fab.js +137 -0
- package/dist/components/fab/Fab.js.map +1 -0
- package/dist/components/fab/FabTooltip.js +36 -0
- package/dist/components/fab/FabTooltip.js.map +1 -0
- package/dist/components/fab/fab-styles.d.ts +286 -0
- package/dist/components/fab/fab-styles.js +131 -0
- package/dist/components/fab/fab-styles.js.map +1 -0
- package/dist/components/fab/fab-tokens.d.ts +12 -0
- package/dist/components/fab/fab-tokens.js +105 -0
- package/dist/components/fab/fab-tokens.js.map +1 -0
- package/dist/components/fab-menu/FabMenu.d.ts +156 -0
- package/dist/components/fab-menu/FabMenu.js +291 -0
- package/dist/components/fab-menu/FabMenu.js.map +1 -0
- package/dist/components/fab-menu/fab-menu-stagger.js +51 -0
- package/dist/components/fab-menu/fab-menu-stagger.js.map +1 -0
- package/dist/components/fab-menu/fab-menu-styles.d.ts +166 -0
- package/dist/components/fab-menu/fab-menu-styles.js +107 -0
- package/dist/components/fab-menu/fab-menu-styles.js.map +1 -0
- package/dist/components/fab-menu/fab-menu-tokens.d.ts +7 -0
- package/dist/components/fab-menu/fab-menu-tokens.js +120 -0
- package/dist/components/fab-menu/fab-menu-tokens.js.map +1 -0
- package/dist/components/icon-button/IconButton.d.ts +125 -0
- package/dist/components/icon-button/IconButton.js +112 -0
- package/dist/components/icon-button/IconButton.js.map +1 -0
- package/dist/components/icon-button/icon-button-styles.d.ts +217 -0
- package/dist/components/icon-button/icon-button-styles.js +244 -0
- package/dist/components/icon-button/icon-button-styles.js.map +1 -0
- package/dist/components/icon-button/icon-button-tokens.d.ts +11 -0
- package/dist/components/icon-button/icon-button-tokens.js +215 -0
- package/dist/components/icon-button/icon-button-tokens.js.map +1 -0
- package/dist/components/list/List.d.ts +265 -0
- package/dist/components/list/List.js +1386 -0
- package/dist/components/list/List.js.map +1 -0
- package/dist/components/list/ListMedia.d.ts +88 -0
- package/dist/components/list/ListMedia.js +132 -0
- package/dist/components/list/ListMedia.js.map +1 -0
- package/dist/components/list/list-styles.d.ts +375 -0
- package/dist/components/list/list-styles.js +220 -0
- package/dist/components/list/list-styles.js.map +1 -0
- package/dist/components/list/list-tokens.d.ts +7 -0
- package/dist/components/list/list-tokens.js +92 -0
- package/dist/components/list/list-tokens.js.map +1 -0
- package/dist/components/loading-indicator/LoadingIndicator.d.ts +65 -0
- package/dist/components/loading-indicator/LoadingIndicator.js +92 -0
- package/dist/components/loading-indicator/LoadingIndicator.js.map +1 -0
- package/dist/components/loading-indicator/lazy-loading-indicator.js +25 -0
- package/dist/components/loading-indicator/lazy-loading-indicator.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator-frames.js +149 -0
- package/dist/components/loading-indicator/loading-indicator-frames.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator-styles.d.ts +36 -0
- package/dist/components/loading-indicator/loading-indicator-styles.js +22 -0
- package/dist/components/loading-indicator/loading-indicator-styles.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator-tokens.d.ts +7 -0
- package/dist/components/loading-indicator/loading-indicator-tokens.js +44 -0
- package/dist/components/loading-indicator/loading-indicator-tokens.js.map +1 -0
- package/dist/components/menu/Menu.d.ts +215 -0
- package/dist/components/menu/Menu.js +715 -0
- package/dist/components/menu/Menu.js.map +1 -0
- package/dist/components/menu/menu-styles.d.ts +354 -0
- package/dist/components/menu/menu-styles.js +219 -0
- package/dist/components/menu/menu-styles.js.map +1 -0
- package/dist/components/menu/menu-tokens.d.ts +7 -0
- package/dist/components/menu/menu-tokens.js +93 -0
- package/dist/components/menu/menu-tokens.js.map +1 -0
- package/dist/components/menu/menu-trigger.d.ts +51 -0
- package/dist/components/menu/menu-trigger.js +100 -0
- package/dist/components/menu/menu-trigger.js.map +1 -0
- package/dist/components/menu/use-reveal-entering.js +42 -0
- package/dist/components/menu/use-reveal-entering.js.map +1 -0
- package/dist/components/navigation/NavItem.d.ts +54 -0
- package/dist/components/navigation/NavItem.js +182 -0
- package/dist/components/navigation/NavItem.js.map +1 -0
- package/dist/components/navigation/NavigationBar.d.ts +64 -0
- package/dist/components/navigation/NavigationBar.js +121 -0
- package/dist/components/navigation/NavigationBar.js.map +1 -0
- package/dist/components/navigation/NavigationRail.d.ts +91 -0
- package/dist/components/navigation/NavigationRail.js +285 -0
- package/dist/components/navigation/NavigationRail.js.map +1 -0
- package/dist/components/navigation/nav-item-styles.d.ts +190 -0
- package/dist/components/navigation/nav-item-styles.js +123 -0
- package/dist/components/navigation/nav-item-styles.js.map +1 -0
- package/dist/components/navigation/navigation-styles.d.ts +239 -0
- package/dist/components/navigation/navigation-styles.js +134 -0
- package/dist/components/navigation/navigation-styles.js.map +1 -0
- package/dist/components/navigation/navigation-tokens.d.ts +9 -0
- package/dist/components/navigation/navigation-tokens.js +114 -0
- package/dist/components/navigation/navigation-tokens.js.map +1 -0
- package/dist/components/navigation/use-hide-on-scroll.js +115 -0
- package/dist/components/navigation/use-hide-on-scroll.js.map +1 -0
- package/dist/components/navigation/use-item-arrow-keys.js +37 -0
- package/dist/components/navigation/use-item-arrow-keys.js.map +1 -0
- package/dist/components/navigation/use-rail-item-morph.js +61 -0
- package/dist/components/navigation/use-rail-item-morph.js.map +1 -0
- package/dist/components/progress/ProgressIndicator.d.ts +95 -0
- package/dist/components/progress/ProgressIndicator.js +426 -0
- package/dist/components/progress/ProgressIndicator.js.map +1 -0
- package/dist/components/progress/progress-geometry.js +285 -0
- package/dist/components/progress/progress-geometry.js.map +1 -0
- package/dist/components/progress/progress-styles.d.ts +81 -0
- package/dist/components/progress/progress-styles.js +43 -0
- package/dist/components/progress/progress-styles.js.map +1 -0
- package/dist/components/progress/progress-tokens.d.ts +7 -0
- package/dist/components/progress/progress-tokens.js +39 -0
- package/dist/components/progress/progress-tokens.js.map +1 -0
- package/dist/components/pull-to-refresh/PullToRefresh.d.ts +94 -0
- package/dist/components/pull-to-refresh/PullToRefresh.js +395 -0
- package/dist/components/pull-to-refresh/PullToRefresh.js.map +1 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-math.js +37 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-math.js.map +1 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-styles.d.ts +53 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-styles.js +14 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-styles.js.map +1 -0
- package/dist/components/radio/RadioGroup.d.ts +121 -0
- package/dist/components/radio/RadioGroup.js +163 -0
- package/dist/components/radio/RadioGroup.js.map +1 -0
- package/dist/components/radio/radio-ring.js +21 -0
- package/dist/components/radio/radio-ring.js.map +1 -0
- package/dist/components/radio/radio-styles.d.ts +155 -0
- package/dist/components/radio/radio-styles.js +60 -0
- package/dist/components/radio/radio-styles.js.map +1 -0
- package/dist/components/radio/radio-tokens.d.ts +7 -0
- package/dist/components/radio/radio-tokens.js +31 -0
- package/dist/components/radio/radio-tokens.js.map +1 -0
- package/dist/components/search/SearchAppBar.d.ts +45 -0
- package/dist/components/search/SearchAppBar.js +61 -0
- package/dist/components/search/SearchAppBar.js.map +1 -0
- package/dist/components/search/SearchBar.d.ts +147 -0
- package/dist/components/search/SearchBar.js +412 -0
- package/dist/components/search/SearchBar.js.map +1 -0
- package/dist/components/search/search-styles.d.ts +243 -0
- package/dist/components/search/search-styles.js +143 -0
- package/dist/components/search/search-styles.js.map +1 -0
- package/dist/components/search/search-tokens.d.ts +9 -0
- package/dist/components/search/search-tokens.js +70 -0
- package/dist/components/search/search-tokens.js.map +1 -0
- package/dist/components/select/Select.d.ts +187 -0
- package/dist/components/select/Select.js +319 -0
- package/dist/components/select/Select.js.map +1 -0
- package/dist/components/select/field-shell.d.ts +29 -0
- package/dist/components/select/field-shell.js +135 -0
- package/dist/components/select/field-shell.js.map +1 -0
- package/dist/components/select/option-list.d.ts +81 -0
- package/dist/components/select/option-list.js +291 -0
- package/dist/components/select/option-list.js.map +1 -0
- package/dist/components/select/search-list.js +135 -0
- package/dist/components/select/search-list.js.map +1 -0
- package/dist/components/select/selection-cap.js +30 -0
- package/dist/components/select/selection-cap.js.map +1 -0
- package/dist/components/sheet/BottomSheet.d.ts +154 -0
- package/dist/components/sheet/BottomSheet.js +442 -0
- package/dist/components/sheet/BottomSheet.js.map +1 -0
- package/dist/components/sheet/SheetTrigger.d.ts +25 -0
- package/dist/components/sheet/SheetTrigger.js +46 -0
- package/dist/components/sheet/SheetTrigger.js.map +1 -0
- package/dist/components/sheet/SideSheet.d.ts +139 -0
- package/dist/components/sheet/SideSheet.js +289 -0
- package/dist/components/sheet/SideSheet.js.map +1 -0
- package/dist/components/sheet/bottom-sheet-gesture.js +30 -0
- package/dist/components/sheet/bottom-sheet-gesture.js.map +1 -0
- package/dist/components/sheet/lazy-bottom-sheet.js +33 -0
- package/dist/components/sheet/lazy-bottom-sheet.js.map +1 -0
- package/dist/components/sheet/sheet-gesture.js +48 -0
- package/dist/components/sheet/sheet-gesture.js.map +1 -0
- package/dist/components/sheet/sheet-icons.js +31 -0
- package/dist/components/sheet/sheet-icons.js.map +1 -0
- package/dist/components/sheet/sheet-settle.js +58 -0
- package/dist/components/sheet/sheet-settle.js.map +1 -0
- package/dist/components/sheet/sheet-styles.d.ts +312 -0
- package/dist/components/sheet/sheet-styles.js +229 -0
- package/dist/components/sheet/sheet-styles.js.map +1 -0
- package/dist/components/sheet/sheet-tokens.d.ts +12 -0
- package/dist/components/sheet/sheet-tokens.js +115 -0
- package/dist/components/sheet/sheet-tokens.js.map +1 -0
- package/dist/components/sheet/side-swipe-gesture.js +22 -0
- package/dist/components/sheet/side-swipe-gesture.js.map +1 -0
- package/dist/components/sheet/use-peek-inert.js +32 -0
- package/dist/components/sheet/use-peek-inert.js.map +1 -0
- package/dist/components/sheet/use-side-swipe.js +174 -0
- package/dist/components/sheet/use-side-swipe.js.map +1 -0
- package/dist/components/slider/Slider.d.ts +129 -0
- package/dist/components/slider/Slider.js +295 -0
- package/dist/components/slider/Slider.js.map +1 -0
- package/dist/components/slider/slider-geometry.js +138 -0
- package/dist/components/slider/slider-geometry.js.map +1 -0
- package/dist/components/slider/slider-styles.d.ts +133 -0
- package/dist/components/slider/slider-styles.js +97 -0
- package/dist/components/slider/slider-styles.js.map +1 -0
- package/dist/components/slider/slider-tokens.d.ts +7 -0
- package/dist/components/slider/slider-tokens.js +66 -0
- package/dist/components/slider/slider-tokens.js.map +1 -0
- package/dist/components/slider/use-touch-track.js +138 -0
- package/dist/components/slider/use-touch-track.js.map +1 -0
- package/dist/components/snackbar/Snackbar.d.ts +96 -0
- package/dist/components/snackbar/Snackbar.js +253 -0
- package/dist/components/snackbar/Snackbar.js.map +1 -0
- package/dist/components/snackbar/snackbar-state.d.ts +58 -0
- package/dist/components/snackbar/snackbar-state.js +73 -0
- package/dist/components/snackbar/snackbar-state.js.map +1 -0
- package/dist/components/snackbar/snackbar-styles.d.ts +109 -0
- package/dist/components/snackbar/snackbar-styles.js +67 -0
- package/dist/components/snackbar/snackbar-styles.js.map +1 -0
- package/dist/components/snackbar/snackbar-tokens.d.ts +7 -0
- package/dist/components/snackbar/snackbar-tokens.js +54 -0
- package/dist/components/snackbar/snackbar-tokens.js.map +1 -0
- package/dist/components/split-button/SplitButton.d.ts +109 -0
- package/dist/components/split-button/SplitButton.js +195 -0
- package/dist/components/split-button/SplitButton.js.map +1 -0
- package/dist/components/split-button/split-button-styles.d.ts +214 -0
- package/dist/components/split-button/split-button-styles.js +164 -0
- package/dist/components/split-button/split-button-styles.js.map +1 -0
- package/dist/components/split-button/split-button-tokens.d.ts +7 -0
- package/dist/components/split-button/split-button-tokens.js +36 -0
- package/dist/components/split-button/split-button-tokens.js.map +1 -0
- package/dist/components/switch/Switch.d.ts +82 -0
- package/dist/components/switch/Switch.js +165 -0
- package/dist/components/switch/Switch.js.map +1 -0
- package/dist/components/switch/switch-styles.d.ts +96 -0
- package/dist/components/switch/switch-styles.js +68 -0
- package/dist/components/switch/switch-styles.js.map +1 -0
- package/dist/components/switch/switch-thumb.js +41 -0
- package/dist/components/switch/switch-thumb.js.map +1 -0
- package/dist/components/switch/switch-tokens.d.ts +7 -0
- package/dist/components/switch/switch-tokens.js +78 -0
- package/dist/components/switch/switch-tokens.js.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +120 -0
- package/dist/components/tabs/Tabs.js +346 -0
- package/dist/components/tabs/Tabs.js.map +1 -0
- package/dist/components/tabs/tabs-styles.d.ts +198 -0
- package/dist/components/tabs/tabs-styles.js +99 -0
- package/dist/components/tabs/tabs-styles.js.map +1 -0
- package/dist/components/tabs/tabs-tokens.d.ts +7 -0
- package/dist/components/tabs/tabs-tokens.js +121 -0
- package/dist/components/tabs/tabs-tokens.js.map +1 -0
- package/dist/components/text-field/TextField.d.ts +175 -0
- package/dist/components/text-field/TextField.js +250 -0
- package/dist/components/text-field/TextField.js.map +1 -0
- package/dist/components/text-field/text-field-styles.d.ts +252 -0
- package/dist/components/text-field/text-field-styles.js +209 -0
- package/dist/components/text-field/text-field-styles.js.map +1 -0
- package/dist/components/text-field/text-field-tokens.d.ts +7 -0
- package/dist/components/text-field/text-field-tokens.js +177 -0
- package/dist/components/text-field/text-field-tokens.js.map +1 -0
- package/dist/components/time-picker/TimePicker.d.ts +142 -0
- package/dist/components/time-picker/TimePicker.js +700 -0
- package/dist/components/time-picker/TimePicker.js.map +1 -0
- package/dist/components/time-picker/time-picker-styles.d.ts +175 -0
- package/dist/components/time-picker/time-picker-styles.js +112 -0
- package/dist/components/time-picker/time-picker-styles.js.map +1 -0
- package/dist/components/time-picker/time-picker-tokens.d.ts +7 -0
- package/dist/components/time-picker/time-picker-tokens.js +86 -0
- package/dist/components/time-picker/time-picker-tokens.js.map +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +209 -0
- package/dist/components/toolbar/Toolbar.js +282 -0
- package/dist/components/toolbar/Toolbar.js.map +1 -0
- package/dist/components/toolbar/toolbar-styles.d.ts +403 -0
- package/dist/components/toolbar/toolbar-styles.js +253 -0
- package/dist/components/toolbar/toolbar-styles.js.map +1 -0
- package/dist/components/toolbar/toolbar-tokens.d.ts +27 -0
- package/dist/components/toolbar/toolbar-tokens.js +117 -0
- package/dist/components/toolbar/toolbar-tokens.js.map +1 -0
- package/dist/components/toolbar/use-toolbar-scroll-expansion.d.ts +56 -0
- package/dist/components/toolbar/use-toolbar-scroll-expansion.js +86 -0
- package/dist/components/toolbar/use-toolbar-scroll-expansion.js.map +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +131 -0
- package/dist/components/tooltip/Tooltip.js +388 -0
- package/dist/components/tooltip/Tooltip.js.map +1 -0
- package/dist/components/tooltip/lazy-tooltip.js +35 -0
- package/dist/components/tooltip/lazy-tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltip-placement.d.ts +16 -0
- package/dist/components/tooltip/tooltip-placement.js +14 -0
- package/dist/components/tooltip/tooltip-placement.js.map +1 -0
- package/dist/components/tooltip/tooltip-styles.d.ts +142 -0
- package/dist/components/tooltip/tooltip-styles.js +81 -0
- package/dist/components/tooltip/tooltip-styles.js.map +1 -0
- package/dist/components/tooltip/tooltip-tokens.d.ts +9 -0
- package/dist/components/tooltip/tooltip-tokens.js +72 -0
- package/dist/components/tooltip/tooltip-tokens.js.map +1 -0
- package/dist/components/tooltip/tooltip-trigger.d.ts +42 -0
- package/dist/components/tooltip/tooltip-trigger.js +115 -0
- package/dist/components/tooltip/tooltip-trigger.js.map +1 -0
- package/dist/composites/button-group/ButtonGroup.d.ts +116 -0
- package/dist/composites/button-group/ButtonGroup.js +270 -0
- package/dist/composites/button-group/ButtonGroup.js.map +1 -0
- package/dist/composites/button-group/button-group-styles.d.ts +73 -0
- package/dist/composites/button-group/button-group-styles.js +87 -0
- package/dist/composites/button-group/button-group-styles.js.map +1 -0
- package/dist/composites/button-group/lazy-overflow-menu.js +43 -0
- package/dist/composites/button-group/lazy-overflow-menu.js.map +1 -0
- package/dist/composites/button-group/overflow-menu-list.js +26 -0
- package/dist/composites/button-group/overflow-menu-list.js.map +1 -0
- package/dist/composites/button-group/use-overflow.js +75 -0
- package/dist/composites/button-group/use-overflow.js.map +1 -0
- package/dist/composites/button-group/use-press-expansion.js +155 -0
- package/dist/composites/button-group/use-press-expansion.js.map +1 -0
- package/dist/index.d.ts +142 -0
- package/dist/index.js +136 -0
- package/dist/motion/get-m3-spring.d.ts +6 -0
- package/dist/motion/get-m3-spring.js +10 -0
- package/dist/motion/get-m3-spring.js.map +1 -0
- package/dist/motion/reduced-motion.js +19 -0
- package/dist/motion/reduced-motion.js.map +1 -0
- package/dist/motion/use-m3-spring.d.ts +13 -0
- package/dist/motion/use-m3-spring.js +22 -0
- package/dist/motion/use-m3-spring.js.map +1 -0
- package/dist/next/NextRouterProvider.d.ts +13 -0
- package/dist/next/NextRouterProvider.js +26 -0
- package/dist/next/NextRouterProvider.js.map +1 -0
- package/dist/next/get-theme-from-cookies.d.ts +32 -0
- package/dist/next/get-theme-from-cookies.js +27 -0
- package/dist/next/get-theme-from-cookies.js.map +1 -0
- package/dist/next/navigation-guard.d.ts +30 -0
- package/dist/next/navigation-guard.js +68 -0
- package/dist/next/navigation-guard.js.map +1 -0
- package/dist/next.d.ts +5 -0
- package/dist/next.js +5 -0
- package/dist/primitives/ButtonBase.d.ts +115 -0
- package/dist/primitives/ButtonBase.js +231 -0
- package/dist/primitives/ButtonBase.js.map +1 -0
- package/dist/primitives/DomDirectionLocale.d.ts +18 -0
- package/dist/primitives/DomDirectionLocale.js +28 -0
- package/dist/primitives/DomDirectionLocale.js.map +1 -0
- package/dist/primitives/Field.d.ts +50 -0
- package/dist/primitives/Field.js +74 -0
- package/dist/primitives/Field.js.map +1 -0
- package/dist/primitives/IconFaces.js +23 -0
- package/dist/primitives/IconFaces.js.map +1 -0
- package/dist/primitives/Overlay.d.ts +39 -0
- package/dist/primitives/Overlay.js +86 -0
- package/dist/primitives/Overlay.js.map +1 -0
- package/dist/primitives/SelectionControl.d.ts +55 -0
- package/dist/primitives/SelectionControl.js +58 -0
- package/dist/primitives/SelectionControl.js.map +1 -0
- package/dist/primitives/Surface.d.ts +123 -0
- package/dist/primitives/Surface.js +68 -0
- package/dist/primitives/Surface.js.map +1 -0
- package/dist/primitives/ToolbarContext.js +12 -0
- package/dist/primitives/ToolbarContext.js.map +1 -0
- package/dist/primitives/TouchTarget.d.ts +14 -0
- package/dist/primitives/TouchTarget.js +20 -0
- package/dist/primitives/TouchTarget.js.map +1 -0
- package/dist/primitives/TriggerContext.d.ts +34 -0
- package/dist/primitives/TriggerContext.js +24 -0
- package/dist/primitives/TriggerContext.js.map +1 -0
- package/dist/primitives/hidden-input-focus.js +27 -0
- package/dist/primitives/hidden-input-focus.js.map +1 -0
- package/dist/primitives/icon-faces-styles.d.ts +9 -0
- package/dist/primitives/icon-faces-styles.js +45 -0
- package/dist/primitives/icon-faces-styles.js.map +1 -0
- package/dist/primitives/locale-with-direction.d.ts +9 -0
- package/dist/primitives/locale-with-direction.js +17 -0
- package/dist/primitives/locale-with-direction.js.map +1 -0
- package/dist/primitives/morph-path.d.ts +25 -0
- package/dist/primitives/morph-path.js +38 -0
- package/dist/primitives/morph-path.js.map +1 -0
- package/dist/primitives/selection-control-styles.d.ts +54 -0
- package/dist/primitives/selection-control-styles.js +44 -0
- package/dist/primitives/selection-control-styles.js.map +1 -0
- package/dist/primitives/use-m3-interaction.d.ts +51 -0
- package/dist/primitives/use-m3-interaction.js +149 -0
- package/dist/primitives/use-m3-interaction.js.map +1 -0
- package/dist/primitives/use-m3-morph.d.ts +18 -0
- package/dist/primitives/use-m3-morph.js +36 -0
- package/dist/primitives/use-m3-morph.js.map +1 -0
- package/dist/primitives/use-presence.d.ts +19 -0
- package/dist/primitives/use-presence.js +37 -0
- package/dist/primitives/use-presence.js.map +1 -0
- package/dist/primitives.d.ts +36 -0
- package/dist/primitives.js +34 -0
- package/dist/shapes/corner-rounding.d.ts +13 -0
- package/dist/shapes/corner-rounding.js +18 -0
- package/dist/shapes/corner-rounding.js.map +1 -0
- package/dist/shapes/cubic.d.ts +52 -0
- package/dist/shapes/cubic.js +189 -0
- package/dist/shapes/cubic.js.map +1 -0
- package/dist/shapes/feature-mapping.js +80 -0
- package/dist/shapes/feature-mapping.js.map +1 -0
- package/dist/shapes/features.d.ts +23 -0
- package/dist/shapes/features.js +82 -0
- package/dist/shapes/features.js.map +1 -0
- package/dist/shapes/float-mapping.js +65 -0
- package/dist/shapes/float-mapping.js.map +1 -0
- package/dist/shapes/generated/material-shape-path-record.d.ts +11 -0
- package/dist/shapes/generated/material-shape-path-record.js +48 -0
- package/dist/shapes/generated/material-shape-path-record.js.map +1 -0
- package/dist/shapes/generated/material-shape-paths.d.ts +78 -0
- package/dist/shapes/generated/material-shape-paths.js +218 -0
- package/dist/shapes/generated/material-shape-paths.js.map +1 -0
- package/dist/shapes/mask.d.ts +14 -0
- package/dist/shapes/mask.js +24 -0
- package/dist/shapes/mask.js.map +1 -0
- package/dist/shapes/material-shapes.d.ts +11 -0
- package/dist/shapes/material-shapes.js +250 -0
- package/dist/shapes/material-shapes.js.map +1 -0
- package/dist/shapes/morph.d.ts +25 -0
- package/dist/shapes/morph.js +97 -0
- package/dist/shapes/morph.js.map +1 -0
- package/dist/shapes/path.d.ts +33 -0
- package/dist/shapes/path.js +47 -0
- package/dist/shapes/path.js.map +1 -0
- package/dist/shapes/point.d.ts +28 -0
- package/dist/shapes/point.js +103 -0
- package/dist/shapes/point.js.map +1 -0
- package/dist/shapes/polygon-measure.js +140 -0
- package/dist/shapes/polygon-measure.js.map +1 -0
- package/dist/shapes/rounded-polygon.d.ts +44 -0
- package/dist/shapes/rounded-polygon.js +278 -0
- package/dist/shapes/rounded-polygon.js.map +1 -0
- package/dist/shapes/shape-path.d.ts +15 -0
- package/dist/shapes/shapes.d.ts +53 -0
- package/dist/shapes/shapes.js +171 -0
- package/dist/shapes/shapes.js.map +1 -0
- package/dist/styles/generated/components.css +710 -0
- package/dist/styles/generated/theme.css +247 -0
- package/dist/styles/generated/themes.css +3361 -0
- package/dist/styles/generated/tokens.css +284 -0
- package/dist/styles/styles.css +15 -0
- package/dist/styles/utilities.css +283 -0
- package/dist/styles.compiled.css +2 -0
- package/dist/theme/ThemeProvider.d.ts +72 -0
- package/dist/theme/ThemeProvider.js +144 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/theme/ThemeScope.d.ts +32 -0
- package/dist/theme/ThemeScope.js +67 -0
- package/dist/theme/ThemeScope.js.map +1 -0
- package/dist/theme/ThemeScript.d.ts +26 -0
- package/dist/theme/ThemeScript.js +44 -0
- package/dist/theme/ThemeScript.js.map +1 -0
- package/dist/theme/context.d.ts +32 -0
- package/dist/theme/context.js +47 -0
- package/dist/theme/context.js.map +1 -0
- package/dist/theme/create-theme.d.ts +60 -0
- package/dist/theme/create-theme.js +47 -0
- package/dist/theme/create-theme.js.map +1 -0
- package/dist/theme/css.js +54 -0
- package/dist/theme/css.js.map +1 -0
- package/dist/theme/parse-palettes.js +40 -0
- package/dist/theme/parse-palettes.js.map +1 -0
- package/dist/theme/scheme.d.ts +6 -0
- package/dist/theme/scheme.js +118 -0
- package/dist/theme/scheme.js.map +1 -0
- package/dist/theme/state.d.ts +38 -0
- package/dist/theme/state.js +93 -0
- package/dist/theme/state.js.map +1 -0
- package/dist/theme/storage.js +21 -0
- package/dist/theme/storage.js.map +1 -0
- package/dist/tokens/breakpoints.d.ts +15 -0
- package/dist/tokens/breakpoints.js +16 -0
- package/dist/tokens/breakpoints.js.map +1 -0
- package/dist/tokens/color.d.ts +104 -0
- package/dist/tokens/color.js +147 -0
- package/dist/tokens/color.js.map +1 -0
- package/dist/tokens/component.d.ts +110 -0
- package/dist/tokens/component.js +67 -0
- package/dist/tokens/component.js.map +1 -0
- package/dist/tokens/density.d.ts +20 -0
- package/dist/tokens/density.js +27 -0
- package/dist/tokens/density.js.map +1 -0
- package/dist/tokens/elevation.d.ts +44 -0
- package/dist/tokens/elevation.js +45 -0
- package/dist/tokens/elevation.js.map +1 -0
- package/dist/tokens/motion.d.ts +79 -0
- package/dist/tokens/motion.js +126 -0
- package/dist/tokens/motion.js.map +1 -0
- package/dist/tokens/shape.d.ts +22 -0
- package/dist/tokens/shape.js +22 -0
- package/dist/tokens/shape.js.map +1 -0
- package/dist/tokens/spring-velocity.d.ts +19 -0
- package/dist/tokens/spring-velocity.js +44 -0
- package/dist/tokens/spring-velocity.js.map +1 -0
- package/dist/tokens/state.d.ts +18 -0
- package/dist/tokens/state.js +19 -0
- package/dist/tokens/state.js.map +1 -0
- package/dist/tokens/typography.d.ts +64 -0
- package/dist/tokens/typography.js +60 -0
- package/dist/tokens/typography.js.map +1 -0
- package/dist/tokens/z-index.d.ts +17 -0
- package/dist/tokens/z-index.js +18 -0
- package/dist/tokens/z-index.js.map +1 -0
- package/dist/utils/announce.js +51 -0
- package/dist/utils/announce.js.map +1 -0
- package/dist/utils/assert-collection-children.js +26 -0
- package/dist/utils/assert-collection-children.js.map +1 -0
- package/dist/utils/closed-by.d.ts +9 -0
- package/dist/utils/closed-by.js +12 -0
- package/dist/utils/closed-by.js.map +1 -0
- package/dist/utils/cn.d.ts +31 -0
- package/dist/utils/cn.js +37 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/composite-keys.js +32 -0
- package/dist/utils/composite-keys.js.map +1 -0
- package/dist/utils/focus-visible.js +14 -0
- package/dist/utils/focus-visible.js.map +1 -0
- package/dist/utils/focus.js +51 -0
- package/dist/utils/focus.js.map +1 -0
- package/dist/utils/focusable-disabled.js +12 -0
- package/dist/utils/focusable-disabled.js.map +1 -0
- package/dist/utils/keep-pressed-in-place.d.ts +60 -0
- package/dist/utils/keep-pressed-in-place.js +127 -0
- package/dist/utils/keep-pressed-in-place.js.map +1 -0
- package/dist/utils/load-on-demand.js +111 -0
- package/dist/utils/load-on-demand.js.map +1 -0
- package/dist/utils/merge-data-tokens.d.ts +9 -0
- package/dist/utils/merge-data-tokens.js +15 -0
- package/dist/utils/merge-data-tokens.js.map +1 -0
- package/dist/utils/natural-size.js +53 -0
- package/dist/utils/natural-size.js.map +1 -0
- package/dist/utils/nearest-reveal.js +28 -0
- package/dist/utils/nearest-reveal.js.map +1 -0
- package/dist/utils/placement.js +14 -0
- package/dist/utils/placement.js.map +1 -0
- package/dist/utils/radio-group-keys.js +74 -0
- package/dist/utils/radio-group-keys.js.map +1 -0
- package/dist/utils/rendered-description.js +17 -0
- package/dist/utils/rendered-description.js.map +1 -0
- package/dist/utils/root-props.d.ts +103 -0
- package/dist/utils/root-props.js +51 -0
- package/dist/utils/root-props.js.map +1 -0
- package/dist/utils/search.d.ts +11 -0
- package/dist/utils/search.js +18 -0
- package/dist/utils/search.js.map +1 -0
- package/dist/utils/shortcut.js +20 -0
- package/dist/utils/shortcut.js.map +1 -0
- package/dist/utils/split-data-attributes.d.ts +12 -0
- package/dist/utils/split-data-attributes.js +20 -0
- package/dist/utils/split-data-attributes.js.map +1 -0
- package/dist/utils/toolbar-keys.js +28 -0
- package/dist/utils/toolbar-keys.js.map +1 -0
- package/dist/utils/tv.d.ts +7 -0
- package/dist/utils/tv.js +9 -0
- package/dist/utils/tv.js.map +1 -0
- package/dist/utils/typeahead.js +64 -0
- package/dist/utils/typeahead.js.map +1 -0
- package/dist/utils/warn-once.js +30 -0
- package/dist/utils/warn-once.js.map +1 -0
- package/dist/vendor/material-color-utilities/blend/blend.js +88 -0
- package/dist/vendor/material-color-utilities/blend/blend.js.map +1 -0
- package/dist/vendor/material-color-utilities/contrast/contrast.js +131 -0
- package/dist/vendor/material-color-utilities/contrast/contrast.js.map +1 -0
- package/dist/vendor/material-color-utilities/dislike/dislike_analyzer.js +58 -0
- package/dist/vendor/material-color-utilities/dislike/dislike_analyzer.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2021.js +620 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2021.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2025.js +786 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2025.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/contrast_curve.js +59 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/contrast_curve.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_color.js +420 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_color.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_scheme.js +701 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_scheme.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/material_dynamic_colors.js +374 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/material_dynamic_colors.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/tone_delta_pair.js +65 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/tone_delta_pair.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/variant.js +38 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/variant.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/cam16.js +309 -0
- package/dist/vendor/material-color-utilities/hct/cam16.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/hct.js +148 -0
- package/dist/vendor/material-color-utilities/hct/hct.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/hct_solver.js +660 -0
- package/dist/vendor/material-color-utilities/hct/hct_solver.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/viewing_conditions.js +117 -0
- package/dist/vendor/material-color-utilities/hct/viewing_conditions.js.map +1 -0
- package/dist/vendor/material-color-utilities/index.js +51 -0
- package/dist/vendor/material-color-utilities/index.js.map +1 -0
- package/dist/vendor/material-color-utilities/palettes/core_palette.js +22 -0
- package/dist/vendor/material-color-utilities/palettes/core_palette.js.map +1 -0
- package/dist/vendor/material-color-utilities/palettes/tonal_palette.js +134 -0
- package/dist/vendor/material-color-utilities/palettes/tonal_palette.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme.js +21 -0
- package/dist/vendor/material-color-utilities/scheme/scheme.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_android.js +21 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_android.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_content.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_content.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_expressive.js +38 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_expressive.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fidelity.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fidelity.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fruit_salad.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fruit_salad.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_monochrome.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_monochrome.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_neutral.js +36 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_neutral.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_rainbow.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_rainbow.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_tonal_spot.js +41 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_tonal_spot.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_vibrant.js +39 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_vibrant.js.map +1 -0
- package/dist/vendor/material-color-utilities/score/score.js +115 -0
- package/dist/vendor/material-color-utilities/score/score.js.map +1 -0
- package/dist/vendor/material-color-utilities/temperature/temperature_cache.js +227 -0
- package/dist/vendor/material-color-utilities/temperature/temperature_cache.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/color_utils.js +246 -0
- package/dist/vendor/material-color-utilities/utils/color_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/image_utils.js +21 -0
- package/dist/vendor/material-color-utilities/utils/image_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/math_utils.js +119 -0
- package/dist/vendor/material-color-utilities/utils/math_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/string_utils.js +74 -0
- package/dist/vendor/material-color-utilities/utils/string_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/theme_utils.js +24 -0
- package/dist/vendor/material-color-utilities/utils/theme_utils.js.map +1 -0
- package/package.json +114 -3
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { VariantProps } from "../../utils/tv.js";
|
|
2
|
+
//#region src/components/app-bar/app-bar-styles.d.ts
|
|
3
|
+
/** Variant definitions for {@link TopAppBar}; extend them to add variants. */
|
|
4
|
+
export declare const topAppBarStyles: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
small: {
|
|
7
|
+
titleText: string;
|
|
8
|
+
subtitleText: string;
|
|
9
|
+
};
|
|
10
|
+
medium: {
|
|
11
|
+
titleText: string;
|
|
12
|
+
subtitleText: string;
|
|
13
|
+
expandedTitle: string;
|
|
14
|
+
expandedSubtitle: string;
|
|
15
|
+
};
|
|
16
|
+
large: {
|
|
17
|
+
titleText: string;
|
|
18
|
+
subtitleText: string;
|
|
19
|
+
expandedTitle: string;
|
|
20
|
+
expandedSubtitle: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
titleAlign: {
|
|
24
|
+
start: {
|
|
25
|
+
row: string;
|
|
26
|
+
title: string;
|
|
27
|
+
};
|
|
28
|
+
center: {
|
|
29
|
+
row: string;
|
|
30
|
+
title: string;
|
|
31
|
+
expandedRow: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
hasNavigation: {
|
|
35
|
+
true: {};
|
|
36
|
+
false: {
|
|
37
|
+
title: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
hasSubtitle: {
|
|
41
|
+
true: {};
|
|
42
|
+
false: {};
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Set for `scrollBehavior="pinned"`: a two-row bar never collapses, so it changes colour
|
|
46
|
+
* as a whole once content scrolls under it, like a single row.
|
|
47
|
+
*/
|
|
48
|
+
pinned: {
|
|
49
|
+
true: {};
|
|
50
|
+
false: {};
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The colour content scrolls under: `surface-container`, or `transparent` (the bar fades
|
|
54
|
+
* from `surface` to see-through).
|
|
55
|
+
*/
|
|
56
|
+
scrolledColor: {
|
|
57
|
+
container: {};
|
|
58
|
+
transparent: {
|
|
59
|
+
root: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
/** Set when the bar responds to scrolling: it sticks, and its offset follows the scroll. */
|
|
63
|
+
scrolling: {
|
|
64
|
+
true: {
|
|
65
|
+
root: string;
|
|
66
|
+
};
|
|
67
|
+
false: {};
|
|
68
|
+
};
|
|
69
|
+
twoRows: {
|
|
70
|
+
true: {
|
|
71
|
+
row: string;
|
|
72
|
+
titleText: string;
|
|
73
|
+
subtitleText: string;
|
|
74
|
+
expandedRow: string;
|
|
75
|
+
};
|
|
76
|
+
false: {
|
|
77
|
+
root: string[];
|
|
78
|
+
row: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
root: string[];
|
|
83
|
+
row: string[];
|
|
84
|
+
navigation: string;
|
|
85
|
+
title: string;
|
|
86
|
+
titleText: string;
|
|
87
|
+
subtitleText: string;
|
|
88
|
+
actions: string;
|
|
89
|
+
expandedRow: string;
|
|
90
|
+
expandedTitle: string;
|
|
91
|
+
expandedSubtitle: string;
|
|
92
|
+
bottom: string;
|
|
93
|
+
}, undefined, {
|
|
94
|
+
variant: {
|
|
95
|
+
small: {
|
|
96
|
+
titleText: string;
|
|
97
|
+
subtitleText: string;
|
|
98
|
+
};
|
|
99
|
+
medium: {
|
|
100
|
+
titleText: string;
|
|
101
|
+
subtitleText: string;
|
|
102
|
+
expandedTitle: string;
|
|
103
|
+
expandedSubtitle: string;
|
|
104
|
+
};
|
|
105
|
+
large: {
|
|
106
|
+
titleText: string;
|
|
107
|
+
subtitleText: string;
|
|
108
|
+
expandedTitle: string;
|
|
109
|
+
expandedSubtitle: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
titleAlign: {
|
|
113
|
+
start: {
|
|
114
|
+
row: string;
|
|
115
|
+
title: string;
|
|
116
|
+
};
|
|
117
|
+
center: {
|
|
118
|
+
row: string;
|
|
119
|
+
title: string;
|
|
120
|
+
expandedRow: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
hasNavigation: {
|
|
124
|
+
true: {};
|
|
125
|
+
false: {
|
|
126
|
+
title: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
hasSubtitle: {
|
|
130
|
+
true: {};
|
|
131
|
+
false: {};
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Set for `scrollBehavior="pinned"`: a two-row bar never collapses, so it changes colour
|
|
135
|
+
* as a whole once content scrolls under it, like a single row.
|
|
136
|
+
*/
|
|
137
|
+
pinned: {
|
|
138
|
+
true: {};
|
|
139
|
+
false: {};
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* The colour content scrolls under: `surface-container`, or `transparent` (the bar fades
|
|
143
|
+
* from `surface` to see-through).
|
|
144
|
+
*/
|
|
145
|
+
scrolledColor: {
|
|
146
|
+
container: {};
|
|
147
|
+
transparent: {
|
|
148
|
+
root: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/** Set when the bar responds to scrolling: it sticks, and its offset follows the scroll. */
|
|
152
|
+
scrolling: {
|
|
153
|
+
true: {
|
|
154
|
+
root: string;
|
|
155
|
+
};
|
|
156
|
+
false: {};
|
|
157
|
+
};
|
|
158
|
+
twoRows: {
|
|
159
|
+
true: {
|
|
160
|
+
row: string;
|
|
161
|
+
titleText: string;
|
|
162
|
+
subtitleText: string;
|
|
163
|
+
expandedRow: string;
|
|
164
|
+
};
|
|
165
|
+
false: {
|
|
166
|
+
root: string[];
|
|
167
|
+
row: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
}, {
|
|
171
|
+
root: string[];
|
|
172
|
+
row: string[];
|
|
173
|
+
navigation: string;
|
|
174
|
+
title: string;
|
|
175
|
+
titleText: string;
|
|
176
|
+
subtitleText: string;
|
|
177
|
+
actions: string;
|
|
178
|
+
expandedRow: string;
|
|
179
|
+
expandedTitle: string;
|
|
180
|
+
expandedSubtitle: string;
|
|
181
|
+
bottom: string;
|
|
182
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
183
|
+
variant: {
|
|
184
|
+
small: {
|
|
185
|
+
titleText: string;
|
|
186
|
+
subtitleText: string;
|
|
187
|
+
};
|
|
188
|
+
medium: {
|
|
189
|
+
titleText: string;
|
|
190
|
+
subtitleText: string;
|
|
191
|
+
expandedTitle: string;
|
|
192
|
+
expandedSubtitle: string;
|
|
193
|
+
};
|
|
194
|
+
large: {
|
|
195
|
+
titleText: string;
|
|
196
|
+
subtitleText: string;
|
|
197
|
+
expandedTitle: string;
|
|
198
|
+
expandedSubtitle: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
titleAlign: {
|
|
202
|
+
start: {
|
|
203
|
+
row: string;
|
|
204
|
+
title: string;
|
|
205
|
+
};
|
|
206
|
+
center: {
|
|
207
|
+
row: string;
|
|
208
|
+
title: string;
|
|
209
|
+
expandedRow: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
hasNavigation: {
|
|
213
|
+
true: {};
|
|
214
|
+
false: {
|
|
215
|
+
title: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
hasSubtitle: {
|
|
219
|
+
true: {};
|
|
220
|
+
false: {};
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Set for `scrollBehavior="pinned"`: a two-row bar never collapses, so it changes colour
|
|
224
|
+
* as a whole once content scrolls under it, like a single row.
|
|
225
|
+
*/
|
|
226
|
+
pinned: {
|
|
227
|
+
true: {};
|
|
228
|
+
false: {};
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* The colour content scrolls under: `surface-container`, or `transparent` (the bar fades
|
|
232
|
+
* from `surface` to see-through).
|
|
233
|
+
*/
|
|
234
|
+
scrolledColor: {
|
|
235
|
+
container: {};
|
|
236
|
+
transparent: {
|
|
237
|
+
root: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
/** Set when the bar responds to scrolling: it sticks, and its offset follows the scroll. */
|
|
241
|
+
scrolling: {
|
|
242
|
+
true: {
|
|
243
|
+
root: string;
|
|
244
|
+
};
|
|
245
|
+
false: {};
|
|
246
|
+
};
|
|
247
|
+
twoRows: {
|
|
248
|
+
true: {
|
|
249
|
+
row: string;
|
|
250
|
+
titleText: string;
|
|
251
|
+
subtitleText: string;
|
|
252
|
+
expandedRow: string;
|
|
253
|
+
};
|
|
254
|
+
false: {
|
|
255
|
+
root: string[];
|
|
256
|
+
row: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
root: string[];
|
|
261
|
+
row: string[];
|
|
262
|
+
navigation: string;
|
|
263
|
+
title: string;
|
|
264
|
+
titleText: string;
|
|
265
|
+
subtitleText: string;
|
|
266
|
+
actions: string;
|
|
267
|
+
expandedRow: string;
|
|
268
|
+
expandedTitle: string;
|
|
269
|
+
expandedSubtitle: string;
|
|
270
|
+
bottom: string;
|
|
271
|
+
}>>;
|
|
272
|
+
/**
|
|
273
|
+
* The variants of {@link topAppBarStyles}, for building on its styles. They are the recipe's keys, not
|
|
274
|
+
* component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.
|
|
275
|
+
*/
|
|
276
|
+
export type TopAppBarStyleProps = VariantProps<typeof topAppBarStyles>;
|
|
277
|
+
export type TopAppBarVariant = NonNullable<TopAppBarStyleProps['variant']>;
|
|
278
|
+
export type TopAppBarTitleAlign = NonNullable<TopAppBarStyleProps['titleAlign']>;
|
|
279
|
+
//#endregion
|
|
280
|
+
//# sourceMappingURL=app-bar-styles.d.ts.map
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { tv } from "../../utils/tv.js";
|
|
2
|
+
//#region src/components/app-bar/app-bar-styles.ts
|
|
3
|
+
/** Variant definitions for {@link TopAppBar}; extend them to add variants. */
|
|
4
|
+
const topAppBarStyles = tv({
|
|
5
|
+
slots: {
|
|
6
|
+
root: ["flex w-full flex-col text-on-surface", "bg-[var(--_md-comp-app-bar-container-color-blend)]"],
|
|
7
|
+
row: ["grid min-h-[64px] shrink-0 items-center", "bg-[var(--_md-comp-app-bar-container-color-blend)]"],
|
|
8
|
+
navigation: "col-start-1 flex items-center ps-[8px] pe-[4px] text-[color:var(--_md-comp-app-bar-leading-icon-color)] [--md-comp-icon-button-icon-color:currentColor]",
|
|
9
|
+
title: "col-start-2 flex min-w-0 flex-col ps-[4px] pe-[4px]",
|
|
10
|
+
titleText: "truncate text-[color:var(--_md-comp-app-bar-title-color)]",
|
|
11
|
+
subtitleText: "truncate text-[color:var(--_md-comp-app-bar-subtitle-color)]",
|
|
12
|
+
actions: "col-start-3 flex items-center justify-end gap-[8px] ps-[4px] pe-[8px] text-[color:var(--_md-comp-app-bar-trailing-icon-color)] [--md-comp-icon-button-icon-color:currentColor]",
|
|
13
|
+
expandedRow: "flex flex-col ps-[16px] pe-[16px]",
|
|
14
|
+
expandedTitle: "line-clamp-2 text-[color:var(--_md-comp-app-bar-title-color)]",
|
|
15
|
+
expandedSubtitle: "text-[color:var(--_md-comp-app-bar-subtitle-color)]",
|
|
16
|
+
bottom: "flex min-w-0 shrink-0 flex-col"
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
small: {
|
|
21
|
+
titleText: "text-title-large",
|
|
22
|
+
subtitleText: "text-label-medium"
|
|
23
|
+
},
|
|
24
|
+
medium: {
|
|
25
|
+
titleText: "text-title-large",
|
|
26
|
+
subtitleText: "text-label-medium",
|
|
27
|
+
expandedTitle: "text-headline-medium",
|
|
28
|
+
expandedSubtitle: "text-label-large"
|
|
29
|
+
},
|
|
30
|
+
large: {
|
|
31
|
+
titleText: "text-title-large",
|
|
32
|
+
subtitleText: "text-label-medium",
|
|
33
|
+
expandedTitle: "text-display-small",
|
|
34
|
+
expandedSubtitle: "text-title-medium"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
titleAlign: {
|
|
38
|
+
start: {
|
|
39
|
+
row: "grid-cols-[auto_minmax(0,1fr)_auto]",
|
|
40
|
+
title: "items-start"
|
|
41
|
+
},
|
|
42
|
+
center: {
|
|
43
|
+
row: "grid-cols-[minmax(max-content,1fr)_auto_minmax(max-content,1fr)]",
|
|
44
|
+
title: "items-center text-center",
|
|
45
|
+
expandedRow: "items-center text-center"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
hasNavigation: {
|
|
49
|
+
true: {},
|
|
50
|
+
false: { title: "ps-[16px]" }
|
|
51
|
+
},
|
|
52
|
+
hasSubtitle: {
|
|
53
|
+
true: {},
|
|
54
|
+
false: {}
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* Set for `scrollBehavior="pinned"`: a two-row bar never collapses, so it changes colour
|
|
58
|
+
* as a whole once content scrolls under it, like a single row.
|
|
59
|
+
*/
|
|
60
|
+
pinned: {
|
|
61
|
+
true: {},
|
|
62
|
+
false: {}
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* The colour content scrolls under: `surface-container`, or `transparent` (the bar fades
|
|
66
|
+
* from `surface` to see-through).
|
|
67
|
+
*/
|
|
68
|
+
scrolledColor: {
|
|
69
|
+
container: {},
|
|
70
|
+
transparent: { root: "[--m3-app-bar-scrolled-color:transparent]" }
|
|
71
|
+
},
|
|
72
|
+
/** Set when the bar responds to scrolling: it sticks, and its offset follows the scroll. */
|
|
73
|
+
scrolling: {
|
|
74
|
+
true: { root: "sticky top-(--m3-app-bar-offset) z-(--md-sys-z-sticky)" },
|
|
75
|
+
false: {}
|
|
76
|
+
},
|
|
77
|
+
twoRows: {
|
|
78
|
+
true: {
|
|
79
|
+
row: "sticky top-0",
|
|
80
|
+
titleText: "opacity-[var(--m3-app-bar-top-alpha,0)]",
|
|
81
|
+
subtitleText: "opacity-[var(--m3-app-bar-top-alpha,0)]",
|
|
82
|
+
expandedRow: "opacity-[var(--m3-app-bar-bottom-alpha,1)] [clip-path:inset(var(--m3-app-bar-collapse,0px)_0_0_0)]"
|
|
83
|
+
},
|
|
84
|
+
false: {
|
|
85
|
+
root: [
|
|
86
|
+
"[transition-property:background-color]",
|
|
87
|
+
"[transition-duration:var(--md-sys-motion-spring-effects-default-duration)]",
|
|
88
|
+
"[transition-timing-function:var(--md-sys-motion-spring-effects-default-easing)]"
|
|
89
|
+
],
|
|
90
|
+
row: "bg-transparent"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
compoundVariants: [
|
|
95
|
+
{
|
|
96
|
+
twoRows: true,
|
|
97
|
+
pinned: true,
|
|
98
|
+
class: {
|
|
99
|
+
root: [
|
|
100
|
+
"[transition-property:background-color]",
|
|
101
|
+
"[transition-duration:var(--md-sys-motion-spring-effects-default-duration)]",
|
|
102
|
+
"[transition-timing-function:var(--md-sys-motion-spring-effects-default-easing)]"
|
|
103
|
+
],
|
|
104
|
+
row: "bg-transparent"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
variant: "medium",
|
|
109
|
+
hasSubtitle: false,
|
|
110
|
+
class: { expandedRow: "min-h-[48px]" }
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
variant: "medium",
|
|
114
|
+
hasSubtitle: true,
|
|
115
|
+
class: { expandedRow: "min-h-[72px]" }
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
variant: "large",
|
|
119
|
+
hasSubtitle: false,
|
|
120
|
+
class: { expandedRow: "min-h-[56px]" }
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
variant: "large",
|
|
124
|
+
hasSubtitle: true,
|
|
125
|
+
class: { expandedRow: "min-h-[88px]" }
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
defaultVariants: {
|
|
129
|
+
variant: "small",
|
|
130
|
+
titleAlign: "start",
|
|
131
|
+
hasNavigation: false,
|
|
132
|
+
hasSubtitle: false,
|
|
133
|
+
scrolling: false,
|
|
134
|
+
pinned: false,
|
|
135
|
+
twoRows: false,
|
|
136
|
+
scrolledColor: "container"
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
//#endregion
|
|
140
|
+
export { topAppBarStyles };
|
|
141
|
+
|
|
142
|
+
//# sourceMappingURL=app-bar-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-bar-styles.js","names":[],"sources":["../../../src/components/app-bar/app-bar-styles.ts"],"sourcesContent":["import { tv, type VariantProps } from '../../utils/tv';\n\n/*\n * Values follow Compose Material 3 (AppBar.kt: TopAppBar, MediumFlexibleTopAppBar,\n * LargeFlexibleTopAppBar, TopAppBarLayout; AppBar / AppBarSmall / AppBarMediumFlexible /\n * AppBarLargeFlexible tokens).\n *\n * Container `surface`, turning `surface-container` when content scrolls under it (a single\n * row, or a pinned two-row bar: animated on the default effects spring) or as a two-row bar\n * collapses (blended in Oklab with fast-out-linear-in, as Compose's lerp), or turning\n * see-through with `scrolledColor=\"transparent\"`. No elevation.\n *\n * Rows: the top row is 64px. Navigation icon `on-surface`, title `on-surface`, subtitle and\n * actions `on-surface-variant`. Compose's icon buttons take 48px of layout and ours 40px,\n * so the slots add Compose's 4px of slack: the navigation icon sits 8px from the start, the\n * title 56px after it (16px with no icon), and the actions 8px apart and 8px from the end.\n *\n * Two-row bars add a bottom row of expanded height − 64px: medium 48px (72px with a\n * subtitle), large 56px (88px). Compose places the title 24px / 28px above the row's\n * bottom by its baseline, but with the M3 type scale that padding is always clamped, which\n * puts the title at the top of the row, and the row grows to fit a wrapped title. That is\n * reproduced exactly by top-aligning it in a min-height row.\n *\n * Colours come from the app bar's component tokens (`app-bar-tokens.ts`,\n * `--md-comp-app-bar-*`): the root carries `data-tokens=\"md-comp-app-bar\"`, and the\n * container reads the blend of the resting and on-scroll colours. A consumer class still\n * wins in `cn()`.\n *\n * Every class is written out in full so Tailwind can find it.\n */\n\n/** Variant definitions for {@link TopAppBar}; extend them to add variants. */\nexport const topAppBarStyles = tv({\n slots: {\n root: [\n 'flex w-full flex-col text-on-surface',\n 'bg-[var(--_md-comp-app-bar-container-color-blend)]',\n ],\n // The top row: navigation icon, title and actions.\n row: [\n 'grid min-h-[64px] shrink-0 items-center',\n 'bg-[var(--_md-comp-app-bar-container-color-blend)]',\n ],\n // Icon buttons take each slot's content colour.\n navigation:\n 'col-start-1 flex items-center ps-[8px] pe-[4px] text-[color:var(--_md-comp-app-bar-leading-icon-color)] [--md-comp-icon-button-icon-color:currentColor]',\n title: 'col-start-2 flex min-w-0 flex-col ps-[4px] pe-[4px]',\n titleText: 'truncate text-[color:var(--_md-comp-app-bar-title-color)]',\n subtitleText: 'truncate text-[color:var(--_md-comp-app-bar-subtitle-color)]',\n actions:\n 'col-start-3 flex items-center justify-end gap-[8px] ps-[4px] pe-[8px] text-[color:var(--_md-comp-app-bar-trailing-icon-color)] [--md-comp-icon-button-icon-color:currentColor]',\n // Two-row bars: the expanded title row.\n expandedRow: 'flex flex-col ps-[16px] pe-[16px]',\n // M3: a long headline wraps to two lines at most.\n expandedTitle: 'line-clamp-2 text-[color:var(--_md-comp-app-bar-title-color)]',\n expandedSubtitle: 'text-[color:var(--_md-comp-app-bar-subtitle-color)]',\n // The accessory row (`bottom`): on the bar's colour, laid out by its content.\n bottom: 'flex min-w-0 shrink-0 flex-col',\n },\n variants: {\n variant: {\n small: {\n titleText: 'text-title-large',\n subtitleText: 'text-label-medium',\n },\n medium: {\n titleText: 'text-title-large',\n subtitleText: 'text-label-medium',\n expandedTitle: 'text-headline-medium',\n expandedSubtitle: 'text-label-large',\n },\n large: {\n titleText: 'text-title-large',\n subtitleText: 'text-label-medium',\n expandedTitle: 'text-display-small',\n expandedSubtitle: 'text-title-medium',\n },\n },\n titleAlign: {\n // The title column takes the free space after the navigation icon.\n start: { row: 'grid-cols-[auto_minmax(0,1fr)_auto]', title: 'items-start' },\n // Equal side columns centre the title in the whole bar until a side needs more room.\n center: {\n row: 'grid-cols-[minmax(max-content,1fr)_auto_minmax(max-content,1fr)]',\n title: 'items-center text-center',\n expandedRow: 'items-center text-center',\n },\n },\n hasNavigation: {\n true: {},\n false: { title: 'ps-[16px]' },\n },\n hasSubtitle: { true: {}, false: {} },\n /**\n * Set for `scrollBehavior=\"pinned\"`: a two-row bar never collapses, so it changes colour\n * as a whole once content scrolls under it, like a single row.\n */\n pinned: { true: {}, false: {} },\n /**\n * The colour content scrolls under: `surface-container`, or `transparent` (the bar fades\n * from `surface` to see-through).\n */\n scrolledColor: {\n container: {},\n transparent: { root: '[--m3-app-bar-scrolled-color:transparent]' },\n },\n /** Set when the bar responds to scrolling: it sticks, and its offset follows the scroll. */\n scrolling: {\n true: { root: 'sticky top-(--m3-app-bar-offset) z-(--md-sys-z-sticky)' },\n false: {},\n },\n twoRows: {\n true: {\n // The top row stays put while the expanded row scrolls up beneath it.\n row: 'sticky top-0',\n titleText: 'opacity-[var(--m3-app-bar-top-alpha,0)]',\n subtitleText: 'opacity-[var(--m3-app-bar-top-alpha,0)]',\n // Clipped to the part not yet under the top row (`--m3-app-bar-collapse`, from the\n // scroll), so it doesn't show through a see-through top row.\n expandedRow:\n 'opacity-[var(--m3-app-bar-bottom-alpha,1)] [clip-path:inset(var(--m3-app-bar-collapse,0px)_0_0_0)]',\n },\n // A single row changes colour as a whole once content scrolls under it.\n false: {\n root: [\n '[transition-property:background-color]',\n '[transition-duration:var(--md-sys-motion-spring-effects-default-duration)]',\n '[transition-timing-function:var(--md-sys-motion-spring-effects-default-easing)]',\n ],\n row: 'bg-transparent',\n },\n },\n },\n compoundVariants: [\n {\n twoRows: true,\n pinned: true,\n class: {\n root: [\n '[transition-property:background-color]',\n '[transition-duration:var(--md-sys-motion-spring-effects-default-duration)]',\n '[transition-timing-function:var(--md-sys-motion-spring-effects-default-easing)]',\n ],\n row: 'bg-transparent',\n },\n },\n { variant: 'medium', hasSubtitle: false, class: { expandedRow: 'min-h-[48px]' } },\n { variant: 'medium', hasSubtitle: true, class: { expandedRow: 'min-h-[72px]' } },\n { variant: 'large', hasSubtitle: false, class: { expandedRow: 'min-h-[56px]' } },\n { variant: 'large', hasSubtitle: true, class: { expandedRow: 'min-h-[88px]' } },\n ],\n defaultVariants: {\n variant: 'small',\n titleAlign: 'start',\n hasNavigation: false,\n hasSubtitle: false,\n scrolling: false,\n pinned: false,\n twoRows: false,\n scrolledColor: 'container',\n },\n});\n\n/**\n * The variants of {@link topAppBarStyles}, for building on its styles. They are the recipe's keys, not\n * component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.\n */\nexport type TopAppBarStyleProps = VariantProps<typeof topAppBarStyles>;\nexport type TopAppBarVariant = NonNullable<TopAppBarStyleProps['variant']>;\nexport type TopAppBarTitleAlign = NonNullable<TopAppBarStyleProps['titleAlign']>;\n"],"mappings":";;;AAgCA,MAAa,kBAAkB,GAAG;CAChC,OAAO;EACL,MAAM,CACJ,wCACA,oDACF;EAEA,KAAK,CACH,2CACA,oDACF;EAEA,YACE;EACF,OAAO;EACP,WAAW;EACX,cAAc;EACd,SACE;EAEF,aAAa;EAEb,eAAe;EACf,kBAAkB;EAElB,QAAQ;CACV;CACA,UAAU;EACR,SAAS;GACP,OAAO;IACL,WAAW;IACX,cAAc;GAChB;GACA,QAAQ;IACN,WAAW;IACX,cAAc;IACd,eAAe;IACf,kBAAkB;GACpB;GACA,OAAO;IACL,WAAW;IACX,cAAc;IACd,eAAe;IACf,kBAAkB;GACpB;EACF;EACA,YAAY;GAEV,OAAO;IAAE,KAAK;IAAuC,OAAO;GAAc;GAE1E,QAAQ;IACN,KAAK;IACL,OAAO;IACP,aAAa;GACf;EACF;EACA,eAAe;GACb,MAAM,CAAC;GACP,OAAO,EAAE,OAAO,YAAY;EAC9B;EACA,aAAa;GAAE,MAAM,CAAC;GAAG,OAAO,CAAC;EAAE;;;;;EAKnC,QAAQ;GAAE,MAAM,CAAC;GAAG,OAAO,CAAC;EAAE;;;;;EAK9B,eAAe;GACb,WAAW,CAAC;GACZ,aAAa,EAAE,MAAM,4CAA4C;EACnE;;EAEA,WAAW;GACT,MAAM,EAAE,MAAM,yDAAyD;GACvE,OAAO,CAAC;EACV;EACA,SAAS;GACP,MAAM;IAEJ,KAAK;IACL,WAAW;IACX,cAAc;IAGd,aACE;GACJ;GAEA,OAAO;IACL,MAAM;KACJ;KACA;KACA;IACF;IACA,KAAK;GACP;EACF;CACF;CACA,kBAAkB;EAChB;GACE,SAAS;GACT,QAAQ;GACR,OAAO;IACL,MAAM;KACJ;KACA;KACA;IACF;IACA,KAAK;GACP;EACF;EACA;GAAE,SAAS;GAAU,aAAa;GAAO,OAAO,EAAE,aAAa,eAAe;EAAE;EAChF;GAAE,SAAS;GAAU,aAAa;GAAM,OAAO,EAAE,aAAa,eAAe;EAAE;EAC/E;GAAE,SAAS;GAAS,aAAa;GAAO,OAAO,EAAE,aAAa,eAAe;EAAE;EAC/E;GAAE,SAAS;GAAS,aAAa;GAAM,OAAO,EAAE,aAAa,eAAe;EAAE;CAChF;CACA,iBAAiB;EACf,SAAS;EACT,YAAY;EACZ,eAAe;EACf,aAAa;EACb,WAAW;EACX,QAAQ;EACR,SAAS;EACT,eAAe;CACjB;AACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentTokenSet } from "../../tokens/component.js";
|
|
2
|
+
import "../../index.js";
|
|
3
|
+
//#region src/components/app-bar/app-bar-tokens.d.ts
|
|
4
|
+
/** The tokens of {@link TopAppBar} and {@link SearchAppBar}: `--md-comp-app-bar-<part>`. */
|
|
5
|
+
export declare const appBarTokenSet: ComponentTokenSet<"container-color" | "leading-icon-color" | "trailing-icon-color" | "title-color" | "subtitle-color" | "on-scroll-container-color">;
|
|
6
|
+
//#endregion
|
|
7
|
+
//# sourceMappingURL=app-bar-tokens.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { color, defineComponentTokens } from "../../tokens/component.js";
|
|
2
|
+
//#region src/components/app-bar/app-bar-tokens.ts
|
|
3
|
+
/** The tokens of {@link TopAppBar} and {@link SearchAppBar}: `--md-comp-app-bar-<part>`. */
|
|
4
|
+
const appBarTokenSet = defineComponentTokens({
|
|
5
|
+
name: "md-comp-app-bar",
|
|
6
|
+
tokens: {
|
|
7
|
+
"title-color": {
|
|
8
|
+
value: color("on-surface"),
|
|
9
|
+
description: "The title.",
|
|
10
|
+
compose: "AppBarTokens.TitleColor",
|
|
11
|
+
paints: {
|
|
12
|
+
property: "color",
|
|
13
|
+
slot: "title"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"subtitle-color": {
|
|
17
|
+
value: color("on-surface-variant"),
|
|
18
|
+
description: "The subtitle.",
|
|
19
|
+
compose: "AppBarTokens.SubtitleColor",
|
|
20
|
+
paints: {
|
|
21
|
+
property: "color",
|
|
22
|
+
slot: "subtitle"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"leading-icon-color": {
|
|
26
|
+
value: color("on-surface"),
|
|
27
|
+
description: "The navigation icon.",
|
|
28
|
+
compose: "AppBarTokens.LeadingIconColor",
|
|
29
|
+
paints: {
|
|
30
|
+
property: "color",
|
|
31
|
+
slot: "navigation"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"trailing-icon-color": {
|
|
35
|
+
value: color("on-surface-variant"),
|
|
36
|
+
description: "The actions.",
|
|
37
|
+
compose: "AppBarTokens.TrailingIconColor",
|
|
38
|
+
paints: {
|
|
39
|
+
property: "color",
|
|
40
|
+
slot: "actions"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"container-color": {
|
|
44
|
+
value: color("surface"),
|
|
45
|
+
description: "The bar, with nothing scrolled under it.",
|
|
46
|
+
compose: "AppBarTokens.ContainerColor",
|
|
47
|
+
paints: { property: "background-color" }
|
|
48
|
+
},
|
|
49
|
+
"on-scroll-container-color": {
|
|
50
|
+
value: color("surface-container"),
|
|
51
|
+
description: "The bar once content scrolls under it.",
|
|
52
|
+
compose: "AppBarTokens.OnScrollContainerColor",
|
|
53
|
+
paints: {
|
|
54
|
+
property: "background-color",
|
|
55
|
+
state: "scrolled"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
derived: { "container-color-blend": "color-mix(in oklab, var(--m3-app-bar-scrolled-color, var(--_md-comp-app-bar-on-scroll-container-color)) var(--m3-app-bar-scrolled, 0%), var(--_md-comp-app-bar-container-color))" }
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
export { appBarTokenSet };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=app-bar-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-bar-tokens.js","names":[],"sources":["../../../src/components/app-bar/app-bar-tokens.ts"],"sourcesContent":["import { color, defineComponentTokens } from '../../tokens/component';\n\n/*\n * The app bar's component tokens, M3 Expressive's `md.comp.app-bar.*` names (checked against\n * m3.material.io's token tables, 2026-10-14; `top-app-bar` is the deprecated set), with the\n * defaults of `app-bar-styles.ts`. Read by TopAppBar and SearchAppBar, whose roots carry\n * `data-tokens=\"md-comp-app-bar\"`.\n *\n * The container blends from `container-color` to `on-scroll-container-color` as content\n * scrolls under the bar (`container-color-blend`, worked out here so no class puts a private\n * variable after a comma). The icon tokens colour their slot, which standard and outlined\n * icon buttons follow (`--md-comp-icon-button-icon-color: currentColor`).\n */\n\n/** The tokens of {@link TopAppBar} and {@link SearchAppBar}: `--md-comp-app-bar-<part>`. */\nexport const appBarTokenSet = defineComponentTokens({\n name: 'md-comp-app-bar',\n tokens: {\n 'title-color': {\n value: color('on-surface'),\n description: 'The title.',\n compose: 'AppBarTokens.TitleColor',\n paints: { property: 'color', slot: 'title' },\n },\n 'subtitle-color': {\n value: color('on-surface-variant'),\n description: 'The subtitle.',\n compose: 'AppBarTokens.SubtitleColor',\n paints: { property: 'color', slot: 'subtitle' },\n },\n 'leading-icon-color': {\n value: color('on-surface'),\n description: 'The navigation icon.',\n compose: 'AppBarTokens.LeadingIconColor',\n paints: { property: 'color', slot: 'navigation' },\n },\n 'trailing-icon-color': {\n value: color('on-surface-variant'),\n description: 'The actions.',\n compose: 'AppBarTokens.TrailingIconColor',\n paints: { property: 'color', slot: 'actions' },\n },\n 'container-color': {\n value: color('surface'),\n description: 'The bar, with nothing scrolled under it.',\n compose: 'AppBarTokens.ContainerColor',\n paints: { property: 'background-color' },\n },\n 'on-scroll-container-color': {\n value: color('surface-container'),\n description: 'The bar once content scrolls under it.',\n compose: 'AppBarTokens.OnScrollContainerColor',\n paints: { property: 'background-color', state: 'scrolled' },\n },\n },\n derived: {\n // `--m3-app-bar-scrolled` (0–100%, set on the root) blends the two; with\n // `scrolledColor=\"transparent\"`, `--m3-app-bar-scrolled-color` replaces the scrolled one.\n 'container-color-blend':\n 'color-mix(in oklab, var(--m3-app-bar-scrolled-color, var(--_md-comp-app-bar-on-scroll-container-color)) var(--m3-app-bar-scrolled, 0%), var(--_md-comp-app-bar-container-color))',\n },\n});\n"],"mappings":";;;AAeA,MAAa,iBAAiB,sBAAsB;CAClD,MAAM;CACN,QAAQ;EACN,eAAe;GACb,OAAO,MAAM,YAAY;GACzB,aAAa;GACb,SAAS;GACT,QAAQ;IAAE,UAAU;IAAS,MAAM;GAAQ;EAC7C;EACA,kBAAkB;GAChB,OAAO,MAAM,oBAAoB;GACjC,aAAa;GACb,SAAS;GACT,QAAQ;IAAE,UAAU;IAAS,MAAM;GAAW;EAChD;EACA,sBAAsB;GACpB,OAAO,MAAM,YAAY;GACzB,aAAa;GACb,SAAS;GACT,QAAQ;IAAE,UAAU;IAAS,MAAM;GAAa;EAClD;EACA,uBAAuB;GACrB,OAAO,MAAM,oBAAoB;GACjC,aAAa;GACb,SAAS;GACT,QAAQ;IAAE,UAAU;IAAS,MAAM;GAAU;EAC/C;EACA,mBAAmB;GACjB,OAAO,MAAM,SAAS;GACtB,aAAa;GACb,SAAS;GACT,QAAQ,EAAE,UAAU,mBAAmB;EACzC;EACA,6BAA6B;GAC3B,OAAO,MAAM,mBAAmB;GAChC,aAAa;GACb,SAAS;GACT,QAAQ;IAAE,UAAU;IAAoB,OAAO;GAAW;EAC5D;CACF;CACA,SAAS,EAGP,yBACE,mLACJ;AACF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
//#region src/components/app-bar/use-app-bar-scroll.d.ts
|
|
3
|
+
/** How a top app bar responds to the content scrolling under it (Compose's scroll behaviours). */
|
|
4
|
+
export type TopAppBarScrollBehavior = 'pinned' | 'enter-always' | 'exit-until-collapsed';
|
|
5
|
+
//#endregion
|
|
6
|
+
//# sourceMappingURL=use-app-bar-scroll.d.ts.map
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { hasVisibleFocusWithin } from "../../utils/focus-visible.js";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
import { cubicBezier, useReducedMotion } from "motion/react";
|
|
5
|
+
//#region src/components/app-bar/use-app-bar-scroll.ts
|
|
6
|
+
/** Compose's `TopTitleAlphaEasing` for the collapsed title of a two-row bar. */
|
|
7
|
+
const topTitleAlpha = cubicBezier(.8, 0, .8, .15);
|
|
8
|
+
/** Compose's `FastOutLinearInEasing`, used to blend the container colour. */
|
|
9
|
+
const fastOutLinearIn = cubicBezier(.4, 0, 1, 1);
|
|
10
|
+
/**
|
|
11
|
+
* Ports Compose's top app bar scroll behaviours to page scrolling. The bar's offset
|
|
12
|
+
* (Compose's `heightOffset`, 0 down to minus the collapsible height) is written to
|
|
13
|
+
* `--m3-app-bar-offset`, which the sticky bar uses as its `top`, so the bar moves without
|
|
14
|
+
* changing its layout height and the content below never shifts. Colour and title alphas
|
|
15
|
+
* are written as custom properties too, so scrolling causes no React renders.
|
|
16
|
+
*
|
|
17
|
+
* - `pinned`: the bar stays; only its colour responds, switching once content is under it
|
|
18
|
+
* (a two-row bar too, keeping its expanded title).
|
|
19
|
+
* - `enter-always`: scrolling down hides the bar, any scroll up brings it back. A two-row
|
|
20
|
+
* bar first collapses to its top row, which then hides and comes back on scroll up, but
|
|
21
|
+
* stays small until the page is back at the top (M3).
|
|
22
|
+
* - `exit-until-collapsed`: scrolling down collapses it; it expands only near the top.
|
|
23
|
+
*
|
|
24
|
+
* Under reduced motion an `enter-always` bar never leaves the screen, like a navigation bar
|
|
25
|
+
* that hides on scroll (architecture §6): a single-row bar stays put and a two-row bar only
|
|
26
|
+
* collapses with the scroll, as `exit-until-collapsed` does.
|
|
27
|
+
*
|
|
28
|
+
* A bar scrolled fully off screen is `inert`, so Tab skips its hidden controls and screen
|
|
29
|
+
* readers leave them out; it's restored as the bar comes back. While keyboard focus is in
|
|
30
|
+
* the bar it stays on screen (M3: people should "maintain access to app bar actions when
|
|
31
|
+
* the content is scrolled"; WCAG 2.4.11 Focus Not Obscured), and focusing a partly hidden
|
|
32
|
+
* bar brings it back.
|
|
33
|
+
*/
|
|
34
|
+
function useAppBarScroll({ behavior: requested, rootRef, collapsibleRef, scrollRef, twoRows }) {
|
|
35
|
+
const [state, setState] = useState({
|
|
36
|
+
scrolled: false,
|
|
37
|
+
collapsed: false
|
|
38
|
+
});
|
|
39
|
+
const reducedMotion = useReducedMotion() ?? false;
|
|
40
|
+
const behavior = requested === "enter-always" && reducedMotion ? twoRows ? "exit-until-collapsed" : "pinned" : requested;
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
const root = rootRef.current;
|
|
43
|
+
if (!behavior || !root) return;
|
|
44
|
+
const scroller = scrollRef?.current;
|
|
45
|
+
const target = scroller ?? window;
|
|
46
|
+
const position = () => Math.max(0, scroller ? scroller.scrollTop : window.scrollY);
|
|
47
|
+
let last = position();
|
|
48
|
+
let offset = 0;
|
|
49
|
+
/** A two-row `enter-always` bar's top-row offset: 0 (shown) to minus its height. */
|
|
50
|
+
let hide = 0;
|
|
51
|
+
let frame = 0;
|
|
52
|
+
let current = {
|
|
53
|
+
scrolled: false,
|
|
54
|
+
collapsed: false
|
|
55
|
+
};
|
|
56
|
+
let hidden = false;
|
|
57
|
+
const update = () => {
|
|
58
|
+
frame = 0;
|
|
59
|
+
const scroll = position();
|
|
60
|
+
const previous = last;
|
|
61
|
+
last = scroll;
|
|
62
|
+
const limit = collapsibleRef.current?.offsetHeight ?? 0;
|
|
63
|
+
const focused = hasVisibleFocusWithin(root);
|
|
64
|
+
let collapse = 0;
|
|
65
|
+
if (behavior === "pinned") offset = 0;
|
|
66
|
+
else if (twoRows) {
|
|
67
|
+
collapse = -Math.min(scroll, limit);
|
|
68
|
+
if (behavior === "enter-always") {
|
|
69
|
+
const rowHeight = root.offsetHeight - limit;
|
|
70
|
+
const beyond = Math.max(scroll, limit) - Math.max(previous, limit);
|
|
71
|
+
hide = focused ? 0 : Math.min(0, Math.max(-rowHeight, hide - beyond));
|
|
72
|
+
}
|
|
73
|
+
offset = collapse + hide;
|
|
74
|
+
} else if (behavior === "enter-always") offset = focused ? 0 : Math.min(0, Math.max(-limit, offset - (scroll - previous)));
|
|
75
|
+
else offset = focused && !twoRows ? 0 : -Math.min(scroll, limit);
|
|
76
|
+
const fraction = limit > 0 ? -(twoRows ? collapse : offset) / limit : 0;
|
|
77
|
+
root.style.setProperty("--m3-app-bar-offset", `${offset}px`);
|
|
78
|
+
if (twoRows) root.style.setProperty("--m3-app-bar-collapse", `${-collapse}px`);
|
|
79
|
+
const height = root.offsetHeight;
|
|
80
|
+
const offScreen = height > 0 && -offset >= height - .5;
|
|
81
|
+
if (offScreen !== hidden) {
|
|
82
|
+
hidden = offScreen;
|
|
83
|
+
root.toggleAttribute("inert", offScreen);
|
|
84
|
+
}
|
|
85
|
+
if (twoRows && behavior !== "pinned") {
|
|
86
|
+
root.style.setProperty("--m3-app-bar-scrolled", `${fastOutLinearIn(fraction) * 100}%`);
|
|
87
|
+
root.style.setProperty("--m3-app-bar-top-alpha", String(topTitleAlpha(fraction)));
|
|
88
|
+
root.style.setProperty("--m3-app-bar-bottom-alpha", String(1 - fraction));
|
|
89
|
+
} else {
|
|
90
|
+
root.style.setProperty("--m3-app-bar-scrolled", scroll > 0 ? "100%" : "0%");
|
|
91
|
+
if (twoRows) {
|
|
92
|
+
root.style.setProperty("--m3-app-bar-top-alpha", "0");
|
|
93
|
+
root.style.setProperty("--m3-app-bar-bottom-alpha", "1");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
const next = {
|
|
97
|
+
scrolled: scroll > 0,
|
|
98
|
+
collapsed: twoRows && fraction >= .5
|
|
99
|
+
};
|
|
100
|
+
if (next.scrolled !== current.scrolled || next.collapsed !== current.collapsed) {
|
|
101
|
+
current = next;
|
|
102
|
+
setState(next);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
const onScroll = () => {
|
|
106
|
+
if (!frame) frame = requestAnimationFrame(update);
|
|
107
|
+
};
|
|
108
|
+
update();
|
|
109
|
+
target.addEventListener("scroll", onScroll, { passive: true });
|
|
110
|
+
root.addEventListener("focusin", onScroll);
|
|
111
|
+
return () => {
|
|
112
|
+
target.removeEventListener("scroll", onScroll);
|
|
113
|
+
root.removeEventListener("focusin", onScroll);
|
|
114
|
+
cancelAnimationFrame(frame);
|
|
115
|
+
if (hidden) root.removeAttribute("inert");
|
|
116
|
+
for (const name of [
|
|
117
|
+
"--m3-app-bar-offset",
|
|
118
|
+
"--m3-app-bar-collapse",
|
|
119
|
+
"--m3-app-bar-scrolled",
|
|
120
|
+
"--m3-app-bar-top-alpha",
|
|
121
|
+
"--m3-app-bar-bottom-alpha"
|
|
122
|
+
]) root.style.removeProperty(name);
|
|
123
|
+
};
|
|
124
|
+
}, [
|
|
125
|
+
behavior,
|
|
126
|
+
rootRef,
|
|
127
|
+
collapsibleRef,
|
|
128
|
+
scrollRef,
|
|
129
|
+
twoRows
|
|
130
|
+
]);
|
|
131
|
+
return behavior ? state : {
|
|
132
|
+
scrolled: false,
|
|
133
|
+
collapsed: false
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
//#endregion
|
|
137
|
+
export { useAppBarScroll };
|
|
138
|
+
|
|
139
|
+
//# sourceMappingURL=use-app-bar-scroll.js.map
|