material 3.8.2 → 3.10.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/README.md +5 -5
- package/dist/components/badge/index.d.ts +167 -3
- package/dist/components/bottom-app-bar/constants.d.ts +16 -3
- package/dist/components/bottom-app-bar/index.d.ts +141 -4
- package/dist/components/bottom-sheet/config.js +1 -1
- package/dist/components/bottom-sheet/features/structure.js +10 -2
- package/dist/components/bottom-sheet/index.d.ts +114 -2
- package/dist/components/button/index.d.ts +10 -5
- package/dist/components/button-group/button-group.js +2 -1
- package/dist/components/button-group/config.js +9 -6
- package/dist/components/button-group/index.d.ts +250 -6
- package/dist/components/card/api.js +19 -0
- package/dist/components/card/index.d.ts +326 -5
- package/dist/components/carousel/features/slides.js +17 -7
- package/dist/components/carousel/index.d.ts +102 -3
- package/dist/components/checkbox/config.js +3 -2
- package/dist/components/checkbox/index.d.ts +217 -5
- package/dist/components/chips/chip/chip.js +4 -3
- package/dist/components/chips/index.d.ts +343 -3
- package/dist/components/datepicker/config.js +1 -1
- package/dist/components/datepicker/datepicker.js +74 -87
- package/dist/components/datepicker/index.d.ts +313 -2
- package/dist/components/datepicker/render.js +24 -20
- package/dist/components/datepicker/utils.js +66 -111
- package/dist/components/dialog/features.js +1 -1
- package/dist/components/dialog/index.d.ts +333 -3
- package/dist/components/divider/index.d.ts +99 -3
- package/dist/components/drawer/features/items.js +10 -2
- package/dist/components/drawer/index.d.ts +196 -3
- package/dist/components/extended-fab/index.d.ts +224 -2
- package/dist/components/fab/index.d.ts +183 -2
- package/dist/components/fab-menu/index.d.ts +106 -6
- package/dist/components/icon-button/index.d.ts +11 -4
- package/dist/components/index.js +1 -1
- package/dist/components/list/features/anatomy.js +25 -6
- package/dist/components/list/features/listbox.js +230 -0
- package/dist/components/list/features/selection.js +30 -2
- package/dist/components/list/index.d.ts +299 -4
- package/dist/components/list/index.js +1 -0
- package/dist/components/loading-indicator/index.d.ts +94 -3
- package/dist/components/menu/config.js +2 -2
- package/dist/components/menu/constants.d.ts +4 -4
- package/dist/components/menu/constants.js +1 -1
- package/dist/components/menu/features/controller.js +14 -1
- package/dist/components/menu/features/position.js +15 -8
- package/dist/components/menu/features/submenu.js +3 -0
- package/dist/components/menu/index.d.ts +10 -6
- package/dist/components/menu/types.d.ts +13 -1
- package/dist/components/navigation-bar/index.d.ts +70 -2
- package/dist/components/navigation-rail/index.d.ts +98 -2
- package/dist/components/progress/index.d.ts +9 -2
- package/dist/components/radios/config.js +1 -0
- package/dist/components/radios/index.d.ts +158 -3
- package/dist/components/radios/radio.js +2 -0
- package/dist/components/search/features/input.js +6 -1
- package/dist/components/search/features/states.js +3 -3
- package/dist/components/search/features/structure.js +27 -5
- package/dist/components/search/features/suggestions.js +4 -0
- package/dist/components/search/index.d.ts +255 -2
- package/dist/components/select/index.d.ts +252 -6
- package/dist/components/side-sheet/config.js +1 -1
- package/dist/components/side-sheet/features/structure.js +10 -2
- package/dist/components/side-sheet/index.d.ts +104 -2
- package/dist/components/slider/config.js +3 -2
- package/dist/components/slider/index.d.ts +236 -2
- package/dist/components/snackbar/api.js +26 -0
- package/dist/components/snackbar/constants.d.ts +4 -0
- package/dist/components/snackbar/constants.js +3 -1
- package/dist/components/snackbar/index.d.ts +215 -4
- package/dist/components/split-button/config.js +1 -1
- package/dist/components/split-button/index.d.ts +10 -3
- package/dist/components/switch/config.js +3 -2
- package/dist/components/switch/index.d.ts +190 -3
- package/dist/components/tabs/config.js +1 -0
- package/dist/components/tabs/index.d.ts +476 -12
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/responsive-legacy.js +65 -0
- package/dist/components/tabs/responsive.d.ts +7 -32
- package/dist/components/tabs/responsive.js +4 -63
- package/dist/components/tabs/tab.js +11 -5
- package/dist/components/tabs/tabs.js +1 -0
- package/dist/components/text-field/config.js +9 -5
- package/dist/components/text-field/features/field.js +61 -0
- package/dist/components/text-field/features/leading-icon.js +12 -45
- package/dist/components/text-field/features/prefix-text.js +6 -40
- package/dist/components/text-field/features/suffix-text.js +6 -40
- package/dist/components/text-field/index.d.ts +345 -3
- package/dist/components/timepicker/api.js +7 -8
- package/dist/components/timepicker/config.js +1 -1
- package/dist/components/timepicker/constants.d.ts +4 -4
- package/dist/components/timepicker/constants.js +2 -2
- package/dist/components/timepicker/index.d.ts +279 -5
- package/dist/components/timepicker/render.js +26 -6
- package/dist/components/timepicker/timepicker.js +0 -1
- package/dist/components/toolbar/config.js +1 -0
- package/dist/components/toolbar/constants.d.ts +4 -1
- package/dist/components/toolbar/constants.js +3 -0
- package/dist/components/toolbar/index.d.ts +145 -6
- package/dist/components/toolbar/toolbar.js +18 -3
- package/dist/components/tooltip/index.d.ts +155 -3
- package/dist/components/top-app-bar/index.d.ts +92 -5
- package/dist/core/canvas/index.d.ts +172 -5
- package/dist/core/compose/features/icon-opt-in.js +5 -0
- package/dist/core/compose/features/icon-slot.js +100 -0
- package/dist/core/compose/features/textinput.js +2 -0
- package/dist/core/compose/features/track.js +4 -0
- package/dist/core/compose/index.d.ts +744 -8
- package/dist/core/config/component.d.ts +5 -515
- package/dist/core/config/control-label.js +5 -0
- package/dist/core/dom/index.d.ts +245 -12
- package/dist/core/index.d.ts +93 -14
- package/dist/core/shapes/index.d.ts +286 -6
- package/dist/core/state/index.d.ts +98 -5
- package/dist/core/theme/index.d.ts +80 -4
- package/dist/core/utils/index.d.ts +98 -9
- package/dist/elements/bottom-sheet.js +3 -2
- package/dist/elements/css/badge.js +2 -2
- package/dist/elements/css/bottom-app-bar.js +2 -2
- package/dist/elements/css/bottom-sheet.css +1 -1
- package/dist/elements/css/bottom-sheet.js +2 -2
- package/dist/elements/css/button-group.css +1 -1
- package/dist/elements/css/button-group.js +2 -2
- package/dist/elements/css/button.css +1 -1
- package/dist/elements/css/button.js +2 -2
- package/dist/elements/css/card.js +2 -2
- package/dist/elements/css/carousel.js +2 -2
- package/dist/elements/css/checkbox.js +2 -2
- package/dist/elements/css/chips.js +2 -2
- package/dist/elements/css/datepicker.css +1 -1
- package/dist/elements/css/datepicker.js +2 -2
- package/dist/elements/css/dialog.css +1 -1
- package/dist/elements/css/dialog.js +2 -2
- package/dist/elements/css/divider.js +2 -2
- package/dist/elements/css/drawer.css +1 -1
- package/dist/elements/css/drawer.js +2 -2
- package/dist/elements/css/extended-fab.js +2 -2
- package/dist/elements/css/fab-menu.js +2 -2
- package/dist/elements/css/fab.js +2 -2
- package/dist/elements/css/icon-button.css +1 -1
- package/dist/elements/css/icon-button.js +2 -2
- package/dist/elements/css/list.css +1 -1
- package/dist/elements/css/list.js +2 -2
- package/dist/elements/css/loading-indicator.js +2 -2
- package/dist/elements/css/menu.css +1 -1
- package/dist/elements/css/menu.js +2 -2
- package/dist/elements/css/navigation-bar.js +2 -2
- package/dist/elements/css/navigation-rail.js +2 -2
- package/dist/elements/css/progress.js +2 -2
- package/dist/elements/css/radios.js +2 -2
- package/dist/elements/css/ripple.js +2 -2
- package/dist/elements/css/search.js +2 -2
- package/dist/elements/css/select.js +2 -2
- package/dist/elements/css/side-sheet.css +1 -1
- package/dist/elements/css/side-sheet.js +2 -2
- package/dist/elements/css/slider.js +2 -2
- package/dist/elements/css/snackbar.css +1 -1
- package/dist/elements/css/snackbar.js +2 -2
- package/dist/elements/css/split-button.js +2 -2
- package/dist/elements/css/switch.js +2 -2
- package/dist/elements/css/tabs.js +2 -2
- package/dist/elements/css/text-field.css +1 -1
- package/dist/elements/css/text-field.js +2 -2
- package/dist/elements/css/timepicker.css +1 -1
- package/dist/elements/css/timepicker.js +2 -2
- package/dist/elements/css/toolbar.css +1 -1
- package/dist/elements/css/toolbar.js +2 -2
- package/dist/elements/css/tooltip.js +2 -2
- package/dist/elements/css/top-app-bar.js +2 -2
- package/dist/elements/datepicker.js +2 -0
- package/dist/elements/define.js +12 -1
- package/dist/elements/drawer.js +2 -0
- package/dist/elements/index.d.ts +3946 -376
- package/dist/elements/menu.js +17 -3
- 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 +2 -2
- package/dist/elements/preupgrade/button.css +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/elements/preupgrade/list.css +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/elements/preupgrade.js +2 -3
- package/dist/elements/radios.js +5 -1
- package/dist/elements/search.js +19 -3
- package/dist/elements/sheet.js +16 -6
- package/dist/elements/side-sheet.js +5 -3
- package/dist/elements/snackbar.js +2 -0
- package/dist/elements/styles.js +39 -0
- package/dist/elements/switch.js +1 -0
- package/dist/elements/tabs.js +6 -0
- package/dist/elements/text-field.js +2 -0
- package/dist/elements/timepicker.js +1 -0
- package/dist/elements/toolbar.js +13 -1
- package/dist/index.d.ts +78 -4
- package/dist/react/index.d.ts +106 -52
- package/dist/react/jsx.d.ts +50 -49
- package/dist/solid/index.d.ts +106 -52
- package/dist/solid/jsx.d.ts +81 -76
- 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 +2 -2
- package/dist/styles/button-group.css +2 -2
- package/dist/styles/button.css +2 -2
- package/dist/styles/card.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/chips.css +1 -1
- package/dist/styles/contrast.css +1 -1
- package/dist/styles/datepicker.css +2 -2
- 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 +1 -1
- package/dist/styles/fab.css +1 -1
- package/dist/styles/icon-button.css +2 -2
- package/dist/styles/list.css +2 -2
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +2 -2
- package/dist/styles/navigation-bar.css +1 -1
- package/dist/styles/navigation-rail.css +1 -1
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radios.css +1 -1
- package/dist/styles/search.css +1 -1
- package/dist/styles/select.css +1 -1
- package/dist/styles/side-sheet.css +2 -2
- package/dist/styles/slider.css +1 -1
- package/dist/styles/snackbar.css +2 -2
- 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 +2 -2
- 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/BottomAppBar.svelte.d.ts +1 -0
- package/dist/theme/2025.d.ts +3 -0
- package/dist/theme/2025.js +2 -0
- package/dist/theme/index.js +65 -17
- package/dist/theme/spec2025.d.ts +56 -0
- package/dist/theme/spec2025.js +37 -0
- package/dist/theme/vendor/dynamiccolor/color_spec_2025.js +846 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +7 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_color.js +9 -5
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +12 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.js +13 -9
- package/dist/theme/vendor/dynamiccolor/spec_2025.js +263 -0
- package/dist/theme/vendor/dynamiccolor/spec_extensions.js +70 -0
- package/dist/theme/vendor/palettes/tonal_palette.d.ts +23 -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/index.d.ts +192 -53
- package/package.json +12 -3
- package/src/styles/abstract/_functions.scss +22 -1
- package/src/styles/abstract/_variables.scss +0 -2
- package/src/styles/base/_tokens.scss +12 -0
- package/src/styles/components/_bottom-sheet.scss +1 -0
- package/src/styles/components/_button-group.scss +9 -5
- package/src/styles/components/_button.scss +28 -12
- package/src/styles/components/_datepicker.scss +1 -0
- package/src/styles/components/_dialog.scss +1 -0
- package/src/styles/components/_drawer.scss +33 -65
- package/src/styles/components/_icon-button.scss +32 -33
- package/src/styles/components/_list.scss +54 -6
- package/src/styles/components/_menu.scss +65 -46
- package/src/styles/components/_side-sheet.scss +1 -0
- package/src/styles/components/_snackbar.scss +1 -0
- package/src/styles/components/_text-field.scss +17 -109
- package/src/styles/components/_timepicker.scss +2 -1
- package/src/styles/components/_toolbar.scss +23 -6
- package/src/styles/elements/_button-group.scss +17 -4
- package/src/styles/elements/_button.scss +3 -2
- package/src/styles/elements/_drawer.scss +2 -1
- package/src/styles/elements/_field.scss +25 -14
- package/src/styles/elements/_icon-button.scss +8 -3
- package/src/styles/elements/_list.scss +3 -2
- package/src/styles/elements/_text-field.scss +71 -47
- package/dist/components/badge/badge.d.ts +0 -7
- package/dist/components/badge/types.d.ts +0 -152
- package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -6
- package/dist/components/bottom-app-bar/types.d.ts +0 -63
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -7
- package/dist/components/bottom-sheet/types.d.ts +0 -98
- package/dist/components/button/button.d.ts +0 -7
- package/dist/components/button-group/button-group.d.ts +0 -7
- package/dist/components/button-group/types.d.ts +0 -227
- package/dist/components/card/card.d.ts +0 -7
- package/dist/components/card/content.d.ts +0 -22
- package/dist/components/card/types.d.ts +0 -272
- package/dist/components/carousel/carousel.d.ts +0 -4
- package/dist/components/carousel/types.d.ts +0 -81
- package/dist/components/checkbox/checkbox.d.ts +0 -8
- package/dist/components/checkbox/types.d.ts +0 -194
- package/dist/components/chips/chips.d.ts +0 -7
- package/dist/components/chips/factories.d.ts +0 -9
- package/dist/components/chips/types.d.ts +0 -304
- package/dist/components/datepicker/datepicker.d.ts +0 -7
- package/dist/components/datepicker/types.d.ts +0 -296
- package/dist/components/datepicker/types.js +0 -17
- package/dist/components/dialog/dialog.d.ts +0 -8
- package/dist/components/dialog/types.d.ts +0 -311
- package/dist/components/divider/config.d.ts +0 -43
- package/dist/components/divider/divider.d.ts +0 -7
- package/dist/components/divider/types.d.ts +0 -43
- package/dist/components/drawer/drawer.d.ts +0 -7
- package/dist/components/drawer/types.d.ts +0 -179
- package/dist/components/extended-fab/extended-fab.d.ts +0 -7
- package/dist/components/extended-fab/types.d.ts +0 -208
- package/dist/components/fab/fab.d.ts +0 -7
- package/dist/components/fab/types.d.ts +0 -168
- package/dist/components/fab-menu/fab-menu.d.ts +0 -8
- package/dist/components/fab-menu/types.d.ts +0 -91
- package/dist/components/icon-button/icon-button.d.ts +0 -7
- package/dist/components/index.d.ts +0 -81
- package/dist/components/list/list.d.ts +0 -7
- package/dist/components/list/types.d.ts +0 -257
- package/dist/components/loading-indicator/features/renderer.d.ts +0 -28
- package/dist/components/loading-indicator/loading-indicator.d.ts +0 -7
- package/dist/components/loading-indicator/types.d.ts +0 -53
- package/dist/components/menu/menu.d.ts +0 -7
- package/dist/components/navigation-bar/navigation-bar.d.ts +0 -3
- package/dist/components/navigation-bar/types.d.ts +0 -59
- package/dist/components/navigation-rail/navigation-rail.d.ts +0 -3
- package/dist/components/navigation-rail/types.d.ts +0 -87
- package/dist/components/progress/progress.d.ts +0 -7
- package/dist/components/radios/radios.d.ts +0 -7
- package/dist/components/radios/types.d.ts +0 -142
- package/dist/components/search/search.d.ts +0 -7
- package/dist/components/search/types.d.ts +0 -235
- package/dist/components/select/select.d.ts +0 -7
- package/dist/components/select/types.d.ts +0 -232
- package/dist/components/side-sheet/side-sheet.d.ts +0 -7
- package/dist/components/side-sheet/types.d.ts +0 -89
- package/dist/components/slider/slider.d.ts +0 -7
- package/dist/components/slider/types.d.ts +0 -213
- package/dist/components/snackbar/snackbar.d.ts +0 -9
- package/dist/components/snackbar/types.d.ts +0 -180
- package/dist/components/split-button/split-button.d.ts +0 -7
- package/dist/components/switch/switch.d.ts +0 -7
- package/dist/components/switch/types.d.ts +0 -166
- package/dist/components/tabs/indicator.d.ts +0 -44
- package/dist/components/tabs/tab.d.ts +0 -7
- package/dist/components/tabs/tabs.d.ts +0 -7
- package/dist/components/tabs/types.d.ts +0 -300
- package/dist/components/tabs/utils.d.ts +0 -46
- package/dist/components/text-field/features/trailing-icon.d.ts +0 -54
- package/dist/components/text-field/text-field.d.ts +0 -7
- package/dist/components/text-field/types.d.ts +0 -256
- package/dist/components/timepicker/timepicker.d.ts +0 -3
- package/dist/components/timepicker/types.d.ts +0 -254
- package/dist/components/toolbar/toolbar.d.ts +0 -8
- package/dist/components/toolbar/types.d.ts +0 -125
- package/dist/components/tooltip/tooltip.d.ts +0 -7
- package/dist/components/tooltip/types.d.ts +0 -137
- package/dist/components/top-app-bar/top-app-bar.d.ts +0 -7
- package/dist/components/top-app-bar/types.d.ts +0 -80
- package/dist/core/canvas/animation.d.ts +0 -20
- package/dist/core/canvas/drawing.d.ts +0 -67
- package/dist/core/canvas/resize.d.ts +0 -8
- package/dist/core/canvas/utils.d.ts +0 -62
- package/dist/core/compose/base.d.ts +0 -18
- package/dist/core/compose/features/badge.d.ts +0 -27
- package/dist/core/compose/features/checkable.d.ts +0 -33
- package/dist/core/compose/features/debounce.d.ts +0 -45
- package/dist/core/compose/features/disabled.d.ts +0 -26
- package/dist/core/compose/features/events.d.ts +0 -31
- package/dist/core/compose/features/index.d.ts +0 -34
- package/dist/core/compose/features/input.d.ts +0 -54
- package/dist/core/compose/features/lifecycle.d.ts +0 -41
- package/dist/core/compose/features/position.d.ts +0 -36
- package/dist/core/compose/features/ripple.d.ts +0 -35
- package/dist/core/compose/features/size.d.ts +0 -12
- package/dist/core/compose/features/style.d.ts +0 -11
- package/dist/core/compose/features/textinput.d.ts +0 -66
- package/dist/core/compose/features/textlabel.d.ts +0 -34
- package/dist/core/compose/features/throttle.d.ts +0 -38
- package/dist/core/compose/features/track.d.ts +0 -24
- package/dist/core/compose/features/variant.d.ts +0 -12
- package/dist/core/compose/features/withEvents.d.ts +0 -27
- package/dist/core/compose/pipe.d.ts +0 -55
- package/dist/core/compose/utils/type-guards.d.ts +0 -17
- package/dist/core/config.d.ts +0 -72
- package/dist/core/dom/attributes.d.ts +0 -34
- package/dist/core/dom/classes.d.ts +0 -29
- package/dist/core/dom/events.d.ts +0 -43
- package/dist/core/dom/focus.d.ts +0 -15
- package/dist/core/dom/html.d.ts +0 -16
- package/dist/core/dom/layer.d.ts +0 -57
- package/dist/core/dom/roving.d.ts +0 -18
- package/dist/core/shapes/cubic.d.ts +0 -45
- package/dist/core/shapes/material.d.ts +0 -131
- package/dist/core/shapes/polygon.d.ts +0 -38
- package/dist/core/state/events.d.ts +0 -25
- package/dist/core/state/store.d.ts +0 -60
- package/dist/core/theme/shape.d.ts +0 -5
- package/dist/core/theme/tokens.d.ts +0 -67
- package/dist/core/utils/background.d.ts +0 -13
- package/dist/core/utils/color.d.ts +0 -6
- package/dist/core/utils/object.d.ts +0 -11
- package/dist/core/utils/performance.d.ts +0 -32
- package/dist/core/utils/theme.d.ts +0 -17
- package/dist/core/utils/url.d.ts +0 -6
- package/dist/elements/badge.d.ts +0 -57
- package/dist/elements/bottom-app-bar.d.ts +0 -49
- package/dist/elements/bottom-sheet.d.ts +0 -107
- package/dist/elements/button-group.d.ts +0 -142
- package/dist/elements/button.d.ts +0 -101
- package/dist/elements/card.d.ts +0 -69
- package/dist/elements/carousel.d.ts +0 -119
- package/dist/elements/checkbox.d.ts +0 -97
- package/dist/elements/chips.d.ts +0 -126
- package/dist/elements/css/badge.d.ts +0 -1
- package/dist/elements/css/bottom-app-bar.d.ts +0 -1
- package/dist/elements/css/bottom-sheet.d.ts +0 -1
- package/dist/elements/css/button-group.d.ts +0 -1
- package/dist/elements/css/button.d.ts +0 -1
- package/dist/elements/css/card.d.ts +0 -1
- package/dist/elements/css/carousel.d.ts +0 -1
- package/dist/elements/css/checkbox.d.ts +0 -1
- package/dist/elements/css/chips.d.ts +0 -1
- package/dist/elements/css/datepicker.d.ts +0 -1
- package/dist/elements/css/dialog.d.ts +0 -1
- package/dist/elements/css/divider.d.ts +0 -1
- package/dist/elements/css/drawer.d.ts +0 -1
- package/dist/elements/css/extended-fab.d.ts +0 -1
- package/dist/elements/css/fab-menu.d.ts +0 -1
- package/dist/elements/css/fab.d.ts +0 -1
- package/dist/elements/css/icon-button.d.ts +0 -1
- package/dist/elements/css/list.d.ts +0 -1
- package/dist/elements/css/loading-indicator.d.ts +0 -1
- package/dist/elements/css/menu.d.ts +0 -1
- package/dist/elements/css/navigation-bar.d.ts +0 -1
- package/dist/elements/css/navigation-rail.d.ts +0 -1
- package/dist/elements/css/progress.d.ts +0 -1
- package/dist/elements/css/radios.d.ts +0 -1
- package/dist/elements/css/ripple.d.ts +0 -1
- package/dist/elements/css/search.d.ts +0 -1
- package/dist/elements/css/select.d.ts +0 -1
- package/dist/elements/css/side-sheet.d.ts +0 -1
- package/dist/elements/css/slider.d.ts +0 -1
- package/dist/elements/css/snackbar.d.ts +0 -1
- package/dist/elements/css/split-button.d.ts +0 -1
- package/dist/elements/css/switch.d.ts +0 -1
- package/dist/elements/css/tabs.d.ts +0 -1
- package/dist/elements/css/text-field.d.ts +0 -1
- package/dist/elements/css/timepicker.d.ts +0 -1
- package/dist/elements/css/toolbar.d.ts +0 -1
- package/dist/elements/css/tooltip.d.ts +0 -1
- package/dist/elements/css/top-app-bar.d.ts +0 -1
- package/dist/elements/datepicker.d.ts +0 -126
- package/dist/elements/dialog.d.ts +0 -101
- package/dist/elements/divider.d.ts +0 -52
- package/dist/elements/drawer.d.ts +0 -119
- package/dist/elements/extended-fab.d.ts +0 -97
- package/dist/elements/fab-menu.d.ts +0 -102
- package/dist/elements/fab.d.ts +0 -71
- package/dist/elements/list.d.ts +0 -127
- package/dist/elements/loading-indicator.d.ts +0 -47
- package/dist/elements/menu.d.ts +0 -144
- package/dist/elements/navigation-bar.d.ts +0 -104
- package/dist/elements/navigation-rail.d.ts +0 -145
- package/dist/elements/progress.d.ts +0 -87
- package/dist/elements/radios.d.ts +0 -91
- package/dist/elements/search.d.ts +0 -202
- package/dist/elements/select.d.ts +0 -119
- package/dist/elements/side-sheet.d.ts +0 -83
- package/dist/elements/slider.d.ts +0 -160
- package/dist/elements/snackbar.d.ts +0 -87
- package/dist/elements/split-button.d.ts +0 -87
- package/dist/elements/switch.d.ts +0 -94
- package/dist/elements/tabs.d.ts +0 -71
- package/dist/elements/text-field.d.ts +0 -170
- package/dist/elements/timepicker.d.ts +0 -143
- package/dist/elements/toolbar.d.ts +0 -90
- package/dist/elements/tooltip.d.ts +0 -75
- package/dist/elements/top-app-bar.d.ts +0 -60
- package/dist/react/badge.d.ts +0 -4
- package/dist/react/bottom-app-bar.d.ts +0 -4
- package/dist/react/bottom-sheet.d.ts +0 -4
- package/dist/react/button-group-item.d.ts +0 -3
- package/dist/react/button-group.d.ts +0 -7
- package/dist/react/button.d.ts +0 -5
- package/dist/react/card.d.ts +0 -4
- package/dist/react/carousel-item.d.ts +0 -3
- package/dist/react/carousel.d.ts +0 -4
- package/dist/react/checkbox.d.ts +0 -4
- package/dist/react/chip.d.ts +0 -3
- package/dist/react/chips.d.ts +0 -4
- package/dist/react/datepicker.d.ts +0 -4
- package/dist/react/dialog.d.ts +0 -7
- package/dist/react/divider.d.ts +0 -4
- package/dist/react/drawer-item.d.ts +0 -3
- package/dist/react/drawer.d.ts +0 -4
- package/dist/react/extended-fab.d.ts +0 -4
- package/dist/react/fab-menu-item.d.ts +0 -3
- package/dist/react/fab-menu.d.ts +0 -6
- package/dist/react/fab.d.ts +0 -4
- package/dist/react/icon-button.d.ts +0 -4
- package/dist/react/list-item.d.ts +0 -3
- package/dist/react/list.d.ts +0 -4
- package/dist/react/loading-indicator.d.ts +0 -4
- package/dist/react/menu-item.d.ts +0 -3
- package/dist/react/menu.d.ts +0 -4
- package/dist/react/navigation-bar-item.d.ts +0 -3
- package/dist/react/navigation-bar.d.ts +0 -4
- package/dist/react/navigation-rail-item.d.ts +0 -3
- package/dist/react/navigation-rail.d.ts +0 -4
- package/dist/react/progress.d.ts +0 -4
- package/dist/react/radio.d.ts +0 -3
- package/dist/react/radios.d.ts +0 -4
- package/dist/react/search-suggestion.d.ts +0 -3
- package/dist/react/search.d.ts +0 -4
- package/dist/react/select-option.d.ts +0 -3
- package/dist/react/select.d.ts +0 -6
- package/dist/react/side-sheet.d.ts +0 -4
- package/dist/react/slider.d.ts +0 -4
- package/dist/react/snackbar.d.ts +0 -7
- package/dist/react/split-button.d.ts +0 -7
- package/dist/react/switch.d.ts +0 -4
- package/dist/react/tab.d.ts +0 -3
- package/dist/react/tabs.d.ts +0 -7
- package/dist/react/text-field.d.ts +0 -4
- package/dist/react/timepicker.d.ts +0 -4
- package/dist/react/toolbar.d.ts +0 -5
- package/dist/react/tooltip.d.ts +0 -4
- package/dist/react/top-app-bar.d.ts +0 -4
- package/dist/solid/badge.d.ts +0 -4
- package/dist/solid/bottom-app-bar.d.ts +0 -4
- package/dist/solid/bottom-sheet.d.ts +0 -4
- package/dist/solid/button-group-item.d.ts +0 -3
- package/dist/solid/button-group.d.ts +0 -7
- package/dist/solid/button.d.ts +0 -5
- package/dist/solid/card.d.ts +0 -4
- package/dist/solid/carousel-item.d.ts +0 -3
- package/dist/solid/carousel.d.ts +0 -4
- package/dist/solid/checkbox.d.ts +0 -4
- package/dist/solid/chip.d.ts +0 -3
- package/dist/solid/chips.d.ts +0 -4
- package/dist/solid/datepicker.d.ts +0 -4
- package/dist/solid/dialog.d.ts +0 -7
- package/dist/solid/divider.d.ts +0 -4
- package/dist/solid/drawer-item.d.ts +0 -3
- package/dist/solid/drawer.d.ts +0 -4
- package/dist/solid/extended-fab.d.ts +0 -4
- package/dist/solid/fab-menu-item.d.ts +0 -3
- package/dist/solid/fab-menu.d.ts +0 -6
- package/dist/solid/fab.d.ts +0 -4
- package/dist/solid/icon-button.d.ts +0 -4
- package/dist/solid/list-item.d.ts +0 -3
- package/dist/solid/list.d.ts +0 -4
- package/dist/solid/loading-indicator.d.ts +0 -4
- package/dist/solid/menu-item.d.ts +0 -3
- package/dist/solid/menu.d.ts +0 -4
- package/dist/solid/navigation-bar-item.d.ts +0 -3
- package/dist/solid/navigation-bar.d.ts +0 -4
- package/dist/solid/navigation-rail-item.d.ts +0 -3
- package/dist/solid/navigation-rail.d.ts +0 -4
- package/dist/solid/progress.d.ts +0 -4
- package/dist/solid/radio.d.ts +0 -3
- package/dist/solid/radios.d.ts +0 -4
- package/dist/solid/search-suggestion.d.ts +0 -3
- package/dist/solid/search.d.ts +0 -4
- package/dist/solid/select-option.d.ts +0 -3
- package/dist/solid/select.d.ts +0 -6
- package/dist/solid/side-sheet.d.ts +0 -4
- package/dist/solid/slider.d.ts +0 -4
- package/dist/solid/snackbar.d.ts +0 -7
- package/dist/solid/split-button.d.ts +0 -7
- package/dist/solid/switch.d.ts +0 -4
- package/dist/solid/tab.d.ts +0 -3
- package/dist/solid/tabs.d.ts +0 -7
- package/dist/solid/text-field.d.ts +0 -4
- package/dist/solid/timepicker.d.ts +0 -4
- package/dist/solid/toolbar.d.ts +0 -5
- package/dist/solid/tooltip.d.ts +0 -4
- package/dist/solid/top-app-bar.d.ts +0 -4
- package/dist/styles/badge.d.ts +0 -1
- package/dist/styles/base-lite.d.ts +0 -1
- package/dist/styles/base.d.ts +0 -1
- package/dist/styles/bottom-app-bar.d.ts +0 -1
- package/dist/styles/bottom-sheet.d.ts +0 -1
- package/dist/styles/button-group.d.ts +0 -1
- package/dist/styles/button.d.ts +0 -1
- package/dist/styles/card.d.ts +0 -1
- package/dist/styles/carousel.d.ts +0 -1
- package/dist/styles/checkbox.d.ts +0 -1
- package/dist/styles/chips.d.ts +0 -1
- package/dist/styles/contrast.d.ts +0 -1
- package/dist/styles/datepicker.d.ts +0 -1
- package/dist/styles/dialog.d.ts +0 -1
- package/dist/styles/divider.d.ts +0 -1
- package/dist/styles/drawer.d.ts +0 -1
- package/dist/styles/extended-fab.d.ts +0 -1
- package/dist/styles/fab-menu.d.ts +0 -1
- package/dist/styles/fab.d.ts +0 -1
- package/dist/styles/icon-button.d.ts +0 -1
- package/dist/styles/list.d.ts +0 -1
- package/dist/styles/loading-indicator.d.ts +0 -1
- package/dist/styles/menu.d.ts +0 -1
- package/dist/styles/navigation-bar.d.ts +0 -1
- package/dist/styles/navigation-rail.d.ts +0 -1
- package/dist/styles/progress.d.ts +0 -1
- package/dist/styles/radios.d.ts +0 -1
- package/dist/styles/search.d.ts +0 -1
- package/dist/styles/select.d.ts +0 -1
- package/dist/styles/side-sheet.d.ts +0 -1
- package/dist/styles/slider.d.ts +0 -1
- package/dist/styles/snackbar.d.ts +0 -1
- package/dist/styles/split-button.d.ts +0 -1
- package/dist/styles/switch.d.ts +0 -1
- package/dist/styles/tabs.d.ts +0 -1
- package/dist/styles/text-field.d.ts +0 -1
- package/dist/styles/timepicker.d.ts +0 -1
- package/dist/styles/toolbar.d.ts +0 -1
- package/dist/styles/tooltip.d.ts +0 -1
- package/dist/styles/top-app-bar.d.ts +0 -1
- package/dist/styles/typography.d.ts +0 -1
- package/dist/styles/utilities.d.ts +0 -1
- package/dist/theme/roles.js +0 -68
- package/dist/theme/vendor/scheme/scheme_content.js +0 -30
- package/dist/theme/vendor/scheme/scheme_expressive.js +0 -30
- package/dist/theme/vendor/scheme/scheme_fidelity.js +0 -30
- package/dist/theme/vendor/scheme/scheme_monochrome.js +0 -30
- package/dist/theme/vendor/scheme/scheme_neutral.js +0 -30
- package/dist/theme/vendor/scheme/scheme_tonal_spot.js +0 -30
- package/dist/theme/vendor/scheme/scheme_vibrant.js +0 -30
- package/dist/vue/badge.d.ts +0 -4
- package/dist/vue/bottom-app-bar.d.ts +0 -4
- package/dist/vue/bottom-sheet.d.ts +0 -4
- package/dist/vue/button-group-item.d.ts +0 -3
- package/dist/vue/button-group.d.ts +0 -7
- package/dist/vue/button.d.ts +0 -5
- package/dist/vue/card.d.ts +0 -4
- package/dist/vue/carousel-item.d.ts +0 -3
- package/dist/vue/carousel.d.ts +0 -4
- package/dist/vue/checkbox.d.ts +0 -4
- package/dist/vue/chip.d.ts +0 -3
- package/dist/vue/chips.d.ts +0 -4
- package/dist/vue/create.d.ts +0 -73
- package/dist/vue/datepicker.d.ts +0 -4
- package/dist/vue/dialog.d.ts +0 -7
- package/dist/vue/divider.d.ts +0 -4
- package/dist/vue/drawer-item.d.ts +0 -3
- package/dist/vue/drawer.d.ts +0 -4
- package/dist/vue/extended-fab.d.ts +0 -4
- package/dist/vue/fab-menu-item.d.ts +0 -3
- package/dist/vue/fab-menu.d.ts +0 -6
- package/dist/vue/fab.d.ts +0 -4
- package/dist/vue/icon-button.d.ts +0 -4
- package/dist/vue/list-item.d.ts +0 -3
- package/dist/vue/list.d.ts +0 -4
- package/dist/vue/loading-indicator.d.ts +0 -4
- package/dist/vue/menu-item.d.ts +0 -3
- package/dist/vue/menu.d.ts +0 -4
- package/dist/vue/navigation-bar-item.d.ts +0 -3
- package/dist/vue/navigation-bar.d.ts +0 -4
- package/dist/vue/navigation-rail-item.d.ts +0 -3
- package/dist/vue/navigation-rail.d.ts +0 -4
- package/dist/vue/progress.d.ts +0 -4
- package/dist/vue/radio.d.ts +0 -3
- package/dist/vue/radios.d.ts +0 -4
- package/dist/vue/search-suggestion.d.ts +0 -3
- package/dist/vue/search.d.ts +0 -4
- package/dist/vue/select-option.d.ts +0 -3
- package/dist/vue/select.d.ts +0 -6
- package/dist/vue/side-sheet.d.ts +0 -4
- package/dist/vue/slider.d.ts +0 -4
- package/dist/vue/snackbar.d.ts +0 -7
- package/dist/vue/split-button.d.ts +0 -7
- package/dist/vue/switch.d.ts +0 -4
- package/dist/vue/tab.d.ts +0 -3
- package/dist/vue/tabs.d.ts +0 -7
- package/dist/vue/text-field.d.ts +0 -4
- package/dist/vue/timepicker.d.ts +0 -4
- package/dist/vue/toolbar.d.ts +0 -5
- package/dist/vue/tooltip.d.ts +0 -4
- package/dist/vue/top-app-bar.d.ts +0 -4
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import type { ForwardedEventPayload } from "../../core/dom/index.js";
|
|
2
|
-
import type { NormalizedEvent } from "../../core/utils/mobile.js";
|
|
3
|
-
/** Normalized touch-end event emitted by the interactive root on touch devices. */
|
|
4
|
-
export type TimePickerTapPayload = NormalizedEvent;
|
|
5
|
-
/** Horizontal swipe emitted by the interactive root on touch devices. */
|
|
6
|
-
export interface TimePickerSwipePayload {
|
|
7
|
-
direction: "left" | "right";
|
|
8
|
-
deltaX: number;
|
|
9
|
-
deltaY: number;
|
|
10
|
-
}
|
|
11
|
-
/** The committed 24-hour value carried by `change` and `confirm`. */
|
|
12
|
-
export interface TimePickerValueEvent {
|
|
13
|
-
/** HH:MM, or HH:MM:SS with showSeconds */
|
|
14
|
-
value: string;
|
|
15
|
-
}
|
|
16
|
-
/** A draft edit while the committed value remains available as `value`. */
|
|
17
|
-
export interface TimePickerInputEvent extends TimePickerValueEvent {
|
|
18
|
-
/** The uncommitted 24-hour value shown in the open picker. */
|
|
19
|
-
draftValue: string;
|
|
20
|
-
}
|
|
21
|
-
/** Events emitted by the picker API and its interactive root. */
|
|
22
|
-
export interface TimePickerEvents {
|
|
23
|
-
/** The committed 24-hour value (HH:MM, or HH:MM:SS with showSeconds), also submitted by the form: once when OK commits a different time. */
|
|
24
|
-
change: (event: TimePickerValueEvent) => void;
|
|
25
|
-
/** The committed value and draft as the dial, fields or AM/PM change. */
|
|
26
|
-
input: (event: TimePickerInputEvent) => void;
|
|
27
|
-
/** The confirmed 24-hour value, matching getValue() and the submitted form value. */
|
|
28
|
-
confirm: (event: TimePickerValueEvent) => void;
|
|
29
|
-
open: () => void;
|
|
30
|
-
close: () => void;
|
|
31
|
-
cancel: () => void;
|
|
32
|
-
/** Root events; the dialog is inside the root, so its clicks and keys reach these too. */
|
|
33
|
-
click: (payload: ForwardedEventPayload<MouseEvent, HTMLElement>) => void;
|
|
34
|
-
keydown: (payload: ForwardedEventPayload<KeyboardEvent, HTMLElement>) => void;
|
|
35
|
-
tap: (payload: TimePickerTapPayload) => void;
|
|
36
|
-
swipe: (payload: TimePickerSwipePayload) => void;
|
|
37
|
-
}
|
|
38
|
-
/** Time picker display type */
|
|
39
|
-
export declare enum TIME_PICKER_TYPE {
|
|
40
|
-
/** Clock dial-based time picker */
|
|
41
|
-
DIAL = "dial",
|
|
42
|
-
/** Text input-based time picker */
|
|
43
|
-
INPUT = "input"
|
|
44
|
-
}
|
|
45
|
-
/** Time picker orientation */
|
|
46
|
-
export declare enum TIME_PICKER_ORIENTATION {
|
|
47
|
-
/** Vertical layout (default on mobile) */
|
|
48
|
-
VERTICAL = "vertical",
|
|
49
|
-
/** Horizontal layout */
|
|
50
|
-
HORIZONTAL = "horizontal"
|
|
51
|
-
}
|
|
52
|
-
/** Time format (12-hour or 24-hour) */
|
|
53
|
-
export declare enum TIME_FORMAT {
|
|
54
|
-
/** 12-hour format with AM/PM */
|
|
55
|
-
AMPM = "12h",
|
|
56
|
-
/** 24-hour format */
|
|
57
|
-
MILITARY = "24h"
|
|
58
|
-
}
|
|
59
|
-
/** A time format as the enum or its string value, `'12h'` or `'24h'` */
|
|
60
|
-
export type TimeFormat = TIME_FORMAT | `${TIME_FORMAT}`;
|
|
61
|
-
/** A time picker type as the enum or its string value, `'dial'` or `'input'` */
|
|
62
|
-
export type TimePickerType = TIME_PICKER_TYPE | `${TIME_PICKER_TYPE}`;
|
|
63
|
-
/** An orientation as the enum or its string value, `'vertical'` or `'horizontal'` */
|
|
64
|
-
export type TimePickerOrientation = TIME_PICKER_ORIENTATION | `${TIME_PICKER_ORIENTATION}`;
|
|
65
|
-
/** Period of day for 12-hour format */
|
|
66
|
-
export declare enum TIME_PERIOD {
|
|
67
|
-
/** Morning */
|
|
68
|
-
AM = "AM",
|
|
69
|
-
/** Afternoon/Evening */
|
|
70
|
-
PM = "PM"
|
|
71
|
-
}
|
|
72
|
-
/** Configuration interface for the TimePicker component */
|
|
73
|
-
export interface TimePickerConfig {
|
|
74
|
-
/** Initial time value in 24-hour format (HH:MM) */
|
|
75
|
-
value?: string;
|
|
76
|
-
/** Form field name. */
|
|
77
|
-
name?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Type of time picker to display
|
|
80
|
-
* @default TIME_PICKER_TYPE.DIAL
|
|
81
|
-
*/
|
|
82
|
-
type?: TimePickerType;
|
|
83
|
-
/**
|
|
84
|
-
* Time format to use (12h or 24h)
|
|
85
|
-
* @default TIME_FORMAT.AMPM
|
|
86
|
-
*/
|
|
87
|
-
format?: TimeFormat;
|
|
88
|
-
/**
|
|
89
|
-
* Layout orientation for the time picker
|
|
90
|
-
* @default TIME_PICKER_ORIENTATION.VERTICAL
|
|
91
|
-
*/
|
|
92
|
-
orientation?: TimePickerOrientation;
|
|
93
|
-
/** Title text for the time picker */
|
|
94
|
-
title?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Whether to show seconds selector
|
|
97
|
-
* @default false
|
|
98
|
-
*/
|
|
99
|
-
showSeconds?: boolean;
|
|
100
|
-
/** Additional CSS classes to add to the time picker */
|
|
101
|
-
class?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Component prefix for class names
|
|
104
|
-
* @default 'mtrl'
|
|
105
|
-
*/
|
|
106
|
-
prefix?: string;
|
|
107
|
-
/** Component name used in class generation */
|
|
108
|
-
componentName?: string;
|
|
109
|
-
/** Earliest selectable time, 24-hour `HH:MM` or `HH:MM:SS`. */
|
|
110
|
-
minTime?: string;
|
|
111
|
-
/** Latest selectable time, 24-hour `HH:MM` or `HH:MM:SS`; as `minTime`, at the other end. */
|
|
112
|
-
maxTime?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Minute step: dial minutes off it are disabled, a pointer between them picks the nearest, and a typed minute rounds to it when committed.
|
|
115
|
-
* @default 1
|
|
116
|
-
*/
|
|
117
|
-
minuteStep?: number;
|
|
118
|
-
/**
|
|
119
|
-
* Second step, as `minuteStep`, when seconds are shown.
|
|
120
|
-
* @default 1
|
|
121
|
-
*/
|
|
122
|
-
secondStep?: number;
|
|
123
|
-
/**
|
|
124
|
-
* Custom text for cancel button
|
|
125
|
-
* @default 'Cancel'
|
|
126
|
-
*/
|
|
127
|
-
cancelText?: string;
|
|
128
|
-
/**
|
|
129
|
-
* Custom text for confirm button
|
|
130
|
-
* @default 'OK'
|
|
131
|
-
*/
|
|
132
|
-
confirmText?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Whether the time picker is open when the factory returns: `isOpen()` is true and `open` has been emitted (to `onOpen`).
|
|
135
|
-
* @default false
|
|
136
|
-
*/
|
|
137
|
-
open?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Whether the picker is disabled: it does not open
|
|
140
|
-
* @default false
|
|
141
|
-
*/
|
|
142
|
-
disabled?: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* Where the dialog is appended.
|
|
145
|
-
* @default the component's element
|
|
146
|
-
*/
|
|
147
|
-
container?: string | HTMLElement;
|
|
148
|
-
/** Custom icon for the clock button */
|
|
149
|
-
clockIcon?: string;
|
|
150
|
-
/** Custom icon for the keyboard button */
|
|
151
|
-
keyboardIcon?: string;
|
|
152
|
-
/** `change` listener registered at creation. */
|
|
153
|
-
onChange?: TimePickerEvents["change"];
|
|
154
|
-
/** `input` listener registered at creation, as the draft changes while the picker is open. */
|
|
155
|
-
onInput?: TimePickerEvents["input"];
|
|
156
|
-
/** `open` listener registered at creation. */
|
|
157
|
-
onOpen?: TimePickerEvents["open"];
|
|
158
|
-
/** `close` listener registered at creation. */
|
|
159
|
-
onClose?: TimePickerEvents["close"];
|
|
160
|
-
/** `confirm` listener registered at creation. */
|
|
161
|
-
onConfirm?: TimePickerEvents["confirm"];
|
|
162
|
-
/** `cancel` listener registered at creation. */
|
|
163
|
-
onCancel?: TimePickerEvents["cancel"];
|
|
164
|
-
}
|
|
165
|
-
/** Configuration as it leaves `createBaseConfig`. */
|
|
166
|
-
export type ResolvedTimePickerConfig = TimePickerConfig & Required<Pick<TimePickerConfig, "type" | "format" | "orientation" | "showSeconds" | "minuteStep" | "secondStep" | "cancelText" | "confirmText" | "open" | "clockIcon" | "keyboardIcon" | "prefix">> & {
|
|
167
|
-
/** The dialog title's id, unique per picker. */
|
|
168
|
-
titleId?: string;
|
|
169
|
-
};
|
|
170
|
-
/** Time value object */
|
|
171
|
-
export interface TimeValue {
|
|
172
|
-
/** Hours (0-23) */
|
|
173
|
-
hours: number;
|
|
174
|
-
/** Minutes (0-59) */
|
|
175
|
-
minutes: number;
|
|
176
|
-
/** Seconds (0-59), optional */
|
|
177
|
-
seconds?: number;
|
|
178
|
-
/** AM/PM for 12-hour format */
|
|
179
|
-
period?: TIME_PERIOD;
|
|
180
|
-
}
|
|
181
|
-
/** TimePicker component interface */
|
|
182
|
-
export interface TimePickerComponent {
|
|
183
|
-
/** The time picker's container DOM element */
|
|
184
|
-
element: HTMLElement;
|
|
185
|
-
/** Modal container element */
|
|
186
|
-
modalElement: HTMLElement;
|
|
187
|
-
/** Dialog container element */
|
|
188
|
-
dialogElement: HTMLElement;
|
|
189
|
-
/** Whether the time picker is currently open */
|
|
190
|
-
isOpen: () => boolean;
|
|
191
|
-
/** Opens the time picker. */
|
|
192
|
-
open: () => TimePickerComponent;
|
|
193
|
-
/** Closes the time picker */
|
|
194
|
-
close: () => TimePickerComponent;
|
|
195
|
-
/** Toggles the time picker open/closed state */
|
|
196
|
-
toggle: () => TimePickerComponent;
|
|
197
|
-
/** Gets the current time value */
|
|
198
|
-
getValue: () => string;
|
|
199
|
-
/** Gets the current time as a TimeValue object */
|
|
200
|
-
getTimeObject: () => TimeValue;
|
|
201
|
-
/**
|
|
202
|
-
* Sets the time value.
|
|
203
|
-
* @param time
|
|
204
|
-
*/
|
|
205
|
-
setValue: (time: string) => TimePickerComponent;
|
|
206
|
-
/**
|
|
207
|
-
* Sets the time picker type (dial or input)
|
|
208
|
-
* @param type
|
|
209
|
-
*/
|
|
210
|
-
setType: (type: TimePickerType) => TimePickerComponent;
|
|
211
|
-
/** Gets the current time picker type */
|
|
212
|
-
getType: () => TIME_PICKER_TYPE;
|
|
213
|
-
/**
|
|
214
|
-
* Sets the time format (12h or 24h)
|
|
215
|
-
* @param format
|
|
216
|
-
*/
|
|
217
|
-
setFormat: (format: TimeFormat) => TimePickerComponent;
|
|
218
|
-
/** Gets the current time format */
|
|
219
|
-
getFormat: () => TIME_FORMAT;
|
|
220
|
-
/**
|
|
221
|
-
* Sets the time picker orientation
|
|
222
|
-
* @param orientation
|
|
223
|
-
*/
|
|
224
|
-
setOrientation: (orientation: TimePickerOrientation) => TimePickerComponent;
|
|
225
|
-
/** Gets the current time picker orientation */
|
|
226
|
-
getOrientation: () => TIME_PICKER_ORIENTATION;
|
|
227
|
-
/**
|
|
228
|
-
* Sets the time picker title
|
|
229
|
-
* @param title
|
|
230
|
-
*/
|
|
231
|
-
setTitle: (title: string) => TimePickerComponent;
|
|
232
|
-
/** Gets the current time picker title */
|
|
233
|
-
getTitle: () => string;
|
|
234
|
-
/** Enables the picker */
|
|
235
|
-
enable: () => TimePickerComponent;
|
|
236
|
-
/** Disables the picker: it does not open, and an open one is cancelled */
|
|
237
|
-
disable: () => TimePickerComponent;
|
|
238
|
-
/** Whether the picker is disabled */
|
|
239
|
-
isDisabled: () => boolean;
|
|
240
|
-
/** Destroys the time picker component and cleans up resources */
|
|
241
|
-
destroy: () => void;
|
|
242
|
-
/**
|
|
243
|
-
* Adds an event listener to the time picker
|
|
244
|
-
* @param event
|
|
245
|
-
* @param handler
|
|
246
|
-
*/
|
|
247
|
-
on: <K extends keyof TimePickerEvents>(event: K, handler: TimePickerEvents[K]) => TimePickerComponent;
|
|
248
|
-
/**
|
|
249
|
-
* Removes an event listener from the time picker
|
|
250
|
-
* @param event
|
|
251
|
-
* @param handler
|
|
252
|
-
*/
|
|
253
|
-
off: <K extends keyof TimePickerEvents>(event: K, handler: TimePickerEvents[K]) => TimePickerComponent;
|
|
254
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ToolbarConfig, ToolbarComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Creates a toolbar: M3 Expressive's docked and floating toolbars.
|
|
4
|
-
* @param config
|
|
5
|
-
*/
|
|
6
|
-
declare const createToolbar: (config?: ToolbarConfig) => ToolbarComponent;
|
|
7
|
-
export default createToolbar;
|
|
8
|
-
export { createToolbar };
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import type { ElementComponent } from "../../core/compose/index.js";
|
|
2
|
-
import type { BaseComponentConfig } from "../../core/config/component.js";
|
|
3
|
-
import type { ButtonConfig } from "../button/types.js";
|
|
4
|
-
import type { IconButtonConfig } from "../icon-button/types.js";
|
|
5
|
-
import type { ToolbarVariant, ToolbarColor, ToolbarOrientation, ToolbarPlacement, ToolbarArrangement, ToolbarScrollBehavior, ToolbarFabPosition } from "./constants.js";
|
|
6
|
-
/** Anything the toolbar can hold that already exists: an element, or a component carrying one. */
|
|
7
|
-
export type ToolbarElementItem = HTMLElement | {
|
|
8
|
-
element: HTMLElement;
|
|
9
|
-
};
|
|
10
|
-
/** A button the toolbar creates from its config: a label is what makes it a button. */
|
|
11
|
-
export type ToolbarButtonItem = ButtonConfig & {
|
|
12
|
-
text: string;
|
|
13
|
-
};
|
|
14
|
-
/** An item of the toolbar: - an icon button config (`icon`, `ariaLabel`, and `toggle`, `selected`, `variant`, `width` as on createIconButton), created by the toolbar; - a button config with `text`, created by the toolbar; - an element or a component, such as a text field or a divider, added as it is. */
|
|
15
|
-
export type ToolbarItem = ToolbarElementItem | ToolbarButtonItem | IconButtonConfig;
|
|
16
|
-
/** Configuration of a toolbar */
|
|
17
|
-
export interface ToolbarConfig extends BaseComponentConfig {
|
|
18
|
-
/**
|
|
19
|
-
* Docked (full width, global actions) or floating (a pill, contextual actions)
|
|
20
|
-
* @default 'docked'
|
|
21
|
-
*/
|
|
22
|
-
variant?: ToolbarVariant | string;
|
|
23
|
-
/**
|
|
24
|
-
* Standard (surface container) or vibrant (primary container)
|
|
25
|
-
* @default 'standard'
|
|
26
|
-
*/
|
|
27
|
-
color?: ToolbarColor | string;
|
|
28
|
-
/**
|
|
29
|
-
* Layout of a floating toolbar.
|
|
30
|
-
* @default 'horizontal'
|
|
31
|
-
*/
|
|
32
|
-
orientation?: ToolbarOrientation | string;
|
|
33
|
-
/**
|
|
34
|
-
* Where the toolbar sits in its positioned container: `'none'` leaves it in the flow.
|
|
35
|
-
* @default 'none'
|
|
36
|
-
*/
|
|
37
|
-
placement?: ToolbarPlacement | string;
|
|
38
|
-
/**
|
|
39
|
-
* How a docked toolbar lays out its items: spread across the width, or centred 32dp apart
|
|
40
|
-
* @default 'spread'
|
|
41
|
-
*/
|
|
42
|
-
arrangement?: ToolbarArrangement | string;
|
|
43
|
-
/**
|
|
44
|
-
* Whether a floating toolbar casts a shadow (elevation level 1).
|
|
45
|
-
* @default true for floating
|
|
46
|
-
*/
|
|
47
|
-
elevated?: boolean;
|
|
48
|
-
/** The items, in order */
|
|
49
|
-
items?: ToolbarItem[];
|
|
50
|
-
/** A FAB paired with a floating toolbar, outside its tab stop. */
|
|
51
|
-
fab?: ToolbarElementItem;
|
|
52
|
-
/**
|
|
53
|
-
* Which end of the toolbar the FAB sits at, along its layout
|
|
54
|
-
* @default 'end'
|
|
55
|
-
*/
|
|
56
|
-
fabPosition?: ToolbarFabPosition | string;
|
|
57
|
-
/** Adds a trailing "more" icon button and calls this with it, to build the overflow menu the button opens: `(opener) => createMenu({ opener, items })`. */
|
|
58
|
-
overflow?: (opener: HTMLElement) => unknown;
|
|
59
|
-
/**
|
|
60
|
-
* Icon of the overflow button
|
|
61
|
-
* @default a "more vertical" icon
|
|
62
|
-
*/
|
|
63
|
-
overflowIcon?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Accessible name of the overflow button
|
|
66
|
-
* @default 'More options'
|
|
67
|
-
*/
|
|
68
|
-
overflowLabel?: string;
|
|
69
|
-
/**
|
|
70
|
-
* `'exit'` hides the toolbar while the content scrolls forward and shows it
|
|
71
|
-
* @default 'none'
|
|
72
|
-
*/
|
|
73
|
-
scrollBehavior?: ToolbarScrollBehavior | string;
|
|
74
|
-
/**
|
|
75
|
-
* What scrolls, for `scrollBehavior: 'exit'`
|
|
76
|
-
* @default window
|
|
77
|
-
*/
|
|
78
|
-
scrollTarget?: HTMLElement | Window;
|
|
79
|
-
/**
|
|
80
|
-
* The scroll distance, in px, that hides or shows the toolbar
|
|
81
|
-
* @default 40
|
|
82
|
-
*/
|
|
83
|
-
scrollThreshold?: number;
|
|
84
|
-
/**
|
|
85
|
-
* Accessible name of the toolbar
|
|
86
|
-
* @default 'Toolbar'
|
|
87
|
-
*/
|
|
88
|
-
ariaLabel?: string;
|
|
89
|
-
/** Additional CSS classes */
|
|
90
|
-
class?: string;
|
|
91
|
-
}
|
|
92
|
-
/** Events of a toolbar */
|
|
93
|
-
export interface ToolbarEvents {
|
|
94
|
-
/** The toolbar came back on screen */
|
|
95
|
-
show: () => void;
|
|
96
|
-
/** The toolbar left the screen */
|
|
97
|
-
hide: () => void;
|
|
98
|
-
}
|
|
99
|
-
/** A toolbar */
|
|
100
|
-
export interface ToolbarComponent extends ElementComponent {
|
|
101
|
-
/** The element with the `toolbar` role, which holds the items */
|
|
102
|
-
bar: HTMLElement;
|
|
103
|
-
/** The overflow button, when `overflow` is set */
|
|
104
|
-
overflowButton: HTMLElement | null;
|
|
105
|
-
/** Adds an item at the end, before the overflow button */
|
|
106
|
-
add(item: ToolbarItem): HTMLElement;
|
|
107
|
-
/** Removes an item; one the toolbar created is destroyed */
|
|
108
|
-
remove(item: ToolbarElementItem): this;
|
|
109
|
-
/** The item elements, in order, without the overflow button */
|
|
110
|
-
getItems(): HTMLElement[];
|
|
111
|
-
/** Brings the toolbar back on screen */
|
|
112
|
-
show(): this;
|
|
113
|
-
/** Moves the toolbar off screen and out of the focus order */
|
|
114
|
-
hide(): this;
|
|
115
|
-
/** Whether the toolbar is on screen */
|
|
116
|
-
isVisible(): boolean;
|
|
117
|
-
/** Changes the colour */
|
|
118
|
-
setColor(color: ToolbarColor | string): this;
|
|
119
|
-
/** The current colour */
|
|
120
|
-
getColor(): ToolbarColor;
|
|
121
|
-
on<K extends keyof ToolbarEvents>(event: K, handler: ToolbarEvents[K]): this;
|
|
122
|
-
off<K extends keyof ToolbarEvents>(event: K, handler: ToolbarEvents[K]): this;
|
|
123
|
-
/** Removes the toolbar, its listeners and the items it created */
|
|
124
|
-
destroy(): void;
|
|
125
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/** Tooltip positions */
|
|
2
|
-
export declare const TOOLTIP_POSITIONS: {
|
|
3
|
-
readonly TOP: "top";
|
|
4
|
-
readonly RIGHT: "right";
|
|
5
|
-
readonly BOTTOM: "bottom";
|
|
6
|
-
readonly LEFT: "left";
|
|
7
|
-
readonly TOP_START: "top-start";
|
|
8
|
-
readonly TOP_END: "top-end";
|
|
9
|
-
readonly RIGHT_START: "right-start";
|
|
10
|
-
readonly RIGHT_END: "right-end";
|
|
11
|
-
readonly BOTTOM_START: "bottom-start";
|
|
12
|
-
readonly BOTTOM_END: "bottom-end";
|
|
13
|
-
readonly LEFT_START: "left-start";
|
|
14
|
-
readonly LEFT_END: "left-end";
|
|
15
|
-
};
|
|
16
|
-
/** Tooltip variants */
|
|
17
|
-
export declare const TOOLTIP_VARIANTS: {
|
|
18
|
-
readonly DEFAULT: "default";
|
|
19
|
-
readonly RICH: "rich";
|
|
20
|
-
readonly PLAIN: "plain";
|
|
21
|
-
};
|
|
22
|
-
/** Default values */
|
|
23
|
-
export declare const DEFAULT_SHOW_DELAY = 300;
|
|
24
|
-
export declare const DEFAULT_HIDE_DELAY = 100;
|
|
25
|
-
export declare const DEFAULT_OFFSET = 8;
|
|
26
|
-
export declare const DEFAULT_ARROW_SIZE = 8;
|
|
27
|
-
/** Available Tooltip variants */
|
|
28
|
-
export type TooltipVariant = 'default' | 'rich' | 'plain';
|
|
29
|
-
/** Available Tooltip positions */
|
|
30
|
-
export type TooltipPosition = typeof TOOLTIP_POSITIONS[keyof typeof TOOLTIP_POSITIONS];
|
|
31
|
-
/** Configuration interface for the Tooltip component */
|
|
32
|
-
export interface TooltipConfig {
|
|
33
|
-
/** Tooltip content text */
|
|
34
|
-
text?: string;
|
|
35
|
-
/** HTML element that triggers the tooltip */
|
|
36
|
-
target?: HTMLElement;
|
|
37
|
-
/**
|
|
38
|
-
* Tooltip position relative to the target
|
|
39
|
-
* @default 'bottom'
|
|
40
|
-
*/
|
|
41
|
-
position?: TooltipPosition | string;
|
|
42
|
-
/**
|
|
43
|
-
* Tooltip variant that determines visual styling
|
|
44
|
-
* @default 'default'
|
|
45
|
-
*/
|
|
46
|
-
variant?: TooltipVariant | string;
|
|
47
|
-
/**
|
|
48
|
-
* Whether the tooltip is initially visible
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
visible?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Show delay in milliseconds
|
|
54
|
-
* @default 300
|
|
55
|
-
*/
|
|
56
|
-
showDelay?: number;
|
|
57
|
-
/**
|
|
58
|
-
* Hide delay in milliseconds
|
|
59
|
-
* @default 100
|
|
60
|
-
*/
|
|
61
|
-
hideDelay?: number;
|
|
62
|
-
/**
|
|
63
|
-
* Whether to show the tooltip on focus
|
|
64
|
-
* @default true
|
|
65
|
-
*/
|
|
66
|
-
showOnFocus?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Whether to show the tooltip on hover
|
|
69
|
-
* @default true
|
|
70
|
-
*/
|
|
71
|
-
showOnHover?: boolean;
|
|
72
|
-
/** Additional CSS classes to add to the tooltip */
|
|
73
|
-
class?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Component prefix for class names
|
|
76
|
-
* @default 'mtrl'
|
|
77
|
-
*/
|
|
78
|
-
prefix?: string;
|
|
79
|
-
/** Component name used in class generation */
|
|
80
|
-
componentName?: string;
|
|
81
|
-
/** Optional z-index for the tooltip */
|
|
82
|
-
zIndex?: number;
|
|
83
|
-
/** `"top"` renders the tooltip in place, after its target, and shows it in the browser's top layer as a `popover="manual"` element: above every z-index, outside any clipping ancestor, and in the target's tree (a shadow root's included), so it takes that tree's styles. */
|
|
84
|
-
layer?: "top";
|
|
85
|
-
}
|
|
86
|
-
/** Tooltip component interface */
|
|
87
|
-
export interface TooltipComponent {
|
|
88
|
-
/** The tooltip's DOM element */
|
|
89
|
-
element: HTMLElement;
|
|
90
|
-
/** The tooltip's target element */
|
|
91
|
-
target: HTMLElement | null;
|
|
92
|
-
/** API for managing component lifecycle */
|
|
93
|
-
lifecycle: {
|
|
94
|
-
/** Destroys the component and cleans up resources */
|
|
95
|
-
destroy: () => void;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Gets a class name with the component's prefix
|
|
99
|
-
* @param name
|
|
100
|
-
*/
|
|
101
|
-
getClass: (name: string) => string;
|
|
102
|
-
/**
|
|
103
|
-
* Sets the tooltip text content
|
|
104
|
-
* @param text
|
|
105
|
-
*/
|
|
106
|
-
setText: (text: string) => TooltipComponent;
|
|
107
|
-
/** Gets the tooltip text content */
|
|
108
|
-
getText: () => string;
|
|
109
|
-
/**
|
|
110
|
-
* Sets the tooltip position
|
|
111
|
-
* @param position
|
|
112
|
-
*/
|
|
113
|
-
setPosition: (position: TooltipPosition) => TooltipComponent;
|
|
114
|
-
/** Gets the current tooltip position */
|
|
115
|
-
getPosition: () => TooltipPosition;
|
|
116
|
-
/**
|
|
117
|
-
* Sets the tooltip target element
|
|
118
|
-
* @param target
|
|
119
|
-
*/
|
|
120
|
-
setTarget: (target: HTMLElement) => TooltipComponent;
|
|
121
|
-
/**
|
|
122
|
-
* Shows the tooltip.
|
|
123
|
-
* @param immediate
|
|
124
|
-
*/
|
|
125
|
-
show: (immediate?: boolean) => TooltipComponent;
|
|
126
|
-
/**
|
|
127
|
-
* Hides the tooltip, after the hide delay and without an event; `hide(true)` hides it at once.
|
|
128
|
-
* @param immediate
|
|
129
|
-
*/
|
|
130
|
-
hide: (immediate?: boolean) => TooltipComponent;
|
|
131
|
-
/** Checks if the tooltip is currently visible */
|
|
132
|
-
isVisible: () => boolean;
|
|
133
|
-
/** Updates the tooltip's position relative to its target */
|
|
134
|
-
updatePosition: () => TooltipComponent;
|
|
135
|
-
/** Destroys the tooltip component and cleans up resources */
|
|
136
|
-
destroy: () => void;
|
|
137
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { ElementComponent } from "../../core/compose/index.js";
|
|
2
|
-
/** Top App Bar types */
|
|
3
|
-
export type TopAppBarType = 'small' | 'medium' | 'large' | 'center';
|
|
4
|
-
/** Configuration options for Top App Bar component */
|
|
5
|
-
export interface TopAppBarConfig {
|
|
6
|
-
/**
|
|
7
|
-
* Element to use for the container
|
|
8
|
-
* @default 'header'
|
|
9
|
-
*/
|
|
10
|
-
tag?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Type of top app bar to display
|
|
13
|
-
* @default 'small'
|
|
14
|
-
*/
|
|
15
|
-
type?: TopAppBarType;
|
|
16
|
-
/** Title text to display in the app bar */
|
|
17
|
-
title?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether to enable scrolling behavior
|
|
20
|
-
* @default true
|
|
21
|
-
*/
|
|
22
|
-
scrollable?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether to compress medium/large variants to small on scroll
|
|
25
|
-
* @default true
|
|
26
|
-
*/
|
|
27
|
-
compressible?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Scroll threshold in pixels to trigger the scrolled state
|
|
30
|
-
* @default 4
|
|
31
|
-
*/
|
|
32
|
-
scrollThreshold?: number;
|
|
33
|
-
/** Additional CSS classes to apply */
|
|
34
|
-
class?: string;
|
|
35
|
-
/** Called with the new scrolled state when scrolling changes the bar. */
|
|
36
|
-
onScroll?: (scrolled: boolean) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Component prefix for class names
|
|
39
|
-
* @default 'mtrl'
|
|
40
|
-
*/
|
|
41
|
-
prefix?: string;
|
|
42
|
-
/** Component name for class generation */
|
|
43
|
-
componentName?: string;
|
|
44
|
-
}
|
|
45
|
-
/** Top App Bar component interface */
|
|
46
|
-
export interface TopAppBarComponent extends ElementComponent {
|
|
47
|
-
/**
|
|
48
|
-
* Sets the title of the top app bar
|
|
49
|
-
* @param title
|
|
50
|
-
*/
|
|
51
|
-
setTitle(title: string): this;
|
|
52
|
-
/** Gets the current title */
|
|
53
|
-
getTitle: () => string;
|
|
54
|
-
/**
|
|
55
|
-
* Adds a leading navigation icon or element
|
|
56
|
-
* @param element
|
|
57
|
-
*/
|
|
58
|
-
addLeadingElement(element: HTMLElement): this;
|
|
59
|
-
/**
|
|
60
|
-
* Adds a trailing action icon or element
|
|
61
|
-
* @param element
|
|
62
|
-
*/
|
|
63
|
-
addTrailingElement(element: HTMLElement): this;
|
|
64
|
-
/**
|
|
65
|
-
* Changes the top app bar type
|
|
66
|
-
* @param type
|
|
67
|
-
*/
|
|
68
|
-
setType(type: TopAppBarType): this;
|
|
69
|
-
/**
|
|
70
|
-
* Manually sets the scrolled state
|
|
71
|
-
* @param scrolled
|
|
72
|
-
*/
|
|
73
|
-
setScrollState(scrolled: boolean): this;
|
|
74
|
-
/** Gets the headline element */
|
|
75
|
-
getHeadlineElement: () => HTMLElement;
|
|
76
|
-
/** Gets the leading container element */
|
|
77
|
-
getLeadingContainer: () => HTMLElement;
|
|
78
|
-
/** Gets the trailing container element */
|
|
79
|
-
getTrailingContainer: () => HTMLElement;
|
|
80
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Easing function for smooth animations (Material Design standard)
|
|
3
|
-
* @param t
|
|
4
|
-
*/
|
|
5
|
-
export declare const easeOutCubic: (t: number) => number;
|
|
6
|
-
/** Standard Material Design animation durations */
|
|
7
|
-
export declare const ANIMATION_DURATIONS: {
|
|
8
|
-
SHORT: number;
|
|
9
|
-
MEDIUM: number;
|
|
10
|
-
LONG: number;
|
|
11
|
-
EXTRA_LONG: number;
|
|
12
|
-
};
|
|
13
|
-
/** Common easing functions */
|
|
14
|
-
export declare const EASING_FUNCTIONS: {
|
|
15
|
-
linear: (t: number) => number;
|
|
16
|
-
easeIn: (t: number) => number;
|
|
17
|
-
easeOut: (t: number) => number;
|
|
18
|
-
easeInOut: (t: number) => number;
|
|
19
|
-
materialStandard: (t: number) => number;
|
|
20
|
-
};
|