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,63 +1,167 @@
|
|
|
1
1
|
import type { ButtonComponent } from "../button/types.js";
|
|
2
2
|
import type { EventCallback } from "../../core/state/emitter.js";
|
|
3
|
+
/** Dialog size types - determines the width and height of the dialog */
|
|
3
4
|
export type DialogSize = 'small' | 'medium' | 'large' | 'fullwidth' | 'fullscreen';
|
|
5
|
+
/** Dialog animation types - controls how the dialog appears and disappears */
|
|
4
6
|
export type DialogAnimation = 'scale' | 'slide-up' | 'slide-down' | 'fade';
|
|
7
|
+
/** Dialog footer alignment types - controls how buttons in the footer are aligned */
|
|
5
8
|
export type DialogFooterAlignment = 'right' | 'left' | 'center' | 'space-between';
|
|
9
|
+
/** Dialog event types - events that can be listened to with the on() method */
|
|
6
10
|
export type DialogEventType = 'open' | 'close' | 'beforeopen' | 'beforeclose' | 'afteropen' | 'afterclose';
|
|
11
|
+
/** Configuration interface for the Dialog component */
|
|
7
12
|
export interface DialogConfig {
|
|
13
|
+
/** Dialog title text - appears in the header */
|
|
8
14
|
title?: string;
|
|
15
|
+
/** Dialog subtitle text - appears below title in smaller text */
|
|
9
16
|
subtitle?: string;
|
|
17
|
+
/** Dialog content (text or HTML) Can include rich content like forms, images, etc. */
|
|
10
18
|
content?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to show a close affordance in the header.
|
|
21
|
+
* @default false (true for the fullscreen size)
|
|
22
|
+
*/
|
|
11
23
|
closeButton?: boolean;
|
|
24
|
+
/** Accessible name for a dialog without a headline */
|
|
12
25
|
ariaLabel?: string;
|
|
26
|
+
/** ARIA role for the dialog. */
|
|
13
27
|
role?: 'alertdialog' | 'dialog';
|
|
28
|
+
/** Additional CSS classes to apply to the dialog */
|
|
14
29
|
class?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Dialog size variant
|
|
32
|
+
* @default "medium"
|
|
33
|
+
*/
|
|
15
34
|
size?: DialogSize | string;
|
|
35
|
+
/**
|
|
36
|
+
* Dialog animation variant
|
|
37
|
+
* @default "scale"
|
|
38
|
+
*/
|
|
16
39
|
animation?: DialogAnimation | string;
|
|
40
|
+
/**
|
|
41
|
+
* Footer buttons alignment
|
|
42
|
+
* @default "right"
|
|
43
|
+
*/
|
|
17
44
|
footerAlignment?: DialogFooterAlignment | string;
|
|
45
|
+
/**
|
|
46
|
+
* Whether dialog is initially open
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
18
49
|
open?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to close when clicking overlay background
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
19
54
|
closeOnOverlayClick?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether to close when Escape key is pressed Escape is handled as a key press, in both layers, by the topmost open dialog only, and after whatever is open inside it (a menu, a select) has had the key.
|
|
57
|
+
* @default true
|
|
58
|
+
*/
|
|
20
59
|
closeOnEscape?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether dialog should be modal
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
21
64
|
modal?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Whether to focus the first focusable element when opened
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
22
69
|
autofocus?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Whether to trap focus within dialog when opened
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
23
74
|
trapFocus?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Parent element to append dialog to.
|
|
77
|
+
* @default document.body
|
|
78
|
+
*/
|
|
24
79
|
container?: HTMLElement;
|
|
80
|
+
/** `"top"` makes the dialog itself a `<dialog>` element, rendered in place in `container` (or `document.body`) and kept there when it closes, and opens it with `showModal()`: in the browser's top layer, above every z-index and outside any clipping ancestor, with the rest of the page inert. */
|
|
25
81
|
layer?: "top";
|
|
82
|
+
/** Footer buttons configuration */
|
|
26
83
|
buttons?: DialogButton[];
|
|
84
|
+
/**
|
|
85
|
+
* Whether to show a divider between header and content
|
|
86
|
+
* @default false
|
|
87
|
+
*/
|
|
27
88
|
divider?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Dialog z-index - controls stacking order
|
|
91
|
+
* @default 1000
|
|
92
|
+
*/
|
|
28
93
|
zIndex?: number;
|
|
94
|
+
/** How long `afteropen` and `afterclose` wait after opening and closing, in milliseconds, and when a closed dialog leaves the DOM. */
|
|
29
95
|
animationDuration?: number;
|
|
96
|
+
/** Event handlers for dialog events */
|
|
30
97
|
on?: {
|
|
31
98
|
[key in DialogEventType]?: (event: DialogEvent) => void;
|
|
32
99
|
};
|
|
33
100
|
}
|
|
101
|
+
/** Dialog button configuration Defines the appearance and behavior of buttons in the dialog footer. */
|
|
34
102
|
export interface DialogButton {
|
|
103
|
+
/** Button text label */
|
|
35
104
|
text: string;
|
|
105
|
+
/**
|
|
106
|
+
* Button variant (uses button component variants)
|
|
107
|
+
* @default "text"
|
|
108
|
+
*/
|
|
36
109
|
variant?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Button size
|
|
112
|
+
* @default "medium"
|
|
113
|
+
*/
|
|
37
114
|
size?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Button click handler
|
|
117
|
+
* @param event
|
|
118
|
+
* @param dialog
|
|
119
|
+
*/
|
|
38
120
|
onClick?: (event: MouseEvent, dialog: DialogComponent) => void | boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Whether to close the dialog when this button is clicked
|
|
123
|
+
* @default true
|
|
124
|
+
*/
|
|
39
125
|
closeDialog?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Whether to autofocus this button when the dialog opens
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
40
130
|
autofocus?: boolean;
|
|
131
|
+
/** Additional button attributes to pass to the button element */
|
|
41
132
|
attributes?: Record<string, unknown>;
|
|
42
133
|
}
|
|
134
|
+
/** Dialog event object Passed to event handlers registered with the on() method. */
|
|
43
135
|
export interface DialogEvent {
|
|
136
|
+
/** Dialog component instance that triggered the event */
|
|
44
137
|
dialog: DialogComponent;
|
|
138
|
+
/** Original browser event if applicable */
|
|
45
139
|
originalEvent?: Event;
|
|
140
|
+
/** Call this method to prevent the default action */
|
|
46
141
|
preventDefault: () => void;
|
|
142
|
+
/** Whether the default action was prevented */
|
|
47
143
|
defaultPrevented: boolean;
|
|
48
144
|
}
|
|
145
|
+
/** Dialog component interface */
|
|
146
|
+
/** The elements withStructure builds and hangs off the component. */
|
|
49
147
|
export interface DialogStructure {
|
|
148
|
+
/** Always built by withStructure, whatever the config */
|
|
50
149
|
header: HTMLElement;
|
|
150
|
+
/** Always built by withStructure, whatever the config */
|
|
51
151
|
content: HTMLElement;
|
|
152
|
+
/** Only when the dialog has buttons, and set back to null when the last goes */
|
|
52
153
|
footer: HTMLElement | null;
|
|
154
|
+
/** The <hr> elements between the sections, only while shown */
|
|
53
155
|
headerDivider: HTMLElement | null;
|
|
54
156
|
footerDivider: HTMLElement | null;
|
|
55
157
|
container: HTMLElement;
|
|
56
158
|
}
|
|
159
|
+
/** A footer button as the dialog keeps it: the live button component and the config it was built from. */
|
|
57
160
|
export interface DialogButtonRecord {
|
|
58
161
|
instance: ButtonComponent;
|
|
59
162
|
config: DialogButton;
|
|
60
163
|
}
|
|
164
|
+
/** What a dialog feature needs from the component it is handed. */
|
|
61
165
|
export interface DialogFeatureComponent {
|
|
62
166
|
element: HTMLElement;
|
|
63
167
|
config: DialogConfig & Record<string, unknown>;
|
|
@@ -67,47 +171,139 @@ export interface DialogFeatureComponent {
|
|
|
67
171
|
emit: (event: string, data?: unknown) => unknown;
|
|
68
172
|
_buttons?: DialogButtonRecord[];
|
|
69
173
|
}
|
|
174
|
+
/** A dialog that has been through withStructure. */
|
|
70
175
|
export interface DialogStructured extends DialogFeatureComponent {
|
|
71
176
|
overlay: HTMLElement;
|
|
72
177
|
structure: DialogStructure;
|
|
73
178
|
}
|
|
74
179
|
export interface DialogComponent {
|
|
180
|
+
/** The dialog's root DOM element */
|
|
75
181
|
element: HTMLElement;
|
|
182
|
+
/** The dialog's overlay/backdrop element */
|
|
76
183
|
overlay: HTMLElement;
|
|
184
|
+
/** Opens the dialog. */
|
|
77
185
|
open: () => DialogComponent;
|
|
186
|
+
/** Closes the dialog. */
|
|
78
187
|
close: () => DialogComponent;
|
|
188
|
+
/**
|
|
189
|
+
* Toggles dialog open/closed state
|
|
190
|
+
* @param open
|
|
191
|
+
*/
|
|
79
192
|
toggle: (open?: boolean) => DialogComponent;
|
|
193
|
+
/** Checks if dialog is currently open. */
|
|
80
194
|
isOpen: () => boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Sets dialog title text
|
|
197
|
+
* @param title
|
|
198
|
+
*/
|
|
81
199
|
setTitle: (title: string) => DialogComponent;
|
|
200
|
+
/** Gets dialog current title text */
|
|
82
201
|
getTitle: () => string;
|
|
202
|
+
/**
|
|
203
|
+
* Sets dialog subtitle text
|
|
204
|
+
* @param subtitle
|
|
205
|
+
*/
|
|
83
206
|
setSubtitle: (subtitle: string) => DialogComponent;
|
|
207
|
+
/** Gets dialog current subtitle text */
|
|
84
208
|
getSubtitle: () => string;
|
|
209
|
+
/**
|
|
210
|
+
* Sets dialog content
|
|
211
|
+
* @param content
|
|
212
|
+
*/
|
|
85
213
|
setContent: (content: string) => DialogComponent;
|
|
214
|
+
/** Gets dialog content */
|
|
86
215
|
getContent: () => string;
|
|
216
|
+
/**
|
|
217
|
+
* Adds a button to the dialog footer
|
|
218
|
+
* @param button
|
|
219
|
+
*/
|
|
87
220
|
addButton: (button: DialogButton) => DialogComponent;
|
|
221
|
+
/**
|
|
222
|
+
* Removes a button by index or text
|
|
223
|
+
* @param indexOrText
|
|
224
|
+
*/
|
|
88
225
|
removeButton: (indexOrText: number | string) => DialogComponent;
|
|
226
|
+
/** Gets all footer buttons */
|
|
89
227
|
getButtons: () => DialogButton[];
|
|
228
|
+
/**
|
|
229
|
+
* Sets footer button alignment
|
|
230
|
+
* @param alignment
|
|
231
|
+
*/
|
|
90
232
|
setFooterAlignment: (alignment: DialogFooterAlignment | string) => DialogComponent;
|
|
233
|
+
/**
|
|
234
|
+
* Sets dialog size
|
|
235
|
+
* @param size
|
|
236
|
+
*/
|
|
91
237
|
setSize: (size: DialogSize | string) => DialogComponent;
|
|
238
|
+
/**
|
|
239
|
+
* Adds an event listener to the dialog
|
|
240
|
+
* @param event
|
|
241
|
+
* @param handler
|
|
242
|
+
*/
|
|
92
243
|
on: (event: DialogEventType | string, handler: (event: DialogEvent) => void) => DialogComponent;
|
|
244
|
+
/**
|
|
245
|
+
* Removes an event listener from the dialog
|
|
246
|
+
* @param event
|
|
247
|
+
* @param handler
|
|
248
|
+
*/
|
|
93
249
|
off: (event: DialogEventType | string, handler: (event: DialogEvent) => void) => DialogComponent;
|
|
250
|
+
/** Gets dialog header element */
|
|
94
251
|
getHeaderElement: () => HTMLElement | null;
|
|
252
|
+
/** Gets dialog content element */
|
|
95
253
|
getContentElement: () => HTMLElement | null;
|
|
254
|
+
/** Gets dialog footer element */
|
|
96
255
|
getFooterElement: () => HTMLElement | null;
|
|
256
|
+
/**
|
|
257
|
+
* Shows or hides the divider between header and content
|
|
258
|
+
* @param show
|
|
259
|
+
*/
|
|
97
260
|
toggleDivider: (show: boolean) => DialogComponent;
|
|
261
|
+
/** Checks if the dialog has a divider visible */
|
|
98
262
|
hasDivider: () => boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Creates a confirmation dialog with Yes/No buttons
|
|
265
|
+
* @param options
|
|
266
|
+
*/
|
|
99
267
|
confirm: (options?: DialogConfirmOptions) => Promise<boolean>;
|
|
268
|
+
/** Destroys the dialog and removes it from DOM */
|
|
100
269
|
destroy: () => void;
|
|
101
270
|
}
|
|
271
|
+
/** Options for confirmation dialog Used with the dialog.confirm() method to create a simple confirmation dialog with customizable options. */
|
|
102
272
|
export interface DialogConfirmOptions {
|
|
273
|
+
/**
|
|
274
|
+
* Confirmation dialog title
|
|
275
|
+
* @default "Confirm"
|
|
276
|
+
*/
|
|
103
277
|
title?: string;
|
|
278
|
+
/** Confirmation message/question to display */
|
|
104
279
|
message: string;
|
|
280
|
+
/**
|
|
281
|
+
* Confirm button text
|
|
282
|
+
* @default "Yes"
|
|
283
|
+
*/
|
|
105
284
|
confirmText?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Cancel button text
|
|
287
|
+
* @default "No"
|
|
288
|
+
*/
|
|
106
289
|
cancelText?: string;
|
|
290
|
+
/**
|
|
291
|
+
* Confirm button variant
|
|
292
|
+
* @default "filled"
|
|
293
|
+
*/
|
|
107
294
|
confirmVariant?: string;
|
|
295
|
+
/**
|
|
296
|
+
* Cancel button variant
|
|
297
|
+
* @default "text"
|
|
298
|
+
*/
|
|
108
299
|
cancelVariant?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Dialog size for the confirmation dialog
|
|
302
|
+
* @default "small"
|
|
303
|
+
*/
|
|
109
304
|
size?: DialogSize | string;
|
|
110
305
|
}
|
|
306
|
+
/** Registers DialogConfig with the global defaults map, so `setComponentDefaults("dialog", ...)` is typed without core importing anything from this component. */
|
|
111
307
|
declare module "../../core/config/global" {
|
|
112
308
|
interface ComponentConfigMap {
|
|
113
309
|
dialog?: Partial<DialogConfig>;
|
|
@@ -1,13 +1,43 @@
|
|
|
1
|
+
/** Configuration options for divider components Controls the appearance, orientation, and behavior of Material Design 3 dividers. */
|
|
1
2
|
export interface DividerConfig {
|
|
3
|
+
/** CSS class prefix (defaults to 'mtrl') */
|
|
2
4
|
prefix?: string;
|
|
5
|
+
/** CSS class to add to the divider Additional classes for custom styling needs. */
|
|
3
6
|
class?: string | string[];
|
|
7
|
+
/**
|
|
8
|
+
* Orientation of the divider
|
|
9
|
+
* @default 'horizontal'
|
|
10
|
+
*/
|
|
4
11
|
orientation?: 'horizontal' | 'vertical';
|
|
12
|
+
/**
|
|
13
|
+
* Variant of the divider Controls how the divider is inset within its container: - 'full-width': Spans the entire width/height (default) - 'inset': Adds space at the start (left for horizontal, top for vertical) - 'middle-inset': Adds space at both start and end Most commonly used in lists to align dividers with text content.
|
|
14
|
+
* @default 'full-width'
|
|
15
|
+
*/
|
|
5
16
|
variant?: 'full-width' | 'inset' | 'middle-inset';
|
|
17
|
+
/**
|
|
18
|
+
* Custom inset value (left margin for horizontal, top margin for vertical) Overrides the default inset spacing at the start of the divider.
|
|
19
|
+
* @default 16 for 'inset' and 'middle-inset' variants
|
|
20
|
+
*/
|
|
6
21
|
insetStart?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Custom inset end value (right margin for horizontal, bottom margin for vertical) Overrides the default inset spacing at the end of the divider.
|
|
24
|
+
* @default 0 for 'inset', 16 for 'middle-inset'
|
|
25
|
+
*/
|
|
7
26
|
insetEnd?: number;
|
|
27
|
+
/** Color of the divider Sets a custom color for the divider. */
|
|
8
28
|
color?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Thickness of the divider in pixels Controls the thickness (height for horizontal, width for vertical) of the divider.
|
|
31
|
+
* @default 1
|
|
32
|
+
*/
|
|
9
33
|
thickness?: number;
|
|
34
|
+
/** Used internally for component composition */
|
|
10
35
|
componentName?: string;
|
|
11
36
|
}
|
|
37
|
+
/** Default configuration for dividers */
|
|
12
38
|
export declare const defaultConfig: Partial<DividerConfig>;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a base configuration object for divider Merges user-provided configuration with default values and ensures all required properties have values.
|
|
41
|
+
* @param config
|
|
42
|
+
*/
|
|
13
43
|
export declare const createBaseConfig: (config?: DividerConfig) => DividerConfig;
|
|
@@ -1,18 +1,33 @@
|
|
|
1
|
+
/** Divider orientation options */
|
|
1
2
|
export declare const DIVIDER_ORIENTATIONS: {
|
|
3
|
+
/** Horizontal divider (default) */
|
|
2
4
|
readonly HORIZONTAL: "horizontal";
|
|
5
|
+
/** Vertical divider */
|
|
3
6
|
readonly VERTICAL: "vertical";
|
|
4
7
|
};
|
|
8
|
+
/** Divider variant options */
|
|
5
9
|
export declare const DIVIDER_VARIANTS: {
|
|
10
|
+
/** Spans the entire width/height of the container (default) */
|
|
6
11
|
readonly FULL_WIDTH: "full-width";
|
|
12
|
+
/** Adds space at the start (left for horizontal, top for vertical) */
|
|
7
13
|
readonly INSET: "inset";
|
|
14
|
+
/** Adds space at both start and end */
|
|
8
15
|
readonly MIDDLE_INSET: "middle-inset";
|
|
9
16
|
};
|
|
17
|
+
/** Default divider thickness in pixels */
|
|
10
18
|
export declare const DEFAULT_DIVIDER_THICKNESS = 1;
|
|
19
|
+
/** Default inset value in pixels */
|
|
11
20
|
export declare const DEFAULT_INSET_VALUE = 16;
|
|
21
|
+
/** CSS classes used by the divider component */
|
|
12
22
|
export declare const DIVIDER_CLASSES: {
|
|
23
|
+
/** Root divider element */
|
|
13
24
|
readonly ROOT: "divider";
|
|
25
|
+
/** Applied to horizontal dividers */
|
|
14
26
|
readonly HORIZONTAL: "divider--horizontal";
|
|
27
|
+
/** Applied to vertical dividers */
|
|
15
28
|
readonly VERTICAL: "divider--vertical";
|
|
29
|
+
/** Applied to inset dividers */
|
|
16
30
|
readonly INSET: "divider--inset";
|
|
31
|
+
/** Applied to middle-inset dividers */
|
|
17
32
|
readonly MIDDLE_INSET: "divider--middle-inset";
|
|
18
33
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { DividerConfig } from "./config.js";
|
|
2
2
|
import { DividerComponent } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new Divider component with the specified configuration.
|
|
5
|
+
* @param config
|
|
6
|
+
*/
|
|
3
7
|
export declare const createDivider: (config?: DividerConfig) => DividerComponent;
|
|
@@ -1,16 +1,43 @@
|
|
|
1
1
|
import { BaseComponent, ElementComponent } from "../../core/compose/index.js";
|
|
2
|
+
/** The three slices of a divider, one per enhancer in features.ts. */
|
|
2
3
|
export interface DividerOrientation {
|
|
4
|
+
/** Gets current orientation of the divider */
|
|
3
5
|
getOrientation(): 'horizontal' | 'vertical';
|
|
6
|
+
/**
|
|
7
|
+
* Sets orientation of the divider Changes the divider's orientation between horizontal (default) and vertical.
|
|
8
|
+
* @param orientation
|
|
9
|
+
*/
|
|
4
10
|
setOrientation(orientation: 'horizontal' | 'vertical'): this;
|
|
5
11
|
}
|
|
12
|
+
/** The inset slice. */
|
|
6
13
|
export interface DividerInset {
|
|
14
|
+
/** Gets current variant of the divider */
|
|
7
15
|
getVariant(): 'full-width' | 'inset' | 'middle-inset';
|
|
16
|
+
/**
|
|
17
|
+
* Sets variant of the divider
|
|
18
|
+
* @param variant
|
|
19
|
+
*/
|
|
8
20
|
setVariant(variant: 'full-width' | 'inset' | 'middle-inset'): this;
|
|
21
|
+
/**
|
|
22
|
+
* Sets custom inset values for the divider Allows fine-grained control over inset spacing, overriding the default values applied by the variant.
|
|
23
|
+
* @param insetStart
|
|
24
|
+
* @param insetEnd
|
|
25
|
+
*/
|
|
9
26
|
setInset(insetStart?: number, insetEnd?: number): this;
|
|
10
27
|
}
|
|
28
|
+
/** The style slice. */
|
|
11
29
|
export interface DividerStyle {
|
|
30
|
+
/**
|
|
31
|
+
* Sets thickness of the divider Changes the divider's thickness (height for horizontal, width for vertical).
|
|
32
|
+
* @param thickness
|
|
33
|
+
*/
|
|
12
34
|
setThickness(thickness: number): this;
|
|
35
|
+
/**
|
|
36
|
+
* Sets custom color for the divider By default, dividers use the 'outline-variant' color from the theme.
|
|
37
|
+
* @param color
|
|
38
|
+
*/
|
|
13
39
|
setColor(color: string): this;
|
|
14
40
|
}
|
|
41
|
+
/** Divider component interface Represents a Material Design 3 divider that separates content into distinct sections. */
|
|
15
42
|
export interface DividerComponent extends BaseComponent, ElementComponent, DividerOrientation, DividerInset, DividerStyle {
|
|
16
43
|
}
|
|
@@ -1,46 +1,85 @@
|
|
|
1
|
+
/** Drawer variants matching MD3 navigation drawer specification */
|
|
1
2
|
export declare const DRAWER_VARIANTS: {
|
|
3
|
+
/** Standard drawer — inline, can be permanently visible or toggled */
|
|
2
4
|
readonly STANDARD: "standard";
|
|
5
|
+
/** Modal drawer — overlays content with scrim, for compact/medium screens */
|
|
3
6
|
readonly MODAL: "modal";
|
|
4
7
|
};
|
|
8
|
+
/** Drawer positions (anchor edge) */
|
|
5
9
|
export declare const DRAWER_POSITIONS: {
|
|
10
|
+
/** Start edge (left in LTR, right in RTL) — default per MD3 */
|
|
6
11
|
readonly START: "start";
|
|
12
|
+
/** End edge (right in LTR, left in RTL) */
|
|
7
13
|
readonly END: "end";
|
|
8
14
|
};
|
|
15
|
+
/** Drawer item types for the items configuration array */
|
|
9
16
|
export declare const DRAWER_ITEM_TYPES: {
|
|
17
|
+
/** Navigation destination item */
|
|
10
18
|
readonly ITEM: "item";
|
|
19
|
+
/** Visual separator between groups */
|
|
11
20
|
readonly DIVIDER: "divider";
|
|
21
|
+
/** Section label / subhead for grouping */
|
|
12
22
|
readonly SECTION: "section";
|
|
13
23
|
};
|
|
24
|
+
/** Drawer events */
|
|
14
25
|
export declare const DRAWER_EVENTS: {
|
|
26
|
+
/** Fired when the drawer opens */
|
|
15
27
|
readonly OPEN: "open";
|
|
28
|
+
/** Fired when the drawer closes */
|
|
16
29
|
readonly CLOSE: "close";
|
|
30
|
+
/** Fired when a navigation item is selected */
|
|
17
31
|
readonly SELECT: "select";
|
|
18
32
|
};
|
|
33
|
+
/** CSS classes used by the drawer component */
|
|
19
34
|
export declare const DRAWER_CLASSES: {
|
|
35
|
+
/** Root container */
|
|
20
36
|
readonly ROOT: "drawer";
|
|
37
|
+
/** Scrim overlay (modal variant only) */
|
|
21
38
|
readonly SCRIM: "drawer__scrim";
|
|
39
|
+
/** Inner sheet / panel */
|
|
22
40
|
readonly SHEET: "drawer__sheet";
|
|
41
|
+
/** Headline text */
|
|
23
42
|
readonly HEADLINE: "drawer__headline";
|
|
43
|
+
/** Scrollable items container */
|
|
24
44
|
readonly ITEMS: "drawer__items";
|
|
45
|
+
/** Single navigation item */
|
|
25
46
|
readonly ITEM: "drawer__item";
|
|
47
|
+
/** Item icon */
|
|
26
48
|
readonly ITEM_ICON: "drawer__item-icon";
|
|
49
|
+
/** Item label text */
|
|
27
50
|
readonly ITEM_LABEL: "drawer__item-label";
|
|
51
|
+
/** Item badge */
|
|
28
52
|
readonly ITEM_BADGE: "drawer__item-badge";
|
|
53
|
+
/** Active indicator shape */
|
|
29
54
|
readonly ACTIVE_INDICATOR: "drawer__active-indicator";
|
|
55
|
+
/** Dense/compact variant */
|
|
30
56
|
readonly DENSE: "drawer--dense";
|
|
57
|
+
/** Divider separator */
|
|
31
58
|
readonly DIVIDER: "drawer__divider";
|
|
59
|
+
/** Section label */
|
|
32
60
|
readonly SECTION_LABEL: "drawer__section-label";
|
|
33
61
|
};
|
|
62
|
+
/** Default animation configuration */
|
|
34
63
|
export declare const DRAWER_ANIMATION: {
|
|
64
|
+
/** Animation duration in milliseconds */
|
|
35
65
|
readonly DURATION: 300;
|
|
66
|
+
/** Easing for opening */
|
|
36
67
|
readonly EASING_OPEN: "cubic-bezier(0.0, 0.0, 0.2, 1.0)";
|
|
68
|
+
/** Easing for closing */
|
|
37
69
|
readonly EASING_CLOSE: "cubic-bezier(0.3, 0.0, 1.0, 1.0)";
|
|
38
70
|
};
|
|
71
|
+
/** Drawer default values */
|
|
39
72
|
export declare const DRAWER_DEFAULTS: {
|
|
73
|
+
/** Default variant */
|
|
40
74
|
readonly VARIANT: "standard";
|
|
75
|
+
/** Default position */
|
|
41
76
|
readonly POSITION: "start";
|
|
77
|
+
/** Whether drawer is open by default */
|
|
42
78
|
readonly OPEN: false;
|
|
79
|
+
/** Whether modal can be dismissed via scrim */
|
|
43
80
|
readonly DISMISSIBLE: true;
|
|
81
|
+
/** Default drawer width in pixels */
|
|
44
82
|
readonly WIDTH: 360;
|
|
83
|
+
/** Whether items ripple on press */
|
|
45
84
|
readonly RIPPLE: true;
|
|
46
85
|
};
|