@angular/material 20.0.0-next.1 → 20.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +1 -1
- package/autocomplete/_autocomplete-theme.scss +18 -18
- package/{core/tokens/m2/mat/_autocomplete.scss → autocomplete/_m2-autocomplete.scss} +7 -7
- package/{core/tokens/m3/mat/_autocomplete.scss → autocomplete/_m3-autocomplete.scss} +4 -4
- package/autocomplete/index.d.ts +20 -13
- package/autocomplete/testing/index.d.ts +4 -3
- package/badge/_badge-theme.scss +21 -21
- package/{core/tokens/m2/mat/_badge.scss → badge/_m2-badge.scss} +6 -6
- package/{core/tokens/m3/mat/_badge.scss → badge/_m3-badge.scss} +28 -27
- package/badge/index.d.ts +5 -5
- package/badge/testing/index.d.ts +4 -3
- package/{badge.d-49a8a74b.d.ts → badge.d-D0iThVg0.d.ts} +4 -3
- package/bottom-sheet/_bottom-sheet-theme.scss +15 -15
- package/{core/tokens/m2/mat/_bottom-sheet.scss → bottom-sheet/_m2-bottom-sheet.scss} +6 -6
- package/{core/tokens/m3/mat/_bottom-sheet.scss → bottom-sheet/_m3-bottom-sheet.scss} +5 -5
- package/bottom-sheet/index.d.ts +6 -3
- package/bottom-sheet/testing/index.d.ts +2 -1
- package/button/_button-theme.scss +34 -333
- package/button/_fab-theme.scss +23 -128
- package/button/_icon-button-theme.scss +29 -36
- package/button/_m2-button.scss +249 -0
- package/button/_m2-fab.scss +132 -0
- package/{core/tokens/m2/mat/_icon-button.scss → button/_m2-icon-button.scss} +35 -26
- package/button/_m3-button.scss +260 -0
- package/button/_m3-fab.scss +187 -0
- package/{core/tokens/m3/mat/_icon-button.scss → button/_m3-icon-button.scss} +32 -7
- package/button/index.d.ts +215 -8
- package/button/testing/index.d.ts +10 -2
- package/button-toggle/_button-toggle-theme.scss +26 -44
- package/{core/tokens/m2/mat/_standard-button-toggle.scss → button-toggle/_m2-button-toggle.scss} +40 -20
- package/{core/tokens/m3/mat/_standard-button-toggle.scss → button-toggle/_m3-button-toggle.scss} +24 -9
- package/button-toggle/index.d.ts +6 -6
- package/button-toggle/testing/index.d.ts +3 -2
- package/{button-toggle.d-edc8acff.d.ts → button-toggle.d-B_G01PhW.d.ts} +3 -2
- package/card/_card-theme.scss +18 -70
- package/{core/tokens/m2/mat/_card.scss → card/_m2-card.scss} +20 -18
- package/card/_m3-card.scss +48 -0
- package/card/index.d.ts +4 -3
- package/card/testing/index.d.ts +2 -1
- package/checkbox/_checkbox-theme.scss +30 -52
- package/{core/tokens/m2/mdc/_checkbox.scss → checkbox/_m2-checkbox.scss} +31 -53
- package/checkbox/_m3-checkbox.scss +103 -0
- package/checkbox/index.d.ts +5 -4
- package/checkbox/testing/index.d.ts +2 -1
- package/chips/_chips-theme.scss +24 -67
- package/chips/_m2-chip.scss +127 -0
- package/chips/_m3-chip.scss +129 -0
- package/chips/index.d.ts +31 -7
- package/chips/testing/index.d.ts +2 -1
- package/{common-module.d-0e6515ae.d.ts → common-module.d-C8xzHJDr.d.ts} +2 -1
- package/core/_core-theme.scss +34 -54
- package/core/_core.scss +6 -6
- package/core/{tokens/m2/mat/_app.scss → _m2-app.scss} +8 -7
- package/core/{tokens/m3/mat/_app.scss → _m3-app.scss} +4 -4
- package/core/density/private/_all-density.scss +38 -38
- package/core/index.d.ts +28 -15
- package/core/m2/_theming.scss +68 -44
- package/core/{tokens/m2/mat/_optgroup.scss → option/_m2-optgroup.scss} +6 -6
- package/core/{tokens/m2/mat/_option.scss → option/_m2-option.scss} +6 -6
- package/core/{tokens/m3/mat/_optgroup.scss → option/_m3-optgroup.scss} +4 -4
- package/core/option/_m3-option.scss +57 -0
- package/core/option/_optgroup-theme.scss +10 -14
- package/core/option/_option-theme.scss +14 -22
- package/core/{tokens/m2/mat/_ripple.scss → ripple/_m2-ripple.scss} +6 -6
- package/core/{tokens/m3/mat/_ripple.scss → ripple/_m3-ripple.scss} +3 -3
- package/core/ripple/_ripple-theme.scss +15 -15
- package/core/ripple/_ripple.scss +3 -4
- package/core/{tokens/m2/mat/_full-pseudo-checkbox.scss → selection/pseudo-checkbox/_m2-pseudo-checkbox.scss} +15 -13
- package/core/selection/pseudo-checkbox/_m3-pseudo-checkbox.scss +49 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +10 -38
- package/core/testing/index.d.ts +32 -3
- package/core/theming/_color-api-backwards-compatibility.scss +19 -8
- package/core/theming/_definition.scss +2 -3
- package/core/theming/_inspection.scss +3 -2
- package/core/tokens/_m2-tokens.scss +131 -0
- package/core/tokens/_m2-utils.scss +109 -0
- package/core/tokens/_m3-system.scss +67 -27
- package/core/tokens/_m3-tokens.scss +113 -33
- package/core/tokens/_m3-utils.scss +85 -0
- package/core/tokens/_token-utils.scss +69 -67
- package/core/tokens/m3/_index.scss +8 -163
- package/core/tokens/m3/{definitions/_md-sys-color.scss → _md-sys-color.scss} +44 -2
- package/core/tokens/m3/{definitions/_md-sys-typescale.scss → _md-sys-typescale.scss} +20 -1
- package/{date-range-input-harness.d-549a9f7e.d.ts → date-range-input-harness.d-CaEyN8dT.d.ts} +3 -2
- package/datepicker/_datepicker-theme.scss +27 -42
- package/{core/tokens/m2/mat/_datepicker.scss → datepicker/_m2-datepicker.scss} +7 -7
- package/{core/tokens/m3/mat/_datepicker.scss → datepicker/_m3-datepicker.scss} +13 -11
- package/datepicker/index.d.ts +25 -20
- package/datepicker/testing/index.d.ts +4 -4
- package/dialog/_dialog-theme.scss +12 -39
- package/{core/tokens/m2/mdc/_dialog.scss → dialog/_m2-dialog.scss} +21 -50
- package/dialog/_m3-dialog.scss +47 -0
- package/dialog/index.d.ts +4 -4
- package/dialog/testing/index.d.ts +4 -3
- package/{dialog.d-57867441.d.ts → dialog.d-DsYAn2Gk.d.ts} +9 -5
- package/divider/_divider-theme.scss +10 -14
- package/{core/tokens/m2/mat/_divider.scss → divider/_m2-divider.scss} +6 -6
- package/{core/tokens/m3/mat/_divider.scss → divider/_m3-divider.scss} +3 -3
- package/divider/index.d.ts +1 -1
- package/divider/testing/index.d.ts +15 -2
- package/expansion/_expansion-theme.scss +19 -22
- package/{core/tokens/m2/mat/_expansion.scss → expansion/_m2-expansion.scss} +7 -7
- package/{core/tokens/m3/mat/_expansion.scss → expansion/_m3-expansion.scss} +22 -8
- package/expansion/index.d.ts +3 -2
- package/expansion/testing/index.d.ts +2 -1
- package/fesm2022/animation-DfMFjxHu.mjs +41 -0
- package/fesm2022/animation-DfMFjxHu.mjs.map +1 -0
- package/fesm2022/autocomplete/testing.mjs +2 -2
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +50 -43
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +20 -18
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +31 -18
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs +34 -15
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +21 -19
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +219 -9
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +50 -48
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +19 -17
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs +7 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +101 -68
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/{common-module-2d64df09.mjs → common-module-DZl8g1kc.mjs} +5 -5
- package/fesm2022/common-module-DZl8g1kc.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +35 -3
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +30 -51
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{date-formats-b618acb8.mjs → date-formats-K6TQue-Y.mjs} +1 -1
- package/fesm2022/date-formats-K6TQue-Y.mjs.map +1 -0
- package/fesm2022/{date-range-input-harness-ee47cdb0.mjs → date-range-input-harness-Bp1T4oUe.mjs} +2 -2
- package/fesm2022/date-range-input-harness-Bp1T4oUe.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +3 -3
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +153 -142
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +4 -2
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +4 -2
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +17 -2
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +9 -9
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/{error-options-4a00765e.mjs → error-options-BWOa3B4G.mjs} +7 -7
- package/fesm2022/error-options-BWOa3B4G.mjs.map +1 -0
- package/fesm2022/{error-state-8f4ce1af.mjs → error-state-Dtb1IHM-.mjs} +1 -1
- package/fesm2022/error-state-Dtb1IHM-.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +34 -33
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs +10 -2
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +6 -6
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field-BZd6Vhww.mjs +1101 -0
- package/fesm2022/form-field-BZd6Vhww.mjs.map +1 -0
- package/fesm2022/form-field.mjs +6 -4
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +2 -2
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +30 -31
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +8 -9
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-4VvBKIK4.mjs +212 -0
- package/fesm2022/icon-button-4VvBKIK4.mjs.map +1 -0
- package/fesm2022/{icon-registry-13a3b98e.mjs → icon-registry-Bk5cM8Z5.mjs} +5 -6
- package/fesm2022/icon-registry-Bk5cM8Z5.mjs.map +1 -0
- package/fesm2022/icon.mjs +396 -9
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/{index-1763d3a6.mjs → index-BHJ4tVIe.mjs} +9 -9
- package/fesm2022/index-BHJ4tVIe.mjs.map +1 -0
- package/fesm2022/{index-4bc1d6d3.mjs → index-D2rZ0V78.mjs} +7 -7
- package/fesm2022/index-D2rZ0V78.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +2 -2
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/{input-harness-ed59decc.mjs → input-harness-oQzj5EsQ.mjs} +2 -2
- package/fesm2022/input-harness-oQzj5EsQ.mjs.map +1 -0
- package/fesm2022/{input-value-accessor-8a79a24e.mjs → input-value-accessor-D1GvPuqO.mjs} +1 -1
- package/fesm2022/input-value-accessor-D1GvPuqO.mjs.map +1 -0
- package/fesm2022/input.mjs +28 -34
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/{internal-form-field-434c4039.mjs → internal-form-field-DVvKYBKJ.mjs} +5 -5
- package/fesm2022/internal-form-field-DVvKYBKJ.mjs.map +1 -0
- package/fesm2022/{line-d6afe347.mjs → line-Dwrcg_t9.mjs} +9 -9
- package/fesm2022/line-Dwrcg_t9.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +68 -68
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +40 -41
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-d757bba0.mjs → module-CTd5xD2i.mjs} +9 -8
- package/fesm2022/module-CTd5xD2i.mjs.map +1 -0
- package/fesm2022/{module-a5f9ab72.mjs → module-D-cNfopD.mjs} +56 -40
- package/fesm2022/module-D-cNfopD.mjs.map +1 -0
- package/fesm2022/{module-47e3be58.mjs → module-X29xYsIk.mjs} +33 -33
- package/fesm2022/module-X29xYsIk.mjs.map +1 -0
- package/fesm2022/{module-3bf2775f.mjs → module-qRXgbi2L.mjs} +50 -31
- package/fesm2022/module-qRXgbi2L.mjs.map +1 -0
- package/fesm2022/{option-07c3c660.mjs → option-MOeehkAg.mjs} +13 -13
- package/fesm2022/option-MOeehkAg.mjs.map +1 -0
- package/fesm2022/{option-harness-3b7c1106.mjs → option-harness-BFcc-M_4.mjs} +1 -1
- package/fesm2022/option-harness-BFcc-M_4.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -4
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +30 -28
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +13 -14
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +15 -15
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/{pseudo-checkbox-af5a4ea4.mjs → pseudo-checkbox-BFGIaGxz.mjs} +9 -8
- package/fesm2022/pseudo-checkbox-BFGIaGxz.mjs.map +1 -0
- package/fesm2022/{pseudo-checkbox-module-216fae38.mjs → pseudo-checkbox-module-Dxth-mPi.mjs} +7 -7
- package/fesm2022/pseudo-checkbox-module-Dxth-mPi.mjs.map +1 -0
- package/fesm2022/{public-api-c5ab57f5.mjs → public-api-BoO5eSq-.mjs} +1 -1
- package/fesm2022/public-api-BoO5eSq-.mjs.map +1 -0
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +20 -20
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/{ripple-9939d1f5.mjs → ripple-CuyVtN3V.mjs} +12 -11
- package/fesm2022/ripple-CuyVtN3V.mjs.map +1 -0
- package/fesm2022/{ripple-loader-f2078c66.mjs → ripple-loader-pOctSZby.mjs} +15 -18
- package/fesm2022/ripple-loader-pOctSZby.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +122 -5
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +15 -13
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +32 -31
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +17 -17
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +31 -28
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +47 -53
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +20 -18
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +46 -44
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/{structural-styles-d5ada3b3.mjs → structural-styles-CasigI3l.mjs} +5 -5
- package/fesm2022/structural-styles-CasigI3l.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +59 -61
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +82 -74
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +43 -40
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -14
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +4 -2
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +27 -27
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +30 -97
- package/{core/tokens/m2/mat/_form-field.scss → form-field/_m2-form-field.scss} +94 -13
- package/form-field/_m3-form-field.scss +153 -0
- package/form-field/index.d.ts +5 -5
- package/form-field/testing/control/index.d.ts +10 -2
- package/form-field/testing/index.d.ts +8 -8
- package/{form-field-control.d-eb86711c.d.ts → form-field-control.d-DvB4ZVlf.d.ts} +2 -0
- package/{form-field.d-2edbc094.d.ts → form-field.d-b9aHrR4I.d.ts} +17 -11
- package/grid-list/_grid-list-theme.scss +8 -10
- package/{core/tokens/m2/mat/_grid-list.scss → grid-list/_m2-grid-list.scss} +6 -6
- package/{core/tokens/m3/mat/_grid-list.scss → grid-list/_m3-grid-list.scss} +2 -2
- package/grid-list/index.d.ts +3 -4
- package/grid-list/testing/index.d.ts +2 -1
- package/icon/_icon-theme.scss +13 -13
- package/{core/tokens/m2/mat/_icon.scss → icon/_m2-icon.scss} +5 -5
- package/{core/tokens/m3/mat/_icon.scss → icon/_m3-icon.scss} +8 -6
- package/icon/index.d.ts +4 -4
- package/icon/testing/index.d.ts +3 -2
- package/{icon-module.d-aa3bbba0.d.ts → icon-module.d-sA1hmRKS.d.ts} +4 -3
- package/{icon-registry.d-1dffe9de.d.ts → icon-registry.d-BVwP8t9_.d.ts} +2 -1
- package/{index.d-0536b706.d.ts → index.d-C5neTPvr.d.ts} +2 -2
- package/{index.d-37e31cd3.d.ts → index.d-CikM2bbf.d.ts} +4 -4
- package/input/_input-theme.scss +1 -1
- package/input/index.d.ts +15 -11
- package/input/testing/index.d.ts +4 -3
- package/{input-harness.d-4eecd1d3.d.ts → input-harness.d-8fkAAbu2.d.ts} +3 -2
- package/{line.d-570a2537.d.ts → line.d-C-QdueRc.d.ts} +1 -1
- package/list/_list-theme.scss +41 -71
- package/list/_m2-list.scss +133 -0
- package/list/_m3-list.scss +92 -0
- package/list/index.d.ts +11 -11
- package/list/testing/index.d.ts +4 -3
- package/{core/tokens/m2/mat/_menu.scss → menu/_m2-menu.scss} +7 -7
- package/{core/tokens/m3/mat/_menu.scss → menu/_m3-menu.scss} +14 -17
- package/menu/_menu-theme.scss +12 -18
- package/menu/index.d.ts +10 -8
- package/menu/testing/index.d.ts +2 -1
- package/{module.d-c17c834e.d.ts → module.d-BGzxQfCs.d.ts} +2 -2
- package/{module.d-ba05faa6.d.ts → module.d-CH_8jCsD.d.ts} +17 -11
- package/{module.d-74a721b9.d.ts → module.d-m-qXd3m8.d.ts} +8 -5
- package/{option-harness.d-3d33fc9a.d.ts → option-harness.d-IqsW95GR.d.ts} +2 -1
- package/{option-parent.d-559ad5c5.d.ts → option-parent.d-CnYuuMkO.d.ts} +2 -1
- package/package.json +5 -2
- package/{core/tokens/m2/mat/_paginator.scss → paginator/_m2-paginator.scss} +7 -7
- package/{core/tokens/m3/mat/_paginator.scss → paginator/_m3-paginator.scss} +20 -4
- package/paginator/_paginator-theme.scss +17 -18
- package/paginator/index.d.ts +19 -19
- package/paginator/testing/index.d.ts +6 -5
- package/{paginator.d-40b1766e.d.ts → paginator.d-3kymf0wo.d.ts} +4 -3
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/{core/tokens/m2/mdc/_linear-progress.scss → progress-bar/_m2-progress-bar.scss} +7 -8
- package/{core/tokens/m3/mdc/_linear-progress.scss → progress-bar/_m3-progress-bar.scss} +11 -6
- package/progress-bar/_progress-bar-theme.scss +11 -11
- package/progress-bar/index.d.ts +4 -4
- package/progress-bar/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mdc/_tab-indicator.scss → progress-spinner/_m2-progress-spinner.scss} +10 -11
- package/{core/tokens/m3/mdc/_circular-progress.scss → progress-spinner/_m3-progress-spinner.scss} +10 -6
- package/progress-spinner/_progress-spinner-theme.scss +17 -17
- package/progress-spinner/index.d.ts +5 -5
- package/progress-spinner/testing/index.d.ts +4 -3
- package/{progress-spinner.d-1fc040c5.d.ts → progress-spinner.d-DtYCWeYd.d.ts} +3 -2
- package/{pseudo-checkbox-module.d-3abc0461.d.ts → pseudo-checkbox-module.d-BHmTZ10P.d.ts} +4 -3
- package/{core/tokens/m2/mdc/_radio.scss → radio/_m2-radio.scss} +28 -36
- package/radio/_m3-radio.scss +79 -0
- package/radio/_radio-theme.scss +27 -56
- package/radio/index.d.ts +6 -5
- package/radio/testing/index.d.ts +2 -1
- package/{ripple-loader.d-8aac2988.d.ts → ripple-loader.d-9me-KFSi.d.ts} +1 -1
- package/{ripple.d-2fb57d04.d.ts → ripple.d-BT30YVLB.d.ts} +3 -2
- package/schematics/ng-add/fonts/material-fonts.js +3 -3
- package/schematics/ng-add/fonts/material-fonts.js.map +1 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/package-config.js +1 -1
- package/schematics/ng-add/package-config.js.map +1 -0
- package/schematics/ng-add/schema.js +1 -1
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/setup-project.js +5 -5
- package/schematics/ng-add/setup-project.js.map +1 -0
- package/schematics/ng-add/theming/create-custom-theme.js +1 -1
- package/schematics/ng-add/theming/create-custom-theme.js.map +1 -0
- package/schematics/ng-add/theming/theming.js +6 -8
- package/schematics/ng-add/theming/theming.js.map +1 -0
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-generate/address-form/index.js +1 -1
- package/schematics/ng-generate/address-form/index.js.map +1 -0
- package/schematics/ng-generate/address-form/schema.js +1 -1
- package/schematics/ng-generate/address-form/schema.js.map +1 -0
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/dashboard/index.js +1 -1
- package/schematics/ng-generate/dashboard/index.js.map +1 -0
- package/schematics/ng-generate/dashboard/schema.js +1 -1
- package/schematics/ng-generate/dashboard/schema.js.map +1 -0
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/navigation/index.js +1 -1
- package/schematics/ng-generate/navigation/index.js.map +1 -0
- package/schematics/ng-generate/navigation/schema.js +1 -1
- package/schematics/ng-generate/navigation/schema.js.map +1 -0
- package/schematics/ng-generate/table/index.js +1 -1
- package/schematics/ng-generate/table/index.js.map +1 -0
- package/schematics/ng-generate/table/schema.js +1 -1
- package/schematics/ng-generate/table/schema.js.map +1 -0
- package/schematics/ng-generate/theme-color/index_bundled.js +1711 -225
- package/schematics/ng-generate/theme-color/index_bundled.js.map +2 -3
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-generate/tree/index.js +1 -1
- package/schematics/ng-generate/tree/index.js.map +1 -0
- package/schematics/ng-generate/tree/schema.js +1 -1
- package/schematics/ng-generate/tree/schema.js.map +1 -0
- package/schematics/ng-update/index_bundled.js +3465 -4099
- package/schematics/ng-update/index_bundled.js.map +3 -4
- package/schematics/tsconfig.json +26 -0
- package/{core/tokens/m2/mat/_select.scss → select/_m2-select.scss} +11 -11
- package/{core/tokens/m3/mat/_select.scss → select/_m3-select.scss} +22 -7
- package/select/_select-theme.scss +30 -26
- package/select/index.d.ts +12 -12
- package/select/testing/index.d.ts +64 -5
- package/{core/tokens/m2/mat/_sidenav.scss → sidenav/_m2-sidenav.scss} +7 -7
- package/{core/tokens/m3/mat/_sidenav.scss → sidenav/_m3-sidenav.scss} +6 -6
- package/sidenav/_sidenav-theme.scss +12 -16
- package/sidenav/index.d.ts +4 -3
- package/sidenav/testing/index.d.ts +2 -1
- package/slide-toggle/_m2-slide-toggle.scss +167 -0
- package/slide-toggle/_m3-slide-toggle.scss +160 -0
- package/slide-toggle/_slide-toggle-theme.scss +55 -48
- package/slide-toggle/index.d.ts +4 -3
- package/slide-toggle/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mdc/_slider.scss → slider/_m2-slider.scss} +29 -68
- package/slider/_m3-slider.scss +121 -0
- package/slider/_slider-theme.scss +18 -53
- package/slider/index.d.ts +6 -5
- package/slider/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_snack-bar.scss → snack-bar/_m2-snack-bar.scss} +23 -8
- package/snack-bar/_m3-snack-bar.scss +25 -0
- package/snack-bar/_snack-bar-theme.scss +11 -30
- package/snack-bar/index.d.ts +14 -14
- package/snack-bar/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_sort.scss → sort/_m2-sort.scss} +6 -6
- package/{core/tokens/m3/mat/_sort.scss → sort/_m3-sort.scss} +2 -2
- package/sort/_sort-theme.scss +12 -18
- package/sort/index.d.ts +7 -7
- package/sort/testing/index.d.ts +3 -2
- package/{sort.d-c2b79a45.d.ts → sort.d-i-bF_IaU.d.ts} +3 -2
- package/{core/tokens/m2/mat/_stepper.scss → stepper/_m2-stepper.scss} +7 -34
- package/stepper/_m3-stepper.scss +102 -0
- package/stepper/_stepper-theme.scss +26 -21
- package/stepper/index.d.ts +9 -8
- package/stepper/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_table.scss → table/_m2-table.scss} +7 -7
- package/table/_m3-table.scss +44 -0
- package/table/_table-theme.scss +18 -22
- package/table/index.d.ts +7 -7
- package/table/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_tab-header.scss → tabs/_m2-tabs.scss} +42 -11
- package/tabs/_m3-tabs.scss +70 -0
- package/tabs/_tabs-theme.scss +47 -125
- package/tabs/index.d.ts +17 -10
- package/tabs/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_timepicker.scss → timepicker/_m2-timepicker.scss} +7 -7
- package/{core/tokens/m3/mat/_timepicker.scss → timepicker/_m3-timepicker.scss} +4 -4
- package/timepicker/_timepicker-theme.scss +18 -18
- package/timepicker/index.d.ts +4 -5
- package/timepicker/testing/index.d.ts +3 -2
- package/{core/tokens/m2/mat/_toolbar.scss → toolbar/_m2-toolbar.scss} +7 -7
- package/{core/tokens/m3/mat/_toolbar.scss → toolbar/_m3-toolbar.scss} +18 -4
- package/toolbar/_toolbar-theme.scss +26 -21
- package/toolbar/index.d.ts +1 -1
- package/toolbar/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mdc/_plain-tooltip.scss → tooltip/_m2-tooltip.scss} +7 -17
- package/tooltip/_m3-tooltip.scss +25 -0
- package/tooltip/_tooltip-theme.scss +18 -18
- package/tooltip/index.d.ts +2 -2
- package/tooltip/testing/index.d.ts +2 -1
- package/{core/tokens/m2/mat/_tree.scss → tree/_m2-tree.scss} +7 -7
- package/{core/tokens/m3/mat/_tree.scss → tree/_m3-tree.scss} +15 -2
- package/tree/_tree-theme.scss +19 -15
- package/tree/index.d.ts +1 -1
- package/tree/testing/index.d.ts +2 -1
- package/button/_button-base.scss +0 -181
- package/checkbox/_checkbox-common.scss +0 -585
- package/core/style/_button-common.scss +0 -17
- package/core/style/_form-common.scss +0 -21
- package/core/style/_list-common.scss +0 -49
- package/core/style/_menu-common.scss +0 -94
- package/core/theming/_palette-deprecated.scss +0 -76
- package/core/theming/_theming-deprecated.scss +0 -27
- package/core/tokens/_density.scss +0 -193
- package/core/tokens/_token-definition.scss +0 -273
- package/core/tokens/m2/_index.scss +0 -187
- package/core/tokens/m2/mat/_checkbox.scss +0 -50
- package/core/tokens/m2/mat/_chip.scss +0 -63
- package/core/tokens/m2/mat/_dialog.scss +0 -51
- package/core/tokens/m2/mat/_fab-small.scss +0 -108
- package/core/tokens/m2/mat/_fab.scss +0 -108
- package/core/tokens/m2/mat/_filled-button.scss +0 -102
- package/core/tokens/m2/mat/_legacy-button-toggle.scss +0 -59
- package/core/tokens/m2/mat/_list.scss +0 -44
- package/core/tokens/m2/mat/_minimal-pseudo-checkbox.scss +0 -43
- package/core/tokens/m2/mat/_outlined-button.scss +0 -88
- package/core/tokens/m2/mat/_protected-button.scss +0 -102
- package/core/tokens/m2/mat/_radio.scss +0 -52
- package/core/tokens/m2/mat/_slider.scss +0 -69
- package/core/tokens/m2/mat/_switch.scss +0 -76
- package/core/tokens/m2/mat/_tab-header-with-background.scss +0 -42
- package/core/tokens/m2/mat/_text-button.scss +0 -91
- package/core/tokens/m2/mdc/_chip.scss +0 -313
- package/core/tokens/m2/mdc/_circular-progress.scss +0 -61
- package/core/tokens/m2/mdc/_elevated-card.scss +0 -77
- package/core/tokens/m2/mdc/_extended-fab.scss +0 -87
- package/core/tokens/m2/mdc/_fab-small.scss +0 -92
- package/core/tokens/m2/mdc/_fab.scss +0 -93
- package/core/tokens/m2/mdc/_filled-button.scss +0 -124
- package/core/tokens/m2/mdc/_filled-text-field.scss +0 -181
- package/core/tokens/m2/mdc/_icon-button.scss +0 -91
- package/core/tokens/m2/mdc/_list.scss +0 -219
- package/core/tokens/m2/mdc/_outlined-button.scss +0 -124
- package/core/tokens/m2/mdc/_outlined-card.scss +0 -85
- package/core/tokens/m2/mdc/_outlined-text-field.scss +0 -163
- package/core/tokens/m2/mdc/_protected-button.scss +0 -129
- package/core/tokens/m2/mdc/_secondary-navigation-tab.scss +0 -87
- package/core/tokens/m2/mdc/_snack-bar.scss +0 -93
- package/core/tokens/m2/mdc/_switch.scss +0 -192
- package/core/tokens/m2/mdc/_text-button.scss +0 -98
- package/core/tokens/m3/definitions/_index.scss +0 -94
- package/core/tokens/m3/definitions/_md-comp-checkbox.scss +0 -120
- package/core/tokens/m3/definitions/_md-comp-circular-progress-indicator.scss +0 -27
- package/core/tokens/m3/definitions/_md-comp-data-table.scss +0 -90
- package/core/tokens/m3/definitions/_md-comp-dialog.scss +0 -123
- package/core/tokens/m3/definitions/_md-comp-elevated-button.scss +0 -87
- package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +0 -53
- package/core/tokens/m3/definitions/_md-comp-extended-fab-primary.scss +0 -90
- package/core/tokens/m3/definitions/_md-comp-extended-fab-secondary.scss +0 -91
- package/core/tokens/m3/definitions/_md-comp-extended-fab-tertiary.scss +0 -91
- package/core/tokens/m3/definitions/_md-comp-fab-primary-small.scss +0 -59
- package/core/tokens/m3/definitions/_md-comp-fab-primary.scss +0 -59
- package/core/tokens/m3/definitions/_md-comp-fab-secondary-small.scss +0 -60
- package/core/tokens/m3/definitions/_md-comp-fab-secondary.scss +0 -60
- package/core/tokens/m3/definitions/_md-comp-fab-tertiary-small.scss +0 -60
- package/core/tokens/m3/definitions/_md-comp-fab-tertiary.scss +0 -60
- package/core/tokens/m3/definitions/_md-comp-filled-button.scss +0 -85
- package/core/tokens/m3/definitions/_md-comp-filled-card.scss +0 -52
- package/core/tokens/m3/definitions/_md-comp-filled-icon-button.scss +0 -73
- package/core/tokens/m3/definitions/_md-comp-filled-text-field.scss +0 -189
- package/core/tokens/m3/definitions/_md-comp-icon-button.scss +0 -64
- package/core/tokens/m3/definitions/_md-comp-linear-progress-indicator.scss +0 -29
- package/core/tokens/m3/definitions/_md-comp-list.scss +0 -252
- package/core/tokens/m3/definitions/_md-comp-outlined-button.scss +0 -80
- package/core/tokens/m3/definitions/_md-comp-outlined-card.scss +0 -59
- package/core/tokens/m3/definitions/_md-comp-outlined-icon-button.scss +0 -73
- package/core/tokens/m3/definitions/_md-comp-outlined-text-field.scss +0 -171
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +0 -51
- package/core/tokens/m3/definitions/_md-comp-radio-button.scss +0 -62
- package/core/tokens/m3/definitions/_md-comp-secondary-navigation-tab.scss +0 -80
- package/core/tokens/m3/definitions/_md-comp-slider.scss +0 -110
- package/core/tokens/m3/definitions/_md-comp-snackbar.scss +0 -125
- package/core/tokens/m3/definitions/_md-comp-switch.scss +0 -130
- package/core/tokens/m3/definitions/_md-comp-text-button.scss +0 -73
- package/core/tokens/m3/definitions/unused/_md-comp-assist-chip.scss +0 -105
- package/core/tokens/m3/definitions/unused/_md-comp-badge.scss +0 -54
- package/core/tokens/m3/definitions/unused/_md-comp-banner.scss +0 -71
- package/core/tokens/m3/definitions/unused/_md-comp-bottom-app-bar.scss +0 -29
- package/core/tokens/m3/definitions/unused/_md-comp-carousel-item.scss +0 -59
- package/core/tokens/m3/definitions/unused/_md-comp-date-input-modal.scss +0 -87
- package/core/tokens/m3/definitions/unused/_md-comp-date-picker-docked.scss +0 -248
- package/core/tokens/m3/definitions/unused/_md-comp-date-picker-modal.scss +0 -313
- package/core/tokens/m3/definitions/unused/_md-comp-divider.scss +0 -19
- package/core/tokens/m3/definitions/unused/_md-comp-extended-fab-branded.scss +0 -82
- package/core/tokens/m3/definitions/unused/_md-comp-extended-fab-surface.scss +0 -86
- package/core/tokens/m3/definitions/unused/_md-comp-fab-branded-large.scss +0 -54
- package/core/tokens/m3/definitions/unused/_md-comp-fab-branded.scss +0 -54
- package/core/tokens/m3/definitions/unused/_md-comp-fab-primary-large.scss +0 -59
- package/core/tokens/m3/definitions/unused/_md-comp-fab-secondary-large.scss +0 -60
- package/core/tokens/m3/definitions/unused/_md-comp-fab-surface-large.scss +0 -58
- package/core/tokens/m3/definitions/unused/_md-comp-fab-surface-small.scss +0 -58
- package/core/tokens/m3/definitions/unused/_md-comp-fab-surface.scss +0 -58
- package/core/tokens/m3/definitions/unused/_md-comp-fab-tertiary-large.scss +0 -60
- package/core/tokens/m3/definitions/unused/_md-comp-filled-autocomplete.scss +0 -269
- package/core/tokens/m3/definitions/unused/_md-comp-filled-menu-button.scss +0 -94
- package/core/tokens/m3/definitions/unused/_md-comp-filled-select.scss +0 -274
- package/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-button.scss +0 -95
- package/core/tokens/m3/definitions/unused/_md-comp-filled-tonal-icon-button.scss +0 -80
- package/core/tokens/m3/definitions/unused/_md-comp-filter-chip.scss +0 -205
- package/core/tokens/m3/definitions/unused/_md-comp-full-screen-dialog.scss +0 -109
- package/core/tokens/m3/definitions/unused/_md-comp-input-chip.scss +0 -180
- package/core/tokens/m3/definitions/unused/_md-comp-menu.scss +0 -31
- package/core/tokens/m3/definitions/unused/_md-comp-navigation-bar.scss +0 -110
- package/core/tokens/m3/definitions/unused/_md-comp-navigation-drawer.scss +0 -162
- package/core/tokens/m3/definitions/unused/_md-comp-navigation-rail.scss +0 -127
- package/core/tokens/m3/definitions/unused/_md-comp-outlined-autocomplete.scss +0 -259
- package/core/tokens/m3/definitions/unused/_md-comp-outlined-menu-button.scss +0 -90
- package/core/tokens/m3/definitions/unused/_md-comp-outlined-segmented-button.scss +0 -108
- package/core/tokens/m3/definitions/unused/_md-comp-outlined-select.scss +0 -264
- package/core/tokens/m3/definitions/unused/_md-comp-primary-navigation-tab.scss +0 -117
- package/core/tokens/m3/definitions/unused/_md-comp-rich-tooltip.scss +0 -121
- package/core/tokens/m3/definitions/unused/_md-comp-scrim.scss +0 -19
- package/core/tokens/m3/definitions/unused/_md-comp-search-bar.scss +0 -97
- package/core/tokens/m3/definitions/unused/_md-comp-search-view.scss +0 -91
- package/core/tokens/m3/definitions/unused/_md-comp-sheet-bottom.scss +0 -39
- package/core/tokens/m3/definitions/unused/_md-comp-sheet-floating.scss +0 -28
- package/core/tokens/m3/definitions/unused/_md-comp-sheet-side.scss +0 -87
- package/core/tokens/m3/definitions/unused/_md-comp-standard-menu-button.scss +0 -94
- package/core/tokens/m3/definitions/unused/_md-comp-suggestion-chip.scss +0 -121
- package/core/tokens/m3/definitions/unused/_md-comp-time-input.scss +0 -222
- package/core/tokens/m3/definitions/unused/_md-comp-time-picker.scss +0 -268
- package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-large.scss +0 -59
- package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-medium.scss +0 -59
- package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small-centered.scss +0 -62
- package/core/tokens/m3/definitions/unused/_md-comp-top-app-bar-small.scss +0 -60
- package/core/tokens/m3/mat/_card.scss +0 -24
- package/core/tokens/m3/mat/_checkbox.scss +0 -26
- package/core/tokens/m3/mat/_chip.scss +0 -46
- package/core/tokens/m3/mat/_dialog.scss +0 -32
- package/core/tokens/m3/mat/_fab-small.scss +0 -50
- package/core/tokens/m3/mat/_fab.scss +0 -50
- package/core/tokens/m3/mat/_filled-button.scss +0 -54
- package/core/tokens/m3/mat/_form-field.scss +0 -59
- package/core/tokens/m3/mat/_full-pseudo-checkbox.scss +0 -42
- package/core/tokens/m3/mat/_list.scss +0 -19
- package/core/tokens/m3/mat/_minimal-pseudo-checkbox.scss +0 -33
- package/core/tokens/m3/mat/_option.scss +0 -55
- package/core/tokens/m3/mat/_outlined-button.scss +0 -54
- package/core/tokens/m3/mat/_protected-button.scss +0 -55
- package/core/tokens/m3/mat/_radio.scss +0 -45
- package/core/tokens/m3/mat/_slider.scss +0 -58
- package/core/tokens/m3/mat/_snack-bar.scss +0 -18
- package/core/tokens/m3/mat/_stepper.scss +0 -79
- package/core/tokens/m3/mat/_switch.scss +0 -56
- package/core/tokens/m3/mat/_tab-header.scss +0 -51
- package/core/tokens/m3/mat/_table.scss +0 -29
- package/core/tokens/m3/mat/_text-button.scss +0 -55
- package/core/tokens/m3/mdc/_checkbox.scss +0 -112
- package/core/tokens/m3/mdc/_chip.scss +0 -93
- package/core/tokens/m3/mdc/_dialog.scss +0 -23
- package/core/tokens/m3/mdc/_elevated-card.scss +0 -22
- package/core/tokens/m3/mdc/_extended-fab.scss +0 -42
- package/core/tokens/m3/mdc/_fab-small.scss +0 -41
- package/core/tokens/m3/mdc/_fab.scss +0 -39
- package/core/tokens/m3/mdc/_filled-button.scss +0 -86
- package/core/tokens/m3/mdc/_filled-text-field.scss +0 -91
- package/core/tokens/m3/mdc/_icon-button.scss +0 -60
- package/core/tokens/m3/mdc/_list.scss +0 -37
- package/core/tokens/m3/mdc/_outlined-button.scss +0 -84
- package/core/tokens/m3/mdc/_outlined-card.scss +0 -22
- package/core/tokens/m3/mdc/_outlined-text-field.scss +0 -86
- package/core/tokens/m3/mdc/_plain-tooltip.scss +0 -15
- package/core/tokens/m3/mdc/_protected-button.scss +0 -101
- package/core/tokens/m3/mdc/_radio.scss +0 -47
- package/core/tokens/m3/mdc/_secondary-navigation-tab.scss +0 -16
- package/core/tokens/m3/mdc/_slider.scss +0 -69
- package/core/tokens/m3/mdc/_snack-bar.scss +0 -15
- package/core/tokens/m3/mdc/_switch.scss +0 -82
- package/core/tokens/m3/mdc/_tab-indicator.scss +0 -34
- package/core/tokens/m3/mdc/_text-button.scss +0 -79
- package/core/typography/_typography-utils-deprecated.scss +0 -6
- package/datepicker/_datepicker-legacy-compat.scss +0 -85
- package/divider/_divider-offset.scss +0 -12
- package/divider-harness.d-d34fede4.d.ts +0 -14
- package/expansion/_expansion-variables.scss +0 -30
- package/fesm2022/common-module-2d64df09.mjs.map +0 -1
- package/fesm2022/date-formats-b618acb8.mjs.map +0 -1
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs.map +0 -1
- package/fesm2022/divider-harness-3394f29a.mjs +0 -18
- package/fesm2022/divider-harness-3394f29a.mjs.map +0 -1
- package/fesm2022/error-options-4a00765e.mjs.map +0 -1
- package/fesm2022/error-state-8f4ce1af.mjs.map +0 -1
- package/fesm2022/form-field-6d755764.mjs +0 -1076
- package/fesm2022/form-field-6d755764.mjs.map +0 -1
- package/fesm2022/form-field-control-harness-af6fd278.mjs +0 -11
- package/fesm2022/form-field-control-harness-af6fd278.mjs.map +0 -1
- package/fesm2022/icon-button-47f1b5d9.mjs +0 -248
- package/fesm2022/icon-button-47f1b5d9.mjs.map +0 -1
- package/fesm2022/icon-module-3f77a24d.mjs +0 -395
- package/fesm2022/icon-module-3f77a24d.mjs.map +0 -1
- package/fesm2022/icon-registry-13a3b98e.mjs.map +0 -1
- package/fesm2022/index-1763d3a6.mjs.map +0 -1
- package/fesm2022/index-4bc1d6d3.mjs.map +0 -1
- package/fesm2022/input-harness-ed59decc.mjs.map +0 -1
- package/fesm2022/input-value-accessor-8a79a24e.mjs.map +0 -1
- package/fesm2022/internal-form-field-434c4039.mjs.map +0 -1
- package/fesm2022/line-d6afe347.mjs.map +0 -1
- package/fesm2022/module-3bf2775f.mjs.map +0 -1
- package/fesm2022/module-47e3be58.mjs.map +0 -1
- package/fesm2022/module-a5f9ab72.mjs.map +0 -1
- package/fesm2022/module-d757bba0.mjs.map +0 -1
- package/fesm2022/module-df9f7af3.mjs +0 -152
- package/fesm2022/module-df9f7af3.mjs.map +0 -1
- package/fesm2022/optgroup-harness-5e66b138.mjs +0 -36
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +0 -1
- package/fesm2022/option-07c3c660.mjs.map +0 -1
- package/fesm2022/option-harness-3b7c1106.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs.map +0 -1
- package/fesm2022/public-api-c5ab57f5.mjs.map +0 -1
- package/fesm2022/ripple-9939d1f5.mjs.map +0 -1
- package/fesm2022/ripple-loader-f2078c66.mjs.map +0 -1
- package/fesm2022/select-harness-8c55824d.mjs +0 -123
- package/fesm2022/select-harness-8c55824d.mjs.map +0 -1
- package/fesm2022/structural-styles-d5ada3b3.mjs.map +0 -1
- package/form-field/_form-field-focus-overlay.scss +0 -31
- package/form-field/_form-field-high-contrast.scss +0 -39
- package/form-field/_form-field-native-select.scss +0 -97
- package/form-field/_form-field-subscript.scss +0 -95
- package/form-field/_mdc-text-field-density-overrides.scss +0 -60
- package/form-field/_mdc-text-field-structure-overrides.scss +0 -186
- package/form-field/_mdc-text-field-structure.scss +0 -621
- package/form-field/_mdc-text-field-textarea-overrides.scss +0 -36
- package/form-field/_user-agent-overrides.scss +0 -24
- package/form-field-control-harness.d-2d91f25a.d.ts +0 -10
- package/list/_list-inherited-structure.scss +0 -504
- package/list/_list-item-hcm-indicator.scss +0 -29
- package/module.d-18a67f56.d.ts +0 -206
- package/optgroup-harness.d-7f741f69.d.ts +0 -31
- package/radio/_radio-common.scss +0 -259
- package/schematics/ng-add/fonts/material-fonts.mjs +0 -34
- package/schematics/ng-add/index.mjs +0 -54
- package/schematics/ng-add/package-config.mjs +0 -51
- package/schematics/ng-add/schema.mjs +0 -10
- package/schematics/ng-add/setup-project.mjs +0 -75
- package/schematics/ng-add/theming/create-custom-theme.mjs +0 -30
- package/schematics/ng-add/theming/theming.mjs +0 -151
- package/schematics/ng-generate/address-form/index.mjs +0 -43
- package/schematics/ng-generate/address-form/schema.mjs +0 -10
- package/schematics/ng-generate/dashboard/index.mjs +0 -42
- package/schematics/ng-generate/dashboard/schema.mjs +0 -10
- package/schematics/ng-generate/navigation/index.mjs +0 -42
- package/schematics/ng-generate/navigation/schema.mjs +0 -10
- package/schematics/ng-generate/table/index.mjs +0 -40
- package/schematics/ng-generate/table/schema.mjs +0 -10
- package/schematics/ng-generate/tree/index.mjs +0 -40
- package/schematics/ng-generate/tree/schema.mjs +0 -10
- package/schematics/schematics.externs.js +0 -0
- package/select-harness.d-7441a7ac.d.ts +0 -63
- package/stepper/_stepper-variables.scss +0 -29
- package/table/_table-flex-styles.scss +0 -61
- package/tabs/_tabs-common.scss +0 -497
- package/toolbar/_toolbar-variables.scss +0 -28
- /package/core/tokens/m3/{definitions/_md-ref-palette.scss → _md-ref-palette.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-ref-typeface.scss → _md-ref-typeface.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-sys-elevation.scss → _md-sys-elevation.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-sys-motion.scss → _md-sys-motion.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-sys-shape.scss → _md-sys-shape.scss} +0 -0
- /package/core/tokens/m3/{definitions/_md-sys-state.scss → _md-sys-state.scss} +0 -0
- /package/{date-adapter.d-c6835d41.d.ts → date-adapter.d-CtKXIxk0.d.ts} +0 -0
- /package/{error-options.d-448d9046.d.ts → error-options.d-CGdTZUYk.d.ts} +0 -0
- /package/{list-option-types.d-8739f903.d.ts → list-option-types.d-77dQtwu8.d.ts} +0 -0
- /package/{option.d-6f493d78.d.ts → option.d-BVGX3edu.d.ts} +0 -0
- /package/{palette.d-ec4a617c.d.ts → palette.d-BSSFKjO6.d.ts} +0 -0
- /package/{sort-direction.d-f4ce4649.d.ts → sort-direction.d-CF7VUsH-.d.ts} +0 -0
|
@@ -50,7 +50,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
//
|
|
53
|
+
// src/material/schematics/ng-generate/theme-color/index.ts
|
|
54
54
|
var theme_color_exports = {};
|
|
55
55
|
__export(theme_color_exports, {
|
|
56
56
|
default: () => theme_color_default,
|
|
@@ -63,7 +63,7 @@ __export(theme_color_exports, {
|
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(theme_color_exports);
|
|
65
65
|
|
|
66
|
-
// node_modules/@material/material-color-utilities/utils/math_utils.js
|
|
66
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/utils/math_utils.js
|
|
67
67
|
function signum(num) {
|
|
68
68
|
if (num < 0) {
|
|
69
69
|
return -1;
|
|
@@ -116,7 +116,7 @@ function matrixMultiply(row, matrix) {
|
|
|
116
116
|
return [a, b, c];
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
// node_modules/@material/material-color-utilities/utils/color_utils.js
|
|
119
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/utils/color_utils.js
|
|
120
120
|
var SRGB_TO_XYZ = [
|
|
121
121
|
[0.41233895, 0.35762064, 0.18051042],
|
|
122
122
|
[0.2126, 0.7152, 0.0722],
|
|
@@ -250,8 +250,30 @@ function labInvf(ft) {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
// node_modules/@material/material-color-utilities/hct/viewing_conditions.js
|
|
254
|
-
var ViewingConditions = class {
|
|
253
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/hct/viewing_conditions.js
|
|
254
|
+
var ViewingConditions = class _ViewingConditions {
|
|
255
|
+
/**
|
|
256
|
+
* Create ViewingConditions from a simple, physically relevant, set of
|
|
257
|
+
* parameters.
|
|
258
|
+
*
|
|
259
|
+
* @param whitePoint White point, measured in the XYZ color space.
|
|
260
|
+
* default = D65, or sunny day afternoon
|
|
261
|
+
* @param adaptingLuminance The luminance of the adapting field. Informally,
|
|
262
|
+
* how bright it is in the room where the color is viewed. Can be
|
|
263
|
+
* calculated from lux by multiplying lux by 0.0586. default = 11.72,
|
|
264
|
+
* or 200 lux.
|
|
265
|
+
* @param backgroundLstar The lightness of the area surrounding the color.
|
|
266
|
+
* measured by L* in L*a*b*. default = 50.0
|
|
267
|
+
* @param surround A general description of the lighting surrounding the
|
|
268
|
+
* color. 0 is pitch dark, like watching a movie in a theater. 1.0 is a
|
|
269
|
+
* dimly light room, like watching TV at home at night. 2.0 means there
|
|
270
|
+
* is no difference between the lighting on the color and around it.
|
|
271
|
+
* default = 2.0
|
|
272
|
+
* @param discountingIlluminant Whether the eye accounts for the tint of the
|
|
273
|
+
* ambient lighting, such as knowing an apple is still red in green light.
|
|
274
|
+
* default = false, the eye does not perform this process on
|
|
275
|
+
* self-luminous objects like displays.
|
|
276
|
+
*/
|
|
255
277
|
static make(whitePoint = whitePointD65(), adaptingLuminance = 200 / Math.PI * yFromLstar(50) / 100, backgroundLstar = 50, surround = 2, discountingIlluminant = false) {
|
|
256
278
|
const xyz = whitePoint;
|
|
257
279
|
const rW = xyz[0] * 0.401288 + xyz[1] * 0.650173 + xyz[2] * -0.051461;
|
|
@@ -286,8 +308,15 @@ var ViewingConditions = class {
|
|
|
286
308
|
400 * rgbAFactors[2] / (rgbAFactors[2] + 27.13)
|
|
287
309
|
];
|
|
288
310
|
const aw = (2 * rgbA[0] + rgbA[1] + 0.05 * rgbA[2]) * nbb;
|
|
289
|
-
return new
|
|
290
|
-
}
|
|
311
|
+
return new _ViewingConditions(n, aw, nbb, ncb, c, nc, rgbD, fl, Math.pow(fl, 0.25), z);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Parameters are intermediate values of the CAM16 conversion process. Their
|
|
315
|
+
* names are shorthand for technical color science terminology, this class
|
|
316
|
+
* would not benefit from documenting them individually. A brief overview
|
|
317
|
+
* is available in the CAM16 specification, and a complete overview requires
|
|
318
|
+
* a color science textbook, such as Fairchild's Color Appearance Models.
|
|
319
|
+
*/
|
|
291
320
|
constructor(n, aw, nbb, ncb, c, nc, rgbD, fl, fLRoot, z) {
|
|
292
321
|
this.n = n;
|
|
293
322
|
this.aw = aw;
|
|
@@ -303,8 +332,28 @@ var ViewingConditions = class {
|
|
|
303
332
|
};
|
|
304
333
|
ViewingConditions.DEFAULT = ViewingConditions.make();
|
|
305
334
|
|
|
306
|
-
// node_modules/@material/material-color-utilities/hct/cam16.js
|
|
307
|
-
var Cam16 = class {
|
|
335
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/hct/cam16.js
|
|
336
|
+
var Cam16 = class _Cam16 {
|
|
337
|
+
/**
|
|
338
|
+
* All of the CAM16 dimensions can be calculated from 3 of the dimensions, in
|
|
339
|
+
* the following combinations:
|
|
340
|
+
* - {j or q} and {c, m, or s} and hue
|
|
341
|
+
* - jstar, astar, bstar
|
|
342
|
+
* Prefer using a static method that constructs from 3 of those dimensions.
|
|
343
|
+
* This constructor is intended for those methods to use to return all
|
|
344
|
+
* possible dimensions.
|
|
345
|
+
*
|
|
346
|
+
* @param hue
|
|
347
|
+
* @param chroma informally, colorfulness / color intensity. like saturation
|
|
348
|
+
* in HSL, except perceptually accurate.
|
|
349
|
+
* @param j lightness
|
|
350
|
+
* @param q brightness; ratio of lightness to white point's lightness
|
|
351
|
+
* @param m colorfulness
|
|
352
|
+
* @param s saturation; ratio of chroma to white point's chroma
|
|
353
|
+
* @param jstar CAM16-UCS J coordinate
|
|
354
|
+
* @param astar CAM16-UCS a coordinate
|
|
355
|
+
* @param bstar CAM16-UCS b coordinate
|
|
356
|
+
*/
|
|
308
357
|
constructor(hue, chroma, j, q, m, s, jstar, astar, bstar) {
|
|
309
358
|
this.hue = hue;
|
|
310
359
|
this.chroma = chroma;
|
|
@@ -316,6 +365,11 @@ var Cam16 = class {
|
|
|
316
365
|
this.astar = astar;
|
|
317
366
|
this.bstar = bstar;
|
|
318
367
|
}
|
|
368
|
+
/**
|
|
369
|
+
* CAM16 instances also have coordinates in the CAM16-UCS space, called J*,
|
|
370
|
+
* a*, b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16
|
|
371
|
+
* specification, and is used to measure distances between colors.
|
|
372
|
+
*/
|
|
319
373
|
distance(other) {
|
|
320
374
|
const dJ = this.jstar - other.jstar;
|
|
321
375
|
const dA = this.astar - other.astar;
|
|
@@ -324,9 +378,20 @@ var Cam16 = class {
|
|
|
324
378
|
const dE = 1.41 * Math.pow(dEPrime, 0.63);
|
|
325
379
|
return dE;
|
|
326
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* @param argb ARGB representation of a color.
|
|
383
|
+
* @return CAM16 color, assuming the color was viewed in default viewing
|
|
384
|
+
* conditions.
|
|
385
|
+
*/
|
|
327
386
|
static fromInt(argb) {
|
|
328
|
-
return
|
|
329
|
-
}
|
|
387
|
+
return _Cam16.fromIntInViewingConditions(argb, ViewingConditions.DEFAULT);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* @param argb ARGB representation of a color.
|
|
391
|
+
* @param viewingConditions Information about the environment where the color
|
|
392
|
+
* was observed.
|
|
393
|
+
* @return CAM16 color.
|
|
394
|
+
*/
|
|
330
395
|
static fromIntInViewingConditions(argb, viewingConditions) {
|
|
331
396
|
const red = (argb & 16711680) >> 16;
|
|
332
397
|
const green = (argb & 65280) >> 8;
|
|
@@ -372,11 +437,23 @@ var Cam16 = class {
|
|
|
372
437
|
const mstar = 1 / 0.0228 * Math.log(1 + 0.0228 * m);
|
|
373
438
|
const astar = mstar * Math.cos(hueRadians);
|
|
374
439
|
const bstar = mstar * Math.sin(hueRadians);
|
|
375
|
-
return new
|
|
440
|
+
return new _Cam16(hue, c, j, q, m, s, jstar, astar, bstar);
|
|
376
441
|
}
|
|
442
|
+
/**
|
|
443
|
+
* @param j CAM16 lightness
|
|
444
|
+
* @param c CAM16 chroma
|
|
445
|
+
* @param h CAM16 hue
|
|
446
|
+
*/
|
|
377
447
|
static fromJch(j, c, h) {
|
|
378
|
-
return
|
|
379
|
-
}
|
|
448
|
+
return _Cam16.fromJchInViewingConditions(j, c, h, ViewingConditions.DEFAULT);
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* @param j CAM16 lightness
|
|
452
|
+
* @param c CAM16 chroma
|
|
453
|
+
* @param h CAM16 hue
|
|
454
|
+
* @param viewingConditions Information about the environment where the color
|
|
455
|
+
* was observed.
|
|
456
|
+
*/
|
|
380
457
|
static fromJchInViewingConditions(j, c, h, viewingConditions) {
|
|
381
458
|
const q = 4 / viewingConditions.c * Math.sqrt(j / 100) * (viewingConditions.aw + 4) * viewingConditions.fLRoot;
|
|
382
459
|
const m = c * viewingConditions.fLRoot;
|
|
@@ -387,11 +464,27 @@ var Cam16 = class {
|
|
|
387
464
|
const mstar = 1 / 0.0228 * Math.log(1 + 0.0228 * m);
|
|
388
465
|
const astar = mstar * Math.cos(hueRadians);
|
|
389
466
|
const bstar = mstar * Math.sin(hueRadians);
|
|
390
|
-
return new
|
|
391
|
-
}
|
|
467
|
+
return new _Cam16(h, c, j, q, m, s, jstar, astar, bstar);
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* @param jstar CAM16-UCS lightness.
|
|
471
|
+
* @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian
|
|
472
|
+
* coordinate on the Y axis.
|
|
473
|
+
* @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian
|
|
474
|
+
* coordinate on the X axis.
|
|
475
|
+
*/
|
|
392
476
|
static fromUcs(jstar, astar, bstar) {
|
|
393
|
-
return
|
|
394
|
-
}
|
|
477
|
+
return _Cam16.fromUcsInViewingConditions(jstar, astar, bstar, ViewingConditions.DEFAULT);
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @param jstar CAM16-UCS lightness.
|
|
481
|
+
* @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian
|
|
482
|
+
* coordinate on the Y axis.
|
|
483
|
+
* @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian
|
|
484
|
+
* coordinate on the X axis.
|
|
485
|
+
* @param viewingConditions Information about the environment where the color
|
|
486
|
+
* was observed.
|
|
487
|
+
*/
|
|
395
488
|
static fromUcsInViewingConditions(jstar, astar, bstar, viewingConditions) {
|
|
396
489
|
const a = astar;
|
|
397
490
|
const b = bstar;
|
|
@@ -403,11 +496,21 @@ var Cam16 = class {
|
|
|
403
496
|
h += 360;
|
|
404
497
|
}
|
|
405
498
|
const j = jstar / (1 - (jstar - 100) * 7e-3);
|
|
406
|
-
return
|
|
499
|
+
return _Cam16.fromJchInViewingConditions(j, c, h, viewingConditions);
|
|
407
500
|
}
|
|
501
|
+
/**
|
|
502
|
+
* @return ARGB representation of color, assuming the color was viewed in
|
|
503
|
+
* default viewing conditions, which are near-identical to the default
|
|
504
|
+
* viewing conditions for sRGB.
|
|
505
|
+
*/
|
|
408
506
|
toInt() {
|
|
409
507
|
return this.viewed(ViewingConditions.DEFAULT);
|
|
410
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
* @param viewingConditions Information about the environment where the color
|
|
511
|
+
* will be viewed.
|
|
512
|
+
* @return ARGB representation of color
|
|
513
|
+
*/
|
|
411
514
|
viewed(viewingConditions) {
|
|
412
515
|
const alpha = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100);
|
|
413
516
|
const t = Math.pow(alpha / Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73), 1 / 0.9);
|
|
@@ -439,6 +542,8 @@ var Cam16 = class {
|
|
|
439
542
|
const argb = argbFromXyz(x, y, z);
|
|
440
543
|
return argb;
|
|
441
544
|
}
|
|
545
|
+
/// Given color expressed in XYZ and viewed in [viewingConditions], convert to
|
|
546
|
+
/// CAM16.
|
|
442
547
|
static fromXyzInViewingConditions(x, y, z, viewingConditions) {
|
|
443
548
|
const rC = 0.401288 * x + 0.650173 * y - 0.051461 * z;
|
|
444
549
|
const gC = -0.250268 * x + 1.204414 * y + 0.045854 * z;
|
|
@@ -475,8 +580,9 @@ var Cam16 = class {
|
|
|
475
580
|
const mstar = Math.log(1 + 0.0228 * M) / 0.0228;
|
|
476
581
|
const astar = mstar * Math.cos(hueRadians);
|
|
477
582
|
const bstar = mstar * Math.sin(hueRadians);
|
|
478
|
-
return new
|
|
583
|
+
return new _Cam16(hue, C, J, Q, M, s, jstar, astar, bstar);
|
|
479
584
|
}
|
|
585
|
+
/// XYZ representation of CAM16 seen in [viewingConditions].
|
|
480
586
|
xyzInViewingConditions(viewingConditions) {
|
|
481
587
|
const alpha = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100);
|
|
482
588
|
const t = Math.pow(alpha / Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73), 1 / 0.9);
|
|
@@ -509,11 +615,27 @@ var Cam16 = class {
|
|
|
509
615
|
}
|
|
510
616
|
};
|
|
511
617
|
|
|
512
|
-
// node_modules/@material/material-color-utilities/hct/hct_solver.js
|
|
513
|
-
var HctSolver = class {
|
|
618
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/hct/hct_solver.js
|
|
619
|
+
var HctSolver = class _HctSolver {
|
|
620
|
+
/**
|
|
621
|
+
* Sanitizes a small enough angle in radians.
|
|
622
|
+
*
|
|
623
|
+
* @param angle An angle in radians; must not deviate too much
|
|
624
|
+
* from 0.
|
|
625
|
+
* @return A coterminal angle between 0 and 2pi.
|
|
626
|
+
*/
|
|
514
627
|
static sanitizeRadians(angle) {
|
|
515
628
|
return (angle + Math.PI * 8) % (Math.PI * 2);
|
|
516
629
|
}
|
|
630
|
+
/**
|
|
631
|
+
* Delinearizes an RGB component, returning a floating-point
|
|
632
|
+
* number.
|
|
633
|
+
*
|
|
634
|
+
* @param rgbComponent 0.0 <= rgb_component <= 100.0, represents
|
|
635
|
+
* linear R/G/B channel
|
|
636
|
+
* @return 0.0 <= output <= 255.0, color channel converted to
|
|
637
|
+
* regular RGB space
|
|
638
|
+
*/
|
|
517
639
|
static trueDelinearized(rgbComponent) {
|
|
518
640
|
const normalized = rgbComponent / 100;
|
|
519
641
|
let delinearized2 = 0;
|
|
@@ -528,20 +650,34 @@ var HctSolver = class {
|
|
|
528
650
|
const af = Math.pow(Math.abs(component), 0.42);
|
|
529
651
|
return signum(component) * 400 * af / (af + 27.13);
|
|
530
652
|
}
|
|
653
|
+
/**
|
|
654
|
+
* Returns the hue of a linear RGB color in CAM16.
|
|
655
|
+
*
|
|
656
|
+
* @param linrgb The linear RGB coordinates of a color.
|
|
657
|
+
* @return The hue of the color in CAM16, in radians.
|
|
658
|
+
*/
|
|
531
659
|
static hueOf(linrgb) {
|
|
532
|
-
const scaledDiscount = matrixMultiply(linrgb,
|
|
533
|
-
const rA =
|
|
534
|
-
const gA =
|
|
535
|
-
const bA =
|
|
660
|
+
const scaledDiscount = matrixMultiply(linrgb, _HctSolver.SCALED_DISCOUNT_FROM_LINRGB);
|
|
661
|
+
const rA = _HctSolver.chromaticAdaptation(scaledDiscount[0]);
|
|
662
|
+
const gA = _HctSolver.chromaticAdaptation(scaledDiscount[1]);
|
|
663
|
+
const bA = _HctSolver.chromaticAdaptation(scaledDiscount[2]);
|
|
536
664
|
const a = (11 * rA + -12 * gA + bA) / 11;
|
|
537
665
|
const b = (rA + gA - 2 * bA) / 9;
|
|
538
666
|
return Math.atan2(b, a);
|
|
539
667
|
}
|
|
540
668
|
static areInCyclicOrder(a, b, c) {
|
|
541
|
-
const deltaAB =
|
|
542
|
-
const deltaAC =
|
|
669
|
+
const deltaAB = _HctSolver.sanitizeRadians(b - a);
|
|
670
|
+
const deltaAC = _HctSolver.sanitizeRadians(c - a);
|
|
543
671
|
return deltaAB < deltaAC;
|
|
544
672
|
}
|
|
673
|
+
/**
|
|
674
|
+
* Solves the lerp equation.
|
|
675
|
+
*
|
|
676
|
+
* @param source The starting number.
|
|
677
|
+
* @param mid The number in the middle.
|
|
678
|
+
* @param target The ending number.
|
|
679
|
+
* @return A number t such that lerp(source, target, t) = mid.
|
|
680
|
+
*/
|
|
545
681
|
static intercept(source, mid, target) {
|
|
546
682
|
return (mid - source) / (target - source);
|
|
547
683
|
}
|
|
@@ -552,24 +688,45 @@ var HctSolver = class {
|
|
|
552
688
|
source[2] + (target[2] - source[2]) * t
|
|
553
689
|
];
|
|
554
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* Intersects a segment with a plane.
|
|
693
|
+
*
|
|
694
|
+
* @param source The coordinates of point A.
|
|
695
|
+
* @param coordinate The R-, G-, or B-coordinate of the plane.
|
|
696
|
+
* @param target The coordinates of point B.
|
|
697
|
+
* @param axis The axis the plane is perpendicular with. (0: R, 1:
|
|
698
|
+
* G, 2: B)
|
|
699
|
+
* @return The intersection point of the segment AB with the plane
|
|
700
|
+
* R=coordinate, G=coordinate, or B=coordinate
|
|
701
|
+
*/
|
|
555
702
|
static setCoordinate(source, coordinate, target, axis) {
|
|
556
|
-
const t =
|
|
557
|
-
return
|
|
703
|
+
const t = _HctSolver.intercept(source[axis], coordinate, target[axis]);
|
|
704
|
+
return _HctSolver.lerpPoint(source, t, target);
|
|
558
705
|
}
|
|
559
706
|
static isBounded(x) {
|
|
560
707
|
return 0 <= x && x <= 100;
|
|
561
708
|
}
|
|
709
|
+
/**
|
|
710
|
+
* Returns the nth possible vertex of the polygonal intersection.
|
|
711
|
+
*
|
|
712
|
+
* @param y The Y value of the plane.
|
|
713
|
+
* @param n The zero-based index of the point. 0 <= n <= 11.
|
|
714
|
+
* @return The nth possible vertex of the polygonal intersection
|
|
715
|
+
* of the y plane and the RGB cube, in linear RGB coordinates, if
|
|
716
|
+
* it exists. If this possible vertex lies outside of the cube,
|
|
717
|
+
* [-1.0, -1.0, -1.0] is returned.
|
|
718
|
+
*/
|
|
562
719
|
static nthVertex(y, n) {
|
|
563
|
-
const kR =
|
|
564
|
-
const kG =
|
|
565
|
-
const kB =
|
|
720
|
+
const kR = _HctSolver.Y_FROM_LINRGB[0];
|
|
721
|
+
const kG = _HctSolver.Y_FROM_LINRGB[1];
|
|
722
|
+
const kB = _HctSolver.Y_FROM_LINRGB[2];
|
|
566
723
|
const coordA = n % 4 <= 1 ? 0 : 100;
|
|
567
724
|
const coordB = n % 2 === 0 ? 0 : 100;
|
|
568
725
|
if (n < 4) {
|
|
569
726
|
const g = coordA;
|
|
570
727
|
const b = coordB;
|
|
571
728
|
const r = (y - g * kG - b * kB) / kR;
|
|
572
|
-
if (
|
|
729
|
+
if (_HctSolver.isBounded(r)) {
|
|
573
730
|
return [r, g, b];
|
|
574
731
|
} else {
|
|
575
732
|
return [-1, -1, -1];
|
|
@@ -578,7 +735,7 @@ var HctSolver = class {
|
|
|
578
735
|
const b = coordA;
|
|
579
736
|
const r = coordB;
|
|
580
737
|
const g = (y - r * kR - b * kB) / kG;
|
|
581
|
-
if (
|
|
738
|
+
if (_HctSolver.isBounded(g)) {
|
|
582
739
|
return [r, g, b];
|
|
583
740
|
} else {
|
|
584
741
|
return [-1, -1, -1];
|
|
@@ -587,13 +744,22 @@ var HctSolver = class {
|
|
|
587
744
|
const r = coordA;
|
|
588
745
|
const g = coordB;
|
|
589
746
|
const b = (y - r * kR - g * kG) / kB;
|
|
590
|
-
if (
|
|
747
|
+
if (_HctSolver.isBounded(b)) {
|
|
591
748
|
return [r, g, b];
|
|
592
749
|
} else {
|
|
593
750
|
return [-1, -1, -1];
|
|
594
751
|
}
|
|
595
752
|
}
|
|
596
753
|
}
|
|
754
|
+
/**
|
|
755
|
+
* Finds the segment containing the desired color.
|
|
756
|
+
*
|
|
757
|
+
* @param y The Y value of the color.
|
|
758
|
+
* @param targetHue The hue of the color.
|
|
759
|
+
* @return A list of two sets of linear RGB coordinates, each
|
|
760
|
+
* corresponding to an endpoint of the segment containing the
|
|
761
|
+
* desired color.
|
|
762
|
+
*/
|
|
597
763
|
static bisectToSegment(y, targetHue) {
|
|
598
764
|
let left = [-1, -1, -1];
|
|
599
765
|
let right = left;
|
|
@@ -602,11 +768,11 @@ var HctSolver = class {
|
|
|
602
768
|
let initialized = false;
|
|
603
769
|
let uncut = true;
|
|
604
770
|
for (let n = 0; n < 12; n++) {
|
|
605
|
-
const mid =
|
|
771
|
+
const mid = _HctSolver.nthVertex(y, n);
|
|
606
772
|
if (mid[0] < 0) {
|
|
607
773
|
continue;
|
|
608
774
|
}
|
|
609
|
-
const midHue =
|
|
775
|
+
const midHue = _HctSolver.hueOf(mid);
|
|
610
776
|
if (!initialized) {
|
|
611
777
|
left = mid;
|
|
612
778
|
right = mid;
|
|
@@ -615,9 +781,9 @@ var HctSolver = class {
|
|
|
615
781
|
initialized = true;
|
|
616
782
|
continue;
|
|
617
783
|
}
|
|
618
|
-
if (uncut ||
|
|
784
|
+
if (uncut || _HctSolver.areInCyclicOrder(leftHue, midHue, rightHue)) {
|
|
619
785
|
uncut = false;
|
|
620
|
-
if (
|
|
786
|
+
if (_HctSolver.areInCyclicOrder(leftHue, targetHue, midHue)) {
|
|
621
787
|
right = mid;
|
|
622
788
|
rightHue = midHue;
|
|
623
789
|
} else {
|
|
@@ -641,31 +807,39 @@ var HctSolver = class {
|
|
|
641
807
|
static criticalPlaneAbove(x) {
|
|
642
808
|
return Math.ceil(x - 0.5);
|
|
643
809
|
}
|
|
810
|
+
/**
|
|
811
|
+
* Finds a color with the given Y and hue on the boundary of the
|
|
812
|
+
* cube.
|
|
813
|
+
*
|
|
814
|
+
* @param y The Y value of the color.
|
|
815
|
+
* @param targetHue The hue of the color.
|
|
816
|
+
* @return The desired color, in linear RGB coordinates.
|
|
817
|
+
*/
|
|
644
818
|
static bisectToLimit(y, targetHue) {
|
|
645
|
-
const segment =
|
|
819
|
+
const segment = _HctSolver.bisectToSegment(y, targetHue);
|
|
646
820
|
let left = segment[0];
|
|
647
|
-
let leftHue =
|
|
821
|
+
let leftHue = _HctSolver.hueOf(left);
|
|
648
822
|
let right = segment[1];
|
|
649
823
|
for (let axis = 0; axis < 3; axis++) {
|
|
650
824
|
if (left[axis] !== right[axis]) {
|
|
651
825
|
let lPlane = -1;
|
|
652
826
|
let rPlane = 255;
|
|
653
827
|
if (left[axis] < right[axis]) {
|
|
654
|
-
lPlane =
|
|
655
|
-
rPlane =
|
|
828
|
+
lPlane = _HctSolver.criticalPlaneBelow(_HctSolver.trueDelinearized(left[axis]));
|
|
829
|
+
rPlane = _HctSolver.criticalPlaneAbove(_HctSolver.trueDelinearized(right[axis]));
|
|
656
830
|
} else {
|
|
657
|
-
lPlane =
|
|
658
|
-
rPlane =
|
|
831
|
+
lPlane = _HctSolver.criticalPlaneAbove(_HctSolver.trueDelinearized(left[axis]));
|
|
832
|
+
rPlane = _HctSolver.criticalPlaneBelow(_HctSolver.trueDelinearized(right[axis]));
|
|
659
833
|
}
|
|
660
834
|
for (let i = 0; i < 8; i++) {
|
|
661
835
|
if (Math.abs(rPlane - lPlane) <= 1) {
|
|
662
836
|
break;
|
|
663
837
|
} else {
|
|
664
838
|
const mPlane = Math.floor((lPlane + rPlane) / 2);
|
|
665
|
-
const midPlaneCoordinate =
|
|
666
|
-
const mid =
|
|
667
|
-
const midHue =
|
|
668
|
-
if (
|
|
839
|
+
const midPlaneCoordinate = _HctSolver.CRITICAL_PLANES[mPlane];
|
|
840
|
+
const mid = _HctSolver.setCoordinate(left, midPlaneCoordinate, right, axis);
|
|
841
|
+
const midHue = _HctSolver.hueOf(mid);
|
|
842
|
+
if (_HctSolver.areInCyclicOrder(leftHue, targetHue, midHue)) {
|
|
669
843
|
right = mid;
|
|
670
844
|
rPlane = mPlane;
|
|
671
845
|
} else {
|
|
@@ -677,13 +851,22 @@ var HctSolver = class {
|
|
|
677
851
|
}
|
|
678
852
|
}
|
|
679
853
|
}
|
|
680
|
-
return
|
|
854
|
+
return _HctSolver.midpoint(left, right);
|
|
681
855
|
}
|
|
682
856
|
static inverseChromaticAdaptation(adapted) {
|
|
683
857
|
const adaptedAbs = Math.abs(adapted);
|
|
684
858
|
const base = Math.max(0, 27.13 * adaptedAbs / (400 - adaptedAbs));
|
|
685
859
|
return signum(adapted) * Math.pow(base, 1 / 0.42);
|
|
686
860
|
}
|
|
861
|
+
/**
|
|
862
|
+
* Finds a color with the given hue, chroma, and Y.
|
|
863
|
+
*
|
|
864
|
+
* @param hueRadians The desired hue in radians.
|
|
865
|
+
* @param chroma The desired chroma.
|
|
866
|
+
* @param y The desired Y.
|
|
867
|
+
* @return The desired color as a hexadecimal integer, if found; 0
|
|
868
|
+
* otherwise.
|
|
869
|
+
*/
|
|
687
870
|
static findResultByJ(hueRadians, chroma, y) {
|
|
688
871
|
let j = Math.sqrt(y) * 11;
|
|
689
872
|
const viewingConditions = ViewingConditions.DEFAULT;
|
|
@@ -704,16 +887,16 @@ var HctSolver = class {
|
|
|
704
887
|
const rA = (460 * p2 + 451 * a + 288 * b) / 1403;
|
|
705
888
|
const gA = (460 * p2 - 891 * a - 261 * b) / 1403;
|
|
706
889
|
const bA = (460 * p2 - 220 * a - 6300 * b) / 1403;
|
|
707
|
-
const rCScaled =
|
|
708
|
-
const gCScaled =
|
|
709
|
-
const bCScaled =
|
|
710
|
-
const linrgb = matrixMultiply([rCScaled, gCScaled, bCScaled],
|
|
890
|
+
const rCScaled = _HctSolver.inverseChromaticAdaptation(rA);
|
|
891
|
+
const gCScaled = _HctSolver.inverseChromaticAdaptation(gA);
|
|
892
|
+
const bCScaled = _HctSolver.inverseChromaticAdaptation(bA);
|
|
893
|
+
const linrgb = matrixMultiply([rCScaled, gCScaled, bCScaled], _HctSolver.LINRGB_FROM_SCALED_DISCOUNT);
|
|
711
894
|
if (linrgb[0] < 0 || linrgb[1] < 0 || linrgb[2] < 0) {
|
|
712
895
|
return 0;
|
|
713
896
|
}
|
|
714
|
-
const kR =
|
|
715
|
-
const kG =
|
|
716
|
-
const kB =
|
|
897
|
+
const kR = _HctSolver.Y_FROM_LINRGB[0];
|
|
898
|
+
const kG = _HctSolver.Y_FROM_LINRGB[1];
|
|
899
|
+
const kB = _HctSolver.Y_FROM_LINRGB[2];
|
|
717
900
|
const fnj = kR * linrgb[0] + kG * linrgb[1] + kB * linrgb[2];
|
|
718
901
|
if (fnj <= 0) {
|
|
719
902
|
return 0;
|
|
@@ -728,6 +911,18 @@ var HctSolver = class {
|
|
|
728
911
|
}
|
|
729
912
|
return 0;
|
|
730
913
|
}
|
|
914
|
+
/**
|
|
915
|
+
* Finds an sRGB color with the given hue, chroma, and L*, if
|
|
916
|
+
* possible.
|
|
917
|
+
*
|
|
918
|
+
* @param hueDegrees The desired hue, in degrees.
|
|
919
|
+
* @param chroma The desired chroma.
|
|
920
|
+
* @param lstar The desired L*.
|
|
921
|
+
* @return A hexadecimal representing the sRGB color. The color
|
|
922
|
+
* has sufficiently close hue, chroma, and L* to the desired
|
|
923
|
+
* values, if possible; otherwise, the hue and L* will be
|
|
924
|
+
* sufficiently close, and chroma will be maximized.
|
|
925
|
+
*/
|
|
731
926
|
static solveToInt(hueDegrees, chroma, lstar) {
|
|
732
927
|
if (chroma < 1e-4 || lstar < 1e-4 || lstar > 99.9999) {
|
|
733
928
|
return argbFromLstar(lstar);
|
|
@@ -735,15 +930,27 @@ var HctSolver = class {
|
|
|
735
930
|
hueDegrees = sanitizeDegreesDouble(hueDegrees);
|
|
736
931
|
const hueRadians = hueDegrees / 180 * Math.PI;
|
|
737
932
|
const y = yFromLstar(lstar);
|
|
738
|
-
const exactAnswer =
|
|
933
|
+
const exactAnswer = _HctSolver.findResultByJ(hueRadians, chroma, y);
|
|
739
934
|
if (exactAnswer !== 0) {
|
|
740
935
|
return exactAnswer;
|
|
741
936
|
}
|
|
742
|
-
const linrgb =
|
|
937
|
+
const linrgb = _HctSolver.bisectToLimit(y, hueRadians);
|
|
743
938
|
return argbFromLinrgb(linrgb);
|
|
744
939
|
}
|
|
940
|
+
/**
|
|
941
|
+
* Finds an sRGB color with the given hue, chroma, and L*, if
|
|
942
|
+
* possible.
|
|
943
|
+
*
|
|
944
|
+
* @param hueDegrees The desired hue, in degrees.
|
|
945
|
+
* @param chroma The desired chroma.
|
|
946
|
+
* @param lstar The desired L*.
|
|
947
|
+
* @return An CAM16 object representing the sRGB color. The color
|
|
948
|
+
* has sufficiently close hue, chroma, and L* to the desired
|
|
949
|
+
* values, if possible; otherwise, the hue and L* will be
|
|
950
|
+
* sufficiently close, and chroma will be maximized.
|
|
951
|
+
*/
|
|
745
952
|
static solveToCam(hueDegrees, chroma, lstar) {
|
|
746
|
-
return Cam16.fromInt(
|
|
953
|
+
return Cam16.fromInt(_HctSolver.solveToInt(hueDegrees, chroma, lstar));
|
|
747
954
|
}
|
|
748
955
|
};
|
|
749
956
|
HctSolver.SCALED_DISCOUNT_FROM_LINRGB = [
|
|
@@ -1039,32 +1246,56 @@ HctSolver.CRITICAL_PLANES = [
|
|
|
1039
1246
|
99.55452497210776
|
|
1040
1247
|
];
|
|
1041
1248
|
|
|
1042
|
-
// node_modules/@material/material-color-utilities/hct/hct.js
|
|
1043
|
-
var Hct = class {
|
|
1249
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/hct/hct.js
|
|
1250
|
+
var Hct = class _Hct {
|
|
1044
1251
|
static from(hue, chroma, tone) {
|
|
1045
|
-
return new
|
|
1252
|
+
return new _Hct(HctSolver.solveToInt(hue, chroma, tone));
|
|
1046
1253
|
}
|
|
1254
|
+
/**
|
|
1255
|
+
* @param argb ARGB representation of a color.
|
|
1256
|
+
* @return HCT representation of a color in default viewing conditions
|
|
1257
|
+
*/
|
|
1047
1258
|
static fromInt(argb) {
|
|
1048
|
-
return new
|
|
1259
|
+
return new _Hct(argb);
|
|
1049
1260
|
}
|
|
1050
1261
|
toInt() {
|
|
1051
1262
|
return this.argb;
|
|
1052
1263
|
}
|
|
1264
|
+
/**
|
|
1265
|
+
* A number, in degrees, representing ex. red, orange, yellow, etc.
|
|
1266
|
+
* Ranges from 0 <= hue < 360.
|
|
1267
|
+
*/
|
|
1053
1268
|
get hue() {
|
|
1054
1269
|
return this.internalHue;
|
|
1055
1270
|
}
|
|
1271
|
+
/**
|
|
1272
|
+
* @param newHue 0 <= newHue < 360; invalid values are corrected.
|
|
1273
|
+
* Chroma may decrease because chroma has a different maximum for any given
|
|
1274
|
+
* hue and tone.
|
|
1275
|
+
*/
|
|
1056
1276
|
set hue(newHue) {
|
|
1057
1277
|
this.setInternalState(HctSolver.solveToInt(newHue, this.internalChroma, this.internalTone));
|
|
1058
1278
|
}
|
|
1059
1279
|
get chroma() {
|
|
1060
1280
|
return this.internalChroma;
|
|
1061
1281
|
}
|
|
1282
|
+
/**
|
|
1283
|
+
* @param newChroma 0 <= newChroma < ?
|
|
1284
|
+
* Chroma may decrease because chroma has a different maximum for any given
|
|
1285
|
+
* hue and tone.
|
|
1286
|
+
*/
|
|
1062
1287
|
set chroma(newChroma) {
|
|
1063
1288
|
this.setInternalState(HctSolver.solveToInt(this.internalHue, newChroma, this.internalTone));
|
|
1064
1289
|
}
|
|
1290
|
+
/** Lightness. Ranges from 0 to 100. */
|
|
1065
1291
|
get tone() {
|
|
1066
1292
|
return this.internalTone;
|
|
1067
1293
|
}
|
|
1294
|
+
/**
|
|
1295
|
+
* @param newTone 0 <= newTone <= 100; invalid valids are corrected.
|
|
1296
|
+
* Chroma may decrease because chroma has a different maximum for any given
|
|
1297
|
+
* hue and tone.
|
|
1298
|
+
*/
|
|
1068
1299
|
set tone(newTone) {
|
|
1069
1300
|
this.setInternalState(HctSolver.solveToInt(this.internalHue, this.internalChroma, newTone));
|
|
1070
1301
|
}
|
|
@@ -1083,34 +1314,64 @@ var Hct = class {
|
|
|
1083
1314
|
this.internalTone = lstarFromArgb(argb);
|
|
1084
1315
|
this.argb = argb;
|
|
1085
1316
|
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Translates a color into different [ViewingConditions].
|
|
1319
|
+
*
|
|
1320
|
+
* Colors change appearance. They look different with lights on versus off,
|
|
1321
|
+
* the same color, as in hex code, on white looks different when on black.
|
|
1322
|
+
* This is called color relativity, most famously explicated by Josef Albers
|
|
1323
|
+
* in Interaction of Color.
|
|
1324
|
+
*
|
|
1325
|
+
* In color science, color appearance models can account for this and
|
|
1326
|
+
* calculate the appearance of a color in different settings. HCT is based on
|
|
1327
|
+
* CAM16, a color appearance model, and uses it to make these calculations.
|
|
1328
|
+
*
|
|
1329
|
+
* See [ViewingConditions.make] for parameters affecting color appearance.
|
|
1330
|
+
*/
|
|
1086
1331
|
inViewingConditions(vc) {
|
|
1087
1332
|
const cam = Cam16.fromInt(this.toInt());
|
|
1088
1333
|
const viewedInVc = cam.xyzInViewingConditions(vc);
|
|
1089
1334
|
const recastInVc = Cam16.fromXyzInViewingConditions(viewedInVc[0], viewedInVc[1], viewedInVc[2], ViewingConditions.make());
|
|
1090
|
-
const recastHct =
|
|
1335
|
+
const recastHct = _Hct.from(recastInVc.hue, recastInVc.chroma, lstarFromY(viewedInVc[1]));
|
|
1091
1336
|
return recastHct;
|
|
1092
1337
|
}
|
|
1093
1338
|
};
|
|
1094
1339
|
|
|
1095
|
-
// node_modules/@material/material-color-utilities/contrast/contrast.js
|
|
1096
|
-
var Contrast = class {
|
|
1340
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/contrast/contrast.js
|
|
1341
|
+
var Contrast = class _Contrast {
|
|
1342
|
+
/**
|
|
1343
|
+
* Returns a contrast ratio, which ranges from 1 to 21.
|
|
1344
|
+
*
|
|
1345
|
+
* @param toneA Tone between 0 and 100. Values outside will be clamped.
|
|
1346
|
+
* @param toneB Tone between 0 and 100. Values outside will be clamped.
|
|
1347
|
+
*/
|
|
1097
1348
|
static ratioOfTones(toneA, toneB) {
|
|
1098
1349
|
toneA = clampDouble(0, 100, toneA);
|
|
1099
1350
|
toneB = clampDouble(0, 100, toneB);
|
|
1100
|
-
return
|
|
1351
|
+
return _Contrast.ratioOfYs(yFromLstar(toneA), yFromLstar(toneB));
|
|
1101
1352
|
}
|
|
1102
1353
|
static ratioOfYs(y1, y2) {
|
|
1103
1354
|
const lighter = y1 > y2 ? y1 : y2;
|
|
1104
1355
|
const darker = lighter === y2 ? y1 : y2;
|
|
1105
1356
|
return (lighter + 5) / (darker + 5);
|
|
1106
1357
|
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Returns a tone >= tone parameter that ensures ratio parameter.
|
|
1360
|
+
* Return value is between 0 and 100.
|
|
1361
|
+
* Returns -1 if ratio cannot be achieved with tone parameter.
|
|
1362
|
+
*
|
|
1363
|
+
* @param tone Tone return value must contrast with.
|
|
1364
|
+
* Range is 0 to 100. Invalid values will result in -1 being returned.
|
|
1365
|
+
* @param ratio Contrast ratio of return value and tone.
|
|
1366
|
+
* Range is 1 to 21, invalid values have undefined behavior.
|
|
1367
|
+
*/
|
|
1107
1368
|
static lighter(tone, ratio) {
|
|
1108
1369
|
if (tone < 0 || tone > 100) {
|
|
1109
1370
|
return -1;
|
|
1110
1371
|
}
|
|
1111
1372
|
const darkY = yFromLstar(tone);
|
|
1112
1373
|
const lightY = ratio * (darkY + 5) - 5;
|
|
1113
|
-
const realContrast =
|
|
1374
|
+
const realContrast = _Contrast.ratioOfYs(lightY, darkY);
|
|
1114
1375
|
const delta = Math.abs(realContrast - ratio);
|
|
1115
1376
|
if (realContrast < ratio && delta > 0.04) {
|
|
1116
1377
|
return -1;
|
|
@@ -1121,13 +1382,23 @@ var Contrast = class {
|
|
|
1121
1382
|
}
|
|
1122
1383
|
return returnValue;
|
|
1123
1384
|
}
|
|
1385
|
+
/**
|
|
1386
|
+
* Returns a tone <= tone parameter that ensures ratio parameter.
|
|
1387
|
+
* Return value is between 0 and 100.
|
|
1388
|
+
* Returns -1 if ratio cannot be achieved with tone parameter.
|
|
1389
|
+
*
|
|
1390
|
+
* @param tone Tone return value must contrast with.
|
|
1391
|
+
* Range is 0 to 100. Invalid values will result in -1 being returned.
|
|
1392
|
+
* @param ratio Contrast ratio of return value and tone.
|
|
1393
|
+
* Range is 1 to 21, invalid values have undefined behavior.
|
|
1394
|
+
*/
|
|
1124
1395
|
static darker(tone, ratio) {
|
|
1125
1396
|
if (tone < 0 || tone > 100) {
|
|
1126
1397
|
return -1;
|
|
1127
1398
|
}
|
|
1128
1399
|
const lightY = yFromLstar(tone);
|
|
1129
1400
|
const darkY = (lightY + 5) / ratio - 5;
|
|
1130
|
-
const realContrast =
|
|
1401
|
+
const realContrast = _Contrast.ratioOfYs(lightY, darkY);
|
|
1131
1402
|
const delta = Math.abs(realContrast - ratio);
|
|
1132
1403
|
if (realContrast < ratio && delta > 0.04) {
|
|
1133
1404
|
return -1;
|
|
@@ -1138,38 +1409,119 @@ var Contrast = class {
|
|
|
1138
1409
|
}
|
|
1139
1410
|
return returnValue;
|
|
1140
1411
|
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Returns a tone >= tone parameter that ensures ratio parameter.
|
|
1414
|
+
* Return value is between 0 and 100.
|
|
1415
|
+
* Returns 100 if ratio cannot be achieved with tone parameter.
|
|
1416
|
+
*
|
|
1417
|
+
* This method is unsafe because the returned value is guaranteed to be in
|
|
1418
|
+
* bounds for tone, i.e. between 0 and 100. However, that value may not reach
|
|
1419
|
+
* the ratio with tone. For example, there is no color lighter than T100.
|
|
1420
|
+
*
|
|
1421
|
+
* @param tone Tone return value must contrast with.
|
|
1422
|
+
* Range is 0 to 100. Invalid values will result in 100 being returned.
|
|
1423
|
+
* @param ratio Desired contrast ratio of return value and tone parameter.
|
|
1424
|
+
* Range is 1 to 21, invalid values have undefined behavior.
|
|
1425
|
+
*/
|
|
1141
1426
|
static lighterUnsafe(tone, ratio) {
|
|
1142
|
-
const lighterSafe =
|
|
1427
|
+
const lighterSafe = _Contrast.lighter(tone, ratio);
|
|
1143
1428
|
return lighterSafe < 0 ? 100 : lighterSafe;
|
|
1144
1429
|
}
|
|
1430
|
+
/**
|
|
1431
|
+
* Returns a tone >= tone parameter that ensures ratio parameter.
|
|
1432
|
+
* Return value is between 0 and 100.
|
|
1433
|
+
* Returns 100 if ratio cannot be achieved with tone parameter.
|
|
1434
|
+
*
|
|
1435
|
+
* This method is unsafe because the returned value is guaranteed to be in
|
|
1436
|
+
* bounds for tone, i.e. between 0 and 100. However, that value may not reach
|
|
1437
|
+
* the [ratio with [tone]. For example, there is no color darker than T0.
|
|
1438
|
+
*
|
|
1439
|
+
* @param tone Tone return value must contrast with.
|
|
1440
|
+
* Range is 0 to 100. Invalid values will result in 0 being returned.
|
|
1441
|
+
* @param ratio Desired contrast ratio of return value and tone parameter.
|
|
1442
|
+
* Range is 1 to 21, invalid values have undefined behavior.
|
|
1443
|
+
*/
|
|
1145
1444
|
static darkerUnsafe(tone, ratio) {
|
|
1146
|
-
const darkerSafe =
|
|
1445
|
+
const darkerSafe = _Contrast.darker(tone, ratio);
|
|
1147
1446
|
return darkerSafe < 0 ? 0 : darkerSafe;
|
|
1148
1447
|
}
|
|
1149
1448
|
};
|
|
1150
1449
|
|
|
1151
|
-
// node_modules/@material/material-color-utilities/dislike/dislike_analyzer.js
|
|
1152
|
-
var DislikeAnalyzer = class {
|
|
1450
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/dislike/dislike_analyzer.js
|
|
1451
|
+
var DislikeAnalyzer = class _DislikeAnalyzer {
|
|
1452
|
+
/**
|
|
1453
|
+
* Returns true if a color is disliked.
|
|
1454
|
+
*
|
|
1455
|
+
* @param hct A color to be judged.
|
|
1456
|
+
* @return Whether the color is disliked.
|
|
1457
|
+
*
|
|
1458
|
+
* Disliked is defined as a dark yellow-green that is not neutral.
|
|
1459
|
+
*/
|
|
1153
1460
|
static isDisliked(hct) {
|
|
1154
1461
|
const huePasses = Math.round(hct.hue) >= 90 && Math.round(hct.hue) <= 111;
|
|
1155
1462
|
const chromaPasses = Math.round(hct.chroma) > 16;
|
|
1156
1463
|
const tonePasses = Math.round(hct.tone) < 65;
|
|
1157
1464
|
return huePasses && chromaPasses && tonePasses;
|
|
1158
1465
|
}
|
|
1466
|
+
/**
|
|
1467
|
+
* If a color is disliked, lighten it to make it likable.
|
|
1468
|
+
*
|
|
1469
|
+
* @param hct A color to be judged.
|
|
1470
|
+
* @return A new color if the original color is disliked, or the original
|
|
1471
|
+
* color if it is acceptable.
|
|
1472
|
+
*/
|
|
1159
1473
|
static fixIfDisliked(hct) {
|
|
1160
|
-
if (
|
|
1474
|
+
if (_DislikeAnalyzer.isDisliked(hct)) {
|
|
1161
1475
|
return Hct.from(hct.hue, hct.chroma, 70);
|
|
1162
1476
|
}
|
|
1163
1477
|
return hct;
|
|
1164
1478
|
}
|
|
1165
1479
|
};
|
|
1166
1480
|
|
|
1167
|
-
// node_modules/@material/material-color-utilities/dynamiccolor/dynamic_color.js
|
|
1168
|
-
var DynamicColor = class {
|
|
1481
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/dynamiccolor/dynamic_color.js
|
|
1482
|
+
var DynamicColor = class _DynamicColor {
|
|
1483
|
+
/**
|
|
1484
|
+
* Create a DynamicColor defined by a TonalPalette and HCT tone.
|
|
1485
|
+
*
|
|
1486
|
+
* @param args Functions with DynamicScheme as input. Must provide a palette
|
|
1487
|
+
* and tone. May provide a background DynamicColor and ToneDeltaConstraint.
|
|
1488
|
+
*/
|
|
1169
1489
|
static fromPalette(args) {
|
|
1170
1490
|
var _a, _b;
|
|
1171
|
-
return new
|
|
1172
|
-
}
|
|
1491
|
+
return new _DynamicColor((_a = args.name) != null ? _a : "", args.palette, args.tone, (_b = args.isBackground) != null ? _b : false, args.background, args.secondBackground, args.contrastCurve, args.toneDeltaPair);
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* The base constructor for DynamicColor.
|
|
1495
|
+
*
|
|
1496
|
+
* _Strongly_ prefer using one of the convenience constructors. This class is
|
|
1497
|
+
* arguably too flexible to ensure it can support any scenario. Functional
|
|
1498
|
+
* arguments allow overriding without risks that come with subclasses.
|
|
1499
|
+
*
|
|
1500
|
+
* For example, the default behavior of adjust tone at max contrast
|
|
1501
|
+
* to be at a 7.0 ratio with its background is principled and
|
|
1502
|
+
* matches accessibility guidance. That does not mean it's the desired
|
|
1503
|
+
* approach for _every_ design system, and every color pairing,
|
|
1504
|
+
* always, in every case.
|
|
1505
|
+
*
|
|
1506
|
+
* @param name The name of the dynamic color. Defaults to empty.
|
|
1507
|
+
* @param palette Function that provides a TonalPalette given
|
|
1508
|
+
* DynamicScheme. A TonalPalette is defined by a hue and chroma, so this
|
|
1509
|
+
* replaces the need to specify hue/chroma. By providing a tonal palette, when
|
|
1510
|
+
* contrast adjustments are made, intended chroma can be preserved.
|
|
1511
|
+
* @param tone Function that provides a tone, given a DynamicScheme.
|
|
1512
|
+
* @param isBackground Whether this dynamic color is a background, with
|
|
1513
|
+
* some other color as the foreground. Defaults to false.
|
|
1514
|
+
* @param background The background of the dynamic color (as a function of a
|
|
1515
|
+
* `DynamicScheme`), if it exists.
|
|
1516
|
+
* @param secondBackground A second background of the dynamic color (as a
|
|
1517
|
+
* function of a `DynamicScheme`), if it
|
|
1518
|
+
* exists.
|
|
1519
|
+
* @param contrastCurve A `ContrastCurve` object specifying how its contrast
|
|
1520
|
+
* against its background should behave in various contrast levels options.
|
|
1521
|
+
* @param toneDeltaPair A `ToneDeltaPair` object specifying a tone delta
|
|
1522
|
+
* constraint between two colors. One of them must be the color being
|
|
1523
|
+
* constructed.
|
|
1524
|
+
*/
|
|
1173
1525
|
constructor(name, palette, tone, isBackground, background, secondBackground, contrastCurve, toneDeltaPair) {
|
|
1174
1526
|
this.name = name;
|
|
1175
1527
|
this.palette = palette;
|
|
@@ -1190,9 +1542,24 @@ var DynamicColor = class {
|
|
|
1190
1542
|
throw new Error(`Color ${name} has backgrounddefined, but contrastCurve is not defined.`);
|
|
1191
1543
|
}
|
|
1192
1544
|
}
|
|
1545
|
+
/**
|
|
1546
|
+
* Return a ARGB integer (i.e. a hex code).
|
|
1547
|
+
*
|
|
1548
|
+
* @param scheme Defines the conditions of the user interface, for example,
|
|
1549
|
+
* whether or not it is dark mode or light mode, and what the desired
|
|
1550
|
+
* contrast level is.
|
|
1551
|
+
*/
|
|
1193
1552
|
getArgb(scheme) {
|
|
1194
1553
|
return this.getHct(scheme).toInt();
|
|
1195
1554
|
}
|
|
1555
|
+
/**
|
|
1556
|
+
* Return a color, expressed in the HCT color space, that this
|
|
1557
|
+
* DynamicColor is under the conditions in scheme.
|
|
1558
|
+
*
|
|
1559
|
+
* @param scheme Defines the conditions of the user interface, for example,
|
|
1560
|
+
* whether or not it is dark mode or light mode, and what the desired
|
|
1561
|
+
* contrast level is.
|
|
1562
|
+
*/
|
|
1196
1563
|
getHct(scheme) {
|
|
1197
1564
|
const cachedAnswer = this.hctCache.get(scheme);
|
|
1198
1565
|
if (cachedAnswer != null) {
|
|
@@ -1206,6 +1573,14 @@ var DynamicColor = class {
|
|
|
1206
1573
|
this.hctCache.set(scheme, answer);
|
|
1207
1574
|
return answer;
|
|
1208
1575
|
}
|
|
1576
|
+
/**
|
|
1577
|
+
* Return a tone, T in the HCT color space, that this DynamicColor is under
|
|
1578
|
+
* the conditions in scheme.
|
|
1579
|
+
*
|
|
1580
|
+
* @param scheme Defines the conditions of the user interface, for example,
|
|
1581
|
+
* whether or not it is dark mode or light mode, and what the desired
|
|
1582
|
+
* contrast level is.
|
|
1583
|
+
*/
|
|
1209
1584
|
getTone(scheme) {
|
|
1210
1585
|
const decreasingContrast = scheme.contrastLevel < 0;
|
|
1211
1586
|
if (this.toneDeltaPair) {
|
|
@@ -1225,12 +1600,12 @@ var DynamicColor = class {
|
|
|
1225
1600
|
const nContrast = nearer.contrastCurve.get(scheme.contrastLevel);
|
|
1226
1601
|
const fContrast = farther.contrastCurve.get(scheme.contrastLevel);
|
|
1227
1602
|
const nInitialTone = nearer.tone(scheme);
|
|
1228
|
-
let nTone = Contrast.ratioOfTones(bgTone, nInitialTone) >= nContrast ? nInitialTone :
|
|
1603
|
+
let nTone = Contrast.ratioOfTones(bgTone, nInitialTone) >= nContrast ? nInitialTone : _DynamicColor.foregroundTone(bgTone, nContrast);
|
|
1229
1604
|
const fInitialTone = farther.tone(scheme);
|
|
1230
|
-
let fTone = Contrast.ratioOfTones(bgTone, fInitialTone) >= fContrast ? fInitialTone :
|
|
1605
|
+
let fTone = Contrast.ratioOfTones(bgTone, fInitialTone) >= fContrast ? fInitialTone : _DynamicColor.foregroundTone(bgTone, fContrast);
|
|
1231
1606
|
if (decreasingContrast) {
|
|
1232
|
-
nTone =
|
|
1233
|
-
fTone =
|
|
1607
|
+
nTone = _DynamicColor.foregroundTone(bgTone, nContrast);
|
|
1608
|
+
fTone = _DynamicColor.foregroundTone(bgTone, fContrast);
|
|
1234
1609
|
}
|
|
1235
1610
|
if ((fTone - nTone) * expansionDir >= delta) {
|
|
1236
1611
|
} else {
|
|
@@ -1275,10 +1650,10 @@ var DynamicColor = class {
|
|
|
1275
1650
|
const desiredRatio = this.contrastCurve.get(scheme.contrastLevel);
|
|
1276
1651
|
if (Contrast.ratioOfTones(bgTone, answer) >= desiredRatio) {
|
|
1277
1652
|
} else {
|
|
1278
|
-
answer =
|
|
1653
|
+
answer = _DynamicColor.foregroundTone(bgTone, desiredRatio);
|
|
1279
1654
|
}
|
|
1280
1655
|
if (decreasingContrast) {
|
|
1281
|
-
answer =
|
|
1656
|
+
answer = _DynamicColor.foregroundTone(bgTone, desiredRatio);
|
|
1282
1657
|
}
|
|
1283
1658
|
if (this.isBackground && 50 <= answer && answer < 60) {
|
|
1284
1659
|
if (Contrast.ratioOfTones(49, bgTone) >= desiredRatio) {
|
|
@@ -1301,7 +1676,7 @@ var DynamicColor = class {
|
|
|
1301
1676
|
availables.push(lightOption);
|
|
1302
1677
|
if (darkOption !== -1)
|
|
1303
1678
|
availables.push(darkOption);
|
|
1304
|
-
const prefersLight =
|
|
1679
|
+
const prefersLight = _DynamicColor.tonePrefersLightForeground(bgTone1) || _DynamicColor.tonePrefersLightForeground(bgTone2);
|
|
1305
1680
|
if (prefersLight) {
|
|
1306
1681
|
return lightOption < 0 ? 100 : lightOption;
|
|
1307
1682
|
}
|
|
@@ -1313,12 +1688,21 @@ var DynamicColor = class {
|
|
|
1313
1688
|
return answer;
|
|
1314
1689
|
}
|
|
1315
1690
|
}
|
|
1691
|
+
/**
|
|
1692
|
+
* Given a background tone, find a foreground tone, while ensuring they reach
|
|
1693
|
+
* a contrast ratio that is as close to [ratio] as possible.
|
|
1694
|
+
*
|
|
1695
|
+
* @param bgTone Tone in HCT. Range is 0 to 100, undefined behavior when it
|
|
1696
|
+
* falls outside that range.
|
|
1697
|
+
* @param ratio The contrast ratio desired between bgTone and the return
|
|
1698
|
+
* value.
|
|
1699
|
+
*/
|
|
1316
1700
|
static foregroundTone(bgTone, ratio) {
|
|
1317
1701
|
const lighterTone = Contrast.lighterUnsafe(bgTone, ratio);
|
|
1318
1702
|
const darkerTone = Contrast.darkerUnsafe(bgTone, ratio);
|
|
1319
1703
|
const lighterRatio = Contrast.ratioOfTones(lighterTone, bgTone);
|
|
1320
1704
|
const darkerRatio = Contrast.ratioOfTones(darkerTone, bgTone);
|
|
1321
|
-
const preferLighter =
|
|
1705
|
+
const preferLighter = _DynamicColor.tonePrefersLightForeground(bgTone);
|
|
1322
1706
|
if (preferLighter) {
|
|
1323
1707
|
const negligibleDifference = Math.abs(lighterRatio - darkerRatio) < 0.1 && lighterRatio < ratio && darkerRatio < ratio;
|
|
1324
1708
|
return lighterRatio >= ratio || lighterRatio >= darkerRatio || negligibleDifference ? lighterTone : darkerTone;
|
|
@@ -1326,32 +1710,64 @@ var DynamicColor = class {
|
|
|
1326
1710
|
return darkerRatio >= ratio || darkerRatio >= lighterRatio ? darkerTone : lighterTone;
|
|
1327
1711
|
}
|
|
1328
1712
|
}
|
|
1713
|
+
/**
|
|
1714
|
+
* Returns whether [tone] prefers a light foreground.
|
|
1715
|
+
*
|
|
1716
|
+
* People prefer white foregrounds on ~T60-70. Observed over time, and also
|
|
1717
|
+
* by Andrew Somers during research for APCA.
|
|
1718
|
+
*
|
|
1719
|
+
* T60 used as to create the smallest discontinuity possible when skipping
|
|
1720
|
+
* down to T49 in order to ensure light foregrounds.
|
|
1721
|
+
* Since `tertiaryContainer` in dark monochrome scheme requires a tone of
|
|
1722
|
+
* 60, it should not be adjusted. Therefore, 60 is excluded here.
|
|
1723
|
+
*/
|
|
1329
1724
|
static tonePrefersLightForeground(tone) {
|
|
1330
1725
|
return Math.round(tone) < 60;
|
|
1331
1726
|
}
|
|
1727
|
+
/**
|
|
1728
|
+
* Returns whether [tone] can reach a contrast ratio of 4.5 with a lighter
|
|
1729
|
+
* color.
|
|
1730
|
+
*/
|
|
1332
1731
|
static toneAllowsLightForeground(tone) {
|
|
1333
1732
|
return Math.round(tone) <= 49;
|
|
1334
1733
|
}
|
|
1734
|
+
/**
|
|
1735
|
+
* Adjust a tone such that white has 4.5 contrast, if the tone is
|
|
1736
|
+
* reasonably close to supporting it.
|
|
1737
|
+
*/
|
|
1335
1738
|
static enableLightForeground(tone) {
|
|
1336
|
-
if (
|
|
1739
|
+
if (_DynamicColor.tonePrefersLightForeground(tone) && !_DynamicColor.toneAllowsLightForeground(tone)) {
|
|
1337
1740
|
return 49;
|
|
1338
1741
|
}
|
|
1339
1742
|
return tone;
|
|
1340
1743
|
}
|
|
1341
1744
|
};
|
|
1342
1745
|
|
|
1343
|
-
// node_modules/@material/material-color-utilities/palettes/tonal_palette.js
|
|
1344
|
-
var TonalPalette = class {
|
|
1746
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/palettes/tonal_palette.js
|
|
1747
|
+
var TonalPalette = class _TonalPalette {
|
|
1748
|
+
/**
|
|
1749
|
+
* @param argb ARGB representation of a color
|
|
1750
|
+
* @return Tones matching that color's hue and chroma.
|
|
1751
|
+
*/
|
|
1345
1752
|
static fromInt(argb) {
|
|
1346
1753
|
const hct = Hct.fromInt(argb);
|
|
1347
|
-
return
|
|
1754
|
+
return _TonalPalette.fromHct(hct);
|
|
1348
1755
|
}
|
|
1756
|
+
/**
|
|
1757
|
+
* @param hct Hct
|
|
1758
|
+
* @return Tones matching that color's hue and chroma.
|
|
1759
|
+
*/
|
|
1349
1760
|
static fromHct(hct) {
|
|
1350
|
-
return new
|
|
1761
|
+
return new _TonalPalette(hct.hue, hct.chroma, hct);
|
|
1351
1762
|
}
|
|
1763
|
+
/**
|
|
1764
|
+
* @param hue HCT hue
|
|
1765
|
+
* @param chroma HCT chroma
|
|
1766
|
+
* @return Tones matching hue and chroma.
|
|
1767
|
+
*/
|
|
1352
1768
|
static fromHueAndChroma(hue, chroma) {
|
|
1353
1769
|
const keyColor = new KeyColor(hue, chroma).create();
|
|
1354
|
-
return new
|
|
1770
|
+
return new _TonalPalette(hue, chroma, keyColor);
|
|
1355
1771
|
}
|
|
1356
1772
|
constructor(hue, chroma, keyColor) {
|
|
1357
1773
|
this.hue = hue;
|
|
@@ -1359,6 +1775,10 @@ var TonalPalette = class {
|
|
|
1359
1775
|
this.keyColor = keyColor;
|
|
1360
1776
|
this.cache = /* @__PURE__ */ new Map();
|
|
1361
1777
|
}
|
|
1778
|
+
/**
|
|
1779
|
+
* @param tone HCT tone, measured from 0 to 100.
|
|
1780
|
+
* @return ARGB representation of a color with that tone.
|
|
1781
|
+
*/
|
|
1362
1782
|
tone(tone) {
|
|
1363
1783
|
let argb = this.cache.get(tone);
|
|
1364
1784
|
if (argb === void 0) {
|
|
@@ -1367,6 +1787,10 @@ var TonalPalette = class {
|
|
|
1367
1787
|
}
|
|
1368
1788
|
return argb;
|
|
1369
1789
|
}
|
|
1790
|
+
/**
|
|
1791
|
+
* @param tone HCT tone.
|
|
1792
|
+
* @return HCT representation of a color with that tone.
|
|
1793
|
+
*/
|
|
1370
1794
|
getHct(tone) {
|
|
1371
1795
|
return Hct.fromInt(this.tone(tone));
|
|
1372
1796
|
}
|
|
@@ -1378,6 +1802,13 @@ var KeyColor = class {
|
|
|
1378
1802
|
this.chromaCache = /* @__PURE__ */ new Map();
|
|
1379
1803
|
this.maxChromaValue = 200;
|
|
1380
1804
|
}
|
|
1805
|
+
/**
|
|
1806
|
+
* Creates a key color from a [hue] and a [chroma].
|
|
1807
|
+
* The key color is the first tone, starting from T50, matching the given hue
|
|
1808
|
+
* and chroma.
|
|
1809
|
+
*
|
|
1810
|
+
* @return Key color [Hct]
|
|
1811
|
+
*/
|
|
1381
1812
|
create() {
|
|
1382
1813
|
const pivotTone = 50;
|
|
1383
1814
|
const toneStepSize = 1;
|
|
@@ -1407,6 +1838,7 @@ var KeyColor = class {
|
|
|
1407
1838
|
}
|
|
1408
1839
|
return Hct.from(this.hue, this.requestedChroma, lowerTone);
|
|
1409
1840
|
}
|
|
1841
|
+
// Find the maximum chroma for a given tone
|
|
1410
1842
|
maxChroma(tone) {
|
|
1411
1843
|
if (this.chromaCache.has(tone)) {
|
|
1412
1844
|
return this.chromaCache.get(tone);
|
|
@@ -1417,14 +1849,29 @@ var KeyColor = class {
|
|
|
1417
1849
|
}
|
|
1418
1850
|
};
|
|
1419
1851
|
|
|
1420
|
-
// node_modules/@material/material-color-utilities/dynamiccolor/contrast_curve.js
|
|
1852
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/dynamiccolor/contrast_curve.js
|
|
1421
1853
|
var ContrastCurve = class {
|
|
1854
|
+
/**
|
|
1855
|
+
* Creates a `ContrastCurve` object.
|
|
1856
|
+
*
|
|
1857
|
+
* @param low Value for contrast level -1.0
|
|
1858
|
+
* @param normal Value for contrast level 0.0
|
|
1859
|
+
* @param medium Value for contrast level 0.5
|
|
1860
|
+
* @param high Value for contrast level 1.0
|
|
1861
|
+
*/
|
|
1422
1862
|
constructor(low, normal, medium, high) {
|
|
1423
1863
|
this.low = low;
|
|
1424
1864
|
this.normal = normal;
|
|
1425
1865
|
this.medium = medium;
|
|
1426
1866
|
this.high = high;
|
|
1427
1867
|
}
|
|
1868
|
+
/**
|
|
1869
|
+
* Returns the value at a given contrast level.
|
|
1870
|
+
*
|
|
1871
|
+
* @param contrastLevel The contrast level. 0.0 is the default (normal); -1.0
|
|
1872
|
+
* is the lowest; 1.0 is the highest.
|
|
1873
|
+
* @return The value. For contrast ratios, a number between 1.0 and 21.0.
|
|
1874
|
+
*/
|
|
1428
1875
|
get(contrastLevel) {
|
|
1429
1876
|
if (contrastLevel <= -1) {
|
|
1430
1877
|
return this.low;
|
|
@@ -1440,8 +1887,31 @@ var ContrastCurve = class {
|
|
|
1440
1887
|
}
|
|
1441
1888
|
};
|
|
1442
1889
|
|
|
1443
|
-
// node_modules/@material/material-color-utilities/dynamiccolor/tone_delta_pair.js
|
|
1890
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/dynamiccolor/tone_delta_pair.js
|
|
1444
1891
|
var ToneDeltaPair = class {
|
|
1892
|
+
/**
|
|
1893
|
+
* Documents a constraint in tone distance between two DynamicColors.
|
|
1894
|
+
*
|
|
1895
|
+
* The polarity is an adjective that describes "A", compared to "B".
|
|
1896
|
+
*
|
|
1897
|
+
* For instance, ToneDeltaPair(A, B, 15, 'darker', stayTogether) states that
|
|
1898
|
+
* A's tone should be at least 15 darker than B's.
|
|
1899
|
+
*
|
|
1900
|
+
* 'nearer' and 'farther' describes closeness to the surface roles. For
|
|
1901
|
+
* instance, ToneDeltaPair(A, B, 10, 'nearer', stayTogether) states that A
|
|
1902
|
+
* should be 10 lighter than B in light mode, and 10 darker than B in dark
|
|
1903
|
+
* mode.
|
|
1904
|
+
*
|
|
1905
|
+
* @param roleA The first role in a pair.
|
|
1906
|
+
* @param roleB The second role in a pair.
|
|
1907
|
+
* @param delta Required difference between tones. Absolute value, negative
|
|
1908
|
+
* values have undefined behavior.
|
|
1909
|
+
* @param polarity The relative relation between tones of roleA and roleB,
|
|
1910
|
+
* as described above.
|
|
1911
|
+
* @param stayTogether Whether these two roles should stay on the same side of
|
|
1912
|
+
* the "awkward zone" (T50-59). This is necessary for certain cases where
|
|
1913
|
+
* one role has two backgrounds.
|
|
1914
|
+
*/
|
|
1445
1915
|
constructor(roleA, roleB, delta, polarity, stayTogether) {
|
|
1446
1916
|
this.roleA = roleA;
|
|
1447
1917
|
this.roleB = roleB;
|
|
@@ -1451,7 +1921,7 @@ var ToneDeltaPair = class {
|
|
|
1451
1921
|
}
|
|
1452
1922
|
};
|
|
1453
1923
|
|
|
1454
|
-
// node_modules/@material/material-color-utilities/dynamiccolor/variant.js
|
|
1924
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/dynamiccolor/variant.js
|
|
1455
1925
|
var Variant;
|
|
1456
1926
|
(function(Variant2) {
|
|
1457
1927
|
Variant2[Variant2["MONOCHROME"] = 0] = "MONOCHROME";
|
|
@@ -1465,7 +1935,7 @@ var Variant;
|
|
|
1465
1935
|
Variant2[Variant2["FRUIT_SALAD"] = 8] = "FRUIT_SALAD";
|
|
1466
1936
|
})(Variant || (Variant = {}));
|
|
1467
1937
|
|
|
1468
|
-
// node_modules/@material/material-color-utilities/dynamiccolor/material_dynamic_colors.js
|
|
1938
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/dynamiccolor/material_dynamic_colors.js
|
|
1469
1939
|
function isFidelity(scheme) {
|
|
1470
1940
|
return scheme.variant === Variant.FIDELITY || scheme.variant === Variant.CONTENT;
|
|
1471
1941
|
}
|
|
@@ -1496,9 +1966,9 @@ function findDesiredChromaByTone(hue, chroma, tone, byDecreasingTone) {
|
|
|
1496
1966
|
}
|
|
1497
1967
|
return answer;
|
|
1498
1968
|
}
|
|
1499
|
-
var MaterialDynamicColors = class {
|
|
1969
|
+
var MaterialDynamicColors = class _MaterialDynamicColors {
|
|
1500
1970
|
static highestSurface(s) {
|
|
1501
|
-
return s.isDark ?
|
|
1971
|
+
return s.isDark ? _MaterialDynamicColors.surfaceBright : _MaterialDynamicColors.surfaceDim;
|
|
1502
1972
|
}
|
|
1503
1973
|
};
|
|
1504
1974
|
MaterialDynamicColors.contentAccentToneDelta = 15;
|
|
@@ -1969,7 +2439,7 @@ MaterialDynamicColors.onTertiaryFixedVariant = DynamicColor.fromPalette({
|
|
|
1969
2439
|
contrastCurve: new ContrastCurve(3, 4.5, 7, 11)
|
|
1970
2440
|
});
|
|
1971
2441
|
|
|
1972
|
-
// node_modules/@material/material-color-utilities/dynamiccolor/dynamic_scheme.js
|
|
2442
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/dynamiccolor/dynamic_scheme.js
|
|
1973
2443
|
var DynamicScheme = class {
|
|
1974
2444
|
constructor(args) {
|
|
1975
2445
|
this.sourceColorArgb = args.sourceColorArgb;
|
|
@@ -1984,6 +2454,16 @@ var DynamicScheme = class {
|
|
|
1984
2454
|
this.neutralVariantPalette = args.neutralVariantPalette;
|
|
1985
2455
|
this.errorPalette = TonalPalette.fromHueAndChroma(25, 84);
|
|
1986
2456
|
}
|
|
2457
|
+
/**
|
|
2458
|
+
* Support design spec'ing Dynamic Color by schemes that specify hue
|
|
2459
|
+
* rotations that should be applied at certain breakpoints.
|
|
2460
|
+
* @param sourceColor the source color of the theme, in HCT.
|
|
2461
|
+
* @param hues The "breakpoints", i.e. the hues at which a rotation should
|
|
2462
|
+
* be apply.
|
|
2463
|
+
* @param rotations The rotation that should be applied when source color's
|
|
2464
|
+
* hue is >= the same index in hues array, and <= the hue at the next index
|
|
2465
|
+
* in hues array.
|
|
2466
|
+
*/
|
|
1987
2467
|
static getRotatedHue(sourceColor, hues, rotations) {
|
|
1988
2468
|
const sourceHue = sourceColor.hue;
|
|
1989
2469
|
if (hues.length !== rotations.length) {
|
|
@@ -2172,8 +2652,8 @@ var DynamicScheme = class {
|
|
|
2172
2652
|
}
|
|
2173
2653
|
};
|
|
2174
2654
|
|
|
2175
|
-
// node_modules/@material/material-color-utilities/temperature/temperature_cache.js
|
|
2176
|
-
var TemperatureCache = class {
|
|
2655
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/temperature/temperature_cache.js
|
|
2656
|
+
var TemperatureCache = class _TemperatureCache {
|
|
2177
2657
|
constructor(input) {
|
|
2178
2658
|
this.input = input;
|
|
2179
2659
|
this.hctsByTempCache = [];
|
|
@@ -2198,6 +2678,19 @@ var TemperatureCache = class {
|
|
|
2198
2678
|
get coldest() {
|
|
2199
2679
|
return this.hctsByTemp[0];
|
|
2200
2680
|
}
|
|
2681
|
+
/**
|
|
2682
|
+
* A set of colors with differing hues, equidistant in temperature.
|
|
2683
|
+
*
|
|
2684
|
+
* In art, this is usually described as a set of 5 colors on a color wheel
|
|
2685
|
+
* divided into 12 sections. This method allows provision of either of those
|
|
2686
|
+
* values.
|
|
2687
|
+
*
|
|
2688
|
+
* Behavior is undefined when [count] or [divisions] is 0.
|
|
2689
|
+
* When divisions < count, colors repeat.
|
|
2690
|
+
*
|
|
2691
|
+
* [count] The number of colors to return, includes the input color.
|
|
2692
|
+
* [divisions] The number of divisions on the color wheel.
|
|
2693
|
+
*/
|
|
2201
2694
|
analogous(count = 5, divisions = 12) {
|
|
2202
2695
|
const startHue = Math.round(this.input.hue);
|
|
2203
2696
|
const startHct = this.hctsByHue[startHue];
|
|
@@ -2265,6 +2758,13 @@ var TemperatureCache = class {
|
|
|
2265
2758
|
}
|
|
2266
2759
|
return answers;
|
|
2267
2760
|
}
|
|
2761
|
+
/**
|
|
2762
|
+
* A color that complements the input color aesthetically.
|
|
2763
|
+
*
|
|
2764
|
+
* In art, this is usually described as being across the color wheel.
|
|
2765
|
+
* History of this shows intent as a color that is just as cool-warm as the
|
|
2766
|
+
* input color is warm-cool.
|
|
2767
|
+
*/
|
|
2268
2768
|
get complement() {
|
|
2269
2769
|
if (this.complementCache != null) {
|
|
2270
2770
|
return this.complementCache;
|
|
@@ -2274,7 +2774,7 @@ var TemperatureCache = class {
|
|
|
2274
2774
|
const warmestHue = this.warmest.hue;
|
|
2275
2775
|
const warmestTemp = this.tempsByHct.get(this.warmest);
|
|
2276
2776
|
const range = warmestTemp - coldestTemp;
|
|
2277
|
-
const startHueIsColdestToWarmest =
|
|
2777
|
+
const startHueIsColdestToWarmest = _TemperatureCache.isBetween(this.input.hue, coldestHue, warmestHue);
|
|
2278
2778
|
const startHue = startHueIsColdestToWarmest ? warmestHue : coldestHue;
|
|
2279
2779
|
const endHue = startHueIsColdestToWarmest ? coldestHue : warmestHue;
|
|
2280
2780
|
const directionOfRotation = 1;
|
|
@@ -2283,7 +2783,7 @@ var TemperatureCache = class {
|
|
|
2283
2783
|
const complementRelativeTemp = 1 - this.inputRelativeTemperature;
|
|
2284
2784
|
for (let hueAddend = 0; hueAddend <= 360; hueAddend += 1) {
|
|
2285
2785
|
const hue = sanitizeDegreesDouble(startHue + directionOfRotation * hueAddend);
|
|
2286
|
-
if (!
|
|
2786
|
+
if (!_TemperatureCache.isBetween(hue, startHue, endHue)) {
|
|
2287
2787
|
continue;
|
|
2288
2788
|
}
|
|
2289
2789
|
const possibleAnswer = this.hctsByHue[Math.round(hue)];
|
|
@@ -2297,6 +2797,10 @@ var TemperatureCache = class {
|
|
|
2297
2797
|
this.complementCache = answer;
|
|
2298
2798
|
return this.complementCache;
|
|
2299
2799
|
}
|
|
2800
|
+
/**
|
|
2801
|
+
* Temperature relative to all colors with the same chroma and tone.
|
|
2802
|
+
* Value on a scale from 0 to 1.
|
|
2803
|
+
*/
|
|
2300
2804
|
relativeTemperature(hct) {
|
|
2301
2805
|
const range = this.tempsByHct.get(this.warmest) - this.tempsByHct.get(this.coldest);
|
|
2302
2806
|
const differenceFromColdest = this.tempsByHct.get(hct) - this.tempsByHct.get(this.coldest);
|
|
@@ -2305,6 +2809,7 @@ var TemperatureCache = class {
|
|
|
2305
2809
|
}
|
|
2306
2810
|
return differenceFromColdest / range;
|
|
2307
2811
|
}
|
|
2812
|
+
/** Relative temperature of the input color. See [relativeTemperature]. */
|
|
2308
2813
|
get inputRelativeTemperature() {
|
|
2309
2814
|
if (this.inputRelativeTemperatureCache >= 0) {
|
|
2310
2815
|
return this.inputRelativeTemperatureCache;
|
|
@@ -2312,6 +2817,7 @@ var TemperatureCache = class {
|
|
|
2312
2817
|
this.inputRelativeTemperatureCache = this.relativeTemperature(this.input);
|
|
2313
2818
|
return this.inputRelativeTemperatureCache;
|
|
2314
2819
|
}
|
|
2820
|
+
/** A Map with keys of HCTs in [hctsByTemp], values of raw temperature. */
|
|
2315
2821
|
get tempsByHct() {
|
|
2316
2822
|
if (this.tempsByHctCache.size > 0) {
|
|
2317
2823
|
return this.tempsByHctCache;
|
|
@@ -2319,11 +2825,15 @@ var TemperatureCache = class {
|
|
|
2319
2825
|
const allHcts = this.hctsByHue.concat([this.input]);
|
|
2320
2826
|
const temperaturesByHct = /* @__PURE__ */ new Map();
|
|
2321
2827
|
for (const e of allHcts) {
|
|
2322
|
-
temperaturesByHct.set(e,
|
|
2828
|
+
temperaturesByHct.set(e, _TemperatureCache.rawTemperature(e));
|
|
2323
2829
|
}
|
|
2324
2830
|
this.tempsByHctCache = temperaturesByHct;
|
|
2325
2831
|
return temperaturesByHct;
|
|
2326
2832
|
}
|
|
2833
|
+
/**
|
|
2834
|
+
* HCTs for all hues, with the same chroma/tone as the input.
|
|
2835
|
+
* Sorted ascending, hue 0 to 360.
|
|
2836
|
+
*/
|
|
2327
2837
|
get hctsByHue() {
|
|
2328
2838
|
if (this.hctsByHueCache.length > 0) {
|
|
2329
2839
|
return this.hctsByHueCache;
|
|
@@ -2336,12 +2846,32 @@ var TemperatureCache = class {
|
|
|
2336
2846
|
this.hctsByHueCache = hcts;
|
|
2337
2847
|
return this.hctsByHueCache;
|
|
2338
2848
|
}
|
|
2849
|
+
/** Determines if an angle is between two other angles, rotating clockwise. */
|
|
2339
2850
|
static isBetween(angle, a, b) {
|
|
2340
2851
|
if (a < b) {
|
|
2341
2852
|
return a <= angle && angle <= b;
|
|
2342
2853
|
}
|
|
2343
2854
|
return a <= angle || angle <= b;
|
|
2344
2855
|
}
|
|
2856
|
+
/**
|
|
2857
|
+
* Value representing cool-warm factor of a color.
|
|
2858
|
+
* Values below 0 are considered cool, above, warm.
|
|
2859
|
+
*
|
|
2860
|
+
* Color science has researched emotion and harmony, which art uses to select
|
|
2861
|
+
* colors. Warm-cool is the foundation of analogous and complementary colors.
|
|
2862
|
+
* See:
|
|
2863
|
+
* - Li-Chen Ou's Chapter 19 in Handbook of Color Psychology (2015).
|
|
2864
|
+
* - Josef Albers' Interaction of Color chapters 19 and 21.
|
|
2865
|
+
*
|
|
2866
|
+
* Implementation of Ou, Woodcock and Wright's algorithm, which uses
|
|
2867
|
+
* L*a*b* / LCH color space.
|
|
2868
|
+
* Return value has these properties:
|
|
2869
|
+
* - Values below 0 are cool, above 0 are warm.
|
|
2870
|
+
* - Lower bound: -0.52 - (chroma ^ 1.07 / 20). L*a*b* chroma is infinite.
|
|
2871
|
+
* Assuming max of 130 chroma, -9.66.
|
|
2872
|
+
* - Upper bound: -0.52 + (chroma ^ 1.07 / 20). L*a*b* chroma is infinite.
|
|
2873
|
+
* Assuming max of 130 chroma, 8.61.
|
|
2874
|
+
*/
|
|
2345
2875
|
static rawTemperature(color) {
|
|
2346
2876
|
const lab = labFromArgb(color.toInt());
|
|
2347
2877
|
const hue = sanitizeDegreesDouble(Math.atan2(lab[2], lab[1]) * 180 / Math.PI);
|
|
@@ -2351,8 +2881,8 @@ var TemperatureCache = class {
|
|
|
2351
2881
|
}
|
|
2352
2882
|
};
|
|
2353
2883
|
|
|
2354
|
-
// node_modules/@material/material-color-utilities/scheme/scheme_expressive.js
|
|
2355
|
-
var SchemeExpressive = class extends DynamicScheme {
|
|
2884
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/scheme/scheme_expressive.js
|
|
2885
|
+
var SchemeExpressive = class _SchemeExpressive extends DynamicScheme {
|
|
2356
2886
|
constructor(sourceColorHct, isDark, contrastLevel) {
|
|
2357
2887
|
super({
|
|
2358
2888
|
sourceColorArgb: sourceColorHct.toInt(),
|
|
@@ -2360,8 +2890,8 @@ var SchemeExpressive = class extends DynamicScheme {
|
|
|
2360
2890
|
contrastLevel,
|
|
2361
2891
|
isDark,
|
|
2362
2892
|
primaryPalette: TonalPalette.fromHueAndChroma(sanitizeDegreesDouble(sourceColorHct.hue + 240), 40),
|
|
2363
|
-
secondaryPalette: TonalPalette.fromHueAndChroma(DynamicScheme.getRotatedHue(sourceColorHct,
|
|
2364
|
-
tertiaryPalette: TonalPalette.fromHueAndChroma(DynamicScheme.getRotatedHue(sourceColorHct,
|
|
2893
|
+
secondaryPalette: TonalPalette.fromHueAndChroma(DynamicScheme.getRotatedHue(sourceColorHct, _SchemeExpressive.hues, _SchemeExpressive.secondaryRotations), 24),
|
|
2894
|
+
tertiaryPalette: TonalPalette.fromHueAndChroma(DynamicScheme.getRotatedHue(sourceColorHct, _SchemeExpressive.hues, _SchemeExpressive.tertiaryRotations), 32),
|
|
2365
2895
|
neutralPalette: TonalPalette.fromHueAndChroma(sourceColorHct.hue + 15, 8),
|
|
2366
2896
|
neutralVariantPalette: TonalPalette.fromHueAndChroma(sourceColorHct.hue + 15, 12)
|
|
2367
2897
|
});
|
|
@@ -2401,8 +2931,8 @@ SchemeExpressive.tertiaryRotations = [
|
|
|
2401
2931
|
120
|
|
2402
2932
|
];
|
|
2403
2933
|
|
|
2404
|
-
// node_modules/@material/material-color-utilities/scheme/scheme_vibrant.js
|
|
2405
|
-
var SchemeVibrant = class extends DynamicScheme {
|
|
2934
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/scheme/scheme_vibrant.js
|
|
2935
|
+
var SchemeVibrant = class _SchemeVibrant extends DynamicScheme {
|
|
2406
2936
|
constructor(sourceColorHct, isDark, contrastLevel) {
|
|
2407
2937
|
super({
|
|
2408
2938
|
sourceColorArgb: sourceColorHct.toInt(),
|
|
@@ -2410,8 +2940,8 @@ var SchemeVibrant = class extends DynamicScheme {
|
|
|
2410
2940
|
contrastLevel,
|
|
2411
2941
|
isDark,
|
|
2412
2942
|
primaryPalette: TonalPalette.fromHueAndChroma(sourceColorHct.hue, 200),
|
|
2413
|
-
secondaryPalette: TonalPalette.fromHueAndChroma(DynamicScheme.getRotatedHue(sourceColorHct,
|
|
2414
|
-
tertiaryPalette: TonalPalette.fromHueAndChroma(DynamicScheme.getRotatedHue(sourceColorHct,
|
|
2943
|
+
secondaryPalette: TonalPalette.fromHueAndChroma(DynamicScheme.getRotatedHue(sourceColorHct, _SchemeVibrant.hues, _SchemeVibrant.secondaryRotations), 24),
|
|
2944
|
+
tertiaryPalette: TonalPalette.fromHueAndChroma(DynamicScheme.getRotatedHue(sourceColorHct, _SchemeVibrant.hues, _SchemeVibrant.tertiaryRotations), 32),
|
|
2415
2945
|
neutralPalette: TonalPalette.fromHueAndChroma(sourceColorHct.hue, 10),
|
|
2416
2946
|
neutralVariantPalette: TonalPalette.fromHueAndChroma(sourceColorHct.hue, 12)
|
|
2417
2947
|
});
|
|
@@ -2451,11 +2981,12 @@ SchemeVibrant.tertiaryRotations = [
|
|
|
2451
2981
|
25
|
|
2452
2982
|
];
|
|
2453
2983
|
|
|
2454
|
-
// node_modules/@material/material-color-utilities/score/score.js
|
|
2984
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/score/score.js
|
|
2455
2985
|
var SCORE_OPTION_DEFAULTS = {
|
|
2456
2986
|
desired: 4,
|
|
2457
2987
|
fallbackColorARGB: 4282549748,
|
|
2458
2988
|
filter: true
|
|
2989
|
+
// Avoid unsuitable colors.
|
|
2459
2990
|
};
|
|
2460
2991
|
function compare(a, b) {
|
|
2461
2992
|
if (a.score > b.score) {
|
|
@@ -2465,9 +2996,22 @@ function compare(a, b) {
|
|
|
2465
2996
|
}
|
|
2466
2997
|
return 0;
|
|
2467
2998
|
}
|
|
2468
|
-
var Score = class {
|
|
2999
|
+
var Score = class _Score {
|
|
2469
3000
|
constructor() {
|
|
2470
3001
|
}
|
|
3002
|
+
/**
|
|
3003
|
+
* Given a map with keys of colors and values of how often the color appears,
|
|
3004
|
+
* rank the colors based on suitability for being used for a UI theme.
|
|
3005
|
+
*
|
|
3006
|
+
* @param colorsToPopulation map with keys of colors and values of how often
|
|
3007
|
+
* the color appears, usually from a source image.
|
|
3008
|
+
* @param {ScoreOptions} options optional parameters.
|
|
3009
|
+
* @return Colors sorted by suitability for a UI theme. The most suitable
|
|
3010
|
+
* color is the first item, the least suitable is the last. There will
|
|
3011
|
+
* always be at least one color returned. If all the input colors
|
|
3012
|
+
* were not suitable for a theme, a default fallback color will be
|
|
3013
|
+
* provided, Google Blue.
|
|
3014
|
+
*/
|
|
2471
3015
|
static score(colorsToPopulation, options) {
|
|
2472
3016
|
const { desired, fallbackColorARGB, filter } = __spreadValues(__spreadValues({}, SCORE_OPTION_DEFAULTS), options);
|
|
2473
3017
|
const colorsHct = [];
|
|
@@ -2492,12 +3036,12 @@ var Score = class {
|
|
|
2492
3036
|
for (const hct of colorsHct) {
|
|
2493
3037
|
const hue = sanitizeDegreesInt(Math.round(hct.hue));
|
|
2494
3038
|
const proportion = hueExcitedProportions[hue];
|
|
2495
|
-
if (filter && (hct.chroma <
|
|
3039
|
+
if (filter && (hct.chroma < _Score.CUTOFF_CHROMA || proportion <= _Score.CUTOFF_EXCITED_PROPORTION)) {
|
|
2496
3040
|
continue;
|
|
2497
3041
|
}
|
|
2498
|
-
const proportionScore = proportion * 100 *
|
|
2499
|
-
const chromaWeight = hct.chroma <
|
|
2500
|
-
const chromaScore = (hct.chroma -
|
|
3042
|
+
const proportionScore = proportion * 100 * _Score.WEIGHT_PROPORTION;
|
|
3043
|
+
const chromaWeight = hct.chroma < _Score.TARGET_CHROMA ? _Score.WEIGHT_CHROMA_BELOW : _Score.WEIGHT_CHROMA_ABOVE;
|
|
3044
|
+
const chromaScore = (hct.chroma - _Score.TARGET_CHROMA) * chromaWeight;
|
|
2501
3045
|
const score = proportionScore + chromaScore;
|
|
2502
3046
|
scoredHct.push({ hct, score });
|
|
2503
3047
|
}
|
|
@@ -2535,7 +3079,7 @@ Score.WEIGHT_CHROMA_BELOW = 0.1;
|
|
|
2535
3079
|
Score.CUTOFF_CHROMA = 5;
|
|
2536
3080
|
Score.CUTOFF_EXCITED_PROPORTION = 0.01;
|
|
2537
3081
|
|
|
2538
|
-
// node_modules/@material/material-color-utilities/utils/string_utils.js
|
|
3082
|
+
// node_modules/.aspect_rules_js/@material+material-color-utilities@0.3.0/node_modules/@material/material-color-utilities/utils/string_utils.js
|
|
2539
3083
|
function hexFromArgb(argb) {
|
|
2540
3084
|
const r = redFromArgb(argb);
|
|
2541
3085
|
const g = greenFromArgb(argb);
|
|
@@ -2578,7 +3122,7 @@ function parseIntHex(value) {
|
|
|
2578
3122
|
return parseInt(value, 16);
|
|
2579
3123
|
}
|
|
2580
3124
|
|
|
2581
|
-
//
|
|
3125
|
+
// src/material/schematics/ng-generate/theme-color/index.ts
|
|
2582
3126
|
var HUE_TONES = [0, 10, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100];
|
|
2583
3127
|
var NEUTRAL_HUES = /* @__PURE__ */ new Map([
|
|
2584
3128
|
[4, { prev: 0, next: 10 }],
|
|
@@ -2597,13 +3141,16 @@ function getHctFromHex(color) {
|
|
|
2597
3141
|
try {
|
|
2598
3142
|
return Hct.fromInt(argbFromHex(color));
|
|
2599
3143
|
} catch (e) {
|
|
2600
|
-
throw new Error(
|
|
3144
|
+
throw new Error(
|
|
3145
|
+
"Cannot parse the specified color " + color + ". Please verify it is a hex color (ex. #ffffff or ffffff)."
|
|
3146
|
+
);
|
|
2601
3147
|
}
|
|
2602
3148
|
}
|
|
2603
3149
|
function getMaterialDynamicScheme(primaryPalette, secondaryPalette, tertiaryPalette, neutralPalette, neutralVariantPalette, isDark, contrastLevel) {
|
|
2604
3150
|
return new DynamicScheme({
|
|
2605
3151
|
sourceColorArgb: primaryPalette.keyColor.toInt(),
|
|
2606
3152
|
variant: 6,
|
|
3153
|
+
// Variant.FIDELITY, used number representation since enum is not accessible outside of @material/material-color-utilities
|
|
2607
3154
|
contrastLevel,
|
|
2608
3155
|
isDark,
|
|
2609
3156
|
primaryPalette,
|
|
@@ -2620,25 +3167,38 @@ function getColorPalettes(primaryColor, secondaryColor, tertiaryColor, neutralCo
|
|
|
2620
3167
|
if (secondaryColor) {
|
|
2621
3168
|
secondaryPalette = TonalPalette.fromHct(getHctFromHex(secondaryColor));
|
|
2622
3169
|
} else {
|
|
2623
|
-
secondaryPalette = TonalPalette.fromHueAndChroma(
|
|
3170
|
+
secondaryPalette = TonalPalette.fromHueAndChroma(
|
|
3171
|
+
primaryColorHct.hue,
|
|
3172
|
+
Math.max(primaryColorHct.chroma - 32, primaryColorHct.chroma * 0.5)
|
|
3173
|
+
);
|
|
2624
3174
|
}
|
|
2625
3175
|
let tertiaryPalette;
|
|
2626
3176
|
if (tertiaryColor) {
|
|
2627
3177
|
tertiaryPalette = TonalPalette.fromHct(getHctFromHex(tertiaryColor));
|
|
2628
3178
|
} else {
|
|
2629
|
-
tertiaryPalette = TonalPalette.fromInt(
|
|
3179
|
+
tertiaryPalette = TonalPalette.fromInt(
|
|
3180
|
+
DislikeAnalyzer.fixIfDisliked(
|
|
3181
|
+
new TemperatureCache(primaryColorHct).analogous(3, 6)[2]
|
|
3182
|
+
).toInt()
|
|
3183
|
+
);
|
|
2630
3184
|
}
|
|
2631
3185
|
let neutralPalette;
|
|
2632
3186
|
if (neutralColor) {
|
|
2633
3187
|
neutralPalette = TonalPalette.fromHct(getHctFromHex(neutralColor));
|
|
2634
3188
|
} else {
|
|
2635
|
-
neutralPalette = TonalPalette.fromHueAndChroma(
|
|
3189
|
+
neutralPalette = TonalPalette.fromHueAndChroma(
|
|
3190
|
+
primaryColorHct.hue,
|
|
3191
|
+
primaryColorHct.chroma / 8
|
|
3192
|
+
);
|
|
2636
3193
|
}
|
|
2637
3194
|
let neutralVariantPalette;
|
|
2638
3195
|
if (neutralVariantColor) {
|
|
2639
3196
|
neutralVariantPalette = TonalPalette.fromHct(getHctFromHex(neutralVariantColor));
|
|
2640
3197
|
} else {
|
|
2641
|
-
neutralVariantPalette = TonalPalette.fromHueAndChroma(
|
|
3198
|
+
neutralVariantPalette = TonalPalette.fromHueAndChroma(
|
|
3199
|
+
primaryColorHct.hue,
|
|
3200
|
+
primaryColorHct.chroma / 8 + 4
|
|
3201
|
+
);
|
|
2642
3202
|
}
|
|
2643
3203
|
let errorPalette;
|
|
2644
3204
|
if (errorColor) {
|
|
@@ -2650,7 +3210,9 @@ function getColorPalettes(primaryColor, secondaryColor, tertiaryColor, neutralCo
|
|
|
2650
3210
|
tertiaryPalette,
|
|
2651
3211
|
neutralPalette,
|
|
2652
3212
|
neutralVariantPalette,
|
|
3213
|
+
/* isDark */
|
|
2653
3214
|
false,
|
|
3215
|
+
/* contrastLevel */
|
|
2654
3216
|
0
|
|
2655
3217
|
).errorPalette;
|
|
2656
3218
|
}
|
|
@@ -2733,6 +3295,7 @@ function getHighContrastOverides(colorScheme) {
|
|
|
2733
3295
|
overrides.set("surface", hexFromArgb(colorScheme.surface));
|
|
2734
3296
|
overrides.set("surface-dim", hexFromArgb(colorScheme.surfaceDim));
|
|
2735
3297
|
overrides.set("surface-bright", hexFromArgb(colorScheme.surfaceBright));
|
|
3298
|
+
overrides.set("surface-container-low", hexFromArgb(colorScheme.surfaceContainerLow));
|
|
2736
3299
|
overrides.set("surface-container-lowest", hexFromArgb(colorScheme.surfaceContainerLowest));
|
|
2737
3300
|
overrides.set("surface-container", hexFromArgb(colorScheme.surfaceContainer));
|
|
2738
3301
|
overrides.set("surface-container-high", hexFromArgb(colorScheme.surfaceContainerHigh));
|
|
@@ -2787,61 +3350,289 @@ function getColorSysVariablesCSS(lightScheme, darkScheme, isHighContrast = false
|
|
|
2787
3350
|
let css = "";
|
|
2788
3351
|
let leftSpacing = " ".repeat(isHighContrast ? 4 : 2);
|
|
2789
3352
|
css += leftSpacing + "/* Primary palette variables */\n";
|
|
2790
|
-
css += createLightDarkVar(
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
css += createLightDarkVar(
|
|
2797
|
-
|
|
2798
|
-
|
|
3353
|
+
css += createLightDarkVar(
|
|
3354
|
+
leftSpacing,
|
|
3355
|
+
"primary",
|
|
3356
|
+
isHighContrast ? lightScheme.primary : lightScheme.primaryPalette.tone(40),
|
|
3357
|
+
isHighContrast ? darkScheme.primary : lightScheme.primaryPalette.tone(80)
|
|
3358
|
+
);
|
|
3359
|
+
css += createLightDarkVar(
|
|
3360
|
+
leftSpacing,
|
|
3361
|
+
"on-primary",
|
|
3362
|
+
isHighContrast ? lightScheme.onPrimary : lightScheme.primaryPalette.tone(100),
|
|
3363
|
+
isHighContrast ? darkScheme.onPrimary : darkScheme.primaryPalette.tone(20)
|
|
3364
|
+
);
|
|
3365
|
+
css += createLightDarkVar(
|
|
3366
|
+
leftSpacing,
|
|
3367
|
+
"primary-container",
|
|
3368
|
+
isHighContrast ? lightScheme.primaryContainer : lightScheme.primaryPalette.tone(90),
|
|
3369
|
+
isHighContrast ? darkScheme.primaryContainer : darkScheme.primaryPalette.tone(30)
|
|
3370
|
+
);
|
|
3371
|
+
css += createLightDarkVar(
|
|
3372
|
+
leftSpacing,
|
|
3373
|
+
"on-primary-container",
|
|
3374
|
+
isHighContrast ? lightScheme.onPrimaryContainer : lightScheme.primaryPalette.tone(10),
|
|
3375
|
+
isHighContrast ? darkScheme.onPrimaryContainer : darkScheme.primaryPalette.tone(90)
|
|
3376
|
+
);
|
|
3377
|
+
css += createLightDarkVar(
|
|
3378
|
+
leftSpacing,
|
|
3379
|
+
"inverse-primary",
|
|
3380
|
+
lightScheme.inversePrimary,
|
|
3381
|
+
darkScheme.inversePrimary
|
|
3382
|
+
);
|
|
3383
|
+
css += createLightDarkVar(
|
|
3384
|
+
leftSpacing,
|
|
3385
|
+
"primary-fixed",
|
|
3386
|
+
isHighContrast ? lightScheme.primaryFixed : lightScheme.primaryPalette.tone(90),
|
|
3387
|
+
isHighContrast ? darkScheme.primaryFixed : darkScheme.primaryPalette.tone(90)
|
|
3388
|
+
);
|
|
3389
|
+
css += createLightDarkVar(
|
|
3390
|
+
leftSpacing,
|
|
3391
|
+
"primary-fixed-dim",
|
|
3392
|
+
isHighContrast ? lightScheme.primaryFixedDim : lightScheme.primaryPalette.tone(80),
|
|
3393
|
+
isHighContrast ? darkScheme.primaryFixedDim : darkScheme.primaryPalette.tone(80)
|
|
3394
|
+
);
|
|
3395
|
+
css += createLightDarkVar(
|
|
3396
|
+
leftSpacing,
|
|
3397
|
+
"on-primary-fixed",
|
|
3398
|
+
lightScheme.onPrimaryFixed,
|
|
3399
|
+
darkScheme.onPrimaryFixed
|
|
3400
|
+
);
|
|
3401
|
+
css += createLightDarkVar(
|
|
3402
|
+
leftSpacing,
|
|
3403
|
+
"on-primary-fixed-variant",
|
|
3404
|
+
lightScheme.onPrimaryFixedVariant,
|
|
3405
|
+
darkScheme.onPrimaryFixedVariant
|
|
3406
|
+
);
|
|
2799
3407
|
css += "\n" + leftSpacing + "/* Secondary palette variables */\n";
|
|
2800
|
-
css += createLightDarkVar(
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
css += createLightDarkVar(
|
|
2807
|
-
|
|
3408
|
+
css += createLightDarkVar(
|
|
3409
|
+
leftSpacing,
|
|
3410
|
+
"secondary",
|
|
3411
|
+
isHighContrast ? lightScheme.secondary : lightScheme.secondaryPalette.tone(40),
|
|
3412
|
+
isHighContrast ? darkScheme.secondary : darkScheme.secondaryPalette.tone(80)
|
|
3413
|
+
);
|
|
3414
|
+
css += createLightDarkVar(
|
|
3415
|
+
leftSpacing,
|
|
3416
|
+
"on-secondary",
|
|
3417
|
+
isHighContrast ? lightScheme.onSecondary : lightScheme.secondaryPalette.tone(100),
|
|
3418
|
+
isHighContrast ? darkScheme.onSecondary : darkScheme.secondaryPalette.tone(20)
|
|
3419
|
+
);
|
|
3420
|
+
css += createLightDarkVar(
|
|
3421
|
+
leftSpacing,
|
|
3422
|
+
"secondary-container",
|
|
3423
|
+
isHighContrast ? lightScheme.secondaryContainer : lightScheme.secondaryPalette.tone(90),
|
|
3424
|
+
isHighContrast ? darkScheme.secondaryContainer : darkScheme.secondaryPalette.tone(30)
|
|
3425
|
+
);
|
|
3426
|
+
css += createLightDarkVar(
|
|
3427
|
+
leftSpacing,
|
|
3428
|
+
"on-secondary-container",
|
|
3429
|
+
isHighContrast ? lightScheme.onSecondaryContainer : lightScheme.secondaryPalette.tone(10),
|
|
3430
|
+
isHighContrast ? darkScheme.onSecondaryContainer : darkScheme.secondaryPalette.tone(90)
|
|
3431
|
+
);
|
|
3432
|
+
css += createLightDarkVar(
|
|
3433
|
+
leftSpacing,
|
|
3434
|
+
"secondary-fixed",
|
|
3435
|
+
isHighContrast ? lightScheme.secondaryFixed : lightScheme.secondaryPalette.tone(90),
|
|
3436
|
+
isHighContrast ? darkScheme.secondaryFixed : darkScheme.secondaryPalette.tone(90)
|
|
3437
|
+
);
|
|
3438
|
+
css += createLightDarkVar(
|
|
3439
|
+
leftSpacing,
|
|
3440
|
+
"secondary-fixed-dim",
|
|
3441
|
+
isHighContrast ? lightScheme.secondaryFixedDim : lightScheme.secondaryPalette.tone(80),
|
|
3442
|
+
isHighContrast ? darkScheme.secondaryFixedDim : darkScheme.secondaryPalette.tone(80)
|
|
3443
|
+
);
|
|
3444
|
+
css += createLightDarkVar(
|
|
3445
|
+
leftSpacing,
|
|
3446
|
+
"on-secondary-fixed",
|
|
3447
|
+
lightScheme.onSecondaryFixed,
|
|
3448
|
+
darkScheme.onSecondaryFixed
|
|
3449
|
+
);
|
|
3450
|
+
css += createLightDarkVar(
|
|
3451
|
+
leftSpacing,
|
|
3452
|
+
"on-secondary-fixed-variant",
|
|
3453
|
+
lightScheme.onSecondaryFixedVariant,
|
|
3454
|
+
darkScheme.onSecondaryFixedVariant
|
|
3455
|
+
);
|
|
2808
3456
|
css += "\n" + leftSpacing + "/* Tertiary palette variables */\n";
|
|
2809
|
-
css += createLightDarkVar(
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
css += createLightDarkVar(
|
|
2816
|
-
|
|
3457
|
+
css += createLightDarkVar(
|
|
3458
|
+
leftSpacing,
|
|
3459
|
+
"tertiary",
|
|
3460
|
+
isHighContrast ? lightScheme.tertiary : lightScheme.tertiaryPalette.tone(40),
|
|
3461
|
+
isHighContrast ? darkScheme.tertiary : darkScheme.tertiaryPalette.tone(80)
|
|
3462
|
+
);
|
|
3463
|
+
css += createLightDarkVar(
|
|
3464
|
+
leftSpacing,
|
|
3465
|
+
"on-tertiary",
|
|
3466
|
+
isHighContrast ? lightScheme.tertiary : lightScheme.tertiaryPalette.tone(100),
|
|
3467
|
+
isHighContrast ? darkScheme.tertiary : darkScheme.tertiaryPalette.tone(20)
|
|
3468
|
+
);
|
|
3469
|
+
css += createLightDarkVar(
|
|
3470
|
+
leftSpacing,
|
|
3471
|
+
"tertiary-container",
|
|
3472
|
+
isHighContrast ? lightScheme.tertiaryContainer : lightScheme.tertiaryPalette.tone(90),
|
|
3473
|
+
isHighContrast ? darkScheme.tertiaryContainer : darkScheme.tertiaryPalette.tone(30)
|
|
3474
|
+
);
|
|
3475
|
+
css += createLightDarkVar(
|
|
3476
|
+
leftSpacing,
|
|
3477
|
+
"on-tertiary-container",
|
|
3478
|
+
isHighContrast ? lightScheme.onTertiaryContainer : lightScheme.tertiaryPalette.tone(10),
|
|
3479
|
+
isHighContrast ? darkScheme.onTertiaryContainer : darkScheme.tertiaryPalette.tone(90)
|
|
3480
|
+
);
|
|
3481
|
+
css += createLightDarkVar(
|
|
3482
|
+
leftSpacing,
|
|
3483
|
+
"tertiary-fixed",
|
|
3484
|
+
isHighContrast ? lightScheme.tertiaryFixed : lightScheme.tertiaryPalette.tone(90),
|
|
3485
|
+
isHighContrast ? darkScheme.tertiaryFixed : darkScheme.tertiaryPalette.tone(90)
|
|
3486
|
+
);
|
|
3487
|
+
css += createLightDarkVar(
|
|
3488
|
+
leftSpacing,
|
|
3489
|
+
"tertiary-fixed-dim",
|
|
3490
|
+
isHighContrast ? lightScheme.tertiaryFixedDim : lightScheme.tertiaryPalette.tone(80),
|
|
3491
|
+
isHighContrast ? darkScheme.tertiaryFixedDim : darkScheme.tertiaryPalette.tone(80)
|
|
3492
|
+
);
|
|
3493
|
+
css += createLightDarkVar(
|
|
3494
|
+
leftSpacing,
|
|
3495
|
+
"on-tertiary-fixed",
|
|
3496
|
+
lightScheme.onTertiaryFixed,
|
|
3497
|
+
darkScheme.onTertiaryFixed
|
|
3498
|
+
);
|
|
3499
|
+
css += createLightDarkVar(
|
|
3500
|
+
leftSpacing,
|
|
3501
|
+
"on-tertiary-fixed-variant",
|
|
3502
|
+
lightScheme.onTertiaryFixedVariant,
|
|
3503
|
+
darkScheme.onTertiaryFixedVariant
|
|
3504
|
+
);
|
|
2817
3505
|
css += "\n" + leftSpacing + "/* Neutral palette variables */\n";
|
|
2818
|
-
css += createLightDarkVar(
|
|
2819
|
-
|
|
3506
|
+
css += createLightDarkVar(
|
|
3507
|
+
leftSpacing,
|
|
3508
|
+
"background",
|
|
3509
|
+
lightScheme.background,
|
|
3510
|
+
darkScheme.background
|
|
3511
|
+
);
|
|
3512
|
+
css += createLightDarkVar(
|
|
3513
|
+
leftSpacing,
|
|
3514
|
+
"on-background",
|
|
3515
|
+
lightScheme.onBackground,
|
|
3516
|
+
darkScheme.onBackground
|
|
3517
|
+
);
|
|
2820
3518
|
css += createLightDarkVar(leftSpacing, "surface", lightScheme.surface, darkScheme.surface);
|
|
2821
|
-
css += createLightDarkVar(
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
3519
|
+
css += createLightDarkVar(
|
|
3520
|
+
leftSpacing,
|
|
3521
|
+
"surface-dim",
|
|
3522
|
+
lightScheme.surfaceDim,
|
|
3523
|
+
darkScheme.surfaceDim
|
|
3524
|
+
);
|
|
3525
|
+
css += createLightDarkVar(
|
|
3526
|
+
leftSpacing,
|
|
3527
|
+
"surface-bright",
|
|
3528
|
+
lightScheme.surfaceBright,
|
|
3529
|
+
darkScheme.surfaceBright
|
|
3530
|
+
);
|
|
3531
|
+
css += createLightDarkVar(
|
|
3532
|
+
leftSpacing,
|
|
3533
|
+
"surface-container-low",
|
|
3534
|
+
lightScheme.surfaceContainerLow,
|
|
3535
|
+
darkScheme.surfaceContainerLow
|
|
3536
|
+
);
|
|
3537
|
+
css += createLightDarkVar(
|
|
3538
|
+
leftSpacing,
|
|
3539
|
+
"surface-container-lowest",
|
|
3540
|
+
lightScheme.surfaceContainerLowest,
|
|
3541
|
+
darkScheme.surfaceContainerLowest
|
|
3542
|
+
);
|
|
3543
|
+
css += createLightDarkVar(
|
|
3544
|
+
leftSpacing,
|
|
3545
|
+
"surface-container",
|
|
3546
|
+
lightScheme.surfaceContainer,
|
|
3547
|
+
darkScheme.surfaceContainer
|
|
3548
|
+
);
|
|
3549
|
+
css += createLightDarkVar(
|
|
3550
|
+
leftSpacing,
|
|
3551
|
+
"surface-container-high",
|
|
3552
|
+
lightScheme.surfaceContainerHigh,
|
|
3553
|
+
darkScheme.surfaceContainerHigh
|
|
3554
|
+
);
|
|
3555
|
+
css += createLightDarkVar(
|
|
3556
|
+
leftSpacing,
|
|
3557
|
+
"surface-container-highest",
|
|
3558
|
+
lightScheme.surfaceContainerHighest,
|
|
3559
|
+
darkScheme.surfaceContainerHighest
|
|
3560
|
+
);
|
|
2827
3561
|
css += createLightDarkVar(leftSpacing, "on-surface", lightScheme.onSurface, darkScheme.onSurface);
|
|
2828
3562
|
css += createLightDarkVar(leftSpacing, "shadow", lightScheme.shadow, darkScheme.shadow);
|
|
2829
3563
|
css += createLightDarkVar(leftSpacing, "scrim", lightScheme.scrim, darkScheme.scrim);
|
|
2830
|
-
css += createLightDarkVar(
|
|
2831
|
-
|
|
2832
|
-
|
|
3564
|
+
css += createLightDarkVar(
|
|
3565
|
+
leftSpacing,
|
|
3566
|
+
"surface-tint",
|
|
3567
|
+
lightScheme.surfaceTint,
|
|
3568
|
+
darkScheme.surfaceTint
|
|
3569
|
+
);
|
|
3570
|
+
css += createLightDarkVar(
|
|
3571
|
+
leftSpacing,
|
|
3572
|
+
"inverse-surface",
|
|
3573
|
+
lightScheme.inverseSurface,
|
|
3574
|
+
darkScheme.inverseSurface
|
|
3575
|
+
);
|
|
3576
|
+
css += createLightDarkVar(
|
|
3577
|
+
leftSpacing,
|
|
3578
|
+
"inverse-on-surface",
|
|
3579
|
+
lightScheme.inverseOnSurface,
|
|
3580
|
+
darkScheme.inverseOnSurface
|
|
3581
|
+
);
|
|
2833
3582
|
css += createLightDarkVar(leftSpacing, "outline", lightScheme.outline, darkScheme.outline);
|
|
2834
|
-
css += createLightDarkVar(
|
|
2835
|
-
|
|
3583
|
+
css += createLightDarkVar(
|
|
3584
|
+
leftSpacing,
|
|
3585
|
+
"outline-variant",
|
|
3586
|
+
lightScheme.outlineVariant,
|
|
3587
|
+
darkScheme.outlineVariant
|
|
3588
|
+
);
|
|
3589
|
+
css += createLightDarkVar(
|
|
3590
|
+
leftSpacing,
|
|
3591
|
+
"neutral10",
|
|
3592
|
+
lightScheme.neutralPalette.tone(10),
|
|
3593
|
+
darkScheme.neutralPalette.tone(10),
|
|
3594
|
+
"Variable used for the form field native select option text color"
|
|
3595
|
+
);
|
|
2836
3596
|
css += "\n" + leftSpacing + "/* Error palette variables */\n";
|
|
2837
|
-
css += createLightDarkVar(
|
|
3597
|
+
css += createLightDarkVar(
|
|
3598
|
+
leftSpacing,
|
|
3599
|
+
"error",
|
|
3600
|
+
isHighContrast ? lightScheme.error : lightScheme.errorPalette.tone(40),
|
|
3601
|
+
isHighContrast ? darkScheme.error : darkScheme.errorPalette.tone(80)
|
|
3602
|
+
);
|
|
2838
3603
|
css += createLightDarkVar(leftSpacing, "on-error", lightScheme.onError, darkScheme.onError);
|
|
2839
|
-
css += createLightDarkVar(
|
|
2840
|
-
|
|
3604
|
+
css += createLightDarkVar(
|
|
3605
|
+
leftSpacing,
|
|
3606
|
+
"error-container",
|
|
3607
|
+
isHighContrast ? lightScheme.errorContainer : lightScheme.errorPalette.tone(90),
|
|
3608
|
+
isHighContrast ? darkScheme.errorContainer : darkScheme.errorPalette.tone(30)
|
|
3609
|
+
);
|
|
3610
|
+
css += createLightDarkVar(
|
|
3611
|
+
leftSpacing,
|
|
3612
|
+
"on-error-container",
|
|
3613
|
+
isHighContrast ? lightScheme.onErrorContainer : lightScheme.errorPalette.tone(10),
|
|
3614
|
+
isHighContrast ? darkScheme.onErrorContainer : darkScheme.errorPalette.tone(90)
|
|
3615
|
+
);
|
|
2841
3616
|
css += "\n" + leftSpacing + "/* Neutral variant palette variables */\n";
|
|
2842
|
-
css += createLightDarkVar(
|
|
2843
|
-
|
|
2844
|
-
|
|
3617
|
+
css += createLightDarkVar(
|
|
3618
|
+
leftSpacing,
|
|
3619
|
+
"surface-variant",
|
|
3620
|
+
lightScheme.surfaceVariant,
|
|
3621
|
+
darkScheme.surfaceVariant
|
|
3622
|
+
);
|
|
3623
|
+
css += createLightDarkVar(
|
|
3624
|
+
leftSpacing,
|
|
3625
|
+
"on-surface-variant",
|
|
3626
|
+
lightScheme.onSurfaceVariant,
|
|
3627
|
+
darkScheme.onSurfaceVariant
|
|
3628
|
+
);
|
|
3629
|
+
css += createLightDarkVar(
|
|
3630
|
+
leftSpacing,
|
|
3631
|
+
"neutral-variant20",
|
|
3632
|
+
lightScheme.neutralVariantPalette.tone(20),
|
|
3633
|
+
darkScheme.neutralVariantPalette.tone(20),
|
|
3634
|
+
"Variable used for the sidenav scrim (container background shadow when opened)"
|
|
3635
|
+
);
|
|
2845
3636
|
return css;
|
|
2846
3637
|
}
|
|
2847
3638
|
function getTypographySysVariablesCSS() {
|
|
@@ -3020,7 +3811,12 @@ function getAllSysVariablesCSS(lightColorScheme, darkColorScheme) {
|
|
|
3020
3811
|
function getHighContrastOverridesCSS(lightColorScheme, darkColorScheme) {
|
|
3021
3812
|
let css = "\n";
|
|
3022
3813
|
css += " @media (prefers-contrast: more) {\n";
|
|
3023
|
-
css += getColorSysVariablesCSS(
|
|
3814
|
+
css += getColorSysVariablesCSS(
|
|
3815
|
+
lightColorScheme,
|
|
3816
|
+
darkColorScheme,
|
|
3817
|
+
/* isHighContrast */
|
|
3818
|
+
true
|
|
3819
|
+
);
|
|
3024
3820
|
css += " }\n";
|
|
3025
3821
|
return css;
|
|
3026
3822
|
}
|
|
@@ -3050,8 +3846,22 @@ function getColorComment(primaryColor, secondaryColor, tertiaryColor, neutralCol
|
|
|
3050
3846
|
}
|
|
3051
3847
|
function theme_color_default(options) {
|
|
3052
3848
|
return (tree, context) => __async(this, null, function* () {
|
|
3053
|
-
const colorComment = getColorComment(
|
|
3054
|
-
|
|
3849
|
+
const colorComment = getColorComment(
|
|
3850
|
+
options.primaryColor,
|
|
3851
|
+
options.secondaryColor,
|
|
3852
|
+
options.tertiaryColor,
|
|
3853
|
+
options.neutralColor,
|
|
3854
|
+
options.neutralVariantColor,
|
|
3855
|
+
options.errorColor
|
|
3856
|
+
);
|
|
3857
|
+
const colorPalettes = getColorPalettes(
|
|
3858
|
+
options.primaryColor,
|
|
3859
|
+
options.secondaryColor,
|
|
3860
|
+
options.tertiaryColor,
|
|
3861
|
+
options.neutralColor,
|
|
3862
|
+
options.neutralVariantColor,
|
|
3863
|
+
options.errorColor
|
|
3864
|
+
);
|
|
3055
3865
|
let lightHighContrastColorScheme;
|
|
3056
3866
|
let darkHighContrastColorScheme;
|
|
3057
3867
|
if (options.includeHighContrast) {
|
|
@@ -3061,7 +3871,9 @@ function theme_color_default(options) {
|
|
|
3061
3871
|
colorPalettes.tertiary,
|
|
3062
3872
|
colorPalettes.neutral,
|
|
3063
3873
|
colorPalettes.neutralVariant,
|
|
3874
|
+
/* isDark */
|
|
3064
3875
|
false,
|
|
3876
|
+
/* contrastLevel */
|
|
3065
3877
|
1
|
|
3066
3878
|
);
|
|
3067
3879
|
darkHighContrastColorScheme = getMaterialDynamicScheme(
|
|
@@ -3070,7 +3882,9 @@ function theme_color_default(options) {
|
|
|
3070
3882
|
colorPalettes.tertiary,
|
|
3071
3883
|
colorPalettes.neutral,
|
|
3072
3884
|
colorPalettes.neutralVariant,
|
|
3885
|
+
/* isDark */
|
|
3073
3886
|
true,
|
|
3887
|
+
/* contrastLevel */
|
|
3074
3888
|
1
|
|
3075
3889
|
);
|
|
3076
3890
|
if (options.errorColor) {
|
|
@@ -3081,7 +3895,10 @@ function theme_color_default(options) {
|
|
|
3081
3895
|
if (options.isScss) {
|
|
3082
3896
|
let themeScss = generateSCSSTheme(colorPalettes, colorComment);
|
|
3083
3897
|
if (options.includeHighContrast) {
|
|
3084
|
-
themeScss += generateHighContrastOverrideMixinsSCSS(
|
|
3898
|
+
themeScss += generateHighContrastOverrideMixinsSCSS(
|
|
3899
|
+
lightHighContrastColorScheme,
|
|
3900
|
+
darkHighContrastColorScheme
|
|
3901
|
+
);
|
|
3085
3902
|
}
|
|
3086
3903
|
createThemeFile(themeScss, tree, options.directory);
|
|
3087
3904
|
} else {
|
|
@@ -3094,7 +3911,9 @@ function theme_color_default(options) {
|
|
|
3094
3911
|
colorPalettes.tertiary,
|
|
3095
3912
|
colorPalettes.neutral,
|
|
3096
3913
|
colorPalettes.neutralVariant,
|
|
3914
|
+
/* isDark */
|
|
3097
3915
|
false,
|
|
3916
|
+
/* contrastLevel */
|
|
3098
3917
|
0
|
|
3099
3918
|
);
|
|
3100
3919
|
const darkColorScheme = getMaterialDynamicScheme(
|
|
@@ -3103,7 +3922,9 @@ function theme_color_default(options) {
|
|
|
3103
3922
|
colorPalettes.tertiary,
|
|
3104
3923
|
colorPalettes.neutral,
|
|
3105
3924
|
colorPalettes.neutralVariant,
|
|
3925
|
+
/* isDark */
|
|
3106
3926
|
true,
|
|
3927
|
+
/* contrastLevel */
|
|
3107
3928
|
0
|
|
3108
3929
|
);
|
|
3109
3930
|
if (options.errorColor) {
|
|
@@ -3112,10 +3933,19 @@ function theme_color_default(options) {
|
|
|
3112
3933
|
}
|
|
3113
3934
|
themeCss += getAllSysVariablesCSS(lightColorScheme, darkColorScheme);
|
|
3114
3935
|
if (options.includeHighContrast) {
|
|
3115
|
-
themeCss += getHighContrastOverridesCSS(
|
|
3936
|
+
themeCss += getHighContrastOverridesCSS(
|
|
3937
|
+
lightHighContrastColorScheme,
|
|
3938
|
+
darkHighContrastColorScheme
|
|
3939
|
+
);
|
|
3116
3940
|
}
|
|
3117
3941
|
themeCss += "}\n";
|
|
3118
|
-
createThemeFile(
|
|
3942
|
+
createThemeFile(
|
|
3943
|
+
themeCss,
|
|
3944
|
+
tree,
|
|
3945
|
+
options.directory,
|
|
3946
|
+
/* isScss */
|
|
3947
|
+
false
|
|
3948
|
+
);
|
|
3119
3949
|
}
|
|
3120
3950
|
});
|
|
3121
3951
|
}
|
|
@@ -3128,54 +3958,6 @@ function theme_color_default(options) {
|
|
|
3128
3958
|
getHighContrastOverridesCSS,
|
|
3129
3959
|
getMaterialDynamicScheme
|
|
3130
3960
|
});
|
|
3131
|
-
/**
|
|
3132
|
-
* @license
|
|
3133
|
-
* Copyright 2021 Google LLC
|
|
3134
|
-
*
|
|
3135
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3136
|
-
* you may not use this file except in compliance with the License.
|
|
3137
|
-
* You may obtain a copy of the License at
|
|
3138
|
-
*
|
|
3139
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3140
|
-
*
|
|
3141
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3142
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3143
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3144
|
-
* See the License for the specific language governing permissions and
|
|
3145
|
-
* limitations under the License.
|
|
3146
|
-
*/
|
|
3147
|
-
/**
|
|
3148
|
-
* @license
|
|
3149
|
-
* Copyright 2022 Google LLC
|
|
3150
|
-
*
|
|
3151
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3152
|
-
* you may not use this file except in compliance with the License.
|
|
3153
|
-
* You may obtain a copy of the License at
|
|
3154
|
-
*
|
|
3155
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3156
|
-
*
|
|
3157
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3158
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3159
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3160
|
-
* See the License for the specific language governing permissions and
|
|
3161
|
-
* limitations under the License.
|
|
3162
|
-
*/
|
|
3163
|
-
/**
|
|
3164
|
-
* @license
|
|
3165
|
-
* Copyright 2023 Google LLC
|
|
3166
|
-
*
|
|
3167
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3168
|
-
* you may not use this file except in compliance with the License.
|
|
3169
|
-
* You may obtain a copy of the License at
|
|
3170
|
-
*
|
|
3171
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3172
|
-
*
|
|
3173
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
3174
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3175
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3176
|
-
* See the License for the specific language governing permissions and
|
|
3177
|
-
* limitations under the License.
|
|
3178
|
-
*/
|
|
3179
3961
|
/**
|
|
3180
3962
|
* @license
|
|
3181
3963
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -3183,4 +3965,708 @@ function theme_color_default(options) {
|
|
|
3183
3965
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3184
3966
|
* found in the LICENSE file at https://angular.dev/license
|
|
3185
3967
|
*/
|
|
3968
|
+
/*! Bundled license information:
|
|
3969
|
+
|
|
3970
|
+
@material/material-color-utilities/utils/math_utils.js:
|
|
3971
|
+
(**
|
|
3972
|
+
* @license
|
|
3973
|
+
* Copyright 2021 Google LLC
|
|
3974
|
+
*
|
|
3975
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3976
|
+
* you may not use this file except in compliance with the License.
|
|
3977
|
+
* You may obtain a copy of the License at
|
|
3978
|
+
*
|
|
3979
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3980
|
+
*
|
|
3981
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
3982
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
3983
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3984
|
+
* See the License for the specific language governing permissions and
|
|
3985
|
+
* limitations under the License.
|
|
3986
|
+
*)
|
|
3987
|
+
|
|
3988
|
+
@material/material-color-utilities/utils/color_utils.js:
|
|
3989
|
+
(**
|
|
3990
|
+
* @license
|
|
3991
|
+
* Copyright 2021 Google LLC
|
|
3992
|
+
*
|
|
3993
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3994
|
+
* you may not use this file except in compliance with the License.
|
|
3995
|
+
* You may obtain a copy of the License at
|
|
3996
|
+
*
|
|
3997
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3998
|
+
*
|
|
3999
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4000
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4001
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4002
|
+
* See the License for the specific language governing permissions and
|
|
4003
|
+
* limitations under the License.
|
|
4004
|
+
*)
|
|
4005
|
+
|
|
4006
|
+
@material/material-color-utilities/hct/viewing_conditions.js:
|
|
4007
|
+
(**
|
|
4008
|
+
* @license
|
|
4009
|
+
* Copyright 2021 Google LLC
|
|
4010
|
+
*
|
|
4011
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4012
|
+
* you may not use this file except in compliance with the License.
|
|
4013
|
+
* You may obtain a copy of the License at
|
|
4014
|
+
*
|
|
4015
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4016
|
+
*
|
|
4017
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4018
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4019
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4020
|
+
* See the License for the specific language governing permissions and
|
|
4021
|
+
* limitations under the License.
|
|
4022
|
+
*)
|
|
4023
|
+
|
|
4024
|
+
@material/material-color-utilities/hct/cam16.js:
|
|
4025
|
+
(**
|
|
4026
|
+
* @license
|
|
4027
|
+
* Copyright 2021 Google LLC
|
|
4028
|
+
*
|
|
4029
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4030
|
+
* you may not use this file except in compliance with the License.
|
|
4031
|
+
* You may obtain a copy of the License at
|
|
4032
|
+
*
|
|
4033
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4034
|
+
*
|
|
4035
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4036
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4037
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4038
|
+
* See the License for the specific language governing permissions and
|
|
4039
|
+
* limitations under the License.
|
|
4040
|
+
*)
|
|
4041
|
+
|
|
4042
|
+
@material/material-color-utilities/hct/hct_solver.js:
|
|
4043
|
+
(**
|
|
4044
|
+
* @license
|
|
4045
|
+
* Copyright 2021 Google LLC
|
|
4046
|
+
*
|
|
4047
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4048
|
+
* you may not use this file except in compliance with the License.
|
|
4049
|
+
* You may obtain a copy of the License at
|
|
4050
|
+
*
|
|
4051
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4052
|
+
*
|
|
4053
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4054
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4055
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4056
|
+
* See the License for the specific language governing permissions and
|
|
4057
|
+
* limitations under the License.
|
|
4058
|
+
*)
|
|
4059
|
+
|
|
4060
|
+
@material/material-color-utilities/hct/hct.js:
|
|
4061
|
+
(**
|
|
4062
|
+
* @license
|
|
4063
|
+
* Copyright 2021 Google LLC
|
|
4064
|
+
*
|
|
4065
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4066
|
+
* you may not use this file except in compliance with the License.
|
|
4067
|
+
* You may obtain a copy of the License at
|
|
4068
|
+
*
|
|
4069
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4070
|
+
*
|
|
4071
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4072
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4073
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4074
|
+
* See the License for the specific language governing permissions and
|
|
4075
|
+
* limitations under the License.
|
|
4076
|
+
*)
|
|
4077
|
+
|
|
4078
|
+
@material/material-color-utilities/blend/blend.js:
|
|
4079
|
+
(**
|
|
4080
|
+
* @license
|
|
4081
|
+
* Copyright 2021 Google LLC
|
|
4082
|
+
*
|
|
4083
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4084
|
+
* you may not use this file except in compliance with the License.
|
|
4085
|
+
* You may obtain a copy of the License at
|
|
4086
|
+
*
|
|
4087
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4088
|
+
*
|
|
4089
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4090
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4091
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4092
|
+
* See the License for the specific language governing permissions and
|
|
4093
|
+
* limitations under the License.
|
|
4094
|
+
*)
|
|
4095
|
+
|
|
4096
|
+
@material/material-color-utilities/contrast/contrast.js:
|
|
4097
|
+
(**
|
|
4098
|
+
* @license
|
|
4099
|
+
* Copyright 2022 Google LLC
|
|
4100
|
+
*
|
|
4101
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4102
|
+
* you may not use this file except in compliance with the License.
|
|
4103
|
+
* You may obtain a copy of the License at
|
|
4104
|
+
*
|
|
4105
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4106
|
+
*
|
|
4107
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4108
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4109
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4110
|
+
* See the License for the specific language governing permissions and
|
|
4111
|
+
* limitations under the License.
|
|
4112
|
+
*)
|
|
4113
|
+
|
|
4114
|
+
@material/material-color-utilities/dislike/dislike_analyzer.js:
|
|
4115
|
+
(**
|
|
4116
|
+
* @license
|
|
4117
|
+
* Copyright 2023 Google LLC
|
|
4118
|
+
*
|
|
4119
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4120
|
+
* you may not use this file except in compliance with the License.
|
|
4121
|
+
* You may obtain a copy of the License at
|
|
4122
|
+
*
|
|
4123
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4124
|
+
*
|
|
4125
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4126
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4127
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4128
|
+
* See the License for the specific language governing permissions and
|
|
4129
|
+
* limitations under the License.
|
|
4130
|
+
*)
|
|
4131
|
+
|
|
4132
|
+
@material/material-color-utilities/dynamiccolor/dynamic_color.js:
|
|
4133
|
+
(**
|
|
4134
|
+
* @license
|
|
4135
|
+
* Copyright 2022 Google LLC
|
|
4136
|
+
*
|
|
4137
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4138
|
+
* you may not use this file except in compliance with the License.
|
|
4139
|
+
* You may obtain a copy of the License at
|
|
4140
|
+
*
|
|
4141
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4142
|
+
*
|
|
4143
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4144
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4145
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4146
|
+
* See the License for the specific language governing permissions and
|
|
4147
|
+
* limitations under the License.
|
|
4148
|
+
*)
|
|
4149
|
+
|
|
4150
|
+
@material/material-color-utilities/palettes/tonal_palette.js:
|
|
4151
|
+
(**
|
|
4152
|
+
* @license
|
|
4153
|
+
* Copyright 2021 Google LLC
|
|
4154
|
+
*
|
|
4155
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4156
|
+
* you may not use this file except in compliance with the License.
|
|
4157
|
+
* You may obtain a copy of the License at
|
|
4158
|
+
*
|
|
4159
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4160
|
+
*
|
|
4161
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4162
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4163
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4164
|
+
* See the License for the specific language governing permissions and
|
|
4165
|
+
* limitations under the License.
|
|
4166
|
+
*)
|
|
4167
|
+
|
|
4168
|
+
@material/material-color-utilities/dynamiccolor/contrast_curve.js:
|
|
4169
|
+
(**
|
|
4170
|
+
* @license
|
|
4171
|
+
* Copyright 2023 Google LLC
|
|
4172
|
+
*
|
|
4173
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4174
|
+
* you may not use this file except in compliance with the License.
|
|
4175
|
+
* You may obtain a copy of the License at
|
|
4176
|
+
*
|
|
4177
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4178
|
+
*
|
|
4179
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4180
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4181
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4182
|
+
* See the License for the specific language governing permissions and
|
|
4183
|
+
* limitations under the License.
|
|
4184
|
+
*)
|
|
4185
|
+
|
|
4186
|
+
@material/material-color-utilities/dynamiccolor/tone_delta_pair.js:
|
|
4187
|
+
(**
|
|
4188
|
+
* @license
|
|
4189
|
+
* Copyright 2023 Google LLC
|
|
4190
|
+
*
|
|
4191
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4192
|
+
* you may not use this file except in compliance with the License.
|
|
4193
|
+
* You may obtain a copy of the License at
|
|
4194
|
+
*
|
|
4195
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4196
|
+
*
|
|
4197
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4198
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4199
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4200
|
+
* See the License for the specific language governing permissions and
|
|
4201
|
+
* limitations under the License.
|
|
4202
|
+
*)
|
|
4203
|
+
|
|
4204
|
+
@material/material-color-utilities/dynamiccolor/variant.js:
|
|
4205
|
+
(**
|
|
4206
|
+
* @license
|
|
4207
|
+
* Copyright 2022 Google LLC
|
|
4208
|
+
*
|
|
4209
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4210
|
+
* you may not use this file except in compliance with the License.
|
|
4211
|
+
* You may obtain a copy of the License at
|
|
4212
|
+
*
|
|
4213
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4214
|
+
*
|
|
4215
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4216
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4217
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4218
|
+
* See the License for the specific language governing permissions and
|
|
4219
|
+
* limitations under the License.
|
|
4220
|
+
*)
|
|
4221
|
+
|
|
4222
|
+
@material/material-color-utilities/dynamiccolor/material_dynamic_colors.js:
|
|
4223
|
+
(**
|
|
4224
|
+
* @license
|
|
4225
|
+
* Copyright 2022 Google LLC
|
|
4226
|
+
*
|
|
4227
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4228
|
+
* you may not use this file except in compliance with the License.
|
|
4229
|
+
* You may obtain a copy of the License at
|
|
4230
|
+
*
|
|
4231
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4232
|
+
*
|
|
4233
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4234
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4235
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4236
|
+
* See the License for the specific language governing permissions and
|
|
4237
|
+
* limitations under the License.
|
|
4238
|
+
*)
|
|
4239
|
+
|
|
4240
|
+
@material/material-color-utilities/dynamiccolor/dynamic_scheme.js:
|
|
4241
|
+
(**
|
|
4242
|
+
* @license
|
|
4243
|
+
* Copyright 2022 Google LLC
|
|
4244
|
+
*
|
|
4245
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4246
|
+
* you may not use this file except in compliance with the License.
|
|
4247
|
+
* You may obtain a copy of the License at
|
|
4248
|
+
*
|
|
4249
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4250
|
+
*
|
|
4251
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4252
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4253
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4254
|
+
* See the License for the specific language governing permissions and
|
|
4255
|
+
* limitations under the License.
|
|
4256
|
+
*)
|
|
4257
|
+
|
|
4258
|
+
@material/material-color-utilities/palettes/core_palette.js:
|
|
4259
|
+
(**
|
|
4260
|
+
* @license
|
|
4261
|
+
* Copyright 2021 Google LLC
|
|
4262
|
+
*
|
|
4263
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4264
|
+
* you may not use this file except in compliance with the License.
|
|
4265
|
+
* You may obtain a copy of the License at
|
|
4266
|
+
*
|
|
4267
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4268
|
+
*
|
|
4269
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4270
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4271
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4272
|
+
* See the License for the specific language governing permissions and
|
|
4273
|
+
* limitations under the License.
|
|
4274
|
+
*)
|
|
4275
|
+
|
|
4276
|
+
@material/material-color-utilities/quantize/lab_point_provider.js:
|
|
4277
|
+
(**
|
|
4278
|
+
* @license
|
|
4279
|
+
* Copyright 2021 Google LLC
|
|
4280
|
+
*
|
|
4281
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4282
|
+
* you may not use this file except in compliance with the License.
|
|
4283
|
+
* You may obtain a copy of the License at
|
|
4284
|
+
*
|
|
4285
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4286
|
+
*
|
|
4287
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4288
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4289
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4290
|
+
* See the License for the specific language governing permissions and
|
|
4291
|
+
* limitations under the License.
|
|
4292
|
+
*)
|
|
4293
|
+
|
|
4294
|
+
@material/material-color-utilities/quantize/quantizer_wsmeans.js:
|
|
4295
|
+
(**
|
|
4296
|
+
* @license
|
|
4297
|
+
* Copyright 2021 Google LLC
|
|
4298
|
+
*
|
|
4299
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4300
|
+
* you may not use this file except in compliance with the License.
|
|
4301
|
+
* You may obtain a copy of the License at
|
|
4302
|
+
*
|
|
4303
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4304
|
+
*
|
|
4305
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4306
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4307
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4308
|
+
* See the License for the specific language governing permissions and
|
|
4309
|
+
* limitations under the License.
|
|
4310
|
+
*)
|
|
4311
|
+
|
|
4312
|
+
@material/material-color-utilities/quantize/quantizer_map.js:
|
|
4313
|
+
(**
|
|
4314
|
+
* @license
|
|
4315
|
+
* Copyright 2021 Google LLC
|
|
4316
|
+
*
|
|
4317
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4318
|
+
* you may not use this file except in compliance with the License.
|
|
4319
|
+
* You may obtain a copy of the License at
|
|
4320
|
+
*
|
|
4321
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4322
|
+
*
|
|
4323
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4324
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4325
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4326
|
+
* See the License for the specific language governing permissions and
|
|
4327
|
+
* limitations under the License.
|
|
4328
|
+
*)
|
|
4329
|
+
|
|
4330
|
+
@material/material-color-utilities/quantize/quantizer_wu.js:
|
|
4331
|
+
(**
|
|
4332
|
+
* @license
|
|
4333
|
+
* Copyright 2021 Google LLC
|
|
4334
|
+
*
|
|
4335
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4336
|
+
* you may not use this file except in compliance with the License.
|
|
4337
|
+
* You may obtain a copy of the License at
|
|
4338
|
+
*
|
|
4339
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4340
|
+
*
|
|
4341
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4342
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4343
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4344
|
+
* See the License for the specific language governing permissions and
|
|
4345
|
+
* limitations under the License.
|
|
4346
|
+
*)
|
|
4347
|
+
|
|
4348
|
+
@material/material-color-utilities/quantize/quantizer_celebi.js:
|
|
4349
|
+
(**
|
|
4350
|
+
* @license
|
|
4351
|
+
* Copyright 2021 Google LLC
|
|
4352
|
+
*
|
|
4353
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4354
|
+
* you may not use this file except in compliance with the License.
|
|
4355
|
+
* You may obtain a copy of the License at
|
|
4356
|
+
*
|
|
4357
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4358
|
+
*
|
|
4359
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4360
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4361
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4362
|
+
* See the License for the specific language governing permissions and
|
|
4363
|
+
* limitations under the License.
|
|
4364
|
+
*)
|
|
4365
|
+
|
|
4366
|
+
@material/material-color-utilities/scheme/scheme.js:
|
|
4367
|
+
(**
|
|
4368
|
+
* @license
|
|
4369
|
+
* Copyright 2021 Google LLC
|
|
4370
|
+
*
|
|
4371
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4372
|
+
* you may not use this file except in compliance with the License.
|
|
4373
|
+
* You may obtain a copy of the License at
|
|
4374
|
+
*
|
|
4375
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4376
|
+
*
|
|
4377
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4378
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4379
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4380
|
+
* See the License for the specific language governing permissions and
|
|
4381
|
+
* limitations under the License.
|
|
4382
|
+
*)
|
|
4383
|
+
|
|
4384
|
+
@material/material-color-utilities/scheme/scheme_android.js:
|
|
4385
|
+
(**
|
|
4386
|
+
* @license
|
|
4387
|
+
* Copyright 2021 Google LLC
|
|
4388
|
+
*
|
|
4389
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4390
|
+
* you may not use this file except in compliance with the License.
|
|
4391
|
+
* You may obtain a copy of the License at
|
|
4392
|
+
*
|
|
4393
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4394
|
+
*
|
|
4395
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4396
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4397
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4398
|
+
* See the License for the specific language governing permissions and
|
|
4399
|
+
* limitations under the License.
|
|
4400
|
+
*)
|
|
4401
|
+
|
|
4402
|
+
@material/material-color-utilities/temperature/temperature_cache.js:
|
|
4403
|
+
(**
|
|
4404
|
+
* @license
|
|
4405
|
+
* Copyright 2023 Google LLC
|
|
4406
|
+
*
|
|
4407
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4408
|
+
* you may not use this file except in compliance with the License.
|
|
4409
|
+
* You may obtain a copy of the License at
|
|
4410
|
+
*
|
|
4411
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4412
|
+
*
|
|
4413
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4414
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4415
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4416
|
+
* See the License for the specific language governing permissions and
|
|
4417
|
+
* limitations under the License.
|
|
4418
|
+
*)
|
|
4419
|
+
|
|
4420
|
+
@material/material-color-utilities/scheme/scheme_content.js:
|
|
4421
|
+
(**
|
|
4422
|
+
* @license
|
|
4423
|
+
* Copyright 2023 Google LLC
|
|
4424
|
+
*
|
|
4425
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4426
|
+
* you may not use this file except in compliance with the License.
|
|
4427
|
+
* You may obtain a copy of the License at
|
|
4428
|
+
*
|
|
4429
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4430
|
+
*
|
|
4431
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4432
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4433
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4434
|
+
* See the License for the specific language governing permissions and
|
|
4435
|
+
* limitations under the License.
|
|
4436
|
+
*)
|
|
4437
|
+
|
|
4438
|
+
@material/material-color-utilities/scheme/scheme_expressive.js:
|
|
4439
|
+
(**
|
|
4440
|
+
* @license
|
|
4441
|
+
* Copyright 2022 Google LLC
|
|
4442
|
+
*
|
|
4443
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4444
|
+
* you may not use this file except in compliance with the License.
|
|
4445
|
+
* You may obtain a copy of the License at
|
|
4446
|
+
*
|
|
4447
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4448
|
+
*
|
|
4449
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4450
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4451
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4452
|
+
* See the License for the specific language governing permissions and
|
|
4453
|
+
* limitations under the License.
|
|
4454
|
+
*)
|
|
4455
|
+
|
|
4456
|
+
@material/material-color-utilities/scheme/scheme_fidelity.js:
|
|
4457
|
+
(**
|
|
4458
|
+
* @license
|
|
4459
|
+
* Copyright 2023 Google LLC
|
|
4460
|
+
*
|
|
4461
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4462
|
+
* you may not use this file except in compliance with the License.
|
|
4463
|
+
* You may obtain a copy of the License at
|
|
4464
|
+
*
|
|
4465
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4466
|
+
*
|
|
4467
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4468
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4469
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4470
|
+
* See the License for the specific language governing permissions and
|
|
4471
|
+
* limitations under the License.
|
|
4472
|
+
*)
|
|
4473
|
+
|
|
4474
|
+
@material/material-color-utilities/scheme/scheme_fruit_salad.js:
|
|
4475
|
+
(**
|
|
4476
|
+
* @license
|
|
4477
|
+
* Copyright 2022 Google LLC
|
|
4478
|
+
*
|
|
4479
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4480
|
+
* you may not use this file except in compliance with the License.
|
|
4481
|
+
* You may obtain a copy of the License at
|
|
4482
|
+
*
|
|
4483
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4484
|
+
*
|
|
4485
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4486
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4487
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4488
|
+
* See the License for the specific language governing permissions and
|
|
4489
|
+
* limitations under the License.
|
|
4490
|
+
*)
|
|
4491
|
+
|
|
4492
|
+
@material/material-color-utilities/scheme/scheme_monochrome.js:
|
|
4493
|
+
(**
|
|
4494
|
+
* @license
|
|
4495
|
+
* Copyright 2022 Google LLC
|
|
4496
|
+
*
|
|
4497
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4498
|
+
* you may not use this file except in compliance with the License.
|
|
4499
|
+
* You may obtain a copy of the License at
|
|
4500
|
+
*
|
|
4501
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4502
|
+
*
|
|
4503
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4504
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4505
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4506
|
+
* See the License for the specific language governing permissions and
|
|
4507
|
+
* limitations under the License.
|
|
4508
|
+
*)
|
|
4509
|
+
|
|
4510
|
+
@material/material-color-utilities/scheme/scheme_neutral.js:
|
|
4511
|
+
(**
|
|
4512
|
+
* @license
|
|
4513
|
+
* Copyright 2022 Google LLC
|
|
4514
|
+
*
|
|
4515
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4516
|
+
* you may not use this file except in compliance with the License.
|
|
4517
|
+
* You may obtain a copy of the License at
|
|
4518
|
+
*
|
|
4519
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4520
|
+
*
|
|
4521
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4522
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4523
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4524
|
+
* See the License for the specific language governing permissions and
|
|
4525
|
+
* limitations under the License.
|
|
4526
|
+
*)
|
|
4527
|
+
|
|
4528
|
+
@material/material-color-utilities/scheme/scheme_rainbow.js:
|
|
4529
|
+
(**
|
|
4530
|
+
* @license
|
|
4531
|
+
* Copyright 2022 Google LLC
|
|
4532
|
+
*
|
|
4533
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4534
|
+
* you may not use this file except in compliance with the License.
|
|
4535
|
+
* You may obtain a copy of the License at
|
|
4536
|
+
*
|
|
4537
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4538
|
+
*
|
|
4539
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4540
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4541
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4542
|
+
* See the License for the specific language governing permissions and
|
|
4543
|
+
* limitations under the License.
|
|
4544
|
+
*)
|
|
4545
|
+
|
|
4546
|
+
@material/material-color-utilities/scheme/scheme_tonal_spot.js:
|
|
4547
|
+
(**
|
|
4548
|
+
* @license
|
|
4549
|
+
* Copyright 2022 Google LLC
|
|
4550
|
+
*
|
|
4551
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4552
|
+
* you may not use this file except in compliance with the License.
|
|
4553
|
+
* You may obtain a copy of the License at
|
|
4554
|
+
*
|
|
4555
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4556
|
+
*
|
|
4557
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4558
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4559
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4560
|
+
* See the License for the specific language governing permissions and
|
|
4561
|
+
* limitations under the License.
|
|
4562
|
+
*)
|
|
4563
|
+
|
|
4564
|
+
@material/material-color-utilities/scheme/scheme_vibrant.js:
|
|
4565
|
+
(**
|
|
4566
|
+
* @license
|
|
4567
|
+
* Copyright 2022 Google LLC
|
|
4568
|
+
*
|
|
4569
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4570
|
+
* you may not use this file except in compliance with the License.
|
|
4571
|
+
* You may obtain a copy of the License at
|
|
4572
|
+
*
|
|
4573
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4574
|
+
*
|
|
4575
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4576
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4577
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4578
|
+
* See the License for the specific language governing permissions and
|
|
4579
|
+
* limitations under the License.
|
|
4580
|
+
*)
|
|
4581
|
+
|
|
4582
|
+
@material/material-color-utilities/score/score.js:
|
|
4583
|
+
(**
|
|
4584
|
+
* @license
|
|
4585
|
+
* Copyright 2021 Google LLC
|
|
4586
|
+
*
|
|
4587
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4588
|
+
* you may not use this file except in compliance with the License.
|
|
4589
|
+
* You may obtain a copy of the License at
|
|
4590
|
+
*
|
|
4591
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4592
|
+
*
|
|
4593
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4594
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4595
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4596
|
+
* See the License for the specific language governing permissions and
|
|
4597
|
+
* limitations under the License.
|
|
4598
|
+
*)
|
|
4599
|
+
|
|
4600
|
+
@material/material-color-utilities/utils/string_utils.js:
|
|
4601
|
+
(**
|
|
4602
|
+
* @license
|
|
4603
|
+
* Copyright 2021 Google LLC
|
|
4604
|
+
*
|
|
4605
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4606
|
+
* you may not use this file except in compliance with the License.
|
|
4607
|
+
* You may obtain a copy of the License at
|
|
4608
|
+
*
|
|
4609
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4610
|
+
*
|
|
4611
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4612
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4613
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4614
|
+
* See the License for the specific language governing permissions and
|
|
4615
|
+
* limitations under the License.
|
|
4616
|
+
*)
|
|
4617
|
+
|
|
4618
|
+
@material/material-color-utilities/utils/image_utils.js:
|
|
4619
|
+
(**
|
|
4620
|
+
* @license
|
|
4621
|
+
* Copyright 2021 Google LLC
|
|
4622
|
+
*
|
|
4623
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4624
|
+
* you may not use this file except in compliance with the License.
|
|
4625
|
+
* You may obtain a copy of the License at
|
|
4626
|
+
*
|
|
4627
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4628
|
+
*
|
|
4629
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4630
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4631
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4632
|
+
* See the License for the specific language governing permissions and
|
|
4633
|
+
* limitations under the License.
|
|
4634
|
+
*)
|
|
4635
|
+
|
|
4636
|
+
@material/material-color-utilities/utils/theme_utils.js:
|
|
4637
|
+
(**
|
|
4638
|
+
* @license
|
|
4639
|
+
* Copyright 2021 Google LLC
|
|
4640
|
+
*
|
|
4641
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4642
|
+
* you may not use this file except in compliance with the License.
|
|
4643
|
+
* You may obtain a copy of the License at
|
|
4644
|
+
*
|
|
4645
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4646
|
+
*
|
|
4647
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4648
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4649
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4650
|
+
* See the License for the specific language governing permissions and
|
|
4651
|
+
* limitations under the License.
|
|
4652
|
+
*)
|
|
4653
|
+
|
|
4654
|
+
@material/material-color-utilities/index.js:
|
|
4655
|
+
(**
|
|
4656
|
+
* @license
|
|
4657
|
+
* Copyright 2021 Google LLC
|
|
4658
|
+
*
|
|
4659
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4660
|
+
* you may not use this file except in compliance with the License.
|
|
4661
|
+
* You may obtain a copy of the License at
|
|
4662
|
+
*
|
|
4663
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4664
|
+
*
|
|
4665
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4666
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4667
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4668
|
+
* See the License for the specific language governing permissions and
|
|
4669
|
+
* limitations under the License.
|
|
4670
|
+
*)
|
|
4671
|
+
*/
|
|
3186
4672
|
//# sourceMappingURL=index_bundled.js.map
|