material 3.0.2 → 3.0.3
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 +1 -1
- package/dist/components/badge/config.d.ts +2 -2
- package/dist/components/button/features/toggle.d.ts +1 -1
- package/dist/components/button/types.d.ts +5 -5
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/button-group/constants.d.ts +1 -1
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/button-group/types.d.ts +2 -2
- package/dist/components/card/types.d.ts +5 -5
- package/dist/components/carousel/types.d.ts +1 -1
- package/dist/components/checkbox/types.d.ts +4 -4
- package/dist/components/chips/types.d.ts +12 -12
- package/dist/components/datepicker/datepicker.d.ts +1 -1
- package/dist/components/datepicker/types.d.ts +11 -11
- package/dist/components/datepicker/utils.d.ts +1 -1
- package/dist/components/dialog/types.d.ts +1 -1
- package/dist/components/drawer/types.d.ts +1 -1
- package/dist/components/extended-fab/types.d.ts +3 -3
- package/dist/components/fab/types.d.ts +2 -3
- package/dist/components/fab-menu/types.d.ts +1 -1
- package/dist/components/icon-button/types.d.ts +4 -5
- package/dist/components/list/types.d.ts +1 -1
- package/dist/components/menu/features/loader.d.ts +1 -1
- package/dist/components/menu/types.d.ts +3 -3
- package/dist/components/navigation-bar/types.d.ts +1 -1
- package/dist/components/navigation-rail/types.d.ts +2 -2
- package/dist/components/progress/types.d.ts +1 -1
- package/dist/components/radios/types.d.ts +1 -1
- package/dist/components/search/types.d.ts +5 -5
- package/dist/components/select/constants.d.ts +1 -1
- package/dist/components/select/types.d.ts +1 -1
- package/dist/components/slider/config.d.ts +1 -1
- package/dist/components/slider/features/axis.d.ts +1 -1
- package/dist/components/slider/features/controller.d.ts +14 -14
- package/dist/components/slider/types.d.ts +1 -1
- package/dist/components/snackbar/types.d.ts +1 -1
- package/dist/components/switch/features.d.ts +1 -1
- package/dist/components/switch/types.d.ts +5 -5
- package/dist/components/tabs/features.d.ts +1 -1
- package/dist/components/tabs/responsive.d.ts +1 -1
- package/dist/components/tabs/types.d.ts +7 -8
- package/dist/components/tabs/utils.d.ts +5 -5
- package/dist/components/text-field/constants.d.ts +1 -1
- package/dist/components/text-field/features/counter.d.ts +1 -1
- package/dist/components/text-field/features/field.d.ts +1 -1
- package/dist/components/text-field/features/required.d.ts +1 -1
- package/dist/components/text-field/features/trailing-icon.d.ts +2 -2
- package/dist/components/text-field/types.d.ts +8 -8
- package/dist/components/timepicker/dial.d.ts +2 -2
- package/dist/components/timepicker/types.d.ts +9 -9
- package/dist/components/timepicker/utils.d.ts +2 -2
- package/dist/core/compose/features/constants.d.ts +1 -1
- package/dist/core/compose/features/events.d.ts +1 -1
- package/dist/core/config/component.d.ts +1 -1
- package/dist/core/dom/create.d.ts +2 -2
- package/dist/core/dom/layer.d.ts +1 -1
- package/dist/core/state/emitter.d.ts +1 -1
- package/dist/core/theme/shape.d.ts +1 -1
- package/dist/core/theme/tokens.d.ts +1 -1
- package/dist/core/utils/attributes.d.ts +2 -2
- package/dist/core/utils/theme.d.ts +1 -1
- package/dist/elements/adapter.d.ts +12 -1
- package/dist/elements/button.d.ts +1 -1
- package/dist/elements/css/icon-button.css +1 -1
- package/dist/elements/css/icon-button.js +1 -1
- package/dist/elements/css/toolbar.css +1 -1
- package/dist/elements/css/toolbar.js +1 -1
- package/dist/elements/define.d.ts +20 -4
- package/dist/elements/define.js +2 -0
- package/dist/elements/icon-button.d.ts +6 -1
- package/dist/elements/icon-button.js +1 -0
- package/dist/elements/navigation-bar.d.ts +1 -1
- package/dist/elements/navigation-rail.d.ts +1 -1
- package/dist/elements/preupgrade/badge.css +1 -1
- package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
- package/dist/elements/preupgrade/bottom-sheet.css +1 -1
- package/dist/elements/preupgrade/button-group.css +1 -1
- package/dist/elements/preupgrade/button.css +1 -1
- package/dist/elements/preupgrade/card.css +1 -1
- package/dist/elements/preupgrade/carousel.css +1 -1
- package/dist/elements/preupgrade/checkbox.css +1 -1
- package/dist/elements/preupgrade/chips.css +1 -1
- package/dist/elements/preupgrade/datepicker.css +1 -1
- package/dist/elements/preupgrade/dialog.css +1 -1
- package/dist/elements/preupgrade/divider.css +1 -1
- package/dist/elements/preupgrade/drawer.css +1 -1
- package/dist/elements/preupgrade/extended-fab.css +1 -1
- package/dist/elements/preupgrade/fab-menu.css +1 -1
- package/dist/elements/preupgrade/fab.css +1 -1
- package/dist/elements/preupgrade/icon-button.css +1 -1
- package/dist/elements/preupgrade/list.css +1 -1
- package/dist/elements/preupgrade/loading-indicator.css +1 -1
- package/dist/elements/preupgrade/menu.css +1 -1
- package/dist/elements/preupgrade/navigation-bar.css +1 -1
- package/dist/elements/preupgrade/navigation-rail.css +1 -1
- package/dist/elements/preupgrade/progress.css +1 -1
- package/dist/elements/preupgrade/radios.css +1 -1
- package/dist/elements/preupgrade/search.css +1 -1
- package/dist/elements/preupgrade/select.css +1 -1
- package/dist/elements/preupgrade/side-sheet.css +1 -1
- package/dist/elements/preupgrade/slider.css +1 -1
- package/dist/elements/preupgrade/snackbar.css +1 -1
- package/dist/elements/preupgrade/split-button.css +1 -1
- package/dist/elements/preupgrade/switch.css +1 -1
- package/dist/elements/preupgrade/tabs.css +1 -1
- package/dist/elements/preupgrade/text-field.css +1 -1
- package/dist/elements/preupgrade/timepicker.css +1 -1
- package/dist/elements/preupgrade/toolbar.css +1 -1
- package/dist/elements/preupgrade/tooltip.css +1 -1
- package/dist/elements/preupgrade/top-app-bar.css +1 -1
- package/dist/elements/preupgrade.css +1 -1
- package/dist/elements/styles.d.ts +5 -4
- package/dist/elements/timepicker.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/react/create.d.ts +1 -1
- package/dist/react/create.js +4 -1
- package/dist/solid/create.d.ts +2 -2
- package/dist/solid/create.js +6 -4
- package/dist/ssr/index.js +13 -13
- package/dist/ssr/react.js +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/base.css +1 -1
- package/dist/styles/bottom-app-bar.css +1 -1
- package/dist/styles/bottom-sheet.css +1 -1
- package/dist/styles/button-group.css +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/chips.css +1 -1
- package/dist/styles/contrast.css +1 -1
- package/dist/styles/datepicker.css +1 -1
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/extended-fab.css +1 -1
- package/dist/styles/fab-menu.css +1 -1
- package/dist/styles/fab.css +1 -1
- package/dist/styles/icon-button.css +2 -2
- package/dist/styles/list.css +1 -1
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +1 -1
- package/dist/styles/navigation-bar.css +1 -1
- package/dist/styles/navigation-rail.css +1 -1
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radios.css +1 -1
- package/dist/styles/search.css +1 -1
- package/dist/styles/select.css +1 -1
- package/dist/styles/side-sheet.css +1 -1
- package/dist/styles/slider.css +1 -1
- package/dist/styles/snackbar.css +1 -1
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/timepicker.css +1 -1
- package/dist/styles/toolbar.css +2 -2
- 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/Badge.svelte +1 -1
- package/dist/svelte/BottomAppBar.svelte +1 -1
- package/dist/svelte/BottomSheet.svelte +1 -1
- package/dist/svelte/Button.svelte +1 -1
- package/dist/svelte/ButtonGroup.svelte +1 -1
- package/dist/svelte/Card.svelte +1 -1
- package/dist/svelte/Carousel.svelte +1 -1
- package/dist/svelte/Checkbox.svelte +1 -1
- package/dist/svelte/Chips.svelte +1 -1
- package/dist/svelte/Datepicker.svelte +1 -1
- package/dist/svelte/Dialog.svelte +1 -1
- package/dist/svelte/Divider.svelte +1 -1
- package/dist/svelte/Drawer.svelte +1 -1
- package/dist/svelte/ExtendedFab.svelte +1 -1
- package/dist/svelte/Fab.svelte +1 -1
- package/dist/svelte/FabMenu.svelte +1 -1
- package/dist/svelte/IconButton.svelte +1 -1
- package/dist/svelte/List.svelte +1 -1
- package/dist/svelte/LoadingIndicator.svelte +1 -1
- package/dist/svelte/Menu.svelte +1 -1
- package/dist/svelte/NavigationBar.svelte +1 -1
- package/dist/svelte/NavigationRail.svelte +1 -1
- package/dist/svelte/Progress.svelte +1 -1
- package/dist/svelte/Radios.svelte +1 -1
- package/dist/svelte/Search.svelte +1 -1
- package/dist/svelte/Select.svelte +1 -1
- package/dist/svelte/SideSheet.svelte +1 -1
- package/dist/svelte/Slider.svelte +1 -1
- package/dist/svelte/Snackbar.svelte +1 -1
- package/dist/svelte/SplitButton.svelte +1 -1
- package/dist/svelte/Switch.svelte +1 -1
- package/dist/svelte/Tabs.svelte +1 -1
- package/dist/svelte/TextField.svelte +1 -1
- package/dist/svelte/Timepicker.svelte +1 -1
- package/dist/svelte/Toolbar.svelte +1 -1
- package/dist/svelte/Tooltip.svelte +1 -1
- package/dist/svelte/TopAppBar.svelte +1 -1
- package/dist/svelte/runtime.d.ts +2 -2
- package/dist/svelte/runtime.js +4 -1
- 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 +2 -2
- package/dist/vue/create.js +4 -1
- package/package.json +1 -1
- package/src/styles/abstract/_mixins.scss +4 -4
- package/src/styles/abstract/_theme.scss +1 -1
- package/src/styles/abstract/_variables.scss +7 -7
- package/src/styles/base/_foundation.scss +1 -1
- package/src/styles/base/_typescale-tokens.scss +1 -1
- package/src/styles/base/_typography.scss +1 -1
- package/src/styles/components/_bottom-sheet.scss +1 -1
- package/src/styles/components/_button.scss +1 -1
- package/src/styles/components/_checkbox.scss +5 -5
- package/src/styles/components/_chips.scss +9 -9
- package/src/styles/components/_datepicker.scss +8 -9
- package/src/styles/components/_dialog.scss +1 -1
- package/src/styles/components/_drawer.scss +1 -1
- package/src/styles/components/_fab-menu.scss +1 -1
- package/src/styles/components/_icon-button.scss +50 -13
- package/src/styles/components/_menu.scss +0 -1
- package/src/styles/components/_navigation-bar.scss +1 -1
- package/src/styles/components/_radios.scss +3 -3
- package/src/styles/components/_search.scss +7 -7
- package/src/styles/components/_select.scss +2 -2
- package/src/styles/components/_side-sheet.scss +2 -2
- package/src/styles/components/_slider.scss +6 -6
- package/src/styles/components/_switch.scss +5 -5
- package/src/styles/components/_tabs.scss +15 -15
- package/src/styles/components/_text-field.scss +20 -21
- package/src/styles/components/_timepicker.scss +6 -6
- package/src/styles/components/_toolbar.scss +48 -0
- package/src/styles/components/_tooltip.scss +2 -2
- package/src/styles/elements/_field.scss +2 -2
- package/src/styles/themes/_autumn.scss +3 -3
- package/src/styles/themes/_base-theme.scss +2 -2
- package/src/styles/themes/_baseline.scss +5 -5
- package/src/styles/themes/_forest.scss +3 -3
- package/src/styles/themes/_ocean.scss +3 -3
- package/src/styles/themes/_spring.scss +3 -3
- package/src/styles/themes/_sunset.scss +3 -3
- package/src/styles/utilities/_ripple.scss +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! material v3.0.
|
|
1
|
+
/*! material v3.0.3 | MIT */
|
|
2
2
|
[data-theme=tealcaramel]:is([data-theme-contrast=medium],[data-theme-contrast=high]):not([data-theme-mode=dark]){--mtrl-sys-color-on-error-container: #ffffff;--mtrl-sys-color-on-primary-container: #ffffff;--mtrl-sys-color-on-secondary-container: #ffffff;--mtrl-sys-color-on-tertiary-container: #ffffff;--mtrl-sys-color-on-primary-fixed: #ffffff;--mtrl-sys-color-on-primary-fixed-variant: #ffffff;--mtrl-sys-color-on-secondary-fixed: #ffffff;--mtrl-sys-color-on-secondary-fixed-variant: #ffffff;--mtrl-sys-color-on-tertiary-fixed: #ffffff;--mtrl-sys-color-on-tertiary-fixed-variant: #ffffff}[data-theme=tealcaramel]:is([data-theme-contrast=medium],[data-theme-contrast=high])[data-theme-mode=dark]{--mtrl-sys-color-on-surface: #ffffff;--mtrl-sys-color-inverse-primary: #004f5e}[data-theme=tealcaramel][data-theme-contrast=medium]:not([data-theme-mode=dark]){--mtrl-sys-color-error: #740006;--mtrl-sys-color-error-container: #cf2c27;--mtrl-sys-color-primary: #003c47;--mtrl-sys-color-primary-container: #1e778a;--mtrl-sys-color-secondary: #552c00;--mtrl-sys-color-secondary-container: #966130;--mtrl-sys-color-tertiary: #2e3453;--mtrl-sys-color-tertiary-container: #656b8d;--mtrl-sys-color-primary-fixed: #1e778a;--mtrl-sys-color-primary-fixed-dim: #005d6e;--mtrl-sys-color-secondary-fixed: #966130;--mtrl-sys-color-secondary-fixed-dim: #7a491a;--mtrl-sys-color-tertiary-fixed: #656b8d;--mtrl-sys-color-tertiary-fixed-dim: #4d5374;--mtrl-sys-color-surface-dim: #c2c7c9;--mtrl-sys-color-surface-container: #e4e9eb;--mtrl-sys-color-surface-container-high: #d8dee0;--mtrl-sys-color-surface-container-highest: #cdd2d5;--mtrl-sys-color-on-surface: #0c1214;--mtrl-sys-color-on-surface-variant: #2f383a;--mtrl-sys-color-outline: #4b5457;--mtrl-sys-color-outline-variant: #666f71}[data-theme=tealcaramel][data-theme-contrast=medium][data-theme-mode=dark]{--mtrl-sys-color-error: #ffd2cc;--mtrl-sys-color-on-error: #540003;--mtrl-sys-color-error-container: #ff5449;--mtrl-sys-color-on-error-container: #000000;--mtrl-sys-color-primary: #9ae8fd;--mtrl-sys-color-on-primary: #002a33;--mtrl-sys-color-primary-container: #4c9baf;--mtrl-sys-color-on-primary-container: #000000;--mtrl-sys-color-secondary: #ffd4b3;--mtrl-sys-color-on-secondary: #3d1e00;--mtrl-sys-color-secondary-container: #bf8450;--mtrl-sys-color-on-secondary-container: #000000;--mtrl-sys-color-tertiary: #d5daff;--mtrl-sys-color-on-tertiary: #1d2442;--mtrl-sys-color-tertiary-container: #898fb3;--mtrl-sys-color-on-tertiary-container: #000000;--mtrl-sys-color-on-primary-fixed: #001419;--mtrl-sys-color-on-primary-fixed-variant: #003c47;--mtrl-sys-color-on-secondary-fixed: #1f0c00;--mtrl-sys-color-on-secondary-fixed-variant: #552c00;--mtrl-sys-color-on-tertiary-fixed: #080f2c;--mtrl-sys-color-on-tertiary-fixed-variant: #2e3453;--mtrl-sys-color-surface-bright: #404547;--mtrl-sys-color-surface-container-lowest: #04080a;--mtrl-sys-color-surface-container-low: #191e20;--mtrl-sys-color-surface-container: #23292b;--mtrl-sys-color-surface-container-high: #2e3335;--mtrl-sys-color-surface-container-highest: #393f40;--mtrl-sys-color-on-surface-variant: #d5dee1;--mtrl-sys-color-outline: #aab3b6;--mtrl-sys-color-outline-variant: #899295;--mtrl-sys-color-inverse-on-surface: #252b2d}[data-theme=tealcaramel][data-theme-contrast=high]:not([data-theme-mode=dark]){--mtrl-sys-color-error: #600004;--mtrl-sys-color-error-container: #98000a;--mtrl-sys-color-primary: #00313b;--mtrl-sys-color-primary-container: #00515f;--mtrl-sys-color-secondary: #462300;--mtrl-sys-color-secondary-container: #6c3e0f;--mtrl-sys-color-tertiary: #242a48;--mtrl-sys-color-tertiary-container: #414767;--mtrl-sys-color-primary-fixed: #00515f;--mtrl-sys-color-primary-fixed-dim: #003843;--mtrl-sys-color-secondary-fixed: #6c3e0f;--mtrl-sys-color-secondary-fixed-dim: #502900;--mtrl-sys-color-tertiary-fixed: #414767;--mtrl-sys-color-tertiary-fixed-dim: #2b314f;--mtrl-sys-color-surface-dim: #b4babc;--mtrl-sys-color-surface-container-low: #ecf2f4;--mtrl-sys-color-surface-container: #dee3e5;--mtrl-sys-color-surface-container-high: #d0d5d7;--mtrl-sys-color-surface-container-highest: #c2c7c9;--mtrl-sys-color-on-surface: #000000;--mtrl-sys-color-on-surface-variant: #000000;--mtrl-sys-color-outline: #252d30;--mtrl-sys-color-outline-variant: #424b4d;--mtrl-sys-color-inverse-on-surface: #ffffff}[data-theme=tealcaramel][data-theme-contrast=high][data-theme-mode=dark]{--mtrl-sys-color-error: #ffece9;--mtrl-sys-color-on-error: #000000;--mtrl-sys-color-error-container: #ffaea4;--mtrl-sys-color-on-error-container: #220001;--mtrl-sys-color-primary: #d6f5ff;--mtrl-sys-color-on-primary: #000000;--mtrl-sys-color-primary-container: #80cee3;--mtrl-sys-color-on-primary-container: #000d12;--mtrl-sys-color-secondary: #ffede0;--mtrl-sys-color-on-secondary: #000000;--mtrl-sys-color-secondary-container: #f8b57c;--mtrl-sys-color-on-secondary-container: #160800;--mtrl-sys-color-tertiary: #efefff;--mtrl-sys-color-on-tertiary: #000000;--mtrl-sys-color-tertiary-container: #bbc1e7;--mtrl-sys-color-on-tertiary-container: #030826;--mtrl-sys-color-on-primary-fixed: #000000;--mtrl-sys-color-on-primary-fixed-variant: #001419;--mtrl-sys-color-on-secondary-fixed: #000000;--mtrl-sys-color-on-secondary-fixed-variant: #1f0c00;--mtrl-sys-color-on-tertiary-fixed: #000000;--mtrl-sys-color-on-tertiary-fixed-variant: #080f2c;--mtrl-sys-color-surface-bright: #4b5153;--mtrl-sys-color-surface-container-lowest: #000000;--mtrl-sys-color-surface-container-low: #1b2022;--mtrl-sys-color-surface-container: #2c3133;--mtrl-sys-color-surface-container-high: #373c3e;--mtrl-sys-color-surface-container-highest: #42484a;--mtrl-sys-color-on-surface-variant: #ffffff;--mtrl-sys-color-outline: #e9f1f5;--mtrl-sys-color-outline-variant: #bbc4c7;--mtrl-sys-color-inverse-on-surface: #000000}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! material v3.0.
|
|
1
|
+
/*! material v3.0.3 | MIT */
|
|
2
2
|
[data-theme=tealcaramel]{--mtrl-sys-color-error: #B3261E;--mtrl-sys-color-on-error: #FFFFFF;--mtrl-sys-color-error-container: #F9DEDC;--mtrl-sys-color-on-error-container: #410E0B;--mtrl-sys-color-success: #006C4E;--mtrl-sys-color-on-success: #FFFFFF;--mtrl-sys-color-warning: #974800;--mtrl-sys-color-on-warning: #FFFFFF;--mtrl-sys-color-info: #0061A4;--mtrl-sys-color-on-info: #FFFFFF;--mtrl-sys-color-error: #ba1a1a;--mtrl-sys-color-on-error: #ffffff;--mtrl-sys-color-error-container: #ffdad6;--mtrl-sys-color-on-error-container: #93000a;--mtrl-sys-color-primary: #00687a;--mtrl-sys-color-on-primary: #ffffff;--mtrl-sys-color-primary-container: #acedff;--mtrl-sys-color-on-primary-container: #004e5c;--mtrl-sys-color-secondary: #855323;--mtrl-sys-color-on-secondary: #ffffff;--mtrl-sys-color-secondary-container: #ffdcc2;--mtrl-sys-color-on-secondary-container: #693c0d;--mtrl-sys-color-tertiary: #565d7e;--mtrl-sys-color-on-tertiary: #ffffff;--mtrl-sys-color-tertiary-container: #dde1ff;--mtrl-sys-color-on-tertiary-container: #3f4565;--mtrl-sys-color-primary-fixed: #acedff;--mtrl-sys-color-primary-fixed-dim: #84d2e7;--mtrl-sys-color-on-primary-fixed: #001f26;--mtrl-sys-color-on-primary-fixed-variant: #004e5c;--mtrl-sys-color-secondary-fixed: #ffdcc2;--mtrl-sys-color-secondary-fixed-dim: #fcb880;--mtrl-sys-color-on-secondary-fixed: #2e1500;--mtrl-sys-color-on-secondary-fixed-variant: #693c0d;--mtrl-sys-color-tertiary-fixed: #dde1ff;--mtrl-sys-color-tertiary-fixed-dim: #bfc4eb;--mtrl-sys-color-on-tertiary-fixed: #131937;--mtrl-sys-color-on-tertiary-fixed-variant: #3f4565;--mtrl-sys-color-surface: #f5fafc;--mtrl-sys-color-surface-dim: #d5dbdd;--mtrl-sys-color-surface-bright: #f5fafc;--mtrl-sys-color-surface-variant: #dbe4e7;--mtrl-sys-color-surface-container-lowest: #ffffff;--mtrl-sys-color-surface-container-low: #eff4f7;--mtrl-sys-color-surface-container: #e9eff1;--mtrl-sys-color-surface-container-high: #e4e9eb;--mtrl-sys-color-surface-container-highest: #dee3e5;--mtrl-sys-color-on-surface: #171c1e;--mtrl-sys-color-on-surface-variant: #3f484b;--mtrl-sys-color-outline: #70797b;--mtrl-sys-color-outline-variant: #bfc8cb;--mtrl-sys-color-shadow: #000000;--mtrl-sys-color-scrim: #000000;--mtrl-sys-color-inverse-surface: #2c3133;--mtrl-sys-color-inverse-on-surface: #ecf2f4;--mtrl-sys-color-inverse-primary: #84d2e7}[data-theme=tealcaramel][data-theme-mode=dark]{--mtrl-sys-color-error: #F2B8B5;--mtrl-sys-color-on-error: #601410;--mtrl-sys-color-error-container: #8C1D18;--mtrl-sys-color-on-error-container: #F9DEDC;--mtrl-sys-color-success: #8CD6AF;--mtrl-sys-color-on-success: #003824;--mtrl-sys-color-warning: #FFB95C;--mtrl-sys-color-on-warning: #462A00;--mtrl-sys-color-info: #99CBFF;--mtrl-sys-color-on-info: #003355;--mtrl-sys-color-error: #ffb4ab;--mtrl-sys-color-on-error: #690005;--mtrl-sys-color-error-container: #93000a;--mtrl-sys-color-on-error-container: #ffdad6;--mtrl-sys-color-primary: #84d2e7;--mtrl-sys-color-on-primary: #003640;--mtrl-sys-color-primary-container: #004e5c;--mtrl-sys-color-on-primary-container: #acedff;--mtrl-sys-color-secondary: #fcb880;--mtrl-sys-color-on-secondary: #4c2700;--mtrl-sys-color-secondary-container: #693c0d;--mtrl-sys-color-on-secondary-container: #ffdcc2;--mtrl-sys-color-tertiary: #bfc4eb;--mtrl-sys-color-on-tertiary: #282f4d;--mtrl-sys-color-tertiary-container: #3f4565;--mtrl-sys-color-on-tertiary-container: #dde1ff;--mtrl-sys-color-primary-fixed: #acedff;--mtrl-sys-color-primary-fixed-dim: #84d2e7;--mtrl-sys-color-on-primary-fixed: #001f26;--mtrl-sys-color-on-primary-fixed-variant: #004e5c;--mtrl-sys-color-secondary-fixed: #ffdcc2;--mtrl-sys-color-secondary-fixed-dim: #fcb880;--mtrl-sys-color-on-secondary-fixed: #2e1500;--mtrl-sys-color-on-secondary-fixed-variant: #693c0d;--mtrl-sys-color-tertiary-fixed: #dde1ff;--mtrl-sys-color-tertiary-fixed-dim: #bfc4eb;--mtrl-sys-color-on-tertiary-fixed: #131937;--mtrl-sys-color-on-tertiary-fixed-variant: #3f4565;--mtrl-sys-color-surface: #0f1416;--mtrl-sys-color-surface-dim: #0f1416;--mtrl-sys-color-surface-bright: #343a3c;--mtrl-sys-color-surface-variant: #3f484b;--mtrl-sys-color-surface-container-lowest: #090f11;--mtrl-sys-color-surface-container-low: #171c1e;--mtrl-sys-color-surface-container: #1b2022;--mtrl-sys-color-surface-container-high: #252b2d;--mtrl-sys-color-surface-container-highest: #303638;--mtrl-sys-color-on-surface: #dee3e5;--mtrl-sys-color-on-surface-variant: #bfc8cb;--mtrl-sys-color-outline: #899295;--mtrl-sys-color-outline-variant: #3f484b;--mtrl-sys-color-shadow: #000000;--mtrl-sys-color-scrim: #000000;--mtrl-sys-color-inverse-surface: #dee3e5;--mtrl-sys-color-inverse-on-surface: #2c3133;--mtrl-sys-color-inverse-primary: #00687a}@media(prefers-contrast: more){[data-theme=tealcaramel]:not([data-theme-contrast]):not([data-theme-mode=dark]){--mtrl-sys-color-error: #600004;--mtrl-sys-color-error-container: #98000a;--mtrl-sys-color-on-error-container: #ffffff;--mtrl-sys-color-primary: #00313b;--mtrl-sys-color-primary-container: #00515f;--mtrl-sys-color-on-primary-container: #ffffff;--mtrl-sys-color-secondary: #462300;--mtrl-sys-color-secondary-container: #6c3e0f;--mtrl-sys-color-on-secondary-container: #ffffff;--mtrl-sys-color-tertiary: #242a48;--mtrl-sys-color-tertiary-container: #414767;--mtrl-sys-color-on-tertiary-container: #ffffff;--mtrl-sys-color-primary-fixed: #00515f;--mtrl-sys-color-primary-fixed-dim: #003843;--mtrl-sys-color-on-primary-fixed: #ffffff;--mtrl-sys-color-on-primary-fixed-variant: #ffffff;--mtrl-sys-color-secondary-fixed: #6c3e0f;--mtrl-sys-color-secondary-fixed-dim: #502900;--mtrl-sys-color-on-secondary-fixed: #ffffff;--mtrl-sys-color-on-secondary-fixed-variant: #ffffff;--mtrl-sys-color-tertiary-fixed: #414767;--mtrl-sys-color-tertiary-fixed-dim: #2b314f;--mtrl-sys-color-on-tertiary-fixed: #ffffff;--mtrl-sys-color-on-tertiary-fixed-variant: #ffffff;--mtrl-sys-color-surface-dim: #b4babc;--mtrl-sys-color-surface-container-low: #ecf2f4;--mtrl-sys-color-surface-container: #dee3e5;--mtrl-sys-color-surface-container-high: #d0d5d7;--mtrl-sys-color-surface-container-highest: #c2c7c9;--mtrl-sys-color-on-surface: #000000;--mtrl-sys-color-on-surface-variant: #000000;--mtrl-sys-color-outline: #252d30;--mtrl-sys-color-outline-variant: #424b4d;--mtrl-sys-color-inverse-on-surface: #ffffff}[data-theme=tealcaramel]:not([data-theme-contrast])[data-theme-mode=dark]{--mtrl-sys-color-error: #ffece9;--mtrl-sys-color-on-error: #000000;--mtrl-sys-color-error-container: #ffaea4;--mtrl-sys-color-on-error-container: #220001;--mtrl-sys-color-primary: #d6f5ff;--mtrl-sys-color-on-primary: #000000;--mtrl-sys-color-primary-container: #80cee3;--mtrl-sys-color-on-primary-container: #000d12;--mtrl-sys-color-secondary: #ffede0;--mtrl-sys-color-on-secondary: #000000;--mtrl-sys-color-secondary-container: #f8b57c;--mtrl-sys-color-on-secondary-container: #160800;--mtrl-sys-color-tertiary: #efefff;--mtrl-sys-color-on-tertiary: #000000;--mtrl-sys-color-tertiary-container: #bbc1e7;--mtrl-sys-color-on-tertiary-container: #030826;--mtrl-sys-color-on-primary-fixed: #000000;--mtrl-sys-color-on-primary-fixed-variant: #001419;--mtrl-sys-color-on-secondary-fixed: #000000;--mtrl-sys-color-on-secondary-fixed-variant: #1f0c00;--mtrl-sys-color-on-tertiary-fixed: #000000;--mtrl-sys-color-on-tertiary-fixed-variant: #080f2c;--mtrl-sys-color-surface-bright: #4b5153;--mtrl-sys-color-surface-container-lowest: #000000;--mtrl-sys-color-surface-container-low: #1b2022;--mtrl-sys-color-surface-container: #2c3133;--mtrl-sys-color-surface-container-high: #373c3e;--mtrl-sys-color-surface-container-highest: #42484a;--mtrl-sys-color-on-surface: #ffffff;--mtrl-sys-color-on-surface-variant: #ffffff;--mtrl-sys-color-outline: #e9f1f5;--mtrl-sys-color-outline-variant: #bbc4c7;--mtrl-sys-color-inverse-on-surface: #000000;--mtrl-sys-color-inverse-primary: #004f5e}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! material v3.0.
|
|
1
|
+
/*! material v3.0.3 | MIT */
|
|
2
2
|
[data-theme=vibrant]:is([data-theme-contrast=medium],[data-theme-contrast=high]):not([data-theme-mode=dark]){--mtrl-sys-color-on-error-container: #ffffff;--mtrl-sys-color-on-primary-container: #ffffff;--mtrl-sys-color-on-secondary-container: #ffffff;--mtrl-sys-color-on-tertiary-container: #ffffff;--mtrl-sys-color-on-primary-fixed: #ffffff;--mtrl-sys-color-on-primary-fixed-variant: #ffffff;--mtrl-sys-color-on-secondary-fixed: #ffffff;--mtrl-sys-color-on-secondary-fixed-variant: #ffffff;--mtrl-sys-color-on-tertiary-fixed: #ffffff;--mtrl-sys-color-on-tertiary-fixed-variant: #ffffff}[data-theme=vibrant]:is([data-theme-contrast=medium],[data-theme-contrast=high])[data-theme-mode=dark]{--mtrl-sys-color-on-surface: #ffffff;--mtrl-sys-color-inverse-primary: #5500cf}[data-theme=vibrant][data-theme-contrast=medium]:not([data-theme-mode=dark]){--mtrl-sys-color-error: #740006;--mtrl-sys-color-error-container: #cf2c27;--mtrl-sys-color-primary: #4100a1;--mtrl-sys-color-primary-container: #7d40ff;--mtrl-sys-color-secondary: #412f4e;--mtrl-sys-color-secondary-container: #7a6587;--mtrl-sys-color-tertiary: #4d294f;--mtrl-sys-color-tertiary-container: #895f89;--mtrl-sys-color-primary-fixed: #7d40ff;--mtrl-sys-color-primary-fixed-dim: #6400f0;--mtrl-sys-color-secondary-fixed: #7a6587;--mtrl-sys-color-secondary-fixed-dim: #614d6e;--mtrl-sys-color-tertiary-fixed: #895f89;--mtrl-sys-color-tertiary-fixed-dim: #6e4770;--mtrl-sys-color-surface-dim: #cbc4d2;--mtrl-sys-color-surface-container: #ede5f4;--mtrl-sys-color-surface-container-high: #e1dae9;--mtrl-sys-color-surface-container-highest: #d6cfdd;--mtrl-sys-color-on-surface: #12101a;--mtrl-sys-color-on-surface-variant: #383442;--mtrl-sys-color-outline: #55505f;--mtrl-sys-color-outline-variant: #706a7a}[data-theme=vibrant][data-theme-contrast=medium][data-theme-mode=dark]{--mtrl-sys-color-error: #ffd2cc;--mtrl-sys-color-on-error: #540003;--mtrl-sys-color-error-container: #ff5449;--mtrl-sys-color-on-error-container: #000000;--mtrl-sys-color-primary: #e3d6ff;--mtrl-sys-color-on-primary: #2e0077;--mtrl-sys-color-primary-container: #9e79ff;--mtrl-sys-color-on-primary-container: #000000;--mtrl-sys-color-secondary: #edd3fb;--mtrl-sys-color-on-secondary: #301e3c;--mtrl-sys-color-secondary-container: #9f88ad;--mtrl-sys-color-on-secondary-container: #000000;--mtrl-sys-color-tertiary: #ffccfd;--mtrl-sys-color-on-tertiary: #3a183e;--mtrl-sys-color-tertiary-container: #af82af;--mtrl-sys-color-on-tertiary-container: #000000;--mtrl-sys-color-on-primary-fixed: #160042;--mtrl-sys-color-on-primary-fixed-variant: #4100a1;--mtrl-sys-color-on-secondary-fixed: #1a0926;--mtrl-sys-color-on-secondary-fixed-variant: #412f4e;--mtrl-sys-color-on-tertiary-fixed: #230328;--mtrl-sys-color-on-tertiary-fixed-variant: #4d294f;--mtrl-sys-color-surface-bright: #47434e;--mtrl-sys-color-surface-container-lowest: #08060f;--mtrl-sys-color-surface-container-low: #1f1c26;--mtrl-sys-color-surface-container: #292631;--mtrl-sys-color-surface-container-high: #34313c;--mtrl-sys-color-surface-container-highest: #403c47;--mtrl-sys-color-on-surface-variant: #e1d9eb;--mtrl-sys-color-outline: #b6afc0;--mtrl-sys-color-outline-variant: #948e9e;--mtrl-sys-color-inverse-on-surface: #2c2833}[data-theme=vibrant][data-theme-contrast=high]:not([data-theme-mode=dark]){--mtrl-sys-color-error: #600004;--mtrl-sys-color-error-container: #98000a;--mtrl-sys-color-primary: #350087;--mtrl-sys-color-primary-container: #5700d2;--mtrl-sys-color-secondary: #362543;--mtrl-sys-color-secondary-container: #554262;--mtrl-sys-color-tertiary: #421e45;--mtrl-sys-color-tertiary-container: #623b64;--mtrl-sys-color-primary-fixed: #5700d2;--mtrl-sys-color-primary-fixed-dim: #3d0098;--mtrl-sys-color-secondary-fixed: #554262;--mtrl-sys-color-secondary-fixed-dim: #3d2b4a;--mtrl-sys-color-tertiary-fixed: #623b64;--mtrl-sys-color-tertiary-fixed-dim: #49254c;--mtrl-sys-color-surface-dim: #bdb6c4;--mtrl-sys-color-surface-container-low: #f5eefd;--mtrl-sys-color-surface-container: #e7e0ef;--mtrl-sys-color-surface-container-high: #d9d2e0;--mtrl-sys-color-surface-container-highest: #cbc4d2;--mtrl-sys-color-on-surface: #000000;--mtrl-sys-color-on-surface-variant: #000000;--mtrl-sys-color-outline: #2e2a38;--mtrl-sys-color-outline-variant: #4c4755;--mtrl-sys-color-inverse-on-surface: #ffffff}[data-theme=vibrant][data-theme-contrast=high][data-theme-mode=dark]{--mtrl-sys-color-error: #ffece9;--mtrl-sys-color-on-error: #000000;--mtrl-sys-color-error-container: #ffaea4;--mtrl-sys-color-on-error-container: #220001;--mtrl-sys-color-primary: #f5edff;--mtrl-sys-color-on-primary: #000000;--mtrl-sys-color-primary-container: #ccb8ff;--mtrl-sys-color-on-primary-container: #0f0033;--mtrl-sys-color-secondary: #faebff;--mtrl-sys-color-on-secondary: #000000;--mtrl-sys-color-secondary-container: #d3bae0;--mtrl-sys-color-on-secondary-container: #140420;--mtrl-sys-color-tertiary: #ffeafa;--mtrl-sys-color-on-tertiary: #000000;--mtrl-sys-color-tertiary-container: #e4b3e3;--mtrl-sys-color-on-tertiary-container: #1b0020;--mtrl-sys-color-on-primary-fixed: #000000;--mtrl-sys-color-on-primary-fixed-variant: #160042;--mtrl-sys-color-on-secondary-fixed: #000000;--mtrl-sys-color-on-secondary-fixed-variant: #1a0926;--mtrl-sys-color-on-tertiary-fixed: #000000;--mtrl-sys-color-on-tertiary-fixed-variant: #230328;--mtrl-sys-color-surface-bright: #524e5a;--mtrl-sys-color-surface-container-lowest: #000000;--mtrl-sys-color-surface-container-low: #211e28;--mtrl-sys-color-surface-container: #322f3a;--mtrl-sys-color-surface-container-high: #3d3a45;--mtrl-sys-color-surface-container-highest: #494551;--mtrl-sys-color-on-surface-variant: #ffffff;--mtrl-sys-color-outline: #f5edff;--mtrl-sys-color-outline-variant: #c7bfd1;--mtrl-sys-color-inverse-on-surface: #000000}
|
package/dist/themes/vibrant.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! material v3.0.
|
|
1
|
+
/*! material v3.0.3 | MIT */
|
|
2
2
|
[data-theme=vibrant]{--mtrl-sys-color-error: #B3261E;--mtrl-sys-color-on-error: #FFFFFF;--mtrl-sys-color-error-container: #F9DEDC;--mtrl-sys-color-on-error-container: #410E0B;--mtrl-sys-color-success: #006C4E;--mtrl-sys-color-on-success: #FFFFFF;--mtrl-sys-color-warning: #974800;--mtrl-sys-color-on-warning: #FFFFFF;--mtrl-sys-color-info: #0061A4;--mtrl-sys-color-on-info: #FFFFFF;--mtrl-sys-color-error: #ba1a1a;--mtrl-sys-color-on-error: #ffffff;--mtrl-sys-color-error-container: #ffdad6;--mtrl-sys-color-on-error-container: #93000a;--mtrl-sys-color-primary: #6f19ff;--mtrl-sys-color-on-primary: #ffffff;--mtrl-sys-color-primary-container: #e9ddff;--mtrl-sys-color-on-primary-container: #5400cc;--mtrl-sys-color-secondary: #6b5778;--mtrl-sys-color-on-secondary: #ffffff;--mtrl-sys-color-secondary-container: #f3daff;--mtrl-sys-color-on-secondary-container: #523f5f;--mtrl-sys-color-tertiary: #79507a;--mtrl-sys-color-on-tertiary: #ffffff;--mtrl-sys-color-tertiary-container: #ffd6fc;--mtrl-sys-color-on-tertiary-container: #5f3961;--mtrl-sys-color-primary-fixed: #e9ddff;--mtrl-sys-color-primary-fixed-dim: #cfbcff;--mtrl-sys-color-on-primary-fixed: #22005d;--mtrl-sys-color-on-primary-fixed-variant: #5400cc;--mtrl-sys-color-secondary-fixed: #f3daff;--mtrl-sys-color-secondary-fixed-dim: #d7bee4;--mtrl-sys-color-on-secondary-fixed: #251431;--mtrl-sys-color-on-secondary-fixed-variant: #523f5f;--mtrl-sys-color-tertiary-fixed: #ffd6fc;--mtrl-sys-color-tertiary-fixed-dim: #e8b7e7;--mtrl-sys-color-on-tertiary-fixed: #2f0d33;--mtrl-sys-color-on-tertiary-fixed-variant: #5f3961;--mtrl-sys-color-surface: #fdf7ff;--mtrl-sys-color-surface-dim: #ded7e6;--mtrl-sys-color-surface-bright: #fdf7ff;--mtrl-sys-color-surface-variant: #e7dff2;--mtrl-sys-color-surface-container-lowest: #ffffff;--mtrl-sys-color-surface-container-low: #f8f1ff;--mtrl-sys-color-surface-container: #f2ebfa;--mtrl-sys-color-surface-container-high: #ede5f4;--mtrl-sys-color-surface-container-highest: #e7e0ef;--mtrl-sys-color-on-surface: #1d1a24;--mtrl-sys-color-on-surface-variant: #494453;--mtrl-sys-color-outline: #7a7484;--mtrl-sys-color-outline-variant: #cbc3d5;--mtrl-sys-color-shadow: #000000;--mtrl-sys-color-scrim: #000000;--mtrl-sys-color-inverse-surface: #322f3a;--mtrl-sys-color-inverse-on-surface: #f5eefd;--mtrl-sys-color-inverse-primary: #cfbcff}[data-theme=vibrant][data-theme-mode=dark]{--mtrl-sys-color-error: #F2B8B5;--mtrl-sys-color-on-error: #601410;--mtrl-sys-color-error-container: #8C1D18;--mtrl-sys-color-on-error-container: #F9DEDC;--mtrl-sys-color-success: #8CD6AF;--mtrl-sys-color-on-success: #003824;--mtrl-sys-color-warning: #FFB95C;--mtrl-sys-color-on-warning: #462A00;--mtrl-sys-color-info: #99CBFF;--mtrl-sys-color-on-info: #003355;--mtrl-sys-color-error: #ffb4ab;--mtrl-sys-color-on-error: #690005;--mtrl-sys-color-error-container: #93000a;--mtrl-sys-color-on-error-container: #ffdad6;--mtrl-sys-color-primary: #cfbcff;--mtrl-sys-color-on-primary: #3a0092;--mtrl-sys-color-primary-container: #5400cc;--mtrl-sys-color-on-primary-container: #e9ddff;--mtrl-sys-color-secondary: #d7bee4;--mtrl-sys-color-on-secondary: #3b2948;--mtrl-sys-color-secondary-container: #523f5f;--mtrl-sys-color-on-secondary-container: #f3daff;--mtrl-sys-color-tertiary: #e8b7e7;--mtrl-sys-color-on-tertiary: #462349;--mtrl-sys-color-tertiary-container: #5f3961;--mtrl-sys-color-on-tertiary-container: #ffd6fc;--mtrl-sys-color-primary-fixed: #e9ddff;--mtrl-sys-color-primary-fixed-dim: #cfbcff;--mtrl-sys-color-on-primary-fixed: #22005d;--mtrl-sys-color-on-primary-fixed-variant: #5400cc;--mtrl-sys-color-secondary-fixed: #f3daff;--mtrl-sys-color-secondary-fixed-dim: #d7bee4;--mtrl-sys-color-on-secondary-fixed: #251431;--mtrl-sys-color-on-secondary-fixed-variant: #523f5f;--mtrl-sys-color-tertiary-fixed: #ffd6fc;--mtrl-sys-color-tertiary-fixed-dim: #e8b7e7;--mtrl-sys-color-on-tertiary-fixed: #2f0d33;--mtrl-sys-color-on-tertiary-fixed-variant: #5f3961;--mtrl-sys-color-surface: #15121c;--mtrl-sys-color-surface-dim: #15121c;--mtrl-sys-color-surface-bright: #3b3743;--mtrl-sys-color-surface-variant: #494453;--mtrl-sys-color-surface-container-lowest: #0f0d16;--mtrl-sys-color-surface-container-low: #1d1a24;--mtrl-sys-color-surface-container: #211e28;--mtrl-sys-color-surface-container-high: #2c2833;--mtrl-sys-color-surface-container-highest: #37333e;--mtrl-sys-color-on-surface: #e7e0ef;--mtrl-sys-color-on-surface-variant: #cbc3d5;--mtrl-sys-color-outline: #948e9f;--mtrl-sys-color-outline-variant: #494453;--mtrl-sys-color-shadow: #000000;--mtrl-sys-color-scrim: #000000;--mtrl-sys-color-inverse-surface: #e7e0ef;--mtrl-sys-color-inverse-on-surface: #322f3a;--mtrl-sys-color-inverse-primary: #6f19ff}@media(prefers-contrast: more){[data-theme=vibrant]:not([data-theme-contrast]):not([data-theme-mode=dark]){--mtrl-sys-color-error: #600004;--mtrl-sys-color-error-container: #98000a;--mtrl-sys-color-on-error-container: #ffffff;--mtrl-sys-color-primary: #350087;--mtrl-sys-color-primary-container: #5700d2;--mtrl-sys-color-on-primary-container: #ffffff;--mtrl-sys-color-secondary: #362543;--mtrl-sys-color-secondary-container: #554262;--mtrl-sys-color-on-secondary-container: #ffffff;--mtrl-sys-color-tertiary: #421e45;--mtrl-sys-color-tertiary-container: #623b64;--mtrl-sys-color-on-tertiary-container: #ffffff;--mtrl-sys-color-primary-fixed: #5700d2;--mtrl-sys-color-primary-fixed-dim: #3d0098;--mtrl-sys-color-on-primary-fixed: #ffffff;--mtrl-sys-color-on-primary-fixed-variant: #ffffff;--mtrl-sys-color-secondary-fixed: #554262;--mtrl-sys-color-secondary-fixed-dim: #3d2b4a;--mtrl-sys-color-on-secondary-fixed: #ffffff;--mtrl-sys-color-on-secondary-fixed-variant: #ffffff;--mtrl-sys-color-tertiary-fixed: #623b64;--mtrl-sys-color-tertiary-fixed-dim: #49254c;--mtrl-sys-color-on-tertiary-fixed: #ffffff;--mtrl-sys-color-on-tertiary-fixed-variant: #ffffff;--mtrl-sys-color-surface-dim: #bdb6c4;--mtrl-sys-color-surface-container-low: #f5eefd;--mtrl-sys-color-surface-container: #e7e0ef;--mtrl-sys-color-surface-container-high: #d9d2e0;--mtrl-sys-color-surface-container-highest: #cbc4d2;--mtrl-sys-color-on-surface: #000000;--mtrl-sys-color-on-surface-variant: #000000;--mtrl-sys-color-outline: #2e2a38;--mtrl-sys-color-outline-variant: #4c4755;--mtrl-sys-color-inverse-on-surface: #ffffff}[data-theme=vibrant]:not([data-theme-contrast])[data-theme-mode=dark]{--mtrl-sys-color-error: #ffece9;--mtrl-sys-color-on-error: #000000;--mtrl-sys-color-error-container: #ffaea4;--mtrl-sys-color-on-error-container: #220001;--mtrl-sys-color-primary: #f5edff;--mtrl-sys-color-on-primary: #000000;--mtrl-sys-color-primary-container: #ccb8ff;--mtrl-sys-color-on-primary-container: #0f0033;--mtrl-sys-color-secondary: #faebff;--mtrl-sys-color-on-secondary: #000000;--mtrl-sys-color-secondary-container: #d3bae0;--mtrl-sys-color-on-secondary-container: #140420;--mtrl-sys-color-tertiary: #ffeafa;--mtrl-sys-color-on-tertiary: #000000;--mtrl-sys-color-tertiary-container: #e4b3e3;--mtrl-sys-color-on-tertiary-container: #1b0020;--mtrl-sys-color-on-primary-fixed: #000000;--mtrl-sys-color-on-primary-fixed-variant: #160042;--mtrl-sys-color-on-secondary-fixed: #000000;--mtrl-sys-color-on-secondary-fixed-variant: #1a0926;--mtrl-sys-color-on-tertiary-fixed: #000000;--mtrl-sys-color-on-tertiary-fixed-variant: #230328;--mtrl-sys-color-surface-bright: #524e5a;--mtrl-sys-color-surface-container-lowest: #000000;--mtrl-sys-color-surface-container-low: #211e28;--mtrl-sys-color-surface-container: #322f3a;--mtrl-sys-color-surface-container-high: #3d3a45;--mtrl-sys-color-surface-container-highest: #494551;--mtrl-sys-color-on-surface: #ffffff;--mtrl-sys-color-on-surface-variant: #ffffff;--mtrl-sys-color-outline: #f5edff;--mtrl-sys-color-outline-variant: #c7bfd1;--mtrl-sys-color-inverse-on-surface: #000000;--mtrl-sys-color-inverse-primary: #5500cf}}
|
package/dist/vue/create.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* template and the light DOM from a single pass over the slots, including an
|
|
14
14
|
* `async setup()` child under Suspense. The client renders the slots and not
|
|
15
15
|
* the template: the HTML parser has already moved that template into the
|
|
16
|
-
* shadow root. Without the import the markup is unchanged
|
|
16
|
+
* shadow root. Without the import the markup is unchanged.
|
|
17
17
|
*
|
|
18
18
|
* @module vue
|
|
19
19
|
*/
|
|
@@ -80,7 +80,7 @@ export interface Exposed<E extends HTMLElement> {
|
|
|
80
80
|
* element its template ref exposes as `element` (see `Exposed`).
|
|
81
81
|
*/
|
|
82
82
|
export type MComponent<S, _E extends HTMLElement> = DefineSetupFnComponent<VueProps<S>, VueEmits<S>, VueSlots<S>>;
|
|
83
|
-
/** Its slots: the default one, and each named slot the element reads (`<template #actions
|
|
83
|
+
/** Its slots: the default one, and each named slot the element reads (`<template #actions>`). */
|
|
84
84
|
export type VueSlots<S> = SlotsType<{
|
|
85
85
|
default?: () => VNodeChild;
|
|
86
86
|
} & {
|
package/dist/vue/create.js
CHANGED
|
@@ -103,8 +103,11 @@ export const createComponent = (spec, define, name) => {
|
|
|
103
103
|
const rendered = typeof inner === "string"
|
|
104
104
|
? inner.startsWith("<template shadowrootmode=")
|
|
105
105
|
: !staticallyOptedOut;
|
|
106
|
-
if (rendered)
|
|
106
|
+
if (rendered) {
|
|
107
107
|
hostProps[RENDERED_HOST_ATTRIBUTE] = "";
|
|
108
|
+
if (spec.marker)
|
|
109
|
+
hostProps[spec.marker] = "";
|
|
110
|
+
}
|
|
108
111
|
if (typeof inner !== "string") {
|
|
109
112
|
const held = createStaticVNode("", 1);
|
|
110
113
|
held.children = inner;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "material",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
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",
|
|
@@ -31,7 +31,7 @@ $icons: (
|
|
|
31
31
|
@mixin typography($scale) {
|
|
32
32
|
$styles: f.get-typography($scale);
|
|
33
33
|
// The role's face as its reference token, the compiled family as the fallback
|
|
34
|
-
//
|
|
34
|
+
// An app or theme sets --{prefix}-ref-typeface-brand or -plain
|
|
35
35
|
font-family: var(--#{base.$prefix}-ref-typeface-#{f.typeface($scale)}, #{map.get($styles, 'font-family')});
|
|
36
36
|
font-size: map.get($styles, 'font-size');
|
|
37
37
|
line-height: map.get($styles, 'line-height');
|
|
@@ -39,7 +39,7 @@ $icons: (
|
|
|
39
39
|
font-weight: map.get($styles, 'font-weight');
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
/// A typescale role through its custom properties
|
|
42
|
+
/// A typescale role through its custom properties: the
|
|
43
43
|
/// `--{prefix}-sys-typescale-{role}-*` tokens base/_tokens.scss emits from the
|
|
44
44
|
/// same map, so setting `--{prefix}-ref-typeface-brand`/`-plain`, or a size
|
|
45
45
|
/// token, reaches everything that uses it.
|
|
@@ -65,7 +65,7 @@ $icons: (
|
|
|
65
65
|
position: relative;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// The ripple is the press (
|
|
68
|
+
// The ripple is the press (as Compose draws it: one pressed indication at
|
|
69
69
|
// 0.10). An element that carries a ripple leaves its pressed layer to the wave, so
|
|
70
70
|
// the two no longer add up to about 0.18; one without a ripple keeps it.
|
|
71
71
|
@if $state == 'pressed' {
|
|
@@ -366,7 +366,7 @@ $sheet-overshoot-guard: 32px;
|
|
|
366
366
|
&::after {
|
|
367
367
|
content: '';
|
|
368
368
|
position: absolute;
|
|
369
|
-
// Centred physically, as the icon button's own rule is
|
|
369
|
+
// Centred physically, as the icon button's own rule is. The
|
|
370
370
|
// translate is physical, so the offsets must be: a logical inline-start
|
|
371
371
|
// inset pinned the box's inline-start edge to the centre, and the translate
|
|
372
372
|
// then moved the whole box a further 24px past it — a full box-width off
|
|
@@ -35,7 +35,7 @@ $mtrl-sys-motion: (
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* A colour role at an opacity, as color-mix on the role's custom property.
|
|
38
|
-
* The themes define the colour roles only (no `-rgb` twins
|
|
38
|
+
* The themes define the colour roles only (no `-rgb` twins).
|
|
39
39
|
* @param {String} $key - Color token name
|
|
40
40
|
* @param {Number} $opacity - Opacity value (0-1)
|
|
41
41
|
* @return {String} color-mix CSS function with variable
|
|
@@ -85,7 +85,7 @@ $motion: (
|
|
|
85
85
|
'spring-fast-spatial-easing': spring-linear($spring-fast-spatial-points),
|
|
86
86
|
// The same spring with its progress clamped to 1, for colours: Compose's
|
|
87
87
|
// Color.lerp clamps the fraction, so an overshooting spring never takes a
|
|
88
|
-
// colour past its target
|
|
88
|
+
// colour past its target
|
|
89
89
|
'spring-fast-spatial-clamped-easing': spring-linear($spring-fast-spatial-points, $clamp: true),
|
|
90
90
|
'spring-slow-spatial-duration': 625ms,
|
|
91
91
|
'spring-slow-spatial-easing': linear(0.0, 0.056, 0.182, 0.335, 0.488, 0.624, 0.738, 0.827, 0.895, 0.943, 0.975, 0.996, 1.007, 1.013, 1.015, 1.015, 1.013, 1.011, 1.008, 1.006, 1.004, 1.003, 1.002, 1.001, 1),
|
|
@@ -214,7 +214,7 @@ $typescale: (
|
|
|
214
214
|
)
|
|
215
215
|
) !default;
|
|
216
216
|
|
|
217
|
-
// M3's shape scale, Compose ShapeTokens, and nothing else
|
|
217
|
+
// M3's shape scale, Compose ShapeTokens, and nothing else
|
|
218
218
|
$shape: (
|
|
219
219
|
'none': 0,
|
|
220
220
|
'extra-small': 4px,
|
|
@@ -226,7 +226,7 @@ $shape: (
|
|
|
226
226
|
'large-increased': 20px,
|
|
227
227
|
'extra-large': 28px,
|
|
228
228
|
// Compose ShapeTokens.CornerValueExtraLargeIncreased and
|
|
229
|
-
// CornerValueExtraExtraLarge
|
|
229
|
+
// CornerValueExtraExtraLarge
|
|
230
230
|
'extra-large-increased': 32px,
|
|
231
231
|
'extra-extra-large': 48px,
|
|
232
232
|
'full': 9999px
|
|
@@ -390,12 +390,12 @@ $spacing-scale: (
|
|
|
390
390
|
@return map.get($typescale, $scale);
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
// A corner as its token, the compiled value as the fallback
|
|
393
|
+
// A corner as its token, the compiled value as the fallback: an app or
|
|
394
394
|
// theme sets --{prefix}-sys-shape-corner-<size> (base/_tokens.scss declares them)
|
|
395
395
|
@function shape($size) {
|
|
396
396
|
@if not map.has-key($shape, $size) {
|
|
397
397
|
@error "No shape step '#{$size}'. M3's scale: #{map.keys($shape)}. "
|
|
398
|
-
+ "extra-tiny, tiny and pill were removed in material 3.0.0: write a literal radius, or use full
|
|
398
|
+
+ "extra-tiny, tiny and pill were removed in material 3.0.0: write a literal radius, or use full.";
|
|
399
399
|
}
|
|
400
400
|
@return var(--#{$prefix}-sys-shape-corner-#{$size}, #{map.get($shape, $size)});
|
|
401
401
|
}
|
|
@@ -450,7 +450,7 @@ $text-field: (
|
|
|
450
450
|
// than text fields", text fields guidelines, "Input text").
|
|
451
451
|
'height-multiline': 100px,
|
|
452
452
|
// Where the first line starts, which a sibling on the field's line aligns
|
|
453
|
-
// to: the single-line field's text
|
|
453
|
+
// to: the single-line field's text. 16px, the content padding
|
|
454
454
|
// (TextFieldPadding), outlined or without a label; under a filled field's
|
|
455
455
|
// floated label, 8px and the label's 16px line.
|
|
456
456
|
'padding-top-multiline': 16px,
|
|
@@ -468,7 +468,7 @@ $text-field: (
|
|
|
468
468
|
) !default;
|
|
469
469
|
|
|
470
470
|
/// A text field measurement: `v.text-field('height')`. 0.10's `$textfield` and
|
|
471
|
-
/// `textfield()` are removed in material 3.0.0
|
|
471
|
+
/// `textfield()` are removed in material 3.0.0.
|
|
472
472
|
@function text-field($key) {
|
|
473
473
|
@if $key == 'border-radius' { @return shape('extra-small'); }
|
|
474
474
|
@return map.get($text-field, $key);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Tokens on the base stylesheet: shape, the two typefaces, and the three
|
|
2
2
|
// body-medium typescale tokens the body rule reads. The rest of the
|
|
3
|
-
// typescale is material/styles/typography
|
|
3
|
+
// typescale is material/styles/typography.
|
|
4
4
|
@use "tokens" with ($typescale-tokens: "body");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// The typescale custom properties, one mixin so the full stylesheet, the base
|
|
2
2
|
// and material/styles/typography emit the same declarations.
|
|
3
3
|
// `all` is every role. `body` is the three body-medium tokens the base body
|
|
4
|
-
// rule reads; the other 72 leave the base
|
|
4
|
+
// rule reads; the other 72 leave the base.
|
|
5
5
|
|
|
6
6
|
@use 'sass:map';
|
|
7
7
|
@use '../abstract/base' as base;
|
|
@@ -8,7 +8,7 @@ $prefix: base.$prefix;
|
|
|
8
8
|
|
|
9
9
|
// The typescale classes, one per role of the same map the tokens come from,
|
|
10
10
|
// each reading its role's custom properties rather than fixed values, so a
|
|
11
|
-
// typeface or size set on the tokens reaches them
|
|
11
|
+
// typeface or size set on the tokens reaches them
|
|
12
12
|
@each $role, $spec in v.$typescale {
|
|
13
13
|
.#{$prefix}-#{$role} {
|
|
14
14
|
@include m.typescale($role);
|
|
@@ -88,7 +88,7 @@ $component: "#{base.$prefix}-bottom-sheet";
|
|
|
88
88
|
|
|
89
89
|
// A 48dp button (Compose: 22dp vertical padding round the 4dp bar, and the
|
|
90
90
|
// minimum interactive size) drawing the 32x4dp bar
|
|
91
|
-
// (DockedDragHandleWidth / DockedDragHandleHeight)
|
|
91
|
+
// (DockedDragHandleWidth / DockedDragHandleHeight)
|
|
92
92
|
&__handle {
|
|
93
93
|
flex: 0 0 auto;
|
|
94
94
|
position: relative;
|
|
@@ -116,7 +116,7 @@ $content-color: (
|
|
|
116
116
|
// State layer: one ::before in currentColor, the content role each colour
|
|
117
117
|
// style and toggle state sets as `color`. Hover, focus and pressed change
|
|
118
118
|
// only its opacity (m3.material.io state layers: 0.08, 0.10, 0.10). The
|
|
119
|
-
// ripple is the press
|
|
119
|
+
// ripple is the press: a button that carries one leaves its
|
|
120
120
|
// pressed layer to the wave, as m.state-layer does.
|
|
121
121
|
&::before {
|
|
122
122
|
content: '';
|
|
@@ -48,14 +48,14 @@ $component: '#{base.$prefix}-checkbox';
|
|
|
48
48
|
|
|
49
49
|
// The box: 18dp, a 2dp corner and a 2dp on-surface-variant outline, with no fill
|
|
50
50
|
// until selected (CheckboxTokens, md-comp-checkbox). It carried a
|
|
51
|
-
// surface-container-highest fill and an outline-coloured stroke.
|
|
51
|
+
// surface-container-highest fill and an outline-coloured stroke.
|
|
52
52
|
&__icon {
|
|
53
53
|
position: relative;
|
|
54
54
|
flex-shrink: 0;
|
|
55
55
|
width: 18px;
|
|
56
56
|
height: 18px;
|
|
57
57
|
box-sizing: border-box;
|
|
58
|
-
// CheckboxTokens.ContainerShape: 2dp, outside the shape scale
|
|
58
|
+
// CheckboxTokens.ContainerShape: 2dp, outside the shape scale
|
|
59
59
|
border-radius: 2px;
|
|
60
60
|
background-color: transparent;
|
|
61
61
|
border: 2px solid t.color('on-surface-variant');
|
|
@@ -134,7 +134,7 @@ $component: '#{base.$prefix}-checkbox';
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
// Error (m3: "those states on error"): the outline, the selected container and
|
|
137
|
-
// every state layer are error, the check and dash on-error.
|
|
137
|
+
// every state layer are error, the check and dash on-error.
|
|
138
138
|
&--error {
|
|
139
139
|
.#{$component}__icon {
|
|
140
140
|
border-color: t.color('error');
|
|
@@ -158,7 +158,7 @@ $component: '#{base.$prefix}-checkbox';
|
|
|
158
158
|
// Disabled state. Per role, not a blanket opacity: CheckboxTokens gives the
|
|
159
159
|
// unselected outline and the selected container OnSurface at 0.38, and the selected
|
|
160
160
|
// checkmark Surface at full opacity. The indeterminate dash follows the check: it
|
|
161
|
-
// was an on-primary dash on a transparent box, which painted nothing.
|
|
161
|
+
// was an on-primary dash on a transparent box, which painted nothing.
|
|
162
162
|
&--disabled {
|
|
163
163
|
.#{$component}__input {
|
|
164
164
|
cursor: not-allowed;
|
|
@@ -191,7 +191,7 @@ $component: '#{base.$prefix}-checkbox';
|
|
|
191
191
|
// State layers (md-comp-checkbox). Unselected: on-surface on hover and focus, and
|
|
192
192
|
// the outline turns on-surface; selected: primary. A press takes the colour of the
|
|
193
193
|
// state it leads to (unselected presses primary, selected presses on-surface), and
|
|
194
|
-
// error is error throughout. Checked hover used the pressed opacity.
|
|
194
|
+
// error is error throughout. Checked hover used the pressed opacity.
|
|
195
195
|
&:not(&--disabled) {
|
|
196
196
|
$input: '.#{$component}__input';
|
|
197
197
|
$layer: '.#{$component}__icon::before';
|
|
@@ -25,7 +25,7 @@ $container: "#{base.$prefix}-chips";
|
|
|
25
25
|
max-width: 100%;
|
|
26
26
|
// The outline is drawn over the container, as Compose draws a chip's border, so
|
|
27
27
|
// it takes no room: as a 1px border it moved every padding 1px further in than
|
|
28
|
-
// M3 measures (the remove icon sat 9px from the edge).
|
|
28
|
+
// M3 measures (the remove icon sat 9px from the edge).
|
|
29
29
|
border: 0;
|
|
30
30
|
outline: 1px solid t.color("outline-variant");
|
|
31
31
|
outline-offset: -1px;
|
|
@@ -59,11 +59,11 @@ $container: "#{base.$prefix}-chips";
|
|
|
59
59
|
margin: 0;
|
|
60
60
|
border-radius: inherit;
|
|
61
61
|
&:disabled { cursor: default; }
|
|
62
|
-
// md.comp.focus-ring: 3dp at a 2dp outward offset (it was 2px).
|
|
62
|
+
// md.comp.focus-ring: 3dp at a 2dp outward offset (it was 2px).
|
|
63
63
|
&:focus-visible { outline: 3px solid t.color("secondary"); outline-offset: 2px; }
|
|
64
64
|
}
|
|
65
65
|
// The 8dp between an icon and the label is the icon's margin, not the action's
|
|
66
|
-
// gap, so it can open and close with the icon
|
|
66
|
+
// gap, so it can open and close with the icon.
|
|
67
67
|
&__action {
|
|
68
68
|
flex-shrink: 1;
|
|
69
69
|
min-width: 0;
|
|
@@ -77,7 +77,7 @@ $container: "#{base.$prefix}-chips";
|
|
|
77
77
|
&--input.#{$component}--avatar &__action { padding-inline-start: 4px; }
|
|
78
78
|
// The remove icon sits 8dp from the label (the action's end padding) and 8dp from
|
|
79
79
|
// the chip's edge (site, Compose): 18 + 8, the icon at the start.
|
|
80
|
-
// A filter chip's trailing button
|
|
80
|
+
// A filter chip's trailing button takes the same place and target.
|
|
81
81
|
&__remove, &__trailing-action {
|
|
82
82
|
width: calc(#{v.chip("icon-size")} + 8px);
|
|
83
83
|
padding: 0;
|
|
@@ -117,7 +117,7 @@ $container: "#{base.$prefix}-chips";
|
|
|
117
117
|
// Only under --motion, which the chip sets on its first change after it was made:
|
|
118
118
|
// @starting-style also applies to an element's first render, so without it every
|
|
119
119
|
// chip grew its icons on page load. A chip appears finished and animates what
|
|
120
|
-
// changes after.
|
|
120
|
+
// changes after.
|
|
121
121
|
&--motion &__action {
|
|
122
122
|
transition: m.spring(padding-inline-start, fast-spatial), m.spring(padding-inline-end, fast-spatial);
|
|
123
123
|
}
|
|
@@ -171,7 +171,7 @@ $container: "#{base.$prefix}-chips";
|
|
|
171
171
|
&:is(:has(:focus-visible), :focus-visible):not(.#{$component}--disabled):not(.#{$component}--selected):not(.#{$component}--elevated):not(.#{$component}--pointer-focus) { outline-color: t.color("on-surface-variant"); }
|
|
172
172
|
&--assist:is(:has(:focus-visible), :focus-visible):not(.#{$component}--disabled):not(.#{$component}--elevated):not(.#{$component}--pointer-focus) { outline-color: t.color("on-surface"); }
|
|
173
173
|
// A focused cell draws the focus ring itself: its outline is the chip's stroke, so
|
|
174
|
-
// the ring is a ::before 2dp outside the chip, 3dp wide.
|
|
174
|
+
// the ring is a ::before 2dp outside the chip, 3dp wide.
|
|
175
175
|
&:focus-visible:not(.#{$component}--pointer-focus)::before {
|
|
176
176
|
content: "";
|
|
177
177
|
position: absolute;
|
|
@@ -190,13 +190,13 @@ $container: "#{base.$prefix}-chips";
|
|
|
190
190
|
opacity: 0;
|
|
191
191
|
}
|
|
192
192
|
&:hover:not(.#{$component}--disabled)::after { opacity: v.state("hover-state-layer-opacity"); }
|
|
193
|
-
// Keyboard focus only: a click leaves no focus layer
|
|
193
|
+
// Keyboard focus only: a click leaves no focus layer.
|
|
194
194
|
&:is(:has(:focus-visible), :focus-visible):not(.#{$component}--disabled):not(.#{$component}--pointer-focus)::after { opacity: v.state("focus-state-layer-opacity"); }
|
|
195
|
-
// A press on a rippled action is the ripple's to draw
|
|
195
|
+
// A press on a rippled action is the ripple's to draw; the remove and
|
|
196
196
|
// trailing buttons have none, so a press on them keeps the layer.
|
|
197
197
|
&:active:not(.#{$component}--disabled):not(:has(> .#{$component}__action:active > .#{base.$prefix}-ripple))::after { opacity: v.state("pressed-state-layer-opacity"); }
|
|
198
198
|
// Dragged (Compose DraggedContainerElevation Level4, DraggedStateLayerOpacity),
|
|
199
|
-
// set while an app drags a draggable chip.
|
|
199
|
+
// set while an app drags a draggable chip.
|
|
200
200
|
&--dragged { box-shadow: f.get-elevation(4); }
|
|
201
201
|
&--dragged:not(.#{$component}--disabled)::after { opacity: v.state("dragged-state-layer-opacity"); }
|
|
202
202
|
&--disabled {
|
|
@@ -13,7 +13,7 @@ $component: '#{base.$prefix}-datepicker';
|
|
|
13
13
|
width: 100%;
|
|
14
14
|
max-width: 360px;
|
|
15
15
|
// Where it shrinks to fit (an element's host), 280px as the text field,
|
|
16
|
-
// not its input's platform-dependent width
|
|
16
|
+
// not its input's platform-dependent width.
|
|
17
17
|
contain: inline-size;
|
|
18
18
|
contain-intrinsic-inline-size: v.text-field('width');
|
|
19
19
|
color: t.color('on-surface');
|
|
@@ -46,7 +46,6 @@ $component: '#{base.$prefix}-datepicker';
|
|
|
46
46
|
&--modal { position: fixed; inset: 0; margin: auto; }
|
|
47
47
|
// Full screen (m3.material.io: recommended on compact screens; the range picker's
|
|
48
48
|
// form): the whole viewport, no corners, level 0 (range-selection.container tokens).
|
|
49
|
-
// FLO-276.
|
|
50
49
|
&--fullscreen {
|
|
51
50
|
width: 100%; max-width: none; height: 100%; max-height: none;
|
|
52
51
|
border-radius: 0; box-shadow: none; overflow: hidden;
|
|
@@ -60,7 +59,7 @@ $component: '#{base.$prefix}-datepicker';
|
|
|
60
59
|
}
|
|
61
60
|
&__list { flex: 1; min-height: 0; position: relative; overflow-y: auto; overscroll-behavior: contain; }
|
|
62
61
|
&__subhead { @include m.typography('title-small'); color: t.color('on-surface-variant'); padding: 20px 24px 8px; }
|
|
63
|
-
// Docked: corner-large (16dp), where the dialogs are extra-large.
|
|
62
|
+
// Docked: corner-large (16dp), where the dialogs are extra-large.
|
|
64
63
|
&--docked { border-radius: v.shape('large'); }
|
|
65
64
|
&--docked { position: absolute; inset: auto; top: 100%; inset-inline-start: 0; margin: 8px 0 0; z-index: v.z-index('dropdown'); }
|
|
66
65
|
&__content { display: flex; flex-direction: column; }
|
|
@@ -88,10 +87,10 @@ $component: '#{base.$prefix}-datepicker';
|
|
|
88
87
|
&__trigger, &__mode-toggle, &__prev, &__next, &__close { display: inline-flex; align-items: center; justify-content: center; }
|
|
89
88
|
&--animate[open] { animation: #{$component}-appear v.motion('duration-short3') v.motion('easing-standard'); }
|
|
90
89
|
@media (prefers-reduced-motion: reduce) { &--animate[open] { animation: none; } }
|
|
91
|
-
// No bottom padding: the modal is Compose's 568dp, the footer included.
|
|
90
|
+
// No bottom padding: the modal is Compose's 568dp, the footer included.
|
|
92
91
|
&__days { padding: 0 var(--#{$component}-grid-inset); }
|
|
93
92
|
// The months' scroll-snapping track: one month per page, no visible scrollbar.
|
|
94
|
-
// Swipe, trackpad and wheel paging are the browser's own.
|
|
93
|
+
// Swipe, trackpad and wheel paging are the browser's own.
|
|
95
94
|
&__track {
|
|
96
95
|
display: flex; overflow-x: auto; overscroll-behavior-x: contain;
|
|
97
96
|
scroll-snap-type: x mandatory; scrollbar-width: none;
|
|
@@ -104,7 +103,7 @@ $component: '#{base.$prefix}-datepicker';
|
|
|
104
103
|
// The in-range band: a 40dp secondary-container strip, starting and ending at the
|
|
105
104
|
// centre of the endpoint circles, square, under the selection (Compose's
|
|
106
105
|
// drawRangeBackground); it was rounded to the cell edge. In-range days read
|
|
107
|
-
// on-secondary-container.
|
|
106
|
+
// on-secondary-container.
|
|
108
107
|
&__cell--range {
|
|
109
108
|
position: relative;
|
|
110
109
|
background: linear-gradient(transparent 4px, t.color('secondary-container') 4px, t.color('secondary-container') 44px, transparent 44px) no-repeat;
|
|
@@ -129,7 +128,7 @@ $component: '#{base.$prefix}-datepicker';
|
|
|
129
128
|
@include m.typography('body-large');
|
|
130
129
|
// ::before is the 40dp selection (fill, today's ring); ::after is the state layer
|
|
131
130
|
// above it: on-surface-variant, on-primary on the selected day, at 0.08 hover and
|
|
132
|
-
// 0.10 focus and pressed, with md.comp.focus-ring 2dp outside it.
|
|
131
|
+
// 0.10 focus and pressed, with md.comp.focus-ring 2dp outside it.
|
|
133
132
|
&::before, &::after { content: ''; position: absolute; z-index: -1; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; box-sizing: border-box; }
|
|
134
133
|
--#{$component}-day-layer: #{t.color('on-surface-variant')};
|
|
135
134
|
&:hover:not(:disabled)::after { background: color-mix(in srgb, var(--#{$component}-day-layer) #{v.state('hover-state-layer-opacity') * 100%}, transparent); }
|
|
@@ -143,7 +142,7 @@ $component: '#{base.$prefix}-datepicker';
|
|
|
143
142
|
}
|
|
144
143
|
&__months, &__years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding: 16px 24px; }
|
|
145
144
|
// The year list scrolls vertically within the calendar's own height (a weekday row
|
|
146
|
-
// and six weeks), so the picker keeps its size.
|
|
145
|
+
// and six weeks), so the picker keeps its size.
|
|
147
146
|
&__years { position: relative; box-sizing: border-box; height: 336px; overflow-y: auto; overscroll-behavior: contain; }
|
|
148
147
|
&__month, &__year {
|
|
149
148
|
position: relative; isolation: isolate; min-width: 0; height: 48px; border: 0; background: transparent;
|
|
@@ -156,7 +155,7 @@ $component: '#{base.$prefix}-datepicker';
|
|
|
156
155
|
&__fields { display: grid; gap: 16px; padding: 24px; }
|
|
157
156
|
&__field { display: flex; flex-direction: column; }
|
|
158
157
|
&__footer { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 12px; }
|
|
159
|
-
// The chevrons point the way the months go: mirrored right to left.
|
|
158
|
+
// The chevrons point the way the months go: mirrored right to left.
|
|
160
159
|
&__prev svg, &__next svg { &:dir(rtl) { transform: scaleX(-1); } }
|
|
161
160
|
&__cancel, &__confirm, &__save { @include m.typography('label-large'); padding: 0 12px; color: t.color('primary'); }
|
|
162
161
|
&__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
@@ -327,7 +327,7 @@ dialog.#{$component} {
|
|
|
327
327
|
height: 24px;
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
//
|
|
330
|
+
// The 40px button carries a 48px target, the icon button's own
|
|
331
331
|
// mechanism (its --xs/--s ::after): the box reaches 4px past each edge.
|
|
332
332
|
// m3.material.io, Density: "The default target size should be at least
|
|
333
333
|
// 48x48 CSS pixels".
|
|
@@ -399,7 +399,7 @@ $default-width: 360px;
|
|
|
399
399
|
&:active:not([disabled]) {
|
|
400
400
|
color: t.color("on-surface");
|
|
401
401
|
|
|
402
|
-
// A rippled item leaves the press to its ripple
|
|
402
|
+
// A rippled item leaves the press to its ripple.
|
|
403
403
|
&:not(:has(> .#{base.$prefix}-ripple))::before {
|
|
404
404
|
opacity: v.state("pressed-state-layer-opacity");
|
|
405
405
|
}
|
|
@@ -136,7 +136,7 @@ $swap: 48ms;
|
|
|
136
136
|
// Half the close button, not the full-shape token: the corner lerps from
|
|
137
137
|
// the FAB's 16/20/28dp to 28dp (Compose FabFinalCornerRadius). Towards
|
|
138
138
|
// 9999px it went round in one frame, and the spring's undershoot on
|
|
139
|
-
// closing took it below 0, a square corner
|
|
139
|
+
// closing took it below 0, a square corner.
|
|
140
140
|
border-radius: 28px;
|
|
141
141
|
background-color: var(--#{$component}-close);
|
|
142
142
|
color: var(--#{$component}-on-close);
|
|
@@ -201,7 +201,7 @@ $widths: (
|
|
|
201
201
|
opacity: 0.1;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
// Pressed state layer (10%), left to the ripple when there is one
|
|
204
|
+
// Pressed state layer (10%), left to the ripple when there is one
|
|
205
205
|
&:active:not(:has(> .#{base.$prefix}-ripple))::before {
|
|
206
206
|
opacity: 0.1;
|
|
207
207
|
}
|
|
@@ -331,25 +331,43 @@ $widths: (
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
// Shape morph on press - both round and square morph to pressed radius
|
|
334
|
+
// Shape morph on press - both round and square morph to pressed radius.
|
|
335
|
+
// A container can keep the resting shape instead (a toolbar does: see
|
|
336
|
+
// the toolbar rule in _toolbar.scss) through the icon button's own
|
|
337
|
+
// override, which an explicit --…-button-shape-pressed still beats.
|
|
335
338
|
&:active {
|
|
336
339
|
&.#{$component}--round {
|
|
337
|
-
border-radius: var(
|
|
340
|
+
border-radius: var(
|
|
341
|
+
--#{base.$prefix}-button-shape-pressed,
|
|
342
|
+
var(--#{base.$prefix}-icon-button-shape-pressed, get-size("s", pressed-radius))
|
|
343
|
+
);
|
|
338
344
|
|
|
339
345
|
&.#{$component}--xs {
|
|
340
|
-
border-radius: var(
|
|
346
|
+
border-radius: var(
|
|
347
|
+
--#{base.$prefix}-button-shape-pressed,
|
|
348
|
+
var(--#{base.$prefix}-icon-button-shape-pressed, get-size("xs", pressed-radius))
|
|
349
|
+
);
|
|
341
350
|
}
|
|
342
351
|
|
|
343
352
|
&.#{$component}--m {
|
|
344
|
-
border-radius: var(
|
|
353
|
+
border-radius: var(
|
|
354
|
+
--#{base.$prefix}-button-shape-pressed,
|
|
355
|
+
var(--#{base.$prefix}-icon-button-shape-pressed, get-size("m", pressed-radius))
|
|
356
|
+
);
|
|
345
357
|
}
|
|
346
358
|
|
|
347
359
|
&.#{$component}--l {
|
|
348
|
-
border-radius: var(
|
|
360
|
+
border-radius: var(
|
|
361
|
+
--#{base.$prefix}-button-shape-pressed,
|
|
362
|
+
var(--#{base.$prefix}-icon-button-shape-pressed, get-size("l", pressed-radius))
|
|
363
|
+
);
|
|
349
364
|
}
|
|
350
365
|
|
|
351
366
|
&.#{$component}--xl {
|
|
352
|
-
border-radius: var(
|
|
367
|
+
border-radius: var(
|
|
368
|
+
--#{base.$prefix}-button-shape-pressed,
|
|
369
|
+
var(--#{base.$prefix}-icon-button-shape-pressed, get-size("xl", pressed-radius))
|
|
370
|
+
);
|
|
353
371
|
}
|
|
354
372
|
}
|
|
355
373
|
|
|
@@ -492,26 +510,45 @@ $widths: (
|
|
|
492
510
|
// Shape morphs on selection (handled by selected class)
|
|
493
511
|
}
|
|
494
512
|
|
|
495
|
-
// Selected state - shape morphs (round becomes square, square becomes
|
|
513
|
+
// Selected state - shape morphs (round becomes square, square becomes
|
|
514
|
+
// round). Inside a toolbar the morph stays out: the toolbar pins the
|
|
515
|
+
// round radius through the icon button's own override (see the toolbar
|
|
516
|
+
// rule in _toolbar.scss), which an explicit
|
|
517
|
+
// --…-button-shape-selected still beats.
|
|
496
518
|
&--selected {
|
|
497
519
|
// Round buttons become square when selected
|
|
498
520
|
&.#{$component}--round:not(:active) {
|
|
499
|
-
border-radius: var(
|
|
521
|
+
border-radius: var(
|
|
522
|
+
--#{base.$prefix}-button-shape-selected,
|
|
523
|
+
var(--#{base.$prefix}-icon-button-shape-selected, get-size("s", square-radius))
|
|
524
|
+
);
|
|
500
525
|
|
|
501
526
|
&.#{$component}--xs {
|
|
502
|
-
border-radius: var(
|
|
527
|
+
border-radius: var(
|
|
528
|
+
--#{base.$prefix}-button-shape-selected,
|
|
529
|
+
var(--#{base.$prefix}-icon-button-shape-selected, get-size("xs", square-radius))
|
|
530
|
+
);
|
|
503
531
|
}
|
|
504
532
|
|
|
505
533
|
&.#{$component}--m {
|
|
506
|
-
border-radius: var(
|
|
534
|
+
border-radius: var(
|
|
535
|
+
--#{base.$prefix}-button-shape-selected,
|
|
536
|
+
var(--#{base.$prefix}-icon-button-shape-selected, get-size("m", square-radius))
|
|
537
|
+
);
|
|
507
538
|
}
|
|
508
539
|
|
|
509
540
|
&.#{$component}--l {
|
|
510
|
-
border-radius: var(
|
|
541
|
+
border-radius: var(
|
|
542
|
+
--#{base.$prefix}-button-shape-selected,
|
|
543
|
+
var(--#{base.$prefix}-icon-button-shape-selected, get-size("l", square-radius))
|
|
544
|
+
);
|
|
511
545
|
}
|
|
512
546
|
|
|
513
547
|
&.#{$component}--xl {
|
|
514
|
-
border-radius: var(
|
|
548
|
+
border-radius: var(
|
|
549
|
+
--#{base.$prefix}-button-shape-selected,
|
|
550
|
+
var(--#{base.$prefix}-icon-button-shape-selected, get-size("xl", square-radius))
|
|
551
|
+
);
|
|
515
552
|
}
|
|
516
553
|
}
|
|
517
554
|
|
|
@@ -313,7 +313,6 @@ $component: "#{$prefix}-menu";
|
|
|
313
313
|
height: 1px;
|
|
314
314
|
// The list is a flex column: in a menu that scrolls, a divider that
|
|
315
315
|
// may shrink is the one item without a minimum, and collapses to 0
|
|
316
|
-
// (FLO-273)
|
|
317
316
|
flex-shrink: 0;
|
|
318
317
|
margin: 8px 0;
|
|
319
318
|
background-color: t.color("outline-variant");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@use '../abstract/mixins' as m;
|
|
4
4
|
@use '../abstract/variables' as v;
|
|
5
5
|
|
|
6
|
-
// M3 Expressive navigation bar
|
|
6
|
+
// M3 Expressive navigation bar: Compose ShortNavigationBar with
|
|
7
7
|
// NavigationBarTokens, NavigationBarVerticalItemTokens and
|
|
8
8
|
// NavigationBarHorizontalItemTokens (v0_11_0); MDC-Android BottomNavigation as a
|
|
9
9
|
// cross-check. 64dp tall, surface container, no elevation (ShortNavigationBar
|