@ng-matero/extensions 19.4.1 → 20.0.1
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 -1
- package/alert/_alert-theme.scss +26 -31
- package/alert/_m2-alert.scss +59 -0
- package/alert/_m3-alert.scss +41 -0
- package/alert/alert.scss +27 -31
- package/alert/index.d.ts +30 -5
- package/button/index.d.ts +31 -5
- package/checkbox-group/index.d.ts +117 -5
- package/colorpicker/_colorpicker-theme.scss +31 -36
- package/{core/tokens/m2/mtx/_colorpicker.scss → colorpicker/_m2-colorpicker.scss} +6 -10
- package/colorpicker/_m3-colorpicker.scss +23 -0
- package/colorpicker/colorpicker-toggle.scss +4 -9
- package/colorpicker/index.d.ts +285 -3
- package/column-resize/index.d.ts +456 -3
- package/core/index.d.ts +147 -5
- package/core/theming/_color-api-backwards-compatibility.scss +8 -15
- package/core/theming/_definition.scss +81 -75
- package/core/theming/_palettes.scss +1036 -0
- package/core/tokens/{m2/_index.scss → _m2-tokens.scss} +22 -22
- package/core/tokens/_m2-utils.scss +108 -0
- package/core/tokens/_m3-system.scss +128 -106
- package/core/tokens/_m3-tokens.scss +36 -282
- package/core/tokens/_m3-utils.scss +48 -0
- package/core/tokens/_token-utils.scss +67 -239
- package/core/tokens/m3/_index.scss +7 -0
- package/core/tokens/m3/_md-sys-color.scss +156 -0
- package/core/tokens/m3/_md-sys-elevation.scss +15 -0
- package/core/tokens/m3/_md-sys-motion.scss +35 -0
- package/core/tokens/m3/_md-sys-shape.scss +21 -0
- package/core/tokens/m3/_md-sys-state.scss +13 -0
- package/core/tokens/m3/_md-sys-typescale.scss +128 -0
- package/core/tokens/m3/_theme.scss +47 -0
- package/datetimepicker/_datetimepicker-theme.scss +29 -39
- package/datetimepicker/_m2-datetimepicker.scss +149 -0
- package/datetimepicker/_m3-datetimepicker.scss +81 -0
- package/datetimepicker/calendar-body.scss +31 -56
- package/datetimepicker/calendar.scss +43 -79
- package/datetimepicker/clock.scss +28 -47
- package/datetimepicker/datetimepicker-content.scss +9 -15
- package/datetimepicker/datetimepicker-toggle.scss +4 -9
- package/datetimepicker/index.d.ts +1208 -3
- package/datetimepicker/time-view.scss +26 -32
- package/dialog/index.d.ts +54 -5
- package/drawer/_drawer-theme.scss +25 -30
- package/{core/tokens/m2/mtx/_drawer.scss → drawer/_m2-drawer.scss} +9 -12
- package/drawer/_m3-drawer.scss +24 -0
- package/drawer/drawer-container.scss +13 -24
- package/drawer/index.d.ts +221 -3
- package/fesm2022/mtxAlert.mjs +7 -7
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +11 -11
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +7 -7
- package/fesm2022/mtxColorpicker.mjs +21 -21
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +232 -103
- package/fesm2022/mtxColumnResize.mjs.map +1 -1
- package/fesm2022/mtxCore.mjs +21 -21
- package/fesm2022/mtxDatetimepicker.mjs +63 -67
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +10 -10
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +10 -10
- package/fesm2022/mtxGrid.mjs +78 -77
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +7 -7
- package/fesm2022/mtxPhotoviewer.mjs +7 -7
- package/fesm2022/mtxPopover.mjs +24 -25
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +7 -7
- package/fesm2022/mtxSelect.mjs +54 -54
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +10 -10
- package/fesm2022/mtxTooltip.mjs +13 -13
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +24 -34
- package/grid/_m2-grid.scss +66 -0
- package/grid/_m3-grid.scss +35 -0
- package/grid/column-menu.scss +6 -23
- package/grid/column-resize/_column-resize.scss +35 -30
- package/grid/grid.scss +41 -74
- package/grid/index.d.ts +799 -3
- package/index.d.ts +2 -5
- package/loader/_loader-theme.scss +26 -31
- package/{core/tokens/m2/mtx/_loader.scss → loader/_m2-loader.scss} +5 -10
- package/loader/_m3-loader.scss +20 -0
- package/loader/index.d.ts +43 -5
- package/loader/loader.scss +4 -5
- package/package.json +28 -28
- package/photoviewer/index.d.ts +26 -5
- package/{core/tokens/m2/mtx/_popover.scss → popover/_m2-popover.scss} +9 -12
- package/popover/_m3-popover.scss +26 -0
- package/popover/_popover-theme.scss +26 -31
- package/popover/index.d.ts +399 -3
- package/popover/popover.scss +23 -29
- 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/_m2-progress.scss +53 -0
- package/progress/_m3-progress.scss +33 -0
- package/progress/_progress-theme.scss +22 -34
- package/progress/index.d.ts +35 -5
- package/progress/progress.scss +28 -43
- package/select/_m2-select.scss +79 -0
- package/select/_m3-select.scss +46 -0
- package/select/_select-theme.scss +27 -37
- package/select/index.d.ts +381 -3
- package/select/select.scss +189 -205
- package/{core/tokens/m2/mtx/_split.scss → split/_m2-split.scss} +6 -9
- package/split/_m3-split.scss +23 -0
- package/split/_split-theme.scss +31 -34
- package/split/index.d.ts +255 -3
- package/split/split.scss +8 -11
- package/tooltip/_m2-tooltip.scss +50 -0
- package/tooltip/_m3-tooltip.scss +28 -0
- package/tooltip/_tooltip-theme.scss +23 -47
- package/tooltip/index.d.ts +345 -3
- package/tooltip/tooltip.scss +11 -15
- package/alert/alert-module.d.ts +0 -8
- package/alert/alert.d.ts +0 -19
- package/alert/public-api.d.ts +0 -2
- package/button/button-loading.d.ts +0 -19
- package/button/button-module.d.ts +0 -10
- package/button/public-api.d.ts +0 -2
- package/checkbox-group/checkbox-group-module.d.ts +0 -11
- package/checkbox-group/checkbox-group.d.ts +0 -86
- package/checkbox-group/interfaces.d.ts +0 -17
- package/checkbox-group/public-api.d.ts +0 -3
- package/colorpicker/colorpicker-animations.d.ts +0 -9
- package/colorpicker/colorpicker-input.d.ts +0 -88
- package/colorpicker/colorpicker-module.d.ts +0 -15
- package/colorpicker/colorpicker-toggle.d.ts +0 -39
- package/colorpicker/colorpicker.d.ts +0 -140
- package/colorpicker/public-api.d.ts +0 -5
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -29
- package/column-resize/column-resize-directives/column-resize.d.ts +0 -29
- package/column-resize/column-resize-directives/constants.d.ts +0 -10
- package/column-resize/column-resize-module.d.ts +0 -12
- package/column-resize/column-resize-notifier.d.ts +0 -48
- package/column-resize/column-resize.d.ts +0 -39
- package/column-resize/column-size-store.d.ts +0 -12
- package/column-resize/event-dispatcher.d.ts +0 -35
- package/column-resize/overlay-handle.d.ts +0 -43
- package/column-resize/polyfill.d.ts +0 -9
- package/column-resize/public-api.d.ts +0 -12
- package/column-resize/resizable.d.ts +0 -63
- package/column-resize/resize-ref.d.ts +0 -17
- package/column-resize/resize-strategy.d.ts +0 -84
- package/column-resize/selectors.d.ts +0 -10
- package/core/datetime/datetime-adapter.d.ts +0 -45
- package/core/datetime/datetime-formats.d.ts +0 -22
- package/core/datetime/datetime.module.d.ts +0 -15
- package/core/datetime/index.d.ts +0 -5
- package/core/datetime/native-datetime-adapter.d.ts +0 -40
- package/core/datetime/native-datetime-formats.d.ts +0 -2
- package/core/pipes/index.d.ts +0 -3
- package/core/pipes/is-template-ref.pipe.d.ts +0 -7
- package/core/pipes/pipes.module.d.ts +0 -9
- package/core/pipes/to-observable.pipe.d.ts +0 -8
- package/core/public-api.d.ts +0 -2
- package/core/theming/_inspection.scss +0 -38
- package/core/theming/_validation.scss +0 -5
- package/core/tokens/_density.scss +0 -49
- package/core/tokens/_format-tokens.scss +0 -5
- package/core/tokens/_token-definition.scss +0 -271
- package/core/tokens/m2/mdc/_plain-tooltip.scss +0 -63
- package/core/tokens/m2/mtx/_alert.scss +0 -62
- package/core/tokens/m2/mtx/_datetimepicker.scss +0 -152
- package/core/tokens/m2/mtx/_grid.scss +0 -69
- package/core/tokens/m2/mtx/_progress.scss +0 -56
- package/core/tokens/m2/mtx/_select.scss +0 -82
- package/core/tokens/m3/definitions/_index.scss +0 -9
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +0 -51
- package/core/tokens/m3/definitions/_md-ref-palette.scss +0 -100
- package/core/tokens/m3/definitions/_md-ref-typeface.scss +0 -14
- package/core/tokens/m3/definitions/_md-sys-color.scss +0 -126
- package/core/tokens/m3/definitions/_md-sys-elevation.scss +0 -15
- package/core/tokens/m3/definitions/_md-sys-motion.scss +0 -46
- package/core/tokens/m3/definitions/_md-sys-shape.scss +0 -24
- package/core/tokens/m3/definitions/_md-sys-state.scss +0 -13
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +0 -308
- package/core/tokens/m3/index.scss +0 -47
- package/core/tokens/m3/mdc/_plain-tooltip.scss +0 -15
- package/core/tokens/m3/mtx/_alert.scss +0 -41
- package/core/tokens/m3/mtx/_colorpicker.scss +0 -19
- package/core/tokens/m3/mtx/_datetimepicker.scss +0 -140
- package/core/tokens/m3/mtx/_drawer.scss +0 -22
- package/core/tokens/m3/mtx/_grid.scss +0 -32
- package/core/tokens/m3/mtx/_loader.scss +0 -22
- package/core/tokens/m3/mtx/_popover.scss +0 -25
- package/core/tokens/m3/mtx/_progress.scss +0 -32
- package/core/tokens/m3/mtx/_select.scss +0 -76
- package/core/tokens/m3/mtx/_split.scss +0 -30
- package/datetimepicker/calendar-body.d.ts +0 -66
- package/datetimepicker/calendar.d.ts +0 -157
- package/datetimepicker/clock.d.ts +0 -101
- package/datetimepicker/datetimepicker-actions.d.ts +0 -36
- package/datetimepicker/datetimepicker-animations.d.ts +0 -11
- package/datetimepicker/datetimepicker-errors.d.ts +0 -2
- package/datetimepicker/datetimepicker-filtertype.d.ts +0 -5
- package/datetimepicker/datetimepicker-input.d.ts +0 -105
- package/datetimepicker/datetimepicker-intl.d.ts +0 -53
- package/datetimepicker/datetimepicker-module.d.ts +0 -22
- package/datetimepicker/datetimepicker-toggle.d.ts +0 -42
- package/datetimepicker/datetimepicker-types.d.ts +0 -6
- package/datetimepicker/datetimepicker.d.ts +0 -274
- package/datetimepicker/month-view.d.ts +0 -80
- package/datetimepicker/multi-year-view.d.ts +0 -86
- package/datetimepicker/public-api.d.ts +0 -16
- package/datetimepicker/time-view.d.ts +0 -147
- package/datetimepicker/year-view.d.ts +0 -68
- package/dialog/dialog-config.d.ts +0 -17
- package/dialog/dialog-container.d.ts +0 -11
- package/dialog/dialog-module.d.ts +0 -12
- package/dialog/dialog.d.ts +0 -15
- package/dialog/public-api.d.ts +0 -4
- package/drawer/drawer-animations.d.ts +0 -8
- package/drawer/drawer-config.d.ts +0 -63
- package/drawer/drawer-container.d.ts +0 -35
- package/drawer/drawer-module.d.ts +0 -10
- package/drawer/drawer-ref.d.ts +0 -53
- package/drawer/drawer.d.ts +0 -59
- package/drawer/public-api.d.ts +0 -6
- package/grid/cell.d.ts +0 -32
- package/grid/column-menu.d.ts +0 -39
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -24
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -24
- package/grid/column-resize/column-resize-directives/common.d.ts +0 -13
- package/grid/column-resize/column-resize-module.d.ts +0 -17
- package/grid/column-resize/index.d.ts +0 -7
- package/grid/column-resize/overlay-handle.d.ts +0 -32
- package/grid/column-resize/resizable-directives/common.d.ts +0 -19
- package/grid/column-resize/resizable-directives/resizable.d.ts +0 -32
- package/grid/column-resize/resize-strategy.d.ts +0 -20
- package/grid/expansion-toggle.d.ts +0 -17
- package/grid/grid-module.d.ts +0 -31
- package/grid/grid-pipes.d.ts +0 -39
- package/grid/grid-utils.d.ts +0 -33
- package/grid/grid.d.ts +0 -268
- package/grid/interfaces.d.ts +0 -180
- package/grid/public-api.d.ts +0 -17
- package/grid/selectable-cell.d.ts +0 -16
- package/loader/loader-module.d.ts +0 -10
- package/loader/loader.d.ts +0 -30
- package/loader/public-api.d.ts +0 -2
- package/photoviewer/photoviewer-module.d.ts +0 -7
- package/photoviewer/photoviewer.d.ts +0 -17
- package/photoviewer/public-api.d.ts +0 -2
- package/popover/popover-animations.d.ts +0 -11
- package/popover/popover-content.d.ts +0 -43
- package/popover/popover-errors.d.ts +0 -14
- package/popover/popover-interfaces.d.ts +0 -50
- package/popover/popover-module.d.ts +0 -13
- package/popover/popover-target.d.ts +0 -7
- package/popover/popover-trigger.d.ts +0 -132
- package/popover/popover-types.d.ts +0 -10
- package/popover/popover.d.ts +0 -147
- package/popover/public-api.d.ts +0 -8
- package/progress/progress-module.d.ts +0 -8
- package/progress/progress.d.ts +0 -24
- package/progress/public-api.d.ts +0 -2
- package/public-api.d.ts +0 -2
- package/select/option.d.ts +0 -21
- package/select/public-api.d.ts +0 -5
- package/select/select-intl.d.ts +0 -18
- package/select/select-module.d.ts +0 -12
- package/select/select.d.ts +0 -270
- package/select/templates.d.ts +0 -67
- package/split/interfaces.d.ts +0 -52
- package/split/public-api.d.ts +0 -5
- package/split/split-module.d.ts +0 -9
- package/split/split-pane.d.ts +0 -53
- package/split/split.d.ts +0 -133
- package/split/utils.d.ts +0 -13
- package/tooltip/public-api.d.ts +0 -3
- package/tooltip/tooltip-animations.d.ts +0 -9
- package/tooltip/tooltip-module.d.ts +0 -13
- package/tooltip/tooltip.d.ts +0 -321
|
@@ -2,40 +2,6 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'sass:string';
|
|
4
4
|
@use '@angular/material' as mat;
|
|
5
|
-
@use '../style/elevation';
|
|
6
|
-
@use './m3-system';
|
|
7
|
-
@use './m3-tokens';
|
|
8
|
-
|
|
9
|
-
$_tokens: null;
|
|
10
|
-
$_component-prefix: null;
|
|
11
|
-
$_system-fallbacks: m3-system.create-system-fallbacks();
|
|
12
|
-
|
|
13
|
-
// Sets the token prefix and map to use when creating token slots.
|
|
14
|
-
@mixin use-tokens($prefix, $tokens) {
|
|
15
|
-
$_component-prefix: $prefix !global;
|
|
16
|
-
$_tokens: $tokens !global;
|
|
17
|
-
|
|
18
|
-
@content;
|
|
19
|
-
|
|
20
|
-
$_component-prefix: null !global;
|
|
21
|
-
$_tokens: null !global;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Combines a prefix and a string to generate a CSS variable name for a token.
|
|
25
|
-
@function _create-var-name($prefix, $token) {
|
|
26
|
-
@if $prefix == null or $token == null {
|
|
27
|
-
@error 'Must specify both prefix and name when generating token';
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
$string-prefix: '';
|
|
31
|
-
|
|
32
|
-
// Prefixes are lists so we need to combine them.
|
|
33
|
-
@each $part in $prefix {
|
|
34
|
-
$string-prefix: if($string-prefix == '', $part, '#{$string-prefix}-#{$part}');
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@return string.unquote('--#{$string-prefix}-#{$token}');
|
|
38
|
-
}
|
|
39
5
|
|
|
40
6
|
// Creates a CSS variable, including the fallback if provided.
|
|
41
7
|
@function _create-var($name, $fallback: null) {
|
|
@@ -46,209 +12,110 @@ $_system-fallbacks: m3-system.create-system-fallbacks();
|
|
|
46
12
|
}
|
|
47
13
|
}
|
|
48
14
|
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
@
|
|
59
|
-
|
|
60
|
-
@error 'Function was not called within a wrapping call of `use-tokens`';
|
|
61
|
-
}
|
|
62
|
-
@if not map.has-key($_tokens, $token) {
|
|
63
|
-
@error 'Token #{$token} does not exist. Configured tokens are: #{map.keys($_tokens)}';
|
|
15
|
+
// Returns a list of overrides for the given M3 get-tokens mixin and prefix. Each token has its
|
|
16
|
+
// prefix removed since the overrides API expects its absence. The returned map includes "all" for
|
|
17
|
+
// all override tokens, and also the subsets with keys base, color, typography, and density.
|
|
18
|
+
@function get-overrides($tokens, $prefix) {
|
|
19
|
+
$base: remove-token-prefixes(map.get($tokens, base), $prefix);
|
|
20
|
+
$color: remove-token-prefixes(map.get($tokens, color), $prefix);
|
|
21
|
+
$typography: remove-token-prefixes(map.get($tokens, typography), $prefix);
|
|
22
|
+
$density: remove-token-prefixes(map.get($tokens, density), $prefix);
|
|
23
|
+
$all: ();
|
|
24
|
+
@each $map in ($base, $color, $typography, $density) {
|
|
25
|
+
$all: map.merge($all, $map);
|
|
64
26
|
}
|
|
65
27
|
|
|
66
|
-
@return
|
|
28
|
+
@return (
|
|
29
|
+
all: $all,
|
|
30
|
+
base: $base,
|
|
31
|
+
color: $color,
|
|
32
|
+
typography: $typography,
|
|
33
|
+
density: $density,
|
|
34
|
+
);
|
|
67
35
|
}
|
|
68
36
|
|
|
69
|
-
//
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
$_assert: _assert-use-tokens($token);
|
|
76
|
-
@if map.get($_tokens, $token) != null {
|
|
77
|
-
#{$property}: #{_get-token-value($token, $fallback)};
|
|
37
|
+
// Removes a prefix from each component token in the provided map of prefixed tokens.
|
|
38
|
+
@function remove-token-prefixes($prefixed-tokens: (), $prefix) {
|
|
39
|
+
$tokens: ();
|
|
40
|
+
@each $prefixed-token, $value in $prefixed-tokens {
|
|
41
|
+
$token: string.slice($prefixed-token, string.length($prefix) + 2);
|
|
42
|
+
$tokens: map.set($tokens, $token, $value);
|
|
78
43
|
}
|
|
44
|
+
@return $tokens;
|
|
79
45
|
}
|
|
80
46
|
|
|
81
|
-
// Returns the
|
|
82
|
-
// involving tokens. `create-token-slot` should be used when outputting tokens.
|
|
83
|
-
@function get-token-variable-name($token) {
|
|
84
|
-
$_assert: _assert-use-tokens($token);
|
|
85
|
-
@return _create-var-name($_component-prefix, $token);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// Returns a `var()` reference to a specific token. Intended for declarations
|
|
89
|
-
// where the token has to be referenced as a part of a larger expression.
|
|
47
|
+
// Returns the token slot value.
|
|
90
48
|
// Accepts an optional fallback parameter to include in the CSS variable.
|
|
91
49
|
// If $fallback is `true`, then use the tokens map to get the fallback.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
@function _get-token-fallback($token, $fallback: null) {
|
|
101
|
-
// If the $fallback is `true`, this is the component's signal to use the current token map value
|
|
102
|
-
@if ($fallback == true) {
|
|
103
|
-
$fallback: map.get($_tokens, $token);
|
|
50
|
+
@function slot($token, $fallbacks, $fallback: null) {
|
|
51
|
+
// Fallbacks are a map of base, color, typography, and density tokens. To simplify
|
|
52
|
+
// lookup, flatten these token groups into a single map.
|
|
53
|
+
$fallbacks-flattened: ();
|
|
54
|
+
@each $tokens in map.values($fallbacks) {
|
|
55
|
+
@each $token, $value in $tokens {
|
|
56
|
+
$fallbacks-flattened: map.set($fallbacks-flattened, $token, $value);
|
|
57
|
+
}
|
|
104
58
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
$sys-fallback: map.get($_system-fallbacks, $_component-prefix, $token);
|
|
109
|
-
@if (not $sys-fallback) {
|
|
110
|
-
@return $fallback;
|
|
59
|
+
@if not map.has-key($fallbacks-flattened, $token) {
|
|
60
|
+
@error 'Token #{$token} does not exist. Configured tokens are:' +
|
|
61
|
+
#{map.keys($fallbacks-flattened)};
|
|
111
62
|
}
|
|
112
63
|
|
|
64
|
+
$sys-fallback: map.get($fallbacks-flattened, $token);
|
|
113
65
|
@if (mat.private-is-css-var-name($sys-fallback)) {
|
|
114
|
-
|
|
66
|
+
$sys-fallback: _create-var($sys-fallback, $fallback);
|
|
115
67
|
}
|
|
116
68
|
|
|
117
|
-
@return $sys-fallback;
|
|
69
|
+
@return _create-var(--mtx-#{$token}, $sys-fallback);
|
|
118
70
|
}
|
|
119
71
|
|
|
120
|
-
// Outputs a map of tokens
|
|
121
|
-
@mixin create-token-values($
|
|
122
|
-
@
|
|
123
|
-
// TODO: The `&` adds to the file size of theme, but it's necessary for compatibility
|
|
124
|
-
// with https://sass-lang.com/documentation/breaking-changes/mixed-decls/. We should
|
|
125
|
-
// figure out a better way to do this or move all the concrete styles out of the theme.
|
|
126
|
-
& {
|
|
127
|
-
@each $key, $value in $tokens {
|
|
128
|
-
@if $value != null {
|
|
129
|
-
#{_create-var-name($prefix, $key)}: #{$value};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
72
|
+
// Outputs a map of tokens.
|
|
73
|
+
@mixin create-token-values($tokens) {
|
|
74
|
+
@include _create-token-values-internal($tokens, false);
|
|
134
75
|
}
|
|
135
76
|
|
|
136
|
-
//
|
|
137
|
-
//
|
|
138
|
-
|
|
139
|
-
@
|
|
140
|
-
$elevation: map.get($tokens, $elevation-token);
|
|
141
|
-
$shadow-color: map.get($tokens, $shadow-color-token);
|
|
142
|
-
@return map.merge(
|
|
143
|
-
$tokens,
|
|
144
|
-
(
|
|
145
|
-
$elevation-token: elevation.get-box-shadow($elevation, $shadow-color),
|
|
146
|
-
$shadow-color-token: null,
|
|
147
|
-
)
|
|
148
|
-
);
|
|
77
|
+
// Outputs a map of tokens under a specific prefix in scenarios where tokens may be mixed with
|
|
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);
|
|
149
81
|
}
|
|
150
82
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
@
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
/// @return {List} The supported color variants.
|
|
168
|
-
@function _supported-color-variants($tokens, $prefix) {
|
|
169
|
-
$result: ();
|
|
170
|
-
@each $namespace in map.keys($tokens) {
|
|
171
|
-
@if list.length($prefix) == list.length($namespace) - 1 and _is-prefix($namespace, $prefix) {
|
|
172
|
-
$result: list.append($result, list.nth($namespace, list.length($namespace)), comma);
|
|
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
|
+
--mtx-#{$key}: #{$value};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
} @else {
|
|
94
|
+
@each $key, $value in $tokens {
|
|
95
|
+
@if $value != null {
|
|
96
|
+
--mtx-#{$key}: #{$value};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
173
99
|
}
|
|
174
100
|
}
|
|
175
|
-
@return $result;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/// Gets the token values for the given components prefix with the given options.
|
|
179
|
-
/// @param {Map} $tokens The full token map.
|
|
180
|
-
/// @param {List} $prefix The component prefix to get the token values for.
|
|
181
|
-
/// @param {ArgList} Any additional options
|
|
182
|
-
/// Currently the additional supported options are:
|
|
183
|
-
// - $color-variant - The color variant to use for the component
|
|
184
|
-
// - $emit-overrides-only - Whether to emit *only* the overrides for the
|
|
185
|
-
// specific color variant, or all color styles. Defaults to false.
|
|
186
|
-
/// @throws If given options are invalid
|
|
187
|
-
/// @return {Map} The token values for the requested component.
|
|
188
|
-
@function get-tokens-for($tokens, $prefix, $options...) {
|
|
189
|
-
$options: mat.private-validate-keyword-args($options, (color-variant, emit-overrides-only));
|
|
190
|
-
@if $tokens == () {
|
|
191
|
-
@return ();
|
|
192
|
-
}
|
|
193
|
-
$values: map.get($tokens, $prefix);
|
|
194
|
-
$color-variant: map.get($options, color-variant);
|
|
195
|
-
$emit-overrides-only: map.get($options, emit-overrides-only);
|
|
196
|
-
@if $color-variant == null {
|
|
197
|
-
@return $values;
|
|
198
|
-
}
|
|
199
|
-
$overrides: map.get($tokens, list.append($prefix, $color-variant));
|
|
200
|
-
@if $overrides == null {
|
|
201
|
-
$variants: _supported-color-variants($tokens, $prefix);
|
|
202
|
-
$secondary-message: if(
|
|
203
|
-
$variants == (),
|
|
204
|
-
'Mixin does not support color variants',
|
|
205
|
-
'Supported color variants are: #{$variants}'
|
|
206
|
-
);
|
|
207
|
-
|
|
208
|
-
@error 'Invalid color variant: #{$color-variant}. #{$secondary-message}.';
|
|
209
|
-
}
|
|
210
|
-
@return if($emit-overrides-only, $overrides, map.merge($values, $overrides));
|
|
211
101
|
}
|
|
212
102
|
|
|
213
103
|
/// Emits new token values for the given token overrides.
|
|
214
104
|
/// Verifies that the overrides passed in are valid tokens.
|
|
215
105
|
/// New token values are emitted under the current selector or root.
|
|
216
|
-
@mixin batch-create-token-values($overrides: (), $namespace-configs
|
|
106
|
+
@mixin batch-create-token-values($overrides: (), $namespace-configs) {
|
|
217
107
|
@include mat.private-current-selector-or-root() {
|
|
218
108
|
$prefixed-name-data: ();
|
|
219
|
-
$unprefixed-name-data: ();
|
|
220
109
|
$all-names: ();
|
|
221
110
|
|
|
222
111
|
@each $config in $namespace-configs {
|
|
223
112
|
$namespace: map.get($config, namespace);
|
|
224
113
|
$prefix: if(map.has-key($config, prefix), map.get($config, prefix), '');
|
|
225
|
-
$tokens:
|
|
114
|
+
$tokens: map.get(map.get($config, tokens), all);
|
|
226
115
|
@each $name, $value in $tokens {
|
|
227
116
|
$prefixed-name: $prefix + $name;
|
|
228
117
|
$all-names: list.append($all-names, $prefixed-name, $separator: comma);
|
|
229
|
-
@if map.has-key($prefixed-name-data, $prefixed-name) {
|
|
230
|
-
@error #{
|
|
231
|
-
'Error overriding token: Ambiguous token name `'
|
|
232
|
-
}#{
|
|
233
|
-
$prefixed-name
|
|
234
|
-
}#{
|
|
235
|
-
'` exists in multiple namespaces: `('
|
|
236
|
-
}#{
|
|
237
|
-
list.nth(map.get($prefixed-name-data, $prefixed-name), 1)
|
|
238
|
-
}#{
|
|
239
|
-
')` and `('
|
|
240
|
-
}#{
|
|
241
|
-
$namespace
|
|
242
|
-
}#{
|
|
243
|
-
')`'
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
118
|
$prefixed-name-data: map.set($prefixed-name-data, $prefixed-name, ($namespace, $name));
|
|
247
|
-
$unprefixed-data: map.has-key($unprefixed-name-data, $name) and
|
|
248
|
-
map.get($unprefixed-name-data, $name) or
|
|
249
|
-
();
|
|
250
|
-
$unprefixed-data: list.append($unprefixed-data, ($namespace, $prefixed-name));
|
|
251
|
-
$unprefixed-name-data: map.set($unprefixed-name-data, $name, $unprefixed-data);
|
|
252
119
|
}
|
|
253
120
|
}
|
|
254
121
|
|
|
@@ -257,50 +124,11 @@ $_system-fallbacks: m3-system.create-system-fallbacks();
|
|
|
257
124
|
$data: map.get($prefixed-name-data, $name);
|
|
258
125
|
$namespace: list.nth($data, 1);
|
|
259
126
|
$name: list.nth($data, 2);
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
(
|
|
263
|
-
$name: $value,
|
|
264
|
-
)
|
|
265
|
-
);
|
|
266
|
-
} @else if (map.has-key($unprefixed-name-data, $name)) {
|
|
267
|
-
$datalist: map.get($unprefixed-name-data, $name);
|
|
268
|
-
$prefixed-names: ();
|
|
269
|
-
@each $data in $datalist {
|
|
270
|
-
$namespace: list.nth($data, 1);
|
|
271
|
-
$prefixed-names: list.append($prefixed-names, list.nth($data, 2), $separator: comma);
|
|
272
|
-
@include create-token-values(
|
|
273
|
-
$namespace,
|
|
274
|
-
(
|
|
275
|
-
$name: $value,
|
|
276
|
-
)
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
@warn #{
|
|
280
|
-
'Token `'
|
|
281
|
-
}#{
|
|
282
|
-
$name
|
|
283
|
-
}#{
|
|
284
|
-
'` is deprecated. Please use one of the following alternatives: '
|
|
285
|
-
}#{
|
|
286
|
-
$prefixed-names
|
|
287
|
-
};
|
|
127
|
+
$prefixed-name: $namespace + '-' + $name;
|
|
128
|
+
@include create-token-values(($prefixed-name: $value));
|
|
288
129
|
} @else {
|
|
289
130
|
@error #{'Invalid token name `'}#{$name}#{'`. '}#{'Valid tokens are: '}#{$all-names};
|
|
290
131
|
}
|
|
291
132
|
}
|
|
292
133
|
}
|
|
293
134
|
}
|
|
294
|
-
|
|
295
|
-
/// Filters keys with a null value out of the map.
|
|
296
|
-
/// @param {Map} $map The map to filter.
|
|
297
|
-
/// @return {Map} The given map with all of the null keys filtered out.
|
|
298
|
-
@function _filter-nulls($map) {
|
|
299
|
-
$result: ();
|
|
300
|
-
@each $key, $val in $map {
|
|
301
|
-
@if $val != null {
|
|
302
|
-
$result: map.set($result, $key, $val);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
@return $result;
|
|
306
|
-
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@use 'sass:map';
|
|
7
|
+
|
|
8
|
+
// Indicates whether alternative tokens should be used
|
|
9
|
+
$_alternate-tokens: false;
|
|
10
|
+
|
|
11
|
+
@function md-sys-color-values-dark($palettes) {
|
|
12
|
+
$values: (
|
|
13
|
+
background: map.get($palettes, neutral, 6),
|
|
14
|
+
error: map.get($palettes, error, 80),
|
|
15
|
+
error-container: map.get($palettes, error, 30),
|
|
16
|
+
inverse-on-surface: map.get($palettes, neutral, 20),
|
|
17
|
+
inverse-primary: map.get($palettes, primary, 40),
|
|
18
|
+
inverse-surface: map.get($palettes, neutral, 90),
|
|
19
|
+
on-background: map.get($palettes, neutral, 90),
|
|
20
|
+
on-error: map.get($palettes, error, 20),
|
|
21
|
+
on-error-container: map.get($palettes, error, 90),
|
|
22
|
+
on-primary: map.get($palettes, primary, 20),
|
|
23
|
+
on-primary-container: map.get($palettes, primary, 90),
|
|
24
|
+
on-primary-fixed: map.get($palettes, primary, 10),
|
|
25
|
+
on-primary-fixed-variant: map.get($palettes, primary, 30),
|
|
26
|
+
on-secondary: map.get($palettes, secondary, 20),
|
|
27
|
+
on-secondary-container: map.get($palettes, secondary, 90),
|
|
28
|
+
on-secondary-fixed: map.get($palettes, secondary, 10),
|
|
29
|
+
on-secondary-fixed-variant: map.get($palettes, secondary, 30),
|
|
30
|
+
on-surface: map.get($palettes, neutral, 90),
|
|
31
|
+
on-surface-variant: map.get($palettes, neutral-variant, 90),
|
|
32
|
+
on-tertiary: map.get($palettes, tertiary, 20),
|
|
33
|
+
on-tertiary-container: map.get($palettes, tertiary, 90),
|
|
34
|
+
on-tertiary-fixed: map.get($palettes, tertiary, 10),
|
|
35
|
+
on-tertiary-fixed-variant: map.get($palettes, tertiary, 30),
|
|
36
|
+
outline: map.get($palettes, neutral-variant, 60),
|
|
37
|
+
outline-variant: map.get($palettes, neutral-variant, 30),
|
|
38
|
+
primary: map.get($palettes, primary, 80),
|
|
39
|
+
primary-container: map.get($palettes, primary, 30),
|
|
40
|
+
primary-fixed: map.get($palettes, primary, 90),
|
|
41
|
+
primary-fixed-dim: map.get($palettes, primary, 80),
|
|
42
|
+
scrim: map.get($palettes, neutral, 0),
|
|
43
|
+
secondary: map.get($palettes, secondary, 80),
|
|
44
|
+
secondary-container: map.get($palettes, secondary, 30),
|
|
45
|
+
secondary-fixed: map.get($palettes, secondary, 90),
|
|
46
|
+
secondary-fixed-dim: map.get($palettes, secondary, 80),
|
|
47
|
+
shadow: map.get($palettes, neutral, 0),
|
|
48
|
+
surface: map.get($palettes, neutral, 6),
|
|
49
|
+
surface-bright: map.get($palettes, neutral, 24),
|
|
50
|
+
surface-container: map.get($palettes, neutral, 12),
|
|
51
|
+
surface-container-high: map.get($palettes, neutral, 17),
|
|
52
|
+
surface-container-highest: map.get($palettes, neutral, 22),
|
|
53
|
+
surface-container-low: map.get($palettes, neutral, 10),
|
|
54
|
+
surface-container-lowest: map.get($palettes, neutral, 4),
|
|
55
|
+
surface-dim: map.get($palettes, neutral, 6),
|
|
56
|
+
surface-tint: map.get($palettes, primary, 80),
|
|
57
|
+
surface-variant: map.get($palettes, neutral-variant, 30),
|
|
58
|
+
tertiary: map.get($palettes, tertiary, 80),
|
|
59
|
+
tertiary-container: map.get($palettes, tertiary, 30),
|
|
60
|
+
tertiary-fixed: map.get($palettes, tertiary, 90),
|
|
61
|
+
tertiary-fixed-dim: map.get($palettes, tertiary, 80)
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
@if ($_alternate-tokens) {
|
|
65
|
+
$values: map.merge($values, (
|
|
66
|
+
background: map.get($palettes, neutral, 10),
|
|
67
|
+
on-surface-variant: map.get($palettes, neutral-variant, 80),
|
|
68
|
+
surface: map.get($palettes, neutral, 10),
|
|
69
|
+
surface-bright: #37393b,
|
|
70
|
+
surface-container: #1e1f20,
|
|
71
|
+
surface-container-high: #282a2c,
|
|
72
|
+
surface-container-highest: #333537,
|
|
73
|
+
surface-container-low: #1b1b1b,
|
|
74
|
+
surface-container-lowest: #0e0e0e,
|
|
75
|
+
surface-dim: #131313,
|
|
76
|
+
surface-tint: #d1e1ff,
|
|
77
|
+
));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@return $values;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@function md-sys-color-values-light($palettes) {
|
|
84
|
+
$values: (
|
|
85
|
+
background: map.get($palettes, neutral, 98),
|
|
86
|
+
error: map.get($palettes, error, 40),
|
|
87
|
+
error-container: map.get($palettes, error, 90),
|
|
88
|
+
inverse-on-surface: map.get($palettes, neutral, 95),
|
|
89
|
+
inverse-primary: map.get($palettes, primary, 80),
|
|
90
|
+
inverse-surface: map.get($palettes, neutral, 20),
|
|
91
|
+
on-background: map.get($palettes, neutral, 10),
|
|
92
|
+
on-error: map.get($palettes, error, 100),
|
|
93
|
+
on-error-container: map.get($palettes, error, 30),
|
|
94
|
+
on-primary: map.get($palettes, primary, 100),
|
|
95
|
+
on-primary-container: map.get($palettes, primary, 30),
|
|
96
|
+
on-primary-fixed: map.get($palettes, primary, 10),
|
|
97
|
+
on-primary-fixed-variant: map.get($palettes, primary, 30),
|
|
98
|
+
on-secondary: map.get($palettes, secondary, 100),
|
|
99
|
+
on-secondary-container: map.get($palettes, secondary, 30),
|
|
100
|
+
on-secondary-fixed: map.get($palettes, secondary, 10),
|
|
101
|
+
on-secondary-fixed-variant: map.get($palettes, secondary, 30),
|
|
102
|
+
on-surface: map.get($palettes, neutral, 10),
|
|
103
|
+
on-surface-variant: map.get($palettes, neutral-variant, 30),
|
|
104
|
+
on-tertiary: map.get($palettes, tertiary, 100),
|
|
105
|
+
on-tertiary-container: map.get($palettes, tertiary, 30),
|
|
106
|
+
on-tertiary-fixed: map.get($palettes, tertiary, 10),
|
|
107
|
+
on-tertiary-fixed-variant: map.get($palettes, tertiary, 30),
|
|
108
|
+
outline: map.get($palettes, neutral-variant, 50),
|
|
109
|
+
outline-variant: map.get($palettes, neutral-variant, 80),
|
|
110
|
+
primary: map.get($palettes, primary, 40),
|
|
111
|
+
primary-container: map.get($palettes, primary, 90),
|
|
112
|
+
primary-fixed: map.get($palettes, primary, 90),
|
|
113
|
+
primary-fixed-dim: map.get($palettes, primary, 80),
|
|
114
|
+
scrim: map.get($palettes, neutral, 0),
|
|
115
|
+
secondary: map.get($palettes, secondary, 40),
|
|
116
|
+
secondary-container: map.get($palettes, secondary, 90),
|
|
117
|
+
secondary-fixed: map.get($palettes, secondary, 90),
|
|
118
|
+
secondary-fixed-dim: map.get($palettes, secondary, 80),
|
|
119
|
+
shadow: map.get($palettes, neutral, 0),
|
|
120
|
+
surface: map.get($palettes, neutral, 98),
|
|
121
|
+
surface-bright: map.get($palettes, neutral, 98),
|
|
122
|
+
surface-container: map.get($palettes, neutral, 94),
|
|
123
|
+
surface-container-high: map.get($palettes, neutral, 92),
|
|
124
|
+
surface-container-highest: map.get($palettes, neutral, 90),
|
|
125
|
+
surface-container-low: map.get($palettes, neutral, 96),
|
|
126
|
+
surface-container-lowest: map.get($palettes, neutral, 100),
|
|
127
|
+
surface-dim: map.get($palettes, neutral, 87),
|
|
128
|
+
surface-tint: map.get($palettes, primary, 40),
|
|
129
|
+
surface-variant: map.get($palettes, neutral-variant, 90),
|
|
130
|
+
tertiary: map.get($palettes, tertiary, 40),
|
|
131
|
+
tertiary-container: map.get($palettes, tertiary, 90),
|
|
132
|
+
tertiary-fixed: map.get($palettes, tertiary, 90),
|
|
133
|
+
tertiary-fixed-dim: map.get($palettes, tertiary, 80)
|
|
134
|
+
);
|
|
135
|
+
|
|
136
|
+
@if ($_alternate-tokens) {
|
|
137
|
+
$values: map.merge($values, (
|
|
138
|
+
background: map.get($palettes, neutral, 100),
|
|
139
|
+
on-error-container: map.get($palettes, error, 10),
|
|
140
|
+
on-primary-container: map.get($palettes, primary, 10),
|
|
141
|
+
on-secondary-container: map.get($palettes, secondary, 10),
|
|
142
|
+
on-tertiary-container: map.get($palettes, tertiary, 10),
|
|
143
|
+
surface: map.get($palettes, neutral, 100),
|
|
144
|
+
surface-bright: map.get($palettes, neutral, 100),
|
|
145
|
+
surface-container: #f0f4f9,
|
|
146
|
+
surface-container-high: #e9eef6,
|
|
147
|
+
surface-container-highest: #dde3ea,
|
|
148
|
+
surface-container-low: #f8fafd,
|
|
149
|
+
surface-container-lowest: map.get($palettes, primary, 100),
|
|
150
|
+
surface-dim: #d3dbe5,
|
|
151
|
+
surface-tint: #6991d6,
|
|
152
|
+
));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@return $values;
|
|
156
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
duration-extra-long1: 700ms,
|
|
9
|
+
duration-extra-long2: 800ms,
|
|
10
|
+
duration-extra-long3: 900ms,
|
|
11
|
+
duration-extra-long4: 1000ms,
|
|
12
|
+
duration-long1: 450ms,
|
|
13
|
+
duration-long2: 500ms,
|
|
14
|
+
duration-long3: 550ms,
|
|
15
|
+
duration-long4: 600ms,
|
|
16
|
+
duration-medium1: 250ms,
|
|
17
|
+
duration-medium2: 300ms,
|
|
18
|
+
duration-medium3: 350ms,
|
|
19
|
+
duration-medium4: 400ms,
|
|
20
|
+
duration-short1: 50ms,
|
|
21
|
+
duration-short2: 100ms,
|
|
22
|
+
duration-short3: 150ms,
|
|
23
|
+
duration-short4: 200ms,
|
|
24
|
+
easing-emphasized: cubic-bezier(0.2, 0, 0, 1),
|
|
25
|
+
easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15),
|
|
26
|
+
easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1),
|
|
27
|
+
easing-legacy: cubic-bezier(0.4, 0, 0.2, 1),
|
|
28
|
+
easing-legacy-accelerate: cubic-bezier(0.4, 0, 1, 1),
|
|
29
|
+
easing-legacy-decelerate: cubic-bezier(0, 0, 0.2, 1),
|
|
30
|
+
easing-linear: cubic-bezier(0, 0, 1, 1),
|
|
31
|
+
easing-standard: cubic-bezier(0.2, 0, 0, 1),
|
|
32
|
+
easing-standard-accelerate: cubic-bezier(0.3, 0, 1, 1),
|
|
33
|
+
easing-standard-decelerate: cubic-bezier(0, 0, 0, 1)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
corner-extra-large: 28px,
|
|
9
|
+
corner-extra-large-top: (28px 28px 0 0),
|
|
10
|
+
corner-extra-small: 4px,
|
|
11
|
+
corner-extra-small-top: (4px 4px 0 0),
|
|
12
|
+
corner-full: 9999px,
|
|
13
|
+
corner-large: 16px,
|
|
14
|
+
corner-large-end: (0 16px 16px 0),
|
|
15
|
+
corner-large-start: (16px 0 0 16px),
|
|
16
|
+
corner-large-top: (16px 16px 0 0),
|
|
17
|
+
corner-medium: 12px,
|
|
18
|
+
corner-none: 0,
|
|
19
|
+
corner-small: 8px
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
dragged-state-layer-opacity: 0.16,
|
|
9
|
+
focus-state-layer-opacity: 0.12,
|
|
10
|
+
hover-state-layer-opacity: 0.08,
|
|
11
|
+
pressed-state-layer-opacity: 0.12
|
|
12
|
+
);
|
|
13
|
+
}
|