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
|
@@ -1,88 +1,39 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Switch label position options
|
|
3
|
-
* @category Components
|
|
4
|
-
*/
|
|
5
1
|
export declare const SWITCH_LABEL_POSITIONS: {
|
|
6
|
-
/** Label positioned before the switch (left in LTR layouts) */
|
|
7
2
|
readonly START: "start";
|
|
8
|
-
/** Label positioned after the switch (right in LTR layouts) */
|
|
9
3
|
readonly END: "end";
|
|
10
4
|
};
|
|
11
|
-
/**
|
|
12
|
-
* Switch states
|
|
13
|
-
* @category Components
|
|
14
|
-
*/
|
|
15
5
|
export declare const SWITCH_STATES: {
|
|
16
|
-
/** Switch is checked/on */
|
|
17
6
|
readonly CHECKED: "checked";
|
|
18
|
-
/** Switch is unchecked/off */
|
|
19
7
|
readonly UNCHECKED: "unchecked";
|
|
20
|
-
/** Switch is disabled */
|
|
21
8
|
readonly DISABLED: "disabled";
|
|
22
|
-
/** Switch is enabled */
|
|
23
9
|
readonly ENABLED: "enabled";
|
|
24
10
|
};
|
|
25
|
-
/**
|
|
26
|
-
* Switch events
|
|
27
|
-
* @category Components
|
|
28
|
-
*/
|
|
29
11
|
export declare const SWITCH_EVENTS: {
|
|
30
|
-
/** Emitted when the checked state changes. */
|
|
31
12
|
readonly CHANGE: "change";
|
|
32
|
-
/** The switch received focus. */
|
|
33
13
|
readonly FOCUS: "focus";
|
|
34
|
-
/** The switch lost focus. */
|
|
35
14
|
readonly BLUR: "blur";
|
|
36
15
|
};
|
|
37
|
-
/**
|
|
38
|
-
* Default configuration values for switch
|
|
39
|
-
* @category Components
|
|
40
|
-
*/
|
|
41
16
|
export declare const SWITCH_DEFAULTS: {
|
|
42
|
-
/** Default checked state */
|
|
43
17
|
readonly CHECKED: false;
|
|
44
|
-
/** Default disabled state */
|
|
45
18
|
readonly DISABLED: false;
|
|
46
|
-
/** Default required state */
|
|
47
19
|
readonly REQUIRED: false;
|
|
48
|
-
/** Default label position: the label leads and the switch trails, as in M3 settings rows */
|
|
49
20
|
readonly LABEL_POSITION: "start";
|
|
50
|
-
/** Default input value */
|
|
51
21
|
readonly VALUE: "on";
|
|
52
22
|
};
|
|
53
|
-
/**
|
|
54
|
-
* CSS class names used by the switch component
|
|
55
|
-
* @category Components
|
|
56
|
-
*/
|
|
57
23
|
export declare const SWITCH_CLASSES: {
|
|
58
|
-
/** Root element class */
|
|
59
24
|
readonly ROOT: "switch";
|
|
60
|
-
/** Container element class */
|
|
61
25
|
readonly CONTAINER: "switch__container";
|
|
62
|
-
/** Content wrapper class */
|
|
63
26
|
readonly CONTENT: "switch__content";
|
|
64
|
-
/** Label element class */
|
|
65
27
|
readonly LABEL: "switch__label";
|
|
66
|
-
/** Input element class */
|
|
67
28
|
readonly INPUT: "switch__input";
|
|
68
|
-
/** Track element class */
|
|
69
29
|
readonly TRACK: "switch__track";
|
|
70
|
-
/** Thumb element class */
|
|
71
30
|
readonly THUMB: "switch__thumb";
|
|
72
|
-
/** Label at start position class */
|
|
73
31
|
readonly LABEL_START: "switch--label-start";
|
|
74
|
-
/** Label at end position class */
|
|
75
32
|
readonly LABEL_END: "switch--label-end";
|
|
76
|
-
/** Checked state class */
|
|
77
33
|
readonly CHECKED: "switch--checked";
|
|
78
|
-
/** Disabled state class */
|
|
79
34
|
readonly DISABLED: "switch--disabled";
|
|
80
|
-
/** Error state class */
|
|
81
35
|
readonly ERROR: "switch--error";
|
|
82
|
-
/** Helper/supporting text class */
|
|
83
36
|
readonly HELPER: "switch__helper";
|
|
84
|
-
/** Error helper text class */
|
|
85
37
|
readonly HELPER_ERROR: "switch__helper--error";
|
|
86
|
-
/** Focus state class */
|
|
87
38
|
readonly FOCUSED: "switch--focused";
|
|
88
39
|
};
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { SwitchConfig, SwitchComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new Switch component
|
|
4
|
-
* @param {SwitchConfig} config - Switch configuration
|
|
5
|
-
* @returns {SwitchComponent} Switch component instance
|
|
6
|
-
*/
|
|
7
2
|
declare const createSwitch: (config?: SwitchConfig) => SwitchComponent;
|
|
8
3
|
export default createSwitch;
|
|
@@ -1,124 +1,61 @@
|
|
|
1
1
|
import type { TouchEvents } from "../../core/utils/mobile.js";
|
|
2
2
|
import type { EventCallback } from "../../core/state/emitter.js";
|
|
3
3
|
export type SwitchPosition = "center" | "start" | "end";
|
|
4
|
-
/**
|
|
5
|
-
* Switch label position types
|
|
6
|
-
*/
|
|
7
4
|
export type SwitchLabelPosition = "start" | "end";
|
|
8
|
-
/**
|
|
9
|
-
* Configuration interface for the Switch component
|
|
10
|
-
*/
|
|
11
5
|
export interface SwitchConfig {
|
|
12
|
-
/** Input name attribute */
|
|
13
6
|
name?: string;
|
|
14
|
-
/** Initial checked state */
|
|
15
7
|
checked?: boolean;
|
|
16
|
-
/** Whether input is required */
|
|
17
8
|
required?: boolean;
|
|
18
|
-
/** Whether switch is disabled */
|
|
19
9
|
disabled?: boolean;
|
|
20
|
-
/** Input value attribute */
|
|
21
10
|
value?: string;
|
|
22
|
-
/** Label text, or a node placed inside the label (the web component passes a `<slot>`) */
|
|
23
11
|
label?: string | Node;
|
|
24
|
-
/** Supporting text content */
|
|
25
12
|
supportingText?: string;
|
|
26
|
-
/** Whether supporting text indicates an error */
|
|
27
13
|
error?: boolean;
|
|
28
|
-
/** Additional CSS classes */
|
|
29
14
|
class?: string;
|
|
30
|
-
/** ARIA label for accessibility */
|
|
31
15
|
ariaLabel?: string;
|
|
32
|
-
/** Prefix for class names */
|
|
33
16
|
prefix?: string;
|
|
34
|
-
/** Component name */
|
|
35
17
|
componentName?: string;
|
|
36
|
-
/** Icon HTML in the selected handle; 'none' for no icon. Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
|
|
37
18
|
icon?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Icon HTML in the unselected handle, which then grows to 24dp (M3's icons on
|
|
40
|
-
* both states).
|
|
41
|
-
*/
|
|
42
19
|
unselectedIcon?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Which side of the switch the label sits on
|
|
45
|
-
* @default 'start'
|
|
46
|
-
*/
|
|
47
20
|
labelPosition?: SwitchLabelPosition;
|
|
48
|
-
/** Index signature for additional properties */
|
|
49
21
|
[key: string]: unknown;
|
|
50
22
|
}
|
|
51
|
-
/** A checked-state change from native input activation. Public setters are silent. */
|
|
52
23
|
export interface SwitchChangePayload {
|
|
53
|
-
/** The new checked state. */
|
|
54
24
|
checked: boolean;
|
|
55
|
-
/** The checked model value, matching getValue() at dispatch. */
|
|
56
25
|
value: boolean;
|
|
57
|
-
/** The input's HTML value attribute, used for native form submission. */
|
|
58
26
|
valueAttribute: string;
|
|
59
|
-
/** The original native change event, when supplied by the emitter. */
|
|
60
27
|
nativeEvent?: Event;
|
|
61
28
|
}
|
|
62
|
-
/** Emitter events: change, and the input's focus and blur. */
|
|
63
29
|
export interface SwitchEvents extends TouchEvents {
|
|
64
30
|
change: (payload: SwitchChangePayload) => void;
|
|
65
31
|
focus: (event: FocusEvent) => void;
|
|
66
32
|
blur: (event: FocusEvent) => void;
|
|
67
33
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Switch component interface
|
|
70
|
-
*/
|
|
71
34
|
export interface SwitchComponent {
|
|
72
|
-
/** The root element of the switch */
|
|
73
35
|
element: HTMLElement;
|
|
74
|
-
/** The input element */
|
|
75
36
|
input: HTMLInputElement;
|
|
76
|
-
/** Gets the switch's checked state (boolean) for form compatibility */
|
|
77
37
|
getValue: () => boolean;
|
|
78
|
-
/** Sets the switch's checked state */
|
|
79
38
|
setValue: (value: boolean | string) => SwitchComponent;
|
|
80
|
-
/** Gets the HTML value attribute (rarely needed) */
|
|
81
39
|
getValueAttribute: () => string;
|
|
82
|
-
/** Sets the HTML value attribute (rarely needed) */
|
|
83
40
|
setValueAttribute: (value: string) => SwitchComponent;
|
|
84
|
-
/** Checks/activates the switch */
|
|
85
41
|
check: () => SwitchComponent;
|
|
86
|
-
/** Unchecks/deactivates the switch */
|
|
87
42
|
uncheck: () => SwitchComponent;
|
|
88
|
-
/** Toggles the switch's checked state */
|
|
89
43
|
toggle: () => SwitchComponent;
|
|
90
|
-
/** Returns whether the switch is checked */
|
|
91
44
|
isChecked: () => boolean;
|
|
92
|
-
/** Sets the switch's label text */
|
|
93
45
|
setLabel: (text: string) => SwitchComponent;
|
|
94
|
-
/** Gets the switch's label text */
|
|
95
46
|
getLabel: () => string;
|
|
96
|
-
/** Supporting text element */
|
|
97
47
|
supportingTextElement: HTMLElement | null;
|
|
98
|
-
/** Sets supporting text content */
|
|
99
48
|
setSupportingText: (text: string, isError?: boolean) => SwitchComponent;
|
|
100
|
-
/** Removes supporting text */
|
|
101
49
|
removeSupportingText: () => SwitchComponent;
|
|
102
|
-
/** Puts the switch in or out of the error state: its class and aria-invalid */
|
|
103
50
|
setError: (error: boolean) => SwitchComponent;
|
|
104
|
-
/** Whether the switch is in the error state */
|
|
105
51
|
isError: () => boolean;
|
|
106
|
-
/** Subscribes to checked-state changes; native input events use input.addEventListener. */
|
|
107
52
|
on: <K extends keyof SwitchEvents>(event: K, handler: SwitchEvents[K]) => SwitchComponent;
|
|
108
|
-
/** Removes event listener */
|
|
109
53
|
off: <K extends keyof SwitchEvents>(event: K, handler: SwitchEvents[K]) => SwitchComponent;
|
|
110
|
-
/** Enables the switch */
|
|
111
54
|
enable: () => SwitchComponent;
|
|
112
|
-
/** Disables the switch */
|
|
113
55
|
disable: () => SwitchComponent;
|
|
114
|
-
/** Whether the switch is disabled */
|
|
115
56
|
isDisabled: () => boolean;
|
|
116
|
-
/** Destroys the switch component and cleans up resources */
|
|
117
57
|
destroy: () => void;
|
|
118
58
|
}
|
|
119
|
-
/**
|
|
120
|
-
* API options interface
|
|
121
|
-
*/
|
|
122
59
|
export interface ApiOptions {
|
|
123
60
|
disabled: {
|
|
124
61
|
enable: () => void;
|
|
@@ -135,9 +72,6 @@ export interface ApiOptions {
|
|
|
135
72
|
isChecked: () => boolean;
|
|
136
73
|
};
|
|
137
74
|
}
|
|
138
|
-
/**
|
|
139
|
-
* Base component interface
|
|
140
|
-
*/
|
|
141
75
|
export interface BaseComponent {
|
|
142
76
|
element: HTMLElement;
|
|
143
77
|
input?: HTMLInputElement;
|
|
@@ -169,21 +103,7 @@ export interface BaseComponent {
|
|
|
169
103
|
setError?: (error: boolean) => void;
|
|
170
104
|
isError?: () => boolean;
|
|
171
105
|
}
|
|
172
|
-
/**
|
|
173
|
-
* Component as it reaches the API step of the pipeline.
|
|
174
|
-
*
|
|
175
|
-
* `BaseComponent` marks the feature controllers optional because a component
|
|
176
|
-
* part-way through the pipeline has not got them yet. By the time
|
|
177
|
-
* `getApiConfig` runs, withCheckable, withDisabled and withLifecycle have all
|
|
178
|
-
* been applied, so they are there.
|
|
179
|
-
* @internal
|
|
180
|
-
*/
|
|
181
106
|
export type ApiComponent = BaseComponent & Required<Pick<BaseComponent, "checkable" | "disabled" | "lifecycle">>;
|
|
182
|
-
/**
|
|
183
|
-
* Registers SwitchConfig with the global defaults map, so
|
|
184
|
-
* `setComponentDefaults("switch", ...)` is typed without core
|
|
185
|
-
* importing anything from this component.
|
|
186
|
-
*/
|
|
187
107
|
declare module "../../core/config/global" {
|
|
188
108
|
interface ComponentConfigMap {
|
|
189
109
|
switch?: Partial<SwitchConfig>;
|
|
@@ -1,134 +1,58 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tab component variants
|
|
3
|
-
* @category Components
|
|
4
|
-
*/
|
|
5
1
|
export declare const TAB_VARIANTS: {
|
|
6
|
-
/** Primary tabs */
|
|
7
2
|
readonly PRIMARY: "primary";
|
|
8
|
-
/** Secondary tabs */
|
|
9
3
|
readonly SECONDARY: "secondary";
|
|
10
4
|
};
|
|
11
|
-
/**
|
|
12
|
-
* Tab states
|
|
13
|
-
* @category Components
|
|
14
|
-
*/
|
|
15
5
|
export declare const TAB_STATES: {
|
|
16
|
-
/** Tab is currently active */
|
|
17
6
|
readonly ACTIVE: "active";
|
|
18
|
-
/** Tab is not currently active */
|
|
19
7
|
readonly INACTIVE: "inactive";
|
|
20
|
-
/** Tab is disabled */
|
|
21
8
|
readonly DISABLED: "disabled";
|
|
22
9
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Tab indicator width strategies
|
|
25
|
-
* @category Components
|
|
26
|
-
*/
|
|
27
10
|
export declare const TAB_INDICATOR_WIDTH_STRATEGIES: {
|
|
28
|
-
/** Fixed width defined by fixedWidth */
|
|
29
11
|
readonly FIXED: "fixed";
|
|
30
|
-
/** Half the tab width */
|
|
31
12
|
readonly DYNAMIC: "dynamic";
|
|
32
|
-
/** Match the text content width */
|
|
33
13
|
readonly CONTENT: "content";
|
|
34
|
-
/** Adapts based on variant (primary: text width, secondary: full tab width) */
|
|
35
14
|
readonly AUTO: "auto";
|
|
36
15
|
};
|
|
37
|
-
/**
|
|
38
|
-
* Tab events
|
|
39
|
-
* @category Components
|
|
40
|
-
*/
|
|
41
16
|
export declare const TAB_EVENTS: {
|
|
42
|
-
/** Fired when a tab is clicked */
|
|
43
17
|
readonly CLICK: "click";
|
|
44
|
-
/** Fired when a tab receives focus */
|
|
45
18
|
readonly FOCUS: "focus";
|
|
46
|
-
/** Fired when a tab loses focus */
|
|
47
19
|
readonly BLUR: "blur";
|
|
48
20
|
};
|
|
49
|
-
/**
|
|
50
|
-
* Tabs component events
|
|
51
|
-
* @category Components
|
|
52
|
-
*/
|
|
53
21
|
export declare const TABS_EVENTS: {
|
|
54
|
-
/** Fired when the active tab changes */
|
|
55
22
|
readonly CHANGE: "change";
|
|
56
23
|
};
|
|
57
|
-
/**
|
|
58
|
-
* Default values for tabs component
|
|
59
|
-
* @category Components
|
|
60
|
-
*/
|
|
61
24
|
export declare const TABS_DEFAULTS: {
|
|
62
|
-
/** Default tab variant */
|
|
63
25
|
readonly VARIANT: "primary";
|
|
64
|
-
/** Whether tabs are horizontally scrollable */
|
|
65
26
|
readonly SCROLLABLE: true;
|
|
66
|
-
/** Whether to show a divider below the tabs */
|
|
67
27
|
readonly SHOW_DIVIDER: true;
|
|
68
|
-
/** Default indicator width strategy */
|
|
69
28
|
readonly INDICATOR_WIDTH_STRATEGY: "auto";
|
|
70
|
-
/** Default fixed width for fixed indicator in pixels */
|
|
71
29
|
readonly INDICATOR_FIXED_WIDTH: 40;
|
|
72
|
-
/** Whether to enable ripple effect on tabs */
|
|
73
30
|
readonly RIPPLE: true;
|
|
74
31
|
};
|
|
75
|
-
/**
|
|
76
|
-
* Tab layout types
|
|
77
|
-
* @category Components
|
|
78
|
-
*/
|
|
79
32
|
export declare const TAB_LAYOUT: {
|
|
80
|
-
/** Icon-only tab layout */
|
|
81
33
|
readonly ICON_ONLY: "icon-only";
|
|
82
|
-
/** Text-only tab layout */
|
|
83
34
|
readonly TEXT_ONLY: "text-only";
|
|
84
|
-
/** Icon and text layout */
|
|
85
35
|
readonly ICON_AND_TEXT: "icon-and-text";
|
|
86
36
|
};
|
|
87
|
-
/**
|
|
88
|
-
* CSS class names used by the tabs component
|
|
89
|
-
* @category Components
|
|
90
|
-
*/
|
|
91
37
|
export declare const TABS_CLASSES: {
|
|
92
|
-
/** Root element class */
|
|
93
38
|
readonly ROOT: "tabs";
|
|
94
|
-
/** Root element with primary variant */
|
|
95
39
|
readonly PRIMARY: "tabs--primary";
|
|
96
|
-
/** Root element with secondary variant */
|
|
97
40
|
readonly SECONDARY: "tabs--secondary";
|
|
98
|
-
/** Root element with scrollable tabs */
|
|
99
41
|
readonly SCROLLABLE: "tabs--scrollable";
|
|
100
|
-
/** Scroll container element */
|
|
101
42
|
readonly SCROLL: "tabs__scroll";
|
|
102
|
-
/** Divider element */
|
|
103
43
|
readonly DIVIDER: "tabs__divider";
|
|
104
|
-
/** Indicator element */
|
|
105
44
|
readonly INDICATOR: "tabs__indicator";
|
|
106
45
|
};
|
|
107
|
-
/**
|
|
108
|
-
* CSS class names used by the tab component
|
|
109
|
-
* @category Components
|
|
110
|
-
*/
|
|
111
46
|
export declare const TAB_CLASSES: {
|
|
112
|
-
/** Root element class */
|
|
113
47
|
readonly ROOT: "tab";
|
|
114
|
-
/** Active state class */
|
|
115
48
|
readonly ACTIVE: "tab--active";
|
|
116
|
-
/** Inactive state class */
|
|
117
49
|
readonly INACTIVE: "tab--inactive";
|
|
118
|
-
/** Disabled state class */
|
|
119
50
|
readonly DISABLED: "tab--disabled";
|
|
120
|
-
/** Text content container */
|
|
121
51
|
readonly TEXT: "button__text";
|
|
122
|
-
/** Icon container */
|
|
123
52
|
readonly ICON: "button__icon";
|
|
124
|
-
/** Ripple effect container */
|
|
125
53
|
readonly RIPPLE: "ripple";
|
|
126
|
-
/** Root element with primary variant */
|
|
127
54
|
readonly PRIMARY: "tab--primary";
|
|
128
|
-
/** Root element with secondary variant */
|
|
129
55
|
readonly SECONDARY: "tab--secondary";
|
|
130
|
-
/** Container for text and icon */
|
|
131
56
|
readonly CONTAINER: "tab__container";
|
|
132
|
-
/** Badge container */
|
|
133
57
|
readonly BADGE: "badge";
|
|
134
58
|
};
|
|
@@ -1,49 +1,22 @@
|
|
|
1
1
|
import { TabComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration for tab indicator
|
|
4
|
-
*/
|
|
5
2
|
export interface TabIndicatorConfig {
|
|
6
|
-
/** Height of the indicator in pixels */
|
|
7
3
|
height?: number;
|
|
8
|
-
/** Width strategy - fixed size or dynamic based on tab width */
|
|
9
4
|
widthStrategy?: 'fixed' | 'dynamic' | 'content' | 'auto';
|
|
10
|
-
/** Fixed width in pixels when using fixed strategy */
|
|
11
5
|
fixedWidth?: number;
|
|
12
|
-
/** Animation duration in milliseconds */
|
|
13
6
|
animationDuration?: number;
|
|
14
|
-
/** Animation timing function */
|
|
15
7
|
animationTiming?: string;
|
|
16
|
-
/** Whether to show the indicator */
|
|
17
8
|
visible?: boolean;
|
|
18
|
-
/** CSS class prefix */
|
|
19
9
|
prefix?: string;
|
|
20
|
-
/** Custom color for the indicator */
|
|
21
10
|
color?: string;
|
|
22
|
-
/** Tabs variant (primary or secondary) */
|
|
23
11
|
variant?: string;
|
|
24
12
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Tab indicator API
|
|
27
|
-
*/
|
|
28
13
|
export interface TabIndicator {
|
|
29
|
-
/** The indicator DOM element */
|
|
30
14
|
element: HTMLElement;
|
|
31
|
-
/** Move the indicator to a specific tab */
|
|
32
15
|
moveToTab: (tab: TabComponent, immediate?: boolean) => void;
|
|
33
|
-
/** Show the indicator */
|
|
34
16
|
show: () => void;
|
|
35
|
-
/** Hide the indicator */
|
|
36
17
|
hide: () => void;
|
|
37
|
-
/** Set indicator color */
|
|
38
18
|
setColor: (color: string) => void;
|
|
39
|
-
/** Update indicator position (e.g. after resize) */
|
|
40
19
|
update: () => void;
|
|
41
|
-
/** Destroy the indicator and clean up */
|
|
42
20
|
destroy: () => void;
|
|
43
21
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Creates a tab indicator component
|
|
46
|
-
* @param config - Indicator configuration
|
|
47
|
-
* @returns Tab indicator instance
|
|
48
|
-
*/
|
|
49
22
|
export declare const createTabIndicator: (config?: TabIndicatorConfig) => TabIndicator;
|
|
@@ -1,48 +1,18 @@
|
|
|
1
1
|
import { TabsComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Breakpoints for responsive behavior
|
|
4
|
-
*/
|
|
5
2
|
export declare const RESPONSIVE_BREAKPOINTS: {
|
|
6
|
-
/** Small screens (mobile) */
|
|
7
3
|
SMALL: number;
|
|
8
|
-
/** Medium screens (tablet) */
|
|
9
4
|
MEDIUM: number;
|
|
10
|
-
/** Large screens (desktop) */
|
|
11
5
|
LARGE: number;
|
|
12
6
|
};
|
|
13
|
-
/**
|
|
14
|
-
* Configuration for responsive behavior
|
|
15
|
-
*/
|
|
16
7
|
export interface ResponsiveConfig {
|
|
17
|
-
/** Whether to enable responsive behavior */
|
|
18
8
|
responsive?: boolean;
|
|
19
|
-
/** Options for small screens */
|
|
20
9
|
smallScreen?: {
|
|
21
|
-
/**
|
|
22
|
-
* Layout below the small breakpoint: `icon-only` hides the labels of tabs
|
|
23
|
-
* that have an icon (the label still names the tab), `text-only` hides the
|
|
24
|
-
* icons of tabs that have a label, `icon-and-text` keeps every tab as built.
|
|
25
|
-
* @default 'icon-only'
|
|
26
|
-
*/
|
|
27
10
|
layout?: 'icon-only' | 'text-only' | 'icon-and-text';
|
|
28
11
|
};
|
|
29
|
-
/**
|
|
30
|
-
* Breakpoints. Only `small` switches the layout; `medium` and `large` are
|
|
31
|
-
* accepted and unused.
|
|
32
|
-
*/
|
|
33
12
|
breakpoints?: {
|
|
34
13
|
small?: number;
|
|
35
14
|
medium?: number;
|
|
36
15
|
large?: number;
|
|
37
16
|
};
|
|
38
17
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Enhances tabs with responsive behavior.
|
|
41
|
-
*
|
|
42
|
-
* Every update reads the group's tabs and each tab's content as they are then,
|
|
43
|
-
* so tabs added later and labels or icons changed later follow the layout; it
|
|
44
|
-
* held a snapshot taken at setup and restored layouts from it.
|
|
45
|
-
* @param tabs - The tabs component to enhance
|
|
46
|
-
* @param config - Responsive configuration
|
|
47
|
-
*/
|
|
48
18
|
export declare const setupResponsiveBehavior: (tabs: TabsComponent, config?: ResponsiveConfig) => void;
|
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
import { TabConfig, TabComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new Tab component following MD3 guidelines
|
|
4
|
-
* @param {TabConfig} config - Tab configuration object
|
|
5
|
-
* @returns {TabComponent} Tab component instance
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Point a tab at its panel, but only when that panel exists.
|
|
9
|
-
*
|
|
10
|
-
* The component creates no panels; a page supplies them. Writing
|
|
11
|
-
* `aria-controls` regardless left every tab referencing an id that resolves to
|
|
12
|
-
* nothing, which assistive technology reports as a broken relationship. When
|
|
13
|
-
* the panel appears later, `updateTabPanels` links it then.
|
|
14
|
-
*/
|
|
15
2
|
export declare const createTab: (config?: TabConfig) => TabComponent;
|
|
@@ -1,27 +1,3 @@
|
|
|
1
1
|
import { TabsConfig, TabsComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new Tabs component following MD3 guidelines
|
|
4
|
-
* @param {TabsConfig} config - Tabs configuration object
|
|
5
|
-
* @returns {TabsComponent} Tabs component instance
|
|
6
|
-
* @example
|
|
7
|
-
* ```typescript
|
|
8
|
-
* // Create basic tabs with three items
|
|
9
|
-
* const tabs = createTabs({
|
|
10
|
-
* tabs: [
|
|
11
|
-
* { text: 'Home', value: 'home', state: 'active' },
|
|
12
|
-
* { text: 'Products', value: 'products' },
|
|
13
|
-
* { text: 'About', value: 'about' }
|
|
14
|
-
* ]
|
|
15
|
-
* });
|
|
16
|
-
*
|
|
17
|
-
* // Add tabs to DOM
|
|
18
|
-
* document.body.appendChild(tabs.element);
|
|
19
|
-
*
|
|
20
|
-
* // Listen for tab changes
|
|
21
|
-
* tabs.on('change', (e) => {
|
|
22
|
-
* console.log(`Active tab: ${e.value}`);
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
2
|
declare const createTabs: (config?: TabsConfig) => TabsComponent;
|
|
27
3
|
export default createTabs;
|