@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,286 @@
|
|
|
1
|
+
import { VariantProps } from "../../utils/tv.js";
|
|
2
|
+
//#region src/components/fab/fab-styles.d.ts
|
|
3
|
+
/** Variant definitions for {@link Fab}; extend them to add colour styles. */
|
|
4
|
+
export declare const fabStyles: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
color: {
|
|
6
|
+
readonly 'primary-container': {};
|
|
7
|
+
readonly 'secondary-container': {};
|
|
8
|
+
readonly 'tertiary-container': {};
|
|
9
|
+
readonly primary: {};
|
|
10
|
+
readonly secondary: {};
|
|
11
|
+
readonly tertiary: {};
|
|
12
|
+
};
|
|
13
|
+
elevation: {
|
|
14
|
+
readonly default: {
|
|
15
|
+
readonly root: "shadow-elevation-3 data-hovered:not-data-pressed:shadow-elevation-4";
|
|
16
|
+
};
|
|
17
|
+
readonly lowered: {
|
|
18
|
+
readonly root: "shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2";
|
|
19
|
+
};
|
|
20
|
+
readonly flat: {
|
|
21
|
+
readonly root: "shadow-elevation-0";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
default: {
|
|
26
|
+
root: string;
|
|
27
|
+
icon: string;
|
|
28
|
+
};
|
|
29
|
+
md: {
|
|
30
|
+
root: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
};
|
|
33
|
+
lg: {
|
|
34
|
+
root: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
root: string[];
|
|
40
|
+
icon: string;
|
|
41
|
+
}, undefined, {
|
|
42
|
+
color: {
|
|
43
|
+
readonly 'primary-container': {};
|
|
44
|
+
readonly 'secondary-container': {};
|
|
45
|
+
readonly 'tertiary-container': {};
|
|
46
|
+
readonly primary: {};
|
|
47
|
+
readonly secondary: {};
|
|
48
|
+
readonly tertiary: {};
|
|
49
|
+
};
|
|
50
|
+
elevation: {
|
|
51
|
+
readonly default: {
|
|
52
|
+
readonly root: "shadow-elevation-3 data-hovered:not-data-pressed:shadow-elevation-4";
|
|
53
|
+
};
|
|
54
|
+
readonly lowered: {
|
|
55
|
+
readonly root: "shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2";
|
|
56
|
+
};
|
|
57
|
+
readonly flat: {
|
|
58
|
+
readonly root: "shadow-elevation-0";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
size: {
|
|
62
|
+
default: {
|
|
63
|
+
root: string;
|
|
64
|
+
icon: string;
|
|
65
|
+
};
|
|
66
|
+
md: {
|
|
67
|
+
root: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
};
|
|
70
|
+
lg: {
|
|
71
|
+
root: string;
|
|
72
|
+
icon: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}, {
|
|
76
|
+
root: string[];
|
|
77
|
+
icon: string;
|
|
78
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
79
|
+
color: {
|
|
80
|
+
readonly 'primary-container': {};
|
|
81
|
+
readonly 'secondary-container': {};
|
|
82
|
+
readonly 'tertiary-container': {};
|
|
83
|
+
readonly primary: {};
|
|
84
|
+
readonly secondary: {};
|
|
85
|
+
readonly tertiary: {};
|
|
86
|
+
};
|
|
87
|
+
elevation: {
|
|
88
|
+
readonly default: {
|
|
89
|
+
readonly root: "shadow-elevation-3 data-hovered:not-data-pressed:shadow-elevation-4";
|
|
90
|
+
};
|
|
91
|
+
readonly lowered: {
|
|
92
|
+
readonly root: "shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2";
|
|
93
|
+
};
|
|
94
|
+
readonly flat: {
|
|
95
|
+
readonly root: "shadow-elevation-0";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
size: {
|
|
99
|
+
default: {
|
|
100
|
+
root: string;
|
|
101
|
+
icon: string;
|
|
102
|
+
};
|
|
103
|
+
md: {
|
|
104
|
+
root: string;
|
|
105
|
+
icon: string;
|
|
106
|
+
};
|
|
107
|
+
lg: {
|
|
108
|
+
root: string;
|
|
109
|
+
icon: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}, {
|
|
113
|
+
root: string[];
|
|
114
|
+
icon: string;
|
|
115
|
+
}>>;
|
|
116
|
+
/** Variant definitions for {@link ExtendedFab}. */
|
|
117
|
+
export declare const extendedFabStyles: import("tailwind-variants").TVReturnType<{
|
|
118
|
+
color: {
|
|
119
|
+
readonly 'primary-container': {};
|
|
120
|
+
readonly 'secondary-container': {};
|
|
121
|
+
readonly 'tertiary-container': {};
|
|
122
|
+
readonly primary: {};
|
|
123
|
+
readonly secondary: {};
|
|
124
|
+
readonly tertiary: {};
|
|
125
|
+
};
|
|
126
|
+
elevation: {
|
|
127
|
+
readonly default: {
|
|
128
|
+
readonly root: "shadow-elevation-3 data-hovered:not-data-pressed:shadow-elevation-4";
|
|
129
|
+
};
|
|
130
|
+
readonly lowered: {
|
|
131
|
+
readonly root: "shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2";
|
|
132
|
+
};
|
|
133
|
+
readonly flat: {
|
|
134
|
+
readonly root: "shadow-elevation-0";
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
size: {
|
|
138
|
+
sm: {
|
|
139
|
+
root: string;
|
|
140
|
+
icon: string;
|
|
141
|
+
text: string;
|
|
142
|
+
};
|
|
143
|
+
md: {
|
|
144
|
+
root: string;
|
|
145
|
+
icon: string;
|
|
146
|
+
text: string;
|
|
147
|
+
};
|
|
148
|
+
lg: {
|
|
149
|
+
root: string;
|
|
150
|
+
content: string[];
|
|
151
|
+
icon: string;
|
|
152
|
+
text: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
hasIcon: {
|
|
156
|
+
true: {};
|
|
157
|
+
false: {
|
|
158
|
+
text: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
}, {
|
|
162
|
+
root: string[];
|
|
163
|
+
content: string;
|
|
164
|
+
icon: string;
|
|
165
|
+
collapse: string[];
|
|
166
|
+
label: string;
|
|
167
|
+
text: string;
|
|
168
|
+
}, undefined, {
|
|
169
|
+
color: {
|
|
170
|
+
readonly 'primary-container': {};
|
|
171
|
+
readonly 'secondary-container': {};
|
|
172
|
+
readonly 'tertiary-container': {};
|
|
173
|
+
readonly primary: {};
|
|
174
|
+
readonly secondary: {};
|
|
175
|
+
readonly tertiary: {};
|
|
176
|
+
};
|
|
177
|
+
elevation: {
|
|
178
|
+
readonly default: {
|
|
179
|
+
readonly root: "shadow-elevation-3 data-hovered:not-data-pressed:shadow-elevation-4";
|
|
180
|
+
};
|
|
181
|
+
readonly lowered: {
|
|
182
|
+
readonly root: "shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2";
|
|
183
|
+
};
|
|
184
|
+
readonly flat: {
|
|
185
|
+
readonly root: "shadow-elevation-0";
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
size: {
|
|
189
|
+
sm: {
|
|
190
|
+
root: string;
|
|
191
|
+
icon: string;
|
|
192
|
+
text: string;
|
|
193
|
+
};
|
|
194
|
+
md: {
|
|
195
|
+
root: string;
|
|
196
|
+
icon: string;
|
|
197
|
+
text: string;
|
|
198
|
+
};
|
|
199
|
+
lg: {
|
|
200
|
+
root: string;
|
|
201
|
+
content: string[];
|
|
202
|
+
icon: string;
|
|
203
|
+
text: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
hasIcon: {
|
|
207
|
+
true: {};
|
|
208
|
+
false: {
|
|
209
|
+
text: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
}, {
|
|
213
|
+
root: string[];
|
|
214
|
+
content: string;
|
|
215
|
+
icon: string;
|
|
216
|
+
collapse: string[];
|
|
217
|
+
label: string;
|
|
218
|
+
text: string;
|
|
219
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
220
|
+
color: {
|
|
221
|
+
readonly 'primary-container': {};
|
|
222
|
+
readonly 'secondary-container': {};
|
|
223
|
+
readonly 'tertiary-container': {};
|
|
224
|
+
readonly primary: {};
|
|
225
|
+
readonly secondary: {};
|
|
226
|
+
readonly tertiary: {};
|
|
227
|
+
};
|
|
228
|
+
elevation: {
|
|
229
|
+
readonly default: {
|
|
230
|
+
readonly root: "shadow-elevation-3 data-hovered:not-data-pressed:shadow-elevation-4";
|
|
231
|
+
};
|
|
232
|
+
readonly lowered: {
|
|
233
|
+
readonly root: "shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2";
|
|
234
|
+
};
|
|
235
|
+
readonly flat: {
|
|
236
|
+
readonly root: "shadow-elevation-0";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
size: {
|
|
240
|
+
sm: {
|
|
241
|
+
root: string;
|
|
242
|
+
icon: string;
|
|
243
|
+
text: string;
|
|
244
|
+
};
|
|
245
|
+
md: {
|
|
246
|
+
root: string;
|
|
247
|
+
icon: string;
|
|
248
|
+
text: string;
|
|
249
|
+
};
|
|
250
|
+
lg: {
|
|
251
|
+
root: string;
|
|
252
|
+
content: string[];
|
|
253
|
+
icon: string;
|
|
254
|
+
text: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
hasIcon: {
|
|
258
|
+
true: {};
|
|
259
|
+
false: {
|
|
260
|
+
text: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
}, {
|
|
264
|
+
root: string[];
|
|
265
|
+
content: string;
|
|
266
|
+
icon: string;
|
|
267
|
+
collapse: string[];
|
|
268
|
+
label: string;
|
|
269
|
+
text: string;
|
|
270
|
+
}>>;
|
|
271
|
+
/**
|
|
272
|
+
* The variants of {@link fabStyles}, for building on its styles. They are the recipe's keys, not
|
|
273
|
+
* component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.
|
|
274
|
+
*/
|
|
275
|
+
export type FabStyleProps = VariantProps<typeof fabStyles>;
|
|
276
|
+
/**
|
|
277
|
+
* The variants of {@link extendedFabStyles}, for building on its styles. They are the recipe's keys, not
|
|
278
|
+
* component props: their names (`hasIcon`, `isOpen`…) follow the classes and may change.
|
|
279
|
+
*/
|
|
280
|
+
export type ExtendedFabStyleProps = VariantProps<typeof extendedFabStyles>;
|
|
281
|
+
export type FabColor = NonNullable<FabStyleProps['color']>;
|
|
282
|
+
export type FabSize = NonNullable<FabStyleProps['size']>;
|
|
283
|
+
export type FabElevation = NonNullable<FabStyleProps['elevation']>;
|
|
284
|
+
export type ExtendedFabSize = NonNullable<ExtendedFabStyleProps['size']>;
|
|
285
|
+
//#endregion
|
|
286
|
+
//# sourceMappingURL=fab-styles.d.ts.map
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { tv } from "../../utils/tv.js";
|
|
2
|
+
//#region src/components/fab/fab-styles.ts
|
|
3
|
+
/**
|
|
4
|
+
* Colour styles: the three tonal containers (Compose tokens) and the three vibrant roles.
|
|
5
|
+
* Their colours are the tokens' defaults; extend them with classes to add a style.
|
|
6
|
+
*/
|
|
7
|
+
const colors = {
|
|
8
|
+
"primary-container": {},
|
|
9
|
+
"secondary-container": {},
|
|
10
|
+
"tertiary-container": {},
|
|
11
|
+
primary: {},
|
|
12
|
+
secondary: {},
|
|
13
|
+
tertiary: {}
|
|
14
|
+
};
|
|
15
|
+
const elevation = {
|
|
16
|
+
default: { root: "shadow-elevation-3 data-hovered:not-data-pressed:shadow-elevation-4" },
|
|
17
|
+
lowered: { root: "shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2" },
|
|
18
|
+
flat: { root: "shadow-elevation-0" }
|
|
19
|
+
};
|
|
20
|
+
const base = [
|
|
21
|
+
"inline-flex shrink-0 cursor-pointer items-center justify-center align-middle select-none",
|
|
22
|
+
"font-plain whitespace-nowrap",
|
|
23
|
+
"state-layer focus-ring",
|
|
24
|
+
"forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]",
|
|
25
|
+
"data-hidden:invisible data-hidden:[transform:scale(0.2)] data-hidden:opacity-0",
|
|
26
|
+
"data-appear:starting:[transform:scale(0.2)] data-appear:starting:opacity-0",
|
|
27
|
+
"motion-reduce:data-hidden:[transform:none] motion-reduce:data-appear:starting:[transform:none]",
|
|
28
|
+
"[--m3-transition-property:background-color,color,box-shadow,transform,opacity,visibility]",
|
|
29
|
+
"[--m3-transition-duration:var(--md-sys-motion-spring-effects-fast-duration),var(--md-sys-motion-spring-effects-fast-duration),var(--md-sys-motion-spring-effects-fast-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))]",
|
|
30
|
+
"[--m3-transition-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),var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-effects-fast-easing),linear]",
|
|
31
|
+
"[--m3-transition-delay:0s,0s,0s,0s,0s,0s]"
|
|
32
|
+
];
|
|
33
|
+
/** Variant definitions for {@link Fab}; extend them to add colour styles. */
|
|
34
|
+
const fabStyles = tv({
|
|
35
|
+
slots: {
|
|
36
|
+
root: [
|
|
37
|
+
...base,
|
|
38
|
+
"bg-[var(--_md-comp-fab-container-color)] text-[color:var(--_md-comp-fab-icon-color)]",
|
|
39
|
+
"rounded-[var(--_md-comp-fab-container-shape)]"
|
|
40
|
+
],
|
|
41
|
+
icon: "inline-flex shrink-0 items-center justify-center [&>svg]:size-full"
|
|
42
|
+
},
|
|
43
|
+
variants: {
|
|
44
|
+
color: colors,
|
|
45
|
+
elevation,
|
|
46
|
+
size: {
|
|
47
|
+
default: {
|
|
48
|
+
root: "size-[56px]",
|
|
49
|
+
icon: "size-[24px]"
|
|
50
|
+
},
|
|
51
|
+
md: {
|
|
52
|
+
root: "size-[80px]",
|
|
53
|
+
icon: "size-[28px]"
|
|
54
|
+
},
|
|
55
|
+
lg: {
|
|
56
|
+
root: "size-[96px]",
|
|
57
|
+
icon: "size-[32px]"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
defaultVariants: {
|
|
62
|
+
color: "primary-container",
|
|
63
|
+
elevation: "default",
|
|
64
|
+
size: "default"
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
/** Variant definitions for {@link ExtendedFab}. */
|
|
68
|
+
const extendedFabStyles = tv({
|
|
69
|
+
slots: {
|
|
70
|
+
root: [
|
|
71
|
+
...base,
|
|
72
|
+
"[overflow-anchor:none]",
|
|
73
|
+
"bg-[var(--_md-comp-extended-fab-container-color)]",
|
|
74
|
+
"text-[color:var(--_md-comp-extended-fab-label-text-color)]",
|
|
75
|
+
"rounded-[var(--_md-comp-extended-fab-container-shape)]"
|
|
76
|
+
],
|
|
77
|
+
content: "inline-flex items-center",
|
|
78
|
+
icon: "inline-flex shrink-0 items-center justify-center [&>svg]:size-full",
|
|
79
|
+
collapse: [
|
|
80
|
+
"flex overflow-hidden opacity-100",
|
|
81
|
+
"[transition-property:width,opacity]",
|
|
82
|
+
"[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-effects-fast-duration)]",
|
|
83
|
+
"[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-effects-fast-easing)]",
|
|
84
|
+
"data-collapsed:w-0 data-collapsed:opacity-0",
|
|
85
|
+
"data-resized:[transition-duration:0s]"
|
|
86
|
+
],
|
|
87
|
+
label: "w-max shrink-0",
|
|
88
|
+
text: ""
|
|
89
|
+
},
|
|
90
|
+
variants: {
|
|
91
|
+
color: colors,
|
|
92
|
+
elevation,
|
|
93
|
+
size: {
|
|
94
|
+
sm: {
|
|
95
|
+
root: "h-[56px] min-w-[56px] ps-[16px] pe-[16px] text-title-medium",
|
|
96
|
+
icon: "size-[24px]",
|
|
97
|
+
text: "ps-[8px]"
|
|
98
|
+
},
|
|
99
|
+
md: {
|
|
100
|
+
root: "h-[80px] min-w-[80px] ps-[26px] pe-[26px] text-title-large",
|
|
101
|
+
icon: "size-[28px]",
|
|
102
|
+
text: "ps-[16px]"
|
|
103
|
+
},
|
|
104
|
+
lg: {
|
|
105
|
+
root: "h-[96px] min-w-[96px] ps-[28px] pe-[28px] font-brand text-headline-small",
|
|
106
|
+
content: [
|
|
107
|
+
"[[data-expanded=false]>&]:px-[4px]",
|
|
108
|
+
"[transition-property:padding-inline]",
|
|
109
|
+
"[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration)]",
|
|
110
|
+
"[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing)]"
|
|
111
|
+
],
|
|
112
|
+
icon: "size-[32px]",
|
|
113
|
+
text: "ps-[20px]"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
hasIcon: {
|
|
117
|
+
true: {},
|
|
118
|
+
false: { text: "ps-0" }
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
defaultVariants: {
|
|
122
|
+
color: "primary-container",
|
|
123
|
+
elevation: "default",
|
|
124
|
+
size: "sm",
|
|
125
|
+
hasIcon: true
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
129
|
+
export { extendedFabStyles, fabStyles };
|
|
130
|
+
|
|
131
|
+
//# sourceMappingURL=fab-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fab-styles.js","names":[],"sources":["../../../src/components/fab/fab-styles.ts"],"sourcesContent":["import { tv, type VariantProps } from '../../utils/tv';\n\n/*\n * Values follow the M3 Expressive spec and its tokens (the Fab* / ExtendedFab* token\n * files): medium FABs use the large-increased corner (20px), the large FAB icon is 32px,\n * and extended FABs put 8 / 16 / 20px between icon and label. FABs have no press morph\n * and no disabled state.\n *\n * The container colour, content colour and corners come from the component tokens\n * (`fab-tokens.ts`, `--md-comp-fab-*` and `--md-comp-extended-fab-*`): the root carries\n * `data-tokens`, `data-color` and `data-size`, and the classes read one private variable per\n * part. A consumer class (`bg-tertiary`, `rounded-corner-small`) still wins in `cn()`.\n *\n * Every class is written out in full so Tailwind can find it.\n */\n\n/**\n * Colour styles: the three tonal containers (Compose tokens) and the three vibrant roles.\n * Their colours are the tokens' defaults; extend them with classes to add a style.\n */\nconst colors = {\n 'primary-container': {},\n 'secondary-container': {},\n 'tertiary-container': {},\n primary: {},\n secondary: {},\n tertiary: {},\n} as const;\n\nconst elevation = {\n // FabPrimaryContainerTokens: level 3, hover 4, pressed 3 (the hover level never applies\n // while pressed, even with the pointer still over the FAB).\n default: { root: 'shadow-elevation-3 data-hovered:not-data-pressed:shadow-elevation-4' },\n // loweredElevation(): level 1, hover 2, pressed 1.\n lowered: { root: 'shadow-elevation-1 data-hovered:not-data-pressed:shadow-elevation-2' },\n // Nested in another component, such as the navigation rail: level 0 in every state.\n flat: { root: 'shadow-elevation-0' },\n} as const;\n\nconst base = [\n 'inline-flex shrink-0 cursor-pointer items-center justify-center align-middle select-none',\n 'font-plain whitespace-nowrap',\n 'state-layer focus-ring',\n // Forced colours paint the container as Canvas and drop its shadow, so a FAB draws a 1px\n // CanvasText boundary there, as Material Web's (2026-10-15).\n 'forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]',\n /*\n * Appearing and disappearing: the FAB expands from its centre (scale 0.2 → 1, as\n * Compose's animateFloatingActionButton) on the fast spatial spring and fades on the fast\n * effects spring. The scale is a `transform` set only while hidden or appearing, so it\n * composes with Tailwind's `translate-*` / `scale-*` utilities (separate properties) and\n * the root is never a containing block at rest. Reduced motion keeps only the fade.\n */\n 'data-hidden:invisible data-hidden:[transform:scale(0.2)] data-hidden:opacity-0',\n 'data-appear:starting:[transform:scale(0.2)] data-appear:starting:opacity-0',\n 'motion-reduce:data-hidden:[transform:none] motion-reduce:data-appear:starting:[transform:none]',\n '[--m3-transition-property:background-color,color,box-shadow,transform,opacity,visibility]',\n '[--m3-transition-duration:var(--md-sys-motion-spring-effects-fast-duration),var(--md-sys-motion-spring-effects-fast-duration),var(--md-sys-motion-spring-effects-fast-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 '[--m3-transition-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),var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-effects-fast-easing),linear]',\n '[--m3-transition-delay:0s,0s,0s,0s,0s,0s]',\n];\n\n/** Variant definitions for {@link Fab}; extend them to add colour styles. */\nexport const fabStyles = tv({\n slots: {\n root: [\n ...base,\n 'bg-[var(--_md-comp-fab-container-color)] text-[color:var(--_md-comp-fab-icon-color)]',\n 'rounded-[var(--_md-comp-fab-container-shape)]',\n ],\n icon: 'inline-flex shrink-0 items-center justify-center [&>svg]:size-full',\n },\n variants: {\n color: colors,\n elevation,\n size: {\n default: { root: 'size-[56px]', icon: 'size-[24px]' },\n md: { root: 'size-[80px]', icon: 'size-[28px]' },\n lg: { root: 'size-[96px]', icon: 'size-[32px]' },\n },\n },\n defaultVariants: { color: 'primary-container', elevation: 'default', size: 'default' },\n});\n\n/** Variant definitions for {@link ExtendedFab}. */\nexport const extendedFabStyles = tv({\n slots: {\n root: [\n ...base,\n // The label collapsing and expanding resizes it in place, so it is never the\n // browser's scroll anchor (which would scroll the page to follow it).\n '[overflow-anchor:none]',\n 'bg-[var(--_md-comp-extended-fab-container-color)]',\n 'text-[color:var(--_md-comp-extended-fab-label-text-color)]',\n 'rounded-[var(--_md-comp-extended-fab-container-shape)]',\n ],\n // Library-owned inner wrapper for the icon and the collapsing label.\n content: 'inline-flex items-center',\n icon: 'inline-flex shrink-0 items-center justify-center [&>svg]:size-full',\n // The label's box animates its width in px between 0 and the label's measured width\n // (2026-10-17, as Compose lerps the width), so the FAB's width follows it with the fast\n // spatial spring's overshoot, which a 0fr ↔ 1fr track couldn't show. Before it is\n // measured (on the server) it takes the label's natural width, or 0 collapsed.\n collapse: [\n 'flex overflow-hidden opacity-100',\n '[transition-property:width,opacity]',\n // All component motion runs on the fast spatial and fast effects springs.\n '[transition-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-effects-fast-easing)]',\n 'data-collapsed:w-0 data-collapsed:opacity-0',\n // The label itself changed size (a web font arriving): follow it at once.\n 'data-resized:[transition-duration:0s]',\n ],\n // Keeps its natural width while its box closes (it is the measured element); the icon\n // gap lives on `text` so it clips too.\n label: 'w-max shrink-0',\n text: '',\n },\n variants: {\n color: colors,\n elevation,\n size: {\n sm: {\n root: 'h-[56px] min-w-[56px] ps-[16px] pe-[16px] text-title-medium',\n icon: 'size-[24px]',\n text: 'ps-[8px]',\n },\n md: {\n root: 'h-[80px] min-w-[80px] ps-[26px] pe-[26px] text-title-large',\n icon: 'size-[28px]',\n text: 'ps-[16px]',\n },\n lg: {\n root: 'h-[96px] min-w-[96px] ps-[28px] pe-[28px] font-brand text-headline-small',\n /*\n * Collapsed, the icon and padding (28 + 32 + 28px) fall 8px short of the 96px minimum,\n * so the icon is centred 4px further in. The content takes those 4px a side as padding\n * on the label's spring, so the icon slides there with the width instead of jumping as\n * the minimum takes over (2026-10-24).\n */\n content: [\n '[[data-expanded=false]>&]:px-[4px]',\n '[transition-property:padding-inline]',\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 icon: 'size-[32px]',\n text: 'ps-[20px]',\n },\n },\n hasIcon: {\n true: {},\n // Text-only extended FABs have no icon gap.\n false: { text: 'ps-0' },\n },\n },\n defaultVariants: { color: 'primary-container', elevation: 'default', size: 'sm', hasIcon: true },\n});\n\n/**\n * The variants of {@link fabStyles}, 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 FabStyleProps = VariantProps<typeof fabStyles>;\n/**\n * The variants of {@link extendedFabStyles}, 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 ExtendedFabStyleProps = VariantProps<typeof extendedFabStyles>;\nexport type FabColor = NonNullable<FabStyleProps['color']>;\nexport type FabSize = NonNullable<FabStyleProps['size']>;\nexport type FabElevation = NonNullable<FabStyleProps['elevation']>;\nexport type ExtendedFabSize = NonNullable<ExtendedFabStyleProps['size']>;\n"],"mappings":";;;;;;AAoBA,MAAM,SAAS;CACb,qBAAqB,CAAC;CACtB,uBAAuB,CAAC;CACxB,sBAAsB,CAAC;CACvB,SAAS,CAAC;CACV,WAAW,CAAC;CACZ,UAAU,CAAC;AACb;AAEA,MAAM,YAAY;CAGhB,SAAS,EAAE,MAAM,sEAAsE;CAEvF,SAAS,EAAE,MAAM,sEAAsE;CAEvF,MAAM,EAAE,MAAM,qBAAqB;AACrC;AAEA,MAAM,OAAO;CACX;CACA;CACA;CAGA;CAQA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAGA,MAAa,YAAY,GAAG;CAC1B,OAAO;EACL,MAAM;GACJ,GAAG;GACH;GACA;EACF;EACA,MAAM;CACR;CACA,UAAU;EACR,OAAO;EACP;EACA,MAAM;GACJ,SAAS;IAAE,MAAM;IAAe,MAAM;GAAc;GACpD,IAAI;IAAE,MAAM;IAAe,MAAM;GAAc;GAC/C,IAAI;IAAE,MAAM;IAAe,MAAM;GAAc;EACjD;CACF;CACA,iBAAiB;EAAE,OAAO;EAAqB,WAAW;EAAW,MAAM;CAAU;AACvF,CAAC;;AAGD,MAAa,oBAAoB,GAAG;CAClC,OAAO;EACL,MAAM;GACJ,GAAG;GAGH;GACA;GACA;GACA;EACF;EAEA,SAAS;EACT,MAAM;EAKN,UAAU;GACR;GACA;GAEA;GACA;GACA;GAEA;EACF;EAGA,OAAO;EACP,MAAM;CACR;CACA,UAAU;EACR,OAAO;EACP;EACA,MAAM;GACJ,IAAI;IACF,MAAM;IACN,MAAM;IACN,MAAM;GACR;GACA,IAAI;IACF,MAAM;IACN,MAAM;IACN,MAAM;GACR;GACA,IAAI;IACF,MAAM;IAON,SAAS;KACP;KACA;KACA;KACA;IACF;IACA,MAAM;IACN,MAAM;GACR;EACF;EACA,SAAS;GACP,MAAM,CAAC;GAEP,OAAO,EAAE,MAAM,OAAO;EACxB;CACF;CACA,iBAAiB;EAAE,OAAO;EAAqB,WAAW;EAAW,MAAM;EAAM,SAAS;CAAK;AACjG,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentTokenSet } from "../../tokens/component.js";
|
|
2
|
+
import "../../index.js";
|
|
3
|
+
//#region src/components/fab/fab-tokens.d.ts
|
|
4
|
+
/** The tokens of {@link Fab}: `--md-comp-fab-<colour>-*` and `--md-comp-fab[-<size>]-container-shape`. */
|
|
5
|
+
export declare const fabTokenSet: ComponentTokenSet<never>;
|
|
6
|
+
/**
|
|
7
|
+
* The tokens of {@link ExtendedFab}: `--md-comp-extended-fab-<colour>-*` and
|
|
8
|
+
* `--md-comp-extended-fab-<size>-container-shape`.
|
|
9
|
+
*/
|
|
10
|
+
export declare const extendedFabTokenSet: ComponentTokenSet<never>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//# sourceMappingURL=fab-tokens.d.ts.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { color, corner, defineComponentTokens } from "../../tokens/component.js";
|
|
2
|
+
//#region src/components/fab/fab-tokens.ts
|
|
3
|
+
const paintsContainer = { property: "background-color" };
|
|
4
|
+
const paintsContent = { property: "color" };
|
|
5
|
+
const paintsShape = { property: "border-top-left-radius" };
|
|
6
|
+
/** Each colour style's container and content roles, as `fab-styles.ts` painted them. */
|
|
7
|
+
const COLORS = {
|
|
8
|
+
"primary-container": {
|
|
9
|
+
container: "primary-container",
|
|
10
|
+
content: "on-primary-container"
|
|
11
|
+
},
|
|
12
|
+
"secondary-container": {
|
|
13
|
+
container: "secondary-container",
|
|
14
|
+
content: "on-secondary-container"
|
|
15
|
+
},
|
|
16
|
+
"tertiary-container": {
|
|
17
|
+
container: "tertiary-container",
|
|
18
|
+
content: "on-tertiary-container"
|
|
19
|
+
},
|
|
20
|
+
primary: {
|
|
21
|
+
container: "primary",
|
|
22
|
+
content: "on-primary"
|
|
23
|
+
},
|
|
24
|
+
secondary: {
|
|
25
|
+
container: "secondary",
|
|
26
|
+
content: "on-secondary"
|
|
27
|
+
},
|
|
28
|
+
tertiary: {
|
|
29
|
+
container: "tertiary",
|
|
30
|
+
content: "on-tertiary"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
/** Compose's token objects for the colour styles it has (the tonal primary and secondary). */
|
|
34
|
+
const COMPOSE_COLORS = {
|
|
35
|
+
"primary-container": "FabPrimaryContainerTokens",
|
|
36
|
+
"secondary-container": "FabSecondaryContainerTokens"
|
|
37
|
+
};
|
|
38
|
+
/** One scope per colour style: its container and its content (`icon` or `label-text`). */
|
|
39
|
+
function colorScopes(component, content) {
|
|
40
|
+
return Object.fromEntries(Object.keys(COLORS).map((name) => {
|
|
41
|
+
const roles = COLORS[name];
|
|
42
|
+
const compose = component === "fab" ? COMPOSE_COLORS[name] : void 0;
|
|
43
|
+
const tokens = {
|
|
44
|
+
"container-color": {
|
|
45
|
+
value: color(roles.container),
|
|
46
|
+
description: "The container.",
|
|
47
|
+
...compose && { compose: `${compose}.ContainerColor` },
|
|
48
|
+
paints: paintsContainer
|
|
49
|
+
},
|
|
50
|
+
[`${content}-color`]: {
|
|
51
|
+
value: color(roles.content),
|
|
52
|
+
description: content === "icon" ? "The icon." : "The label and the icon, which follows it.",
|
|
53
|
+
...compose && { compose: `${compose}.IconColor` },
|
|
54
|
+
paints: paintsContent
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return [name, {
|
|
58
|
+
prefix: `md-comp-${component}-${name}`,
|
|
59
|
+
tokens
|
|
60
|
+
}];
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
/** A size's container shape: `--md-comp-<prefix>-container-shape`. */
|
|
64
|
+
const shapeScope = (prefix, value, compose) => ({
|
|
65
|
+
prefix,
|
|
66
|
+
tokens: { "container-shape": {
|
|
67
|
+
value: corner(value),
|
|
68
|
+
description: "The corners.",
|
|
69
|
+
compose: `${compose}.ContainerShape`,
|
|
70
|
+
paints: paintsShape
|
|
71
|
+
} }
|
|
72
|
+
});
|
|
73
|
+
/** The tokens of {@link Fab}: `--md-comp-fab-<colour>-*` and `--md-comp-fab[-<size>]-container-shape`. */
|
|
74
|
+
const fabTokenSet = defineComponentTokens({
|
|
75
|
+
name: "md-comp-fab",
|
|
76
|
+
tokens: {},
|
|
77
|
+
scopes: {
|
|
78
|
+
color: colorScopes("fab", "icon"),
|
|
79
|
+
size: {
|
|
80
|
+
default: shapeScope("md-comp-fab", "large", "FabBaselineTokens"),
|
|
81
|
+
md: shapeScope("md-comp-fab-medium", "large-increased", "FabMediumTokens"),
|
|
82
|
+
lg: shapeScope("md-comp-fab-large", "extra-large", "FabLargeTokens")
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* The tokens of {@link ExtendedFab}: `--md-comp-extended-fab-<colour>-*` and
|
|
88
|
+
* `--md-comp-extended-fab-<size>-container-shape`.
|
|
89
|
+
*/
|
|
90
|
+
const extendedFabTokenSet = defineComponentTokens({
|
|
91
|
+
name: "md-comp-extended-fab",
|
|
92
|
+
tokens: {},
|
|
93
|
+
scopes: {
|
|
94
|
+
color: colorScopes("extended-fab", "label-text"),
|
|
95
|
+
size: {
|
|
96
|
+
sm: shapeScope("md-comp-extended-fab-small", "large", "ExtendedFabSmallTokens"),
|
|
97
|
+
md: shapeScope("md-comp-extended-fab-medium", "large-increased", "ExtendedFabMediumTokens"),
|
|
98
|
+
lg: shapeScope("md-comp-extended-fab-large", "extra-large", "ExtendedFabLargeTokens")
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
//#endregion
|
|
103
|
+
export { extendedFabTokenSet, fabTokenSet };
|
|
104
|
+
|
|
105
|
+
//# sourceMappingURL=fab-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fab-tokens.js","names":[],"sources":["../../../src/components/fab/fab-tokens.ts"],"sourcesContent":["import type { ColorRole } from '../../tokens/color';\nimport {\n color,\n corner,\n defineComponentTokens,\n type ComponentToken,\n type ComponentTokenScope,\n} from '../../tokens/component';\nimport type { CornerName } from '../../tokens/shape';\nimport type { ExtendedFabSize, FabColor, FabSize } from './fab-styles';\n\n/*\n * The FAB's and the extended FAB's component tokens, M3's `md.comp.fab.*` and\n * `md.comp.extended-fab.*` names (checked against m3.material.io's token tables,\n * 2026-10-14). A FAB's `data-color` picks its colour set (`fab-primary-container`, …) and\n * its `data-size` its size set (`fab`, `fab-medium`, `fab-large`); the styles read one\n * private variable per part. The icon and label follow the content colour (`currentColor`).\n * Elevation stays with the `elevation` prop, and sizes stay classes.\n */\n\nconst paintsContainer = { property: 'background-color' } as const;\nconst paintsContent = { property: 'color' } as const;\nconst paintsShape = { property: 'border-top-left-radius' } as const;\n\n/** Each colour style's container and content roles, as `fab-styles.ts` painted them. */\nconst COLORS: Record<FabColor, { container: ColorRole; content: ColorRole }> = {\n 'primary-container': { container: 'primary-container', content: 'on-primary-container' },\n 'secondary-container': { container: 'secondary-container', content: 'on-secondary-container' },\n 'tertiary-container': { container: 'tertiary-container', content: 'on-tertiary-container' },\n primary: { container: 'primary', content: 'on-primary' },\n secondary: { container: 'secondary', content: 'on-secondary' },\n tertiary: { container: 'tertiary', content: 'on-tertiary' },\n};\n\n/** Compose's token objects for the colour styles it has (the tonal primary and secondary). */\nconst COMPOSE_COLORS: Partial<Record<FabColor, string>> = {\n 'primary-container': 'FabPrimaryContainerTokens',\n 'secondary-container': 'FabSecondaryContainerTokens',\n};\n\n/** One scope per colour style: its container and its content (`icon` or `label-text`). */\nfunction colorScopes(component: 'fab' | 'extended-fab', content: 'icon' | 'label-text') {\n return Object.fromEntries(\n (Object.keys(COLORS) as FabColor[]).map((name) => {\n const roles = COLORS[name];\n const compose = component === 'fab' ? COMPOSE_COLORS[name] : undefined;\n const tokens: Record<string, ComponentToken> = {\n 'container-color': {\n value: color(roles.container),\n description: 'The container.',\n ...(compose && { compose: `${compose}.ContainerColor` }),\n paints: paintsContainer,\n },\n [`${content}-color`]: {\n value: color(roles.content),\n description:\n content === 'icon' ? 'The icon.' : 'The label and the icon, which follows it.',\n ...(compose && { compose: `${compose}.IconColor` }),\n paints: paintsContent,\n },\n };\n return [name, { prefix: `md-comp-${component}-${name}`, tokens }];\n }),\n ) as Record<FabColor, ComponentTokenScope>;\n}\n\n/** A size's container shape: `--md-comp-<prefix>-container-shape`. */\nconst shapeScope = (prefix: string, value: CornerName, compose: string): ComponentTokenScope => ({\n prefix,\n tokens: {\n 'container-shape': {\n value: corner(value),\n description: 'The corners.',\n compose: `${compose}.ContainerShape`,\n paints: paintsShape,\n },\n },\n});\n\n/** The tokens of {@link Fab}: `--md-comp-fab-<colour>-*` and `--md-comp-fab[-<size>]-container-shape`. */\nexport const fabTokenSet = defineComponentTokens({\n name: 'md-comp-fab',\n tokens: {},\n scopes: {\n color: colorScopes('fab', 'icon'),\n size: {\n default: shapeScope('md-comp-fab', 'large', 'FabBaselineTokens'),\n md: shapeScope('md-comp-fab-medium', 'large-increased', 'FabMediumTokens'),\n lg: shapeScope('md-comp-fab-large', 'extra-large', 'FabLargeTokens'),\n } satisfies Record<FabSize, ComponentTokenScope>,\n },\n});\n\n/**\n * The tokens of {@link ExtendedFab}: `--md-comp-extended-fab-<colour>-*` and\n * `--md-comp-extended-fab-<size>-container-shape`.\n */\nexport const extendedFabTokenSet = defineComponentTokens({\n name: 'md-comp-extended-fab',\n tokens: {},\n scopes: {\n color: colorScopes('extended-fab', 'label-text'),\n size: {\n sm: shapeScope('md-comp-extended-fab-small', 'large', 'ExtendedFabSmallTokens'),\n md: shapeScope('md-comp-extended-fab-medium', 'large-increased', 'ExtendedFabMediumTokens'),\n lg: shapeScope('md-comp-extended-fab-large', 'extra-large', 'ExtendedFabLargeTokens'),\n } satisfies Record<ExtendedFabSize, ComponentTokenScope>,\n },\n});\n"],"mappings":";;AAoBA,MAAM,kBAAkB,EAAE,UAAU,mBAAmB;AACvD,MAAM,gBAAgB,EAAE,UAAU,QAAQ;AAC1C,MAAM,cAAc,EAAE,UAAU,yBAAyB;;AAGzD,MAAM,SAAyE;CAC7E,qBAAqB;EAAE,WAAW;EAAqB,SAAS;CAAuB;CACvF,uBAAuB;EAAE,WAAW;EAAuB,SAAS;CAAyB;CAC7F,sBAAsB;EAAE,WAAW;EAAsB,SAAS;CAAwB;CAC1F,SAAS;EAAE,WAAW;EAAW,SAAS;CAAa;CACvD,WAAW;EAAE,WAAW;EAAa,SAAS;CAAe;CAC7D,UAAU;EAAE,WAAW;EAAY,SAAS;CAAc;AAC5D;;AAGA,MAAM,iBAAoD;CACxD,qBAAqB;CACrB,uBAAuB;AACzB;;AAGA,SAAS,YAAY,WAAmC,SAAgC;CACtF,OAAO,OAAO,YACX,OAAO,KAAK,MAAM,CAAC,CAAgB,KAAK,SAAS;EAChD,MAAM,QAAQ,OAAO;EACrB,MAAM,UAAU,cAAc,QAAQ,eAAe,QAAQ,KAAA;EAC7D,MAAM,SAAyC;GAC7C,mBAAmB;IACjB,OAAO,MAAM,MAAM,SAAS;IAC5B,aAAa;IACb,GAAI,WAAW,EAAE,SAAS,GAAG,QAAQ,iBAAiB;IACtD,QAAQ;GACV;IACC,GAAG,QAAQ,UAAU;IACpB,OAAO,MAAM,MAAM,OAAO;IAC1B,aACE,YAAY,SAAS,cAAc;IACrC,GAAI,WAAW,EAAE,SAAS,GAAG,QAAQ,YAAY;IACjD,QAAQ;GACV;EACF;EACA,OAAO,CAAC,MAAM;GAAE,QAAQ,WAAW,UAAU,GAAG;GAAQ;EAAO,CAAC;CAClE,CAAC,CACH;AACF;;AAGA,MAAM,cAAc,QAAgB,OAAmB,aAA0C;CAC/F;CACA,QAAQ,EACN,mBAAmB;EACjB,OAAO,OAAO,KAAK;EACnB,aAAa;EACb,SAAS,GAAG,QAAQ;EACpB,QAAQ;CACV,EACF;AACF;;AAGA,MAAa,cAAc,sBAAsB;CAC/C,MAAM;CACN,QAAQ,CAAC;CACT,QAAQ;EACN,OAAO,YAAY,OAAO,MAAM;EAChC,MAAM;GACJ,SAAS,WAAW,eAAe,SAAS,mBAAmB;GAC/D,IAAI,WAAW,sBAAsB,mBAAmB,iBAAiB;GACzE,IAAI,WAAW,qBAAqB,eAAe,gBAAgB;EACrE;CACF;AACF,CAAC;;;;;AAMD,MAAa,sBAAsB,sBAAsB;CACvD,MAAM;CACN,QAAQ,CAAC;CACT,QAAQ;EACN,OAAO,YAAY,gBAAgB,YAAY;EAC/C,MAAM;GACJ,IAAI,WAAW,8BAA8B,SAAS,wBAAwB;GAC9E,IAAI,WAAW,+BAA+B,mBAAmB,yBAAyB;GAC1F,IAAI,WAAW,8BAA8B,eAAe,wBAAwB;EACtF;CACF;AACF,CAAC"}
|