@material/web 1.0.0-pre.6 → 1.0.0-pre.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/aria/aria.d.ts +43 -0
- package/aria/aria.js +56 -0
- package/aria/aria.js.map +1 -0
- package/aria/delegate.d.ts +37 -0
- package/aria/delegate.js +53 -0
- package/aria/delegate.js.map +1 -0
- package/badge/badge.d.ts +0 -1
- package/badge/badge.js +0 -1
- package/badge/badge.js.map +1 -1
- package/badge/lib/badge.d.ts +8 -7
- package/badge/lib/badge.js +5 -6
- package/badge/lib/badge.js.map +1 -1
- package/button/lib/_elevation.scss +13 -3
- package/button/lib/button.d.ts +1 -12
- package/button/lib/button.js +29 -60
- package/button/lib/button.js.map +1 -1
- package/button/lib/shared-elevation-styles.css.js +1 -1
- package/button/lib/shared-elevation-styles.css.js.map +1 -1
- package/checkbox/lib/checkbox.d.ts +0 -1
- package/checkbox/lib/checkbox.js +33 -43
- package/checkbox/lib/checkbox.js.map +1 -1
- package/chips/_filter-chip.scss +6 -0
- package/chips/filter-chip.d.ts +20 -0
- package/chips/filter-chip.js +24 -0
- package/chips/filter-chip.js.map +1 -0
- package/chips/lib/_filter-chip.scss +141 -0
- package/chips/lib/_shared.scss +18 -14
- package/chips/lib/assist-styles.css.js +1 -1
- package/chips/lib/assist-styles.css.js.map +1 -1
- package/chips/lib/chip.d.ts +8 -3
- package/chips/lib/chip.js +29 -30
- package/chips/lib/chip.js.map +1 -1
- package/chips/lib/filter-chip.d.ts +21 -0
- package/chips/lib/filter-chip.js +47 -0
- package/chips/lib/filter-chip.js.map +1 -0
- package/chips/lib/filter-styles.css.js +9 -0
- package/chips/lib/filter-styles.css.js.map +1 -0
- package/{fab/lib/fab-extended-styles.scss → chips/lib/filter-styles.scss} +3 -3
- package/chips/lib/shared-styles.css.js +1 -1
- package/chips/lib/shared-styles.css.js.map +1 -1
- package/chips/lib/suggestion-styles.css.js +1 -1
- package/chips/lib/suggestion-styles.css.js.map +1 -1
- package/circularprogress/harness.d.ts +1 -0
- package/circularprogress/harness.js +4 -0
- package/circularprogress/harness.js.map +1 -1
- package/circularprogress/lib/circular-progress.d.ts +0 -1
- package/circularprogress/lib/circular-progress.js +16 -19
- package/circularprogress/lib/circular-progress.js.map +1 -1
- package/dialog/lib/_dialog.scss +8 -8
- package/dialog/lib/dialog-styles.css.js +1 -1
- package/dialog/lib/dialog-styles.css.js.map +1 -1
- package/dialog/lib/dialog.js +25 -49
- package/dialog/lib/dialog.js.map +1 -1
- package/divider/lib/divider.js +4 -7
- package/divider/lib/divider.js.map +1 -1
- package/elevation/lib/_elevation.scss +5 -7
- package/elevation/lib/elevation-styles.css.js +1 -1
- package/elevation/lib/elevation-styles.css.js.map +1 -1
- package/fab/_fab.scss +1 -0
- package/fab/branded-fab.d.ts +53 -0
- package/fab/branded-fab.js +56 -0
- package/fab/branded-fab.js.map +1 -0
- package/fab/fab.d.ts +25 -5
- package/fab/fab.js +27 -10
- package/fab/fab.js.map +1 -1
- package/fab/harness.d.ts +1 -2
- package/fab/harness.js +1 -1
- package/fab/harness.js.map +1 -1
- package/fab/lib/_fab-branded.scss +27 -0
- package/fab/lib/_fab.scss +144 -16
- package/fab/lib/_shared.scss +155 -130
- package/fab/lib/fab-branded-styles.css.js +9 -0
- package/fab/lib/fab-branded-styles.css.js.map +1 -0
- package/fab/lib/fab-branded-styles.scss +10 -0
- package/fab/lib/fab-styles.css.js +1 -1
- package/fab/lib/fab-styles.css.js.map +1 -1
- package/fab/lib/fab.d.ts +14 -10
- package/fab/lib/fab.js +19 -12
- package/fab/lib/fab.js.map +1 -1
- package/fab/lib/forced-colors-styles.css.d.ts +1 -0
- package/fab/lib/forced-colors-styles.css.js +9 -0
- package/fab/lib/forced-colors-styles.css.js.map +1 -0
- package/fab/lib/forced-colors-styles.scss +26 -0
- package/fab/lib/shared-styles.css.d.ts +1 -0
- package/fab/lib/shared-styles.css.js +9 -0
- package/fab/lib/shared-styles.css.js.map +1 -0
- package/fab/lib/{fab-shared-styles.scss → shared-styles.scss} +1 -1
- package/fab/lib/{fab-shared.d.ts → shared.d.ts} +24 -16
- package/fab/lib/shared.js +137 -0
- package/fab/lib/shared.js.map +1 -0
- package/field/lib/field.js +14 -27
- package/field/lib/field.js.map +1 -1
- package/focus/focus-ring.d.ts +0 -1
- package/focus/focus-ring.js +0 -1
- package/focus/focus-ring.js.map +1 -1
- package/focus/lib/focus-ring.js +2 -3
- package/focus/lib/focus-ring.js.map +1 -1
- package/focus/strong-focus.js +5 -0
- package/focus/strong-focus.js.map +1 -1
- package/icon/icon.d.ts +0 -1
- package/icon/icon.js +0 -1
- package/icon/icon.js.map +1 -1
- package/icon/lib/_icon.scss +2 -0
- package/icon/lib/icon-styles.css.js +1 -1
- package/icon/lib/icon-styles.css.js.map +1 -1
- package/icon/lib/icon.d.ts +5 -4
- package/icon/lib/icon.js +3 -2
- package/icon/lib/icon.js.map +1 -1
- package/iconbutton/lib/icon-button.d.ts +0 -4
- package/iconbutton/lib/icon-button.js +28 -48
- package/iconbutton/lib/icon-button.js.map +1 -1
- package/linearprogress/_linear-progress.scss +6 -0
- package/linearprogress/harness.d.ts +13 -0
- package/linearprogress/harness.js +18 -0
- package/linearprogress/harness.js.map +1 -0
- package/linearprogress/lib/_linear-progress.scss +380 -0
- package/linearprogress/lib/linear-progress-styles.css.d.ts +1 -0
- package/linearprogress/lib/linear-progress-styles.css.js +9 -0
- package/linearprogress/lib/linear-progress-styles.css.js.map +1 -0
- package/linearprogress/lib/linear-progress-styles.scss +8 -0
- package/linearprogress/lib/linear-progress.d.ts +35 -0
- package/linearprogress/lib/linear-progress.js +127 -0
- package/linearprogress/lib/linear-progress.js.map +1 -0
- package/linearprogress/linear-progress.d.ts +23 -0
- package/linearprogress/linear-progress.js +26 -0
- package/linearprogress/linear-progress.js.map +1 -0
- package/list/lib/_list.scss +6 -49
- package/list/lib/list-styles.css.js +1 -1
- package/list/lib/list-styles.css.js.map +1 -1
- package/list/lib/list.d.ts +1 -3
- package/list/lib/list.js +18 -34
- package/list/lib/list.js.map +1 -1
- package/list/lib/listitem/_list-item.scss +10 -69
- package/list/lib/listitem/forced-colors-styles.css.js +1 -1
- package/list/lib/listitem/forced-colors-styles.css.js.map +1 -1
- 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 +2 -4
- package/list/lib/listitem/list-item.js +24 -53
- package/list/lib/listitem/list-item.js.map +1 -1
- package/list/lib/listitemlink/list-item-link.js +4 -6
- package/list/lib/listitemlink/list-item-link.js.map +1 -1
- package/menu/lib/_menu.scss +6 -28
- package/menu/lib/menu-styles.css.js +1 -1
- package/menu/lib/menu-styles.css.js.map +1 -1
- package/menu/lib/menu.d.ts +1 -2
- package/menu/lib/menu.js +38 -63
- package/menu/lib/menu.js.map +1 -1
- package/menu/lib/menuitem/_menu-item.scss +13 -32
- 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/menuitem/menu-item.d.ts +1 -1
- package/menu/lib/menuitem/menu-item.js +4 -6
- package/menu/lib/menuitem/menu-item.js.map +1 -1
- package/menu/lib/menuitemlink/menu-item-link.d.ts +0 -2
- package/menu/lib/menuitemlink/menu-item-link.js +3 -6
- package/menu/lib/menuitemlink/menu-item-link.js.map +1 -1
- package/menu/lib/shared.d.ts +6 -2
- package/menu/lib/shared.js.map +1 -1
- package/menu/lib/submenuitem/sub-menu-item.d.ts +0 -2
- package/menu/lib/submenuitem/sub-menu-item.js +7 -15
- package/menu/lib/submenuitem/sub-menu-item.js.map +1 -1
- package/navigationbar/lib/_navigation-bar.scss +7 -1
- package/navigationbar/lib/navigation-bar-styles.css.js +1 -1
- package/navigationbar/lib/navigation-bar-styles.css.js.map +1 -1
- package/navigationbar/lib/navigation-bar.d.ts +5 -5
- package/navigationbar/lib/navigation-bar.js +17 -18
- package/navigationbar/lib/navigation-bar.js.map +1 -1
- package/navigationbar/navigation-bar.d.ts +0 -1
- package/navigationbar/navigation-bar.js +0 -1
- package/navigationbar/navigation-bar.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer-modal.d.ts +5 -10
- package/navigationdrawer/lib/navigation-drawer-modal.js +19 -41
- package/navigationdrawer/lib/navigation-drawer-modal.js.map +1 -1
- package/navigationdrawer/lib/navigation-drawer.d.ts +5 -9
- package/navigationdrawer/lib/navigation-drawer.js +17 -38
- package/navigationdrawer/lib/navigation-drawer.js.map +1 -1
- package/navigationdrawer/navigation-drawer-modal.d.ts +0 -1
- package/navigationdrawer/navigation-drawer-modal.js +0 -1
- package/navigationdrawer/navigation-drawer-modal.js.map +1 -1
- package/navigationdrawer/navigation-drawer.d.ts +0 -1
- package/navigationdrawer/navigation-drawer.js +0 -1
- package/navigationdrawer/navigation-drawer.js.map +1 -1
- package/navigationtab/lib/navigation-tab.d.ts +19 -24
- package/navigationtab/lib/navigation-tab.js +48 -68
- package/navigationtab/lib/navigation-tab.js.map +1 -1
- package/navigationtab/navigation-tab.d.ts +0 -1
- package/navigationtab/navigation-tab.js +0 -1
- package/navigationtab/navigation-tab.js.map +1 -1
- package/package.json +1 -1
- package/radio/lib/radio.d.ts +0 -1
- package/radio/lib/radio.js +30 -37
- package/radio/lib/radio.js.map +1 -1
- package/ripple/lib/ripple.js +7 -13
- package/ripple/lib/ripple.js.map +1 -1
- package/segmentedbutton/lib/outlined-segmented-button.d.ts +16 -7
- package/segmentedbutton/lib/outlined-segmented-button.js +3 -3
- package/segmentedbutton/lib/outlined-segmented-button.js.map +1 -1
- package/segmentedbutton/lib/segmented-button.d.ts +27 -33
- package/segmentedbutton/lib/segmented-button.js +42 -75
- package/segmentedbutton/lib/segmented-button.js.map +1 -1
- package/segmentedbutton/outlined-segmented-button.d.ts +0 -1
- package/segmentedbutton/outlined-segmented-button.js +0 -1
- package/segmentedbutton/outlined-segmented-button.js.map +1 -1
- package/segmentedbuttonset/lib/outlined-segmented-button-set.d.ts +6 -4
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js +3 -2
- package/segmentedbuttonset/lib/outlined-segmented-button-set.js.map +1 -1
- package/segmentedbuttonset/lib/segmented-button-set.d.ts +3 -9
- package/segmentedbuttonset/lib/segmented-button-set.js +14 -20
- package/segmentedbuttonset/lib/segmented-button-set.js.map +1 -1
- package/segmentedbuttonset/outlined-segmented-button-set.d.ts +0 -1
- package/segmentedbuttonset/outlined-segmented-button-set.js +0 -1
- package/segmentedbuttonset/outlined-segmented-button-set.js.map +1 -1
- package/select/_filled-select.scss +6 -0
- package/select/_outlined-select.scss +6 -0
- package/select/filled-select.d.ts +41 -0
- package/select/filled-select.js +46 -0
- package/select/filled-select.js.map +1 -0
- package/select/harness.d.ts +24 -0
- package/select/harness.js +53 -0
- package/select/harness.js.map +1 -0
- package/select/lib/_filled-select.scss +163 -0
- package/select/lib/_outlined-select.scss +146 -0
- package/select/lib/_shared.scss +48 -0
- package/select/lib/filled-forced-colors-styles.css.d.ts +1 -0
- package/select/lib/filled-forced-colors-styles.css.js +9 -0
- package/select/lib/filled-forced-colors-styles.css.js.map +1 -0
- package/select/lib/filled-forced-colors-styles.scss +29 -0
- package/select/lib/filled-select-styles.css.d.ts +1 -0
- package/select/lib/filled-select-styles.css.js +9 -0
- package/select/lib/filled-select-styles.css.js.map +1 -0
- package/select/lib/filled-select-styles.scss +10 -0
- package/select/lib/filled-select.d.ts +10 -0
- package/select/lib/filled-select.js +16 -0
- package/select/lib/filled-select.js.map +1 -0
- package/select/lib/outlined-forced-colors-styles.css.d.ts +1 -0
- package/select/lib/outlined-forced-colors-styles.css.js +9 -0
- package/select/lib/outlined-forced-colors-styles.css.js.map +1 -0
- package/select/lib/outlined-forced-colors-styles.scss +29 -0
- package/select/lib/outlined-select-styles.css.d.ts +1 -0
- package/select/lib/outlined-select-styles.css.js +9 -0
- package/select/lib/outlined-select-styles.css.js.map +1 -0
- package/select/lib/outlined-select-styles.scss +10 -0
- package/select/lib/outlined-select.d.ts +10 -0
- package/select/lib/outlined-select.js +16 -0
- package/select/lib/outlined-select.js.map +1 -0
- package/select/lib/select.d.ts +218 -0
- package/select/lib/select.js +587 -0
- package/select/lib/select.js.map +1 -0
- package/select/lib/selectoption/harness.d.ts +11 -0
- package/select/lib/selectoption/harness.js +12 -0
- package/select/lib/selectoption/harness.js.map +1 -0
- package/select/lib/selectoption/select-option.d.ts +30 -0
- package/select/lib/selectoption/select-option.js +71 -0
- package/select/lib/selectoption/select-option.js.map +1 -0
- package/select/lib/shared-styles.css.d.ts +1 -0
- package/select/lib/shared-styles.css.js +9 -0
- package/select/lib/shared-styles.css.js.map +1 -0
- package/select/lib/shared-styles.scss +10 -0
- package/select/lib/shared.d.ts +52 -0
- package/select/lib/shared.js +41 -0
- package/select/lib/shared.js.map +1 -0
- package/select/outlined-select.d.ts +41 -0
- package/select/outlined-select.js +46 -0
- package/select/outlined-select.js.map +1 -0
- package/select/select-option.d.ts +44 -0
- package/select/select-option.js +51 -0
- package/select/select-option.js.map +1 -0
- package/slider/harness.d.ts +1 -0
- package/slider/harness.js +5 -0
- package/slider/harness.js.map +1 -1
- package/slider/lib/_slider.scss +146 -164
- package/slider/lib/forced-colors-styles.css.js +1 -1
- package/slider/lib/forced-colors-styles.css.js.map +1 -1
- package/slider/lib/forced-colors-styles.scss +2 -2
- package/slider/lib/slider-styles.css.js +1 -1
- package/slider/lib/slider-styles.css.js.map +1 -1
- package/slider/lib/slider.d.ts +2 -7
- package/slider/lib/slider.js +64 -118
- package/slider/lib/slider.js.map +1 -1
- package/switch/lib/switch.d.ts +0 -2
- package/switch/lib/switch.js +32 -54
- package/switch/lib/switch.js.map +1 -1
- package/textfield/lib/text-field.d.ts +0 -10
- package/textfield/lib/text-field.js +45 -115
- package/textfield/lib/text-field.js.map +1 -1
- package/tokens/_index.scss +3 -0
- package/tokens/_md-comp-assist-chip.scss +25 -20
- package/tokens/_md-comp-elevation.scss +0 -4
- package/tokens/_md-comp-fab-branded.scss +109 -1
- package/tokens/_md-comp-fab.scss +290 -0
- package/tokens/_md-comp-filled-select.scss +150 -1
- package/tokens/_md-comp-filter-chip.scss +103 -93
- package/tokens/_md-comp-input-chip.scss +77 -85
- package/tokens/_md-comp-linear-progress-indicator.scss +14 -1
- package/tokens/_md-comp-list-item.scss +201 -0
- package/tokens/_md-comp-list.scss +107 -26
- package/tokens/_md-comp-menu-item.scss +76 -0
- package/tokens/_md-comp-menu.scss +52 -2
- package/tokens/_md-comp-outlined-select.scss +150 -1
- package/tokens/_md-comp-slider.scss +13 -1
- package/tokens/_md-comp-suggestion-chip.scss +29 -21
- package/tokens/_values.scss +5 -2
- package/types/aria.d.ts +61 -1
- package/actionelement/action-element.d.ts +0 -79
- package/actionelement/action-element.js +0 -97
- package/actionelement/action-element.js.map +0 -1
- package/button/lib/state.d.ts +0 -10
- package/button/lib/state.js +0 -7
- package/button/lib/state.js.map +0 -1
- package/controller/action-controller.d.ts +0 -147
- package/controller/action-controller.js +0 -286
- package/controller/action-controller.js.map +0 -1
- package/decorators/aria-property.d.ts +0 -32
- package/decorators/aria-property.js +0 -99
- package/decorators/aria-property.js.map +0 -1
- package/fab/_fab-extended.scss +0 -6
- package/fab/fab-extended.d.ts +0 -23
- package/fab/fab-extended.js +0 -29
- package/fab/fab-extended.js.map +0 -1
- package/fab/lib/_fab-extended.scss +0 -73
- package/fab/lib/fab-extended-styles.css.js +0 -9
- package/fab/lib/fab-extended-styles.css.js.map +0 -1
- package/fab/lib/fab-extended.d.ts +0 -19
- package/fab/lib/fab-extended.js +0 -28
- package/fab/lib/fab-extended.js.map +0 -1
- package/fab/lib/fab-shared-styles.css.js +0 -9
- package/fab/lib/fab-shared-styles.css.js.map +0 -1
- package/fab/lib/fab-shared.js +0 -121
- package/fab/lib/fab-shared.js.map +0 -1
- package/slider/lib/_tokens.scss +0 -65
- /package/{fab/lib/fab-extended-styles.css.d.ts → chips/lib/filter-styles.css.d.ts} +0 -0
- /package/fab/lib/{fab-shared-styles.css.d.ts → fab-branded-styles.css.d.ts} +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:map';
|
|
8
|
+
// go/keep-sorted end
|
|
9
|
+
// go/keep-sorted start
|
|
10
|
+
@use './md-sys-color';
|
|
11
|
+
@use './md-sys-elevation';
|
|
12
|
+
@use './md-sys-shape';
|
|
13
|
+
@use './md-sys-state';
|
|
14
|
+
@use './md-sys-typescale';
|
|
15
|
+
@use './v0_172/md-comp-list';
|
|
16
|
+
@use './values';
|
|
17
|
+
// go/keep-sorted end
|
|
18
|
+
|
|
19
|
+
$_default: (
|
|
20
|
+
'md-sys-color': md-sys-color.values-light(),
|
|
21
|
+
'md-sys-elevation': md-sys-elevation.values(),
|
|
22
|
+
'md-sys-shape': md-sys-shape.values(),
|
|
23
|
+
'md-sys-state': md-sys-state.values(),
|
|
24
|
+
'md-sys-typescale': md-sys-typescale.values(),
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
$unsupported-tokens: (
|
|
28
|
+
// go/keep-sorted start
|
|
29
|
+
'list-item-container-elevation',
|
|
30
|
+
'list-item-disabled-state-layer-color',
|
|
31
|
+
'list-item-disabled-state-layer-opacity',
|
|
32
|
+
'list-item-dragged-container-elevation',
|
|
33
|
+
'list-item-dragged-label-text-color',
|
|
34
|
+
'list-item-dragged-leading-icon-icon-color',
|
|
35
|
+
'list-item-dragged-state-layer-color',
|
|
36
|
+
'list-item-dragged-state-layer-opacity',
|
|
37
|
+
'list-item-dragged-trailing-icon-icon-color',
|
|
38
|
+
'list-item-label-text-font',
|
|
39
|
+
'list-item-label-text-size',
|
|
40
|
+
'list-item-label-text-tracking',
|
|
41
|
+
'list-item-label-text-weight',
|
|
42
|
+
'list-item-leading-avatar-label-font',
|
|
43
|
+
'list-item-leading-avatar-label-line-height',
|
|
44
|
+
'list-item-leading-avatar-label-size',
|
|
45
|
+
'list-item-leading-avatar-label-tracking',
|
|
46
|
+
'list-item-leading-avatar-label-weight',
|
|
47
|
+
'list-item-overline-color',
|
|
48
|
+
'list-item-overline-font',
|
|
49
|
+
'list-item-overline-line-height',
|
|
50
|
+
'list-item-overline-size',
|
|
51
|
+
'list-item-overline-tracking',
|
|
52
|
+
'list-item-overline-type',
|
|
53
|
+
'list-item-overline-weight',
|
|
54
|
+
'list-item-selected-trailing-icon-color',
|
|
55
|
+
'list-item-supporting-text-font',
|
|
56
|
+
'list-item-supporting-text-line-height',
|
|
57
|
+
'list-item-supporting-text-size',
|
|
58
|
+
'list-item-supporting-text-tracking',
|
|
59
|
+
'list-item-supporting-text-weight',
|
|
60
|
+
'list-item-trailing-supporting-text-font',
|
|
61
|
+
'list-item-trailing-supporting-text-size',
|
|
62
|
+
'list-item-trailing-supporting-text-tracking',
|
|
63
|
+
'list-item-trailing-supporting-text-weight',
|
|
64
|
+
'list-item-unselected-trailing-icon-color',
|
|
65
|
+
// go/keep-sorted end
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
$supported-tokens: (
|
|
69
|
+
// go/keep-sorted start
|
|
70
|
+
'list-item-container-color',
|
|
71
|
+
'list-item-container-shape',
|
|
72
|
+
'list-item-disabled-label-text-color',
|
|
73
|
+
'list-item-disabled-label-text-opacity',
|
|
74
|
+
'list-item-disabled-leading-icon-color',
|
|
75
|
+
'list-item-disabled-leading-icon-opacity',
|
|
76
|
+
'list-item-disabled-trailing-icon-color',
|
|
77
|
+
'list-item-disabled-trailing-icon-opacity',
|
|
78
|
+
'list-item-focus-label-text-color',
|
|
79
|
+
'list-item-focus-leading-icon-icon-color',
|
|
80
|
+
'list-item-focus-state-layer-color',
|
|
81
|
+
'list-item-focus-state-layer-opacity',
|
|
82
|
+
'list-item-focus-trailing-icon-icon-color',
|
|
83
|
+
'list-item-hover-label-text-color',
|
|
84
|
+
'list-item-hover-leading-icon-icon-color',
|
|
85
|
+
'list-item-hover-state-layer-color',
|
|
86
|
+
'list-item-hover-state-layer-opacity',
|
|
87
|
+
'list-item-hover-trailing-icon-icon-color',
|
|
88
|
+
'list-item-label-text-color',
|
|
89
|
+
'list-item-label-text-line-height',
|
|
90
|
+
'list-item-label-text-type',
|
|
91
|
+
'list-item-large-leading-video-height',
|
|
92
|
+
'list-item-leading-avatar-color',
|
|
93
|
+
'list-item-leading-avatar-label-color',
|
|
94
|
+
'list-item-leading-avatar-label-type',
|
|
95
|
+
'list-item-leading-avatar-shape',
|
|
96
|
+
'list-item-leading-avatar-size',
|
|
97
|
+
'list-item-leading-icon-color',
|
|
98
|
+
'list-item-leading-icon-size',
|
|
99
|
+
'list-item-leading-image-height',
|
|
100
|
+
'list-item-leading-image-shape',
|
|
101
|
+
'list-item-leading-image-width',
|
|
102
|
+
'list-item-leading-video-shape',
|
|
103
|
+
'list-item-leading-video-width',
|
|
104
|
+
'list-item-one-line-container-height',
|
|
105
|
+
'list-item-pressed-label-text-color',
|
|
106
|
+
'list-item-pressed-leading-icon-icon-color',
|
|
107
|
+
'list-item-pressed-state-layer-color',
|
|
108
|
+
'list-item-pressed-state-layer-opacity',
|
|
109
|
+
'list-item-pressed-trailing-icon-icon-color',
|
|
110
|
+
'list-item-small-leading-video-height',
|
|
111
|
+
'list-item-supporting-text-color',
|
|
112
|
+
'list-item-supporting-text-type',
|
|
113
|
+
'list-item-three-line-container-height',
|
|
114
|
+
'list-item-trailing-icon-color',
|
|
115
|
+
'list-item-trailing-icon-size',
|
|
116
|
+
'list-item-trailing-supporting-text-color',
|
|
117
|
+
'list-item-trailing-supporting-text-line-height',
|
|
118
|
+
'list-item-trailing-supporting-text-type',
|
|
119
|
+
'list-item-two-line-container-height',
|
|
120
|
+
// go/keep-sorted end
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
@function get-new-tokens($deps, $exclude-hardcoded-values) {
|
|
124
|
+
// Values pulled from b/198759625 spreadsheet
|
|
125
|
+
@return (
|
|
126
|
+
// go/keep-sorted start
|
|
127
|
+
'list-item-leading-element-leading-space':
|
|
128
|
+
if($exclude-hardcoded-values, null, 16px),
|
|
129
|
+
'list-item-leading-space': if($exclude-hardcoded-values, null, 16px),
|
|
130
|
+
'list-item-leading-video-leading-space':
|
|
131
|
+
if($exclude-hardcoded-values, null, 0px),
|
|
132
|
+
// Commented out until the comments in the spreadsheet linked above are
|
|
133
|
+
// resolved regarding vertical alignment.
|
|
134
|
+
// 'list-item-leading-item-top-space': if($exclude-hardcoded-values, null, 8px),
|
|
135
|
+
// 'list-item-leading-video-top-space': if($exclude-hardcoded-values, null, 0px),
|
|
136
|
+
// 'list-item-leading-item-bottom-space': if($exclude-hardcoded-values, null, 8px),
|
|
137
|
+
// 'list-item-leading-video-bottom-space': if($exclude-hardcoded-values, null, 0px),
|
|
138
|
+
'list-item-trailing-element-headline-trailing-element-space': 16px,
|
|
139
|
+
'list-item-trailing-space': if($exclude-hardcoded-values, null, 16px),
|
|
140
|
+
// go/keep-sorted end
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@function get-override-tokens($deps) {
|
|
145
|
+
// TODO(b/271876162): remove when tokens compiler emits typescale tokens
|
|
146
|
+
@return (
|
|
147
|
+
// go/keep-sorted start
|
|
148
|
+
'list-item-label-text-type':
|
|
149
|
+
map.get($deps, 'md-sys-typescale', 'body-large'),
|
|
150
|
+
'list-item-leading-avatar-label-type':
|
|
151
|
+
map.get($deps, 'md-sys-typescale', 'title-medium'),
|
|
152
|
+
// unsupported token
|
|
153
|
+
// 'list-item-overline-type': map.get($deps, 'md-sys-typescale', 'label-small'),
|
|
154
|
+
'list-item-supporting-text-type':
|
|
155
|
+
map.get($deps, 'md-sys-typescale', 'body-medium'),
|
|
156
|
+
'list-item-trailing-supporting-text-type':
|
|
157
|
+
map.get($deps, 'md-sys-typescale', 'label-small'),
|
|
158
|
+
// go/keep-sorted end
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
163
|
+
$original-tokens: md-comp-list.values($deps, $exclude-hardcoded-values);
|
|
164
|
+
$original-tokens: map.merge($original-tokens, get-override-tokens($deps));
|
|
165
|
+
|
|
166
|
+
$tokens: values.validate(
|
|
167
|
+
$original-tokens,
|
|
168
|
+
$supported-tokens: $supported-tokens,
|
|
169
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
170
|
+
$new-tokens: get-new-tokens($deps, $exclude-hardcoded-values)
|
|
171
|
+
);
|
|
172
|
+
|
|
173
|
+
@each $token, $value in $tokens {
|
|
174
|
+
$tokens: map.set($tokens, $token, var(--md-list-item-#{$token}, #{$value}));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@return $tokens;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// TODO(b/276957188): Remove this when we resolve issues with values fn.
|
|
181
|
+
@function theme-values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
182
|
+
$original-tokens: md-comp-list.values($deps, $exclude-hardcoded-values);
|
|
183
|
+
$original-tokens: map.merge($original-tokens, get-override-tokens($deps));
|
|
184
|
+
|
|
185
|
+
$tokens: values.validate(
|
|
186
|
+
md-comp-list.values($deps, $exclude-hardcoded-values),
|
|
187
|
+
$supported-tokens: $supported-tokens,
|
|
188
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
189
|
+
$new-tokens: get-new-tokens($deps, $exclude-hardcoded-values)
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
@each $token, $value in $tokens {
|
|
193
|
+
@if $value {
|
|
194
|
+
$tokens: map.set($tokens, $token, #{$value});
|
|
195
|
+
} @else {
|
|
196
|
+
$tokens: map.remove($tokens, $token);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@return $tokens;
|
|
201
|
+
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
@use './md-sys-state';
|
|
14
14
|
@use './md-sys-typescale';
|
|
15
15
|
@use './v0_172/md-comp-list';
|
|
16
|
+
@use './values';
|
|
16
17
|
// go/keep-sorted end
|
|
17
18
|
|
|
18
19
|
$_default: (
|
|
@@ -23,53 +24,133 @@ $_default: (
|
|
|
23
24
|
'md-sys-typescale': md-sys-typescale.values(),
|
|
24
25
|
);
|
|
25
26
|
|
|
26
|
-
$
|
|
27
|
-
|
|
27
|
+
$supported-tokens: ();
|
|
28
|
+
|
|
29
|
+
$unsupported-tokens: (
|
|
30
|
+
// go/keep-sorted start
|
|
31
|
+
'list-item-container-elevation',
|
|
32
|
+
'list-item-container-shape',
|
|
33
|
+
'list-item-disabled-label-text-color',
|
|
34
|
+
'list-item-disabled-label-text-opacity',
|
|
35
|
+
'list-item-disabled-leading-icon-color',
|
|
36
|
+
'list-item-disabled-leading-icon-opacity',
|
|
37
|
+
'list-item-disabled-state-layer-color',
|
|
38
|
+
'list-item-disabled-state-layer-opacity',
|
|
39
|
+
'list-item-disabled-trailing-icon-color',
|
|
40
|
+
'list-item-disabled-trailing-icon-opacity',
|
|
41
|
+
'list-item-dragged-container-elevation',
|
|
42
|
+
'list-item-dragged-label-text-color',
|
|
43
|
+
'list-item-dragged-leading-icon-icon-color',
|
|
44
|
+
'list-item-dragged-state-layer-color',
|
|
45
|
+
'list-item-dragged-state-layer-opacity',
|
|
46
|
+
'list-item-dragged-trailing-icon-icon-color',
|
|
47
|
+
'list-item-focus-label-text-color',
|
|
48
|
+
'list-item-focus-leading-icon-icon-color',
|
|
49
|
+
'list-item-focus-state-layer-color',
|
|
50
|
+
'list-item-focus-state-layer-opacity',
|
|
51
|
+
'list-item-focus-trailing-icon-icon-color',
|
|
52
|
+
'list-item-hover-label-text-color',
|
|
53
|
+
'list-item-hover-leading-icon-icon-color',
|
|
54
|
+
'list-item-hover-state-layer-color',
|
|
55
|
+
'list-item-hover-state-layer-opacity',
|
|
56
|
+
'list-item-hover-trailing-icon-icon-color',
|
|
57
|
+
'list-item-label-text-color',
|
|
28
58
|
'list-item-label-text-font',
|
|
59
|
+
'list-item-label-text-line-height',
|
|
29
60
|
'list-item-label-text-size',
|
|
30
61
|
'list-item-label-text-tracking',
|
|
62
|
+
'list-item-label-text-type',
|
|
31
63
|
'list-item-label-text-weight',
|
|
64
|
+
'list-item-large-leading-video-height',
|
|
65
|
+
'list-item-leading-avatar-color',
|
|
66
|
+
'list-item-leading-avatar-label-color',
|
|
32
67
|
'list-item-leading-avatar-label-font',
|
|
33
68
|
'list-item-leading-avatar-label-line-height',
|
|
34
69
|
'list-item-leading-avatar-label-size',
|
|
35
70
|
'list-item-leading-avatar-label-tracking',
|
|
71
|
+
'list-item-leading-avatar-label-type',
|
|
36
72
|
'list-item-leading-avatar-label-weight',
|
|
37
|
-
'list-item-
|
|
38
|
-
'list-item-
|
|
39
|
-
'list-item-
|
|
40
|
-
'list-item-
|
|
41
|
-
'list-item-
|
|
73
|
+
'list-item-leading-avatar-shape',
|
|
74
|
+
'list-item-leading-avatar-size',
|
|
75
|
+
'list-item-leading-icon-color',
|
|
76
|
+
'list-item-leading-icon-size',
|
|
77
|
+
'list-item-leading-image-height',
|
|
78
|
+
'list-item-leading-image-shape',
|
|
79
|
+
'list-item-leading-image-width',
|
|
80
|
+
'list-item-leading-video-shape',
|
|
81
|
+
'list-item-leading-video-width',
|
|
82
|
+
'list-item-one-line-container-height',
|
|
83
|
+
'list-item-overline-color',
|
|
42
84
|
'list-item-overline-font',
|
|
43
85
|
'list-item-overline-line-height',
|
|
44
86
|
'list-item-overline-size',
|
|
45
87
|
'list-item-overline-tracking',
|
|
88
|
+
'list-item-overline-type',
|
|
46
89
|
'list-item-overline-weight',
|
|
47
|
-
|
|
90
|
+
'list-item-pressed-label-text-color',
|
|
91
|
+
'list-item-pressed-leading-icon-icon-color',
|
|
92
|
+
'list-item-pressed-state-layer-color',
|
|
93
|
+
'list-item-pressed-state-layer-opacity',
|
|
94
|
+
'list-item-pressed-trailing-icon-icon-color',
|
|
95
|
+
'list-item-selected-trailing-icon-color',
|
|
96
|
+
'list-item-small-leading-video-height',
|
|
97
|
+
'list-item-supporting-text-color',
|
|
98
|
+
'list-item-supporting-text-font',
|
|
99
|
+
'list-item-supporting-text-line-height',
|
|
100
|
+
'list-item-supporting-text-size',
|
|
101
|
+
'list-item-supporting-text-tracking',
|
|
102
|
+
'list-item-supporting-text-type',
|
|
103
|
+
'list-item-supporting-text-weight',
|
|
104
|
+
'list-item-three-line-container-height',
|
|
105
|
+
'list-item-trailing-icon-color',
|
|
106
|
+
'list-item-trailing-icon-size',
|
|
107
|
+
'list-item-trailing-supporting-text-color',
|
|
48
108
|
'list-item-trailing-supporting-text-font',
|
|
109
|
+
'list-item-trailing-supporting-text-line-height',
|
|
49
110
|
'list-item-trailing-supporting-text-size',
|
|
50
111
|
'list-item-trailing-supporting-text-tracking',
|
|
51
|
-
'list-item-trailing-supporting-text-
|
|
112
|
+
'list-item-trailing-supporting-text-type',
|
|
113
|
+
'list-item-trailing-supporting-text-weight',
|
|
114
|
+
'list-item-two-line-container-height',
|
|
115
|
+
'list-item-unselected-trailing-icon-color',
|
|
116
|
+
// go/keep-sorted end
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
$renamed-tokens: (
|
|
120
|
+
'list-item-container-color': 'container-color',
|
|
52
121
|
);
|
|
53
122
|
|
|
54
123
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
55
|
-
$tokens:
|
|
56
|
-
|
|
124
|
+
$tokens: values.validate(
|
|
125
|
+
md-comp-list.values($deps, $exclude-hardcoded-values),
|
|
126
|
+
$supported-tokens: $supported-tokens,
|
|
127
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
128
|
+
$renamed-tokens: $renamed-tokens
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
@each $token, $value in $tokens {
|
|
132
|
+
$tokens: map.set($tokens, $token, var(--md-list-#{$token}, #{$value}));
|
|
133
|
+
}
|
|
57
134
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
'list-item-supporting-text-type':
|
|
69
|
-
map.get($deps, 'md-sys-typescale', 'body-medium'),
|
|
70
|
-
'list-item-trailing-supporting-text-type':
|
|
71
|
-
map.get($deps, 'md-sys-typescale', 'label-small'),
|
|
72
|
-
)
|
|
135
|
+
@return $tokens;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// TODO(b/276957188): Remove this when we resolve issues with values fn.
|
|
139
|
+
@function theme-values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
140
|
+
$tokens: values.validate(
|
|
141
|
+
md-comp-list.values($deps, $exclude-hardcoded-values),
|
|
142
|
+
$supported-tokens: $supported-tokens,
|
|
143
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
144
|
+
$renamed-tokens: $renamed-tokens
|
|
73
145
|
);
|
|
146
|
+
|
|
147
|
+
@each $token, $value in $tokens {
|
|
148
|
+
@if $value {
|
|
149
|
+
$tokens: map.set($tokens, $token, #{$value});
|
|
150
|
+
} @else {
|
|
151
|
+
$tokens: map.remove($tokens, $token);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
74
155
|
@return $tokens;
|
|
75
156
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:list';
|
|
8
|
+
@use 'sass:map';
|
|
9
|
+
@use 'sass:string';
|
|
10
|
+
// go/keep-sorted end
|
|
11
|
+
// go/keep-sorted start
|
|
12
|
+
@use './md-sys-color';
|
|
13
|
+
@use './md-sys-elevation';
|
|
14
|
+
@use './md-sys-shape';
|
|
15
|
+
@use './v0_172/md-comp-menu';
|
|
16
|
+
@use './values';
|
|
17
|
+
// go/keep-sorted end
|
|
18
|
+
|
|
19
|
+
$_default: (
|
|
20
|
+
'md-sys-color': md-sys-color.values-light(),
|
|
21
|
+
'md-sys-elevation': md-sys-elevation.values(),
|
|
22
|
+
'md-sys-shape': md-sys-shape.values(),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
$unsupported-tokens: (
|
|
26
|
+
// go/keep-sorted start
|
|
27
|
+
'container-elevation',
|
|
28
|
+
'container-shadow-color',
|
|
29
|
+
'container-shape',
|
|
30
|
+
// go/keep-sorted end
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
$supported-tokens: (
|
|
34
|
+
// go/keep-sorted start
|
|
35
|
+
'list-item-selected-container-color',
|
|
36
|
+
// go/keep-sorted end
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
$renamed-tokens: (
|
|
40
|
+
'container-color': 'list-item-container-color',
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
44
|
+
$tokens: values.validate(
|
|
45
|
+
md-comp-menu.values($deps),
|
|
46
|
+
$supported-tokens: $supported-tokens,
|
|
47
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
48
|
+
$renamed-tokens: $renamed-tokens
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
@each $token, $value in $tokens {
|
|
52
|
+
$tokens: map.set($tokens, $token, var(--md-menu-item-#{$token}, #{$value}));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@return $tokens;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// TODO(b/276957188): Remove this when we resolve issues with values fn.
|
|
59
|
+
@function theme-values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
60
|
+
$tokens: values.validate(
|
|
61
|
+
md-comp-menu.values($deps),
|
|
62
|
+
$supported-tokens: $supported-tokens,
|
|
63
|
+
$unsupported-tokens: $unsupported-tokens,
|
|
64
|
+
$renamed-tokens: $renamed-tokens
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
@each $token, $value in $tokens {
|
|
68
|
+
@if $value {
|
|
69
|
+
$tokens: map.set($tokens, $token, #{$value});
|
|
70
|
+
} @else {
|
|
71
|
+
$tokens: map.remove($tokens, $token);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@return $tokens;
|
|
76
|
+
}
|
|
@@ -3,11 +3,17 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
+
// go/keep-sorted start
|
|
7
|
+
@use 'sass:list';
|
|
8
|
+
@use 'sass:map';
|
|
9
|
+
@use 'sass:string';
|
|
10
|
+
// go/keep-sorted end
|
|
6
11
|
// go/keep-sorted start
|
|
7
12
|
@use './md-sys-color';
|
|
8
13
|
@use './md-sys-elevation';
|
|
9
14
|
@use './md-sys-shape';
|
|
10
15
|
@use './v0_172/md-comp-menu';
|
|
16
|
+
@use './values';
|
|
11
17
|
// go/keep-sorted end
|
|
12
18
|
|
|
13
19
|
$_default: (
|
|
@@ -16,6 +22,50 @@ $_default: (
|
|
|
16
22
|
'md-sys-shape': md-sys-shape.values(),
|
|
17
23
|
);
|
|
18
24
|
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
$unsupported-tokens: (
|
|
26
|
+
// go/keep-sorted start
|
|
27
|
+
'list-item-selected-container-color',
|
|
28
|
+
// go/keep-sorted end
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
$supported-tokens: (
|
|
32
|
+
// go/keep-sorted start
|
|
33
|
+
'container-color',
|
|
34
|
+
'container-elevation',
|
|
35
|
+
'container-shadow-color',
|
|
36
|
+
'container-shape',
|
|
37
|
+
// go/keep-sorted end
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
41
|
+
$tokens: values.validate(
|
|
42
|
+
md-comp-menu.values($deps),
|
|
43
|
+
$supported-tokens: $supported-tokens,
|
|
44
|
+
$unsupported-tokens: $unsupported-tokens
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
@each $token, $value in $tokens {
|
|
48
|
+
$tokens: map.set($tokens, $token, var(--md-menu-#{$token}, #{$value}));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@return $tokens;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// TODO(b/276957188): Remove this when we resolve issues with values fn.
|
|
55
|
+
@function theme-values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
56
|
+
$tokens: values.validate(
|
|
57
|
+
md-comp-menu.values($deps),
|
|
58
|
+
$supported-tokens: $supported-tokens,
|
|
59
|
+
$unsupported-tokens: $unsupported-tokens
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
@each $token, $value in $tokens {
|
|
63
|
+
@if $value {
|
|
64
|
+
$tokens: map.set($tokens, $token, #{$value});
|
|
65
|
+
} @else {
|
|
66
|
+
$tokens: map.remove($tokens, $token);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@return $tokens;
|
|
21
71
|
}
|
|
@@ -4,14 +4,130 @@
|
|
|
4
4
|
//
|
|
5
5
|
|
|
6
6
|
// go/keep-sorted start
|
|
7
|
+
@use 'sass:map';
|
|
8
|
+
@use 'sass:string';
|
|
9
|
+
// go/keep-sorted end
|
|
10
|
+
// go/keep-sorted start
|
|
11
|
+
@use '../sass/shape';
|
|
7
12
|
@use './md-sys-color';
|
|
8
13
|
@use './md-sys-elevation';
|
|
9
14
|
@use './md-sys-shape';
|
|
10
15
|
@use './md-sys-state';
|
|
11
16
|
@use './md-sys-typescale';
|
|
12
17
|
@use './v0_172/md-comp-outlined-select';
|
|
18
|
+
@use './values';
|
|
13
19
|
// go/keep-sorted end
|
|
14
20
|
|
|
21
|
+
$supported-tokens: (
|
|
22
|
+
// go/keep-sorted start
|
|
23
|
+
'text-field-container-shape',
|
|
24
|
+
'text-field-disabled-input-text-color',
|
|
25
|
+
'text-field-disabled-input-text-opacity',
|
|
26
|
+
'text-field-disabled-label-text-color',
|
|
27
|
+
'text-field-disabled-label-text-opacity',
|
|
28
|
+
'text-field-disabled-leading-icon-color',
|
|
29
|
+
'text-field-disabled-leading-icon-opacity',
|
|
30
|
+
'text-field-disabled-outline-color',
|
|
31
|
+
'text-field-disabled-outline-opacity',
|
|
32
|
+
'text-field-disabled-outline-width',
|
|
33
|
+
'text-field-disabled-supporting-text-color',
|
|
34
|
+
'text-field-disabled-supporting-text-opacity',
|
|
35
|
+
'text-field-disabled-trailing-icon-color',
|
|
36
|
+
'text-field-disabled-trailing-icon-opacity',
|
|
37
|
+
'text-field-error-focus-input-text-color',
|
|
38
|
+
'text-field-error-focus-label-text-color',
|
|
39
|
+
'text-field-error-focus-leading-icon-color',
|
|
40
|
+
'text-field-error-focus-outline-color',
|
|
41
|
+
'text-field-error-focus-supporting-text-color',
|
|
42
|
+
'text-field-error-focus-trailing-icon-color',
|
|
43
|
+
'text-field-error-hover-input-text-color',
|
|
44
|
+
'text-field-error-hover-label-text-color',
|
|
45
|
+
'text-field-error-hover-leading-icon-color',
|
|
46
|
+
'text-field-error-hover-outline-color',
|
|
47
|
+
'text-field-error-hover-supporting-text-color',
|
|
48
|
+
'text-field-error-hover-trailing-icon-color',
|
|
49
|
+
'text-field-error-input-text-color',
|
|
50
|
+
'text-field-error-label-text-color',
|
|
51
|
+
'text-field-error-leading-icon-color',
|
|
52
|
+
'text-field-error-outline-color',
|
|
53
|
+
'text-field-error-supporting-text-color',
|
|
54
|
+
'text-field-error-trailing-icon-color',
|
|
55
|
+
'text-field-focus-input-text-color',
|
|
56
|
+
'text-field-focus-label-text-color',
|
|
57
|
+
'text-field-focus-leading-icon-color',
|
|
58
|
+
'text-field-focus-outline-color',
|
|
59
|
+
'text-field-focus-outline-width',
|
|
60
|
+
'text-field-focus-supporting-text-color',
|
|
61
|
+
'text-field-focus-trailing-icon-color',
|
|
62
|
+
'text-field-hover-input-text-color',
|
|
63
|
+
'text-field-hover-label-text-color',
|
|
64
|
+
'text-field-hover-leading-icon-color',
|
|
65
|
+
'text-field-hover-outline-color',
|
|
66
|
+
'text-field-hover-outline-width',
|
|
67
|
+
'text-field-hover-supporting-text-color',
|
|
68
|
+
'text-field-hover-trailing-icon-color',
|
|
69
|
+
'text-field-input-text-color',
|
|
70
|
+
'text-field-input-text-type',
|
|
71
|
+
'text-field-label-text-color',
|
|
72
|
+
'text-field-label-text-populated-size',
|
|
73
|
+
'text-field-label-text-type',
|
|
74
|
+
'text-field-leading-icon-color',
|
|
75
|
+
'text-field-leading-icon-size',
|
|
76
|
+
'text-field-outline-color',
|
|
77
|
+
'text-field-outline-width',
|
|
78
|
+
'text-field-supporting-text-color',
|
|
79
|
+
'text-field-supporting-text-type',
|
|
80
|
+
'text-field-trailing-icon-color',
|
|
81
|
+
'text-field-trailing-icon-size',
|
|
82
|
+
// go/keep-sorted end
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
$unsupported-tokens: (
|
|
86
|
+
// go/keep-sorted start
|
|
87
|
+
'menu-cascading-menu-indicator-icon-color',
|
|
88
|
+
'menu-cascading-menu-indicator-icon-size',
|
|
89
|
+
'menu-container-color',
|
|
90
|
+
'menu-container-elevation',
|
|
91
|
+
'menu-container-shadow-color',
|
|
92
|
+
'menu-container-shape',
|
|
93
|
+
'menu-divider-color',
|
|
94
|
+
'menu-divider-height',
|
|
95
|
+
'menu-list-item-container-height',
|
|
96
|
+
'menu-list-item-label-text-color',
|
|
97
|
+
'menu-list-item-label-text-font',
|
|
98
|
+
'menu-list-item-label-text-line-height',
|
|
99
|
+
'menu-list-item-label-text-size',
|
|
100
|
+
'menu-list-item-label-text-tracking',
|
|
101
|
+
'menu-list-item-label-text-type',
|
|
102
|
+
'menu-list-item-label-text-weight',
|
|
103
|
+
'menu-list-item-selected-container-color',
|
|
104
|
+
'menu-list-item-with-leading-icon-leading-icon-color',
|
|
105
|
+
'menu-list-item-with-leading-icon-leading-icon-size',
|
|
106
|
+
'menu-list-item-with-trailing-icon-trailing-icon-color',
|
|
107
|
+
'menu-list-item-with-trailing-icon-trailing-icon-size',
|
|
108
|
+
'text-field-container-color',
|
|
109
|
+
'text-field-error-hover-state-layer-color',
|
|
110
|
+
'text-field-error-hover-state-layer-opacity',
|
|
111
|
+
'text-field-hover-state-layer-color',
|
|
112
|
+
'text-field-hover-state-layer-opacity',
|
|
113
|
+
'text-field-input-text-font',
|
|
114
|
+
'text-field-input-text-line-height',
|
|
115
|
+
'text-field-input-text-size',
|
|
116
|
+
'text-field-input-text-tracking',
|
|
117
|
+
'text-field-input-text-weight',
|
|
118
|
+
'text-field-label-text-font',
|
|
119
|
+
'text-field-label-text-line-height',
|
|
120
|
+
'text-field-label-text-size',
|
|
121
|
+
'text-field-label-text-tracking',
|
|
122
|
+
'text-field-label-text-weight',
|
|
123
|
+
'text-field-supporting-text-font',
|
|
124
|
+
'text-field-supporting-text-line-height',
|
|
125
|
+
'text-field-supporting-text-size',
|
|
126
|
+
'text-field-supporting-text-tracking',
|
|
127
|
+
'text-field-supporting-text-weight',
|
|
128
|
+
// go/keep-sorted end
|
|
129
|
+
);
|
|
130
|
+
|
|
15
131
|
$_default: (
|
|
16
132
|
'md-sys-color': md-sys-color.values-light(),
|
|
17
133
|
'md-sys-elevation': md-sys-elevation.values(),
|
|
@@ -21,5 +137,38 @@ $_default: (
|
|
|
21
137
|
);
|
|
22
138
|
|
|
23
139
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
24
|
-
|
|
140
|
+
$tokens: values.validate(
|
|
141
|
+
md-comp-outlined-select.values($deps, $exclude-hardcoded-values),
|
|
142
|
+
$supported-tokens: $supported-tokens,
|
|
143
|
+
$unsupported-tokens: $unsupported-tokens
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
@each $token, $value in $tokens {
|
|
147
|
+
$tokens: map.set(
|
|
148
|
+
$tokens,
|
|
149
|
+
$token,
|
|
150
|
+
var(--md-outlined-select-#{$token}, #{$value})
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@return $tokens;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// TODO(b/276957188): Remove this when we resolve issues with values fn.
|
|
158
|
+
@function theme-values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
159
|
+
$tokens: values.validate(
|
|
160
|
+
md-comp-outlined-select.values($deps, $exclude-hardcoded-values),
|
|
161
|
+
$supported-tokens: $supported-tokens,
|
|
162
|
+
$unsupported-tokens: $unsupported-tokens
|
|
163
|
+
);
|
|
164
|
+
|
|
165
|
+
@each $token, $value in $tokens {
|
|
166
|
+
@if $value {
|
|
167
|
+
$tokens: map.set($tokens, $token, #{$value});
|
|
168
|
+
} @else {
|
|
169
|
+
$tokens: map.remove($tokens, $token);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@return $tokens;
|
|
25
174
|
}
|