@angular/material 20.1.0-next.0 → 20.1.0-next.2
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/_index.scss +1 -2
- package/autocomplete/_autocomplete-theme.scss +28 -37
- package/autocomplete/_m2-autocomplete.scss +5 -2
- package/badge/_badge-theme.scss +35 -44
- package/badge/_m2-badge.scss +3 -2
- package/bottom-sheet/_bottom-sheet-theme.scss +28 -40
- package/bottom-sheet/_m2-bottom-sheet.scss +12 -11
- package/button/_button-theme.scss +37 -55
- package/button/_fab-theme.scss +42 -56
- package/button/_icon-button-theme.scss +30 -48
- package/button/_m2-button.scss +60 -59
- package/button/_m2-fab.scss +19 -15
- package/button/_m2-icon-button.scss +7 -5
- package/button/testing/index.d.ts +1 -0
- package/button-toggle/_button-toggle-theme.scss +29 -44
- package/button-toggle/_m2-button-toggle.scss +11 -17
- package/card/_card-theme.scss +28 -36
- package/card/_m2-card.scss +12 -14
- package/checkbox/_checkbox-theme.scss +35 -50
- package/checkbox/_m2-checkbox.scss +8 -8
- package/chips/_chips-theme.scss +24 -30
- package/chips/_m2-chip.scss +12 -28
- package/core/_core-theme.scss +48 -67
- package/core/focus-indicators/_private.scss +2 -5
- package/core/m2/_theming.scss +68 -113
- package/core/option/_m2-optgroup.scss +10 -7
- package/core/option/_m2-option.scss +13 -11
- package/core/option/_optgroup-theme.scss +28 -30
- package/core/option/_option-theme.scss +35 -34
- package/core/ripple/_m2-ripple.scss +6 -10
- package/core/ripple/_ripple-theme.scss +28 -33
- package/core/selection/pseudo-checkbox/_m2-pseudo-checkbox.scss +2 -3
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +55 -45
- package/core/theming/_all-theme.scss +38 -42
- package/core/theming/_definition.scss +20 -13
- package/core/theming/_inspection.scss +0 -12
- package/core/theming/_m2-inspection.scss +0 -33
- package/core/theming/_theming.scss +4 -172
- package/core/tokens/_m2-utils.scss +5 -75
- package/core/tokens/_m3-system.scss +11 -9
- package/core/tokens/_m3-utils.scss +2 -14
- package/core/tokens/_token-utils.scss +7 -27
- package/core/tokens/m2/_index.scss +6 -0
- package/core/tokens/m2/_md-sys-color.scss +123 -0
- package/core/tokens/m2/_md-sys-elevation.scss +16 -0
- package/core/tokens/m2/_md-sys-motion.scss +36 -0
- package/core/tokens/m2/_md-sys-shape.scss +22 -0
- package/core/tokens/m2/_md-sys-state.scss +15 -0
- package/core/tokens/m2/_md-sys-typescale.scss +68 -0
- package/core/tokens/m3/_md-sys-color.scss +2 -2
- package/core/tokens/m3/_md-sys-typescale.scss +1 -1
- package/core/tokens/m3/_theme.scss +14 -26
- package/datepicker/_datepicker-theme.scss +47 -87
- package/datepicker/_m2-datepicker.scss +33 -123
- package/datepicker/index.d.ts +1 -1
- package/dialog/_dialog-theme.scss +28 -34
- package/dialog/_m2-dialog.scss +17 -17
- package/divider/_divider-theme.scss +28 -30
- package/divider/_m2-divider.scss +4 -2
- package/expansion/_expansion-theme.scss +28 -39
- package/expansion/_m2-expansion.scss +11 -10
- package/expansion/_m3-expansion.scss +2 -0
- package/fesm2022/animation-DfMFjxHu.mjs.map +1 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +1 -1
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs +7 -4
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +2 -2
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +1 -1
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-cKSwHniA.mjs.map +1 -1
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-K6TQue-Y.mjs.map +1 -1
- package/fesm2022/date-range-input-harness-DEyfkeOs.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +1 -1
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-DCNQlTOA.mjs.map +1 -1
- package/fesm2022/error-state-Dtb1IHM-.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +2 -2
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/{form-field-C9DZXojn.mjs → form-field-CFbrnFED.mjs} +3 -3
- package/fesm2022/form-field-CFbrnFED.mjs.map +1 -0
- package/fesm2022/form-field.mjs +2 -2
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-DxiIc1ex.mjs.map +1 -1
- package/fesm2022/icon-registry-CwOTJ7YM.mjs.map +1 -1
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-BFRo2fUq.mjs.map +1 -1
- package/fesm2022/index-DwiL-HGk.mjs.map +1 -1
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-C5Msdc4-.mjs.map +1 -1
- package/fesm2022/input-value-accessor-D1GvPuqO.mjs.map +1 -1
- package/fesm2022/input.mjs +3 -27
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-D5iFxU6d.mjs.map +1 -1
- package/fesm2022/line-Bz5f9Cyx.mjs.map +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs +97 -13
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +343 -122
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-BDiw_nWS.mjs → module-B0CLRw5e.mjs} +3 -3
- package/fesm2022/module-B0CLRw5e.mjs.map +1 -0
- package/fesm2022/{module-DzZHEh7B.mjs → module-B62K-792.mjs} +2 -2
- package/fesm2022/module-B62K-792.mjs.map +1 -0
- package/fesm2022/module-CWxMD37a.mjs.map +1 -1
- package/fesm2022/module-Ce6F7TNm.mjs.map +1 -1
- package/fesm2022/option-BzhYL_xC.mjs.map +1 -1
- package/fesm2022/option-harness-BFcc-M_4.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +3 -3
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-DDmgx3P4.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-module-4F8Up4PL.mjs.map +1 -1
- package/fesm2022/public-api-BoO5eSq-.mjs.map +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-BYgV4oZC.mjs.map +1 -1
- package/fesm2022/ripple-loader-BnMiRtmT.mjs.map +1 -1
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +3 -3
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +2 -2
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +2 -2
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +2 -2
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-CObeNzjn.mjs.map +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +1 -1
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +35 -51
- package/form-field/_m2-form-field.scss +23 -31
- package/grid-list/_grid-list-theme.scss +28 -28
- package/grid-list/_m2-grid-list.scss +7 -9
- package/icon/_icon-theme.scss +40 -41
- package/input/_input-theme.scss +1 -4
- package/input/index.d.ts +0 -11
- package/list/_list-theme.scss +55 -53
- package/list/_m2-list.scss +21 -35
- package/menu/_m2-menu.scss +18 -15
- package/menu/_menu-theme.scss +28 -33
- package/menu/index.d.ts +145 -61
- package/menu/testing/index.d.ts +50 -2
- package/package.json +2 -2
- package/paginator/_m2-paginator.scss +9 -9
- package/paginator/_paginator-theme.scss +28 -33
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +35 -43
- package/progress-spinner/_progress-spinner-theme.scss +42 -43
- package/radio/_m2-radio.scss +6 -5
- package/radio/_m3-radio.scss +1 -1
- package/radio/_radio-theme.scss +33 -46
- package/schematics/ng-add/index.js +1 -1
- package/select/_m2-select.scss +10 -8
- package/select/_select-theme.scss +38 -48
- package/sidenav/_sidenav-theme.scss +28 -30
- package/slide-toggle/_m2-slide-toggle.scss +45 -58
- package/slide-toggle/_m3-slide-toggle.scss +1 -0
- package/slide-toggle/_slide-toggle-theme.scss +41 -79
- package/slider/_m2-slider.scss +33 -35
- package/slider/_slider-theme.scss +38 -45
- package/snack-bar/_m2-snack-bar.scss +5 -6
- package/snack-bar/_snack-bar-theme.scss +28 -31
- package/sort/_m2-sort.scss +5 -2
- package/sort/_sort-theme.scss +28 -33
- package/stepper/_m2-stepper.scss +10 -13
- package/stepper/_stepper-theme.scss +41 -49
- package/table/_m2-table.scss +23 -28
- package/table/_table-theme.scss +28 -36
- package/tabs/_m2-tabs.scss +11 -16
- package/tabs/_tabs-theme.scss +35 -43
- package/timepicker/_m2-timepicker.scss +5 -2
- package/timepicker/_timepicker-theme.scss +28 -46
- package/toolbar/_m2-toolbar.scss +10 -9
- package/toolbar/_toolbar-theme.scss +55 -46
- package/tooltip/_m2-tooltip.scss +5 -6
- package/tooltip/_tooltip-theme.scss +28 -37
- package/tree/_m2-tree.scss +9 -5
- package/tree/_tree-theme.scss +28 -38
- package/core/tokens/_format-tokens.scss +0 -5
- package/fesm2022/form-field-C9DZXojn.mjs.map +0 -1
- package/fesm2022/module-BDiw_nWS.mjs.map +0 -1
- package/fesm2022/module-DzZHEh7B.mjs.map +0 -1
|
@@ -4,19 +4,16 @@
|
|
|
4
4
|
@use 'sass:meta';
|
|
5
5
|
@use 'sass:color';
|
|
6
6
|
|
|
7
|
+
// Deprecated flag that is no longer used to control duplication warnings.
|
|
8
|
+
// Remove in v22
|
|
9
|
+
$theme-ignore-duplication-warnings: false;
|
|
10
|
+
|
|
7
11
|
// Whether to enable compatibility with legacy methods for accessing theme information.
|
|
8
12
|
$theme-legacy-inspection-api-compatibility: true !default;
|
|
9
13
|
|
|
10
|
-
// Whether duplication warnings should be disabled. Warnings enabled by default.
|
|
11
|
-
$theme-ignore-duplication-warnings: false !default;
|
|
12
|
-
|
|
13
14
|
// Whether density should be generated by default.
|
|
14
15
|
$_generate-default-density: true !default;
|
|
15
16
|
|
|
16
|
-
// Warning that will be printed if duplicated styles are generated by a theme.
|
|
17
|
-
$_duplicate-warning: 'Read more about how style duplication can be avoided in a dedicated ' +
|
|
18
|
-
'guide. https://v18.material.angular.dev/guide/duplicate-theming-styles';
|
|
19
|
-
|
|
20
17
|
// Warning that will be printed if the legacy theming API is used.
|
|
21
18
|
$private-legacy-theme-warning: 'Angular Material themes should be created from a map containing ' +
|
|
22
19
|
'the keys "color", "typography", and "density". The color value should be a map containing the ' +
|
|
@@ -40,46 +37,6 @@ $_emitted-base: () !default;
|
|
|
40
37
|
|
|
41
38
|
$private-internal-name: _mat-theming-internals-do-not-access;
|
|
42
39
|
|
|
43
|
-
// Checks if configurations that have been declared in the given theme have been generated
|
|
44
|
-
// before. If so, warnings will be reported. This should notify developers in case duplicate
|
|
45
|
-
// styles are accidentally generated due to wrong usage of the all-theme mixins.
|
|
46
|
-
//
|
|
47
|
-
// Additionally, this mixin controls the default value for the density configuration. By
|
|
48
|
-
// default, density styles are generated at scale zero. If the same density styles would be
|
|
49
|
-
// generated a second time though, the default value will change to avoid duplicate styles.
|
|
50
|
-
//
|
|
51
|
-
// The mixin keeps track of all configurations in a list that is scoped to the specified
|
|
52
|
-
// id. This is necessary because a given theme can be passed to multiple disjoint theme mixins
|
|
53
|
-
// (e.g. `all-component-themes` and `all-legacy-component-themes`) without causing any
|
|
54
|
-
// style duplication.
|
|
55
|
-
@mixin private-check-duplicate-theme-styles($theme-or-color-config, $id) {
|
|
56
|
-
// TODO(mmalerba): use get-theme-version for this check when its moved out of experimental.
|
|
57
|
-
@if map.get($theme-or-color-config, $private-internal-name, theme-version) == 1 {
|
|
58
|
-
@include _check-duplicate-theme-styles-v1($theme-or-color-config, $id) {
|
|
59
|
-
// Optionally, consumers of this mixin can wrap contents inside so that nested
|
|
60
|
-
// duplicate style checks do not report another warning. e.g. if developers include
|
|
61
|
-
// the `all-component-themes` mixin twice, only the top-level duplicate styles check
|
|
62
|
-
// should report a warning. Not all individual components should report a warning too.
|
|
63
|
-
$orig-mat-theme-ignore-duplication-warnings: $theme-ignore-duplication-warnings;
|
|
64
|
-
$theme-ignore-duplication-warnings: true !global;
|
|
65
|
-
@content;
|
|
66
|
-
$theme-ignore-duplication-warnings: $orig-mat-theme-ignore-duplication-warnings !global;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
@else {
|
|
70
|
-
@include _check-duplicate-theme-styles-v0($theme-or-color-config, $id) {
|
|
71
|
-
// Optionally, consumers of this mixin can wrap contents inside so that nested
|
|
72
|
-
// duplicate style checks do not report another warning. e.g. if developers include
|
|
73
|
-
// the `all-component-themes` mixin twice, only the top-level duplicate styles check
|
|
74
|
-
// should report a warning. Not all individual components should report a warning too.
|
|
75
|
-
$orig-mat-theme-ignore-duplication-warnings: $theme-ignore-duplication-warnings;
|
|
76
|
-
$theme-ignore-duplication-warnings: true !global;
|
|
77
|
-
@content;
|
|
78
|
-
$theme-ignore-duplication-warnings: $orig-mat-theme-ignore-duplication-warnings !global;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
40
|
/// Strip out any settings map entries that have empty values (null or ()).
|
|
84
41
|
@function _strip-empty-settings($settings) {
|
|
85
42
|
$result: ();
|
|
@@ -91,131 +48,6 @@ $private-internal-name: _mat-theming-internals-do-not-access;
|
|
|
91
48
|
@return if($result == (), null, $result);
|
|
92
49
|
}
|
|
93
50
|
|
|
94
|
-
// Checks for duplicate styles in a `theme-version: 1` style theme.
|
|
95
|
-
@mixin _check-duplicate-theme-styles-v1($theme-or-color-config, $id) {
|
|
96
|
-
$color-settings: _strip-empty-settings((
|
|
97
|
-
theme-type: map.get($theme-or-color-config, $private-internal-name, theme-type),
|
|
98
|
-
color-tokens: map.get($theme-or-color-config, $private-internal-name, color-tokens),
|
|
99
|
-
));
|
|
100
|
-
$typography-settings: _strip-empty-settings((
|
|
101
|
-
typography-tokens:
|
|
102
|
-
map.get($theme-or-color-config, $private-internal-name, typography-tokens),
|
|
103
|
-
));
|
|
104
|
-
$density-settings: _strip-empty-settings((
|
|
105
|
-
density-scale:
|
|
106
|
-
map.get($theme-or-color-config, $private-internal-name, density-scale),
|
|
107
|
-
density-tokens:
|
|
108
|
-
map.get($theme-or-color-config, $private-internal-name, density-tokens),
|
|
109
|
-
));
|
|
110
|
-
$base-settings: _strip-empty-settings((
|
|
111
|
-
base-tokens: map.get($theme-or-color-config, $private-internal-name, base-tokens),
|
|
112
|
-
));
|
|
113
|
-
$previous-color-settings: map.get($_emitted-color, $id) or ();
|
|
114
|
-
$previous-typography-settings: map.get($_emitted-typography, $id) or ();
|
|
115
|
-
$previous-density-settings: map.get($_emitted-density, $id) or ();
|
|
116
|
-
$previous-base-settings: map.get($_emitted-base, $id) or ();
|
|
117
|
-
|
|
118
|
-
// Check if the color configuration has been generated before.
|
|
119
|
-
@if $color-settings != null {
|
|
120
|
-
@if list.index($previous-color-settings, $color-settings) != null and
|
|
121
|
-
not $theme-ignore-duplication-warnings {
|
|
122
|
-
@warn 'The same color styles are generated multiple times. ' + $_duplicate-warning;
|
|
123
|
-
}
|
|
124
|
-
$previous-color-settings: list.append($previous-color-settings, $color-settings);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// Check if the typography configuration has been generated before.
|
|
128
|
-
@if $typography-settings != null {
|
|
129
|
-
@if list.index($previous-typography-settings, $typography-settings) != null and
|
|
130
|
-
not $theme-ignore-duplication-warnings {
|
|
131
|
-
@warn 'The same typography styles are generated multiple times. ' + $_duplicate-warning;
|
|
132
|
-
}
|
|
133
|
-
$previous-typography-settings: list.append($previous-typography-settings, $typography-settings);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// Check if the density configuration has been generated before.
|
|
137
|
-
@if $density-settings != null {
|
|
138
|
-
@if list.index($previous-density-settings, $density-settings) != null and
|
|
139
|
-
not $theme-ignore-duplication-warnings {
|
|
140
|
-
@warn 'The same density styles are generated multiple times. ' + $_duplicate-warning;
|
|
141
|
-
}
|
|
142
|
-
$previous-density-settings: list.append($previous-density-settings, $density-settings);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Check if the base configuration has been generated before.
|
|
146
|
-
@if $base-settings != null {
|
|
147
|
-
@if list.index($previous-base-settings, $base-settings) != null and
|
|
148
|
-
not $theme-ignore-duplication-warnings {
|
|
149
|
-
@warn 'The same base theme styles are generated multiple times. ' + $_duplicate-warning;
|
|
150
|
-
}
|
|
151
|
-
$previous-base-settings: list.append($previous-base-settings, $base-settings);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
$_emitted-color: map.set($_emitted-color, $id, $previous-color-settings) !global;
|
|
155
|
-
$_emitted-density: map.set($_emitted-density, $id, $previous-density-settings) !global;
|
|
156
|
-
$_emitted-typography: map.set($_emitted-typography, $id, $previous-typography-settings) !global;
|
|
157
|
-
$_emitted-base: map.set($_emitted-base, $id, $previous-base-settings) !global;
|
|
158
|
-
|
|
159
|
-
@content;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// Checks for duplicate styles in a `theme-version: 0` style theme.
|
|
163
|
-
@mixin _check-duplicate-theme-styles-v0($theme-or-color-config, $id) {
|
|
164
|
-
$theme: private-legacy-get-theme($theme-or-color-config);
|
|
165
|
-
$color-config: map.get($theme, $private-internal-name, m2-config, color) or
|
|
166
|
-
private-get-color-config($theme);
|
|
167
|
-
$density-config: map.get($theme, $private-internal-name, m2-config, density) or
|
|
168
|
-
private-get-density-config($theme);
|
|
169
|
-
$typography-config: map.get($theme, $private-internal-name, m2-config, typography) or
|
|
170
|
-
private-get-typography-config($theme);
|
|
171
|
-
// Lists of previous `color`, `density` and `typography` configurations.
|
|
172
|
-
$previous-color: map.get($_emitted-color, $id) or ();
|
|
173
|
-
$previous-typography: map.get($_emitted-typography, $id) or ();
|
|
174
|
-
$previous-density: map.get($_emitted-density, $id) or ();
|
|
175
|
-
// Whether duplicate legacy density styles would be generated.
|
|
176
|
-
$duplicate-legacy-density: false;
|
|
177
|
-
|
|
178
|
-
// Check if the color configuration has been generated before.
|
|
179
|
-
@if $color-config != null {
|
|
180
|
-
@if list.index($previous-color, $color-config) != null and
|
|
181
|
-
not $theme-ignore-duplication-warnings {
|
|
182
|
-
@warn 'The same color styles are generated multiple times. ' + $_duplicate-warning;
|
|
183
|
-
}
|
|
184
|
-
$previous-color: list.append($previous-color, $color-config);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// Check if the typography configuration has been generated before.
|
|
188
|
-
@if $typography-config != null {
|
|
189
|
-
@if list.index($previous-typography, $typography-config) != null and
|
|
190
|
-
not $theme-ignore-duplication-warnings {
|
|
191
|
-
@warn 'The same typography styles are generated multiple times. ' + $_duplicate-warning;
|
|
192
|
-
}
|
|
193
|
-
$previous-typography: list.append($previous-typography, $typography-config);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// Check if the density configuration has been generated before.
|
|
197
|
-
@if $density-config != null {
|
|
198
|
-
@if list.index($previous-density, $density-config) != null {
|
|
199
|
-
// Only report a warning if density styles would be duplicated for non-legacy theme
|
|
200
|
-
// definitions. For legacy themes, we have compatibility logic that avoids duplication
|
|
201
|
-
// of default density styles. We don't want to report a warning in those cases.
|
|
202
|
-
@if private-is-legacy-constructed-theme($theme) {
|
|
203
|
-
$duplicate-legacy-density: true;
|
|
204
|
-
}
|
|
205
|
-
@else if not $theme-ignore-duplication-warnings {
|
|
206
|
-
@warn 'The same density styles are generated multiple times. ' + $_duplicate-warning;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
$previous-density: list.append($previous-density, $density-config);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
$_emitted-color: map.merge($_emitted-color, ($id: $previous-color)) !global;
|
|
213
|
-
$_emitted-density: map.merge($_emitted-density, ($id: $previous-density)) !global;
|
|
214
|
-
$_emitted-typography: map.merge($_emitted-typography, ($id: $previous-typography)) !global;
|
|
215
|
-
|
|
216
|
-
@content;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
51
|
// Checks whether the given value resolves to a theme object. Theme objects are always
|
|
220
52
|
// of type `map` and can optionally only specify `color`, `density` or `typography`.
|
|
221
53
|
@function private-is-theme-object($value) {
|
|
@@ -1,87 +1,17 @@
|
|
|
1
|
-
@use 'sass:color';
|
|
2
|
-
@use 'sass:math';
|
|
3
|
-
@use 'sass:meta';
|
|
4
1
|
@use 'sass:map';
|
|
5
|
-
|
|
6
|
-
// Indicates whether we're building internally. Used for backwards compatibility.
|
|
7
|
-
$private-is-internal-build: false;
|
|
2
|
+
@use './m2';
|
|
8
3
|
|
|
9
4
|
// Gets the theme's system values as a flat map.
|
|
10
5
|
@function get-system($theme) {
|
|
11
|
-
$system: map.get($theme, _mat-
|
|
12
|
-
@if $system {
|
|
13
|
-
@return $system;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
$system: map.get($theme, system);
|
|
6
|
+
$system: map.get($theme, _mat-system);
|
|
17
7
|
@if $system {
|
|
18
8
|
@return $system;
|
|
19
9
|
}
|
|
20
10
|
|
|
21
|
-
|
|
22
|
-
@if $
|
|
23
|
-
@return $
|
|
11
|
+
// If the $theme is a typography-config, convert it to a system map.
|
|
12
|
+
@if map.has-key($theme, body-1) {
|
|
13
|
+
@return m2.md-sys-typescale-values($theme);
|
|
24
14
|
}
|
|
25
15
|
|
|
26
16
|
@return ();
|
|
27
17
|
}
|
|
28
|
-
|
|
29
|
-
/// Inherited function from MDC that computes which contrast tone to use on top of a color.
|
|
30
|
-
/// This is used only in a narrow set of use cases when generating M2 button tokens to maintain
|
|
31
|
-
/// backwards compatibility.
|
|
32
|
-
/// @param {Color} $value Color for which we're calculating the contrast tone.
|
|
33
|
-
/// @param {Boolean} $is-dark Whether the current theme is dark.
|
|
34
|
-
/// @return {Map} Either `dark` or `light`.
|
|
35
|
-
@function contrast-tone($value, $is-dark) {
|
|
36
|
-
@if ($value == 'dark') {
|
|
37
|
-
@return 'light';
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@if ($value == 'light') {
|
|
41
|
-
@return 'dark';
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Fallback if the app is using a non-color palette (e.g. CSS variable based).
|
|
45
|
-
@if (meta.type-of($value) != 'color') {
|
|
46
|
-
@return if($is-dark, 'light', 'dark');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
$minimum-contrast: 3.1;
|
|
50
|
-
$light-contrast: _contrast($value, #fff);
|
|
51
|
-
$dark-contrast: _contrast($value, rgba(0, 0, 0, 0.87));
|
|
52
|
-
|
|
53
|
-
@if ($light-contrast < $minimum-contrast) and ($dark-contrast > $light-contrast) {
|
|
54
|
-
@return 'dark';
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@return 'light';
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@function _linear-channel-value($channel-value) {
|
|
61
|
-
$normalized-channel-value: math.div($channel-value, 255);
|
|
62
|
-
|
|
63
|
-
@if ($normalized-channel-value < 0.03928) {
|
|
64
|
-
@return math.div($normalized-channel-value, 12.92);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@return math.pow(math.div($normalized-channel-value + 0.055, 1.055), 2.4);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Calculate the luminance for a color.
|
|
71
|
-
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
72
|
-
@function _luminance($color) {
|
|
73
|
-
$red: _linear-channel-value(color.red($color));
|
|
74
|
-
$green: _linear-channel-value(color.green($color));
|
|
75
|
-
$blue: _linear-channel-value(color.blue($color));
|
|
76
|
-
|
|
77
|
-
@return 0.2126 * $red + 0.7152 * $green + 0.0722 * $blue;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Calculate the contrast ratio between two colors.
|
|
81
|
-
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
82
|
-
@function _contrast($back, $front) {
|
|
83
|
-
$back-lum: _luminance($back) + 0.05;
|
|
84
|
-
$fore-lum: _luminance($front) + 0.05;
|
|
85
|
-
|
|
86
|
-
@return math.div(math.max($back-lum, $fore-lum), math.min($back-lum, $fore-lum));
|
|
87
|
-
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
@use '../theming/config-validation';
|
|
20
20
|
@use '../theming/definition';
|
|
21
21
|
@use '../theming/palettes';
|
|
22
|
+
@use '../style/sass-utils';
|
|
22
23
|
@use './m3';
|
|
23
24
|
@use 'sass:map';
|
|
24
25
|
@use 'sass:meta';
|
|
@@ -196,7 +197,7 @@
|
|
|
196
197
|
m3.md-sys-shape-values(),
|
|
197
198
|
m3.md-sys-state-values());
|
|
198
199
|
|
|
199
|
-
|
|
200
|
+
@include sass-utils.current-selector-or-root {
|
|
200
201
|
@each $name, $value in $overrides {
|
|
201
202
|
@if (map.has-key($sys-names, $name)) {
|
|
202
203
|
--#{$prefix}-#{$name}: #{map.get($overrides, $name)};
|
|
@@ -222,7 +223,7 @@
|
|
|
222
223
|
$sys-colors: map.set($sys-colors, neutral-variant20, map.get($palettes, neutral-variant, 20));
|
|
223
224
|
$sys-colors: map.set($sys-colors, neutral10, map.get($palettes, neutral, 10));
|
|
224
225
|
|
|
225
|
-
|
|
226
|
+
@include sass-utils.current-selector-or-root {
|
|
226
227
|
@each $name, $value in $sys-colors {
|
|
227
228
|
--#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
|
|
228
229
|
}
|
|
@@ -261,7 +262,7 @@
|
|
|
261
262
|
typography-system-variables-prefix) or definition.$system-level-prefix;
|
|
262
263
|
}
|
|
263
264
|
|
|
264
|
-
|
|
265
|
+
@include sass-utils.current-selector-or-root {
|
|
265
266
|
@each $name, $value in m3.md-sys-typescale-values($font-definition) {
|
|
266
267
|
--#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
|
|
267
268
|
}
|
|
@@ -272,17 +273,18 @@
|
|
|
272
273
|
$shadow-color: map.get(
|
|
273
274
|
$theme, definition.$internals, palettes, neutral, 0);
|
|
274
275
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
$value
|
|
278
|
-
|
|
276
|
+
|
|
277
|
+
@include sass-utils.current-selector-or-root {
|
|
278
|
+
@each $name, $value in m3.md-sys-elevation-values() {
|
|
279
|
+
$level: map.get($overrides, $name) or $value;
|
|
280
|
+
$value: elevation.get-box-shadow($level, $shadow-color);
|
|
279
281
|
--#{$prefix}-#{$name}: #{$value};
|
|
280
282
|
}
|
|
281
283
|
}
|
|
282
284
|
}
|
|
283
285
|
|
|
284
286
|
@mixin system-level-shape($theme: (), $overrides: (), $prefix: definition.$system-level-prefix) {
|
|
285
|
-
|
|
287
|
+
@include sass-utils.current-selector-or-root {
|
|
286
288
|
@each $name, $value in m3.md-sys-shape-values() {
|
|
287
289
|
--#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
|
|
288
290
|
}
|
|
@@ -290,7 +292,7 @@
|
|
|
290
292
|
}
|
|
291
293
|
|
|
292
294
|
@mixin system-level-state($theme: (), $overrides: (), $prefix: definition.$system-level-prefix) {
|
|
293
|
-
|
|
295
|
+
@include sass-utils.current-selector-or-root {
|
|
294
296
|
@each $name, $value in m3.md-sys-state-values() {
|
|
295
297
|
--#{$prefix}-#{$name}: #{map.get($overrides, $name) or $value};
|
|
296
298
|
}
|
|
@@ -8,25 +8,13 @@
|
|
|
8
8
|
$system: map.set($system, on-#{$color}-container, map.get($system, on-#{$variant}-container));
|
|
9
9
|
$system: map.set($system, #{$color}, map.get($system, #{$variant}));
|
|
10
10
|
$system: map.set($system, #{$color}-container, map.get($system, #{$variant}-container));
|
|
11
|
+
$system: map.set($system, inverse-#{$color}, map.get($system, inverse-#{$variant}));
|
|
11
12
|
@return $system;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
// Gets the theme's system values as a flat map.
|
|
15
16
|
@function get-system($theme) {
|
|
16
|
-
$system
|
|
17
|
-
$system: map.merge($system,
|
|
18
|
-
map.get($theme, _mat-theming-internals-do-not-access, md-sys-color));
|
|
19
|
-
$system: map.merge($system,
|
|
20
|
-
map.get($theme, _mat-theming-internals-do-not-access, md-sys-elevation));
|
|
21
|
-
$system: map.merge($system,
|
|
22
|
-
map.get($theme, _mat-theming-internals-do-not-access, md-sys-shape));
|
|
23
|
-
$system: map.merge($system,
|
|
24
|
-
map.get($theme, _mat-theming-internals-do-not-access, md-sys-state));
|
|
25
|
-
$system: map.merge($system,
|
|
26
|
-
map.get($theme, _mat-theming-internals-do-not-access, md-sys-typescale));
|
|
27
|
-
$system: map.merge($system,
|
|
28
|
-
map.get($theme, _mat-theming-internals-do-not-access, md-ref-palette));
|
|
29
|
-
@return $system;
|
|
17
|
+
@return map.get($theme, _mat-system);
|
|
30
18
|
}
|
|
31
19
|
|
|
32
20
|
// Returns the color with an opacity value using color-mix. If the color is a variable name, it
|
|
@@ -69,32 +69,12 @@
|
|
|
69
69
|
@return _create-var(--mat-#{$token}, $sys-fallback);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
// Outputs a map of
|
|
73
|
-
@mixin
|
|
74
|
-
@include
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
// other declarations (e.g. M2 themes). Used to avoid https://sass-lang.com/documentation/breaking-changes/mixed-decls/
|
|
79
|
-
@mixin create-token-values-mixed($tokens) {
|
|
80
|
-
@include _create-token-values-internal($tokens, true);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@mixin _create-token-values-internal($tokens, $in-place) {
|
|
84
|
-
@if ($tokens != null) {
|
|
85
|
-
@if ($in-place) {
|
|
86
|
-
& {
|
|
87
|
-
@each $key, $value in $tokens {
|
|
88
|
-
@if $value != null {
|
|
89
|
-
--mat-#{$key}: #{$value};
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
} @else {
|
|
94
|
-
@each $key, $value in $tokens {
|
|
95
|
-
@if $value != null {
|
|
96
|
-
--mat-#{$key}: #{$value};
|
|
97
|
-
}
|
|
72
|
+
// Outputs a map of token values as CSS variable definitions.
|
|
73
|
+
@mixin values($tokens) {
|
|
74
|
+
@include sass-utils.current-selector-or-root() {
|
|
75
|
+
@each $key, $value in $tokens {
|
|
76
|
+
@if $value != null {
|
|
77
|
+
--mat-#{$key}: #{$value};
|
|
98
78
|
}
|
|
99
79
|
}
|
|
100
80
|
}
|
|
@@ -125,7 +105,7 @@
|
|
|
125
105
|
$namespace: list.nth($data, 1);
|
|
126
106
|
$name: list.nth($data, 2);
|
|
127
107
|
$prefixed-name: $namespace + '-' + $name;
|
|
128
|
-
@include
|
|
108
|
+
@include values(($prefixed-name: $value));
|
|
129
109
|
} @else {
|
|
130
110
|
@error #{'Invalid token name `'}#{$name}#{'`. '}#{'Valid tokens are: '}#{$all-names};
|
|
131
111
|
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@use 'sass:map';
|
|
7
|
+
@use '../../m2/palette';
|
|
8
|
+
|
|
9
|
+
@function md-sys-color-values-dark($palettes) {
|
|
10
|
+
@return (
|
|
11
|
+
primary: map.get($palettes, primary, default),
|
|
12
|
+
on-primary: map.get($palettes, primary, default-contrast),
|
|
13
|
+
inverse-primary: map.get($palettes, primary, 600),
|
|
14
|
+
secondary: map.get($palettes, accent, default),
|
|
15
|
+
on-secondary: map.get($palettes, accent, default-contrast),
|
|
16
|
+
inverse-secondary: map.get($palettes, accent, 600),
|
|
17
|
+
error: map.get($palettes, warn, default),
|
|
18
|
+
on-error: map.get($palettes, warn, default-contrast),
|
|
19
|
+
inverse-error: map.get($palettes, warn, 600),
|
|
20
|
+
shadow: black,
|
|
21
|
+
surface: map.get(palette.$grey-palette, 800),
|
|
22
|
+
on-surface: white,
|
|
23
|
+
surface-variant: #4a4a4a,
|
|
24
|
+
on-surface-variant: rgba(white, 0.7),
|
|
25
|
+
background: #303030,
|
|
26
|
+
inverse-surface: white,
|
|
27
|
+
inverse-on-surface: rgba(black, 0.87),
|
|
28
|
+
outline: rgba(white, 0.12),
|
|
29
|
+
outline-variant: rgba(white, 0.38),
|
|
30
|
+
|
|
31
|
+
// TBD
|
|
32
|
+
error-container: null,
|
|
33
|
+
on-background: null,
|
|
34
|
+
on-error-container: null,
|
|
35
|
+
on-primary-container: null,
|
|
36
|
+
on-primary-fixed: null,
|
|
37
|
+
on-primary-fixed-variant: null,
|
|
38
|
+
on-secondary-container: null,
|
|
39
|
+
on-secondary-fixed: null,
|
|
40
|
+
on-secondary-fixed-variant: null,
|
|
41
|
+
on-tertiary: null,
|
|
42
|
+
on-tertiary-container: null,
|
|
43
|
+
on-tertiary-fixed: null,
|
|
44
|
+
on-tertiary-fixed-variant: null,
|
|
45
|
+
primary-container: null,
|
|
46
|
+
primary-fixed: null,
|
|
47
|
+
primary-fixed-dim: null,
|
|
48
|
+
scrim: null,
|
|
49
|
+
secondary-container: null,
|
|
50
|
+
secondary-fixed: null,
|
|
51
|
+
secondary-fixed-dim: null,
|
|
52
|
+
surface-bright: null,
|
|
53
|
+
surface-container: null,
|
|
54
|
+
surface-container-high: null,
|
|
55
|
+
surface-container-highest: null,
|
|
56
|
+
surface-container-low: null,
|
|
57
|
+
surface-container-lowest: null,
|
|
58
|
+
surface-dim: null,
|
|
59
|
+
surface-tint: null,
|
|
60
|
+
tertiary: null,
|
|
61
|
+
tertiary-container: null,
|
|
62
|
+
tertiary-fixed: null,
|
|
63
|
+
tertiary-fixed-dim: null,
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@function md-sys-color-values-light($palettes) {
|
|
68
|
+
@return (
|
|
69
|
+
primary: map.get($palettes, primary, default),
|
|
70
|
+
on-primary: map.get($palettes, primary, default-contrast),
|
|
71
|
+
inverse-primary: map.get($palettes, primary, 300),
|
|
72
|
+
secondary: map.get($palettes, accent, default),
|
|
73
|
+
on-secondary: map.get($palettes, accent, default-contrast),
|
|
74
|
+
inverse-secondary: map.get($palettes, accent, 300),
|
|
75
|
+
error: map.get($palettes, warn, default),
|
|
76
|
+
on-error: map.get($palettes, warn, default-contrast),
|
|
77
|
+
inverse-error: map.get($palettes, warn, 300),
|
|
78
|
+
shadow: black,
|
|
79
|
+
surface: white,
|
|
80
|
+
on-surface: rgba(black, 0.87),
|
|
81
|
+
surface-variant: #f6f6f6,
|
|
82
|
+
on-surface-variant: rgba(black, 0.54),
|
|
83
|
+
background: map.get(palette.$grey-palette, 50),
|
|
84
|
+
inverse-surface: map.get(palette.$grey-palette, 800),
|
|
85
|
+
inverse-on-surface: white,
|
|
86
|
+
outline: rgba(black, 0.12),
|
|
87
|
+
outline-variant: rgba(black, 0.38),
|
|
88
|
+
|
|
89
|
+
// TBD
|
|
90
|
+
error-container: null,
|
|
91
|
+
on-background: null,
|
|
92
|
+
on-error-container: null,
|
|
93
|
+
on-primary-container: null,
|
|
94
|
+
on-primary-fixed: null,
|
|
95
|
+
on-primary-fixed-variant: null,
|
|
96
|
+
on-secondary-container: null,
|
|
97
|
+
on-secondary-fixed: null,
|
|
98
|
+
on-secondary-fixed-variant: null,
|
|
99
|
+
on-tertiary: null,
|
|
100
|
+
on-tertiary-container: null,
|
|
101
|
+
on-tertiary-fixed: null,
|
|
102
|
+
on-tertiary-fixed-variant: null,
|
|
103
|
+
primary-container: null,
|
|
104
|
+
primary-fixed: null,
|
|
105
|
+
primary-fixed-dim: null,
|
|
106
|
+
scrim: null,
|
|
107
|
+
secondary-container: null,
|
|
108
|
+
secondary-fixed: null,
|
|
109
|
+
secondary-fixed-dim: null,
|
|
110
|
+
surface-bright: null,
|
|
111
|
+
surface-container: null,
|
|
112
|
+
surface-container-high: null,
|
|
113
|
+
surface-container-highest: null,
|
|
114
|
+
surface-container-low: null,
|
|
115
|
+
surface-container-lowest: null,
|
|
116
|
+
surface-dim: null,
|
|
117
|
+
surface-tint: null,
|
|
118
|
+
tertiary: null,
|
|
119
|
+
tertiary-container: null,
|
|
120
|
+
tertiary-fixed: null,
|
|
121
|
+
tertiary-fixed-dim: null,
|
|
122
|
+
);
|
|
123
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@function md-sys-elevation-values() {
|
|
7
|
+
@return (
|
|
8
|
+
// TBD
|
|
9
|
+
level0: null,
|
|
10
|
+
level1: null,
|
|
11
|
+
level2: null,
|
|
12
|
+
level3: null,
|
|
13
|
+
level4: null,
|
|
14
|
+
level5: null,
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@function md-sys-motion-values() {
|
|
7
|
+
@return (
|
|
8
|
+
// TBD
|
|
9
|
+
duration-extra-long1: null,
|
|
10
|
+
duration-extra-long2: null,
|
|
11
|
+
duration-extra-long3: null,
|
|
12
|
+
duration-extra-long4: null,
|
|
13
|
+
duration-long1: null,
|
|
14
|
+
duration-long2: null,
|
|
15
|
+
duration-long3: null,
|
|
16
|
+
duration-long4: null,
|
|
17
|
+
duration-medium1: null,
|
|
18
|
+
duration-medium2: null,
|
|
19
|
+
duration-medium3: null,
|
|
20
|
+
duration-medium4: null,
|
|
21
|
+
duration-short1: null,
|
|
22
|
+
duration-short2: null,
|
|
23
|
+
duration-short3: null,
|
|
24
|
+
duration-short4: null,
|
|
25
|
+
easing-emphasized: null,
|
|
26
|
+
easing-emphasized-accelerate: null,
|
|
27
|
+
easing-emphasized-decelerate: null,
|
|
28
|
+
easing-legacy: null,
|
|
29
|
+
easing-legacy-accelerate: null,
|
|
30
|
+
easing-legacy-decelerate: null,
|
|
31
|
+
easing-linear: null,
|
|
32
|
+
easing-standard: null,
|
|
33
|
+
easing-standard-accelerate: null,
|
|
34
|
+
easing-standard-decelerate: null,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@function md-sys-shape-values() {
|
|
7
|
+
@return (
|
|
8
|
+
// TBD
|
|
9
|
+
corner-extra-large: null,
|
|
10
|
+
corner-extra-large-top: null,
|
|
11
|
+
corner-extra-small: null,
|
|
12
|
+
corner-extra-small-top: null,
|
|
13
|
+
corner-full: null,
|
|
14
|
+
corner-large: null,
|
|
15
|
+
corner-large-end: null,
|
|
16
|
+
corner-large-start: null,
|
|
17
|
+
corner-large-top: null,
|
|
18
|
+
corner-medium: null,
|
|
19
|
+
corner-none: null,
|
|
20
|
+
corner-small: null,
|
|
21
|
+
);
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@function md-sys-state-values($exclude-hardcoded-values: false) {
|
|
7
|
+
@return (
|
|
8
|
+
focus-state-layer-opacity: 0.12,
|
|
9
|
+
hover-state-layer-opacity: 0.04,
|
|
10
|
+
pressed-state-layer-opacity: 0.12,
|
|
11
|
+
|
|
12
|
+
// TBD
|
|
13
|
+
dragged-state-layer-opacity: 0.16,
|
|
14
|
+
);
|
|
15
|
+
}
|