@windmorph/react 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +23 -0
- package/README.md +149 -2
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +112 -0
- package/dist/cli.js.map +1 -0
- package/dist/components/app-bar/AppBarItems.js +23 -0
- package/dist/components/app-bar/AppBarItems.js.map +1 -0
- package/dist/components/app-bar/TopAppBar.d.ts +89 -0
- package/dist/components/app-bar/TopAppBar.js +103 -0
- package/dist/components/app-bar/TopAppBar.js.map +1 -0
- package/dist/components/app-bar/app-bar-styles.d.ts +280 -0
- package/dist/components/app-bar/app-bar-styles.js +142 -0
- package/dist/components/app-bar/app-bar-styles.js.map +1 -0
- package/dist/components/app-bar/app-bar-tokens.d.ts +7 -0
- package/dist/components/app-bar/app-bar-tokens.js +64 -0
- package/dist/components/app-bar/app-bar-tokens.js.map +1 -0
- package/dist/components/app-bar/use-app-bar-scroll.d.ts +6 -0
- package/dist/components/app-bar/use-app-bar-scroll.js +139 -0
- package/dist/components/app-bar/use-app-bar-scroll.js.map +1 -0
- package/dist/components/autocomplete/Autocomplete.d.ts +142 -0
- package/dist/components/autocomplete/Autocomplete.js +284 -0
- package/dist/components/autocomplete/Autocomplete.js.map +1 -0
- package/dist/components/badge/Badge.d.ts +71 -0
- package/dist/components/badge/Badge.js +72 -0
- package/dist/components/badge/Badge.js.map +1 -0
- package/dist/components/badge/badge-styles.d.ts +100 -0
- package/dist/components/badge/badge-styles.js +43 -0
- package/dist/components/badge/badge-styles.js.map +1 -0
- package/dist/components/badge/badge-tokens.d.ts +7 -0
- package/dist/components/badge/badge-tokens.js +40 -0
- package/dist/components/badge/badge-tokens.js.map +1 -0
- package/dist/components/button/Button.d.ts +91 -0
- package/dist/components/button/Button.js +96 -0
- package/dist/components/button/Button.js.map +1 -0
- package/dist/components/button/ButtonContext.d.ts +30 -0
- package/dist/components/button/ButtonContext.js +18 -0
- package/dist/components/button/ButtonContext.js.map +1 -0
- package/dist/components/button/DensityZeroButtons.js +25 -0
- package/dist/components/button/DensityZeroButtons.js.map +1 -0
- package/dist/components/button/button-pending.d.ts +10 -0
- package/dist/components/button/button-pending.js +166 -0
- package/dist/components/button/button-pending.js.map +1 -0
- package/dist/components/button/button-styles.d.ts +216 -0
- package/dist/components/button/button-styles.js +199 -0
- package/dist/components/button/button-styles.js.map +1 -0
- package/dist/components/button/button-tokens.d.ts +10 -0
- package/dist/components/button/button-tokens.js +257 -0
- package/dist/components/button/button-tokens.js.map +1 -0
- package/dist/components/button/connected-shapes.js +152 -0
- package/dist/components/button/connected-shapes.js.map +1 -0
- package/dist/components/card/Card.d.ts +60 -0
- package/dist/components/card/Card.js +69 -0
- package/dist/components/card/Card.js.map +1 -0
- package/dist/components/card/card-styles.d.ts +42 -0
- package/dist/components/card/card-styles.js +64 -0
- package/dist/components/card/card-styles.js.map +1 -0
- package/dist/components/card/card-tokens.d.ts +7 -0
- package/dist/components/card/card-tokens.js +84 -0
- package/dist/components/card/card-tokens.js.map +1 -0
- package/dist/components/carousel/Carousel.d.ts +124 -0
- package/dist/components/carousel/Carousel.js +387 -0
- package/dist/components/carousel/Carousel.js.map +1 -0
- package/dist/components/carousel/carousel-keylines.js +486 -0
- package/dist/components/carousel/carousel-keylines.js.map +1 -0
- package/dist/components/carousel/carousel-press-area.js +35 -0
- package/dist/components/carousel/carousel-press-area.js.map +1 -0
- package/dist/components/carousel/carousel-styles.d.ts +188 -0
- package/dist/components/carousel/carousel-styles.js +116 -0
- package/dist/components/carousel/carousel-styles.js.map +1 -0
- package/dist/components/carousel/carousel-tokens.d.ts +7 -0
- package/dist/components/carousel/carousel-tokens.js +18 -0
- package/dist/components/carousel/carousel-tokens.js.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +78 -0
- package/dist/components/checkbox/Checkbox.js +77 -0
- package/dist/components/checkbox/Checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox-box.js +34 -0
- package/dist/components/checkbox/checkbox-box.js.map +1 -0
- package/dist/components/checkbox/checkbox-styles.d.ts +100 -0
- package/dist/components/checkbox/checkbox-styles.js +54 -0
- package/dist/components/checkbox/checkbox-styles.js.map +1 -0
- package/dist/components/checkbox/checkbox-tokens.d.ts +7 -0
- package/dist/components/checkbox/checkbox-tokens.js +41 -0
- package/dist/components/checkbox/checkbox-tokens.js.map +1 -0
- package/dist/components/chip/Chip.d.ts +171 -0
- package/dist/components/chip/Chip.js +348 -0
- package/dist/components/chip/Chip.js.map +1 -0
- package/dist/components/chip/ChipSet.d.ts +70 -0
- package/dist/components/chip/ChipSet.js +198 -0
- package/dist/components/chip/ChipSet.js.map +1 -0
- package/dist/components/chip/chip-styles.d.ts +263 -0
- package/dist/components/chip/chip-styles.js +360 -0
- package/dist/components/chip/chip-styles.js.map +1 -0
- package/dist/components/chip/chip-tokens.d.ts +13 -0
- package/dist/components/chip/chip-tokens.js +185 -0
- package/dist/components/chip/chip-tokens.js.map +1 -0
- package/dist/components/date-picker/CalendarGrid.js +94 -0
- package/dist/components/date-picker/CalendarGrid.js.map +1 -0
- package/dist/components/date-picker/CompactDateDialog.js +63 -0
- package/dist/components/date-picker/CompactDateDialog.js.map +1 -0
- package/dist/components/date-picker/DateField.d.ts +161 -0
- package/dist/components/date-picker/DateField.js +393 -0
- package/dist/components/date-picker/DateField.js.map +1 -0
- package/dist/components/date-picker/DateInput.d.ts +20 -0
- package/dist/components/date-picker/DateInput.js +99 -0
- package/dist/components/date-picker/DateInput.js.map +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +165 -0
- package/dist/components/date-picker/DatePicker.js +492 -0
- package/dist/components/date-picker/DatePicker.js.map +1 -0
- package/dist/components/date-picker/PickerDialog.d.ts +121 -0
- package/dist/components/date-picker/PickerDialog.js +161 -0
- package/dist/components/date-picker/PickerDialog.js.map +1 -0
- package/dist/components/date-picker/calendar-parts.js +141 -0
- package/dist/components/date-picker/calendar-parts.js.map +1 -0
- package/dist/components/date-picker/date-format.js +72 -0
- package/dist/components/date-picker/date-format.js.map +1 -0
- package/dist/components/date-picker/date-picker-styles.d.ts +247 -0
- package/dist/components/date-picker/date-picker-styles.js +163 -0
- package/dist/components/date-picker/date-picker-styles.js.map +1 -0
- package/dist/components/date-picker/date-picker-tokens.d.ts +7 -0
- package/dist/components/date-picker/date-picker-tokens.js +104 -0
- package/dist/components/date-picker/date-picker-tokens.js.map +1 -0
- package/dist/components/date-picker/picker-dialog-context.js +8 -0
- package/dist/components/date-picker/picker-dialog-context.js.map +1 -0
- package/dist/components/date-picker/picker-dialog-styles.d.ts +95 -0
- package/dist/components/date-picker/picker-dialog-styles.js +57 -0
- package/dist/components/date-picker/picker-dialog-styles.js.map +1 -0
- package/dist/components/date-picker/picker-icons.js +24 -0
- package/dist/components/date-picker/picker-icons.js.map +1 -0
- package/dist/components/date-picker/use-media-query.js +21 -0
- package/dist/components/date-picker/use-media-query.js.map +1 -0
- package/dist/components/date-picker/use-size-transform.js +62 -0
- package/dist/components/date-picker/use-size-transform.js.map +1 -0
- package/dist/components/date-picker/use-view-exit.js +68 -0
- package/dist/components/date-picker/use-view-exit.js.map +1 -0
- package/dist/components/dialog/Dialog.d.ts +267 -0
- package/dist/components/dialog/Dialog.js +521 -0
- package/dist/components/dialog/Dialog.js.map +1 -0
- package/dist/components/dialog/dialog-styles.d.ts +335 -0
- package/dist/components/dialog/dialog-styles.js +377 -0
- package/dist/components/dialog/dialog-styles.js.map +1 -0
- package/dist/components/dialog/dialog-tokens.d.ts +7 -0
- package/dist/components/dialog/dialog-tokens.js +57 -0
- package/dist/components/dialog/dialog-tokens.js.map +1 -0
- package/dist/components/divider/Divider.d.ts +59 -0
- package/dist/components/divider/Divider.js +53 -0
- package/dist/components/divider/Divider.js.map +1 -0
- package/dist/components/divider/divider-styles.d.ts +90 -0
- package/dist/components/divider/divider-styles.js +66 -0
- package/dist/components/divider/divider-styles.js.map +1 -0
- package/dist/components/divider/divider-tokens.d.ts +7 -0
- package/dist/components/divider/divider-tokens.js +16 -0
- package/dist/components/divider/divider-tokens.js.map +1 -0
- package/dist/components/fab/Fab.d.ts +130 -0
- package/dist/components/fab/Fab.js +137 -0
- package/dist/components/fab/Fab.js.map +1 -0
- package/dist/components/fab/FabTooltip.js +36 -0
- package/dist/components/fab/FabTooltip.js.map +1 -0
- package/dist/components/fab/fab-styles.d.ts +286 -0
- package/dist/components/fab/fab-styles.js +131 -0
- package/dist/components/fab/fab-styles.js.map +1 -0
- package/dist/components/fab/fab-tokens.d.ts +12 -0
- package/dist/components/fab/fab-tokens.js +105 -0
- package/dist/components/fab/fab-tokens.js.map +1 -0
- package/dist/components/fab-menu/FabMenu.d.ts +156 -0
- package/dist/components/fab-menu/FabMenu.js +291 -0
- package/dist/components/fab-menu/FabMenu.js.map +1 -0
- package/dist/components/fab-menu/fab-menu-stagger.js +51 -0
- package/dist/components/fab-menu/fab-menu-stagger.js.map +1 -0
- package/dist/components/fab-menu/fab-menu-styles.d.ts +166 -0
- package/dist/components/fab-menu/fab-menu-styles.js +107 -0
- package/dist/components/fab-menu/fab-menu-styles.js.map +1 -0
- package/dist/components/fab-menu/fab-menu-tokens.d.ts +7 -0
- package/dist/components/fab-menu/fab-menu-tokens.js +120 -0
- package/dist/components/fab-menu/fab-menu-tokens.js.map +1 -0
- package/dist/components/icon-button/IconButton.d.ts +125 -0
- package/dist/components/icon-button/IconButton.js +112 -0
- package/dist/components/icon-button/IconButton.js.map +1 -0
- package/dist/components/icon-button/icon-button-styles.d.ts +217 -0
- package/dist/components/icon-button/icon-button-styles.js +244 -0
- package/dist/components/icon-button/icon-button-styles.js.map +1 -0
- package/dist/components/icon-button/icon-button-tokens.d.ts +11 -0
- package/dist/components/icon-button/icon-button-tokens.js +215 -0
- package/dist/components/icon-button/icon-button-tokens.js.map +1 -0
- package/dist/components/list/List.d.ts +265 -0
- package/dist/components/list/List.js +1386 -0
- package/dist/components/list/List.js.map +1 -0
- package/dist/components/list/ListMedia.d.ts +88 -0
- package/dist/components/list/ListMedia.js +132 -0
- package/dist/components/list/ListMedia.js.map +1 -0
- package/dist/components/list/list-styles.d.ts +375 -0
- package/dist/components/list/list-styles.js +220 -0
- package/dist/components/list/list-styles.js.map +1 -0
- package/dist/components/list/list-tokens.d.ts +7 -0
- package/dist/components/list/list-tokens.js +92 -0
- package/dist/components/list/list-tokens.js.map +1 -0
- package/dist/components/loading-indicator/LoadingIndicator.d.ts +65 -0
- package/dist/components/loading-indicator/LoadingIndicator.js +92 -0
- package/dist/components/loading-indicator/LoadingIndicator.js.map +1 -0
- package/dist/components/loading-indicator/lazy-loading-indicator.js +25 -0
- package/dist/components/loading-indicator/lazy-loading-indicator.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator-frames.js +149 -0
- package/dist/components/loading-indicator/loading-indicator-frames.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator-styles.d.ts +36 -0
- package/dist/components/loading-indicator/loading-indicator-styles.js +22 -0
- package/dist/components/loading-indicator/loading-indicator-styles.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator-tokens.d.ts +7 -0
- package/dist/components/loading-indicator/loading-indicator-tokens.js +44 -0
- package/dist/components/loading-indicator/loading-indicator-tokens.js.map +1 -0
- package/dist/components/menu/Menu.d.ts +215 -0
- package/dist/components/menu/Menu.js +715 -0
- package/dist/components/menu/Menu.js.map +1 -0
- package/dist/components/menu/menu-styles.d.ts +354 -0
- package/dist/components/menu/menu-styles.js +219 -0
- package/dist/components/menu/menu-styles.js.map +1 -0
- package/dist/components/menu/menu-tokens.d.ts +7 -0
- package/dist/components/menu/menu-tokens.js +93 -0
- package/dist/components/menu/menu-tokens.js.map +1 -0
- package/dist/components/menu/menu-trigger.d.ts +51 -0
- package/dist/components/menu/menu-trigger.js +100 -0
- package/dist/components/menu/menu-trigger.js.map +1 -0
- package/dist/components/menu/use-reveal-entering.js +42 -0
- package/dist/components/menu/use-reveal-entering.js.map +1 -0
- package/dist/components/navigation/NavItem.d.ts +54 -0
- package/dist/components/navigation/NavItem.js +182 -0
- package/dist/components/navigation/NavItem.js.map +1 -0
- package/dist/components/navigation/NavigationBar.d.ts +64 -0
- package/dist/components/navigation/NavigationBar.js +121 -0
- package/dist/components/navigation/NavigationBar.js.map +1 -0
- package/dist/components/navigation/NavigationRail.d.ts +91 -0
- package/dist/components/navigation/NavigationRail.js +285 -0
- package/dist/components/navigation/NavigationRail.js.map +1 -0
- package/dist/components/navigation/nav-item-styles.d.ts +190 -0
- package/dist/components/navigation/nav-item-styles.js +123 -0
- package/dist/components/navigation/nav-item-styles.js.map +1 -0
- package/dist/components/navigation/navigation-styles.d.ts +239 -0
- package/dist/components/navigation/navigation-styles.js +134 -0
- package/dist/components/navigation/navigation-styles.js.map +1 -0
- package/dist/components/navigation/navigation-tokens.d.ts +9 -0
- package/dist/components/navigation/navigation-tokens.js +114 -0
- package/dist/components/navigation/navigation-tokens.js.map +1 -0
- package/dist/components/navigation/use-hide-on-scroll.js +115 -0
- package/dist/components/navigation/use-hide-on-scroll.js.map +1 -0
- package/dist/components/navigation/use-item-arrow-keys.js +37 -0
- package/dist/components/navigation/use-item-arrow-keys.js.map +1 -0
- package/dist/components/navigation/use-rail-item-morph.js +61 -0
- package/dist/components/navigation/use-rail-item-morph.js.map +1 -0
- package/dist/components/progress/ProgressIndicator.d.ts +95 -0
- package/dist/components/progress/ProgressIndicator.js +426 -0
- package/dist/components/progress/ProgressIndicator.js.map +1 -0
- package/dist/components/progress/progress-geometry.js +285 -0
- package/dist/components/progress/progress-geometry.js.map +1 -0
- package/dist/components/progress/progress-styles.d.ts +81 -0
- package/dist/components/progress/progress-styles.js +43 -0
- package/dist/components/progress/progress-styles.js.map +1 -0
- package/dist/components/progress/progress-tokens.d.ts +7 -0
- package/dist/components/progress/progress-tokens.js +39 -0
- package/dist/components/progress/progress-tokens.js.map +1 -0
- package/dist/components/pull-to-refresh/PullToRefresh.d.ts +94 -0
- package/dist/components/pull-to-refresh/PullToRefresh.js +395 -0
- package/dist/components/pull-to-refresh/PullToRefresh.js.map +1 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-math.js +37 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-math.js.map +1 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-styles.d.ts +53 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-styles.js +14 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-styles.js.map +1 -0
- package/dist/components/radio/RadioGroup.d.ts +121 -0
- package/dist/components/radio/RadioGroup.js +163 -0
- package/dist/components/radio/RadioGroup.js.map +1 -0
- package/dist/components/radio/radio-ring.js +21 -0
- package/dist/components/radio/radio-ring.js.map +1 -0
- package/dist/components/radio/radio-styles.d.ts +155 -0
- package/dist/components/radio/radio-styles.js +60 -0
- package/dist/components/radio/radio-styles.js.map +1 -0
- package/dist/components/radio/radio-tokens.d.ts +7 -0
- package/dist/components/radio/radio-tokens.js +31 -0
- package/dist/components/radio/radio-tokens.js.map +1 -0
- package/dist/components/search/SearchAppBar.d.ts +45 -0
- package/dist/components/search/SearchAppBar.js +61 -0
- package/dist/components/search/SearchAppBar.js.map +1 -0
- package/dist/components/search/SearchBar.d.ts +147 -0
- package/dist/components/search/SearchBar.js +412 -0
- package/dist/components/search/SearchBar.js.map +1 -0
- package/dist/components/search/search-styles.d.ts +243 -0
- package/dist/components/search/search-styles.js +143 -0
- package/dist/components/search/search-styles.js.map +1 -0
- package/dist/components/search/search-tokens.d.ts +9 -0
- package/dist/components/search/search-tokens.js +70 -0
- package/dist/components/search/search-tokens.js.map +1 -0
- package/dist/components/select/Select.d.ts +187 -0
- package/dist/components/select/Select.js +319 -0
- package/dist/components/select/Select.js.map +1 -0
- package/dist/components/select/field-shell.d.ts +29 -0
- package/dist/components/select/field-shell.js +135 -0
- package/dist/components/select/field-shell.js.map +1 -0
- package/dist/components/select/option-list.d.ts +81 -0
- package/dist/components/select/option-list.js +291 -0
- package/dist/components/select/option-list.js.map +1 -0
- package/dist/components/select/search-list.js +135 -0
- package/dist/components/select/search-list.js.map +1 -0
- package/dist/components/select/selection-cap.js +30 -0
- package/dist/components/select/selection-cap.js.map +1 -0
- package/dist/components/sheet/BottomSheet.d.ts +154 -0
- package/dist/components/sheet/BottomSheet.js +442 -0
- package/dist/components/sheet/BottomSheet.js.map +1 -0
- package/dist/components/sheet/SheetTrigger.d.ts +25 -0
- package/dist/components/sheet/SheetTrigger.js +46 -0
- package/dist/components/sheet/SheetTrigger.js.map +1 -0
- package/dist/components/sheet/SideSheet.d.ts +139 -0
- package/dist/components/sheet/SideSheet.js +289 -0
- package/dist/components/sheet/SideSheet.js.map +1 -0
- package/dist/components/sheet/bottom-sheet-gesture.js +30 -0
- package/dist/components/sheet/bottom-sheet-gesture.js.map +1 -0
- package/dist/components/sheet/lazy-bottom-sheet.js +33 -0
- package/dist/components/sheet/lazy-bottom-sheet.js.map +1 -0
- package/dist/components/sheet/sheet-gesture.js +48 -0
- package/dist/components/sheet/sheet-gesture.js.map +1 -0
- package/dist/components/sheet/sheet-icons.js +31 -0
- package/dist/components/sheet/sheet-icons.js.map +1 -0
- package/dist/components/sheet/sheet-settle.js +58 -0
- package/dist/components/sheet/sheet-settle.js.map +1 -0
- package/dist/components/sheet/sheet-styles.d.ts +312 -0
- package/dist/components/sheet/sheet-styles.js +229 -0
- package/dist/components/sheet/sheet-styles.js.map +1 -0
- package/dist/components/sheet/sheet-tokens.d.ts +12 -0
- package/dist/components/sheet/sheet-tokens.js +115 -0
- package/dist/components/sheet/sheet-tokens.js.map +1 -0
- package/dist/components/sheet/side-swipe-gesture.js +22 -0
- package/dist/components/sheet/side-swipe-gesture.js.map +1 -0
- package/dist/components/sheet/use-peek-inert.js +32 -0
- package/dist/components/sheet/use-peek-inert.js.map +1 -0
- package/dist/components/sheet/use-side-swipe.js +174 -0
- package/dist/components/sheet/use-side-swipe.js.map +1 -0
- package/dist/components/slider/Slider.d.ts +129 -0
- package/dist/components/slider/Slider.js +295 -0
- package/dist/components/slider/Slider.js.map +1 -0
- package/dist/components/slider/slider-geometry.js +138 -0
- package/dist/components/slider/slider-geometry.js.map +1 -0
- package/dist/components/slider/slider-styles.d.ts +133 -0
- package/dist/components/slider/slider-styles.js +97 -0
- package/dist/components/slider/slider-styles.js.map +1 -0
- package/dist/components/slider/slider-tokens.d.ts +7 -0
- package/dist/components/slider/slider-tokens.js +66 -0
- package/dist/components/slider/slider-tokens.js.map +1 -0
- package/dist/components/slider/use-touch-track.js +138 -0
- package/dist/components/slider/use-touch-track.js.map +1 -0
- package/dist/components/snackbar/Snackbar.d.ts +96 -0
- package/dist/components/snackbar/Snackbar.js +253 -0
- package/dist/components/snackbar/Snackbar.js.map +1 -0
- package/dist/components/snackbar/snackbar-state.d.ts +58 -0
- package/dist/components/snackbar/snackbar-state.js +73 -0
- package/dist/components/snackbar/snackbar-state.js.map +1 -0
- package/dist/components/snackbar/snackbar-styles.d.ts +109 -0
- package/dist/components/snackbar/snackbar-styles.js +67 -0
- package/dist/components/snackbar/snackbar-styles.js.map +1 -0
- package/dist/components/snackbar/snackbar-tokens.d.ts +7 -0
- package/dist/components/snackbar/snackbar-tokens.js +54 -0
- package/dist/components/snackbar/snackbar-tokens.js.map +1 -0
- package/dist/components/split-button/SplitButton.d.ts +109 -0
- package/dist/components/split-button/SplitButton.js +195 -0
- package/dist/components/split-button/SplitButton.js.map +1 -0
- package/dist/components/split-button/split-button-styles.d.ts +214 -0
- package/dist/components/split-button/split-button-styles.js +164 -0
- package/dist/components/split-button/split-button-styles.js.map +1 -0
- package/dist/components/split-button/split-button-tokens.d.ts +7 -0
- package/dist/components/split-button/split-button-tokens.js +36 -0
- package/dist/components/split-button/split-button-tokens.js.map +1 -0
- package/dist/components/switch/Switch.d.ts +82 -0
- package/dist/components/switch/Switch.js +165 -0
- package/dist/components/switch/Switch.js.map +1 -0
- package/dist/components/switch/switch-styles.d.ts +96 -0
- package/dist/components/switch/switch-styles.js +68 -0
- package/dist/components/switch/switch-styles.js.map +1 -0
- package/dist/components/switch/switch-thumb.js +41 -0
- package/dist/components/switch/switch-thumb.js.map +1 -0
- package/dist/components/switch/switch-tokens.d.ts +7 -0
- package/dist/components/switch/switch-tokens.js +78 -0
- package/dist/components/switch/switch-tokens.js.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +120 -0
- package/dist/components/tabs/Tabs.js +346 -0
- package/dist/components/tabs/Tabs.js.map +1 -0
- package/dist/components/tabs/tabs-styles.d.ts +198 -0
- package/dist/components/tabs/tabs-styles.js +99 -0
- package/dist/components/tabs/tabs-styles.js.map +1 -0
- package/dist/components/tabs/tabs-tokens.d.ts +7 -0
- package/dist/components/tabs/tabs-tokens.js +121 -0
- package/dist/components/tabs/tabs-tokens.js.map +1 -0
- package/dist/components/text-field/TextField.d.ts +175 -0
- package/dist/components/text-field/TextField.js +250 -0
- package/dist/components/text-field/TextField.js.map +1 -0
- package/dist/components/text-field/text-field-styles.d.ts +252 -0
- package/dist/components/text-field/text-field-styles.js +209 -0
- package/dist/components/text-field/text-field-styles.js.map +1 -0
- package/dist/components/text-field/text-field-tokens.d.ts +7 -0
- package/dist/components/text-field/text-field-tokens.js +177 -0
- package/dist/components/text-field/text-field-tokens.js.map +1 -0
- package/dist/components/time-picker/TimePicker.d.ts +142 -0
- package/dist/components/time-picker/TimePicker.js +700 -0
- package/dist/components/time-picker/TimePicker.js.map +1 -0
- package/dist/components/time-picker/time-picker-styles.d.ts +175 -0
- package/dist/components/time-picker/time-picker-styles.js +112 -0
- package/dist/components/time-picker/time-picker-styles.js.map +1 -0
- package/dist/components/time-picker/time-picker-tokens.d.ts +7 -0
- package/dist/components/time-picker/time-picker-tokens.js +86 -0
- package/dist/components/time-picker/time-picker-tokens.js.map +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +209 -0
- package/dist/components/toolbar/Toolbar.js +282 -0
- package/dist/components/toolbar/Toolbar.js.map +1 -0
- package/dist/components/toolbar/toolbar-styles.d.ts +403 -0
- package/dist/components/toolbar/toolbar-styles.js +253 -0
- package/dist/components/toolbar/toolbar-styles.js.map +1 -0
- package/dist/components/toolbar/toolbar-tokens.d.ts +27 -0
- package/dist/components/toolbar/toolbar-tokens.js +117 -0
- package/dist/components/toolbar/toolbar-tokens.js.map +1 -0
- package/dist/components/toolbar/use-toolbar-scroll-expansion.d.ts +56 -0
- package/dist/components/toolbar/use-toolbar-scroll-expansion.js +86 -0
- package/dist/components/toolbar/use-toolbar-scroll-expansion.js.map +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +131 -0
- package/dist/components/tooltip/Tooltip.js +388 -0
- package/dist/components/tooltip/Tooltip.js.map +1 -0
- package/dist/components/tooltip/lazy-tooltip.js +35 -0
- package/dist/components/tooltip/lazy-tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltip-placement.d.ts +16 -0
- package/dist/components/tooltip/tooltip-placement.js +14 -0
- package/dist/components/tooltip/tooltip-placement.js.map +1 -0
- package/dist/components/tooltip/tooltip-styles.d.ts +142 -0
- package/dist/components/tooltip/tooltip-styles.js +81 -0
- package/dist/components/tooltip/tooltip-styles.js.map +1 -0
- package/dist/components/tooltip/tooltip-tokens.d.ts +9 -0
- package/dist/components/tooltip/tooltip-tokens.js +72 -0
- package/dist/components/tooltip/tooltip-tokens.js.map +1 -0
- package/dist/components/tooltip/tooltip-trigger.d.ts +42 -0
- package/dist/components/tooltip/tooltip-trigger.js +115 -0
- package/dist/components/tooltip/tooltip-trigger.js.map +1 -0
- package/dist/composites/button-group/ButtonGroup.d.ts +116 -0
- package/dist/composites/button-group/ButtonGroup.js +270 -0
- package/dist/composites/button-group/ButtonGroup.js.map +1 -0
- package/dist/composites/button-group/button-group-styles.d.ts +73 -0
- package/dist/composites/button-group/button-group-styles.js +87 -0
- package/dist/composites/button-group/button-group-styles.js.map +1 -0
- package/dist/composites/button-group/lazy-overflow-menu.js +43 -0
- package/dist/composites/button-group/lazy-overflow-menu.js.map +1 -0
- package/dist/composites/button-group/overflow-menu-list.js +26 -0
- package/dist/composites/button-group/overflow-menu-list.js.map +1 -0
- package/dist/composites/button-group/use-overflow.js +75 -0
- package/dist/composites/button-group/use-overflow.js.map +1 -0
- package/dist/composites/button-group/use-press-expansion.js +155 -0
- package/dist/composites/button-group/use-press-expansion.js.map +1 -0
- package/dist/index.d.ts +142 -0
- package/dist/index.js +136 -0
- package/dist/motion/get-m3-spring.d.ts +6 -0
- package/dist/motion/get-m3-spring.js +10 -0
- package/dist/motion/get-m3-spring.js.map +1 -0
- package/dist/motion/reduced-motion.js +19 -0
- package/dist/motion/reduced-motion.js.map +1 -0
- package/dist/motion/use-m3-spring.d.ts +13 -0
- package/dist/motion/use-m3-spring.js +22 -0
- package/dist/motion/use-m3-spring.js.map +1 -0
- package/dist/next/NextRouterProvider.d.ts +13 -0
- package/dist/next/NextRouterProvider.js +26 -0
- package/dist/next/NextRouterProvider.js.map +1 -0
- package/dist/next/get-theme-from-cookies.d.ts +32 -0
- package/dist/next/get-theme-from-cookies.js +27 -0
- package/dist/next/get-theme-from-cookies.js.map +1 -0
- package/dist/next/navigation-guard.d.ts +30 -0
- package/dist/next/navigation-guard.js +68 -0
- package/dist/next/navigation-guard.js.map +1 -0
- package/dist/next.d.ts +5 -0
- package/dist/next.js +5 -0
- package/dist/primitives/ButtonBase.d.ts +115 -0
- package/dist/primitives/ButtonBase.js +231 -0
- package/dist/primitives/ButtonBase.js.map +1 -0
- package/dist/primitives/DomDirectionLocale.d.ts +18 -0
- package/dist/primitives/DomDirectionLocale.js +28 -0
- package/dist/primitives/DomDirectionLocale.js.map +1 -0
- package/dist/primitives/Field.d.ts +50 -0
- package/dist/primitives/Field.js +74 -0
- package/dist/primitives/Field.js.map +1 -0
- package/dist/primitives/IconFaces.js +23 -0
- package/dist/primitives/IconFaces.js.map +1 -0
- package/dist/primitives/Overlay.d.ts +39 -0
- package/dist/primitives/Overlay.js +86 -0
- package/dist/primitives/Overlay.js.map +1 -0
- package/dist/primitives/SelectionControl.d.ts +55 -0
- package/dist/primitives/SelectionControl.js +58 -0
- package/dist/primitives/SelectionControl.js.map +1 -0
- package/dist/primitives/Surface.d.ts +123 -0
- package/dist/primitives/Surface.js +68 -0
- package/dist/primitives/Surface.js.map +1 -0
- package/dist/primitives/ToolbarContext.js +12 -0
- package/dist/primitives/ToolbarContext.js.map +1 -0
- package/dist/primitives/TouchTarget.d.ts +14 -0
- package/dist/primitives/TouchTarget.js +20 -0
- package/dist/primitives/TouchTarget.js.map +1 -0
- package/dist/primitives/TriggerContext.d.ts +34 -0
- package/dist/primitives/TriggerContext.js +24 -0
- package/dist/primitives/TriggerContext.js.map +1 -0
- package/dist/primitives/hidden-input-focus.js +27 -0
- package/dist/primitives/hidden-input-focus.js.map +1 -0
- package/dist/primitives/icon-faces-styles.d.ts +9 -0
- package/dist/primitives/icon-faces-styles.js +45 -0
- package/dist/primitives/icon-faces-styles.js.map +1 -0
- package/dist/primitives/locale-with-direction.d.ts +9 -0
- package/dist/primitives/locale-with-direction.js +17 -0
- package/dist/primitives/locale-with-direction.js.map +1 -0
- package/dist/primitives/morph-path.d.ts +25 -0
- package/dist/primitives/morph-path.js +38 -0
- package/dist/primitives/morph-path.js.map +1 -0
- package/dist/primitives/selection-control-styles.d.ts +54 -0
- package/dist/primitives/selection-control-styles.js +44 -0
- package/dist/primitives/selection-control-styles.js.map +1 -0
- package/dist/primitives/use-m3-interaction.d.ts +51 -0
- package/dist/primitives/use-m3-interaction.js +149 -0
- package/dist/primitives/use-m3-interaction.js.map +1 -0
- package/dist/primitives/use-m3-morph.d.ts +18 -0
- package/dist/primitives/use-m3-morph.js +36 -0
- package/dist/primitives/use-m3-morph.js.map +1 -0
- package/dist/primitives/use-presence.d.ts +19 -0
- package/dist/primitives/use-presence.js +37 -0
- package/dist/primitives/use-presence.js.map +1 -0
- package/dist/primitives.d.ts +36 -0
- package/dist/primitives.js +34 -0
- package/dist/shapes/corner-rounding.d.ts +13 -0
- package/dist/shapes/corner-rounding.js +18 -0
- package/dist/shapes/corner-rounding.js.map +1 -0
- package/dist/shapes/cubic.d.ts +52 -0
- package/dist/shapes/cubic.js +189 -0
- package/dist/shapes/cubic.js.map +1 -0
- package/dist/shapes/feature-mapping.js +80 -0
- package/dist/shapes/feature-mapping.js.map +1 -0
- package/dist/shapes/features.d.ts +23 -0
- package/dist/shapes/features.js +82 -0
- package/dist/shapes/features.js.map +1 -0
- package/dist/shapes/float-mapping.js +65 -0
- package/dist/shapes/float-mapping.js.map +1 -0
- package/dist/shapes/generated/material-shape-path-record.d.ts +11 -0
- package/dist/shapes/generated/material-shape-path-record.js +48 -0
- package/dist/shapes/generated/material-shape-path-record.js.map +1 -0
- package/dist/shapes/generated/material-shape-paths.d.ts +78 -0
- package/dist/shapes/generated/material-shape-paths.js +218 -0
- package/dist/shapes/generated/material-shape-paths.js.map +1 -0
- package/dist/shapes/mask.d.ts +14 -0
- package/dist/shapes/mask.js +24 -0
- package/dist/shapes/mask.js.map +1 -0
- package/dist/shapes/material-shapes.d.ts +11 -0
- package/dist/shapes/material-shapes.js +250 -0
- package/dist/shapes/material-shapes.js.map +1 -0
- package/dist/shapes/morph.d.ts +25 -0
- package/dist/shapes/morph.js +97 -0
- package/dist/shapes/morph.js.map +1 -0
- package/dist/shapes/path.d.ts +33 -0
- package/dist/shapes/path.js +47 -0
- package/dist/shapes/path.js.map +1 -0
- package/dist/shapes/point.d.ts +28 -0
- package/dist/shapes/point.js +103 -0
- package/dist/shapes/point.js.map +1 -0
- package/dist/shapes/polygon-measure.js +140 -0
- package/dist/shapes/polygon-measure.js.map +1 -0
- package/dist/shapes/rounded-polygon.d.ts +44 -0
- package/dist/shapes/rounded-polygon.js +278 -0
- package/dist/shapes/rounded-polygon.js.map +1 -0
- package/dist/shapes/shape-path.d.ts +15 -0
- package/dist/shapes/shapes.d.ts +53 -0
- package/dist/shapes/shapes.js +171 -0
- package/dist/shapes/shapes.js.map +1 -0
- package/dist/styles/generated/components.css +710 -0
- package/dist/styles/generated/theme.css +247 -0
- package/dist/styles/generated/themes.css +3361 -0
- package/dist/styles/generated/tokens.css +284 -0
- package/dist/styles/styles.css +15 -0
- package/dist/styles/utilities.css +283 -0
- package/dist/styles.compiled.css +2 -0
- package/dist/theme/ThemeProvider.d.ts +72 -0
- package/dist/theme/ThemeProvider.js +144 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/theme/ThemeScope.d.ts +32 -0
- package/dist/theme/ThemeScope.js +67 -0
- package/dist/theme/ThemeScope.js.map +1 -0
- package/dist/theme/ThemeScript.d.ts +26 -0
- package/dist/theme/ThemeScript.js +44 -0
- package/dist/theme/ThemeScript.js.map +1 -0
- package/dist/theme/context.d.ts +32 -0
- package/dist/theme/context.js +47 -0
- package/dist/theme/context.js.map +1 -0
- package/dist/theme/create-theme.d.ts +60 -0
- package/dist/theme/create-theme.js +47 -0
- package/dist/theme/create-theme.js.map +1 -0
- package/dist/theme/css.js +54 -0
- package/dist/theme/css.js.map +1 -0
- package/dist/theme/parse-palettes.js +40 -0
- package/dist/theme/parse-palettes.js.map +1 -0
- package/dist/theme/scheme.d.ts +6 -0
- package/dist/theme/scheme.js +118 -0
- package/dist/theme/scheme.js.map +1 -0
- package/dist/theme/state.d.ts +38 -0
- package/dist/theme/state.js +93 -0
- package/dist/theme/state.js.map +1 -0
- package/dist/theme/storage.js +21 -0
- package/dist/theme/storage.js.map +1 -0
- package/dist/tokens/breakpoints.d.ts +15 -0
- package/dist/tokens/breakpoints.js +16 -0
- package/dist/tokens/breakpoints.js.map +1 -0
- package/dist/tokens/color.d.ts +104 -0
- package/dist/tokens/color.js +147 -0
- package/dist/tokens/color.js.map +1 -0
- package/dist/tokens/component.d.ts +110 -0
- package/dist/tokens/component.js +67 -0
- package/dist/tokens/component.js.map +1 -0
- package/dist/tokens/density.d.ts +20 -0
- package/dist/tokens/density.js +27 -0
- package/dist/tokens/density.js.map +1 -0
- package/dist/tokens/elevation.d.ts +44 -0
- package/dist/tokens/elevation.js +45 -0
- package/dist/tokens/elevation.js.map +1 -0
- package/dist/tokens/motion.d.ts +79 -0
- package/dist/tokens/motion.js +126 -0
- package/dist/tokens/motion.js.map +1 -0
- package/dist/tokens/shape.d.ts +22 -0
- package/dist/tokens/shape.js +22 -0
- package/dist/tokens/shape.js.map +1 -0
- package/dist/tokens/spring-velocity.d.ts +19 -0
- package/dist/tokens/spring-velocity.js +44 -0
- package/dist/tokens/spring-velocity.js.map +1 -0
- package/dist/tokens/state.d.ts +18 -0
- package/dist/tokens/state.js +19 -0
- package/dist/tokens/state.js.map +1 -0
- package/dist/tokens/typography.d.ts +64 -0
- package/dist/tokens/typography.js +60 -0
- package/dist/tokens/typography.js.map +1 -0
- package/dist/tokens/z-index.d.ts +17 -0
- package/dist/tokens/z-index.js +18 -0
- package/dist/tokens/z-index.js.map +1 -0
- package/dist/utils/announce.js +51 -0
- package/dist/utils/announce.js.map +1 -0
- package/dist/utils/assert-collection-children.js +26 -0
- package/dist/utils/assert-collection-children.js.map +1 -0
- package/dist/utils/closed-by.d.ts +9 -0
- package/dist/utils/closed-by.js +12 -0
- package/dist/utils/closed-by.js.map +1 -0
- package/dist/utils/cn.d.ts +31 -0
- package/dist/utils/cn.js +37 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/composite-keys.js +32 -0
- package/dist/utils/composite-keys.js.map +1 -0
- package/dist/utils/focus-visible.js +14 -0
- package/dist/utils/focus-visible.js.map +1 -0
- package/dist/utils/focus.js +51 -0
- package/dist/utils/focus.js.map +1 -0
- package/dist/utils/focusable-disabled.js +12 -0
- package/dist/utils/focusable-disabled.js.map +1 -0
- package/dist/utils/keep-pressed-in-place.d.ts +60 -0
- package/dist/utils/keep-pressed-in-place.js +127 -0
- package/dist/utils/keep-pressed-in-place.js.map +1 -0
- package/dist/utils/load-on-demand.js +111 -0
- package/dist/utils/load-on-demand.js.map +1 -0
- package/dist/utils/merge-data-tokens.d.ts +9 -0
- package/dist/utils/merge-data-tokens.js +15 -0
- package/dist/utils/merge-data-tokens.js.map +1 -0
- package/dist/utils/natural-size.js +53 -0
- package/dist/utils/natural-size.js.map +1 -0
- package/dist/utils/nearest-reveal.js +28 -0
- package/dist/utils/nearest-reveal.js.map +1 -0
- package/dist/utils/placement.js +14 -0
- package/dist/utils/placement.js.map +1 -0
- package/dist/utils/radio-group-keys.js +74 -0
- package/dist/utils/radio-group-keys.js.map +1 -0
- package/dist/utils/rendered-description.js +17 -0
- package/dist/utils/rendered-description.js.map +1 -0
- package/dist/utils/root-props.d.ts +103 -0
- package/dist/utils/root-props.js +51 -0
- package/dist/utils/root-props.js.map +1 -0
- package/dist/utils/search.d.ts +11 -0
- package/dist/utils/search.js +18 -0
- package/dist/utils/search.js.map +1 -0
- package/dist/utils/shortcut.js +20 -0
- package/dist/utils/shortcut.js.map +1 -0
- package/dist/utils/split-data-attributes.d.ts +12 -0
- package/dist/utils/split-data-attributes.js +20 -0
- package/dist/utils/split-data-attributes.js.map +1 -0
- package/dist/utils/toolbar-keys.js +28 -0
- package/dist/utils/toolbar-keys.js.map +1 -0
- package/dist/utils/tv.d.ts +7 -0
- package/dist/utils/tv.js +9 -0
- package/dist/utils/tv.js.map +1 -0
- package/dist/utils/typeahead.js +64 -0
- package/dist/utils/typeahead.js.map +1 -0
- package/dist/utils/warn-once.js +30 -0
- package/dist/utils/warn-once.js.map +1 -0
- package/dist/vendor/material-color-utilities/blend/blend.js +88 -0
- package/dist/vendor/material-color-utilities/blend/blend.js.map +1 -0
- package/dist/vendor/material-color-utilities/contrast/contrast.js +131 -0
- package/dist/vendor/material-color-utilities/contrast/contrast.js.map +1 -0
- package/dist/vendor/material-color-utilities/dislike/dislike_analyzer.js +58 -0
- package/dist/vendor/material-color-utilities/dislike/dislike_analyzer.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2021.js +620 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2021.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2025.js +786 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2025.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/contrast_curve.js +59 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/contrast_curve.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_color.js +420 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_color.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_scheme.js +701 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_scheme.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/material_dynamic_colors.js +374 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/material_dynamic_colors.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/tone_delta_pair.js +65 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/tone_delta_pair.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/variant.js +38 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/variant.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/cam16.js +309 -0
- package/dist/vendor/material-color-utilities/hct/cam16.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/hct.js +148 -0
- package/dist/vendor/material-color-utilities/hct/hct.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/hct_solver.js +660 -0
- package/dist/vendor/material-color-utilities/hct/hct_solver.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/viewing_conditions.js +117 -0
- package/dist/vendor/material-color-utilities/hct/viewing_conditions.js.map +1 -0
- package/dist/vendor/material-color-utilities/index.js +51 -0
- package/dist/vendor/material-color-utilities/index.js.map +1 -0
- package/dist/vendor/material-color-utilities/palettes/core_palette.js +22 -0
- package/dist/vendor/material-color-utilities/palettes/core_palette.js.map +1 -0
- package/dist/vendor/material-color-utilities/palettes/tonal_palette.js +134 -0
- package/dist/vendor/material-color-utilities/palettes/tonal_palette.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme.js +21 -0
- package/dist/vendor/material-color-utilities/scheme/scheme.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_android.js +21 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_android.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_content.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_content.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_expressive.js +38 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_expressive.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fidelity.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fidelity.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fruit_salad.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fruit_salad.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_monochrome.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_monochrome.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_neutral.js +36 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_neutral.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_rainbow.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_rainbow.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_tonal_spot.js +41 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_tonal_spot.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_vibrant.js +39 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_vibrant.js.map +1 -0
- package/dist/vendor/material-color-utilities/score/score.js +115 -0
- package/dist/vendor/material-color-utilities/score/score.js.map +1 -0
- package/dist/vendor/material-color-utilities/temperature/temperature_cache.js +227 -0
- package/dist/vendor/material-color-utilities/temperature/temperature_cache.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/color_utils.js +246 -0
- package/dist/vendor/material-color-utilities/utils/color_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/image_utils.js +21 -0
- package/dist/vendor/material-color-utilities/utils/image_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/math_utils.js +119 -0
- package/dist/vendor/material-color-utilities/utils/math_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/string_utils.js +74 -0
- package/dist/vendor/material-color-utilities/utils/string_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/theme_utils.js +24 -0
- package/dist/vendor/material-color-utilities/utils/theme_utils.js.map +1 -0
- package/package.json +114 -3
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { tv } from "../../utils/tv.js";
|
|
2
|
+
//#region src/components/chip/chip-styles.ts
|
|
3
|
+
/** Transitions: padding on fast spatial, colours and elevation on fast effects. */
|
|
4
|
+
const motion = [
|
|
5
|
+
"[--m3-transition-property:padding-inline-start,background-color,color,box-shadow,border-color]",
|
|
6
|
+
"[--m3-transition-duration:var(--md-sys-motion-spring-spatial-fast-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-effects-fast-duration)]",
|
|
7
|
+
"[--m3-transition-easing:var(--md-sys-motion-spring-spatial-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),var(--md-sys-motion-spring-effects-fast-easing)]",
|
|
8
|
+
"[--m3-transition-delay:0s,0s,0s,0s,0s]"
|
|
9
|
+
];
|
|
10
|
+
/** A container of buttons shows the state layer of whichever one is interacted with. */
|
|
11
|
+
const containerStates = [
|
|
12
|
+
"min-w-[88px] cursor-default",
|
|
13
|
+
"has-data-hovered:[--m3-state-opacity:var(--md-sys-state-hover-state-layer-opacity)]",
|
|
14
|
+
"has-data-focus-visible:[--m3-state-opacity:var(--md-sys-state-focus-state-layer-opacity)]",
|
|
15
|
+
"has-data-pressed:[--m3-state-opacity:var(--md-sys-state-pressed-state-layer-opacity)]"
|
|
16
|
+
];
|
|
17
|
+
/** Variant definitions for the chips; extend them to add variants. */
|
|
18
|
+
const chipStyles = tv({
|
|
19
|
+
slots: {
|
|
20
|
+
root: [
|
|
21
|
+
"group/chip inline-flex h-fit min-h-[var(--m3-chip-height)] max-w-full shrink-0 cursor-pointer items-center align-middle",
|
|
22
|
+
"[--m3-chip-height:max(24px,calc(32px+var(--md-sys-density,0)*4px))]",
|
|
23
|
+
"[--m3-chip-slot:min(24px,calc(var(--m3-chip-height)-2*var(--m3-chip-border)))]",
|
|
24
|
+
"font-plain text-label-large whitespace-nowrap select-none",
|
|
25
|
+
"state-layer focus-ring",
|
|
26
|
+
...motion,
|
|
27
|
+
"data-disabled:cursor-default data-disabled:text-on-surface/38"
|
|
28
|
+
],
|
|
29
|
+
content: "relative inline-flex min-w-0 items-center",
|
|
30
|
+
leading: "inline-flex shrink-0 items-center justify-center [&>svg]:size-[18px] group-data-disabled/chip:text-on-surface/38",
|
|
31
|
+
label: "min-w-0 truncate",
|
|
32
|
+
trailing: "inline-flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-full group-data-disabled/chip:text-on-surface/38",
|
|
33
|
+
check: [
|
|
34
|
+
"grid grid-cols-[0fr] opacity-0 in-data-selected:grid-cols-[1fr] in-data-selected:opacity-100",
|
|
35
|
+
"[transition-property:grid-template-columns,opacity]",
|
|
36
|
+
"[transition-duration:var(--md-sys-motion-spring-spatial-fast-duration),var(--md-sys-motion-spring-effects-fast-duration)]",
|
|
37
|
+
"[transition-timing-function:var(--md-sys-motion-spring-spatial-fast-easing),var(--md-sys-motion-spring-effects-fast-easing)]"
|
|
38
|
+
],
|
|
39
|
+
checkInner: "flex min-w-0 overflow-hidden",
|
|
40
|
+
checkIcon: "inline-flex size-[18px] shrink-0 me-[8px] [&>svg]:size-full",
|
|
41
|
+
avatar: "size-[var(--m3-chip-slot)] shrink-0 overflow-hidden rounded-corner-medium [&>img]:size-full [&>img]:object-cover group-data-disabled/chip:opacity-38",
|
|
42
|
+
remove: [
|
|
43
|
+
"relative ms-[calc(8px-(var(--m3-chip-slot)-18px)/2)] -me-[calc((var(--m3-chip-slot)-18px)/2)] inline-flex size-[var(--m3-chip-slot)] shrink-0 cursor-pointer items-center justify-center rounded-full",
|
|
44
|
+
"state-layer [&>svg]:size-[18px]",
|
|
45
|
+
"data-disabled:cursor-default"
|
|
46
|
+
],
|
|
47
|
+
primary: "inline-flex min-w-0 flex-1 cursor-pointer items-center self-stretch rounded-[inherit] focus-ring data-disabled:cursor-default"
|
|
48
|
+
},
|
|
49
|
+
variants: {
|
|
50
|
+
kind: {
|
|
51
|
+
assist: {
|
|
52
|
+
root: ["rounded-[var(--_md-comp-assist-chip-container-shape)]", "text-[color:var(--_md-comp-assist-chip-label-text-color)]"],
|
|
53
|
+
leading: "text-[color:var(--_md-comp-assist-chip-with-icon-icon-color)]"
|
|
54
|
+
},
|
|
55
|
+
suggestion: {
|
|
56
|
+
root: ["rounded-[var(--_md-comp-suggestion-chip-container-shape)]", "text-[color:var(--_md-comp-suggestion-chip-label-text-color)]"],
|
|
57
|
+
leading: "text-[color:var(--_md-comp-suggestion-chip-with-leading-icon-leading-icon-color)]"
|
|
58
|
+
},
|
|
59
|
+
filter: {
|
|
60
|
+
root: [
|
|
61
|
+
"rounded-[var(--_md-comp-filter-chip-container-shape)]",
|
|
62
|
+
"text-[color:var(--_md-comp-filter-chip-unselected-label-text-color)]",
|
|
63
|
+
"data-selected:text-[color:var(--_md-comp-filter-chip-selected-label-text-color)]",
|
|
64
|
+
"data-selected:data-disabled:bg-on-surface/12 data-selected:data-disabled:text-on-surface/38"
|
|
65
|
+
],
|
|
66
|
+
leading: [
|
|
67
|
+
"text-[color:var(--_md-comp-filter-chip-with-leading-icon-unselected-leading-icon-color)]",
|
|
68
|
+
"group-data-selected/chip:text-on-secondary-container",
|
|
69
|
+
"group-data-disabled/chip:group-data-selected/chip:text-on-surface/38"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
input: {
|
|
73
|
+
root: [
|
|
74
|
+
"cursor-default rounded-[var(--_md-comp-input-chip-container-shape)]",
|
|
75
|
+
"text-[color:var(--_md-comp-input-chip-unselected-label-text-color)]",
|
|
76
|
+
"data-selected:bg-[var(--_md-comp-input-chip-selected-container-color)]",
|
|
77
|
+
"data-selected:text-[color:var(--_md-comp-input-chip-selected-label-text-color)]",
|
|
78
|
+
"data-selected:data-disabled:bg-on-surface/12 data-selected:data-disabled:text-on-surface/38"
|
|
79
|
+
],
|
|
80
|
+
leading: "group-data-selected/chip:text-primary group-data-disabled/chip:group-data-selected/chip:text-on-surface/38"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* How the chip is built: one element (`none`); a container of two buttons, its main
|
|
85
|
+
* part and the remove button (`two`); or a remove-only input chip, whose one focus stop
|
|
86
|
+
* is the remove button, so its focus ring circles the whole chip (`removeOnly`).
|
|
87
|
+
*/
|
|
88
|
+
split: {
|
|
89
|
+
none: {},
|
|
90
|
+
two: {
|
|
91
|
+
root: containerStates,
|
|
92
|
+
remove: "focus-ring"
|
|
93
|
+
},
|
|
94
|
+
removeOnly: {
|
|
95
|
+
root: [
|
|
96
|
+
...containerStates,
|
|
97
|
+
"has-data-focus-visible:[outline:var(--md-sys-focus-indicator-thickness)_solid_var(--md-sys-color-secondary)]",
|
|
98
|
+
"has-data-focus-visible:[outline-offset:var(--md-sys-focus-indicator-offset)]"
|
|
99
|
+
],
|
|
100
|
+
remove: "outline-none",
|
|
101
|
+
primary: "cursor-default"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
elevated: {
|
|
105
|
+
true: { root: [
|
|
106
|
+
"[--m3-chip-border:0px] shadow-elevation-1",
|
|
107
|
+
"data-hovered:not-data-pressed:not-data-focus-visible:not-data-dragged:shadow-elevation-2",
|
|
108
|
+
"data-dragged:shadow-elevation-4 data-disabled:bg-on-surface/12 data-disabled:shadow-elevation-0",
|
|
109
|
+
"forced-colors:[--m3-chip-border:1px] forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]"
|
|
110
|
+
] },
|
|
111
|
+
false: { root: "[--m3-chip-border:1px] border border-solid bg-transparent data-dragged:shadow-elevation-4 data-disabled:border-on-surface/12" }
|
|
112
|
+
},
|
|
113
|
+
/** `strong` draws the border in `outline` for 3:1 contrast (M3's accessibility guidance). */
|
|
114
|
+
outline: {
|
|
115
|
+
standard: {},
|
|
116
|
+
strong: {}
|
|
117
|
+
},
|
|
118
|
+
leading: {
|
|
119
|
+
none: {},
|
|
120
|
+
icon: {},
|
|
121
|
+
avatar: {}
|
|
122
|
+
},
|
|
123
|
+
trailing: {
|
|
124
|
+
true: {},
|
|
125
|
+
false: {}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
compoundVariants: [
|
|
129
|
+
{
|
|
130
|
+
kind: "assist",
|
|
131
|
+
elevated: false,
|
|
132
|
+
outline: "standard",
|
|
133
|
+
class: { root: "border-[color:var(--_md-comp-assist-chip-flat-outline-color)]" }
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
kind: "suggestion",
|
|
137
|
+
elevated: false,
|
|
138
|
+
outline: "standard",
|
|
139
|
+
class: { root: "border-[color:var(--_md-comp-suggestion-chip-flat-outline-color)]" }
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
kind: "filter",
|
|
143
|
+
elevated: false,
|
|
144
|
+
outline: "standard",
|
|
145
|
+
class: { root: "border-[color:var(--_md-comp-filter-chip-flat-unselected-outline-color)]" }
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
kind: "input",
|
|
149
|
+
elevated: false,
|
|
150
|
+
outline: "standard",
|
|
151
|
+
class: { root: "border-[color:var(--_md-comp-input-chip-unselected-outline-color)]" }
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
elevated: false,
|
|
155
|
+
outline: "strong",
|
|
156
|
+
class: { root: "border-outline" }
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
kind: "assist",
|
|
160
|
+
elevated: true,
|
|
161
|
+
class: { root: "bg-[var(--_md-comp-assist-chip-elevated-container-color)]" }
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
kind: "suggestion",
|
|
165
|
+
elevated: true,
|
|
166
|
+
class: { root: "bg-[var(--_md-comp-suggestion-chip-elevated-container-color)]" }
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
kind: ["filter", "input"],
|
|
170
|
+
elevated: false,
|
|
171
|
+
class: { root: "data-selected:border-transparent" }
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
kind: ["filter", "input"],
|
|
175
|
+
class: { root: "forced-colors:data-selected:[--m3-chip-border:2px] forced-colors:data-selected:border-2 forced-colors:data-selected:border-solid forced-colors:data-selected:border-[Highlight]!" }
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
kind: "filter",
|
|
179
|
+
elevated: false,
|
|
180
|
+
class: { root: "data-selected:bg-[var(--_md-comp-filter-chip-flat-selected-container-color)]" }
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
kind: "filter",
|
|
184
|
+
elevated: true,
|
|
185
|
+
class: { root: ["bg-[var(--_md-comp-filter-chip-elevated-unselected-container-color)]", "data-selected:bg-secondary-container"] }
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
kind: "filter",
|
|
189
|
+
elevated: false,
|
|
190
|
+
class: { root: "data-selected:data-hovered:not-data-pressed:not-data-focus-visible:not-data-dragged:shadow-elevation-1" }
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
split: "two",
|
|
194
|
+
elevated: true,
|
|
195
|
+
class: { root: "has-data-hovered:not-has-data-pressed:not-has-data-focus-visible:not-data-dragged:shadow-elevation-2" }
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
kind: "filter",
|
|
199
|
+
split: "two",
|
|
200
|
+
elevated: false,
|
|
201
|
+
class: { root: "data-selected:has-data-hovered:not-has-data-pressed:not-has-data-focus-visible:not-data-dragged:shadow-elevation-1" }
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
kind: ["assist", "suggestion"],
|
|
205
|
+
elevated: false,
|
|
206
|
+
class: { root: "data-focus-visible:border-on-surface" }
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
kind: ["filter", "input"],
|
|
210
|
+
split: "none",
|
|
211
|
+
elevated: false,
|
|
212
|
+
class: { root: "data-focus-visible:not-data-selected:border-on-surface-variant" }
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
kind: ["filter", "input"],
|
|
216
|
+
split: ["two", "removeOnly"],
|
|
217
|
+
elevated: false,
|
|
218
|
+
class: { root: "has-data-focus-visible:not-data-selected:border-on-surface-variant" }
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
kind: [
|
|
222
|
+
"assist",
|
|
223
|
+
"suggestion",
|
|
224
|
+
"filter"
|
|
225
|
+
],
|
|
226
|
+
split: "none",
|
|
227
|
+
leading: "none",
|
|
228
|
+
class: { root: "ps-[calc(16px-var(--m3-chip-border))]" }
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
kind: "filter",
|
|
232
|
+
split: "none",
|
|
233
|
+
leading: "none",
|
|
234
|
+
class: { root: "data-selected:ps-[calc(8px-var(--m3-chip-border))]" }
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
kind: [
|
|
238
|
+
"assist",
|
|
239
|
+
"suggestion",
|
|
240
|
+
"filter"
|
|
241
|
+
],
|
|
242
|
+
split: "none",
|
|
243
|
+
leading: "icon",
|
|
244
|
+
class: { root: "ps-[calc(8px-var(--m3-chip-border))]" }
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
kind: [
|
|
248
|
+
"assist",
|
|
249
|
+
"suggestion",
|
|
250
|
+
"filter"
|
|
251
|
+
],
|
|
252
|
+
split: "none",
|
|
253
|
+
trailing: false,
|
|
254
|
+
class: { root: "pe-[calc(16px-var(--m3-chip-border))]" }
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
kind: [
|
|
258
|
+
"assist",
|
|
259
|
+
"suggestion",
|
|
260
|
+
"filter"
|
|
261
|
+
],
|
|
262
|
+
split: "none",
|
|
263
|
+
trailing: true,
|
|
264
|
+
class: { root: "pe-[calc(8px-var(--m3-chip-border))]" }
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
kind: [
|
|
268
|
+
"assist",
|
|
269
|
+
"suggestion",
|
|
270
|
+
"filter"
|
|
271
|
+
],
|
|
272
|
+
leading: "icon",
|
|
273
|
+
class: { leading: "me-[8px]" }
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
kind: [
|
|
277
|
+
"assist",
|
|
278
|
+
"suggestion",
|
|
279
|
+
"filter"
|
|
280
|
+
],
|
|
281
|
+
trailing: true,
|
|
282
|
+
class: { trailing: "ms-[8px]" }
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
kind: "filter",
|
|
286
|
+
split: "two",
|
|
287
|
+
leading: "none",
|
|
288
|
+
class: {
|
|
289
|
+
primary: "ps-[calc(16px-var(--m3-chip-border))] data-selected:ps-[calc(8px-var(--m3-chip-border))]",
|
|
290
|
+
root: "pe-[calc(8px-var(--m3-chip-border))]"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
kind: "filter",
|
|
295
|
+
split: "two",
|
|
296
|
+
leading: "icon",
|
|
297
|
+
class: {
|
|
298
|
+
primary: "ps-[calc(8px-var(--m3-chip-border))]",
|
|
299
|
+
root: "pe-[calc(8px-var(--m3-chip-border))]"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
kind: "input",
|
|
304
|
+
leading: "none",
|
|
305
|
+
class: { primary: "ps-[calc(12px-var(--m3-chip-border))]" }
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
kind: "input",
|
|
309
|
+
leading: "icon",
|
|
310
|
+
class: {
|
|
311
|
+
primary: "ps-[calc(8px-var(--m3-chip-border))]",
|
|
312
|
+
leading: "me-[8px]"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
kind: "input",
|
|
317
|
+
leading: "avatar",
|
|
318
|
+
class: {
|
|
319
|
+
primary: "ps-[calc(4px-var(--m3-chip-border))]",
|
|
320
|
+
leading: "me-[8px]"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
kind: "input",
|
|
325
|
+
trailing: false,
|
|
326
|
+
class: { primary: "pe-[calc(12px-var(--m3-chip-border))]" }
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
kind: "input",
|
|
330
|
+
trailing: true,
|
|
331
|
+
class: { root: "pe-[calc(8px-var(--m3-chip-border))]" }
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
defaultVariants: {
|
|
335
|
+
kind: "assist",
|
|
336
|
+
split: "none",
|
|
337
|
+
elevated: false,
|
|
338
|
+
outline: "standard",
|
|
339
|
+
leading: "none",
|
|
340
|
+
trailing: false
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
/**
|
|
344
|
+
* Variant definitions for {@link ChipSet}. Chips are 8px apart (M3: "Keep an 8dp minimum
|
|
345
|
+
* space between chips"). With web density, rows come 2px further apart per step, half of what
|
|
346
|
+
* each chip loses (8 → 10 → 12px; 12px at -3, where chips stay 24px), so a chip's 48px touch
|
|
347
|
+
* target never reaches the chips in the rows above and below.
|
|
348
|
+
*/
|
|
349
|
+
const chipSetStyles = tv({
|
|
350
|
+
slots: { root: "flex max-w-full gap-x-[8px] gap-y-[calc(8px-max(-4px,var(--md-sys-density,0)*2px))]" },
|
|
351
|
+
variants: { layout: {
|
|
352
|
+
wrap: { root: "flex-wrap" },
|
|
353
|
+
scroll: { root: ["flex-nowrap overflow-x-auto overscroll-x-contain ps-[4px] pe-[4px] pt-[calc(8px-max(-4px,var(--md-sys-density,0)*2px))] pb-[calc(8px-max(-4px,var(--md-sys-density,0)*2px))]", "[scrollbar-width:thin] [scrollbar-color:var(--md-sys-color-outline)_transparent]"] }
|
|
354
|
+
} },
|
|
355
|
+
defaultVariants: { layout: "wrap" }
|
|
356
|
+
});
|
|
357
|
+
//#endregion
|
|
358
|
+
export { chipSetStyles, chipStyles };
|
|
359
|
+
|
|
360
|
+
//# sourceMappingURL=chip-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip-styles.js","names":[],"sources":["../../../src/components/chip/chip-styles.ts"],"sourcesContent":["import { tv, type VariantProps } from '../../utils/tv';\n\n/*\n * Values follow the M3 chips spec (m3.material.io, Specs and Accessibility tabs), with\n * Compose Material 3's chip token files for what the spec leaves out (2026-10-13):\n *\n * - At least 32px tall (a minimum, so a chip grows around text at a large browser font\n * size, as Compose's `defaultMinSize` does; `h-fit` keeps a stretching parent from making\n * it taller; 2026-10-13), 8px corners for every chip, `label-large`, 18px icons, 24px avatars with\n * 12px corners, a 1px `outline-variant` border when flat (`outline` with the strong\n * outline). Elevated chips are `surface-container-low` at level 1 (hover 2, dragged 4).\n * - Padding: 16px at an edge without an icon, 8px beside an icon (4px beside an avatar),\n * and 8px between elements. Input chips without a leading element keep Compose's 12px.\n * Padding counts from the container's edge, as Compose's border overlays the content:\n * a flat chip's 1px border is taken out of its edge padding (`--m3-chip-border`).\n * - Elevation never shows a press: hover raises a chip (elevated 1 → 2, a flat selected\n * filter chip 0 → 1) only while it isn't pressed, keyboard-focused or dragged.\n * - A keyboard-focused flat chip's border is `on-surface` (assist, suggestion) or\n * `on-surface-variant` (unselected filter and input chips).\n * - Leading icons are `primary`; a selected filter chip's is `on-secondary-container`, a\n * selected input chip's `primary`, an unselected input chip's `on-surface-variant`.\n * - The remove button has a 48px target, and a chip with one is at least 88px wide.\n * - Web density (`--md-sys-density`): each step takes 4px off the minimum height, 32 → 28 →\n * 24px, and -3 stays at 24px (Material Components Web's chip density: 32px, 24px at its\n * densest, -2). `--m3-chip-height` holds it; the avatar and the remove button's state layer\n * are at most the height inside the border (24px, 22px in a flat 24px chip), so they never\n * make a dense chip taller. The 48px touch target stays (M3: \"a minimum 48dp target size,\n * regardless of placement or density\"), extending beyond the chip.\n * - Disabled: content `on-surface` 38%, borders `on-surface` 12%, containers `on-surface`\n * 12% at level 0.\n *\n * The resting corners, label and leading-icon colours, flat borders, elevated containers and\n * the flat selected containers and labels come from the component tokens (`chip-tokens.ts`,\n * `--md-comp-<kind>-chip-*`). Each kind is its own M3 token set, so each kind's classes read\n * its own private variables. A consumer class (`bg-tertiary`, `rounded-corner-medium`)\n * still wins in `cn()`.\n *\n * Every class is written out in full so Tailwind can find it.\n */\n\n/** Transitions: padding on fast spatial, colours and elevation on fast effects. */\nconst motion = [\n '[--m3-transition-property:padding-inline-start,background-color,color,box-shadow,border-color]',\n '[--m3-transition-duration:var(--md-sys-motion-spring-spatial-fast-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-effects-fast-duration)]',\n '[--m3-transition-easing:var(--md-sys-motion-spring-spatial-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),var(--md-sys-motion-spring-effects-fast-easing)]',\n '[--m3-transition-delay:0s,0s,0s,0s,0s]',\n];\n\n/** A container of buttons shows the state layer of whichever one is interacted with. */\nconst containerStates = [\n 'min-w-[88px] cursor-default',\n 'has-data-hovered:[--m3-state-opacity:var(--md-sys-state-hover-state-layer-opacity)]',\n 'has-data-focus-visible:[--m3-state-opacity:var(--md-sys-state-focus-state-layer-opacity)]',\n 'has-data-pressed:[--m3-state-opacity:var(--md-sys-state-pressed-state-layer-opacity)]',\n];\n\n/** Variant definitions for the chips; extend them to add variants. */\nexport const chipStyles = tv({\n slots: {\n root: [\n 'group/chip inline-flex h-fit min-h-[var(--m3-chip-height)] max-w-full shrink-0 cursor-pointer items-center align-middle',\n '[--m3-chip-height:max(24px,calc(32px+var(--md-sys-density,0)*4px))]',\n // An avatar's or the remove button's size: 24px, or the height inside a dense chip's border.\n '[--m3-chip-slot:min(24px,calc(var(--m3-chip-height)-2*var(--m3-chip-border)))]',\n 'font-plain text-label-large whitespace-nowrap select-none',\n 'state-layer focus-ring',\n ...motion,\n 'data-disabled:cursor-default data-disabled:text-on-surface/38',\n ],\n // Library-owned inner wrapper: holds the touch target.\n content: 'relative inline-flex min-w-0 items-center',\n // Icons: disabled beats their own colours through the named group's specificity.\n leading:\n 'inline-flex shrink-0 items-center justify-center [&>svg]:size-[18px] group-data-disabled/chip:text-on-surface/38',\n label: 'min-w-0 truncate',\n trailing:\n 'inline-flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-full group-data-disabled/chip:text-on-surface/38',\n // Filter chips: the built-in check grows in when selected.\n check: [\n 'grid grid-cols-[0fr] opacity-0 in-data-selected:grid-cols-[1fr] in-data-selected:opacity-100',\n '[transition-property:grid-template-columns,opacity]',\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 ],\n checkInner: 'flex min-w-0 overflow-hidden',\n checkIcon: 'inline-flex size-[18px] shrink-0 me-[8px] [&>svg]:size-full',\n avatar:\n 'size-[var(--m3-chip-slot)] shrink-0 overflow-hidden rounded-corner-medium [&>img]:size-full [&>img]:object-cover group-data-disabled/chip:opacity-38',\n // The remove button: an 18px icon in a 24px round state layer (less in a dense flat chip),\n // with a 48px target. Its margins put the icon 8px from the label and from the chip's end.\n remove: [\n 'relative ms-[calc(8px-(var(--m3-chip-slot)-18px)/2)] -me-[calc((var(--m3-chip-slot)-18px)/2)] inline-flex size-[var(--m3-chip-slot)] shrink-0 cursor-pointer items-center justify-center rounded-full',\n 'state-layer [&>svg]:size-[18px]',\n 'data-disabled:cursor-default',\n ],\n // A two-part chip's main part (its action, selection or label) fills the chip.\n primary:\n 'inline-flex min-w-0 flex-1 cursor-pointer items-center self-stretch rounded-[inherit] focus-ring data-disabled:cursor-default',\n },\n variants: {\n kind: {\n assist: {\n root: [\n 'rounded-[var(--_md-comp-assist-chip-container-shape)]',\n 'text-[color:var(--_md-comp-assist-chip-label-text-color)]',\n ],\n leading: 'text-[color:var(--_md-comp-assist-chip-with-icon-icon-color)]',\n },\n suggestion: {\n root: [\n 'rounded-[var(--_md-comp-suggestion-chip-container-shape)]',\n 'text-[color:var(--_md-comp-suggestion-chip-label-text-color)]',\n ],\n leading:\n 'text-[color:var(--_md-comp-suggestion-chip-with-leading-icon-leading-icon-color)]',\n },\n filter: {\n root: [\n 'rounded-[var(--_md-comp-filter-chip-container-shape)]',\n 'text-[color:var(--_md-comp-filter-chip-unselected-label-text-color)]',\n 'data-selected:text-[color:var(--_md-comp-filter-chip-selected-label-text-color)]',\n 'data-selected:data-disabled:bg-on-surface/12 data-selected:data-disabled:text-on-surface/38',\n ],\n leading: [\n 'text-[color:var(--_md-comp-filter-chip-with-leading-icon-unselected-leading-icon-color)]',\n 'group-data-selected/chip:text-on-secondary-container',\n 'group-data-disabled/chip:group-data-selected/chip:text-on-surface/38',\n ],\n },\n input: {\n root: [\n 'cursor-default rounded-[var(--_md-comp-input-chip-container-shape)]',\n 'text-[color:var(--_md-comp-input-chip-unselected-label-text-color)]',\n 'data-selected:bg-[var(--_md-comp-input-chip-selected-container-color)]',\n 'data-selected:text-[color:var(--_md-comp-input-chip-selected-label-text-color)]',\n 'data-selected:data-disabled:bg-on-surface/12 data-selected:data-disabled:text-on-surface/38',\n ],\n leading:\n 'group-data-selected/chip:text-primary group-data-disabled/chip:group-data-selected/chip:text-on-surface/38',\n },\n },\n /**\n * How the chip is built: one element (`none`); a container of two buttons, its main\n * part and the remove button (`two`); or a remove-only input chip, whose one focus stop\n * is the remove button, so its focus ring circles the whole chip (`removeOnly`).\n */\n split: {\n none: {},\n two: { root: containerStates, remove: 'focus-ring' },\n removeOnly: {\n root: [\n ...containerStates,\n 'has-data-focus-visible:[outline:var(--md-sys-focus-indicator-thickness)_solid_var(--md-sys-color-secondary)]',\n 'has-data-focus-visible:[outline-offset:var(--md-sys-focus-indicator-offset)]',\n ],\n remove: 'outline-none',\n primary: 'cursor-default',\n },\n },\n elevated: {\n true: {\n root: [\n '[--m3-chip-border:0px] shadow-elevation-1',\n 'data-hovered:not-data-pressed:not-data-focus-visible:not-data-dragged:shadow-elevation-2',\n 'data-dragged:shadow-elevation-4 data-disabled:bg-on-surface/12 data-disabled:shadow-elevation-0',\n // Forced colours drop the shadow and the container, so the chip takes a 1px border\n // (counted out of its padding, as a flat chip's).\n 'forced-colors:[--m3-chip-border:1px] forced-colors:border forced-colors:border-solid forced-colors:border-[CanvasText]',\n ],\n },\n false: {\n root: '[--m3-chip-border:1px] border border-solid bg-transparent data-dragged:shadow-elevation-4 data-disabled:border-on-surface/12',\n },\n },\n /** `strong` draws the border in `outline` for 3:1 contrast (M3's accessibility guidance). */\n outline: {\n standard: {},\n strong: {},\n },\n leading: { none: {}, icon: {}, avatar: {} },\n trailing: { true: {}, false: {} },\n },\n compoundVariants: [\n // The flat border and the elevated container: each kind's own tokens.\n {\n kind: 'assist',\n elevated: false,\n outline: 'standard',\n class: { root: 'border-[color:var(--_md-comp-assist-chip-flat-outline-color)]' },\n },\n {\n kind: 'suggestion',\n elevated: false,\n outline: 'standard',\n class: { root: 'border-[color:var(--_md-comp-suggestion-chip-flat-outline-color)]' },\n },\n {\n kind: 'filter',\n elevated: false,\n outline: 'standard',\n class: { root: 'border-[color:var(--_md-comp-filter-chip-flat-unselected-outline-color)]' },\n },\n {\n kind: 'input',\n elevated: false,\n outline: 'standard',\n class: { root: 'border-[color:var(--_md-comp-input-chip-unselected-outline-color)]' },\n },\n { elevated: false, outline: 'strong', class: { root: 'border-outline' } },\n {\n kind: 'assist',\n elevated: true,\n class: { root: 'bg-[var(--_md-comp-assist-chip-elevated-container-color)]' },\n },\n {\n kind: 'suggestion',\n elevated: true,\n class: { root: 'bg-[var(--_md-comp-suggestion-chip-elevated-container-color)]' },\n },\n // Selected filter and input chips drop their border (Compose: 0dp, transparent).\n {\n kind: ['filter', 'input'],\n elevated: false,\n class: { root: 'data-selected:border-transparent' },\n },\n // Forced colours drop the selected container, so a selected chip shows a 2px `Highlight`\n // border instead (counted out of its padding).\n {\n kind: ['filter', 'input'],\n class: {\n root: 'forced-colors:data-selected:[--m3-chip-border:2px] forced-colors:data-selected:border-2 forced-colors:data-selected:border-solid forced-colors:data-selected:border-[Highlight]!',\n },\n },\n {\n kind: 'filter',\n elevated: false,\n class: {\n root: 'data-selected:bg-[var(--_md-comp-filter-chip-flat-selected-container-color)]',\n },\n },\n {\n kind: 'filter',\n elevated: true,\n class: {\n root: [\n 'bg-[var(--_md-comp-filter-chip-elevated-unselected-container-color)]',\n 'data-selected:bg-secondary-container',\n ],\n },\n },\n // A flat selected filter chip rises to level 1 on hover only (focus and press stay at 0).\n {\n kind: 'filter',\n elevated: false,\n class: {\n root: 'data-selected:data-hovered:not-data-pressed:not-data-focus-visible:not-data-dragged:shadow-elevation-1',\n },\n },\n // A two-part chip's container is a plain element that never gets `data-hovered`; it rises\n // while either of its buttons is hovered, and not while one is pressed or keyboard-focused.\n {\n split: 'two',\n elevated: true,\n class: {\n root: 'has-data-hovered:not-has-data-pressed:not-has-data-focus-visible:not-data-dragged:shadow-elevation-2',\n },\n },\n {\n kind: 'filter',\n split: 'two',\n elevated: false,\n class: {\n root: 'data-selected:has-data-hovered:not-has-data-pressed:not-has-data-focus-visible:not-data-dragged:shadow-elevation-1',\n },\n },\n // A keyboard-focused flat chip's border darkens (Compose's Flat*FocusOutlineColor).\n {\n kind: ['assist', 'suggestion'],\n elevated: false,\n class: { root: 'data-focus-visible:border-on-surface' },\n },\n {\n kind: ['filter', 'input'],\n split: 'none',\n elevated: false,\n class: { root: 'data-focus-visible:not-data-selected:border-on-surface-variant' },\n },\n {\n kind: ['filter', 'input'],\n split: ['two', 'removeOnly'],\n elevated: false,\n class: { root: 'has-data-focus-visible:not-data-selected:border-on-surface-variant' },\n },\n\n // One-part chips: 16px at an edge without an icon, 8px beside one, 8px between, each\n // edge padding less the flat chip's border.\n // A filter chip without a leading icon grows a check when selected (8 · check · 8).\n {\n kind: ['assist', 'suggestion', 'filter'],\n split: 'none',\n leading: 'none',\n class: { root: 'ps-[calc(16px-var(--m3-chip-border))]' },\n },\n {\n kind: 'filter',\n split: 'none',\n leading: 'none',\n class: { root: 'data-selected:ps-[calc(8px-var(--m3-chip-border))]' },\n },\n {\n kind: ['assist', 'suggestion', 'filter'],\n split: 'none',\n leading: 'icon',\n class: { root: 'ps-[calc(8px-var(--m3-chip-border))]' },\n },\n {\n kind: ['assist', 'suggestion', 'filter'],\n split: 'none',\n trailing: false,\n class: { root: 'pe-[calc(16px-var(--m3-chip-border))]' },\n },\n {\n kind: ['assist', 'suggestion', 'filter'],\n split: 'none',\n trailing: true,\n class: { root: 'pe-[calc(8px-var(--m3-chip-border))]' },\n },\n { kind: ['assist', 'suggestion', 'filter'], leading: 'icon', class: { leading: 'me-[8px]' } },\n { kind: ['assist', 'suggestion', 'filter'], trailing: true, class: { trailing: 'ms-[8px]' } },\n // A filter chip with a remove button: its toggle holds the start padding.\n {\n kind: 'filter',\n split: 'two',\n leading: 'none',\n class: {\n primary:\n 'ps-[calc(16px-var(--m3-chip-border))] data-selected:ps-[calc(8px-var(--m3-chip-border))]',\n root: 'pe-[calc(8px-var(--m3-chip-border))]',\n },\n },\n {\n kind: 'filter',\n split: 'two',\n leading: 'icon',\n class: {\n primary: 'ps-[calc(8px-var(--m3-chip-border))]',\n root: 'pe-[calc(8px-var(--m3-chip-border))]',\n },\n },\n\n // Input: 12px without a leading element, 8px beside an icon, 4px beside an avatar;\n // 8px between elements and at the end beside the remove button, 12px without one.\n { kind: 'input', leading: 'none', class: { primary: 'ps-[calc(12px-var(--m3-chip-border))]' } },\n {\n kind: 'input',\n leading: 'icon',\n class: { primary: 'ps-[calc(8px-var(--m3-chip-border))]', leading: 'me-[8px]' },\n },\n {\n kind: 'input',\n leading: 'avatar',\n class: { primary: 'ps-[calc(4px-var(--m3-chip-border))]', leading: 'me-[8px]' },\n },\n { kind: 'input', trailing: false, class: { primary: 'pe-[calc(12px-var(--m3-chip-border))]' } },\n { kind: 'input', trailing: true, class: { root: 'pe-[calc(8px-var(--m3-chip-border))]' } },\n ],\n defaultVariants: {\n kind: 'assist',\n split: 'none',\n elevated: false,\n outline: 'standard',\n leading: 'none',\n trailing: false,\n },\n});\n\n/**\n * Variant definitions for {@link ChipSet}. Chips are 8px apart (M3: \"Keep an 8dp minimum\n * space between chips\"). With web density, rows come 2px further apart per step, half of what\n * each chip loses (8 → 10 → 12px; 12px at -3, where chips stay 24px), so a chip's 48px touch\n * target never reaches the chips in the rows above and below.\n */\nexport const chipSetStyles = tv({\n slots: {\n root: 'flex max-w-full gap-x-[8px] gap-y-[calc(8px-max(-4px,var(--md-sys-density,0)*2px))]',\n },\n variants: {\n layout: {\n // Rows wrap, 8px apart.\n wrap: { root: 'flex-wrap' },\n // One row that scrolls sideways. The padding keeps the chips' 48px targets and focus\n // rings inside the scroll area (more above and below as density makes chips shorter).\n // The scrollbar stays, thin and in `outline` (2026-10-17): hidden, nothing showed a\n // mouse user that more chips lay beyond the edge, or gave them a way to reach them.\n scroll: {\n root: [\n 'flex-nowrap overflow-x-auto overscroll-x-contain ps-[4px] pe-[4px] pt-[calc(8px-max(-4px,var(--md-sys-density,0)*2px))] pb-[calc(8px-max(-4px,var(--md-sys-density,0)*2px))]',\n '[scrollbar-width:thin] [scrollbar-color:var(--md-sys-color-outline)_transparent]',\n ],\n },\n },\n },\n defaultVariants: { layout: 'wrap' },\n});\n\n/**\n * The variants of {@link chipStyles}, 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 ChipStyleProps = VariantProps<typeof chipStyles>;\nexport type ChipOutline = NonNullable<ChipStyleProps['outline']>;\nexport type ChipSetLayout = NonNullable<VariantProps<typeof chipSetStyles>['layout']>;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentTokenSet } from "../../tokens/component.js";
|
|
2
|
+
import "../../index.js";
|
|
3
|
+
//#region src/components/chip/chip-tokens.d.ts
|
|
4
|
+
/** The tokens of {@link AssistChip}: `--md-comp-assist-chip-*`. */
|
|
5
|
+
export declare const assistChipTokenSet: ComponentTokenSet<"container-shape" | "label-text-color" | "with-icon-icon-color" | "flat-outline-color" | "elevated-container-color">;
|
|
6
|
+
/** The tokens of {@link SuggestionChip}: `--md-comp-suggestion-chip-*`. */
|
|
7
|
+
export declare const suggestionChipTokenSet: ComponentTokenSet<"container-shape" | "label-text-color" | "flat-outline-color" | "elevated-container-color" | "with-leading-icon-leading-icon-color">;
|
|
8
|
+
/** The tokens of {@link FilterChip}: `--md-comp-filter-chip-*`. */
|
|
9
|
+
export declare const filterChipTokenSet: ComponentTokenSet<"container-shape" | "selected-label-text-color" | "unselected-label-text-color" | "with-leading-icon-unselected-leading-icon-color" | "flat-unselected-outline-color" | "flat-selected-container-color" | "elevated-unselected-container-color">;
|
|
10
|
+
/** The tokens of {@link InputChip}: `--md-comp-input-chip-*`. */
|
|
11
|
+
export declare const inputChipTokenSet: ComponentTokenSet<"selected-container-color" | "container-shape" | "selected-label-text-color" | "unselected-label-text-color" | "unselected-outline-color">;
|
|
12
|
+
//#endregion
|
|
13
|
+
//# sourceMappingURL=chip-tokens.d.ts.map
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { color, corner, defineComponentTokens } from "../../tokens/component.js";
|
|
2
|
+
//#region src/components/chip/chip-tokens.ts
|
|
3
|
+
const paintsShape = { property: "border-top-left-radius" };
|
|
4
|
+
const paintsLabel = { property: "color" };
|
|
5
|
+
const paintsLeadingIcon = {
|
|
6
|
+
slot: "leading",
|
|
7
|
+
property: "color"
|
|
8
|
+
};
|
|
9
|
+
const paintsFlatOutline = { property: "border-top-color" };
|
|
10
|
+
const paintsElevatedContainer = {
|
|
11
|
+
property: "background-color",
|
|
12
|
+
state: "elevated"
|
|
13
|
+
};
|
|
14
|
+
/** The tokens of {@link AssistChip}: `--md-comp-assist-chip-*`. */
|
|
15
|
+
const assistChipTokenSet = defineComponentTokens({
|
|
16
|
+
name: "md-comp-assist-chip",
|
|
17
|
+
tokens: {
|
|
18
|
+
"container-shape": {
|
|
19
|
+
value: corner("small"),
|
|
20
|
+
description: "The corners.",
|
|
21
|
+
compose: "AssistChipTokens.ContainerShape",
|
|
22
|
+
paints: paintsShape
|
|
23
|
+
},
|
|
24
|
+
"label-text-color": {
|
|
25
|
+
value: color("on-surface"),
|
|
26
|
+
description: "The label.",
|
|
27
|
+
compose: "AssistChipTokens.LabelTextColor",
|
|
28
|
+
paints: paintsLabel
|
|
29
|
+
},
|
|
30
|
+
"with-icon-icon-color": {
|
|
31
|
+
value: color("primary"),
|
|
32
|
+
description: "The leading icon.",
|
|
33
|
+
compose: "AssistChipTokens.IconColor",
|
|
34
|
+
paints: paintsLeadingIcon
|
|
35
|
+
},
|
|
36
|
+
"flat-outline-color": {
|
|
37
|
+
value: color("outline-variant"),
|
|
38
|
+
description: "The flat chip’s border (the strong outline keeps `outline`).",
|
|
39
|
+
compose: "AssistChipTokens.FlatOutlineColor",
|
|
40
|
+
paints: paintsFlatOutline
|
|
41
|
+
},
|
|
42
|
+
"elevated-container-color": {
|
|
43
|
+
value: color("surface-container-low"),
|
|
44
|
+
description: "The elevated chip’s container.",
|
|
45
|
+
compose: "AssistChipTokens.ElevatedContainerColor",
|
|
46
|
+
paints: paintsElevatedContainer
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
/** The tokens of {@link SuggestionChip}: `--md-comp-suggestion-chip-*`. */
|
|
51
|
+
const suggestionChipTokenSet = defineComponentTokens({
|
|
52
|
+
name: "md-comp-suggestion-chip",
|
|
53
|
+
tokens: {
|
|
54
|
+
"container-shape": {
|
|
55
|
+
value: corner("small"),
|
|
56
|
+
description: "The corners.",
|
|
57
|
+
compose: "SuggestionChipTokens.ContainerShape",
|
|
58
|
+
paints: paintsShape
|
|
59
|
+
},
|
|
60
|
+
"label-text-color": {
|
|
61
|
+
value: color("on-surface-variant"),
|
|
62
|
+
description: "The label.",
|
|
63
|
+
compose: "SuggestionChipTokens.LabelTextColor",
|
|
64
|
+
paints: paintsLabel
|
|
65
|
+
},
|
|
66
|
+
"with-leading-icon-leading-icon-color": {
|
|
67
|
+
value: color("primary"),
|
|
68
|
+
description: "The leading icon.",
|
|
69
|
+
compose: "SuggestionChipTokens.LeadingIconColor",
|
|
70
|
+
paints: paintsLeadingIcon
|
|
71
|
+
},
|
|
72
|
+
"flat-outline-color": {
|
|
73
|
+
value: color("outline-variant"),
|
|
74
|
+
description: "The flat chip’s border (the strong outline keeps `outline`).",
|
|
75
|
+
compose: "SuggestionChipTokens.FlatOutlineColor",
|
|
76
|
+
paints: paintsFlatOutline
|
|
77
|
+
},
|
|
78
|
+
"elevated-container-color": {
|
|
79
|
+
value: color("surface-container-low"),
|
|
80
|
+
description: "The elevated chip’s container.",
|
|
81
|
+
compose: "SuggestionChipTokens.ElevatedContainerColor",
|
|
82
|
+
paints: paintsElevatedContainer
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
/** The tokens of {@link FilterChip}: `--md-comp-filter-chip-*`. */
|
|
87
|
+
const filterChipTokenSet = defineComponentTokens({
|
|
88
|
+
name: "md-comp-filter-chip",
|
|
89
|
+
tokens: {
|
|
90
|
+
"container-shape": {
|
|
91
|
+
value: corner("small"),
|
|
92
|
+
description: "The corners.",
|
|
93
|
+
compose: "FilterChipTokens.ContainerShape",
|
|
94
|
+
paints: paintsShape
|
|
95
|
+
},
|
|
96
|
+
"unselected-label-text-color": {
|
|
97
|
+
value: color("on-surface-variant"),
|
|
98
|
+
description: "The label (and the check), unselected.",
|
|
99
|
+
compose: "FilterChipTokens.UnselectedLabelTextColor",
|
|
100
|
+
paints: paintsLabel
|
|
101
|
+
},
|
|
102
|
+
"selected-label-text-color": {
|
|
103
|
+
value: color("on-secondary-container"),
|
|
104
|
+
description: "The label and the check, selected.",
|
|
105
|
+
compose: "FilterChipTokens.SelectedLabelTextColor",
|
|
106
|
+
paints: {
|
|
107
|
+
property: "color",
|
|
108
|
+
state: "selected"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"with-leading-icon-unselected-leading-icon-color": {
|
|
112
|
+
value: color("primary"),
|
|
113
|
+
description: "The leading icon, unselected.",
|
|
114
|
+
compose: "FilterChipTokens.UnselectedLeadingIconColor",
|
|
115
|
+
paints: paintsLeadingIcon
|
|
116
|
+
},
|
|
117
|
+
"flat-unselected-outline-color": {
|
|
118
|
+
value: color("outline-variant"),
|
|
119
|
+
description: "The flat chip’s border, unselected (the strong outline keeps `outline`).",
|
|
120
|
+
compose: "FilterChipTokens.FlatUnselectedOutlineColor",
|
|
121
|
+
paints: paintsFlatOutline
|
|
122
|
+
},
|
|
123
|
+
"flat-selected-container-color": {
|
|
124
|
+
value: color("secondary-container"),
|
|
125
|
+
description: "The flat chip’s container, selected.",
|
|
126
|
+
compose: "FilterChipTokens.FlatSelectedContainerColor",
|
|
127
|
+
paints: {
|
|
128
|
+
property: "background-color",
|
|
129
|
+
state: "selected"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"elevated-unselected-container-color": {
|
|
133
|
+
value: color("surface-container-low"),
|
|
134
|
+
description: "The elevated chip’s container, unselected.",
|
|
135
|
+
compose: "FilterChipTokens.ElevatedUnselectedContainerColor",
|
|
136
|
+
paints: paintsElevatedContainer
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
/** The tokens of {@link InputChip}: `--md-comp-input-chip-*`. */
|
|
141
|
+
const inputChipTokenSet = defineComponentTokens({
|
|
142
|
+
name: "md-comp-input-chip",
|
|
143
|
+
tokens: {
|
|
144
|
+
"container-shape": {
|
|
145
|
+
value: corner("small"),
|
|
146
|
+
description: "The corners.",
|
|
147
|
+
compose: "InputChipTokens.ContainerShape",
|
|
148
|
+
paints: paintsShape
|
|
149
|
+
},
|
|
150
|
+
"unselected-label-text-color": {
|
|
151
|
+
value: color("on-surface-variant"),
|
|
152
|
+
description: "The label (and an unselected leading icon), unselected.",
|
|
153
|
+
compose: "InputChipTokens.UnselectedLabelTextColor",
|
|
154
|
+
paints: paintsLabel
|
|
155
|
+
},
|
|
156
|
+
"selected-label-text-color": {
|
|
157
|
+
value: color("on-secondary-container"),
|
|
158
|
+
description: "The label, selected.",
|
|
159
|
+
compose: "InputChipTokens.SelectedLabelTextColor",
|
|
160
|
+
paints: {
|
|
161
|
+
property: "color",
|
|
162
|
+
state: "selected"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"unselected-outline-color": {
|
|
166
|
+
value: color("outline-variant"),
|
|
167
|
+
description: "The border, unselected (the strong outline keeps `outline`).",
|
|
168
|
+
compose: "InputChipTokens.UnselectedOutlineColor",
|
|
169
|
+
paints: paintsFlatOutline
|
|
170
|
+
},
|
|
171
|
+
"selected-container-color": {
|
|
172
|
+
value: color("secondary-container"),
|
|
173
|
+
description: "The container, selected.",
|
|
174
|
+
compose: "InputChipTokens.SelectedContainerColor",
|
|
175
|
+
paints: {
|
|
176
|
+
property: "background-color",
|
|
177
|
+
state: "selected"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
//#endregion
|
|
183
|
+
export { assistChipTokenSet, filterChipTokenSet, inputChipTokenSet, suggestionChipTokenSet };
|
|
184
|
+
|
|
185
|
+
//# sourceMappingURL=chip-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip-tokens.js","names":[],"sources":["../../../src/components/chip/chip-tokens.ts"],"sourcesContent":["import { color, corner, defineComponentTokens } from '../../tokens/component';\n\n/*\n * The chips' component tokens, M3's `md.comp.{assist,filter,input,suggestion}-chip.*` names\n * (checked against m3.material.io's token tables, 2026-10-14), with Compose's *ChipTokens\n * defaults. M3 gives each kind its own token set, and their names differ (a filter chip's\n * colours say `unselected`, an assist chip's icon is `with-icon`), so each kind is a set of\n * its own: the root carries `data-tokens=\"md-comp-<kind>-chip\"`, and `chip-styles.ts` reads\n * that kind's private variables. An elevated chip's root carries `data-elevated`.\n *\n * Hover, focus, dragged and disabled values, the elevated filter chip's selected container,\n * the selected leading icons, the strong outline, sizes and elevation stay classes.\n */\n\nconst paintsShape = { property: 'border-top-left-radius' } as const;\nconst paintsLabel = { property: 'color' } as const;\nconst paintsLeadingIcon = { slot: 'leading', property: 'color' } as const;\nconst paintsFlatOutline = { property: 'border-top-color' } as const;\nconst paintsElevatedContainer = { property: 'background-color', state: 'elevated' } as const;\n\n/** The tokens of {@link AssistChip}: `--md-comp-assist-chip-*`. */\nexport const assistChipTokenSet = defineComponentTokens({\n name: 'md-comp-assist-chip',\n tokens: {\n 'container-shape': {\n value: corner('small'),\n description: 'The corners.',\n compose: 'AssistChipTokens.ContainerShape',\n paints: paintsShape,\n },\n 'label-text-color': {\n value: color('on-surface'),\n description: 'The label.',\n compose: 'AssistChipTokens.LabelTextColor',\n paints: paintsLabel,\n },\n 'with-icon-icon-color': {\n value: color('primary'),\n description: 'The leading icon.',\n compose: 'AssistChipTokens.IconColor',\n paints: paintsLeadingIcon,\n },\n 'flat-outline-color': {\n value: color('outline-variant'),\n description: 'The flat chip’s border (the strong outline keeps `outline`).',\n compose: 'AssistChipTokens.FlatOutlineColor',\n paints: paintsFlatOutline,\n },\n 'elevated-container-color': {\n value: color('surface-container-low'),\n description: 'The elevated chip’s container.',\n compose: 'AssistChipTokens.ElevatedContainerColor',\n paints: paintsElevatedContainer,\n },\n },\n});\n\n/** The tokens of {@link SuggestionChip}: `--md-comp-suggestion-chip-*`. */\nexport const suggestionChipTokenSet = defineComponentTokens({\n name: 'md-comp-suggestion-chip',\n tokens: {\n 'container-shape': {\n value: corner('small'),\n description: 'The corners.',\n compose: 'SuggestionChipTokens.ContainerShape',\n paints: paintsShape,\n },\n 'label-text-color': {\n value: color('on-surface-variant'),\n description: 'The label.',\n compose: 'SuggestionChipTokens.LabelTextColor',\n paints: paintsLabel,\n },\n 'with-leading-icon-leading-icon-color': {\n value: color('primary'),\n description: 'The leading icon.',\n compose: 'SuggestionChipTokens.LeadingIconColor',\n paints: paintsLeadingIcon,\n },\n 'flat-outline-color': {\n value: color('outline-variant'),\n description: 'The flat chip’s border (the strong outline keeps `outline`).',\n compose: 'SuggestionChipTokens.FlatOutlineColor',\n paints: paintsFlatOutline,\n },\n 'elevated-container-color': {\n value: color('surface-container-low'),\n description: 'The elevated chip’s container.',\n compose: 'SuggestionChipTokens.ElevatedContainerColor',\n paints: paintsElevatedContainer,\n },\n },\n});\n\n/** The tokens of {@link FilterChip}: `--md-comp-filter-chip-*`. */\nexport const filterChipTokenSet = defineComponentTokens({\n name: 'md-comp-filter-chip',\n tokens: {\n 'container-shape': {\n value: corner('small'),\n description: 'The corners.',\n compose: 'FilterChipTokens.ContainerShape',\n paints: paintsShape,\n },\n 'unselected-label-text-color': {\n value: color('on-surface-variant'),\n description: 'The label (and the check), unselected.',\n compose: 'FilterChipTokens.UnselectedLabelTextColor',\n paints: paintsLabel,\n },\n 'selected-label-text-color': {\n value: color('on-secondary-container'),\n description: 'The label and the check, selected.',\n compose: 'FilterChipTokens.SelectedLabelTextColor',\n paints: { property: 'color', state: 'selected' },\n },\n 'with-leading-icon-unselected-leading-icon-color': {\n value: color('primary'),\n description: 'The leading icon, unselected.',\n compose: 'FilterChipTokens.UnselectedLeadingIconColor',\n paints: paintsLeadingIcon,\n },\n 'flat-unselected-outline-color': {\n value: color('outline-variant'),\n description: 'The flat chip’s border, unselected (the strong outline keeps `outline`).',\n compose: 'FilterChipTokens.FlatUnselectedOutlineColor',\n paints: paintsFlatOutline,\n },\n 'flat-selected-container-color': {\n value: color('secondary-container'),\n description: 'The flat chip’s container, selected.',\n compose: 'FilterChipTokens.FlatSelectedContainerColor',\n paints: { property: 'background-color', state: 'selected' },\n },\n 'elevated-unselected-container-color': {\n value: color('surface-container-low'),\n description: 'The elevated chip’s container, unselected.',\n compose: 'FilterChipTokens.ElevatedUnselectedContainerColor',\n paints: paintsElevatedContainer,\n },\n },\n});\n\n/** The tokens of {@link InputChip}: `--md-comp-input-chip-*`. */\nexport const inputChipTokenSet = defineComponentTokens({\n name: 'md-comp-input-chip',\n tokens: {\n 'container-shape': {\n value: corner('small'),\n description: 'The corners.',\n compose: 'InputChipTokens.ContainerShape',\n paints: paintsShape,\n },\n 'unselected-label-text-color': {\n value: color('on-surface-variant'),\n description: 'The label (and an unselected leading icon), unselected.',\n compose: 'InputChipTokens.UnselectedLabelTextColor',\n paints: paintsLabel,\n },\n 'selected-label-text-color': {\n value: color('on-secondary-container'),\n description: 'The label, selected.',\n compose: 'InputChipTokens.SelectedLabelTextColor',\n paints: { property: 'color', state: 'selected' },\n },\n 'unselected-outline-color': {\n value: color('outline-variant'),\n description: 'The border, unselected (the strong outline keeps `outline`).',\n compose: 'InputChipTokens.UnselectedOutlineColor',\n paints: paintsFlatOutline,\n },\n 'selected-container-color': {\n value: color('secondary-container'),\n description: 'The container, selected.',\n compose: 'InputChipTokens.SelectedContainerColor',\n paints: { property: 'background-color', state: 'selected' },\n },\n },\n});\n"],"mappings":"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"}
|