material 3.2.5 → 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/README.md +2 -2
- 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/features/items.js +3 -2
- 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/tab.js +26 -3
- 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/badge.js +45 -0
- 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 -14
- package/dist/core/navigation/destinations.js +18 -5
- 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/css/badge.css +1 -1
- package/dist/elements/css/badge.js +1 -1
- package/dist/elements/css/navigation-rail.css +1 -1
- package/dist/elements/css/navigation-rail.js +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/elements/preupgrade.d.ts +0 -1
- package/dist/elements/preupgrade.js +1 -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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/src/styles/components/_badge.scss +75 -38
- package/src/styles/components/_navigation-rail.scss +9 -6
- package/src/styles/elements/_badge.scss +65 -4
- 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,106 +1,48 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tooltip positions
|
|
3
|
-
* @category Components
|
|
4
|
-
*/
|
|
5
1
|
export declare const TOOLTIP_POSITIONS: {
|
|
6
|
-
/** Position above the target element */
|
|
7
2
|
readonly TOP: "top";
|
|
8
|
-
/** Position to the right of the target element */
|
|
9
3
|
readonly RIGHT: "right";
|
|
10
|
-
/** Position below the target element */
|
|
11
4
|
readonly BOTTOM: "bottom";
|
|
12
|
-
/** Position to the left of the target element */
|
|
13
5
|
readonly LEFT: "left";
|
|
14
|
-
/** Position above and aligned to the start of the target */
|
|
15
6
|
readonly TOP_START: "top-start";
|
|
16
|
-
/** Position above and aligned to the end of the target */
|
|
17
7
|
readonly TOP_END: "top-end";
|
|
18
|
-
/** Position to the right and aligned to the start of the target */
|
|
19
8
|
readonly RIGHT_START: "right-start";
|
|
20
|
-
/** Position to the right and aligned to the end of the target */
|
|
21
9
|
readonly RIGHT_END: "right-end";
|
|
22
|
-
/** Position below and aligned to the start of the target */
|
|
23
10
|
readonly BOTTOM_START: "bottom-start";
|
|
24
|
-
/** Position below and aligned to the end of the target */
|
|
25
11
|
readonly BOTTOM_END: "bottom-end";
|
|
26
|
-
/** Position to the left and aligned to the start of the target */
|
|
27
12
|
readonly LEFT_START: "left-start";
|
|
28
|
-
/** Position to the left and aligned to the end of the target */
|
|
29
13
|
readonly LEFT_END: "left-end";
|
|
30
14
|
};
|
|
31
|
-
/**
|
|
32
|
-
* Tooltip visual variants
|
|
33
|
-
* @category Components
|
|
34
|
-
*/
|
|
35
15
|
export declare const TOOLTIP_VARIANTS: {
|
|
36
|
-
/** Standard tooltip with background and arrow */
|
|
37
16
|
readonly DEFAULT: "default";
|
|
38
|
-
/** Rich tooltip with support for HTML content */
|
|
39
17
|
readonly RICH: "rich";
|
|
40
|
-
/** Plain text tooltip with minimal styling */
|
|
41
18
|
readonly PLAIN: "plain";
|
|
42
19
|
};
|
|
43
|
-
/**
|
|
44
|
-
* Tooltip events
|
|
45
|
-
* @category Components
|
|
46
|
-
*/
|
|
47
20
|
export declare const TOOLTIP_EVENTS: {
|
|
48
|
-
/** Fired when tooltip becomes visible */
|
|
49
21
|
readonly SHOW: "show";
|
|
50
|
-
/** Fired when tooltip becomes hidden */
|
|
51
22
|
readonly HIDE: "hide";
|
|
52
|
-
/** Fired when mouse enters target element */
|
|
53
23
|
readonly ENTER: "enter";
|
|
54
|
-
/** Fired when mouse leaves target element */
|
|
55
24
|
readonly LEAVE: "leave";
|
|
56
25
|
};
|
|
57
|
-
/**
|
|
58
|
-
* Default configuration values for tooltip
|
|
59
|
-
* @category Components
|
|
60
|
-
*/
|
|
61
26
|
export declare const TOOLTIP_DEFAULTS: {
|
|
62
|
-
/** Default tooltip position */
|
|
63
27
|
readonly POSITION: "bottom";
|
|
64
|
-
/** Default visual variant */
|
|
65
28
|
readonly VARIANT: "default";
|
|
66
|
-
/** Default visibility state */
|
|
67
29
|
readonly VISIBLE: false;
|
|
68
|
-
/** Default show delay in milliseconds */
|
|
69
30
|
readonly SHOW_DELAY: 300;
|
|
70
|
-
/** Default hide delay in milliseconds */
|
|
71
31
|
readonly HIDE_DELAY: 100;
|
|
72
|
-
/** Default offset from target in pixels */
|
|
73
32
|
readonly OFFSET: 8;
|
|
74
|
-
/** Default arrow size in pixels */
|
|
75
33
|
readonly ARROW_SIZE: 8;
|
|
76
|
-
/** Whether to show tooltip on focus by default */
|
|
77
34
|
readonly SHOW_ON_FOCUS: true;
|
|
78
|
-
/** Whether to show tooltip on hover by default */
|
|
79
35
|
readonly SHOW_ON_HOVER: true;
|
|
80
36
|
};
|
|
81
|
-
/**
|
|
82
|
-
* CSS class names used by the tooltip component
|
|
83
|
-
* @category Components
|
|
84
|
-
*/
|
|
85
37
|
export declare const TOOLTIP_CLASSES: {
|
|
86
|
-
/** Root element class */
|
|
87
38
|
readonly ROOT: "tooltip";
|
|
88
|
-
/** Reserved slot; the current tooltip renders content directly in its root. */
|
|
89
39
|
readonly CONTAINER: "tooltip__container";
|
|
90
|
-
/** Arrow element class */
|
|
91
40
|
readonly ARROW: "tooltip__arrow";
|
|
92
|
-
/** Reserved slot; the current tooltip renders content directly in its root. */
|
|
93
41
|
readonly CONTENT: "tooltip__content";
|
|
94
|
-
/** Visible state class */
|
|
95
42
|
readonly VISIBLE: "tooltip--visible";
|
|
96
|
-
/** Hidden state class */
|
|
97
43
|
readonly HIDDEN: "tooltip--hidden";
|
|
98
|
-
/** Default variant class */
|
|
99
44
|
readonly DEFAULT: "tooltip--default";
|
|
100
|
-
/** Rich variant class */
|
|
101
45
|
readonly RICH: "tooltip--rich";
|
|
102
|
-
/** Plain variant class */
|
|
103
46
|
readonly PLAIN: "tooltip--plain";
|
|
104
|
-
/** Position prefix - append position name (e.g. tooltip--top) */
|
|
105
47
|
readonly POSITION_PREFIX: "tooltip--";
|
|
106
48
|
};
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { TooltipConfig, TooltipComponent } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new Tooltip component
|
|
4
|
-
* @param {TooltipConfig} config - Tooltip configuration object
|
|
5
|
-
* @returns {TooltipComponent} Tooltip component instance
|
|
6
|
-
*/
|
|
7
2
|
declare const createTooltip: (config?: TooltipConfig) => TooltipComponent;
|
|
8
3
|
export default createTooltip;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tooltip positions
|
|
3
|
-
*/
|
|
4
1
|
export declare const TOOLTIP_POSITIONS: {
|
|
5
2
|
readonly TOP: "top";
|
|
6
3
|
readonly RIGHT: "right";
|
|
@@ -15,185 +12,48 @@ export declare const TOOLTIP_POSITIONS: {
|
|
|
15
12
|
readonly LEFT_START: "left-start";
|
|
16
13
|
readonly LEFT_END: "left-end";
|
|
17
14
|
};
|
|
18
|
-
/**
|
|
19
|
-
* Tooltip variants
|
|
20
|
-
*/
|
|
21
15
|
export declare const TOOLTIP_VARIANTS: {
|
|
22
16
|
readonly DEFAULT: "default";
|
|
23
17
|
readonly RICH: "rich";
|
|
24
18
|
readonly PLAIN: "plain";
|
|
25
19
|
};
|
|
26
|
-
/**
|
|
27
|
-
* Default values
|
|
28
|
-
*/
|
|
29
20
|
export declare const DEFAULT_SHOW_DELAY = 300;
|
|
30
21
|
export declare const DEFAULT_HIDE_DELAY = 100;
|
|
31
22
|
export declare const DEFAULT_OFFSET = 8;
|
|
32
23
|
export declare const DEFAULT_ARROW_SIZE = 8;
|
|
33
|
-
/**
|
|
34
|
-
* Available Tooltip variants
|
|
35
|
-
*/
|
|
36
24
|
export type TooltipVariant = 'default' | 'rich' | 'plain';
|
|
37
|
-
/**
|
|
38
|
-
* Available Tooltip positions
|
|
39
|
-
*/
|
|
40
25
|
export type TooltipPosition = typeof TOOLTIP_POSITIONS[keyof typeof TOOLTIP_POSITIONS];
|
|
41
|
-
/**
|
|
42
|
-
* Configuration interface for the Tooltip component
|
|
43
|
-
* @category Components
|
|
44
|
-
*/
|
|
45
26
|
export interface TooltipConfig {
|
|
46
|
-
/**
|
|
47
|
-
* Tooltip content text
|
|
48
|
-
* @example 'Delete item'
|
|
49
|
-
*/
|
|
50
27
|
text?: string;
|
|
51
|
-
/**
|
|
52
|
-
* HTML element that triggers the tooltip
|
|
53
|
-
* @example document.querySelector('#my-button')
|
|
54
|
-
*/
|
|
55
28
|
target?: HTMLElement;
|
|
56
|
-
/**
|
|
57
|
-
* Tooltip position relative to the target
|
|
58
|
-
* @default 'bottom'
|
|
59
|
-
*/
|
|
60
29
|
position?: TooltipPosition | string;
|
|
61
|
-
/**
|
|
62
|
-
* Tooltip variant that determines visual styling
|
|
63
|
-
* @default 'default'
|
|
64
|
-
*/
|
|
65
30
|
variant?: TooltipVariant | string;
|
|
66
|
-
/**
|
|
67
|
-
* Whether the tooltip is initially visible
|
|
68
|
-
* @default false
|
|
69
|
-
*/
|
|
70
31
|
visible?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Show delay in milliseconds
|
|
73
|
-
* @default 300
|
|
74
|
-
*/
|
|
75
32
|
showDelay?: number;
|
|
76
|
-
/**
|
|
77
|
-
* Hide delay in milliseconds
|
|
78
|
-
* @default 100
|
|
79
|
-
*/
|
|
80
33
|
hideDelay?: number;
|
|
81
|
-
/**
|
|
82
|
-
* Whether to show the tooltip on focus
|
|
83
|
-
* @default true
|
|
84
|
-
*/
|
|
85
34
|
showOnFocus?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Whether to show the tooltip on hover
|
|
88
|
-
* @default true
|
|
89
|
-
*/
|
|
90
35
|
showOnHover?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Additional CSS classes to add to the tooltip
|
|
93
|
-
*/
|
|
94
36
|
class?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Component prefix for class names
|
|
97
|
-
* @default 'mtrl'
|
|
98
|
-
*/
|
|
99
37
|
prefix?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Component name used in class generation
|
|
102
|
-
*/
|
|
103
38
|
componentName?: string;
|
|
104
|
-
/**
|
|
105
|
-
* Optional z-index for the tooltip
|
|
106
|
-
*/
|
|
107
39
|
zIndex?: number;
|
|
108
|
-
/**
|
|
109
|
-
* `"top"` renders the tooltip in place, after its target, and shows it in
|
|
110
|
-
* the browser's top layer as a `popover="manual"` element: above every
|
|
111
|
-
* z-index, outside any clipping ancestor, and in the target's tree (a shadow
|
|
112
|
-
* root's included), so it takes that tree's styles. It is positioned in
|
|
113
|
-
* viewport coordinates. A tooltip element already in a document when the
|
|
114
|
-
* target is set stays where its owner put it.
|
|
115
|
-
*
|
|
116
|
-
* Where the browser has no popover support, the tooltip behaves as without
|
|
117
|
-
* it. Unset, the tooltip is appended to `document.body`.
|
|
118
|
-
*/
|
|
119
40
|
layer?: "top";
|
|
120
41
|
}
|
|
121
|
-
/**
|
|
122
|
-
* Tooltip component interface
|
|
123
|
-
* @category Components
|
|
124
|
-
*/
|
|
125
42
|
export interface TooltipComponent {
|
|
126
|
-
/** The tooltip's DOM element */
|
|
127
43
|
element: HTMLElement;
|
|
128
|
-
/** The tooltip's target element */
|
|
129
44
|
target: HTMLElement | null;
|
|
130
|
-
/** API for managing component lifecycle */
|
|
131
45
|
lifecycle: {
|
|
132
|
-
/** Destroys the component and cleans up resources */
|
|
133
46
|
destroy: () => void;
|
|
134
47
|
};
|
|
135
|
-
/**
|
|
136
|
-
* Gets a class name with the component's prefix
|
|
137
|
-
* @param name - Base class name
|
|
138
|
-
* @returns Prefixed class name
|
|
139
|
-
*/
|
|
140
48
|
getClass: (name: string) => string;
|
|
141
|
-
/**
|
|
142
|
-
* Sets the tooltip text content
|
|
143
|
-
* @param text - New text content
|
|
144
|
-
* @returns The tooltip component for chaining
|
|
145
|
-
*/
|
|
146
49
|
setText: (text: string) => TooltipComponent;
|
|
147
|
-
/**
|
|
148
|
-
* Gets the tooltip text content
|
|
149
|
-
* @returns Tooltip text content
|
|
150
|
-
*/
|
|
151
50
|
getText: () => string;
|
|
152
|
-
/**
|
|
153
|
-
* Sets the tooltip position
|
|
154
|
-
* @param position - Position value
|
|
155
|
-
* @returns The tooltip component for chaining
|
|
156
|
-
*/
|
|
157
51
|
setPosition: (position: TooltipPosition) => TooltipComponent;
|
|
158
|
-
/**
|
|
159
|
-
* Gets the current tooltip position
|
|
160
|
-
* @returns Current position
|
|
161
|
-
*/
|
|
162
52
|
getPosition: () => TooltipPosition;
|
|
163
|
-
/**
|
|
164
|
-
* Sets the tooltip target element
|
|
165
|
-
* @param target - Element to attach tooltip to
|
|
166
|
-
* @returns The tooltip component for chaining
|
|
167
|
-
*/
|
|
168
53
|
setTarget: (target: HTMLElement) => TooltipComponent;
|
|
169
|
-
/**
|
|
170
|
-
* Shows the tooltip. Outside the overlays' open and close contract, by
|
|
171
|
-
* design: it is shown after the show delay and emits no event, so
|
|
172
|
-
* `isVisible()` is still false when `show()` returns. `show(true)` shows it
|
|
173
|
-
* at once.
|
|
174
|
-
* @param immediate - Whether to show immediately (bypassing delay)
|
|
175
|
-
* @returns The tooltip component for chaining
|
|
176
|
-
*/
|
|
177
54
|
show: (immediate?: boolean) => TooltipComponent;
|
|
178
|
-
/**
|
|
179
|
-
* Hides the tooltip, after the hide delay and without an event; `hide(true)`
|
|
180
|
-
* hides it at once.
|
|
181
|
-
* @param immediate - Whether to hide immediately (bypassing delay)
|
|
182
|
-
* @returns The tooltip component for chaining
|
|
183
|
-
*/
|
|
184
55
|
hide: (immediate?: boolean) => TooltipComponent;
|
|
185
|
-
/**
|
|
186
|
-
* Checks if the tooltip is currently visible
|
|
187
|
-
* @returns Whether the tooltip is visible
|
|
188
|
-
*/
|
|
189
56
|
isVisible: () => boolean;
|
|
190
|
-
/**
|
|
191
|
-
* Updates the tooltip's position relative to its target
|
|
192
|
-
* @returns The tooltip component for chaining
|
|
193
|
-
*/
|
|
194
57
|
updatePosition: () => TooltipComponent;
|
|
195
|
-
/**
|
|
196
|
-
* Destroys the tooltip component and cleans up resources
|
|
197
|
-
*/
|
|
198
58
|
destroy: () => void;
|
|
199
59
|
}
|
|
@@ -1,74 +1,33 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Top App Bar types
|
|
3
|
-
* @category Components
|
|
4
|
-
*/
|
|
5
1
|
export declare const TOP_APP_BAR_TYPES: {
|
|
6
|
-
/** Small height app bar */
|
|
7
2
|
readonly SMALL: "small";
|
|
8
|
-
/** Medium height app bar */
|
|
9
3
|
readonly MEDIUM: "medium";
|
|
10
|
-
/** Large height app bar */
|
|
11
4
|
readonly LARGE: "large";
|
|
12
|
-
/** Center-aligned app bar */
|
|
13
5
|
readonly CENTER: "center";
|
|
14
6
|
};
|
|
15
|
-
/**
|
|
16
|
-
* Top App Bar states
|
|
17
|
-
* @category Components
|
|
18
|
-
*/
|
|
19
7
|
export declare const TOP_APP_BAR_STATES: {
|
|
20
|
-
/** Default state */
|
|
21
8
|
readonly DEFAULT: "default";
|
|
22
|
-
/** Scrolled state */
|
|
23
9
|
readonly SCROLLED: "scrolled";
|
|
24
|
-
/** Fixed state */
|
|
25
10
|
readonly FIXED: "fixed";
|
|
26
11
|
};
|
|
27
|
-
/**
|
|
28
|
-
* Default configuration values for top app bar
|
|
29
|
-
* @category Components
|
|
30
|
-
*/
|
|
31
12
|
export declare const TOP_APP_BAR_DEFAULTS: {
|
|
32
|
-
/** Default HTML tag */
|
|
33
13
|
readonly TAG: "header";
|
|
34
|
-
/** Default bar type */
|
|
35
14
|
readonly TYPE: "small";
|
|
36
|
-
/** Whether to enable scrolling behavior */
|
|
37
15
|
readonly SCROLLABLE: true;
|
|
38
|
-
/** Whether to compress medium/large variants on scroll */
|
|
39
16
|
readonly COMPRESSIBLE: true;
|
|
40
|
-
/** Scroll threshold in pixels to trigger scrolled state */
|
|
41
17
|
readonly SCROLL_THRESHOLD: 4;
|
|
42
18
|
};
|
|
43
|
-
/**
|
|
44
|
-
* CSS class names used by the top app bar component
|
|
45
|
-
* @category Components
|
|
46
|
-
*/
|
|
47
19
|
export declare const TOP_APP_BAR_CLASSES: {
|
|
48
|
-
/** Root element class */
|
|
49
20
|
readonly ROOT: "top-app-bar";
|
|
50
|
-
/** Small variant class */
|
|
51
21
|
readonly SMALL: "top-app-bar--small";
|
|
52
|
-
/** Medium variant class */
|
|
53
22
|
readonly MEDIUM: "top-app-bar--medium";
|
|
54
|
-
/** Large variant class */
|
|
55
23
|
readonly LARGE: "top-app-bar--large";
|
|
56
|
-
/** Center-aligned variant class */
|
|
57
24
|
readonly CENTER: "top-app-bar--center";
|
|
58
|
-
/** Scrolled state class */
|
|
59
25
|
readonly SCROLLED: "top-app-bar--scrolled";
|
|
60
|
-
/** Fixed state class */
|
|
61
26
|
readonly FIXED: "top-app-bar--fixed";
|
|
62
|
-
/** Row container class */
|
|
63
27
|
readonly ROW: "top-app-bar__row";
|
|
64
|
-
/** Section container class */
|
|
65
28
|
readonly SECTION: "top-app-bar__section";
|
|
66
|
-
/** Leading section class */
|
|
67
29
|
readonly SECTION_LEADING: "top-app-bar__section--leading";
|
|
68
|
-
/** Headline section class */
|
|
69
30
|
readonly SECTION_HEADLINE: "top-app-bar__section--headline";
|
|
70
|
-
/** Trailing section class */
|
|
71
31
|
readonly SECTION_TRAILING: "top-app-bar__section--trailing";
|
|
72
|
-
/** Title element class */
|
|
73
32
|
readonly TITLE: "top-app-bar__title";
|
|
74
33
|
};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module components/top-app-bar
|
|
3
|
-
* @description Top app bar component for application headers
|
|
4
|
-
*/
|
|
5
1
|
import { createTopAppBar } from "./top-app-bar.js";
|
|
6
2
|
export { TOP_APP_BAR_TYPES, TOP_APP_BAR_STATES, TOP_APP_BAR_DEFAULTS, TOP_APP_BAR_CLASSES } from "./constants.js";
|
|
7
3
|
export default createTopAppBar;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module components/top-app-bar
|
|
3
|
-
* @description Top app bar implementation
|
|
4
|
-
*/
|
|
5
1
|
import type { TopAppBarComponent, TopAppBarConfig } from "./types.js";
|
|
6
2
|
export type { TopAppBarComponent };
|
|
7
|
-
/**
|
|
8
|
-
* Creates a top app bar component
|
|
9
|
-
*
|
|
10
|
-
* @param {TopAppBarConfig} config - Configuration options
|
|
11
|
-
* @returns {TopAppBarComponent} Top app bar component instance
|
|
12
|
-
*/
|
|
13
3
|
export declare const createTopAppBar: (config?: TopAppBarConfig) => TopAppBarComponent;
|
|
@@ -1,119 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module components/top-app-bar
|
|
3
|
-
* @description Type definitions for Top App Bar component
|
|
4
|
-
*/
|
|
5
1
|
import { ElementComponent } from "../../core/compose/index.js";
|
|
6
|
-
/**
|
|
7
|
-
* Top App Bar types
|
|
8
|
-
* @category Components
|
|
9
|
-
*/
|
|
10
2
|
export type TopAppBarType = 'small' | 'medium' | 'large' | 'center';
|
|
11
|
-
/**
|
|
12
|
-
* Configuration options for Top App Bar component
|
|
13
|
-
* @category Components
|
|
14
|
-
*/
|
|
15
3
|
export interface TopAppBarConfig {
|
|
16
|
-
/**
|
|
17
|
-
* Element to use for the container
|
|
18
|
-
* @default 'header'
|
|
19
|
-
*/
|
|
20
4
|
tag?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Type of top app bar to display
|
|
23
|
-
* @default 'small'
|
|
24
|
-
*/
|
|
25
5
|
type?: TopAppBarType;
|
|
26
|
-
/**
|
|
27
|
-
* Title text to display in the app bar
|
|
28
|
-
*/
|
|
29
6
|
title?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Whether to enable scrolling behavior
|
|
32
|
-
* @default true
|
|
33
|
-
*/
|
|
34
7
|
scrollable?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Whether to compress medium/large variants to small on scroll
|
|
37
|
-
* @default true
|
|
38
|
-
*/
|
|
39
8
|
compressible?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Scroll threshold in pixels to trigger the scrolled state
|
|
42
|
-
* @default 4
|
|
43
|
-
*/
|
|
44
9
|
scrollThreshold?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Additional CSS classes to apply
|
|
47
|
-
*/
|
|
48
10
|
class?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Called with the new scrolled state when scrolling changes the bar.
|
|
51
|
-
* There is no matching event, so this stays a callback rather than a listener.
|
|
52
|
-
*/
|
|
53
11
|
onScroll?: (scrolled: boolean) => void;
|
|
54
|
-
/**
|
|
55
|
-
* Component prefix for class names
|
|
56
|
-
* @default 'mtrl'
|
|
57
|
-
*/
|
|
58
12
|
prefix?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Component name for class generation
|
|
61
|
-
*/
|
|
62
13
|
componentName?: string;
|
|
63
14
|
}
|
|
64
|
-
/**
|
|
65
|
-
* Top App Bar component interface
|
|
66
|
-
* @category Components
|
|
67
|
-
*/
|
|
68
15
|
export interface TopAppBarComponent extends ElementComponent {
|
|
69
|
-
/**
|
|
70
|
-
* Sets the title of the top app bar
|
|
71
|
-
* @param {string} title - Title text
|
|
72
|
-
* @returns {TopAppBarComponent} TopAppBarComponent instance for chaining
|
|
73
|
-
*/
|
|
74
16
|
setTitle(title: string): this;
|
|
75
|
-
/**
|
|
76
|
-
* Gets the current title
|
|
77
|
-
* @returns {string} Current title text
|
|
78
|
-
*/
|
|
79
17
|
getTitle: () => string;
|
|
80
|
-
/**
|
|
81
|
-
* Adds a leading navigation icon or element
|
|
82
|
-
* @param {HTMLElement} element - Element to add to the leading section
|
|
83
|
-
* @returns {TopAppBarComponent} TopAppBarComponent instance for chaining
|
|
84
|
-
*/
|
|
85
18
|
addLeadingElement(element: HTMLElement): this;
|
|
86
|
-
/**
|
|
87
|
-
* Adds a trailing action icon or element
|
|
88
|
-
* @param {HTMLElement} element - Element to add to the trailing section
|
|
89
|
-
* @returns {TopAppBarComponent} TopAppBarComponent instance for chaining
|
|
90
|
-
*/
|
|
91
19
|
addTrailingElement(element: HTMLElement): this;
|
|
92
|
-
/**
|
|
93
|
-
* Changes the top app bar type
|
|
94
|
-
* @param {TopAppBarType} type - New app bar type
|
|
95
|
-
* @returns {TopAppBarComponent} TopAppBarComponent instance for chaining
|
|
96
|
-
*/
|
|
97
20
|
setType(type: TopAppBarType): this;
|
|
98
|
-
/**
|
|
99
|
-
* Manually sets the scrolled state
|
|
100
|
-
* @param {boolean} scrolled - Whether to show the scrolled state
|
|
101
|
-
* @returns {TopAppBarComponent} TopAppBarComponent instance for chaining
|
|
102
|
-
*/
|
|
103
21
|
setScrollState(scrolled: boolean): this;
|
|
104
|
-
/**
|
|
105
|
-
* Gets the headline element
|
|
106
|
-
* @returns {HTMLElement} Headline element
|
|
107
|
-
*/
|
|
108
22
|
getHeadlineElement: () => HTMLElement;
|
|
109
|
-
/**
|
|
110
|
-
* Gets the leading container element
|
|
111
|
-
* @returns {HTMLElement} Leading container element
|
|
112
|
-
*/
|
|
113
23
|
getLeadingContainer: () => HTMLElement;
|
|
114
|
-
/**
|
|
115
|
-
* Gets the trailing container element
|
|
116
|
-
* @returns {HTMLElement} Trailing container element
|
|
117
|
-
*/
|
|
118
24
|
getTrailingContainer: () => HTMLElement;
|
|
119
25
|
}
|
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Easing function for smooth animations (Material Design standard)
|
|
3
|
-
* Implements cubic-bezier(0.4, 0, 0.2, 1)
|
|
4
|
-
*
|
|
5
|
-
* @param t Progress value between 0 and 1
|
|
6
|
-
* @returns Eased progress value between 0 and 1
|
|
7
|
-
*/
|
|
8
1
|
export declare const easeOutCubic: (t: number) => number;
|
|
9
|
-
/**
|
|
10
|
-
* Standard Material Design animation durations
|
|
11
|
-
*/
|
|
12
2
|
export declare const ANIMATION_DURATIONS: {
|
|
13
3
|
SHORT: number;
|
|
14
4
|
MEDIUM: number;
|
|
15
5
|
LONG: number;
|
|
16
6
|
EXTRA_LONG: number;
|
|
17
7
|
};
|
|
18
|
-
/**
|
|
19
|
-
* Common easing functions
|
|
20
|
-
*/
|
|
21
8
|
export declare const EASING_FUNCTIONS: {
|
|
22
9
|
linear: (t: number) => number;
|
|
23
10
|
easeIn: (t: number) => number;
|
|
@@ -1,57 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* @param y - Y coordinate
|
|
20
|
-
* @param width - Rectangle width
|
|
21
|
-
* @param height - Rectangle height
|
|
22
|
-
* @param radius - Corner radius
|
|
23
|
-
* @param fillStyle - Fill color/style
|
|
24
|
-
*/
|
|
25
|
-
export declare const fillRoundedRect: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number | [number, number, number, number], fillStyle?: string | CanvasGradient | CanvasPattern) => void;
|
|
26
|
-
/**
|
|
27
|
-
* Creates a clipping region with rounded corners
|
|
28
|
-
* @param ctx - Canvas 2D rendering context
|
|
29
|
-
* @param x - X coordinate
|
|
30
|
-
* @param y - Y coordinate
|
|
31
|
-
* @param width - Rectangle width
|
|
32
|
-
* @param height - Rectangle height
|
|
33
|
-
* @param radius - Corner radius
|
|
34
|
-
* @returns Function to restore the canvas state
|
|
35
|
-
*/
|
|
36
|
-
export declare const clipRoundedRect: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number | [number, number, number, number]) => (() => void);
|
|
37
|
-
/**
|
|
38
|
-
* Draws a rounded rectangle with different left and right radii
|
|
39
|
-
* Useful for track segments that connect to other elements
|
|
40
|
-
* @param ctx - Canvas 2D rendering context
|
|
41
|
-
* @param x - X coordinate
|
|
42
|
-
* @param y - Y coordinate
|
|
43
|
-
* @param width - Rectangle width
|
|
44
|
-
* @param height - Rectangle height
|
|
45
|
-
* @param leftRadius - Left side radius
|
|
46
|
-
* @param rightRadius - Right side radius
|
|
47
|
-
* @param fillStyle - Fill color/style
|
|
48
|
-
*/
|
|
1
|
+
export declare const createRoundedRectPath: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number | [
|
|
2
|
+
number,
|
|
3
|
+
number,
|
|
4
|
+
number,
|
|
5
|
+
number
|
|
6
|
+
]) => void;
|
|
7
|
+
export declare const fillRoundedRect: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number | [
|
|
8
|
+
number,
|
|
9
|
+
number,
|
|
10
|
+
number,
|
|
11
|
+
number
|
|
12
|
+
], fillStyle?: string | CanvasGradient | CanvasPattern) => void;
|
|
13
|
+
export declare const clipRoundedRect: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number | [
|
|
14
|
+
number,
|
|
15
|
+
number,
|
|
16
|
+
number,
|
|
17
|
+
number
|
|
18
|
+
]) => (() => void);
|
|
49
19
|
export declare const fillRoundedRectLR: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, leftRadius: number, rightRadius: number, fillStyle?: string | CanvasGradient | CanvasPattern) => void;
|
|
50
|
-
/**
|
|
51
|
-
* Clears a canvas with optional background color
|
|
52
|
-
* @param ctx - Canvas 2D rendering context
|
|
53
|
-
* @param width - Canvas width
|
|
54
|
-
* @param height - Canvas height
|
|
55
|
-
* @param backgroundColor - Optional background color
|
|
56
|
-
*/
|
|
57
20
|
export declare const clearCanvas: (ctx: CanvasRenderingContext2D, width: number, height: number, backgroundColor?: string) => void;
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Canvas resize utilities
|
|
3
|
-
* Provides utilities for observing and handling canvas resize events
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Observes resize events on an element and triggers a callback
|
|
7
|
-
* Watches the specified element and debounces resize events
|
|
8
|
-
*
|
|
9
|
-
* @param element - The element to observe for size changes
|
|
10
|
-
* @param canvas - The canvas element (for context)
|
|
11
|
-
* @param onResize - Callback to execute when the element resizes
|
|
12
|
-
* @returns Cleanup function to stop observing
|
|
13
|
-
*/
|
|
14
1
|
export declare const observeCanvasResize: (element: HTMLElement, _canvas: HTMLCanvasElement, onResize: () => void) => (() => void);
|