material 3.2.6 → 3.2.7
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/dist/components/badge/badge.d.ts +0 -59
- package/dist/components/badge/constants.d.ts +0 -15
- package/dist/components/badge/index.d.ts +0 -6
- package/dist/components/badge/types.d.ts +0 -244
- package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -10
- package/dist/components/bottom-app-bar/constants.d.ts +0 -9
- package/dist/components/bottom-app-bar/index.d.ts +0 -4
- package/dist/components/bottom-app-bar/types.d.ts +0 -76
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -21
- package/dist/components/bottom-sheet/constants.d.ts +0 -29
- package/dist/components/bottom-sheet/types.d.ts +0 -89
- package/dist/components/button/button.d.ts +0 -62
- package/dist/components/button/constants.d.ts +0 -41
- package/dist/components/button/index.d.ts +0 -4
- package/dist/components/button/types.d.ts +0 -347
- package/dist/components/button-group/button-group.d.ts +0 -51
- package/dist/components/button-group/constants.d.ts +0 -83
- package/dist/components/button-group/index.d.ts +0 -10
- package/dist/components/button-group/types.d.ts +0 -234
- package/dist/components/card/card.d.ts +0 -64
- package/dist/components/card/constants.d.ts +0 -33
- package/dist/components/card/content.d.ts +0 -86
- package/dist/components/card/index.d.ts +0 -66
- package/dist/components/card/types.d.ts +0 -366
- package/dist/components/carousel/carousel.d.ts +0 -22
- package/dist/components/carousel/constants.d.ts +0 -16
- package/dist/components/carousel/types.d.ts +0 -29
- package/dist/components/checkbox/checkbox.d.ts +0 -61
- package/dist/components/checkbox/constants.d.ts +0 -33
- package/dist/components/checkbox/index.d.ts +0 -25
- package/dist/components/checkbox/types.d.ts +0 -206
- package/dist/components/chips/chips.d.ts +0 -14
- package/dist/components/chips/constants.d.ts +0 -1
- package/dist/components/chips/factories.d.ts +0 -4
- package/dist/components/chips/types.d.ts +0 -278
- package/dist/components/datepicker/constants.d.ts +0 -56
- package/dist/components/datepicker/datepicker.d.ts +0 -5
- package/dist/components/datepicker/types.d.ts +12 -257
- package/dist/components/dialog/constants.d.ts +0 -65
- package/dist/components/dialog/dialog.d.ts +0 -86
- package/dist/components/dialog/index.d.ts +0 -12
- package/dist/components/dialog/types.d.ts +0 -511
- package/dist/components/divider/config.d.ts +0 -130
- package/dist/components/divider/constants.d.ts +0 -27
- package/dist/components/divider/divider.d.ts +0 -36
- package/dist/components/divider/index.d.ts +0 -29
- package/dist/components/divider/types.d.ts +0 -126
- package/dist/components/drawer/constants.d.ts +0 -53
- package/dist/components/drawer/drawer.d.ts +0 -56
- package/dist/components/drawer/index.d.ts +0 -4
- package/dist/components/drawer/types.d.ts +0 -200
- package/dist/components/extended-fab/constants.d.ts +0 -46
- package/dist/components/extended-fab/extended-fab.d.ts +0 -58
- package/dist/components/extended-fab/index.d.ts +0 -34
- package/dist/components/extended-fab/types.d.ts +0 -654
- package/dist/components/fab/constants.d.ts +0 -40
- package/dist/components/fab/fab.d.ts +0 -42
- package/dist/components/fab/index.d.ts +0 -33
- package/dist/components/fab/types.d.ts +0 -543
- package/dist/components/fab-menu/constants.d.ts +0 -22
- package/dist/components/fab-menu/fab-menu.d.ts +0 -36
- package/dist/components/fab-menu/types.d.ts +0 -80
- package/dist/components/icon-button/constants.d.ts +0 -90
- package/dist/components/icon-button/icon-button.d.ts +0 -83
- package/dist/components/icon-button/index.d.ts +0 -44
- package/dist/components/icon-button/types.d.ts +0 -314
- package/dist/components/index.d.ts +0 -9
- package/dist/components/list/constants.d.ts +0 -47
- package/dist/components/list/index.d.ts +0 -1
- package/dist/components/list/list.d.ts +0 -26
- package/dist/components/list/types.d.ts +0 -263
- package/dist/components/loading-indicator/constants.d.ts +0 -35
- package/dist/components/loading-indicator/features/renderer.d.ts +0 -14
- package/dist/components/loading-indicator/loading-indicator.d.ts +0 -6
- package/dist/components/loading-indicator/types.d.ts +0 -35
- package/dist/components/menu/constants.d.ts +0 -79
- package/dist/components/menu/index.d.ts +0 -25
- package/dist/components/menu/inner.d.ts +0 -3
- package/dist/components/menu/menu.d.ts +0 -26
- package/dist/components/menu/types.d.ts +0 -423
- package/dist/components/navigation-bar/navigation-bar.d.ts +0 -7
- package/dist/components/navigation-bar/types.d.ts +0 -25
- package/dist/components/navigation-rail/constants.d.ts +0 -2
- package/dist/components/navigation-rail/navigation-rail.d.ts +0 -5
- package/dist/components/navigation-rail/types.d.ts +0 -22
- package/dist/components/progress/constants.d.ts +24 -56
- package/dist/components/progress/progress.d.ts +0 -21
- package/dist/components/progress/types.d.ts +0 -251
- package/dist/components/radios/constants.d.ts +0 -22
- package/dist/components/radios/radios.d.ts +0 -5
- package/dist/components/radios/types.d.ts +0 -142
- package/dist/components/search/constants.d.ts +0 -59
- package/dist/components/search/search.d.ts +0 -32
- package/dist/components/search/types.d.ts +0 -159
- package/dist/components/select/constants.d.ts +0 -60
- package/dist/components/select/index.d.ts +0 -22
- package/dist/components/select/select.d.ts +0 -33
- package/dist/components/select/types.d.ts +0 -241
- package/dist/components/side-sheet/constants.d.ts +0 -28
- package/dist/components/side-sheet/side-sheet.d.ts +0 -21
- package/dist/components/side-sheet/types.d.ts +0 -82
- package/dist/components/slider/constants.d.ts +0 -86
- package/dist/components/slider/slider.d.ts +0 -16
- package/dist/components/slider/types.d.ts +0 -184
- package/dist/components/snackbar/constants.d.ts +0 -73
- package/dist/components/snackbar/snackbar.d.ts +0 -13
- package/dist/components/snackbar/types.d.ts +0 -147
- package/dist/components/split-button/constants.d.ts +0 -33
- package/dist/components/split-button/split-button.d.ts +0 -21
- package/dist/components/split-button/types.d.ts +0 -81
- package/dist/components/switch/constants.d.ts +0 -49
- package/dist/components/switch/switch.d.ts +0 -5
- package/dist/components/switch/types.d.ts +0 -80
- package/dist/components/tabs/constants.d.ts +0 -76
- package/dist/components/tabs/indicator.d.ts +0 -27
- package/dist/components/tabs/responsive.d.ts +0 -30
- package/dist/components/tabs/tab.d.ts +0 -13
- package/dist/components/tabs/tabs.d.ts +0 -24
- package/dist/components/tabs/types.d.ts +0 -335
- package/dist/components/tabs/utils.d.ts +0 -66
- package/dist/components/text-field/constants.d.ts +0 -82
- package/dist/components/text-field/features/trailing-icon.d.ts +0 -61
- package/dist/components/text-field/text-field.d.ts +0 -33
- package/dist/components/text-field/types.d.ts +0 -123
- package/dist/components/timepicker/constants.d.ts +0 -88
- package/dist/components/timepicker/types.d.ts +0 -268
- package/dist/components/toolbar/constants.d.ts +0 -27
- package/dist/components/toolbar/toolbar.d.ts +0 -25
- package/dist/components/toolbar/types.d.ts +0 -102
- package/dist/components/tooltip/constants.d.ts +0 -58
- package/dist/components/tooltip/tooltip.d.ts +0 -5
- package/dist/components/tooltip/types.d.ts +0 -140
- package/dist/components/top-app-bar/constants.d.ts +0 -41
- package/dist/components/top-app-bar/index.d.ts +0 -4
- package/dist/components/top-app-bar/top-app-bar.d.ts +0 -10
- package/dist/components/top-app-bar/types.d.ts +0 -94
- package/dist/core/canvas/animation.d.ts +0 -13
- package/dist/core/canvas/drawing.d.ts +18 -55
- package/dist/core/canvas/index.d.ts +0 -4
- package/dist/core/canvas/resize.d.ts +0 -13
- package/dist/core/canvas/utils.d.ts +0 -62
- package/dist/core/compose/base.d.ts +0 -22
- package/dist/core/compose/cleanup.d.ts +0 -2
- package/dist/core/compose/component.d.ts +0 -31
- package/dist/core/compose/features/badge.d.ts +0 -25
- package/dist/core/compose/features/checkable.d.ts +0 -36
- package/dist/core/compose/features/debounce.d.ts +0 -57
- package/dist/core/compose/features/disabled.d.ts +0 -31
- package/dist/core/compose/features/events.d.ts +0 -38
- package/dist/core/compose/features/icon.d.ts +0 -49
- package/dist/core/compose/features/input.d.ts +0 -82
- package/dist/core/compose/features/lifecycle.d.ts +0 -36
- package/dist/core/compose/features/position.d.ts +0 -27
- package/dist/core/compose/features/ripple.d.ts +0 -29
- package/dist/core/compose/features/size.d.ts +0 -9
- package/dist/core/compose/features/style.d.ts +0 -9
- package/dist/core/compose/features/text.d.ts +0 -45
- package/dist/core/compose/features/textinput.d.ts +0 -88
- package/dist/core/compose/features/textlabel.d.ts +0 -44
- package/dist/core/compose/features/throttle.d.ts +0 -54
- package/dist/core/compose/features/track.d.ts +0 -34
- package/dist/core/compose/features/variant.d.ts +0 -9
- package/dist/core/compose/features/withEvents.d.ts +0 -30
- package/dist/core/compose/index.d.ts +0 -4
- package/dist/core/compose/pipe.d.ts +0 -55
- package/dist/core/compose/utils/type-guards.d.ts +0 -15
- package/dist/core/config/component.d.ts +0 -45
- package/dist/core/config/global.d.ts +0 -43
- package/dist/core/config.d.ts +0 -59
- package/dist/core/dom/attributes.d.ts +0 -41
- package/dist/core/dom/classes.d.ts +0 -49
- package/dist/core/dom/create.d.ts +0 -98
- package/dist/core/dom/events.d.ts +0 -52
- package/dist/core/dom/focus.d.ts +0 -32
- package/dist/core/dom/html.d.ts +0 -24
- package/dist/core/dom/layer.d.ts +0 -98
- package/dist/core/dom/roving.d.ts +0 -19
- package/dist/core/index.d.ts +0 -9
- package/dist/core/navigation/destinations.d.ts +0 -23
- package/dist/core/shapes/cubic.d.ts +24 -19
- package/dist/core/shapes/material.d.ts +0 -64
- package/dist/core/shapes/polygon.d.ts +6 -16
- package/dist/core/state/emitter.d.ts +0 -36
- package/dist/core/state/events.d.ts +0 -29
- package/dist/core/state/store.d.ts +0 -70
- package/dist/core/theme/index.d.ts +0 -3
- package/dist/core/theme/shape.d.ts +0 -7
- package/dist/core/theme/tokens.d.ts +48 -32
- package/dist/core/utils/background.d.ts +0 -29
- package/dist/core/utils/color.d.ts +0 -13
- package/dist/core/utils/index.d.ts +0 -11
- package/dist/core/utils/mobile.d.ts +0 -31
- package/dist/core/utils/object.d.ts +0 -11
- package/dist/core/utils/performance.d.ts +0 -70
- package/dist/core/utils/theme.d.ts +0 -36
- package/dist/core/utils/url.d.ts +0 -17
- package/dist/elements/adapter.d.ts +13 -62
- package/dist/elements/badge.d.ts +0 -17
- package/dist/elements/bottom-app-bar.d.ts +7 -17
- package/dist/elements/bottom-sheet.d.ts +9 -38
- package/dist/elements/button-group.d.ts +0 -31
- package/dist/elements/button.d.ts +0 -18
- package/dist/elements/card.d.ts +8 -24
- package/dist/elements/carousel.d.ts +5 -29
- package/dist/elements/checkbox.d.ts +5 -15
- package/dist/elements/chips.d.ts +0 -33
- package/dist/elements/datepicker.d.ts +4 -48
- package/dist/elements/define.d.ts +3 -161
- package/dist/elements/dialog.d.ts +8 -39
- package/dist/elements/divider.d.ts +0 -14
- package/dist/elements/drawer.d.ts +0 -35
- package/dist/elements/extended-fab.d.ts +6 -18
- package/dist/elements/fab-menu.d.ts +5 -30
- package/dist/elements/fab.d.ts +4 -17
- package/dist/elements/icon-button.d.ts +5 -26
- package/dist/elements/index.d.ts +0 -16
- package/dist/elements/list.d.ts +0 -34
- package/dist/elements/loading-indicator.d.ts +4 -13
- package/dist/elements/menu.d.ts +5 -51
- package/dist/elements/navigation-bar.d.ts +4 -29
- package/dist/elements/navigation-rail.d.ts +8 -49
- 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/preupgrade.d.ts +0 -1
- package/dist/elements/progress.d.ts +0 -15
- package/dist/elements/radios.d.ts +0 -22
- package/dist/elements/search.d.ts +5 -53
- package/dist/elements/select.d.ts +0 -31
- package/dist/elements/side-sheet.d.ts +7 -29
- package/dist/elements/slider.d.ts +3 -22
- package/dist/elements/snackbar.d.ts +4 -28
- package/dist/elements/split-button.d.ts +0 -30
- package/dist/elements/styles.d.ts +0 -63
- package/dist/elements/switch.d.ts +5 -17
- package/dist/elements/tabs.d.ts +0 -22
- package/dist/elements/text-field.d.ts +4 -38
- package/dist/elements/timepicker.d.ts +4 -44
- package/dist/elements/toolbar.d.ts +8 -25
- package/dist/elements/tooltip.d.ts +4 -30
- package/dist/elements/top-app-bar.d.ts +7 -23
- package/dist/index.d.ts +0 -11
- package/dist/package.json +1 -1
- package/dist/react/create.d.ts +0 -42
- package/dist/react/index.d.ts +0 -6
- package/dist/react/jsx.d.ts +0 -13
- package/dist/solid/create.d.ts +0 -48
- package/dist/solid/index.d.ts +0 -6
- package/dist/solid/jsx.d.ts +0 -9
- package/dist/ssr/index.d.ts +0 -49
- package/dist/ssr/solid.d.ts +0 -4
- package/dist/ssr/svelte.d.ts +0 -4
- package/dist/ssr/vue.d.ts +0 -4
- package/dist/styles/badge.css +1 -1
- package/dist/styles/base.css +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +1 -1
- 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 +1 -1
- package/dist/styles/list.css +1 -1
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +1 -1
- 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 +1 -1
- package/dist/styles/slider.css +1 -1
- 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 +1 -1
- package/dist/styles/timepicker.css +1 -1
- 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 +1 -1
- package/dist/svelte/runtime.d.ts +8 -62
- 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 +15 -58
- package/dist/vue/index.d.ts +0 -6
- package/package.json +1 -1
- package/dist/components/badge/api.d.ts +0 -41
- package/dist/components/badge/config.d.ts +0 -631
- package/dist/components/badge/features.d.ts +0 -38
- package/dist/components/bottom-app-bar/config.d.ts +0 -16
- package/dist/components/bottom-sheet/api.d.ts +0 -44
- package/dist/components/bottom-sheet/config.d.ts +0 -547
- package/dist/components/bottom-sheet/features/drag.d.ts +0 -35
- package/dist/components/bottom-sheet/features/index.d.ts +0 -3
- package/dist/components/bottom-sheet/features/state.d.ts +0 -31
- package/dist/components/bottom-sheet/features/structure.d.ts +0 -26
- package/dist/components/button/api.d.ts +0 -68
- package/dist/components/button/config.d.ts +0 -594
- package/dist/components/button/features/progress.d.ts +0 -43
- package/dist/components/button/features/toggle.d.ts +0 -43
- package/dist/components/button-group/config.d.ts +0 -147
- package/dist/components/card/api.d.ts +0 -24
- package/dist/components/card/config.d.ts +0 -635
- package/dist/components/card/features.d.ts +0 -124
- package/dist/components/carousel/api.d.ts +0 -20
- package/dist/components/carousel/arrangement.d.ts +0 -23
- package/dist/components/carousel/config.d.ts +0 -540
- package/dist/components/carousel/features/index.d.ts +0 -2
- package/dist/components/carousel/features/scroll.d.ts +0 -20
- package/dist/components/carousel/features/slides.d.ts +0 -18
- package/dist/components/carousel/keylines.d.ts +0 -68
- package/dist/components/carousel/strategy.d.ts +0 -36
- package/dist/components/checkbox/api.d.ts +0 -7
- package/dist/components/checkbox/config.d.ts +0 -568
- package/dist/components/chips/api.d.ts +0 -62
- package/dist/components/chips/chip/chip.d.ts +0 -4
- package/dist/components/chips/chip/constants.d.ts +0 -38
- package/dist/components/chips/chip/index.d.ts +0 -1
- package/dist/components/chips/config.d.ts +0 -583
- package/dist/components/chips/features/chip-items.d.ts +0 -39
- package/dist/components/chips/features/container.d.ts +0 -75
- package/dist/components/chips/features/controller.d.ts +0 -61
- package/dist/components/chips/features/dom.d.ts +0 -24
- package/dist/components/chips/features/index.d.ts +0 -4
- package/dist/components/chips/schema.d.ts +0 -35
- package/dist/components/datepicker/api.d.ts +0 -7
- package/dist/components/datepicker/config.d.ts +0 -542
- package/dist/components/datepicker/render.d.ts +0 -3
- package/dist/components/datepicker/utils.d.ts +0 -84
- package/dist/components/dialog/api.d.ts +0 -66
- package/dist/components/dialog/config.d.ts +0 -583
- package/dist/components/dialog/features.d.ts +0 -42
- package/dist/components/divider/features.d.ts +0 -6
- package/dist/components/drawer/api.d.ts +0 -55
- package/dist/components/drawer/config.d.ts +0 -620
- package/dist/components/drawer/features/headline.d.ts +0 -27
- package/dist/components/drawer/features/index.d.ts +0 -3
- package/dist/components/drawer/features/items.d.ts +0 -32
- package/dist/components/drawer/features/state.d.ts +0 -22
- package/dist/components/extended-fab/api.d.ts +0 -96
- package/dist/components/extended-fab/config.d.ts +0 -600
- package/dist/components/fab/api.d.ts +0 -74
- package/dist/components/fab/config.d.ts +0 -596
- package/dist/components/fab-menu/config.d.ts +0 -11
- package/dist/components/fab-menu/stagger.d.ts +0 -10
- package/dist/components/icon-button/api.d.ts +0 -84
- package/dist/components/icon-button/config.d.ts +0 -624
- package/dist/components/icon-button/features/toggle.d.ts +0 -133
- package/dist/components/list/api.d.ts +0 -156
- package/dist/components/list/config.d.ts +0 -625
- package/dist/components/list/features/anatomy.d.ts +0 -6
- package/dist/components/list/features/index.d.ts +0 -2
- package/dist/components/list/features/renderer.d.ts +0 -8
- package/dist/components/list/features/selection.d.ts +0 -3
- package/dist/components/loading-indicator/api.d.ts +0 -14
- package/dist/components/loading-indicator/config.d.ts +0 -557
- package/dist/components/loading-indicator/features/motion.d.ts +0 -22
- package/dist/components/menu/api.d.ts +0 -63
- package/dist/components/menu/config.d.ts +0 -576
- package/dist/components/menu/features/controller.d.ts +0 -15
- package/dist/components/menu/features/index.d.ts +0 -5
- package/dist/components/menu/features/keyboard.d.ts +0 -23
- package/dist/components/menu/features/layer.d.ts +0 -15
- package/dist/components/menu/features/loader.d.ts +0 -35
- package/dist/components/menu/features/opener.d.ts +0 -16
- package/dist/components/menu/features/position.d.ts +0 -18
- package/dist/components/menu/features/registry.d.ts +0 -37
- package/dist/components/menu/features/submenu.d.ts +0 -28
- package/dist/components/menu/features/tasks.d.ts +0 -9
- package/dist/components/navigation-bar/config.d.ts +0 -2
- package/dist/components/navigation-rail/config.d.ts +0 -2
- package/dist/components/progress/api.d.ts +0 -81
- package/dist/components/progress/config.d.ts +0 -620
- package/dist/components/progress/features/canvas.d.ts +0 -60
- package/dist/components/progress/features/circular.d.ts +0 -19
- package/dist/components/progress/features/colors.d.ts +0 -17
- package/dist/components/progress/features/index.d.ts +0 -8
- package/dist/components/progress/features/linear.d.ts +0 -25
- package/dist/components/progress/features/motion.d.ts +0 -43
- package/dist/components/progress/features/resize-observer.d.ts +0 -5
- package/dist/components/progress/features/state.d.ts +0 -44
- package/dist/components/radios/api.d.ts +0 -37
- package/dist/components/radios/config.d.ts +0 -568
- package/dist/components/radios/radio.d.ts +0 -26
- package/dist/components/search/api.d.ts +0 -63
- package/dist/components/search/config.d.ts +0 -657
- package/dist/components/search/features/index.d.ts +0 -4
- package/dist/components/search/features/input.d.ts +0 -93
- package/dist/components/search/features/states.d.ts +0 -111
- package/dist/components/search/features/structure.d.ts +0 -16
- package/dist/components/search/features/suggestions.d.ts +0 -60
- package/dist/components/select/api.d.ts +0 -8
- package/dist/components/select/config.d.ts +0 -18
- package/dist/components/select/features.d.ts +0 -14
- package/dist/components/side-sheet/api.d.ts +0 -34
- package/dist/components/side-sheet/config.d.ts +0 -547
- package/dist/components/side-sheet/features/index.d.ts +0 -2
- package/dist/components/side-sheet/features/state.d.ts +0 -28
- package/dist/components/side-sheet/features/structure.d.ts +0 -21
- package/dist/components/slider/api.d.ts +0 -65
- package/dist/components/slider/config.d.ts +0 -605
- package/dist/components/slider/features/axis.d.ts +0 -42
- package/dist/components/slider/features/controller.d.ts +0 -528
- package/dist/components/slider/features/dom.d.ts +0 -22
- package/dist/components/slider/features/handlers.d.ts +0 -16
- package/dist/components/slider/features/index.d.ts +0 -5
- package/dist/components/slider/features/range.d.ts +0 -14
- package/dist/components/slider/features/states.d.ts +0 -76
- package/dist/components/slider/features/tracks.d.ts +0 -50
- package/dist/components/snackbar/api.d.ts +0 -7
- package/dist/components/snackbar/config.d.ts +0 -596
- package/dist/components/snackbar/features.d.ts +0 -26
- package/dist/components/snackbar/layer.d.ts +0 -23
- package/dist/components/snackbar/position.d.ts +0 -16
- package/dist/components/snackbar/queue.d.ts +0 -15
- package/dist/components/split-button/api.d.ts +0 -14
- package/dist/components/split-button/config.d.ts +0 -553
- package/dist/components/split-button/features/buttons.d.ts +0 -8
- package/dist/components/split-button/features/menu.d.ts +0 -10
- package/dist/components/switch/api.d.ts +0 -7
- package/dist/components/switch/config.d.ts +0 -558
- package/dist/components/switch/features.d.ts +0 -63
- package/dist/components/tabs/api.d.ts +0 -54
- package/dist/components/tabs/config.d.ts +0 -31
- package/dist/components/tabs/features.d.ts +0 -131
- package/dist/components/tabs/scroll-indicators.d.ts +0 -18
- package/dist/components/tabs/state.d.ts +0 -48
- package/dist/components/text-field/api.d.ts +0 -29
- package/dist/components/text-field/config.d.ts +0 -560
- package/dist/components/text-field/features/counter.d.ts +0 -29
- package/dist/components/text-field/features/density.d.ts +0 -28
- package/dist/components/text-field/features/error.d.ts +0 -55
- package/dist/components/text-field/features/field.d.ts +0 -37
- package/dist/components/text-field/features/index.d.ts +0 -20
- package/dist/components/text-field/features/leading-icon.d.ts +0 -68
- package/dist/components/text-field/features/placement.d.ts +0 -30
- package/dist/components/text-field/features/prefix-text.d.ts +0 -67
- package/dist/components/text-field/features/required.d.ts +0 -33
- package/dist/components/text-field/features/suffix-text.d.ts +0 -67
- package/dist/components/text-field/features/supporting-text.d.ts +0 -59
- package/dist/components/timepicker/api.d.ts +0 -26
- package/dist/components/timepicker/config.d.ts +0 -570
- package/dist/components/timepicker/dial.d.ts +0 -35
- package/dist/components/timepicker/render.d.ts +0 -9
- package/dist/components/timepicker/utils.d.ts +0 -55
- package/dist/components/toolbar/config.d.ts +0 -19
- package/dist/components/tooltip/api.d.ts +0 -18
- package/dist/components/tooltip/config.d.ts +0 -563
- package/dist/components/top-app-bar/config.d.ts +0 -16
- package/dist/core/compose/features/constants.d.ts +0 -8
- package/dist/core/dom/direction.d.ts +0 -16
- package/dist/core/dom/form-value.d.ts +0 -24
- package/dist/core/dom/utils.d.ts +0 -33
- package/dist/core/navigation/ripple.d.ts +0 -2
- package/dist/core/utils/attributes.d.ts +0 -29
- package/dist/core/utils/validate.d.ts +0 -73
- package/dist/core/utils/warn.d.ts +0 -16
- package/dist/elements/form-button.d.ts +0 -29
- package/dist/elements/lifecycle.d.ts +0 -4
- package/dist/elements/sheet.d.ts +0 -44
- package/dist/react/shadow.d.ts +0 -2
- package/dist/solid/shadow.d.ts +0 -3
- package/dist/vue/shadow.d.ts +0 -7
|
@@ -2,733 +2,79 @@ import type { TouchEvents } from "../../core/utils/mobile.js";
|
|
|
2
2
|
import type { IconManager } from "../../core/compose/features/icon.js";
|
|
3
3
|
import type { TextManager } from "../../core/compose/features/text.js";
|
|
4
4
|
import type { ForwardedEventPayload } from "../../core/dom/index.js";
|
|
5
|
-
/**
|
|
6
|
-
* Extended FAB variants following Material Design 3 guidelines
|
|
7
|
-
*
|
|
8
|
-
* Material Design 3 offers different color variants for the Extended FAB
|
|
9
|
-
* to match visual hierarchy and application color schemes.
|
|
10
|
-
*
|
|
11
|
-
* @category Components
|
|
12
|
-
* @remarks
|
|
13
|
-
* - primary-container, secondary-container, tertiary-container: container styles
|
|
14
|
-
* - primary, secondary, tertiary: tone styles
|
|
15
|
-
* - surface: deprecated; use a container or tone style instead
|
|
16
|
-
* Default: primary-container.
|
|
17
|
-
*/
|
|
18
5
|
export type ExtendedFabVariant = "primary-container" | "secondary-container" | "tertiary-container" | "primary" | "secondary" | "tertiary";
|
|
19
|
-
/**
|
|
20
|
-
* Expressive extended FAB size: small 56dp, medium 80dp, large 96dp.
|
|
21
|
-
* @category Components
|
|
22
|
-
*/
|
|
23
6
|
export type ExtendedFabSize = "small" | "medium" | "large";
|
|
24
|
-
/**
|
|
25
|
-
* Extended FAB width behavior
|
|
26
|
-
*
|
|
27
|
-
* Controls how the Extended FAB's width is calculated.
|
|
28
|
-
*
|
|
29
|
-
* @category Components
|
|
30
|
-
* @remarks
|
|
31
|
-
* - fixed: Maintains a constant width regardless of content (default)
|
|
32
|
-
* - fluid: Adjusts width based on content length
|
|
33
|
-
*/
|
|
34
7
|
export type ExtendedFabWidth = "fixed" | "fluid";
|
|
35
|
-
/**
|
|
36
|
-
* Extended FAB position on the screen
|
|
37
|
-
*
|
|
38
|
-
* Predefined positions for the Extended FAB when used as a floating element.
|
|
39
|
-
* These positions automatically apply appropriate margins and positioning.
|
|
40
|
-
*
|
|
41
|
-
* @category Components
|
|
42
|
-
* @remarks
|
|
43
|
-
* Common patterns:
|
|
44
|
-
* - bottom-right: Most common position for primary actions
|
|
45
|
-
* - bottom-left: Alternative position on left-to-right interfaces
|
|
46
|
-
* - top-right: Used for actions related to top content
|
|
47
|
-
* - top-left: Less common but available for special layouts
|
|
48
|
-
*/
|
|
49
8
|
export type ExtendedFabPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
50
|
-
/**
|
|
51
|
-
* Configuration interface for the Extended FAB component
|
|
52
|
-
*
|
|
53
|
-
* Comprehensive options for creating and customizing an Extended Floating Action Button
|
|
54
|
-
* according to Material Design 3 guidelines.
|
|
55
|
-
*
|
|
56
|
-
* @category Components
|
|
57
|
-
* @see https://m3.material.io/components/extended-fab/overview
|
|
58
|
-
*/
|
|
59
9
|
export interface ExtendedFabConfig {
|
|
60
|
-
/** Expressive container, icon and label size. @default 'small' */
|
|
61
10
|
size?: ExtendedFabSize;
|
|
62
|
-
/**
|
|
63
|
-
* Extended FAB variant that determines visual styling
|
|
64
|
-
*
|
|
65
|
-
* The color variant affects the Extended FAB's background color, text color, and elevation.
|
|
66
|
-
*
|
|
67
|
-
* @default 'primary-container'
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```typescript
|
|
71
|
-
* // Create a tertiary Extended FAB
|
|
72
|
-
* createExtendedFab({ variant: 'tertiary', text: 'Archive' })
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
11
|
variant?: ExtendedFabVariant | string;
|
|
76
|
-
/**
|
|
77
|
-
* Whether the Extended FAB is initially disabled
|
|
78
|
-
*
|
|
79
|
-
* When disabled, the Extended FAB will have a visually muted appearance
|
|
80
|
-
* and won't respond to user interactions.
|
|
81
|
-
*
|
|
82
|
-
* @default false
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```typescript
|
|
86
|
-
* // Create a disabled Extended FAB
|
|
87
|
-
* const fab = createExtendedFab({ text: 'Submit', disabled: true });
|
|
88
|
-
*
|
|
89
|
-
* // Later enable it when form is valid
|
|
90
|
-
* validateForm().then(isValid => {
|
|
91
|
-
* if (isValid) fab.enable();
|
|
92
|
-
* });
|
|
93
|
-
* ```
|
|
94
|
-
*/
|
|
95
12
|
disabled?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Extended FAB icon HTML content.
|
|
98
|
-
* Markup (HTML). Not sanitized by default: see Markup and sanitizing.
|
|
99
|
-
*
|
|
100
|
-
* The icon content can be any valid HTML, but typically contains an SVG icon
|
|
101
|
-
* or a Material Icons ligature. Icons should be 24x24dp following Material guidelines.
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* ```typescript
|
|
105
|
-
* // Using an SVG icon
|
|
106
|
-
* createExtendedFab({
|
|
107
|
-
* text: 'Add',
|
|
108
|
-
* icon: '<svg width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>'
|
|
109
|
-
* });
|
|
110
|
-
*
|
|
111
|
-
* // Using a Material Icons ligature
|
|
112
|
-
* createExtendedFab({
|
|
113
|
-
* text: 'Add',
|
|
114
|
-
* icon: '<span class="material-icons">add</span>'
|
|
115
|
-
* });
|
|
116
|
-
* ```
|
|
117
|
-
*/
|
|
118
13
|
icon?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Icon size in pixels or other CSS units
|
|
121
|
-
*
|
|
122
|
-
* Allows customizing the icon size beyond the default 24px size.
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* ```typescript
|
|
126
|
-
* // Create an Extended FAB with larger icon
|
|
127
|
-
* createExtendedFab({
|
|
128
|
-
* text: 'Edit',
|
|
129
|
-
* icon: '<svg>...</svg>',
|
|
130
|
-
* iconSize: '32px'
|
|
131
|
-
* });
|
|
132
|
-
* ```
|
|
133
|
-
*/
|
|
134
14
|
iconSize?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Position of the icon relative to the text
|
|
137
|
-
*
|
|
138
|
-
* Controls whether the icon appears before or after the text label.
|
|
139
|
-
* Material Design 3 guidelines typically recommend the icon at the start position.
|
|
140
|
-
*
|
|
141
|
-
* @default 'start'
|
|
142
|
-
*
|
|
143
|
-
* @example
|
|
144
|
-
* ```typescript
|
|
145
|
-
* // Create an Extended FAB with icon after text
|
|
146
|
-
* createExtendedFab({
|
|
147
|
-
* text: 'Next',
|
|
148
|
-
* icon: '<span class="material-icons">arrow_forward</span>',
|
|
149
|
-
* iconPosition: 'end'
|
|
150
|
-
* });
|
|
151
|
-
* ```
|
|
152
|
-
*/
|
|
153
15
|
iconPosition?: "start" | "end";
|
|
154
|
-
/**
|
|
155
|
-
* Text label for the Extended FAB
|
|
156
|
-
*
|
|
157
|
-
* The text should be short, typically one or two words describing the primary action.
|
|
158
|
-
* Material Design guidelines recommend action verbs that clearly describe the action.
|
|
159
|
-
*
|
|
160
|
-
* @example
|
|
161
|
-
* ```typescript
|
|
162
|
-
* // Good text labels for Extended FABs
|
|
163
|
-
* createExtendedFab({ text: 'Create' });
|
|
164
|
-
* createExtendedFab({ text: 'Add Task' });
|
|
165
|
-
* createExtendedFab({ text: 'Submit' });
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
16
|
text?: string;
|
|
169
|
-
/**
|
|
170
|
-
* Additional CSS classes to add to the Extended FAB
|
|
171
|
-
*
|
|
172
|
-
* Custom classes for styling or identifying the Extended FAB.
|
|
173
|
-
* These classes will be applied in addition to the component's built-in classes.
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```typescript
|
|
177
|
-
* createExtendedFab({
|
|
178
|
-
* text: 'Create',
|
|
179
|
-
* class: 'home-page-fab custom-shadow'
|
|
180
|
-
* });
|
|
181
|
-
* ```
|
|
182
|
-
*/
|
|
183
17
|
class?: string;
|
|
184
|
-
/**
|
|
185
|
-
* Button value attribute
|
|
186
|
-
*
|
|
187
|
-
* Sets the HTML value attribute of the button element, useful when using
|
|
188
|
-
* the Extended FAB in a form context.
|
|
189
|
-
*
|
|
190
|
-
* @example
|
|
191
|
-
* ```typescript
|
|
192
|
-
* createExtendedFab({
|
|
193
|
-
* text: 'Submit',
|
|
194
|
-
* type: 'submit',
|
|
195
|
-
* value: 'form-submitted'
|
|
196
|
-
* });
|
|
197
|
-
* ```
|
|
198
|
-
*/
|
|
199
18
|
value?: string;
|
|
200
|
-
/**
|
|
201
|
-
* Position of the Extended FAB on the screen
|
|
202
|
-
*
|
|
203
|
-
* Configures the Extended FAB for floating positioning on the screen.
|
|
204
|
-
* Applies appropriate CSS classes to position the Extended FAB in one of the corners.
|
|
205
|
-
*
|
|
206
|
-
* @example
|
|
207
|
-
* ```typescript
|
|
208
|
-
* // Position in the bottom-right corner (common for primary actions)
|
|
209
|
-
* createExtendedFab({
|
|
210
|
-
* text: 'Create',
|
|
211
|
-
* position: 'bottom-right'
|
|
212
|
-
* });
|
|
213
|
-
*
|
|
214
|
-
* // Position in the top-left corner
|
|
215
|
-
* createExtendedFab({
|
|
216
|
-
* text: 'Go back',
|
|
217
|
-
* position: 'top-left'
|
|
218
|
-
* });
|
|
219
|
-
* ```
|
|
220
|
-
*/
|
|
221
19
|
position?: ExtendedFabPosition | string;
|
|
222
|
-
/**
|
|
223
|
-
* Button type attribute
|
|
224
|
-
*
|
|
225
|
-
* Sets the HTML type attribute of the button element.
|
|
226
|
-
*
|
|
227
|
-
* @default 'button'
|
|
228
|
-
*
|
|
229
|
-
* @example
|
|
230
|
-
* ```typescript
|
|
231
|
-
* // Use as a form submit button
|
|
232
|
-
* createExtendedFab({
|
|
233
|
-
* text: 'Submit',
|
|
234
|
-
* type: 'submit'
|
|
235
|
-
* });
|
|
236
|
-
* ```
|
|
237
|
-
*/
|
|
238
20
|
type?: "button" | "submit" | "reset";
|
|
239
|
-
/**
|
|
240
|
-
* Accessible label for screen readers
|
|
241
|
-
*
|
|
242
|
-
* Sets the aria-label attribute. The visible text already names the
|
|
243
|
-
* Extended FAB, so set this only when the name should differ from it or
|
|
244
|
-
* there is no text. Nothing is derived from `text` or `icon` (#232).
|
|
245
|
-
*
|
|
246
|
-
* @example
|
|
247
|
-
* ```typescript
|
|
248
|
-
* createExtendedFab({
|
|
249
|
-
* text: 'Create',
|
|
250
|
-
* icon: '<svg>...</svg>',
|
|
251
|
-
* ariaLabel: 'Create new document'
|
|
252
|
-
* });
|
|
253
|
-
* ```
|
|
254
|
-
*/
|
|
255
21
|
ariaLabel?: string;
|
|
256
|
-
/**
|
|
257
|
-
* Whether to enable ripple effect
|
|
258
|
-
*
|
|
259
|
-
* The ripple effect provides visual feedback when the user interacts
|
|
260
|
-
* with the Extended FAB. Follows Material Design interaction patterns.
|
|
261
|
-
*
|
|
262
|
-
* @default true
|
|
263
|
-
*
|
|
264
|
-
* @example
|
|
265
|
-
* ```typescript
|
|
266
|
-
* // Disable the ripple effect
|
|
267
|
-
* createExtendedFab({
|
|
268
|
-
* text: 'Create',
|
|
269
|
-
* ripple: false
|
|
270
|
-
* });
|
|
271
|
-
* ```
|
|
272
|
-
*/
|
|
273
22
|
ripple?: boolean;
|
|
274
|
-
/**
|
|
275
|
-
* Component prefix for class names
|
|
276
|
-
*
|
|
277
|
-
* The prefix used for BEM-style class names.
|
|
278
|
-
*
|
|
279
|
-
* @default 'mtrl'
|
|
280
|
-
*
|
|
281
|
-
* @example
|
|
282
|
-
* ```typescript
|
|
283
|
-
* // Use a custom prefix for class names
|
|
284
|
-
* createExtendedFab({
|
|
285
|
-
* text: 'Create',
|
|
286
|
-
* prefix: 'app'
|
|
287
|
-
* });
|
|
288
|
-
* // Results in classes like: 'app-extended-fab app-extended-fab--primary'
|
|
289
|
-
* ```
|
|
290
|
-
*/
|
|
291
23
|
prefix?: string;
|
|
292
|
-
/**
|
|
293
|
-
* Component name used in class generation
|
|
294
|
-
*
|
|
295
|
-
* @internal
|
|
296
|
-
*/
|
|
297
24
|
componentName?: string;
|
|
298
|
-
/**
|
|
299
|
-
* Ripple effect configuration
|
|
300
|
-
*
|
|
301
|
-
* Fine-grained control over the ripple effect appearance and behavior.
|
|
302
|
-
*
|
|
303
|
-
* @example
|
|
304
|
-
* ```typescript
|
|
305
|
-
* // Customize ripple effect
|
|
306
|
-
* createExtendedFab({
|
|
307
|
-
* text: 'Create',
|
|
308
|
-
* rippleConfig: {
|
|
309
|
-
* duration: 400
|
|
310
|
-
* }
|
|
311
|
-
* });
|
|
312
|
-
* ```
|
|
313
|
-
*/
|
|
314
25
|
rippleConfig?: {
|
|
315
|
-
/** How long, in milliseconds, a released wave lingers before it is removed */
|
|
316
26
|
duration?: number;
|
|
317
27
|
};
|
|
318
|
-
/**
|
|
319
|
-
* Whether to show the Extended FAB with an entrance animation
|
|
320
|
-
*
|
|
321
|
-
* When true, the Extended FAB will animate into view when added to the DOM.
|
|
322
|
-
*
|
|
323
|
-
* @default false
|
|
324
|
-
*
|
|
325
|
-
* @example
|
|
326
|
-
* ```typescript
|
|
327
|
-
* // Create an animated entrance Extended FAB
|
|
328
|
-
* createExtendedFab({
|
|
329
|
-
* text: 'Create',
|
|
330
|
-
* animate: true
|
|
331
|
-
* });
|
|
332
|
-
* ```
|
|
333
|
-
*/
|
|
334
28
|
animate?: boolean;
|
|
335
|
-
/**
|
|
336
|
-
* Width behavior of the Extended FAB
|
|
337
|
-
*
|
|
338
|
-
* Controls how the Extended FAB's width is calculated:
|
|
339
|
-
* - 'fixed': Maintains a constant width regardless of content (default)
|
|
340
|
-
* - 'fluid': Adjusts width based on content length
|
|
341
|
-
*
|
|
342
|
-
* @default 'fixed'
|
|
343
|
-
*
|
|
344
|
-
* @example
|
|
345
|
-
* ```typescript
|
|
346
|
-
* // Create an Extended FAB that adjusts width based on text length
|
|
347
|
-
* createExtendedFab({
|
|
348
|
-
* text: 'Add to favorites',
|
|
349
|
-
* width: 'fluid'
|
|
350
|
-
* });
|
|
351
|
-
* ```
|
|
352
|
-
*/
|
|
353
29
|
width?: ExtendedFabWidth | string;
|
|
354
|
-
/**
|
|
355
|
-
* Whether the Extended FAB should collapse to a standard FAB on scroll
|
|
356
|
-
*
|
|
357
|
-
* When true, the Extended FAB will automatically shrink to a circular FAB
|
|
358
|
-
* (hiding the text) when the user scrolls down, and expand back to the Extended FAB
|
|
359
|
-
* when scrolling up.
|
|
360
|
-
*
|
|
361
|
-
* @default false
|
|
362
|
-
*
|
|
363
|
-
* @example
|
|
364
|
-
* ```typescript
|
|
365
|
-
* // Create a collapsible Extended FAB
|
|
366
|
-
* createExtendedFab({
|
|
367
|
-
* text: 'Create',
|
|
368
|
-
* icon: '<svg>...</svg>',
|
|
369
|
-
* collapseOnScroll: true
|
|
370
|
-
* });
|
|
371
|
-
* ```
|
|
372
|
-
*/
|
|
373
30
|
collapseOnScroll?: boolean;
|
|
374
|
-
/**
|
|
375
|
-
* Index signature for additional configuration options
|
|
376
|
-
* Required for compatibility with core feature interfaces
|
|
377
|
-
*/
|
|
378
31
|
[key: string]: unknown;
|
|
379
32
|
}
|
|
380
|
-
/**
|
|
381
|
-
* Native events forwarded through the Extended FAB's emitter.
|
|
382
|
-
* Collapse and expand are DOM-only events; listen on `element` for those.
|
|
383
|
-
* Lifecycle callbacks are registered through the lifecycle API.
|
|
384
|
-
*/
|
|
385
33
|
export interface ExtendedFabEvents extends TouchEvents {
|
|
386
|
-
/** Clicks are not forwarded while the button is disabled. */
|
|
387
34
|
click: (payload: ForwardedEventPayload<MouseEvent, HTMLButtonElement>) => void;
|
|
388
|
-
/** The button took focus. */
|
|
389
35
|
focus: (payload: ForwardedEventPayload<FocusEvent, HTMLButtonElement>) => void;
|
|
390
|
-
/** The button lost focus. */
|
|
391
36
|
blur: (payload: ForwardedEventPayload<FocusEvent, HTMLButtonElement>) => void;
|
|
392
|
-
/** `collapse()` ran, by call or on scroll */
|
|
393
37
|
collapse: () => void;
|
|
394
|
-
/** `expand()` ran, by call or on scroll */
|
|
395
38
|
expand: () => void;
|
|
396
39
|
}
|
|
397
|
-
/**
|
|
398
|
-
* Extended FAB component interface
|
|
399
|
-
*
|
|
400
|
-
* Provides methods for interacting with and manipulating an Extended Floating Action Button.
|
|
401
|
-
*
|
|
402
|
-
* @category Components
|
|
403
|
-
*/
|
|
404
40
|
export interface ExtendedFabComponent {
|
|
405
|
-
/**
|
|
406
|
-
* The Extended FAB's DOM element
|
|
407
|
-
*
|
|
408
|
-
* Direct access to the underlying button element for DOM manipulation.
|
|
409
|
-
*/
|
|
410
41
|
element: HTMLButtonElement;
|
|
411
|
-
/**
|
|
412
|
-
* API for managing Extended FAB icons
|
|
413
|
-
*
|
|
414
|
-
* Access to low-level icon methods and elements.
|
|
415
|
-
*/
|
|
416
42
|
icon: {
|
|
417
|
-
/** Sets the icon HTML content */
|
|
418
43
|
setIcon: (html: string) => IconManager;
|
|
419
|
-
/** Gets the current icon HTML content */
|
|
420
44
|
getIcon: () => string;
|
|
421
|
-
/** Gets the icon DOM element */
|
|
422
45
|
getElement: () => HTMLElement | null;
|
|
423
46
|
};
|
|
424
|
-
/**
|
|
425
|
-
* API for managing text content
|
|
426
|
-
*
|
|
427
|
-
* Access to low-level text methods and elements.
|
|
428
|
-
*/
|
|
429
47
|
text: {
|
|
430
|
-
/** Sets the text content */
|
|
431
48
|
setText: (text: string) => TextManager;
|
|
432
|
-
/** Gets the current text content */
|
|
433
49
|
getText: () => string;
|
|
434
|
-
/** Gets the text DOM element */
|
|
435
50
|
getElement: () => HTMLElement | null;
|
|
436
51
|
};
|
|
437
|
-
/**
|
|
438
|
-
* API for managing disabled state
|
|
439
|
-
*
|
|
440
|
-
* Access to low-level disabled state methods.
|
|
441
|
-
*/
|
|
442
52
|
disabled: {
|
|
443
|
-
/** Enables the Extended FAB */
|
|
444
53
|
enable: () => void;
|
|
445
|
-
/** Disables the Extended FAB */
|
|
446
54
|
disable: () => void;
|
|
447
|
-
/** Checks if the Extended FAB is disabled */
|
|
448
55
|
isDisabled: () => boolean;
|
|
449
56
|
};
|
|
450
|
-
/**
|
|
451
|
-
* API for managing component lifecycle
|
|
452
|
-
*
|
|
453
|
-
* Access to low-level lifecycle methods.
|
|
454
|
-
*/
|
|
455
57
|
lifecycle: {
|
|
456
|
-
/** Destroys the component and cleans up resources */
|
|
457
58
|
destroy: () => void;
|
|
458
59
|
};
|
|
459
|
-
/**
|
|
460
|
-
* Gets a class name with the component's prefix
|
|
461
|
-
*
|
|
462
|
-
* @param name - Base class name
|
|
463
|
-
* @returns Prefixed class name
|
|
464
|
-
*
|
|
465
|
-
* @example
|
|
466
|
-
* ```typescript
|
|
467
|
-
* const fab = createExtendedFab({ text: 'Create' });
|
|
468
|
-
* const className = fab.getClass('icon'); // Returns 'mtrl-extended-fab__icon'
|
|
469
|
-
* ```
|
|
470
|
-
*/
|
|
471
60
|
getClass: (name: string) => string;
|
|
472
|
-
/**
|
|
473
|
-
* Gets the Extended FAB's value attribute
|
|
474
|
-
*
|
|
475
|
-
* @returns Extended FAB value
|
|
476
|
-
*
|
|
477
|
-
* @example
|
|
478
|
-
* ```typescript
|
|
479
|
-
* const fab = createExtendedFab({ text: 'Submit', value: 'form-data' });
|
|
480
|
-
* const value = fab.getValue(); // Returns 'form-data'
|
|
481
|
-
* ```
|
|
482
|
-
*/
|
|
483
61
|
getValue: () => string;
|
|
484
|
-
/**
|
|
485
|
-
* Sets the Extended FAB's value attribute
|
|
486
|
-
*
|
|
487
|
-
* @param value - New value
|
|
488
|
-
* @returns The Extended FAB component for chaining
|
|
489
|
-
*
|
|
490
|
-
* @example
|
|
491
|
-
* ```typescript
|
|
492
|
-
* const fab = createExtendedFab({ text: 'Submit' });
|
|
493
|
-
* fab.setValue('completed');
|
|
494
|
-
* ```
|
|
495
|
-
*/
|
|
496
62
|
setValue: (value: string) => ExtendedFabComponent;
|
|
497
|
-
/**
|
|
498
|
-
* Enables the Extended FAB (removes disabled attribute)
|
|
499
|
-
*
|
|
500
|
-
* Makes the Extended FAB interactive and visually enabled.
|
|
501
|
-
*
|
|
502
|
-
* @returns The Extended FAB component for chaining
|
|
503
|
-
*
|
|
504
|
-
* @example
|
|
505
|
-
* ```typescript
|
|
506
|
-
* // Enable a previously disabled Extended FAB
|
|
507
|
-
* fab.enable();
|
|
508
|
-
* ```
|
|
509
|
-
*/
|
|
510
63
|
enable: () => ExtendedFabComponent;
|
|
511
|
-
/**
|
|
512
|
-
* Disables the Extended FAB (adds disabled attribute)
|
|
513
|
-
*
|
|
514
|
-
* Makes the Extended FAB non-interactive and visually disabled.
|
|
515
|
-
*
|
|
516
|
-
* @returns The Extended FAB component for chaining
|
|
517
|
-
*
|
|
518
|
-
* @example
|
|
519
|
-
* ```typescript
|
|
520
|
-
* // Disable the Extended FAB during an async operation
|
|
521
|
-
* fab.disable();
|
|
522
|
-
* await saveData();
|
|
523
|
-
* fab.enable();
|
|
524
|
-
* ```
|
|
525
|
-
*/
|
|
526
64
|
disable: () => ExtendedFabComponent;
|
|
527
|
-
/** Whether the extended FAB is disabled */
|
|
528
65
|
isDisabled: () => boolean;
|
|
529
|
-
/**
|
|
530
|
-
* Sets the Extended FAB's icon
|
|
531
|
-
*
|
|
532
|
-
* @param icon - Icon HTML content
|
|
533
|
-
* @returns The Extended FAB component for chaining
|
|
534
|
-
*
|
|
535
|
-
* @example
|
|
536
|
-
* ```typescript
|
|
537
|
-
* // Change the icon dynamically
|
|
538
|
-
* fab.setIcon('<svg>...</svg>');
|
|
539
|
-
*
|
|
540
|
-
* // Change to a Material Icons ligature
|
|
541
|
-
* fab.setIcon('<span class="material-icons">edit</span>');
|
|
542
|
-
* ```
|
|
543
|
-
*/
|
|
544
66
|
setIcon: (icon: string) => ExtendedFabComponent;
|
|
545
|
-
/**
|
|
546
|
-
* Gets the Extended FAB's icon HTML content
|
|
547
|
-
*
|
|
548
|
-
* @returns Icon HTML
|
|
549
|
-
*
|
|
550
|
-
* @example
|
|
551
|
-
* ```typescript
|
|
552
|
-
* const iconHtml = fab.getIcon();
|
|
553
|
-
* ```
|
|
554
|
-
*/
|
|
555
67
|
getIcon: () => string;
|
|
556
|
-
/**
|
|
557
|
-
* Sets the Extended FAB's text content
|
|
558
|
-
*
|
|
559
|
-
* @param text - Text content
|
|
560
|
-
* @returns The Extended FAB component for chaining
|
|
561
|
-
*
|
|
562
|
-
* @example
|
|
563
|
-
* ```typescript
|
|
564
|
-
* // Change text dynamically based on state
|
|
565
|
-
* if (isEditing) {
|
|
566
|
-
* fab.setText('Save');
|
|
567
|
-
* } else {
|
|
568
|
-
* fab.setText('Edit');
|
|
569
|
-
* }
|
|
570
|
-
* ```
|
|
571
|
-
*/
|
|
572
68
|
setText: (text: string) => ExtendedFabComponent;
|
|
573
|
-
/**
|
|
574
|
-
* Gets the Extended FAB's text content
|
|
575
|
-
*
|
|
576
|
-
* @returns Text content
|
|
577
|
-
*
|
|
578
|
-
* @example
|
|
579
|
-
* ```typescript
|
|
580
|
-
* const currentText = fab.getText();
|
|
581
|
-
* ```
|
|
582
|
-
*/
|
|
583
69
|
getText: () => string;
|
|
584
|
-
/**
|
|
585
|
-
* Sets the Extended FAB's position
|
|
586
|
-
*
|
|
587
|
-
* Positions the Extended FAB in one of the four corners of the viewport.
|
|
588
|
-
*
|
|
589
|
-
* @param position - Position value ('top-right', 'bottom-left', etc.)
|
|
590
|
-
* @returns The Extended FAB component for chaining
|
|
591
|
-
*
|
|
592
|
-
* @example
|
|
593
|
-
* ```typescript
|
|
594
|
-
* // Move the Extended FAB to the bottom-left corner
|
|
595
|
-
* fab.setPosition('bottom-left');
|
|
596
|
-
* ```
|
|
597
|
-
*/
|
|
598
70
|
setPosition: (position: string) => ExtendedFabComponent;
|
|
599
|
-
/**
|
|
600
|
-
* Gets the current position of the Extended FAB
|
|
601
|
-
*
|
|
602
|
-
* @returns Current position or null if not positioned
|
|
603
|
-
*
|
|
604
|
-
* @example
|
|
605
|
-
* ```typescript
|
|
606
|
-
* const position = fab.getPosition(); // Returns 'bottom-right', 'top-left', etc.
|
|
607
|
-
* ```
|
|
608
|
-
*/
|
|
609
71
|
getPosition: () => string | null;
|
|
610
|
-
/**
|
|
611
|
-
* Lowers the Extended FAB (useful for pressed state)
|
|
612
|
-
*
|
|
613
|
-
* Visually lowers the Extended FAB by reducing its elevation,
|
|
614
|
-
* typically used to indicate a pressed or active state.
|
|
615
|
-
*
|
|
616
|
-
* @returns The Extended FAB component for chaining
|
|
617
|
-
*
|
|
618
|
-
* @example
|
|
619
|
-
* ```typescript
|
|
620
|
-
* // Visually lower the Extended FAB when a long operation starts
|
|
621
|
-
* fab.lower();
|
|
622
|
-
* await longOperation();
|
|
623
|
-
* fab.raise();
|
|
624
|
-
* ```
|
|
625
|
-
*/
|
|
626
72
|
lower: () => ExtendedFabComponent;
|
|
627
|
-
/**
|
|
628
|
-
* Raises the Extended FAB back to its default elevation
|
|
629
|
-
*
|
|
630
|
-
* Restores the default elevation after it has been lowered.
|
|
631
|
-
*
|
|
632
|
-
* @returns The Extended FAB component for chaining
|
|
633
|
-
*
|
|
634
|
-
* @example
|
|
635
|
-
* ```typescript
|
|
636
|
-
* // Restore normal elevation
|
|
637
|
-
* fab.raise();
|
|
638
|
-
* ```
|
|
639
|
-
*/
|
|
640
73
|
raise: () => ExtendedFabComponent;
|
|
641
|
-
/**
|
|
642
|
-
* Collapses the Extended FAB into a standard FAB
|
|
643
|
-
*
|
|
644
|
-
* Hides the text label, showing only the icon in a circular container.
|
|
645
|
-
* Useful for saving space or to emphasize other content.
|
|
646
|
-
*
|
|
647
|
-
* @returns The Extended FAB component for chaining
|
|
648
|
-
*
|
|
649
|
-
* @example
|
|
650
|
-
* ```typescript
|
|
651
|
-
* // Collapse the Extended FAB programmatically
|
|
652
|
-
* fab.collapse();
|
|
653
|
-
* ```
|
|
654
|
-
*/
|
|
655
74
|
collapse: () => ExtendedFabComponent;
|
|
656
|
-
/**
|
|
657
|
-
* Expands a collapsed Extended FAB back to its full size
|
|
658
|
-
*
|
|
659
|
-
* Shows the text label alongside the icon.
|
|
660
|
-
*
|
|
661
|
-
* @returns The Extended FAB component for chaining
|
|
662
|
-
*
|
|
663
|
-
* @example
|
|
664
|
-
* ```typescript
|
|
665
|
-
* // Expand the Extended FAB programmatically
|
|
666
|
-
* fab.expand();
|
|
667
|
-
* ```
|
|
668
|
-
*/
|
|
669
75
|
expand: () => ExtendedFabComponent;
|
|
670
|
-
/**
|
|
671
|
-
* Destroys the Extended FAB component and cleans up resources
|
|
672
|
-
*
|
|
673
|
-
* Removes event listeners and prepares the component for garbage collection.
|
|
674
|
-
* Call this method when the Extended FAB is no longer needed.
|
|
675
|
-
*
|
|
676
|
-
* @example
|
|
677
|
-
* ```typescript
|
|
678
|
-
* // Clean up when the component is no longer needed
|
|
679
|
-
* fab.destroy();
|
|
680
|
-
* ```
|
|
681
|
-
*/
|
|
682
76
|
destroy: () => void;
|
|
683
|
-
/**
|
|
684
|
-
* Adds an event listener to the Extended FAB
|
|
685
|
-
*
|
|
686
|
-
* @param event - Forwarded event name: 'click', 'focus', or 'blur'
|
|
687
|
-
* @param handler - Receives the native event and the button root in a payload
|
|
688
|
-
* @returns The Extended FAB component for chaining
|
|
689
|
-
*
|
|
690
|
-
* @example
|
|
691
|
-
* ```typescript
|
|
692
|
-
* // Add click handler
|
|
693
|
-
* fab.on('click', () => {
|
|
694
|
-
* console.log('Extended FAB clicked');
|
|
695
|
-
* });
|
|
696
|
-
*
|
|
697
|
-
* // Collapse and expand reach both the emitter and the DOM element
|
|
698
|
-
* fab.on('collapse', () => {
|
|
699
|
-
* console.log('Extended FAB collapsed');
|
|
700
|
-
* });
|
|
701
|
-
* ```
|
|
702
|
-
*/
|
|
703
77
|
on: <K extends keyof ExtendedFabEvents>(event: K, handler: ExtendedFabEvents[K]) => ExtendedFabComponent;
|
|
704
|
-
/**
|
|
705
|
-
* Removes an event listener from the Extended FAB
|
|
706
|
-
*
|
|
707
|
-
* @param event - Event name
|
|
708
|
-
* @param handler - Event handler function
|
|
709
|
-
* @returns The Extended FAB component for chaining
|
|
710
|
-
*
|
|
711
|
-
* @example
|
|
712
|
-
* ```typescript
|
|
713
|
-
* // Remove a previously added event handler
|
|
714
|
-
* const handler = () => console.log('Clicked');
|
|
715
|
-
* fab.on('click', handler);
|
|
716
|
-
* // Later...
|
|
717
|
-
* fab.off('click', handler);
|
|
718
|
-
* ```
|
|
719
|
-
*/
|
|
720
78
|
off: <K extends keyof ExtendedFabEvents>(event: K, handler: ExtendedFabEvents[K]) => ExtendedFabComponent;
|
|
721
|
-
/**
|
|
722
|
-
* Adds CSS classes to the Extended FAB element
|
|
723
|
-
*
|
|
724
|
-
* @param classes - One or more class names to add
|
|
725
|
-
* @returns The Extended FAB component for chaining
|
|
726
|
-
*
|
|
727
|
-
* @example
|
|
728
|
-
* ```typescript
|
|
729
|
-
* // Add multiple classes
|
|
730
|
-
* fab.addClass('highlight', 'pulse-animation');
|
|
731
|
-
* ```
|
|
732
|
-
*/
|
|
733
79
|
addClass: (...classes: string[]) => ExtendedFabComponent;
|
|
734
80
|
}
|