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,105 +1,23 @@
|
|
|
1
1
|
import { ElementComponent } from "../component.js";
|
|
2
|
-
/**
|
|
3
|
-
* Input configuration options
|
|
4
|
-
*/
|
|
5
2
|
export interface InputConfig {
|
|
6
|
-
/**
|
|
7
|
-
* Input name attribute
|
|
8
|
-
*/
|
|
9
3
|
name?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Initial checked state
|
|
12
|
-
*/
|
|
13
4
|
checked?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Whether input is required
|
|
16
|
-
*/
|
|
17
5
|
required?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Whether input is disabled
|
|
20
|
-
*/
|
|
21
6
|
disabled?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Input value attribute
|
|
24
|
-
*/
|
|
25
7
|
value?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Accessibility label text
|
|
28
|
-
*/
|
|
29
8
|
label?: string | Node;
|
|
30
|
-
/**
|
|
31
|
-
* Alternative accessibility label
|
|
32
|
-
*/
|
|
33
9
|
ariaLabel?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Component name for classes
|
|
36
|
-
*/
|
|
37
10
|
componentName?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Whether Enter toggles the input as Space does
|
|
40
|
-
* @default true
|
|
41
|
-
*/
|
|
42
11
|
enterToggles?: boolean;
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* What withInput adds to a component.
|
|
46
|
-
*
|
|
47
|
-
* Declared apart from InputComponent because the enhancer returns
|
|
48
|
-
* `C & InputFeature`, and C -- the component being enhanced -- already carries
|
|
49
|
-
* the element half. Naming the whole of InputComponent on the way out is what
|
|
50
|
-
* narrowed `addClass` back to a bare ElementComponent. It has to be its own
|
|
51
|
-
* interface rather than a Pick of InputComponent: an indexed access binds
|
|
52
|
-
* `this` to the type being indexed, so the methods below would report
|
|
53
|
-
* InputComponent and the polymorphism would be lost at the step that needs it.
|
|
54
|
-
*/
|
|
55
13
|
export interface InputFeature {
|
|
56
|
-
/**
|
|
57
|
-
* Input element
|
|
58
|
-
*/
|
|
59
14
|
input: HTMLInputElement;
|
|
60
|
-
/**
|
|
61
|
-
* Gets the checked state: the `value` a `change` carries
|
|
62
|
-
* @returns Whether the input is checked
|
|
63
|
-
*/
|
|
64
15
|
getValue: () => boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Checks or unchecks the input. Silent: only the user's change emits `change`
|
|
67
|
-
* @param value - Whether the input is checked
|
|
68
|
-
* @returns Component instance for chaining
|
|
69
|
-
*/
|
|
70
16
|
setValue(value: boolean): this;
|
|
71
|
-
/**
|
|
72
|
-
* Gets the input's `value` attribute: the string a form submits while checked
|
|
73
|
-
* @returns The input's string value
|
|
74
|
-
*/
|
|
75
17
|
getValueAttribute: () => string;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the input's `value` attribute. Silent
|
|
78
|
-
* @param value - The string a form submits while checked
|
|
79
|
-
* @returns Component instance for chaining
|
|
80
|
-
*/
|
|
81
18
|
setValueAttribute(value: string): this;
|
|
82
|
-
/**
|
|
83
|
-
* Event emission method if available
|
|
84
|
-
*/
|
|
85
19
|
emit?(event: string, data: unknown): this;
|
|
86
20
|
}
|
|
87
|
-
/**
|
|
88
|
-
* Component with input element and related methods
|
|
89
|
-
*/
|
|
90
21
|
export interface InputComponent extends ElementComponent, InputFeature {
|
|
91
22
|
}
|
|
92
|
-
/**
|
|
93
|
-
* Creates an input element and adds it to a component
|
|
94
|
-
* Handles both input creation and event emission for state changes
|
|
95
|
-
*
|
|
96
|
-
* `change` carries `{ checked, value, valueAttribute, nativeEvent }`: `value` is
|
|
97
|
-
* the checked boolean, as the checkbox and the switch report it, and
|
|
98
|
-
* `valueAttribute` the input's string value. The methods match: `getValue()`
|
|
99
|
-
* and `setValue()` work on the checked boolean, `getValueAttribute()` and
|
|
100
|
-
* `setValueAttribute()` on the string. Both setters are silent.
|
|
101
|
-
*
|
|
102
|
-
* @param config - Input configuration
|
|
103
|
-
* @returns Function that enhances a component with input functionality
|
|
104
|
-
*/
|
|
105
23
|
export declare const withInput: <T extends InputConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & InputFeature;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { BaseComponent, ElementComponent } from "../component.js";
|
|
2
|
-
/**
|
|
3
|
-
* Component managers that can be passed to lifecycle
|
|
4
|
-
*/
|
|
5
2
|
export interface ComponentManagers {
|
|
6
3
|
events?: {
|
|
7
4
|
destroy: () => void;
|
|
@@ -14,48 +11,15 @@ export interface ComponentManagers {
|
|
|
14
11
|
};
|
|
15
12
|
[key: string]: unknown;
|
|
16
13
|
}
|
|
17
|
-
/**
|
|
18
|
-
* Lifecycle methods interface
|
|
19
|
-
*/
|
|
20
14
|
export interface Lifecycle {
|
|
21
|
-
/**
|
|
22
|
-
* Registers a handler for mount event
|
|
23
|
-
* @param handler - Function to call when component is mounted
|
|
24
|
-
* @returns Unsubscribe function
|
|
25
|
-
*/
|
|
26
15
|
onMount: (handler: () => void) => () => void;
|
|
27
|
-
/**
|
|
28
|
-
* Registers a handler for unmount event
|
|
29
|
-
* @param handler - Function to call when component is unmounted
|
|
30
|
-
* @returns Unsubscribe function
|
|
31
|
-
*/
|
|
32
16
|
onUnmount: (handler: () => void) => () => void;
|
|
33
|
-
/**
|
|
34
|
-
* Mounts the component
|
|
35
|
-
*/
|
|
36
17
|
mount: () => void;
|
|
37
|
-
/**
|
|
38
|
-
* Unmounts the component
|
|
39
|
-
*/
|
|
40
18
|
unmount: () => void;
|
|
41
|
-
/**
|
|
42
|
-
* Checks if component is mounted
|
|
43
|
-
*/
|
|
44
19
|
isMounted: () => boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Destroys the component
|
|
47
|
-
*/
|
|
48
20
|
destroy: () => void;
|
|
49
21
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Component with lifecycle capabilities
|
|
52
|
-
*/
|
|
53
22
|
export interface LifecycleComponent extends BaseComponent {
|
|
54
23
|
lifecycle: Lifecycle;
|
|
55
24
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Adds lifecycle management to a component
|
|
58
|
-
*
|
|
59
|
-
* @returns Function that enhances a component with lifecycle management
|
|
60
|
-
*/
|
|
61
25
|
export declare const withLifecycle: () => <T extends BaseComponent & Partial<Pick<ElementComponent, "element" | "destroy">>>(component: T) => T & LifecycleComponent;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { BaseComponent, ElementComponent } from "../component.js";
|
|
2
|
-
/**
|
|
3
|
-
* Available position values
|
|
4
|
-
*/
|
|
5
2
|
export declare enum POSITIONS {
|
|
6
3
|
LEFT = "left",
|
|
7
4
|
RIGHT = "right",
|
|
@@ -11,40 +8,16 @@ export declare enum POSITIONS {
|
|
|
11
8
|
END = "end",
|
|
12
9
|
CENTER = "center"
|
|
13
10
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Configuration for position feature
|
|
16
|
-
*/
|
|
17
11
|
export interface PositionConfig {
|
|
18
12
|
position?: string;
|
|
19
13
|
prefix?: string;
|
|
20
14
|
componentName?: string;
|
|
21
15
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Position manager interface
|
|
24
|
-
*/
|
|
25
16
|
export interface PositionManager {
|
|
26
|
-
/**
|
|
27
|
-
* Sets the component's position
|
|
28
|
-
* @param newPosition - New position value
|
|
29
|
-
* @returns Position manager for chaining
|
|
30
|
-
*/
|
|
31
17
|
setPosition: (newPosition: string) => PositionManager;
|
|
32
|
-
/**
|
|
33
|
-
* Gets the current position
|
|
34
|
-
* @returns Current position
|
|
35
|
-
*/
|
|
36
18
|
getPosition: () => string;
|
|
37
19
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Component with position capabilities
|
|
40
|
-
*/
|
|
41
20
|
export interface PositionComponent extends BaseComponent {
|
|
42
21
|
position: PositionManager;
|
|
43
22
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Adds positioning functionality to a component
|
|
46
|
-
*
|
|
47
|
-
* @param config - Configuration object containing position information
|
|
48
|
-
* @returns Function that enhances a component with position capabilities
|
|
49
|
-
*/
|
|
50
23
|
export declare const withPosition: <T extends PositionConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C & PositionComponent;
|
|
@@ -1,47 +1,18 @@
|
|
|
1
1
|
import { BaseComponent, ElementComponent } from "../component.js";
|
|
2
2
|
import { LifecycleComponent } from "./lifecycle.js";
|
|
3
|
-
/**
|
|
4
|
-
* Ripple configuration interface
|
|
5
|
-
*/
|
|
6
3
|
export interface RippleConfig {
|
|
7
|
-
/**
|
|
8
|
-
* How long, in milliseconds, a released wave lingers before it is removed
|
|
9
|
-
*/
|
|
10
4
|
duration?: number;
|
|
11
5
|
}
|
|
12
|
-
/**
|
|
13
|
-
* Ripple controller interface
|
|
14
|
-
*/
|
|
15
6
|
export interface RippleController {
|
|
16
|
-
/**
|
|
17
|
-
* Mounts ripple effect to an element
|
|
18
|
-
* @param element - Target element
|
|
19
|
-
*/
|
|
20
7
|
mount: (element: HTMLElement) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Unmounts ripple effect from an element
|
|
23
|
-
* @param element - Target element
|
|
24
|
-
*/
|
|
25
8
|
unmount: (element: HTMLElement) => void;
|
|
26
9
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Configuration for ripple feature
|
|
29
|
-
*/
|
|
30
10
|
export interface RippleFeatureConfig {
|
|
31
11
|
ripple?: boolean;
|
|
32
12
|
rippleConfig?: RippleConfig;
|
|
33
13
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Component with ripple capabilities
|
|
36
|
-
*/
|
|
37
14
|
export interface RippleComponent extends BaseComponent {
|
|
38
15
|
ripple: RippleController;
|
|
39
16
|
}
|
|
40
17
|
export declare const createRipple: (config?: RippleConfig) => RippleController;
|
|
41
|
-
/**
|
|
42
|
-
* Adds ripple effect functionality to a component
|
|
43
|
-
*
|
|
44
|
-
* @param config - Configuration object
|
|
45
|
-
* @returns Function that enhances a component with ripple effect
|
|
46
|
-
*/
|
|
47
18
|
export declare const withRipple: <T extends RippleFeatureConfig & object>(config: T) => <C extends ElementComponent & Partial<LifecycleComponent>>(component: C) => C & RippleComponent;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { ElementComponent } from "../component.js";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration for size feature
|
|
4
|
-
*/
|
|
5
2
|
export interface SizeConfig {
|
|
6
3
|
size?: string;
|
|
7
4
|
prefix?: string;
|
|
8
5
|
componentName?: string;
|
|
9
6
|
}
|
|
10
|
-
/**
|
|
11
|
-
* Adds a size class to a component
|
|
12
|
-
*
|
|
13
|
-
* @param config - Configuration object containing size information
|
|
14
|
-
* @returns Function that enhances a component with the size class
|
|
15
|
-
*/
|
|
16
7
|
export declare const withSize: <T extends SizeConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { ElementComponent } from "../component.js";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration for style feature
|
|
4
|
-
*/
|
|
5
2
|
export interface StyleConfig {
|
|
6
3
|
variant?: string;
|
|
7
4
|
size?: string;
|
|
8
5
|
}
|
|
9
|
-
/**
|
|
10
|
-
* Adds style classes to a component based on configuration
|
|
11
|
-
*
|
|
12
|
-
* @param config - Configuration object containing style information
|
|
13
|
-
* @returns Function that enhances a component with style classes
|
|
14
|
-
*/
|
|
15
6
|
export declare const withStyle: <T extends StyleConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C;
|
|
@@ -1,61 +1,16 @@
|
|
|
1
1
|
import { BaseComponent, ElementComponent } from "../component.js";
|
|
2
|
-
/**
|
|
3
|
-
* Text manager interface
|
|
4
|
-
*/
|
|
5
2
|
export interface TextManager {
|
|
6
|
-
/**
|
|
7
|
-
* Sets text content
|
|
8
|
-
* @param text - Text content to set
|
|
9
|
-
* @returns TextManager instance for chaining
|
|
10
|
-
*/
|
|
11
|
-
/** Text, or a node placed inside the text element (the web components pass a `<slot>`). */
|
|
12
3
|
setText: (text: string | Node) => TextManager;
|
|
13
|
-
/**
|
|
14
|
-
* Gets current text content
|
|
15
|
-
* @returns Current text
|
|
16
|
-
*/
|
|
17
4
|
getText: () => string;
|
|
18
|
-
/**
|
|
19
|
-
* Gets text element
|
|
20
|
-
* @returns Text element or null if not created
|
|
21
|
-
*/
|
|
22
5
|
getElement: () => HTMLElement | null;
|
|
23
6
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Configuration for text feature
|
|
26
|
-
*/
|
|
27
7
|
export interface TextConfig {
|
|
28
|
-
/**
|
|
29
|
-
* Initial text content
|
|
30
|
-
*/
|
|
31
|
-
/** Text, or a node placed inside the text element. */
|
|
32
8
|
text?: string | Node;
|
|
33
|
-
/**
|
|
34
|
-
* CSS class prefix
|
|
35
|
-
*/
|
|
36
9
|
prefix?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Component name for class generation
|
|
39
|
-
*/
|
|
40
10
|
componentName?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Element to insert text before (optional)
|
|
43
|
-
*/
|
|
44
11
|
beforeElement?: HTMLElement;
|
|
45
12
|
}
|
|
46
|
-
/**
|
|
47
|
-
* Component with text capabilities
|
|
48
|
-
*/
|
|
49
13
|
export interface TextComponent extends BaseComponent {
|
|
50
|
-
/**
|
|
51
|
-
* Text manager
|
|
52
|
-
*/
|
|
53
14
|
text: TextManager;
|
|
54
15
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Adds text management to a component
|
|
57
|
-
*
|
|
58
|
-
* @param config - Configuration object containing text information
|
|
59
|
-
* @returns Function that enhances a component with text capabilities
|
|
60
|
-
*/
|
|
61
16
|
export declare const withText: <T extends TextConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C & TextComponent;
|
|
@@ -1,114 +1,26 @@
|
|
|
1
1
|
import { ElementComponent } from "../component.js";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration for text input feature
|
|
4
|
-
*/
|
|
5
2
|
export interface TextInputConfig {
|
|
6
|
-
/**
|
|
7
|
-
* Input type (text, password, etc.)
|
|
8
|
-
*/
|
|
9
3
|
type?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Whether to use textarea instead of input
|
|
12
|
-
*/
|
|
13
4
|
multiline?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Input name attribute
|
|
16
|
-
*/
|
|
17
5
|
name?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether input is required
|
|
20
|
-
*/
|
|
21
6
|
required?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether input is disabled
|
|
24
|
-
*/
|
|
25
7
|
disabled?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Maximum allowed length
|
|
28
|
-
*/
|
|
29
8
|
maxLength?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Input validation pattern
|
|
32
|
-
*/
|
|
33
9
|
pattern?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Autocomplete setting
|
|
36
|
-
*/
|
|
37
10
|
autocomplete?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Initial input value
|
|
40
|
-
*/
|
|
41
11
|
value?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Placeholder attribute
|
|
44
|
-
*/
|
|
45
12
|
placeholder?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Whether input is readonly
|
|
48
|
-
*/
|
|
49
13
|
readonly?: boolean;
|
|
50
14
|
}
|
|
51
|
-
/**
|
|
52
|
-
* What withTextInput adds to a component.
|
|
53
|
-
*
|
|
54
|
-
* Declared apart from TextInputComponent because the enhancer returns
|
|
55
|
-
* `C & TextInputFeature`, and C -- the component being enhanced -- already
|
|
56
|
-
* carries the element half. Naming the whole of TextInputComponent on the way
|
|
57
|
-
* out is what narrowed `addClass` back to a bare ElementComponent. It has to be
|
|
58
|
-
* its own interface rather than a Pick of TextInputComponent: an indexed access
|
|
59
|
-
* binds `this` to the type being indexed, so the methods below would report
|
|
60
|
-
* TextInputComponent and the polymorphism would be lost at the step that needs
|
|
61
|
-
* it.
|
|
62
|
-
*/
|
|
63
15
|
export interface TextInputFeature {
|
|
64
|
-
/**
|
|
65
|
-
* Input element
|
|
66
|
-
*/
|
|
67
16
|
input: HTMLInputElement | HTMLTextAreaElement;
|
|
68
|
-
/**
|
|
69
|
-
* Sets the input value
|
|
70
|
-
* @param value - Value to set
|
|
71
|
-
* @returns Component instance for chaining
|
|
72
|
-
*/
|
|
73
17
|
setValue(value: string): this;
|
|
74
|
-
/**
|
|
75
|
-
* Gets the current input value
|
|
76
|
-
* @returns Current value
|
|
77
|
-
*/
|
|
78
18
|
getValue: () => string;
|
|
79
|
-
/**
|
|
80
|
-
* Sets an attribute on the input
|
|
81
|
-
* @param name - Attribute name
|
|
82
|
-
* @param value - Attribute value
|
|
83
|
-
* @returns Component instance for chaining
|
|
84
|
-
*/
|
|
85
19
|
setAttribute(name: string, value: string): this;
|
|
86
|
-
/**
|
|
87
|
-
* Gets an attribute from the input
|
|
88
|
-
* @param name - Attribute name
|
|
89
|
-
* @returns Attribute value
|
|
90
|
-
*/
|
|
91
20
|
getAttribute(name: string): string | null;
|
|
92
|
-
/**
|
|
93
|
-
* Removes an attribute from the input
|
|
94
|
-
* @param name - Attribute name
|
|
95
|
-
* @returns Component instance for chaining
|
|
96
|
-
*/
|
|
97
21
|
removeAttribute(name: string): this;
|
|
98
|
-
/**
|
|
99
|
-
* Event emission method if available
|
|
100
|
-
*/
|
|
101
22
|
emit?(event: string, data: unknown): this;
|
|
102
23
|
}
|
|
103
|
-
/**
|
|
104
|
-
* Component with text input element and related methods
|
|
105
|
-
*/
|
|
106
24
|
export interface TextInputComponent extends ElementComponent, TextInputFeature {
|
|
107
25
|
}
|
|
108
|
-
/**
|
|
109
|
-
* Enhances a component with text input functionality
|
|
110
|
-
*
|
|
111
|
-
* @param config - Text input configuration
|
|
112
|
-
* @returns Function that enhances a component with text input capabilities
|
|
113
|
-
*/
|
|
114
26
|
export declare const withTextInput: <T extends TextInputConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & TextInputFeature;
|
|
@@ -1,60 +1,16 @@
|
|
|
1
1
|
import { BaseComponent, ElementComponent } from "../component.js";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration for text label feature
|
|
4
|
-
*/
|
|
5
2
|
export interface TextLabelConfig {
|
|
6
|
-
/**
|
|
7
|
-
* Label text
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* The label: text, or a node placed inside the label element (the
|
|
11
|
-
* web components pass a `<slot>` so the page's content is the label).
|
|
12
|
-
*/
|
|
13
3
|
label?: string | Node;
|
|
14
|
-
/**
|
|
15
|
-
* Label position ('start' or 'end')
|
|
16
|
-
*/
|
|
17
4
|
labelPosition?: "start" | "end";
|
|
18
|
-
/**
|
|
19
|
-
* CSS class prefix
|
|
20
|
-
*/
|
|
21
5
|
prefix?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Component name for class generation
|
|
24
|
-
*/
|
|
25
6
|
componentName?: string;
|
|
26
7
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Label manager interface
|
|
29
|
-
*/
|
|
30
8
|
export interface LabelManager {
|
|
31
|
-
/**
|
|
32
|
-
* Sets the label text
|
|
33
|
-
* @param text - Text to set
|
|
34
|
-
* @returns LabelManager instance for chaining
|
|
35
|
-
*/
|
|
36
9
|
setText: (text: string) => LabelManager;
|
|
37
|
-
/**
|
|
38
|
-
* Gets the current label text
|
|
39
|
-
* @returns Current text
|
|
40
|
-
*/
|
|
41
10
|
getText: () => string;
|
|
42
|
-
/**
|
|
43
|
-
* Gets the label element
|
|
44
|
-
* @returns Label element
|
|
45
|
-
*/
|
|
46
11
|
getElement: () => HTMLElement;
|
|
47
12
|
}
|
|
48
|
-
/**
|
|
49
|
-
* Component with label capabilities
|
|
50
|
-
*/
|
|
51
13
|
export interface LabelComponent extends BaseComponent {
|
|
52
14
|
label: LabelManager;
|
|
53
15
|
}
|
|
54
|
-
/**
|
|
55
|
-
* Adds a text label to a component
|
|
56
|
-
*
|
|
57
|
-
* @param config - Configuration object containing label information
|
|
58
|
-
* @returns Function that enhances a component with a label
|
|
59
|
-
*/
|
|
60
16
|
export declare const withTextLabel: <T extends TextLabelConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & LabelComponent;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module core/compose/features
|
|
3
|
-
* @description Adds throttled event handling capabilities to components
|
|
4
|
-
*/
|
|
5
1
|
import { BaseComponent, ElementComponent } from "../component.js";
|
|
6
|
-
/**
|
|
7
|
-
* Configuration for throttled event handlers
|
|
8
|
-
*/
|
|
9
2
|
export interface ThrottleConfig {
|
|
10
|
-
/**
|
|
11
|
-
* Event handlers with throttle settings
|
|
12
|
-
*/
|
|
13
3
|
throttledEvents?: Record<string, {
|
|
14
4
|
handler: (event: Event) => void;
|
|
15
5
|
wait: number;
|
|
@@ -19,56 +9,12 @@ export interface ThrottleConfig {
|
|
|
19
9
|
};
|
|
20
10
|
}>;
|
|
21
11
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Component with throttled event capabilities
|
|
24
|
-
*/
|
|
25
12
|
export interface ThrottleComponent extends BaseComponent {
|
|
26
|
-
/**
|
|
27
|
-
* Adds a throttled event listener
|
|
28
|
-
* @param event - Event name
|
|
29
|
-
* @param handler - Event handler
|
|
30
|
-
* @param wait - Throttle interval in milliseconds
|
|
31
|
-
* @param options - Throttle options
|
|
32
|
-
* @returns ThrottleComponent for chaining
|
|
33
|
-
*/
|
|
34
13
|
addThrottledEvent: (event: string, handler: (event: Event) => void, wait: number, options?: {
|
|
35
14
|
leading?: boolean;
|
|
36
15
|
trailing?: boolean;
|
|
37
16
|
}) => ThrottleComponent;
|
|
38
|
-
/**
|
|
39
|
-
* Removes a throttled event listener
|
|
40
|
-
* @param event - Event name
|
|
41
|
-
* @returns ThrottleComponent for chaining
|
|
42
|
-
*/
|
|
43
17
|
removeThrottledEvent: (event: string) => ThrottleComponent;
|
|
44
18
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Adds throttled event handling capabilities to a component
|
|
47
|
-
*
|
|
48
|
-
* @param config - Configuration object containing throttled event settings
|
|
49
|
-
* @returns Function that enhances a component with throttled event handling
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```ts
|
|
53
|
-
* // Add throttled events to a component
|
|
54
|
-
* const component = pipe(
|
|
55
|
-
* createBase,
|
|
56
|
-
* withElement(...),
|
|
57
|
-
* withThrottle({
|
|
58
|
-
* throttledEvents: {
|
|
59
|
-
* 'scroll': {
|
|
60
|
-
* handler: (e) => updateScrollPosition(e),
|
|
61
|
-
* wait: 100
|
|
62
|
-
* },
|
|
63
|
-
* 'mousemove': {
|
|
64
|
-
* handler: handleMouseMove,
|
|
65
|
-
* wait: 50,
|
|
66
|
-
* options: { leading: true, trailing: false }
|
|
67
|
-
* }
|
|
68
|
-
* }
|
|
69
|
-
* })
|
|
70
|
-
* )(config);
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
19
|
export declare const withThrottle: <T extends ThrottleConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & ThrottleComponent;
|
|
74
20
|
export default withThrottle;
|
|
@@ -1,46 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module core/compose/features
|
|
3
|
-
*/
|
|
4
1
|
import { BaseComponent, ElementComponent } from "../component.js";
|
|
5
|
-
/**
|
|
6
|
-
* Configuration for track feature
|
|
7
|
-
*/
|
|
8
2
|
export interface TrackConfig {
|
|
9
|
-
/**
|
|
10
|
-
* CSS class prefix
|
|
11
|
-
*/
|
|
12
3
|
prefix: string;
|
|
13
|
-
/**
|
|
14
|
-
* Component name for class generation
|
|
15
|
-
*/
|
|
16
4
|
componentName: string;
|
|
17
|
-
/**
|
|
18
|
-
* Custom icon HTML or 'none'
|
|
19
|
-
*/
|
|
20
5
|
icon?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Icon HTML shown in the unselected handle, which then grows to 24dp: M3's
|
|
23
|
-
* "icon on selected and unselected switch" configuration.
|
|
24
|
-
*/
|
|
25
6
|
unselectedIcon?: string;
|
|
26
7
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Component with track and thumb elements
|
|
29
|
-
*/
|
|
30
8
|
export interface TrackComponent extends BaseComponent {
|
|
31
|
-
/**
|
|
32
|
-
* Track element
|
|
33
|
-
*/
|
|
34
9
|
track: HTMLElement;
|
|
35
|
-
/**
|
|
36
|
-
* Thumb element
|
|
37
|
-
*/
|
|
38
10
|
thumb: HTMLElement;
|
|
39
11
|
}
|
|
40
|
-
/**
|
|
41
|
-
* Adds track and thumb elements to a component
|
|
42
|
-
*
|
|
43
|
-
* @param config - Track configuration
|
|
44
|
-
* @returns Function that enhances a component with track and thumb elements
|
|
45
|
-
*/
|
|
46
12
|
export declare const withTrack: <T extends TrackConfig>(config: T) => <C extends ElementComponent>(component: C) => C & TrackComponent;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { ElementComponent } from "../component.js";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration for variant feature
|
|
4
|
-
*/
|
|
5
2
|
export interface VariantConfig {
|
|
6
3
|
variant?: string;
|
|
7
4
|
prefix?: string;
|
|
8
5
|
componentName?: string;
|
|
9
6
|
}
|
|
10
|
-
/**
|
|
11
|
-
* Adds a variant class to a component
|
|
12
|
-
*
|
|
13
|
-
* @param config - Configuration object containing variant information
|
|
14
|
-
* @returns Function that enhances a component with the variant class
|
|
15
|
-
*/
|
|
16
7
|
export declare const withVariant: <T extends VariantConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C;
|