@windmorph/react 0.0.0-stage → 0.1.1
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,403 @@
|
|
|
1
|
+
import { VariantProps } from "../../utils/tv.js";
|
|
2
|
+
//#region src/components/toolbar/toolbar-styles.d.ts
|
|
3
|
+
/** Variant definitions for {@link DockedToolbar}; extend them to add variants. */
|
|
4
|
+
export declare const dockedToolbarStyles: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
arrangement: {
|
|
6
|
+
'space-between': {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
centered: {
|
|
10
|
+
root: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
standard: {
|
|
15
|
+
root: string;
|
|
16
|
+
};
|
|
17
|
+
vibrant: {
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
root: string[];
|
|
23
|
+
}, undefined, {
|
|
24
|
+
arrangement: {
|
|
25
|
+
'space-between': {
|
|
26
|
+
root: string;
|
|
27
|
+
};
|
|
28
|
+
centered: {
|
|
29
|
+
root: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
color: {
|
|
33
|
+
standard: {
|
|
34
|
+
root: string;
|
|
35
|
+
};
|
|
36
|
+
vibrant: {
|
|
37
|
+
root: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
root: string[];
|
|
42
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
43
|
+
arrangement: {
|
|
44
|
+
'space-between': {
|
|
45
|
+
root: string;
|
|
46
|
+
};
|
|
47
|
+
centered: {
|
|
48
|
+
root: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
color: {
|
|
52
|
+
standard: {
|
|
53
|
+
root: string;
|
|
54
|
+
};
|
|
55
|
+
vibrant: {
|
|
56
|
+
root: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
root: string[];
|
|
61
|
+
}>>;
|
|
62
|
+
/** Variant definitions for {@link FloatingToolbar}; extend them to add colour styles. */
|
|
63
|
+
export declare const floatingToolbarStyles: import("tailwind-variants").TVReturnType<{
|
|
64
|
+
orientation: {
|
|
65
|
+
horizontal: {
|
|
66
|
+
root: string;
|
|
67
|
+
items: string;
|
|
68
|
+
collapsibleItems: string;
|
|
69
|
+
collapse: string;
|
|
70
|
+
clip: string;
|
|
71
|
+
toolbarSlot: string;
|
|
72
|
+
surface: string;
|
|
73
|
+
content: string;
|
|
74
|
+
fabSlot: string;
|
|
75
|
+
};
|
|
76
|
+
vertical: {
|
|
77
|
+
root: string;
|
|
78
|
+
items: string;
|
|
79
|
+
collapsibleItems: string;
|
|
80
|
+
collapse: string;
|
|
81
|
+
clip: string;
|
|
82
|
+
toolbarSlot: string;
|
|
83
|
+
surface: string;
|
|
84
|
+
content: string;
|
|
85
|
+
fabSlot: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
color: {
|
|
89
|
+
standard: {
|
|
90
|
+
root: string;
|
|
91
|
+
};
|
|
92
|
+
vibrant: {
|
|
93
|
+
root: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
/** Level 1 by default; turn it off over visually distinct content. */
|
|
97
|
+
elevated: {
|
|
98
|
+
true: {};
|
|
99
|
+
false: {};
|
|
100
|
+
};
|
|
101
|
+
exitEdge: {
|
|
102
|
+
readonly bottom: {
|
|
103
|
+
readonly root: "data-hidden:[transform:translateY(calc(100%+24px))]";
|
|
104
|
+
};
|
|
105
|
+
readonly top: {
|
|
106
|
+
readonly root: "data-hidden:[transform:translateY(calc(-100%-24px))]";
|
|
107
|
+
};
|
|
108
|
+
readonly start: {
|
|
109
|
+
readonly root: "data-hidden:[transform:translateX(calc(-100%-24px))] rtl:data-hidden:[transform:translateX(calc(100%+24px))]";
|
|
110
|
+
};
|
|
111
|
+
readonly end: {
|
|
112
|
+
readonly root: "data-hidden:[transform:translateX(calc(100%+24px))] rtl:data-hidden:[transform:translateX(calc(-100%-24px))]";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
/** Paints the container on the root (no FAB) or on the toolbar surface (with a FAB). */
|
|
116
|
+
hasFab: {
|
|
117
|
+
false: {
|
|
118
|
+
root: string[];
|
|
119
|
+
};
|
|
120
|
+
true: {
|
|
121
|
+
root: string;
|
|
122
|
+
surface: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
/** The side of the toolbar the FAB sits on (logical: start / top or end / bottom). */
|
|
126
|
+
fabAt: {
|
|
127
|
+
start: {
|
|
128
|
+
toolbarSlot: string;
|
|
129
|
+
fabSlot: string;
|
|
130
|
+
};
|
|
131
|
+
end: {
|
|
132
|
+
toolbarSlot: string;
|
|
133
|
+
fabSlot: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}, {
|
|
137
|
+
root: string[];
|
|
138
|
+
items: string;
|
|
139
|
+
collapsibleItems: string;
|
|
140
|
+
collapse: string[];
|
|
141
|
+
clip: string[];
|
|
142
|
+
toolbarSlot: string;
|
|
143
|
+
surface: string[];
|
|
144
|
+
content: string;
|
|
145
|
+
fabSlot: string;
|
|
146
|
+
fabBox: string[];
|
|
147
|
+
}, undefined, {
|
|
148
|
+
orientation: {
|
|
149
|
+
horizontal: {
|
|
150
|
+
root: string;
|
|
151
|
+
items: string;
|
|
152
|
+
collapsibleItems: string;
|
|
153
|
+
collapse: string;
|
|
154
|
+
clip: string;
|
|
155
|
+
toolbarSlot: string;
|
|
156
|
+
surface: string;
|
|
157
|
+
content: string;
|
|
158
|
+
fabSlot: string;
|
|
159
|
+
};
|
|
160
|
+
vertical: {
|
|
161
|
+
root: string;
|
|
162
|
+
items: string;
|
|
163
|
+
collapsibleItems: string;
|
|
164
|
+
collapse: string;
|
|
165
|
+
clip: string;
|
|
166
|
+
toolbarSlot: string;
|
|
167
|
+
surface: string;
|
|
168
|
+
content: string;
|
|
169
|
+
fabSlot: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
color: {
|
|
173
|
+
standard: {
|
|
174
|
+
root: string;
|
|
175
|
+
};
|
|
176
|
+
vibrant: {
|
|
177
|
+
root: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
/** Level 1 by default; turn it off over visually distinct content. */
|
|
181
|
+
elevated: {
|
|
182
|
+
true: {};
|
|
183
|
+
false: {};
|
|
184
|
+
};
|
|
185
|
+
exitEdge: {
|
|
186
|
+
readonly bottom: {
|
|
187
|
+
readonly root: "data-hidden:[transform:translateY(calc(100%+24px))]";
|
|
188
|
+
};
|
|
189
|
+
readonly top: {
|
|
190
|
+
readonly root: "data-hidden:[transform:translateY(calc(-100%-24px))]";
|
|
191
|
+
};
|
|
192
|
+
readonly start: {
|
|
193
|
+
readonly root: "data-hidden:[transform:translateX(calc(-100%-24px))] rtl:data-hidden:[transform:translateX(calc(100%+24px))]";
|
|
194
|
+
};
|
|
195
|
+
readonly end: {
|
|
196
|
+
readonly root: "data-hidden:[transform:translateX(calc(100%+24px))] rtl:data-hidden:[transform:translateX(calc(-100%-24px))]";
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
/** Paints the container on the root (no FAB) or on the toolbar surface (with a FAB). */
|
|
200
|
+
hasFab: {
|
|
201
|
+
false: {
|
|
202
|
+
root: string[];
|
|
203
|
+
};
|
|
204
|
+
true: {
|
|
205
|
+
root: string;
|
|
206
|
+
surface: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
/** The side of the toolbar the FAB sits on (logical: start / top or end / bottom). */
|
|
210
|
+
fabAt: {
|
|
211
|
+
start: {
|
|
212
|
+
toolbarSlot: string;
|
|
213
|
+
fabSlot: string;
|
|
214
|
+
};
|
|
215
|
+
end: {
|
|
216
|
+
toolbarSlot: string;
|
|
217
|
+
fabSlot: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
}, {
|
|
221
|
+
root: string[];
|
|
222
|
+
items: string;
|
|
223
|
+
collapsibleItems: string;
|
|
224
|
+
collapse: string[];
|
|
225
|
+
clip: string[];
|
|
226
|
+
toolbarSlot: string;
|
|
227
|
+
surface: string[];
|
|
228
|
+
content: string;
|
|
229
|
+
fabSlot: string;
|
|
230
|
+
fabBox: string[];
|
|
231
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
232
|
+
orientation: {
|
|
233
|
+
horizontal: {
|
|
234
|
+
root: string;
|
|
235
|
+
items: string;
|
|
236
|
+
collapsibleItems: string;
|
|
237
|
+
collapse: string;
|
|
238
|
+
clip: string;
|
|
239
|
+
toolbarSlot: string;
|
|
240
|
+
surface: string;
|
|
241
|
+
content: string;
|
|
242
|
+
fabSlot: string;
|
|
243
|
+
};
|
|
244
|
+
vertical: {
|
|
245
|
+
root: string;
|
|
246
|
+
items: string;
|
|
247
|
+
collapsibleItems: string;
|
|
248
|
+
collapse: string;
|
|
249
|
+
clip: string;
|
|
250
|
+
toolbarSlot: string;
|
|
251
|
+
surface: string;
|
|
252
|
+
content: string;
|
|
253
|
+
fabSlot: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
color: {
|
|
257
|
+
standard: {
|
|
258
|
+
root: string;
|
|
259
|
+
};
|
|
260
|
+
vibrant: {
|
|
261
|
+
root: string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
/** Level 1 by default; turn it off over visually distinct content. */
|
|
265
|
+
elevated: {
|
|
266
|
+
true: {};
|
|
267
|
+
false: {};
|
|
268
|
+
};
|
|
269
|
+
exitEdge: {
|
|
270
|
+
readonly bottom: {
|
|
271
|
+
readonly root: "data-hidden:[transform:translateY(calc(100%+24px))]";
|
|
272
|
+
};
|
|
273
|
+
readonly top: {
|
|
274
|
+
readonly root: "data-hidden:[transform:translateY(calc(-100%-24px))]";
|
|
275
|
+
};
|
|
276
|
+
readonly start: {
|
|
277
|
+
readonly root: "data-hidden:[transform:translateX(calc(-100%-24px))] rtl:data-hidden:[transform:translateX(calc(100%+24px))]";
|
|
278
|
+
};
|
|
279
|
+
readonly end: {
|
|
280
|
+
readonly root: "data-hidden:[transform:translateX(calc(100%+24px))] rtl:data-hidden:[transform:translateX(calc(-100%-24px))]";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
/** Paints the container on the root (no FAB) or on the toolbar surface (with a FAB). */
|
|
284
|
+
hasFab: {
|
|
285
|
+
false: {
|
|
286
|
+
root: string[];
|
|
287
|
+
};
|
|
288
|
+
true: {
|
|
289
|
+
root: string;
|
|
290
|
+
surface: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/** The side of the toolbar the FAB sits on (logical: start / top or end / bottom). */
|
|
294
|
+
fabAt: {
|
|
295
|
+
start: {
|
|
296
|
+
toolbarSlot: string;
|
|
297
|
+
fabSlot: string;
|
|
298
|
+
};
|
|
299
|
+
end: {
|
|
300
|
+
toolbarSlot: string;
|
|
301
|
+
fabSlot: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
}, {
|
|
305
|
+
root: string[];
|
|
306
|
+
items: string;
|
|
307
|
+
collapsibleItems: string;
|
|
308
|
+
collapse: string[];
|
|
309
|
+
clip: string[];
|
|
310
|
+
toolbarSlot: string;
|
|
311
|
+
surface: string[];
|
|
312
|
+
content: string;
|
|
313
|
+
fabSlot: string;
|
|
314
|
+
fabBox: string[];
|
|
315
|
+
}>>;
|
|
316
|
+
/** Variant definitions for {@link ToolbarFab}. */
|
|
317
|
+
export declare const toolbarFabStyles: import("tailwind-variants").TVReturnType<{
|
|
318
|
+
color: {
|
|
319
|
+
standard: {};
|
|
320
|
+
vibrant: {};
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Like `Fab`: level 2 (Compose's toolbar FAB: hover 3, pressed 2), level 1 (hover 2,
|
|
324
|
+
* pressed 1), or level 0 for a flat FAB. The hover level never applies while pressed.
|
|
325
|
+
*/
|
|
326
|
+
elevation: {
|
|
327
|
+
default: {
|
|
328
|
+
root: string;
|
|
329
|
+
};
|
|
330
|
+
lowered: {
|
|
331
|
+
root: string;
|
|
332
|
+
};
|
|
333
|
+
flat: {
|
|
334
|
+
root: string;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
}, {
|
|
338
|
+
root: string[];
|
|
339
|
+
icon: string;
|
|
340
|
+
}, undefined, {
|
|
341
|
+
color: {
|
|
342
|
+
standard: {};
|
|
343
|
+
vibrant: {};
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* Like `Fab`: level 2 (Compose's toolbar FAB: hover 3, pressed 2), level 1 (hover 2,
|
|
347
|
+
* pressed 1), or level 0 for a flat FAB. The hover level never applies while pressed.
|
|
348
|
+
*/
|
|
349
|
+
elevation: {
|
|
350
|
+
default: {
|
|
351
|
+
root: string;
|
|
352
|
+
};
|
|
353
|
+
lowered: {
|
|
354
|
+
root: string;
|
|
355
|
+
};
|
|
356
|
+
flat: {
|
|
357
|
+
root: string;
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
}, {
|
|
361
|
+
root: string[];
|
|
362
|
+
icon: string;
|
|
363
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
364
|
+
color: {
|
|
365
|
+
standard: {};
|
|
366
|
+
vibrant: {};
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Like `Fab`: level 2 (Compose's toolbar FAB: hover 3, pressed 2), level 1 (hover 2,
|
|
370
|
+
* pressed 1), or level 0 for a flat FAB. The hover level never applies while pressed.
|
|
371
|
+
*/
|
|
372
|
+
elevation: {
|
|
373
|
+
default: {
|
|
374
|
+
root: string;
|
|
375
|
+
};
|
|
376
|
+
lowered: {
|
|
377
|
+
root: string;
|
|
378
|
+
};
|
|
379
|
+
flat: {
|
|
380
|
+
root: string;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
}, {
|
|
384
|
+
root: string[];
|
|
385
|
+
icon: string;
|
|
386
|
+
}>>;
|
|
387
|
+
/**
|
|
388
|
+
* The variants of {@link dockedToolbarStyles}, for building on its styles. They are the recipe's keys, not
|
|
389
|
+
* component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.
|
|
390
|
+
*/
|
|
391
|
+
export type DockedToolbarStyleProps = VariantProps<typeof dockedToolbarStyles>;
|
|
392
|
+
export type DockedToolbarArrangement = NonNullable<DockedToolbarStyleProps['arrangement']>;
|
|
393
|
+
export type DockedToolbarColor = NonNullable<DockedToolbarStyleProps['color']>;
|
|
394
|
+
/**
|
|
395
|
+
* The variants of {@link floatingToolbarStyles}, for building on its styles. They are the recipe's keys, not
|
|
396
|
+
* component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.
|
|
397
|
+
*/
|
|
398
|
+
export type FloatingToolbarStyleProps = VariantProps<typeof floatingToolbarStyles>;
|
|
399
|
+
export type FloatingToolbarColor = NonNullable<FloatingToolbarStyleProps['color']>;
|
|
400
|
+
export type ToolbarOrientation = NonNullable<FloatingToolbarStyleProps['orientation']>;
|
|
401
|
+
export type ToolbarExitEdge = NonNullable<FloatingToolbarStyleProps['exitEdge']>;
|
|
402
|
+
//#endregion
|
|
403
|
+
//# sourceMappingURL=toolbar-styles.d.ts.map
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { tv } from "../../utils/tv.js";
|
|
2
|
+
//#region src/components/toolbar/toolbar-styles.ts
|
|
3
|
+
const spatialFast = ["[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration)]", "[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing)]"];
|
|
4
|
+
/** The root's exit-on-scroll motion; each edge variant sets the hidden transform. */
|
|
5
|
+
const exitMotion = [
|
|
6
|
+
"data-hidden:invisible motion-reduce:data-hidden:opacity-0 motion-reduce:data-hidden:[transform:none]",
|
|
7
|
+
"[transition-property:transform,opacity,visibility]",
|
|
8
|
+
"[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-effects-fast-duration),max(var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-effects-fast-duration))]",
|
|
9
|
+
"[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-effects-fast-easing),linear]"
|
|
10
|
+
];
|
|
11
|
+
/** Where a hidden toolbar goes: past its edge plus the 24px margin of a vertical toolbar. */
|
|
12
|
+
const exitEdges = {
|
|
13
|
+
bottom: { root: "data-hidden:[transform:translateY(calc(100%+24px))]" },
|
|
14
|
+
top: { root: "data-hidden:[transform:translateY(calc(-100%-24px))]" },
|
|
15
|
+
start: { root: "data-hidden:[transform:translateX(calc(-100%-24px))] rtl:data-hidden:[transform:translateX(calc(100%+24px))]" },
|
|
16
|
+
end: { root: "data-hidden:[transform:translateX(calc(100%+24px))] rtl:data-hidden:[transform:translateX(calc(-100%-24px))]" }
|
|
17
|
+
};
|
|
18
|
+
/** Variant definitions for {@link DockedToolbar}; extend them to add variants. */
|
|
19
|
+
const dockedToolbarStyles = tv({
|
|
20
|
+
slots: { root: [
|
|
21
|
+
"flex h-[64px] w-full items-center bg-[var(--_md-comp-toolbar-docked-container-color)] ps-[16px] pe-[16px]",
|
|
22
|
+
"forced-colors:border-t forced-colors:border-solid forced-colors:border-[CanvasText]",
|
|
23
|
+
...exitMotion,
|
|
24
|
+
"data-hidden:[transform:translateY(100%)]"
|
|
25
|
+
] },
|
|
26
|
+
variants: {
|
|
27
|
+
arrangement: {
|
|
28
|
+
"space-between": { root: "justify-between" },
|
|
29
|
+
centered: { root: "justify-center gap-[32px]" }
|
|
30
|
+
},
|
|
31
|
+
color: {
|
|
32
|
+
standard: { root: "text-on-surface-variant" },
|
|
33
|
+
vibrant: { root: "text-on-primary-container [--md-comp-icon-button-icon-color:currentColor]" }
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
arrangement: "centered",
|
|
38
|
+
color: "standard"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
/** Variant definitions for {@link FloatingToolbar}; extend them to add colour styles. */
|
|
42
|
+
const floatingToolbarStyles = tv({
|
|
43
|
+
slots: {
|
|
44
|
+
root: ["inline-flex shrink-0 items-center justify-center [overflow-anchor:auto] **:[overflow-anchor:none]", ...exitMotion],
|
|
45
|
+
items: "flex shrink-0 items-center",
|
|
46
|
+
collapsibleItems: "",
|
|
47
|
+
collapse: [
|
|
48
|
+
"flex shrink-0",
|
|
49
|
+
"[transition-property:width,height]",
|
|
50
|
+
"[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-spatial-fast-duration)]",
|
|
51
|
+
"[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-spatial-fast-easing)]",
|
|
52
|
+
"data-collapsed:[transition-timing-function:var(--md-sys-motion-spring-effects-fast-easing),var(--md-sys-motion-spring-effects-fast-easing)]",
|
|
53
|
+
"data-resized:[transition-duration:0s]"
|
|
54
|
+
],
|
|
55
|
+
clip: [
|
|
56
|
+
"flex min-h-0 min-w-0 data-collapsed:[clip-path:inset(50%)]",
|
|
57
|
+
"[transition-property:clip-path] [transition-duration:0s]",
|
|
58
|
+
"data-collapsed:[transition-delay:var(--md-sys-motion-spring-effects-fast-duration)]",
|
|
59
|
+
"motion-reduce:data-collapsed:[transition-delay:0s]"
|
|
60
|
+
],
|
|
61
|
+
toolbarSlot: "flex shrink-0",
|
|
62
|
+
surface: [
|
|
63
|
+
"overflow-hidden rounded-[var(--_md-comp-toolbar-floating-container-shape)] opacity-100",
|
|
64
|
+
"forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]",
|
|
65
|
+
"data-collapsed:opacity-0 data-collapsed:shadow-elevation-0",
|
|
66
|
+
"data-resized:[transition-duration:0s]",
|
|
67
|
+
"[transition-property:width,height,box-shadow,opacity]",
|
|
68
|
+
"[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-effects-fast-duration)]",
|
|
69
|
+
"[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-effects-fast-easing)]",
|
|
70
|
+
"data-collapsed:[transition-timing-function:var(--md-sys-motion-spring-effects-fast-easing),var(--md-sys-motion-spring-effects-fast-easing),var(--md-sys-motion-spring-effects-fast-easing),var(--md-sys-motion-spring-effects-fast-easing)]"
|
|
71
|
+
],
|
|
72
|
+
content: "flex items-center",
|
|
73
|
+
fabSlot: "flex shrink-0 items-center",
|
|
74
|
+
fabBox: [
|
|
75
|
+
"flex size-[56px] shrink-0 data-collapsed:size-[80px]",
|
|
76
|
+
"[transition-property:width,height]",
|
|
77
|
+
...spatialFast
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
variants: {
|
|
81
|
+
orientation: {
|
|
82
|
+
horizontal: {
|
|
83
|
+
root: "min-h-[64px] flex-row",
|
|
84
|
+
items: "flex-row gap-[8px] ps-[4px] pe-[4px]",
|
|
85
|
+
collapsibleItems: "w-max shrink-0",
|
|
86
|
+
collapse: "data-collapsed:w-0",
|
|
87
|
+
clip: "w-full flex-row [clip-path:inset(-12px_-2px)]",
|
|
88
|
+
toolbarSlot: "h-[64px] w-(--m3-toolbar-size) flex-row",
|
|
89
|
+
surface: "h-[64px] w-(--m3-toolbar-size) shrink-0 data-collapsed:w-0",
|
|
90
|
+
content: "h-full w-max flex-row gap-[8px] ps-[12px] pe-[12px]",
|
|
91
|
+
fabSlot: "w-[56px] flex-row"
|
|
92
|
+
},
|
|
93
|
+
vertical: {
|
|
94
|
+
root: "min-w-[64px] flex-col",
|
|
95
|
+
items: "flex-col gap-[8px] pt-[4px] pb-[4px]",
|
|
96
|
+
collapsibleItems: "h-max shrink-0",
|
|
97
|
+
collapse: "flex-col data-collapsed:h-0",
|
|
98
|
+
clip: "h-full flex-col [clip-path:inset(-2px_-12px)]",
|
|
99
|
+
toolbarSlot: "h-(--m3-toolbar-size) w-[64px] flex-col",
|
|
100
|
+
surface: "h-(--m3-toolbar-size) w-[64px] shrink-0 data-collapsed:h-0",
|
|
101
|
+
content: "h-max w-full flex-col gap-[8px] pt-[12px] pb-[12px]",
|
|
102
|
+
fabSlot: "h-[56px] flex-col"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
color: {
|
|
106
|
+
standard: { root: "text-on-surface-variant" },
|
|
107
|
+
vibrant: { root: "text-on-primary-container [--md-comp-icon-button-icon-color:currentColor]" }
|
|
108
|
+
},
|
|
109
|
+
/** Level 1 by default; turn it off over visually distinct content. */
|
|
110
|
+
elevated: {
|
|
111
|
+
true: {},
|
|
112
|
+
false: {}
|
|
113
|
+
},
|
|
114
|
+
exitEdge: exitEdges,
|
|
115
|
+
/** Paints the container on the root (no FAB) or on the toolbar surface (with a FAB). */
|
|
116
|
+
hasFab: {
|
|
117
|
+
false: { root: ["rounded-[var(--_md-comp-toolbar-floating-container-shape)] bg-[var(--_md-comp-toolbar-floating-container-color)] p-[8px]", "forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]"] },
|
|
118
|
+
true: {
|
|
119
|
+
root: "gap-[8px]",
|
|
120
|
+
surface: "bg-[var(--_md-comp-toolbar-floating-container-color)]"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
/** The side of the toolbar the FAB sits on (logical: start / top or end / bottom). */
|
|
124
|
+
fabAt: {
|
|
125
|
+
start: {
|
|
126
|
+
toolbarSlot: "justify-start",
|
|
127
|
+
fabSlot: "justify-start"
|
|
128
|
+
},
|
|
129
|
+
end: {
|
|
130
|
+
toolbarSlot: "justify-end",
|
|
131
|
+
fabSlot: "justify-end"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
compoundVariants: [
|
|
136
|
+
{
|
|
137
|
+
hasFab: false,
|
|
138
|
+
elevated: true,
|
|
139
|
+
class: { root: "shadow-elevation-1" }
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
hasFab: true,
|
|
143
|
+
elevated: true,
|
|
144
|
+
class: { surface: "shadow-elevation-1" }
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
hasFab: true,
|
|
148
|
+
orientation: "horizontal",
|
|
149
|
+
class: { root: "h-[80px]" }
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
hasFab: true,
|
|
153
|
+
orientation: "vertical",
|
|
154
|
+
class: { root: "w-[80px]" }
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
hasFab: true,
|
|
158
|
+
fabAt: "start",
|
|
159
|
+
orientation: "horizontal",
|
|
160
|
+
class: { root: "flex-row-reverse" }
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
hasFab: true,
|
|
164
|
+
fabAt: "start",
|
|
165
|
+
orientation: "vertical",
|
|
166
|
+
class: { root: "flex-col-reverse" }
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
defaultVariants: {
|
|
170
|
+
orientation: "horizontal",
|
|
171
|
+
color: "standard",
|
|
172
|
+
elevated: true,
|
|
173
|
+
exitEdge: "bottom",
|
|
174
|
+
hasFab: false,
|
|
175
|
+
fabAt: "end"
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
/**
|
|
179
|
+
* Collapsing content is anchored like Compose's AnimatedVisibility: horizontally, leading
|
|
180
|
+
* content expands from the start and shrinks towards the end (trailing: the reverse);
|
|
181
|
+
* vertically, leading content stays at the bottom and trailing content at the top.
|
|
182
|
+
*/
|
|
183
|
+
const toolbarCollapseAnchor = tv({
|
|
184
|
+
base: "",
|
|
185
|
+
variants: {
|
|
186
|
+
slot: {
|
|
187
|
+
leading: "",
|
|
188
|
+
trailing: ""
|
|
189
|
+
},
|
|
190
|
+
orientation: {
|
|
191
|
+
horizontal: "",
|
|
192
|
+
vertical: ""
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
compoundVariants: [
|
|
196
|
+
{
|
|
197
|
+
slot: "leading",
|
|
198
|
+
orientation: "horizontal",
|
|
199
|
+
class: "justify-start data-collapsed:justify-end"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
slot: "trailing",
|
|
203
|
+
orientation: "horizontal",
|
|
204
|
+
class: "justify-end data-collapsed:justify-start"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
slot: "leading",
|
|
208
|
+
orientation: "vertical",
|
|
209
|
+
class: "justify-end"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
slot: "trailing",
|
|
213
|
+
orientation: "vertical",
|
|
214
|
+
class: "justify-start"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
});
|
|
218
|
+
/** Variant definitions for {@link ToolbarFab}. */
|
|
219
|
+
const toolbarFabStyles = tv({
|
|
220
|
+
slots: {
|
|
221
|
+
root: [
|
|
222
|
+
"inline-flex size-full cursor-pointer items-center justify-center select-none",
|
|
223
|
+
"rounded-[var(--_md-comp-toolbar-floating-fab-container-shape)]",
|
|
224
|
+
"bg-[var(--_md-comp-toolbar-floating-fab-container-color)] text-[color:var(--_md-comp-toolbar-floating-fab-icon-color)]",
|
|
225
|
+
"state-layer focus-ring container-motion",
|
|
226
|
+
"forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]"
|
|
227
|
+
],
|
|
228
|
+
icon: "inline-flex size-[24px] shrink-0 items-center justify-center [&>svg]:size-full"
|
|
229
|
+
},
|
|
230
|
+
variants: {
|
|
231
|
+
color: {
|
|
232
|
+
standard: {},
|
|
233
|
+
vibrant: {}
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
* Like `Fab`: level 2 (Compose's toolbar FAB: hover 3, pressed 2), level 1 (hover 2,
|
|
237
|
+
* pressed 1), or level 0 for a flat FAB. The hover level never applies while pressed.
|
|
238
|
+
*/
|
|
239
|
+
elevation: {
|
|
240
|
+
default: { root: "shadow-elevation-2 data-hovered:not-data-pressed:shadow-elevation-3" },
|
|
241
|
+
lowered: { root: "shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2" },
|
|
242
|
+
flat: { root: "shadow-elevation-0" }
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
defaultVariants: {
|
|
246
|
+
color: "standard",
|
|
247
|
+
elevation: "default"
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
//#endregion
|
|
251
|
+
export { dockedToolbarStyles, floatingToolbarStyles, toolbarCollapseAnchor, toolbarFabStyles };
|
|
252
|
+
|
|
253
|
+
//# sourceMappingURL=toolbar-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-styles.js","names":[],"sources":["../../../src/components/toolbar/toolbar-styles.ts"],"sourcesContent":["import { tv, type VariantProps } from '../../utils/tv';\n\n/*\n * Values follow the M3 Expressive spec and its tokens (the FloatingToolbar / DockedToolbar\n * token files), with Compose Material 3's FloatingToolbar.kt and AppBar.kt's\n * FlexibleBottomAppBar as the recipe.\n *\n * Docked: 64px, `surface-container`, square corners, no elevation, 16px at each end; items\n * sit 32px apart in the centre (the default) or spread out (space-between, for compact\n * windows).\n *\n * Floating: at least 64px across, full corners, 8px padding, `surface-container` (standard)\n * or `primary-container` (vibrant), level 1 by default (M3: floating toolbars have\n * elevation by default). Content is `on-surface-variant` (standard, the icon-button role)\n * or `on-primary-container` (vibrant). Compose's icon buttons take up 48px of layout while\n * ours take 40px (the 48px touch target is overlaid), so every content group adds 4px at\n * its ends and 8px between items, which reproduces Compose's spacing for icon buttons.\n * Leading / trailing content expands on the fast spatial spring and collapses on the fast\n * effects curve, its box's width (or height) in px between 0 and the content's measured\n * size, so the root's size follows it without transforms. Collapsed content stays in the tab order and\n * the accessibility tree, clipped to nothing, and focusing it expands the toolbar.\n *\n * Exiting on scroll (`visible={false}`): the toolbar slides off its edge on the fast\n * spatial spring (a `transform` set only while hidden, so it composes with Tailwind's\n * `translate-*` utilities); reduced motion fades it instead.\n *\n * With a FAB: the toolbar is level 1 expanded and level 0 collapsed, 8px from the FAB.\n * Collapsing shrinks the toolbar's width to 0 towards the FAB while the FAB grows from 56px\n * to 80px; the component keeps its expanded size, as Compose's layout does.\n *\n * Container colours and the floating toolbar's corners come from the component tokens\n * (`toolbar-tokens.ts`, `--md-comp-toolbar-docked-*` and `--md-comp-toolbar-floating-*`):\n * the roots carry `data-tokens`, the floating one also `data-color`. A consumer class still\n * wins in `cn()`.\n *\n * Every class is written out in full so Tailwind can find it.\n */\n\nconst spatialFast = [\n '[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration)]',\n '[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing)]',\n];\n\n/** The root's exit-on-scroll motion; each edge variant sets the hidden transform. */\nconst exitMotion = [\n 'data-hidden:invisible motion-reduce:data-hidden:opacity-0 motion-reduce:data-hidden:[transform:none]',\n '[transition-property:transform,opacity,visibility]',\n '[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-effects-fast-duration),max(var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-effects-fast-duration))]',\n '[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-effects-fast-easing),linear]',\n];\n\n/** Where a hidden toolbar goes: past its edge plus the 24px margin of a vertical toolbar. */\nconst exitEdges = {\n bottom: { root: 'data-hidden:[transform:translateY(calc(100%+24px))]' },\n top: { root: 'data-hidden:[transform:translateY(calc(-100%-24px))]' },\n start: {\n root: 'data-hidden:[transform:translateX(calc(-100%-24px))] rtl:data-hidden:[transform:translateX(calc(100%+24px))]',\n },\n end: {\n root: 'data-hidden:[transform:translateX(calc(100%+24px))] rtl:data-hidden:[transform:translateX(calc(-100%-24px))]',\n },\n} as const;\n\n/** Variant definitions for {@link DockedToolbar}; extend them to add variants. */\nexport const dockedToolbarStyles = tv({\n slots: {\n root: [\n 'flex h-[64px] w-full items-center bg-[var(--_md-comp-toolbar-docked-container-color)] ps-[16px] pe-[16px]',\n // Forced colours paint the container as Canvas: a CanvasText line marks its top edge\n // against the page (2026-10-15).\n 'forced-colors:border-t forced-colors:border-solid forced-colors:border-[CanvasText]',\n ...exitMotion,\n 'data-hidden:[transform:translateY(100%)]',\n ],\n },\n variants: {\n arrangement: {\n 'space-between': { root: 'justify-between' },\n centered: { root: 'justify-center gap-[32px]' },\n },\n // As the floating toolbar's (2026-10-15): vibrant is primary-container (its own token,\n // scoped by `data-color`, 2026-10-17), and standard icon buttons take its content colour.\n color: {\n standard: { root: 'text-on-surface-variant' },\n vibrant: {\n root: 'text-on-primary-container [--md-comp-icon-button-icon-color:currentColor]',\n },\n },\n },\n defaultVariants: { arrangement: 'centered', color: 'standard' },\n});\n\n/** Variant definitions for {@link FloatingToolbar}; extend them to add colour styles. */\nexport const floatingToolbarStyles = tv({\n slots: {\n // Collapsing and expanding resize its parts in place, so none of them is ever the\n // browser's scroll anchor (which would scroll the page to follow it). The root itself\n // may be: its start edge stays put while it resizes, whereas excluding it hands the\n // anchor to the content after it, which moves by the whole change (2026-10-15).\n root: [\n 'inline-flex shrink-0 items-center justify-center [overflow-anchor:auto] **:[overflow-anchor:none]',\n ...exitMotion,\n ],\n // A group of items (main, leading or trailing content).\n items: 'flex shrink-0 items-center',\n collapsibleItems: '',\n // Collapsible leading / trailing content: a box that animates its width (or height) in\n // px between 0 and the content's measured size (2026-10-17, as Compose's\n // `expandHorizontally`), so expanding shows the spatial spring's overshoot, which a\n // 0fr ↔ 1fr track couldn't. Collapsing uses the effects spring, which doesn't\n // overshoot, because a size can't overshoot below 0 and would bounce back open by a\n // pixel or two. Before it is measured (on the server) the box takes the content's\n // natural size, or 0 collapsed. Collapsed content stays focusable and in the\n // accessibility tree.\n collapse: [\n 'flex shrink-0',\n '[transition-property:width,height]',\n '[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-spatial-fast-duration)]',\n '[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-spatial-fast-easing)]',\n 'data-collapsed:[transition-timing-function:var(--md-sys-motion-spring-effects-fast-easing),var(--md-sys-motion-spring-effects-fast-easing)]',\n // The content itself changed size (a web font arriving): follow it at once.\n 'data-resized:[transition-duration:0s]',\n ],\n // Clips the content horizontally (or vertically) while it collapses, leaving room for\n // focus rings and touch targets on the other axis. Once the track has closed (a delay\n // as long as the collapse) it clips everything, so no sliver stays visible.\n clip: [\n 'flex min-h-0 min-w-0 data-collapsed:[clip-path:inset(50%)]',\n '[transition-property:clip-path] [transition-duration:0s]',\n 'data-collapsed:[transition-delay:var(--md-sys-motion-spring-effects-fast-duration)]',\n // Under reduced motion the track closes at once, and so does the clip.\n 'motion-reduce:data-collapsed:[transition-delay:0s]',\n ],\n // FAB layout: the toolbar's slot keeps the expanded width while the surface shrinks,\n // collapsing on the effects spring for the same reason as `collapse`.\n toolbarSlot: 'flex shrink-0',\n surface: [\n 'overflow-hidden rounded-[var(--_md-comp-toolbar-floating-container-shape)] opacity-100',\n // Forced colours drop the container and its shadow: a 1px CanvasText boundary instead,\n // as menus and FABs (2026-10-15).\n 'forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]',\n 'data-collapsed:opacity-0 data-collapsed:shadow-elevation-0',\n 'data-resized:[transition-duration:0s]',\n // Width, height and shadow move on the spatial spring; the surface also fades on the\n // fast effects spring, so the last pixels of a collapse never show as a thin line.\n // Collapsed, it stays focusable and in the accessibility tree, clipped to nothing.\n '[transition-property:width,height,box-shadow,opacity]',\n '[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-effects-fast-duration)]',\n '[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-effects-fast-easing)]',\n 'data-collapsed:[transition-timing-function:var(--md-sys-motion-spring-effects-fast-easing),var(--md-sys-motion-spring-effects-fast-easing),var(--md-sys-motion-spring-effects-fast-easing),var(--md-sys-motion-spring-effects-fast-easing)]',\n ],\n content: 'flex items-center',\n fabSlot: 'flex shrink-0 items-center',\n fabBox: [\n 'flex size-[56px] shrink-0 data-collapsed:size-[80px]',\n '[transition-property:width,height]',\n ...spatialFast,\n ],\n },\n variants: {\n orientation: {\n horizontal: {\n root: 'min-h-[64px] flex-row',\n items: 'flex-row gap-[8px] ps-[4px] pe-[4px]',\n // Collapsible content keeps its natural width while its box closes (it's measured).\n collapsibleItems: 'w-max shrink-0',\n collapse: 'data-collapsed:w-0',\n clip: 'w-full flex-row [clip-path:inset(-12px_-2px)]',\n toolbarSlot: 'h-[64px] w-(--m3-toolbar-size) flex-row',\n surface: 'h-[64px] w-(--m3-toolbar-size) shrink-0 data-collapsed:w-0',\n content: 'h-full w-max flex-row gap-[8px] ps-[12px] pe-[12px]',\n fabSlot: 'w-[56px] flex-row',\n },\n vertical: {\n root: 'min-w-[64px] flex-col',\n items: 'flex-col gap-[8px] pt-[4px] pb-[4px]',\n collapsibleItems: 'h-max shrink-0',\n collapse: 'flex-col data-collapsed:h-0',\n clip: 'h-full flex-col [clip-path:inset(-2px_-12px)]',\n toolbarSlot: 'h-(--m3-toolbar-size) w-[64px] flex-col',\n surface: 'h-(--m3-toolbar-size) w-[64px] shrink-0 data-collapsed:h-0',\n content: 'h-max w-full flex-col gap-[8px] pt-[12px] pb-[12px]',\n fabSlot: 'h-[56px] flex-col',\n },\n },\n color: {\n standard: { root: 'text-on-surface-variant' },\n // Standard and outlined icon buttons take the vibrant content colour.\n vibrant: {\n root: 'text-on-primary-container [--md-comp-icon-button-icon-color:currentColor]',\n },\n },\n /** Level 1 by default; turn it off over visually distinct content. */\n elevated: { true: {}, false: {} },\n exitEdge: exitEdges,\n /** Paints the container on the root (no FAB) or on the toolbar surface (with a FAB). */\n hasFab: {\n false: {\n root: [\n 'rounded-[var(--_md-comp-toolbar-floating-container-shape)] bg-[var(--_md-comp-toolbar-floating-container-color)] p-[8px]',\n 'forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]',\n ],\n },\n true: {\n root: 'gap-[8px]',\n surface: 'bg-[var(--_md-comp-toolbar-floating-container-color)]',\n },\n },\n /** The side of the toolbar the FAB sits on (logical: start / top or end / bottom). */\n fabAt: {\n start: { toolbarSlot: 'justify-start', fabSlot: 'justify-start' },\n end: { toolbarSlot: 'justify-end', fabSlot: 'justify-end' },\n },\n },\n compoundVariants: [\n { hasFab: false, elevated: true, class: { root: 'shadow-elevation-1' } },\n // With a FAB, the toolbar's own surface is level 1 expanded and level 0 collapsed.\n { hasFab: true, elevated: true, class: { surface: 'shadow-elevation-1' } },\n // Fixed at the FAB's largest size, as Compose's layout: the FAB's spring overshoot\n // (80 → 82px) spills over the edges instead of resizing the root and moving the page.\n { hasFab: true, orientation: 'horizontal', class: { root: 'h-[80px]' } },\n { hasFab: true, orientation: 'vertical', class: { root: 'w-[80px]' } },\n // The FAB comes first visually but after the toolbar in reading order, as in Compose.\n {\n hasFab: true,\n fabAt: 'start',\n orientation: 'horizontal',\n class: { root: 'flex-row-reverse' },\n },\n { hasFab: true, fabAt: 'start', orientation: 'vertical', class: { root: 'flex-col-reverse' } },\n ],\n defaultVariants: {\n orientation: 'horizontal',\n color: 'standard',\n elevated: true,\n exitEdge: 'bottom',\n hasFab: false,\n fabAt: 'end',\n },\n});\n\n/**\n * Collapsing content is anchored like Compose's AnimatedVisibility: horizontally, leading\n * content expands from the start and shrinks towards the end (trailing: the reverse);\n * vertically, leading content stays at the bottom and trailing content at the top.\n */\nexport const toolbarCollapseAnchor = tv({\n base: '',\n variants: {\n slot: { leading: '', trailing: '' },\n orientation: { horizontal: '', vertical: '' },\n },\n compoundVariants: [\n {\n slot: 'leading',\n orientation: 'horizontal',\n class: 'justify-start data-collapsed:justify-end',\n },\n {\n slot: 'trailing',\n orientation: 'horizontal',\n class: 'justify-end data-collapsed:justify-start',\n },\n { slot: 'leading', orientation: 'vertical', class: 'justify-end' },\n { slot: 'trailing', orientation: 'vertical', class: 'justify-start' },\n ],\n});\n\n/** Variant definitions for {@link ToolbarFab}. */\nexport const toolbarFabStyles = tv({\n slots: {\n root: [\n 'inline-flex size-full cursor-pointer items-center justify-center select-none',\n 'rounded-[var(--_md-comp-toolbar-floating-fab-container-shape)]',\n 'bg-[var(--_md-comp-toolbar-floating-fab-container-color)] text-[color:var(--_md-comp-toolbar-floating-fab-icon-color)]',\n 'state-layer focus-ring container-motion',\n 'forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]',\n ],\n icon: 'inline-flex size-[24px] shrink-0 items-center justify-center [&>svg]:size-full',\n },\n variants: {\n // The colours come from the FAB's tokens (`toolbarFabTokenSet`), picked by `data-color`.\n color: { standard: {}, vibrant: {} },\n /**\n * Like `Fab`: level 2 (Compose's toolbar FAB: hover 3, pressed 2), level 1 (hover 2,\n * pressed 1), or level 0 for a flat FAB. The hover level never applies while pressed.\n */\n elevation: {\n default: { root: 'shadow-elevation-2 data-hovered:not-data-pressed:shadow-elevation-3' },\n lowered: { root: 'shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2' },\n flat: { root: 'shadow-elevation-0' },\n },\n },\n defaultVariants: { color: 'standard', elevation: 'default' },\n});\n\n/**\n * The variants of {@link dockedToolbarStyles}, 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 DockedToolbarStyleProps = VariantProps<typeof dockedToolbarStyles>;\nexport type DockedToolbarArrangement = NonNullable<DockedToolbarStyleProps['arrangement']>;\nexport type DockedToolbarColor = NonNullable<DockedToolbarStyleProps['color']>;\n/**\n * The variants of {@link floatingToolbarStyles}, 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 FloatingToolbarStyleProps = VariantProps<typeof floatingToolbarStyles>;\nexport type FloatingToolbarColor = NonNullable<FloatingToolbarStyleProps['color']>;\nexport type ToolbarOrientation = NonNullable<FloatingToolbarStyleProps['orientation']>;\nexport type ToolbarExitEdge = NonNullable<FloatingToolbarStyleProps['exitEdge']>;\n"],"mappings":";;AAsCA,MAAM,cAAc,CAClB,2EACA,8EACF;;AAGA,MAAM,aAAa;CACjB;CACA;CACA;CACA;AACF;;AAGA,MAAM,YAAY;CAChB,QAAQ,EAAE,MAAM,sDAAsD;CACtE,KAAK,EAAE,MAAM,uDAAuD;CACpE,OAAO,EACL,MAAM,+GACR;CACA,KAAK,EACH,MAAM,+GACR;AACF;;AAGA,MAAa,sBAAsB,GAAG;CACpC,OAAO,EACL,MAAM;EACJ;EAGA;EACA,GAAG;EACH;CACF,EACF;CACA,UAAU;EACR,aAAa;GACX,iBAAiB,EAAE,MAAM,kBAAkB;GAC3C,UAAU,EAAE,MAAM,4BAA4B;EAChD;EAGA,OAAO;GACL,UAAU,EAAE,MAAM,0BAA0B;GAC5C,SAAS,EACP,MAAM,4EACR;EACF;CACF;CACA,iBAAiB;EAAE,aAAa;EAAY,OAAO;CAAW;AAChE,CAAC;;AAGD,MAAa,wBAAwB,GAAG;CACtC,OAAO;EAKL,MAAM,CACJ,qGACA,GAAG,UACL;EAEA,OAAO;EACP,kBAAkB;EASlB,UAAU;GACR;GACA;GACA;GACA;GACA;GAEA;EACF;EAIA,MAAM;GACJ;GACA;GACA;GAEA;EACF;EAGA,aAAa;EACb,SAAS;GACP;GAGA;GACA;GACA;GAIA;GACA;GACA;GACA;EACF;EACA,SAAS;EACT,SAAS;EACT,QAAQ;GACN;GACA;GACA,GAAG;EACL;CACF;CACA,UAAU;EACR,aAAa;GACX,YAAY;IACV,MAAM;IACN,OAAO;IAEP,kBAAkB;IAClB,UAAU;IACV,MAAM;IACN,aAAa;IACb,SAAS;IACT,SAAS;IACT,SAAS;GACX;GACA,UAAU;IACR,MAAM;IACN,OAAO;IACP,kBAAkB;IAClB,UAAU;IACV,MAAM;IACN,aAAa;IACb,SAAS;IACT,SAAS;IACT,SAAS;GACX;EACF;EACA,OAAO;GACL,UAAU,EAAE,MAAM,0BAA0B;GAE5C,SAAS,EACP,MAAM,4EACR;EACF;;EAEA,UAAU;GAAE,MAAM,CAAC;GAAG,OAAO,CAAC;EAAE;EAChC,UAAU;;EAEV,QAAQ;GACN,OAAO,EACL,MAAM,CACJ,4HACA,mFACF,EACF;GACA,MAAM;IACJ,MAAM;IACN,SAAS;GACX;EACF;;EAEA,OAAO;GACL,OAAO;IAAE,aAAa;IAAiB,SAAS;GAAgB;GAChE,KAAK;IAAE,aAAa;IAAe,SAAS;GAAc;EAC5D;CACF;CACA,kBAAkB;EAChB;GAAE,QAAQ;GAAO,UAAU;GAAM,OAAO,EAAE,MAAM,qBAAqB;EAAE;EAEvE;GAAE,QAAQ;GAAM,UAAU;GAAM,OAAO,EAAE,SAAS,qBAAqB;EAAE;EAGzE;GAAE,QAAQ;GAAM,aAAa;GAAc,OAAO,EAAE,MAAM,WAAW;EAAE;EACvE;GAAE,QAAQ;GAAM,aAAa;GAAY,OAAO,EAAE,MAAM,WAAW;EAAE;EAErE;GACE,QAAQ;GACR,OAAO;GACP,aAAa;GACb,OAAO,EAAE,MAAM,mBAAmB;EACpC;EACA;GAAE,QAAQ;GAAM,OAAO;GAAS,aAAa;GAAY,OAAO,EAAE,MAAM,mBAAmB;EAAE;CAC/F;CACA,iBAAiB;EACf,aAAa;EACb,OAAO;EACP,UAAU;EACV,UAAU;EACV,QAAQ;EACR,OAAO;CACT;AACF,CAAC;;;;;;AAOD,MAAa,wBAAwB,GAAG;CACtC,MAAM;CACN,UAAU;EACR,MAAM;GAAE,SAAS;GAAI,UAAU;EAAG;EAClC,aAAa;GAAE,YAAY;GAAI,UAAU;EAAG;CAC9C;CACA,kBAAkB;EAChB;GACE,MAAM;GACN,aAAa;GACb,OAAO;EACT;EACA;GACE,MAAM;GACN,aAAa;GACb,OAAO;EACT;EACA;GAAE,MAAM;GAAW,aAAa;GAAY,OAAO;EAAc;EACjE;GAAE,MAAM;GAAY,aAAa;GAAY,OAAO;EAAgB;CACtE;AACF,CAAC;;AAGD,MAAa,mBAAmB,GAAG;CACjC,OAAO;EACL,MAAM;GACJ;GACA;GACA;GACA;GACA;EACF;EACA,MAAM;CACR;CACA,UAAU;EAER,OAAO;GAAE,UAAU,CAAC;GAAG,SAAS,CAAC;EAAE;;;;;EAKnC,WAAW;GACT,SAAS,EAAE,MAAM,sEAAsE;GACvF,SAAS,EAAE,MAAM,sEAAsE;GACvF,MAAM,EAAE,MAAM,qBAAqB;EACrC;CACF;CACA,iBAAiB;EAAE,OAAO;EAAY,WAAW;CAAU;AAC7D,CAAC"}
|