material 1.0.4 → 3.0.0-next.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 +19 -9
- package/README.md +438 -1
- package/dist/LICENSE +21 -0
- package/dist/README.md +438 -0
- package/dist/components/badge/api.d.ts +41 -0
- package/dist/components/badge/api.js +163 -0
- package/dist/components/badge/badge.d.ts +62 -0
- package/dist/components/badge/badge.js +18 -0
- package/dist/components/badge/config.d.ts +631 -0
- package/dist/components/badge/config.js +70 -0
- package/dist/components/badge/constants.d.ts +35 -0
- package/dist/components/badge/constants.js +20 -0
- package/dist/components/badge/features.d.ts +38 -0
- package/dist/components/badge/features.js +96 -0
- package/dist/components/badge/index.d.ts +8 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/types.d.ts +294 -0
- package/dist/components/badge/types.js +1 -0
- package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +12 -0
- package/dist/components/bottom-app-bar/bottom-app-bar.js +103 -0
- package/dist/components/bottom-app-bar/config.d.ts +16 -0
- package/dist/components/bottom-app-bar/config.js +10 -0
- package/dist/components/bottom-app-bar/constants.d.ts +22 -0
- package/dist/components/bottom-app-bar/constants.js +13 -0
- package/dist/components/bottom-app-bar/index.d.ts +8 -0
- package/dist/components/bottom-app-bar/index.js +3 -0
- package/dist/components/bottom-app-bar/types.d.ts +97 -0
- package/dist/components/bottom-app-bar/types.js +1 -0
- package/dist/components/bottom-sheet/api.d.ts +44 -0
- package/dist/components/bottom-sheet/api.js +56 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +24 -0
- package/dist/components/bottom-sheet/bottom-sheet.js +18 -0
- package/dist/components/bottom-sheet/config.d.ts +547 -0
- package/dist/components/bottom-sheet/config.js +26 -0
- package/dist/components/bottom-sheet/constants.d.ts +63 -0
- package/dist/components/bottom-sheet/constants.js +34 -0
- package/dist/components/bottom-sheet/features/drag.d.ts +35 -0
- package/dist/components/bottom-sheet/features/drag.js +94 -0
- package/dist/components/bottom-sheet/features/index.d.ts +3 -0
- package/dist/components/bottom-sheet/features/index.js +3 -0
- package/dist/components/bottom-sheet/features/state.d.ts +31 -0
- package/dist/components/bottom-sheet/features/state.js +153 -0
- package/dist/components/bottom-sheet/features/structure.d.ts +26 -0
- package/dist/components/bottom-sheet/features/structure.js +94 -0
- package/dist/components/bottom-sheet/index.d.ts +2 -0
- package/dist/components/bottom-sheet/index.js +1 -0
- package/dist/components/bottom-sheet/types.d.ts +135 -0
- package/dist/components/bottom-sheet/types.js +1 -0
- package/dist/components/button/api.d.ts +68 -0
- package/dist/components/button/api.js +269 -0
- package/dist/components/button/button.d.ts +65 -0
- package/dist/components/button/button.js +25 -0
- package/dist/components/button/config.d.ts +594 -0
- package/dist/components/button/config.js +49 -0
- package/dist/components/button/constants.d.ts +76 -0
- package/dist/components/button/constants.js +33 -0
- package/dist/components/button/features/progress.d.ts +43 -0
- package/dist/components/button/features/progress.js +172 -0
- package/dist/components/button/features/toggle.d.ts +43 -0
- package/dist/components/button/features/toggle.js +33 -0
- package/dist/components/button/index.d.ts +8 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/types.d.ts +454 -0
- package/dist/components/button/types.js +1 -0
- package/dist/components/button-group/button-group.d.ts +54 -0
- package/dist/components/button-group/button-group.js +398 -0
- package/dist/components/button-group/config.d.ts +147 -0
- package/dist/components/button-group/config.js +124 -0
- package/dist/components/button-group/constants.d.ts +205 -0
- package/dist/components/button-group/constants.js +92 -0
- package/dist/components/button-group/index.d.ts +15 -0
- package/dist/components/button-group/index.js +3 -0
- package/dist/components/button-group/types.d.ts +336 -0
- package/dist/components/button-group/types.js +1 -0
- package/dist/components/card/api.d.ts +24 -0
- package/dist/components/card/api.js +90 -0
- package/dist/components/card/card.d.ts +67 -0
- package/dist/components/card/card.js +19 -0
- package/dist/components/card/config.d.ts +635 -0
- package/dist/components/card/config.js +149 -0
- package/dist/components/card/constants.d.ts +88 -0
- package/dist/components/card/constants.js +55 -0
- package/dist/components/card/content.d.ts +92 -0
- package/dist/components/card/content.js +191 -0
- package/dist/components/card/features.d.ts +124 -0
- package/dist/components/card/features.js +217 -0
- package/dist/components/card/index.d.ts +69 -0
- package/dist/components/card/index.js +2 -0
- package/dist/components/card/types.d.ts +515 -0
- package/dist/components/card/types.js +1 -0
- package/dist/components/carousel/api.d.ts +20 -0
- package/dist/components/carousel/api.js +51 -0
- package/dist/components/carousel/arrangement.d.ts +23 -0
- package/dist/components/carousel/arrangement.js +61 -0
- package/dist/components/carousel/carousel.d.ts +25 -0
- package/dist/components/carousel/carousel.js +11 -0
- package/dist/components/carousel/config.d.ts +540 -0
- package/dist/components/carousel/config.js +40 -0
- package/dist/components/carousel/constants.d.ts +39 -0
- package/dist/components/carousel/constants.js +23 -0
- package/dist/components/carousel/features/index.d.ts +2 -0
- package/dist/components/carousel/features/index.js +2 -0
- package/dist/components/carousel/features/scroll.d.ts +20 -0
- package/dist/components/carousel/features/scroll.js +464 -0
- package/dist/components/carousel/features/slides.d.ts +18 -0
- package/dist/components/carousel/features/slides.js +129 -0
- package/dist/components/carousel/index.d.ts +3 -0
- package/dist/components/carousel/index.js +2 -0
- package/dist/components/carousel/keylines.d.ts +65 -0
- package/dist/components/carousel/keylines.js +292 -0
- package/dist/components/carousel/strategy.d.ts +36 -0
- package/dist/components/carousel/strategy.js +207 -0
- package/dist/components/carousel/types.d.ts +94 -0
- package/dist/components/carousel/types.js +1 -0
- package/dist/components/checkbox/api.d.ts +7 -0
- package/dist/components/checkbox/api.js +89 -0
- package/dist/components/checkbox/checkbox.d.ts +64 -0
- package/dist/components/checkbox/checkbox.js +65 -0
- package/dist/components/checkbox/config.d.ts +568 -0
- package/dist/components/checkbox/config.js +61 -0
- package/dist/components/checkbox/constants.d.ts +49 -0
- package/dist/components/checkbox/constants.js +16 -0
- package/dist/components/checkbox/index.d.ts +28 -0
- package/dist/components/checkbox/index.js +2 -0
- package/dist/components/checkbox/types.d.ts +306 -0
- package/dist/components/checkbox/types.js +1 -0
- package/dist/components/chips/api.d.ts +62 -0
- package/dist/components/chips/api.js +159 -0
- package/dist/components/chips/chip/chip.d.ts +4 -0
- package/dist/components/chips/chip/chip.js +285 -0
- package/dist/components/chips/chip/constants.d.ts +38 -0
- package/dist/components/chips/chip/constants.js +18 -0
- package/dist/components/chips/chip/index.d.ts +1 -0
- package/dist/components/chips/chip/index.js +1 -0
- package/dist/components/chips/chips.d.ts +17 -0
- package/dist/components/chips/chips.js +34 -0
- package/dist/components/chips/config.d.ts +583 -0
- package/dist/components/chips/config.js +83 -0
- package/dist/components/chips/constants.d.ts +20 -0
- package/dist/components/chips/constants.js +7 -0
- package/dist/components/chips/factories.d.ts +9 -0
- package/dist/components/chips/factories.js +6 -0
- package/dist/components/chips/features/chip-items.d.ts +39 -0
- package/dist/components/chips/features/chip-items.js +17 -0
- package/dist/components/chips/features/container.d.ts +75 -0
- package/dist/components/chips/features/container.js +41 -0
- package/dist/components/chips/features/controller.d.ts +61 -0
- package/dist/components/chips/features/controller.js +323 -0
- package/dist/components/chips/features/dom.d.ts +24 -0
- package/dist/components/chips/features/dom.js +55 -0
- package/dist/components/chips/features/index.d.ts +4 -0
- package/dist/components/chips/features/index.js +4 -0
- package/dist/components/chips/index.d.ts +3 -0
- package/dist/components/chips/index.js +2 -0
- package/dist/components/chips/schema.d.ts +35 -0
- package/dist/components/chips/schema.js +46 -0
- package/dist/components/chips/types.d.ts +441 -0
- package/dist/components/chips/types.js +1 -0
- package/dist/components/datepicker/api.d.ts +7 -0
- package/dist/components/datepicker/api.js +8 -0
- package/dist/components/datepicker/config.d.ts +542 -0
- package/dist/components/datepicker/config.js +11 -0
- package/dist/components/datepicker/constants.d.ts +105 -0
- package/dist/components/datepicker/constants.js +57 -0
- package/dist/components/datepicker/datepicker.d.ts +10 -0
- package/dist/components/datepicker/datepicker.js +691 -0
- package/dist/components/datepicker/index.d.ts +2 -0
- package/dist/components/datepicker/index.js +1 -0
- package/dist/components/datepicker/render.d.ts +3 -0
- package/dist/components/datepicker/render.js +160 -0
- package/dist/components/datepicker/types.d.ts +401 -0
- package/dist/components/datepicker/types.js +17 -0
- package/dist/components/datepicker/utils.d.ts +84 -0
- package/dist/components/datepicker/utils.js +182 -0
- package/dist/components/dialog/api.d.ts +66 -0
- package/dist/components/dialog/api.js +113 -0
- package/dist/components/dialog/config.d.ts +583 -0
- package/dist/components/dialog/config.js +90 -0
- package/dist/components/dialog/constants.d.ts +116 -0
- package/dist/components/dialog/constants.js +51 -0
- package/dist/components/dialog/dialog.d.ts +89 -0
- package/dist/components/dialog/dialog.js +25 -0
- package/dist/components/dialog/features.d.ts +42 -0
- package/dist/components/dialog/features.js +717 -0
- package/dist/components/dialog/index.d.ts +14 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/dialog/types.d.ts +627 -0
- package/dist/components/dialog/types.js +1 -0
- package/dist/components/divider/config.d.ts +143 -0
- package/dist/components/divider/config.js +9 -0
- package/dist/components/divider/constants.d.ts +45 -0
- package/dist/components/divider/constants.js +18 -0
- package/dist/components/divider/divider.d.ts +39 -0
- package/dist/components/divider/divider.js +11 -0
- package/dist/components/divider/features.d.ts +6 -0
- package/dist/components/divider/features.js +83 -0
- package/dist/components/divider/index.d.ts +33 -0
- package/dist/components/divider/index.js +2 -0
- package/dist/components/divider/types.d.ts +142 -0
- package/dist/components/divider/types.js +1 -0
- package/dist/components/drawer/api.d.ts +55 -0
- package/dist/components/drawer/api.js +76 -0
- package/dist/components/drawer/config.d.ts +620 -0
- package/dist/components/drawer/config.js +73 -0
- package/dist/components/drawer/constants.d.ts +99 -0
- package/dist/components/drawer/constants.js +46 -0
- package/dist/components/drawer/drawer.d.ts +59 -0
- package/dist/components/drawer/drawer.js +48 -0
- package/dist/components/drawer/features/headline.d.ts +27 -0
- package/dist/components/drawer/features/headline.js +36 -0
- package/dist/components/drawer/features/index.d.ts +3 -0
- package/dist/components/drawer/features/index.js +3 -0
- package/dist/components/drawer/features/items.d.ts +32 -0
- package/dist/components/drawer/features/items.js +215 -0
- package/dist/components/drawer/features/state.d.ts +22 -0
- package/dist/components/drawer/features/state.js +219 -0
- package/dist/components/drawer/index.d.ts +6 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/drawer/types.d.ts +270 -0
- package/dist/components/drawer/types.js +1 -0
- package/dist/components/extended-fab/api.d.ts +96 -0
- package/dist/components/extended-fab/api.js +94 -0
- package/dist/components/extended-fab/config.d.ts +600 -0
- package/dist/components/extended-fab/config.js +74 -0
- package/dist/components/extended-fab/constants.d.ts +92 -0
- package/dist/components/extended-fab/constants.js +46 -0
- package/dist/components/extended-fab/extended-fab.d.ts +61 -0
- package/dist/components/extended-fab/extended-fab.js +59 -0
- package/dist/components/extended-fab/index.d.ts +36 -0
- package/dist/components/extended-fab/index.js +1 -0
- package/dist/components/extended-fab/types.d.ts +734 -0
- package/dist/components/extended-fab/types.js +1 -0
- package/dist/components/fab/api.d.ts +74 -0
- package/dist/components/fab/api.js +67 -0
- package/dist/components/fab/config.d.ts +596 -0
- package/dist/components/fab/config.js +55 -0
- package/dist/components/fab/constants.d.ts +79 -0
- package/dist/components/fab/constants.js +39 -0
- package/dist/components/fab/fab.d.ts +45 -0
- package/dist/components/fab/fab.js +17 -0
- package/dist/components/fab/index.d.ts +35 -0
- package/dist/components/fab/index.js +1 -0
- package/dist/components/fab/types.d.ts +607 -0
- package/dist/components/fab/types.js +1 -0
- package/dist/components/fab-menu/config.d.ts +11 -0
- package/dist/components/fab-menu/config.js +15 -0
- package/dist/components/fab-menu/constants.d.ts +59 -0
- package/dist/components/fab-menu/constants.js +30 -0
- package/dist/components/fab-menu/fab-menu.d.ts +40 -0
- package/dist/components/fab-menu/fab-menu.js +329 -0
- package/dist/components/fab-menu/index.d.ts +6 -0
- package/dist/components/fab-menu/index.js +4 -0
- package/dist/components/fab-menu/stagger.d.ts +10 -0
- package/dist/components/fab-menu/stagger.js +24 -0
- package/dist/components/fab-menu/types.d.ts +130 -0
- package/dist/components/fab-menu/types.js +1 -0
- package/dist/components/icon-button/api.d.ts +84 -0
- package/dist/components/icon-button/api.js +197 -0
- package/dist/components/icon-button/config.d.ts +624 -0
- package/dist/components/icon-button/config.js +90 -0
- package/dist/components/icon-button/constants.d.ts +194 -0
- package/dist/components/icon-button/constants.js +65 -0
- package/dist/components/icon-button/features/toggle.d.ts +133 -0
- package/dist/components/icon-button/features/toggle.js +119 -0
- package/dist/components/icon-button/icon-button.d.ts +86 -0
- package/dist/components/icon-button/icon-button.js +24 -0
- package/dist/components/icon-button/index.d.ts +48 -0
- package/dist/components/icon-button/index.js +2 -0
- package/dist/components/icon-button/types.d.ts +404 -0
- package/dist/components/icon-button/types.js +1 -0
- package/dist/components/index.d.ts +89 -0
- package/dist/components/index.js +40 -0
- package/dist/components/list/api.d.ts +156 -0
- package/dist/components/list/api.js +58 -0
- package/dist/components/list/config.d.ts +625 -0
- package/dist/components/list/config.js +62 -0
- package/dist/components/list/constants.d.ts +76 -0
- package/dist/components/list/constants.js +35 -0
- package/dist/components/list/features/anatomy.d.ts +6 -0
- package/dist/components/list/features/anatomy.js +48 -0
- package/dist/components/list/features/index.d.ts +2 -0
- package/dist/components/list/features/index.js +2 -0
- package/dist/components/list/features/renderer.d.ts +8 -0
- package/dist/components/list/features/renderer.js +143 -0
- package/dist/components/list/features/selection.d.ts +3 -0
- package/dist/components/list/features/selection.js +123 -0
- package/dist/components/list/index.d.ts +4 -0
- package/dist/components/list/index.js +2 -0
- package/dist/components/list/list.d.ts +12 -0
- package/dist/components/list/list.js +18 -0
- package/dist/components/list/types.d.ts +382 -0
- package/dist/components/list/types.js +1 -0
- package/dist/components/loading-indicator/api.d.ts +14 -0
- package/dist/components/loading-indicator/api.js +122 -0
- package/dist/components/loading-indicator/config.d.ts +557 -0
- package/dist/components/loading-indicator/config.js +25 -0
- package/dist/components/loading-indicator/constants.d.ts +60 -0
- package/dist/components/loading-indicator/constants.js +32 -0
- package/dist/components/loading-indicator/features/motion.d.ts +22 -0
- package/dist/components/loading-indicator/features/motion.js +47 -0
- package/dist/components/loading-indicator/features/renderer.d.ts +29 -0
- package/dist/components/loading-indicator/features/renderer.js +134 -0
- package/dist/components/loading-indicator/index.d.ts +3 -0
- package/dist/components/loading-indicator/index.js +2 -0
- package/dist/components/loading-indicator/loading-indicator.d.ts +9 -0
- package/dist/components/loading-indicator/loading-indicator.js +17 -0
- package/dist/components/loading-indicator/types.d.ts +67 -0
- package/dist/components/loading-indicator/types.js +1 -0
- package/dist/components/menu/api.d.ts +63 -0
- package/dist/components/menu/api.js +79 -0
- package/dist/components/menu/config.d.ts +576 -0
- package/dist/components/menu/config.js +85 -0
- package/dist/components/menu/constants.d.ts +140 -0
- package/dist/components/menu/constants.js +61 -0
- package/dist/components/menu/features/controller.d.ts +15 -0
- package/dist/components/menu/features/controller.js +569 -0
- package/dist/components/menu/features/index.d.ts +5 -0
- package/dist/components/menu/features/index.js +5 -0
- package/dist/components/menu/features/keyboard.d.ts +23 -0
- package/dist/components/menu/features/keyboard.js +302 -0
- package/dist/components/menu/features/layer.d.ts +15 -0
- package/dist/components/menu/features/layer.js +16 -0
- package/dist/components/menu/features/loader.d.ts +35 -0
- package/dist/components/menu/features/loader.js +64 -0
- package/dist/components/menu/features/opener.d.ts +16 -0
- package/dist/components/menu/features/opener.js +304 -0
- package/dist/components/menu/features/position.d.ts +18 -0
- package/dist/components/menu/features/position.js +278 -0
- package/dist/components/menu/features/registry.d.ts +37 -0
- package/dist/components/menu/features/registry.js +13 -0
- package/dist/components/menu/features/submenu.d.ts +28 -0
- package/dist/components/menu/features/submenu.js +393 -0
- package/dist/components/menu/features/tasks.d.ts +9 -0
- package/dist/components/menu/features/tasks.js +47 -0
- package/dist/components/menu/index.d.ts +29 -0
- package/dist/components/menu/index.js +2 -0
- package/dist/components/menu/inner.d.ts +9 -0
- package/dist/components/menu/inner.js +2 -0
- package/dist/components/menu/menu.d.ts +29 -0
- package/dist/components/menu/menu.js +25 -0
- package/dist/components/menu/types.d.ts +604 -0
- package/dist/components/menu/types.js +14 -0
- package/dist/components/navigation-bar/config.d.ts +2 -0
- package/dist/components/navigation-bar/config.js +2 -0
- package/dist/components/navigation-bar/index.d.ts +2 -0
- package/dist/components/navigation-bar/index.js +1 -0
- package/dist/components/navigation-bar/navigation-bar.d.ts +9 -0
- package/dist/components/navigation-bar/navigation-bar.js +157 -0
- package/dist/components/navigation-bar/types.d.ts +72 -0
- package/dist/components/navigation-bar/types.js +1 -0
- package/dist/components/navigation-rail/config.d.ts +2 -0
- package/dist/components/navigation-rail/config.js +15 -0
- package/dist/components/navigation-rail/constants.d.ts +14 -0
- package/dist/components/navigation-rail/constants.js +12 -0
- package/dist/components/navigation-rail/index.d.ts +2 -0
- package/dist/components/navigation-rail/index.js +1 -0
- package/dist/components/navigation-rail/navigation-rail.d.ts +7 -0
- package/dist/components/navigation-rail/navigation-rail.js +251 -0
- package/dist/components/navigation-rail/types.d.ts +91 -0
- package/dist/components/navigation-rail/types.js +1 -0
- package/dist/components/progress/api.d.ts +81 -0
- package/dist/components/progress/api.js +212 -0
- package/dist/components/progress/config.d.ts +620 -0
- package/dist/components/progress/config.js +148 -0
- package/dist/components/progress/constants.d.ts +162 -0
- package/dist/components/progress/constants.js +110 -0
- package/dist/components/progress/features/canvas.d.ts +60 -0
- package/dist/components/progress/features/canvas.js +305 -0
- package/dist/components/progress/features/circular.d.ts +19 -0
- package/dist/components/progress/features/circular.js +77 -0
- package/dist/components/progress/features/colors.d.ts +17 -0
- package/dist/components/progress/features/colors.js +50 -0
- package/dist/components/progress/features/index.d.ts +8 -0
- package/dist/components/progress/features/index.js +4 -0
- package/dist/components/progress/features/linear.d.ts +25 -0
- package/dist/components/progress/features/linear.js +104 -0
- package/dist/components/progress/features/motion.d.ts +43 -0
- package/dist/components/progress/features/motion.js +105 -0
- package/dist/components/progress/features/resize-observer.d.ts +5 -0
- package/dist/components/progress/features/resize-observer.js +40 -0
- package/dist/components/progress/features/state.d.ts +44 -0
- package/dist/components/progress/features/state.js +40 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.js +1 -0
- package/dist/components/progress/progress.d.ts +24 -0
- package/dist/components/progress/progress.js +21 -0
- package/dist/components/progress/types.d.ts +318 -0
- package/dist/components/progress/types.js +1 -0
- package/dist/components/radios/api.d.ts +37 -0
- package/dist/components/radios/api.js +56 -0
- package/dist/components/radios/config.d.ts +568 -0
- package/dist/components/radios/config.js +28 -0
- package/dist/components/radios/constants.d.ts +40 -0
- package/dist/components/radios/constants.js +18 -0
- package/dist/components/radios/index.d.ts +3 -0
- package/dist/components/radios/index.js +2 -0
- package/dist/components/radios/radio.d.ts +26 -0
- package/dist/components/radios/radio.js +165 -0
- package/dist/components/radios/radios.d.ts +8 -0
- package/dist/components/radios/radios.js +21 -0
- package/dist/components/radios/types.d.ts +195 -0
- package/dist/components/radios/types.js +1 -0
- package/dist/components/search/api.d.ts +63 -0
- package/dist/components/search/api.js +118 -0
- package/dist/components/search/config.d.ts +657 -0
- package/dist/components/search/config.js +75 -0
- package/dist/components/search/constants.d.ts +152 -0
- package/dist/components/search/constants.js +93 -0
- package/dist/components/search/features/index.d.ts +4 -0
- package/dist/components/search/features/index.js +4 -0
- package/dist/components/search/features/input.d.ts +93 -0
- package/dist/components/search/features/input.js +244 -0
- package/dist/components/search/features/states.d.ts +111 -0
- package/dist/components/search/features/states.js +280 -0
- package/dist/components/search/features/structure.d.ts +16 -0
- package/dist/components/search/features/structure.js +220 -0
- package/dist/components/search/features/suggestions.d.ts +60 -0
- package/dist/components/search/features/suggestions.js +238 -0
- package/dist/components/search/index.d.ts +2 -0
- package/dist/components/search/index.js +1 -0
- package/dist/components/search/search.d.ts +35 -0
- package/dist/components/search/search.js +39 -0
- package/dist/components/search/types.d.ts +284 -0
- package/dist/components/search/types.js +1 -0
- package/dist/components/select/api.d.ts +8 -0
- package/dist/components/select/api.js +95 -0
- package/dist/components/select/config.d.ts +18 -0
- package/dist/components/select/config.js +55 -0
- package/dist/components/select/constants.d.ts +113 -0
- package/dist/components/select/constants.js +53 -0
- package/dist/components/select/features.d.ts +14 -0
- package/dist/components/select/features.js +476 -0
- package/dist/components/select/index.d.ts +26 -0
- package/dist/components/select/index.js +2 -0
- package/dist/components/select/select.d.ts +36 -0
- package/dist/components/select/select.js +26 -0
- package/dist/components/select/types.d.ts +377 -0
- package/dist/components/select/types.js +4 -0
- package/dist/components/side-sheet/api.d.ts +34 -0
- package/dist/components/side-sheet/api.js +50 -0
- package/dist/components/side-sheet/config.d.ts +547 -0
- package/dist/components/side-sheet/config.js +28 -0
- package/dist/components/side-sheet/constants.d.ts +60 -0
- package/dist/components/side-sheet/constants.js +32 -0
- package/dist/components/side-sheet/features/index.d.ts +2 -0
- package/dist/components/side-sheet/features/index.js +2 -0
- package/dist/components/side-sheet/features/state.d.ts +28 -0
- package/dist/components/side-sheet/features/state.js +137 -0
- package/dist/components/side-sheet/features/structure.d.ts +21 -0
- package/dist/components/side-sheet/features/structure.js +98 -0
- package/dist/components/side-sheet/index.d.ts +2 -0
- package/dist/components/side-sheet/index.js +1 -0
- package/dist/components/side-sheet/side-sheet.d.ts +24 -0
- package/dist/components/side-sheet/side-sheet.js +17 -0
- package/dist/components/side-sheet/types.d.ts +120 -0
- package/dist/components/side-sheet/types.js +1 -0
- package/dist/components/slider/api.d.ts +65 -0
- package/dist/components/slider/api.js +108 -0
- package/dist/components/slider/config.d.ts +605 -0
- package/dist/components/slider/config.js +110 -0
- package/dist/components/slider/constants.d.ts +155 -0
- package/dist/components/slider/constants.js +68 -0
- package/dist/components/slider/features/axis.d.ts +37 -0
- package/dist/components/slider/features/axis.js +17 -0
- package/dist/components/slider/features/controller.d.ts +528 -0
- package/dist/components/slider/features/controller.js +345 -0
- package/dist/components/slider/features/dom.d.ts +22 -0
- package/dist/components/slider/features/dom.js +124 -0
- package/dist/components/slider/features/handlers.d.ts +16 -0
- package/dist/components/slider/features/handlers.js +379 -0
- package/dist/components/slider/features/index.d.ts +5 -0
- package/dist/components/slider/features/index.js +5 -0
- package/dist/components/slider/features/range.d.ts +14 -0
- package/dist/components/slider/features/range.js +70 -0
- package/dist/components/slider/features/states.d.ts +76 -0
- package/dist/components/slider/features/states.js +114 -0
- package/dist/components/slider/features/tracks.d.ts +48 -0
- package/dist/components/slider/features/tracks.js +287 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/slider/slider.d.ts +19 -0
- package/dist/components/slider/slider.js +27 -0
- package/dist/components/slider/types.d.ts +338 -0
- package/dist/components/slider/types.js +2 -0
- package/dist/components/snackbar/api.d.ts +7 -0
- package/dist/components/snackbar/api.js +206 -0
- package/dist/components/snackbar/config.d.ts +596 -0
- package/dist/components/snackbar/config.js +40 -0
- package/dist/components/snackbar/constants.d.ts +132 -0
- package/dist/components/snackbar/constants.js +60 -0
- package/dist/components/snackbar/features.d.ts +26 -0
- package/dist/components/snackbar/features.js +125 -0
- package/dist/components/snackbar/index.d.ts +4 -0
- package/dist/components/snackbar/index.js +3 -0
- package/dist/components/snackbar/layer.d.ts +23 -0
- package/dist/components/snackbar/layer.js +85 -0
- package/dist/components/snackbar/position.d.ts +16 -0
- package/dist/components/snackbar/position.js +24 -0
- package/dist/components/snackbar/queue.d.ts +15 -0
- package/dist/components/snackbar/queue.js +92 -0
- package/dist/components/snackbar/snackbar.d.ts +17 -0
- package/dist/components/snackbar/snackbar.js +25 -0
- package/dist/components/snackbar/types.d.ts +260 -0
- package/dist/components/snackbar/types.js +1 -0
- package/dist/components/split-button/api.d.ts +14 -0
- package/dist/components/split-button/api.js +142 -0
- package/dist/components/split-button/config.d.ts +553 -0
- package/dist/components/split-button/config.js +19 -0
- package/dist/components/split-button/constants.d.ts +67 -0
- package/dist/components/split-button/constants.js +35 -0
- package/dist/components/split-button/features/buttons.d.ts +8 -0
- package/dist/components/split-button/features/buttons.js +39 -0
- package/dist/components/split-button/features/menu.d.ts +10 -0
- package/dist/components/split-button/features/menu.js +20 -0
- package/dist/components/split-button/index.d.ts +3 -0
- package/dist/components/split-button/index.js +2 -0
- package/dist/components/split-button/split-button.d.ts +24 -0
- package/dist/components/split-button/split-button.js +21 -0
- package/dist/components/split-button/types.d.ts +150 -0
- package/dist/components/split-button/types.js +1 -0
- package/dist/components/switch/api.d.ts +7 -0
- package/dist/components/switch/api.js +103 -0
- package/dist/components/switch/config.d.ts +558 -0
- package/dist/components/switch/config.js +30 -0
- package/dist/components/switch/constants.d.ts +88 -0
- package/dist/components/switch/constants.js +39 -0
- package/dist/components/switch/features.d.ts +63 -0
- package/dist/components/switch/features.js +130 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/index.js +2 -0
- package/dist/components/switch/switch.d.ts +8 -0
- package/dist/components/switch/switch.js +22 -0
- package/dist/components/switch/types.d.ts +191 -0
- package/dist/components/switch/types.js +1 -0
- package/dist/components/tabs/api.d.ts +54 -0
- package/dist/components/tabs/api.js +110 -0
- package/dist/components/tabs/config.d.ts +31 -0
- package/dist/components/tabs/config.js +31 -0
- package/dist/components/tabs/constants.d.ts +134 -0
- package/dist/components/tabs/constants.js +58 -0
- package/dist/components/tabs/features.d.ts +131 -0
- package/dist/components/tabs/features.js +172 -0
- package/dist/components/tabs/index.d.ts +11 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/indicator.d.ts +49 -0
- package/dist/components/tabs/indicator.js +159 -0
- package/dist/components/tabs/responsive.d.ts +48 -0
- package/dist/components/tabs/responsive.js +65 -0
- package/dist/components/tabs/scroll-indicators.d.ts +18 -0
- package/dist/components/tabs/scroll-indicators.js +78 -0
- package/dist/components/tabs/state.d.ts +48 -0
- package/dist/components/tabs/state.js +44 -0
- package/dist/components/tabs/tab.d.ts +15 -0
- package/dist/components/tabs/tab.js +199 -0
- package/dist/components/tabs/tabs.d.ts +27 -0
- package/dist/components/tabs/tabs.js +37 -0
- package/dist/components/tabs/types.d.ts +454 -0
- package/dist/components/tabs/types.js +1 -0
- package/dist/components/tabs/utils.d.ts +88 -0
- package/dist/components/tabs/utils.js +143 -0
- package/dist/components/text-field/api.d.ts +27 -0
- package/dist/components/text-field/api.js +227 -0
- package/dist/components/text-field/config.d.ts +560 -0
- package/dist/components/text-field/config.js +22 -0
- package/dist/components/text-field/constants.d.ts +151 -0
- package/dist/components/text-field/constants.js +69 -0
- package/dist/components/text-field/features/counter.d.ts +29 -0
- package/dist/components/text-field/features/counter.js +54 -0
- package/dist/components/text-field/features/density.d.ts +28 -0
- package/dist/components/text-field/features/density.js +38 -0
- package/dist/components/text-field/features/error.d.ts +55 -0
- package/dist/components/text-field/features/error.js +57 -0
- package/dist/components/text-field/features/field.d.ts +37 -0
- package/dist/components/text-field/features/field.js +39 -0
- package/dist/components/text-field/features/index.d.ts +20 -0
- package/dist/components/text-field/features/index.js +11 -0
- package/dist/components/text-field/features/leading-icon.d.ts +68 -0
- package/dist/components/text-field/features/leading-icon.js +56 -0
- package/dist/components/text-field/features/placement.d.ts +30 -0
- package/dist/components/text-field/features/placement.js +153 -0
- package/dist/components/text-field/features/prefix-text.d.ts +67 -0
- package/dist/components/text-field/features/prefix-text.js +51 -0
- package/dist/components/text-field/features/required.d.ts +33 -0
- package/dist/components/text-field/features/required.js +50 -0
- package/dist/components/text-field/features/suffix-text.d.ts +67 -0
- package/dist/components/text-field/features/suffix-text.js +51 -0
- package/dist/components/text-field/features/supporting-text.d.ts +59 -0
- package/dist/components/text-field/features/supporting-text.js +88 -0
- package/dist/components/text-field/features/trailing-icon.d.ts +90 -0
- package/dist/components/text-field/features/trailing-icon.js +92 -0
- package/dist/components/text-field/index.d.ts +3 -0
- package/dist/components/text-field/index.js +2 -0
- package/dist/components/text-field/text-field.d.ts +36 -0
- package/dist/components/text-field/text-field.js +20 -0
- package/dist/components/text-field/types.d.ts +294 -0
- package/dist/components/text-field/types.js +18 -0
- package/dist/components/timepicker/api.d.ts +26 -0
- package/dist/components/timepicker/api.js +284 -0
- package/dist/components/timepicker/config.d.ts +570 -0
- package/dist/components/timepicker/config.js +43 -0
- package/dist/components/timepicker/constants.d.ts +158 -0
- package/dist/components/timepicker/constants.js +84 -0
- package/dist/components/timepicker/dial.d.ts +35 -0
- package/dist/components/timepicker/dial.js +175 -0
- package/dist/components/timepicker/index.d.ts +5 -0
- package/dist/components/timepicker/index.js +3 -0
- package/dist/components/timepicker/render.d.ts +9 -0
- package/dist/components/timepicker/render.js +408 -0
- package/dist/components/timepicker/timepicker.d.ts +3 -0
- package/dist/components/timepicker/timepicker.js +52 -0
- package/dist/components/timepicker/types.d.ts +377 -0
- package/dist/components/timepicker/types.js +20 -0
- package/dist/components/timepicker/utils.d.ts +55 -0
- package/dist/components/timepicker/utils.js +85 -0
- package/dist/components/toolbar/config.d.ts +19 -0
- package/dist/components/toolbar/config.js +46 -0
- package/dist/components/toolbar/constants.d.ts +66 -0
- package/dist/components/toolbar/constants.js +32 -0
- package/dist/components/toolbar/index.d.ts +6 -0
- package/dist/components/toolbar/index.js +4 -0
- package/dist/components/toolbar/toolbar.d.ts +29 -0
- package/dist/components/toolbar/toolbar.js +205 -0
- package/dist/components/toolbar/types.d.ts +152 -0
- package/dist/components/toolbar/types.js +1 -0
- package/dist/components/tooltip/api.d.ts +18 -0
- package/dist/components/tooltip/api.js +367 -0
- package/dist/components/tooltip/config.d.ts +563 -0
- package/dist/components/tooltip/config.js +44 -0
- package/dist/components/tooltip/constants.d.ts +106 -0
- package/dist/components/tooltip/constants.js +48 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/index.js +2 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +31 -0
- package/dist/components/tooltip/types.d.ts +199 -0
- package/dist/components/tooltip/types.js +23 -0
- package/dist/components/top-app-bar/config.d.ts +16 -0
- package/dist/components/top-app-bar/config.js +10 -0
- package/dist/components/top-app-bar/constants.d.ts +74 -0
- package/dist/components/top-app-bar/constants.js +33 -0
- package/dist/components/top-app-bar/index.d.ts +9 -0
- package/dist/components/top-app-bar/index.js +4 -0
- package/dist/components/top-app-bar/top-app-bar.d.ts +13 -0
- package/dist/components/top-app-bar/top-app-bar.js +164 -0
- package/dist/components/top-app-bar/types.d.ts +119 -0
- package/dist/components/top-app-bar/types.js +1 -0
- package/dist/core/canvas/animation.d.ts +27 -0
- package/dist/core/canvas/animation.js +36 -0
- package/dist/core/canvas/drawing.d.ts +57 -0
- package/dist/core/canvas/drawing.js +62 -0
- package/dist/core/canvas/index.d.ts +8 -0
- package/dist/core/canvas/index.js +4 -0
- package/dist/core/canvas/resize.d.ts +14 -0
- package/dist/core/canvas/resize.js +36 -0
- package/dist/core/canvas/utils.d.ts +85 -0
- package/dist/core/canvas/utils.js +116 -0
- package/dist/core/compose/base.d.ts +31 -0
- package/dist/core/compose/base.js +7 -0
- package/dist/core/compose/cleanup.d.ts +14 -0
- package/dist/core/compose/cleanup.js +51 -0
- package/dist/core/compose/component.d.ts +86 -0
- package/dist/core/compose/component.js +144 -0
- package/dist/core/compose/features/badge.d.ts +42 -0
- package/dist/core/compose/features/badge.js +20 -0
- package/dist/core/compose/features/checkable.d.ts +56 -0
- package/dist/core/compose/features/checkable.js +39 -0
- package/dist/core/compose/features/constants.d.ts +8 -0
- package/dist/core/compose/features/constants.js +3 -0
- package/dist/core/compose/features/debounce.d.ts +83 -0
- package/dist/core/compose/features/debounce.js +44 -0
- package/dist/core/compose/features/disabled.d.ts +46 -0
- package/dist/core/compose/features/disabled.js +66 -0
- package/dist/core/compose/features/events.d.ts +50 -0
- package/dist/core/compose/features/events.js +23 -0
- package/dist/core/compose/features/icon.d.ts +67 -0
- package/dist/core/compose/features/icon.js +71 -0
- package/dist/core/compose/features/index.d.ts +34 -0
- package/dist/core/compose/features/index.js +19 -0
- package/dist/core/compose/features/input.d.ts +105 -0
- package/dist/core/compose/features/input.js +68 -0
- package/dist/core/compose/features/lifecycle.d.ts +61 -0
- package/dist/core/compose/features/lifecycle.js +81 -0
- package/dist/core/compose/features/position.d.ts +50 -0
- package/dist/core/compose/features/position.js +36 -0
- package/dist/core/compose/features/ripple.d.ts +47 -0
- package/dist/core/compose/features/ripple.js +84 -0
- package/dist/core/compose/features/size.d.ts +16 -0
- package/dist/core/compose/features/size.js +7 -0
- package/dist/core/compose/features/style.d.ts +15 -0
- package/dist/core/compose/features/style.js +9 -0
- package/dist/core/compose/features/text.d.ts +61 -0
- package/dist/core/compose/features/text.js +53 -0
- package/dist/core/compose/features/textinput.d.ts +114 -0
- package/dist/core/compose/features/textinput.js +164 -0
- package/dist/core/compose/features/textlabel.d.ts +60 -0
- package/dist/core/compose/features/textlabel.js +49 -0
- package/dist/core/compose/features/throttle.d.ts +74 -0
- package/dist/core/compose/features/throttle.js +44 -0
- package/dist/core/compose/features/track.d.ts +46 -0
- package/dist/core/compose/features/track.js +31 -0
- package/dist/core/compose/features/variant.d.ts +16 -0
- package/dist/core/compose/features/variant.js +7 -0
- package/dist/core/compose/features/withEvents.d.ts +45 -0
- package/dist/core/compose/features/withEvents.js +52 -0
- package/dist/core/compose/index.d.ts +13 -0
- package/dist/core/compose/index.js +5 -0
- package/dist/core/compose/pipe.d.ts +98 -0
- package/dist/core/compose/pipe.js +10 -0
- package/dist/core/compose/utils/type-guards.d.ts +27 -0
- package/dist/core/compose/utils/type-guards.js +10 -0
- package/dist/core/config/component.d.ts +612 -0
- package/dist/core/config/component.js +62 -0
- package/dist/core/config/global.d.ts +49 -0
- package/dist/core/config/global.js +15 -0
- package/dist/core/config.d.ts +97 -0
- package/dist/core/config.js +15 -0
- package/dist/core/dom/attributes.d.ts +50 -0
- package/dist/core/dom/attributes.js +48 -0
- package/dist/core/dom/classes.d.ts +54 -0
- package/dist/core/dom/classes.js +189 -0
- package/dist/core/dom/create.d.ts +157 -0
- package/dist/core/dom/create.js +224 -0
- package/dist/core/dom/events.d.ts +69 -0
- package/dist/core/dom/events.js +82 -0
- package/dist/core/dom/focus.d.ts +36 -0
- package/dist/core/dom/focus.js +47 -0
- package/dist/core/dom/form-value.d.ts +24 -0
- package/dist/core/dom/form-value.js +14 -0
- package/dist/core/dom/html.d.ts +34 -0
- package/dist/core/dom/html.js +13 -0
- package/dist/core/dom/index.d.ts +13 -0
- package/dist/core/dom/index.js +8 -0
- package/dist/core/dom/layer.d.ts +117 -0
- package/dist/core/dom/layer.js +158 -0
- package/dist/core/dom/roving.d.ts +30 -0
- package/dist/core/dom/roving.js +75 -0
- package/dist/core/dom/utils.d.ts +33 -0
- package/dist/core/dom/utils.js +49 -0
- package/dist/core/index.d.ts +27 -0
- package/dist/core/index.js +12 -0
- package/dist/core/navigation/destinations.d.ts +34 -0
- package/dist/core/navigation/destinations.js +107 -0
- package/dist/core/navigation/ripple.d.ts +2 -0
- package/dist/core/navigation/ripple.js +41 -0
- package/dist/core/shapes/cubic.d.ts +32 -0
- package/dist/core/shapes/cubic.js +76 -0
- package/dist/core/shapes/index.d.ts +6 -0
- package/dist/core/shapes/index.js +3 -0
- package/dist/core/shapes/material.d.ts +150 -0
- package/dist/core/shapes/material.js +316 -0
- package/dist/core/shapes/polygon.d.ts +37 -0
- package/dist/core/shapes/polygon.js +238 -0
- package/dist/core/state/emitter.d.ts +46 -0
- package/dist/core/state/emitter.js +31 -0
- package/dist/core/state/events.d.ts +37 -0
- package/dist/core/state/events.js +32 -0
- package/dist/core/state/index.d.ts +6 -0
- package/dist/core/state/index.js +3 -0
- package/dist/core/state/store.d.ts +90 -0
- package/dist/core/state/store.js +62 -0
- package/dist/core/theme/index.d.ts +7 -0
- package/dist/core/theme/index.js +2 -0
- package/dist/core/theme/shape.d.ts +9 -0
- package/dist/core/theme/shape.js +1 -0
- package/dist/core/theme/tokens.d.ts +45 -0
- package/dist/core/theme/tokens.js +36 -0
- package/dist/core/utils/attributes.d.ts +29 -0
- package/dist/core/utils/attributes.js +11 -0
- package/dist/core/utils/background.d.ts +35 -0
- package/dist/core/utils/background.js +32 -0
- package/dist/core/utils/color.d.ts +14 -0
- package/dist/core/utils/color.js +23 -0
- package/dist/core/utils/index.d.ts +20 -0
- package/dist/core/utils/index.js +9 -0
- package/dist/core/utils/mobile.d.ts +65 -0
- package/dist/core/utils/mobile.js +63 -0
- package/dist/core/utils/object.d.ts +13 -0
- package/dist/core/utils/object.js +21 -0
- package/dist/core/utils/performance.d.ts +82 -0
- package/dist/core/utils/performance.js +117 -0
- package/dist/core/utils/theme.d.ts +45 -0
- package/dist/core/utils/theme.js +66 -0
- package/dist/core/utils/url.d.ts +20 -0
- package/dist/core/utils/url.js +0 -0
- package/dist/core/utils/validate.d.ts +73 -0
- package/dist/core/utils/validate.js +114 -0
- package/dist/core/utils/warn.d.ts +16 -0
- package/dist/core/utils/warn.js +20 -0
- package/dist/elements/adapter.d.ts +110 -0
- package/dist/elements/adapter.js +70 -0
- package/dist/elements/badge.d.ts +70 -0
- package/dist/elements/badge.js +33 -0
- package/dist/elements/bottom-app-bar.d.ts +55 -0
- package/dist/elements/bottom-app-bar.js +43 -0
- package/dist/elements/bottom-sheet.d.ts +130 -0
- package/dist/elements/bottom-sheet.js +96 -0
- package/dist/elements/button-group.d.ts +164 -0
- package/dist/elements/button-group.js +174 -0
- package/dist/elements/button.d.ts +90 -0
- package/dist/elements/button.js +35 -0
- package/dist/elements/card.d.ts +77 -0
- package/dist/elements/card.js +113 -0
- package/dist/elements/carousel.d.ts +138 -0
- package/dist/elements/carousel.js +119 -0
- package/dist/elements/checkbox.d.ts +102 -0
- package/dist/elements/checkbox.js +49 -0
- package/dist/elements/chips.d.ts +150 -0
- package/dist/elements/chips.js +215 -0
- package/dist/elements/css/badge.css +1 -0
- package/dist/elements/css/badge.d.ts +1 -0
- package/dist/elements/css/badge.js +3 -0
- package/dist/elements/css/bottom-app-bar.css +1 -0
- package/dist/elements/css/bottom-app-bar.d.ts +1 -0
- package/dist/elements/css/bottom-app-bar.js +3 -0
- package/dist/elements/css/bottom-sheet.css +1 -0
- package/dist/elements/css/bottom-sheet.d.ts +1 -0
- package/dist/elements/css/bottom-sheet.js +3 -0
- package/dist/elements/css/button-group.css +1 -0
- package/dist/elements/css/button-group.d.ts +1 -0
- package/dist/elements/css/button-group.js +5 -0
- package/dist/elements/css/button.css +1 -0
- package/dist/elements/css/button.d.ts +1 -0
- package/dist/elements/css/button.js +4 -0
- package/dist/elements/css/card.css +1 -0
- package/dist/elements/css/card.d.ts +1 -0
- package/dist/elements/css/card.js +4 -0
- package/dist/elements/css/carousel.css +1 -0
- package/dist/elements/css/carousel.d.ts +1 -0
- package/dist/elements/css/carousel.js +3 -0
- package/dist/elements/css/checkbox.css +1 -0
- package/dist/elements/css/checkbox.d.ts +1 -0
- package/dist/elements/css/checkbox.js +3 -0
- package/dist/elements/css/chips.css +1 -0
- package/dist/elements/css/chips.d.ts +1 -0
- package/dist/elements/css/chips.js +3 -0
- package/dist/elements/css/datepicker.css +1 -0
- package/dist/elements/css/datepicker.d.ts +1 -0
- package/dist/elements/css/datepicker.js +3 -0
- package/dist/elements/css/dialog.css +1 -0
- package/dist/elements/css/dialog.d.ts +1 -0
- package/dist/elements/css/dialog.js +5 -0
- package/dist/elements/css/divider.css +1 -0
- package/dist/elements/css/divider.d.ts +1 -0
- package/dist/elements/css/divider.js +3 -0
- package/dist/elements/css/drawer.css +1 -0
- package/dist/elements/css/drawer.d.ts +1 -0
- package/dist/elements/css/drawer.js +3 -0
- package/dist/elements/css/extended-fab.css +1 -0
- package/dist/elements/css/extended-fab.d.ts +1 -0
- package/dist/elements/css/extended-fab.js +3 -0
- package/dist/elements/css/fab-menu.css +1 -0
- package/dist/elements/css/fab-menu.d.ts +1 -0
- package/dist/elements/css/fab-menu.js +5 -0
- package/dist/elements/css/fab.css +1 -0
- package/dist/elements/css/fab.d.ts +1 -0
- package/dist/elements/css/fab.js +3 -0
- package/dist/elements/css/hosts/badge.css +1 -0
- package/dist/elements/css/hosts/bottom-app-bar.css +1 -0
- package/dist/elements/css/hosts/bottom-sheet.css +1 -0
- package/dist/elements/css/hosts/button-group.css +1 -0
- package/dist/elements/css/hosts/button.css +1 -0
- package/dist/elements/css/hosts/card.css +1 -0
- package/dist/elements/css/hosts/carousel.css +1 -0
- package/dist/elements/css/hosts/checkbox.css +1 -0
- package/dist/elements/css/hosts/chips.css +1 -0
- package/dist/elements/css/hosts/datepicker.css +1 -0
- package/dist/elements/css/hosts/dialog.css +1 -0
- package/dist/elements/css/hosts/divider.css +1 -0
- package/dist/elements/css/hosts/drawer.css +1 -0
- package/dist/elements/css/hosts/extended-fab.css +1 -0
- package/dist/elements/css/hosts/fab-menu.css +1 -0
- package/dist/elements/css/hosts/fab.css +1 -0
- package/dist/elements/css/hosts/icon-button.css +1 -0
- package/dist/elements/css/hosts/list.css +1 -0
- package/dist/elements/css/hosts/loading-indicator.css +1 -0
- package/dist/elements/css/hosts/menu.css +1 -0
- package/dist/elements/css/hosts/navigation-bar.css +1 -0
- package/dist/elements/css/hosts/navigation-rail.css +1 -0
- package/dist/elements/css/hosts/progress.css +1 -0
- package/dist/elements/css/hosts/radios.css +1 -0
- package/dist/elements/css/hosts/search.css +1 -0
- package/dist/elements/css/hosts/select.css +1 -0
- package/dist/elements/css/hosts/side-sheet.css +1 -0
- package/dist/elements/css/hosts/slider.css +1 -0
- package/dist/elements/css/hosts/snackbar.css +1 -0
- package/dist/elements/css/hosts/split-button.css +1 -0
- package/dist/elements/css/hosts/switch.css +1 -0
- package/dist/elements/css/hosts/tabs.css +1 -0
- package/dist/elements/css/hosts/text-field.css +1 -0
- package/dist/elements/css/hosts/timepicker.css +1 -0
- package/dist/elements/css/hosts/toolbar.css +1 -0
- package/dist/elements/css/hosts/tooltip.css +1 -0
- package/dist/elements/css/hosts/top-app-bar.css +1 -0
- package/dist/elements/css/icon-button.css +1 -0
- package/dist/elements/css/icon-button.d.ts +1 -0
- package/dist/elements/css/icon-button.js +3 -0
- package/dist/elements/css/index.d.ts +1 -0
- package/dist/elements/css/index.js +37 -0
- package/dist/elements/css/list.css +1 -0
- package/dist/elements/css/list.d.ts +1 -0
- package/dist/elements/css/list.js +3 -0
- package/dist/elements/css/loading-indicator.css +1 -0
- package/dist/elements/css/loading-indicator.d.ts +1 -0
- package/dist/elements/css/loading-indicator.js +3 -0
- package/dist/elements/css/menu.css +1 -0
- package/dist/elements/css/menu.d.ts +1 -0
- package/dist/elements/css/menu.js +3 -0
- package/dist/elements/css/navigation-bar.css +1 -0
- package/dist/elements/css/navigation-bar.d.ts +1 -0
- package/dist/elements/css/navigation-bar.js +3 -0
- package/dist/elements/css/navigation-rail.css +1 -0
- package/dist/elements/css/navigation-rail.d.ts +1 -0
- package/dist/elements/css/navigation-rail.js +3 -0
- package/dist/elements/css/progress.css +1 -0
- package/dist/elements/css/progress.d.ts +1 -0
- package/dist/elements/css/progress.js +3 -0
- package/dist/elements/css/radios.css +1 -0
- package/dist/elements/css/radios.d.ts +1 -0
- package/dist/elements/css/radios.js +3 -0
- package/dist/elements/css/ripple.css +1 -0
- package/dist/elements/css/ripple.d.ts +1 -0
- package/dist/elements/css/ripple.js +3 -0
- package/dist/elements/css/search.css +1 -0
- package/dist/elements/css/search.d.ts +1 -0
- package/dist/elements/css/search.js +3 -0
- package/dist/elements/css/select.css +1 -0
- package/dist/elements/css/select.d.ts +1 -0
- package/dist/elements/css/select.js +5 -0
- package/dist/elements/css/side-sheet.css +1 -0
- package/dist/elements/css/side-sheet.d.ts +1 -0
- package/dist/elements/css/side-sheet.js +3 -0
- package/dist/elements/css/slider.css +1 -0
- package/dist/elements/css/slider.d.ts +1 -0
- package/dist/elements/css/slider.js +3 -0
- package/dist/elements/css/snackbar.css +1 -0
- package/dist/elements/css/snackbar.d.ts +1 -0
- package/dist/elements/css/snackbar.js +5 -0
- package/dist/elements/css/split-button.css +1 -0
- package/dist/elements/css/split-button.d.ts +1 -0
- package/dist/elements/css/split-button.js +5 -0
- package/dist/elements/css/switch.css +1 -0
- package/dist/elements/css/switch.d.ts +1 -0
- package/dist/elements/css/switch.js +3 -0
- package/dist/elements/css/tabs.css +1 -0
- package/dist/elements/css/tabs.d.ts +1 -0
- package/dist/elements/css/tabs.js +5 -0
- package/dist/elements/css/text-field.css +1 -0
- package/dist/elements/css/text-field.d.ts +1 -0
- package/dist/elements/css/text-field.js +3 -0
- package/dist/elements/css/timepicker.css +1 -0
- package/dist/elements/css/timepicker.d.ts +1 -0
- package/dist/elements/css/timepicker.js +3 -0
- package/dist/elements/css/toolbar.css +1 -0
- package/dist/elements/css/toolbar.d.ts +1 -0
- package/dist/elements/css/toolbar.js +5 -0
- package/dist/elements/css/tooltip.css +1 -0
- package/dist/elements/css/tooltip.d.ts +1 -0
- package/dist/elements/css/tooltip.js +3 -0
- package/dist/elements/css/top-app-bar.css +1 -0
- package/dist/elements/css/top-app-bar.d.ts +1 -0
- package/dist/elements/css/top-app-bar.js +3 -0
- package/dist/elements/datepicker.d.ts +163 -0
- package/dist/elements/datepicker.js +120 -0
- package/dist/elements/define.d.ts +246 -0
- package/dist/elements/define.js +528 -0
- package/dist/elements/dialog.d.ts +127 -0
- package/dist/elements/dialog.js +156 -0
- package/dist/elements/divider.d.ts +62 -0
- package/dist/elements/divider.js +23 -0
- package/dist/elements/drawer.d.ts +148 -0
- package/dist/elements/drawer.js +136 -0
- package/dist/elements/extended-fab.d.ts +99 -0
- package/dist/elements/extended-fab.js +36 -0
- package/dist/elements/fab-menu.d.ts +117 -0
- package/dist/elements/fab-menu.js +72 -0
- package/dist/elements/fab.d.ts +74 -0
- package/dist/elements/fab.js +24 -0
- package/dist/elements/form-button.d.ts +29 -0
- package/dist/elements/form-button.js +19 -0
- package/dist/elements/icon-button.d.ts +118 -0
- package/dist/elements/icon-button.js +48 -0
- package/dist/elements/index.d.ts +461 -0
- package/dist/elements/index.js +170 -0
- package/dist/elements/lifecycle.d.ts +4 -0
- package/dist/elements/lifecycle.js +14 -0
- package/dist/elements/list.d.ts +147 -0
- package/dist/elements/list.js +191 -0
- package/dist/elements/loading-indicator.d.ts +52 -0
- package/dist/elements/loading-indicator.js +26 -0
- package/dist/elements/menu.d.ts +178 -0
- package/dist/elements/menu.js +186 -0
- package/dist/elements/navigation-bar.d.ts +123 -0
- package/dist/elements/navigation-bar.js +73 -0
- package/dist/elements/navigation-rail.d.ts +176 -0
- package/dist/elements/navigation-rail.js +130 -0
- package/dist/elements/preupgrade/badge.css +2 -0
- package/dist/elements/preupgrade/bottom-app-bar.css +2 -0
- package/dist/elements/preupgrade/bottom-sheet.css +2 -0
- package/dist/elements/preupgrade/button-group.css +2 -0
- package/dist/elements/preupgrade/button.css +2 -0
- package/dist/elements/preupgrade/card.css +2 -0
- package/dist/elements/preupgrade/carousel.css +2 -0
- package/dist/elements/preupgrade/checkbox.css +2 -0
- package/dist/elements/preupgrade/chips.css +2 -0
- package/dist/elements/preupgrade/datepicker.css +2 -0
- package/dist/elements/preupgrade/dialog.css +2 -0
- package/dist/elements/preupgrade/divider.css +2 -0
- package/dist/elements/preupgrade/drawer.css +2 -0
- package/dist/elements/preupgrade/extended-fab.css +2 -0
- package/dist/elements/preupgrade/fab-menu.css +2 -0
- package/dist/elements/preupgrade/fab.css +2 -0
- package/dist/elements/preupgrade/icon-button.css +2 -0
- package/dist/elements/preupgrade/list.css +2 -0
- package/dist/elements/preupgrade/loading-indicator.css +2 -0
- package/dist/elements/preupgrade/menu.css +2 -0
- package/dist/elements/preupgrade/navigation-bar.css +2 -0
- package/dist/elements/preupgrade/navigation-rail.css +2 -0
- package/dist/elements/preupgrade/progress.css +2 -0
- package/dist/elements/preupgrade/radios.css +2 -0
- package/dist/elements/preupgrade/search.css +2 -0
- package/dist/elements/preupgrade/select.css +2 -0
- package/dist/elements/preupgrade/side-sheet.css +2 -0
- package/dist/elements/preupgrade/slider.css +2 -0
- package/dist/elements/preupgrade/snackbar.css +2 -0
- package/dist/elements/preupgrade/split-button.css +2 -0
- package/dist/elements/preupgrade/switch.css +2 -0
- package/dist/elements/preupgrade/tabs.css +2 -0
- package/dist/elements/preupgrade/text-field.css +2 -0
- package/dist/elements/preupgrade/timepicker.css +2 -0
- package/dist/elements/preupgrade/toolbar.css +2 -0
- package/dist/elements/preupgrade/tooltip.css +2 -0
- package/dist/elements/preupgrade/top-app-bar.css +2 -0
- package/dist/elements/preupgrade.css +2 -0
- package/dist/elements/preupgrade.css.d.ts +1 -0
- package/dist/elements/preupgrade.d.ts +2 -0
- package/dist/elements/preupgrade.js +4 -0
- package/dist/elements/progress.d.ts +98 -0
- package/dist/elements/progress.js +40 -0
- package/dist/elements/radios.d.ts +108 -0
- package/dist/elements/radios.js +125 -0
- package/dist/elements/search.d.ts +235 -0
- package/dist/elements/search.js +215 -0
- package/dist/elements/select.d.ts +144 -0
- package/dist/elements/select.js +150 -0
- package/dist/elements/sheet.d.ts +44 -0
- package/dist/elements/sheet.js +60 -0
- package/dist/elements/side-sheet.d.ts +100 -0
- package/dist/elements/side-sheet.js +64 -0
- package/dist/elements/slider.d.ts +172 -0
- package/dist/elements/slider.js +136 -0
- package/dist/elements/snackbar.d.ts +107 -0
- package/dist/elements/snackbar.js +54 -0
- package/dist/elements/split-button.d.ts +92 -0
- package/dist/elements/split-button.js +83 -0
- package/dist/elements/styles.d.ts +60 -0
- package/dist/elements/styles.js +47 -0
- package/dist/elements/switch.d.ts +100 -0
- package/dist/elements/switch.js +48 -0
- package/dist/elements/tabs.d.ts +87 -0
- package/dist/elements/tabs.js +108 -0
- package/dist/elements/text-field.d.ts +172 -0
- package/dist/elements/text-field.js +102 -0
- package/dist/elements/timepicker.d.ts +174 -0
- package/dist/elements/timepicker.js +165 -0
- package/dist/elements/toolbar.d.ts +103 -0
- package/dist/elements/toolbar.js +78 -0
- package/dist/elements/tooltip.d.ts +97 -0
- package/dist/elements/tooltip.js +132 -0
- package/dist/elements/top-app-bar.d.ts +72 -0
- package/dist/elements/top-app-bar.js +95 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +2 -0
- package/dist/package.json +459 -0
- package/dist/react/badge.d.ts +4 -0
- package/dist/react/badge.js +7 -0
- package/dist/react/bottom-app-bar.d.ts +4 -0
- package/dist/react/bottom-app-bar.js +7 -0
- package/dist/react/bottom-sheet.d.ts +4 -0
- package/dist/react/bottom-sheet.js +7 -0
- package/dist/react/button-group-item.d.ts +3 -0
- package/dist/react/button-group-item.js +6 -0
- package/dist/react/button-group.d.ts +7 -0
- package/dist/react/button-group.js +10 -0
- package/dist/react/button.d.ts +5 -0
- package/dist/react/button.js +8 -0
- package/dist/react/card.d.ts +4 -0
- package/dist/react/card.js +7 -0
- package/dist/react/carousel-item.d.ts +3 -0
- package/dist/react/carousel-item.js +6 -0
- package/dist/react/carousel.d.ts +4 -0
- package/dist/react/carousel.js +7 -0
- package/dist/react/checkbox.d.ts +4 -0
- package/dist/react/checkbox.js +7 -0
- package/dist/react/chip.d.ts +3 -0
- package/dist/react/chip.js +6 -0
- package/dist/react/chips.d.ts +4 -0
- package/dist/react/chips.js +7 -0
- package/dist/react/create.d.ts +77 -0
- package/dist/react/create.js +123 -0
- package/dist/react/datepicker.d.ts +4 -0
- package/dist/react/datepicker.js +7 -0
- package/dist/react/dialog.d.ts +7 -0
- package/dist/react/dialog.js +10 -0
- package/dist/react/divider.d.ts +4 -0
- package/dist/react/divider.js +7 -0
- package/dist/react/drawer-item.d.ts +3 -0
- package/dist/react/drawer-item.js +6 -0
- package/dist/react/drawer.d.ts +4 -0
- package/dist/react/drawer.js +7 -0
- package/dist/react/extended-fab.d.ts +4 -0
- package/dist/react/extended-fab.js +7 -0
- package/dist/react/fab-menu-item.d.ts +3 -0
- package/dist/react/fab-menu-item.js +6 -0
- package/dist/react/fab-menu.d.ts +6 -0
- package/dist/react/fab-menu.js +9 -0
- package/dist/react/fab.d.ts +4 -0
- package/dist/react/fab.js +7 -0
- package/dist/react/icon-button.d.ts +4 -0
- package/dist/react/icon-button.js +7 -0
- package/dist/react/index.d.ts +58 -0
- package/dist/react/index.js +52 -0
- package/dist/react/jsx.d.ts +77 -0
- package/dist/react/jsx.js +2 -0
- package/dist/react/list-item.d.ts +3 -0
- package/dist/react/list-item.js +6 -0
- package/dist/react/list.d.ts +4 -0
- package/dist/react/list.js +7 -0
- package/dist/react/loading-indicator.d.ts +4 -0
- package/dist/react/loading-indicator.js +7 -0
- package/dist/react/menu-item.d.ts +3 -0
- package/dist/react/menu-item.js +6 -0
- package/dist/react/menu.d.ts +4 -0
- package/dist/react/menu.js +7 -0
- package/dist/react/navigation-bar-item.d.ts +3 -0
- package/dist/react/navigation-bar-item.js +6 -0
- package/dist/react/navigation-bar.d.ts +4 -0
- package/dist/react/navigation-bar.js +7 -0
- package/dist/react/navigation-rail-item.d.ts +3 -0
- package/dist/react/navigation-rail-item.js +6 -0
- package/dist/react/navigation-rail.d.ts +4 -0
- package/dist/react/navigation-rail.js +7 -0
- package/dist/react/progress.d.ts +4 -0
- package/dist/react/progress.js +7 -0
- package/dist/react/radio.d.ts +3 -0
- package/dist/react/radio.js +6 -0
- package/dist/react/radios.d.ts +4 -0
- package/dist/react/radios.js +7 -0
- package/dist/react/search-suggestion.d.ts +3 -0
- package/dist/react/search-suggestion.js +6 -0
- package/dist/react/search.d.ts +4 -0
- package/dist/react/search.js +7 -0
- package/dist/react/select-option.d.ts +3 -0
- package/dist/react/select-option.js +6 -0
- package/dist/react/select.d.ts +6 -0
- package/dist/react/select.js +9 -0
- package/dist/react/shadow.d.ts +2 -0
- package/dist/react/shadow.js +13 -0
- package/dist/react/side-sheet.d.ts +4 -0
- package/dist/react/side-sheet.js +7 -0
- package/dist/react/slider.d.ts +4 -0
- package/dist/react/slider.js +7 -0
- package/dist/react/snackbar.d.ts +7 -0
- package/dist/react/snackbar.js +10 -0
- package/dist/react/split-button.d.ts +7 -0
- package/dist/react/split-button.js +10 -0
- package/dist/react/switch.d.ts +4 -0
- package/dist/react/switch.js +7 -0
- package/dist/react/tab.d.ts +3 -0
- package/dist/react/tab.js +6 -0
- package/dist/react/tabs.d.ts +7 -0
- package/dist/react/tabs.js +10 -0
- package/dist/react/text-field.d.ts +4 -0
- package/dist/react/text-field.js +7 -0
- package/dist/react/timepicker.d.ts +4 -0
- package/dist/react/timepicker.js +7 -0
- package/dist/react/toolbar.d.ts +5 -0
- package/dist/react/toolbar.js +8 -0
- package/dist/react/tooltip.d.ts +4 -0
- package/dist/react/tooltip.js +7 -0
- package/dist/react/top-app-bar.d.ts +4 -0
- package/dist/react/top-app-bar.js +7 -0
- package/dist/solid/badge.d.ts +4 -0
- package/dist/solid/badge.js +6 -0
- package/dist/solid/bottom-app-bar.d.ts +4 -0
- package/dist/solid/bottom-app-bar.js +6 -0
- package/dist/solid/bottom-sheet.d.ts +4 -0
- package/dist/solid/bottom-sheet.js +6 -0
- package/dist/solid/button-group-item.d.ts +3 -0
- package/dist/solid/button-group-item.js +5 -0
- package/dist/solid/button-group.d.ts +7 -0
- package/dist/solid/button-group.js +9 -0
- package/dist/solid/button.d.ts +5 -0
- package/dist/solid/button.js +7 -0
- package/dist/solid/card.d.ts +4 -0
- package/dist/solid/card.js +6 -0
- package/dist/solid/carousel-item.d.ts +3 -0
- package/dist/solid/carousel-item.js +5 -0
- package/dist/solid/carousel.d.ts +4 -0
- package/dist/solid/carousel.js +6 -0
- package/dist/solid/checkbox.d.ts +4 -0
- package/dist/solid/checkbox.js +6 -0
- package/dist/solid/chip.d.ts +3 -0
- package/dist/solid/chip.js +5 -0
- package/dist/solid/chips.d.ts +4 -0
- package/dist/solid/chips.js +6 -0
- package/dist/solid/create.d.ts +81 -0
- package/dist/solid/create.js +132 -0
- package/dist/solid/datepicker.d.ts +4 -0
- package/dist/solid/datepicker.js +6 -0
- package/dist/solid/dialog.d.ts +7 -0
- package/dist/solid/dialog.js +9 -0
- package/dist/solid/divider.d.ts +4 -0
- package/dist/solid/divider.js +6 -0
- package/dist/solid/drawer-item.d.ts +3 -0
- package/dist/solid/drawer-item.js +5 -0
- package/dist/solid/drawer.d.ts +4 -0
- package/dist/solid/drawer.js +6 -0
- package/dist/solid/extended-fab.d.ts +4 -0
- package/dist/solid/extended-fab.js +6 -0
- package/dist/solid/fab-menu-item.d.ts +3 -0
- package/dist/solid/fab-menu-item.js +5 -0
- package/dist/solid/fab-menu.d.ts +6 -0
- package/dist/solid/fab-menu.js +8 -0
- package/dist/solid/fab.d.ts +4 -0
- package/dist/solid/fab.js +6 -0
- package/dist/solid/icon-button.d.ts +4 -0
- package/dist/solid/icon-button.js +6 -0
- package/dist/solid/index.d.ts +58 -0
- package/dist/solid/index.js +51 -0
- package/dist/solid/jsx.d.ts +99 -0
- package/dist/solid/jsx.js +1 -0
- package/dist/solid/list-item.d.ts +3 -0
- package/dist/solid/list-item.js +5 -0
- package/dist/solid/list.d.ts +4 -0
- package/dist/solid/list.js +6 -0
- package/dist/solid/loading-indicator.d.ts +4 -0
- package/dist/solid/loading-indicator.js +6 -0
- package/dist/solid/menu-item.d.ts +3 -0
- package/dist/solid/menu-item.js +5 -0
- package/dist/solid/menu.d.ts +4 -0
- package/dist/solid/menu.js +6 -0
- package/dist/solid/navigation-bar-item.d.ts +3 -0
- package/dist/solid/navigation-bar-item.js +5 -0
- package/dist/solid/navigation-bar.d.ts +4 -0
- package/dist/solid/navigation-bar.js +6 -0
- package/dist/solid/navigation-rail-item.d.ts +3 -0
- package/dist/solid/navigation-rail-item.js +5 -0
- package/dist/solid/navigation-rail.d.ts +4 -0
- package/dist/solid/navigation-rail.js +6 -0
- package/dist/solid/progress.d.ts +4 -0
- package/dist/solid/progress.js +6 -0
- package/dist/solid/radio.d.ts +3 -0
- package/dist/solid/radio.js +5 -0
- package/dist/solid/radios.d.ts +4 -0
- package/dist/solid/radios.js +6 -0
- package/dist/solid/search-suggestion.d.ts +3 -0
- package/dist/solid/search-suggestion.js +5 -0
- package/dist/solid/search.d.ts +4 -0
- package/dist/solid/search.js +6 -0
- package/dist/solid/select-option.d.ts +3 -0
- package/dist/solid/select-option.js +5 -0
- package/dist/solid/select.d.ts +6 -0
- package/dist/solid/select.js +8 -0
- package/dist/solid/shadow.d.ts +3 -0
- package/dist/solid/shadow.js +10 -0
- package/dist/solid/side-sheet.d.ts +4 -0
- package/dist/solid/side-sheet.js +6 -0
- package/dist/solid/slider.d.ts +4 -0
- package/dist/solid/slider.js +6 -0
- package/dist/solid/snackbar.d.ts +7 -0
- package/dist/solid/snackbar.js +9 -0
- package/dist/solid/split-button.d.ts +7 -0
- package/dist/solid/split-button.js +9 -0
- package/dist/solid/switch.d.ts +4 -0
- package/dist/solid/switch.js +6 -0
- package/dist/solid/tab.d.ts +3 -0
- package/dist/solid/tab.js +5 -0
- package/dist/solid/tabs.d.ts +7 -0
- package/dist/solid/tabs.js +9 -0
- package/dist/solid/text-field.d.ts +4 -0
- package/dist/solid/text-field.js +6 -0
- package/dist/solid/timepicker.d.ts +4 -0
- package/dist/solid/timepicker.js +6 -0
- package/dist/solid/toolbar.d.ts +5 -0
- package/dist/solid/toolbar.js +7 -0
- package/dist/solid/tooltip.d.ts +4 -0
- package/dist/solid/tooltip.js +6 -0
- package/dist/solid/top-app-bar.d.ts +4 -0
- package/dist/solid/top-app-bar.js +6 -0
- package/dist/ssr/browser.js +1 -0
- package/dist/ssr/index.d.ts +59 -0
- package/dist/ssr/index.js +320 -0
- package/dist/ssr/react.d.ts +1 -0
- package/dist/ssr/react.js +225 -0
- package/dist/ssr/solid.d.ts +5 -0
- package/dist/ssr/solid.js +26 -0
- package/dist/ssr/svelte.d.ts +5 -0
- package/dist/ssr/svelte.js +88 -0
- package/dist/ssr/vue.d.ts +5 -0
- package/dist/ssr/vue.js +92 -0
- package/dist/styles/badge.css +2 -0
- package/dist/styles/badge.d.ts +1 -0
- package/dist/styles/badge.js +2 -0
- package/dist/styles/base.css +2 -0
- package/dist/styles/base.d.ts +1 -0
- package/dist/styles/base.js +2 -0
- package/dist/styles/bottom-app-bar.css +2 -0
- package/dist/styles/bottom-app-bar.d.ts +1 -0
- package/dist/styles/bottom-app-bar.js +2 -0
- package/dist/styles/bottom-sheet.css +2 -0
- package/dist/styles/bottom-sheet.d.ts +1 -0
- package/dist/styles/bottom-sheet.js +2 -0
- package/dist/styles/button-group.css +2 -0
- package/dist/styles/button-group.d.ts +1 -0
- package/dist/styles/button-group.js +3 -0
- package/dist/styles/button.css +2 -0
- package/dist/styles/button.d.ts +1 -0
- package/dist/styles/button.js +2 -0
- package/dist/styles/card.css +2 -0
- package/dist/styles/card.d.ts +1 -0
- package/dist/styles/card.js +2 -0
- package/dist/styles/carousel.css +2 -0
- package/dist/styles/carousel.d.ts +1 -0
- package/dist/styles/carousel.js +2 -0
- package/dist/styles/checkbox.css +2 -0
- package/dist/styles/checkbox.d.ts +1 -0
- package/dist/styles/checkbox.js +2 -0
- package/dist/styles/chips.css +2 -0
- package/dist/styles/chips.d.ts +1 -0
- package/dist/styles/chips.js +2 -0
- package/dist/styles/contrast.css +2 -0
- package/dist/styles/contrast.d.ts +1 -0
- package/dist/styles/contrast.js +2 -0
- package/dist/styles/datepicker.css +2 -0
- package/dist/styles/datepicker.d.ts +1 -0
- package/dist/styles/datepicker.js +2 -0
- package/dist/styles/dialog.css +2 -0
- package/dist/styles/dialog.d.ts +1 -0
- package/dist/styles/dialog.js +3 -0
- package/dist/styles/divider.css +2 -0
- package/dist/styles/divider.d.ts +1 -0
- package/dist/styles/divider.js +2 -0
- package/dist/styles/drawer.css +2 -0
- package/dist/styles/drawer.d.ts +1 -0
- package/dist/styles/drawer.js +2 -0
- package/dist/styles/extended-fab.css +2 -0
- package/dist/styles/extended-fab.d.ts +1 -0
- package/dist/styles/extended-fab.js +2 -0
- package/dist/styles/fab-menu.css +2 -0
- package/dist/styles/fab-menu.d.ts +1 -0
- package/dist/styles/fab-menu.js +3 -0
- package/dist/styles/fab.css +2 -0
- package/dist/styles/fab.d.ts +1 -0
- package/dist/styles/fab.js +2 -0
- package/dist/styles/icon-button.css +2 -0
- package/dist/styles/icon-button.d.ts +1 -0
- package/dist/styles/icon-button.js +2 -0
- package/dist/styles/list.css +2 -0
- package/dist/styles/list.d.ts +1 -0
- package/dist/styles/list.js +2 -0
- package/dist/styles/loading-indicator.css +2 -0
- package/dist/styles/loading-indicator.d.ts +1 -0
- package/dist/styles/loading-indicator.js +2 -0
- package/dist/styles/menu.css +2 -0
- package/dist/styles/menu.d.ts +1 -0
- package/dist/styles/menu.js +2 -0
- package/dist/styles/navigation-bar.css +2 -0
- package/dist/styles/navigation-bar.d.ts +1 -0
- package/dist/styles/navigation-bar.js +2 -0
- package/dist/styles/navigation-rail.css +2 -0
- package/dist/styles/navigation-rail.d.ts +1 -0
- package/dist/styles/navigation-rail.js +2 -0
- package/dist/styles/progress.css +2 -0
- package/dist/styles/progress.d.ts +1 -0
- package/dist/styles/progress.js +2 -0
- package/dist/styles/radios.css +2 -0
- package/dist/styles/radios.d.ts +1 -0
- package/dist/styles/radios.js +2 -0
- package/dist/styles/search.css +2 -0
- package/dist/styles/search.d.ts +1 -0
- package/dist/styles/search.js +2 -0
- package/dist/styles/select.css +2 -0
- package/dist/styles/select.d.ts +1 -0
- package/dist/styles/select.js +3 -0
- package/dist/styles/side-sheet.css +2 -0
- package/dist/styles/side-sheet.d.ts +1 -0
- package/dist/styles/side-sheet.js +2 -0
- package/dist/styles/slider.css +2 -0
- package/dist/styles/slider.d.ts +1 -0
- package/dist/styles/slider.js +2 -0
- package/dist/styles/snackbar.css +2 -0
- package/dist/styles/snackbar.d.ts +1 -0
- package/dist/styles/snackbar.js +3 -0
- package/dist/styles/split-button.css +2 -0
- package/dist/styles/split-button.d.ts +1 -0
- package/dist/styles/split-button.js +3 -0
- package/dist/styles/switch.css +2 -0
- package/dist/styles/switch.d.ts +1 -0
- package/dist/styles/switch.js +2 -0
- package/dist/styles/tabs.css +2 -0
- package/dist/styles/tabs.d.ts +1 -0
- package/dist/styles/tabs.js +3 -0
- package/dist/styles/text-field.css +2 -0
- package/dist/styles/text-field.d.ts +1 -0
- package/dist/styles/text-field.js +2 -0
- package/dist/styles/timepicker.css +2 -0
- package/dist/styles/timepicker.d.ts +1 -0
- package/dist/styles/timepicker.js +2 -0
- package/dist/styles/toolbar.css +2 -0
- package/dist/styles/toolbar.d.ts +1 -0
- package/dist/styles/toolbar.js +3 -0
- package/dist/styles/tooltip.css +2 -0
- package/dist/styles/tooltip.d.ts +1 -0
- package/dist/styles/tooltip.js +2 -0
- package/dist/styles/top-app-bar.css +2 -0
- package/dist/styles/top-app-bar.d.ts +1 -0
- package/dist/styles/top-app-bar.js +2 -0
- package/dist/styles/typography.css +2 -0
- package/dist/styles/typography.d.ts +1 -0
- package/dist/styles/typography.js +2 -0
- package/dist/styles/utilities.css +2 -0
- package/dist/styles/utilities.d.ts +1 -0
- package/dist/styles/utilities.js +2 -0
- package/dist/styles.css +2 -0
- package/dist/styles.d.ts +1 -0
- package/dist/svelte/Badge.svelte +26 -0
- package/dist/svelte/Badge.svelte.d.ts +5 -0
- package/dist/svelte/BottomAppBar.svelte +25 -0
- package/dist/svelte/BottomAppBar.svelte.d.ts +5 -0
- package/dist/svelte/BottomSheet.svelte +25 -0
- package/dist/svelte/BottomSheet.svelte.d.ts +5 -0
- package/dist/svelte/Button.svelte +26 -0
- package/dist/svelte/Button.svelte.d.ts +5 -0
- package/dist/svelte/ButtonGroup.svelte +29 -0
- package/dist/svelte/ButtonGroup.svelte.d.ts +5 -0
- package/dist/svelte/ButtonGroupItem.svelte +11 -0
- package/dist/svelte/ButtonGroupItem.svelte.d.ts +5 -0
- package/dist/svelte/Card.svelte +25 -0
- package/dist/svelte/Card.svelte.d.ts +5 -0
- package/dist/svelte/Carousel.svelte +26 -0
- package/dist/svelte/Carousel.svelte.d.ts +5 -0
- package/dist/svelte/CarouselItem.svelte +11 -0
- package/dist/svelte/CarouselItem.svelte.d.ts +5 -0
- package/dist/svelte/Checkbox.svelte +27 -0
- package/dist/svelte/Checkbox.svelte.d.ts +5 -0
- package/dist/svelte/Chip.svelte +11 -0
- package/dist/svelte/Chip.svelte.d.ts +5 -0
- package/dist/svelte/Chips.svelte +26 -0
- package/dist/svelte/Chips.svelte.d.ts +5 -0
- package/dist/svelte/Datepicker.svelte +26 -0
- package/dist/svelte/Datepicker.svelte.d.ts +5 -0
- package/dist/svelte/Dialog.svelte +28 -0
- package/dist/svelte/Dialog.svelte.d.ts +5 -0
- package/dist/svelte/Divider.svelte +25 -0
- package/dist/svelte/Divider.svelte.d.ts +5 -0
- package/dist/svelte/Drawer.svelte +26 -0
- package/dist/svelte/Drawer.svelte.d.ts +5 -0
- package/dist/svelte/DrawerItem.svelte +11 -0
- package/dist/svelte/DrawerItem.svelte.d.ts +5 -0
- package/dist/svelte/ExtendedFab.svelte +25 -0
- package/dist/svelte/ExtendedFab.svelte.d.ts +5 -0
- package/dist/svelte/Fab.svelte +25 -0
- package/dist/svelte/Fab.svelte.d.ts +5 -0
- package/dist/svelte/FabMenu.svelte +27 -0
- package/dist/svelte/FabMenu.svelte.d.ts +5 -0
- package/dist/svelte/FabMenuItem.svelte +11 -0
- package/dist/svelte/FabMenuItem.svelte.d.ts +5 -0
- package/dist/svelte/IconButton.svelte +26 -0
- package/dist/svelte/IconButton.svelte.d.ts +5 -0
- package/dist/svelte/List.svelte +27 -0
- package/dist/svelte/List.svelte.d.ts +5 -0
- package/dist/svelte/ListItem.svelte +11 -0
- package/dist/svelte/ListItem.svelte.d.ts +5 -0
- package/dist/svelte/LoadingIndicator.svelte +25 -0
- package/dist/svelte/LoadingIndicator.svelte.d.ts +5 -0
- package/dist/svelte/Menu.svelte +26 -0
- package/dist/svelte/Menu.svelte.d.ts +5 -0
- package/dist/svelte/MenuItem.svelte +11 -0
- package/dist/svelte/MenuItem.svelte.d.ts +5 -0
- package/dist/svelte/NavigationBar.svelte +26 -0
- package/dist/svelte/NavigationBar.svelte.d.ts +5 -0
- package/dist/svelte/NavigationBarItem.svelte +11 -0
- package/dist/svelte/NavigationBarItem.svelte.d.ts +5 -0
- package/dist/svelte/NavigationRail.svelte +26 -0
- package/dist/svelte/NavigationRail.svelte.d.ts +5 -0
- package/dist/svelte/NavigationRailItem.svelte +11 -0
- package/dist/svelte/NavigationRailItem.svelte.d.ts +5 -0
- package/dist/svelte/Progress.svelte +27 -0
- package/dist/svelte/Progress.svelte.d.ts +5 -0
- package/dist/svelte/Radio.svelte +11 -0
- package/dist/svelte/Radio.svelte.d.ts +5 -0
- package/dist/svelte/Radios.svelte +26 -0
- package/dist/svelte/Radios.svelte.d.ts +5 -0
- package/dist/svelte/Search.svelte +26 -0
- package/dist/svelte/Search.svelte.d.ts +5 -0
- package/dist/svelte/SearchSuggestion.svelte +11 -0
- package/dist/svelte/SearchSuggestion.svelte.d.ts +5 -0
- package/dist/svelte/Select.svelte +28 -0
- package/dist/svelte/Select.svelte.d.ts +5 -0
- package/dist/svelte/SelectOption.svelte +11 -0
- package/dist/svelte/SelectOption.svelte.d.ts +5 -0
- package/dist/svelte/SideSheet.svelte +25 -0
- package/dist/svelte/SideSheet.svelte.d.ts +5 -0
- package/dist/svelte/Slider.svelte +27 -0
- package/dist/svelte/Slider.svelte.d.ts +5 -0
- package/dist/svelte/Snackbar.svelte +29 -0
- package/dist/svelte/Snackbar.svelte.d.ts +5 -0
- package/dist/svelte/SplitButton.svelte +28 -0
- package/dist/svelte/SplitButton.svelte.d.ts +5 -0
- package/dist/svelte/Switch.svelte +26 -0
- package/dist/svelte/Switch.svelte.d.ts +5 -0
- package/dist/svelte/Tab.svelte +11 -0
- package/dist/svelte/Tab.svelte.d.ts +5 -0
- package/dist/svelte/Tabs.svelte +29 -0
- package/dist/svelte/Tabs.svelte.d.ts +5 -0
- package/dist/svelte/TextField.svelte +26 -0
- package/dist/svelte/TextField.svelte.d.ts +5 -0
- package/dist/svelte/Timepicker.svelte +26 -0
- package/dist/svelte/Timepicker.svelte.d.ts +5 -0
- package/dist/svelte/Toolbar.svelte +26 -0
- package/dist/svelte/Toolbar.svelte.d.ts +5 -0
- package/dist/svelte/Tooltip.svelte +26 -0
- package/dist/svelte/Tooltip.svelte.d.ts +5 -0
- package/dist/svelte/TopAppBar.svelte +25 -0
- package/dist/svelte/TopAppBar.svelte.d.ts +5 -0
- package/dist/svelte/index.d.ts +52 -0
- package/dist/svelte/index.js +52 -0
- package/dist/svelte/runtime.d.ts +109 -0
- package/dist/svelte/runtime.js +96 -0
- package/dist/themes/autumn-contrast.css +2 -0
- package/dist/themes/autumn.css +2 -0
- package/dist/themes/baseline-contrast.css +2 -0
- package/dist/themes/baseline.css +2 -0
- package/dist/themes/brownbeige-contrast.css +2 -0
- package/dist/themes/brownbeige.css +2 -0
- package/dist/themes/content-contrast.css +2 -0
- package/dist/themes/content.css +2 -0
- package/dist/themes/desert-contrast.css +2 -0
- package/dist/themes/desert.css +2 -0
- package/dist/themes/expressive-contrast.css +2 -0
- package/dist/themes/expressive.css +2 -0
- package/dist/themes/fidelity-contrast.css +2 -0
- package/dist/themes/fidelity.css +2 -0
- package/dist/themes/forest-contrast.css +2 -0
- package/dist/themes/forest.css +2 -0
- package/dist/themes/fruit-salad-contrast.css +2 -0
- package/dist/themes/fruit-salad.css +2 -0
- package/dist/themes/highcontrast-contrast.css +2 -0
- package/dist/themes/highcontrast.css +2 -0
- package/dist/themes/monochrome-contrast.css +2 -0
- package/dist/themes/monochrome.css +2 -0
- package/dist/themes/neutral-contrast.css +2 -0
- package/dist/themes/neutral.css +2 -0
- package/dist/themes/ocean-contrast.css +2 -0
- package/dist/themes/ocean.css +2 -0
- package/dist/themes/rainbow-contrast.css +2 -0
- package/dist/themes/rainbow.css +2 -0
- package/dist/themes/sageivory-contrast.css +2 -0
- package/dist/themes/sageivory.css +2 -0
- package/dist/themes/spring-contrast.css +2 -0
- package/dist/themes/spring.css +2 -0
- package/dist/themes/summer-contrast.css +2 -0
- package/dist/themes/summer.css +2 -0
- package/dist/themes/sunset-contrast.css +2 -0
- package/dist/themes/sunset.css +2 -0
- package/dist/themes/tealcaramel-contrast.css +2 -0
- package/dist/themes/tealcaramel.css +2 -0
- package/dist/themes/vibrant-contrast.css +2 -0
- package/dist/themes/vibrant.css +2 -0
- package/dist/vue/badge.d.ts +4 -0
- package/dist/vue/badge.js +6 -0
- package/dist/vue/bottom-app-bar.d.ts +4 -0
- package/dist/vue/bottom-app-bar.js +6 -0
- package/dist/vue/bottom-sheet.d.ts +4 -0
- package/dist/vue/bottom-sheet.js +6 -0
- package/dist/vue/button-group-item.d.ts +3 -0
- package/dist/vue/button-group-item.js +5 -0
- package/dist/vue/button-group.d.ts +7 -0
- package/dist/vue/button-group.js +9 -0
- package/dist/vue/button.d.ts +5 -0
- package/dist/vue/button.js +7 -0
- package/dist/vue/card.d.ts +4 -0
- package/dist/vue/card.js +6 -0
- package/dist/vue/carousel-item.d.ts +3 -0
- package/dist/vue/carousel-item.js +5 -0
- package/dist/vue/carousel.d.ts +4 -0
- package/dist/vue/carousel.js +6 -0
- package/dist/vue/checkbox.d.ts +4 -0
- package/dist/vue/checkbox.js +6 -0
- package/dist/vue/chip.d.ts +3 -0
- package/dist/vue/chip.js +5 -0
- package/dist/vue/chips.d.ts +4 -0
- package/dist/vue/chips.js +6 -0
- package/dist/vue/create.d.ts +98 -0
- package/dist/vue/create.js +134 -0
- package/dist/vue/datepicker.d.ts +4 -0
- package/dist/vue/datepicker.js +6 -0
- package/dist/vue/dialog.d.ts +7 -0
- package/dist/vue/dialog.js +9 -0
- package/dist/vue/divider.d.ts +4 -0
- package/dist/vue/divider.js +6 -0
- package/dist/vue/drawer-item.d.ts +3 -0
- package/dist/vue/drawer-item.js +5 -0
- package/dist/vue/drawer.d.ts +4 -0
- package/dist/vue/drawer.js +6 -0
- package/dist/vue/extended-fab.d.ts +4 -0
- package/dist/vue/extended-fab.js +6 -0
- package/dist/vue/fab-menu-item.d.ts +3 -0
- package/dist/vue/fab-menu-item.js +5 -0
- package/dist/vue/fab-menu.d.ts +6 -0
- package/dist/vue/fab-menu.js +8 -0
- package/dist/vue/fab.d.ts +4 -0
- package/dist/vue/fab.js +6 -0
- package/dist/vue/icon-button.d.ts +4 -0
- package/dist/vue/icon-button.js +6 -0
- package/dist/vue/index.d.ts +58 -0
- package/dist/vue/index.js +51 -0
- package/dist/vue/list-item.d.ts +3 -0
- package/dist/vue/list-item.js +5 -0
- package/dist/vue/list.d.ts +4 -0
- package/dist/vue/list.js +6 -0
- package/dist/vue/loading-indicator.d.ts +4 -0
- package/dist/vue/loading-indicator.js +6 -0
- package/dist/vue/menu-item.d.ts +3 -0
- package/dist/vue/menu-item.js +5 -0
- package/dist/vue/menu.d.ts +4 -0
- package/dist/vue/menu.js +6 -0
- package/dist/vue/navigation-bar-item.d.ts +3 -0
- package/dist/vue/navigation-bar-item.js +5 -0
- package/dist/vue/navigation-bar.d.ts +4 -0
- package/dist/vue/navigation-bar.js +6 -0
- package/dist/vue/navigation-rail-item.d.ts +3 -0
- package/dist/vue/navigation-rail-item.js +5 -0
- package/dist/vue/navigation-rail.d.ts +4 -0
- package/dist/vue/navigation-rail.js +6 -0
- package/dist/vue/progress.d.ts +4 -0
- package/dist/vue/progress.js +6 -0
- package/dist/vue/radio.d.ts +3 -0
- package/dist/vue/radio.js +5 -0
- package/dist/vue/radios.d.ts +4 -0
- package/dist/vue/radios.js +6 -0
- package/dist/vue/search-suggestion.d.ts +3 -0
- package/dist/vue/search-suggestion.js +5 -0
- package/dist/vue/search.d.ts +4 -0
- package/dist/vue/search.js +6 -0
- package/dist/vue/select-option.d.ts +3 -0
- package/dist/vue/select-option.js +5 -0
- package/dist/vue/select.d.ts +6 -0
- package/dist/vue/select.js +8 -0
- package/dist/vue/shadow.d.ts +7 -0
- package/dist/vue/shadow.js +9 -0
- package/dist/vue/side-sheet.d.ts +4 -0
- package/dist/vue/side-sheet.js +6 -0
- package/dist/vue/slider.d.ts +4 -0
- package/dist/vue/slider.js +6 -0
- package/dist/vue/snackbar.d.ts +7 -0
- package/dist/vue/snackbar.js +9 -0
- package/dist/vue/split-button.d.ts +7 -0
- package/dist/vue/split-button.js +9 -0
- package/dist/vue/switch.d.ts +4 -0
- package/dist/vue/switch.js +6 -0
- package/dist/vue/tab.d.ts +3 -0
- package/dist/vue/tab.js +5 -0
- package/dist/vue/tabs.d.ts +7 -0
- package/dist/vue/tabs.js +9 -0
- package/dist/vue/text-field.d.ts +4 -0
- package/dist/vue/text-field.js +6 -0
- package/dist/vue/timepicker.d.ts +4 -0
- package/dist/vue/timepicker.js +6 -0
- package/dist/vue/toolbar.d.ts +5 -0
- package/dist/vue/toolbar.js +7 -0
- package/dist/vue/tooltip.d.ts +4 -0
- package/dist/vue/tooltip.js +6 -0
- package/dist/vue/top-app-bar.d.ts +4 -0
- package/dist/vue/top-app-bar.js +6 -0
- package/package.json +478 -13
- package/src/styles/abstract/_base.scss +2 -0
- package/src/styles/abstract/_config.scss +28 -0
- package/src/styles/abstract/_functions.scss +136 -0
- package/src/styles/abstract/_mixins.scss +460 -0
- package/src/styles/abstract/_theme.scss +176 -0
- package/src/styles/abstract/_variables.scss +475 -0
- package/src/styles/abstract/chips/_assist.scss +7 -0
- package/src/styles/abstract/chips/_filter.scss +7 -0
- package/src/styles/abstract/chips/_input.scss +7 -0
- package/src/styles/abstract/chips/_suggestion.scss +7 -0
- package/src/styles/base/_document.scss +54 -0
- package/src/styles/base/_foundation.scss +4 -0
- package/src/styles/base/_reset.scss +93 -0
- package/src/styles/base/_tokens.scss +33 -0
- package/src/styles/base/_typescale-tokens.scss +24 -0
- package/src/styles/base/_typescale.scss +9 -0
- package/src/styles/base/_typography.scss +99 -0
- package/src/styles/components/_badge.scss +183 -0
- package/src/styles/components/_bottom-app-bar.scss +99 -0
- package/src/styles/components/_bottom-sheet.scss +243 -0
- package/src/styles/components/_button-group.scss +205 -0
- package/src/styles/components/_button.scss +496 -0
- package/src/styles/components/_card.scss +458 -0
- package/src/styles/components/_carousel.scss +166 -0
- package/src/styles/components/_checkbox.scss +247 -0
- package/src/styles/components/_chips.scss +309 -0
- package/src/styles/components/_datepicker.scss +165 -0
- package/src/styles/components/_dialog.scss +568 -0
- package/src/styles/components/_divider.scss +57 -0
- package/src/styles/components/_drawer.scss +697 -0
- package/src/styles/components/_extended-fab.scss +287 -0
- package/src/styles/components/_fab-menu.scss +242 -0
- package/src/styles/components/_fab.scss +206 -0
- package/src/styles/components/_icon-button.scss +568 -0
- package/src/styles/components/_list.scss +99 -0
- package/src/styles/components/_loading-indicator.scss +41 -0
- package/src/styles/components/_menu.scss +609 -0
- package/src/styles/components/_navigation-bar.scss +242 -0
- package/src/styles/components/_navigation-rail.scss +308 -0
- package/src/styles/components/_progress.scss +94 -0
- package/src/styles/components/_radios.scss +196 -0
- package/src/styles/components/_search.scss +578 -0
- package/src/styles/components/_select.scss +210 -0
- package/src/styles/components/_side-sheet.scss +248 -0
- package/src/styles/components/_slider.scss +388 -0
- package/src/styles/components/_snackbar.scss +209 -0
- package/src/styles/components/_split-button.scss +229 -0
- package/src/styles/components/_switch.scss +310 -0
- package/src/styles/components/_tabs.scss +556 -0
- package/src/styles/components/_text-field.scss +1191 -0
- package/src/styles/components/_timepicker.scss +533 -0
- package/src/styles/components/_toolbar.scss +203 -0
- package/src/styles/components/_tooltip.scss +263 -0
- package/src/styles/components/_top-app-bar.scss +225 -0
- package/src/styles/elements/_badge.scss +12 -0
- package/src/styles/elements/_bottom-app-bar.scss +27 -0
- package/src/styles/elements/_bottom-sheet.scss +6 -0
- package/src/styles/elements/_button-group.scss +25 -0
- package/src/styles/elements/_button.scss +78 -0
- package/src/styles/elements/_card.scss +57 -0
- package/src/styles/elements/_carousel.scss +12 -0
- package/src/styles/elements/_checkbox.scss +38 -0
- package/src/styles/elements/_chips.scss +33 -0
- package/src/styles/elements/_config.scss +48 -0
- package/src/styles/elements/_datepicker.scss +31 -0
- package/src/styles/elements/_dialog.scss +6 -0
- package/src/styles/elements/_divider.scss +19 -0
- package/src/styles/elements/_drawer.scss +23 -0
- package/src/styles/elements/_extended-fab.scss +57 -0
- package/src/styles/elements/_fab-menu.scss +43 -0
- package/src/styles/elements/_fab.scss +33 -0
- package/src/styles/elements/_field.scss +126 -0
- package/src/styles/elements/_icon-button.scss +55 -0
- package/src/styles/elements/_index.scss +42 -0
- package/src/styles/elements/_list.scss +34 -0
- package/src/styles/elements/_loading-indicator.scss +13 -0
- package/src/styles/elements/_menu.scss +6 -0
- package/src/styles/elements/_navigation-bar.scss +17 -0
- package/src/styles/elements/_navigation-rail.scss +24 -0
- package/src/styles/elements/_progress.scss +24 -0
- package/src/styles/elements/_radios.scss +23 -0
- package/src/styles/elements/_search.scss +36 -0
- package/src/styles/elements/_select.scss +15 -0
- package/src/styles/elements/_side-sheet.scss +6 -0
- package/src/styles/elements/_slider.scss +10 -0
- package/src/styles/elements/_snackbar.scss +6 -0
- package/src/styles/elements/_split-button.scss +53 -0
- package/src/styles/elements/_switch.scss +51 -0
- package/src/styles/elements/_tabs.scss +22 -0
- package/src/styles/elements/_text-field.scss +62 -0
- package/src/styles/elements/_timepicker.scss +6 -0
- package/src/styles/elements/_toolbar.scss +47 -0
- package/src/styles/elements/_tooltip.scss +6 -0
- package/src/styles/elements/_top-app-bar.scss +57 -0
- package/src/styles/main.scss +83 -0
- package/src/styles/themes/_autumn.scss +291 -0
- package/src/styles/themes/_base-theme.scss +158 -0
- package/src/styles/themes/_baseline.scss +341 -0
- package/src/styles/themes/_brownbeige.scss +258 -0
- package/src/styles/themes/_content.scss +256 -0
- package/src/styles/themes/_desert.scss +258 -0
- package/src/styles/themes/_expressive.scss +258 -0
- package/src/styles/themes/_fidelity.scss +256 -0
- package/src/styles/themes/_forest.scss +281 -0
- package/src/styles/themes/_fruit-salad.scss +258 -0
- package/src/styles/themes/_highcontrast.scss +182 -0
- package/src/styles/themes/_index.scss +18 -0
- package/src/styles/themes/_monochrome.scss +242 -0
- package/src/styles/themes/_neutral.scss +258 -0
- package/src/styles/themes/_ocean.scss +281 -0
- package/src/styles/themes/_rainbow.scss +258 -0
- package/src/styles/themes/_sageivory.scss +258 -0
- package/src/styles/themes/_spring.scss +277 -0
- package/src/styles/themes/_summer.scss +258 -0
- package/src/styles/themes/_sunset.scss +281 -0
- package/src/styles/themes/_tealcaramel.scss +258 -0
- package/src/styles/themes/_vibrant.scss +258 -0
- package/src/styles/utilities/_colors.scss +154 -0
- package/src/styles/utilities/_flexbox.scss +194 -0
- package/src/styles/utilities/_layout.scss +665 -0
- package/src/styles/utilities/_ripple.scss +89 -0
- package/src/styles/utilities/_spacing.scss +139 -0
- package/src/styles/utilities/_typography.scss +178 -0
- package/src/styles/utilities/_visibility.scss +142 -0
- package/.claude/CLAUDE.md +0 -5
- package/.github/workflows/publish.yml +0 -34
- package/form.js +0 -27
- package/index.js +0 -69
- package/list.js +0 -35
- package/scripts/doccoAssistant.js +0 -25
- package/src/appbar.js +0 -19
- package/src/badge.js +0 -34
- package/src/button.js +0 -171
- package/src/calendar.js +0 -441
- package/src/card.js +0 -22
- package/src/checkbox.js +0 -117
- package/src/class/app.js +0 -10
- package/src/class/component.js +0 -43
- package/src/class/control.js +0 -47
- package/src/class/form.js +0 -30
- package/src/class/view.js +0 -29
- package/src/colorpicker.js +0 -354
- package/src/datehour.js +0 -33
- package/src/dialog.js +0 -171
- package/src/drawer.js +0 -141
- package/src/element/attribute.js +0 -22
- package/src/element/build.js +0 -53
- package/src/element/create.js +0 -9
- package/src/element/event.js +0 -63
- package/src/element/insert.js +0 -27
- package/src/element/observer.js +0 -22
- package/src/element/offset.js +0 -36
- package/src/element/style.js +0 -70
- package/src/element.js +0 -38
- package/src/file.js +0 -89
- package/src/form/build.js +0 -120
- package/src/form/cancel.js +0 -16
- package/src/form/controller.js +0 -82
- package/src/form/create.js +0 -19
- package/src/form/data.js +0 -210
- package/src/form/delete.js +0 -39
- package/src/form/enable.js +0 -0
- package/src/form/fetch.js +0 -23
- package/src/form/render.js +0 -59
- package/src/form/set.js +0 -46
- package/src/form/submit.js +0 -47
- package/src/form/update.js +0 -44
- package/src/form/verify.js +0 -20
- package/src/form.js +0 -258
- package/src/icon.js +0 -61
- package/src/image.js +0 -58
- package/src/item.js +0 -58
- package/src/link.js +0 -50
- package/src/list/add.js +0 -55
- package/src/list/build.js +0 -144
- package/src/list/click.js +0 -40
- package/src/list/collection.js +0 -188
- package/src/list/create.js +0 -45
- package/src/list/data.js +0 -3
- package/src/list/display.js +0 -78
- package/src/list/empty.js +0 -9
- package/src/list/filter.js +0 -114
- package/src/list/image.js +0 -19
- package/src/list/init.js +0 -6
- package/src/list/load.js +0 -8
- package/src/list/remove.js +0 -22
- package/src/list/render.js +0 -142
- package/src/list/request.js +0 -197
- package/src/list/search.js +0 -155
- package/src/list/select.js +0 -226
- package/src/list/status.js +0 -26
- package/src/list/update.js +0 -78
- package/src/list/virtual.js +0 -244
- package/src/list/virtual.new.js +0 -204
- package/src/list.js +0 -67
- package/src/list.new/add.js +0 -55
- package/src/loader.js +0 -125
- package/src/loading.js +0 -69
- package/src/menu.js +0 -176
- package/src/mixin/build.js +0 -68
- package/src/mixin/control.js +0 -155
- package/src/mixin/controller.js +0 -148
- package/src/mixin/create.js +0 -11
- package/src/mixin/display.js +0 -75
- package/src/mixin/emitter.js +0 -23
- package/src/mixin/events.js +0 -49
- package/src/mixin/focus.js +0 -24
- package/src/mixin/icon.js +0 -25
- package/src/mixin/init.js +0 -24
- package/src/mixin/insert.js +0 -49
- package/src/mixin/label.js +0 -19
- package/src/mixin/position.js +0 -91
- package/src/mixin/settings.js +0 -35
- package/src/module/attach.js +0 -68
- package/src/module/attributes.js +0 -24
- package/src/module/build.js +0 -82
- package/src/module/classify.js +0 -56
- package/src/module/clone.js +0 -15
- package/src/module/controller.js +0 -62
- package/src/module/cookie.js +0 -24
- package/src/module/css.js +0 -35
- package/src/module/dataset.js +0 -19
- package/src/module/device.js +0 -389
- package/src/module/dom.js +0 -49
- package/src/module/dot.js +0 -38
- package/src/module/emitter.js +0 -54
- package/src/module/event.js +0 -58
- package/src/module/events.js +0 -86
- package/src/module/extract.js +0 -66
- package/src/module/freeze.js +0 -15
- package/src/module/jsontohtml.js +0 -20
- package/src/module/last.js +0 -8
- package/src/module/layout.js +0 -93
- package/src/module/mediator.js +0 -56
- package/src/module/merge.js +0 -22
- package/src/module/mutation.js +0 -16
- package/src/module/numabbr.js +0 -28
- package/src/module/object.js +0 -22
- package/src/module/observer.js +0 -50
- package/src/module/passive.js +0 -22
- package/src/module/remove.js +0 -39
- package/src/module/request.js +0 -105
- package/src/module/ripple.js +0 -73
- package/src/module/scrollbar.js +0 -44
- package/src/module/serialize.js +0 -25
- package/src/module/smoothscroll.js +0 -16
- package/src/module/touch.js +0 -8
- package/src/module/utils.js +0 -44
- package/src/module/viewport.js +0 -14
- package/src/navigation.js +0 -76
- package/src/progress.js +0 -62
- package/src/search.js +0 -70
- package/src/select.js +0 -109
- package/src/selecter.js +0 -247
- package/src/selector.js +0 -223
- package/src/skin/material/_variables.scss +0 -30
- package/src/skin/material/base/body.scss +0 -64
- package/src/skin/material/base/elevation.scss +0 -75
- package/src/skin/material/base/grid.scss +0 -71
- package/src/skin/material/base/typo.scss +0 -132
- package/src/skin/material/button/action.scss +0 -101
- package/src/skin/material/button/button.scss +0 -230
- package/src/skin/material/button/file.scss +0 -27
- package/src/skin/material/button/floating.scss +0 -163
- package/src/skin/material/button/raised.scss +0 -148
- package/src/skin/material/button/stroked.scss +0 -100
- package/src/skin/material/component/component.scss +0 -10
- package/src/skin/material/component/divider.scss +0 -21
- package/src/skin/material/component/image.scss +0 -8
- package/src/skin/material/component/label.scss +0 -3
- package/src/skin/material/component/navigation.scss +0 -15
- package/src/skin/material/component/progress.scss +0 -172
- package/src/skin/material/component/subheader.scss +0 -4
- package/src/skin/material/component/text.scss +0 -101
- package/src/skin/material/container/appbar.scss +0 -205
- package/src/skin/material/container/banner.scss +0 -43
- package/src/skin/material/container/card.scss +0 -22
- package/src/skin/material/container/container.scss +0 -2
- package/src/skin/material/container/dialog.scss +0 -164
- package/src/skin/material/container/drawer.scss +0 -176
- package/src/skin/material/container/menu.scss +0 -66
- package/src/skin/material/container/snackbar.scss +0 -21
- package/src/skin/material/container/tabs.scss +0 -95
- package/src/skin/material/container/toolbar.scss +0 -181
- package/src/skin/material/control/button.scss +0 -174
- package/src/skin/material/control/checkbox.scss +0 -129
- package/src/skin/material/control/colorpicker.scss +0 -218
- package/src/skin/material/control/dialog.scss +0 -1
- package/src/skin/material/control/menu.scss +0 -22
- package/src/skin/material/control/progress.scss +0 -172
- package/src/skin/material/control/search.scss +0 -52
- package/src/skin/material/control/selecter.scss +0 -150
- package/src/skin/material/control/selector.scss +0 -44
- package/src/skin/material/control/slider.scss +0 -204
- package/src/skin/material/control/snackbar.scss +0 -74
- package/src/skin/material/control/switch.scss +0 -319
- package/src/skin/material/control/switcher.scss +0 -47
- package/src/skin/material/control/textfield.scss +0 -140
- package/src/skin/material/control/tooltip.scss +0 -40
- package/src/skin/material/icon/back.svg +0 -4
- package/src/skin/material/icon/cancel.svg +0 -1
- package/src/skin/material/icon/checkbox.svg +0 -3
- package/src/skin/material/icon/forward.svg +0 -4
- package/src/skin/material/icon/menu.svg +0 -4
- package/src/skin/material/icon/pin.svg +0 -3
- package/src/skin/material/layout/layout.scss +0 -88
- package/src/skin/material/layout/resizer.scss +0 -77
- package/src/skin/material/material.css +0 -2042
- package/src/skin/material/material.css.map +0 -7
- package/src/skin/material/material.scss +0 -67
- package/src/skin/material/module/ripple.scss +0 -10
- package/src/skin/material/theme/default.scss +0 -51
- package/src/skin/material/theme/ocean.scss +0 -30
- package/src/skin/material/theme/theme.scss +0 -4
- package/src/skin/material/view/calendar.scss +0 -214
- package/src/skin/material/view/form.scss +0 -20
- package/src/skin/material/view/grid.scss +0 -133
- package/src/skin/material/view/list.scss +0 -105
- package/src/skin/material/view/listview.scss +0 -214
- package/src/skin/material/view/map.scss +0 -7
- package/src/skin/material/view/page.scss +0 -4
- package/src/skin/material/view/tabview-bak.scss +0 -48
- package/src/skin/material/view/tabview.scss +0 -63
- package/src/skin/material/view/tree.scss +0 -84
- package/src/skin/material/view/view.scss +0 -8
- package/src/slider.js +0 -340
- package/src/snackbar.js +0 -100
- package/src/styles/M3/abstracts/variables.sass +0 -44
- package/src/styles/M3/app/index.sass +0 -19
- package/src/styles/M3/base/body.sass +0 -55
- package/src/styles/M3/base/elevation.sass +0 -50
- package/src/styles/M3/base/grid.sass +0 -63
- package/src/styles/M3/base/typo.sass +0 -107
- package/src/styles/M3/components/badge.sass +0 -19
- package/src/styles/M3/components/button.sass +0 -39
- package/src/styles/M3/modules/ripple.sass +0 -9
- package/src/styles/M3/navigation/rail.sass +0 -72
- package/src/styles/M3/themes/classic.sass +0 -2
- package/src/styles/M3/view/view.sass +0 -2
- package/src/switch.js +0 -190
- package/src/switcher.js +0 -259
- package/src/tabs.js +0 -89
- package/src/tabview.js +0 -168
- package/src/text.js +0 -51
- package/src/textfield.js +0 -176
- package/src/toolbar.js +0 -200
- package/src/tooltip.js +0 -93
- package/src/tree.js +0 -194
- package/src/view/build.js +0 -34
- package/src/view/dataset.js +0 -12
- package/src/view/display.js +0 -91
- package/src/view.js +0 -9
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export function mountRailRipple(root, className) {
|
|
2
|
+
const waveClass = className('__ripple');
|
|
3
|
+
const press = (event) => {
|
|
4
|
+
const target = event.target.closest(`.${className('__item')}, .${className('__toggle')}`);
|
|
5
|
+
if (!target || !root.contains(target) || target.hasAttribute('aria-disabled'))
|
|
6
|
+
return;
|
|
7
|
+
if (event instanceof KeyboardEvent && (event.repeat || !['Enter', ' '].includes(event.key)))
|
|
8
|
+
return;
|
|
9
|
+
if (event.type === 'pointerdown' && event.button !== 0)
|
|
10
|
+
return;
|
|
11
|
+
if (root.ownerDocument.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches)
|
|
12
|
+
return;
|
|
13
|
+
const host = target.querySelector(`.${className('__indicator')}`) || target;
|
|
14
|
+
const bounds = host.getBoundingClientRect();
|
|
15
|
+
const wave = document.createElement('span');
|
|
16
|
+
wave.className = waveClass;
|
|
17
|
+
wave.setAttribute('aria-hidden', 'true');
|
|
18
|
+
const size = Math.max(bounds.width, bounds.height) * 2;
|
|
19
|
+
const pointer = event instanceof MouseEvent;
|
|
20
|
+
wave.style.width = wave.style.height = `${size}px`;
|
|
21
|
+
wave.style.left = `${(pointer ? event.clientX - bounds.left : bounds.width / 2) - size / 2}px`;
|
|
22
|
+
wave.style.top = `${(pointer ? event.clientY - bounds.top : bounds.height / 2) - size / 2}px`;
|
|
23
|
+
host.append(wave);
|
|
24
|
+
};
|
|
25
|
+
const finish = (event) => {
|
|
26
|
+
const target = event.target;
|
|
27
|
+
if (target.classList.contains(waveClass))
|
|
28
|
+
target.remove();
|
|
29
|
+
};
|
|
30
|
+
root.addEventListener('pointerdown', press);
|
|
31
|
+
root.addEventListener('keydown', press);
|
|
32
|
+
root.addEventListener('animationend', finish);
|
|
33
|
+
root.addEventListener('animationcancel', finish);
|
|
34
|
+
return () => {
|
|
35
|
+
root.removeEventListener('pointerdown', press);
|
|
36
|
+
root.removeEventListener('keydown', press);
|
|
37
|
+
root.removeEventListener('animationend', finish);
|
|
38
|
+
root.removeEventListener('animationcancel', finish);
|
|
39
|
+
root.querySelectorAll(`.${waveClass}`).forEach(wave => wave.remove());
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** A cubic Bézier: anchor 0, control 0, control 1, anchor 1 */
|
|
2
|
+
export type Cubic = readonly [number, number, number, number, number, number, number, number];
|
|
3
|
+
/** A 2D point */
|
|
4
|
+
export type Point = readonly [number, number];
|
|
5
|
+
/** Below this distance two points are the same point */
|
|
6
|
+
export declare const DISTANCE_EPSILON = 0.0001;
|
|
7
|
+
export declare const lerp: (start: number, stop: number, fraction: number) => number;
|
|
8
|
+
export declare const distance: (x: number, y: number) => number;
|
|
9
|
+
/** Unit vector in the direction of (x, y) */
|
|
10
|
+
export declare const direction: (x: number, y: number) => Point;
|
|
11
|
+
export declare const rotate90: ([x, y]: Point) => Point;
|
|
12
|
+
export declare const dot: (a: Point, b: Point) => number;
|
|
13
|
+
/** A straight segment expressed as a cubic */
|
|
14
|
+
export declare const straightLine: (x0: number, y0: number, x1: number, y1: number) => Cubic;
|
|
15
|
+
/**
|
|
16
|
+
* A circular arc from (x0, y0) to (x1, y1) around (centerX, centerY),
|
|
17
|
+
* approximated by one cubic; the arc must be under 180 degrees.
|
|
18
|
+
*/
|
|
19
|
+
export declare const circularArc: (centerX: number, centerY: number, x0: number, y0: number, x1: number, y1: number) => Cubic;
|
|
20
|
+
export declare const pointOnCurve: (c: Cubic, t: number) => Point;
|
|
21
|
+
/** Splits a cubic at `t` into two that together trace it (de Casteljau) */
|
|
22
|
+
export declare const splitCubic: (c: Cubic, t: number) => [Cubic, Cubic];
|
|
23
|
+
export declare const reverseCubic: (c: Cubic) => Cubic;
|
|
24
|
+
export declare const zeroLength: (c: Cubic) => boolean;
|
|
25
|
+
export type PointTransformer = (x: number, y: number) => Point;
|
|
26
|
+
export declare const transformCubic: (c: Cubic, f: PointTransformer) => Cubic;
|
|
27
|
+
/**
|
|
28
|
+
* The bounding box of a cubic as [left, top, right, bottom]. The approximate
|
|
29
|
+
* box is the hull of anchors and controls, which is what the library uses to
|
|
30
|
+
* normalise shapes.
|
|
31
|
+
*/
|
|
32
|
+
export declare const cubicBounds: (c: Cubic) => [number, number, number, number];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export const DISTANCE_EPSILON = 1e-4;
|
|
2
|
+
export const lerp = (start, stop, fraction) => (1 - fraction) * start + fraction * stop;
|
|
3
|
+
export const distance = (x, y) => Math.sqrt(x * x + y * y);
|
|
4
|
+
export const direction = (x, y) => {
|
|
5
|
+
const d = distance(x, y);
|
|
6
|
+
if (d <= 0)
|
|
7
|
+
throw new Error('Required distance greater than zero');
|
|
8
|
+
return [x / d, y / d];
|
|
9
|
+
};
|
|
10
|
+
export const rotate90 = ([x, y]) => [-y, x];
|
|
11
|
+
export const dot = (a, b) => a[0] * b[0] + a[1] * b[1];
|
|
12
|
+
export const straightLine = (x0, y0, x1, y1) => [
|
|
13
|
+
x0, y0,
|
|
14
|
+
lerp(x0, x1, 1 / 3), lerp(y0, y1, 1 / 3),
|
|
15
|
+
lerp(x0, x1, 2 / 3), lerp(y0, y1, 2 / 3),
|
|
16
|
+
x1, y1,
|
|
17
|
+
];
|
|
18
|
+
export const circularArc = (centerX, centerY, x0, y0, x1, y1) => {
|
|
19
|
+
const p0d = direction(x0 - centerX, y0 - centerY);
|
|
20
|
+
const p1d = direction(x1 - centerX, y1 - centerY);
|
|
21
|
+
const rotatedP0 = rotate90(p0d);
|
|
22
|
+
const rotatedP1 = rotate90(p1d);
|
|
23
|
+
const clockwise = dot(rotatedP0, [x1 - centerX, y1 - centerY]) >= 0;
|
|
24
|
+
const cosa = dot(p0d, p1d);
|
|
25
|
+
if (cosa > 0.999)
|
|
26
|
+
return straightLine(x0, y0, x1, y1);
|
|
27
|
+
const k = (distance(x0 - centerX, y0 - centerY) * 4 / 3) *
|
|
28
|
+
((Math.sqrt(2 * (1 - cosa)) - Math.sqrt(1 - cosa * cosa)) / (1 - cosa)) *
|
|
29
|
+
(clockwise ? 1 : -1);
|
|
30
|
+
return [
|
|
31
|
+
x0, y0,
|
|
32
|
+
x0 + rotatedP0[0] * k, y0 + rotatedP0[1] * k,
|
|
33
|
+
x1 - rotatedP1[0] * k, y1 - rotatedP1[1] * k,
|
|
34
|
+
x1, y1,
|
|
35
|
+
];
|
|
36
|
+
};
|
|
37
|
+
export const pointOnCurve = (c, t) => {
|
|
38
|
+
const u = 1 - t;
|
|
39
|
+
return [
|
|
40
|
+
c[0] * (u * u * u) + c[2] * (3 * t * u * u) + c[4] * (3 * t * t * u) + c[6] * (t * t * t),
|
|
41
|
+
c[1] * (u * u * u) + c[3] * (3 * t * u * u) + c[5] * (3 * t * t * u) + c[7] * (t * t * t),
|
|
42
|
+
];
|
|
43
|
+
};
|
|
44
|
+
export const splitCubic = (c, t) => {
|
|
45
|
+
const u = 1 - t;
|
|
46
|
+
const [x0, y0, x1, y1, x2, y2, x3, y3] = c;
|
|
47
|
+
const ax = u * x0 + t * x1, ay = u * y0 + t * y1;
|
|
48
|
+
const bx = u * x1 + t * x2, by = u * y1 + t * y2;
|
|
49
|
+
const cx = u * x2 + t * x3, cy = u * y2 + t * y3;
|
|
50
|
+
const dx = u * ax + t * bx, dy = u * ay + t * by;
|
|
51
|
+
const ex = u * bx + t * cx, ey = u * by + t * cy;
|
|
52
|
+
const mx = u * dx + t * ex, my = u * dy + t * ey;
|
|
53
|
+
return [
|
|
54
|
+
[x0, y0, ax, ay, dx, dy, mx, my],
|
|
55
|
+
[mx, my, ex, ey, cx, cy, x3, y3],
|
|
56
|
+
];
|
|
57
|
+
};
|
|
58
|
+
export const reverseCubic = (c) => [c[6], c[7], c[4], c[5], c[2], c[3], c[0], c[1]];
|
|
59
|
+
export const zeroLength = (c) => Math.abs(c[0] - c[6]) < DISTANCE_EPSILON && Math.abs(c[1] - c[7]) < DISTANCE_EPSILON;
|
|
60
|
+
export const transformCubic = (c, f) => {
|
|
61
|
+
const a0 = f(c[0], c[1]);
|
|
62
|
+
const c0 = f(c[2], c[3]);
|
|
63
|
+
const c1 = f(c[4], c[5]);
|
|
64
|
+
const a1 = f(c[6], c[7]);
|
|
65
|
+
return [a0[0], a0[1], c0[0], c0[1], c1[0], c1[1], a1[0], a1[1]];
|
|
66
|
+
};
|
|
67
|
+
export const cubicBounds = (c) => {
|
|
68
|
+
if (zeroLength(c))
|
|
69
|
+
return [c[0], c[1], c[0], c[1]];
|
|
70
|
+
return [
|
|
71
|
+
Math.min(c[0], c[2], c[4], c[6]),
|
|
72
|
+
Math.min(c[1], c[3], c[5], c[7]),
|
|
73
|
+
Math.max(c[0], c[2], c[4], c[6]),
|
|
74
|
+
Math.max(c[1], c[3], c[5], c[7]),
|
|
75
|
+
];
|
|
76
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { Cubic, Point, PointTransformer } from "./cubic.js";
|
|
2
|
+
export { straightLine, circularArc, pointOnCurve, cubicBounds, splitCubic } from "./cubic.js";
|
|
3
|
+
export type { CornerRounding, RoundedPolygon } from "./polygon.js";
|
|
4
|
+
export { UNROUNDED, roundedPolygon, rectangle, regularPolygon, circle, star, transformPolygon, rotatePolygon, scalePolygon, polygonBounds, polygonMaxRadius, normalizePolygon, } from "./polygon.js";
|
|
5
|
+
export type { MaterialShapeName, RadialProfile } from "./material.js";
|
|
6
|
+
export { materialShape, materialShapePath, polygonPath, radialProfile, shapeCircle, shapeSquare, shapeSlanted, shapeArch, shapeFan, shapeArrow, shapeSemiCircle, shapeOval, shapePill, shapeTriangle, shapeDiamond, shapeClamShell, shapePentagon, shapeGem, shapeSunny, shapeVerySunny, shapeCookie4Sided, shapeCookie6Sided, shapeCookie7Sided, shapeCookie9Sided, shapeCookie12Sided, shapeGhostish, shapeClover4Leaf, shapeClover8Leaf, shapeBurst, shapeSoftBurst, shapeBoom, shapeSoftBoom, shapeFlower, shapePuffy, shapePuffyDiamond, shapePixelCircle, shapePixelTriangle, shapeBun, shapeHeart, } from "./material.js";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { straightLine, circularArc, pointOnCurve, cubicBounds, splitCubic } from "./cubic.js";
|
|
2
|
+
export { UNROUNDED, roundedPolygon, rectangle, regularPolygon, circle, star, transformPolygon, rotatePolygon, scalePolygon, polygonBounds, polygonMaxRadius, normalizePolygon, } from "./polygon.js";
|
|
3
|
+
export { materialShape, materialShapePath, polygonPath, radialProfile, shapeCircle, shapeSquare, shapeSlanted, shapeArch, shapeFan, shapeArrow, shapeSemiCircle, shapeOval, shapePill, shapeTriangle, shapeDiamond, shapeClamShell, shapePentagon, shapeGem, shapeSunny, shapeVerySunny, shapeCookie4Sided, shapeCookie6Sided, shapeCookie7Sided, shapeCookie9Sided, shapeCookie12Sided, shapeGhostish, shapeClover4Leaf, shapeClover8Leaf, shapeBurst, shapeSoftBurst, shapeBoom, shapeSoftBoom, shapeFlower, shapePuffy, shapePuffyDiamond, shapePixelCircle, shapePixelTriangle, shapeBun, shapeHeart, } from "./material.js";
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { RoundedPolygon, polygonMaxRadius } from "./polygon.js";
|
|
2
|
+
/** Circle */
|
|
3
|
+
export declare const shapeCircle: () => RoundedPolygon;
|
|
4
|
+
/** A rounded square */
|
|
5
|
+
export declare const shapeSquare: () => RoundedPolygon;
|
|
6
|
+
/** A slanted square */
|
|
7
|
+
export declare const shapeSlanted: () => RoundedPolygon;
|
|
8
|
+
/** An arch */
|
|
9
|
+
export declare const shapeArch: () => RoundedPolygon;
|
|
10
|
+
/** A fan */
|
|
11
|
+
export declare const shapeFan: () => RoundedPolygon;
|
|
12
|
+
/** An arrow */
|
|
13
|
+
export declare const shapeArrow: () => RoundedPolygon;
|
|
14
|
+
/** A semicircle */
|
|
15
|
+
export declare const shapeSemiCircle: () => RoundedPolygon;
|
|
16
|
+
/** An oval */
|
|
17
|
+
export declare const shapeOval: () => RoundedPolygon;
|
|
18
|
+
/** A pill */
|
|
19
|
+
export declare const shapePill: () => RoundedPolygon;
|
|
20
|
+
/** A triangle */
|
|
21
|
+
export declare const shapeTriangle: () => RoundedPolygon;
|
|
22
|
+
/** A diamond */
|
|
23
|
+
export declare const shapeDiamond: () => RoundedPolygon;
|
|
24
|
+
/** A clam shell */
|
|
25
|
+
export declare const shapeClamShell: () => RoundedPolygon;
|
|
26
|
+
/** A pentagon */
|
|
27
|
+
export declare const shapePentagon: () => RoundedPolygon;
|
|
28
|
+
/** A gem */
|
|
29
|
+
export declare const shapeGem: () => RoundedPolygon;
|
|
30
|
+
/** A sunny shape: an 8-point star */
|
|
31
|
+
export declare const shapeSunny: () => RoundedPolygon;
|
|
32
|
+
/** A very sunny shape */
|
|
33
|
+
export declare const shapeVerySunny: () => RoundedPolygon;
|
|
34
|
+
/** A 4-sided cookie */
|
|
35
|
+
export declare const shapeCookie4Sided: () => RoundedPolygon;
|
|
36
|
+
/** A 6-sided cookie */
|
|
37
|
+
export declare const shapeCookie6Sided: () => RoundedPolygon;
|
|
38
|
+
/** A 7-sided cookie */
|
|
39
|
+
export declare const shapeCookie7Sided: () => RoundedPolygon;
|
|
40
|
+
/** A 9-sided cookie */
|
|
41
|
+
export declare const shapeCookie9Sided: () => RoundedPolygon;
|
|
42
|
+
/** A 12-sided cookie */
|
|
43
|
+
export declare const shapeCookie12Sided: () => RoundedPolygon;
|
|
44
|
+
/** A ghost-ish shape */
|
|
45
|
+
export declare const shapeGhostish: () => RoundedPolygon;
|
|
46
|
+
/** A 4-leaf clover */
|
|
47
|
+
export declare const shapeClover4Leaf: () => RoundedPolygon;
|
|
48
|
+
/** An 8-leaf clover */
|
|
49
|
+
export declare const shapeClover8Leaf: () => RoundedPolygon;
|
|
50
|
+
/** A burst */
|
|
51
|
+
export declare const shapeBurst: () => RoundedPolygon;
|
|
52
|
+
/** A soft burst */
|
|
53
|
+
export declare const shapeSoftBurst: () => RoundedPolygon;
|
|
54
|
+
/** A boom */
|
|
55
|
+
export declare const shapeBoom: () => RoundedPolygon;
|
|
56
|
+
/** A soft boom */
|
|
57
|
+
export declare const shapeSoftBoom: () => RoundedPolygon;
|
|
58
|
+
/** A flower */
|
|
59
|
+
export declare const shapeFlower: () => RoundedPolygon;
|
|
60
|
+
/** A puffy shape */
|
|
61
|
+
export declare const shapePuffy: () => RoundedPolygon;
|
|
62
|
+
/** A puffy diamond */
|
|
63
|
+
export declare const shapePuffyDiamond: () => RoundedPolygon;
|
|
64
|
+
/** A pixelated circle */
|
|
65
|
+
export declare const shapePixelCircle: () => RoundedPolygon;
|
|
66
|
+
/** A pixelated triangle */
|
|
67
|
+
export declare const shapePixelTriangle: () => RoundedPolygon;
|
|
68
|
+
/** A bun */
|
|
69
|
+
export declare const shapeBun: () => RoundedPolygon;
|
|
70
|
+
/** A heart */
|
|
71
|
+
export declare const shapeHeart: () => RoundedPolygon;
|
|
72
|
+
declare const byName: {
|
|
73
|
+
circle: () => RoundedPolygon;
|
|
74
|
+
square: () => RoundedPolygon;
|
|
75
|
+
slanted: () => RoundedPolygon;
|
|
76
|
+
arch: () => RoundedPolygon;
|
|
77
|
+
fan: () => RoundedPolygon;
|
|
78
|
+
arrow: () => RoundedPolygon;
|
|
79
|
+
semiCircle: () => RoundedPolygon;
|
|
80
|
+
oval: () => RoundedPolygon;
|
|
81
|
+
pill: () => RoundedPolygon;
|
|
82
|
+
triangle: () => RoundedPolygon;
|
|
83
|
+
diamond: () => RoundedPolygon;
|
|
84
|
+
clamShell: () => RoundedPolygon;
|
|
85
|
+
pentagon: () => RoundedPolygon;
|
|
86
|
+
gem: () => RoundedPolygon;
|
|
87
|
+
sunny: () => RoundedPolygon;
|
|
88
|
+
verySunny: () => RoundedPolygon;
|
|
89
|
+
cookie4Sided: () => RoundedPolygon;
|
|
90
|
+
cookie6Sided: () => RoundedPolygon;
|
|
91
|
+
cookie7Sided: () => RoundedPolygon;
|
|
92
|
+
cookie9Sided: () => RoundedPolygon;
|
|
93
|
+
cookie12Sided: () => RoundedPolygon;
|
|
94
|
+
ghostish: () => RoundedPolygon;
|
|
95
|
+
clover4Leaf: () => RoundedPolygon;
|
|
96
|
+
clover8Leaf: () => RoundedPolygon;
|
|
97
|
+
burst: () => RoundedPolygon;
|
|
98
|
+
softBurst: () => RoundedPolygon;
|
|
99
|
+
boom: () => RoundedPolygon;
|
|
100
|
+
softBoom: () => RoundedPolygon;
|
|
101
|
+
flower: () => RoundedPolygon;
|
|
102
|
+
puffy: () => RoundedPolygon;
|
|
103
|
+
puffyDiamond: () => RoundedPolygon;
|
|
104
|
+
pixelCircle: () => RoundedPolygon;
|
|
105
|
+
pixelTriangle: () => RoundedPolygon;
|
|
106
|
+
bun: () => RoundedPolygon;
|
|
107
|
+
heart: () => RoundedPolygon;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Names of the Material shapes: Compose's, camelCased. material 3.0.0 removed 0.10's
|
|
111
|
+
* 'cookie4' and 'cookie9' aliases: use 'cookie4Sided' and 'cookie9Sided'.
|
|
112
|
+
*/
|
|
113
|
+
export type MaterialShapeName = keyof typeof byName;
|
|
114
|
+
/** A Material shape by name, normalised into the unit square. Carries every shape; import `shapeX` to carry one. */
|
|
115
|
+
export declare const materialShape: (name: MaterialShapeName) => RoundedPolygon;
|
|
116
|
+
/**
|
|
117
|
+
* A polygon's outline as an SVG path ("M … C … Z"), scaled by `size`: a
|
|
118
|
+
* normalised shape fills a `size` × `size` box. Coordinates keep three decimals.
|
|
119
|
+
*/
|
|
120
|
+
export declare const polygonPath: (polygon: RoundedPolygon, size?: number) => string;
|
|
121
|
+
/** A Material shape as an SVG path in a `size` × `size` box. Carries every shape, as materialShape does. */
|
|
122
|
+
export declare const materialShapePath: (name: MaterialShapeName, size?: number) => string;
|
|
123
|
+
/** A shape's outline as radii at evenly spaced angles around its centre */
|
|
124
|
+
export interface RadialProfile {
|
|
125
|
+
/** Radius at angle i * 2π / radii.length, clockwise from the positive x axis on a y-down canvas */
|
|
126
|
+
radii: Float32Array;
|
|
127
|
+
/** The area centroid the radii are measured from */
|
|
128
|
+
centerX: number;
|
|
129
|
+
centerY: number;
|
|
130
|
+
/** The largest radius, for fitting the shape into a circle */
|
|
131
|
+
maxRadius: number;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* radialProfile without its star-shape check, for callers whose shapes are
|
|
135
|
+
* known to be star-shaped: the loading indicator's, which the tests check.
|
|
136
|
+
* The centroid, not the bounds centre, is the pivot: a pentagon's mass sits
|
|
137
|
+
* below the middle of its box, and turning it about the box would make it
|
|
138
|
+
* orbit.
|
|
139
|
+
* @internal
|
|
140
|
+
*/
|
|
141
|
+
export declare const sampleProfile: (polygon: RoundedPolygon, samples?: number, stepsPerCubic?: number) => RadialProfile;
|
|
142
|
+
/**
|
|
143
|
+
* Samples the outline at `samples` angles around the shape's area centroid.
|
|
144
|
+
* Throws for a shape that is not star-shaped around it. Of the Material
|
|
145
|
+
* shapes, 33 are; Puffy and PixelTriangle are not (their outlines double back
|
|
146
|
+
* as seen from the centroid, Puffy by about 0.1°): a ray from the centroid
|
|
147
|
+
* would cross the outline more than once, and the profile would be wrong.
|
|
148
|
+
*/
|
|
149
|
+
export declare const radialProfile: (polygon: RoundedPolygon, samples?: number, stepsPerCubic?: number) => RadialProfile;
|
|
150
|
+
export { polygonMaxRadius };
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
// src/core/shapes/material.ts
|
|
2
|
+
//
|
|
3
|
+
// The Material 3 Expressive shapes: all 35 of Compose Material 3's
|
|
4
|
+
// `MaterialShapes`, built as it builds them (vertex lists repeated around a
|
|
5
|
+
// centre, stars, rectangles, circles), normalised into the unit square.
|
|
6
|
+
//
|
|
7
|
+
// Ported from androidx (Apache License 2.0, Copyright The Android Open Source
|
|
8
|
+
// Project): compose/material3/material3/src/commonMain/kotlin/androidx/compose/
|
|
9
|
+
// material3/MaterialShapes.kt at 080d2b3e5326ba80392d93442c4a51a02dc22650, on
|
|
10
|
+
// the geometry of androidx.graphics:graphics-shapes 1.0.1, the version Compose
|
|
11
|
+
// Material 3 depends on. test/fixtures/material-shapes.json holds every shape
|
|
12
|
+
// as Compose builds it (scripts/generate-material-shapes.kt), and the tests
|
|
13
|
+
// hold this port to it.
|
|
14
|
+
//
|
|
15
|
+
// Each shape is its own export, built once on first use, so a bundle carries
|
|
16
|
+
// only the shapes it names. `materialShape(name)` looks any of them up by name,
|
|
17
|
+
// and carries them all.
|
|
18
|
+
import { pointOnCurve } from "./cubic.js";
|
|
19
|
+
import { circle, normalizePolygon, polygonBounds, polygonMaxRadius, rectangle, regularPolygon, rotatePolygon, roundedPolygon, scalePolygon, star, } from "./polygon.js";
|
|
20
|
+
const cornerRound15 = { radius: 0.15 };
|
|
21
|
+
const cornerRound20 = { radius: 0.2 };
|
|
22
|
+
const cornerRound30 = { radius: 0.3 };
|
|
23
|
+
const cornerRound50 = { radius: 0.5 };
|
|
24
|
+
const cornerRound100 = { radius: 1 };
|
|
25
|
+
const point = (x, y, radius = 0, smoothing = 0) => ({ x, y, r: { radius, smoothing } });
|
|
26
|
+
const toRadians = (degrees) => (degrees / 360) * 2 * Math.PI;
|
|
27
|
+
/**
|
|
28
|
+
* Repeats a few points around the centre, `reps` times, optionally mirroring
|
|
29
|
+
* every other repetition (MaterialShapes.doRepeat)
|
|
30
|
+
*/
|
|
31
|
+
const repeat = (points, reps, cx, cy, mirroring) => {
|
|
32
|
+
const result = [];
|
|
33
|
+
if (mirroring) {
|
|
34
|
+
const angles = points.map((p) => (Math.atan2(p.y - cy, p.x - cx) * 180) / Math.PI);
|
|
35
|
+
const distances = points.map((p) => Math.hypot(p.x - cx, p.y - cy));
|
|
36
|
+
const actualReps = reps * 2;
|
|
37
|
+
const sectionAngle = 360 / actualReps;
|
|
38
|
+
for (let it = 0; it < actualReps; it++) {
|
|
39
|
+
for (let index = 0; index < points.length; index++) {
|
|
40
|
+
const i = it % 2 === 0 ? index : points.length - 1 - index;
|
|
41
|
+
if (i > 0 || it % 2 === 0) {
|
|
42
|
+
const a = toRadians(sectionAngle * it + (it % 2 === 0 ? angles[i] : sectionAngle - angles[i] + 2 * angles[0]));
|
|
43
|
+
result.push({ x: Math.cos(a) * distances[i] + cx, y: Math.sin(a) * distances[i] + cy, r: points[i].r });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
const np = points.length;
|
|
50
|
+
for (let it = 0; it < np * reps; it++) {
|
|
51
|
+
const p = points[it % np];
|
|
52
|
+
const a = toRadians(Math.floor(it / np) * (360 / reps));
|
|
53
|
+
const dx = p.x - cx;
|
|
54
|
+
const dy = p.y - cy;
|
|
55
|
+
result.push({ x: dx * Math.cos(a) - dy * Math.sin(a) + cx, y: dx * Math.sin(a) + dy * Math.cos(a) + cy, r: p.r });
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
};
|
|
59
|
+
/** MaterialShapes.customPolygon: points repeated around (0.5, 0.5) */
|
|
60
|
+
const custom = (pnr, reps, mirroring = false) => {
|
|
61
|
+
const points = repeat(pnr, reps, 0.5, 0.5, mirroring);
|
|
62
|
+
const vertices = [];
|
|
63
|
+
for (const p of points)
|
|
64
|
+
vertices.push(p.x, p.y);
|
|
65
|
+
return roundedPolygon(vertices, undefined, points.map((p) => p.r), 0.5, 0.5);
|
|
66
|
+
};
|
|
67
|
+
/** A shape built once, on first use, and normalised into the unit square */
|
|
68
|
+
const shape = (build) => {
|
|
69
|
+
let built;
|
|
70
|
+
return () => (built ?? (built = normalizePolygon(build())));
|
|
71
|
+
};
|
|
72
|
+
/** Circle */
|
|
73
|
+
export const shapeCircle = /*#__PURE__*/ shape(() => circle(10));
|
|
74
|
+
/** A rounded square */
|
|
75
|
+
export const shapeSquare = /*#__PURE__*/ shape(() => rectangle(1, 1, cornerRound30));
|
|
76
|
+
/** A slanted square */
|
|
77
|
+
export const shapeSlanted = /*#__PURE__*/ shape(() => custom([point(0.926, 0.97, 0.189, 0.811), point(-0.021, 0.967, 0.187, 0.057)], 2));
|
|
78
|
+
/** An arch */
|
|
79
|
+
export const shapeArch = /*#__PURE__*/ shape(() => rotatePolygon(regularPolygon(4, 1, 0, 0, undefined, [cornerRound100, cornerRound100, cornerRound20, cornerRound20]), -135));
|
|
80
|
+
/** A fan */
|
|
81
|
+
export const shapeFan = /*#__PURE__*/ shape(() => custom([point(1.004, 1.0, 0.148, 0.417), point(0.0, 1.0, 0.151), point(0.0, -0.003, 0.148), point(0.978, 0.02, 0.803)], 1));
|
|
82
|
+
/** An arrow */
|
|
83
|
+
export const shapeArrow = /*#__PURE__*/ shape(() => custom([point(0.5, 0.892, 0.313), point(-0.216, 1.05, 0.207), point(0.499, -0.16, 0.215, 1.0), point(1.225, 1.06, 0.211)], 1));
|
|
84
|
+
/** A semicircle */
|
|
85
|
+
export const shapeSemiCircle = /*#__PURE__*/ shape(() => rectangle(1.6, 1, undefined, [cornerRound20, cornerRound20, cornerRound100, cornerRound100]));
|
|
86
|
+
/** An oval */
|
|
87
|
+
export const shapeOval = /*#__PURE__*/ shape(() => rotatePolygon(scalePolygon(circle(), 1, 0.64), -45));
|
|
88
|
+
/** A pill */
|
|
89
|
+
export const shapePill = /*#__PURE__*/ shape(() => custom([point(0.961, 0.039, 0.426), point(1.001, 0.428), point(1.0, 0.609, 1.0)], 2, true));
|
|
90
|
+
/** A triangle */
|
|
91
|
+
export const shapeTriangle = /*#__PURE__*/ shape(() => rotatePolygon(regularPolygon(3, 1, 0, 0, cornerRound20), -90));
|
|
92
|
+
/** A diamond */
|
|
93
|
+
export const shapeDiamond = /*#__PURE__*/ shape(() => custom([point(0.5, 1.096, 0.151, 0.524), point(0.04, 0.5, 0.159)], 2));
|
|
94
|
+
/** A clam shell */
|
|
95
|
+
export const shapeClamShell = /*#__PURE__*/ shape(() => custom([point(0.171, 0.841, 0.159), point(-0.02, 0.5, 0.14), point(0.17, 0.159, 0.159)], 2));
|
|
96
|
+
/** A pentagon */
|
|
97
|
+
export const shapePentagon = /*#__PURE__*/ shape(() => custom([point(0.5, -0.009, 0.172), point(1.03, 0.365, 0.164), point(0.828, 0.97, 0.169)], 1, true));
|
|
98
|
+
/** A gem */
|
|
99
|
+
export const shapeGem = /*#__PURE__*/ shape(() => custom([point(0.499, 1.023, 0.241, 0.778), point(-0.005, 0.792, 0.208), point(0.073, 0.258, 0.228), point(0.433, -0.0, 0.491)], 1, true));
|
|
100
|
+
/** A sunny shape: an 8-point star */
|
|
101
|
+
export const shapeSunny = /*#__PURE__*/ shape(() => star(8, 1, 0.8, cornerRound15));
|
|
102
|
+
/** A very sunny shape */
|
|
103
|
+
export const shapeVerySunny = /*#__PURE__*/ shape(() => custom([point(0.5, 1.08, 0.085), point(0.358, 0.843, 0.085)], 8));
|
|
104
|
+
/** A 4-sided cookie */
|
|
105
|
+
export const shapeCookie4Sided = /*#__PURE__*/ shape(() => custom([point(1.237, 1.236, 0.258), point(0.5, 0.918, 0.233)], 4));
|
|
106
|
+
/** A 6-sided cookie */
|
|
107
|
+
export const shapeCookie6Sided = /*#__PURE__*/ shape(() => custom([point(0.723, 0.884, 0.394), point(0.5, 1.099, 0.398)], 6));
|
|
108
|
+
/** A 7-sided cookie */
|
|
109
|
+
export const shapeCookie7Sided = /*#__PURE__*/ shape(() => rotatePolygon(star(7, 1, 0.75, cornerRound50), -90));
|
|
110
|
+
/** A 9-sided cookie */
|
|
111
|
+
export const shapeCookie9Sided = /*#__PURE__*/ shape(() => rotatePolygon(star(9, 1, 0.8, cornerRound50), -90));
|
|
112
|
+
/** A 12-sided cookie */
|
|
113
|
+
export const shapeCookie12Sided = /*#__PURE__*/ shape(() => rotatePolygon(star(12, 1, 0.8, cornerRound50), -90));
|
|
114
|
+
/** A ghost-ish shape */
|
|
115
|
+
export const shapeGhostish = /*#__PURE__*/ shape(() => custom([point(0.5, 0, 1.0), point(1, 0, 1.0), point(1, 1.14, 0.254, 0.106), point(0.575, 0.906, 0.253)], 1, true));
|
|
116
|
+
/** A 4-leaf clover */
|
|
117
|
+
export const shapeClover4Leaf = /*#__PURE__*/ shape(() => custom([point(0.5, 0.074), point(0.725, -0.099, 0.476)], 4, true));
|
|
118
|
+
/** An 8-leaf clover */
|
|
119
|
+
export const shapeClover8Leaf = /*#__PURE__*/ shape(() => custom([point(0.5, 0.036), point(0.758, -0.101, 0.209)], 8));
|
|
120
|
+
/** A burst */
|
|
121
|
+
export const shapeBurst = /*#__PURE__*/ shape(() => custom([point(0.5, -0.006, 0.006), point(0.592, 0.158, 0.006)], 12));
|
|
122
|
+
/** A soft burst */
|
|
123
|
+
export const shapeSoftBurst = /*#__PURE__*/ shape(() => custom([point(0.193, 0.277, 0.053), point(0.176, 0.055, 0.053)], 10));
|
|
124
|
+
/** A boom */
|
|
125
|
+
export const shapeBoom = /*#__PURE__*/ shape(() => custom([point(0.457, 0.296, 0.007), point(0.5, -0.051, 0.007)], 15));
|
|
126
|
+
/** A soft boom */
|
|
127
|
+
export const shapeSoftBoom = /*#__PURE__*/ shape(() => custom([point(0.733, 0.454), point(0.839, 0.437, 0.532), point(0.949, 0.449, 0.439, 1.0), point(0.998, 0.478, 0.174)], 16, true));
|
|
128
|
+
/** A flower */
|
|
129
|
+
export const shapeFlower = /*#__PURE__*/ shape(() => custom([point(0.37, 0.187), point(0.416, 0.049, 0.381), point(0.479, 0.001, 0.095)], 8, true));
|
|
130
|
+
/** A puffy shape */
|
|
131
|
+
export const shapePuffy = /*#__PURE__*/ shape(() => scalePolygon(custom([
|
|
132
|
+
point(0.5, 0.053), point(0.545, -0.04, 0.405), point(0.67, -0.035, 0.426), point(0.717, 0.066, 0.574),
|
|
133
|
+
point(0.722, 0.128), point(0.777, 0.002, 0.36), point(0.914, 0.149, 0.66), point(0.926, 0.289, 0.66),
|
|
134
|
+
point(0.881, 0.346), point(0.94, 0.344, 0.126), point(1.003, 0.437, 0.255),
|
|
135
|
+
], 2, true), 1, 0.742));
|
|
136
|
+
/** A puffy diamond */
|
|
137
|
+
export const shapePuffyDiamond = /*#__PURE__*/ shape(() => custom([point(0.87, 0.13, 0.146), point(0.818, 0.357), point(1.0, 0.332, 0.853)], 4, true));
|
|
138
|
+
/** A pixelated circle */
|
|
139
|
+
export const shapePixelCircle = /*#__PURE__*/ shape(() => custom([
|
|
140
|
+
point(0.5, 0.0), point(0.704, 0.0), point(0.704, 0.065), point(0.843, 0.065),
|
|
141
|
+
point(0.843, 0.148), point(0.926, 0.148), point(0.926, 0.296), point(1.0, 0.296),
|
|
142
|
+
], 2, true));
|
|
143
|
+
/** A pixelated triangle */
|
|
144
|
+
export const shapePixelTriangle = /*#__PURE__*/ shape(() => custom([
|
|
145
|
+
point(0.11, 0.5), point(0.113, 0.0), point(0.287, 0.0), point(0.287, 0.087), point(0.421, 0.087),
|
|
146
|
+
point(0.421, 0.17), point(0.56, 0.17), point(0.56, 0.265), point(0.674, 0.265), point(0.675, 0.344),
|
|
147
|
+
point(0.789, 0.344), point(0.789, 0.439), point(0.888, 0.439),
|
|
148
|
+
], 1, true));
|
|
149
|
+
/** A bun */
|
|
150
|
+
export const shapeBun = /*#__PURE__*/ shape(() => custom([point(0.796, 0.5), point(0.853, 0.518, 1), point(0.992, 0.631, 1), point(0.968, 1.0, 1)], 2, true));
|
|
151
|
+
/** A heart */
|
|
152
|
+
export const shapeHeart = /*#__PURE__*/ shape(() => custom([point(0.5, 0.268, 0.016), point(0.792, -0.066, 0.958), point(1.064, 0.276, 1.0), point(0.501, 0.946, 0.129)], 1, true));
|
|
153
|
+
const byName = {
|
|
154
|
+
circle: shapeCircle,
|
|
155
|
+
square: shapeSquare,
|
|
156
|
+
slanted: shapeSlanted,
|
|
157
|
+
arch: shapeArch,
|
|
158
|
+
fan: shapeFan,
|
|
159
|
+
arrow: shapeArrow,
|
|
160
|
+
semiCircle: shapeSemiCircle,
|
|
161
|
+
oval: shapeOval,
|
|
162
|
+
pill: shapePill,
|
|
163
|
+
triangle: shapeTriangle,
|
|
164
|
+
diamond: shapeDiamond,
|
|
165
|
+
clamShell: shapeClamShell,
|
|
166
|
+
pentagon: shapePentagon,
|
|
167
|
+
gem: shapeGem,
|
|
168
|
+
sunny: shapeSunny,
|
|
169
|
+
verySunny: shapeVerySunny,
|
|
170
|
+
cookie4Sided: shapeCookie4Sided,
|
|
171
|
+
cookie6Sided: shapeCookie6Sided,
|
|
172
|
+
cookie7Sided: shapeCookie7Sided,
|
|
173
|
+
cookie9Sided: shapeCookie9Sided,
|
|
174
|
+
cookie12Sided: shapeCookie12Sided,
|
|
175
|
+
ghostish: shapeGhostish,
|
|
176
|
+
clover4Leaf: shapeClover4Leaf,
|
|
177
|
+
clover8Leaf: shapeClover8Leaf,
|
|
178
|
+
burst: shapeBurst,
|
|
179
|
+
softBurst: shapeSoftBurst,
|
|
180
|
+
boom: shapeBoom,
|
|
181
|
+
softBoom: shapeSoftBoom,
|
|
182
|
+
flower: shapeFlower,
|
|
183
|
+
puffy: shapePuffy,
|
|
184
|
+
puffyDiamond: shapePuffyDiamond,
|
|
185
|
+
pixelCircle: shapePixelCircle,
|
|
186
|
+
pixelTriangle: shapePixelTriangle,
|
|
187
|
+
bun: shapeBun,
|
|
188
|
+
heart: shapeHeart,
|
|
189
|
+
};
|
|
190
|
+
/** A Material shape by name, normalised into the unit square. Carries every shape; import `shapeX` to carry one. */
|
|
191
|
+
export const materialShape = (name) => byName[name]();
|
|
192
|
+
const num = (value) => {
|
|
193
|
+
const rounded = Math.round(value * 1000) / 1000;
|
|
194
|
+
return String(Object.is(rounded, -0) ? 0 : rounded);
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* A polygon's outline as an SVG path ("M … C … Z"), scaled by `size`: a
|
|
198
|
+
* normalised shape fills a `size` × `size` box. Coordinates keep three decimals.
|
|
199
|
+
*/
|
|
200
|
+
export const polygonPath = (polygon, size = 1) => {
|
|
201
|
+
const cubics = polygon.cubics;
|
|
202
|
+
if (!cubics.length)
|
|
203
|
+
return '';
|
|
204
|
+
const s = (v) => num(v * size);
|
|
205
|
+
let d = `M${s(cubics[0][0])} ${s(cubics[0][1])}`;
|
|
206
|
+
for (const c of cubics)
|
|
207
|
+
d += `C${s(c[2])} ${s(c[3])} ${s(c[4])} ${s(c[5])} ${s(c[6])} ${s(c[7])}`;
|
|
208
|
+
return `${d}Z`;
|
|
209
|
+
};
|
|
210
|
+
/** A Material shape as an SVG path in a `size` × `size` box. Carries every shape, as materialShape does. */
|
|
211
|
+
export const materialShapePath = (name, size = 1) => polygonPath(materialShape(name), size);
|
|
212
|
+
const TWO_PI = Math.PI * 2;
|
|
213
|
+
/**
|
|
214
|
+
* radialProfile without its star-shape check, for callers whose shapes are
|
|
215
|
+
* known to be star-shaped: the loading indicator's, which the tests check.
|
|
216
|
+
* The centroid, not the bounds centre, is the pivot: a pentagon's mass sits
|
|
217
|
+
* below the middle of its box, and turning it about the box would make it
|
|
218
|
+
* orbit.
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
export const sampleProfile = (polygon, samples = 360, stepsPerCubic = 24) => {
|
|
222
|
+
// The outline as a dense polygon
|
|
223
|
+
const points = [];
|
|
224
|
+
for (const cubic of polygon.cubics) {
|
|
225
|
+
for (let s = 0; s < stepsPerCubic; s++)
|
|
226
|
+
points.push(pointOnCurve(cubic, s / stepsPerCubic));
|
|
227
|
+
}
|
|
228
|
+
// Its area centroid (shoelace formula)
|
|
229
|
+
let area = 0;
|
|
230
|
+
let centerX = 0;
|
|
231
|
+
let centerY = 0;
|
|
232
|
+
for (let i = 0; i < points.length; i++) {
|
|
233
|
+
const [x0, y0] = points[i];
|
|
234
|
+
const [x1, y1] = points[(i + 1) % points.length];
|
|
235
|
+
const cross = x0 * y1 - x1 * y0;
|
|
236
|
+
area += cross;
|
|
237
|
+
centerX += (x0 + x1) * cross;
|
|
238
|
+
centerY += (y0 + y1) * cross;
|
|
239
|
+
}
|
|
240
|
+
if (Math.abs(area) > 1e-12) {
|
|
241
|
+
centerX /= 3 * area;
|
|
242
|
+
centerY /= 3 * area;
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
const bounds = polygonBounds(polygon);
|
|
246
|
+
centerX = (bounds[0] + bounds[2]) / 2;
|
|
247
|
+
centerY = (bounds[1] + bounds[3]) / 2;
|
|
248
|
+
}
|
|
249
|
+
// The outline as (angle, radius) pairs, sorted by angle
|
|
250
|
+
const outline = [];
|
|
251
|
+
for (const [x, y] of points) {
|
|
252
|
+
const dx = x - centerX;
|
|
253
|
+
const dy = y - centerY;
|
|
254
|
+
let angle = Math.atan2(dy, dx);
|
|
255
|
+
if (angle < 0)
|
|
256
|
+
angle += TWO_PI;
|
|
257
|
+
outline.push([angle, Math.hypot(dx, dy)]);
|
|
258
|
+
}
|
|
259
|
+
outline.sort((a, b) => a[0] - b[0]);
|
|
260
|
+
const last = outline[outline.length - 1];
|
|
261
|
+
const first = outline[0];
|
|
262
|
+
outline.unshift([last[0] - TWO_PI, last[1]]);
|
|
263
|
+
outline.push([first[0] + TWO_PI, first[1]]);
|
|
264
|
+
const radii = new Float32Array(samples);
|
|
265
|
+
let j = 0;
|
|
266
|
+
let maxRadius = 0;
|
|
267
|
+
for (let i = 0; i < samples; i++) {
|
|
268
|
+
const angle = (i / samples) * TWO_PI;
|
|
269
|
+
while (outline[j + 1][0] < angle)
|
|
270
|
+
j++;
|
|
271
|
+
const [a0, r0] = outline[j];
|
|
272
|
+
const [a1, r1] = outline[j + 1];
|
|
273
|
+
const t = a1 === a0 ? 0 : (angle - a0) / (a1 - a0);
|
|
274
|
+
const r = r0 + (r1 - r0) * t;
|
|
275
|
+
radii[i] = r;
|
|
276
|
+
if (r > maxRadius)
|
|
277
|
+
maxRadius = r;
|
|
278
|
+
}
|
|
279
|
+
return { radii, centerX, centerY, maxRadius };
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Samples the outline at `samples` angles around the shape's area centroid.
|
|
283
|
+
* Throws for a shape that is not star-shaped around it. Of the Material
|
|
284
|
+
* shapes, 33 are; Puffy and PixelTriangle are not (their outlines double back
|
|
285
|
+
* as seen from the centroid, Puffy by about 0.1°): a ray from the centroid
|
|
286
|
+
* would cross the outline more than once, and the profile would be wrong.
|
|
287
|
+
*/
|
|
288
|
+
export const radialProfile = (polygon, samples = 360, stepsPerCubic = 24) => {
|
|
289
|
+
const profile = sampleProfile(polygon, samples, stepsPerCubic);
|
|
290
|
+
const { centerX, centerY } = profile;
|
|
291
|
+
const points = [];
|
|
292
|
+
for (const cubic of polygon.cubics) {
|
|
293
|
+
for (let s = 0; s < stepsPerCubic; s++)
|
|
294
|
+
points.push(pointOnCurve(cubic, s / stepsPerCubic));
|
|
295
|
+
}
|
|
296
|
+
// Star-shaped around the centroid: walking the outline, the angle seen from
|
|
297
|
+
// the centroid only ever turns one way. A shape that doubles back (a heart's
|
|
298
|
+
// notch, an arch's inner curve) would be sampled wrong: refuse it.
|
|
299
|
+
let turn = 0;
|
|
300
|
+
for (let i = 0; i < points.length; i++) {
|
|
301
|
+
const [x0, y0] = points[i];
|
|
302
|
+
const [x1, y1] = points[(i + 1) % points.length];
|
|
303
|
+
let step = Math.atan2(y1 - centerY, x1 - centerX) - Math.atan2(y0 - centerY, x0 - centerX);
|
|
304
|
+
if (step > Math.PI)
|
|
305
|
+
step -= TWO_PI;
|
|
306
|
+
else if (step < -Math.PI)
|
|
307
|
+
step += TWO_PI;
|
|
308
|
+
if (turn === 0)
|
|
309
|
+
turn = Math.sign(step);
|
|
310
|
+
else if (step * turn < -1e-9) {
|
|
311
|
+
throw new Error("radialProfile: the shape is not star-shaped around its centroid, so it has no radial profile");
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return profile;
|
|
315
|
+
};
|
|
316
|
+
export { polygonMaxRadius };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Cubic, PointTransformer } from "./cubic.js";
|
|
2
|
+
/** How a vertex is rounded: the radius, and how much the curve is smoothed into the sides (0–1) */
|
|
3
|
+
export interface CornerRounding {
|
|
4
|
+
radius: number;
|
|
5
|
+
smoothing?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const UNROUNDED: CornerRounding;
|
|
8
|
+
/** A closed shape made of contiguous cubics */
|
|
9
|
+
export interface RoundedPolygon {
|
|
10
|
+
cubics: Cubic[];
|
|
11
|
+
centerX: number;
|
|
12
|
+
centerY: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Builds a rounded polygon from a flat list of vertex coordinates
|
|
16
|
+
* [x0, y0, x1, y1, ...], a rounding for every vertex or one per vertex, and
|
|
17
|
+
* an optional centre (the vertices' centroid by default).
|
|
18
|
+
*/
|
|
19
|
+
export declare const roundedPolygon: (vertices: number[], rounding?: CornerRounding, perVertexRounding?: CornerRounding[], centerX?: number, centerY?: number) => RoundedPolygon;
|
|
20
|
+
/** A regular polygon, first vertex at angle 0 */
|
|
21
|
+
export declare const regularPolygon: (numVertices: number, radius?: number, centerX?: number, centerY?: number, rounding?: CornerRounding, perVertexRounding?: CornerRounding[]) => RoundedPolygon;
|
|
22
|
+
/** A circle approximated by a fully rounded polygon */
|
|
23
|
+
export declare const circle: (numVertices?: number, radius?: number, centerX?: number, centerY?: number) => RoundedPolygon;
|
|
24
|
+
/** A star with `numVerticesPerRadius` outer and inner vertices, outer first at angle 0 */
|
|
25
|
+
export declare const star: (numVerticesPerRadius: number, radius?: number, innerRadius?: number, rounding?: CornerRounding, innerRounding?: CornerRounding, perVertexRounding?: CornerRounding[], centerX?: number, centerY?: number) => RoundedPolygon;
|
|
26
|
+
/** A rectangle centred on (centerX, centerY), its first vertex at the bottom right (graphics-shapes rectangle) */
|
|
27
|
+
export declare const rectangle: (width?: number, height?: number, rounding?: CornerRounding, perVertexRounding?: CornerRounding[], centerX?: number, centerY?: number) => RoundedPolygon;
|
|
28
|
+
export declare const transformPolygon: (polygon: RoundedPolygon, f: PointTransformer) => RoundedPolygon;
|
|
29
|
+
/** Rotation about the origin, in degrees, positive clockwise on a y-down canvas */
|
|
30
|
+
export declare const rotatePolygon: (polygon: RoundedPolygon, degrees: number) => RoundedPolygon;
|
|
31
|
+
export declare const scalePolygon: (polygon: RoundedPolygon, sx: number, sy?: number) => RoundedPolygon;
|
|
32
|
+
/** Bounding box [left, top, right, bottom] from the hull of anchors and controls */
|
|
33
|
+
export declare const polygonBounds: (polygon: RoundedPolygon) => [number, number, number, number];
|
|
34
|
+
/** The farthest any anchor or curve midpoint gets from the centre */
|
|
35
|
+
export declare const polygonMaxRadius: (polygon: RoundedPolygon) => number;
|
|
36
|
+
/** Fits the shape into the unit square, centred, keeping its aspect ratio */
|
|
37
|
+
export declare const normalizePolygon: (polygon: RoundedPolygon) => RoundedPolygon;
|