@material/web 1.0.0-pre.15 → 1.0.0-pre.17
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 +26 -21
- package/all.d.ts +4 -2
- package/all.js +4 -2
- package/all.js.map +1 -1
- package/button/internal/_elevation.scss +4 -0
- package/button/internal/_filled-button.scss +0 -1
- package/button/internal/_outlined-button.scss +6 -0
- package/button/internal/_shared.scss +12 -2
- package/button/internal/button.d.ts +15 -14
- package/button/internal/button.js +41 -39
- package/button/internal/button.js.map +1 -1
- package/button/internal/elevated-styles.css.js +1 -1
- package/button/internal/elevated-styles.css.js.map +1 -1
- package/button/internal/filled-styles.css.js +1 -1
- package/button/internal/filled-styles.css.js.map +1 -1
- package/button/internal/filled-tonal-styles.css.js +1 -1
- package/button/internal/filled-tonal-styles.css.js.map +1 -1
- package/button/internal/outlined-styles.css.js +1 -1
- package/button/internal/outlined-styles.css.js.map +1 -1
- package/button/internal/shared-elevation-styles.css.js +1 -1
- package/button/internal/shared-elevation-styles.css.js.map +1 -1
- package/button/internal/shared-styles.css.js +1 -1
- package/button/internal/shared-styles.css.js.map +1 -1
- package/button/internal/text-styles.css.js +1 -1
- package/button/internal/text-styles.css.js.map +1 -1
- package/checkbox/internal/_checkbox.scss +2 -1
- package/checkbox/internal/checkbox-styles.css.js +1 -1
- package/checkbox/internal/checkbox-styles.css.js.map +1 -1
- package/checkbox/internal/checkbox.d.ts +2 -2
- package/checkbox/internal/checkbox.js +18 -14
- package/checkbox/internal/checkbox.js.map +1 -1
- package/chips/assist-chip.js +1 -2
- package/chips/assist-chip.js.map +1 -1
- package/chips/filter-chip.js +1 -3
- package/chips/filter-chip.js.map +1 -1
- package/chips/input-chip.js +1 -5
- package/chips/input-chip.js.map +1 -1
- package/chips/internal/_assist-chip.scss +6 -0
- package/chips/internal/_elevated.scss +1 -5
- package/chips/internal/_filter-chip.scss +6 -0
- package/chips/internal/_input-chip.scss +32 -0
- package/chips/internal/_selectable.scss +17 -13
- package/chips/internal/_shared.scss +27 -11
- package/chips/internal/_suggestion-chip.scss +6 -0
- package/chips/internal/_trailing-icon.scss +24 -24
- package/chips/internal/assist-chip.d.ts +3 -1
- package/chips/internal/assist-chip.js +11 -8
- package/chips/internal/assist-chip.js.map +1 -1
- package/chips/internal/assist-styles.css.js +1 -1
- package/chips/internal/assist-styles.css.js.map +1 -1
- package/chips/internal/chip.d.ts +18 -10
- package/chips/internal/chip.js +38 -33
- package/chips/internal/chip.js.map +1 -1
- package/chips/internal/elevated-styles.css.js +1 -1
- package/chips/internal/elevated-styles.css.js.map +1 -1
- package/chips/internal/filter-chip.d.ts +6 -7
- package/chips/internal/filter-chip.js +13 -14
- package/chips/internal/filter-chip.js.map +1 -1
- package/chips/internal/filter-styles.css.js +1 -1
- package/chips/internal/filter-styles.css.js.map +1 -1
- package/chips/internal/input-chip.d.ts +4 -2
- package/chips/internal/input-chip.js +16 -12
- package/chips/internal/input-chip.js.map +1 -1
- package/chips/internal/input-styles.css.js +1 -1
- package/chips/internal/input-styles.css.js.map +1 -1
- package/chips/internal/multi-action-chip.d.ts +2 -3
- package/chips/internal/multi-action-chip.js +3 -3
- package/chips/internal/multi-action-chip.js.map +1 -1
- package/chips/internal/selectable-styles.css.js +1 -1
- package/chips/internal/selectable-styles.css.js.map +1 -1
- package/chips/internal/shared-styles.css.js +1 -1
- package/chips/internal/shared-styles.css.js.map +1 -1
- package/chips/internal/suggestion-styles.css.js +1 -1
- package/chips/internal/suggestion-styles.css.js.map +1 -1
- package/chips/internal/trailing-icon-styles.css.js +1 -1
- package/chips/internal/trailing-icon-styles.css.js.map +1 -1
- package/chips/suggestion-chip.js +1 -2
- package/chips/suggestion-chip.js.map +1 -1
- package/color/_color.scss +193 -0
- package/common.d.ts +2 -2
- package/common.js +2 -2
- package/common.js.map +1 -1
- package/dialog/internal/_dialog.scss +19 -4
- package/dialog/internal/dialog-styles.css.js +1 -1
- package/dialog/internal/dialog-styles.css.js.map +1 -1
- package/dialog/internal/dialog.d.ts +6 -0
- package/dialog/internal/dialog.js +36 -4
- package/dialog/internal/dialog.js.map +1 -1
- package/elevation/internal/_elevation.scss +14 -7
- package/elevation/internal/elevation-styles.css.js +1 -1
- package/elevation/internal/elevation-styles.css.js.map +1 -1
- package/elevation/internal/elevation.d.ts +1 -0
- package/elevation/internal/elevation.js +6 -0
- package/elevation/internal/elevation.js.map +1 -1
- package/fab/branded-fab.d.ts +0 -1
- package/fab/internal/_fab.scss +11 -10
- package/fab/internal/_shared.scss +8 -2
- package/fab/internal/fab-branded-styles.css.js +1 -1
- package/fab/internal/fab-branded-styles.css.js.map +1 -1
- package/fab/internal/fab-styles.css.js +1 -1
- package/fab/internal/fab-styles.css.js.map +1 -1
- package/fab/internal/fab.d.ts +0 -1
- package/fab/internal/shared-styles.css.js +1 -1
- package/fab/internal/shared-styles.css.js.map +1 -1
- package/fab/internal/shared.d.ts +0 -9
- package/fab/internal/shared.js +2 -18
- package/fab/internal/shared.js.map +1 -1
- package/field/internal/_content.scss +9 -1
- package/field/internal/_filled-field.scss +12 -0
- package/field/internal/_label.scss +4 -1
- package/field/internal/_outlined-field.scss +33 -0
- package/field/internal/_shared.scss +14 -6
- package/field/internal/_supporting-text.scss +4 -1
- package/field/internal/field.d.ts +2 -0
- package/field/internal/field.js +19 -0
- package/field/internal/field.js.map +1 -1
- package/field/internal/filled-styles.css.js +1 -1
- package/field/internal/filled-styles.css.js.map +1 -1
- package/field/internal/outlined-styles.css.js +1 -1
- package/field/internal/outlined-styles.css.js.map +1 -1
- package/field/internal/shared-styles.css.js +1 -1
- package/field/internal/shared-styles.css.js.map +1 -1
- package/focus/internal/focus-ring.d.ts +3 -1
- package/focus/internal/focus-ring.js +9 -0
- package/focus/internal/focus-ring.js.map +1 -1
- package/icon/internal/_icon.scss +10 -5
- package/icon/internal/icon-styles.css.js +1 -1
- package/icon/internal/icon-styles.css.js.map +1 -1
- package/icon/internal/icon.js +4 -0
- package/icon/internal/icon.js.map +1 -1
- package/iconbutton/internal/_icon-button.scss +12 -0
- package/iconbutton/internal/_shared.scss +9 -0
- package/iconbutton/internal/icon-button.d.ts +19 -6
- package/iconbutton/internal/icon-button.js +35 -11
- package/iconbutton/internal/icon-button.js.map +1 -1
- package/iconbutton/internal/shared-styles.css.js +1 -1
- package/iconbutton/internal/shared-styles.css.js.map +1 -1
- package/iconbutton/internal/standard-styles.css.js +1 -1
- package/iconbutton/internal/standard-styles.css.js.map +1 -1
- package/internal/aria/aria.d.ts +52 -1
- package/internal/aria/aria.js +146 -0
- package/internal/aria/aria.js.map +1 -1
- package/internal/controller/attachable-controller.d.ts +5 -4
- package/internal/controller/attachable-controller.js +8 -0
- package/internal/controller/attachable-controller.js.map +1 -1
- package/internal/controller/form-submitter.d.ts +12 -0
- package/internal/controller/form-submitter.js +3 -1
- package/internal/controller/form-submitter.js.map +1 -1
- package/labs/badge/internal/_badge.scss +16 -9
- package/labs/badge/internal/badge-styles.css.js +1 -1
- package/labs/badge/internal/badge-styles.css.js.map +1 -1
- package/labs/navigationbar/internal/_navigation-bar.scss +11 -9
- package/labs/navigationbar/internal/navigation-bar-styles.css.js +1 -1
- package/labs/navigationbar/internal/navigation-bar-styles.css.js.map +1 -1
- package/labs/navigationdrawer/internal/_navigation-drawer-modal.scss +11 -8
- package/labs/navigationdrawer/internal/_navigation-drawer.scss +11 -8
- package/labs/navigationdrawer/internal/navigation-drawer-modal-styles.css.js +1 -1
- package/labs/navigationdrawer/internal/navigation-drawer-modal-styles.css.js.map +1 -1
- package/labs/navigationdrawer/internal/navigation-drawer-styles.css.js +1 -1
- package/labs/navigationdrawer/internal/navigation-drawer-styles.css.js.map +1 -1
- package/labs/navigationtab/internal/_navigation-tab.scss +14 -11
- package/labs/navigationtab/internal/navigation-tab-styles.css.js +1 -1
- package/labs/navigationtab/internal/navigation-tab-styles.css.js.map +1 -1
- package/labs/segmentedbutton/internal/_outlined-segmented-button.scss +1 -3
- package/labs/segmentedbutton/internal/_shared.scss +4 -1
- package/labs/segmentedbutton/internal/outlined-styles.css.js +1 -1
- package/labs/segmentedbutton/internal/outlined-styles.css.js.map +1 -1
- package/labs/segmentedbutton/internal/shared-styles.css.js +1 -1
- package/labs/segmentedbutton/internal/shared-styles.css.js.map +1 -1
- package/labs/segmentedbuttonset/internal/outlined-styles.css.js +1 -1
- package/labs/segmentedbuttonset/internal/outlined-styles.css.js.map +1 -1
- package/list/harness.js +1 -1
- package/list/harness.js.map +1 -1
- package/list/internal/_list.scss +7 -6
- package/list/internal/list-styles.css.js +1 -1
- package/list/internal/list-styles.css.js.map +1 -1
- package/list/internal/list.d.ts +1 -2
- package/list/internal/list.js +4 -6
- package/list/internal/list.js.map +1 -1
- package/list/internal/listitem/_list-item.scss +96 -94
- package/list/internal/listitem/forced-colors-styles.css.js +1 -1
- package/list/internal/listitem/forced-colors-styles.css.js.map +1 -1
- package/list/internal/listitem/forced-colors-styles.scss +6 -6
- package/list/internal/listitem/list-item-styles.css.js +1 -1
- package/list/internal/listitem/list-item-styles.css.js.map +1 -1
- package/menu/harness.d.ts +1 -1
- package/menu/harness.js +3 -4
- package/menu/harness.js.map +1 -1
- package/menu/internal/_menu.scss +37 -28
- package/menu/internal/menu-styles.css.js +1 -1
- package/menu/internal/menu-styles.css.js.map +1 -1
- package/menu/internal/menu.d.ts +15 -4
- package/menu/internal/menu.js +33 -10
- package/menu/internal/menu.js.map +1 -1
- package/menu/internal/menuitem/_menu-item.scss +7 -4
- package/menu/internal/menuitem/menu-item-styles.css.js +1 -1
- package/menu/internal/menuitem/menu-item-styles.css.js.map +1 -1
- package/menu/internal/menuitem/menu-item.js +1 -1
- package/menu/internal/menuitem/menu-item.js.map +1 -1
- package/menu/internal/submenuitem/sub-menu-item.d.ts +3 -0
- package/menu/internal/submenuitem/sub-menu-item.js +42 -12
- package/menu/internal/submenuitem/sub-menu-item.js.map +1 -1
- package/menu/internal/typeaheadController.js +2 -1
- package/menu/internal/typeaheadController.js.map +1 -1
- package/menu/menu.d.ts +12 -5
- package/menu/menu.js +12 -5
- package/menu/menu.js.map +1 -1
- package/menu/sub-menu-item.d.ts +3 -4
- package/menu/sub-menu-item.js +3 -4
- package/menu/sub-menu-item.js.map +1 -1
- package/package.json +10 -2
- package/progress/harness.js +2 -4
- package/progress/harness.js.map +1 -1
- package/progress/internal/_circular-progress.scss +8 -6
- package/progress/internal/_linear-progress.scss +95 -134
- package/progress/internal/circular-progress-styles.css.js +1 -1
- package/progress/internal/circular-progress-styles.css.js.map +1 -1
- package/progress/internal/circular-progress.js +1 -1
- package/progress/internal/circular-progress.js.map +1 -1
- package/progress/internal/linear-progress-styles.css.js +1 -1
- package/progress/internal/linear-progress-styles.css.js.map +1 -1
- package/progress/internal/linear-progress.d.ts +0 -11
- package/progress/internal/linear-progress.js +4 -48
- package/progress/internal/linear-progress.js.map +1 -1
- package/radio/harness.d.ts +1 -1
- package/radio/harness.js +1 -1
- package/radio/harness.js.map +1 -1
- package/radio/internal/_radio.scss +4 -4
- package/radio/internal/radio-styles.css.js +1 -1
- package/radio/internal/radio-styles.css.js.map +1 -1
- package/radio/internal/radio.d.ts +4 -6
- package/radio/internal/radio.js +37 -32
- package/radio/internal/radio.js.map +1 -1
- package/radio/internal/single-selection-controller.js +4 -3
- package/radio/internal/single-selection-controller.js.map +1 -1
- package/ripple/internal/_ripple.scss +1 -1
- package/ripple/internal/ripple-styles.css.js +1 -1
- package/ripple/internal/ripple-styles.css.js.map +1 -1
- package/ripple/internal/ripple.d.ts +3 -1
- package/ripple/internal/ripple.js +9 -0
- package/ripple/internal/ripple.js.map +1 -1
- package/select/harness.d.ts +1 -1
- package/select/harness.js +1 -3
- package/select/harness.js.map +1 -1
- package/select/internal/_filled-select.scss +13 -4
- package/select/internal/_outlined-select.scss +13 -4
- package/select/internal/_shared.scss +0 -1
- package/select/internal/filled-select-styles.css.js +1 -1
- package/select/internal/filled-select-styles.css.js.map +1 -1
- package/select/internal/outlined-select-styles.css.js +1 -1
- package/select/internal/outlined-select-styles.css.js.map +1 -1
- package/select/internal/select.d.ts +8 -2
- package/select/internal/select.js +21 -8
- package/select/internal/select.js.map +1 -1
- package/slider/internal/_slider.scss +42 -32
- package/slider/internal/forced-colors-styles.css.js +1 -1
- package/slider/internal/forced-colors-styles.css.js.map +1 -1
- package/slider/internal/forced-colors-styles.scss +31 -4
- package/slider/internal/slider-styles.css.js +1 -1
- package/slider/internal/slider-styles.css.js.map +1 -1
- package/slider/internal/slider.d.ts +22 -8
- package/slider/internal/slider.js +113 -22
- package/slider/internal/slider.js.map +1 -1
- package/switch/harness.d.ts +1 -1
- package/switch/harness.js +1 -1
- package/switch/harness.js.map +1 -1
- package/switch/internal/_handle.scss +22 -21
- package/switch/internal/_icon.scss +12 -12
- package/switch/internal/_switch.scss +17 -17
- package/switch/internal/_track.scss +12 -12
- package/switch/internal/forced-colors-styles.css.js +1 -1
- package/switch/internal/forced-colors-styles.css.js.map +1 -1
- package/switch/internal/forced-colors-styles.scss +1 -0
- package/switch/internal/switch-styles.css.js +1 -1
- package/switch/internal/switch-styles.css.js.map +1 -1
- package/switch/internal/switch.d.ts +73 -3
- package/switch/internal/switch.js +146 -32
- package/switch/internal/switch.js.map +1 -1
- package/tabs/{_tab.scss → _primary-tab.scss} +1 -1
- package/tabs/_secondary-tab.scss +6 -0
- package/tabs/harness.d.ts +2 -2
- package/tabs/harness.js +1 -2
- package/tabs/harness.js.map +1 -1
- package/tabs/internal/_primary-tab.scss +70 -0
- package/tabs/internal/_secondary-tab.scss +61 -0
- package/tabs/internal/_tab.scss +21 -114
- package/tabs/internal/_tabs.scss +9 -10
- package/tabs/internal/primary-tab-styles.css.js +9 -0
- package/tabs/internal/primary-tab-styles.css.js.map +1 -0
- package/tabs/internal/primary-tab-styles.scss +10 -0
- package/tabs/internal/primary-tab.d.ts +20 -0
- package/tabs/internal/primary-tab.js +30 -0
- package/tabs/internal/primary-tab.js.map +1 -0
- package/tabs/internal/secondary-tab-styles.css.js +9 -0
- package/tabs/internal/secondary-tab-styles.css.js.map +1 -0
- package/tabs/internal/secondary-tab-styles.scss +10 -0
- package/tabs/internal/secondary-tab.d.ts +12 -0
- package/tabs/internal/secondary-tab.js +16 -0
- package/tabs/internal/secondary-tab.js.map +1 -0
- package/tabs/internal/tab-styles.css.js +1 -1
- package/tabs/internal/tab-styles.css.js.map +1 -1
- package/tabs/internal/tab.d.ts +16 -34
- package/tabs/internal/tab.js +81 -81
- package/tabs/internal/tab.js.map +1 -1
- package/tabs/internal/tabs-styles.css.js +1 -1
- package/tabs/internal/tabs-styles.css.js.map +1 -1
- package/tabs/internal/tabs.d.ts +6 -20
- package/tabs/internal/tabs.js +33 -66
- package/tabs/internal/tabs.js.map +1 -1
- package/tabs/{tab.d.ts → primary-tab.d.ts} +3 -4
- package/tabs/primary-tab.js +23 -0
- package/tabs/primary-tab.js.map +1 -0
- package/tabs/secondary-tab.d.ts +18 -0
- package/tabs/secondary-tab.js +23 -0
- package/tabs/secondary-tab.js.map +1 -0
- package/tabs/tabs.d.ts +0 -2
- package/tabs/tabs.js +0 -2
- package/tabs/tabs.js.map +1 -1
- package/textfield/internal/_filled-text-field.scss +12 -3
- package/textfield/internal/_outlined-text-field.scss +12 -3
- package/textfield/internal/filled-styles.css.js +1 -1
- package/textfield/internal/filled-styles.css.js.map +1 -1
- package/textfield/internal/outlined-styles.css.js +1 -1
- package/textfield/internal/outlined-styles.css.js.map +1 -1
- package/textfield/internal/text-field.d.ts +30 -10
- package/textfield/internal/text-field.js +80 -32
- package/textfield/internal/text-field.js.map +1 -1
- package/tokens/_index.scss +5 -6
- package/tokens/_md-comp-assist-chip.scss +6 -14
- package/tokens/_md-comp-badge.scss +1 -14
- package/tokens/{_md-comp-circular-progress-indicator.scss → _md-comp-circular-progress.scss} +3 -1
- package/tokens/_md-comp-dialog.scss +10 -17
- package/tokens/_md-comp-elevated-button.scss +5 -13
- package/tokens/_md-comp-fab-branded.scss +9 -10
- package/tokens/_md-comp-fab.scss +9 -10
- package/tokens/_md-comp-filled-button.scss +5 -13
- package/tokens/_md-comp-filled-field.scss +27 -8
- package/tokens/_md-comp-filled-select.scss +18 -15
- package/tokens/_md-comp-filled-text-field.scss +17 -19
- package/tokens/_md-comp-filled-tonal-button.scss +5 -13
- package/tokens/_md-comp-filter-chip.scss +5 -13
- package/tokens/_md-comp-input-chip.scss +5 -13
- package/tokens/_md-comp-list-item.scss +117 -122
- package/tokens/_md-comp-menu-item.scss +3 -3
- package/tokens/_md-comp-outlined-button.scss +5 -13
- package/tokens/_md-comp-outlined-field.scss +27 -7
- package/tokens/_md-comp-outlined-segmented-button.scss +5 -13
- package/tokens/_md-comp-outlined-select.scss +23 -15
- package/tokens/_md-comp-outlined-text-field.scss +17 -19
- package/tokens/_md-comp-primary-tab.scss +132 -0
- package/tokens/_md-comp-secondary-tab.scss +139 -0
- package/tokens/_md-comp-slider.scss +16 -16
- package/tokens/_md-comp-suggestion-chip.scss +5 -13
- package/tokens/_md-comp-test-table.scss +13 -2
- package/tokens/_md-comp-text-button.scss +5 -13
- package/tokens/_md-ref-palette.scss +101 -1
- package/tokens/_md-ref-typeface.scss +3 -0
- package/tokens/_md-sys-color.scss +57 -2
- package/tokens/_md-sys-typescale.scss +66 -5
- package/chips/internal/assist-forced-colors-styles.css.js +0 -9
- package/chips/internal/assist-forced-colors-styles.css.js.map +0 -1
- package/chips/internal/assist-forced-colors-styles.scss +0 -27
- package/chips/internal/filter-forced-colors-styles.css.js +0 -9
- package/chips/internal/filter-forced-colors-styles.css.js.map +0 -1
- package/chips/internal/filter-forced-colors-styles.scss +0 -34
- package/chips/internal/input-forced-colors-styles.css.d.ts +0 -1
- package/chips/internal/input-forced-colors-styles.css.js +0 -9
- package/chips/internal/input-forced-colors-styles.css.js.map +0 -1
- package/chips/internal/input-forced-colors-styles.scss +0 -39
- package/chips/internal/suggestion-forced-colors-styles.css.d.ts +0 -1
- package/chips/internal/suggestion-forced-colors-styles.css.js +0 -9
- package/chips/internal/suggestion-forced-colors-styles.css.js.map +0 -1
- package/chips/internal/suggestion-forced-colors-styles.scss +0 -27
- package/internal/sass/_theme.scss +0 -249
- package/tabs/tab.js +0 -22
- package/tabs/tab.js.map +0 -1
- package/tokens/_md-comp-tab.scss +0 -285
- /package/{chips/internal/assist-forced-colors-styles.css.d.ts → tabs/internal/primary-tab-styles.css.d.ts} +0 -0
- /package/{chips/internal/filter-forced-colors-styles.css.d.ts → tabs/internal/secondary-tab-styles.css.d.ts} +0 -0
- /package/tokens/{_md-comp-linear-progress-indicator.scss → _md-comp-linear-progress.scss} +0 -0
- /package/tokens/{_md-comp-radio-button.scss → _md-comp-radio.scss} +0 -0
|
@@ -11,26 +11,87 @@
|
|
|
11
11
|
@use './v0_172/md-sys-typescale';
|
|
12
12
|
// go/keep-sorted end
|
|
13
13
|
|
|
14
|
-
$_default: (
|
|
15
|
-
'md-ref-typeface': md-ref-typeface.values(),
|
|
16
|
-
);
|
|
17
|
-
|
|
18
14
|
$supported-tokens: (
|
|
15
|
+
// go/keep-sorted start
|
|
19
16
|
'body-large',
|
|
17
|
+
'body-large-font',
|
|
18
|
+
'body-large-line-height',
|
|
19
|
+
'body-large-size',
|
|
20
|
+
'body-large-weight',
|
|
20
21
|
'body-medium',
|
|
22
|
+
'body-medium-font',
|
|
23
|
+
'body-medium-line-height',
|
|
24
|
+
'body-medium-size',
|
|
21
25
|
'body-small',
|
|
26
|
+
'body-small-font',
|
|
27
|
+
'body-small-line-height',
|
|
28
|
+
'body-small-size',
|
|
29
|
+
'body-small-weight',
|
|
22
30
|
'display-large',
|
|
31
|
+
'display-large-font',
|
|
32
|
+
'display-large-line-height',
|
|
33
|
+
'display-large-size',
|
|
34
|
+
'display-large-weight',
|
|
23
35
|
'display-medium',
|
|
36
|
+
'display-medium-font',
|
|
37
|
+
'display-medium-line-height',
|
|
38
|
+
'display-medium-size',
|
|
39
|
+
'display-medium-weight',
|
|
24
40
|
'display-small',
|
|
41
|
+
'display-small-font',
|
|
42
|
+
'display-small-line-height',
|
|
43
|
+
'display-small-size',
|
|
44
|
+
'display-small-weight',
|
|
25
45
|
'headline-large',
|
|
46
|
+
'headline-large-font',
|
|
47
|
+
'headline-large-line-height',
|
|
48
|
+
'headline-large-size',
|
|
49
|
+
'headline-large-weight',
|
|
26
50
|
'headline-medium',
|
|
51
|
+
'headline-medium-font',
|
|
52
|
+
'headline-medium-line-height',
|
|
53
|
+
'headline-medium-size',
|
|
54
|
+
'headline-medium-weight',
|
|
27
55
|
'headline-small',
|
|
56
|
+
'headline-small-font',
|
|
57
|
+
'headline-small-line-height',
|
|
58
|
+
'headline-small-size',
|
|
59
|
+
'headline-small-weight',
|
|
28
60
|
'label-large',
|
|
61
|
+
'label-large-font',
|
|
62
|
+
'label-large-line-height',
|
|
63
|
+
'label-large-size',
|
|
64
|
+
'label-large-weight',
|
|
29
65
|
'label-medium',
|
|
66
|
+
'label-medium-font',
|
|
67
|
+
'label-medium-line-height',
|
|
68
|
+
'label-medium-size',
|
|
69
|
+
'label-medium-weight',
|
|
30
70
|
'label-small',
|
|
71
|
+
'label-small-font',
|
|
72
|
+
'label-small-line-height',
|
|
73
|
+
'label-small-size',
|
|
74
|
+
'label-small-weight',
|
|
31
75
|
'title-large',
|
|
76
|
+
'title-large-font',
|
|
77
|
+
'title-large-line-height',
|
|
78
|
+
'title-large-size',
|
|
79
|
+
'title-large-weight',
|
|
32
80
|
'title-medium',
|
|
33
|
-
'title-
|
|
81
|
+
'title-medium-font',
|
|
82
|
+
'title-medium-line-height',
|
|
83
|
+
'title-medium-size',
|
|
84
|
+
'title-medium-weight',
|
|
85
|
+
'title-small',
|
|
86
|
+
'title-small-font',
|
|
87
|
+
'title-small-line-height',
|
|
88
|
+
'title-small-size',
|
|
89
|
+
'title-small-weight',
|
|
90
|
+
// go/keep-sorted end
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
$_default: (
|
|
94
|
+
'md-ref-typeface': md-ref-typeface.values(),
|
|
34
95
|
);
|
|
35
96
|
|
|
36
97
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { css } from 'lit';
|
|
7
|
-
export const styles = css `@media(forced-colors: active){:host{--md-assist-chip-disabled-label-text-color: GrayText;--md-assist-chip-disabled-label-text-opacity: 1;--md-assist-chip-disabled-leading-icon-color: GrayText;--md-assist-chip-disabled-leading-icon-opacity: 1;--md-assist-chip-disabled-outline-color: GrayText;--md-assist-chip-disabled-outline-opacity: 1}.link .outline{border-color:ActiveText}}/*# sourceMappingURL=assist-forced-colors-styles.css.map */
|
|
8
|
-
`;
|
|
9
|
-
//# sourceMappingURL=assist-forced-colors-styles.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assist-forced-colors-styles.css.js","sourceRoot":"","sources":["assist-forced-colors-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`@media(forced-colors: active){:host{--md-assist-chip-disabled-label-text-color: GrayText;--md-assist-chip-disabled-label-text-opacity: 1;--md-assist-chip-disabled-leading-icon-color: GrayText;--md-assist-chip-disabled-leading-icon-opacity: 1;--md-assist-chip-disabled-outline-color: GrayText;--md-assist-chip-disabled-outline-opacity: 1}.link .outline{border-color:ActiveText}}/*# sourceMappingURL=assist-forced-colors-styles.css.map */\n`;\n "]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 Google LLC
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// go/keep-sorted start
|
|
7
|
-
@use './assist-chip';
|
|
8
|
-
// go/keep-sorted end
|
|
9
|
-
|
|
10
|
-
@media (forced-colors: active) {
|
|
11
|
-
:host {
|
|
12
|
-
@include assist-chip.theme(
|
|
13
|
-
(
|
|
14
|
-
'disabled-label-text-color': GrayText,
|
|
15
|
-
'disabled-label-text-opacity': 1,
|
|
16
|
-
'disabled-leading-icon-color': GrayText,
|
|
17
|
-
'disabled-leading-icon-opacity': 1,
|
|
18
|
-
'disabled-outline-color': GrayText,
|
|
19
|
-
'disabled-outline-opacity': 1,
|
|
20
|
-
)
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.link .outline {
|
|
25
|
-
border-color: ActiveText;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { css } from 'lit';
|
|
7
|
-
export const styles = css `@media(forced-colors: active){:host{--md-filter-chip-disabled-label-text-color: GrayText;--md-filter-chip-disabled-label-text-opacity: 1;--md-filter-chip-disabled-leading-icon-color: GrayText;--md-filter-chip-disabled-leading-icon-opacity: 1;--md-filter-chip-disabled-trailing-icon-color: GrayText;--md-filter-chip-disabled-trailing-icon-opacity: 1;--md-filter-chip-disabled-outline-color: GrayText;--md-filter-chip-disabled-outline-opacity: 1;--md-filter-chip-trailing-icon-color: ButtonText;--md-filter-chip-hover-trailing-icon-color: ButtonText;--md-filter-chip-focus-trailing-icon-color: ButtonText;--md-filter-chip-pressed-trailing-icon-color: ButtonText;--md-filter-chip-selected-trailing-icon-color: ButtonText;--md-filter-chip-selected-hover-trailing-icon-color: ButtonText;--md-filter-chip-selected-focus-trailing-icon-color: ButtonText;--md-filter-chip-selected-pressed-trailing-icon-color: ButtonText;--md-filter-chip-selected-outline-width: 1px}}/*# sourceMappingURL=filter-forced-colors-styles.css.map */
|
|
8
|
-
`;
|
|
9
|
-
//# sourceMappingURL=filter-forced-colors-styles.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-forced-colors-styles.css.js","sourceRoot":"","sources":["filter-forced-colors-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`@media(forced-colors: active){:host{--md-filter-chip-disabled-label-text-color: GrayText;--md-filter-chip-disabled-label-text-opacity: 1;--md-filter-chip-disabled-leading-icon-color: GrayText;--md-filter-chip-disabled-leading-icon-opacity: 1;--md-filter-chip-disabled-trailing-icon-color: GrayText;--md-filter-chip-disabled-trailing-icon-opacity: 1;--md-filter-chip-disabled-outline-color: GrayText;--md-filter-chip-disabled-outline-opacity: 1;--md-filter-chip-trailing-icon-color: ButtonText;--md-filter-chip-hover-trailing-icon-color: ButtonText;--md-filter-chip-focus-trailing-icon-color: ButtonText;--md-filter-chip-pressed-trailing-icon-color: ButtonText;--md-filter-chip-selected-trailing-icon-color: ButtonText;--md-filter-chip-selected-hover-trailing-icon-color: ButtonText;--md-filter-chip-selected-focus-trailing-icon-color: ButtonText;--md-filter-chip-selected-pressed-trailing-icon-color: ButtonText;--md-filter-chip-selected-outline-width: 1px}}/*# sourceMappingURL=filter-forced-colors-styles.css.map */\n`;\n "]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 Google LLC
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// go/keep-sorted start
|
|
7
|
-
@use './filter-chip';
|
|
8
|
-
// go/keep-sorted end
|
|
9
|
-
|
|
10
|
-
@media (forced-colors: active) {
|
|
11
|
-
:host {
|
|
12
|
-
@include filter-chip.theme(
|
|
13
|
-
(
|
|
14
|
-
'disabled-label-text-color': GrayText,
|
|
15
|
-
'disabled-label-text-opacity': 1,
|
|
16
|
-
'disabled-leading-icon-color': GrayText,
|
|
17
|
-
'disabled-leading-icon-opacity': 1,
|
|
18
|
-
'disabled-trailing-icon-color': GrayText,
|
|
19
|
-
'disabled-trailing-icon-opacity': 1,
|
|
20
|
-
'disabled-outline-color': GrayText,
|
|
21
|
-
'disabled-outline-opacity': 1,
|
|
22
|
-
'trailing-icon-color': ButtonText,
|
|
23
|
-
'hover-trailing-icon-color': ButtonText,
|
|
24
|
-
'focus-trailing-icon-color': ButtonText,
|
|
25
|
-
'pressed-trailing-icon-color': ButtonText,
|
|
26
|
-
'selected-trailing-icon-color': ButtonText,
|
|
27
|
-
'selected-hover-trailing-icon-color': ButtonText,
|
|
28
|
-
'selected-focus-trailing-icon-color': ButtonText,
|
|
29
|
-
'selected-pressed-trailing-icon-color': ButtonText,
|
|
30
|
-
'selected-outline-width': 1px,
|
|
31
|
-
)
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { css } from 'lit';
|
|
7
|
-
export const styles = css `@media(forced-colors: active){:host{--md-input-chip-disabled-avatar-opacity: 1;--md-input-chip-disabled-label-text-color: GrayText;--md-input-chip-disabled-label-text-opacity: 1;--md-input-chip-disabled-leading-icon-color: GrayText;--md-input-chip-disabled-leading-icon-opacity: 1;--md-input-chip-disabled-trailing-icon-color: GrayText;--md-input-chip-disabled-trailing-icon-opacity: 1;--md-input-chip-disabled-outline-color: GrayText;--md-input-chip-disabled-outline-opacity: 1;--md-input-chip-trailing-icon-color: ButtonText;--md-input-chip-hover-trailing-icon-color: ButtonText;--md-input-chip-focus-trailing-icon-color: ButtonText;--md-input-chip-pressed-trailing-icon-color: ButtonText;--md-input-chip-selected-trailing-icon-color: ButtonText;--md-input-chip-selected-hover-trailing-icon-color: ButtonText;--md-input-chip-selected-focus-trailing-icon-color: ButtonText;--md-input-chip-selected-pressed-trailing-icon-color: ButtonText;--md-input-chip-selected-outline-width: 1px}.link .outline{border-color:ActiveText}}/*# sourceMappingURL=input-forced-colors-styles.css.map */
|
|
8
|
-
`;
|
|
9
|
-
//# sourceMappingURL=input-forced-colors-styles.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-forced-colors-styles.css.js","sourceRoot":"","sources":["input-forced-colors-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`@media(forced-colors: active){:host{--md-input-chip-disabled-avatar-opacity: 1;--md-input-chip-disabled-label-text-color: GrayText;--md-input-chip-disabled-label-text-opacity: 1;--md-input-chip-disabled-leading-icon-color: GrayText;--md-input-chip-disabled-leading-icon-opacity: 1;--md-input-chip-disabled-trailing-icon-color: GrayText;--md-input-chip-disabled-trailing-icon-opacity: 1;--md-input-chip-disabled-outline-color: GrayText;--md-input-chip-disabled-outline-opacity: 1;--md-input-chip-trailing-icon-color: ButtonText;--md-input-chip-hover-trailing-icon-color: ButtonText;--md-input-chip-focus-trailing-icon-color: ButtonText;--md-input-chip-pressed-trailing-icon-color: ButtonText;--md-input-chip-selected-trailing-icon-color: ButtonText;--md-input-chip-selected-hover-trailing-icon-color: ButtonText;--md-input-chip-selected-focus-trailing-icon-color: ButtonText;--md-input-chip-selected-pressed-trailing-icon-color: ButtonText;--md-input-chip-selected-outline-width: 1px}.link .outline{border-color:ActiveText}}/*# sourceMappingURL=input-forced-colors-styles.css.map */\n`;\n "]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 Google LLC
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// go/keep-sorted start
|
|
7
|
-
@use './input-chip';
|
|
8
|
-
// go/keep-sorted end
|
|
9
|
-
|
|
10
|
-
@media (forced-colors: active) {
|
|
11
|
-
:host {
|
|
12
|
-
@include input-chip.theme(
|
|
13
|
-
(
|
|
14
|
-
'disabled-avatar-opacity': 1,
|
|
15
|
-
'disabled-label-text-color': GrayText,
|
|
16
|
-
'disabled-label-text-opacity': 1,
|
|
17
|
-
'disabled-leading-icon-color': GrayText,
|
|
18
|
-
'disabled-leading-icon-opacity': 1,
|
|
19
|
-
'disabled-trailing-icon-color': GrayText,
|
|
20
|
-
'disabled-trailing-icon-opacity': 1,
|
|
21
|
-
'disabled-outline-color': GrayText,
|
|
22
|
-
'disabled-outline-opacity': 1,
|
|
23
|
-
'trailing-icon-color': ButtonText,
|
|
24
|
-
'hover-trailing-icon-color': ButtonText,
|
|
25
|
-
'focus-trailing-icon-color': ButtonText,
|
|
26
|
-
'pressed-trailing-icon-color': ButtonText,
|
|
27
|
-
'selected-trailing-icon-color': ButtonText,
|
|
28
|
-
'selected-hover-trailing-icon-color': ButtonText,
|
|
29
|
-
'selected-focus-trailing-icon-color': ButtonText,
|
|
30
|
-
'selected-pressed-trailing-icon-color': ButtonText,
|
|
31
|
-
'selected-outline-width': 1px,
|
|
32
|
-
)
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.link .outline {
|
|
37
|
-
border-color: ActiveText;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { css } from 'lit';
|
|
7
|
-
export const styles = css `@media(forced-colors: active){:host{--md-suggestion-chip-disabled-label-text-color: GrayText;--md-suggestion-chip-disabled-label-text-opacity: 1;--md-suggestion-chip-disabled-leading-icon-color: GrayText;--md-suggestion-chip-disabled-leading-icon-opacity: 1;--md-suggestion-chip-disabled-outline-color: GrayText;--md-suggestion-chip-disabled-outline-opacity: 1}.link .outline{border-color:ActiveText}}/*# sourceMappingURL=suggestion-forced-colors-styles.css.map */
|
|
8
|
-
`;
|
|
9
|
-
//# sourceMappingURL=suggestion-forced-colors-styles.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-forced-colors-styles.css.js","sourceRoot":"","sources":["suggestion-forced-colors-styles.css.ts"],"names":[],"mappings":"AAAA;;;;IAII;AACH,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;CACzB,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n import {css} from 'lit';\n export const styles = css`@media(forced-colors: active){:host{--md-suggestion-chip-disabled-label-text-color: GrayText;--md-suggestion-chip-disabled-label-text-opacity: 1;--md-suggestion-chip-disabled-leading-icon-color: GrayText;--md-suggestion-chip-disabled-leading-icon-opacity: 1;--md-suggestion-chip-disabled-outline-color: GrayText;--md-suggestion-chip-disabled-outline-opacity: 1}.link .outline{border-color:ActiveText}}/*# sourceMappingURL=suggestion-forced-colors-styles.css.map */\n`;\n "]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 Google LLC
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// go/keep-sorted start
|
|
7
|
-
@use './suggestion-chip';
|
|
8
|
-
// go/keep-sorted end
|
|
9
|
-
|
|
10
|
-
@media (forced-colors: active) {
|
|
11
|
-
:host {
|
|
12
|
-
@include suggestion-chip.theme(
|
|
13
|
-
(
|
|
14
|
-
'disabled-label-text-color': GrayText,
|
|
15
|
-
'disabled-label-text-opacity': 1,
|
|
16
|
-
'disabled-leading-icon-color': GrayText,
|
|
17
|
-
'disabled-leading-icon-opacity': 1,
|
|
18
|
-
'disabled-outline-color': GrayText,
|
|
19
|
-
'disabled-outline-opacity': 1,
|
|
20
|
-
)
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.link .outline {
|
|
25
|
-
border-color: ActiveText;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2021 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:meta';
|
|
10
|
-
// go/keep-sorted end
|
|
11
|
-
// go/keep-sorted start
|
|
12
|
-
@use './string-ext';
|
|
13
|
-
@use './var';
|
|
14
|
-
// go/keep-sorted end
|
|
15
|
-
|
|
16
|
-
/// Transform a user-provided `$theme` map's values into `var()` custom property
|
|
17
|
-
/// values.
|
|
18
|
-
///
|
|
19
|
-
/// Use this function in `theme-styles()` mixins to transform values into
|
|
20
|
-
/// custom property `var()` "slots" that can subsequently be styled via
|
|
21
|
-
/// `theme.emit-theme-vars()` in the `theme()` mixin by the user.
|
|
22
|
-
///
|
|
23
|
-
/// @example - scss
|
|
24
|
-
/// $light-theme: (
|
|
25
|
-
/// label-color: purple
|
|
26
|
-
/// );
|
|
27
|
-
///
|
|
28
|
-
/// @mixin theme-styles($theme) {
|
|
29
|
-
/// $theme: theme.create-theme-vars($theme, button);
|
|
30
|
-
///
|
|
31
|
-
/// .foo {
|
|
32
|
-
/// color: map.get($theme, label-color);
|
|
33
|
-
/// }
|
|
34
|
-
/// }
|
|
35
|
-
///
|
|
36
|
-
/// @example - css
|
|
37
|
-
/// .foo {
|
|
38
|
-
/// color: var(--md-button-label-color, purple);
|
|
39
|
-
/// }
|
|
40
|
-
///
|
|
41
|
-
/// @param {Map} $theme - The theme Map to transform values into custom property
|
|
42
|
-
/// `var()`s.
|
|
43
|
-
/// @param {String} $prefix - Component and variant prefix to prepend for each
|
|
44
|
-
/// token's custom property name.
|
|
45
|
-
/// @return {Map} The provided `$theme` Map whose values are replaced with the
|
|
46
|
-
/// `var()` custom properties.
|
|
47
|
-
@function create-theme-vars($theme, $prefix) {
|
|
48
|
-
@each $key, $value in $theme {
|
|
49
|
-
@if $value != null {
|
|
50
|
-
$token: combine-tokens($prefix, $key);
|
|
51
|
-
|
|
52
|
-
@if meta.type-of($value) == 'map' {
|
|
53
|
-
$value: create-theme-vars($value, $token);
|
|
54
|
-
} @else {
|
|
55
|
-
$value: var.create($token, $value);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
$theme: map.set($theme, $key, $value);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@return $theme;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/// Emits CSS declaration values for a theme map that has been transformed with
|
|
66
|
-
/// `create-theme-vars()`.
|
|
67
|
-
///
|
|
68
|
-
/// Use this in `theme()` mixins to set user-provided token customizations.
|
|
69
|
-
///
|
|
70
|
-
/// @example - scss
|
|
71
|
-
/// $light-theme: (
|
|
72
|
-
/// label-color: purple
|
|
73
|
-
/// );
|
|
74
|
-
///
|
|
75
|
-
/// @mixin theme($theme) {
|
|
76
|
-
/// $theme: theme.create-theme-vars($theme, button);
|
|
77
|
-
///
|
|
78
|
-
/// @include theme.emit-theme-vars($theme);
|
|
79
|
-
/// }
|
|
80
|
-
///
|
|
81
|
-
/// .my-button {
|
|
82
|
-
/// @include theme((label-color: teal));
|
|
83
|
-
/// }
|
|
84
|
-
///
|
|
85
|
-
/// @example - css
|
|
86
|
-
/// .my-button {
|
|
87
|
-
/// --md-button-label-color: teal;
|
|
88
|
-
/// }
|
|
89
|
-
///
|
|
90
|
-
/// @param {Map} $theme - The theme Map to emit custom property declarations
|
|
91
|
-
/// for.
|
|
92
|
-
@mixin emit-theme-vars($theme) {
|
|
93
|
-
@each $token, $value in $theme {
|
|
94
|
-
@if $value {
|
|
95
|
-
@if meta.type-of($value) == 'map' {
|
|
96
|
-
@include emit-theme-vars($value);
|
|
97
|
-
} @else if not var.is-var($value) {
|
|
98
|
-
@error '"#{$token}": #{$value} is not a var(). Call create-theme-vars($theme) before emit-theme-vars($theme).';
|
|
99
|
-
} @else {
|
|
100
|
-
#{var.name($value)}: #{var.fallback($value)};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/// Combines one or more token parts into a token.
|
|
107
|
-
///
|
|
108
|
-
/// @example - scss
|
|
109
|
-
/// $key: combine(body, font-size);
|
|
110
|
-
/// // body-font-size
|
|
111
|
-
///
|
|
112
|
-
/// @param {String...} $parts - Arbitrary number of string token parts to
|
|
113
|
-
/// combine.
|
|
114
|
-
/// @return {String} A combined token string.
|
|
115
|
-
@function combine-tokens($parts...) {
|
|
116
|
-
// Allow extra keywords to be passed to other functions without impacting this
|
|
117
|
-
// function, which does not expect any keywords.
|
|
118
|
-
$unused: meta.keywords($parts);
|
|
119
|
-
$token: '';
|
|
120
|
-
@each $part in $parts {
|
|
121
|
-
@if $part {
|
|
122
|
-
@if $token == '' {
|
|
123
|
-
$token: $part;
|
|
124
|
-
} @else {
|
|
125
|
-
$token: #{$token}-#{$part};
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@return $token;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/// Validates a theme's tokens and values and throws an error if incorrect
|
|
134
|
-
/// tokens are present or invalid values are provided.
|
|
135
|
-
///
|
|
136
|
-
/// Use this in `theme()` mixins to validate user-provided `$theme` maps before
|
|
137
|
-
/// providing the value to `theme.create-theme-vars()`.
|
|
138
|
-
///
|
|
139
|
-
/// @example - scss
|
|
140
|
-
/// @mixin theme($theme) {
|
|
141
|
-
/// $theme: theme.validate-theme($light-theme, $theme);
|
|
142
|
-
/// $theme: theme.create-theme-vars($theme, checkbox);
|
|
143
|
-
/// }
|
|
144
|
-
///
|
|
145
|
-
/// @throw If any tokens or values are invalid.
|
|
146
|
-
/// @param {Map} $reference-theme - A reference theme Map whose token keys will
|
|
147
|
-
/// be used to validate the user-provided theme.
|
|
148
|
-
/// @param {Map} $theme - User-provided theme Map to validate.
|
|
149
|
-
/// @return {Map} The validated user-provided theme Map.
|
|
150
|
-
@function validate-theme($reference-theme, $theme) {
|
|
151
|
-
$theme: _validate-theme-tokens(
|
|
152
|
-
map.keys($reference-theme),
|
|
153
|
-
$theme,
|
|
154
|
-
$require-all: false
|
|
155
|
-
);
|
|
156
|
-
|
|
157
|
-
@return $theme;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/// Validates a theme's tokens and throws an error if incorrect tokens are
|
|
161
|
-
/// present or any tokens are missing.
|
|
162
|
-
///
|
|
163
|
-
/// Use this in internal `theme-styles()` mixins to validate library-provided
|
|
164
|
-
/// `$theme` maps and ensure that all tokens are correct and present.
|
|
165
|
-
///
|
|
166
|
-
/// @example - scss
|
|
167
|
-
/// @mixin theme-styles($theme) {
|
|
168
|
-
/// $theme: theme.validate-theme-styles($light-theme, $theme);
|
|
169
|
-
/// $theme: theme.create-theme-vars($theme, checkbox);
|
|
170
|
-
/// }
|
|
171
|
-
///
|
|
172
|
-
/// @throw If any tokens are invalid or missing.
|
|
173
|
-
/// @param {Map|List} $reference-theme - A complete reference theme Map (or List
|
|
174
|
-
/// of tokens) to validate the theme.
|
|
175
|
-
/// @param {Map} $theme - The theme Map to validate.
|
|
176
|
-
/// @return {Map} The validated theme Map.
|
|
177
|
-
@function validate-theme-styles($reference-theme, $theme, $require-all: true) {
|
|
178
|
-
$valid-tokens: $reference-theme;
|
|
179
|
-
@if meta.type-of($reference-theme) == 'map' {
|
|
180
|
-
$valid-tokens: map.keys($reference-theme);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
@return _validate-theme-tokens(
|
|
184
|
-
$valid-tokens,
|
|
185
|
-
$theme,
|
|
186
|
-
$require-all: $require-all
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/// Validates a theme's tokens and throws an error if incorrect tokens are
|
|
191
|
-
/// present or optionally missing if `$require-all` is true.
|
|
192
|
-
///
|
|
193
|
-
/// @throw If any tokens are invalid or optionally missing.
|
|
194
|
-
/// @param {List} $valid-tokens - A List of token keys to validate the theme.
|
|
195
|
-
/// @param {Map} $theme - The theme Map to validate.
|
|
196
|
-
/// @param {Bool} $require-all [false] - If true, throw an error if the theme
|
|
197
|
-
/// is missing tokens from the list.
|
|
198
|
-
/// @return {Map} The validated theme Map.
|
|
199
|
-
@function _validate-theme-tokens($valid-tokens, $theme, $require-all: false) {
|
|
200
|
-
$missing-tokens: ();
|
|
201
|
-
$unsupported-tokens: ();
|
|
202
|
-
|
|
203
|
-
@each $token, $value in $theme {
|
|
204
|
-
@if list.index($valid-tokens, $token) == null {
|
|
205
|
-
$unsupported-tokens: list.append(
|
|
206
|
-
$unsupported-tokens,
|
|
207
|
-
$token,
|
|
208
|
-
$separator: comma
|
|
209
|
-
);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
@if $require-all {
|
|
214
|
-
// TODO(b/203778922): Remove when type composite tokens are removed
|
|
215
|
-
$ignore-suffix: (
|
|
216
|
-
// Ignore composite font tokens
|
|
217
|
-
'-type'
|
|
218
|
-
);
|
|
219
|
-
|
|
220
|
-
@each $token in $valid-tokens {
|
|
221
|
-
$missing: map.get($theme, $token) == null;
|
|
222
|
-
@if $missing {
|
|
223
|
-
@each $suffix in $ignore-suffix {
|
|
224
|
-
@if string-ext.has-suffix($token, $suffix) {
|
|
225
|
-
$missing: false;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
@if $missing {
|
|
231
|
-
$missing-tokens: list.append(
|
|
232
|
-
$missing-tokens,
|
|
233
|
-
$token,
|
|
234
|
-
$separator: comma
|
|
235
|
-
);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
@if list.length($unsupported-tokens) > 0 {
|
|
241
|
-
@error 'The following tokens are invalid: #{$unsupported-tokens}.';
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@if list.length($missing-tokens) > 0 {
|
|
245
|
-
@error 'The following required tokens are missing: #{$missing-tokens}.';
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
@return $theme;
|
|
249
|
-
}
|
package/tabs/tab.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2023 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { __decorate } from "tslib";
|
|
7
|
-
import { customElement } from 'lit/decorators.js';
|
|
8
|
-
import { Tab } from './internal/tab.js';
|
|
9
|
-
import { styles } from './internal/tab-styles.css.js';
|
|
10
|
-
// TODO(b/267336507): add docs
|
|
11
|
-
/**
|
|
12
|
-
* @summary Tab allow users to display a tab within a Tabs.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
let MdTab = class MdTab extends Tab {
|
|
16
|
-
};
|
|
17
|
-
MdTab.styles = [styles];
|
|
18
|
-
MdTab = __decorate([
|
|
19
|
-
customElement('md-tab')
|
|
20
|
-
], MdTab);
|
|
21
|
-
export { MdTab };
|
|
22
|
-
//# sourceMappingURL=tab.js.map
|
package/tabs/tab.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tab.js","sourceRoot":"","sources":["tab.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAC,GAAG,EAAC,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAC,MAAM,EAAC,MAAM,8BAA8B,CAAC;AAUpD,8BAA8B;AAC9B;;;GAGG;AAEI,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,GAAG;;AACZ,YAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AADvB,KAAK;IADjB,aAAa,CAAC,QAAQ,CAAC;GACX,KAAK,CAEjB;SAFY,KAAK","sourcesContent":["/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {customElement} from 'lit/decorators.js';\n\nimport {Tab} from './internal/tab.js';\nimport {styles} from './internal/tab-styles.css.js';\n\nexport {TabVariant} from './internal/tab.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-tab': MdTab;\n }\n}\n\n// TODO(b/267336507): add docs\n/**\n * @summary Tab allow users to display a tab within a Tabs.\n *\n */\n@customElement('md-tab')\nexport class MdTab extends Tab {\n static override styles = [styles];\n}\n"]}
|