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,4 +1,3 @@
|
|
|
1
|
-
/** M3 Expressive Android navigationrail/res/values/tokens.xml, token version 34.0.0. */
|
|
2
1
|
export declare const NAVIGATION_RAIL_DEFAULTS: {
|
|
3
2
|
readonly EXPANDED: false;
|
|
4
3
|
readonly COLLAPSED_WIDTH: 96;
|
|
@@ -7,7 +6,6 @@ export declare const NAVIGATION_RAIL_DEFAULTS: {
|
|
|
7
6
|
readonly MAX_EXPANDED_WIDTH: 360;
|
|
8
7
|
readonly SHOW_TOGGLE: true;
|
|
9
8
|
};
|
|
10
|
-
/** Material Symbols `menu` and `menu_open`, the M3 rail menu button in each state. */
|
|
11
9
|
export declare const NAVIGATION_RAIL_ICONS: {
|
|
12
10
|
readonly EXPAND: "<svg viewBox=\"0 -960 960 960\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z\"/></svg>";
|
|
13
11
|
readonly COLLAPSE: "<svg viewBox=\"0 -960 960 960\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M120-240v-80h520v80H120Zm664-40L584-480l200-200 56 56-144 144 144 144-56 56ZM120-440v-80h400v80H120Zm0-200v-80h520v80H120Z\"/></svg>";
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import type { NavigationRailConfig, NavigationRailComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Creates an M3 Expressive navigation rail with stable destinations during expansion.
|
|
4
|
-
* Import its styles separately with `material/styles/navigation-rail`.
|
|
5
|
-
* Links retain native browser navigation; onSelect can preventDefault for a router.
|
|
6
|
-
*/
|
|
7
2
|
export default function createNavigationRail(config?: NavigationRailConfig): NavigationRailComponent;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import type { BaseComponentConfig } from "../../core/config/component.js";
|
|
2
|
-
/** A primary destination. Icons are markup supplied by the application. */
|
|
3
2
|
export interface NavigationRailItemConfig {
|
|
4
3
|
id: string;
|
|
5
4
|
label: string;
|
|
6
|
-
/** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
|
|
7
5
|
icon: string;
|
|
8
|
-
/** Markup (HTML). Not sanitized by default: see Markup and sanitizing. Shown while this destination is active. */
|
|
9
6
|
activeIcon?: string;
|
|
10
7
|
href?: string;
|
|
11
8
|
badge?: string | number | boolean;
|
|
12
|
-
/** Accessible description for a dot badge or count, e.g. "3 unread messages". */
|
|
13
9
|
badgeLabel?: string;
|
|
14
10
|
active?: boolean;
|
|
15
11
|
disabled?: boolean;
|
|
16
12
|
}
|
|
17
13
|
export interface NavigationRailSelectEvent {
|
|
18
14
|
id: string;
|
|
19
|
-
/** The id again, as the `value` of the `<m-navigation-rail>` element's `change` */
|
|
20
15
|
value: string;
|
|
21
16
|
index: number;
|
|
22
17
|
originalEvent: MouseEvent;
|
|
@@ -30,32 +25,21 @@ export interface NavigationRailEvents {
|
|
|
30
25
|
expanded: false;
|
|
31
26
|
};
|
|
32
27
|
}
|
|
33
|
-
/** Standalone, non-modal M3 Expressive navigation rail. */
|
|
34
28
|
export interface NavigationRailConfig extends BaseComponentConfig {
|
|
35
29
|
items?: NavigationRailItemConfig[];
|
|
36
30
|
expanded?: boolean;
|
|
37
|
-
/** Standard rail occupies layout space; modal expansion uses a native modal dialog. */
|
|
38
31
|
layout?: 'standard' | 'modal';
|
|
39
|
-
/** Hide the standard rail when collapsed. Modal rails always hide when collapsed. */
|
|
40
32
|
hideWhenCollapsed?: boolean;
|
|
41
|
-
/** Expanded width in CSS pixels, clamped to the Android token range 220–360. Default 280. */
|
|
42
33
|
expandedWidth?: number;
|
|
43
|
-
/** Show the accessible expand/collapse menu button. Default true. */
|
|
44
34
|
showToggle?: boolean;
|
|
45
35
|
expandLabel?: string;
|
|
46
36
|
collapseLabel?: string;
|
|
47
|
-
/** Menu button icon while collapsed. Default: Material Symbols `menu`. Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
|
|
48
37
|
expandIcon?: string;
|
|
49
|
-
/** Menu button icon while expanded. Default: Material Symbols `menu_open`. Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
|
|
50
38
|
collapseIcon?: string;
|
|
51
|
-
/** Optional application-owned header, such as a FAB. Its lifecycle stays with its owner. */
|
|
52
39
|
header?: HTMLElement;
|
|
53
40
|
ripple?: boolean;
|
|
54
|
-
/** `select` listener registered at creation. */
|
|
55
41
|
onSelect?: (event: NavigationRailEvents["select"]) => void;
|
|
56
|
-
/** `expand` listener registered at creation. The argument is `{ expanded: true }`. */
|
|
57
42
|
onExpand?: (event: NavigationRailEvents["expand"]) => void;
|
|
58
|
-
/** `collapse` listener registered at creation. The argument is `{ expanded: false }`. */
|
|
59
43
|
onCollapse?: (event: NavigationRailEvents["collapse"]) => void;
|
|
60
44
|
}
|
|
61
45
|
export interface NavigationRailComponent {
|
|
@@ -67,7 +51,6 @@ export interface NavigationRailComponent {
|
|
|
67
51
|
isExpanded: () => boolean;
|
|
68
52
|
setActive: (id: string | null) => NavigationRailComponent;
|
|
69
53
|
getActive: () => string | null;
|
|
70
|
-
/** Reads the current model value without changing selection. */
|
|
71
54
|
getValue: () => string | null;
|
|
72
55
|
setItems: (items: NavigationRailItemConfig[]) => NavigationRailComponent;
|
|
73
56
|
getItems: () => NavigationRailItemConfig[];
|
|
@@ -79,11 +62,6 @@ export interface NavigationRailComponent {
|
|
|
79
62
|
destroy: () => void;
|
|
80
63
|
};
|
|
81
64
|
}
|
|
82
|
-
/**
|
|
83
|
-
* Registers NavigationRailConfig with the global defaults map, so
|
|
84
|
-
* `setComponentDefaults("navigation-rail", ...)` is typed without core
|
|
85
|
-
* importing anything from this component.
|
|
86
|
-
*/
|
|
87
65
|
declare module "../../core/config/global" {
|
|
88
66
|
interface ComponentConfigMap {
|
|
89
67
|
"navigation-rail"?: Partial<NavigationRailConfig>;
|
|
@@ -18,7 +18,6 @@ export declare const PROGRESS_DEFAULTS: {
|
|
|
18
18
|
readonly SHAPE: "flat";
|
|
19
19
|
readonly SHOW_LABEL: false;
|
|
20
20
|
readonly INDETERMINATE: false;
|
|
21
|
-
/** Accessible name when none is given */
|
|
22
21
|
readonly LABEL: "Loading";
|
|
23
22
|
};
|
|
24
23
|
export declare const PROGRESS_CLASSES: {
|
|
@@ -34,42 +33,26 @@ export declare const PROGRESS_CLASSES: {
|
|
|
34
33
|
readonly TEST: "progress--test";
|
|
35
34
|
readonly TRANSITION: "progress--transition";
|
|
36
35
|
};
|
|
37
|
-
/**
|
|
38
|
-
* Colour roles (ProgressIndicatorTokens): the active indicator and the stop
|
|
39
|
-
* indicator take primary, the track secondary-container. A circular
|
|
40
|
-
* indeterminate indicator has no track.
|
|
41
|
-
*/
|
|
42
36
|
export declare const PROGRESS_COLORS: {
|
|
43
37
|
readonly INDICATOR: "sys-color-primary";
|
|
44
38
|
readonly TRACK: "sys-color-secondary-container";
|
|
45
39
|
readonly STOP: "sys-color-primary";
|
|
46
|
-
/** Not an M3 role: the buffer is this library's own extension */
|
|
47
40
|
readonly BUFFER: "sys-color-primary-container";
|
|
48
41
|
};
|
|
49
42
|
export declare const PROGRESS_MEASUREMENTS: {
|
|
50
43
|
readonly LINEAR: {
|
|
51
|
-
/** Track and active indicator thickness (LinearProgressIndicatorTokens.Height) */
|
|
52
44
|
readonly HEIGHT: 4;
|
|
53
|
-
/** Space between the active indicator and the track (TrackActiveSpace) */
|
|
54
45
|
readonly GAP: 4;
|
|
55
|
-
/** The dot that marks the end of the track (StopSize) */
|
|
56
46
|
readonly STOP_INDICATOR: 4;
|
|
57
|
-
/** How far the stop indicator sits from the trailing edge, at most */
|
|
58
47
|
readonly STOP_TRAILING_SPACE: 6;
|
|
59
|
-
/** Container height of a wavy linear indicator (WaveHeight) */
|
|
60
48
|
readonly WAVE_HEIGHT: 10;
|
|
61
|
-
/** Inset from the edge of the element (m3.material.io: 4dp minimum) */
|
|
62
49
|
readonly EDGE_INSET: 4;
|
|
63
50
|
readonly MIN_HEIGHT: 4;
|
|
64
51
|
};
|
|
65
52
|
readonly CIRCULAR: {
|
|
66
|
-
/** Flat container size (CircularProgressIndicatorTokens.Size) */
|
|
67
53
|
readonly SIZE: 40;
|
|
68
|
-
/** Wavy container size (CircularProgressIndicatorTokens.WaveSize) */
|
|
69
54
|
readonly WAVE_SIZE: 48;
|
|
70
|
-
/** Space between the active indicator and the track (TrackActiveSpace) */
|
|
71
55
|
readonly GAP: 4;
|
|
72
|
-
/** The guidelines' range for a circular indicator */
|
|
73
56
|
readonly MIN_SIZE: 24;
|
|
74
57
|
readonly MAX_SIZE: 240;
|
|
75
58
|
};
|
|
@@ -81,43 +64,23 @@ export declare const PROGRESS_THICKNESS: {
|
|
|
81
64
|
readonly THIN: 4;
|
|
82
65
|
readonly THICK: 8;
|
|
83
66
|
};
|
|
84
|
-
/**
|
|
85
|
-
* Wave geometry (LinearProgressIndicatorTokens, CircularProgressIndicatorTokens).
|
|
86
|
-
* Wavelengths and amplitudes are in dp at the default 4dp thickness and scale
|
|
87
|
-
* with the indicator's size.
|
|
88
|
-
*/
|
|
89
67
|
export declare const PROGRESS_WAVE: {
|
|
90
68
|
readonly LINEAR: {
|
|
91
|
-
/** ActiveWaveWavelength */
|
|
92
69
|
readonly WAVELENGTH: 40;
|
|
93
|
-
/** IndeterminateActiveWaveWavelength */
|
|
94
70
|
readonly INDETERMINATE_WAVELENGTH: 20;
|
|
95
|
-
/** ActiveWaveAmplitude */
|
|
96
71
|
readonly AMPLITUDE: 3;
|
|
97
72
|
};
|
|
98
73
|
readonly CIRCULAR: {
|
|
99
|
-
/** ActiveWaveWavelength */
|
|
100
74
|
readonly WAVELENGTH: 15;
|
|
101
|
-
/** ActiveWaveAmplitude */
|
|
102
75
|
readonly AMPLITUDE: 1.6;
|
|
103
76
|
};
|
|
104
|
-
/** The wave travels one wavelength per second (WavyProgressIndicatorDefaults) */
|
|
105
77
|
readonly SPEED: 1;
|
|
106
|
-
/**
|
|
107
|
-
* The wave flattens at both ends of the range
|
|
108
|
-
* (WavyProgressIndicatorDefaults.indicatorAmplitude)
|
|
109
|
-
*/
|
|
110
78
|
readonly AMPLITUDE_START: 0.1;
|
|
111
79
|
readonly AMPLITUDE_END: 0.95;
|
|
112
|
-
/** How long the amplitude takes to appear or go (MotionTokens.DurationLong2) */
|
|
113
80
|
readonly AMPLITUDE_DURATION: 500;
|
|
114
81
|
};
|
|
115
|
-
/**
|
|
116
|
-
* Indeterminate motion (ProgressIndicator.kt)
|
|
117
|
-
*/
|
|
118
82
|
export declare const PROGRESS_MOTION: {
|
|
119
83
|
readonly LINEAR: {
|
|
120
|
-
/** LinearAnimationDuration */
|
|
121
84
|
readonly DURATION: 1750;
|
|
122
85
|
readonly FIRST_HEAD_DELAY: 0;
|
|
123
86
|
readonly FIRST_HEAD_DURATION: 1000;
|
|
@@ -129,34 +92,39 @@ export declare const PROGRESS_MOTION: {
|
|
|
129
92
|
readonly SECOND_TAIL_DURATION: 850;
|
|
130
93
|
};
|
|
131
94
|
readonly CIRCULAR: {
|
|
132
|
-
/** CircularAnimationProgressDuration */
|
|
133
95
|
readonly DURATION: 6000;
|
|
134
|
-
/** CircularAnimationAdditionalRotationDuration */
|
|
135
96
|
readonly ROTATION_DURATION: 300;
|
|
136
|
-
/** CircularAnimationAdditionalRotationDelay */
|
|
137
97
|
readonly ROTATION_DELAY: 1500;
|
|
138
|
-
/** CircularGlobalRotationDegreesTarget */
|
|
139
98
|
readonly GLOBAL_ROTATION: 1080;
|
|
140
|
-
/** CircularAdditionalRotationDegreesTarget */
|
|
141
99
|
readonly ADDITIONAL_ROTATION: 360;
|
|
142
|
-
/** CircularIndeterminateMinProgress */
|
|
143
100
|
readonly MIN_PROGRESS: 0.1;
|
|
144
|
-
/** CircularIndeterminateMaxProgress */
|
|
145
101
|
readonly MAX_PROGRESS: 0.87;
|
|
146
102
|
};
|
|
147
|
-
/** How long a value change takes to animate (MotionTokens.DurationLong2) */
|
|
148
103
|
readonly VALUE_DURATION: 500;
|
|
149
104
|
};
|
|
150
|
-
/**
|
|
151
|
-
* Easing curves (MotionTokens), as cubic Bézier control points
|
|
152
|
-
*/
|
|
153
105
|
export declare const PROGRESS_EASING: {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
106
|
+
readonly EMPHASIZED_ACCELERATE: readonly [
|
|
107
|
+
0.3,
|
|
108
|
+
0,
|
|
109
|
+
0.8,
|
|
110
|
+
0.15
|
|
111
|
+
];
|
|
112
|
+
readonly EMPHASIZED_DECELERATE: readonly [
|
|
113
|
+
0.05,
|
|
114
|
+
0.7,
|
|
115
|
+
0.1,
|
|
116
|
+
1
|
|
117
|
+
];
|
|
118
|
+
readonly STANDARD: readonly [
|
|
119
|
+
0.2,
|
|
120
|
+
0,
|
|
121
|
+
0,
|
|
122
|
+
1
|
|
123
|
+
];
|
|
124
|
+
readonly LINEAR: readonly [
|
|
125
|
+
0,
|
|
126
|
+
0,
|
|
127
|
+
1,
|
|
128
|
+
1
|
|
129
|
+
];
|
|
162
130
|
};
|
|
@@ -1,24 +1,3 @@
|
|
|
1
1
|
import { ProgressConfig, ProgressComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new Progress component using canvas rendering
|
|
4
|
-
* @param {ProgressConfig} config - Progress configuration object
|
|
5
|
-
* @returns {ProgressComponent} Progress component instance
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* // Create a linear determinate progress bar
|
|
10
|
-
* const progress = createProgress({
|
|
11
|
-
* variant: 'linear',
|
|
12
|
-
* value: 42,
|
|
13
|
-
* showLabel: true
|
|
14
|
-
* });
|
|
15
|
-
*
|
|
16
|
-
* // Create an indeterminate circular progress
|
|
17
|
-
* const loader = createProgress({
|
|
18
|
-
* variant: 'circular',
|
|
19
|
-
* indeterminate: true
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
2
|
declare const createProgress: (config?: ProgressConfig) => ProgressComponent;
|
|
24
3
|
export default createProgress;
|
|
@@ -1,328 +1,77 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Progress variant types
|
|
3
|
-
* @category Components
|
|
4
|
-
*/
|
|
5
1
|
export type ProgressVariant = "linear" | "circular";
|
|
6
|
-
/**
|
|
7
|
-
* Progress thickness options
|
|
8
|
-
* @category Components
|
|
9
|
-
*/
|
|
10
2
|
export type ProgressThickness = "thin" | "thick" | number;
|
|
11
|
-
/**
|
|
12
|
-
* Progress shape options (linear only)
|
|
13
|
-
* @category Components
|
|
14
|
-
*/
|
|
15
3
|
export type ProgressShape = "flat" | "wavy";
|
|
16
|
-
/**
|
|
17
|
-
* Progress component event types
|
|
18
|
-
* @category Components
|
|
19
|
-
*/
|
|
20
4
|
export type ProgressEvent = "change" | "complete";
|
|
21
|
-
/**
|
|
22
|
-
* Configuration interface for the Progress component
|
|
23
|
-
* @category Components
|
|
24
|
-
*/
|
|
25
5
|
export interface ProgressConfig {
|
|
26
|
-
/**
|
|
27
|
-
* Progress variant that determines visual style
|
|
28
|
-
* @default 'linear'
|
|
29
|
-
*/
|
|
30
6
|
variant?: ProgressVariant;
|
|
31
|
-
/**
|
|
32
|
-
* Initial progress value (0-100)
|
|
33
|
-
* @default 0
|
|
34
|
-
*/
|
|
35
7
|
value?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the progress indicator is initially disabled
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
8
|
disabled?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Maximum value
|
|
43
|
-
* @default 100
|
|
44
|
-
*/
|
|
45
9
|
max?: number;
|
|
46
|
-
/**
|
|
47
|
-
* Buffer value for linear progress with buffer (like video loading)
|
|
48
|
-
* @default 0
|
|
49
|
-
*/
|
|
50
10
|
buffer?: number;
|
|
51
|
-
/**
|
|
52
|
-
* Additional CSS classes to add to the progress component
|
|
53
|
-
*/
|
|
54
11
|
class?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Thickness of the progress track and indicator
|
|
57
|
-
* Can be a named preset ('thin', 'default', 'thick') or a specific number in pixels
|
|
58
|
-
* @default 'thin'
|
|
59
|
-
*/
|
|
60
12
|
thickness?: ProgressThickness;
|
|
61
|
-
/**
|
|
62
|
-
* Shape of the linear indeterminate progress animation
|
|
63
|
-
* Only affects linear variant in indeterminate state
|
|
64
|
-
* @default 'flat'
|
|
65
|
-
*/
|
|
66
13
|
shape?: ProgressShape;
|
|
67
|
-
/**
|
|
68
|
-
* Whether to show text label with percentage
|
|
69
|
-
* @default false
|
|
70
|
-
*/
|
|
71
14
|
showLabel?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Whether progress is indeterminate (shows animation without specific value)
|
|
74
|
-
* @default false
|
|
75
|
-
*/
|
|
76
15
|
indeterminate?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Whether to mark the end of a linear determinate track with a 4dp dot.
|
|
79
|
-
* The dot is required unless the track has at least 3:1 contrast with
|
|
80
|
-
* everything around it (M3 progress indicator accessibility), so it is on
|
|
81
|
-
* by default.
|
|
82
|
-
* @default true
|
|
83
|
-
*/
|
|
84
16
|
showStopIndicator?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Accessible name: what is loading, such as "Loading news article"
|
|
87
|
-
* @default 'Loading'
|
|
88
|
-
*/
|
|
89
17
|
ariaLabel?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Custom label formatter function
|
|
92
|
-
*/
|
|
93
18
|
labelFormatter?: (value: number, max: number) => string;
|
|
94
|
-
/**
|
|
95
|
-
* Component prefix for class names
|
|
96
|
-
* @default 'mtrl'
|
|
97
|
-
*/
|
|
98
19
|
prefix?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Component name used in class generation
|
|
101
|
-
* @default 'progress'
|
|
102
|
-
*/
|
|
103
20
|
componentName?: string;
|
|
104
|
-
/**
|
|
105
|
-
* DOM structure schema
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
21
|
schema?: object;
|
|
109
|
-
/**
|
|
110
|
-
* Size of the circular progress indicator in dp (only for circular variant)
|
|
111
|
-
* Clamped between 24 and 240
|
|
112
|
-
* @default 40 (48 when wavy)
|
|
113
|
-
*/
|
|
114
22
|
size?: number;
|
|
115
23
|
}
|
|
116
|
-
/**
|
|
117
|
-
* Progress component interface
|
|
118
|
-
* @category Components
|
|
119
|
-
*/
|
|
120
|
-
/** What progress events carry. */
|
|
121
24
|
export interface ProgressEventPayload {
|
|
122
25
|
value: number;
|
|
123
26
|
max: number;
|
|
124
27
|
}
|
|
125
|
-
/**
|
|
126
|
-
* The progress events.
|
|
127
|
-
* @category Components
|
|
128
|
-
*/
|
|
129
28
|
export interface ProgressEvents {
|
|
130
|
-
/** The value was set */
|
|
131
29
|
change: (event: ProgressEventPayload) => void;
|
|
132
|
-
/** The value reached the maximum */
|
|
133
30
|
complete: (event: ProgressEventPayload) => void;
|
|
134
31
|
}
|
|
135
|
-
/**
|
|
136
|
-
* What the progress draws with. **Not part of the public contract** (3.0.0):
|
|
137
|
-
* these five were on `ProgressComponent`, which tied the public type to one
|
|
138
|
-
* way of drawing the indicator. They are still on the object the factory
|
|
139
|
-
* returns, for the library's own code and tests; how the indicator is drawn
|
|
140
|
-
* may change in any release. The canvas is the element's own:
|
|
141
|
-
* `progress.element.querySelector('canvas')`. Nothing needs to call `resize`:
|
|
142
|
-
* the component observes its own size.
|
|
143
|
-
* @internal
|
|
144
|
-
*/
|
|
145
32
|
export interface ProgressInternals {
|
|
146
|
-
/** The canvas the indicator is drawn on */
|
|
147
33
|
canvas: HTMLCanvasElement;
|
|
148
|
-
/** Re-measures the canvas and redraws; the component does this on resize */
|
|
149
34
|
resize: () => void;
|
|
150
|
-
/** The canvas again: these three named the parts of the SVG this replaced */
|
|
151
35
|
track: SVGElement;
|
|
152
36
|
indicator: SVGElement;
|
|
153
37
|
buffer: SVGElement;
|
|
154
38
|
}
|
|
155
39
|
export interface ProgressComponent {
|
|
156
|
-
/** The component's root DOM element */
|
|
157
40
|
element: HTMLElement;
|
|
158
|
-
/**
|
|
159
|
-
* Gets a class name with the component's prefix
|
|
160
|
-
* @param name - Base class name
|
|
161
|
-
* @returns Prefixed class name
|
|
162
|
-
*/
|
|
163
41
|
getClass: (name: string) => string;
|
|
164
|
-
/**
|
|
165
|
-
* Sets the progress value
|
|
166
|
-
* @param value - Progress value between 0 and max
|
|
167
|
-
* @param animate - Whether to animate the value change (default: true)
|
|
168
|
-
* @returns The component instance for chaining
|
|
169
|
-
*/
|
|
170
42
|
setValue: (value: number, animate?: boolean) => ProgressComponent;
|
|
171
|
-
/**
|
|
172
|
-
* Gets the current progress value
|
|
173
|
-
* @returns Current progress value
|
|
174
|
-
*/
|
|
175
43
|
getValue: () => number;
|
|
176
|
-
/**
|
|
177
|
-
* Gets the maximum progress value
|
|
178
|
-
* @returns Maximum progress value
|
|
179
|
-
*/
|
|
180
44
|
getMax: () => number;
|
|
181
|
-
/**
|
|
182
|
-
* Sets the buffer value (for linear variant with buffer indicators)
|
|
183
|
-
* @param value - Buffer value (between 0 and max)
|
|
184
|
-
* @returns The progress component for chaining
|
|
185
|
-
*/
|
|
186
45
|
setBuffer: (value: number) => ProgressComponent;
|
|
187
|
-
/**
|
|
188
|
-
* Gets the current buffer value
|
|
189
|
-
* @returns Current buffer value
|
|
190
|
-
*/
|
|
191
46
|
getBuffer: () => number;
|
|
192
|
-
/**
|
|
193
|
-
* Enables the progress component
|
|
194
|
-
* @returns The progress component for chaining
|
|
195
|
-
*/
|
|
196
47
|
enable: () => ProgressComponent;
|
|
197
|
-
/**
|
|
198
|
-
* Disables the progress component
|
|
199
|
-
* @returns The progress component for chaining
|
|
200
|
-
*/
|
|
201
48
|
disable: () => ProgressComponent;
|
|
202
|
-
/**
|
|
203
|
-
* Checks if the component is disabled
|
|
204
|
-
* @returns Whether the component is disabled
|
|
205
|
-
*/
|
|
206
49
|
isDisabled: () => boolean;
|
|
207
|
-
/**
|
|
208
|
-
* Hides the progress component
|
|
209
|
-
* @returns The progress component for chaining
|
|
210
|
-
*/
|
|
211
50
|
hide: () => ProgressComponent;
|
|
212
|
-
/**
|
|
213
|
-
* Shows the progress component
|
|
214
|
-
* @returns The progress component for chaining
|
|
215
|
-
*/
|
|
216
51
|
show: () => ProgressComponent;
|
|
217
|
-
/**
|
|
218
|
-
* Checks if the progress component is visible
|
|
219
|
-
* @returns Whether the component is visible
|
|
220
|
-
*/
|
|
221
52
|
isVisible: () => boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Shows the label element
|
|
224
|
-
* @returns The progress component for chaining
|
|
225
|
-
*/
|
|
226
53
|
showLabel: () => ProgressComponent;
|
|
227
|
-
/**
|
|
228
|
-
* Hides the label element
|
|
229
|
-
* @returns The progress component for chaining
|
|
230
|
-
*/
|
|
231
54
|
hideLabel: () => ProgressComponent;
|
|
232
|
-
/**
|
|
233
|
-
* Sets a custom formatter for the label
|
|
234
|
-
* @param formatter - Function that formats the label text
|
|
235
|
-
* @returns The progress component for chaining
|
|
236
|
-
*/
|
|
237
55
|
setLabelFormatter: (formatter: (value: number, max: number) => string) => ProgressComponent;
|
|
238
|
-
/**
|
|
239
|
-
* Sets the thickness of the progress track and indicator
|
|
240
|
-
* @param thickness - Thickness value ('thin', 'default', 'thick' or number in pixels)
|
|
241
|
-
* @returns The progress component for chaining
|
|
242
|
-
*/
|
|
243
56
|
setThickness: (thickness: ProgressThickness) => ProgressComponent;
|
|
244
|
-
/**
|
|
245
|
-
* Gets the current thickness value in pixels
|
|
246
|
-
* @returns Current thickness in pixels
|
|
247
|
-
*/
|
|
248
57
|
getThickness: () => number;
|
|
249
|
-
/**
|
|
250
|
-
* Sets the shape of the linear indeterminate progress animation
|
|
251
|
-
* Only affects linear variant in indeterminate state
|
|
252
|
-
* @param shape - Shape value ('flat' or 'wavy')
|
|
253
|
-
* @returns The progress component for chaining
|
|
254
|
-
*/
|
|
255
58
|
setShape: (shape: ProgressShape) => ProgressComponent;
|
|
256
|
-
/**
|
|
257
|
-
* Gets the current shape value
|
|
258
|
-
* @returns Current shape
|
|
259
|
-
*/
|
|
260
59
|
getShape: () => ProgressShape;
|
|
261
|
-
/**
|
|
262
|
-
* Sets the indeterminate state
|
|
263
|
-
* @param indeterminate - Whether progress is indeterminate
|
|
264
|
-
* @returns The progress component for chaining
|
|
265
|
-
*/
|
|
266
60
|
setIndeterminate: (indeterminate: boolean) => ProgressComponent;
|
|
267
|
-
/**
|
|
268
|
-
* Checks if the component is in indeterminate state
|
|
269
|
-
* @returns Whether the component is indeterminate
|
|
270
|
-
*/
|
|
271
61
|
isIndeterminate: () => boolean;
|
|
272
|
-
/**
|
|
273
|
-
* Sets the size of the circular progress indicator
|
|
274
|
-
* Only applies to circular variant
|
|
275
|
-
* @param size - Size in pixels (clamped between 24 and 240)
|
|
276
|
-
* @returns The progress component for chaining
|
|
277
|
-
*/
|
|
278
62
|
setSize: (size: number) => ProgressComponent;
|
|
279
|
-
/**
|
|
280
|
-
* Gets the current size of the circular progress indicator
|
|
281
|
-
* @returns Current size in pixels, or undefined for linear variant
|
|
282
|
-
*/
|
|
283
63
|
getSize: () => number | undefined;
|
|
284
|
-
/**
|
|
285
|
-
* Returns a Promise that resolves after the current canvas state
|
|
286
|
-
* has been painted to screen. Useful when you need to ensure a
|
|
287
|
-
* value change (e.g. 100%) is visually rendered before proceeding.
|
|
288
|
-
*
|
|
289
|
-
* @returns Promise that resolves after the next paint
|
|
290
|
-
*/
|
|
291
64
|
painted: () => Promise<void>;
|
|
292
|
-
/**
|
|
293
|
-
* Adds an event listener: `change` when the value is set, `complete` when it
|
|
294
|
-
* reaches the maximum. Handlers get `{ value, max }` (they got a DOM
|
|
295
|
-
* CustomEvent, the payload in `event.detail`).
|
|
296
|
-
*/
|
|
297
65
|
on: <K extends keyof ProgressEvents>(event: K, handler: ProgressEvents[K]) => ProgressComponent;
|
|
298
|
-
/** Removes an event listener */
|
|
299
66
|
off: <K extends keyof ProgressEvents>(event: K, handler: ProgressEvents[K]) => ProgressComponent;
|
|
300
|
-
/**
|
|
301
|
-
* Destroys the progress component and cleans up resources
|
|
302
|
-
*/
|
|
303
67
|
destroy: () => void;
|
|
304
|
-
/**
|
|
305
|
-
* Adds CSS classes to the progress element
|
|
306
|
-
* @param classes - One or more class names to add
|
|
307
|
-
* @returns The progress component for chaining
|
|
308
|
-
*/
|
|
309
68
|
addClass: (...classes: string[]) => ProgressComponent;
|
|
310
|
-
/**
|
|
311
|
-
* API for managing disabled state
|
|
312
|
-
*/
|
|
313
69
|
disabled: {
|
|
314
|
-
/** Enables the progress */
|
|
315
70
|
enable: () => void;
|
|
316
|
-
/** Disables the progress */
|
|
317
71
|
disable: () => void;
|
|
318
|
-
/** Checks if the progress is disabled */
|
|
319
72
|
isDisabled: () => boolean;
|
|
320
73
|
};
|
|
321
|
-
/**
|
|
322
|
-
* API for managing component lifecycle
|
|
323
|
-
*/
|
|
324
74
|
lifecycle: {
|
|
325
|
-
/** Destroys the component and cleans up resources */
|
|
326
75
|
destroy: () => void;
|
|
327
76
|
};
|
|
328
77
|
}
|
|
@@ -1,40 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Radio states for styling and behavior
|
|
3
|
-
*/
|
|
4
1
|
export declare const RADIO_STATES: {
|
|
5
|
-
/** Radio is selected */
|
|
6
2
|
readonly CHECKED: "checked";
|
|
7
|
-
/** Radio is not selected */
|
|
8
3
|
readonly UNCHECKED: "unchecked";
|
|
9
|
-
/** Radio is disabled */
|
|
10
4
|
readonly DISABLED: "disabled";
|
|
11
|
-
/** Radio has keyboard focus */
|
|
12
5
|
readonly FOCUSED: "focused";
|
|
13
6
|
};
|
|
14
|
-
/**
|
|
15
|
-
* Radio layout directions
|
|
16
|
-
*/
|
|
17
7
|
export declare const RADIO_DIRECTIONS: {
|
|
18
|
-
/** Radios stacked vertically */
|
|
19
8
|
readonly VERTICAL: "vertical";
|
|
20
|
-
/** Radios arranged horizontally */
|
|
21
9
|
readonly HORIZONTAL: "horizontal";
|
|
22
10
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Radio events
|
|
25
|
-
*/
|
|
26
11
|
export declare const RADIO_EVENTS: {
|
|
27
|
-
/** Fired when a radio button is selected */
|
|
28
12
|
readonly CHANGE: "change";
|
|
29
|
-
/** Native input focus event; listen on the input, not the group emitter. */
|
|
30
13
|
readonly FOCUS: "focus";
|
|
31
|
-
/** Native input blur event; listen on the input, not the group emitter. */
|
|
32
14
|
readonly BLUR: "blur";
|
|
33
15
|
};
|
|
34
|
-
/**
|
|
35
|
-
* Default configuration values
|
|
36
|
-
*/
|
|
37
16
|
export declare const RADIO_DEFAULTS: {
|
|
38
|
-
/** Default radio direction */
|
|
39
17
|
readonly DIRECTION: "vertical";
|
|
40
18
|
};
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { RadiosConfig, RadiosComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new Radios component
|
|
4
|
-
* @param {RadiosConfig} config - Radios configuration object
|
|
5
|
-
* @returns {RadiosComponent} Radios component instance
|
|
6
|
-
*/
|
|
7
2
|
declare const createRadios: (config: RadiosConfig) => RadiosComponent;
|
|
8
3
|
export default createRadios;
|