@material/web 1.0.0-pre.3 → 1.0.0-pre.4
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/LICENSE +1 -1
- package/README.md +41 -41
- package/controller/form-controller.d.ts +1 -1
- package/controller/form-controller.js +21 -29
- package/controller/form-controller.js.map +1 -1
- package/field/lib/_content.scss +91 -13
- package/field/lib/_filled-field.scss +19 -57
- package/field/lib/_label.scss +1 -2
- package/field/lib/_md-comp-filled-field.scss +123 -64
- package/field/lib/_md-comp-outlined-field.scss +100 -59
- package/field/lib/_outlined-field.scss +13 -11
- package/field/lib/_shared.scss +21 -17
- package/field/lib/field.d.ts +2 -1
- package/field/lib/field.js +73 -62
- package/field/lib/field.js.map +1 -1
- package/field/lib/filled-field.d.ts +0 -5
- package/field/lib/filled-field.js +2 -41
- package/field/lib/filled-field.js.map +1 -1
- package/field/lib/filled-styles.css.js +1 -1
- package/field/lib/filled-styles.css.js.map +1 -1
- package/field/lib/outlined-field.js +1 -1
- package/field/lib/outlined-field.js.map +1 -1
- package/field/lib/outlined-styles.css.js +1 -1
- package/field/lib/outlined-styles.css.js.map +1 -1
- package/field/lib/shared-styles.css.js +1 -1
- package/field/lib/shared-styles.css.js.map +1 -1
- package/icon/lib/_icon.scss +1 -1
- package/icon/lib/_md-comp-icon.scss +1 -2
- package/icon/lib/icon-styles.css.js +1 -1
- package/icon/lib/icon-styles.css.js.map +1 -1
- package/list/lib/_list.scss +19 -9
- package/list/lib/list-styles.css.js +1 -1
- package/list/lib/list-styles.css.js.map +1 -1
- package/list/lib/listitem/_list-item.scss +293 -102
- package/list/lib/listitem/list-item-styles.css.js +1 -1
- package/list/lib/listitem/list-item-styles.css.js.map +1 -1
- package/list/lib/listitem/list-item.d.ts +7 -6
- package/list/lib/listitem/list-item.js +22 -26
- package/list/lib/listitem/list-item.js.map +1 -1
- package/list/list-item-link.d.ts +18 -0
- package/list/list-item-link.js +19 -2
- package/list/list-item-link.js.map +1 -1
- package/list/list-item.d.ts +19 -0
- package/list/list-item.js +20 -2
- package/list/list-item.js.map +1 -1
- package/menu/lib/_menu.scss +26 -5
- package/menu/lib/menu-styles.css.js +1 -1
- package/menu/lib/menu-styles.css.js.map +1 -1
- package/menu/lib/menu.js +8 -7
- package/menu/lib/menu.js.map +1 -1
- package/menu/lib/menuitem/_menu-item.scss +39 -79
- package/menu/lib/menuitem/menu-item-styles.css.js +1 -1
- package/menu/lib/menuitem/menu-item-styles.css.js.map +1 -1
- package/menu/lib/submenuitem/sub-menu-item.d.ts +0 -1
- package/menu/lib/submenuitem/sub-menu-item.js +0 -1
- package/menu/lib/submenuitem/sub-menu-item.js.map +1 -1
- package/menu/menu-item-link.js +1 -2
- package/menu/menu-item-link.js.map +1 -1
- package/menu/menu-item.js +2 -3
- package/menu/menu-item.js.map +1 -1
- package/menu/sub-menu-item.js +1 -2
- package/menu/sub-menu-item.js.map +1 -1
- package/menusurface/lib/_md-comp-menu-surface.scss +1 -1
- package/package.json +1 -1
- package/textfield/lib/_filled-text-field.scss +98 -96
- package/textfield/lib/_icon.scss +11 -55
- package/textfield/lib/_input.scss +4 -6
- package/textfield/lib/_outlined-text-field.scss +87 -88
- package/textfield/lib/filled-styles.css.js +1 -1
- package/textfield/lib/filled-styles.css.js.map +1 -1
- package/textfield/lib/outlined-styles.css.js +1 -1
- package/textfield/lib/outlined-styles.css.js.map +1 -1
- package/textfield/lib/shared-styles.css.js +1 -1
- package/textfield/lib/shared-styles.css.js.map +1 -1
- package/tokens/_index.scss +1 -1
- package/tokens/v0_161/_index.scss +107 -0
- package/tokens/v0_161/_md-comp-assist-chip.scss +109 -0
- package/tokens/v0_161/_md-comp-badge.scss +58 -0
- package/tokens/v0_161/_md-comp-banner.scss +75 -0
- package/tokens/v0_161/_md-comp-bottom-app-bar.scss +35 -0
- package/tokens/v0_161/_md-comp-carousel-item.scss +65 -0
- package/tokens/v0_161/_md-comp-checkbox.scss +126 -0
- package/tokens/v0_161/_md-comp-circular-progress-indicator.scss +39 -0
- package/tokens/v0_161/_md-comp-data-table.scss +96 -0
- package/tokens/v0_161/_md-comp-date-input-modal.scss +89 -0
- package/tokens/v0_161/_md-comp-date-picker-docked.scss +246 -0
- package/tokens/v0_161/_md-comp-date-picker-modal.scss +305 -0
- package/tokens/v0_161/_md-comp-dialog.scss +123 -0
- package/tokens/v0_161/_md-comp-divider.scss +25 -0
- package/tokens/v0_161/_md-comp-elevated-button.scss +91 -0
- package/tokens/v0_161/_md-comp-elevated-card.scss +59 -0
- package/tokens/v0_161/_md-comp-extended-fab-branded.scss +86 -0
- package/tokens/v0_161/_md-comp-extended-fab-primary.scss +94 -0
- package/tokens/v0_161/_md-comp-extended-fab-secondary.scss +95 -0
- package/tokens/v0_161/_md-comp-extended-fab-surface.scss +90 -0
- package/tokens/v0_161/_md-comp-extended-fab-tertiary.scss +95 -0
- package/tokens/v0_161/_md-comp-fab-branded-large.scss +60 -0
- package/tokens/v0_161/_md-comp-fab-branded.scss +60 -0
- package/tokens/v0_161/_md-comp-fab-primary-large.scss +65 -0
- package/tokens/v0_161/_md-comp-fab-primary-small.scss +65 -0
- package/tokens/v0_161/_md-comp-fab-primary.scss +65 -0
- package/tokens/v0_161/_md-comp-fab-secondary-large.scss +66 -0
- package/tokens/v0_161/_md-comp-fab-secondary-small.scss +66 -0
- package/tokens/v0_161/_md-comp-fab-secondary.scss +66 -0
- package/tokens/v0_161/_md-comp-fab-surface-large.scss +64 -0
- package/tokens/v0_161/_md-comp-fab-surface-small.scss +64 -0
- package/tokens/v0_161/_md-comp-fab-surface.scss +64 -0
- package/tokens/v0_161/_md-comp-fab-tertiary-large.scss +66 -0
- package/tokens/v0_161/_md-comp-fab-tertiary-small.scss +66 -0
- package/tokens/v0_161/_md-comp-fab-tertiary.scss +66 -0
- package/tokens/v0_161/_md-comp-filled-autocomplete.scss +267 -0
- package/tokens/v0_161/_md-comp-filled-button.scss +89 -0
- package/tokens/v0_161/_md-comp-filled-card.scss +58 -0
- package/tokens/v0_161/_md-comp-filled-icon-button.scss +79 -0
- package/tokens/v0_161/_md-comp-filled-menu-button.scss +98 -0
- package/tokens/v0_161/_md-comp-filled-select.scss +272 -0
- package/tokens/v0_161/_md-comp-filled-text-field.scss +189 -0
- package/tokens/v0_161/_md-comp-filled-tonal-button.scss +99 -0
- package/tokens/v0_161/_md-comp-filled-tonal-icon-button.scss +86 -0
- package/tokens/v0_161/_md-comp-filter-chip.scss +209 -0
- package/tokens/v0_161/_md-comp-full-screen-dialog.scss +111 -0
- package/tokens/v0_161/_md-comp-icon-button.scss +70 -0
- package/tokens/v0_161/_md-comp-input-chip.scss +184 -0
- package/tokens/v0_161/_md-comp-linear-progress-indicator.scss +41 -0
- package/tokens/v0_161/_md-comp-list.scss +248 -0
- package/tokens/v0_161/_md-comp-menu.scss +37 -0
- package/tokens/v0_161/_md-comp-navigation-bar.scss +114 -0
- package/tokens/v0_161/_md-comp-navigation-drawer.scss +162 -0
- package/tokens/v0_161/_md-comp-navigation-rail.scss +131 -0
- package/tokens/v0_161/_md-comp-outlined-autocomplete.scss +257 -0
- package/tokens/v0_161/_md-comp-outlined-button.scss +84 -0
- package/tokens/v0_161/_md-comp-outlined-card.scss +65 -0
- package/tokens/v0_161/_md-comp-outlined-icon-button.scss +79 -0
- package/tokens/v0_161/_md-comp-outlined-menu-button.scss +94 -0
- package/tokens/v0_161/_md-comp-outlined-segmented-button.scss +112 -0
- package/tokens/v0_161/_md-comp-outlined-select.scss +262 -0
- package/tokens/v0_161/_md-comp-outlined-text-field.scss +171 -0
- package/tokens/v0_161/_md-comp-plain-tooltip.scss +55 -0
- package/tokens/v0_161/_md-comp-primary-navigation-tab.scss +121 -0
- package/tokens/v0_161/_md-comp-radio-button.scss +68 -0
- package/tokens/v0_161/_md-comp-rich-tooltip.scss +121 -0
- package/tokens/v0_161/_md-comp-scrim.scss +25 -0
- package/tokens/v0_161/_md-comp-search-bar.scss +99 -0
- package/tokens/v0_161/_md-comp-search-view.scss +93 -0
- package/tokens/v0_161/_md-comp-secondary-navigation-tab.scss +84 -0
- package/tokens/v0_161/_md-comp-sheet-bottom.scss +45 -0
- package/tokens/v0_161/_md-comp-sheet-floating.scss +34 -0
- package/tokens/v0_161/_md-comp-sheet-side.scss +91 -0
- package/tokens/v0_161/_md-comp-slider.scss +114 -0
- package/tokens/v0_161/_md-comp-snackbar.scss +127 -0
- package/tokens/v0_161/_md-comp-standard-menu-button.scss +98 -0
- package/tokens/v0_161/_md-comp-suggestion-chip.scss +125 -0
- package/tokens/v0_161/_md-comp-switch.scss +136 -0
- package/tokens/v0_161/_md-comp-text-button.scss +77 -0
- package/tokens/v0_161/_md-comp-time-input.scss +218 -0
- package/tokens/v0_161/_md-comp-time-picker.scss +264 -0
- package/tokens/v0_161/_md-comp-top-app-bar-large.scss +63 -0
- package/tokens/v0_161/_md-comp-top-app-bar-medium.scss +63 -0
- package/tokens/v0_161/_md-comp-top-app-bar-small-centered.scss +66 -0
- package/tokens/v0_161/_md-comp-top-app-bar-small.scss +64 -0
- package/tokens/v0_161/_md-ref-palette.scss +107 -0
- package/tokens/v0_161/_md-ref-typeface.scss +21 -0
- package/tokens/v0_161/_md-sys-color.scss +904 -0
- package/tokens/v0_161/_md-sys-elevation.scss +21 -0
- package/tokens/v0_161/_md-sys-motion.scss +53 -0
- package/tokens/v0_161/_md-sys-shape.scss +30 -0
- package/tokens/v0_161/_md-sys-state.scss +19 -0
- package/tokens/v0_161/_md-sys-typescale.scss +284 -0
- package/tokens/v0_161/index.test.css.js +9 -0
- package/tokens/v0_161/index.test.css.js.map +1 -0
- package/tokens/v0_161/index.test.scss +584 -0
- package/tokens/v0_161/lib.test.css.js +9 -0
- package/tokens/v0_161/lib.test.css.js.map +1 -0
- package/tokens/v0_161/lib.test.scss +663 -0
- package/controller/foundation.d.ts +0 -24
- package/controller/foundation.js +0 -18
- package/controller/foundation.js.map +0 -1
- package/controller/observer-foundation.d.ts +0 -25
- package/controller/observer-foundation.js +0 -37
- package/controller/observer-foundation.js.map +0 -1
- package/controller/observer.d.ts +0 -52
- package/controller/observer.js +0 -149
- package/controller/observer.js.map +0 -1
- package/decorators/bound.d.ts +0 -40
- package/decorators/bound.js +0 -49
- package/decorators/bound.js.map +0 -1
- package/list/lib/avatar/_list-item-avatar.scss +0 -40
- package/list/lib/avatar/list-item-avatar-styles.css.js +0 -9
- package/list/lib/avatar/list-item-avatar-styles.css.js.map +0 -1
- package/list/lib/avatar/list-item-avatar-styles.scss +0 -10
- package/list/lib/avatar/list-item-avatar.d.ts +0 -21
- package/list/lib/avatar/list-item-avatar.js +0 -48
- package/list/lib/avatar/list-item-avatar.js.map +0 -1
- package/list/lib/icon/_list-item-icon.scss +0 -71
- package/list/lib/icon/list-item-icon-styles.css.js +0 -9
- package/list/lib/icon/list-item-icon-styles.css.js.map +0 -1
- package/list/lib/icon/list-item-icon-styles.scss +0 -10
- package/list/lib/icon/list-item-icon.d.ts +0 -9
- package/list/lib/icon/list-item-icon.js +0 -15
- package/list/lib/icon/list-item-icon.js.map +0 -1
- package/list/lib/image/_list-item-image.scss +0 -63
- package/list/lib/image/list-item-image-styles.css.d.ts +0 -1
- package/list/lib/image/list-item-image-styles.css.js +0 -9
- package/list/lib/image/list-item-image-styles.css.js.map +0 -1
- package/list/lib/image/list-item-image-styles.scss +0 -10
- package/list/lib/image/list-item-image.d.ts +0 -21
- package/list/lib/image/list-item-image.js +0 -48
- package/list/lib/image/list-item-image.js.map +0 -1
- package/list/lib/listitem/list-item-private-styles.css.d.ts +0 -1
- package/list/lib/listitem/list-item-private-styles.css.js +0 -9
- package/list/lib/listitem/list-item-private-styles.css.js.map +0 -1
- package/list/lib/listitem/list-item-private-styles.scss +0 -10
- package/list/lib/video/_list-item-video.scss +0 -71
- package/list/lib/video/list-item-video-styles.css.d.ts +0 -1
- package/list/lib/video/list-item-video-styles.css.js +0 -9
- package/list/lib/video/list-item-video-styles.css.js.map +0 -1
- package/list/lib/video/list-item-video-styles.scss +0 -10
- package/list/lib/video/list-item-video.d.ts +0 -53
- package/list/lib/video/list-item-video.js +0 -115
- package/list/lib/video/list-item-video.js.map +0 -1
- package/list/list-item-avatar.d.ts +0 -20
- package/list/list-item-avatar.js +0 -23
- package/list/list-item-avatar.js.map +0 -1
- package/list/list-item-icon.d.ts +0 -20
- package/list/list-item-icon.js +0 -23
- package/list/list-item-icon.js.map +0 -1
- package/list/list-item-image.d.ts +0 -20
- package/list/list-item-image.js +0 -23
- package/list/list-item-image.js.map +0 -1
- package/list/list-item-video.d.ts +0 -20
- package/list/list-item-video.js +0 -23
- package/list/list-item-video.js.map +0 -1
- package/menu/lib/menuitem/menu-item-private-styles.css.d.ts +0 -1
- package/menu/lib/menuitem/menu-item-private-styles.css.js +0 -9
- package/menu/lib/menuitem/menu-item-private-styles.css.js.map +0 -1
- package/menu/lib/menuitem/menu-item-private-styles.scss +0 -10
- /package/{list/lib/avatar/list-item-avatar-styles.css.d.ts → tokens/v0_161/index.test.css.d.ts} +0 -0
- /package/{list/lib/icon/list-item-icon-styles.css.d.ts → tokens/v0_161/lib.test.css.d.ts} +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
//
|
|
6
|
+
// !!! THIS FILE WAS AUTOMATICALLY GENERATED !!!
|
|
7
|
+
// !!! DO NOT MODIFY IT BY HAND !!!
|
|
8
|
+
// Design system display name: Google Material 3
|
|
9
|
+
// Design system version: v0.161
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
@use 'sass:map';
|
|
13
|
+
|
|
14
|
+
@use './md-sys-color';
|
|
15
|
+
|
|
16
|
+
@use './md-sys-elevation';
|
|
17
|
+
|
|
18
|
+
@use './md-sys-shape';
|
|
19
|
+
|
|
20
|
+
@use './md-sys-state';
|
|
21
|
+
|
|
22
|
+
@use './md-sys-typescale';
|
|
23
|
+
|
|
24
|
+
$_default: (
|
|
25
|
+
'md-sys-color': md-sys-color.values-light(),
|
|
26
|
+
'md-sys-elevation': md-sys-elevation.values(),
|
|
27
|
+
'md-sys-shape': md-sys-shape.values(),
|
|
28
|
+
'md-sys-state': md-sys-state.values(),
|
|
29
|
+
'md-sys-typescale': md-sys-typescale.values(),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
33
|
+
@return (
|
|
34
|
+
'menu-cascading-menu-indicator-icon-color':
|
|
35
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
36
|
+
'menu-cascading-menu-indicator-icon-size':
|
|
37
|
+
if($exclude-hardcoded-values, null, 24px),
|
|
38
|
+
'menu-container-color': map.get($deps, 'md-sys-color', 'surface'),
|
|
39
|
+
'menu-container-elevation': map.get($deps, 'md-sys-elevation', 'level2'),
|
|
40
|
+
'menu-container-shadow-color': map.get($deps, 'md-sys-color', 'shadow'),
|
|
41
|
+
'menu-container-shape': map.get($deps, 'md-sys-shape', 'corner-extra-small'),
|
|
42
|
+
'menu-container-surface-tint-layer-color':
|
|
43
|
+
map.get($deps, 'md-sys-color', 'surface-tint'),
|
|
44
|
+
'menu-divider-color': map.get($deps, 'md-sys-color', 'surface-variant'),
|
|
45
|
+
'menu-divider-height': if($exclude-hardcoded-values, null, 1px),
|
|
46
|
+
'menu-list-item-container-height': if($exclude-hardcoded-values, null, 48px),
|
|
47
|
+
'menu-list-item-label-text-color':
|
|
48
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
49
|
+
'menu-list-item-label-text-font':
|
|
50
|
+
map.get($deps, 'md-sys-typescale', 'label-large-font'),
|
|
51
|
+
'menu-list-item-label-text-line-height':
|
|
52
|
+
map.get($deps, 'md-sys-typescale', 'label-large-line-height'),
|
|
53
|
+
'menu-list-item-label-text-size':
|
|
54
|
+
map.get($deps, 'md-sys-typescale', 'label-large-size'),
|
|
55
|
+
'menu-list-item-label-text-tracking':
|
|
56
|
+
map.get($deps, 'md-sys-typescale', 'label-large-tracking'),
|
|
57
|
+
'menu-list-item-label-text-type':
|
|
58
|
+
if(
|
|
59
|
+
$exclude-hardcoded-values,
|
|
60
|
+
null,
|
|
61
|
+
/** Warning: risk of reduced fidelity from using this composite typography token. Tokens md.comp.filled-autocomplete.menu.list-item.label-text.tracking cannot be represented in the "font" property shorthand. Consider using the discrete properties instead. */
|
|
62
|
+
map.get($deps, 'md-sys-typescale', 'label-large-weight')
|
|
63
|
+
map.get($deps, 'md-sys-typescale', 'label-large-size') #{'/'} map.get(
|
|
64
|
+
$deps,
|
|
65
|
+
'md-sys-typescale',
|
|
66
|
+
'label-large-line-height'
|
|
67
|
+
) map.get($deps, 'md-sys-typescale', 'label-large-font')
|
|
68
|
+
),
|
|
69
|
+
'menu-list-item-label-text-weight':
|
|
70
|
+
map.get($deps, 'md-sys-typescale', 'label-large-weight'),
|
|
71
|
+
'menu-list-item-selected-container-color':
|
|
72
|
+
map.get($deps, 'md-sys-color', 'surface-variant'),
|
|
73
|
+
'text-field-active-indicator-color':
|
|
74
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
75
|
+
'text-field-active-indicator-height':
|
|
76
|
+
if($exclude-hardcoded-values, null, 1px),
|
|
77
|
+
'text-field-caret-color': map.get($deps, 'md-sys-color', 'primary'),
|
|
78
|
+
'text-field-container-color':
|
|
79
|
+
map.get($deps, 'md-sys-color', 'surface-variant'),
|
|
80
|
+
'text-field-container-shape':
|
|
81
|
+
map.get($deps, 'md-sys-shape', 'corner-extra-small-top'),
|
|
82
|
+
'text-field-disabled-active-indicator-color':
|
|
83
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
84
|
+
'text-field-disabled-active-indicator-height':
|
|
85
|
+
if($exclude-hardcoded-values, null, 1px),
|
|
86
|
+
'text-field-disabled-active-indicator-opacity':
|
|
87
|
+
if($exclude-hardcoded-values, null, 0.38),
|
|
88
|
+
'text-field-disabled-container-color':
|
|
89
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
90
|
+
'text-field-disabled-container-opacity':
|
|
91
|
+
if($exclude-hardcoded-values, null, 0.04),
|
|
92
|
+
'text-field-disabled-input-text-color':
|
|
93
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
94
|
+
'text-field-disabled-input-text-opacity':
|
|
95
|
+
if($exclude-hardcoded-values, null, 0.38),
|
|
96
|
+
'text-field-disabled-label-text-color':
|
|
97
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
98
|
+
'text-field-disabled-label-text-opacity':
|
|
99
|
+
if($exclude-hardcoded-values, null, 0.38),
|
|
100
|
+
'text-field-disabled-leading-icon-color':
|
|
101
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
102
|
+
'text-field-disabled-leading-icon-opacity':
|
|
103
|
+
if($exclude-hardcoded-values, null, 0.38),
|
|
104
|
+
'text-field-disabled-supporting-text-color':
|
|
105
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
106
|
+
'text-field-disabled-supporting-text-opacity':
|
|
107
|
+
if($exclude-hardcoded-values, null, 0.38),
|
|
108
|
+
'text-field-disabled-trailing-icon-color':
|
|
109
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
110
|
+
'text-field-disabled-trailing-icon-opacity':
|
|
111
|
+
if($exclude-hardcoded-values, null, 0.38),
|
|
112
|
+
'text-field-error-active-indicator-color':
|
|
113
|
+
map.get($deps, 'md-sys-color', 'error'),
|
|
114
|
+
'text-field-error-focus-active-indicator-color':
|
|
115
|
+
map.get($deps, 'md-sys-color', 'error'),
|
|
116
|
+
'text-field-error-focus-caret-color':
|
|
117
|
+
map.get($deps, 'md-sys-color', 'error'),
|
|
118
|
+
'text-field-error-focus-input-text-color':
|
|
119
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
120
|
+
'text-field-error-focus-label-text-color':
|
|
121
|
+
map.get($deps, 'md-sys-color', 'error'),
|
|
122
|
+
'text-field-error-focus-leading-icon-color':
|
|
123
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
124
|
+
'text-field-error-focus-supporting-text-color':
|
|
125
|
+
map.get($deps, 'md-sys-color', 'error'),
|
|
126
|
+
'text-field-error-focus-trailing-icon-color':
|
|
127
|
+
map.get($deps, 'md-sys-color', 'error'),
|
|
128
|
+
'text-field-error-hover-active-indicator-color':
|
|
129
|
+
map.get($deps, 'md-sys-color', 'on-error-container'),
|
|
130
|
+
'text-field-error-hover-input-text-color':
|
|
131
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
132
|
+
'text-field-error-hover-label-text-color':
|
|
133
|
+
map.get($deps, 'md-sys-color', 'on-error-container'),
|
|
134
|
+
'text-field-error-hover-leading-icon-color':
|
|
135
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
136
|
+
'text-field-error-hover-state-layer-color':
|
|
137
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
138
|
+
'text-field-error-hover-state-layer-opacity':
|
|
139
|
+
map.get($deps, 'md-sys-state', 'hover-state-layer-opacity'),
|
|
140
|
+
'text-field-error-hover-supporting-text-color':
|
|
141
|
+
map.get($deps, 'md-sys-color', 'error'),
|
|
142
|
+
'text-field-error-hover-trailing-icon-color':
|
|
143
|
+
map.get($deps, 'md-sys-color', 'on-error-container'),
|
|
144
|
+
'text-field-error-input-text-color':
|
|
145
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
146
|
+
'text-field-error-label-text-color': map.get($deps, 'md-sys-color', 'error'),
|
|
147
|
+
'text-field-error-leading-icon-color':
|
|
148
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
149
|
+
'text-field-error-supporting-text-color':
|
|
150
|
+
map.get($deps, 'md-sys-color', 'error'),
|
|
151
|
+
'text-field-error-trailing-icon-color':
|
|
152
|
+
map.get($deps, 'md-sys-color', 'error'),
|
|
153
|
+
'text-field-focus-active-indicator-color':
|
|
154
|
+
map.get($deps, 'md-sys-color', 'primary'),
|
|
155
|
+
'text-field-focus-active-indicator-height':
|
|
156
|
+
if($exclude-hardcoded-values, null, 2px),
|
|
157
|
+
'text-field-focus-input-text-color':
|
|
158
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
159
|
+
'text-field-focus-label-text-color':
|
|
160
|
+
map.get($deps, 'md-sys-color', 'primary'),
|
|
161
|
+
'text-field-focus-leading-icon-color':
|
|
162
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
163
|
+
'text-field-focus-supporting-text-color':
|
|
164
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
165
|
+
'text-field-focus-trailing-icon-color':
|
|
166
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
167
|
+
'text-field-hover-active-indicator-color':
|
|
168
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
169
|
+
'text-field-hover-active-indicator-height':
|
|
170
|
+
if($exclude-hardcoded-values, null, 1px),
|
|
171
|
+
'text-field-hover-input-text-color':
|
|
172
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
173
|
+
'text-field-hover-label-text-color':
|
|
174
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
175
|
+
'text-field-hover-leading-icon-color':
|
|
176
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
177
|
+
'text-field-hover-state-layer-color':
|
|
178
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
179
|
+
'text-field-hover-state-layer-opacity':
|
|
180
|
+
map.get($deps, 'md-sys-state', 'hover-state-layer-opacity'),
|
|
181
|
+
'text-field-hover-supporting-text-color':
|
|
182
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
183
|
+
'text-field-hover-trailing-icon-color':
|
|
184
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
185
|
+
'text-field-input-text-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
186
|
+
'text-field-input-text-font':
|
|
187
|
+
map.get($deps, 'md-sys-typescale', 'body-large-font'),
|
|
188
|
+
'text-field-input-text-line-height':
|
|
189
|
+
map.get($deps, 'md-sys-typescale', 'body-large-line-height'),
|
|
190
|
+
'text-field-input-text-size':
|
|
191
|
+
map.get($deps, 'md-sys-typescale', 'body-large-size'),
|
|
192
|
+
'text-field-input-text-tracking':
|
|
193
|
+
map.get($deps, 'md-sys-typescale', 'body-large-tracking'),
|
|
194
|
+
'text-field-input-text-type':
|
|
195
|
+
if(
|
|
196
|
+
$exclude-hardcoded-values,
|
|
197
|
+
null,
|
|
198
|
+
/** Warning: risk of reduced fidelity from using this composite typography token. Tokens md.comp.filled-autocomplete.text-field.input-text.tracking cannot be represented in the "font" property shorthand. Consider using the discrete properties instead. */
|
|
199
|
+
map.get($deps, 'md-sys-typescale', 'body-large-weight')
|
|
200
|
+
map.get($deps, 'md-sys-typescale', 'body-large-size') #{'/'} map.get(
|
|
201
|
+
$deps,
|
|
202
|
+
'md-sys-typescale',
|
|
203
|
+
'body-large-line-height'
|
|
204
|
+
) map.get($deps, 'md-sys-typescale', 'body-large-font')
|
|
205
|
+
),
|
|
206
|
+
'text-field-input-text-weight':
|
|
207
|
+
map.get($deps, 'md-sys-typescale', 'body-large-weight'),
|
|
208
|
+
'text-field-label-text-color':
|
|
209
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
210
|
+
'text-field-label-text-font':
|
|
211
|
+
map.get($deps, 'md-sys-typescale', 'body-large-font'),
|
|
212
|
+
'text-field-label-text-line-height':
|
|
213
|
+
map.get($deps, 'md-sys-typescale', 'body-large-line-height'),
|
|
214
|
+
'text-field-label-text-populated-line-height':
|
|
215
|
+
map.get($deps, 'md-sys-typescale', 'body-small-line-height'),
|
|
216
|
+
'text-field-label-text-populated-size':
|
|
217
|
+
map.get($deps, 'md-sys-typescale', 'body-small-size'),
|
|
218
|
+
'text-field-label-text-size':
|
|
219
|
+
map.get($deps, 'md-sys-typescale', 'body-large-size'),
|
|
220
|
+
'text-field-label-text-tracking':
|
|
221
|
+
map.get($deps, 'md-sys-typescale', 'body-large-tracking'),
|
|
222
|
+
'text-field-label-text-type':
|
|
223
|
+
if(
|
|
224
|
+
$exclude-hardcoded-values,
|
|
225
|
+
null,
|
|
226
|
+
/** Warning: risk of reduced fidelity from using this composite typography token. Tokens md.comp.filled-autocomplete.text-field.label-text.tracking cannot be represented in the "font" property shorthand. Consider using the discrete properties instead. */
|
|
227
|
+
map.get($deps, 'md-sys-typescale', 'body-large-weight')
|
|
228
|
+
map.get($deps, 'md-sys-typescale', 'body-large-size') #{'/'} map.get(
|
|
229
|
+
$deps,
|
|
230
|
+
'md-sys-typescale',
|
|
231
|
+
'body-large-line-height'
|
|
232
|
+
) map.get($deps, 'md-sys-typescale', 'body-large-font')
|
|
233
|
+
),
|
|
234
|
+
'text-field-label-text-weight':
|
|
235
|
+
map.get($deps, 'md-sys-typescale', 'body-large-weight'),
|
|
236
|
+
'text-field-leading-icon-color':
|
|
237
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
238
|
+
'text-field-leading-icon-size': if($exclude-hardcoded-values, null, 20px),
|
|
239
|
+
'text-field-supporting-text-color':
|
|
240
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
241
|
+
'text-field-supporting-text-font':
|
|
242
|
+
map.get($deps, 'md-sys-typescale', 'body-small-font'),
|
|
243
|
+
'text-field-supporting-text-line-height':
|
|
244
|
+
map.get($deps, 'md-sys-typescale', 'body-small-line-height'),
|
|
245
|
+
'text-field-supporting-text-size':
|
|
246
|
+
map.get($deps, 'md-sys-typescale', 'body-small-size'),
|
|
247
|
+
'text-field-supporting-text-tracking':
|
|
248
|
+
map.get($deps, 'md-sys-typescale', 'body-small-tracking'),
|
|
249
|
+
'text-field-supporting-text-type':
|
|
250
|
+
if(
|
|
251
|
+
$exclude-hardcoded-values,
|
|
252
|
+
null,
|
|
253
|
+
/** Warning: risk of reduced fidelity from using this composite typography token. Tokens md.comp.filled-autocomplete.text-field.supporting-text.tracking cannot be represented in the "font" property shorthand. Consider using the discrete properties instead. */
|
|
254
|
+
map.get($deps, 'md-sys-typescale', 'body-small-weight')
|
|
255
|
+
map.get($deps, 'md-sys-typescale', 'body-small-size') #{'/'} map.get(
|
|
256
|
+
$deps,
|
|
257
|
+
'md-sys-typescale',
|
|
258
|
+
'body-small-line-height'
|
|
259
|
+
) map.get($deps, 'md-sys-typescale', 'body-small-font')
|
|
260
|
+
),
|
|
261
|
+
'text-field-supporting-text-weight':
|
|
262
|
+
map.get($deps, 'md-sys-typescale', 'body-small-weight'),
|
|
263
|
+
'text-field-trailing-icon-color':
|
|
264
|
+
map.get($deps, 'md-sys-color', 'on-surface-variant'),
|
|
265
|
+
'text-field-trailing-icon-size': if($exclude-hardcoded-values, null, 24px)
|
|
266
|
+
);
|
|
267
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
//
|
|
6
|
+
// !!! THIS FILE WAS AUTOMATICALLY GENERATED !!!
|
|
7
|
+
// !!! DO NOT MODIFY IT BY HAND !!!
|
|
8
|
+
// Design system display name: Google Material 3
|
|
9
|
+
// Design system version: v0.161
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
@use 'sass:map';
|
|
13
|
+
|
|
14
|
+
@use './md-sys-color';
|
|
15
|
+
|
|
16
|
+
@use './md-sys-elevation';
|
|
17
|
+
|
|
18
|
+
@use './md-sys-shape';
|
|
19
|
+
|
|
20
|
+
@use './md-sys-state';
|
|
21
|
+
|
|
22
|
+
@use './md-sys-typescale';
|
|
23
|
+
|
|
24
|
+
$_default: (
|
|
25
|
+
'md-sys-color': md-sys-color.values-light(),
|
|
26
|
+
'md-sys-elevation': md-sys-elevation.values(),
|
|
27
|
+
'md-sys-shape': md-sys-shape.values(),
|
|
28
|
+
'md-sys-state': md-sys-state.values(),
|
|
29
|
+
'md-sys-typescale': md-sys-typescale.values(),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
33
|
+
@return (
|
|
34
|
+
'container-color': map.get($deps, 'md-sys-color', 'primary'),
|
|
35
|
+
'container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
36
|
+
'container-height': if($exclude-hardcoded-values, null, 40px),
|
|
37
|
+
'container-shadow-color': map.get($deps, 'md-sys-color', 'shadow'),
|
|
38
|
+
'container-shape': map.get($deps, 'md-sys-shape', 'corner-full'),
|
|
39
|
+
'disabled-container-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
40
|
+
'disabled-container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
41
|
+
'disabled-container-opacity': if($exclude-hardcoded-values, null, 0.12),
|
|
42
|
+
'disabled-label-text-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
43
|
+
'disabled-label-text-opacity': if($exclude-hardcoded-values, null, 0.38),
|
|
44
|
+
'focus-container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
45
|
+
'focus-label-text-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
46
|
+
'focus-state-layer-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
47
|
+
'focus-state-layer-opacity':
|
|
48
|
+
map.get($deps, 'md-sys-state', 'focus-state-layer-opacity'),
|
|
49
|
+
'hover-container-elevation': map.get($deps, 'md-sys-elevation', 'level1'),
|
|
50
|
+
'hover-label-text-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
51
|
+
'hover-state-layer-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
52
|
+
'hover-state-layer-opacity':
|
|
53
|
+
map.get($deps, 'md-sys-state', 'hover-state-layer-opacity'),
|
|
54
|
+
'label-text-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
55
|
+
'label-text-font': map.get($deps, 'md-sys-typescale', 'label-large-font'),
|
|
56
|
+
'label-text-line-height':
|
|
57
|
+
map.get($deps, 'md-sys-typescale', 'label-large-line-height'),
|
|
58
|
+
'label-text-size': map.get($deps, 'md-sys-typescale', 'label-large-size'),
|
|
59
|
+
'label-text-tracking':
|
|
60
|
+
map.get($deps, 'md-sys-typescale', 'label-large-tracking'),
|
|
61
|
+
'label-text-type':
|
|
62
|
+
if(
|
|
63
|
+
$exclude-hardcoded-values,
|
|
64
|
+
null,
|
|
65
|
+
/** Warning: risk of reduced fidelity from using this composite typography token. Tokens md.comp.filled-button.label-text.tracking cannot be represented in the "font" property shorthand. Consider using the discrete properties instead. */
|
|
66
|
+
map.get($deps, 'md-sys-typescale', 'label-large-weight')
|
|
67
|
+
map.get($deps, 'md-sys-typescale', 'label-large-size') #{'/'} map.get(
|
|
68
|
+
$deps,
|
|
69
|
+
'md-sys-typescale',
|
|
70
|
+
'label-large-line-height'
|
|
71
|
+
) map.get($deps, 'md-sys-typescale', 'label-large-font')
|
|
72
|
+
),
|
|
73
|
+
'label-text-weight':
|
|
74
|
+
map.get($deps, 'md-sys-typescale', 'label-large-weight'),
|
|
75
|
+
'pressed-container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
76
|
+
'pressed-label-text-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
77
|
+
'pressed-state-layer-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
78
|
+
'pressed-state-layer-opacity':
|
|
79
|
+
map.get($deps, 'md-sys-state', 'pressed-state-layer-opacity'),
|
|
80
|
+
'with-icon-disabled-icon-color':
|
|
81
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
82
|
+
'with-icon-disabled-icon-opacity': if($exclude-hardcoded-values, null, 0.38),
|
|
83
|
+
'with-icon-focus-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
84
|
+
'with-icon-hover-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
85
|
+
'with-icon-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
86
|
+
'with-icon-icon-size': if($exclude-hardcoded-values, null, 18px),
|
|
87
|
+
'with-icon-pressed-icon-color': map.get($deps, 'md-sys-color', 'on-primary')
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
//
|
|
6
|
+
// !!! THIS FILE WAS AUTOMATICALLY GENERATED !!!
|
|
7
|
+
// !!! DO NOT MODIFY IT BY HAND !!!
|
|
8
|
+
// Design system display name: Google Material 3
|
|
9
|
+
// Design system version: v0.161
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
@use 'sass:map';
|
|
13
|
+
|
|
14
|
+
@use './md-sys-color';
|
|
15
|
+
|
|
16
|
+
@use './md-sys-elevation';
|
|
17
|
+
|
|
18
|
+
@use './md-sys-shape';
|
|
19
|
+
|
|
20
|
+
@use './md-sys-state';
|
|
21
|
+
|
|
22
|
+
$_default: (
|
|
23
|
+
'md-sys-color': md-sys-color.values-light(),
|
|
24
|
+
'md-sys-elevation': md-sys-elevation.values(),
|
|
25
|
+
'md-sys-shape': md-sys-shape.values(),
|
|
26
|
+
'md-sys-state': md-sys-state.values(),
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
30
|
+
@return (
|
|
31
|
+
'container-color': map.get($deps, 'md-sys-color', 'surface-variant'),
|
|
32
|
+
'container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
33
|
+
'container-shadow-color': map.get($deps, 'md-sys-color', 'shadow'),
|
|
34
|
+
'container-shape': map.get($deps, 'md-sys-shape', 'corner-medium'),
|
|
35
|
+
'disabled-container-color':
|
|
36
|
+
map.get($deps, 'md-sys-color', 'surface-variant'),
|
|
37
|
+
'disabled-container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
38
|
+
'disabled-container-opacity': if($exclude-hardcoded-values, null, 0.38),
|
|
39
|
+
'dragged-container-elevation': map.get($deps, 'md-sys-elevation', 'level3'),
|
|
40
|
+
'dragged-state-layer-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
41
|
+
'dragged-state-layer-opacity':
|
|
42
|
+
map.get($deps, 'md-sys-state', 'dragged-state-layer-opacity'),
|
|
43
|
+
'focus-container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
44
|
+
'focus-state-layer-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
45
|
+
'focus-state-layer-opacity':
|
|
46
|
+
map.get($deps, 'md-sys-state', 'focus-state-layer-opacity'),
|
|
47
|
+
'hover-container-elevation': map.get($deps, 'md-sys-elevation', 'level1'),
|
|
48
|
+
'hover-state-layer-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
49
|
+
'hover-state-layer-opacity':
|
|
50
|
+
map.get($deps, 'md-sys-state', 'hover-state-layer-opacity'),
|
|
51
|
+
'icon-color': map.get($deps, 'md-sys-color', 'primary'),
|
|
52
|
+
'icon-size': if($exclude-hardcoded-values, null, 24px),
|
|
53
|
+
'pressed-container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
54
|
+
'pressed-state-layer-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
55
|
+
'pressed-state-layer-opacity':
|
|
56
|
+
map.get($deps, 'md-sys-state', 'pressed-state-layer-opacity')
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
//
|
|
6
|
+
// !!! THIS FILE WAS AUTOMATICALLY GENERATED !!!
|
|
7
|
+
// !!! DO NOT MODIFY IT BY HAND !!!
|
|
8
|
+
// Design system display name: Google Material 3
|
|
9
|
+
// Design system version: v0.161
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
@use 'sass:map';
|
|
13
|
+
|
|
14
|
+
@use './md-sys-color';
|
|
15
|
+
|
|
16
|
+
@use './md-sys-shape';
|
|
17
|
+
|
|
18
|
+
@use './md-sys-state';
|
|
19
|
+
|
|
20
|
+
$_default: (
|
|
21
|
+
'md-sys-color': md-sys-color.values-light(),
|
|
22
|
+
'md-sys-shape': md-sys-shape.values(),
|
|
23
|
+
'md-sys-state': md-sys-state.values(),
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
27
|
+
@return (
|
|
28
|
+
'container-color': map.get($deps, 'md-sys-color', 'primary'),
|
|
29
|
+
'container-shape': map.get($deps, 'md-sys-shape', 'corner-full'),
|
|
30
|
+
'container-size': if($exclude-hardcoded-values, null, 40px),
|
|
31
|
+
'disabled-container-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
32
|
+
'disabled-container-opacity': if($exclude-hardcoded-values, null, 0.12),
|
|
33
|
+
'disabled-icon-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
34
|
+
'disabled-icon-opacity': if($exclude-hardcoded-values, null, 0.38),
|
|
35
|
+
'focus-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
36
|
+
'focus-state-layer-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
37
|
+
'focus-state-layer-opacity':
|
|
38
|
+
map.get($deps, 'md-sys-state', 'focus-state-layer-opacity'),
|
|
39
|
+
'hover-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
40
|
+
'hover-state-layer-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
41
|
+
'hover-state-layer-opacity':
|
|
42
|
+
map.get($deps, 'md-sys-state', 'hover-state-layer-opacity'),
|
|
43
|
+
'icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
44
|
+
'icon-size': if($exclude-hardcoded-values, null, 24px),
|
|
45
|
+
'pressed-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
46
|
+
'pressed-state-layer-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
47
|
+
'pressed-state-layer-opacity':
|
|
48
|
+
map.get($deps, 'md-sys-state', 'pressed-state-layer-opacity'),
|
|
49
|
+
'selected-container-color': map.get($deps, 'md-sys-color', 'primary'),
|
|
50
|
+
'toggle-selected-focus-icon-color':
|
|
51
|
+
map.get($deps, 'md-sys-color', 'on-primary'),
|
|
52
|
+
'toggle-selected-focus-state-layer-color':
|
|
53
|
+
map.get($deps, 'md-sys-color', 'on-primary'),
|
|
54
|
+
'toggle-selected-hover-icon-color':
|
|
55
|
+
map.get($deps, 'md-sys-color', 'on-primary'),
|
|
56
|
+
'toggle-selected-hover-state-layer-color':
|
|
57
|
+
map.get($deps, 'md-sys-color', 'on-primary'),
|
|
58
|
+
'toggle-selected-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
59
|
+
'toggle-selected-pressed-icon-color':
|
|
60
|
+
map.get($deps, 'md-sys-color', 'on-primary'),
|
|
61
|
+
'toggle-selected-pressed-state-layer-color':
|
|
62
|
+
map.get($deps, 'md-sys-color', 'on-primary'),
|
|
63
|
+
'toggle-unselected-focus-icon-color':
|
|
64
|
+
map.get($deps, 'md-sys-color', 'primary'),
|
|
65
|
+
'toggle-unselected-focus-state-layer-color':
|
|
66
|
+
map.get($deps, 'md-sys-color', 'primary'),
|
|
67
|
+
'toggle-unselected-hover-icon-color':
|
|
68
|
+
map.get($deps, 'md-sys-color', 'primary'),
|
|
69
|
+
'toggle-unselected-hover-state-layer-color':
|
|
70
|
+
map.get($deps, 'md-sys-color', 'primary'),
|
|
71
|
+
'toggle-unselected-icon-color': map.get($deps, 'md-sys-color', 'primary'),
|
|
72
|
+
'toggle-unselected-pressed-icon-color':
|
|
73
|
+
map.get($deps, 'md-sys-color', 'primary'),
|
|
74
|
+
'toggle-unselected-pressed-state-layer-color':
|
|
75
|
+
map.get($deps, 'md-sys-color', 'primary'),
|
|
76
|
+
'unselected-container-color':
|
|
77
|
+
map.get($deps, 'md-sys-color', 'surface-variant')
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
//
|
|
6
|
+
// !!! THIS FILE WAS AUTOMATICALLY GENERATED !!!
|
|
7
|
+
// !!! DO NOT MODIFY IT BY HAND !!!
|
|
8
|
+
// Design system display name: Google Material 3
|
|
9
|
+
// Design system version: v0.161
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
@use 'sass:map';
|
|
13
|
+
|
|
14
|
+
@use './md-sys-color';
|
|
15
|
+
|
|
16
|
+
@use './md-sys-elevation';
|
|
17
|
+
|
|
18
|
+
@use './md-sys-shape';
|
|
19
|
+
|
|
20
|
+
@use './md-sys-state';
|
|
21
|
+
|
|
22
|
+
@use './md-sys-typescale';
|
|
23
|
+
|
|
24
|
+
$_default: (
|
|
25
|
+
'md-sys-color': md-sys-color.values-light(),
|
|
26
|
+
'md-sys-elevation': md-sys-elevation.values(),
|
|
27
|
+
'md-sys-shape': md-sys-shape.values(),
|
|
28
|
+
'md-sys-state': md-sys-state.values(),
|
|
29
|
+
'md-sys-typescale': md-sys-typescale.values(),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
33
|
+
@return (
|
|
34
|
+
'container-color': map.get($deps, 'md-sys-color', 'primary'),
|
|
35
|
+
'container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
36
|
+
'container-height': if($exclude-hardcoded-values, null, 40px),
|
|
37
|
+
'disabled-container-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
38
|
+
'disabled-container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
39
|
+
'disabled-container-opacity': if($exclude-hardcoded-values, null, 0.12),
|
|
40
|
+
'disabled-label-text-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
41
|
+
'disabled-label-text-opacity': if($exclude-hardcoded-values, null, 0.38),
|
|
42
|
+
'disabled-trailing-icon-color': map.get($deps, 'md-sys-color', 'on-surface'),
|
|
43
|
+
'disabled-trailing-icon-opacity': if($exclude-hardcoded-values, null, 0.38),
|
|
44
|
+
'focus-container-elevation': map.get($deps, 'md-sys-elevation', 'level0'),
|
|
45
|
+
'focus-label-text-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
46
|
+
'focus-state-layer-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
47
|
+
'focus-state-layer-opacity':
|
|
48
|
+
map.get($deps, 'md-sys-state', 'focus-state-layer-opacity'),
|
|
49
|
+
'focus-trailing-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
50
|
+
'hover-container-elevation': map.get($deps, 'md-sys-elevation', 'level1'),
|
|
51
|
+
'hover-label-text-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
52
|
+
'hover-state-layer-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
53
|
+
'hover-state-layer-opacity':
|
|
54
|
+
map.get($deps, 'md-sys-state', 'hover-state-layer-opacity'),
|
|
55
|
+
'hover-trailing-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
56
|
+
'label-text-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
57
|
+
'label-text-font': map.get($deps, 'md-sys-typescale', 'label-large-font'),
|
|
58
|
+
'label-text-line-height':
|
|
59
|
+
map.get($deps, 'md-sys-typescale', 'label-large-line-height'),
|
|
60
|
+
'label-text-size': map.get($deps, 'md-sys-typescale', 'label-large-size'),
|
|
61
|
+
'label-text-tracking':
|
|
62
|
+
map.get($deps, 'md-sys-typescale', 'label-large-tracking'),
|
|
63
|
+
'label-text-type':
|
|
64
|
+
if(
|
|
65
|
+
$exclude-hardcoded-values,
|
|
66
|
+
null,
|
|
67
|
+
/** Warning: risk of reduced fidelity from using this composite typography token. Tokens md.comp.filled-menu-button.label-text.tracking cannot be represented in the "font" property shorthand. Consider using the discrete properties instead. */
|
|
68
|
+
map.get($deps, 'md-sys-typescale', 'label-large-weight')
|
|
69
|
+
map.get($deps, 'md-sys-typescale', 'label-large-size') #{'/'} map.get(
|
|
70
|
+
$deps,
|
|
71
|
+
'md-sys-typescale',
|
|
72
|
+
'label-large-line-height'
|
|
73
|
+
) map.get($deps, 'md-sys-typescale', 'label-large-font')
|
|
74
|
+
),
|
|
75
|
+
'label-text-weight':
|
|
76
|
+
map.get($deps, 'md-sys-typescale', 'label-large-weight'),
|
|
77
|
+
'pressed-label-text-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
78
|
+
'pressed-state-layer-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
79
|
+
'pressed-state-layer-opacity':
|
|
80
|
+
map.get($deps, 'md-sys-state', 'focus-state-layer-opacity'),
|
|
81
|
+
'pressed-trailing-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
82
|
+
'shape': map.get($deps, 'md-sys-shape', 'corner-full'),
|
|
83
|
+
'trailing-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
84
|
+
'trailing-icon-size': if($exclude-hardcoded-values, null, 18px),
|
|
85
|
+
'with-icon-disabled-leading-icon-color':
|
|
86
|
+
map.get($deps, 'md-sys-color', 'on-surface'),
|
|
87
|
+
'with-icon-disabled-leading-icon-opacity':
|
|
88
|
+
if($exclude-hardcoded-values, null, 0.38),
|
|
89
|
+
'with-icon-focus-leading-icon-color':
|
|
90
|
+
map.get($deps, 'md-sys-color', 'on-primary'),
|
|
91
|
+
'with-icon-hover-leading-icon-color':
|
|
92
|
+
map.get($deps, 'md-sys-color', 'on-primary'),
|
|
93
|
+
'with-icon-leading-icon-color': map.get($deps, 'md-sys-color', 'on-primary'),
|
|
94
|
+
'with-icon-leading-icon-size': if($exclude-hardcoded-values, null, 18px),
|
|
95
|
+
'with-icon-pressed-leading-icon-color':
|
|
96
|
+
map.get($deps, 'md-sys-color', 'on-primary')
|
|
97
|
+
);
|
|
98
|
+
}
|