@windmorph/react 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +23 -0
- package/README.md +149 -2
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +112 -0
- package/dist/cli.js.map +1 -0
- package/dist/components/app-bar/AppBarItems.js +23 -0
- package/dist/components/app-bar/AppBarItems.js.map +1 -0
- package/dist/components/app-bar/TopAppBar.d.ts +89 -0
- package/dist/components/app-bar/TopAppBar.js +103 -0
- package/dist/components/app-bar/TopAppBar.js.map +1 -0
- package/dist/components/app-bar/app-bar-styles.d.ts +280 -0
- package/dist/components/app-bar/app-bar-styles.js +142 -0
- package/dist/components/app-bar/app-bar-styles.js.map +1 -0
- package/dist/components/app-bar/app-bar-tokens.d.ts +7 -0
- package/dist/components/app-bar/app-bar-tokens.js +64 -0
- package/dist/components/app-bar/app-bar-tokens.js.map +1 -0
- package/dist/components/app-bar/use-app-bar-scroll.d.ts +6 -0
- package/dist/components/app-bar/use-app-bar-scroll.js +139 -0
- package/dist/components/app-bar/use-app-bar-scroll.js.map +1 -0
- package/dist/components/autocomplete/Autocomplete.d.ts +142 -0
- package/dist/components/autocomplete/Autocomplete.js +284 -0
- package/dist/components/autocomplete/Autocomplete.js.map +1 -0
- package/dist/components/badge/Badge.d.ts +71 -0
- package/dist/components/badge/Badge.js +72 -0
- package/dist/components/badge/Badge.js.map +1 -0
- package/dist/components/badge/badge-styles.d.ts +100 -0
- package/dist/components/badge/badge-styles.js +43 -0
- package/dist/components/badge/badge-styles.js.map +1 -0
- package/dist/components/badge/badge-tokens.d.ts +7 -0
- package/dist/components/badge/badge-tokens.js +40 -0
- package/dist/components/badge/badge-tokens.js.map +1 -0
- package/dist/components/button/Button.d.ts +91 -0
- package/dist/components/button/Button.js +96 -0
- package/dist/components/button/Button.js.map +1 -0
- package/dist/components/button/ButtonContext.d.ts +30 -0
- package/dist/components/button/ButtonContext.js +18 -0
- package/dist/components/button/ButtonContext.js.map +1 -0
- package/dist/components/button/DensityZeroButtons.js +25 -0
- package/dist/components/button/DensityZeroButtons.js.map +1 -0
- package/dist/components/button/button-pending.d.ts +10 -0
- package/dist/components/button/button-pending.js +166 -0
- package/dist/components/button/button-pending.js.map +1 -0
- package/dist/components/button/button-styles.d.ts +216 -0
- package/dist/components/button/button-styles.js +199 -0
- package/dist/components/button/button-styles.js.map +1 -0
- package/dist/components/button/button-tokens.d.ts +10 -0
- package/dist/components/button/button-tokens.js +257 -0
- package/dist/components/button/button-tokens.js.map +1 -0
- package/dist/components/button/connected-shapes.js +152 -0
- package/dist/components/button/connected-shapes.js.map +1 -0
- package/dist/components/card/Card.d.ts +60 -0
- package/dist/components/card/Card.js +69 -0
- package/dist/components/card/Card.js.map +1 -0
- package/dist/components/card/card-styles.d.ts +42 -0
- package/dist/components/card/card-styles.js +64 -0
- package/dist/components/card/card-styles.js.map +1 -0
- package/dist/components/card/card-tokens.d.ts +7 -0
- package/dist/components/card/card-tokens.js +84 -0
- package/dist/components/card/card-tokens.js.map +1 -0
- package/dist/components/carousel/Carousel.d.ts +124 -0
- package/dist/components/carousel/Carousel.js +387 -0
- package/dist/components/carousel/Carousel.js.map +1 -0
- package/dist/components/carousel/carousel-keylines.js +486 -0
- package/dist/components/carousel/carousel-keylines.js.map +1 -0
- package/dist/components/carousel/carousel-press-area.js +35 -0
- package/dist/components/carousel/carousel-press-area.js.map +1 -0
- package/dist/components/carousel/carousel-styles.d.ts +188 -0
- package/dist/components/carousel/carousel-styles.js +116 -0
- package/dist/components/carousel/carousel-styles.js.map +1 -0
- package/dist/components/carousel/carousel-tokens.d.ts +7 -0
- package/dist/components/carousel/carousel-tokens.js +18 -0
- package/dist/components/carousel/carousel-tokens.js.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +78 -0
- package/dist/components/checkbox/Checkbox.js +77 -0
- package/dist/components/checkbox/Checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox-box.js +34 -0
- package/dist/components/checkbox/checkbox-box.js.map +1 -0
- package/dist/components/checkbox/checkbox-styles.d.ts +100 -0
- package/dist/components/checkbox/checkbox-styles.js +54 -0
- package/dist/components/checkbox/checkbox-styles.js.map +1 -0
- package/dist/components/checkbox/checkbox-tokens.d.ts +7 -0
- package/dist/components/checkbox/checkbox-tokens.js +41 -0
- package/dist/components/checkbox/checkbox-tokens.js.map +1 -0
- package/dist/components/chip/Chip.d.ts +171 -0
- package/dist/components/chip/Chip.js +348 -0
- package/dist/components/chip/Chip.js.map +1 -0
- package/dist/components/chip/ChipSet.d.ts +70 -0
- package/dist/components/chip/ChipSet.js +198 -0
- package/dist/components/chip/ChipSet.js.map +1 -0
- package/dist/components/chip/chip-styles.d.ts +263 -0
- package/dist/components/chip/chip-styles.js +360 -0
- package/dist/components/chip/chip-styles.js.map +1 -0
- package/dist/components/chip/chip-tokens.d.ts +13 -0
- package/dist/components/chip/chip-tokens.js +185 -0
- package/dist/components/chip/chip-tokens.js.map +1 -0
- package/dist/components/date-picker/CalendarGrid.js +94 -0
- package/dist/components/date-picker/CalendarGrid.js.map +1 -0
- package/dist/components/date-picker/CompactDateDialog.js +63 -0
- package/dist/components/date-picker/CompactDateDialog.js.map +1 -0
- package/dist/components/date-picker/DateField.d.ts +161 -0
- package/dist/components/date-picker/DateField.js +393 -0
- package/dist/components/date-picker/DateField.js.map +1 -0
- package/dist/components/date-picker/DateInput.d.ts +20 -0
- package/dist/components/date-picker/DateInput.js +99 -0
- package/dist/components/date-picker/DateInput.js.map +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +165 -0
- package/dist/components/date-picker/DatePicker.js +492 -0
- package/dist/components/date-picker/DatePicker.js.map +1 -0
- package/dist/components/date-picker/PickerDialog.d.ts +121 -0
- package/dist/components/date-picker/PickerDialog.js +161 -0
- package/dist/components/date-picker/PickerDialog.js.map +1 -0
- package/dist/components/date-picker/calendar-parts.js +141 -0
- package/dist/components/date-picker/calendar-parts.js.map +1 -0
- package/dist/components/date-picker/date-format.js +72 -0
- package/dist/components/date-picker/date-format.js.map +1 -0
- package/dist/components/date-picker/date-picker-styles.d.ts +247 -0
- package/dist/components/date-picker/date-picker-styles.js +163 -0
- package/dist/components/date-picker/date-picker-styles.js.map +1 -0
- package/dist/components/date-picker/date-picker-tokens.d.ts +7 -0
- package/dist/components/date-picker/date-picker-tokens.js +104 -0
- package/dist/components/date-picker/date-picker-tokens.js.map +1 -0
- package/dist/components/date-picker/picker-dialog-context.js +8 -0
- package/dist/components/date-picker/picker-dialog-context.js.map +1 -0
- package/dist/components/date-picker/picker-dialog-styles.d.ts +95 -0
- package/dist/components/date-picker/picker-dialog-styles.js +57 -0
- package/dist/components/date-picker/picker-dialog-styles.js.map +1 -0
- package/dist/components/date-picker/picker-icons.js +24 -0
- package/dist/components/date-picker/picker-icons.js.map +1 -0
- package/dist/components/date-picker/use-media-query.js +21 -0
- package/dist/components/date-picker/use-media-query.js.map +1 -0
- package/dist/components/date-picker/use-size-transform.js +62 -0
- package/dist/components/date-picker/use-size-transform.js.map +1 -0
- package/dist/components/date-picker/use-view-exit.js +68 -0
- package/dist/components/date-picker/use-view-exit.js.map +1 -0
- package/dist/components/dialog/Dialog.d.ts +267 -0
- package/dist/components/dialog/Dialog.js +521 -0
- package/dist/components/dialog/Dialog.js.map +1 -0
- package/dist/components/dialog/dialog-styles.d.ts +335 -0
- package/dist/components/dialog/dialog-styles.js +377 -0
- package/dist/components/dialog/dialog-styles.js.map +1 -0
- package/dist/components/dialog/dialog-tokens.d.ts +7 -0
- package/dist/components/dialog/dialog-tokens.js +57 -0
- package/dist/components/dialog/dialog-tokens.js.map +1 -0
- package/dist/components/divider/Divider.d.ts +59 -0
- package/dist/components/divider/Divider.js +53 -0
- package/dist/components/divider/Divider.js.map +1 -0
- package/dist/components/divider/divider-styles.d.ts +90 -0
- package/dist/components/divider/divider-styles.js +66 -0
- package/dist/components/divider/divider-styles.js.map +1 -0
- package/dist/components/divider/divider-tokens.d.ts +7 -0
- package/dist/components/divider/divider-tokens.js +16 -0
- package/dist/components/divider/divider-tokens.js.map +1 -0
- package/dist/components/fab/Fab.d.ts +130 -0
- package/dist/components/fab/Fab.js +137 -0
- package/dist/components/fab/Fab.js.map +1 -0
- package/dist/components/fab/FabTooltip.js +36 -0
- package/dist/components/fab/FabTooltip.js.map +1 -0
- package/dist/components/fab/fab-styles.d.ts +286 -0
- package/dist/components/fab/fab-styles.js +131 -0
- package/dist/components/fab/fab-styles.js.map +1 -0
- package/dist/components/fab/fab-tokens.d.ts +12 -0
- package/dist/components/fab/fab-tokens.js +105 -0
- package/dist/components/fab/fab-tokens.js.map +1 -0
- package/dist/components/fab-menu/FabMenu.d.ts +156 -0
- package/dist/components/fab-menu/FabMenu.js +291 -0
- package/dist/components/fab-menu/FabMenu.js.map +1 -0
- package/dist/components/fab-menu/fab-menu-stagger.js +51 -0
- package/dist/components/fab-menu/fab-menu-stagger.js.map +1 -0
- package/dist/components/fab-menu/fab-menu-styles.d.ts +166 -0
- package/dist/components/fab-menu/fab-menu-styles.js +107 -0
- package/dist/components/fab-menu/fab-menu-styles.js.map +1 -0
- package/dist/components/fab-menu/fab-menu-tokens.d.ts +7 -0
- package/dist/components/fab-menu/fab-menu-tokens.js +120 -0
- package/dist/components/fab-menu/fab-menu-tokens.js.map +1 -0
- package/dist/components/icon-button/IconButton.d.ts +125 -0
- package/dist/components/icon-button/IconButton.js +112 -0
- package/dist/components/icon-button/IconButton.js.map +1 -0
- package/dist/components/icon-button/icon-button-styles.d.ts +217 -0
- package/dist/components/icon-button/icon-button-styles.js +244 -0
- package/dist/components/icon-button/icon-button-styles.js.map +1 -0
- package/dist/components/icon-button/icon-button-tokens.d.ts +11 -0
- package/dist/components/icon-button/icon-button-tokens.js +215 -0
- package/dist/components/icon-button/icon-button-tokens.js.map +1 -0
- package/dist/components/list/List.d.ts +265 -0
- package/dist/components/list/List.js +1386 -0
- package/dist/components/list/List.js.map +1 -0
- package/dist/components/list/ListMedia.d.ts +88 -0
- package/dist/components/list/ListMedia.js +132 -0
- package/dist/components/list/ListMedia.js.map +1 -0
- package/dist/components/list/list-styles.d.ts +375 -0
- package/dist/components/list/list-styles.js +220 -0
- package/dist/components/list/list-styles.js.map +1 -0
- package/dist/components/list/list-tokens.d.ts +7 -0
- package/dist/components/list/list-tokens.js +92 -0
- package/dist/components/list/list-tokens.js.map +1 -0
- package/dist/components/loading-indicator/LoadingIndicator.d.ts +65 -0
- package/dist/components/loading-indicator/LoadingIndicator.js +92 -0
- package/dist/components/loading-indicator/LoadingIndicator.js.map +1 -0
- package/dist/components/loading-indicator/lazy-loading-indicator.js +25 -0
- package/dist/components/loading-indicator/lazy-loading-indicator.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator-frames.js +149 -0
- package/dist/components/loading-indicator/loading-indicator-frames.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator-styles.d.ts +36 -0
- package/dist/components/loading-indicator/loading-indicator-styles.js +22 -0
- package/dist/components/loading-indicator/loading-indicator-styles.js.map +1 -0
- package/dist/components/loading-indicator/loading-indicator-tokens.d.ts +7 -0
- package/dist/components/loading-indicator/loading-indicator-tokens.js +44 -0
- package/dist/components/loading-indicator/loading-indicator-tokens.js.map +1 -0
- package/dist/components/menu/Menu.d.ts +215 -0
- package/dist/components/menu/Menu.js +715 -0
- package/dist/components/menu/Menu.js.map +1 -0
- package/dist/components/menu/menu-styles.d.ts +354 -0
- package/dist/components/menu/menu-styles.js +219 -0
- package/dist/components/menu/menu-styles.js.map +1 -0
- package/dist/components/menu/menu-tokens.d.ts +7 -0
- package/dist/components/menu/menu-tokens.js +93 -0
- package/dist/components/menu/menu-tokens.js.map +1 -0
- package/dist/components/menu/menu-trigger.d.ts +51 -0
- package/dist/components/menu/menu-trigger.js +100 -0
- package/dist/components/menu/menu-trigger.js.map +1 -0
- package/dist/components/menu/use-reveal-entering.js +42 -0
- package/dist/components/menu/use-reveal-entering.js.map +1 -0
- package/dist/components/navigation/NavItem.d.ts +54 -0
- package/dist/components/navigation/NavItem.js +182 -0
- package/dist/components/navigation/NavItem.js.map +1 -0
- package/dist/components/navigation/NavigationBar.d.ts +64 -0
- package/dist/components/navigation/NavigationBar.js +121 -0
- package/dist/components/navigation/NavigationBar.js.map +1 -0
- package/dist/components/navigation/NavigationRail.d.ts +91 -0
- package/dist/components/navigation/NavigationRail.js +285 -0
- package/dist/components/navigation/NavigationRail.js.map +1 -0
- package/dist/components/navigation/nav-item-styles.d.ts +190 -0
- package/dist/components/navigation/nav-item-styles.js +123 -0
- package/dist/components/navigation/nav-item-styles.js.map +1 -0
- package/dist/components/navigation/navigation-styles.d.ts +239 -0
- package/dist/components/navigation/navigation-styles.js +134 -0
- package/dist/components/navigation/navigation-styles.js.map +1 -0
- package/dist/components/navigation/navigation-tokens.d.ts +9 -0
- package/dist/components/navigation/navigation-tokens.js +114 -0
- package/dist/components/navigation/navigation-tokens.js.map +1 -0
- package/dist/components/navigation/use-hide-on-scroll.js +115 -0
- package/dist/components/navigation/use-hide-on-scroll.js.map +1 -0
- package/dist/components/navigation/use-item-arrow-keys.js +37 -0
- package/dist/components/navigation/use-item-arrow-keys.js.map +1 -0
- package/dist/components/navigation/use-rail-item-morph.js +61 -0
- package/dist/components/navigation/use-rail-item-morph.js.map +1 -0
- package/dist/components/progress/ProgressIndicator.d.ts +95 -0
- package/dist/components/progress/ProgressIndicator.js +426 -0
- package/dist/components/progress/ProgressIndicator.js.map +1 -0
- package/dist/components/progress/progress-geometry.js +285 -0
- package/dist/components/progress/progress-geometry.js.map +1 -0
- package/dist/components/progress/progress-styles.d.ts +81 -0
- package/dist/components/progress/progress-styles.js +43 -0
- package/dist/components/progress/progress-styles.js.map +1 -0
- package/dist/components/progress/progress-tokens.d.ts +7 -0
- package/dist/components/progress/progress-tokens.js +39 -0
- package/dist/components/progress/progress-tokens.js.map +1 -0
- package/dist/components/pull-to-refresh/PullToRefresh.d.ts +94 -0
- package/dist/components/pull-to-refresh/PullToRefresh.js +395 -0
- package/dist/components/pull-to-refresh/PullToRefresh.js.map +1 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-math.js +37 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-math.js.map +1 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-styles.d.ts +53 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-styles.js +14 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-styles.js.map +1 -0
- package/dist/components/radio/RadioGroup.d.ts +121 -0
- package/dist/components/radio/RadioGroup.js +163 -0
- package/dist/components/radio/RadioGroup.js.map +1 -0
- package/dist/components/radio/radio-ring.js +21 -0
- package/dist/components/radio/radio-ring.js.map +1 -0
- package/dist/components/radio/radio-styles.d.ts +155 -0
- package/dist/components/radio/radio-styles.js +60 -0
- package/dist/components/radio/radio-styles.js.map +1 -0
- package/dist/components/radio/radio-tokens.d.ts +7 -0
- package/dist/components/radio/radio-tokens.js +31 -0
- package/dist/components/radio/radio-tokens.js.map +1 -0
- package/dist/components/search/SearchAppBar.d.ts +45 -0
- package/dist/components/search/SearchAppBar.js +61 -0
- package/dist/components/search/SearchAppBar.js.map +1 -0
- package/dist/components/search/SearchBar.d.ts +147 -0
- package/dist/components/search/SearchBar.js +412 -0
- package/dist/components/search/SearchBar.js.map +1 -0
- package/dist/components/search/search-styles.d.ts +243 -0
- package/dist/components/search/search-styles.js +143 -0
- package/dist/components/search/search-styles.js.map +1 -0
- package/dist/components/search/search-tokens.d.ts +9 -0
- package/dist/components/search/search-tokens.js +70 -0
- package/dist/components/search/search-tokens.js.map +1 -0
- package/dist/components/select/Select.d.ts +187 -0
- package/dist/components/select/Select.js +319 -0
- package/dist/components/select/Select.js.map +1 -0
- package/dist/components/select/field-shell.d.ts +29 -0
- package/dist/components/select/field-shell.js +135 -0
- package/dist/components/select/field-shell.js.map +1 -0
- package/dist/components/select/option-list.d.ts +81 -0
- package/dist/components/select/option-list.js +291 -0
- package/dist/components/select/option-list.js.map +1 -0
- package/dist/components/select/search-list.js +135 -0
- package/dist/components/select/search-list.js.map +1 -0
- package/dist/components/select/selection-cap.js +30 -0
- package/dist/components/select/selection-cap.js.map +1 -0
- package/dist/components/sheet/BottomSheet.d.ts +154 -0
- package/dist/components/sheet/BottomSheet.js +442 -0
- package/dist/components/sheet/BottomSheet.js.map +1 -0
- package/dist/components/sheet/SheetTrigger.d.ts +25 -0
- package/dist/components/sheet/SheetTrigger.js +46 -0
- package/dist/components/sheet/SheetTrigger.js.map +1 -0
- package/dist/components/sheet/SideSheet.d.ts +139 -0
- package/dist/components/sheet/SideSheet.js +289 -0
- package/dist/components/sheet/SideSheet.js.map +1 -0
- package/dist/components/sheet/bottom-sheet-gesture.js +30 -0
- package/dist/components/sheet/bottom-sheet-gesture.js.map +1 -0
- package/dist/components/sheet/lazy-bottom-sheet.js +33 -0
- package/dist/components/sheet/lazy-bottom-sheet.js.map +1 -0
- package/dist/components/sheet/sheet-gesture.js +48 -0
- package/dist/components/sheet/sheet-gesture.js.map +1 -0
- package/dist/components/sheet/sheet-icons.js +31 -0
- package/dist/components/sheet/sheet-icons.js.map +1 -0
- package/dist/components/sheet/sheet-settle.js +58 -0
- package/dist/components/sheet/sheet-settle.js.map +1 -0
- package/dist/components/sheet/sheet-styles.d.ts +312 -0
- package/dist/components/sheet/sheet-styles.js +229 -0
- package/dist/components/sheet/sheet-styles.js.map +1 -0
- package/dist/components/sheet/sheet-tokens.d.ts +12 -0
- package/dist/components/sheet/sheet-tokens.js +115 -0
- package/dist/components/sheet/sheet-tokens.js.map +1 -0
- package/dist/components/sheet/side-swipe-gesture.js +22 -0
- package/dist/components/sheet/side-swipe-gesture.js.map +1 -0
- package/dist/components/sheet/use-peek-inert.js +32 -0
- package/dist/components/sheet/use-peek-inert.js.map +1 -0
- package/dist/components/sheet/use-side-swipe.js +174 -0
- package/dist/components/sheet/use-side-swipe.js.map +1 -0
- package/dist/components/slider/Slider.d.ts +129 -0
- package/dist/components/slider/Slider.js +295 -0
- package/dist/components/slider/Slider.js.map +1 -0
- package/dist/components/slider/slider-geometry.js +138 -0
- package/dist/components/slider/slider-geometry.js.map +1 -0
- package/dist/components/slider/slider-styles.d.ts +133 -0
- package/dist/components/slider/slider-styles.js +97 -0
- package/dist/components/slider/slider-styles.js.map +1 -0
- package/dist/components/slider/slider-tokens.d.ts +7 -0
- package/dist/components/slider/slider-tokens.js +66 -0
- package/dist/components/slider/slider-tokens.js.map +1 -0
- package/dist/components/slider/use-touch-track.js +138 -0
- package/dist/components/slider/use-touch-track.js.map +1 -0
- package/dist/components/snackbar/Snackbar.d.ts +96 -0
- package/dist/components/snackbar/Snackbar.js +253 -0
- package/dist/components/snackbar/Snackbar.js.map +1 -0
- package/dist/components/snackbar/snackbar-state.d.ts +58 -0
- package/dist/components/snackbar/snackbar-state.js +73 -0
- package/dist/components/snackbar/snackbar-state.js.map +1 -0
- package/dist/components/snackbar/snackbar-styles.d.ts +109 -0
- package/dist/components/snackbar/snackbar-styles.js +67 -0
- package/dist/components/snackbar/snackbar-styles.js.map +1 -0
- package/dist/components/snackbar/snackbar-tokens.d.ts +7 -0
- package/dist/components/snackbar/snackbar-tokens.js +54 -0
- package/dist/components/snackbar/snackbar-tokens.js.map +1 -0
- package/dist/components/split-button/SplitButton.d.ts +109 -0
- package/dist/components/split-button/SplitButton.js +195 -0
- package/dist/components/split-button/SplitButton.js.map +1 -0
- package/dist/components/split-button/split-button-styles.d.ts +214 -0
- package/dist/components/split-button/split-button-styles.js +164 -0
- package/dist/components/split-button/split-button-styles.js.map +1 -0
- package/dist/components/split-button/split-button-tokens.d.ts +7 -0
- package/dist/components/split-button/split-button-tokens.js +36 -0
- package/dist/components/split-button/split-button-tokens.js.map +1 -0
- package/dist/components/switch/Switch.d.ts +82 -0
- package/dist/components/switch/Switch.js +165 -0
- package/dist/components/switch/Switch.js.map +1 -0
- package/dist/components/switch/switch-styles.d.ts +96 -0
- package/dist/components/switch/switch-styles.js +68 -0
- package/dist/components/switch/switch-styles.js.map +1 -0
- package/dist/components/switch/switch-thumb.js +41 -0
- package/dist/components/switch/switch-thumb.js.map +1 -0
- package/dist/components/switch/switch-tokens.d.ts +7 -0
- package/dist/components/switch/switch-tokens.js +78 -0
- package/dist/components/switch/switch-tokens.js.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +120 -0
- package/dist/components/tabs/Tabs.js +346 -0
- package/dist/components/tabs/Tabs.js.map +1 -0
- package/dist/components/tabs/tabs-styles.d.ts +198 -0
- package/dist/components/tabs/tabs-styles.js +99 -0
- package/dist/components/tabs/tabs-styles.js.map +1 -0
- package/dist/components/tabs/tabs-tokens.d.ts +7 -0
- package/dist/components/tabs/tabs-tokens.js +121 -0
- package/dist/components/tabs/tabs-tokens.js.map +1 -0
- package/dist/components/text-field/TextField.d.ts +175 -0
- package/dist/components/text-field/TextField.js +250 -0
- package/dist/components/text-field/TextField.js.map +1 -0
- package/dist/components/text-field/text-field-styles.d.ts +252 -0
- package/dist/components/text-field/text-field-styles.js +209 -0
- package/dist/components/text-field/text-field-styles.js.map +1 -0
- package/dist/components/text-field/text-field-tokens.d.ts +7 -0
- package/dist/components/text-field/text-field-tokens.js +177 -0
- package/dist/components/text-field/text-field-tokens.js.map +1 -0
- package/dist/components/time-picker/TimePicker.d.ts +142 -0
- package/dist/components/time-picker/TimePicker.js +700 -0
- package/dist/components/time-picker/TimePicker.js.map +1 -0
- package/dist/components/time-picker/time-picker-styles.d.ts +175 -0
- package/dist/components/time-picker/time-picker-styles.js +112 -0
- package/dist/components/time-picker/time-picker-styles.js.map +1 -0
- package/dist/components/time-picker/time-picker-tokens.d.ts +7 -0
- package/dist/components/time-picker/time-picker-tokens.js +86 -0
- package/dist/components/time-picker/time-picker-tokens.js.map +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +209 -0
- package/dist/components/toolbar/Toolbar.js +282 -0
- package/dist/components/toolbar/Toolbar.js.map +1 -0
- package/dist/components/toolbar/toolbar-styles.d.ts +403 -0
- package/dist/components/toolbar/toolbar-styles.js +253 -0
- package/dist/components/toolbar/toolbar-styles.js.map +1 -0
- package/dist/components/toolbar/toolbar-tokens.d.ts +27 -0
- package/dist/components/toolbar/toolbar-tokens.js +117 -0
- package/dist/components/toolbar/toolbar-tokens.js.map +1 -0
- package/dist/components/toolbar/use-toolbar-scroll-expansion.d.ts +56 -0
- package/dist/components/toolbar/use-toolbar-scroll-expansion.js +86 -0
- package/dist/components/toolbar/use-toolbar-scroll-expansion.js.map +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +131 -0
- package/dist/components/tooltip/Tooltip.js +388 -0
- package/dist/components/tooltip/Tooltip.js.map +1 -0
- package/dist/components/tooltip/lazy-tooltip.js +35 -0
- package/dist/components/tooltip/lazy-tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltip-placement.d.ts +16 -0
- package/dist/components/tooltip/tooltip-placement.js +14 -0
- package/dist/components/tooltip/tooltip-placement.js.map +1 -0
- package/dist/components/tooltip/tooltip-styles.d.ts +142 -0
- package/dist/components/tooltip/tooltip-styles.js +81 -0
- package/dist/components/tooltip/tooltip-styles.js.map +1 -0
- package/dist/components/tooltip/tooltip-tokens.d.ts +9 -0
- package/dist/components/tooltip/tooltip-tokens.js +72 -0
- package/dist/components/tooltip/tooltip-tokens.js.map +1 -0
- package/dist/components/tooltip/tooltip-trigger.d.ts +42 -0
- package/dist/components/tooltip/tooltip-trigger.js +115 -0
- package/dist/components/tooltip/tooltip-trigger.js.map +1 -0
- package/dist/composites/button-group/ButtonGroup.d.ts +116 -0
- package/dist/composites/button-group/ButtonGroup.js +270 -0
- package/dist/composites/button-group/ButtonGroup.js.map +1 -0
- package/dist/composites/button-group/button-group-styles.d.ts +73 -0
- package/dist/composites/button-group/button-group-styles.js +87 -0
- package/dist/composites/button-group/button-group-styles.js.map +1 -0
- package/dist/composites/button-group/lazy-overflow-menu.js +43 -0
- package/dist/composites/button-group/lazy-overflow-menu.js.map +1 -0
- package/dist/composites/button-group/overflow-menu-list.js +26 -0
- package/dist/composites/button-group/overflow-menu-list.js.map +1 -0
- package/dist/composites/button-group/use-overflow.js +75 -0
- package/dist/composites/button-group/use-overflow.js.map +1 -0
- package/dist/composites/button-group/use-press-expansion.js +155 -0
- package/dist/composites/button-group/use-press-expansion.js.map +1 -0
- package/dist/index.d.ts +142 -0
- package/dist/index.js +136 -0
- package/dist/motion/get-m3-spring.d.ts +6 -0
- package/dist/motion/get-m3-spring.js +10 -0
- package/dist/motion/get-m3-spring.js.map +1 -0
- package/dist/motion/reduced-motion.js +19 -0
- package/dist/motion/reduced-motion.js.map +1 -0
- package/dist/motion/use-m3-spring.d.ts +13 -0
- package/dist/motion/use-m3-spring.js +22 -0
- package/dist/motion/use-m3-spring.js.map +1 -0
- package/dist/next/NextRouterProvider.d.ts +13 -0
- package/dist/next/NextRouterProvider.js +26 -0
- package/dist/next/NextRouterProvider.js.map +1 -0
- package/dist/next/get-theme-from-cookies.d.ts +32 -0
- package/dist/next/get-theme-from-cookies.js +27 -0
- package/dist/next/get-theme-from-cookies.js.map +1 -0
- package/dist/next/navigation-guard.d.ts +30 -0
- package/dist/next/navigation-guard.js +68 -0
- package/dist/next/navigation-guard.js.map +1 -0
- package/dist/next.d.ts +5 -0
- package/dist/next.js +5 -0
- package/dist/primitives/ButtonBase.d.ts +115 -0
- package/dist/primitives/ButtonBase.js +231 -0
- package/dist/primitives/ButtonBase.js.map +1 -0
- package/dist/primitives/DomDirectionLocale.d.ts +18 -0
- package/dist/primitives/DomDirectionLocale.js +28 -0
- package/dist/primitives/DomDirectionLocale.js.map +1 -0
- package/dist/primitives/Field.d.ts +50 -0
- package/dist/primitives/Field.js +74 -0
- package/dist/primitives/Field.js.map +1 -0
- package/dist/primitives/IconFaces.js +23 -0
- package/dist/primitives/IconFaces.js.map +1 -0
- package/dist/primitives/Overlay.d.ts +39 -0
- package/dist/primitives/Overlay.js +86 -0
- package/dist/primitives/Overlay.js.map +1 -0
- package/dist/primitives/SelectionControl.d.ts +55 -0
- package/dist/primitives/SelectionControl.js +58 -0
- package/dist/primitives/SelectionControl.js.map +1 -0
- package/dist/primitives/Surface.d.ts +123 -0
- package/dist/primitives/Surface.js +68 -0
- package/dist/primitives/Surface.js.map +1 -0
- package/dist/primitives/ToolbarContext.js +12 -0
- package/dist/primitives/ToolbarContext.js.map +1 -0
- package/dist/primitives/TouchTarget.d.ts +14 -0
- package/dist/primitives/TouchTarget.js +20 -0
- package/dist/primitives/TouchTarget.js.map +1 -0
- package/dist/primitives/TriggerContext.d.ts +34 -0
- package/dist/primitives/TriggerContext.js +24 -0
- package/dist/primitives/TriggerContext.js.map +1 -0
- package/dist/primitives/hidden-input-focus.js +27 -0
- package/dist/primitives/hidden-input-focus.js.map +1 -0
- package/dist/primitives/icon-faces-styles.d.ts +9 -0
- package/dist/primitives/icon-faces-styles.js +45 -0
- package/dist/primitives/icon-faces-styles.js.map +1 -0
- package/dist/primitives/locale-with-direction.d.ts +9 -0
- package/dist/primitives/locale-with-direction.js +17 -0
- package/dist/primitives/locale-with-direction.js.map +1 -0
- package/dist/primitives/morph-path.d.ts +25 -0
- package/dist/primitives/morph-path.js +38 -0
- package/dist/primitives/morph-path.js.map +1 -0
- package/dist/primitives/selection-control-styles.d.ts +54 -0
- package/dist/primitives/selection-control-styles.js +44 -0
- package/dist/primitives/selection-control-styles.js.map +1 -0
- package/dist/primitives/use-m3-interaction.d.ts +51 -0
- package/dist/primitives/use-m3-interaction.js +149 -0
- package/dist/primitives/use-m3-interaction.js.map +1 -0
- package/dist/primitives/use-m3-morph.d.ts +18 -0
- package/dist/primitives/use-m3-morph.js +36 -0
- package/dist/primitives/use-m3-morph.js.map +1 -0
- package/dist/primitives/use-presence.d.ts +19 -0
- package/dist/primitives/use-presence.js +37 -0
- package/dist/primitives/use-presence.js.map +1 -0
- package/dist/primitives.d.ts +36 -0
- package/dist/primitives.js +34 -0
- package/dist/shapes/corner-rounding.d.ts +13 -0
- package/dist/shapes/corner-rounding.js +18 -0
- package/dist/shapes/corner-rounding.js.map +1 -0
- package/dist/shapes/cubic.d.ts +52 -0
- package/dist/shapes/cubic.js +189 -0
- package/dist/shapes/cubic.js.map +1 -0
- package/dist/shapes/feature-mapping.js +80 -0
- package/dist/shapes/feature-mapping.js.map +1 -0
- package/dist/shapes/features.d.ts +23 -0
- package/dist/shapes/features.js +82 -0
- package/dist/shapes/features.js.map +1 -0
- package/dist/shapes/float-mapping.js +65 -0
- package/dist/shapes/float-mapping.js.map +1 -0
- package/dist/shapes/generated/material-shape-path-record.d.ts +11 -0
- package/dist/shapes/generated/material-shape-path-record.js +48 -0
- package/dist/shapes/generated/material-shape-path-record.js.map +1 -0
- package/dist/shapes/generated/material-shape-paths.d.ts +78 -0
- package/dist/shapes/generated/material-shape-paths.js +218 -0
- package/dist/shapes/generated/material-shape-paths.js.map +1 -0
- package/dist/shapes/mask.d.ts +14 -0
- package/dist/shapes/mask.js +24 -0
- package/dist/shapes/mask.js.map +1 -0
- package/dist/shapes/material-shapes.d.ts +11 -0
- package/dist/shapes/material-shapes.js +250 -0
- package/dist/shapes/material-shapes.js.map +1 -0
- package/dist/shapes/morph.d.ts +25 -0
- package/dist/shapes/morph.js +97 -0
- package/dist/shapes/morph.js.map +1 -0
- package/dist/shapes/path.d.ts +33 -0
- package/dist/shapes/path.js +47 -0
- package/dist/shapes/path.js.map +1 -0
- package/dist/shapes/point.d.ts +28 -0
- package/dist/shapes/point.js +103 -0
- package/dist/shapes/point.js.map +1 -0
- package/dist/shapes/polygon-measure.js +140 -0
- package/dist/shapes/polygon-measure.js.map +1 -0
- package/dist/shapes/rounded-polygon.d.ts +44 -0
- package/dist/shapes/rounded-polygon.js +278 -0
- package/dist/shapes/rounded-polygon.js.map +1 -0
- package/dist/shapes/shape-path.d.ts +15 -0
- package/dist/shapes/shapes.d.ts +53 -0
- package/dist/shapes/shapes.js +171 -0
- package/dist/shapes/shapes.js.map +1 -0
- package/dist/styles/generated/components.css +710 -0
- package/dist/styles/generated/theme.css +247 -0
- package/dist/styles/generated/themes.css +3361 -0
- package/dist/styles/generated/tokens.css +284 -0
- package/dist/styles/styles.css +15 -0
- package/dist/styles/utilities.css +283 -0
- package/dist/styles.compiled.css +2 -0
- package/dist/theme/ThemeProvider.d.ts +72 -0
- package/dist/theme/ThemeProvider.js +144 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/theme/ThemeScope.d.ts +32 -0
- package/dist/theme/ThemeScope.js +67 -0
- package/dist/theme/ThemeScope.js.map +1 -0
- package/dist/theme/ThemeScript.d.ts +26 -0
- package/dist/theme/ThemeScript.js +44 -0
- package/dist/theme/ThemeScript.js.map +1 -0
- package/dist/theme/context.d.ts +32 -0
- package/dist/theme/context.js +47 -0
- package/dist/theme/context.js.map +1 -0
- package/dist/theme/create-theme.d.ts +60 -0
- package/dist/theme/create-theme.js +47 -0
- package/dist/theme/create-theme.js.map +1 -0
- package/dist/theme/css.js +54 -0
- package/dist/theme/css.js.map +1 -0
- package/dist/theme/parse-palettes.js +40 -0
- package/dist/theme/parse-palettes.js.map +1 -0
- package/dist/theme/scheme.d.ts +6 -0
- package/dist/theme/scheme.js +118 -0
- package/dist/theme/scheme.js.map +1 -0
- package/dist/theme/state.d.ts +38 -0
- package/dist/theme/state.js +93 -0
- package/dist/theme/state.js.map +1 -0
- package/dist/theme/storage.js +21 -0
- package/dist/theme/storage.js.map +1 -0
- package/dist/tokens/breakpoints.d.ts +15 -0
- package/dist/tokens/breakpoints.js +16 -0
- package/dist/tokens/breakpoints.js.map +1 -0
- package/dist/tokens/color.d.ts +104 -0
- package/dist/tokens/color.js +147 -0
- package/dist/tokens/color.js.map +1 -0
- package/dist/tokens/component.d.ts +110 -0
- package/dist/tokens/component.js +67 -0
- package/dist/tokens/component.js.map +1 -0
- package/dist/tokens/density.d.ts +20 -0
- package/dist/tokens/density.js +27 -0
- package/dist/tokens/density.js.map +1 -0
- package/dist/tokens/elevation.d.ts +44 -0
- package/dist/tokens/elevation.js +45 -0
- package/dist/tokens/elevation.js.map +1 -0
- package/dist/tokens/motion.d.ts +79 -0
- package/dist/tokens/motion.js +126 -0
- package/dist/tokens/motion.js.map +1 -0
- package/dist/tokens/shape.d.ts +22 -0
- package/dist/tokens/shape.js +22 -0
- package/dist/tokens/shape.js.map +1 -0
- package/dist/tokens/spring-velocity.d.ts +19 -0
- package/dist/tokens/spring-velocity.js +44 -0
- package/dist/tokens/spring-velocity.js.map +1 -0
- package/dist/tokens/state.d.ts +18 -0
- package/dist/tokens/state.js +19 -0
- package/dist/tokens/state.js.map +1 -0
- package/dist/tokens/typography.d.ts +64 -0
- package/dist/tokens/typography.js +60 -0
- package/dist/tokens/typography.js.map +1 -0
- package/dist/tokens/z-index.d.ts +17 -0
- package/dist/tokens/z-index.js +18 -0
- package/dist/tokens/z-index.js.map +1 -0
- package/dist/utils/announce.js +51 -0
- package/dist/utils/announce.js.map +1 -0
- package/dist/utils/assert-collection-children.js +26 -0
- package/dist/utils/assert-collection-children.js.map +1 -0
- package/dist/utils/closed-by.d.ts +9 -0
- package/dist/utils/closed-by.js +12 -0
- package/dist/utils/closed-by.js.map +1 -0
- package/dist/utils/cn.d.ts +31 -0
- package/dist/utils/cn.js +37 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/composite-keys.js +32 -0
- package/dist/utils/composite-keys.js.map +1 -0
- package/dist/utils/focus-visible.js +14 -0
- package/dist/utils/focus-visible.js.map +1 -0
- package/dist/utils/focus.js +51 -0
- package/dist/utils/focus.js.map +1 -0
- package/dist/utils/focusable-disabled.js +12 -0
- package/dist/utils/focusable-disabled.js.map +1 -0
- package/dist/utils/keep-pressed-in-place.d.ts +60 -0
- package/dist/utils/keep-pressed-in-place.js +127 -0
- package/dist/utils/keep-pressed-in-place.js.map +1 -0
- package/dist/utils/load-on-demand.js +111 -0
- package/dist/utils/load-on-demand.js.map +1 -0
- package/dist/utils/merge-data-tokens.d.ts +9 -0
- package/dist/utils/merge-data-tokens.js +15 -0
- package/dist/utils/merge-data-tokens.js.map +1 -0
- package/dist/utils/natural-size.js +53 -0
- package/dist/utils/natural-size.js.map +1 -0
- package/dist/utils/nearest-reveal.js +28 -0
- package/dist/utils/nearest-reveal.js.map +1 -0
- package/dist/utils/placement.js +14 -0
- package/dist/utils/placement.js.map +1 -0
- package/dist/utils/radio-group-keys.js +74 -0
- package/dist/utils/radio-group-keys.js.map +1 -0
- package/dist/utils/rendered-description.js +17 -0
- package/dist/utils/rendered-description.js.map +1 -0
- package/dist/utils/root-props.d.ts +103 -0
- package/dist/utils/root-props.js +51 -0
- package/dist/utils/root-props.js.map +1 -0
- package/dist/utils/search.d.ts +11 -0
- package/dist/utils/search.js +18 -0
- package/dist/utils/search.js.map +1 -0
- package/dist/utils/shortcut.js +20 -0
- package/dist/utils/shortcut.js.map +1 -0
- package/dist/utils/split-data-attributes.d.ts +12 -0
- package/dist/utils/split-data-attributes.js +20 -0
- package/dist/utils/split-data-attributes.js.map +1 -0
- package/dist/utils/toolbar-keys.js +28 -0
- package/dist/utils/toolbar-keys.js.map +1 -0
- package/dist/utils/tv.d.ts +7 -0
- package/dist/utils/tv.js +9 -0
- package/dist/utils/tv.js.map +1 -0
- package/dist/utils/typeahead.js +64 -0
- package/dist/utils/typeahead.js.map +1 -0
- package/dist/utils/warn-once.js +30 -0
- package/dist/utils/warn-once.js.map +1 -0
- package/dist/vendor/material-color-utilities/blend/blend.js +88 -0
- package/dist/vendor/material-color-utilities/blend/blend.js.map +1 -0
- package/dist/vendor/material-color-utilities/contrast/contrast.js +131 -0
- package/dist/vendor/material-color-utilities/contrast/contrast.js.map +1 -0
- package/dist/vendor/material-color-utilities/dislike/dislike_analyzer.js +58 -0
- package/dist/vendor/material-color-utilities/dislike/dislike_analyzer.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2021.js +620 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2021.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2025.js +786 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/color_spec_2025.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/contrast_curve.js +59 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/contrast_curve.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_color.js +420 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_color.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_scheme.js +701 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/dynamic_scheme.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/material_dynamic_colors.js +374 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/material_dynamic_colors.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/tone_delta_pair.js +65 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/tone_delta_pair.js.map +1 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/variant.js +38 -0
- package/dist/vendor/material-color-utilities/dynamiccolor/variant.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/cam16.js +309 -0
- package/dist/vendor/material-color-utilities/hct/cam16.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/hct.js +148 -0
- package/dist/vendor/material-color-utilities/hct/hct.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/hct_solver.js +660 -0
- package/dist/vendor/material-color-utilities/hct/hct_solver.js.map +1 -0
- package/dist/vendor/material-color-utilities/hct/viewing_conditions.js +117 -0
- package/dist/vendor/material-color-utilities/hct/viewing_conditions.js.map +1 -0
- package/dist/vendor/material-color-utilities/index.js +51 -0
- package/dist/vendor/material-color-utilities/index.js.map +1 -0
- package/dist/vendor/material-color-utilities/palettes/core_palette.js +22 -0
- package/dist/vendor/material-color-utilities/palettes/core_palette.js.map +1 -0
- package/dist/vendor/material-color-utilities/palettes/tonal_palette.js +134 -0
- package/dist/vendor/material-color-utilities/palettes/tonal_palette.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme.js +21 -0
- package/dist/vendor/material-color-utilities/scheme/scheme.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_android.js +21 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_android.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_content.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_content.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_expressive.js +38 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_expressive.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fidelity.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fidelity.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fruit_salad.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_fruit_salad.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_monochrome.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_monochrome.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_neutral.js +36 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_neutral.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_rainbow.js +22 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_rainbow.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_tonal_spot.js +41 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_tonal_spot.js.map +1 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_vibrant.js +39 -0
- package/dist/vendor/material-color-utilities/scheme/scheme_vibrant.js.map +1 -0
- package/dist/vendor/material-color-utilities/score/score.js +115 -0
- package/dist/vendor/material-color-utilities/score/score.js.map +1 -0
- package/dist/vendor/material-color-utilities/temperature/temperature_cache.js +227 -0
- package/dist/vendor/material-color-utilities/temperature/temperature_cache.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/color_utils.js +246 -0
- package/dist/vendor/material-color-utilities/utils/color_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/image_utils.js +21 -0
- package/dist/vendor/material-color-utilities/utils/image_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/math_utils.js +119 -0
- package/dist/vendor/material-color-utilities/utils/math_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/string_utils.js +74 -0
- package/dist/vendor/material-color-utilities/utils/string_utils.js.map +1 -0
- package/dist/vendor/material-color-utilities/utils/theme_utils.js +24 -0
- package/dist/vendor/material-color-utilities/utils/theme_utils.js.map +1 -0
- package/package.json +114 -3
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { color, corner, defineComponentTokens, px } from "../../tokens/component.js";
|
|
2
|
+
//#region src/components/icon-button/icon-button-tokens.ts
|
|
3
|
+
const container = { property: "background-color" };
|
|
4
|
+
const icon = { property: "color" };
|
|
5
|
+
const selectedContainer = {
|
|
6
|
+
property: "background-color",
|
|
7
|
+
state: "selected"
|
|
8
|
+
};
|
|
9
|
+
const selectedIcon = {
|
|
10
|
+
property: "color",
|
|
11
|
+
state: "selected"
|
|
12
|
+
};
|
|
13
|
+
const unselectedContainer = {
|
|
14
|
+
property: "background-color",
|
|
15
|
+
state: "unselected"
|
|
16
|
+
};
|
|
17
|
+
const unselectedIcon = {
|
|
18
|
+
property: "color",
|
|
19
|
+
state: "unselected"
|
|
20
|
+
};
|
|
21
|
+
const roundShape = { property: "border-top-left-radius" };
|
|
22
|
+
const squareShape = {
|
|
23
|
+
property: "border-top-left-radius",
|
|
24
|
+
state: "selected"
|
|
25
|
+
};
|
|
26
|
+
/** The standard and outlined icon colour: the existing contract, then `on-surface-variant`. */
|
|
27
|
+
const contractIconColor = `var(--md-comp-icon-button-icon-color, ${color("on-surface-variant")})`;
|
|
28
|
+
/** The private parts a variant without its own token takes from its resting colours. */
|
|
29
|
+
const followsResting = {
|
|
30
|
+
"unselected-container-color": "transparent",
|
|
31
|
+
"unselected-icon-color": "var(--_md-comp-icon-button-icon-color)"
|
|
32
|
+
};
|
|
33
|
+
/** The six colour tokens of a variant with a container and a full toggle set. */
|
|
34
|
+
function toggleColors(compose, colors) {
|
|
35
|
+
return {
|
|
36
|
+
"container-color": {
|
|
37
|
+
value: colors.container,
|
|
38
|
+
description: "The container.",
|
|
39
|
+
compose: `${compose}.ContainerColor`,
|
|
40
|
+
paints: container
|
|
41
|
+
},
|
|
42
|
+
"icon-color": {
|
|
43
|
+
value: colors.icon,
|
|
44
|
+
description: "The icon.",
|
|
45
|
+
compose: `${compose}.Color`,
|
|
46
|
+
paints: icon
|
|
47
|
+
},
|
|
48
|
+
"selected-container-color": {
|
|
49
|
+
value: colors.selectedContainer,
|
|
50
|
+
description: "The container of a selected toggle.",
|
|
51
|
+
compose: `${compose}.SelectedContainerColor`,
|
|
52
|
+
paints: selectedContainer
|
|
53
|
+
},
|
|
54
|
+
"selected-icon-color": {
|
|
55
|
+
value: colors.selectedIcon,
|
|
56
|
+
description: "The icon of a selected toggle.",
|
|
57
|
+
compose: `${compose}.ToggleSelectedColor`,
|
|
58
|
+
paints: selectedIcon
|
|
59
|
+
},
|
|
60
|
+
"unselected-container-color": {
|
|
61
|
+
value: colors.unselectedContainer,
|
|
62
|
+
description: "The container of an unselected toggle.",
|
|
63
|
+
compose: `${compose}.UnselectedContainerColor`,
|
|
64
|
+
paints: unselectedContainer
|
|
65
|
+
},
|
|
66
|
+
"unselected-icon-color": {
|
|
67
|
+
value: colors.unselectedIcon,
|
|
68
|
+
description: "The icon of an unselected toggle.",
|
|
69
|
+
compose: `${compose}.ToggleUnselectedColor`,
|
|
70
|
+
paints: unselectedIcon
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/** A size's round and square corners; round is full, capped at half the height. */
|
|
75
|
+
function shapes(compose, square) {
|
|
76
|
+
return {
|
|
77
|
+
"container-shape-round": {
|
|
78
|
+
value: corner("full"),
|
|
79
|
+
description: "The round shape: full corners, at most half the height.",
|
|
80
|
+
compose: `${compose}.ContainerShapeRound`,
|
|
81
|
+
paints: roundShape
|
|
82
|
+
},
|
|
83
|
+
"container-shape-square": {
|
|
84
|
+
value: square,
|
|
85
|
+
description: "The square shape, which a selected round toggle also takes.",
|
|
86
|
+
compose: `${compose}.ContainerShapeSquare`,
|
|
87
|
+
paints: squareShape
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The tokens of {@link IconButton}: `--md-comp-icon-button-<variant>-<part>` per variant
|
|
93
|
+
* and `--md-comp-icon-button-<size>-container-shape-<round|square>` per size. The standard
|
|
94
|
+
* and outlined icon colours fall back to `--md-comp-icon-button-icon-color`.
|
|
95
|
+
*/
|
|
96
|
+
const iconButtonTokenSet = defineComponentTokens({
|
|
97
|
+
name: "md-comp-icon-button",
|
|
98
|
+
tokens: {},
|
|
99
|
+
scopes: {
|
|
100
|
+
variant: {
|
|
101
|
+
standard: {
|
|
102
|
+
prefix: "md-comp-icon-button-standard",
|
|
103
|
+
tokens: {
|
|
104
|
+
"icon-color": {
|
|
105
|
+
value: contractIconColor,
|
|
106
|
+
description: "The icon, and an unselected toggle’s. Falls back to `--md-comp-icon-button-icon-color`.",
|
|
107
|
+
compose: "StandardIconButtonTokens.Color",
|
|
108
|
+
paints: icon
|
|
109
|
+
},
|
|
110
|
+
"selected-icon-color": {
|
|
111
|
+
value: color("primary"),
|
|
112
|
+
description: "The icon of a selected toggle.",
|
|
113
|
+
compose: "StandardIconButtonTokens.SelectedColor",
|
|
114
|
+
paints: selectedIcon
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
fixed: {
|
|
118
|
+
...followsResting,
|
|
119
|
+
"container-color": "transparent",
|
|
120
|
+
"outline-color": "transparent",
|
|
121
|
+
"selected-container-color": "transparent"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
filled: {
|
|
125
|
+
prefix: "md-comp-icon-button-filled",
|
|
126
|
+
tokens: toggleColors("FilledIconButtonTokens", {
|
|
127
|
+
container: color("primary"),
|
|
128
|
+
icon: color("on-primary"),
|
|
129
|
+
selectedContainer: color("primary"),
|
|
130
|
+
selectedIcon: color("on-primary"),
|
|
131
|
+
unselectedContainer: color("surface-container"),
|
|
132
|
+
unselectedIcon: color("on-surface-variant")
|
|
133
|
+
}),
|
|
134
|
+
fixed: { "outline-color": "transparent" }
|
|
135
|
+
},
|
|
136
|
+
tonal: {
|
|
137
|
+
prefix: "md-comp-icon-button-tonal",
|
|
138
|
+
tokens: toggleColors("FilledTonalIconButtonTokens", {
|
|
139
|
+
container: color("secondary-container"),
|
|
140
|
+
icon: color("on-secondary-container"),
|
|
141
|
+
selectedContainer: color("secondary"),
|
|
142
|
+
selectedIcon: color("on-secondary"),
|
|
143
|
+
unselectedContainer: color("secondary-container"),
|
|
144
|
+
unselectedIcon: color("on-secondary-container")
|
|
145
|
+
}),
|
|
146
|
+
fixed: { "outline-color": "transparent" }
|
|
147
|
+
},
|
|
148
|
+
outlined: {
|
|
149
|
+
prefix: "md-comp-icon-button-outlined",
|
|
150
|
+
tokens: {
|
|
151
|
+
"outline-color": {
|
|
152
|
+
value: color("outline-variant"),
|
|
153
|
+
description: "The outline.",
|
|
154
|
+
compose: "OutlinedIconButtonTokens.OutlineColor",
|
|
155
|
+
paints: { property: "border-top-color" }
|
|
156
|
+
},
|
|
157
|
+
"icon-color": {
|
|
158
|
+
value: contractIconColor,
|
|
159
|
+
description: "The icon, and an unselected toggle’s. Falls back to `--md-comp-icon-button-icon-color`.",
|
|
160
|
+
compose: "OutlinedIconButtonTokens.Color",
|
|
161
|
+
paints: icon
|
|
162
|
+
},
|
|
163
|
+
"selected-container-color": {
|
|
164
|
+
value: color("inverse-surface"),
|
|
165
|
+
description: "The container of a selected toggle, which has no outline.",
|
|
166
|
+
compose: "OutlinedIconButtonTokens.SelectedContainerColor",
|
|
167
|
+
paints: selectedContainer
|
|
168
|
+
},
|
|
169
|
+
"selected-icon-color": {
|
|
170
|
+
value: color("inverse-on-surface"),
|
|
171
|
+
description: "The icon of a selected toggle.",
|
|
172
|
+
compose: "OutlinedIconButtonTokens.SelectedColor",
|
|
173
|
+
paints: selectedIcon
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
fixed: {
|
|
177
|
+
...followsResting,
|
|
178
|
+
"container-color": "transparent"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
size: {
|
|
183
|
+
xs: {
|
|
184
|
+
prefix: "md-comp-icon-button-xsmall",
|
|
185
|
+
tokens: shapes("XSmallIconButtonTokens", corner("medium")),
|
|
186
|
+
fixed: { "half-height": px(16) }
|
|
187
|
+
},
|
|
188
|
+
sm: {
|
|
189
|
+
prefix: "md-comp-icon-button-small",
|
|
190
|
+
tokens: shapes("SmallIconButtonTokens", corner("medium")),
|
|
191
|
+
fixed: { "half-height": px(20) }
|
|
192
|
+
},
|
|
193
|
+
md: {
|
|
194
|
+
prefix: "md-comp-icon-button-medium",
|
|
195
|
+
tokens: shapes("MediumIconButtonTokens", corner("large")),
|
|
196
|
+
fixed: { "half-height": px(28) }
|
|
197
|
+
},
|
|
198
|
+
lg: {
|
|
199
|
+
prefix: "md-comp-icon-button-large",
|
|
200
|
+
tokens: shapes("LargeIconButtonTokens", corner("extra-large")),
|
|
201
|
+
fixed: { "half-height": px(48) }
|
|
202
|
+
},
|
|
203
|
+
xl: {
|
|
204
|
+
prefix: "md-comp-icon-button-xlarge",
|
|
205
|
+
tokens: shapes("XLargeIconButtonTokens", corner("extra-large")),
|
|
206
|
+
fixed: { "half-height": px(68) }
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
derived: { "container-shape-round-capped": "min(var(--_md-comp-icon-button-container-shape-round), var(--_md-comp-icon-button-half-height))" }
|
|
211
|
+
});
|
|
212
|
+
//#endregion
|
|
213
|
+
export { iconButtonTokenSet };
|
|
214
|
+
|
|
215
|
+
//# sourceMappingURL=icon-button-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button-tokens.js","names":[],"sources":["../../../src/components/icon-button/icon-button-tokens.ts"],"sourcesContent":["import {\n color,\n corner,\n defineComponentTokens,\n px,\n type ComponentToken,\n type TokenPaints,\n type TokenValue,\n} from '../../tokens/component';\n\n/*\n * IconButton's component tokens, M3 Expressive's `md.comp.icon-button.<variant>.*` and\n * `md.comp.icon-button.<size>.*` names (checked against m3.material.io's token tables,\n * 2026-10-14), with Compose's defaults. `icon-button-styles.ts` reads one private variable\n * per part; the root's `data-variant` and `data-size` pick the public names and defaults.\n *\n * The standard and outlined icon colours fall back to `--md-comp-icon-button-icon-color`\n * (M3's baseline `md.comp.icon-button.icon.color`), the existing contract that app bars,\n * search bars and vibrant toolbars set to `currentColor` and dialogs' close buttons set to\n * `on-surface`. A toggle's unselected colours default to M3's own values; where M3 has no\n * unselected token for a variant (standard and outlined), the unselected part follows the\n * resting one. Hover, focus, pressed and disabled values, the pressed shape, outline widths,\n * widths and sizes stay classes.\n */\n\nconst container: TokenPaints = { property: 'background-color' };\nconst icon: TokenPaints = { property: 'color' };\nconst selectedContainer: TokenPaints = { property: 'background-color', state: 'selected' };\nconst selectedIcon: TokenPaints = { property: 'color', state: 'selected' };\n// An unselected toggle has no attribute of its own, so the probe story marks its instance.\nconst unselectedContainer: TokenPaints = { property: 'background-color', state: 'unselected' };\nconst unselectedIcon: TokenPaints = { property: 'color', state: 'unselected' };\nconst roundShape: TokenPaints = { property: 'border-top-left-radius' };\n// A selected round toggle takes the square shape, so that's where the square token shows.\nconst squareShape: TokenPaints = { property: 'border-top-left-radius', state: 'selected' };\n\n/** The standard and outlined icon colour: the existing contract, then `on-surface-variant`. */\nconst contractIconColor = `var(--md-comp-icon-button-icon-color, ${color('on-surface-variant')})`;\n\n/** The private parts a variant without its own token takes from its resting colours. */\nconst followsResting = {\n 'unselected-container-color': 'transparent',\n 'unselected-icon-color': 'var(--_md-comp-icon-button-icon-color)',\n} as const;\n\n/** The six colour tokens of a variant with a container and a full toggle set. */\nfunction toggleColors(\n compose: string,\n colors: {\n container: TokenValue;\n icon: TokenValue;\n selectedContainer: TokenValue;\n selectedIcon: TokenValue;\n unselectedContainer: TokenValue;\n unselectedIcon: TokenValue;\n },\n) {\n return {\n 'container-color': {\n value: colors.container,\n description: 'The container.',\n compose: `${compose}.ContainerColor`,\n paints: container,\n },\n 'icon-color': {\n value: colors.icon,\n description: 'The icon.',\n compose: `${compose}.Color`,\n paints: icon,\n },\n 'selected-container-color': {\n value: colors.selectedContainer,\n description: 'The container of a selected toggle.',\n compose: `${compose}.SelectedContainerColor`,\n paints: selectedContainer,\n },\n 'selected-icon-color': {\n value: colors.selectedIcon,\n description: 'The icon of a selected toggle.',\n compose: `${compose}.ToggleSelectedColor`,\n paints: selectedIcon,\n },\n 'unselected-container-color': {\n value: colors.unselectedContainer,\n description: 'The container of an unselected toggle.',\n compose: `${compose}.UnselectedContainerColor`,\n paints: unselectedContainer,\n },\n 'unselected-icon-color': {\n value: colors.unselectedIcon,\n description: 'The icon of an unselected toggle.',\n compose: `${compose}.ToggleUnselectedColor`,\n paints: unselectedIcon,\n },\n } satisfies Record<string, ComponentToken>;\n}\n\n/** A size's round and square corners; round is full, capped at half the height. */\nfunction shapes(compose: string, square: TokenValue) {\n return {\n 'container-shape-round': {\n value: corner('full'),\n description: 'The round shape: full corners, at most half the height.',\n compose: `${compose}.ContainerShapeRound`,\n paints: roundShape,\n },\n 'container-shape-square': {\n value: square,\n description: 'The square shape, which a selected round toggle also takes.',\n compose: `${compose}.ContainerShapeSquare`,\n paints: squareShape,\n },\n } satisfies Record<string, ComponentToken>;\n}\n\n/**\n * The tokens of {@link IconButton}: `--md-comp-icon-button-<variant>-<part>` per variant\n * and `--md-comp-icon-button-<size>-container-shape-<round|square>` per size. The standard\n * and outlined icon colours fall back to `--md-comp-icon-button-icon-color`.\n */\nexport const iconButtonTokenSet = defineComponentTokens({\n name: 'md-comp-icon-button',\n tokens: {},\n scopes: {\n variant: {\n standard: {\n prefix: 'md-comp-icon-button-standard',\n tokens: {\n 'icon-color': {\n value: contractIconColor,\n description:\n 'The icon, and an unselected toggle’s. Falls back to `--md-comp-icon-button-icon-color`.',\n compose: 'StandardIconButtonTokens.Color',\n paints: icon,\n },\n 'selected-icon-color': {\n value: color('primary'),\n description: 'The icon of a selected toggle.',\n compose: 'StandardIconButtonTokens.SelectedColor',\n paints: selectedIcon,\n },\n },\n fixed: {\n ...followsResting,\n 'container-color': 'transparent',\n 'outline-color': 'transparent',\n 'selected-container-color': 'transparent',\n },\n },\n filled: {\n prefix: 'md-comp-icon-button-filled',\n tokens: toggleColors('FilledIconButtonTokens', {\n container: color('primary'),\n icon: color('on-primary'),\n selectedContainer: color('primary'),\n selectedIcon: color('on-primary'),\n unselectedContainer: color('surface-container'),\n unselectedIcon: color('on-surface-variant'),\n }),\n fixed: { 'outline-color': 'transparent' },\n },\n tonal: {\n prefix: 'md-comp-icon-button-tonal',\n tokens: toggleColors('FilledTonalIconButtonTokens', {\n container: color('secondary-container'),\n icon: color('on-secondary-container'),\n selectedContainer: color('secondary'),\n selectedIcon: color('on-secondary'),\n unselectedContainer: color('secondary-container'),\n unselectedIcon: color('on-secondary-container'),\n }),\n fixed: { 'outline-color': 'transparent' },\n },\n outlined: {\n prefix: 'md-comp-icon-button-outlined',\n tokens: {\n 'outline-color': {\n value: color('outline-variant'),\n description: 'The outline.',\n compose: 'OutlinedIconButtonTokens.OutlineColor',\n paints: { property: 'border-top-color' },\n },\n 'icon-color': {\n value: contractIconColor,\n description:\n 'The icon, and an unselected toggle’s. Falls back to `--md-comp-icon-button-icon-color`.',\n compose: 'OutlinedIconButtonTokens.Color',\n paints: icon,\n },\n 'selected-container-color': {\n value: color('inverse-surface'),\n description: 'The container of a selected toggle, which has no outline.',\n compose: 'OutlinedIconButtonTokens.SelectedContainerColor',\n paints: selectedContainer,\n },\n 'selected-icon-color': {\n value: color('inverse-on-surface'),\n description: 'The icon of a selected toggle.',\n compose: 'OutlinedIconButtonTokens.SelectedColor',\n paints: selectedIcon,\n },\n },\n fixed: { ...followsResting, 'container-color': 'transparent' },\n },\n },\n size: {\n xs: {\n prefix: 'md-comp-icon-button-xsmall',\n tokens: shapes('XSmallIconButtonTokens', corner('medium')),\n fixed: { 'half-height': px(16) },\n },\n sm: {\n prefix: 'md-comp-icon-button-small',\n tokens: shapes('SmallIconButtonTokens', corner('medium')),\n fixed: { 'half-height': px(20) },\n },\n md: {\n prefix: 'md-comp-icon-button-medium',\n tokens: shapes('MediumIconButtonTokens', corner('large')),\n fixed: { 'half-height': px(28) },\n },\n lg: {\n prefix: 'md-comp-icon-button-large',\n tokens: shapes('LargeIconButtonTokens', corner('extra-large')),\n fixed: { 'half-height': px(48) },\n },\n xl: {\n prefix: 'md-comp-icon-button-xlarge',\n tokens: shapes('XLargeIconButtonTokens', corner('extra-large')),\n fixed: { 'half-height': px(68) },\n },\n },\n },\n derived: {\n // Full corners stop at half the height, so the press morph interpolates smoothly.\n 'container-shape-round-capped':\n 'min(var(--_md-comp-icon-button-container-shape-round), var(--_md-comp-icon-button-half-height))',\n },\n});\n"],"mappings":";;AAyBA,MAAM,YAAyB,EAAE,UAAU,mBAAmB;AAC9D,MAAM,OAAoB,EAAE,UAAU,QAAQ;AAC9C,MAAM,oBAAiC;CAAE,UAAU;CAAoB,OAAO;AAAW;AACzF,MAAM,eAA4B;CAAE,UAAU;CAAS,OAAO;AAAW;AAEzE,MAAM,sBAAmC;CAAE,UAAU;CAAoB,OAAO;AAAa;AAC7F,MAAM,iBAA8B;CAAE,UAAU;CAAS,OAAO;AAAa;AAC7E,MAAM,aAA0B,EAAE,UAAU,yBAAyB;AAErE,MAAM,cAA2B;CAAE,UAAU;CAA0B,OAAO;AAAW;;AAGzF,MAAM,oBAAoB,yCAAyC,MAAM,oBAAoB,EAAE;;AAG/F,MAAM,iBAAiB;CACrB,8BAA8B;CAC9B,yBAAyB;AAC3B;;AAGA,SAAS,aACP,SACA,QAQA;CACA,OAAO;EACL,mBAAmB;GACjB,OAAO,OAAO;GACd,aAAa;GACb,SAAS,GAAG,QAAQ;GACpB,QAAQ;EACV;EACA,cAAc;GACZ,OAAO,OAAO;GACd,aAAa;GACb,SAAS,GAAG,QAAQ;GACpB,QAAQ;EACV;EACA,4BAA4B;GAC1B,OAAO,OAAO;GACd,aAAa;GACb,SAAS,GAAG,QAAQ;GACpB,QAAQ;EACV;EACA,uBAAuB;GACrB,OAAO,OAAO;GACd,aAAa;GACb,SAAS,GAAG,QAAQ;GACpB,QAAQ;EACV;EACA,8BAA8B;GAC5B,OAAO,OAAO;GACd,aAAa;GACb,SAAS,GAAG,QAAQ;GACpB,QAAQ;EACV;EACA,yBAAyB;GACvB,OAAO,OAAO;GACd,aAAa;GACb,SAAS,GAAG,QAAQ;GACpB,QAAQ;EACV;CACF;AACF;;AAGA,SAAS,OAAO,SAAiB,QAAoB;CACnD,OAAO;EACL,yBAAyB;GACvB,OAAO,OAAO,MAAM;GACpB,aAAa;GACb,SAAS,GAAG,QAAQ;GACpB,QAAQ;EACV;EACA,0BAA0B;GACxB,OAAO;GACP,aAAa;GACb,SAAS,GAAG,QAAQ;GACpB,QAAQ;EACV;CACF;AACF;;;;;;AAOA,MAAa,qBAAqB,sBAAsB;CACtD,MAAM;CACN,QAAQ,CAAC;CACT,QAAQ;EACN,SAAS;GACP,UAAU;IACR,QAAQ;IACR,QAAQ;KACN,cAAc;MACZ,OAAO;MACP,aACE;MACF,SAAS;MACT,QAAQ;KACV;KACA,uBAAuB;MACrB,OAAO,MAAM,SAAS;MACtB,aAAa;MACb,SAAS;MACT,QAAQ;KACV;IACF;IACA,OAAO;KACL,GAAG;KACH,mBAAmB;KACnB,iBAAiB;KACjB,4BAA4B;IAC9B;GACF;GACA,QAAQ;IACN,QAAQ;IACR,QAAQ,aAAa,0BAA0B;KAC7C,WAAW,MAAM,SAAS;KAC1B,MAAM,MAAM,YAAY;KACxB,mBAAmB,MAAM,SAAS;KAClC,cAAc,MAAM,YAAY;KAChC,qBAAqB,MAAM,mBAAmB;KAC9C,gBAAgB,MAAM,oBAAoB;IAC5C,CAAC;IACD,OAAO,EAAE,iBAAiB,cAAc;GAC1C;GACA,OAAO;IACL,QAAQ;IACR,QAAQ,aAAa,+BAA+B;KAClD,WAAW,MAAM,qBAAqB;KACtC,MAAM,MAAM,wBAAwB;KACpC,mBAAmB,MAAM,WAAW;KACpC,cAAc,MAAM,cAAc;KAClC,qBAAqB,MAAM,qBAAqB;KAChD,gBAAgB,MAAM,wBAAwB;IAChD,CAAC;IACD,OAAO,EAAE,iBAAiB,cAAc;GAC1C;GACA,UAAU;IACR,QAAQ;IACR,QAAQ;KACN,iBAAiB;MACf,OAAO,MAAM,iBAAiB;MAC9B,aAAa;MACb,SAAS;MACT,QAAQ,EAAE,UAAU,mBAAmB;KACzC;KACA,cAAc;MACZ,OAAO;MACP,aACE;MACF,SAAS;MACT,QAAQ;KACV;KACA,4BAA4B;MAC1B,OAAO,MAAM,iBAAiB;MAC9B,aAAa;MACb,SAAS;MACT,QAAQ;KACV;KACA,uBAAuB;MACrB,OAAO,MAAM,oBAAoB;MACjC,aAAa;MACb,SAAS;MACT,QAAQ;KACV;IACF;IACA,OAAO;KAAE,GAAG;KAAgB,mBAAmB;IAAc;GAC/D;EACF;EACA,MAAM;GACJ,IAAI;IACF,QAAQ;IACR,QAAQ,OAAO,0BAA0B,OAAO,QAAQ,CAAC;IACzD,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE;GACjC;GACA,IAAI;IACF,QAAQ;IACR,QAAQ,OAAO,yBAAyB,OAAO,QAAQ,CAAC;IACxD,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE;GACjC;GACA,IAAI;IACF,QAAQ;IACR,QAAQ,OAAO,0BAA0B,OAAO,OAAO,CAAC;IACxD,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE;GACjC;GACA,IAAI;IACF,QAAQ;IACR,QAAQ,OAAO,yBAAyB,OAAO,aAAa,CAAC;IAC7D,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE;GACjC;GACA,IAAI;IACF,QAAQ;IACR,QAAQ,OAAO,0BAA0B,OAAO,aAAa,CAAC;IAC9D,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE;GACjC;EACF;CACF;CACA,SAAS,EAEP,gCACE,kGACJ;AACF,CAAC"}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { Density } from "../../tokens/density.js";
|
|
2
|
+
import { RootDOMProps } from "../../utils/root-props.js";
|
|
3
|
+
import { ListDividers, ListVariant } from "./list-styles.js";
|
|
4
|
+
import { CSSProperties, JSX, ReactElement, ReactNode, Ref } from "react";
|
|
5
|
+
import { Key } from "react-aria";
|
|
6
|
+
//#region src/components/list/List.d.ts
|
|
7
|
+
/** Props of a {@link ListItem}; the React `key` identifies it for `onAction` and selection. */
|
|
8
|
+
export interface ListItemProps {
|
|
9
|
+
/** The headline. */
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/** A short line above the headline. */
|
|
12
|
+
overline?: ReactNode;
|
|
13
|
+
/** One or two lines below the headline. */
|
|
14
|
+
supportingText?: ReactNode;
|
|
15
|
+
/** Leading content: an icon, an avatar, a `ListItemImage` or `ListItemVideo`, or a control. */
|
|
16
|
+
leading?: ReactNode;
|
|
17
|
+
/** Trailing content: an icon, short text or a control (in an interactive list it gets focus with ← / →). */
|
|
18
|
+
trailing?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Makes the item a link. In a list without `onAction` or `selectionMode` the item is a
|
|
21
|
+
* real `<a>`: its own Tab stop, with the browser's link menu and modified clicks, routed
|
|
22
|
+
* through a `RouterProvider` (such as `NextRouterProvider`) on a plain click.
|
|
23
|
+
*/
|
|
24
|
+
href?: string;
|
|
25
|
+
/** Marks the link item for the page being shown: `aria-current="page"` and the selected colours. */
|
|
26
|
+
current?: boolean;
|
|
27
|
+
/** A link item's target; `_blank` adds `rel="noopener noreferrer"` unless `rel` is given. */
|
|
28
|
+
target?: string;
|
|
29
|
+
/** A link item's `rel`, e.g. `"nofollow"`. */
|
|
30
|
+
rel?: string;
|
|
31
|
+
/** Downloads the link item's file instead of opening it (optionally with a file name). */
|
|
32
|
+
download?: boolean | string;
|
|
33
|
+
/** Plain-text version of the headline, for type-ahead and announcements. */
|
|
34
|
+
textValue?: string;
|
|
35
|
+
/** Accessible name when the headline isn't plain text. */
|
|
36
|
+
'aria-label'?: string;
|
|
37
|
+
/** Classes for the item, merged after `classNames.item`; consumer classes win. */
|
|
38
|
+
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Makes the whole item a switch or a checkbox (Compose's toggleable `ListItem`): pressing
|
|
41
|
+
* anywhere on it toggles it, and it is one control for assistive tech. Not in lists with
|
|
42
|
+
* `onAction`, links or `selectionMode`. Left out, the item is a plain row.
|
|
43
|
+
*/
|
|
44
|
+
control?: 'switch' | 'checkbox';
|
|
45
|
+
/** Whether a switch or checkbox item is on (controlled). */
|
|
46
|
+
checked?: boolean;
|
|
47
|
+
/** Whether a switch or checkbox item starts on (uncontrolled). */
|
|
48
|
+
defaultChecked?: boolean;
|
|
49
|
+
/** Called when a switch or checkbox item is toggled. */
|
|
50
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
51
|
+
/** Where the switch, checkbox or radio button sits, at the start or end of the row. @default "start", or "end" for a switch */
|
|
52
|
+
controlPlacement?: ControlPlacement;
|
|
53
|
+
/** A radio list item's value, or the value a switch or checkbox item posts with its form. */
|
|
54
|
+
value?: string;
|
|
55
|
+
/** The form field name of a switch or checkbox item. */
|
|
56
|
+
name?: string;
|
|
57
|
+
/** Disables the item. @default false */
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Aligns the content; by default it is centred, and top-aligned in three-line items.
|
|
61
|
+
* @default "center", or "top" in three-line items
|
|
62
|
+
*/
|
|
63
|
+
verticalAlignment?: 'center' | 'top';
|
|
64
|
+
/** Shows ✓ and ✕ in a switch item's thumb. @default false */
|
|
65
|
+
switchIcons?: boolean;
|
|
66
|
+
/** The most lines the headline shows, then "…". Left out, the list's `headlineLines` applies. */
|
|
67
|
+
headlineLines?: LineLimit;
|
|
68
|
+
/**
|
|
69
|
+
* The most lines the supporting text shows, then "…". Left out, the list's
|
|
70
|
+
* `supportingTextLines` applies.
|
|
71
|
+
*/
|
|
72
|
+
supportingTextLines?: LineLimit;
|
|
73
|
+
/**
|
|
74
|
+
* Nested `ListItem`s (each with its own `key`): the item expands and collapses to show
|
|
75
|
+
* them, in a folder-like way (M3's expand interaction). It ends with a chevron, and → / ←
|
|
76
|
+
* expand and collapse it.
|
|
77
|
+
*/
|
|
78
|
+
childItems?: ReactElement<ListItemProps> | ReactElement<ListItemProps>[];
|
|
79
|
+
}
|
|
80
|
+
/** How many lines a text shows before it ends with "…"; the full text stays in the DOM. */
|
|
81
|
+
export type LineLimit = 1 | 2 | 3;
|
|
82
|
+
type ControlPlacement = 'start' | 'end';
|
|
83
|
+
/**
|
|
84
|
+
* An item of a {@link List}. Like React Stately's collection `Item`, the list reads its
|
|
85
|
+
* props; identify it with a React `key`.
|
|
86
|
+
*/
|
|
87
|
+
export declare const ListItem: (props: ListItemProps) => JSX.Element;
|
|
88
|
+
/** Props of a {@link ListSection}: a subheader, or a name when it shows none. */
|
|
89
|
+
export type ListSectionProps = {
|
|
90
|
+
/** `ListItem` elements, each with its own `key`. */
|
|
91
|
+
children: ReactElement<ListItemProps> | ReactElement<ListItemProps>[];
|
|
92
|
+
/** Classes for the section, merged after `classNames.section`; consumer classes win. */
|
|
93
|
+
className?: string;
|
|
94
|
+
} & ({
|
|
95
|
+
/** The subheader shown above the section's items, which names the group. */
|
|
96
|
+
title: ReactNode;
|
|
97
|
+
/** Accessible name for the group, instead of the subheader's text. */
|
|
98
|
+
'aria-label'?: string;
|
|
99
|
+
} | {
|
|
100
|
+
title?: undefined;
|
|
101
|
+
/** Accessible name for the group when it shows no subheader. */
|
|
102
|
+
'aria-label': string;
|
|
103
|
+
});
|
|
104
|
+
/**
|
|
105
|
+
* A labelled group of items in a {@link List}, under a subheader (`title`). Identify it with
|
|
106
|
+
* a React `key`, like its items. Arrow keys move across sections as through one list.
|
|
107
|
+
* Sections go in static, action (grid) and selection (list box) lists, not in radio lists
|
|
108
|
+
* or lists with `childItems`.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* <List aria-label="Settings" onAction={open}>
|
|
112
|
+
* <ListSection key="network" title="Network">
|
|
113
|
+
* <ListItem key="wifi">Wi‑Fi</ListItem>
|
|
114
|
+
* </ListSection>
|
|
115
|
+
* </List>
|
|
116
|
+
*/
|
|
117
|
+
export declare const ListSection: (props: ListSectionProps) => JSX.Element;
|
|
118
|
+
export interface ListClassNames {
|
|
119
|
+
/** The root list element, merged with `className`. */
|
|
120
|
+
root?: string;
|
|
121
|
+
/** Each `ListSection`'s wrapper (its subheader and items). */
|
|
122
|
+
section?: string;
|
|
123
|
+
/** Each `ListSection`'s subheader. */
|
|
124
|
+
subheader?: string;
|
|
125
|
+
/** Each item. */
|
|
126
|
+
item?: string;
|
|
127
|
+
/** Each item's leading content (icon, avatar, media or control). */
|
|
128
|
+
leading?: string;
|
|
129
|
+
/** Each item's text column (overline, headline and supporting text). */
|
|
130
|
+
text?: string;
|
|
131
|
+
/** Each item's overline. */
|
|
132
|
+
overline?: string;
|
|
133
|
+
/** Each item's headline. */
|
|
134
|
+
headline?: string;
|
|
135
|
+
/** Each item's supporting text. */
|
|
136
|
+
supportingText?: string;
|
|
137
|
+
/** Each item's trailing content. */
|
|
138
|
+
trailing?: string;
|
|
139
|
+
/** The drawn switch, checkbox or radio button of an item that is one. */
|
|
140
|
+
control?: string;
|
|
141
|
+
/** The check that marks a selected item in a list with `selectionMode`. */
|
|
142
|
+
selectionIndicator?: string;
|
|
143
|
+
/** The chevron button that expands an item with nested items. */
|
|
144
|
+
expandButton?: string;
|
|
145
|
+
/** Every `ListItemImage` and `ListItemVideo` in the list (to round them, say). */
|
|
146
|
+
media?: string;
|
|
147
|
+
}
|
|
148
|
+
type Naming = {
|
|
149
|
+
/** Accessible name for the list (a list has no visible label of its own). */
|
|
150
|
+
'aria-label': string;
|
|
151
|
+
} | {
|
|
152
|
+
/** The id of the element that names the list, such as a heading above it. */
|
|
153
|
+
'aria-labelledby': string;
|
|
154
|
+
};
|
|
155
|
+
type ListChild = ReactElement<ListItemProps> | ReactElement<ListSectionProps>;
|
|
156
|
+
interface ListOwnProps extends RootDOMProps {
|
|
157
|
+
/** The root element's id. */
|
|
158
|
+
id?: string;
|
|
159
|
+
/** Flush items, or separate items 2px apart with rounded group corners. @default "standard" */
|
|
160
|
+
variant?: ListVariant;
|
|
161
|
+
/** `ListItem` elements, or `ListSection`s of them. */
|
|
162
|
+
children: ListChild | ListChild[];
|
|
163
|
+
/** Called when an item is pressed or Enter is pressed on it. Makes the list interactive. */
|
|
164
|
+
onAction?: (key: Key) => void;
|
|
165
|
+
/** Whether items can be selected: none, one or several. @default "none" */
|
|
166
|
+
selectionMode?: 'none' | 'single' | 'multiple';
|
|
167
|
+
/** The keys of the selected items (controlled). */
|
|
168
|
+
selectedKeys?: 'all' | Iterable<Key>;
|
|
169
|
+
/** The keys of the items selected at first (uncontrolled). */
|
|
170
|
+
defaultSelectedKeys?: 'all' | Iterable<Key>;
|
|
171
|
+
/** Called with the selected keys when the selection changes. */
|
|
172
|
+
onSelectionChange?: (keys: Set<Key> | 'all') => void;
|
|
173
|
+
/**
|
|
174
|
+
* The last selected item can be deselected, leaving none. `false` keeps at least one item
|
|
175
|
+
* selected. @default true
|
|
176
|
+
*/
|
|
177
|
+
deselectable?: boolean;
|
|
178
|
+
/** The keys of items that can't be pressed or selected. */
|
|
179
|
+
disabledKeys?: Iterable<Key>;
|
|
180
|
+
/**
|
|
181
|
+
* The selected item of a radio list (Compose's single-selection `ListItem`): with `value`,
|
|
182
|
+
* `defaultValue` or `onChange`, the list is a radio group whose items are radio
|
|
183
|
+
* buttons, each with a `value`.
|
|
184
|
+
*/
|
|
185
|
+
value?: string | null;
|
|
186
|
+
/** The radio list's initially selected item value (uncontrolled). */
|
|
187
|
+
defaultValue?: string;
|
|
188
|
+
/** Called with the chosen item's value when a radio list's selection changes. */
|
|
189
|
+
onChange?: (value: string) => void;
|
|
190
|
+
/** The form field name of a radio list. */
|
|
191
|
+
name?: string;
|
|
192
|
+
/** A radio list needs a choice before its form submits. @default false */
|
|
193
|
+
required?: boolean;
|
|
194
|
+
/** Disables every item. @default false */
|
|
195
|
+
disabled?: boolean;
|
|
196
|
+
/** Where a radio list's radio buttons sit, at the start or end of each row. @default "start" */
|
|
197
|
+
controlPlacement?: ControlPlacement;
|
|
198
|
+
/**
|
|
199
|
+
* M3's dividers between items: `full` width, or `inset` 16dp from each side. Standard
|
|
200
|
+
* lists only (segmented items are already apart). Left out, there are no dividers.
|
|
201
|
+
*/
|
|
202
|
+
dividers?: ListDividers;
|
|
203
|
+
/**
|
|
204
|
+
* Selected items show a check at their end besides their colour, so selection never
|
|
205
|
+
* relies on colour alone (M3 lists accessibility). @default true
|
|
206
|
+
*/
|
|
207
|
+
selectionIndicator?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Web density, `0` to `-3` (M3: a list "can adjust margins, spacing, or density"): each step
|
|
210
|
+
* takes 4px off every item (one line 56px at 0, 44px at -3; two lines 72 → 60px; three
|
|
211
|
+
* lines 88 → 76px; items grown by an image or avatar too) and off section subheaders, and
|
|
212
|
+
* the controls inside items follow. Left out, the list takes the density of the nearest
|
|
213
|
+
* `ThemeProvider` or `ThemeScope`. Prefer setting it there, from a setting, since M3 makes
|
|
214
|
+
* density the reader's choice.
|
|
215
|
+
* @default 0
|
|
216
|
+
*/
|
|
217
|
+
density?: Density;
|
|
218
|
+
/** The expanded items of a list with `childItems` (controlled). */
|
|
219
|
+
expandedKeys?: Iterable<Key>;
|
|
220
|
+
/** The items expanded at first (uncontrolled). */
|
|
221
|
+
defaultExpandedKeys?: Iterable<Key>;
|
|
222
|
+
/** Called with the expanded keys when an item expands or collapses. */
|
|
223
|
+
onExpandedChange?: (keys: Set<Key>) => void;
|
|
224
|
+
/** The most lines each item's headline shows, then "…". M3: one or two. Left out, no limit. */
|
|
225
|
+
headlineLines?: LineLimit;
|
|
226
|
+
/**
|
|
227
|
+
* The most lines each item's supporting text shows, then "…". M3: one in a two-line item,
|
|
228
|
+
* two in a three-line item. Left out, no limit.
|
|
229
|
+
*/
|
|
230
|
+
supportingTextLines?: LineLimit;
|
|
231
|
+
/** Ref to the root element: a `<ul>`, or a `<div>` grid or listbox when interactive. */
|
|
232
|
+
ref?: Ref<HTMLElement>;
|
|
233
|
+
/** Classes for the root element, merged with `classNames.root`; consumer classes win. */
|
|
234
|
+
className?: string;
|
|
235
|
+
/** Inline styles for the root element. */
|
|
236
|
+
style?: CSSProperties;
|
|
237
|
+
/** Classes for each part, by slot. */
|
|
238
|
+
classNames?: ListClassNames;
|
|
239
|
+
/** `data-*` attributes go to the root. */
|
|
240
|
+
[data: `data-${string}`]: string | number | boolean | undefined;
|
|
241
|
+
}
|
|
242
|
+
export type ListProps = ListOwnProps & Naming;
|
|
243
|
+
/**
|
|
244
|
+
* M3 Expressive list: items with a headline, optional overline and supporting text, and
|
|
245
|
+
* leading and trailing content, flush (standard) or segmented into rounded groups.
|
|
246
|
+
*
|
|
247
|
+
* With `selectionMode` it is a list box of options (`listbox` / `option`), and selected items
|
|
248
|
+
* show a check. With `onAction` or links it is an interactive grid list, where ← / → reach
|
|
249
|
+
* trailing controls. Items with `childItems` expand and collapse (a tree grid). Interactive
|
|
250
|
+
* items get state layers and morph their corners on hover, focus, press and selection, and
|
|
251
|
+
* ↑ / ↓ move between them, wrapping at the ends. Otherwise it is a plain `ul`.
|
|
252
|
+
*
|
|
253
|
+
* Items can lead with M3's image or video thumbnail (`ListItemImage`, `ListItemVideo`),
|
|
254
|
+
* limit their lines (`headlineLines`, `supportingTextLines`), and standard lists can draw
|
|
255
|
+
* `dividers`.
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* <List variant="segmented" aria-label="Settings" onAction={open}>
|
|
259
|
+
* <ListItem key="wifi" leading={<WifiIcon />} supportingText="Connected">Wi‑Fi</ListItem>
|
|
260
|
+
* <ListItem key="bluetooth" leading={<BluetoothIcon />}>Bluetooth</ListItem>
|
|
261
|
+
* </List>
|
|
262
|
+
*/
|
|
263
|
+
export declare function List({ density, ...props }: ListProps): JSX.Element;
|
|
264
|
+
//#endregion
|
|
265
|
+
//# sourceMappingURL=List.d.ts.map
|