material 3.8.0 → 3.8.2
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/README.md +2 -2
- package/dist/components/badge/badge.d.ts +4 -0
- package/dist/components/badge/constants.d.ts +4 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/types.d.ts +102 -0
- package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +4 -0
- package/dist/components/bottom-app-bar/constants.d.ts +3 -0
- package/dist/components/bottom-app-bar/types.d.ts +42 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +4 -0
- package/dist/components/bottom-sheet/constants.d.ts +9 -0
- package/dist/components/bottom-sheet/types.d.ts +52 -0
- package/dist/components/button/button.d.ts +4 -0
- package/dist/components/button/constants.d.ts +20 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/types.d.ts +190 -0
- package/dist/components/button-group/button-group.d.ts +4 -0
- package/dist/components/button-group/constants.d.ts +54 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/button-group/types.d.ts +125 -0
- package/dist/components/card/card.d.ts +4 -0
- package/dist/components/card/constants.d.ts +11 -0
- package/dist/components/card/content.d.ts +16 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/types.d.ts +123 -0
- package/dist/components/carousel/carousel.d.ts +1 -0
- package/dist/components/carousel/constants.d.ts +10 -0
- package/dist/components/carousel/features/scroll.js +1 -0
- package/dist/components/carousel/types.d.ts +16 -0
- package/dist/components/checkbox/checkbox.d.ts +5 -0
- package/dist/components/checkbox/constants.d.ts +13 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/types.d.ts +94 -0
- package/dist/components/chips/chips.d.ts +4 -0
- package/dist/components/chips/constants.d.ts +1 -0
- package/dist/components/chips/factories.d.ts +4 -0
- package/dist/components/chips/features/controller.js +4 -6
- package/dist/components/chips/types.d.ts +140 -0
- package/dist/components/datepicker/constants.d.ts +38 -0
- package/dist/components/datepicker/datepicker.d.ts +2 -0
- package/dist/components/datepicker/types.d.ts +139 -0
- package/dist/components/dialog/constants.d.ts +45 -0
- package/dist/components/dialog/dialog.d.ts +5 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog/types.d.ts +196 -0
- package/dist/components/divider/config.d.ts +30 -0
- package/dist/components/divider/constants.d.ts +15 -0
- package/dist/components/divider/divider.d.ts +4 -0
- package/dist/components/divider/types.d.ts +27 -0
- package/dist/components/drawer/constants.d.ts +39 -0
- package/dist/components/drawer/drawer.d.ts +4 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/types.d.ts +109 -0
- package/dist/components/extended-fab/constants.d.ts +32 -0
- package/dist/components/extended-fab/extended-fab.d.ts +4 -0
- package/dist/components/extended-fab/types.d.ts +123 -0
- package/dist/components/fab/constants.d.ts +26 -0
- package/dist/components/fab/fab.d.ts +4 -0
- package/dist/components/fab/types.d.ts +100 -0
- package/dist/components/fab-menu/constants.d.ts +9 -0
- package/dist/components/fab-menu/fab-menu.d.ts +4 -0
- package/dist/components/fab-menu/types.d.ts +41 -0
- package/dist/components/icon-button/constants.d.ts +34 -0
- package/dist/components/icon-button/icon-button.d.ts +4 -0
- package/dist/components/icon-button/types.d.ts +157 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/list/constants.d.ts +30 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/list.d.ts +4 -0
- package/dist/components/list/types.d.ts +110 -0
- package/dist/components/loading-indicator/constants.d.ts +16 -0
- package/dist/components/loading-indicator/features/renderer.d.ts +13 -0
- package/dist/components/loading-indicator/loading-indicator.d.ts +4 -0
- package/dist/components/loading-indicator/types.d.ts +21 -0
- package/dist/components/menu/constants.d.ts +51 -0
- package/dist/components/menu/features/controller.js +1 -1
- package/dist/components/menu/features/keyboard.js +8 -3
- package/dist/components/menu/features/opener.js +2 -16
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/inner.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +4 -0
- package/dist/components/menu/on-demand.d.ts +9 -0
- package/dist/components/menu/types.d.ts +185 -1
- package/dist/components/navigation-bar/navigation-bar.d.ts +1 -0
- package/dist/components/navigation-bar/types.d.ts +12 -0
- package/dist/components/navigation-rail/constants.d.ts +2 -0
- package/dist/components/navigation-rail/navigation-rail.d.ts +1 -0
- package/dist/components/navigation-rail/types.d.ts +18 -0
- package/dist/components/progress/constants.d.ts +37 -0
- package/dist/components/progress/progress.d.ts +4 -0
- package/dist/components/progress/types.d.ts +136 -0
- package/dist/components/radios/constants.d.ts +14 -0
- package/dist/components/radios/radios.d.ts +4 -0
- package/dist/components/radios/types.d.ts +89 -0
- package/dist/components/search/constants.d.ts +34 -0
- package/dist/components/search/search.d.ts +4 -0
- package/dist/components/search/types.d.ts +109 -0
- package/dist/components/select/constants.d.ts +46 -0
- package/dist/components/select/features.js +9 -1
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +4 -0
- package/dist/components/select/types.d.ts +95 -0
- package/dist/components/side-sheet/constants.d.ts +9 -0
- package/dist/components/side-sheet/side-sheet.d.ts +4 -0
- package/dist/components/side-sheet/types.d.ts +51 -0
- package/dist/components/slider/constants.d.ts +62 -0
- package/dist/components/slider/slider.d.ts +4 -0
- package/dist/components/slider/types.d.ts +78 -0
- package/dist/components/snackbar/constants.d.ts +37 -0
- package/dist/components/snackbar/snackbar.d.ts +5 -0
- package/dist/components/snackbar/types.d.ts +67 -0
- package/dist/components/split-button/api.js +13 -3
- package/dist/components/split-button/constants.d.ts +13 -0
- package/dist/components/split-button/split-button.d.ts +4 -0
- package/dist/components/split-button/types.d.ts +50 -0
- package/dist/components/switch/constants.d.ts +34 -0
- package/dist/components/switch/switch.d.ts +4 -0
- package/dist/components/switch/types.d.ts +55 -0
- package/dist/components/tabs/constants.d.ts +49 -0
- package/dist/components/tabs/indicator.d.ts +22 -0
- package/dist/components/tabs/responsive.d.ts +17 -0
- package/dist/components/tabs/tab.d.ts +5 -0
- package/dist/components/tabs/tabs.d.ts +4 -0
- package/dist/components/tabs/types.d.ts +170 -0
- package/dist/components/tabs/utils.d.ts +24 -0
- package/dist/components/text-field/constants.d.ts +61 -0
- package/dist/components/text-field/features/trailing-icon.d.ts +25 -0
- package/dist/components/text-field/text-field.d.ts +4 -0
- package/dist/components/text-field/types.d.ts +84 -0
- package/dist/components/timepicker/constants.d.ts +61 -0
- package/dist/components/timepicker/types.d.ts +145 -0
- package/dist/components/toolbar/constants.d.ts +8 -0
- package/dist/components/toolbar/toolbar.d.ts +4 -0
- package/dist/components/toolbar/types.d.ts +75 -0
- package/dist/components/tooltip/constants.d.ts +43 -0
- package/dist/components/tooltip/tooltip.d.ts +4 -0
- package/dist/components/tooltip/types.d.ts +78 -0
- package/dist/components/top-app-bar/constants.d.ts +29 -0
- package/dist/components/top-app-bar/top-app-bar.d.ts +4 -0
- package/dist/components/top-app-bar/types.d.ts +55 -0
- package/dist/core/canvas/animation.d.ts +6 -0
- package/dist/core/canvas/drawing.d.ts +47 -0
- package/dist/core/canvas/index.d.ts +1 -0
- package/dist/core/canvas/resize.d.ts +7 -0
- package/dist/core/canvas/utils.d.ts +39 -0
- package/dist/core/compose/base.d.ts +9 -0
- package/dist/core/compose/cleanup.d.ts +2 -0
- package/dist/core/compose/component.d.ts +13 -0
- package/dist/core/compose/features/badge.d.ts +10 -0
- package/dist/core/compose/features/checkable.d.ts +13 -0
- package/dist/core/compose/features/debounce.d.ts +19 -0
- package/dist/core/compose/features/disabled.d.ts +11 -0
- package/dist/core/compose/features/events.d.ts +19 -0
- package/dist/core/compose/features/icon.d.ts +20 -0
- package/dist/core/compose/features/input.d.ts +31 -0
- package/dist/core/compose/features/lifecycle.d.ts +16 -0
- package/dist/core/compose/features/position.d.ts +13 -0
- package/dist/core/compose/features/ripple.d.ts +17 -0
- package/dist/core/compose/features/size.d.ts +5 -0
- package/dist/core/compose/features/style.d.ts +5 -0
- package/dist/core/compose/features/text.d.ts +20 -0
- package/dist/core/compose/features/textinput.d.ts +39 -0
- package/dist/core/compose/features/textlabel.d.ts +18 -0
- package/dist/core/compose/features/throttle.d.ts +18 -0
- package/dist/core/compose/features/track.d.ts +12 -0
- package/dist/core/compose/features/variant.d.ts +5 -0
- package/dist/core/compose/features/withEvents.d.ts +12 -0
- package/dist/core/compose/pipe.d.ts +12 -0
- package/dist/core/compose/utils/type-guards.d.ts +5 -0
- package/dist/core/config/component.d.ts +17 -0
- package/dist/core/config/global.d.ts +15 -0
- package/dist/core/config.d.ts +34 -0
- package/dist/core/dom/attributes.d.ts +25 -0
- package/dist/core/dom/classes.d.ts +24 -0
- package/dist/core/dom/create.d.ts +47 -0
- package/dist/core/dom/events.d.ts +26 -0
- package/dist/core/dom/focus.d.ts +11 -0
- package/dist/core/dom/html.d.ts +6 -0
- package/dist/core/dom/layer.d.ts +36 -0
- package/dist/core/dom/roving.d.ts +7 -0
- package/dist/core/navigation/destinations.d.ts +10 -0
- package/dist/core/shapes/cubic.d.ts +8 -0
- package/dist/core/shapes/material.d.ts +45 -0
- package/dist/core/shapes/polygon.d.ts +11 -0
- package/dist/core/state/emitter.d.ts +19 -0
- package/dist/core/state/events.d.ts +17 -0
- package/dist/core/state/store.d.ts +40 -0
- package/dist/core/theme/shape.d.ts +3 -0
- package/dist/core/theme/tokens.d.ts +6 -0
- package/dist/core/utils/background.d.ts +7 -0
- package/dist/core/utils/color.d.ts +5 -0
- package/dist/core/utils/index.d.ts +9 -0
- package/dist/core/utils/mobile.d.ts +10 -0
- package/dist/core/utils/object.d.ts +9 -0
- package/dist/core/utils/performance.d.ts +20 -0
- package/dist/core/utils/theme.d.ts +8 -0
- package/dist/core/utils/url.d.ts +3 -0
- package/dist/elements/adapter.d.ts +24 -0
- package/dist/elements/badge.d.ts +4 -0
- package/dist/elements/bottom-app-bar.d.ts +4 -0
- package/dist/elements/bottom-sheet.d.ts +6 -0
- package/dist/elements/button-group.d.ts +8 -0
- package/dist/elements/button.d.ts +5 -0
- package/dist/elements/card.d.ts +4 -0
- package/dist/elements/carousel.d.ts +5 -0
- package/dist/elements/checkbox.d.ts +4 -0
- package/dist/elements/chips.d.ts +9 -0
- package/dist/elements/css/button.css +1 -1
- package/dist/elements/css/button.js +1 -1
- package/dist/elements/css/carousel.css +1 -1
- package/dist/elements/css/carousel.js +1 -1
- package/dist/elements/css/chips.css +1 -1
- package/dist/elements/css/chips.js +1 -1
- package/dist/elements/css/dialog.css +1 -1
- package/dist/elements/css/dialog.js +1 -1
- package/dist/elements/css/drawer.css +1 -1
- package/dist/elements/css/drawer.js +1 -1
- package/dist/elements/css/fab-menu.css +1 -1
- package/dist/elements/css/fab-menu.js +1 -1
- package/dist/elements/css/hosts/badge.css +1 -1
- package/dist/elements/css/hosts/bottom-app-bar.css +1 -1
- package/dist/elements/css/hosts/bottom-sheet.css +1 -1
- package/dist/elements/css/hosts/button-group.css +1 -1
- package/dist/elements/css/hosts/button.css +1 -1
- package/dist/elements/css/hosts/card.css +1 -1
- package/dist/elements/css/hosts/carousel.css +1 -1
- package/dist/elements/css/hosts/checkbox.css +1 -1
- package/dist/elements/css/hosts/chips.css +1 -1
- package/dist/elements/css/hosts/datepicker.css +1 -1
- package/dist/elements/css/hosts/dialog.css +1 -1
- package/dist/elements/css/hosts/divider.css +1 -1
- package/dist/elements/css/hosts/drawer.css +1 -1
- package/dist/elements/css/hosts/extended-fab.css +1 -1
- package/dist/elements/css/hosts/fab-menu.css +1 -1
- package/dist/elements/css/hosts/fab.css +1 -1
- package/dist/elements/css/hosts/icon-button.css +1 -1
- package/dist/elements/css/hosts/list.css +1 -1
- package/dist/elements/css/hosts/loading-indicator.css +1 -1
- package/dist/elements/css/hosts/menu.css +1 -1
- package/dist/elements/css/hosts/navigation-bar.css +1 -1
- package/dist/elements/css/hosts/navigation-rail.css +1 -1
- package/dist/elements/css/hosts/progress.css +1 -1
- package/dist/elements/css/hosts/radios.css +1 -1
- package/dist/elements/css/hosts/search.css +1 -1
- package/dist/elements/css/hosts/select.css +1 -1
- package/dist/elements/css/hosts/side-sheet.css +1 -1
- package/dist/elements/css/hosts/slider.css +1 -1
- package/dist/elements/css/hosts/snackbar.css +1 -1
- package/dist/elements/css/hosts/split-button.css +1 -1
- package/dist/elements/css/hosts/switch.css +1 -1
- package/dist/elements/css/hosts/tabs.css +1 -1
- package/dist/elements/css/hosts/text-field.css +1 -1
- package/dist/elements/css/hosts/timepicker.css +1 -1
- package/dist/elements/css/hosts/toolbar.css +1 -1
- package/dist/elements/css/hosts/tooltip.css +1 -1
- package/dist/elements/css/hosts/top-app-bar.css +1 -1
- package/dist/elements/css/icon-button.css +1 -1
- package/dist/elements/css/icon-button.js +1 -1
- package/dist/elements/css/menu.css +1 -1
- package/dist/elements/css/menu.js +1 -1
- package/dist/elements/css/navigation-bar.css +1 -1
- package/dist/elements/css/navigation-bar.js +1 -1
- package/dist/elements/css/navigation-rail.css +1 -1
- package/dist/elements/css/navigation-rail.js +1 -1
- package/dist/elements/css/search.css +1 -1
- package/dist/elements/css/search.js +1 -1
- package/dist/elements/css/slider.css +1 -1
- package/dist/elements/css/slider.js +1 -1
- package/dist/elements/css/text-field.css +1 -1
- package/dist/elements/css/text-field.js +1 -1
- package/dist/elements/css/timepicker.css +1 -1
- package/dist/elements/css/timepicker.js +1 -1
- package/dist/elements/datepicker.d.ts +6 -0
- package/dist/elements/define.d.ts +48 -0
- package/dist/elements/define.js +1 -1
- package/dist/elements/dialog.d.ts +5 -0
- package/dist/elements/divider.d.ts +4 -0
- package/dist/elements/drawer.d.ts +6 -0
- package/dist/elements/extended-fab.d.ts +5 -0
- package/dist/elements/fab-menu.d.ts +10 -0
- package/dist/elements/fab.d.ts +5 -0
- package/dist/elements/icon-button.d.ts +6 -0
- package/dist/elements/index.d.ts +4 -0
- package/dist/elements/list.d.ts +8 -0
- package/dist/elements/loading-indicator.d.ts +4 -0
- package/dist/elements/menu.d.ts +12 -0
- package/dist/elements/navigation-bar.d.ts +6 -0
- package/dist/elements/navigation-rail.d.ts +10 -0
- package/dist/elements/preupgrade/badge.css +1 -1
- package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
- package/dist/elements/preupgrade/bottom-sheet.css +1 -1
- package/dist/elements/preupgrade/button-group.css +1 -1
- package/dist/elements/preupgrade/button.css +1 -1
- package/dist/elements/preupgrade/card.css +1 -1
- package/dist/elements/preupgrade/carousel.css +1 -1
- package/dist/elements/preupgrade/checkbox.css +1 -1
- package/dist/elements/preupgrade/chips.css +1 -1
- package/dist/elements/preupgrade/datepicker.css +1 -1
- package/dist/elements/preupgrade/dialog.css +1 -1
- package/dist/elements/preupgrade/divider.css +1 -1
- package/dist/elements/preupgrade/drawer.css +1 -1
- package/dist/elements/preupgrade/extended-fab.css +1 -1
- package/dist/elements/preupgrade/fab-menu.css +1 -1
- package/dist/elements/preupgrade/fab.css +1 -1
- package/dist/elements/preupgrade/icon-button.css +1 -1
- package/dist/elements/preupgrade/list.css +1 -1
- package/dist/elements/preupgrade/loading-indicator.css +1 -1
- package/dist/elements/preupgrade/menu.css +1 -1
- package/dist/elements/preupgrade/navigation-bar.css +1 -1
- package/dist/elements/preupgrade/navigation-rail.css +1 -1
- package/dist/elements/preupgrade/progress.css +1 -1
- package/dist/elements/preupgrade/radios.css +1 -1
- package/dist/elements/preupgrade/search.css +1 -1
- package/dist/elements/preupgrade/select.css +1 -1
- package/dist/elements/preupgrade/side-sheet.css +1 -1
- package/dist/elements/preupgrade/slider.css +1 -1
- package/dist/elements/preupgrade/snackbar.css +1 -1
- package/dist/elements/preupgrade/split-button.css +1 -1
- package/dist/elements/preupgrade/switch.css +1 -1
- package/dist/elements/preupgrade/tabs.css +1 -1
- package/dist/elements/preupgrade/text-field.css +1 -1
- package/dist/elements/preupgrade/timepicker.css +1 -1
- package/dist/elements/preupgrade/toolbar.css +1 -1
- package/dist/elements/preupgrade/tooltip.css +1 -1
- package/dist/elements/preupgrade/top-app-bar.css +1 -1
- package/dist/elements/preupgrade.css +1 -1
- package/dist/elements/progress.d.ts +4 -0
- package/dist/elements/radios.d.ts +5 -0
- package/dist/elements/search.d.ts +15 -0
- package/dist/elements/select.d.ts +6 -0
- package/dist/elements/side-sheet.d.ts +5 -0
- package/dist/elements/slider.d.ts +7 -0
- package/dist/elements/snackbar.d.ts +4 -0
- package/dist/elements/split-button.d.ts +8 -0
- package/dist/elements/styles.d.ts +11 -0
- package/dist/elements/switch.d.ts +5 -0
- package/dist/elements/tabs.d.ts +6 -0
- package/dist/elements/text-field.d.ts +9 -0
- package/dist/elements/timepicker.d.ts +9 -0
- package/dist/elements/toolbar.d.ts +4 -0
- package/dist/elements/tooltip.d.ts +4 -0
- package/dist/elements/top-app-bar.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/react/create.d.ts +15 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/jsx.d.ts +3 -0
- package/dist/solid/create.d.ts +16 -0
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/jsx.d.ts +4 -0
- package/dist/ssr/index.d.ts +3 -0
- package/dist/ssr/solid.d.ts +1 -0
- package/dist/ssr/svelte.d.ts +1 -0
- package/dist/ssr/vue.d.ts +1 -0
- package/dist/styles/badge.css +1 -1
- package/dist/styles/base-lite.css +2 -2
- package/dist/styles/base.css +2 -2
- package/dist/styles/bottom-app-bar.css +1 -1
- package/dist/styles/bottom-sheet.css +1 -1
- package/dist/styles/button-group.css +1 -1
- package/dist/styles/button.css +2 -2
- package/dist/styles/card.css +1 -1
- package/dist/styles/carousel.css +2 -2
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/chips.css +2 -2
- package/dist/styles/contrast.css +1 -1
- package/dist/styles/datepicker.css +1 -1
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +2 -2
- package/dist/styles/extended-fab.css +1 -1
- package/dist/styles/fab-menu.css +2 -2
- package/dist/styles/fab.css +1 -1
- package/dist/styles/icon-button.css +2 -2
- package/dist/styles/list.css +1 -1
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +2 -2
- package/dist/styles/navigation-bar.css +2 -2
- package/dist/styles/navigation-rail.css +2 -2
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radios.css +1 -1
- package/dist/styles/search.css +2 -2
- package/dist/styles/select.css +1 -1
- package/dist/styles/side-sheet.css +1 -1
- package/dist/styles/slider.css +2 -2
- package/dist/styles/snackbar.css +1 -1
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/text-field.css +2 -2
- package/dist/styles/timepicker.css +2 -2
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/top-app-bar.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/styles.css +2 -2
- package/dist/svelte/runtime.d.ts +21 -0
- package/dist/theme/image.d.ts +2 -0
- package/dist/theme/index.d.ts +20 -0
- package/dist/theme/variants.d.ts +6 -0
- package/dist/theme/vendor/dynamiccolor/color_spec_2021.d.ts +1 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +39 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +13 -0
- package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.d.ts +1 -0
- package/dist/theme/vendor/hct/hct.d.ts +9 -0
- package/dist/themes/autumn-contrast.css +1 -1
- package/dist/themes/autumn.css +1 -1
- package/dist/themes/baseline-contrast.css +1 -1
- package/dist/themes/baseline.css +1 -1
- package/dist/themes/brownbeige-contrast.css +1 -1
- package/dist/themes/brownbeige.css +1 -1
- package/dist/themes/content-contrast.css +1 -1
- package/dist/themes/content.css +1 -1
- package/dist/themes/desert-contrast.css +1 -1
- package/dist/themes/desert.css +1 -1
- package/dist/themes/expressive-contrast.css +1 -1
- package/dist/themes/expressive.css +1 -1
- package/dist/themes/fidelity-contrast.css +1 -1
- package/dist/themes/fidelity.css +1 -1
- package/dist/themes/forest-contrast.css +1 -1
- package/dist/themes/forest.css +1 -1
- package/dist/themes/fruit-salad-contrast.css +1 -1
- package/dist/themes/fruit-salad.css +1 -1
- package/dist/themes/highcontrast-contrast.css +1 -1
- package/dist/themes/highcontrast.css +1 -1
- package/dist/themes/monochrome-contrast.css +1 -1
- package/dist/themes/monochrome.css +1 -1
- package/dist/themes/neutral-contrast.css +1 -1
- package/dist/themes/neutral.css +1 -1
- package/dist/themes/ocean-contrast.css +1 -1
- package/dist/themes/ocean.css +1 -1
- package/dist/themes/rainbow-contrast.css +1 -1
- package/dist/themes/rainbow.css +1 -1
- package/dist/themes/sageivory-contrast.css +1 -1
- package/dist/themes/sageivory.css +1 -1
- package/dist/themes/spring-contrast.css +1 -1
- package/dist/themes/spring.css +1 -1
- package/dist/themes/summer-contrast.css +1 -1
- package/dist/themes/summer.css +1 -1
- package/dist/themes/sunset-contrast.css +1 -1
- package/dist/themes/sunset.css +1 -1
- package/dist/themes/tealcaramel-contrast.css +1 -1
- package/dist/themes/tealcaramel.css +1 -1
- package/dist/themes/vibrant-contrast.css +1 -1
- package/dist/themes/vibrant.css +1 -1
- package/dist/vue/create.d.ts +18 -0
- package/dist/vue/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/styles/abstract/_mixins.scss +1 -1
- package/src/styles/components/_button.scss +1 -0
- package/src/styles/components/_carousel.scss +18 -4
- package/src/styles/components/_chips.scss +3 -2
- package/src/styles/components/_dialog.scss +1 -1
- package/src/styles/components/_drawer.scss +6 -3
- package/src/styles/components/_fab-menu.scss +1 -1
- package/src/styles/components/_icon-button.scss +2 -1
- package/src/styles/components/_menu.scss +14 -1
- package/src/styles/components/_navigation-bar.scss +6 -1
- package/src/styles/components/_navigation-rail.scss +5 -0
- package/src/styles/components/_search.scss +13 -0
- package/src/styles/components/_slider.scss +16 -39
- package/src/styles/components/_text-field.scss +9 -0
- package/src/styles/components/_timepicker.scss +1 -1
|
@@ -1,77 +1,213 @@
|
|
|
1
|
+
/** Progress variant types */
|
|
1
2
|
export type ProgressVariant = "linear" | "circular";
|
|
3
|
+
/** Progress thickness options */
|
|
2
4
|
export type ProgressThickness = "thin" | "thick" | number;
|
|
5
|
+
/** Progress shape options (linear only) */
|
|
3
6
|
export type ProgressShape = "flat" | "wavy";
|
|
7
|
+
/** Progress component event types */
|
|
4
8
|
export type ProgressEvent = "change" | "complete";
|
|
9
|
+
/** Configuration interface for the Progress component */
|
|
5
10
|
export interface ProgressConfig {
|
|
11
|
+
/**
|
|
12
|
+
* Progress variant that determines visual style
|
|
13
|
+
* @default 'linear'
|
|
14
|
+
*/
|
|
6
15
|
variant?: ProgressVariant;
|
|
16
|
+
/**
|
|
17
|
+
* Initial progress value (0-100)
|
|
18
|
+
* @default 0
|
|
19
|
+
*/
|
|
7
20
|
value?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the progress indicator is initially disabled
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
8
25
|
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Maximum value
|
|
28
|
+
* @default 100
|
|
29
|
+
*/
|
|
9
30
|
max?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Buffer value for linear progress with buffer (like video loading)
|
|
33
|
+
* @default 0
|
|
34
|
+
*/
|
|
10
35
|
buffer?: number;
|
|
36
|
+
/** Additional CSS classes to add to the progress component */
|
|
11
37
|
class?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Thickness of the progress track and indicator
|
|
40
|
+
* @default 'thin'
|
|
41
|
+
*/
|
|
12
42
|
thickness?: ProgressThickness;
|
|
43
|
+
/**
|
|
44
|
+
* Shape of the linear indeterminate progress animation
|
|
45
|
+
* @default 'flat'
|
|
46
|
+
*/
|
|
13
47
|
shape?: ProgressShape;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to show text label with percentage
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
14
52
|
showLabel?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Whether progress is indeterminate (shows animation without specific value)
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
15
57
|
indeterminate?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether to mark the end of a linear determinate track with a 4dp dot.
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
16
62
|
showStopIndicator?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Accessible name: what is loading, such as "Loading news article"
|
|
65
|
+
* @default 'Loading'
|
|
66
|
+
*/
|
|
17
67
|
ariaLabel?: string;
|
|
68
|
+
/** Custom label formatter function */
|
|
18
69
|
labelFormatter?: (value: number, max: number) => string;
|
|
70
|
+
/**
|
|
71
|
+
* Component prefix for class names
|
|
72
|
+
* @default 'mtrl'
|
|
73
|
+
*/
|
|
19
74
|
prefix?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Component name used in class generation
|
|
77
|
+
* @default 'progress'
|
|
78
|
+
*/
|
|
20
79
|
componentName?: string;
|
|
80
|
+
/** DOM structure schema */
|
|
21
81
|
schema?: object;
|
|
82
|
+
/**
|
|
83
|
+
* Size of the circular progress indicator in dp (only for circular variant)
|
|
84
|
+
* @default 40 (48 when wavy)
|
|
85
|
+
*/
|
|
22
86
|
size?: number;
|
|
23
87
|
}
|
|
88
|
+
/** Progress component interface */
|
|
89
|
+
/** What progress events carry. */
|
|
24
90
|
export interface ProgressEventPayload {
|
|
25
91
|
value: number;
|
|
26
92
|
max: number;
|
|
27
93
|
}
|
|
94
|
+
/** The progress events. */
|
|
28
95
|
export interface ProgressEvents {
|
|
96
|
+
/** The value was set */
|
|
29
97
|
change: (event: ProgressEventPayload) => void;
|
|
98
|
+
/** The value reached the maximum */
|
|
30
99
|
complete: (event: ProgressEventPayload) => void;
|
|
31
100
|
}
|
|
101
|
+
/** What the progress draws with. */
|
|
32
102
|
export interface ProgressInternals {
|
|
103
|
+
/** The canvas the indicator is drawn on */
|
|
33
104
|
canvas: HTMLCanvasElement;
|
|
105
|
+
/** Re-measures the canvas and redraws; the component does this on resize */
|
|
34
106
|
resize: () => void;
|
|
107
|
+
/** The canvas again: these three named the parts of the SVG this replaced */
|
|
35
108
|
track: SVGElement;
|
|
36
109
|
indicator: SVGElement;
|
|
37
110
|
buffer: SVGElement;
|
|
38
111
|
}
|
|
39
112
|
export interface ProgressComponent {
|
|
113
|
+
/** The component's root DOM element */
|
|
40
114
|
element: HTMLElement;
|
|
115
|
+
/**
|
|
116
|
+
* Gets a class name with the component's prefix
|
|
117
|
+
* @param name
|
|
118
|
+
*/
|
|
41
119
|
getClass: (name: string) => string;
|
|
120
|
+
/**
|
|
121
|
+
* Sets the progress value
|
|
122
|
+
* @param value
|
|
123
|
+
* @param animate
|
|
124
|
+
*/
|
|
42
125
|
setValue: (value: number, animate?: boolean) => ProgressComponent;
|
|
126
|
+
/** Gets the current progress value */
|
|
43
127
|
getValue: () => number;
|
|
128
|
+
/** Gets the maximum progress value */
|
|
44
129
|
getMax: () => number;
|
|
130
|
+
/**
|
|
131
|
+
* Sets the buffer value (for linear variant with buffer indicators)
|
|
132
|
+
* @param value
|
|
133
|
+
*/
|
|
45
134
|
setBuffer: (value: number) => ProgressComponent;
|
|
135
|
+
/** Gets the current buffer value */
|
|
46
136
|
getBuffer: () => number;
|
|
137
|
+
/** Enables the progress component */
|
|
47
138
|
enable: () => ProgressComponent;
|
|
139
|
+
/** Disables the progress component */
|
|
48
140
|
disable: () => ProgressComponent;
|
|
141
|
+
/** Checks if the component is disabled */
|
|
49
142
|
isDisabled: () => boolean;
|
|
143
|
+
/** Hides the progress component */
|
|
50
144
|
hide: () => ProgressComponent;
|
|
145
|
+
/** Shows the progress component */
|
|
51
146
|
show: () => ProgressComponent;
|
|
147
|
+
/** Checks if the progress component is visible */
|
|
52
148
|
isVisible: () => boolean;
|
|
149
|
+
/** Shows the label element */
|
|
53
150
|
showLabel: () => ProgressComponent;
|
|
151
|
+
/** Hides the label element */
|
|
54
152
|
hideLabel: () => ProgressComponent;
|
|
153
|
+
/**
|
|
154
|
+
* Sets a custom formatter for the label
|
|
155
|
+
* @param formatter
|
|
156
|
+
*/
|
|
55
157
|
setLabelFormatter: (formatter: (value: number, max: number) => string) => ProgressComponent;
|
|
158
|
+
/**
|
|
159
|
+
* Sets the thickness of the progress track and indicator
|
|
160
|
+
* @param thickness
|
|
161
|
+
*/
|
|
56
162
|
setThickness: (thickness: ProgressThickness) => ProgressComponent;
|
|
163
|
+
/** Gets the current thickness value in pixels */
|
|
57
164
|
getThickness: () => number;
|
|
165
|
+
/**
|
|
166
|
+
* Sets the shape of the linear indeterminate progress animation
|
|
167
|
+
* @param shape
|
|
168
|
+
*/
|
|
58
169
|
setShape: (shape: ProgressShape) => ProgressComponent;
|
|
170
|
+
/** Gets the current shape value */
|
|
59
171
|
getShape: () => ProgressShape;
|
|
172
|
+
/**
|
|
173
|
+
* Sets the indeterminate state
|
|
174
|
+
* @param indeterminate
|
|
175
|
+
*/
|
|
60
176
|
setIndeterminate: (indeterminate: boolean) => ProgressComponent;
|
|
177
|
+
/** Checks if the component is in indeterminate state */
|
|
61
178
|
isIndeterminate: () => boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Sets the size of the circular progress indicator
|
|
181
|
+
* @param size
|
|
182
|
+
*/
|
|
62
183
|
setSize: (size: number) => ProgressComponent;
|
|
184
|
+
/** Gets the current size of the circular progress indicator */
|
|
63
185
|
getSize: () => number | undefined;
|
|
186
|
+
/** Returns a Promise that resolves after the current canvas state has been painted to screen. */
|
|
64
187
|
painted: () => Promise<void>;
|
|
188
|
+
/** Adds an event listener: `change` when the value is set, `complete` when it reaches the maximum. */
|
|
65
189
|
on: <K extends keyof ProgressEvents>(event: K, handler: ProgressEvents[K]) => ProgressComponent;
|
|
190
|
+
/** Removes an event listener */
|
|
66
191
|
off: <K extends keyof ProgressEvents>(event: K, handler: ProgressEvents[K]) => ProgressComponent;
|
|
192
|
+
/** Destroys the progress component and cleans up resources */
|
|
67
193
|
destroy: () => void;
|
|
194
|
+
/**
|
|
195
|
+
* Adds CSS classes to the progress element
|
|
196
|
+
* @param classes
|
|
197
|
+
*/
|
|
68
198
|
addClass: (...classes: string[]) => ProgressComponent;
|
|
199
|
+
/** API for managing disabled state */
|
|
69
200
|
disabled: {
|
|
201
|
+
/** Enables the progress */
|
|
70
202
|
enable: () => void;
|
|
203
|
+
/** Disables the progress */
|
|
71
204
|
disable: () => void;
|
|
205
|
+
/** Checks if the progress is disabled */
|
|
72
206
|
isDisabled: () => boolean;
|
|
73
207
|
};
|
|
208
|
+
/** API for managing component lifecycle */
|
|
74
209
|
lifecycle: {
|
|
210
|
+
/** Destroys the component and cleans up resources */
|
|
75
211
|
destroy: () => void;
|
|
76
212
|
};
|
|
77
213
|
}
|
|
@@ -1,18 +1,32 @@
|
|
|
1
|
+
/** Radio states for styling and behavior */
|
|
1
2
|
export declare const RADIO_STATES: {
|
|
3
|
+
/** Radio is selected */
|
|
2
4
|
readonly CHECKED: "checked";
|
|
5
|
+
/** Radio is not selected */
|
|
3
6
|
readonly UNCHECKED: "unchecked";
|
|
7
|
+
/** Radio is disabled */
|
|
4
8
|
readonly DISABLED: "disabled";
|
|
9
|
+
/** Radio has keyboard focus */
|
|
5
10
|
readonly FOCUSED: "focused";
|
|
6
11
|
};
|
|
12
|
+
/** Radio layout directions */
|
|
7
13
|
export declare const RADIO_DIRECTIONS: {
|
|
14
|
+
/** Radios stacked vertically */
|
|
8
15
|
readonly VERTICAL: "vertical";
|
|
16
|
+
/** Radios arranged horizontally */
|
|
9
17
|
readonly HORIZONTAL: "horizontal";
|
|
10
18
|
};
|
|
19
|
+
/** Radio events */
|
|
11
20
|
export declare const RADIO_EVENTS: {
|
|
21
|
+
/** Fired when a radio button is selected */
|
|
12
22
|
readonly CHANGE: "change";
|
|
23
|
+
/** Native input focus event; listen on the input, not the group emitter. */
|
|
13
24
|
readonly FOCUS: "focus";
|
|
25
|
+
/** Native input blur event; listen on the input, not the group emitter. */
|
|
14
26
|
readonly BLUR: "blur";
|
|
15
27
|
};
|
|
28
|
+
/** Default configuration values */
|
|
16
29
|
export declare const RADIO_DEFAULTS: {
|
|
30
|
+
/** Default radio direction */
|
|
17
31
|
readonly DIRECTION: "vertical";
|
|
18
32
|
};
|
|
@@ -1,53 +1,142 @@
|
|
|
1
|
+
/** Configuration for a radio option in the Radios component */
|
|
1
2
|
export interface RadioOptionConfig {
|
|
3
|
+
/** Radio input value attribute */
|
|
2
4
|
value: string;
|
|
5
|
+
/** Radio label text content */
|
|
3
6
|
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the radio is initially disabled
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
4
11
|
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to position the label before the radio
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
5
16
|
labelBefore?: boolean;
|
|
6
17
|
}
|
|
18
|
+
/** Configuration interface for the Radios component */
|
|
7
19
|
export interface RadiosConfig {
|
|
20
|
+
/** Radio input name attribute used for grouping radios */
|
|
8
21
|
name: string;
|
|
22
|
+
/** Array of radio option configurations */
|
|
9
23
|
options?: RadioOptionConfig[];
|
|
24
|
+
/** Initial selected value */
|
|
10
25
|
value?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Layout direction for radio buttons
|
|
28
|
+
* @default 'vertical'
|
|
29
|
+
*/
|
|
11
30
|
direction?: 'vertical' | 'horizontal';
|
|
31
|
+
/**
|
|
32
|
+
* Whether the entire group is initially disabled
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
12
35
|
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to enable ripple effect
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
13
40
|
ripple?: boolean;
|
|
41
|
+
/** Additional CSS classes to add to the radios component */
|
|
14
42
|
class?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Component prefix for class names
|
|
45
|
+
* @default 'mtrl'
|
|
46
|
+
*/
|
|
15
47
|
prefix?: string;
|
|
48
|
+
/** Component name used in class generation */
|
|
16
49
|
componentName?: string;
|
|
17
50
|
}
|
|
51
|
+
/** Interface for a single radio in the Radios component */
|
|
18
52
|
export interface RadioItem {
|
|
53
|
+
/** The radio container element */
|
|
19
54
|
element: HTMLElement;
|
|
55
|
+
/** The actual radio input element */
|
|
20
56
|
input: HTMLInputElement;
|
|
57
|
+
/** The label element */
|
|
21
58
|
label: HTMLLabelElement;
|
|
59
|
+
/** The radio option configuration */
|
|
22
60
|
config: RadioOptionConfig;
|
|
61
|
+
/** Destroys the radio and removes event listeners */
|
|
23
62
|
destroy: () => void;
|
|
24
63
|
}
|
|
64
|
+
/** Selection or unknown-value clearing reported by the radio group. */
|
|
25
65
|
export interface RadiosChangePayload {
|
|
66
|
+
/** Selected value, or null when nothing is selected: the value `getValue()` reads. */
|
|
26
67
|
value: string | null;
|
|
68
|
+
/** Native input change event; undefined for programmatic clearing. */
|
|
27
69
|
originalEvent: Event | undefined;
|
|
70
|
+
/** Selected option, or null when an unknown value clears selection. */
|
|
28
71
|
option: RadioOptionConfig | null;
|
|
29
72
|
}
|
|
73
|
+
/** Group emitter events. */
|
|
30
74
|
export interface RadiosEvents {
|
|
31
75
|
change: (payload: RadiosChangePayload) => void;
|
|
32
76
|
}
|
|
77
|
+
/** Radios component interface */
|
|
33
78
|
export interface RadiosComponent {
|
|
79
|
+
/** The radios container DOM element */
|
|
34
80
|
element: HTMLElement;
|
|
81
|
+
/** Array of radio items in the group */
|
|
35
82
|
radios: RadioItem[];
|
|
83
|
+
/** API for managing component lifecycle */
|
|
36
84
|
lifecycle: {
|
|
85
|
+
/** Destroys the component and cleans up resources */
|
|
37
86
|
destroy: () => void;
|
|
38
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
* Gets a class name with the component's prefix
|
|
90
|
+
* @param name
|
|
91
|
+
*/
|
|
39
92
|
getClass: (name: string) => string;
|
|
93
|
+
/** Gets the selected value */
|
|
40
94
|
getValue: () => string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Sets the radios component value (selects a radio).
|
|
97
|
+
* @param value
|
|
98
|
+
*/
|
|
41
99
|
setValue: (value: string | null) => RadiosComponent;
|
|
100
|
+
/** Gets the selected radio option's configuration */
|
|
42
101
|
getSelected: () => RadioOptionConfig | null;
|
|
102
|
+
/**
|
|
103
|
+
* Adds a radio option to the radios component
|
|
104
|
+
* @param option
|
|
105
|
+
*/
|
|
43
106
|
addOption: (option: RadioOptionConfig) => RadiosComponent;
|
|
107
|
+
/**
|
|
108
|
+
* Removes a radio option from the radios component
|
|
109
|
+
* @param value
|
|
110
|
+
*/
|
|
44
111
|
removeOption: (value: string) => RadiosComponent;
|
|
112
|
+
/** Enables the radios component */
|
|
45
113
|
enable: () => RadiosComponent;
|
|
114
|
+
/** Disables the radios component */
|
|
46
115
|
disable: () => RadiosComponent;
|
|
116
|
+
/** Whether the whole group is disabled */
|
|
47
117
|
isDisabled: () => boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Enables a specific radio option
|
|
120
|
+
* @param value
|
|
121
|
+
*/
|
|
48
122
|
enableOption: (value: string) => RadiosComponent;
|
|
123
|
+
/**
|
|
124
|
+
* Disables a specific radio option
|
|
125
|
+
* @param value
|
|
126
|
+
*/
|
|
49
127
|
disableOption: (value: string) => RadiosComponent;
|
|
128
|
+
/** Destroys the radios component and all radio items */
|
|
50
129
|
destroy: () => void;
|
|
130
|
+
/**
|
|
131
|
+
* Adds an event listener to the radios component
|
|
132
|
+
* @param event
|
|
133
|
+
* @param handler
|
|
134
|
+
*/
|
|
51
135
|
on: <K extends keyof RadiosEvents>(event: K, handler: RadiosEvents[K]) => RadiosComponent;
|
|
136
|
+
/**
|
|
137
|
+
* Removes an event listener from the radios component
|
|
138
|
+
* @param event
|
|
139
|
+
* @param handler
|
|
140
|
+
*/
|
|
52
141
|
off: <K extends keyof RadiosEvents>(event: K, handler: RadiosEvents[K]) => RadiosComponent;
|
|
53
142
|
}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
+
/** Search component states (bar = collapsed, view = expanded) */
|
|
1
2
|
export declare const SEARCH_STATES: {
|
|
3
|
+
/** Collapsed search bar state */
|
|
2
4
|
readonly BAR: "bar";
|
|
5
|
+
/** Expanded search view state */
|
|
3
6
|
readonly VIEW: "view";
|
|
4
7
|
};
|
|
8
|
+
/** Search view display modes */
|
|
5
9
|
export declare const SEARCH_VARIANTS: {
|
|
10
|
+
/** M3 Expressive: a filled bar, results in their own container */
|
|
6
11
|
readonly CONTAINED: "contained";
|
|
12
|
+
/** Baseline: a divider between the bar and its results */
|
|
7
13
|
readonly DIVIDED: "divided";
|
|
8
14
|
};
|
|
9
15
|
export declare const SEARCH_VIEW_MODES: {
|
|
16
|
+
/** Inline docked view (360-720dp width, max 2/3 screen height) */
|
|
10
17
|
readonly DOCKED: "docked";
|
|
18
|
+
/** Full-screen overlay view */
|
|
11
19
|
readonly FULLSCREEN: "fullscreen";
|
|
12
20
|
};
|
|
21
|
+
/** MD3 Search component measurements */
|
|
13
22
|
export declare const SEARCH_MEASUREMENTS: {
|
|
14
23
|
readonly BAR_HEIGHT: 56;
|
|
15
24
|
readonly BAR_MIN_WIDTH: 360;
|
|
@@ -24,32 +33,56 @@ export declare const SEARCH_MEASUREMENTS: {
|
|
|
24
33
|
readonly AVATAR_SIZE: 30;
|
|
25
34
|
readonly ICON_SPACING: 16;
|
|
26
35
|
};
|
|
36
|
+
/** Search component event types */
|
|
27
37
|
export declare const SEARCH_EVENTS: {
|
|
38
|
+
/** Fired when search input receives focus */
|
|
28
39
|
readonly FOCUS: "focus";
|
|
40
|
+
/** Fired when search input loses focus */
|
|
29
41
|
readonly BLUR: "blur";
|
|
42
|
+
/** Fired when input value changes */
|
|
30
43
|
readonly INPUT: "input";
|
|
44
|
+
/** Fired when search is submitted (Enter key or submit action) */
|
|
31
45
|
readonly SUBMIT: "submit";
|
|
46
|
+
/** Fired when search input is cleared */
|
|
32
47
|
readonly CLEAR: "clear";
|
|
48
|
+
/** Fired when search bar expands to view */
|
|
33
49
|
readonly EXPAND: "expand";
|
|
50
|
+
/** Fired when search view collapses to bar */
|
|
34
51
|
readonly COLLAPSE: "collapse";
|
|
52
|
+
/** Fired when a suggestion is selected */
|
|
35
53
|
readonly SUGGESTION_SELECT: "suggestionSelect";
|
|
36
54
|
};
|
|
55
|
+
/** Default search icons (MD3 standard) */
|
|
37
56
|
export declare const SEARCH_ICONS: {
|
|
57
|
+
/** Search/magnifying glass icon */
|
|
38
58
|
readonly SEARCH: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\"/></svg>";
|
|
59
|
+
/** Back/arrow left icon (for view state) */
|
|
39
60
|
readonly BACK: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\"/></svg>";
|
|
61
|
+
/** Clear/close icon */
|
|
40
62
|
readonly CLEAR: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"/></svg>";
|
|
63
|
+
/** Microphone icon (voice search) */
|
|
41
64
|
readonly MIC: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z\"/></svg>";
|
|
65
|
+
/** History/clock icon (for recent searches) */
|
|
42
66
|
readonly HISTORY: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z\"/></svg>";
|
|
43
67
|
};
|
|
68
|
+
/** Default configuration values */
|
|
44
69
|
export declare const SEARCH_DEFAULTS: {
|
|
70
|
+
/** Default state (collapsed bar) */
|
|
45
71
|
readonly STATE: "bar";
|
|
72
|
+
/** Default view mode when expanded */
|
|
46
73
|
readonly VIEW_MODE: "docked";
|
|
74
|
+
/** Default placeholder/supporting text */
|
|
47
75
|
readonly PLACEHOLDER: "Search";
|
|
76
|
+
/** Default value */
|
|
48
77
|
readonly VALUE: "";
|
|
78
|
+
/** Whether to show clear button when input has value */
|
|
49
79
|
readonly SHOW_CLEAR_BUTTON: true;
|
|
80
|
+
/** Default disabled state */
|
|
50
81
|
readonly DISABLED: false;
|
|
82
|
+
/** Default full-width state */
|
|
51
83
|
readonly FULL_WIDTH: false;
|
|
52
84
|
};
|
|
85
|
+
/** CSS class names used by the search component */
|
|
53
86
|
export declare const SEARCH_CLASSES: {
|
|
54
87
|
readonly ROOT: "search";
|
|
55
88
|
readonly STATE_BAR: "search--bar";
|
|
@@ -84,6 +117,7 @@ export declare const SEARCH_CLASSES: {
|
|
|
84
117
|
readonly SUGGESTION_DIVIDER: "search__suggestion-divider";
|
|
85
118
|
readonly STATUS: "search__status";
|
|
86
119
|
};
|
|
120
|
+
/** Keyboard keys for search interaction */
|
|
87
121
|
export declare const SEARCH_KEYS: {
|
|
88
122
|
readonly ENTER: "Enter";
|
|
89
123
|
readonly ESCAPE: "Escape";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { SearchConfig, SearchComponent } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new Search component following Material Design 3 specifications
|
|
4
|
+
* @param config
|
|
5
|
+
*/
|
|
2
6
|
declare const createSearch: (config?: SearchConfig) => SearchComponent;
|
|
3
7
|
export default createSearch;
|