@gradient-ui/core 0.6.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +60 -261
- package/dist/BaseOverlay-DgBWbJbs.cjs +1 -0
- package/dist/BaseOverlay-DzJ37TCS.js +216 -0
- package/dist/GAvatar-CN3PHGY_.js +202 -0
- package/dist/GAvatar-Dj6hSgL3.cjs +1 -0
- package/dist/GButton.vue_vue_type_style_index_0_lang-D9qRus1m.js +141 -0
- package/dist/GButton.vue_vue_type_style_index_0_lang-tGLnt3_R.cjs +1 -0
- package/dist/GCheckGroup-B3gZ9p6e.cjs +1 -0
- package/dist/GCheckGroup-DDkxtEj2.js +132 -0
- package/dist/GCheckIndicator-C-adGOcb.cjs +1 -0
- package/dist/GCheckIndicator-yvipPkWi.js +264 -0
- package/dist/GCheckbox.vue_vue_type_script_setup_true_lang-BrQE29bm.js +68 -0
- package/dist/GCheckbox.vue_vue_type_script_setup_true_lang-hjvutORC.cjs +1 -0
- package/dist/GCheckboxGroup.vue_vue_type_script_setup_true_lang-ChPcOQYQ.js +143 -0
- package/dist/GCheckboxGroup.vue_vue_type_script_setup_true_lang-CjPc-fNv.cjs +1 -0
- package/dist/GDropdown-CmBNk0jK.cjs +1 -0
- package/dist/GDropdown-TVH93Obq.js +126 -0
- package/dist/GExpandTransition.vue_vue_type_script_setup_true_lang-Ccl2Cemo.cjs +1 -0
- package/dist/GExpandTransition.vue_vue_type_script_setup_true_lang-ztMeJVQO.js +170 -0
- package/dist/GForm.vue_vue_type_style_index_0_lang-BzOWdjzk.cjs +1 -0
- package/dist/GForm.vue_vue_type_style_index_0_lang-DpPM5snQ.js +149 -0
- package/dist/GGradientMaterial.vue_vue_type_style_index_0_lang-ChRL7BIo.js +119 -0
- package/dist/GGradientMaterial.vue_vue_type_style_index_0_lang-DJcGdEVi.cjs +1 -0
- package/dist/GInput.vue_vue_type_script_setup_true_lang-BHM4W0S8.js +143 -0
- package/dist/GInput.vue_vue_type_script_setup_true_lang-dMjIUhb1.cjs +1 -0
- package/dist/GLoading.vue_vue_type_style_index_0_lang-BNOsRA0v.js +97 -0
- package/dist/GLoading.vue_vue_type_style_index_0_lang-KmMjjwpE.cjs +1 -0
- package/dist/GRadio.vue_vue_type_script_setup_true_lang-DNRTDtF2.cjs +1 -0
- package/dist/GRadio.vue_vue_type_script_setup_true_lang-kE-52Aj1.js +182 -0
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-BZXxiyLT.js +68 -0
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-DC8vyW7e.cjs +1 -0
- package/dist/GTable.vue_vue_type_style_index_1_lang-BECleEMi.js +828 -0
- package/dist/GTable.vue_vue_type_style_index_1_lang-DgaYCTxJ.cjs +1 -0
- package/dist/GTextarea.vue_vue_type_script_setup_true_lang-CyuCJwv6.cjs +1 -0
- package/dist/GTextarea.vue_vue_type_script_setup_true_lang-zSTso23Z.js +84 -0
- package/dist/GTransition.vue_vue_type_script_setup_true_lang-CHGSgsZ0.js +143 -0
- package/dist/GTransition.vue_vue_type_script_setup_true_lang-CgELPmMA.cjs +1 -0
- package/dist/GTransitionGroup.vue_vue_type_script_setup_true_lang-CDu6W6-X.js +23 -0
- package/dist/GTransitionGroup.vue_vue_type_script_setup_true_lang-DDh0rXP7.cjs +1 -0
- package/dist/PLA-B2QljfgE.cjs +1 -0
- package/dist/PLA-DePtRzKl.js +10 -0
- package/dist/_plugin-vue_export-helper-B--vMWp3.js +9 -0
- package/dist/_plugin-vue_export-helper-D_jf5u0r.cjs +1 -0
- package/dist/actionSurface-BkFPXb-Z.js +123 -0
- package/dist/actionSurface-Db2TksPm.cjs +1 -0
- package/dist/appScopedState-BCzeQW7Y.js +15 -0
- package/dist/appScopedState-D0zgOLf5.cjs +1 -0
- package/dist/booleanControl-BrOrGYvg.js +71 -0
- package/dist/booleanControl-uPXEckMZ.cjs +1 -0
- package/dist/camelToKebabCase-BFm1Zwmu.cjs +1 -0
- package/dist/camelToKebabCase-nw6sbguT.js +6 -0
- package/dist/clientLifecycle-DlIZRy4I.cjs +1 -0
- package/dist/clientLifecycle-NZQzL_eH.js +12 -0
- package/dist/color-8SkPDCIp.cjs +1 -0
- package/dist/color-WJmhRKJ_.js +26 -0
- package/dist/colorResolver-BBj51UAZ.js +90 -0
- package/dist/colorResolver-C6PTz0S8.cjs +1 -0
- package/dist/component-names.cjs +1 -0
- package/dist/component-names.mjs +79 -0
- package/dist/components/BaseOverlay.cjs +1 -0
- package/dist/components/BaseOverlay.mjs +5 -0
- package/dist/components/GAlert.cjs +1 -0
- package/dist/components/GAlert.mjs +126 -0
- package/dist/components/GAside.cjs +1 -0
- package/dist/components/GAside.mjs +90 -0
- package/dist/components/GAsideGroup.cjs +1 -0
- package/dist/components/GAsideGroup.mjs +99 -0
- package/dist/components/GAsideItem.cjs +1 -0
- package/dist/components/GAsideItem.mjs +123 -0
- package/dist/components/GAvatar.cjs +1 -0
- package/dist/components/GAvatar.mjs +5 -0
- package/dist/components/GAvatarGroup.cjs +1 -0
- package/dist/components/GAvatarGroup.mjs +66 -0
- package/dist/components/GBadge.cjs +1 -0
- package/dist/components/GBadge.mjs +141 -0
- package/dist/components/GButton.cjs +1 -0
- package/dist/components/GButton.mjs +4 -0
- package/dist/components/GCard.cjs +1 -0
- package/dist/components/GCard.mjs +235 -0
- package/dist/components/GCheckbox.cjs +1 -0
- package/dist/components/GCheckbox.mjs +4 -0
- package/dist/components/GCheckboxGroup.cjs +1 -0
- package/dist/components/GCheckboxGroup.mjs +4 -0
- package/dist/components/GChip.cjs +1 -0
- package/dist/components/GChip.mjs +133 -0
- package/dist/components/GCombobox.cjs +1 -0
- package/dist/components/GCombobox.mjs +477 -0
- package/dist/components/GDivider.cjs +1 -0
- package/dist/components/GDivider.mjs +189 -0
- package/dist/components/GDrawer.cjs +1 -0
- package/dist/components/GDrawer.mjs +151 -0
- package/dist/components/GDropdownGroup.cjs +1 -0
- package/dist/components/GDropdownGroup.mjs +24 -0
- package/dist/components/GExpandTransition.cjs +1 -0
- package/dist/components/GExpandTransition.mjs +4 -0
- package/dist/components/GExpansion.cjs +1 -0
- package/dist/components/GExpansion.mjs +321 -0
- package/dist/components/GExpansionGroup.cjs +1 -0
- package/dist/components/GExpansionGroup.mjs +95 -0
- package/dist/components/GFAB.cjs +1 -0
- package/dist/components/GFAB.mjs +142 -0
- package/dist/components/GForm.cjs +1 -0
- package/dist/components/GForm.mjs +4 -0
- package/dist/components/GGradient.cjs +1 -0
- package/dist/components/GGradient.mjs +158 -0
- package/dist/components/GGradientMaterial.cjs +1 -0
- package/dist/components/GGradientMaterial.mjs +4 -0
- package/dist/components/GIcon.cjs +1 -0
- package/dist/components/GIcon.mjs +35 -0
- package/dist/components/GImg.cjs +1 -0
- package/dist/components/GImg.mjs +167 -0
- package/dist/components/GInput.cjs +1 -0
- package/dist/components/GInput.mjs +4 -0
- package/dist/components/GLoading.cjs +1 -0
- package/dist/components/GLoading.mjs +4 -0
- package/dist/components/GMenu.cjs +1 -0
- package/dist/components/GMenu.mjs +274 -0
- package/dist/components/GModal.cjs +1 -0
- package/dist/components/GModal.mjs +141 -0
- package/dist/components/GNavGroup.cjs +1 -0
- package/dist/components/GNavGroup.mjs +99 -0
- package/dist/components/GNavItem.cjs +1 -0
- package/dist/components/GNavItem.mjs +124 -0
- package/dist/components/GNavList.cjs +1 -0
- package/dist/components/GNavList.mjs +82 -0
- package/dist/components/GNavbar.cjs +1 -0
- package/dist/components/GNavbar.mjs +172 -0
- package/dist/components/GNavbarItem.cjs +1 -0
- package/dist/components/GNavbarItem.mjs +120 -0
- package/dist/components/GNavbarMenu.cjs +1 -0
- package/dist/components/GNavbarMenu.mjs +147 -0
- package/dist/components/GNavbarSubItem.cjs +1 -0
- package/dist/components/GNavbarSubItem.mjs +96 -0
- package/dist/components/GProgress.cjs +1 -0
- package/dist/components/GProgress.mjs +135 -0
- package/dist/components/GQuickActions.cjs +1 -0
- package/dist/components/GQuickActions.mjs +157 -0
- package/dist/components/GRadio.cjs +1 -0
- package/dist/components/GRadio.mjs +4 -0
- package/dist/components/GSelect.cjs +1 -0
- package/dist/components/GSelect.mjs +145 -0
- package/dist/components/GSnackbar.cjs +1 -0
- package/dist/components/GSnackbar.mjs +285 -0
- package/dist/components/GSquircle.cjs +1 -0
- package/dist/components/GSquircle.mjs +180 -0
- package/dist/components/GStepPanel.cjs +1 -0
- package/dist/components/GStepPanel.mjs +156 -0
- package/dist/components/GStepper.cjs +1 -0
- package/dist/components/GStepper.mjs +335 -0
- package/dist/components/GStepperActions.cjs +1 -0
- package/dist/components/GStepperActions.mjs +61 -0
- package/dist/components/GSwitch.cjs +1 -0
- package/dist/components/GSwitch.mjs +4 -0
- package/dist/components/GTab.cjs +1 -0
- package/dist/components/GTab.mjs +105 -0
- package/dist/components/GTabList.cjs +1 -0
- package/dist/components/GTabList.mjs +28 -0
- package/dist/components/GTabPanel.cjs +1 -0
- package/dist/components/GTabPanel.mjs +35 -0
- package/dist/components/GTabPanels.cjs +1 -0
- package/dist/components/GTabPanels.mjs +24 -0
- package/dist/components/GTable.cjs +1 -0
- package/dist/components/GTable.mjs +4 -0
- package/dist/components/GTabs.cjs +1 -0
- package/dist/components/GTabs.mjs +73 -0
- package/dist/components/GText.cjs +1 -0
- package/dist/components/GText.mjs +59 -0
- package/dist/components/GTextarea.cjs +1 -0
- package/dist/components/GTextarea.mjs +4 -0
- package/dist/components/GTooltip.cjs +1 -0
- package/dist/components/GTooltip.mjs +65 -0
- package/dist/components/GTransition.cjs +1 -0
- package/dist/components/GTransition.mjs +4 -0
- package/dist/components/GTransitionGroup.cjs +1 -0
- package/dist/components/GTransitionGroup.mjs +4 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +135 -70
- package/dist/context-D_uVf3Ih.cjs +1 -0
- package/dist/context-DmyyyTi-.js +164 -0
- package/dist/context-FLWxn0X1.js +8 -0
- package/dist/context-obVnJalQ.cjs +1 -0
- package/dist/control-B3T1H83D.js +53 -0
- package/dist/control-C5Ws5lp3.cjs +1 -0
- package/dist/controller-DTFaTta0.cjs +1 -0
- package/dist/controller-Dk9Wd1Sr.js +101 -0
- package/dist/createComponentId-CK5eUecc.cjs +1 -0
- package/dist/createComponentId-CrqdDHC3.js +5 -0
- package/dist/createId-t3ke7cZx.js +5 -0
- package/dist/createId-tM8qn_N_.cjs +1 -0
- package/dist/cssTokens-CR4OxIND.js +75 -0
- package/dist/cssTokens-gELrmYNj.cjs +5 -0
- package/dist/defaults-DJ6ZV1Qc.js +51 -0
- package/dist/defaults-aVtmQF-9.cjs +1 -0
- package/dist/density-C3E1eUQ3.cjs +1 -0
- package/dist/density-Ci15Ek7T.js +15 -0
- package/dist/di-BXJSJc_E.js +12 -0
- package/dist/di-Czemfti1.cjs +1 -0
- package/dist/directives.cjs +1 -1
- package/dist/directives.mjs +8 -8
- package/dist/disabled-B_bAKgaM.cjs +1 -0
- package/dist/disabled-CAV056h6.js +12 -0
- package/dist/environment-Dr5kpq3D.cjs +1 -0
- package/dist/environment-o0e-UUbv.js +13 -0
- package/dist/fieldControl-BgVt1Hh1.js +144 -0
- package/dist/fieldControl-CIJMnu2j.cjs +1 -0
- package/dist/floatingTrigger-B_K4a4Fz.cjs +1 -0
- package/dist/floatingTrigger-CyvZ-aQ6.js +275 -0
- package/dist/glass-CJjbKWWO.js +20 -0
- package/dist/glass-CZEblMo2.cjs +1 -0
- package/dist/gradient-Bf_C3oqp.cjs +1 -0
- package/dist/gradient-Cesrzb2-.js +138 -0
- package/dist/gradientMaterial-BEhJP5b1.js +141 -0
- package/dist/gradientMaterial-DrttA9E_.cjs +1 -0
- package/dist/groupContext-C2lbjfsf.cjs +1 -0
- package/dist/groupContext-CBceOY6B.js +14 -0
- package/dist/groupContext-DU6dxh4q.cjs +1 -0
- package/dist/groupContext-vS5bHonI.js +14 -0
- package/dist/head-BMx6G1g4.js +45 -0
- package/dist/head-u-LV2RM9.cjs +2 -0
- package/dist/icon-C1AhpC8p.js +66 -0
- package/dist/icon-DgrRDU9A.cjs +1 -0
- package/dist/id-Cjq3OT0R.js +5 -0
- package/dist/id-EYQallpf.cjs +1 -0
- package/dist/index-71vxBpir.js +53 -0
- package/dist/index-8uDgLBTF.cjs +1 -0
- package/dist/index-BDHATTpo.js +141 -0
- package/dist/index-DQ6stZ3U.js +97 -0
- package/dist/index-Dd_8Hfjk.cjs +1 -0
- package/dist/index-YvJ0cd3f.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +315 -204
- package/dist/item-BiO-0FYg.cjs +1 -0
- package/dist/item-Cm_rJTEH.js +47 -0
- package/dist/layerStack-Bn2nFt2F.cjs +1 -0
- package/dist/layerStack-C926It64.js +86 -0
- package/dist/mask-BGVqqZXk.cjs +1 -0
- package/dist/mask-D4VYR8fo.js +541 -0
- package/dist/material-CkThdnz0.cjs +1 -0
- package/dist/material-Cn0l9r_y.js +182 -0
- package/dist/materialSurface-BZWqxSOo.cjs +1 -0
- package/dist/materialSurface-DKWanYUC.js +57 -0
- package/dist/menuContext-COshJAv-.js +14 -0
- package/dist/menuContext-DqTLm_y8.cjs +1 -0
- package/dist/mount-CqN_WfIk.js +58 -0
- package/dist/mount-qFaEMFZj.cjs +1 -0
- package/dist/palette-CH8mtBoc.js +3779 -0
- package/dist/palette-WOebHg01.cjs +316 -0
- package/dist/plugin.cjs +1 -0
- package/dist/plugin.mjs +27 -0
- package/dist/propsFactory-DT6-QS4L.cjs +1 -0
- package/dist/propsFactory-FM5RGbLN.js +13 -0
- package/dist/px-B-cyF02Z.js +8 -0
- package/dist/px-CVkec5Jf.cjs +1 -0
- package/dist/rounded-BneJO7vz.cjs +1 -0
- package/dist/rounded-CKhFFdmx.js +12 -0
- package/dist/routerLink-BhTEISct.cjs +1 -0
- package/dist/routerLink-p0fsQRNq.js +11 -0
- package/dist/runtime-DBDKFxqD.js +22 -0
- package/dist/runtime-DjqHzhfc.cjs +1 -0
- package/dist/scheme-C0jQNw-v.cjs +299 -0
- package/dist/scheme-Dp9cSd1s.js +1406 -0
- package/dist/selected-CEdYQtXH.cjs +1 -0
- package/dist/selected-DPdzuMh_.js +20 -0
- package/dist/selectionController-Cq7OffKP.js +98 -0
- package/dist/selectionController-D_SzzLi7.cjs +1 -0
- package/dist/selectionModel-B_tgk_Aa.cjs +1 -0
- package/dist/selectionModel-DMATNQOo.js +76 -0
- package/dist/services.cjs +1 -1
- package/dist/services.mjs +10 -3
- package/dist/size-BSjg5E6f.cjs +1 -0
- package/dist/size-C-WH-uPa.js +16 -0
- package/dist/ssr.cjs +1 -0
- package/dist/ssr.mjs +31 -0
- package/dist/state-CUskk7oG.cjs +1 -0
- package/dist/state-zMDQLwyB.js +12 -0
- package/dist/stateIcon-B8wmjxgd.js +98 -0
- package/dist/stateIcon-BxT3Loel.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-NFdB950M.cjs +1 -0
- package/dist/surface-i-1vm2j3.js +99 -0
- package/dist/surfaceColor-BlDoAKoV.cjs +1 -0
- package/dist/surfaceColor-Cic675ry.js +34 -0
- package/dist/surfaceMaterial-B1a1iV02.js +39 -0
- package/dist/surfaceMaterial-JpbVongH.cjs +1 -0
- package/dist/tagName-D8HI-Yqc.js +40 -0
- package/dist/tagName-EmIHK0fg.cjs +1 -0
- package/dist/teleport-6ZRoZ2JT.js +26 -0
- package/dist/teleport-Bj9Z7LhE.cjs +1 -0
- package/dist/textFieldComponent-Ct4Z0dFr.cjs +1 -0
- package/dist/textFieldComponent-gnbYgrX0.js +217 -0
- package/dist/textFieldControl-Cxnq3lo4.js +80 -0
- package/dist/textFieldControl-D0-pdxIY.cjs +1 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +60 -59
- package/dist/tokenInputKeyboard-DBcgGd7c.js +108 -0
- package/dist/tokenInputKeyboard-DqEV34Li.cjs +1 -0
- package/dist/transition-BPMUkgHY.cjs +1 -0
- package/dist/transition-DVGMCo2o.js +108 -0
- package/dist/types/componentNames.d.ts +5 -0
- package/dist/types/components/GGroup/GGroup.vue.d.ts +11 -9
- package/dist/types/components/GGroup/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +55 -43
- package/dist/types/components/transitions/GExpandTransition.vue.d.ts +26 -32
- package/dist/types/components/transitions/GTransition.vue.d.ts +26 -32
- package/dist/types/components/transitions/GTransitionGroup.vue.d.ts +26 -32
- package/dist/types/components/transitions/TransitionExpansion.vue.d.ts +2 -8
- package/dist/types/components/transitions/TransitionOverlay.vue.d.ts +2 -8
- package/dist/types/components/transitions/TransitionRotate.vue.d.ts +2 -8
- package/dist/types/components/transitions/TransitionScale.vue.d.ts +2 -8
- package/dist/types/components/transitions/TransitionStaggerTranslate.vue.d.ts +2 -8
- package/dist/types/components/transitions/index.d.ts +3 -3
- package/dist/types/components/ui/BaseFloating/BaseFloating.vue.d.ts +45 -53
- package/dist/types/components/ui/BaseFloating/index.d.ts +1 -1
- package/dist/types/components/ui/BaseOverlay/BaseOverlay.vue.d.ts +62 -71
- package/dist/types/components/ui/BaseOverlay/index.d.ts +1 -1
- package/dist/types/components/ui/BaseOverlay/types.d.ts +24 -24
- package/dist/types/components/ui/GAction/GAction.vue.d.ts +1 -1
- package/dist/types/components/ui/GAction/index.d.ts +1 -1
- package/dist/types/components/ui/GAction/types.d.ts +15 -15
- package/dist/types/components/ui/GAlert/GAlert.vue.d.ts +178 -184
- package/dist/types/components/ui/GAlert/index.d.ts +1 -1
- package/dist/types/components/ui/GAlert/types.d.ts +151 -151
- package/dist/types/components/ui/GAside/GAside.vue.d.ts +26 -24
- package/dist/types/components/ui/GAside/GAsideGroup.vue.d.ts +11 -9
- package/dist/types/components/ui/GAside/GAsideItem.vue.d.ts +16 -14
- package/dist/types/components/ui/GAside/context.d.ts +2 -2
- package/dist/types/components/ui/GAside/groupContext.d.ts +1 -1
- package/dist/types/components/ui/GAside/index.d.ts +4 -4
- package/dist/types/components/ui/GAside/types.d.ts +28 -28
- package/dist/types/components/ui/GAvatar/GAvatar.vue.d.ts +867 -0
- package/dist/types/components/ui/GAvatar/GAvatarGroup.vue.d.ts +188 -0
- package/dist/types/components/ui/GAvatar/index.d.ts +3 -0
- package/dist/types/components/ui/GAvatar/types.d.ts +585 -0
- package/dist/types/components/ui/GBadge/GBadge.vue.d.ts +367 -373
- package/dist/types/components/ui/GBadge/index.d.ts +2 -2
- package/dist/types/components/ui/GBadge/types.d.ts +153 -153
- package/dist/types/components/ui/GButton/GButton.vue.d.ts +252 -258
- package/dist/types/components/ui/GButton/index.d.ts +2 -2
- package/dist/types/components/ui/GButton/types.d.ts +149 -149
- package/dist/types/components/ui/GCard/GCard.vue.d.ts +943 -0
- package/dist/types/components/ui/GCard/index.d.ts +2 -0
- package/dist/types/components/ui/GCard/types.d.ts +519 -0
- package/dist/types/components/ui/GCheckControl/GCheckControl.vue.d.ts +86 -92
- package/dist/types/components/ui/GCheckControl/GCheckGroup.vue.d.ts +77 -83
- package/dist/types/components/ui/GCheckControl/GCheckIndicator.vue.d.ts +17 -10
- package/dist/types/components/ui/GCheckControl/index.d.ts +3 -3
- package/dist/types/components/ui/GCheckbox/GCheckbox.vue.d.ts +10 -211
- package/dist/types/components/ui/GCheckbox/index.d.ts +2 -2
- package/dist/types/components/ui/GCheckbox/types.d.ts +1 -1
- package/dist/types/components/ui/GCheckboxGroup/GCheckboxGroup.vue.d.ts +12 -10
- package/dist/types/components/ui/GCheckboxGroup/index.d.ts +2 -2
- package/dist/types/components/ui/GCheckboxGroup/types.d.ts +2 -2
- package/dist/types/components/ui/GChip/GChip.vue.d.ts +226 -228
- package/dist/types/components/ui/GChip/index.d.ts +2 -2
- package/dist/types/components/ui/GChip/types.d.ts +141 -140
- package/dist/types/components/ui/GCombobox/GCombobox.vue.d.ts +39 -0
- package/dist/types/components/ui/GCombobox/index.d.ts +2 -0
- package/dist/types/components/ui/GCombobox/types.d.ts +59 -0
- package/dist/types/components/ui/GDivider/GDivider.vue.d.ts +959 -0
- package/dist/types/components/ui/GDivider/index.d.ts +2 -0
- package/dist/types/components/ui/GDivider/types.d.ts +518 -0
- package/dist/types/components/ui/GDrawer/GDrawer.vue.d.ts +135 -141
- package/dist/types/components/ui/GDrawer/index.d.ts +2 -2
- package/dist/types/components/ui/GDrawer/types.d.ts +44 -44
- package/dist/types/components/ui/GDropdown/GDropdown.vue.d.ts +94 -102
- package/dist/types/components/ui/GDropdown/index.d.ts +1 -1
- package/dist/types/components/ui/GDropdown/types.d.ts +40 -40
- package/dist/types/components/ui/GDropdownGroup/GDropdownGroup.vue.d.ts +3 -9
- package/dist/types/components/ui/GDropdownGroup/index.d.ts +2 -2
- package/dist/types/components/ui/GDropdownSelect/GDropdownSelect.vue.d.ts +11 -9
- package/dist/types/components/ui/GDropdownSelect/types.d.ts +2 -2
- package/dist/types/components/ui/GExpansion/GExpansion.vue.d.ts +53 -51
- package/dist/types/components/ui/GExpansion/index.d.ts +1 -1
- package/dist/types/components/ui/GExpansion/types.d.ts +154 -154
- package/dist/types/components/ui/GExpansionGroup/GExpansionGroup.vue.d.ts +17 -15
- package/dist/types/components/ui/GExpansionGroup/index.d.ts +1 -1
- package/dist/types/components/ui/GExpansionGroup/types.d.ts +10 -7
- package/dist/types/components/ui/GFAB/GFAB.vue.d.ts +81 -87
- package/dist/types/components/ui/GFAB/index.d.ts +1 -1
- package/dist/types/components/ui/GFAB/types.d.ts +57 -57
- package/dist/types/components/ui/GFieldBase/GFieldBase.vue.d.ts +123 -54
- package/dist/types/components/ui/GFieldBase/props.d.ts +103 -34
- package/dist/types/components/ui/GForm/GForm.vue.d.ts +32 -40
- package/dist/types/components/ui/GForm/index.d.ts +2 -2
- package/dist/types/components/ui/GForm/types.d.ts +10 -10
- package/dist/types/components/ui/GGradient/GGradient.vue.d.ts +96 -102
- package/dist/types/components/ui/GGradient/GGradientBorderLayer.vue.d.ts +10 -4
- package/dist/types/components/ui/GGradient/index.d.ts +2 -2
- package/dist/types/components/ui/GGradient/types.d.ts +4 -4
- package/dist/types/components/ui/GGradientMaterial/GGradientMaterial.vue.d.ts +84 -90
- package/dist/types/components/ui/GGradientMaterial/index.d.ts +2 -2
- package/dist/types/components/ui/GGradientMaterial/types.d.ts +15 -15
- package/dist/types/components/ui/GIcon/GIcon.vue.d.ts +5 -5
- package/dist/types/components/ui/GIcon/index.d.ts +2 -2
- package/dist/types/components/ui/GIcon/sets/MdiIconSet.vue.d.ts +1 -1
- package/dist/types/components/ui/GIcon/types.d.ts +1 -1
- package/dist/types/components/ui/GIcon.vue.d.ts +2 -2
- package/dist/types/components/ui/GImg/GImg.vue.d.ts +266 -0
- package/dist/types/components/ui/GImg/index.d.ts +2 -0
- package/dist/types/components/ui/GImg/types.d.ts +174 -0
- package/dist/types/components/ui/GInput/GInput.vue.d.ts +14 -248
- package/dist/types/components/ui/GInput/SwitchPassword.vue.d.ts +2 -2
- package/dist/types/components/ui/GInput/index.d.ts +2 -2
- package/dist/types/components/ui/GInput/types.d.ts +2 -2
- package/dist/types/components/ui/GLoading/GLoading.vue.d.ts +30 -36
- package/dist/types/components/ui/GLoading/types.d.ts +9 -9
- package/dist/types/components/ui/GMenu/GMenu.vue.d.ts +19 -25
- package/dist/types/components/ui/GMenu/GSubmenu.vue.d.ts +16 -259
- package/dist/types/components/ui/GMenu/index.d.ts +1 -1
- package/dist/types/components/ui/GMenuItem/GMenuItem.vue.d.ts +89 -95
- package/dist/types/components/ui/GMenuItem/types.d.ts +32 -32
- package/dist/types/components/ui/GModal/GModal.vue.d.ts +139 -145
- package/dist/types/components/ui/GModal/index.d.ts +2 -2
- package/dist/types/components/ui/GModal/types.d.ts +48 -48
- package/dist/types/components/ui/GNavList/GNavGroup.vue.d.ts +11 -9
- package/dist/types/components/ui/GNavList/GNavItem.vue.d.ts +16 -14
- package/dist/types/components/ui/GNavList/GNavList.vue.d.ts +24 -22
- package/dist/types/components/ui/GNavList/context.d.ts +2 -2
- package/dist/types/components/ui/GNavList/groupContext.d.ts +1 -1
- package/dist/types/components/ui/GNavList/index.d.ts +4 -4
- package/dist/types/components/ui/GNavList/types.d.ts +27 -27
- package/dist/types/components/ui/GNavbar/GNavbar.vue.d.ts +16 -14
- package/dist/types/components/ui/GNavbar/GNavbarItem.vue.d.ts +20 -18
- package/dist/types/components/ui/GNavbar/GNavbarMenu.vue.d.ts +20 -18
- package/dist/types/components/ui/GNavbar/GNavbarSubItem.vue.d.ts +14 -12
- package/dist/types/components/ui/GNavbar/context.d.ts +2 -2
- package/dist/types/components/ui/GNavbar/index.d.ts +5 -5
- package/dist/types/components/ui/GNavbar/menuContext.d.ts +1 -1
- package/dist/types/components/ui/GNavbar/types.d.ts +30 -30
- package/dist/types/components/ui/GProgress/GProgress.vue.d.ts +83 -91
- package/dist/types/components/ui/GProgress/index.d.ts +1 -1
- package/dist/types/components/ui/GProgress/types.d.ts +16 -16
- package/dist/types/components/ui/GQuickActions/GQuickActions.vue.d.ts +26 -32
- package/dist/types/components/ui/GQuickActions/index.d.ts +2 -2
- package/dist/types/components/ui/GQuickActions/types.d.ts +3 -3
- package/dist/types/components/ui/GRadio/GRadio.vue.d.ts +12 -10
- package/dist/types/components/ui/GRadio/GRadioItem.vue.d.ts +13 -11
- package/dist/types/components/ui/GRadio/index.d.ts +3 -3
- package/dist/types/components/ui/GRadio/types.d.ts +2 -2
- package/dist/types/components/ui/GSelect/GSelect.vue.d.ts +12 -10
- package/dist/types/components/ui/GSelect/index.d.ts +2 -2
- package/dist/types/components/ui/GSelect/types.d.ts +13 -7
- package/dist/types/components/ui/GSelectItem.vue.d.ts +5 -11
- package/dist/types/components/ui/GSnackbar/GSnackbar.vue.d.ts +411 -417
- package/dist/types/components/ui/GSnackbar/index.d.ts +2 -2
- package/dist/types/components/ui/GSnackbar/types.d.ts +164 -164
- package/dist/types/components/ui/GSquircle/GSquircle.vue.d.ts +8 -14
- package/dist/types/components/ui/GSquircle/index.d.ts +1 -1
- package/dist/types/components/ui/GSquircle/types.d.ts +5 -5
- package/dist/types/components/ui/GStepper/GStepItem.vue.d.ts +18 -0
- package/dist/types/components/ui/GStepper/GStepPanel.vue.d.ts +78 -0
- package/dist/types/components/ui/GStepper/GStepper.vue.d.ts +65 -0
- package/dist/types/components/ui/GStepper/GStepperActions.vue.d.ts +24 -0
- package/dist/types/components/ui/GStepper/context.d.ts +42 -0
- package/dist/types/components/ui/GStepper/index.d.ts +4 -0
- package/dist/types/components/ui/GStepper/types.d.ts +708 -0
- package/dist/types/components/ui/GSwitch/GSwitch.vue.d.ts +10 -211
- package/dist/types/components/ui/GSwitch/index.d.ts +2 -2
- package/dist/types/components/ui/GSwitch/types.d.ts +1 -1
- package/dist/types/components/ui/GTable/GTable.vue.d.ts +63 -61
- package/dist/types/components/ui/GTable/GTableBody.vue.d.ts +8 -6
- package/dist/types/components/ui/GTable/GTableCell.vue.d.ts +9 -7
- package/dist/types/components/ui/GTable/GTableExpandedRow.vue.d.ts +10 -8
- package/dist/types/components/ui/GTable/GTableHead.vue.d.ts +9 -7
- package/dist/types/components/ui/GTable/GTableRow.vue.d.ts +8 -6
- package/dist/types/components/ui/GTable/context.d.ts +1 -1
- package/dist/types/components/ui/GTable/index.d.ts +3 -3
- package/dist/types/components/ui/GTable/types.d.ts +217 -213
- package/dist/types/components/ui/GTable/useTable.d.ts +3 -3
- package/dist/types/components/ui/GTable/useTableExpansion.d.ts +1 -1
- package/dist/types/components/ui/GTable/useTableSpans.d.ts +1 -1
- package/dist/types/components/ui/GTabs/GTab.vue.d.ts +14 -12
- package/dist/types/components/ui/GTabs/GTabList.vue.d.ts +3 -9
- package/dist/types/components/ui/GTabs/GTabPanel.vue.d.ts +9 -7
- package/dist/types/components/ui/GTabs/GTabPanels.vue.d.ts +6 -12
- package/dist/types/components/ui/GTabs/GTabs.vue.d.ts +24 -22
- package/dist/types/components/ui/GTabs/context.d.ts +3 -3
- package/dist/types/components/ui/GTabs/index.d.ts +6 -6
- package/dist/types/components/ui/GTabs/types.d.ts +24 -24
- package/dist/types/components/ui/GText/GText.vue.d.ts +5 -10
- package/dist/types/components/ui/GText/index.d.ts +1 -1
- package/dist/types/components/ui/GText/types.d.ts +1 -1
- package/dist/types/components/ui/GTextarea/GTextarea.vue.d.ts +14 -215
- package/dist/types/components/ui/GTextarea/index.d.ts +2 -2
- package/dist/types/components/ui/GTextarea/types.d.ts +2 -2
- package/dist/types/components/ui/GToggleButton/GToggleButton.vue.d.ts +10 -760
- package/dist/types/components/ui/GToggleButton/index.d.ts +2 -2
- package/dist/types/components/ui/GToggleButton/types.d.ts +127 -127
- package/dist/types/components/ui/GTooltip/GTooltip.vue.d.ts +79 -85
- package/dist/types/components/ui/GTooltip/index.d.ts +1 -1
- package/dist/types/components/ui/GTooltip/types.d.ts +37 -37
- package/dist/types/directives/gradientIcon.d.ts +1 -1
- package/dist/types/directives/gradientText.d.ts +2 -2
- package/dist/types/directives/index.d.ts +13 -13
- package/dist/types/directives/loading.d.ts +5 -5
- package/dist/types/directives/mask.d.ts +1 -1
- package/dist/types/directives/ripple.d.ts +1 -1
- package/dist/types/directives/specular.d.ts +1 -1
- package/dist/types/index.d.ts +13 -17
- package/dist/types/plugin.d.ts +15 -0
- package/dist/types/services/context.d.ts +8 -0
- package/dist/types/services/index.d.ts +4 -2
- package/dist/types/services/runtime.d.ts +5 -0
- package/dist/types/services/useLoading.d.ts +5 -2
- package/dist/types/services/useSnackbar.d.ts +5 -2
- package/dist/types/ssr/index.d.ts +2 -0
- package/dist/types/ssr/use/appScopedState.d.ts +1 -0
- package/dist/types/ssr/use/clientLifecycle.d.ts +2 -0
- package/dist/types/ssr/use/hydration.d.ts +2 -0
- package/dist/types/ssr/use/id.d.ts +1 -0
- package/dist/types/ssr/use/index.d.ts +6 -0
- package/dist/types/ssr/use/teleport.d.ts +11 -0
- package/dist/types/ssr/use/viewport.d.ts +12 -0
- package/dist/types/ssr/utils/environment.d.ts +11 -0
- package/dist/types/ssr/utils/head.d.ts +28 -0
- package/dist/types/ssr/utils/index.d.ts +3 -0
- package/dist/types/ssr/utils/mount.d.ts +21 -0
- package/dist/types/theme/color.d.ts +1 -1
- package/dist/types/theme/colorSystem.d.ts +3 -3
- package/dist/types/theme/cssTokens.d.ts +3 -2
- package/dist/types/theme/default.d.ts +13 -6
- package/dist/types/theme/index.d.ts +7 -6
- package/dist/types/theme/palette.d.ts +1 -1
- package/dist/types/theme/scheme.d.ts +1 -1
- package/dist/types/theme/types.d.ts +1 -1
- package/dist/types/types/CommonTypes.d.ts +2 -2
- package/dist/types/use/PLA.d.ts +1 -1
- package/dist/types/use/actionProps.d.ts +15 -15
- package/dist/types/use/actionSurface.d.ts +45 -45
- package/dist/types/use/appendTarget.d.ts +2 -1
- package/dist/types/use/breakpoints/index.d.ts +10 -1
- package/dist/types/use/check/booleanControl.d.ts +13 -13
- package/dist/types/use/check/index.d.ts +6 -6
- package/dist/types/use/check/optionGroup.d.ts +7 -7
- package/dist/types/use/check/types.d.ts +55 -55
- package/dist/types/use/color.d.ts +2 -2
- package/dist/types/use/colorResolver.d.ts +2 -2
- package/dist/types/use/density.d.ts +16 -0
- package/dist/types/use/expansion/controller.d.ts +1 -1
- package/dist/types/use/expansion/di.d.ts +1 -1
- package/dist/types/use/expansion/index.d.ts +3 -3
- package/dist/types/use/floating.d.ts +18 -18
- package/dist/types/use/floatingLayer.d.ts +1 -1
- package/dist/types/use/form/control.d.ts +1 -1
- package/dist/types/use/form/fieldKeyboard.d.ts +19 -0
- package/dist/types/use/form/props.d.ts +69 -17
- package/dist/types/use/form/textFieldComponent.d.ts +1 -3
- package/dist/types/use/form/textFieldControl.d.ts +13 -5
- package/dist/types/use/glass.d.ts +2 -2
- package/dist/types/use/gradient.d.ts +81 -81
- package/dist/types/use/gradientGlow.d.ts +7 -7
- package/dist/types/use/gradientMaterial.d.ts +3 -3
- package/dist/types/use/gradientRuntime.d.ts +2 -2
- package/dist/types/use/gradientRuntimeRegistry.d.ts +1 -1
- package/dist/types/use/gradientSurface.d.ts +5 -5
- package/dist/types/use/group/di.d.ts +1 -1
- package/dist/types/use/group/groupController.d.ts +1 -1
- package/dist/types/use/index.d.ts +23 -13
- package/dist/types/use/input/index.d.ts +4 -4
- package/dist/types/use/input/props.d.ts +84 -45
- package/dist/types/use/layerStack.d.ts +3 -3
- package/dist/types/use/material.d.ts +9 -9
- package/dist/types/use/materialSurface.d.ts +103 -103
- package/dist/types/use/menu.d.ts +5 -5
- package/dist/types/use/menuContext.d.ts +1 -1
- package/dist/types/use/navigation/controller.d.ts +14 -0
- package/dist/types/use/navigation/index.d.ts +4 -0
- package/dist/types/use/navigation/item.d.ts +9 -0
- package/dist/types/use/navigation/keyboard.d.ts +4 -0
- package/dist/types/use/navigation/types.d.ts +42 -0
- package/dist/types/use/open.d.ts +1 -1
- package/dist/types/use/overlay.d.ts +18 -18
- package/dist/types/use/placement.d.ts +2 -2
- package/dist/types/use/px.d.ts +1 -1
- package/dist/types/use/select/comboboxController.d.ts +36 -0
- package/dist/types/use/select/commit.d.ts +23 -0
- package/dist/types/use/select/controller.d.ts +10 -5
- package/dist/types/use/select/creatable.d.ts +18 -0
- package/dist/types/use/select/fieldControl.d.ts +59 -0
- package/dist/types/use/select/filter.d.ts +14 -0
- package/dist/types/use/select/items.d.ts +1 -1
- package/dist/types/use/select/listboxKeyboard.d.ts +9 -0
- package/dist/types/use/select/menuItems.d.ts +2 -2
- package/dist/types/use/select/menuSlot.d.ts +2 -2
- package/dist/types/use/select/modelFallbackItems.d.ts +12 -0
- package/dist/types/use/select/search.d.ts +14 -0
- package/dist/types/use/select/searchFieldControl.d.ts +24 -0
- package/dist/types/use/select/selection.d.ts +1 -1
- package/dist/types/use/select/selectionController.d.ts +1 -1
- package/dist/types/use/select/selectionSummary.d.ts +2 -1
- package/dist/types/use/select/tokenInputKeyboard.d.ts +11 -0
- package/dist/types/use/selected.d.ts +1 -1
- package/dist/types/use/size.d.ts +2 -2
- package/dist/types/use/state.d.ts +1 -1
- package/dist/types/use/stateIcon.d.ts +9 -0
- package/dist/types/use/stepper/controller.d.ts +20 -0
- package/dist/types/use/stepper/index.d.ts +1 -0
- package/dist/types/use/surface.d.ts +26 -26
- package/dist/types/use/surfaceColor.d.ts +3 -3
- package/dist/types/use/surfaceMaterial.d.ts +8 -8
- package/dist/types/use/textarea/index.d.ts +2 -2
- package/dist/types/use/textarea/props.d.ts +82 -43
- package/dist/types/use/transition.d.ts +5 -5
- package/dist/types/use/variant.d.ts +1 -1
- package/dist/types/utils/createComponentId.d.ts +1 -1
- package/dist/types/utils/createId.d.ts +1 -1
- package/dist/types-BItiZqNo.cjs +1 -0
- package/dist/types-BPZPPi6n.cjs +1 -0
- package/dist/types-BZSR5qEq.js +69 -0
- package/dist/types-CAh-uxuw.js +113 -0
- package/dist/types-Ce2Qoz6Q.js +90 -0
- package/dist/types-DGs8vjIX.cjs +1 -0
- package/dist/types-D_HgEWtj.js +95 -0
- package/dist/types-DmWFHzOk.js +80 -0
- package/dist/types-DsVDdHxP.cjs +1 -0
- package/dist/types-cjs/componentNames.d.cts +5 -0
- package/dist/types-cjs/components/GGroup/GGroup.vue.d.cts +24 -0
- package/dist/types-cjs/components/GGroup/index.d.cts +1 -0
- package/dist/types-cjs/components/GGroup/types.d.cts +0 -0
- package/dist/types-cjs/components/index.d.cts +55 -0
- package/dist/types-cjs/components/transitions/GExpandTransition.vue.d.cts +234 -0
- package/dist/types-cjs/components/transitions/GTransition.vue.d.cts +234 -0
- package/dist/types-cjs/components/transitions/GTransitionGroup.vue.d.cts +218 -0
- package/dist/types-cjs/components/transitions/TransitionExpansion.vue.d.cts +18 -0
- package/dist/types-cjs/components/transitions/TransitionOverlay.vue.d.cts +15 -0
- package/dist/types-cjs/components/transitions/TransitionRotate.vue.d.cts +11 -0
- package/dist/types-cjs/components/transitions/TransitionScale.vue.d.cts +15 -0
- package/dist/types-cjs/components/transitions/TransitionStaggerTranslate.vue.d.cts +11 -0
- package/dist/types-cjs/components/transitions/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/BaseFloating/BaseFloating.vue.d.cts +237 -0
- package/dist/types-cjs/components/ui/BaseFloating/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/BaseFloating/types.d.cts +0 -0
- package/dist/types-cjs/components/ui/BaseOverlay/BaseOverlay.vue.d.cts +228 -0
- package/dist/types-cjs/components/ui/BaseOverlay/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/BaseOverlay/types.d.cts +108 -0
- package/dist/types-cjs/components/ui/GAction/GAction.vue.d.cts +2 -0
- package/dist/types-cjs/components/ui/GAction/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GAction/types.d.cts +33 -0
- package/dist/types-cjs/components/ui/GAlert/GAlert.vue.d.cts +756 -0
- package/dist/types-cjs/components/ui/GAlert/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GAlert/types.d.cts +400 -0
- package/dist/types-cjs/components/ui/GAside/GAside.vue.d.cts +50 -0
- package/dist/types-cjs/components/ui/GAside/GAsideGroup.vue.d.cts +30 -0
- package/dist/types-cjs/components/ui/GAside/GAsideItem.vue.d.cts +37 -0
- package/dist/types-cjs/components/ui/GAside/context.d.cts +15 -0
- package/dist/types-cjs/components/ui/GAside/groupContext.d.cts +7 -0
- package/dist/types-cjs/components/ui/GAside/index.d.cts +4 -0
- package/dist/types-cjs/components/ui/GAside/types.d.cts +273 -0
- package/dist/types-cjs/components/ui/GAvatar/GAvatar.vue.d.cts +867 -0
- package/dist/types-cjs/components/ui/GAvatar/GAvatarGroup.vue.d.cts +188 -0
- package/dist/types-cjs/components/ui/GAvatar/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/GAvatar/types.d.cts +585 -0
- package/dist/types-cjs/components/ui/GBadge/GBadge.vue.d.cts +786 -0
- package/dist/types-cjs/components/ui/GBadge/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GBadge/types.d.cts +422 -0
- package/dist/types-cjs/components/ui/GButton/GButton.vue.d.cts +820 -0
- package/dist/types-cjs/components/ui/GButton/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GButton/types.d.cts +457 -0
- package/dist/types-cjs/components/ui/GCard/GCard.vue.d.cts +943 -0
- package/dist/types-cjs/components/ui/GCard/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GCard/types.d.cts +519 -0
- package/dist/types-cjs/components/ui/GCheckControl/GCheckControl.vue.d.cts +242 -0
- package/dist/types-cjs/components/ui/GCheckControl/GCheckGroup.vue.d.cts +184 -0
- package/dist/types-cjs/components/ui/GCheckControl/GCheckIndicator.vue.d.cts +28 -0
- package/dist/types-cjs/components/ui/GCheckControl/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/GCheckbox/GCheckbox.vue.d.cts +27 -0
- package/dist/types-cjs/components/ui/GCheckbox/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GCheckbox/types.d.cts +1 -0
- package/dist/types-cjs/components/ui/GCheckboxGroup/GCheckboxGroup.vue.d.cts +26 -0
- package/dist/types-cjs/components/ui/GCheckboxGroup/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GCheckboxGroup/types.d.cts +12 -0
- package/dist/types-cjs/components/ui/GChip/GChip.vue.d.cts +731 -0
- package/dist/types-cjs/components/ui/GChip/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GChip/types.d.cts +403 -0
- package/dist/types-cjs/components/ui/GCombobox/GCombobox.vue.d.cts +39 -0
- package/dist/types-cjs/components/ui/GCombobox/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GCombobox/types.d.cts +59 -0
- package/dist/types-cjs/components/ui/GDivider/GDivider.vue.d.cts +959 -0
- package/dist/types-cjs/components/ui/GDivider/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GDivider/types.d.cts +518 -0
- package/dist/types-cjs/components/ui/GDrawer/GDrawer.vue.d.cts +429 -0
- package/dist/types-cjs/components/ui/GDrawer/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GDrawer/types.d.cts +205 -0
- package/dist/types-cjs/components/ui/GDropdown/GDropdown.vue.d.cts +418 -0
- package/dist/types-cjs/components/ui/GDropdown/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GDropdown/types.d.cts +208 -0
- package/dist/types-cjs/components/ui/GDropdownGroup/GDropdownGroup.vue.d.cts +23 -0
- package/dist/types-cjs/components/ui/GDropdownGroup/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GDropdownGroup/types.d.cts +10 -0
- package/dist/types-cjs/components/ui/GDropdownSelect/GDropdownSelect.vue.d.cts +19 -0
- package/dist/types-cjs/components/ui/GDropdownSelect/index.d.cts +0 -0
- package/dist/types-cjs/components/ui/GDropdownSelect/types.d.cts +14 -0
- package/dist/types-cjs/components/ui/GExpansion/GExpansion.vue.d.cts +110 -0
- package/dist/types-cjs/components/ui/GExpansion/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GExpansion/types.d.cts +479 -0
- package/dist/types-cjs/components/ui/GExpansionGroup/GExpansionGroup.vue.d.cts +34 -0
- package/dist/types-cjs/components/ui/GExpansionGroup/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GExpansionGroup/types.d.cts +61 -0
- package/dist/types-cjs/components/ui/GFAB/GFAB.vue.d.cts +415 -0
- package/dist/types-cjs/components/ui/GFAB/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GFAB/types.d.cts +247 -0
- package/dist/types-cjs/components/ui/GFieldBase/GFieldBase.vue.d.cts +312 -0
- package/dist/types-cjs/components/ui/GFieldBase/props.d.cts +256 -0
- package/dist/types-cjs/components/ui/GForm/GForm.vue.d.cts +148 -0
- package/dist/types-cjs/components/ui/GForm/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GForm/types.d.cts +107 -0
- package/dist/types-cjs/components/ui/GGradient/GGradient.vue.d.cts +362 -0
- package/dist/types-cjs/components/ui/GGradient/GGradientBorderLayer.vue.d.cts +17 -0
- package/dist/types-cjs/components/ui/GGradient/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GGradient/types.d.cts +23 -0
- package/dist/types-cjs/components/ui/GGradientMaterial/GGradientMaterial.vue.d.cts +251 -0
- package/dist/types-cjs/components/ui/GGradientMaterial/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GGradientMaterial/types.d.cts +140 -0
- package/dist/types-cjs/components/ui/GIcon/GIcon.vue.d.cts +31 -0
- package/dist/types-cjs/components/ui/GIcon/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GIcon/sets/MdiIconSet.vue.d.cts +3 -0
- package/dist/types-cjs/components/ui/GIcon/types.d.cts +24 -0
- package/dist/types-cjs/components/ui/GIcon.vue.d.cts +6 -0
- package/dist/types-cjs/components/ui/GImg/GImg.vue.d.cts +266 -0
- package/dist/types-cjs/components/ui/GImg/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GImg/types.d.cts +174 -0
- package/dist/types-cjs/components/ui/GInput/GInput.vue.d.cts +33 -0
- package/dist/types-cjs/components/ui/GInput/SwitchPassword.vue.d.cts +9 -0
- package/dist/types-cjs/components/ui/GInput/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GInput/types.d.cts +8 -0
- package/dist/types-cjs/components/ui/GLoading/GLoading.vue.d.cts +128 -0
- package/dist/types-cjs/components/ui/GLoading/types.d.cts +63 -0
- package/dist/types-cjs/components/ui/GMenu/GMenu.vue.d.cts +87 -0
- package/dist/types-cjs/components/ui/GMenu/GSubmenu.vue.d.cts +26 -0
- package/dist/types-cjs/components/ui/GMenu/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GMenu/types.d.cts +0 -0
- package/dist/types-cjs/components/ui/GMenuItem/GMenuItem.vue.d.cts +175 -0
- package/dist/types-cjs/components/ui/GMenuItem/index.d.cts +0 -0
- package/dist/types-cjs/components/ui/GMenuItem/types.d.cts +93 -0
- package/dist/types-cjs/components/ui/GModal/GModal.vue.d.cts +420 -0
- package/dist/types-cjs/components/ui/GModal/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GModal/types.d.cts +198 -0
- package/dist/types-cjs/components/ui/GNavList/GNavGroup.vue.d.cts +30 -0
- package/dist/types-cjs/components/ui/GNavList/GNavItem.vue.d.cts +37 -0
- package/dist/types-cjs/components/ui/GNavList/GNavList.vue.d.cts +42 -0
- package/dist/types-cjs/components/ui/GNavList/context.d.cts +15 -0
- package/dist/types-cjs/components/ui/GNavList/groupContext.d.cts +7 -0
- package/dist/types-cjs/components/ui/GNavList/index.d.cts +4 -0
- package/dist/types-cjs/components/ui/GNavList/types.d.cts +249 -0
- package/dist/types-cjs/components/ui/GNavbar/GNavbar.vue.d.cts +36 -0
- package/dist/types-cjs/components/ui/GNavbar/GNavbarItem.vue.d.cts +41 -0
- package/dist/types-cjs/components/ui/GNavbar/GNavbarMenu.vue.d.cts +43 -0
- package/dist/types-cjs/components/ui/GNavbar/GNavbarSubItem.vue.d.cts +42 -0
- package/dist/types-cjs/components/ui/GNavbar/context.d.cts +17 -0
- package/dist/types-cjs/components/ui/GNavbar/index.d.cts +5 -0
- package/dist/types-cjs/components/ui/GNavbar/menuContext.d.cts +9 -0
- package/dist/types-cjs/components/ui/GNavbar/types.d.cts +330 -0
- package/dist/types-cjs/components/ui/GProgress/GProgress.vue.d.cts +194 -0
- package/dist/types-cjs/components/ui/GProgress/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GProgress/types.d.cts +121 -0
- package/dist/types-cjs/components/ui/GQuickActions/GQuickActions.vue.d.cts +40 -0
- package/dist/types-cjs/components/ui/GQuickActions/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GQuickActions/types.d.cts +19 -0
- package/dist/types-cjs/components/ui/GRadio/GRadio.vue.d.cts +26 -0
- package/dist/types-cjs/components/ui/GRadio/GRadioItem.vue.d.cts +34 -0
- package/dist/types-cjs/components/ui/GRadio/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/GRadio/types.d.cts +12 -0
- package/dist/types-cjs/components/ui/GSelect/GSelect.vue.d.cts +31 -0
- package/dist/types-cjs/components/ui/GSelect/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GSelect/types.d.cts +38 -0
- package/dist/types-cjs/components/ui/GSelectItem.vue.d.cts +43 -0
- package/dist/types-cjs/components/ui/GSnackbar/GSnackbar.vue.d.cts +986 -0
- package/dist/types-cjs/components/ui/GSnackbar/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GSnackbar/types.d.cts +515 -0
- package/dist/types-cjs/components/ui/GSquircle/GSquircle.vue.d.cts +19 -0
- package/dist/types-cjs/components/ui/GSquircle/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GSquircle/types.d.cts +20 -0
- package/dist/types-cjs/components/ui/GStepper/GStepItem.vue.d.cts +18 -0
- package/dist/types-cjs/components/ui/GStepper/GStepPanel.vue.d.cts +78 -0
- package/dist/types-cjs/components/ui/GStepper/GStepper.vue.d.cts +65 -0
- package/dist/types-cjs/components/ui/GStepper/GStepperActions.vue.d.cts +24 -0
- package/dist/types-cjs/components/ui/GStepper/context.d.cts +42 -0
- package/dist/types-cjs/components/ui/GStepper/index.d.cts +4 -0
- package/dist/types-cjs/components/ui/GStepper/types.d.cts +708 -0
- package/dist/types-cjs/components/ui/GSwitch/GSwitch.vue.d.cts +27 -0
- package/dist/types-cjs/components/ui/GSwitch/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GSwitch/types.d.cts +1 -0
- package/dist/types-cjs/components/ui/GTable/GTable.vue.d.cts +193 -0
- package/dist/types-cjs/components/ui/GTable/GTableBody.vue.d.cts +71 -0
- package/dist/types-cjs/components/ui/GTable/GTableCell.vue.d.cts +37 -0
- package/dist/types-cjs/components/ui/GTable/GTableExpandedRow.vue.d.cts +27 -0
- package/dist/types-cjs/components/ui/GTable/GTableHead.vue.d.cts +32 -0
- package/dist/types-cjs/components/ui/GTable/GTableRow.vue.d.cts +42 -0
- package/dist/types-cjs/components/ui/GTable/context.d.cts +25 -0
- package/dist/types-cjs/components/ui/GTable/index.d.cts +3 -0
- package/dist/types-cjs/components/ui/GTable/types.d.cts +670 -0
- package/dist/types-cjs/components/ui/GTable/useTable.d.cts +22 -0
- package/dist/types-cjs/components/ui/GTable/useTableExpansion.d.cts +17 -0
- package/dist/types-cjs/components/ui/GTable/useTableSpans.d.cts +12 -0
- package/dist/types-cjs/components/ui/GTabs/GTab.vue.d.cts +29 -0
- package/dist/types-cjs/components/ui/GTabs/GTabList.vue.d.cts +32 -0
- package/dist/types-cjs/components/ui/GTabs/GTabPanel.vue.d.cts +22 -0
- package/dist/types-cjs/components/ui/GTabs/GTabPanels.vue.d.cts +30 -0
- package/dist/types-cjs/components/ui/GTabs/GTabs.vue.d.cts +42 -0
- package/dist/types-cjs/components/ui/GTabs/context.d.cts +28 -0
- package/dist/types-cjs/components/ui/GTabs/index.d.cts +6 -0
- package/dist/types-cjs/components/ui/GTabs/types.d.cts +214 -0
- package/dist/types-cjs/components/ui/GText/GText.vue.d.cts +12 -0
- package/dist/types-cjs/components/ui/GText/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GText/types.d.cts +8 -0
- package/dist/types-cjs/components/ui/GTextarea/GTextarea.vue.d.cts +33 -0
- package/dist/types-cjs/components/ui/GTextarea/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GTextarea/types.d.cts +6 -0
- package/dist/types-cjs/components/ui/GToggleButton/GToggleButton.vue.d.cts +27 -0
- package/dist/types-cjs/components/ui/GToggleButton/index.d.cts +2 -0
- package/dist/types-cjs/components/ui/GToggleButton/types.d.cts +425 -0
- package/dist/types-cjs/components/ui/GTooltip/GTooltip.vue.d.cts +353 -0
- package/dist/types-cjs/components/ui/GTooltip/index.d.cts +1 -0
- package/dist/types-cjs/components/ui/GTooltip/types.d.cts +179 -0
- package/dist/types-cjs/directives/gradientIcon.d.cts +4 -0
- package/dist/types-cjs/directives/gradientText.d.cts +17 -0
- package/dist/types-cjs/directives/index.d.cts +13 -0
- package/dist/types-cjs/directives/loading.d.cts +19 -0
- package/dist/types-cjs/directives/mask.d.cts +13 -0
- package/dist/types-cjs/directives/ripple.d.cts +30 -0
- package/dist/types-cjs/directives/specular.d.cts +34 -0
- package/dist/types-cjs/directives/tooltip.d.cts +10 -0
- package/dist/types-cjs/index.d.cts +17 -0
- package/dist/types-cjs/package.json +3 -0
- package/dist/types-cjs/plugin.d.cts +15 -0
- package/dist/types-cjs/services/context.d.cts +8 -0
- package/dist/types-cjs/services/index.d.cts +4 -0
- package/dist/types-cjs/services/runtime.d.cts +5 -0
- package/dist/types-cjs/services/useLoading.d.cts +11 -0
- package/dist/types-cjs/services/useSnackbar.d.cts +25 -0
- package/dist/types-cjs/ssr/index.d.cts +2 -0
- package/dist/types-cjs/ssr/use/appScopedState.d.cts +1 -0
- package/dist/types-cjs/ssr/use/clientLifecycle.d.cts +2 -0
- package/dist/types-cjs/ssr/use/hydration.d.cts +2 -0
- package/dist/types-cjs/ssr/use/id.d.cts +1 -0
- package/dist/types-cjs/ssr/use/index.d.cts +6 -0
- package/dist/types-cjs/ssr/use/teleport.d.cts +11 -0
- package/dist/types-cjs/ssr/use/viewport.d.cts +12 -0
- package/dist/types-cjs/ssr/utils/environment.d.cts +11 -0
- package/dist/types-cjs/ssr/utils/head.d.cts +28 -0
- package/dist/types-cjs/ssr/utils/index.d.cts +3 -0
- package/dist/types-cjs/ssr/utils/mount.d.cts +21 -0
- package/dist/types-cjs/theme/color.d.cts +11 -0
- package/dist/types-cjs/theme/colorSeeds.d.cts +22 -0
- package/dist/types-cjs/theme/colorSystem.d.cts +12 -0
- package/dist/types-cjs/theme/cssTokens.d.cts +8 -0
- package/dist/types-cjs/theme/default.d.cts +51 -0
- package/dist/types-cjs/theme/gradient.d.cts +1 -0
- package/dist/types-cjs/theme/index.d.cts +13 -0
- package/dist/types-cjs/theme/palette.d.cts +13 -0
- package/dist/types-cjs/theme/scheme.d.cts +2 -0
- package/dist/types-cjs/theme/types.d.cts +11 -0
- package/dist/types-cjs/types/Colors.d.cts +2 -0
- package/dist/types-cjs/types/CommonTypes.d.cts +26 -0
- package/dist/types-cjs/types/UtilityTypes.d.cts +2 -0
- package/dist/types-cjs/use/PLA.d.cts +101 -0
- package/dist/types-cjs/use/actionProps.d.cts +38 -0
- package/dist/types-cjs/use/actionSurface.d.cts +200 -0
- package/dist/types-cjs/use/appendTarget.d.cts +5 -0
- package/dist/types-cjs/use/bodyScrollLock.d.cts +2 -0
- package/dist/types-cjs/use/booleanProp.d.cts +2 -0
- package/dist/types-cjs/use/breakpoints/index.d.cts +36 -0
- package/dist/types-cjs/use/check/booleanControl.d.cts +61 -0
- package/dist/types-cjs/use/check/groupFocus.d.cts +17 -0
- package/dist/types-cjs/use/check/index.d.cts +6 -0
- package/dist/types-cjs/use/check/optionGroup.d.cts +36 -0
- package/dist/types-cjs/use/check/selection.d.cts +2 -0
- package/dist/types-cjs/use/check/types.d.cts +496 -0
- package/dist/types-cjs/use/color.d.cts +20 -0
- package/dist/types-cjs/use/colorResolver.d.cts +16 -0
- package/dist/types-cjs/use/controllableOpen.d.cts +10 -0
- package/dist/types-cjs/use/defaults.d.cts +12 -0
- package/dist/types-cjs/use/density.d.cts +16 -0
- package/dist/types-cjs/use/disabled.d.cts +12 -0
- package/dist/types-cjs/use/dropdownContext.d.cts +9 -0
- package/dist/types-cjs/use/expansion/controller.d.cts +12 -0
- package/dist/types-cjs/use/expansion/di.d.cts +5 -0
- package/dist/types-cjs/use/expansion/index.d.cts +3 -0
- package/dist/types-cjs/use/expansion/types.d.cts +11 -0
- package/dist/types-cjs/use/floating.d.cts +120 -0
- package/dist/types-cjs/use/floatingDismiss.d.cts +10 -0
- package/dist/types-cjs/use/floatingLayer.d.cts +12 -0
- package/dist/types-cjs/use/floatingTrigger.d.cts +27 -0
- package/dist/types-cjs/use/focused.d.cts +12 -0
- package/dist/types-cjs/use/form/context.d.cts +8 -0
- package/dist/types-cjs/use/form/control.d.cts +21 -0
- package/dist/types-cjs/use/form/fieldKeyboard.d.cts +19 -0
- package/dist/types-cjs/use/form/props.d.cts +121 -0
- package/dist/types-cjs/use/form/textFieldComponent.d.cts +12 -0
- package/dist/types-cjs/use/form/textFieldControl.d.cts +71 -0
- package/dist/types-cjs/use/glass.d.cts +24 -0
- package/dist/types-cjs/use/gradient.d.cts +291 -0
- package/dist/types-cjs/use/gradientGlow.d.cts +48 -0
- package/dist/types-cjs/use/gradientMaterial.d.cts +21 -0
- package/dist/types-cjs/use/gradientRuntime.d.cts +11 -0
- package/dist/types-cjs/use/gradientRuntimeRegistry.d.cts +8 -0
- package/dist/types-cjs/use/gradientSurface.d.cts +50 -0
- package/dist/types-cjs/use/group/di.d.cts +5 -0
- package/dist/types-cjs/use/group/groupController.d.cts +10 -0
- package/dist/types-cjs/use/group/types.d.cts +9 -0
- package/dist/types-cjs/use/highlighted.d.cts +12 -0
- package/dist/types-cjs/use/icon.d.cts +22 -0
- package/dist/types-cjs/use/index.d.cts +23 -0
- package/dist/types-cjs/use/input/control.d.cts +10 -0
- package/dist/types-cjs/use/input/emits.d.cts +8 -0
- package/dist/types-cjs/use/input/index.d.cts +4 -0
- package/dist/types-cjs/use/input/props.d.cts +163 -0
- package/dist/types-cjs/use/items.d.cts +20 -0
- package/dist/types-cjs/use/layerStack.d.cts +15 -0
- package/dist/types-cjs/use/mask/index.d.cts +24 -0
- package/dist/types-cjs/use/material.d.cts +113 -0
- package/dist/types-cjs/use/materialSurface.d.cts +382 -0
- package/dist/types-cjs/use/menu.d.cts +49 -0
- package/dist/types-cjs/use/menuContext.d.cts +6 -0
- package/dist/types-cjs/use/navigation/controller.d.cts +14 -0
- package/dist/types-cjs/use/navigation/index.d.cts +4 -0
- package/dist/types-cjs/use/navigation/item.d.cts +9 -0
- package/dist/types-cjs/use/navigation/keyboard.d.cts +4 -0
- package/dist/types-cjs/use/navigation/types.d.cts +42 -0
- package/dist/types-cjs/use/open.d.cts +2 -0
- package/dist/types-cjs/use/overlay.d.cts +111 -0
- package/dist/types-cjs/use/placement.d.cts +16 -0
- package/dist/types-cjs/use/px.d.cts +4 -0
- package/dist/types-cjs/use/rounded.d.cts +12 -0
- package/dist/types-cjs/use/routerLink.d.cts +10 -0
- package/dist/types-cjs/use/select/comboboxController.d.cts +36 -0
- package/dist/types-cjs/use/select/commit.d.cts +23 -0
- package/dist/types-cjs/use/select/controller.d.cts +23 -0
- package/dist/types-cjs/use/select/creatable.d.cts +18 -0
- package/dist/types-cjs/use/select/fieldControl.d.cts +59 -0
- package/dist/types-cjs/use/select/filter.d.cts +14 -0
- package/dist/types-cjs/use/select/items.d.cts +14 -0
- package/dist/types-cjs/use/select/listboxKeyboard.d.cts +9 -0
- package/dist/types-cjs/use/select/menuItems.d.cts +11 -0
- package/dist/types-cjs/use/select/menuSlot.d.cts +5 -0
- package/dist/types-cjs/use/select/modelFallbackItems.d.cts +12 -0
- package/dist/types-cjs/use/select/search.d.cts +14 -0
- package/dist/types-cjs/use/select/searchFieldControl.d.cts +24 -0
- package/dist/types-cjs/use/select/selection.d.cts +12 -0
- package/dist/types-cjs/use/select/selectionController.d.cts +19 -0
- package/dist/types-cjs/use/select/selectionSummary.d.cts +8 -0
- package/dist/types-cjs/use/select/tokenInputKeyboard.d.cts +11 -0
- package/dist/types-cjs/use/select/types.d.cts +24 -0
- package/dist/types-cjs/use/selected.d.cts +17 -0
- package/dist/types-cjs/use/selectionModel.d.cts +19 -0
- package/dist/types-cjs/use/size.d.cts +16 -0
- package/dist/types-cjs/use/slots.d.cts +15 -0
- package/dist/types-cjs/use/state.d.cts +13 -0
- package/dist/types-cjs/use/stateIcon.d.cts +9 -0
- package/dist/types-cjs/use/stepper/controller.d.cts +20 -0
- package/dist/types-cjs/use/stepper/index.d.cts +1 -0
- package/dist/types-cjs/use/surface.d.cts +128 -0
- package/dist/types-cjs/use/surfaceColor.d.cts +19 -0
- package/dist/types-cjs/use/surfaceMaterial.d.cts +45 -0
- package/dist/types-cjs/use/tagName.d.cts +47 -0
- package/dist/types-cjs/use/textarea/index.d.cts +2 -0
- package/dist/types-cjs/use/textarea/props.d.cts +144 -0
- package/dist/types-cjs/use/transition.d.cts +156 -0
- package/dist/types-cjs/use/variant.d.cts +16 -0
- package/dist/types-cjs/use/visibleProps.d.cts +1 -0
- package/dist/types-cjs/use/zIndex.d.cts +10 -0
- package/dist/types-cjs/utils/camelToKebabCase.d.cts +1 -0
- package/dist/types-cjs/utils/createComponentId.d.cts +1 -0
- package/dist/types-cjs/utils/createId.d.cts +1 -0
- package/dist/types-cjs/utils/propsFactory.d.cts +29 -0
- package/dist/types-l8OJZAJz.cjs +1 -0
- package/dist/use.cjs +1 -1
- package/dist/use.mjs +79 -42
- package/dist/useSnackbar-CGt0lJDk.js +245 -0
- package/dist/useSnackbar-CRUtXt4_.cjs +1 -0
- package/dist/variant-BvBpmTET.cjs +1 -0
- package/dist/variant-Fpx1q_TY.js +15 -0
- package/dist/viewport-BhvdzcLi.cjs +1 -0
- package/dist/viewport-DhX6inI4.js +11 -0
- package/package.json +358 -28
- package/dist/GLoading.vue_vue_type_style_index_0_lang-COggAM7a.js +0 -468
- package/dist/GLoading.vue_vue_type_style_index_0_lang-CoPHejAL.cjs +0 -1
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-CRlkCyW_.js +0 -7031
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-DZXv1j__.cjs +0 -1
- package/dist/camelToKebabCase-BQDotaQm.cjs +0 -316
- package/dist/camelToKebabCase-BWbQb81D.js +0 -3783
- package/dist/default--73FwpwZ.cjs +0 -4
- package/dist/default-DlsS6GI_.js +0 -58
- package/dist/defaults-BlTdRhHs.cjs +0 -1
- package/dist/defaults-DMi34V8q.js +0 -51
- package/dist/index-B3_n44N_.cjs +0 -1
- package/dist/index-BtCLucTD.js +0 -66
- package/dist/index-Cs3XQ3JB.js +0 -97
- package/dist/index-DN5ngVtp.cjs +0 -1
- package/dist/mask-BqOamrcF.js +0 -936
- package/dist/mask-ObMqNEfF.cjs +0 -1
- package/dist/materialSurface-CbOpfFGO.js +0 -634
- package/dist/materialSurface-CjhWd_yD.cjs +0 -1
- package/dist/scheme-CZ0a0X5e.cjs +0 -299
- package/dist/scheme-Dqwdqg6N.js +0 -1405
- package/dist/surface-DImNM7I1.js +0 -291
- package/dist/surface-_J0t7c3m.cjs +0 -1
- package/dist/useSnackbar-D60dFSV1.cjs +0 -1
- package/dist/useSnackbar-us11nXny.js +0 -922
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
"use strict";const $e={red:"#F44336",pink:"#E91E63",purple:"#9C27B0",deepPurple:"#673AB7",indigo:"#3F51B5",blue:"#2196F3",lightBlue:"#03A9F4",cyan:"#00BCD4",teal:"#009688",green:"#4CAF50",lightGreen:"#8BC34A",lime:"#CDDC39",yellow:"#FFEB3B",amber:"#FFC107",orange:"#FF9800",deepOrange:"#FF5722",brown:"#795548",grey:"#9E9E9E",blueGrey:"#607D8B"},pe=(a,e=0,r=1)=>Math.min(r,Math.max(e,a)),me=a=>{const e=a/255;return e<=.04045?e/12.92:((e+.055)/1.055)**2.4},Xe=a=>{const e=a.slice(1),r=e.length===3||e.length===4?e.slice(0,3).split("").map(t=>t.repeat(2)).join(""):e.slice(0,6);return r.length!==6||!/^[\da-f]{6}$/i.test(r)?null:{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}},Ge=a=>{const e=a.match(/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*[\d.]+%?)?\s*\)$/i);return e?{r:pe(Number(e[1]),0,255),g:pe(Number(e[2]),0,255),b:pe(Number(e[3]),0,255)}:null},ce=a=>{if(typeof a=="number"){const r=a&16777215;return{r:r>>16&255,g:r>>8&255,b:r&255}}const e=a.trim();return e.startsWith("#")?Xe(e):e.toLowerCase().startsWith("rgb")?Ge(e):null},ve=({r:a,g:e,b:r})=>`#${[a,e,r].map(t=>Math.round(t).toString(16).padStart(2,"0")).join("")}`,Je=({r:a,g:e,b:r})=>`${Math.round(a)}, ${Math.round(e)}, ${Math.round(r)}`,Ae=(a,e)=>{const r=ce(a)??ce(e);if(!r)throw new Error(`Invalid fallback color: ${e}`);return ve(r)},We=a=>.2126*me(a.r)+.7152*me(a.g)+.0722*me(a.b),Ze=a=>{const e=ce(a);if(!e)return"#ffffff";const r=We(e),t=1.05/(r+.05),n=(r+.05)/.055;return t>=n?"#ffffff":"#0d0d12"};/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/function z(a){return a<0?-1:a===0?0:1}function ne(a,e,r){return(1-r)*a+r*e}function Qe(a,e,r){return r<a?a:r>e?e:r}function H(a,e,r){return r<a?a:r>e?e:r}function ue(a){return a=a%360,a<0&&(a=a+360),a}function er(a,e){return ue(e-a)<=180?1:-1}function rr(a,e){return 180-Math.abs(Math.abs(a-e)-180)}function ye(a,e){const r=a[0]*e[0][0]+a[1]*e[0][1]+a[2]*e[0][2],t=a[0]*e[1][0]+a[1]*e[1][1]+a[2]*e[1][2],n=a[0]*e[2][0]+a[1]*e[2][1]+a[2]*e[2][2];return[r,t,n]}/**
|
|
17
|
-
* @license
|
|
18
|
-
* Copyright 2021 Google LLC
|
|
19
|
-
*
|
|
20
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
21
|
-
* you may not use this file except in compliance with the License.
|
|
22
|
-
* You may obtain a copy of the License at
|
|
23
|
-
*
|
|
24
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
25
|
-
*
|
|
26
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
27
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
28
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29
|
-
* See the License for the specific language governing permissions and
|
|
30
|
-
* limitations under the License.
|
|
31
|
-
*/const tr=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],nr=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],ar=[95.047,100,108.883];function ke(a,e,r){return(255<<24|(a&255)<<16|(e&255)<<8|r&255)>>>0}function xe(a){const e=Q(a[0]),r=Q(a[1]),t=Q(a[2]);return ke(e,r,t)}function Me(a){return a>>16&255}function Ie(a){return a>>8&255}function Ee(a){return a&255}function or(a,e,r){const t=nr,n=t[0][0]*a+t[0][1]*e+t[0][2]*r,s=t[1][0]*a+t[1][1]*e+t[1][2]*r,i=t[2][0]*a+t[2][1]*e+t[2][2]*r,u=Q(n),l=Q(s),h=Q(i);return ke(u,l,h)}function ir(a){const e=te(Me(a)),r=te(Ie(a)),t=te(Ee(a));return ye([e,r,t],tr)}function sr(a){const e=Z(a),r=Q(e);return ke(r,r,r)}function ge(a){const e=ir(a)[1];return 116*Le(e/100)-16}function Z(a){return 100*ur((a+16)/116)}function Pe(a){return Le(a/100)*116-16}function te(a){const e=a/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function Q(a){const e=a/100;let r=0;return e<=.0031308?r=e*12.92:r=1.055*Math.pow(e,1/2.4)-.055,Qe(0,255,Math.round(r*255))}function cr(){return ar}function Le(a){const e=.008856451679035631,r=24389/27;return a>e?Math.pow(a,1/3):(r*a+16)/116}function ur(a){const e=.008856451679035631,r=24389/27,t=a*a*a;return t>e?t:(116*a-16)/r}/**
|
|
32
|
-
* @license
|
|
33
|
-
* Copyright 2021 Google LLC
|
|
34
|
-
*
|
|
35
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
36
|
-
* you may not use this file except in compliance with the License.
|
|
37
|
-
* You may obtain a copy of the License at
|
|
38
|
-
*
|
|
39
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
40
|
-
*
|
|
41
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
42
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
43
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
44
|
-
* See the License for the specific language governing permissions and
|
|
45
|
-
* limitations under the License.
|
|
46
|
-
*/class j{static make(e=cr(),r=200/Math.PI*Z(50)/100,t=50,n=2,s=!1){const i=e,u=i[0]*.401288+i[1]*.650173+i[2]*-.051461,l=i[0]*-.250268+i[1]*1.204414+i[2]*.045854,h=i[0]*-.002079+i[1]*.048952+i[2]*.953127,d=.8+n/10,C=d>=.9?ne(.59,.69,(d-.9)*10):ne(.525,.59,(d-.8)*10);let p=s?1:d*(1-1/3.6*Math.exp((-r-42)/92));p=p>1?1:p<0?0:p;const D=d,m=[p*(100/u)+1-p,p*(100/l)+1-p,p*(100/h)+1-p],g=1/(5*r+1),P=g*g*g*g,A=1-P,B=P*r+.1*A*A*Math.cbrt(5*r),O=Z(t)/e[1],R=1.48+Math.sqrt(O),V=.725/Math.pow(O,.2),I=V,x=[Math.pow(B*m[0]*u/100,.42),Math.pow(B*m[1]*l/100,.42),Math.pow(B*m[2]*h/100,.42)],L=[400*x[0]/(x[0]+27.13),400*x[1]/(x[1]+27.13),400*x[2]/(x[2]+27.13)],_=(2*L[0]+L[1]+.05*L[2])*V;return new j(O,_,V,I,C,D,m,B,Math.pow(B,.25),R)}constructor(e,r,t,n,s,i,u,l,h,d){this.n=e,this.aw=r,this.nbb=t,this.ncb=n,this.c=s,this.nc=i,this.rgbD=u,this.fl=l,this.fLRoot=h,this.z=d}}j.DEFAULT=j.make();/**
|
|
47
|
-
* @license
|
|
48
|
-
* Copyright 2021 Google LLC
|
|
49
|
-
*
|
|
50
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
51
|
-
* you may not use this file except in compliance with the License.
|
|
52
|
-
* You may obtain a copy of the License at
|
|
53
|
-
*
|
|
54
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
55
|
-
*
|
|
56
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
57
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
58
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
59
|
-
* See the License for the specific language governing permissions and
|
|
60
|
-
* limitations under the License.
|
|
61
|
-
*/class N{constructor(e,r,t,n,s,i,u,l,h){this.hue=e,this.chroma=r,this.j=t,this.q=n,this.m=s,this.s=i,this.jstar=u,this.astar=l,this.bstar=h}distance(e){const r=this.jstar-e.jstar,t=this.astar-e.astar,n=this.bstar-e.bstar,s=Math.sqrt(r*r+t*t+n*n);return 1.41*Math.pow(s,.63)}static fromInt(e){return N.fromIntInViewingConditions(e,j.DEFAULT)}static fromIntInViewingConditions(e,r){const t=(e&16711680)>>16,n=(e&65280)>>8,s=e&255,i=te(t),u=te(n),l=te(s),h=.41233895*i+.35762064*u+.18051042*l,d=.2126*i+.7152*u+.0722*l,C=.01932141*i+.11916382*u+.95034478*l,p=.401288*h+.650173*d-.051461*C,D=-.250268*h+1.204414*d+.045854*C,m=-.002079*h+.048952*d+.953127*C,g=r.rgbD[0]*p,P=r.rgbD[1]*D,A=r.rgbD[2]*m,B=Math.pow(r.fl*Math.abs(g)/100,.42),O=Math.pow(r.fl*Math.abs(P)/100,.42),R=Math.pow(r.fl*Math.abs(A)/100,.42),V=z(g)*400*B/(B+27.13),I=z(P)*400*O/(O+27.13),x=z(A)*400*R/(R+27.13),L=(11*V+-12*I+x)/11,_=(V+I-2*x)/9,E=(20*V+20*I+21*x)/20,q=(40*V+20*I+x)/20,ee=Math.atan2(_,L)*180/Math.PI,K=ue(ee),ae=K*Math.PI/180,oe=q*r.nbb,J=100*Math.pow(oe/r.aw,r.c*r.z),ie=4/r.c*Math.sqrt(J/100)*(r.aw+4)*r.fLRoot,le=K<20.14?K+360:K,fe=.25*(Math.cos(le*Math.PI/180+2)+3.8),de=5e4/13*fe*r.nc*r.ncb*Math.sqrt(L*L+_*_)/(E+.305),se=Math.pow(de,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),De=se*Math.sqrt(J/100),Fe=De*r.fLRoot,ze=50*Math.sqrt(se*r.c/(r.aw+4)),Ke=(1+100*.007)*J/(1+.007*J),we=1/.0228*Math.log(1+.0228*Fe),je=we*Math.cos(ae),qe=we*Math.sin(ae);return new N(K,De,J,ie,Fe,ze,Ke,je,qe)}static fromJch(e,r,t){return N.fromJchInViewingConditions(e,r,t,j.DEFAULT)}static fromJchInViewingConditions(e,r,t,n){const s=4/n.c*Math.sqrt(e/100)*(n.aw+4)*n.fLRoot,i=r*n.fLRoot,u=r/Math.sqrt(e/100),l=50*Math.sqrt(u*n.c/(n.aw+4)),h=t*Math.PI/180,d=(1+100*.007)*e/(1+.007*e),C=1/.0228*Math.log(1+.0228*i),p=C*Math.cos(h),D=C*Math.sin(h);return new N(t,r,e,s,i,l,d,p,D)}static fromUcs(e,r,t){return N.fromUcsInViewingConditions(e,r,t,j.DEFAULT)}static fromUcsInViewingConditions(e,r,t,n){const s=r,i=t,u=Math.sqrt(s*s+i*i),h=(Math.exp(u*.0228)-1)/.0228/n.fLRoot;let d=Math.atan2(i,s)*(180/Math.PI);d<0&&(d+=360);const C=e/(1-(e-100)*.007);return N.fromJchInViewingConditions(C,h,d,n)}toInt(){return this.viewed(j.DEFAULT)}viewed(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),t=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),i=e.aw*Math.pow(this.j/100,1/e.c/e.z),u=s*(5e4/13)*e.nc*e.ncb,l=i/e.nbb,h=Math.sin(n),d=Math.cos(n),C=23*(l+.305)*t/(23*u+11*t*d+108*t*h),p=C*d,D=C*h,m=(460*l+451*p+288*D)/1403,g=(460*l-891*p-261*D)/1403,P=(460*l-220*p-6300*D)/1403,A=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),B=z(m)*(100/e.fl)*Math.pow(A,1/.42),O=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),R=z(g)*(100/e.fl)*Math.pow(O,1/.42),V=Math.max(0,27.13*Math.abs(P)/(400-Math.abs(P))),I=z(P)*(100/e.fl)*Math.pow(V,1/.42),x=B/e.rgbD[0],L=R/e.rgbD[1],_=I/e.rgbD[2],E=1.86206786*x-1.01125463*L+.14918677*_,q=.38752654*x+.62144744*L-.00897398*_,G=-.0158415*x-.03412294*L+1.04996444*_;return or(E,q,G)}static fromXyzInViewingConditions(e,r,t,n){const s=.401288*e+.650173*r-.051461*t,i=-.250268*e+1.204414*r+.045854*t,u=-.002079*e+.048952*r+.953127*t,l=n.rgbD[0]*s,h=n.rgbD[1]*i,d=n.rgbD[2]*u,C=Math.pow(n.fl*Math.abs(l)/100,.42),p=Math.pow(n.fl*Math.abs(h)/100,.42),D=Math.pow(n.fl*Math.abs(d)/100,.42),m=z(l)*400*C/(C+27.13),g=z(h)*400*p/(p+27.13),P=z(d)*400*D/(D+27.13),A=(11*m+-12*g+P)/11,B=(m+g-2*P)/9,O=(20*m+20*g+21*P)/20,R=(40*m+20*g+P)/20,I=Math.atan2(B,A)*180/Math.PI,x=I<0?I+360:I>=360?I-360:I,L=x*Math.PI/180,_=R*n.nbb,E=100*Math.pow(_/n.aw,n.c*n.z),q=4/n.c*Math.sqrt(E/100)*(n.aw+4)*n.fLRoot,G=x<20.14?x+360:x,ee=1/4*(Math.cos(G*Math.PI/180+2)+3.8),ae=5e4/13*ee*n.nc*n.ncb*Math.sqrt(A*A+B*B)/(O+.305),oe=Math.pow(ae,.9)*Math.pow(1.64-Math.pow(.29,n.n),.73),J=oe*Math.sqrt(E/100),ie=J*n.fLRoot,le=50*Math.sqrt(oe*n.c/(n.aw+4)),fe=(1+100*.007)*E/(1+.007*E),he=Math.log(1+.0228*ie)/.0228,de=he*Math.cos(L),se=he*Math.sin(L);return new N(x,J,E,q,ie,le,fe,de,se)}xyzInViewingConditions(e){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),t=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),n=this.hue*Math.PI/180,s=.25*(Math.cos(n+2)+3.8),i=e.aw*Math.pow(this.j/100,1/e.c/e.z),u=s*(5e4/13)*e.nc*e.ncb,l=i/e.nbb,h=Math.sin(n),d=Math.cos(n),C=23*(l+.305)*t/(23*u+11*t*d+108*t*h),p=C*d,D=C*h,m=(460*l+451*p+288*D)/1403,g=(460*l-891*p-261*D)/1403,P=(460*l-220*p-6300*D)/1403,A=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),B=z(m)*(100/e.fl)*Math.pow(A,1/.42),O=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),R=z(g)*(100/e.fl)*Math.pow(O,1/.42),V=Math.max(0,27.13*Math.abs(P)/(400-Math.abs(P))),I=z(P)*(100/e.fl)*Math.pow(V,1/.42),x=B/e.rgbD[0],L=R/e.rgbD[1],_=I/e.rgbD[2],E=1.86206786*x-1.01125463*L+.14918677*_,q=.38752654*x+.62144744*L-.00897398*_,G=-.0158415*x-.03412294*L+1.04996444*_;return[E,q,G]}}/**
|
|
62
|
-
* @license
|
|
63
|
-
* Copyright 2021 Google LLC
|
|
64
|
-
*
|
|
65
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
66
|
-
* you may not use this file except in compliance with the License.
|
|
67
|
-
* You may obtain a copy of the License at
|
|
68
|
-
*
|
|
69
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
70
|
-
*
|
|
71
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
72
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
73
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
74
|
-
* See the License for the specific language governing permissions and
|
|
75
|
-
* limitations under the License.
|
|
76
|
-
*/class S{static sanitizeRadians(e){return(e+Math.PI*8)%(Math.PI*2)}static trueDelinearized(e){const r=e/100;let t=0;return r<=.0031308?t=r*12.92:t=1.055*Math.pow(r,1/2.4)-.055,t*255}static chromaticAdaptation(e){const r=Math.pow(Math.abs(e),.42);return z(e)*400*r/(r+27.13)}static hueOf(e){const r=ye(e,S.SCALED_DISCOUNT_FROM_LINRGB),t=S.chromaticAdaptation(r[0]),n=S.chromaticAdaptation(r[1]),s=S.chromaticAdaptation(r[2]),i=(11*t+-12*n+s)/11,u=(t+n-2*s)/9;return Math.atan2(u,i)}static areInCyclicOrder(e,r,t){const n=S.sanitizeRadians(r-e),s=S.sanitizeRadians(t-e);return n<s}static intercept(e,r,t){return(r-e)/(t-e)}static lerpPoint(e,r,t){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]}static setCoordinate(e,r,t,n){const s=S.intercept(e[n],r,t[n]);return S.lerpPoint(e,s,t)}static isBounded(e){return 0<=e&&e<=100}static nthVertex(e,r){const t=S.Y_FROM_LINRGB[0],n=S.Y_FROM_LINRGB[1],s=S.Y_FROM_LINRGB[2],i=r%4<=1?0:100,u=r%2===0?0:100;if(r<4){const l=i,h=u,d=(e-l*n-h*s)/t;return S.isBounded(d)?[d,l,h]:[-1,-1,-1]}else if(r<8){const l=i,h=u,d=(e-h*t-l*s)/n;return S.isBounded(d)?[h,d,l]:[-1,-1,-1]}else{const l=i,h=u,d=(e-l*t-h*n)/s;return S.isBounded(d)?[l,h,d]:[-1,-1,-1]}}static bisectToSegment(e,r){let t=[-1,-1,-1],n=t,s=0,i=0,u=!1,l=!0;for(let h=0;h<12;h++){const d=S.nthVertex(e,h);if(d[0]<0)continue;const C=S.hueOf(d);if(!u){t=d,n=d,s=C,i=C,u=!0;continue}(l||S.areInCyclicOrder(s,C,i))&&(l=!1,S.areInCyclicOrder(s,r,C)?(n=d,i=C):(t=d,s=C))}return[t,n]}static midpoint(e,r){return[(e[0]+r[0])/2,(e[1]+r[1])/2,(e[2]+r[2])/2]}static criticalPlaneBelow(e){return Math.floor(e-.5)}static criticalPlaneAbove(e){return Math.ceil(e-.5)}static bisectToLimit(e,r){const t=S.bisectToSegment(e,r);let n=t[0],s=S.hueOf(n),i=t[1];for(let u=0;u<3;u++)if(n[u]!==i[u]){let l=-1,h=255;n[u]<i[u]?(l=S.criticalPlaneBelow(S.trueDelinearized(n[u])),h=S.criticalPlaneAbove(S.trueDelinearized(i[u]))):(l=S.criticalPlaneAbove(S.trueDelinearized(n[u])),h=S.criticalPlaneBelow(S.trueDelinearized(i[u])));for(let d=0;d<8&&!(Math.abs(h-l)<=1);d++){const C=Math.floor((l+h)/2),p=S.CRITICAL_PLANES[C],D=S.setCoordinate(n,p,i,u),m=S.hueOf(D);S.areInCyclicOrder(s,r,m)?(i=D,h=C):(n=D,s=m,l=C)}}return S.midpoint(n,i)}static inverseChromaticAdaptation(e){const r=Math.abs(e),t=Math.max(0,27.13*r/(400-r));return z(e)*Math.pow(t,1/.42)}static findResultByJ(e,r,t){let n=Math.sqrt(t)*11;const s=j.DEFAULT,i=1/Math.pow(1.64-Math.pow(.29,s.n),.73),l=.25*(Math.cos(e+2)+3.8)*(5e4/13)*s.nc*s.ncb,h=Math.sin(e),d=Math.cos(e);for(let C=0;C<5;C++){const p=n/100,D=r===0||n===0?0:r/Math.sqrt(p),m=Math.pow(D*i,1/.9),P=s.aw*Math.pow(p,1/s.c/s.z)/s.nbb,A=23*(P+.305)*m/(23*l+11*m*d+108*m*h),B=A*d,O=A*h,R=(460*P+451*B+288*O)/1403,V=(460*P-891*B-261*O)/1403,I=(460*P-220*B-6300*O)/1403,x=S.inverseChromaticAdaptation(R),L=S.inverseChromaticAdaptation(V),_=S.inverseChromaticAdaptation(I),E=ye([x,L,_],S.LINRGB_FROM_SCALED_DISCOUNT);if(E[0]<0||E[1]<0||E[2]<0)return 0;const q=S.Y_FROM_LINRGB[0],G=S.Y_FROM_LINRGB[1],ee=S.Y_FROM_LINRGB[2],K=q*E[0]+G*E[1]+ee*E[2];if(K<=0)return 0;if(C===4||Math.abs(K-t)<.002)return E[0]>100.01||E[1]>100.01||E[2]>100.01?0:xe(E);n=n-(K-t)*n/(2*K)}return 0}static solveToInt(e,r,t){if(r<1e-4||t<1e-4||t>99.9999)return sr(t);e=ue(e);const n=e/180*Math.PI,s=Z(t),i=S.findResultByJ(n,r,s);if(i!==0)return i;const u=S.bisectToLimit(s,n);return xe(u)}static solveToCam(e,r,t){return N.fromInt(S.solveToInt(e,r,t))}}S.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];S.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];S.Y_FROM_LINRGB=[.2126,.7152,.0722];S.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/**
|
|
77
|
-
* @license
|
|
78
|
-
* Copyright 2021 Google LLC
|
|
79
|
-
*
|
|
80
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
81
|
-
* you may not use this file except in compliance with the License.
|
|
82
|
-
* You may obtain a copy of the License at
|
|
83
|
-
*
|
|
84
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
85
|
-
*
|
|
86
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
87
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
88
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
89
|
-
* See the License for the specific language governing permissions and
|
|
90
|
-
* limitations under the License.
|
|
91
|
-
*/class T{static from(e,r,t){return new T(S.solveToInt(e,r,t))}static fromInt(e){return new T(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(S.solveToInt(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(S.solveToInt(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(S.solveToInt(this.internalHue,this.internalChroma,e))}setValue(e,r){this[e]=r}toString(){return`HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(e){return e>=250&&e<270}static isYellow(e){return e>=105&&e<125}static isCyan(e){return e>=170&&e<207}constructor(e){this.argb=e;const r=N.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=ge(e),this.argb=e}setInternalState(e){const r=N.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=ge(e),this.argb=e}inViewingConditions(e){const t=N.fromInt(this.toInt()).xyzInViewingConditions(e),n=N.fromXyzInViewingConditions(t[0],t[1],t[2],j.make());return T.from(n.hue,n.chroma,Pe(t[1]))}}/**
|
|
92
|
-
* @license
|
|
93
|
-
* Copyright 2021 Google LLC
|
|
94
|
-
*
|
|
95
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
96
|
-
* you may not use this file except in compliance with the License.
|
|
97
|
-
* You may obtain a copy of the License at
|
|
98
|
-
*
|
|
99
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
100
|
-
*
|
|
101
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
102
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
103
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
104
|
-
* See the License for the specific language governing permissions and
|
|
105
|
-
* limitations under the License.
|
|
106
|
-
*/class Ce{static harmonize(e,r){const t=T.fromInt(e),n=T.fromInt(r),s=rr(t.hue,n.hue),i=Math.min(s*.5,15),u=ue(t.hue+i*er(t.hue,n.hue));return T.from(u,t.chroma,t.tone).toInt()}static hctHue(e,r,t){const n=Ce.cam16Ucs(e,r,t),s=N.fromInt(n),i=N.fromInt(e);return T.from(s.hue,i.chroma,ge(e)).toInt()}static cam16Ucs(e,r,t){const n=N.fromInt(e),s=N.fromInt(r),i=n.jstar,u=n.astar,l=n.bstar,h=s.jstar,d=s.astar,C=s.bstar,p=i+(h-i)*t,D=u+(d-u)*t,m=l+(C-l)*t;return N.fromUcs(p,D,m).toInt()}}/**
|
|
107
|
-
* @license
|
|
108
|
-
* Copyright 2022 Google LLC
|
|
109
|
-
*
|
|
110
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
111
|
-
* you may not use this file except in compliance with the License.
|
|
112
|
-
* You may obtain a copy of the License at
|
|
113
|
-
*
|
|
114
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
115
|
-
*
|
|
116
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
117
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
118
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
|
-
* See the License for the specific language governing permissions and
|
|
120
|
-
* limitations under the License.
|
|
121
|
-
*/class v{static ratioOfTones(e,r){return e=H(0,100,e),r=H(0,100,r),v.ratioOfYs(Z(e),Z(r))}static ratioOfYs(e,r){const t=e>r?e:r,n=t===r?e:r;return(t+5)/(n+5)}static lighter(e,r){if(e<0||e>100)return-1;const t=Z(e),n=r*(t+5)-5,s=v.ratioOfYs(n,t),i=Math.abs(s-r);if(s<r&&i>.04)return-1;const u=Pe(n)+.4;return u<0||u>100?-1:u}static darker(e,r){if(e<0||e>100)return-1;const t=Z(e),n=(t+5)/r-5,s=v.ratioOfYs(t,n),i=Math.abs(s-r);if(s<r&&i>.04)return-1;const u=Pe(n)-.4;return u<0||u>100?-1:u}static lighterUnsafe(e,r){const t=v.lighter(e,r);return t<0?100:t}static darkerUnsafe(e,r){const t=v.darker(e,r);return t<0?0:t}}/**
|
|
122
|
-
* @license
|
|
123
|
-
* Copyright 2023 Google LLC
|
|
124
|
-
*
|
|
125
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
126
|
-
* you may not use this file except in compliance with the License.
|
|
127
|
-
* You may obtain a copy of the License at
|
|
128
|
-
*
|
|
129
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
130
|
-
*
|
|
131
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
132
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
133
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
134
|
-
* See the License for the specific language governing permissions and
|
|
135
|
-
* limitations under the License.
|
|
136
|
-
*/class Se{static isDisliked(e){const r=Math.round(e.hue)>=90&&Math.round(e.hue)<=111,t=Math.round(e.chroma)>16,n=Math.round(e.tone)<65;return r&&t&&n}static fixIfDisliked(e){return Se.isDisliked(e)?T.from(e.hue,e.chroma,70):e}}/**
|
|
137
|
-
* @license
|
|
138
|
-
* Copyright 2022 Google LLC
|
|
139
|
-
*
|
|
140
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
141
|
-
* you may not use this file except in compliance with the License.
|
|
142
|
-
* You may obtain a copy of the License at
|
|
143
|
-
*
|
|
144
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
145
|
-
*
|
|
146
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
147
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
148
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
149
|
-
* See the License for the specific language governing permissions and
|
|
150
|
-
* limitations under the License.
|
|
151
|
-
*/function lr(a,e,r){if(a.name!==r.name)throw new Error(`Attempting to extend color ${a.name} with color ${r.name} of different name for spec version ${e}.`);if(a.isBackground!==r.isBackground)throw new Error(`Attempting to extend color ${a.name} as a ${a.isBackground?"background":"foreground"} with color ${r.name} as a ${r.isBackground?"background":"foreground"} for spec version ${e}.`)}function b(a,e,r){return lr(a,e,r),c.fromPalette({name:a.name,palette:t=>t.specVersion===e?r.palette(t):a.palette(t),tone:t=>t.specVersion===e?r.tone(t):a.tone(t),isBackground:a.isBackground,chromaMultiplier:t=>{const n=t.specVersion===e?r.chromaMultiplier:a.chromaMultiplier;return n!==void 0?n(t):1},background:t=>{const n=t.specVersion===e?r.background:a.background;return n!==void 0?n(t):void 0},secondBackground:t=>{const n=t.specVersion===e?r.secondBackground:a.secondBackground;return n!==void 0?n(t):void 0},contrastCurve:t=>{const n=t.specVersion===e?r.contrastCurve:a.contrastCurve;return n!==void 0?n(t):void 0},toneDeltaPair:t=>{const n=t.specVersion===e?r.toneDeltaPair:a.toneDeltaPair;return n!==void 0?n(t):void 0}})}class c{static fromPalette(e){return new c(e.name??"",e.palette,e.tone??c.getInitialToneFromBackground(e.background),e.isBackground??!1,e.chromaMultiplier,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}static getInitialToneFromBackground(e){return e===void 0?r=>50:r=>e(r)?e(r).getTone(r):50}constructor(e,r,t,n,s,i,u,l,h){if(this.name=e,this.palette=r,this.tone=t,this.isBackground=n,this.chromaMultiplier=s,this.background=i,this.secondBackground=u,this.contrastCurve=l,this.toneDeltaPair=h,this.hctCache=new Map,!i&&u)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!i&&l)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(i&&!l)throw new Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`)}clone(){return c.fromPalette({name:this.name,palette:this.palette,tone:this.tone,isBackground:this.isBackground,chromaMultiplier:this.chromaMultiplier,background:this.background,secondBackground:this.secondBackground,contrastCurve:this.contrastCurve,toneDeltaPair:this.toneDeltaPair})}clearCache(){this.hctCache.clear()}getArgb(e){return this.getHct(e).toInt()}getHct(e){const r=this.hctCache.get(e);if(r!=null)return r;const t=Be(e.specVersion).getHct(e,this);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(e,t),t}getTone(e){return Be(e.specVersion).getTone(e,this)}static foregroundTone(e,r){const t=v.lighterUnsafe(e,r),n=v.darkerUnsafe(e,r),s=v.ratioOfTones(t,e),i=v.ratioOfTones(n,e);if(c.tonePrefersLightForeground(e)){const l=Math.abs(s-i)<.1&&s<r&&i<r;return s>=r||s>=i||l?t:n}else return i>=r||i>=s?n:t}static tonePrefersLightForeground(e){return Math.round(e)<60}static toneAllowsLightForeground(e){return Math.round(e)<=49}static enableLightForeground(e){return c.tonePrefersLightForeground(e)&&!c.toneAllowsLightForeground(e)?49:e}}class fr{getHct(e,r){const t=r.getTone(e);return r.palette(e).getHct(t)}getTone(e,r){const t=e.contrastLevel<0,n=r.toneDeltaPair?r.toneDeltaPair(e):void 0;if(n){const s=n.roleA,i=n.roleB,u=n.delta,l=n.polarity,h=n.stayTogether,d=l==="nearer"||l==="lighter"&&!e.isDark||l==="darker"&&e.isDark,C=d?s:i,p=d?i:s,D=r.name===C.name,m=e.isDark?1:-1;let g=C.tone(e),P=p.tone(e);if(r.background&&C.contrastCurve&&p.contrastCurve){const A=r.background(e),B=C.contrastCurve(e),O=p.contrastCurve(e);if(A&&B&&O){const R=A.getTone(e),V=B.get(e.contrastLevel),I=O.get(e.contrastLevel);v.ratioOfTones(R,g)<V&&(g=c.foregroundTone(R,V)),v.ratioOfTones(R,P)<I&&(P=c.foregroundTone(R,I)),t&&(g=c.foregroundTone(R,V),P=c.foregroundTone(R,I))}}return(P-g)*m<u&&(P=H(0,100,g+u*m),(P-g)*m>=u||(g=H(0,100,P-u*m))),50<=g&&g<60?m>0?(g=60,P=Math.max(P,g+u*m)):(g=49,P=Math.min(P,g+u*m)):50<=P&&P<60&&(h?m>0?(g=60,P=Math.max(P,g+u*m)):(g=49,P=Math.min(P,g+u*m)):m>0?P=60:P=49),D?g:P}else{let s=r.tone(e);if(r.background==null||r.background(e)===void 0||r.contrastCurve==null||r.contrastCurve(e)===void 0)return s;const i=r.background(e).getTone(e),u=r.contrastCurve(e).get(e.contrastLevel);if(v.ratioOfTones(i,s)>=u||(s=c.foregroundTone(i,u)),t&&(s=c.foregroundTone(i,u)),r.isBackground&&50<=s&&s<60&&(v.ratioOfTones(49,i)>=u?s=49:s=60),r.secondBackground==null||r.secondBackground(e)===void 0)return s;const[l,h]=[r.background,r.secondBackground],[d,C]=[l(e).getTone(e),h(e).getTone(e)],[p,D]=[Math.max(d,C),Math.min(d,C)];if(v.ratioOfTones(p,s)>=u&&v.ratioOfTones(D,s)>=u)return s;const m=v.lighter(p,u),g=v.darker(D,u),P=[];return m!==-1&&P.push(m),g!==-1&&P.push(g),c.tonePrefersLightForeground(d)||c.tonePrefersLightForeground(C)?m<0?100:m:P.length===1?P[0]:g<0?0:g}}}class hr{getHct(e,r){const t=r.palette(e),n=r.getTone(e),s=t.hue,i=t.chroma*(r.chromaMultiplier?r.chromaMultiplier(e):1);return T.from(s,i,n)}getTone(e,r){const t=r.toneDeltaPair?r.toneDeltaPair(e):void 0;if(t){const n=t.roleA,s=t.roleB,i=t.polarity,u=t.constraint,l=i==="darker"||i==="relative_lighter"&&e.isDark||i==="relative_darker"&&!e.isDark?-t.delta:t.delta,h=r.name===n.name,d=h?n:s,C=h?s:n;let p=d.tone(e),D=C.getTone(e);const m=l*(h?1:-1);if(u==="exact"?p=H(0,100,D+m):u==="nearer"?m>0?p=H(0,100,H(D,D+m,p)):p=H(0,100,H(D+m,D,p)):u==="farther"&&(m>0?p=H(D+m,100,p):p=H(0,D+m,p)),r.background&&r.contrastCurve){const g=r.background(e),P=r.contrastCurve(e);if(g&&P){const A=g.getTone(e),B=P.get(e.contrastLevel);p=v.ratioOfTones(A,p)>=B&&e.contrastLevel>=0?p:c.foregroundTone(A,B)}}return r.isBackground&&!r.name.endsWith("_fixed_dim")&&(p>=57?p=H(65,100,p):p=H(0,49,p)),p}else{let n=r.tone(e);if(r.background==null||r.background(e)===void 0||r.contrastCurve==null||r.contrastCurve(e)===void 0)return n;const s=r.background(e).getTone(e),i=r.contrastCurve(e).get(e.contrastLevel);if(n=v.ratioOfTones(s,n)>=i&&e.contrastLevel>=0?n:c.foregroundTone(s,i),r.isBackground&&!r.name.endsWith("_fixed_dim")&&(n>=57?n=H(65,100,n):n=H(0,49,n)),r.secondBackground==null||r.secondBackground(e)===void 0)return n;const[u,l]=[r.background,r.secondBackground],[h,d]=[u(e).getTone(e),l(e).getTone(e)],[C,p]=[Math.max(h,d),Math.min(h,d)];if(v.ratioOfTones(C,n)>=i&&v.ratioOfTones(p,n)>=i)return n;const D=v.lighter(C,i),m=v.darker(p,i),g=[];return D!==-1&&g.push(D),m!==-1&&g.push(m),c.tonePrefersLightForeground(h)||c.tonePrefersLightForeground(d)?D<0?100:D:g.length===1?g[0]:m<0?0:m}}}const dr=new fr,pr=new hr;function Be(a){return a==="2025"?pr:dr}/**
|
|
152
|
-
* @license
|
|
153
|
-
* Copyright 2021 Google LLC
|
|
154
|
-
*
|
|
155
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
156
|
-
* you may not use this file except in compliance with the License.
|
|
157
|
-
* You may obtain a copy of the License at
|
|
158
|
-
*
|
|
159
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
160
|
-
*
|
|
161
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
162
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
163
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
164
|
-
* See the License for the specific language governing permissions and
|
|
165
|
-
* limitations under the License.
|
|
166
|
-
*/class Y{static fromInt(e){const r=T.fromInt(e);return Y.fromHct(r)}static fromHct(e){return new Y(e.hue,e.chroma,e)}static fromHueAndChroma(e,r){const t=new mr(e,r).create();return new Y(e,r,t)}constructor(e,r,t){this.hue=e,this.chroma=r,this.keyColor=t,this.cache=new Map}tone(e){let r=this.cache.get(e);return r===void 0&&(e==99&&T.isYellow(this.hue)?r=this.averageArgb(this.tone(98),this.tone(100)):r=T.from(this.hue,this.chroma,e).toInt(),this.cache.set(e,r)),r}getHct(e){return T.fromInt(this.tone(e))}averageArgb(e,r){const t=e>>>16&255,n=e>>>8&255,s=e&255,i=r>>>16&255,u=r>>>8&255,l=r&255,h=Math.round((t+i)/2),d=Math.round((n+u)/2),C=Math.round((s+l)/2);return(255<<24|(h&255)<<16|(d&255)<<8|C&255)>>>0}}class mr{constructor(e,r){this.hue=e,this.requestedChroma=r,this.chromaCache=new Map,this.maxChromaValue=200}create(){let n=0,s=100;for(;n<s;){const i=Math.floor((n+s)/2),u=this.maxChroma(i)<this.maxChroma(i+1);if(this.maxChroma(i)>=this.requestedChroma-.01)if(Math.abs(n-50)<Math.abs(s-50))s=i;else{if(n===i)return T.from(this.hue,this.requestedChroma,n);n=i}else u?n=i+1:s=i}return T.from(this.hue,this.requestedChroma,n)}maxChroma(e){if(this.chromaCache.has(e))return this.chromaCache.get(e);const r=T.from(this.hue,this.maxChromaValue,e).chroma;return this.chromaCache.set(e,r),r}}/**
|
|
167
|
-
* @license
|
|
168
|
-
* Copyright 2023 Google LLC
|
|
169
|
-
*
|
|
170
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
171
|
-
* you may not use this file except in compliance with the License.
|
|
172
|
-
* You may obtain a copy of the License at
|
|
173
|
-
*
|
|
174
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
175
|
-
*
|
|
176
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
177
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
178
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
179
|
-
* See the License for the specific language governing permissions and
|
|
180
|
-
* limitations under the License.
|
|
181
|
-
*/class y{constructor(e,r,t,n){this.low=e,this.normal=r,this.medium=t,this.high=n}get(e){return e<=-1?this.low:e<0?ne(this.low,this.normal,(e- -1)/1):e<.5?ne(this.normal,this.medium,(e-0)/.5):e<1?ne(this.medium,this.high,(e-.5)/.5):this.high}}/**
|
|
182
|
-
* @license
|
|
183
|
-
* Copyright 2023 Google LLC
|
|
184
|
-
*
|
|
185
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
186
|
-
* you may not use this file except in compliance with the License.
|
|
187
|
-
* You may obtain a copy of the License at
|
|
188
|
-
*
|
|
189
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
190
|
-
*
|
|
191
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
192
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
193
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
194
|
-
* See the License for the specific language governing permissions and
|
|
195
|
-
* limitations under the License.
|
|
196
|
-
*/class w{constructor(e,r,t,n,s,i){this.roleA=e,this.roleB=r,this.delta=t,this.polarity=n,this.stayTogether=s,this.constraint=i,this.constraint=i??"exact"}}/**
|
|
197
|
-
* @license
|
|
198
|
-
* Copyright 2022 Google LLC
|
|
199
|
-
*
|
|
200
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
201
|
-
* you may not use this file except in compliance with the License.
|
|
202
|
-
* You may obtain a copy of the License at
|
|
203
|
-
*
|
|
204
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
205
|
-
*
|
|
206
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
207
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
208
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
209
|
-
* See the License for the specific language governing permissions and
|
|
210
|
-
* limitations under the License.
|
|
211
|
-
*/var f;(function(a){a[a.MONOCHROME=0]="MONOCHROME",a[a.NEUTRAL=1]="NEUTRAL",a[a.TONAL_SPOT=2]="TONAL_SPOT",a[a.VIBRANT=3]="VIBRANT",a[a.EXPRESSIVE=4]="EXPRESSIVE",a[a.FIDELITY=5]="FIDELITY",a[a.CONTENT=6]="CONTENT",a[a.RAINBOW=7]="RAINBOW",a[a.FRUIT_SALAD=8]="FRUIT_SALAD"})(f||(f={}));/**
|
|
212
|
-
* @license
|
|
213
|
-
* Copyright 2025 Google LLC
|
|
214
|
-
*
|
|
215
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
216
|
-
* you may not use this file except in compliance with the License.
|
|
217
|
-
* You may obtain a copy of the License at
|
|
218
|
-
*
|
|
219
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
220
|
-
*
|
|
221
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
222
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
223
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
224
|
-
* See the License for the specific language governing permissions and
|
|
225
|
-
* limitations under the License.
|
|
226
|
-
*/function re(a){return a.variant===f.FIDELITY||a.variant===f.CONTENT}function M(a){return a.variant===f.MONOCHROME}function yr(a,e,r,t){let n=r,s=T.from(a,e,r);if(s.chroma<e){let i=s.chroma;for(;s.chroma<e;){n+=t?-1:1;const u=T.from(a,e,n);if(i>u.chroma||Math.abs(u.chroma-e)<.4)break;const l=Math.abs(u.chroma-e),h=Math.abs(s.chroma-e);l<h&&(s=u),i=Math.max(i,u.chroma)}}return n}class gr{primaryPaletteKeyColor(){return c.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone})}secondaryPaletteKeyColor(){return c.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone})}tertiaryPaletteKeyColor(){return c.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone})}neutralPaletteKeyColor(){return c.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone})}neutralVariantPaletteKeyColor(){return c.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone})}errorPaletteKeyColor(){return c.fromPalette({name:"error_palette_key_color",palette:e=>e.errorPalette,tone:e=>e.errorPalette.keyColor.tone})}background(){return c.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0})}onBackground(){return c.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>this.background(),contrastCurve:e=>new y(3,3,4.5,7)})}surface(){return c.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0})}surfaceDim(){return c.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:new y(87,87,80,75).get(e.contrastLevel),isBackground:!0})}surfaceBright(){return c.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?new y(24,24,29,34).get(e.contrastLevel):98,isBackground:!0})}surfaceContainerLowest(){return c.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new y(4,4,2,0).get(e.contrastLevel):100,isBackground:!0})}surfaceContainerLow(){return c.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?new y(10,10,11,12).get(e.contrastLevel):new y(96,96,96,95).get(e.contrastLevel),isBackground:!0})}surfaceContainer(){return c.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?new y(12,12,16,20).get(e.contrastLevel):new y(94,94,92,90).get(e.contrastLevel),isBackground:!0})}surfaceContainerHigh(){return c.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?new y(17,17,21,25).get(e.contrastLevel):new y(92,92,88,85).get(e.contrastLevel),isBackground:!0})}surfaceContainerHighest(){return c.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new y(22,22,26,30).get(e.contrastLevel):new y(90,90,84,80).get(e.contrastLevel),isBackground:!0})}onSurface(){return c.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>this.highestSurface(e),contrastCurve:e=>new y(4.5,7,11,21)})}surfaceVariant(){return c.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0})}onSurfaceVariant(){return c.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>this.highestSurface(e),contrastCurve:e=>new y(3,4.5,7,11)})}inverseSurface(){return c.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20,isBackground:!0})}inverseOnSurface(){return c.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>this.inverseSurface(),contrastCurve:e=>new y(4.5,7,11,21)})}outline(){return c.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1.5,3,4.5,7)})}outlineVariant(){return c.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5)})}shadow(){return c.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0})}scrim(){return c.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0})}surfaceTint(){return c.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0})}primary(){return c.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>M(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(3,4.5,7,7),toneDeltaPair:e=>new w(this.primaryContainer(),this.primary(),10,"nearer",!1)})}primaryDim(){}onPrimary(){return c.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>M(e)?e.isDark?10:90:e.isDark?20:100,background:e=>this.primary(),contrastCurve:e=>new y(4.5,7,11,21)})}primaryContainer(){return c.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>re(e)?e.sourceColorHct.tone:M(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.primaryContainer(),this.primary(),10,"nearer",!1)})}onPrimaryContainer(){return c.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>re(e)?c.foregroundTone(this.primaryContainer().tone(e),4.5):M(e)?e.isDark?0:100:e.isDark?90:30,background:e=>this.primaryContainer(),contrastCurve:e=>new y(3,4.5,7,11)})}inversePrimary(){return c.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>this.inverseSurface(),contrastCurve:e=>new y(3,4.5,7,7)})}secondary(){return c.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(3,4.5,7,7),toneDeltaPair:e=>new w(this.secondaryContainer(),this.secondary(),10,"nearer",!1)})}secondaryDim(){}onSecondary(){return c.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>M(e)?e.isDark?10:100:e.isDark?20:100,background:e=>this.secondary(),contrastCurve:e=>new y(4.5,7,11,21)})}secondaryContainer(){return c.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const r=e.isDark?30:90;return M(e)?e.isDark?30:85:re(e)?yr(e.secondaryPalette.hue,e.secondaryPalette.chroma,r,!e.isDark):r},isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.secondaryContainer(),this.secondary(),10,"nearer",!1)})}onSecondaryContainer(){return c.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>M(e)?e.isDark?90:10:re(e)?c.foregroundTone(this.secondaryContainer().tone(e),4.5):e.isDark?90:30,background:e=>this.secondaryContainer(),contrastCurve:e=>new y(3,4.5,7,11)})}tertiary(){return c.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>M(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(3,4.5,7,7),toneDeltaPair:e=>new w(this.tertiaryContainer(),this.tertiary(),10,"nearer",!1)})}tertiaryDim(){}onTertiary(){return c.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>M(e)?e.isDark?10:90:e.isDark?20:100,background:e=>this.tertiary(),contrastCurve:e=>new y(4.5,7,11,21)})}tertiaryContainer(){return c.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(M(e))return e.isDark?60:49;if(!re(e))return e.isDark?30:90;const r=e.tertiaryPalette.getHct(e.sourceColorHct.tone);return Se.fixIfDisliked(r).tone},isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.tertiaryContainer(),this.tertiary(),10,"nearer",!1)})}onTertiaryContainer(){return c.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>M(e)?e.isDark?0:100:re(e)?c.foregroundTone(this.tertiaryContainer().tone(e),4.5):e.isDark?90:30,background:e=>this.tertiaryContainer(),contrastCurve:e=>new y(3,4.5,7,11)})}error(){return c.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(3,4.5,7,7),toneDeltaPair:e=>new w(this.errorContainer(),this.error(),10,"nearer",!1)})}errorDim(){}onError(){return c.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>this.error(),contrastCurve:e=>new y(4.5,7,11,21)})}errorContainer(){return c.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.errorContainer(),this.error(),10,"nearer",!1)})}onErrorContainer(){return c.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>M(e)?e.isDark?90:10:e.isDark?90:30,background:e=>this.errorContainer(),contrastCurve:e=>new y(3,4.5,7,11)})}primaryFixed(){return c.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>M(e)?40:90,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",!0)})}primaryFixedDim(){return c.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>M(e)?30:80,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",!0)})}onPrimaryFixed(){return c.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>M(e)?100:10,background:e=>this.primaryFixedDim(),secondBackground:e=>this.primaryFixed(),contrastCurve:e=>new y(4.5,7,11,21)})}onPrimaryFixedVariant(){return c.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>M(e)?90:30,background:e=>this.primaryFixedDim(),secondBackground:e=>this.primaryFixed(),contrastCurve:e=>new y(3,4.5,7,11)})}secondaryFixed(){return c.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>M(e)?80:90,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",!0)})}secondaryFixedDim(){return c.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>M(e)?70:80,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",!0)})}onSecondaryFixed(){return c.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>this.secondaryFixedDim(),secondBackground:e=>this.secondaryFixed(),contrastCurve:e=>new y(4.5,7,11,21)})}onSecondaryFixedVariant(){return c.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>M(e)?25:30,background:e=>this.secondaryFixedDim(),secondBackground:e=>this.secondaryFixed(),contrastCurve:e=>new y(3,4.5,7,11)})}tertiaryFixed(){return c.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>M(e)?40:90,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",!0)})}tertiaryFixedDim(){return c.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>M(e)?30:80,isBackground:!0,background:e=>this.highestSurface(e),contrastCurve:e=>new y(1,1,3,4.5),toneDeltaPair:e=>new w(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",!0)})}onTertiaryFixed(){return c.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>M(e)?100:10,background:e=>this.tertiaryFixedDim(),secondBackground:e=>this.tertiaryFixed(),contrastCurve:e=>new y(4.5,7,11,21)})}onTertiaryFixedVariant(){return c.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>M(e)?90:30,background:e=>this.tertiaryFixedDim(),secondBackground:e=>this.tertiaryFixed(),contrastCurve:e=>new y(3,4.5,7,11)})}highestSurface(e){return e.isDark?this.surfaceBright():this.surfaceDim()}}/**
|
|
227
|
-
* @license
|
|
228
|
-
* Copyright 2025 Google LLC
|
|
229
|
-
*
|
|
230
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
231
|
-
* you may not use this file except in compliance with the License.
|
|
232
|
-
* You may obtain a copy of the License at
|
|
233
|
-
*
|
|
234
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
235
|
-
*
|
|
236
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
237
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
238
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
239
|
-
* See the License for the specific language governing permissions and
|
|
240
|
-
* limitations under the License.
|
|
241
|
-
*/function F(a,e=0,r=100,t=1){let n=Oe(a.hue,a.chroma*t,100,!0);return H(e,r,n)}function W(a,e=0,r=100){let t=Oe(a.hue,a.chroma,0,!1);return H(e,r,t)}function Oe(a,e,r,t){let n=r,s=T.from(a,e,n);for(;s.chroma<e&&!(r<0||r>100);){r+=t?-1:1;const i=T.from(a,e,r);s.chroma<i.chroma&&(s=i,n=r)}return n}function k(a){return a===1.5?new y(1.5,1.5,3,5.5):a===3?new y(3,3,4.5,7):a===4.5?new y(4.5,4.5,7,11):a===6?new y(6,6,7,11):a===7?new y(7,7,11,21):a===9?new y(9,9,11,21):a===11?new y(11,11,21,21):a===21?new y(21,21,21,21):new y(a,a,7,21)}class Pr extends gr{surface(){const e=c.fromPalette({name:"surface",palette:r=>r.neutralPalette,tone:r=>(super.surface().tone(r),r.platform==="phone"?r.isDark?4:T.isYellow(r.neutralPalette.hue)?99:r.variant===f.VIBRANT?97:98:0),isBackground:!0});return b(super.surface(),"2025",e)}surfaceDim(){const e=c.fromPalette({name:"surface_dim",palette:r=>r.neutralPalette,tone:r=>r.isDark?4:T.isYellow(r.neutralPalette.hue)?90:r.variant===f.VIBRANT?85:87,isBackground:!0,chromaMultiplier:r=>{if(!r.isDark){if(r.variant===f.NEUTRAL)return 2.5;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return T.isYellow(r.neutralPalette.hue)?2.7:1.75;if(r.variant===f.VIBRANT)return 1.36}return 1}});return b(super.surfaceDim(),"2025",e)}surfaceBright(){const e=c.fromPalette({name:"surface_bright",palette:r=>r.neutralPalette,tone:r=>r.isDark?18:T.isYellow(r.neutralPalette.hue)?99:r.variant===f.VIBRANT?97:98,isBackground:!0,chromaMultiplier:r=>{if(r.isDark){if(r.variant===f.NEUTRAL)return 2.5;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return T.isYellow(r.neutralPalette.hue)?2.7:1.75;if(r.variant===f.VIBRANT)return 1.36}return 1}});return b(super.surfaceBright(),"2025",e)}surfaceContainerLowest(){const e=c.fromPalette({name:"surface_container_lowest",palette:r=>r.neutralPalette,tone:r=>r.isDark?0:100,isBackground:!0});return b(super.surfaceContainerLowest(),"2025",e)}surfaceContainerLow(){const e=c.fromPalette({name:"surface_container_low",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?6:T.isYellow(r.neutralPalette.hue)?98:r.variant===f.VIBRANT?95:96:15,isBackground:!0,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 1.3;if(r.variant===f.TONAL_SPOT)return 1.25;if(r.variant===f.EXPRESSIVE)return T.isYellow(r.neutralPalette.hue)?1.3:1.15;if(r.variant===f.VIBRANT)return 1.08}return 1}});return b(super.surfaceContainerLow(),"2025",e)}surfaceContainer(){const e=c.fromPalette({name:"surface_container",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?9:T.isYellow(r.neutralPalette.hue)?96:r.variant===f.VIBRANT?92:94:20,isBackground:!0,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 1.6;if(r.variant===f.TONAL_SPOT)return 1.4;if(r.variant===f.EXPRESSIVE)return T.isYellow(r.neutralPalette.hue)?1.6:1.3;if(r.variant===f.VIBRANT)return 1.15}return 1}});return b(super.surfaceContainer(),"2025",e)}surfaceContainerHigh(){const e=c.fromPalette({name:"surface_container_high",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?12:T.isYellow(r.neutralPalette.hue)?94:r.variant===f.VIBRANT?90:92:25,isBackground:!0,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 1.9;if(r.variant===f.TONAL_SPOT)return 1.5;if(r.variant===f.EXPRESSIVE)return T.isYellow(r.neutralPalette.hue)?1.95:1.45;if(r.variant===f.VIBRANT)return 1.22}return 1}});return b(super.surfaceContainerHigh(),"2025",e)}surfaceContainerHighest(){const e=c.fromPalette({name:"surface_container_highest",palette:r=>r.neutralPalette,tone:r=>r.isDark?15:T.isYellow(r.neutralPalette.hue)?92:r.variant===f.VIBRANT?88:90,isBackground:!0,chromaMultiplier:r=>r.variant===f.NEUTRAL?2.2:r.variant===f.TONAL_SPOT?1.7:r.variant===f.EXPRESSIVE?T.isYellow(r.neutralPalette.hue)?2.3:1.6:r.variant===f.VIBRANT?1.29:1});return b(super.surfaceContainerHighest(),"2025",e)}onSurface(){const e=c.fromPalette({name:"on_surface",palette:r=>r.neutralPalette,tone:r=>r.variant===f.VIBRANT?F(r.neutralPalette,0,100,1.1):c.getInitialToneFromBackground(t=>t.platform==="phone"?this.highestSurface(t):this.surfaceContainerHigh())(r),chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return T.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.isDark&&r.platform==="phone"?k(11):k(9)});return b(super.onSurface(),"2025",e)}onSurfaceVariant(){const e=c.fromPalette({name:"on_surface_variant",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return T.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?r.isDark?k(6):k(4.5):k(7)});return b(super.onSurfaceVariant(),"2025",e)}outline(){const e=c.fromPalette({name:"outline",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return T.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?k(3):k(4.5)});return b(super.outline(),"2025",e)}outlineVariant(){const e=c.fromPalette({name:"outline_variant",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===f.NEUTRAL)return 2.2;if(r.variant===f.TONAL_SPOT)return 1.7;if(r.variant===f.EXPRESSIVE)return T.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?k(1.5):k(3)});return b(super.outlineVariant(),"2025",e)}inverseSurface(){const e=c.fromPalette({name:"inverse_surface",palette:r=>r.neutralPalette,tone:r=>r.isDark?98:4,isBackground:!0});return b(super.inverseSurface(),"2025",e)}inverseOnSurface(){const e=c.fromPalette({name:"inverse_on_surface",palette:r=>r.neutralPalette,background:r=>this.inverseSurface(),contrastCurve:r=>k(7)});return b(super.inverseOnSurface(),"2025",e)}primary(){const e=c.fromPalette({name:"primary",palette:r=>r.primaryPalette,tone:r=>r.variant===f.NEUTRAL?r.platform==="phone"?r.isDark?80:40:90:r.variant===f.TONAL_SPOT?r.platform==="phone"?r.isDark?80:F(r.primaryPalette):F(r.primaryPalette,0,90):r.variant===f.EXPRESSIVE?r.platform==="phone"?F(r.primaryPalette,0,T.isYellow(r.primaryPalette.hue)?25:T.isCyan(r.primaryPalette.hue)?88:98):F(r.primaryPalette):r.platform==="phone"?F(r.primaryPalette,0,T.isCyan(r.primaryPalette.hue)?88:98):F(r.primaryPalette),isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?k(4.5):k(7),toneDeltaPair:r=>r.platform==="phone"?new w(this.primaryContainer(),this.primary(),5,"relative_lighter",!0,"farther"):void 0});return b(super.primary(),"2025",e)}primaryDim(){return c.fromPalette({name:"primary_dim",palette:e=>e.primaryPalette,tone:e=>e.variant===f.NEUTRAL?85:e.variant===f.TONAL_SPOT?F(e.primaryPalette,0,90):F(e.primaryPalette),isBackground:!0,background:e=>this.surfaceContainerHigh(),contrastCurve:e=>k(4.5),toneDeltaPair:e=>new w(this.primaryDim(),this.primary(),5,"darker",!0,"farther")})}onPrimary(){const e=c.fromPalette({name:"on_primary",palette:r=>r.primaryPalette,background:r=>r.platform==="phone"?this.primary():this.primaryDim(),contrastCurve:r=>r.platform==="phone"?k(6):k(7)});return b(super.onPrimary(),"2025",e)}primaryContainer(){const e=c.fromPalette({name:"primary_container",palette:r=>r.primaryPalette,tone:r=>r.platform==="watch"?30:r.variant===f.NEUTRAL?r.isDark?30:90:r.variant===f.TONAL_SPOT?r.isDark?W(r.primaryPalette,35,93):F(r.primaryPalette,0,90):r.variant===f.EXPRESSIVE?r.isDark?F(r.primaryPalette,30,93):F(r.primaryPalette,78,T.isCyan(r.primaryPalette.hue)?88:90):r.isDark?W(r.primaryPalette,66,93):F(r.primaryPalette,66,T.isCyan(r.primaryPalette.hue)?88:93),isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="phone"?void 0:new w(this.primaryContainer(),this.primaryDim(),10,"darker",!0,"farther"),contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?k(1.5):void 0});return b(super.primaryContainer(),"2025",e)}onPrimaryContainer(){const e=c.fromPalette({name:"on_primary_container",palette:r=>r.primaryPalette,background:r=>this.primaryContainer(),contrastCurve:r=>r.platform==="phone"?k(6):k(7)});return b(super.onPrimaryContainer(),"2025",e)}primaryFixed(){const e=c.fromPalette({name:"primary_fixed",palette:r=>r.primaryPalette,tone:r=>{let t=Object.assign({},r,{isDark:!1,contrastLevel:0});return this.primaryContainer().getTone(t)},isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?k(1.5):void 0});return b(super.primaryFixed(),"2025",e)}primaryFixedDim(){const e=c.fromPalette({name:"primary_fixed_dim",palette:r=>r.primaryPalette,tone:r=>this.primaryFixed().getTone(r),isBackground:!0,toneDeltaPair:r=>new w(this.primaryFixedDim(),this.primaryFixed(),5,"darker",!0,"exact")});return b(super.primaryFixedDim(),"2025",e)}onPrimaryFixed(){const e=c.fromPalette({name:"on_primary_fixed",palette:r=>r.primaryPalette,background:r=>this.primaryFixedDim(),contrastCurve:r=>k(7)});return b(super.onPrimaryFixed(),"2025",e)}onPrimaryFixedVariant(){const e=c.fromPalette({name:"on_primary_fixed_variant",palette:r=>r.primaryPalette,background:r=>this.primaryFixedDim(),contrastCurve:r=>k(4.5)});return b(super.onPrimaryFixedVariant(),"2025",e)}inversePrimary(){const e=c.fromPalette({name:"inverse_primary",palette:r=>r.primaryPalette,tone:r=>F(r.primaryPalette),background:r=>this.inverseSurface(),contrastCurve:r=>r.platform==="phone"?k(6):k(7)});return b(super.inversePrimary(),"2025",e)}secondary(){const e=c.fromPalette({name:"secondary",palette:r=>r.secondaryPalette,tone:r=>r.platform==="watch"?r.variant===f.NEUTRAL?90:F(r.secondaryPalette,0,90):r.variant===f.NEUTRAL?r.isDark?W(r.secondaryPalette,0,98):F(r.secondaryPalette):r.variant===f.VIBRANT?F(r.secondaryPalette,0,r.isDark?90:98):r.isDark?80:F(r.secondaryPalette),isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?k(4.5):k(7),toneDeltaPair:r=>r.platform==="phone"?new w(this.secondaryContainer(),this.secondary(),5,"relative_lighter",!0,"farther"):void 0});return b(super.secondary(),"2025",e)}secondaryDim(){return c.fromPalette({name:"secondary_dim",palette:e=>e.secondaryPalette,tone:e=>e.variant===f.NEUTRAL?85:F(e.secondaryPalette,0,90),isBackground:!0,background:e=>this.surfaceContainerHigh(),contrastCurve:e=>k(4.5),toneDeltaPair:e=>new w(this.secondaryDim(),this.secondary(),5,"darker",!0,"farther")})}onSecondary(){const e=c.fromPalette({name:"on_secondary",palette:r=>r.secondaryPalette,background:r=>r.platform==="phone"?this.secondary():this.secondaryDim(),contrastCurve:r=>r.platform==="phone"?k(6):k(7)});return b(super.onSecondary(),"2025",e)}secondaryContainer(){const e=c.fromPalette({name:"secondary_container",palette:r=>r.secondaryPalette,tone:r=>r.platform==="watch"?30:r.variant===f.VIBRANT?r.isDark?W(r.secondaryPalette,30,40):F(r.secondaryPalette,84,90):r.variant===f.EXPRESSIVE?r.isDark?15:F(r.secondaryPalette,90,95):r.isDark?25:90,isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new w(this.secondaryContainer(),this.secondaryDim(),10,"darker",!0,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?k(1.5):void 0});return b(super.secondaryContainer(),"2025",e)}onSecondaryContainer(){const e=c.fromPalette({name:"on_secondary_container",palette:r=>r.secondaryPalette,background:r=>this.secondaryContainer(),contrastCurve:r=>r.platform==="phone"?k(6):k(7)});return b(super.onSecondaryContainer(),"2025",e)}secondaryFixed(){const e=c.fromPalette({name:"secondary_fixed",palette:r=>r.secondaryPalette,tone:r=>{let t=Object.assign({},r,{isDark:!1,contrastLevel:0});return this.secondaryContainer().getTone(t)},isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?k(1.5):void 0});return b(super.secondaryFixed(),"2025",e)}secondaryFixedDim(){const e=c.fromPalette({name:"secondary_fixed_dim",palette:r=>r.secondaryPalette,tone:r=>this.secondaryFixed().getTone(r),isBackground:!0,toneDeltaPair:r=>new w(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",!0,"exact")});return b(super.secondaryFixedDim(),"2025",e)}onSecondaryFixed(){const e=c.fromPalette({name:"on_secondary_fixed",palette:r=>r.secondaryPalette,background:r=>this.secondaryFixedDim(),contrastCurve:r=>k(7)});return b(super.onSecondaryFixed(),"2025",e)}onSecondaryFixedVariant(){const e=c.fromPalette({name:"on_secondary_fixed_variant",palette:r=>r.secondaryPalette,background:r=>this.secondaryFixedDim(),contrastCurve:r=>k(4.5)});return b(super.onSecondaryFixedVariant(),"2025",e)}tertiary(){const e=c.fromPalette({name:"tertiary",palette:r=>r.tertiaryPalette,tone:r=>r.platform==="watch"?r.variant===f.TONAL_SPOT?F(r.tertiaryPalette,0,90):F(r.tertiaryPalette):r.variant===f.EXPRESSIVE||r.variant===f.VIBRANT?F(r.tertiaryPalette,0,T.isCyan(r.tertiaryPalette.hue)?88:r.isDark?98:100):r.isDark?F(r.tertiaryPalette,0,98):F(r.tertiaryPalette),isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?k(4.5):k(7),toneDeltaPair:r=>r.platform==="phone"?new w(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",!0,"farther"):void 0});return b(super.tertiary(),"2025",e)}tertiaryDim(){return c.fromPalette({name:"tertiary_dim",palette:e=>e.tertiaryPalette,tone:e=>e.variant===f.TONAL_SPOT?F(e.tertiaryPalette,0,90):F(e.tertiaryPalette),isBackground:!0,background:e=>this.surfaceContainerHigh(),contrastCurve:e=>k(4.5),toneDeltaPair:e=>new w(this.tertiaryDim(),this.tertiary(),5,"darker",!0,"farther")})}onTertiary(){const e=c.fromPalette({name:"on_tertiary",palette:r=>r.tertiaryPalette,background:r=>r.platform==="phone"?this.tertiary():this.tertiaryDim(),contrastCurve:r=>r.platform==="phone"?k(6):k(7)});return b(super.onTertiary(),"2025",e)}tertiaryContainer(){const e=c.fromPalette({name:"tertiary_container",palette:r=>r.tertiaryPalette,tone:r=>r.platform==="watch"?r.variant===f.TONAL_SPOT?F(r.tertiaryPalette,0,90):F(r.tertiaryPalette):r.variant===f.NEUTRAL?r.isDark?F(r.tertiaryPalette,0,93):F(r.tertiaryPalette,0,96):r.variant===f.TONAL_SPOT?F(r.tertiaryPalette,0,r.isDark?93:100):r.variant===f.EXPRESSIVE?F(r.tertiaryPalette,75,T.isCyan(r.tertiaryPalette.hue)?88:r.isDark?93:100):r.isDark?F(r.tertiaryPalette,0,93):F(r.tertiaryPalette,72,100),isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new w(this.tertiaryContainer(),this.tertiaryDim(),10,"darker",!0,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?k(1.5):void 0});return b(super.tertiaryContainer(),"2025",e)}onTertiaryContainer(){const e=c.fromPalette({name:"on_tertiary_container",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryContainer(),contrastCurve:r=>r.platform==="phone"?k(6):k(7)});return b(super.onTertiaryContainer(),"2025",e)}tertiaryFixed(){const e=c.fromPalette({name:"tertiary_fixed",palette:r=>r.tertiaryPalette,tone:r=>{let t=Object.assign({},r,{isDark:!1,contrastLevel:0});return this.tertiaryContainer().getTone(t)},isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?k(1.5):void 0});return b(super.tertiaryFixed(),"2025",e)}tertiaryFixedDim(){const e=c.fromPalette({name:"tertiary_fixed_dim",palette:r=>r.tertiaryPalette,tone:r=>this.tertiaryFixed().getTone(r),isBackground:!0,toneDeltaPair:r=>new w(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",!0,"exact")});return b(super.tertiaryFixedDim(),"2025",e)}onTertiaryFixed(){const e=c.fromPalette({name:"on_tertiary_fixed",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryFixedDim(),contrastCurve:r=>k(7)});return b(super.onTertiaryFixed(),"2025",e)}onTertiaryFixedVariant(){const e=c.fromPalette({name:"on_tertiary_fixed_variant",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryFixedDim(),contrastCurve:r=>k(4.5)});return b(super.onTertiaryFixedVariant(),"2025",e)}error(){const e=c.fromPalette({name:"error",palette:r=>r.errorPalette,tone:r=>r.platform==="phone"?r.isDark?W(r.errorPalette,0,98):F(r.errorPalette):W(r.errorPalette),isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?k(4.5):k(7),toneDeltaPair:r=>r.platform==="phone"?new w(this.errorContainer(),this.error(),5,"relative_lighter",!0,"farther"):void 0});return b(super.error(),"2025",e)}errorDim(){return c.fromPalette({name:"error_dim",palette:e=>e.errorPalette,tone:e=>W(e.errorPalette),isBackground:!0,background:e=>this.surfaceContainerHigh(),contrastCurve:e=>k(4.5),toneDeltaPair:e=>new w(this.errorDim(),this.error(),5,"darker",!0,"farther")})}onError(){const e=c.fromPalette({name:"on_error",palette:r=>r.errorPalette,background:r=>r.platform==="phone"?this.error():this.errorDim(),contrastCurve:r=>r.platform==="phone"?k(6):k(7)});return b(super.onError(),"2025",e)}errorContainer(){const e=c.fromPalette({name:"error_container",palette:r=>r.errorPalette,tone:r=>r.platform==="watch"?30:r.isDark?W(r.errorPalette,30,93):F(r.errorPalette,0,90),isBackground:!0,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new w(this.errorContainer(),this.errorDim(),10,"darker",!0,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?k(1.5):void 0});return b(super.errorContainer(),"2025",e)}onErrorContainer(){const e=c.fromPalette({name:"on_error_container",palette:r=>r.errorPalette,background:r=>this.errorContainer(),contrastCurve:r=>r.platform==="phone"?k(4.5):k(7)});return b(super.onErrorContainer(),"2025",e)}surfaceVariant(){const e=Object.assign(this.surfaceContainerHighest().clone(),{name:"surface_variant"});return b(super.surfaceVariant(),"2025",e)}surfaceTint(){const e=Object.assign(this.primary().clone(),{name:"surface_tint"});return b(super.surfaceTint(),"2025",e)}background(){const e=Object.assign(this.surface().clone(),{name:"background"});return b(super.background(),"2025",e)}onBackground(){const e=Object.assign(this.onSurface().clone(),{name:"on_background",tone:r=>r.platform==="watch"?100:this.onSurface().getTone(r)});return b(super.onBackground(),"2025",e)}}/**
|
|
242
|
-
* @license
|
|
243
|
-
* Copyright 2022 Google LLC
|
|
244
|
-
*
|
|
245
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
246
|
-
* you may not use this file except in compliance with the License.
|
|
247
|
-
* You may obtain a copy of the License at
|
|
248
|
-
*
|
|
249
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
250
|
-
*
|
|
251
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
252
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
253
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
254
|
-
* See the License for the specific language governing permissions and
|
|
255
|
-
* limitations under the License.
|
|
256
|
-
*/class o{constructor(){this.allColors=[this.background(),this.onBackground(),this.surface(),this.surfaceDim(),this.surfaceBright(),this.surfaceContainerLowest(),this.surfaceContainerLow(),this.surfaceContainer(),this.surfaceContainerHigh(),this.surfaceContainerHighest(),this.onSurface(),this.onSurfaceVariant(),this.outline(),this.outlineVariant(),this.inverseSurface(),this.inverseOnSurface(),this.primary(),this.primaryDim(),this.onPrimary(),this.primaryContainer(),this.onPrimaryContainer(),this.primaryFixed(),this.primaryFixedDim(),this.onPrimaryFixed(),this.onPrimaryFixedVariant(),this.inversePrimary(),this.secondary(),this.secondaryDim(),this.onSecondary(),this.secondaryContainer(),this.onSecondaryContainer(),this.secondaryFixed(),this.secondaryFixedDim(),this.onSecondaryFixed(),this.onSecondaryFixedVariant(),this.tertiary(),this.tertiaryDim(),this.onTertiary(),this.tertiaryContainer(),this.onTertiaryContainer(),this.tertiaryFixed(),this.tertiaryFixedDim(),this.onTertiaryFixed(),this.onTertiaryFixedVariant(),this.error(),this.errorDim(),this.onError(),this.errorContainer(),this.onErrorContainer()].filter(e=>e!==void 0)}highestSurface(e){return o.colorSpec.highestSurface(e)}primaryPaletteKeyColor(){return o.colorSpec.primaryPaletteKeyColor()}secondaryPaletteKeyColor(){return o.colorSpec.secondaryPaletteKeyColor()}tertiaryPaletteKeyColor(){return o.colorSpec.tertiaryPaletteKeyColor()}neutralPaletteKeyColor(){return o.colorSpec.neutralPaletteKeyColor()}neutralVariantPaletteKeyColor(){return o.colorSpec.neutralVariantPaletteKeyColor()}errorPaletteKeyColor(){return o.colorSpec.errorPaletteKeyColor()}background(){return o.colorSpec.background()}onBackground(){return o.colorSpec.onBackground()}surface(){return o.colorSpec.surface()}surfaceDim(){return o.colorSpec.surfaceDim()}surfaceBright(){return o.colorSpec.surfaceBright()}surfaceContainerLowest(){return o.colorSpec.surfaceContainerLowest()}surfaceContainerLow(){return o.colorSpec.surfaceContainerLow()}surfaceContainer(){return o.colorSpec.surfaceContainer()}surfaceContainerHigh(){return o.colorSpec.surfaceContainerHigh()}surfaceContainerHighest(){return o.colorSpec.surfaceContainerHighest()}onSurface(){return o.colorSpec.onSurface()}surfaceVariant(){return o.colorSpec.surfaceVariant()}onSurfaceVariant(){return o.colorSpec.onSurfaceVariant()}outline(){return o.colorSpec.outline()}outlineVariant(){return o.colorSpec.outlineVariant()}inverseSurface(){return o.colorSpec.inverseSurface()}inverseOnSurface(){return o.colorSpec.inverseOnSurface()}shadow(){return o.colorSpec.shadow()}scrim(){return o.colorSpec.scrim()}surfaceTint(){return o.colorSpec.surfaceTint()}primary(){return o.colorSpec.primary()}primaryDim(){return o.colorSpec.primaryDim()}onPrimary(){return o.colorSpec.onPrimary()}primaryContainer(){return o.colorSpec.primaryContainer()}onPrimaryContainer(){return o.colorSpec.onPrimaryContainer()}inversePrimary(){return o.colorSpec.inversePrimary()}primaryFixed(){return o.colorSpec.primaryFixed()}primaryFixedDim(){return o.colorSpec.primaryFixedDim()}onPrimaryFixed(){return o.colorSpec.onPrimaryFixed()}onPrimaryFixedVariant(){return o.colorSpec.onPrimaryFixedVariant()}secondary(){return o.colorSpec.secondary()}secondaryDim(){return o.colorSpec.secondaryDim()}onSecondary(){return o.colorSpec.onSecondary()}secondaryContainer(){return o.colorSpec.secondaryContainer()}onSecondaryContainer(){return o.colorSpec.onSecondaryContainer()}secondaryFixed(){return o.colorSpec.secondaryFixed()}secondaryFixedDim(){return o.colorSpec.secondaryFixedDim()}onSecondaryFixed(){return o.colorSpec.onSecondaryFixed()}onSecondaryFixedVariant(){return o.colorSpec.onSecondaryFixedVariant()}tertiary(){return o.colorSpec.tertiary()}tertiaryDim(){return o.colorSpec.tertiaryDim()}onTertiary(){return o.colorSpec.onTertiary()}tertiaryContainer(){return o.colorSpec.tertiaryContainer()}onTertiaryContainer(){return o.colorSpec.onTertiaryContainer()}tertiaryFixed(){return o.colorSpec.tertiaryFixed()}tertiaryFixedDim(){return o.colorSpec.tertiaryFixedDim()}onTertiaryFixed(){return o.colorSpec.onTertiaryFixed()}onTertiaryFixedVariant(){return o.colorSpec.onTertiaryFixedVariant()}error(){return o.colorSpec.error()}errorDim(){return o.colorSpec.errorDim()}onError(){return o.colorSpec.onError()}errorContainer(){return o.colorSpec.errorContainer()}onErrorContainer(){return o.colorSpec.onErrorContainer()}static highestSurface(e){return o.colorSpec.highestSurface(e)}}o.contentAccentToneDelta=15;o.colorSpec=new Pr;o.primaryPaletteKeyColor=o.colorSpec.primaryPaletteKeyColor();o.secondaryPaletteKeyColor=o.colorSpec.secondaryPaletteKeyColor();o.tertiaryPaletteKeyColor=o.colorSpec.tertiaryPaletteKeyColor();o.neutralPaletteKeyColor=o.colorSpec.neutralPaletteKeyColor();o.neutralVariantPaletteKeyColor=o.colorSpec.neutralVariantPaletteKeyColor();o.background=o.colorSpec.background();o.onBackground=o.colorSpec.onBackground();o.surface=o.colorSpec.surface();o.surfaceDim=o.colorSpec.surfaceDim();o.surfaceBright=o.colorSpec.surfaceBright();o.surfaceContainerLowest=o.colorSpec.surfaceContainerLowest();o.surfaceContainerLow=o.colorSpec.surfaceContainerLow();o.surfaceContainer=o.colorSpec.surfaceContainer();o.surfaceContainerHigh=o.colorSpec.surfaceContainerHigh();o.surfaceContainerHighest=o.colorSpec.surfaceContainerHighest();o.onSurface=o.colorSpec.onSurface();o.surfaceVariant=o.colorSpec.surfaceVariant();o.onSurfaceVariant=o.colorSpec.onSurfaceVariant();o.inverseSurface=o.colorSpec.inverseSurface();o.inverseOnSurface=o.colorSpec.inverseOnSurface();o.outline=o.colorSpec.outline();o.outlineVariant=o.colorSpec.outlineVariant();o.shadow=o.colorSpec.shadow();o.scrim=o.colorSpec.scrim();o.surfaceTint=o.colorSpec.surfaceTint();o.primary=o.colorSpec.primary();o.onPrimary=o.colorSpec.onPrimary();o.primaryContainer=o.colorSpec.primaryContainer();o.onPrimaryContainer=o.colorSpec.onPrimaryContainer();o.inversePrimary=o.colorSpec.inversePrimary();o.secondary=o.colorSpec.secondary();o.onSecondary=o.colorSpec.onSecondary();o.secondaryContainer=o.colorSpec.secondaryContainer();o.onSecondaryContainer=o.colorSpec.onSecondaryContainer();o.tertiary=o.colorSpec.tertiary();o.onTertiary=o.colorSpec.onTertiary();o.tertiaryContainer=o.colorSpec.tertiaryContainer();o.onTertiaryContainer=o.colorSpec.onTertiaryContainer();o.error=o.colorSpec.error();o.onError=o.colorSpec.onError();o.errorContainer=o.colorSpec.errorContainer();o.onErrorContainer=o.colorSpec.onErrorContainer();o.primaryFixed=o.colorSpec.primaryFixed();o.primaryFixedDim=o.colorSpec.primaryFixedDim();o.onPrimaryFixed=o.colorSpec.onPrimaryFixed();o.onPrimaryFixedVariant=o.colorSpec.onPrimaryFixedVariant();o.secondaryFixed=o.colorSpec.secondaryFixed();o.secondaryFixedDim=o.colorSpec.secondaryFixedDim();o.onSecondaryFixed=o.colorSpec.onSecondaryFixed();o.onSecondaryFixedVariant=o.colorSpec.onSecondaryFixedVariant();o.tertiaryFixed=o.colorSpec.tertiaryFixed();o.tertiaryFixedDim=o.colorSpec.tertiaryFixedDim();o.onTertiaryFixed=o.colorSpec.onTertiaryFixed();o.onTertiaryFixedVariant=o.colorSpec.onTertiaryFixedVariant();/**
|
|
257
|
-
* @license
|
|
258
|
-
* Copyright 2021 Google LLC
|
|
259
|
-
*
|
|
260
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
261
|
-
* you may not use this file except in compliance with the License.
|
|
262
|
-
* You may obtain a copy of the License at
|
|
263
|
-
*
|
|
264
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
265
|
-
*
|
|
266
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
267
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
268
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
269
|
-
* See the License for the specific language governing permissions and
|
|
270
|
-
* limitations under the License.
|
|
271
|
-
*/class U{static of(e){return new U(e,!1)}static contentOf(e){return new U(e,!0)}static fromColors(e){return U.createPaletteFromColors(!1,e)}static contentFromColors(e){return U.createPaletteFromColors(!0,e)}static createPaletteFromColors(e,r){const t=new U(r.primary,e);if(r.secondary){const n=new U(r.secondary,e);t.a2=n.a1}if(r.tertiary){const n=new U(r.tertiary,e);t.a3=n.a1}if(r.error){const n=new U(r.error,e);t.error=n.a1}if(r.neutral){const n=new U(r.neutral,e);t.n1=n.n1}if(r.neutralVariant){const n=new U(r.neutralVariant,e);t.n2=n.n2}return t}constructor(e,r){const t=T.fromInt(e),n=t.hue,s=t.chroma;r?(this.a1=Y.fromHueAndChroma(n,s),this.a2=Y.fromHueAndChroma(n,s/3),this.a3=Y.fromHueAndChroma(n+60,s/2),this.n1=Y.fromHueAndChroma(n,Math.min(s/12,4)),this.n2=Y.fromHueAndChroma(n,Math.min(s/6,8))):(this.a1=Y.fromHueAndChroma(n,Math.max(48,s)),this.a2=Y.fromHueAndChroma(n,16),this.a3=Y.fromHueAndChroma(n+60,24),this.n1=Y.fromHueAndChroma(n,4),this.n2=Y.fromHueAndChroma(n,8)),this.error=Y.fromHueAndChroma(25,84)}}/**
|
|
272
|
-
* @license
|
|
273
|
-
* Copyright 2021 Google LLC
|
|
274
|
-
*
|
|
275
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
276
|
-
* you may not use this file except in compliance with the License.
|
|
277
|
-
* You may obtain a copy of the License at
|
|
278
|
-
*
|
|
279
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
280
|
-
*
|
|
281
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
282
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
283
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
284
|
-
* See the License for the specific language governing permissions and
|
|
285
|
-
* limitations under the License.
|
|
286
|
-
*/class X{get primary(){return this.props.primary}get onPrimary(){return this.props.onPrimary}get primaryContainer(){return this.props.primaryContainer}get onPrimaryContainer(){return this.props.onPrimaryContainer}get secondary(){return this.props.secondary}get onSecondary(){return this.props.onSecondary}get secondaryContainer(){return this.props.secondaryContainer}get onSecondaryContainer(){return this.props.onSecondaryContainer}get tertiary(){return this.props.tertiary}get onTertiary(){return this.props.onTertiary}get tertiaryContainer(){return this.props.tertiaryContainer}get onTertiaryContainer(){return this.props.onTertiaryContainer}get error(){return this.props.error}get onError(){return this.props.onError}get errorContainer(){return this.props.errorContainer}get onErrorContainer(){return this.props.onErrorContainer}get background(){return this.props.background}get onBackground(){return this.props.onBackground}get surface(){return this.props.surface}get onSurface(){return this.props.onSurface}get surfaceVariant(){return this.props.surfaceVariant}get onSurfaceVariant(){return this.props.onSurfaceVariant}get outline(){return this.props.outline}get outlineVariant(){return this.props.outlineVariant}get shadow(){return this.props.shadow}get scrim(){return this.props.scrim}get inverseSurface(){return this.props.inverseSurface}get inverseOnSurface(){return this.props.inverseOnSurface}get inversePrimary(){return this.props.inversePrimary}static light(e){return X.lightFromCorePalette(U.of(e))}static dark(e){return X.darkFromCorePalette(U.of(e))}static lightContent(e){return X.lightFromCorePalette(U.contentOf(e))}static darkContent(e){return X.darkFromCorePalette(U.contentOf(e))}static lightFromCorePalette(e){return new X({primary:e.a1.tone(40),onPrimary:e.a1.tone(100),primaryContainer:e.a1.tone(90),onPrimaryContainer:e.a1.tone(10),secondary:e.a2.tone(40),onSecondary:e.a2.tone(100),secondaryContainer:e.a2.tone(90),onSecondaryContainer:e.a2.tone(10),tertiary:e.a3.tone(40),onTertiary:e.a3.tone(100),tertiaryContainer:e.a3.tone(90),onTertiaryContainer:e.a3.tone(10),error:e.error.tone(40),onError:e.error.tone(100),errorContainer:e.error.tone(90),onErrorContainer:e.error.tone(10),background:e.n1.tone(99),onBackground:e.n1.tone(10),surface:e.n1.tone(99),onSurface:e.n1.tone(10),surfaceVariant:e.n2.tone(90),onSurfaceVariant:e.n2.tone(30),outline:e.n2.tone(50),outlineVariant:e.n2.tone(80),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(20),inverseOnSurface:e.n1.tone(95),inversePrimary:e.a1.tone(80)})}static darkFromCorePalette(e){return new X({primary:e.a1.tone(80),onPrimary:e.a1.tone(20),primaryContainer:e.a1.tone(30),onPrimaryContainer:e.a1.tone(90),secondary:e.a2.tone(80),onSecondary:e.a2.tone(20),secondaryContainer:e.a2.tone(30),onSecondaryContainer:e.a2.tone(90),tertiary:e.a3.tone(80),onTertiary:e.a3.tone(20),tertiaryContainer:e.a3.tone(30),onTertiaryContainer:e.a3.tone(90),error:e.error.tone(80),onError:e.error.tone(20),errorContainer:e.error.tone(30),onErrorContainer:e.error.tone(80),background:e.n1.tone(10),onBackground:e.n1.tone(90),surface:e.n1.tone(10),onSurface:e.n1.tone(90),surfaceVariant:e.n2.tone(30),onSurfaceVariant:e.n2.tone(80),outline:e.n2.tone(60),outlineVariant:e.n2.tone(30),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(90),inverseOnSurface:e.n1.tone(20),inversePrimary:e.a1.tone(40)})}constructor(e){this.props=e}toJSON(){return{...this.props}}}/**
|
|
287
|
-
* @license
|
|
288
|
-
* Copyright 2021 Google LLC
|
|
289
|
-
*
|
|
290
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
291
|
-
* you may not use this file except in compliance with the License.
|
|
292
|
-
* You may obtain a copy of the License at
|
|
293
|
-
*
|
|
294
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
295
|
-
*
|
|
296
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
297
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
298
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
299
|
-
* See the License for the specific language governing permissions and
|
|
300
|
-
* limitations under the License.
|
|
301
|
-
*/function Re(a){const e=Me(a),r=Ie(a),t=Ee(a),n=[e.toString(16),r.toString(16),t.toString(16)];for(const[s,i]of n.entries())i.length===1&&(n[s]="0"+i);return"#"+n.join("")}function Ve(a){a=a.replace("#","");const e=a.length===3,r=a.length===6,t=a.length===8;if(!e&&!r&&!t)throw new Error("unexpected hex "+a);let n=0,s=0,i=0;return e?(n=$(a.slice(0,1).repeat(2)),s=$(a.slice(1,2).repeat(2)),i=$(a.slice(2,3).repeat(2))):r?(n=$(a.slice(0,2)),s=$(a.slice(2,4)),i=$(a.slice(4,6))):t&&(n=$(a.slice(2,4)),s=$(a.slice(4,6)),i=$(a.slice(6,8))),(255<<24|(n&255)<<16|(s&255)<<8|i&255)>>>0}function $(a){return parseInt(a,16)}/**
|
|
302
|
-
* @license
|
|
303
|
-
* Copyright 2021 Google LLC
|
|
304
|
-
*
|
|
305
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
306
|
-
* you may not use this file except in compliance with the License.
|
|
307
|
-
* You may obtain a copy of the License at
|
|
308
|
-
*
|
|
309
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
310
|
-
*
|
|
311
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
312
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
313
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
314
|
-
* See the License for the specific language governing permissions and
|
|
315
|
-
* limitations under the License.
|
|
316
|
-
*/function Ne(a,e=[]){const r=U.of(a);return{source:a,schemes:{light:X.light(a),dark:X.dark(a)},palettes:{primary:r.a1,secondary:r.a2,tertiary:r.a3,neutral:r.n1,neutralVariant:r.n2,error:r.error},customColors:e.map(t=>kr(a,t))}}function kr(a,e){let r=e.value;const t=r,n=a;e.blend&&(r=Ce.harmonize(t,n));const i=U.of(r).a1;return{color:e,value:r,light:{color:i.tone(40),onColor:i.tone(100),colorContainer:i.tone(90),onColorContainer:i.tone(10)},dark:{color:i.tone(80),onColor:i.tone(20),colorContainer:i.tone(30),onColorContainer:i.tone(90)}}}const be=[50,100,200,300,400,500,600,700,800,900],Te={50:90,100:80,200:70,300:60,400:50,500:40,600:35,700:30,800:20,900:10},_e=Object.fromEntries(be.map(a=>[a,Te[a]>=60?10:100])),Cr=a=>{const e=Ae(a,"#000000");return Ne(Ve(e)).palettes.primary},He=(a,e)=>{const r=Cr(a);return Object.fromEntries(be.map(t=>[t,Re(r.tone(e[t]))]))},Ue=a=>He(a,Te),Ye=a=>He(a,_e),Sr=a=>({colors:Ue(a),onColors:Ye(a)});function br(a){return a.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/([a-zA-Z])(\d+)/g,"$1-$2")}exports.COLOR_SEEDS=$e;exports.COLOR_SHADES=be;exports.Hct=T;exports.ON_SHADE_TONES=_e;exports.SHADE_TONES=Te;exports.argbFromHex=Ve;exports.camelToKebabCase=br;exports.colorToHex=Ae;exports.createOnPalette=Ye;exports.createPalette=Ue;exports.createPalettePair=Sr;exports.getContrastingColor=Ze;exports.hexFromArgb=Re;exports.parseColor=ce;exports.rgbToChannels=Je;exports.rgbToHex=ve;exports.themeFromSourceColor=Ne;
|