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,54 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `<m-timepicker>`: the time picker as a form-associated custom element.
|
|
3
|
-
*
|
|
4
|
-
* The factory renders no field of its own, only its modal dialog, so the
|
|
5
|
-
* element shows nothing until it opens: an app opens it from its own control
|
|
6
|
-
* with `show()` or the `open` attribute (a `<label for>` pointing at it opens
|
|
7
|
-
* it too), and shows the value where it likes. The dialog is a native
|
|
8
|
-
* `<dialog>` in the element's shadow root shown with `showModal()`: the page
|
|
9
|
-
* outside is inert, and focus goes back to whatever opened it.
|
|
10
|
-
*
|
|
11
|
-
* The value is a 24-hour time, `HH:MM`, or `HH:MM:SS` when `step` is under a
|
|
12
|
-
* minute, as on `<input type=time>`; empty is `""`. The dial starts on the
|
|
13
|
-
* value, or on the current time when there is none.
|
|
14
|
-
*
|
|
15
|
-
* The dial edits a draft: `input` is dispatched with `{ value, draftValue }`
|
|
16
|
-
* as it moves, and OK commits it, dispatching `change` with `{ value }` when
|
|
17
|
-
* the time differs and `confirm` with `{ value }` on every OK. Cancel, Escape
|
|
18
|
-
* and the backdrop discard the draft. `open`
|
|
19
|
-
* reflects the dialog's state, as on `<dialog open>`; `open` and `close` are
|
|
20
|
-
* dispatched as it opens and closes (not when the attribute is what changed).
|
|
21
|
-
*
|
|
22
|
-
* `step` is in seconds, as on `<input type=time>`: under a minute it shows
|
|
23
|
-
* seconds and is their step (`secondStep`); from a minute up it is the
|
|
24
|
-
* minute step (`minuteStep`), rounded to whole minutes, which is the finest
|
|
25
|
-
* the dial has. `show-seconds` shows seconds whatever the step, so a 5- or
|
|
26
|
-
* 15-minute step can go with them; the value is then `HH:MM:SS`. `min` and
|
|
27
|
-
* `max` are the factory's `minTime` and `maxTime`. Those four and `name` have
|
|
28
|
-
* no setter: changing one recreates the picker, keeping the value. `disabled` is the factory's: it does not open. The
|
|
29
|
-
* element reports `required` itself, as `valueMissing`.
|
|
30
|
-
*
|
|
31
|
-
* Parts: `time-picker`, `dialog`, `title`, `selectors`, `hours`, `minutes`, `period`, `dial`,
|
|
32
|
-
* `dial-handle`, `actions`, `cancel`, `confirm`, among others.
|
|
33
|
-
*
|
|
34
|
-
* @module elements
|
|
35
|
-
*/
|
|
36
1
|
import { type TimePickerComponent, type TimePickerEvents } from "../components/timepicker/types.js";
|
|
37
2
|
import { type DefineOptions, type ElementHost, type ElementInstance } from "./define.js";
|
|
38
|
-
/** The time picker as the element sees it: its value can be empty. */
|
|
39
3
|
export interface TimepickerElementComponent {
|
|
40
4
|
element: HTMLElement;
|
|
41
5
|
picker: TimePickerComponent;
|
|
42
|
-
/** The committed time, or "" before one is set or confirmed. */
|
|
43
6
|
getValue: () => string;
|
|
44
7
|
setValue: (value: string) => void;
|
|
45
|
-
/** Opens the dialog, unless the picker is disabled. */
|
|
46
8
|
show: () => void;
|
|
47
|
-
/** Closes the dialog without committing. */
|
|
48
9
|
close: () => void;
|
|
49
10
|
isOpen: () => boolean;
|
|
50
11
|
required: boolean;
|
|
51
|
-
/** Subscribes to the time picker's events; `change` and `input` carry the element's possibly empty value. */
|
|
52
12
|
on: <K extends keyof TimePickerEvents>(event: K, handler: TimePickerEvents[K]) => void;
|
|
53
13
|
off: <K extends keyof TimePickerEvents>(event: K, handler: TimePickerEvents[K]) => void;
|
|
54
14
|
destroy: () => void;
|
|
@@ -122,7 +82,10 @@ declare const timepickerSpec: {
|
|
|
122
82
|
};
|
|
123
83
|
};
|
|
124
84
|
model: "value";
|
|
125
|
-
methods: readonly [
|
|
85
|
+
methods: readonly [
|
|
86
|
+
"show",
|
|
87
|
+
"close"
|
|
88
|
+
];
|
|
126
89
|
events: {
|
|
127
90
|
change: {
|
|
128
91
|
detail: (payload: unknown) => {
|
|
@@ -161,12 +124,9 @@ declare const timepickerSpec: {
|
|
|
161
124
|
};
|
|
162
125
|
export declare const timepickerElement: import("./define.js").ElementDefinition<TimepickerElementComponent>;
|
|
163
126
|
export type TimepickerSpec = typeof timepickerSpec;
|
|
164
|
-
/** `<m-timepicker>` as a ref or a query returns it. */
|
|
165
127
|
export type TimepickerElement = ElementInstance<TimepickerSpec, TimepickerElementComponent>;
|
|
166
|
-
/** Registers `<m-timepicker>` (or `<prefix-timepicker>`). */
|
|
167
128
|
export declare const defineTimepicker: (options?: DefineOptions) => string;
|
|
168
129
|
declare global {
|
|
169
|
-
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
170
130
|
interface HTMLElementTagNameMap {
|
|
171
131
|
"m-timepicker": TimepickerElement;
|
|
172
132
|
}
|
|
@@ -1,28 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `<m-toolbar>`: M3 Expressive's docked and floating toolbars as a container
|
|
3
|
-
* with slots.
|
|
4
|
-
*
|
|
5
|
-
* Children are the items (`<m-icon-button>`, `<m-button>`, a text field),
|
|
6
|
-
* inside the element with the `toolbar` role: one tab stop, walked with the
|
|
7
|
-
* arrow keys, Home and End. Each item's host takes the tab stop and delegates
|
|
8
|
-
* focus to its control. `slot="fab"` takes a FAB, beside the toolbar and
|
|
9
|
-
* outside its tab stop. `slot="overflow"` takes an `<m-menu>`: the toolbar
|
|
10
|
-
* adds a "more" button and makes it the menu's anchor.
|
|
11
|
-
*
|
|
12
|
-
* `variant`, `orientation`, `placement`, `arrangement`, `fab-position` and
|
|
13
|
-
* `scroll-behavior` are the factory's options; `color` and `flat` (no
|
|
14
|
-
* elevation) change in place. `show()` and `hide()` move the toolbar on and
|
|
15
|
-
* off screen, and `show` and `hide` are dispatched when it does.
|
|
16
|
-
*
|
|
17
|
-
* Parts: `toolbar`, `bar`, `fab`, `overflow`.
|
|
18
|
-
*
|
|
19
|
-
* @module elements
|
|
20
|
-
*/
|
|
21
1
|
import type { ToolbarComponent } from "../components/toolbar/types.js";
|
|
22
2
|
import { type Config, type DefineOptions, type ElementInstance } from "./define.js";
|
|
23
3
|
declare const toolbarSpec: {
|
|
24
4
|
name: string;
|
|
25
|
-
slots: readonly [
|
|
5
|
+
slots: readonly [
|
|
6
|
+
"fab",
|
|
7
|
+
"overflow"
|
|
8
|
+
];
|
|
26
9
|
create: (config: Config) => ToolbarComponent;
|
|
27
10
|
styles: string[];
|
|
28
11
|
hostStyles: string;
|
|
@@ -73,7 +56,10 @@ declare const toolbarSpec: {
|
|
|
73
56
|
update: (c: ToolbarComponent, v: import("./define.js").AttributeValue) => void;
|
|
74
57
|
};
|
|
75
58
|
};
|
|
76
|
-
methods: readonly [
|
|
59
|
+
methods: readonly [
|
|
60
|
+
"show",
|
|
61
|
+
"hide"
|
|
62
|
+
];
|
|
77
63
|
events: {
|
|
78
64
|
show: {
|
|
79
65
|
detail: () => null;
|
|
@@ -90,12 +76,9 @@ declare const toolbarSpec: {
|
|
|
90
76
|
};
|
|
91
77
|
export declare const toolbarElement: import("./define.js").ElementDefinition<ToolbarComponent>;
|
|
92
78
|
export type ToolbarSpec = typeof toolbarSpec;
|
|
93
|
-
/** `<m-toolbar>` as a ref or a query returns it. */
|
|
94
79
|
export type ToolbarElement = ElementInstance<ToolbarSpec, ToolbarComponent>;
|
|
95
|
-
/** Registers `<m-toolbar>` (or `<prefix-toolbar>`). */
|
|
96
80
|
export declare const defineToolbar: (options?: DefineOptions) => string;
|
|
97
81
|
declare global {
|
|
98
|
-
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
99
82
|
interface HTMLElementTagNameMap {
|
|
100
83
|
"m-toolbar": ToolbarElement;
|
|
101
84
|
}
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `<m-tooltip>`: a tooltip for another element, in the top layer.
|
|
3
|
-
*
|
|
4
|
-
* The target is the element whose id is the `for` attribute, looked up in
|
|
5
|
-
* the tooltip's own root and then the document, or the element given to the
|
|
6
|
-
* `target` property, which wins over `for`. The text is the `text` attribute,
|
|
7
|
-
* or the element's text when there is none; the factory writes a string, so
|
|
8
|
-
* the text is read rather than slotted. The tooltip shows on hover and focus
|
|
9
|
-
* as the factory does, and `show()`/`hide()` drive it from script;
|
|
10
|
-
* `no-show-on-hover` and `no-show-on-focus` turn either trigger off.
|
|
11
|
-
*
|
|
12
|
-
* The surface stays in the element's shadow root, with its styles, and opens
|
|
13
|
-
* in the top layer (`layer: "top"`). An id reference cannot cross into that
|
|
14
|
-
* root, so the target is described by the host: the target's
|
|
15
|
-
* `aria-describedby` names the host's id (one is given when it has none), and
|
|
16
|
-
* the host carries the text as its `aria-label`, which a description reads
|
|
17
|
-
* whether the tooltip shows or not. The host is `aria-hidden`, so the text is
|
|
18
|
-
* not read a second time as page content. A target in a
|
|
19
|
-
* shadow root below the host's tree is described through
|
|
20
|
-
* `ariaDescribedByElements`; one in a tree above it, which can reference
|
|
21
|
-
* neither, gets the text as its `aria-description`.
|
|
22
|
-
*
|
|
23
|
-
* Parts: `tooltip`, `arrow`.
|
|
24
|
-
*
|
|
25
|
-
* @module elements
|
|
26
|
-
*/
|
|
27
1
|
import type { TooltipComponent } from "../components/tooltip/types.js";
|
|
28
2
|
import { type DefineOptions, type ElementInstance } from "./define.js";
|
|
29
3
|
declare const tooltipSpec: {
|
|
@@ -73,7 +47,10 @@ declare const tooltipSpec: {
|
|
|
73
47
|
set: (c: TooltipComponent, v: unknown) => void;
|
|
74
48
|
};
|
|
75
49
|
};
|
|
76
|
-
methods: readonly [
|
|
50
|
+
methods: readonly [
|
|
51
|
+
"show",
|
|
52
|
+
"hide"
|
|
53
|
+
];
|
|
77
54
|
config: (host: HTMLElement) => {
|
|
78
55
|
text?: undefined;
|
|
79
56
|
} | {
|
|
@@ -84,12 +61,9 @@ declare const tooltipSpec: {
|
|
|
84
61
|
};
|
|
85
62
|
export declare const tooltipElement: import("./define.js").ElementDefinition<TooltipComponent>;
|
|
86
63
|
export type TooltipSpec = typeof tooltipSpec;
|
|
87
|
-
/** `<m-tooltip>` as a ref or a query returns it. */
|
|
88
64
|
export type TooltipElement = ElementInstance<TooltipSpec, TooltipComponent>;
|
|
89
|
-
/** Registers `<m-tooltip>` (or `<prefix-tooltip>`). */
|
|
90
65
|
export declare const defineTooltip: (options?: DefineOptions) => string;
|
|
91
66
|
declare global {
|
|
92
|
-
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
93
67
|
interface HTMLElementTagNameMap {
|
|
94
68
|
"m-tooltip": TooltipElement;
|
|
95
69
|
}
|
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `<m-top-app-bar>`: the top app bar as a container with slots.
|
|
3
|
-
*
|
|
4
|
-
* Children are the headline, and `headline` its text when there are none;
|
|
5
|
-
* `slot="leading"` takes the navigation icon button and `slot="trailing"` the
|
|
6
|
-
* action icon buttons. `type` is `small`, `center`, `medium` or `large`, as
|
|
7
|
-
* the factory names them.
|
|
8
|
-
*
|
|
9
|
-
* The bar shows its scrolled state once the window scrolls past
|
|
10
|
-
* `scroll-threshold`; `no-scroll` turns that off and `no-compress` keeps a
|
|
11
|
-
* medium or large bar from compressing. `scroll-target` names the id of a
|
|
12
|
-
* scrolling element to follow instead of the window; any other scroller can
|
|
13
|
-
* drive the bar through `setScrollState(scrolled)`.
|
|
14
|
-
*
|
|
15
|
-
* Parts: `top-app-bar`, `leading`, `headline`, `trailing`.
|
|
16
|
-
*
|
|
17
|
-
* @module elements
|
|
18
|
-
*/
|
|
19
1
|
import type { TopAppBarComponent } from "../components/top-app-bar/top-app-bar.js";
|
|
20
2
|
import { type Config, type DefineOptions, type ElementInstance } from "./define.js";
|
|
21
3
|
declare const topAppBarSpec: {
|
|
22
4
|
name: string;
|
|
23
|
-
slots: readonly [
|
|
5
|
+
slots: readonly [
|
|
6
|
+
"leading",
|
|
7
|
+
"trailing"
|
|
8
|
+
];
|
|
24
9
|
create: (config: Config) => TopAppBarComponent;
|
|
25
10
|
styles: string[];
|
|
26
11
|
hostStyles: string;
|
|
@@ -53,18 +38,17 @@ declare const topAppBarSpec: {
|
|
|
53
38
|
update: (c: TopAppBarComponent, v: import("./define.js").AttributeValue) => void;
|
|
54
39
|
};
|
|
55
40
|
};
|
|
56
|
-
methods: readonly [
|
|
41
|
+
methods: readonly [
|
|
42
|
+
"setScrollState"
|
|
43
|
+
];
|
|
57
44
|
config: (host: HTMLElement) => Config;
|
|
58
45
|
setup: (host: import("./define.js").ElementHost<TopAppBarComponent>, component: TopAppBarComponent) => () => void;
|
|
59
46
|
};
|
|
60
47
|
export declare const topAppBarElement: import("./define.js").ElementDefinition<TopAppBarComponent>;
|
|
61
48
|
export type TopAppBarSpec = typeof topAppBarSpec;
|
|
62
|
-
/** `<m-top-app-bar>` as a ref or a query returns it. */
|
|
63
49
|
export type TopAppBarElement = ElementInstance<TopAppBarSpec, TopAppBarComponent>;
|
|
64
|
-
/** Registers `<m-top-app-bar>` (or `<prefix-top-app-bar>`). */
|
|
65
50
|
export declare const defineTopAppBar: (options?: DefineOptions) => string;
|
|
66
51
|
declare global {
|
|
67
|
-
/** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
|
|
68
52
|
interface HTMLElementTagNameMap {
|
|
69
53
|
"m-top-app-bar": TopAppBarElement;
|
|
70
54
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Main mtrl library exports
|
|
3
|
-
*
|
|
4
|
-
* The root is the components and the few helpers an app configures them with.
|
|
5
|
-
* The rest of core is at its subpath (`material/core/compose`, `material/core/dom`, ...):
|
|
6
|
-
* material 3.0.0 removed it from the root, and scripts/fixtures/root-exports.md
|
|
7
|
-
* says where each name went. The list is pinned by scripts/fixtures/root-exports.json:
|
|
8
|
-
* `bun run root-exports:update`.
|
|
9
|
-
*
|
|
10
|
-
* @packageDocumentation
|
|
11
|
-
*/
|
|
12
1
|
export * from "./components/index.js";
|
|
13
2
|
export { setComponentDefaults, getComponentDefaults, setGlobalDefaults, clearGlobalDefaults, schemeToTokens, THEME_ROLES, configureHTML } from "./core/index.js";
|
|
14
3
|
export type { ThemeRole, SchemeRoles, SchemeToTokensOptions, ThemeTokens, ComponentConfigMap, HTMLPolicy, HTMLInput, TrustedHTMLLike } from "./core/index.js";
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "material",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.7",
|
|
4
4
|
"description": "Material Design 3 components for the web: plain JavaScript, web components, and React, Vue, Svelte and Solid components. TypeScript, zero dependencies.",
|
|
5
5
|
"author": "floor",
|
|
6
6
|
"license": "MIT",
|
package/dist/react/create.d.ts
CHANGED
|
@@ -1,44 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React components over the elements.
|
|
3
|
-
*
|
|
4
|
-
* `createComponent` renders the element's tag and keeps React's model:
|
|
5
|
-
* attributes are passed as attributes, so server-rendered markup carries them;
|
|
6
|
-
* live-state properties (`checked`, `value`) are set on the element after each
|
|
7
|
-
* render, and are controlled when given, like React's own inputs; the
|
|
8
|
-
* attribute they shadow is the `default*` prop. Events are typed `on*`
|
|
9
|
-
* callbacks. The element is registered on first mount, never at import.
|
|
10
|
-
*
|
|
11
|
-
* Works the same on React 18 and 19: the component sets properties and
|
|
12
|
-
* attaches listeners itself rather than relying on React 19's custom element
|
|
13
|
-
* support.
|
|
14
|
-
*
|
|
15
|
-
* @module react
|
|
16
|
-
*/
|
|
17
1
|
import * as React from "react";
|
|
18
2
|
import type { DefineOptions, ElementEvents, ElementProps, ElementSlotProp } from "../elements/index.js";
|
|
19
3
|
import { type ComponentSpec, type DeclarationSpec, type DefaultProps, type FormProps, type Pascal, type RetiredEvents } from "../elements/adapter.js";
|
|
20
4
|
export { configure } from "../elements/adapter.js";
|
|
21
5
|
export type { DefaultProps, FormProps } from "../elements/adapter.js";
|
|
22
|
-
/** `change` → `onChange`, typed with the element's event. */
|
|
23
6
|
export type EventProps<S> = {
|
|
24
7
|
[K in keyof ElementEvents<S> & string as `on${Pascal<K>}`]?: (event: ElementEvents<S>[K]) => void;
|
|
25
8
|
};
|
|
26
9
|
type BaseProps<S> = ElementProps<S> & DefaultProps<S> & EventProps<S>;
|
|
27
|
-
/**
|
|
28
|
-
* Each named slot as a prop taking nodes (`actions={<Button />}`), rendered
|
|
29
|
-
* into a `<span slot="…">` the adapter owns; a text prop of the same name
|
|
30
|
-
* (`headline`) takes its text or nodes.
|
|
31
|
-
*/
|
|
32
10
|
type SlotProps<S> = {
|
|
33
11
|
[K in ElementSlotProp<S>]?: React.ReactNode;
|
|
34
12
|
};
|
|
35
13
|
type OwnProps<S> = Omit<BaseProps<S>, ElementSlotProp<S>> & SlotProps<S>;
|
|
36
|
-
/**
|
|
37
|
-
* `@types/react` 18's `HTMLAttributes` has no `popover` through 18.3.31.
|
|
38
|
-
* `enterKeyHint` joins that interface in 18.3.31; earlier 18 types it on inputs.
|
|
39
|
-
* `nonce` is absent on 18.0.0 and present by 18.0.28.
|
|
40
|
-
* A release that already declares a key keeps its own type.
|
|
41
|
-
*/
|
|
42
14
|
type ReactHostGaps = {
|
|
43
15
|
popover?: "" | "auto" | "manual" | "hint";
|
|
44
16
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
@@ -47,31 +19,17 @@ type ReactHostGaps = {
|
|
|
47
19
|
type Missing<Base, Extra> = {
|
|
48
20
|
[K in Exclude<keyof Extra, keyof Base>]?: K extends keyof Extra ? Extra[K] : never;
|
|
49
21
|
};
|
|
50
|
-
/** `HTMLAttributes` for the host, plus globals a supported React 18 type omits. */
|
|
51
22
|
export type ReactHostAttributes<E extends HTMLElement = HTMLElement> = React.HTMLAttributes<E> & Missing<React.HTMLAttributes<E>, ReactHostGaps>;
|
|
52
|
-
/**
|
|
53
|
-
* Props of a generated component: the element's own, plus any HTML attribute for the host.
|
|
54
|
-
* `OwnProps` includes the element's `on*` handlers, so those names keep the component's event.
|
|
55
|
-
*/
|
|
56
23
|
export type ComponentProps<S> = OwnProps<S> & FormProps<S> & Omit<ReactHostAttributes, keyof OwnProps<S> | RetiredProps<S>> & {
|
|
57
24
|
[K in RetiredProps<S>]?: `${K} was removed in material 3.0.0: use onChange`;
|
|
58
25
|
} & {
|
|
59
26
|
children?: React.ReactNode;
|
|
60
27
|
};
|
|
61
|
-
/** The handler props of events material 3.0.0 removed (`onToggle` on the icon button): refused, see `RetiredEvents`. */
|
|
62
28
|
type RetiredProps<S> = `on${Pascal<RetiredEvents<S>>}`;
|
|
63
|
-
/** A generated component; named so declarations stay short. */
|
|
64
29
|
export type MComponent<S, E extends HTMLElement> = React.ForwardRefExoticComponent<React.PropsWithoutRef<ComponentProps<S>> & React.RefAttributes<E>>;
|
|
65
|
-
/**
|
|
66
|
-
* The React component for an element.
|
|
67
|
-
* @param spec - The element's spec (`switchElement.spec`)
|
|
68
|
-
* @param define - Registers the element and anything it needs (`defineSwitch`)
|
|
69
|
-
*/
|
|
70
30
|
export declare const createComponent: <S, E extends HTMLElement>(spec: ComponentSpec, define: (options?: DefineOptions) => string, displayName: string) => MComponent<S, E>;
|
|
71
31
|
export type DeclarationProps<A> = A & Omit<ReactHostAttributes, keyof A> & {
|
|
72
32
|
children?: React.ReactNode;
|
|
73
33
|
};
|
|
74
|
-
/** A generated declaration component. */
|
|
75
34
|
export type MDeclaration<A> = React.ForwardRefExoticComponent<React.PropsWithoutRef<DeclarationProps<A>> & React.RefAttributes<HTMLElement>>;
|
|
76
|
-
/** The React component for a declaration child; its parent registers the tag. */
|
|
77
35
|
export declare const createDeclaration: <A>(spec: DeclarationSpec, displayName: string) => MDeclaration<A>;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* React components for the elements. Each renders its `<m-*>` tag, registers
|
|
3
|
-
* it on first mount and loads its CSS.
|
|
4
|
-
*
|
|
5
|
-
* @module react
|
|
6
|
-
*/
|
|
7
1
|
export { configure } from "./create.js";
|
|
8
2
|
export type { ComponentProps, DeclarationProps, EventProps, DefaultProps, FormProps, MComponent, MDeclaration } from "./create.js";
|
|
9
3
|
export { Button } from "./button.js";
|
package/dist/react/jsx.d.ts
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types the bare `m-*` tags in React's JSX, for the elements used directly
|
|
3
|
-
* rather than through the components. Types only, opt in once: `import type {} from "material/react/jsx";`
|
|
4
|
-
*
|
|
5
|
-
* @module react/jsx
|
|
6
|
-
*/
|
|
7
1
|
import type * as React from "react";
|
|
8
2
|
import type { ElementEvents, ElementMarkup } from "../elements/index.js";
|
|
9
3
|
import type { ReactHostAttributes } from "./create.js";
|
|
10
|
-
/**
|
|
11
|
-
* The element's events as React 19 listens to them on a custom element: an
|
|
12
|
-
* `on<event>` prop in lower case gets the element's own event
|
|
13
|
-
* (`onchange={(e) => e.detail.value}`). `onChange` stays React's synthetic
|
|
14
|
-
* event, which has no `detail`; React 18 sets no event props on a custom element.
|
|
15
|
-
*/
|
|
16
4
|
type Events<S> = {
|
|
17
5
|
[K in keyof ElementEvents<S> & string as `on${Lowercase<K>}`]?: (event: ElementEvents<S>[K]) => void;
|
|
18
6
|
};
|
|
19
|
-
/** A tag's props: its attributes as markup writes them, its events, and any HTML attribute. */
|
|
20
7
|
type Tag<S, E extends HTMLElement> = Omit<React.DetailedHTMLProps<ReactHostAttributes<E>, E>, keyof ElementMarkup<S> | keyof Events<S>> & ElementMarkup<S> & Events<S>;
|
|
21
8
|
declare module "react" {
|
|
22
9
|
namespace JSX {
|
package/dist/solid/create.d.ts
CHANGED
|
@@ -1,48 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Solid components over the elements.
|
|
3
|
-
*
|
|
4
|
-
* `createComponent` renders the element's tag with `Dynamic`. Attributes are
|
|
5
|
-
* props, rendered as attributes so server markup carries them; live-state
|
|
6
|
-
* properties (`checked`, `value`) are props the component writes to the
|
|
7
|
-
* element whenever they change; the attribute a live property shadows is its
|
|
8
|
-
* `default*` prop. Element events are `on<Event>` callbacks. Props stay
|
|
9
|
-
* reactive: every host attribute is a getter over the component's props. The
|
|
10
|
-
* element registers on mount, never at import.
|
|
11
|
-
*
|
|
12
|
-
* Written without JSX, so it compiles with the rest of the library.
|
|
13
|
-
*
|
|
14
|
-
* When `material/ssr/solid` is loaded, a server render prepends the declarative
|
|
15
|
-
* shadow template. The client renders nothing in its place: the HTML parser
|
|
16
|
-
* has already moved that template into the shadow root. Without the import
|
|
17
|
-
* the markup is unchanged.
|
|
18
|
-
*
|
|
19
|
-
* @module solid
|
|
20
|
-
*/
|
|
21
1
|
import { type Component, type JSX } from "solid-js";
|
|
22
2
|
import type { DefineOptions, ElementEvents, ElementProps, ElementSlotProp } from "../elements/index.js";
|
|
23
3
|
import { type ComponentSpec, type DeclarationSpec, type DefaultProps, type FormProps, type Pascal, type RetiredEvents } from "../elements/adapter.js";
|
|
24
4
|
export { configure } from "../elements/adapter.js";
|
|
25
5
|
export type { DefaultProps, FormProps } from "../elements/adapter.js";
|
|
26
|
-
/** `change` → `onChange`, typed with the element's event. */
|
|
27
6
|
export type EventProps<S> = {
|
|
28
7
|
[K in keyof ElementEvents<S> & string as `on${Pascal<K>}`]?: (event: ElementEvents<S>[K]) => void;
|
|
29
8
|
};
|
|
30
9
|
type BaseProps<S> = ElementProps<S> & DefaultProps<S> & FormProps<S> & EventProps<S>;
|
|
31
|
-
/**
|
|
32
|
-
* Each named slot as a prop taking JSX (`actions={<Button />}`), rendered
|
|
33
|
-
* into a `<span slot="…">` the adapter owns; a text prop of the same name
|
|
34
|
-
* (`headline`) takes its text or JSX.
|
|
35
|
-
*/
|
|
36
10
|
type SlotProps<S> = {
|
|
37
11
|
[K in ElementSlotProp<S>]?: JSX.Element;
|
|
38
12
|
};
|
|
39
13
|
type OwnProps<S> = Omit<BaseProps<S>, ElementSlotProp<S>> & SlotProps<S>;
|
|
40
|
-
/**
|
|
41
|
-
* Globals solid-js 1.8 leaves off `JSX.HTMLAttributes`: `popover` until 1.8.15,
|
|
42
|
-
* `enterkeyhint` (typed on input and textarea only), and `nonce` (script and style
|
|
43
|
-
* only; on `DOMAttributes` from 1.9). `enterKeyHint` is not a Solid prop name.
|
|
44
|
-
* A release that already declares a key keeps its own type, including `popover`'s boolean.
|
|
45
|
-
*/
|
|
46
14
|
type SolidHostGaps = {
|
|
47
15
|
popover?: "" | "auto" | "manual" | "hint";
|
|
48
16
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
@@ -51,31 +19,15 @@ type SolidHostGaps = {
|
|
|
51
19
|
type Missing<Base, Extra> = {
|
|
52
20
|
[K in Exclude<keyof Extra, keyof Base>]?: K extends keyof Extra ? Extra[K] : never;
|
|
53
21
|
};
|
|
54
|
-
/** `JSX.HTMLAttributes` for the host, plus globals a supported Solid 1.8 type omits. */
|
|
55
22
|
export type SolidHostAttributes<E extends HTMLElement = HTMLElement> = JSX.HTMLAttributes<E> & Missing<JSX.HTMLAttributes<E>, SolidHostGaps>;
|
|
56
|
-
/**
|
|
57
|
-
* Props of a generated component: the element's own, plus any HTML attribute for the host.
|
|
58
|
-
* `OwnProps` includes the element's `on*` handlers, so those names keep the component's event.
|
|
59
|
-
*/
|
|
60
23
|
export type SolidProps<S, E extends HTMLElement> = OwnProps<S> & Omit<SolidHostAttributes, keyof OwnProps<S> | "ref" | RetiredProps<S>> & {
|
|
61
24
|
[K in RetiredProps<S>]?: `${K} was removed in material 3.0.0: use onChange`;
|
|
62
25
|
} & {
|
|
63
26
|
ref?: E | ((element: E) => void);
|
|
64
27
|
};
|
|
65
|
-
/** The handler props of events material 3.0.0 removed (`onToggle` on the icon button): refused, see `RetiredEvents`. */
|
|
66
28
|
type RetiredProps<S> = `on${Pascal<RetiredEvents<S>>}`;
|
|
67
29
|
export type DeclarationProps<A> = A & Omit<SolidHostAttributes, keyof A>;
|
|
68
|
-
/** A generated component. */
|
|
69
30
|
export type MComponent<S, E extends HTMLElement> = Component<SolidProps<S, E>>;
|
|
70
|
-
/** A generated declaration component. */
|
|
71
31
|
export type MDeclaration<A> = Component<DeclarationProps<A>>;
|
|
72
|
-
/**
|
|
73
|
-
* The Solid component for an element.
|
|
74
|
-
* @param spec - The element's spec (`switchElement.spec`)
|
|
75
|
-
* @param define - Registers the element and anything it needs (`defineSwitch`)
|
|
76
|
-
* @param _name - Unused: Solid components have no display name. Kept so every
|
|
77
|
-
* adapter's generated list has the same shape.
|
|
78
|
-
*/
|
|
79
32
|
export declare const createComponent: <S, E extends HTMLElement>(spec: ComponentSpec, define: (options?: DefineOptions) => string, _name?: string) => MComponent<S, E>;
|
|
80
|
-
/** The Solid component for a declaration child; its parent registers the tag. */
|
|
81
33
|
export declare const createDeclaration: <A>(spec: DeclarationSpec, _name?: string) => MDeclaration<A>;
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Solid components for the elements. Each renders its `<m-*>` tag, registers
|
|
3
|
-
* it on mount and loads its CSS.
|
|
4
|
-
*
|
|
5
|
-
* @module solid
|
|
6
|
-
*/
|
|
7
1
|
export { configure } from "./create.js";
|
|
8
2
|
export type { SolidProps, DeclarationProps, EventProps, DefaultProps, FormProps, MComponent, MDeclaration } from "./create.js";
|
|
9
3
|
export { Button } from "./button.js";
|
package/dist/solid/jsx.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types the bare `m-*` tags in Solid's JSX, for the elements used directly
|
|
3
|
-
* rather than through the components. Types only, opt in once: `import type {} from "material/solid/jsx";`
|
|
4
|
-
*
|
|
5
|
-
* @module solid/jsx
|
|
6
|
-
*/
|
|
7
1
|
import type { ElementEvents, ElementMarkup, ElementProperties } from "../elements/index.js";
|
|
8
2
|
import type { SolidHostAttributes } from "./create.js";
|
|
9
|
-
/** A tag's props: its attributes as markup writes them, and any HTML attribute. */
|
|
10
3
|
type Tag<S, E extends HTMLElement> = Omit<SolidHostAttributes<E>, keyof ElementMarkup<S>> & ElementMarkup<S>;
|
|
11
4
|
declare module "solid-js" {
|
|
12
5
|
namespace JSX {
|
|
@@ -62,7 +55,6 @@ declare module "solid-js" {
|
|
|
62
55
|
"m-select-option": Tag<typeof import("../elements/select.js").selectOptionDeclaration, HTMLElement>;
|
|
63
56
|
"m-search-suggestion": Tag<typeof import("../elements/search.js").searchSuggestionDeclaration, HTMLElement>;
|
|
64
57
|
}
|
|
65
|
-
/** `prop:checked`, `prop:value`: the elements' live properties. */
|
|
66
58
|
interface ExplicitProperties {
|
|
67
59
|
"checked": NonNullable<ElementProperties<import("../elements/switch.js").SwitchSpec>["checked"]> | NonNullable<ElementProperties<import("../elements/checkbox.js").CheckboxSpec>["checked"]>;
|
|
68
60
|
"value": NonNullable<ElementProperties<import("../elements/tabs.js").TabsSpec>["value"]> | NonNullable<ElementProperties<import("../elements/progress.js").ProgressSpec>["value"]> | NonNullable<ElementProperties<import("../elements/slider.js").SliderSpec>["value"]> | NonNullable<ElementProperties<import("../elements/text-field.js").TextFieldSpec>["value"]> | NonNullable<ElementProperties<import("../elements/radios.js").RadiosSpec>["value"]> | NonNullable<ElementProperties<import("../elements/navigation-bar.js").NavigationBarSpec>["value"]> | NonNullable<ElementProperties<import("../elements/navigation-rail.js").NavigationRailSpec>["value"]> | NonNullable<ElementProperties<import("../elements/drawer.js").DrawerSpec>["value"]> | NonNullable<ElementProperties<import("../elements/button-group.js").ButtonGroupSpec>["value"]> | NonNullable<ElementProperties<import("../elements/chips.js").ChipsSpec>["value"]> | NonNullable<ElementProperties<import("../elements/list.js").ListSpec>["value"]> | NonNullable<ElementProperties<import("../elements/select.js").SelectSpec>["value"]> | NonNullable<ElementProperties<import("../elements/datepicker.js").DatepickerSpec>["value"]> | NonNullable<ElementProperties<import("../elements/timepicker.js").TimepickerSpec>["value"]> | NonNullable<ElementProperties<import("../elements/search.js").SearchSpec>["value"]>;
|
|
@@ -76,7 +68,6 @@ declare module "solid-js" {
|
|
|
76
68
|
"target": NonNullable<ElementProperties<import("../elements/tooltip.js").TooltipSpec>["target"]>;
|
|
77
69
|
"open": NonNullable<ElementProperties<import("../elements/snackbar.js").SnackbarSpec>["open"]>;
|
|
78
70
|
}
|
|
79
|
-
/** `on:change` and the other element events. */
|
|
80
71
|
interface CustomEvents {
|
|
81
72
|
"change": ElementEvents<import("../elements/button.js").ButtonSpec>["change"] | ElementEvents<import("../elements/switch.js").SwitchSpec>["change"] | ElementEvents<import("../elements/tabs.js").TabsSpec>["change"] | ElementEvents<import("../elements/icon-button.js").IconButtonSpec>["change"] | ElementEvents<import("../elements/checkbox.js").CheckboxSpec>["change"] | ElementEvents<import("../elements/slider.js").SliderSpec>["change"] | ElementEvents<import("../elements/text-field.js").TextFieldSpec>["change"] | ElementEvents<import("../elements/radios.js").RadiosSpec>["change"] | ElementEvents<import("../elements/navigation-bar.js").NavigationBarSpec>["change"] | ElementEvents<import("../elements/navigation-rail.js").NavigationRailSpec>["change"] | ElementEvents<import("../elements/drawer.js").DrawerSpec>["change"] | ElementEvents<import("../elements/button-group.js").ButtonGroupSpec>["change"] | ElementEvents<import("../elements/chips.js").ChipsSpec>["change"] | ElementEvents<import("../elements/list.js").ListSpec>["change"] | ElementEvents<import("../elements/carousel.js").CarouselSpec>["change"] | ElementEvents<import("../elements/select.js").SelectSpec>["change"] | ElementEvents<import("../elements/datepicker.js").DatepickerSpec>["change"] | ElementEvents<import("../elements/timepicker.js").TimepickerSpec>["change"] | ElementEvents<import("../elements/search.js").SearchSpec>["change"];
|
|
82
73
|
"collapse": ElementEvents<import("../elements/extended-fab.js").ExtendedFabSpec>["collapse"] | ElementEvents<import("../elements/navigation-rail.js").NavigationRailSpec>["collapse"] | ElementEvents<import("../elements/bottom-sheet.js").BottomSheetSpec>["collapse"];
|
package/dist/ssr/index.d.ts
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
/** true emits an empty attribute; false, null and undefined omit it. Numbers must be finite. */
|
|
2
1
|
export type RenderAttributes = Readonly<Record<string, string | number | boolean | null | undefined>>;
|
|
3
|
-
/**
|
|
4
|
-
* Tag prefix defaults to "m".
|
|
5
|
-
*
|
|
6
|
-
* `styles: "inline"` (the default) writes each root's whole CSS as a `<style>`:
|
|
7
|
-
* styled at first paint in every engine, at two costs. gzip cannot see a
|
|
8
|
-
* repeat further back than its 32 KB window: a select's root is about 44 KB
|
|
9
|
-
* (30 selects measured 141.0 KB gzip against 5.0 KB brotli), and large roots
|
|
10
|
-
* of different types in turn push each other out of it (30 measured 83.9 KB
|
|
11
|
-
* against 8.1 KB). So serve brotli, or use link mode for pages with many
|
|
12
|
-
* selects, or that mix large roots (text fields, dialogs) in turn. And the
|
|
13
|
-
* HTML is 0.5 to 0.9 MB uncompressed for 30 to 44 roots.
|
|
14
|
-
*
|
|
15
|
-
* `styles: "link"` writes `<link>` tags to the stylesheets under `cssBase`
|
|
16
|
-
* (`dist/elements/css`). WebKit paints the roots unstyled until they arrive
|
|
17
|
-
* (about 470 ms with each sheet 300 ms away; a preload does not help);
|
|
18
|
-
* Chromium and Firefox wait for them. Measured on Playwright's engines.
|
|
19
|
-
*/
|
|
20
2
|
export type RenderOptions = {
|
|
21
3
|
prefix?: string;
|
|
22
4
|
} & ({
|
|
@@ -25,35 +7,4 @@ export type RenderOptions = {
|
|
|
25
7
|
styles: "link";
|
|
26
8
|
cssBase: string;
|
|
27
9
|
});
|
|
28
|
-
/**
|
|
29
|
-
* Render a registered tag to declarative shadow DOM, synchronously and detached.
|
|
30
|
-
* Children are HTML processed by setHTML/configureHTML. The default policy is
|
|
31
|
-
* identity: this function is NOT a sanitizer. Configure a synchronous sanitizer
|
|
32
|
-
* for untrusted children or HTML-valued attributes. Which attributes take markup
|
|
33
|
-
* is listed in the README under Markup and sanitizing.
|
|
34
|
-
*
|
|
35
|
-
* Each call owns a temporary DOM realm (zero layout, 1024×768 viewport).
|
|
36
|
-
* The published material/ssr entry registers element CSS automatically.
|
|
37
|
-
* Hooks must be synchronous and must not reenter the renderer. Base/theme CSS belongs
|
|
38
|
-
* in the page head. Every shadow root receives its own styles.
|
|
39
|
-
* Specs may opt out with `ssr: false` or a synchronous `(host) => boolean`.
|
|
40
|
-
* An opted-out element emits its authored host and light DOM without a
|
|
41
|
-
* declarative root or shadow styles. Eligible light-DOM descendants still
|
|
42
|
-
* render their own roots. Load material/elements/preupgrade.css in the page to
|
|
43
|
-
* preserve an opted-out host's box until normal browser upgrade. A host this
|
|
44
|
-
* function renders with a shadow root carries `data-mtrl-ssr`. The pre-upgrade
|
|
45
|
-
* sheet's last rule rolls that layer back for the attribute, on the host, its
|
|
46
|
-
* `::before` and `::after`, and its direct children that are not themselves
|
|
47
|
-
* elements waiting to upgrade, so the stylesheet does not style a host the
|
|
48
|
-
* server already rendered or those children.
|
|
49
|
-
* An opted-out host does not carry it, and the link still reserves its box.
|
|
50
|
-
*
|
|
51
|
-
* Carousel and FAB menu opt out; menu and split-button opt out when
|
|
52
|
-
* they declare nested submenus. Async button `showProgress` or card `buttons`
|
|
53
|
-
* global defaults conservatively opt out every element in the call, since
|
|
54
|
-
* those factories can also be created inside other components.
|
|
55
|
-
* Invalid attributes/options, an existing declarative root, ambiguous HTML,
|
|
56
|
-
* excessive nesting, missing CSS, reentrant rendering and failing synchronous
|
|
57
|
-
* hooks still throw: returning markup for those inputs would be incorrect.
|
|
58
|
-
*/
|
|
59
10
|
export declare function renderElement(tag: string, attributes?: RenderAttributes, children?: string, options?: RenderOptions): string;
|
package/dist/ssr/solid.d.ts
CHANGED
package/dist/ssr/svelte.d.ts
CHANGED
package/dist/ssr/vue.d.ts
CHANGED
package/dist/styles/badge.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! material v3.2.
|
|
2
|
-
@layer mtrl.preupgrade,mtrl.base,mtrl.utilities,mtrl.text-field,mtrl.badge,mtrl.bottom-app-bar,mtrl.bottom-sheet,mtrl.side-sheet,mtrl.menu,mtrl.slider,mtrl.switch,mtrl.select,mtrl.progress,mtrl.button,mtrl.tabs,mtrl.top-app-bar,mtrl.icon-button,mtrl.button-group,mtrl.fab,mtrl.fab-menu,mtrl.extended-fab,mtrl.card,mtrl.carousel,mtrl.checkbox,mtrl.chips,mtrl.divider,mtrl.dialog,mtrl.drawer,mtrl.loading-indicator,mtrl.split-button,mtrl.radios,mtrl.datepicker,mtrl.timepicker,mtrl.search,mtrl.snackbar,mtrl.navigation-bar,mtrl.navigation-rail,mtrl.list,mtrl.tooltip,mtrl.toolbar;@layer mtrl.badge{.mtrl-badge__wrapper{position:relative;display:inline-flex;flex-shrink:0}.mtrl-badge{
|
|
1
|
+
/*! material v3.2.7 | MIT */
|
|
2
|
+
@layer mtrl.preupgrade,mtrl.base,mtrl.utilities,mtrl.text-field,mtrl.badge,mtrl.bottom-app-bar,mtrl.bottom-sheet,mtrl.side-sheet,mtrl.menu,mtrl.slider,mtrl.switch,mtrl.select,mtrl.progress,mtrl.button,mtrl.tabs,mtrl.top-app-bar,mtrl.icon-button,mtrl.button-group,mtrl.fab,mtrl.fab-menu,mtrl.extended-fab,mtrl.card,mtrl.carousel,mtrl.checkbox,mtrl.chips,mtrl.divider,mtrl.dialog,mtrl.drawer,mtrl.loading-indicator,mtrl.split-button,mtrl.radios,mtrl.datepicker,mtrl.timepicker,mtrl.search,mtrl.snackbar,mtrl.navigation-bar,mtrl.navigation-rail,mtrl.list,mtrl.tooltip,mtrl.toolbar;@layer mtrl.badge{.mtrl-badge__wrapper{position:relative;display:inline-flex;flex-shrink:0}.mtrl-badge{display:inline-flex;align-items:center;justify-content:center;font-weight:500;box-sizing:border-box;overflow:hidden;transition:all 200ms ease;text-overflow:ellipsis}.mtrl-badge--invisible{display:none}.mtrl-badge--small{width:6px;height:6px;min-width:6px;border-radius:var(--mtrl-sys-shape-corner-full, 9999px);font-size:0;padding:0}.mtrl-badge--large{height:16px;min-width:16px;border-radius:var(--mtrl-sys-shape-corner-full, 9999px);padding:0 4px;font-size:11px;line-height:16px;padding-top:.5px}.mtrl-badge--large.mtrl-badge--overflow{min-width:auto;max-width:34px;padding:0 4px}.mtrl-badge--positioned{position:absolute}.mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--top-right{top:0;right:0}.mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--top-left{top:0;left:0}.mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--bottom-right{bottom:0;right:0}.mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--bottom-left{bottom:0;left:0}.mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--top-right{top:-2px;right:-4px}.mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--top-left{top:-2px;left:-4px}.mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--bottom-right{bottom:-2px;right:-4px}.mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--bottom-left{bottom:-2px;left:-4px}.mtrl-badge--error{background-color:var(--mtrl-sys-color-error);color:var(--mtrl-sys-color-on-error)}.mtrl-badge--primary{background-color:var(--mtrl-sys-color-primary);color:var(--mtrl-sys-color-on-primary)}.mtrl-badge--secondary{background-color:var(--mtrl-sys-color-secondary);color:var(--mtrl-sys-color-on-secondary)}.mtrl-badge--tertiary{background-color:var(--mtrl-sys-color-tertiary);color:var(--mtrl-sys-color-on-tertiary)}.mtrl-badge--success{background-color:var(--mtrl-sys-color-success);color:var(--mtrl-sys-color-on-success)}.mtrl-badge--warning{background-color:var(--mtrl-sys-color-warning);color:var(--mtrl-sys-color-on-warning)}.mtrl-badge--info{background-color:var(--mtrl-sys-color-info);color:var(--mtrl-sys-color-on-info)}:where(.mtrl-rtl) .mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--top-right,:where(:host(.mtrl-rtl)) .mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--top-right,[dir=rtl] .mtrl-badge--positioned:not(:where(.mtrl-ltr,.mtrl-ltr *)).mtrl-badge--small.mtrl-badge--top-right{right:auto;left:0}:where(.mtrl-rtl) .mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--top-left,:where(:host(.mtrl-rtl)) .mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--top-left,[dir=rtl] .mtrl-badge--positioned:not(:where(.mtrl-ltr,.mtrl-ltr *)).mtrl-badge--small.mtrl-badge--top-left{left:auto;right:0}:where(.mtrl-rtl) .mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--bottom-right,:where(:host(.mtrl-rtl)) .mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--bottom-right,[dir=rtl] .mtrl-badge--positioned:not(:where(.mtrl-ltr,.mtrl-ltr *)).mtrl-badge--small.mtrl-badge--bottom-right{right:auto;left:0}:where(.mtrl-rtl) .mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--bottom-left,:where(:host(.mtrl-rtl)) .mtrl-badge--positioned.mtrl-badge--small.mtrl-badge--bottom-left,[dir=rtl] .mtrl-badge--positioned:not(:where(.mtrl-ltr,.mtrl-ltr *)).mtrl-badge--small.mtrl-badge--bottom-left{left:auto;right:0}:where(.mtrl-rtl) .mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--top-right,:where(:host(.mtrl-rtl)) .mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--top-right,[dir=rtl] .mtrl-badge--positioned:not(:where(.mtrl-ltr,.mtrl-ltr *)).mtrl-badge--large.mtrl-badge--top-right{right:auto;left:-4px}:where(.mtrl-rtl) .mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--top-left,:where(:host(.mtrl-rtl)) .mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--top-left,[dir=rtl] .mtrl-badge--positioned:not(:where(.mtrl-ltr,.mtrl-ltr *)).mtrl-badge--large.mtrl-badge--top-left{left:auto;right:-4px}:where(.mtrl-rtl) .mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--bottom-right,:where(:host(.mtrl-rtl)) .mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--bottom-right,[dir=rtl] .mtrl-badge--positioned:not(:where(.mtrl-ltr,.mtrl-ltr *)).mtrl-badge--large.mtrl-badge--bottom-right{right:auto;left:-4px}:where(.mtrl-rtl) .mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--bottom-left,:where(:host(.mtrl-rtl)) .mtrl-badge--positioned.mtrl-badge--large.mtrl-badge--bottom-left,[dir=rtl] .mtrl-badge--positioned:not(:where(.mtrl-ltr,.mtrl-ltr *)).mtrl-badge--large.mtrl-badge--bottom-left{left:auto;right:-4px}}
|