@gradient-ui/core 0.8.0 → 1.0.1
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 -78
- 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 -224
- 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 +24 -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 -53
- 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 +177 -183
- 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 +262 -268
- package/dist/types/components/ui/GAvatar/GAvatarGroup.vue.d.ts +43 -49
- package/dist/types/components/ui/GAvatar/index.d.ts +3 -3
- package/dist/types/components/ui/GAvatar/types.d.ts +163 -163
- 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 +215 -221
- package/dist/types/components/ui/GCard/index.d.ts +2 -2
- package/dist/types/components/ui/GCard/types.d.ts +160 -160
- 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 +218 -224
- package/dist/types/components/ui/GChip/index.d.ts +2 -2
- package/dist/types/components/ui/GChip/types.d.ts +140 -140
- package/dist/types/components/ui/GCombobox/GCombobox.vue.d.ts +12 -10
- package/dist/types/components/ui/GCombobox/index.d.ts +2 -2
- package/dist/types/components/ui/GCombobox/types.d.ts +11 -11
- package/dist/types/components/ui/GDivider/GDivider.vue.d.ts +445 -451
- package/dist/types/components/ui/GDivider/index.d.ts +2 -2
- package/dist/types/components/ui/GDivider/types.d.ts +186 -186
- 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 +51 -49
- 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 +7 -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 +64 -70
- package/dist/types/components/ui/GFieldBase/props.d.ts +81 -81
- 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 -323
- 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 +18 -24
- 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 +10 -10
- 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 +8 -6
- package/dist/types/components/ui/GStepper/GStepPanel.vue.d.ts +35 -33
- package/dist/types/components/ui/GStepper/GStepper.vue.d.ts +32 -30
- package/dist/types/components/ui/GStepper/GStepperActions.vue.d.ts +9 -7
- package/dist/types/components/ui/GStepper/context.d.ts +4 -4
- package/dist/types/components/ui/GStepper/index.d.ts +4 -4
- package/dist/types/components/ui/GStepper/types.d.ts +182 -182
- 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 +61 -59
- 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 +161 -161
- 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 -290
- 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 +1 -1
- 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/props.d.ts +25 -25
- package/dist/types/use/form/textFieldComponent.d.ts +1 -3
- package/dist/types/use/form/textFieldControl.d.ts +7 -7
- 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 -22
- package/dist/types/use/input/index.d.ts +4 -4
- package/dist/types/use/input/props.d.ts +71 -71
- 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 +1 -1
- package/dist/types/use/navigation/index.d.ts +4 -4
- package/dist/types/use/navigation/item.d.ts +1 -1
- package/dist/types/use/navigation/keyboard.d.ts +1 -1
- 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 +9 -9
- package/dist/types/use/select/commit.d.ts +2 -2
- package/dist/types/use/select/controller.d.ts +9 -9
- package/dist/types/use/select/creatable.d.ts +1 -1
- package/dist/types/use/select/fieldControl.d.ts +7 -7
- package/dist/types/use/select/filter.d.ts +1 -1
- package/dist/types/use/select/items.d.ts +1 -1
- package/dist/types/use/select/listboxKeyboard.d.ts +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/types/use/select/tokenInputKeyboard.d.ts +1 -1
- 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 +1 -1
- package/dist/types/use/stepper/controller.d.ts +1 -1
- package/dist/types/use/stepper/index.d.ts +1 -1
- 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 +69 -69
- 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 +80 -55
- 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-BbVYszn2.js +0 -468
- package/dist/GLoading.vue_vue_type_style_index_0_lang-DW5X0giH.cjs +0 -1
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-BPwF9Kug.js +0 -8734
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-C45EmRhx.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-Cs3XQ3JB.js +0 -97
- package/dist/index-DN5ngVtp.cjs +0 -1
- package/dist/index-DVHKm06w.cjs +0 -1
- package/dist/index-DeFv4BdJ.js +0 -418
- package/dist/mask-669nMf98.js +0 -936
- package/dist/mask-Bh_UkcCe.cjs +0 -1
- package/dist/materialSurface-BbFTyJuA.js +0 -634
- package/dist/materialSurface-DOfA2E9c.cjs +0 -1
- package/dist/scheme-CZ0a0X5e.cjs +0 -299
- package/dist/scheme-Dqwdqg6N.js +0 -1405
- package/dist/surface-C3w1Rz6V.js +0 -291
- package/dist/surface-DB9flb-h.cjs +0 -1
- package/dist/useSnackbar-6OiYxhJA.cjs +0 -1
- package/dist/useSnackbar-BYPu4tJ4.js +0 -922
|
@@ -0,0 +1,1406 @@
|
|
|
1
|
+
import { h as hexFromArgb, t as themeFromSourceColor, i as argbFromHex, H as Hct, d as createPalettePair, f as COLOR_SEEDS, C as COLOR_SHADES$1, p as parseColor$1, r as rgbToChannels$1, g as getContrastingColor } from "./palette-CH8mtBoc.js";
|
|
2
|
+
import { createGradient as createGradient$1, createGradientFromColor as createGradientFromColor$1 } from "@gradient-ui/gradient-engine";
|
|
3
|
+
import { c as camelToKebabCase } from "./camelToKebabCase-nw6sbguT.js";
|
|
4
|
+
const clamp$1 = (value, min = 0, max = 1) => Math.min(max, Math.max(min, value)), parseHex = (value) => {
|
|
5
|
+
const hex = value.slice(1), normalized = hex.length === 3 || hex.length === 4 ? hex.slice(0, 3).split("").map((character) => character.repeat(2)).join("") : hex.slice(0, 6);
|
|
6
|
+
return normalized.length !== 6 || !/^[\da-f]{6}$/i.test(normalized) ? null : {
|
|
7
|
+
r: parseInt(normalized.slice(0, 2), 16),
|
|
8
|
+
g: parseInt(normalized.slice(2, 4), 16),
|
|
9
|
+
b: parseInt(normalized.slice(4, 6), 16)
|
|
10
|
+
};
|
|
11
|
+
}, parseRgb = (value) => {
|
|
12
|
+
const match = value.match(
|
|
13
|
+
/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:\s*[,/]\s*[\d.]+%?)?\s*\)$/i
|
|
14
|
+
);
|
|
15
|
+
return match ? {
|
|
16
|
+
r: clamp$1(Number(match[1]), 0, 255),
|
|
17
|
+
g: clamp$1(Number(match[2]), 0, 255),
|
|
18
|
+
b: clamp$1(Number(match[3]), 0, 255)
|
|
19
|
+
} : null;
|
|
20
|
+
}, parseColor = (input) => {
|
|
21
|
+
if (typeof input == "number") {
|
|
22
|
+
const value2 = input & 16777215;
|
|
23
|
+
return {
|
|
24
|
+
r: value2 >> 16 & 255,
|
|
25
|
+
g: value2 >> 8 & 255,
|
|
26
|
+
b: value2 & 255
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const value = input.trim();
|
|
30
|
+
return value.startsWith("#") ? parseHex(value) : value.toLowerCase().startsWith("rgb") ? parseRgb(value) : null;
|
|
31
|
+
}, rgbToHex = ({ r, g, b }) => `#${[r, g, b].map((channel) => Math.round(channel).toString(16).padStart(2, "0")).join("")}`, rgbToChannels = ({ r, g, b }) => `${Math.round(r)}, ${Math.round(g)}, ${Math.round(b)}`, colorToHex = (input, fallback) => {
|
|
32
|
+
const color = parseColor(input) ?? parseColor(fallback);
|
|
33
|
+
if (!color)
|
|
34
|
+
throw new Error(`Invalid fallback color: ${fallback}`);
|
|
35
|
+
return rgbToHex(color);
|
|
36
|
+
}, DEFAULT_GRADIENT_DIRECTION = 135, DEFAULT_GRADIENT_POSITION = "center", DEFAULT_GRADIENT_SIZE = "farthest-corner", normalizeDirection = (direction = DEFAULT_GRADIENT_DIRECTION) => typeof direction == "number" ? `${direction}deg` : direction, toCssLength = (value) => typeof value == "number" ? `${value}px` : value, toCssDuration = (value) => typeof value == "number" ? `${value}ms` : value, clamp = (value, min = 0, max = 1) => Math.min(max, Math.max(min, value)), toCssColor = (color, opacity) => {
|
|
37
|
+
if (opacity === void 0) return color;
|
|
38
|
+
const parsed = parseColor(color);
|
|
39
|
+
return parsed ? `rgb(${rgbToChannels(parsed).replace(/,/g, "")} / ${clamp(opacity)})` : color;
|
|
40
|
+
}, formatStop = ({ color, opacity, position }) => `${toCssColor(color, opacity)} ${position}%`, createStop = (color, position, opacity) => ({
|
|
41
|
+
color,
|
|
42
|
+
position
|
|
43
|
+
}), getConicStops = (stops) => {
|
|
44
|
+
if (stops.length <= 1) return stops;
|
|
45
|
+
const firstHalf = stops.map((stop) => ({
|
|
46
|
+
...stop,
|
|
47
|
+
position: stop.position / 2
|
|
48
|
+
})), secondHalf = [...stops].reverse().map((stop) => ({
|
|
49
|
+
...stop,
|
|
50
|
+
position: 100 - stop.position / 2
|
|
51
|
+
}));
|
|
52
|
+
return [...firstHalf, ...secondHalf];
|
|
53
|
+
}, createShiftKeyframes = (name) => `@keyframes ${name} {
|
|
54
|
+
0% {
|
|
55
|
+
background-position: 0% 50%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
50% {
|
|
59
|
+
background-position: 100% 50%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
100% {
|
|
63
|
+
background-position: 0% 50%;
|
|
64
|
+
}
|
|
65
|
+
}`, createPulseKeyframes = (name) => `@keyframes ${name} {
|
|
66
|
+
0%, 100% {
|
|
67
|
+
filter: saturate(1) brightness(1);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
50% {
|
|
71
|
+
filter: saturate(1.22) brightness(1.08);
|
|
72
|
+
}
|
|
73
|
+
}`, createHueRotateKeyframes = (name) => `@keyframes ${name} {
|
|
74
|
+
0%, 100% {
|
|
75
|
+
filter: hue-rotate(0deg) saturate(1);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
50% {
|
|
79
|
+
filter: hue-rotate(28deg) saturate(1.18);
|
|
80
|
+
}
|
|
81
|
+
}`, createRotateKeyframes = (name) => `@keyframes ${name} {
|
|
82
|
+
from {
|
|
83
|
+
transform: translate(-50%, -50%) rotate(0deg);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
to {
|
|
87
|
+
transform: translate(-50%, -50%) rotate(360deg);
|
|
88
|
+
}
|
|
89
|
+
}`, getGradientAnimationOptions = (options = {}) => {
|
|
90
|
+
const name = options.name ?? "g-gradient-shift", duration = toCssDuration(options.duration ?? 6e3), easing = options.easing ?? "ease-in-out", selector = options.selector ?? ".g-gradient-animated", preset = options.preset ?? "shift";
|
|
91
|
+
return {
|
|
92
|
+
duration,
|
|
93
|
+
easing,
|
|
94
|
+
name,
|
|
95
|
+
preset,
|
|
96
|
+
selector
|
|
97
|
+
};
|
|
98
|
+
}, toGradientAnimationKeyframes = (options = {}) => {
|
|
99
|
+
const { name, preset } = getGradientAnimationOptions(options);
|
|
100
|
+
return preset === "pulse" ? createPulseKeyframes(name) : preset === "hue-rotate" ? createHueRotateKeyframes(name) : preset === "rotate" ? createRotateKeyframes(name) : createShiftKeyframes(name);
|
|
101
|
+
}, toGradientAnimationValue = (options = {}) => {
|
|
102
|
+
const { duration, easing, name, preset } = getGradientAnimationOptions(options);
|
|
103
|
+
return `${name} ${duration} ${preset === "rotate" ? "linear" : easing} infinite`;
|
|
104
|
+
}, toGradientAnimationStyles = (options = {}) => {
|
|
105
|
+
const { duration, easing, name, preset, selector } = getGradientAnimationOptions(options);
|
|
106
|
+
return preset === "rotate" ? `${selector} {
|
|
107
|
+
position: relative;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
${selector}::before {
|
|
112
|
+
content: '';
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 50%;
|
|
115
|
+
left: 50%;
|
|
116
|
+
width: 200%;
|
|
117
|
+
height: 200%;
|
|
118
|
+
min-width: 150vmax;
|
|
119
|
+
min-height: 150vmax;
|
|
120
|
+
background: inherit;
|
|
121
|
+
animation: ${name} ${duration} linear infinite;
|
|
122
|
+
transform-origin: center;
|
|
123
|
+
}` : preset === "pulse" || preset === "hue-rotate" ? `${selector} {
|
|
124
|
+
animation: ${name} ${duration} ${easing} infinite;
|
|
125
|
+
}` : `${selector} {
|
|
126
|
+
animation: ${name} ${duration} ${easing} infinite;
|
|
127
|
+
background-size: 220% 220%;
|
|
128
|
+
}`;
|
|
129
|
+
}, toGradientAnimationCSS = (options = {}) => {
|
|
130
|
+
const keyframes = toGradientAnimationKeyframes(options), styles = toGradientAnimationStyles(options);
|
|
131
|
+
return `${keyframes}
|
|
132
|
+
${styles}`;
|
|
133
|
+
}, index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
134
|
+
__proto__: null,
|
|
135
|
+
getGradientAnimationOptions,
|
|
136
|
+
toGradientAnimationCSS,
|
|
137
|
+
toGradientAnimationKeyframes,
|
|
138
|
+
toGradientAnimationStyles,
|
|
139
|
+
toGradientAnimationValue
|
|
140
|
+
}, Symbol.toStringTag, { value: "Module" })), COLOR_SHADES = [
|
|
141
|
+
50,
|
|
142
|
+
100,
|
|
143
|
+
200,
|
|
144
|
+
300,
|
|
145
|
+
400,
|
|
146
|
+
500,
|
|
147
|
+
600,
|
|
148
|
+
700,
|
|
149
|
+
800,
|
|
150
|
+
900
|
|
151
|
+
], SHADE_TONES = {
|
|
152
|
+
50: 90,
|
|
153
|
+
100: 80,
|
|
154
|
+
200: 70,
|
|
155
|
+
300: 60,
|
|
156
|
+
400: 50,
|
|
157
|
+
500: 40,
|
|
158
|
+
600: 35,
|
|
159
|
+
700: 30,
|
|
160
|
+
800: 20,
|
|
161
|
+
900: 10
|
|
162
|
+
};
|
|
163
|
+
Object.fromEntries(
|
|
164
|
+
COLOR_SHADES.map((shade) => [shade, SHADE_TONES[shade] >= 60 ? 10 : 100])
|
|
165
|
+
);
|
|
166
|
+
const createTonalPalette = (seed) => {
|
|
167
|
+
const hex = colorToHex(seed, "#000000");
|
|
168
|
+
return themeFromSourceColor(argbFromHex(hex)).palettes.primary;
|
|
169
|
+
}, createPaletteFromTones = (seed, tones) => {
|
|
170
|
+
const tonalPalette = createTonalPalette(seed);
|
|
171
|
+
return Object.fromEntries(
|
|
172
|
+
COLOR_SHADES.map((shade) => [
|
|
173
|
+
shade,
|
|
174
|
+
hexFromArgb(tonalPalette.tone(tones[shade]))
|
|
175
|
+
])
|
|
176
|
+
);
|
|
177
|
+
}, createPalette = (seed) => createPaletteFromTones(seed, SHADE_TONES), createLinearGradient = (stops, direction = DEFAULT_GRADIENT_DIRECTION) => `linear-gradient(${normalizeDirection(direction)}, ${stops.join(", ")})`, toCssGradient = (model) => {
|
|
178
|
+
const stops = model.stops.map(formatStop).join(", ");
|
|
179
|
+
if (model.type === "radial") {
|
|
180
|
+
const shape = model.shape ?? "ellipse", size = model.size ?? DEFAULT_GRADIENT_SIZE, position = model.position ?? DEFAULT_GRADIENT_POSITION;
|
|
181
|
+
return `radial-gradient(${shape} ${size} at ${position}, ${stops})`;
|
|
182
|
+
}
|
|
183
|
+
if (model.type === "conic") {
|
|
184
|
+
const direction = normalizeDirection(model.direction), position = model.position ?? DEFAULT_GRADIENT_POSITION, conicStops = getConicStops(model.stops).map(formatStop).join(", ");
|
|
185
|
+
return `conic-gradient(from ${direction} at ${position}, ${conicStops})`;
|
|
186
|
+
}
|
|
187
|
+
return createLinearGradient(model.stops.map(formatStop), model.direction);
|
|
188
|
+
}, changeTone = (hex, tone) => {
|
|
189
|
+
const hct = Hct.fromInt(argbFromHex(hex));
|
|
190
|
+
return hexFromArgb(Hct.from(hct.hue, hct.chroma, tone).toInt());
|
|
191
|
+
}, shiftHue = (hex, hueShift, tone, chromaMultiplier = 1) => {
|
|
192
|
+
const hct = Hct.fromInt(argbFromHex(hex)), hue = (hct.hue + hueShift + 360) % 360, chroma = Math.min(hct.chroma * chromaMultiplier, 100);
|
|
193
|
+
return hexFromArgb(Hct.from(hue, chroma, tone).toInt());
|
|
194
|
+
}, getComplementaryColor = (hex) => {
|
|
195
|
+
const hct = Hct.fromInt(argbFromHex(hex)), hue = (hct.hue + 110) % 360, chroma = Math.min(hct.chroma * 1.2, 100), tone = hct.tone < 50 ? 65 : Math.min(hct.tone + 10, 75);
|
|
196
|
+
return hexFromArgb(Hct.from(hue, chroma, tone).toInt());
|
|
197
|
+
}, createGlareStops = (base) => {
|
|
198
|
+
const complementary = getComplementaryColor(base);
|
|
199
|
+
return [
|
|
200
|
+
createStop(changeTone(complementary, 95), 0),
|
|
201
|
+
createStop(complementary, 25),
|
|
202
|
+
createStop(base, 50),
|
|
203
|
+
createStop(changeTone(base, 80), 75),
|
|
204
|
+
createStop(changeTone(base, 20), 100)
|
|
205
|
+
];
|
|
206
|
+
}, createMonochromeStops = (base) => [
|
|
207
|
+
createStop(changeTone(base, 94), 0),
|
|
208
|
+
createStop(changeTone(base, 72), 28),
|
|
209
|
+
createStop(base, 55),
|
|
210
|
+
createStop(changeTone(base, 24), 100)
|
|
211
|
+
], createComplementaryStops = (base) => [
|
|
212
|
+
createStop(changeTone(getComplementaryColor(base), 88), 0),
|
|
213
|
+
createStop(base, 50),
|
|
214
|
+
createStop(changeTone(getComplementaryColor(base), 32), 100)
|
|
215
|
+
], createSplitComplementaryStops = (base) => [
|
|
216
|
+
createStop(shiftHue(base, 148, 82, 0.95), 0),
|
|
217
|
+
createStop(shiftHue(base, -148, 70, 1.05), 28),
|
|
218
|
+
createStop(base, 56),
|
|
219
|
+
createStop(shiftHue(base, 150, 34, 1.08), 100)
|
|
220
|
+
], createAnalogousStops = (base) => [
|
|
221
|
+
createStop(shiftHue(base, -34, 72, 0.95), 0),
|
|
222
|
+
createStop(base, 50),
|
|
223
|
+
createStop(shiftHue(base, 34, 34, 1.05), 100)
|
|
224
|
+
], createTriadicStops = (base) => [
|
|
225
|
+
createStop(shiftHue(base, -120, 78, 0.9), 0),
|
|
226
|
+
createStop(base, 50),
|
|
227
|
+
createStop(shiftHue(base, 120, 36, 1.05), 100)
|
|
228
|
+
], createTetradicStops = (base) => [
|
|
229
|
+
createStop(shiftHue(base, -90, 78, 0.92), 0),
|
|
230
|
+
createStop(base, 32),
|
|
231
|
+
createStop(shiftHue(base, 90, 62, 1), 58),
|
|
232
|
+
createStop(shiftHue(base, 180, 34, 1.08), 100)
|
|
233
|
+
], createRectangleStops = (base) => [
|
|
234
|
+
createStop(shiftHue(base, -28, 82, 0.96), 0),
|
|
235
|
+
createStop(base, 27),
|
|
236
|
+
createStop(shiftHue(base, 152, 66, 1.02), 62),
|
|
237
|
+
createStop(shiftHue(base, 180, 34, 1.08), 100)
|
|
238
|
+
], createSquareStops = (base) => [
|
|
239
|
+
createStop(shiftHue(base, -90, 78, 0.94), 0),
|
|
240
|
+
createStop(base, 30),
|
|
241
|
+
createStop(shiftHue(base, 90, 62, 1), 62),
|
|
242
|
+
createStop(shiftHue(base, 180, 36, 1.08), 100)
|
|
243
|
+
], createDuotoneStops = (base, colors) => {
|
|
244
|
+
const first = (colors == null ? void 0 : colors[0]) ?? changeTone(base, 84), second = (colors == null ? void 0 : colors[1]) ?? getComplementaryColor(base);
|
|
245
|
+
return [
|
|
246
|
+
createStop(first, 0),
|
|
247
|
+
createStop(base, 48),
|
|
248
|
+
createStop(second, 100)
|
|
249
|
+
];
|
|
250
|
+
}, gradientRecipes = {
|
|
251
|
+
glare: createGlareStops,
|
|
252
|
+
monochrome: createMonochromeStops,
|
|
253
|
+
complementary: createComplementaryStops,
|
|
254
|
+
"split-complementary": createSplitComplementaryStops,
|
|
255
|
+
analogous: createAnalogousStops,
|
|
256
|
+
triadic: createTriadicStops,
|
|
257
|
+
tetradic: createTetradicStops,
|
|
258
|
+
rectangle: createRectangleStops,
|
|
259
|
+
square: createSquareStops,
|
|
260
|
+
duotone: createDuotoneStops
|
|
261
|
+
}, createRecipeStops = (base, recipe, colors) => gradientRecipes[recipe](base, colors), createGradientModel = (palette, options = {}) => {
|
|
262
|
+
const shade = options.shade ?? 500, recipe = options.recipe ?? "glare";
|
|
263
|
+
return {
|
|
264
|
+
type: options.type ?? "linear",
|
|
265
|
+
stops: createRecipeStops(palette[shade], recipe, options.colors),
|
|
266
|
+
direction: options.direction ?? DEFAULT_GRADIENT_DIRECTION,
|
|
267
|
+
shape: options.shape ?? "ellipse",
|
|
268
|
+
position: options.position ?? DEFAULT_GRADIENT_POSITION,
|
|
269
|
+
size: options.size ?? DEFAULT_GRADIENT_SIZE
|
|
270
|
+
};
|
|
271
|
+
}, createGradientModelFromColor = (color, options = {}) => createGradientModel(createPalette(color), options), GRADIENT_MORPH_BLEND_MODES = [
|
|
272
|
+
"normal",
|
|
273
|
+
"multiply",
|
|
274
|
+
"screen",
|
|
275
|
+
"overlay",
|
|
276
|
+
"darken",
|
|
277
|
+
"lighten",
|
|
278
|
+
"color-dodge",
|
|
279
|
+
"color-burn",
|
|
280
|
+
"hard-light",
|
|
281
|
+
"soft-light",
|
|
282
|
+
"difference",
|
|
283
|
+
"exclusion",
|
|
284
|
+
"hue",
|
|
285
|
+
"saturation",
|
|
286
|
+
"color",
|
|
287
|
+
"luminosity"
|
|
288
|
+
], DEFAULT_GRADIENT_MORPH_BLEND_MODE = "hard-light", defineGradientPreset = (preset) => preset, defineGradientPresetRegistry = (presets) => presets, gradientPresets = defineGradientPresetRegistry({
|
|
289
|
+
materialBorder: defineGradientPreset({
|
|
290
|
+
label: "Material border",
|
|
291
|
+
description: "Default Gradient UI border material.",
|
|
292
|
+
gradient: {
|
|
293
|
+
recipe: "glare",
|
|
294
|
+
type: "linear",
|
|
295
|
+
direction: 135
|
|
296
|
+
},
|
|
297
|
+
shadow: {
|
|
298
|
+
layers: 2,
|
|
299
|
+
opacity: 0.22,
|
|
300
|
+
blur: 12,
|
|
301
|
+
y: 4,
|
|
302
|
+
spread: -3
|
|
303
|
+
},
|
|
304
|
+
dropShadow: {
|
|
305
|
+
layers: 2,
|
|
306
|
+
opacity: 0.32,
|
|
307
|
+
blur: 12,
|
|
308
|
+
y: 5
|
|
309
|
+
},
|
|
310
|
+
animation: {
|
|
311
|
+
preset: "shift",
|
|
312
|
+
duration: 6400,
|
|
313
|
+
easing: "ease-in-out"
|
|
314
|
+
}
|
|
315
|
+
}),
|
|
316
|
+
materialAction: defineGradientPreset({
|
|
317
|
+
label: "Material action",
|
|
318
|
+
description: "Compact action material for buttons, chips and controls.",
|
|
319
|
+
gradient: {
|
|
320
|
+
recipe: "glare",
|
|
321
|
+
type: "linear",
|
|
322
|
+
direction: 135
|
|
323
|
+
},
|
|
324
|
+
shadow: {
|
|
325
|
+
layers: 2,
|
|
326
|
+
opacity: 0.2,
|
|
327
|
+
blur: 10,
|
|
328
|
+
y: 3,
|
|
329
|
+
spread: -2
|
|
330
|
+
},
|
|
331
|
+
dropShadow: {
|
|
332
|
+
layers: 2,
|
|
333
|
+
opacity: 0.28,
|
|
334
|
+
blur: 10,
|
|
335
|
+
y: 4
|
|
336
|
+
},
|
|
337
|
+
animation: {
|
|
338
|
+
preset: "shift",
|
|
339
|
+
duration: 6800,
|
|
340
|
+
easing: "ease-in-out"
|
|
341
|
+
}
|
|
342
|
+
}),
|
|
343
|
+
materialSurface: defineGradientPreset({
|
|
344
|
+
label: "Material surface",
|
|
345
|
+
description: "Soft surface material for calm gradient backgrounds.",
|
|
346
|
+
gradient: {
|
|
347
|
+
recipe: "monochrome",
|
|
348
|
+
type: "linear",
|
|
349
|
+
direction: 145
|
|
350
|
+
},
|
|
351
|
+
shadow: {
|
|
352
|
+
layers: 2,
|
|
353
|
+
opacity: 0.18,
|
|
354
|
+
blur: 14,
|
|
355
|
+
y: 5,
|
|
356
|
+
spread: -3
|
|
357
|
+
},
|
|
358
|
+
dropShadow: {
|
|
359
|
+
layers: 2,
|
|
360
|
+
opacity: 0.22,
|
|
361
|
+
blur: 14,
|
|
362
|
+
y: 5
|
|
363
|
+
},
|
|
364
|
+
animation: {
|
|
365
|
+
preset: "pulse",
|
|
366
|
+
duration: 7600,
|
|
367
|
+
easing: "ease-in-out"
|
|
368
|
+
}
|
|
369
|
+
}),
|
|
370
|
+
brandGlare: defineGradientPreset({
|
|
371
|
+
label: "Brand glare",
|
|
372
|
+
description: "Classic Gradient UI glare with a vivid complementary highlight.",
|
|
373
|
+
gradient: {
|
|
374
|
+
recipe: "glare",
|
|
375
|
+
type: "linear",
|
|
376
|
+
direction: 135
|
|
377
|
+
},
|
|
378
|
+
shadow: {
|
|
379
|
+
layers: 2,
|
|
380
|
+
opacity: 0.24,
|
|
381
|
+
blur: 16,
|
|
382
|
+
y: 6,
|
|
383
|
+
spread: -3
|
|
384
|
+
},
|
|
385
|
+
dropShadow: {
|
|
386
|
+
layers: 3,
|
|
387
|
+
opacity: 0.38,
|
|
388
|
+
blur: 16,
|
|
389
|
+
y: 6
|
|
390
|
+
},
|
|
391
|
+
animation: {
|
|
392
|
+
preset: "shift",
|
|
393
|
+
duration: 6e3,
|
|
394
|
+
easing: "ease-in-out"
|
|
395
|
+
}
|
|
396
|
+
}),
|
|
397
|
+
softMono: defineGradientPreset({
|
|
398
|
+
label: "Soft mono",
|
|
399
|
+
description: "Quiet monochrome ramp for subtle surfaces.",
|
|
400
|
+
gradient: {
|
|
401
|
+
recipe: "monochrome",
|
|
402
|
+
type: "linear",
|
|
403
|
+
direction: 145
|
|
404
|
+
},
|
|
405
|
+
shadow: {
|
|
406
|
+
layers: 2,
|
|
407
|
+
opacity: 0.18,
|
|
408
|
+
blur: 18,
|
|
409
|
+
y: 7,
|
|
410
|
+
spread: -4
|
|
411
|
+
},
|
|
412
|
+
dropShadow: {
|
|
413
|
+
layers: 2,
|
|
414
|
+
opacity: 0.26,
|
|
415
|
+
blur: 16,
|
|
416
|
+
y: 6
|
|
417
|
+
},
|
|
418
|
+
animation: {
|
|
419
|
+
preset: "pulse",
|
|
420
|
+
duration: 7200,
|
|
421
|
+
easing: "ease-in-out"
|
|
422
|
+
}
|
|
423
|
+
}),
|
|
424
|
+
neonDuo: defineGradientPreset({
|
|
425
|
+
label: "Neon duo",
|
|
426
|
+
description: "Punchy duotone setup with stronger glow defaults.",
|
|
427
|
+
gradient: {
|
|
428
|
+
recipe: "duotone",
|
|
429
|
+
type: "linear",
|
|
430
|
+
direction: 120
|
|
431
|
+
},
|
|
432
|
+
shadow: {
|
|
433
|
+
layers: 2,
|
|
434
|
+
opacity: 0.32,
|
|
435
|
+
blur: 18,
|
|
436
|
+
y: 7,
|
|
437
|
+
spread: -3
|
|
438
|
+
},
|
|
439
|
+
dropShadow: {
|
|
440
|
+
layers: 3,
|
|
441
|
+
opacity: 0.52,
|
|
442
|
+
blur: 18,
|
|
443
|
+
y: 7
|
|
444
|
+
},
|
|
445
|
+
animation: {
|
|
446
|
+
preset: "shift",
|
|
447
|
+
duration: 5200,
|
|
448
|
+
easing: "ease-in-out"
|
|
449
|
+
}
|
|
450
|
+
}),
|
|
451
|
+
orbitalConic: defineGradientPreset({
|
|
452
|
+
label: "Orbital conic",
|
|
453
|
+
description: "Smooth mirrored conic gradient for badges and marks.",
|
|
454
|
+
gradient: {
|
|
455
|
+
recipe: "triadic",
|
|
456
|
+
type: "conic",
|
|
457
|
+
direction: 35,
|
|
458
|
+
position: "center"
|
|
459
|
+
},
|
|
460
|
+
shadow: {
|
|
461
|
+
layers: 2,
|
|
462
|
+
opacity: 0.24,
|
|
463
|
+
blur: 16,
|
|
464
|
+
y: 6,
|
|
465
|
+
spread: -3
|
|
466
|
+
},
|
|
467
|
+
dropShadow: {
|
|
468
|
+
layers: 3,
|
|
469
|
+
opacity: 0.36,
|
|
470
|
+
blur: 16,
|
|
471
|
+
y: 6
|
|
472
|
+
},
|
|
473
|
+
animation: {
|
|
474
|
+
preset: "rotate",
|
|
475
|
+
duration: 9e3
|
|
476
|
+
}
|
|
477
|
+
}),
|
|
478
|
+
auroraRadial: defineGradientPreset({
|
|
479
|
+
label: "Aurora radial",
|
|
480
|
+
description: "Radial analogous gradient with slow hue motion.",
|
|
481
|
+
gradient: {
|
|
482
|
+
recipe: "analogous",
|
|
483
|
+
type: "radial",
|
|
484
|
+
direction: 0,
|
|
485
|
+
position: "top left",
|
|
486
|
+
shape: "circle"
|
|
487
|
+
},
|
|
488
|
+
shadow: {
|
|
489
|
+
layers: 2,
|
|
490
|
+
opacity: 0.22,
|
|
491
|
+
blur: 18,
|
|
492
|
+
y: 7,
|
|
493
|
+
spread: -4
|
|
494
|
+
},
|
|
495
|
+
dropShadow: {
|
|
496
|
+
layers: 3,
|
|
497
|
+
opacity: 0.32,
|
|
498
|
+
blur: 18,
|
|
499
|
+
y: 7
|
|
500
|
+
},
|
|
501
|
+
animation: {
|
|
502
|
+
preset: "hue-rotate",
|
|
503
|
+
duration: 8e3,
|
|
504
|
+
easing: "ease-in-out"
|
|
505
|
+
}
|
|
506
|
+
})
|
|
507
|
+
}), getGradientPreset = (name, registry = gradientPresets) => registry[name] ?? gradientPresets.brandGlare, createGradient = (palette, options = {}) => toCssGradient(createGradientModel(palette, options)), createGradientFromColor = (color, options = {}) => createGradient(createPalette(color), options), core = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
508
|
+
__proto__: null,
|
|
509
|
+
DEFAULT_GRADIENT_MORPH_BLEND_MODE,
|
|
510
|
+
GRADIENT_MORPH_BLEND_MODES,
|
|
511
|
+
createGradient,
|
|
512
|
+
createGradientFromColor,
|
|
513
|
+
createGradientModel,
|
|
514
|
+
createGradientModelFromColor,
|
|
515
|
+
createRecipeStops,
|
|
516
|
+
defineGradientPreset,
|
|
517
|
+
defineGradientPresetRegistry,
|
|
518
|
+
getGradientPreset,
|
|
519
|
+
gradientPresets,
|
|
520
|
+
gradientRecipes
|
|
521
|
+
}, Symbol.toStringTag, { value: "Module" })), SVG_NAMESPACE$1 = "http://www.w3.org/2000/svg", XHTML_NAMESPACE$1 = "http://www.w3.org/1999/xhtml", escapeAttribute$1 = (value) => value.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">"), morphPresets = {
|
|
522
|
+
soft: {
|
|
523
|
+
blobCount: 5,
|
|
524
|
+
blur: 40,
|
|
525
|
+
contrast: 18,
|
|
526
|
+
duration: 12e3,
|
|
527
|
+
opacity: 0.76,
|
|
528
|
+
scale: 1.05
|
|
529
|
+
},
|
|
530
|
+
liquid: {
|
|
531
|
+
blobCount: 6,
|
|
532
|
+
blur: 46,
|
|
533
|
+
contrast: 22,
|
|
534
|
+
duration: 9200,
|
|
535
|
+
opacity: 0.82,
|
|
536
|
+
scale: 1.18
|
|
537
|
+
},
|
|
538
|
+
ripple: {
|
|
539
|
+
blobCount: 7,
|
|
540
|
+
blur: 34,
|
|
541
|
+
contrast: 20,
|
|
542
|
+
duration: 7200,
|
|
543
|
+
opacity: 0.78,
|
|
544
|
+
scale: 0.94
|
|
545
|
+
}
|
|
546
|
+
}, gradientMorphBlendModeSet = new Set(GRADIENT_MORPH_BLEND_MODES), isGradientMorphBlendMode = (value) => gradientMorphBlendModeSet.has(value), resolveGradientMorphBlendMode = (value) => value && isGradientMorphBlendMode(value) ? value : DEFAULT_GRADIENT_MORPH_BLEND_MODE, getMorphOptions = (options = {}) => {
|
|
547
|
+
const preset = morphPresets[options.preset ?? "soft"];
|
|
548
|
+
return {
|
|
549
|
+
blobCount: Math.max(
|
|
550
|
+
2,
|
|
551
|
+
Math.round(options.blobCount ?? preset.blobCount)
|
|
552
|
+
),
|
|
553
|
+
blendMode: resolveGradientMorphBlendMode(options.blendMode),
|
|
554
|
+
blobOpacity: clamp(options.blobOpacity ?? 1, 0, 1.6),
|
|
555
|
+
blur: clamp(options.blur ?? preset.blur, 0, 80),
|
|
556
|
+
contrast: clamp(options.contrast ?? preset.contrast, 0, 36),
|
|
557
|
+
duration: options.duration ?? preset.duration,
|
|
558
|
+
id: options.id ?? "g-gradient-morph",
|
|
559
|
+
opacity: clamp(options.opacity ?? preset.opacity),
|
|
560
|
+
scale: clamp(options.scale ?? preset.scale, 0.4, 2)
|
|
561
|
+
};
|
|
562
|
+
}, getBlobColor = (model, index2) => {
|
|
563
|
+
var _a, _b;
|
|
564
|
+
return ((_a = model.stops[index2 % model.stops.length]) == null ? void 0 : _a.color) ?? ((_b = model.stops[0]) == null ? void 0 : _b.color) ?? "currentColor";
|
|
565
|
+
}, getDurationMs = (duration) => {
|
|
566
|
+
if (typeof duration == "number") return duration;
|
|
567
|
+
const parsed = Number.parseFloat(duration);
|
|
568
|
+
return Number.isFinite(parsed) ? parsed : 9e3;
|
|
569
|
+
}, getNoise = (index2, salt) => {
|
|
570
|
+
const value = Math.sin((index2 + 1) * 12.9898 + salt * 78.233) * 43758.5453;
|
|
571
|
+
return value - Math.floor(value);
|
|
572
|
+
}, getNoiseRange = (index2, salt, min, max) => min + getNoise(index2, salt) * (max - min), round = (value) => Number(value.toFixed(3)), blobPaths = [
|
|
573
|
+
{
|
|
574
|
+
animationName: "g-gradient-morph-drift",
|
|
575
|
+
dx: 20,
|
|
576
|
+
dx2: 8,
|
|
577
|
+
dy: -8,
|
|
578
|
+
dy2: 16,
|
|
579
|
+
originX: "50%",
|
|
580
|
+
originY: "50%",
|
|
581
|
+
scaleMid: 1.16,
|
|
582
|
+
scaleTo: 1.04,
|
|
583
|
+
x: 6,
|
|
584
|
+
y: 58
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
animationName: "g-gradient-morph-orbit",
|
|
588
|
+
dx: -18,
|
|
589
|
+
dx2: 10,
|
|
590
|
+
dy: 18,
|
|
591
|
+
dy2: -10,
|
|
592
|
+
originX: "24%",
|
|
593
|
+
originY: "68%",
|
|
594
|
+
scaleMid: 0.96,
|
|
595
|
+
scaleTo: 1.12,
|
|
596
|
+
x: 44,
|
|
597
|
+
y: 20
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
animationName: "g-gradient-morph-float",
|
|
601
|
+
dx: -16,
|
|
602
|
+
dx2: -8,
|
|
603
|
+
dy: -12,
|
|
604
|
+
dy2: 18,
|
|
605
|
+
originX: "50%",
|
|
606
|
+
originY: "50%",
|
|
607
|
+
scaleMid: 1.2,
|
|
608
|
+
scaleTo: 1.08,
|
|
609
|
+
x: 74,
|
|
610
|
+
y: 58
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
animationName: "g-gradient-morph-orbit",
|
|
614
|
+
dx: 12,
|
|
615
|
+
dx2: -20,
|
|
616
|
+
dy: 14,
|
|
617
|
+
dy2: 6,
|
|
618
|
+
originX: "70%",
|
|
619
|
+
originY: "30%",
|
|
620
|
+
scaleMid: 1.04,
|
|
621
|
+
scaleTo: 1.18,
|
|
622
|
+
x: 88,
|
|
623
|
+
y: 25
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
animationName: "g-gradient-morph-drift",
|
|
627
|
+
dx: 24,
|
|
628
|
+
dx2: -12,
|
|
629
|
+
dy: -16,
|
|
630
|
+
dy2: -8,
|
|
631
|
+
originX: "50%",
|
|
632
|
+
originY: "50%",
|
|
633
|
+
scaleMid: 1.12,
|
|
634
|
+
scaleTo: 0.98,
|
|
635
|
+
x: 30,
|
|
636
|
+
y: 78
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
animationName: "g-gradient-morph-float",
|
|
640
|
+
dx: -22,
|
|
641
|
+
dx2: 14,
|
|
642
|
+
dy: 10,
|
|
643
|
+
dy2: -18,
|
|
644
|
+
originX: "50%",
|
|
645
|
+
originY: "50%",
|
|
646
|
+
scaleMid: 0.94,
|
|
647
|
+
scaleTo: 1.1,
|
|
648
|
+
x: 104,
|
|
649
|
+
y: 82
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
animationName: "g-gradient-morph-orbit",
|
|
653
|
+
dx: 14,
|
|
654
|
+
dx2: -16,
|
|
655
|
+
dy: -22,
|
|
656
|
+
dy2: 10,
|
|
657
|
+
originX: "35%",
|
|
658
|
+
originY: "35%",
|
|
659
|
+
scaleMid: 1.18,
|
|
660
|
+
scaleTo: 1.02,
|
|
661
|
+
x: 55,
|
|
662
|
+
y: 64
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
animationName: "g-gradient-morph-drift",
|
|
666
|
+
dx: -18,
|
|
667
|
+
dx2: 18,
|
|
668
|
+
dy: -14,
|
|
669
|
+
dy2: 14,
|
|
670
|
+
originX: "50%",
|
|
671
|
+
originY: "50%",
|
|
672
|
+
scaleMid: 1.08,
|
|
673
|
+
scaleTo: 0.96,
|
|
674
|
+
x: 18,
|
|
675
|
+
y: 24
|
|
676
|
+
}
|
|
677
|
+
], createGradientMorphBlobs = (model, options = {}) => {
|
|
678
|
+
const { blobCount, blobOpacity, duration, scale } = getMorphOptions(options), durationMs = getDurationMs(duration);
|
|
679
|
+
return Array.from({ length: blobCount }, (_, index2) => {
|
|
680
|
+
const path = blobPaths[index2 % blobPaths.length], sizeJitter = getNoiseRange(index2, 1, 0.88, 1.16), durationJitter = getNoiseRange(index2, 2, 0.86, 1.24), opacity = clamp(getNoiseRange(index2, 3, 0.72, 1) * blobOpacity), blur = getNoiseRange(index2, 4, 0, 4), size = (34 + index2 % 4 * 9) * scale * sizeJitter;
|
|
681
|
+
return {
|
|
682
|
+
animationName: path.animationName,
|
|
683
|
+
blur: round(blur),
|
|
684
|
+
color: getBlobColor(model, index2),
|
|
685
|
+
delay: Math.round(
|
|
686
|
+
index2 * -0.19 * durationMs - getNoiseRange(index2, 5, 0, 900)
|
|
687
|
+
),
|
|
688
|
+
dx: round(path.dx * getNoiseRange(index2, 6, 0.84, 1.18)),
|
|
689
|
+
dx2: round(path.dx2 * getNoiseRange(index2, 7, 0.82, 1.22)),
|
|
690
|
+
dy: round(path.dy * getNoiseRange(index2, 8, 0.84, 1.18)),
|
|
691
|
+
dy2: round(path.dy2 * getNoiseRange(index2, 9, 0.82, 1.22)),
|
|
692
|
+
duration: Math.round(
|
|
693
|
+
durationMs * (1 + index2 % 3 * 0.11) * durationJitter
|
|
694
|
+
),
|
|
695
|
+
opacity: round(opacity),
|
|
696
|
+
originX: path.originX,
|
|
697
|
+
originY: path.originY,
|
|
698
|
+
rotateMid: Math.round(getNoiseRange(index2, 10, 95, 165)),
|
|
699
|
+
rotateTo: Math.round(getNoiseRange(index2, 11, 220, 310)),
|
|
700
|
+
scaleMid: path.scaleMid,
|
|
701
|
+
scaleTo: path.scaleTo,
|
|
702
|
+
size: round(size),
|
|
703
|
+
x: path.x,
|
|
704
|
+
y: path.y
|
|
705
|
+
};
|
|
706
|
+
});
|
|
707
|
+
}, toGradientMorphFilter = (options = {}) => `url(#${getMorphOptions(options).id}) blur(${getMorphOptions(options).blur}px)`, toGradientMorphFilterMarkup = (options = {}) => {
|
|
708
|
+
const { blur, contrast, id } = getMorphOptions(options), gooBlur = Math.max(2, Math.round(blur * 0.25)), alphaOffset = -(contrast * 0.45), matrix = contrast <= 0 ? "" : `
|
|
709
|
+
<feColorMatrix in="g-gradient-morph-blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${contrast} ${alphaOffset}" result="g-gradient-morph-goo" />
|
|
710
|
+
<feBlend in="SourceGraphic" in2="g-gradient-morph-goo" />`;
|
|
711
|
+
return `<svg xmlns="${SVG_NAMESPACE$1}" width="0" height="0" aria-hidden="true" focusable="false" style="position:absolute;overflow:hidden;inline-size:0;block-size:0;">
|
|
712
|
+
<filter id="${id}" x="-30%" y="-30%" width="160%" height="160%" color-interpolation-filters="sRGB">
|
|
713
|
+
<feGaussianBlur in="SourceGraphic" stdDeviation="${gooBlur}" result="g-gradient-morph-blur" />${matrix}
|
|
714
|
+
</filter>
|
|
715
|
+
</svg>`;
|
|
716
|
+
}, toGradientMorphCSS = (model, options = {}) => {
|
|
717
|
+
const selector = options.selector ?? ".g-gradient-morph", { blendMode, opacity } = getMorphOptions(options), blobs = createGradientMorphBlobs(model, options);
|
|
718
|
+
return `${selector} {
|
|
719
|
+
position: relative;
|
|
720
|
+
overflow: hidden;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
${selector}__blobs {
|
|
724
|
+
position: absolute;
|
|
725
|
+
inset: -18%;
|
|
726
|
+
opacity: ${opacity};
|
|
727
|
+
filter: ${toGradientMorphFilter(options)};
|
|
728
|
+
mix-blend-mode: ${blendMode};
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
${selector}__blob {
|
|
732
|
+
position: absolute;
|
|
733
|
+
transform: translate(-50%, -50%);
|
|
734
|
+
transform-origin: var(--g-gradient-morph-origin-x) var(--g-gradient-morph-origin-y);
|
|
735
|
+
opacity: var(--g-gradient-morph-opacity);
|
|
736
|
+
filter: blur(var(--g-gradient-morph-blur));
|
|
737
|
+
border-radius: 999px;
|
|
738
|
+
background: radial-gradient(circle, var(--g-gradient-morph-blob-color) 0%, transparent 72%);
|
|
739
|
+
animation: var(--g-gradient-morph-animation) var(--g-gradient-morph-duration, 9000ms) ease-in-out infinite alternate;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
${blobs.map(
|
|
743
|
+
(blob, index2) => `${selector}__blob:nth-child(${index2 + 1}) {
|
|
744
|
+
top: ${blob.y}%;
|
|
745
|
+
left: ${blob.x}%;
|
|
746
|
+
width: ${blob.size}%;
|
|
747
|
+
aspect-ratio: 1;
|
|
748
|
+
--g-gradient-morph-blob-color: ${blob.color};
|
|
749
|
+
--g-gradient-morph-x: ${blob.dx}%;
|
|
750
|
+
--g-gradient-morph-x2: ${blob.dx2}%;
|
|
751
|
+
--g-gradient-morph-y: ${blob.dy}%;
|
|
752
|
+
--g-gradient-morph-y2: ${blob.dy2}%;
|
|
753
|
+
--g-gradient-morph-origin-x: ${blob.originX};
|
|
754
|
+
--g-gradient-morph-origin-y: ${blob.originY};
|
|
755
|
+
--g-gradient-morph-animation: ${blob.animationName};
|
|
756
|
+
--g-gradient-morph-blur: ${blob.blur}px;
|
|
757
|
+
--g-gradient-morph-opacity: ${blob.opacity};
|
|
758
|
+
--g-gradient-morph-rotate-mid: ${blob.rotateMid}deg;
|
|
759
|
+
--g-gradient-morph-rotate-to: ${blob.rotateTo}deg;
|
|
760
|
+
--g-gradient-morph-scale-mid: ${blob.scaleMid};
|
|
761
|
+
--g-gradient-morph-scale: ${blob.scaleTo};
|
|
762
|
+
--g-gradient-morph-delay: ${blob.delay}ms;
|
|
763
|
+
animation-delay: var(--g-gradient-morph-delay);
|
|
764
|
+
animation-duration: ${toCssDuration(blob.duration)};
|
|
765
|
+
}`
|
|
766
|
+
).join(`
|
|
767
|
+
|
|
768
|
+
`)}
|
|
769
|
+
|
|
770
|
+
@keyframes g-gradient-morph-drift {
|
|
771
|
+
0% {
|
|
772
|
+
transform: translate(-50%, -50%) scale(0.92);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
42% {
|
|
776
|
+
transform: translate(calc(-50% + var(--g-gradient-morph-x)), calc(-50% + var(--g-gradient-morph-y))) scale(var(--g-gradient-morph-scale));
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
100% {
|
|
780
|
+
transform: translate(calc(-50% + var(--g-gradient-morph-x2)), calc(-50% + var(--g-gradient-morph-y2))) scale(var(--g-gradient-morph-scale-mid));
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
@keyframes g-gradient-morph-float {
|
|
785
|
+
0% {
|
|
786
|
+
transform: translate(-50%, -50%) scale(1);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
50% {
|
|
790
|
+
transform: translate(calc(-50% + var(--g-gradient-morph-x)), calc(-50% + var(--g-gradient-morph-y))) scale(var(--g-gradient-morph-scale-mid));
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
100% {
|
|
794
|
+
transform: translate(calc(-50% + var(--g-gradient-morph-x2)), calc(-50% + var(--g-gradient-morph-y2))) scale(var(--g-gradient-morph-scale));
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
@keyframes g-gradient-morph-orbit {
|
|
799
|
+
0% {
|
|
800
|
+
transform: translate(-50%, -50%) rotate(0deg) scale(0.96);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
50% {
|
|
804
|
+
transform: translate(calc(-50% + var(--g-gradient-morph-x)), calc(-50% + var(--g-gradient-morph-y))) rotate(var(--g-gradient-morph-rotate-mid)) scale(var(--g-gradient-morph-scale-mid));
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
100% {
|
|
808
|
+
transform: translate(calc(-50% + var(--g-gradient-morph-x2)), calc(-50% + var(--g-gradient-morph-y2))) rotate(var(--g-gradient-morph-rotate-to)) scale(var(--g-gradient-morph-scale));
|
|
809
|
+
}
|
|
810
|
+
}`;
|
|
811
|
+
}, toGradientMorphMarkup = (model, options = {}) => {
|
|
812
|
+
const id = options.id ?? "g-gradient-morph", width = options.width ?? 360, height = options.height ?? 240, rx = options.rx ?? 24, filterId = `${id}-filter`, filter = toGradientMorphFilter({ ...options, id: filterId }), blobs = createGradientMorphBlobs(model, options), { blendMode, opacity } = getMorphOptions(options);
|
|
813
|
+
return `<svg xmlns="${SVG_NAMESPACE$1}" viewBox="0 0 ${width} ${height}" width="${width}" height="${height}" role="img">
|
|
814
|
+
<defs>
|
|
815
|
+
<clipPath id="${id}-clip">
|
|
816
|
+
<rect width="${width}" height="${height}" rx="${rx}" />
|
|
817
|
+
</clipPath>
|
|
818
|
+
</defs>
|
|
819
|
+
<foreignObject width="${width}" height="${height}" clip-path="url(#${id}-clip)">
|
|
820
|
+
<div xmlns="${XHTML_NAMESPACE$1}" class="g-gradient-material">
|
|
821
|
+
${toGradientMorphFilterMarkup({ ...options, id: `${id}-filter` })}
|
|
822
|
+
<style>
|
|
823
|
+
.g-gradient-material {
|
|
824
|
+
position: relative;
|
|
825
|
+
overflow: hidden;
|
|
826
|
+
display: flex;
|
|
827
|
+
width: ${width}px;
|
|
828
|
+
height: ${height}px;
|
|
829
|
+
border-radius: ${rx}px;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.g-gradient-material__surface {
|
|
833
|
+
position: relative;
|
|
834
|
+
overflow: hidden;
|
|
835
|
+
display: flex;
|
|
836
|
+
width: 100%;
|
|
837
|
+
height: 100%;
|
|
838
|
+
border-radius: ${rx}px;
|
|
839
|
+
background: ${escapeAttribute$1(toCssGradient(model))};
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.g-gradient-material__morph {
|
|
843
|
+
--g-gradient-material-morph-bleed: 18%;
|
|
844
|
+
position: absolute;
|
|
845
|
+
z-index: 1;
|
|
846
|
+
inset: calc(-1 * var(--g-gradient-material-morph-bleed));
|
|
847
|
+
width: calc(100% + 2 * var(--g-gradient-material-morph-bleed));
|
|
848
|
+
height: calc(100% + 2 * var(--g-gradient-material-morph-bleed));
|
|
849
|
+
opacity: ${opacity};
|
|
850
|
+
filter: ${filter};
|
|
851
|
+
mix-blend-mode: ${blendMode};
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.g-gradient-material__morph-blob {
|
|
855
|
+
position: absolute;
|
|
856
|
+
transform-origin: var(--g-gradient-morph-origin-x) var(--g-gradient-morph-origin-y);
|
|
857
|
+
transform: translate(-50%, -50%);
|
|
858
|
+
aspect-ratio: 1;
|
|
859
|
+
border-radius: 999px;
|
|
860
|
+
opacity: var(--g-gradient-morph-opacity);
|
|
861
|
+
background: radial-gradient(circle, var(--g-gradient-morph-blob-color) 0%, transparent 72%);
|
|
862
|
+
filter: blur(var(--g-gradient-morph-blur));
|
|
863
|
+
animation: var(--g-gradient-morph-animation) var(--g-gradient-morph-duration, 9000ms) ease-in-out infinite alternate;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
${blobs.map(
|
|
867
|
+
(blob, index2) => `.g-gradient-material__morph-blob:nth-child(${index2 + 1}) {
|
|
868
|
+
left: ${blob.x}%;
|
|
869
|
+
top: ${blob.y}%;
|
|
870
|
+
width: ${blob.size}%;
|
|
871
|
+
--g-gradient-morph-blob-color: ${blob.color};
|
|
872
|
+
--g-gradient-morph-x: ${blob.dx}%;
|
|
873
|
+
--g-gradient-morph-x2: ${blob.dx2}%;
|
|
874
|
+
--g-gradient-morph-y: ${blob.dy}%;
|
|
875
|
+
--g-gradient-morph-y2: ${blob.dy2}%;
|
|
876
|
+
--g-gradient-morph-origin-x: ${blob.originX};
|
|
877
|
+
--g-gradient-morph-origin-y: ${blob.originY};
|
|
878
|
+
--g-gradient-morph-animation: ${blob.animationName};
|
|
879
|
+
--g-gradient-morph-blur: ${blob.blur}px;
|
|
880
|
+
--g-gradient-morph-opacity: ${blob.opacity};
|
|
881
|
+
--g-gradient-morph-rotate-mid: ${blob.rotateMid}deg;
|
|
882
|
+
--g-gradient-morph-rotate-to: ${blob.rotateTo}deg;
|
|
883
|
+
--g-gradient-morph-scale-mid: ${blob.scaleMid};
|
|
884
|
+
--g-gradient-morph-scale: ${blob.scaleTo};
|
|
885
|
+
--g-gradient-morph-delay: ${blob.delay}ms;
|
|
886
|
+
animation-delay: var(--g-gradient-morph-delay);
|
|
887
|
+
animation-duration: ${toCssDuration(blob.duration)};
|
|
888
|
+
}`
|
|
889
|
+
).join(`
|
|
890
|
+
|
|
891
|
+
`)}
|
|
892
|
+
|
|
893
|
+
@keyframes g-gradient-morph-drift {
|
|
894
|
+
0% { transform: translate(-50%, -50%) scale(0.92); }
|
|
895
|
+
42% { transform: translate(calc(-50% + var(--g-gradient-morph-x)), calc(-50% + var(--g-gradient-morph-y))) scale(var(--g-gradient-morph-scale)); }
|
|
896
|
+
100% { transform: translate(calc(-50% + var(--g-gradient-morph-x2)), calc(-50% + var(--g-gradient-morph-y2))) scale(var(--g-gradient-morph-scale-mid)); }
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
@keyframes g-gradient-morph-float {
|
|
900
|
+
0% { transform: translate(-50%, -50%) scale(1); }
|
|
901
|
+
50% { transform: translate(calc(-50% + var(--g-gradient-morph-x)), calc(-50% + var(--g-gradient-morph-y))) scale(var(--g-gradient-morph-scale-mid)); }
|
|
902
|
+
100% { transform: translate(calc(-50% + var(--g-gradient-morph-x2)), calc(-50% + var(--g-gradient-morph-y2))) scale(var(--g-gradient-morph-scale)); }
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
@keyframes g-gradient-morph-orbit {
|
|
906
|
+
0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.96); }
|
|
907
|
+
50% { transform: translate(calc(-50% + var(--g-gradient-morph-x)), calc(-50% + var(--g-gradient-morph-y))) rotate(var(--g-gradient-morph-rotate-mid)) scale(var(--g-gradient-morph-scale-mid)); }
|
|
908
|
+
100% { transform: translate(calc(-50% + var(--g-gradient-morph-x2)), calc(-50% + var(--g-gradient-morph-y2))) rotate(var(--g-gradient-morph-rotate-to)) scale(var(--g-gradient-morph-scale)); }
|
|
909
|
+
}
|
|
910
|
+
</style>
|
|
911
|
+
<span class="g-gradient-material__surface">
|
|
912
|
+
<span class="g-gradient-material__morph">
|
|
913
|
+
${blobs.map(() => '<span class="g-gradient-material__morph-blob"></span>').join(`
|
|
914
|
+
`)}
|
|
915
|
+
</span>
|
|
916
|
+
</span>
|
|
917
|
+
</div>
|
|
918
|
+
</foreignObject>
|
|
919
|
+
</svg>`;
|
|
920
|
+
}, getShadowStops = (model, layers) => {
|
|
921
|
+
const saturatedStops = model.stops.filter(
|
|
922
|
+
(stop) => stop.position >= 25 && stop.position <= 85
|
|
923
|
+
), fallbackStops = model.stops.filter(
|
|
924
|
+
(stop) => !saturatedStops.includes(stop)
|
|
925
|
+
);
|
|
926
|
+
return [...saturatedStops, ...fallbackStops].sort(
|
|
927
|
+
(first, second) => Math.abs(first.position - 50) - Math.abs(second.position - 50)
|
|
928
|
+
).slice(0, layers);
|
|
929
|
+
}, getDropShadowLayerOpacity = (opacity, index2) => opacity * ([1, 0.54, 0.3, 0.18][index2] ?? 0.12), scaleSimpleCssLength = (value, factor) => {
|
|
930
|
+
const match = String(value).match(/^(-?\d*\.?\d+)(.*)$/);
|
|
931
|
+
return match ? `${Math.round(Number(match[1]) * factor * 1e3) / 1e3}${match[2] || "px"}` : null;
|
|
932
|
+
}, getDistributedOffset = (value, layers, index2) => scaleSimpleCssLength(value, 1 / layers) ?? (index2 === 0 ? toCssLength(value) : "0px"), getDistributedBlur = (value, layers) => scaleSimpleCssLength(value, 1 / Math.sqrt(layers)) ?? toCssLength(value), toGradientBoxShadow = (model, options = {}) => {
|
|
933
|
+
var _a;
|
|
934
|
+
const x = options.x ?? 0, y = options.y ?? 6, blur = options.blur ?? 14, spread = options.spread ?? -3, opacity = options.opacity ?? 0.24, layers = Math.max(1, Math.round(options.layers ?? 2)), dominantColor = ((_a = getShadowStops(model, 1)[0]) == null ? void 0 : _a.color) ?? "#000000", ambientShadow = `${toCssLength(x)} ${toCssLength(y)} ${toCssLength(blur)} ${toCssLength(spread)} ${toCssColor(dominantColor, opacity)}`;
|
|
935
|
+
if (layers === 1) return ambientShadow;
|
|
936
|
+
const contactX = scaleSimpleCssLength(x, 0.35) ?? "0px", contactY = scaleSimpleCssLength(y, 0.35) ?? "2px", contactBlur = scaleSimpleCssLength(blur, 0.3) ?? "4px", contactSpread = scaleSimpleCssLength(spread, 0.5) ?? "-2px", contactOpacity = Math.min(0.18, opacity * 0.65);
|
|
937
|
+
return `${`${contactX} ${contactY} ${contactBlur} ${contactSpread} ${toCssColor("#000000", contactOpacity)}`}, ${ambientShadow}`;
|
|
938
|
+
}, toGradientDropShadow = (model, options = {}) => {
|
|
939
|
+
const x = options.x ?? 0, y = options.y ?? 6, blur = options.blur ?? 14, opacity = options.opacity ?? 0.42, layers = Math.max(1, Math.round(options.layers ?? 2)), distributedBlur = getDistributedBlur(blur, layers);
|
|
940
|
+
return getShadowStops(model, layers).map((stop, index2) => {
|
|
941
|
+
const distributedX = getDistributedOffset(x, layers, index2), distributedY = getDistributedOffset(y, layers, index2);
|
|
942
|
+
return `drop-shadow(${distributedX} ${distributedY} ${distributedBlur} ${toCssColor(stop.color, getDropShadowLayerOpacity(opacity, index2))})`;
|
|
943
|
+
}).join(" ");
|
|
944
|
+
}, index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
945
|
+
__proto__: null,
|
|
946
|
+
createGradientMorphBlobs,
|
|
947
|
+
isGradientMorphBlendMode,
|
|
948
|
+
resolveGradientMorphBlendMode,
|
|
949
|
+
toGradientBoxShadow,
|
|
950
|
+
toGradientDropShadow,
|
|
951
|
+
toGradientMorphCSS,
|
|
952
|
+
toGradientMorphFilter,
|
|
953
|
+
toGradientMorphFilterMarkup,
|
|
954
|
+
toGradientMorphMarkup
|
|
955
|
+
}, Symbol.toStringTag, { value: "Module" })), toCanvasGradient = (context, model, options = {}) => {
|
|
956
|
+
const width = options.width ?? context.canvas.width, height = options.height ?? context.canvas.height, centerX = width / 2, centerY = height / 2, maxRadius = Math.hypot(width, height) / 2, radians = ((typeof model.direction == "number" ? model.direction : Number.parseFloat(model.direction) || DEFAULT_GRADIENT_DIRECTION) - 90) * Math.PI / 180, halfWidth = width / 2, halfHeight = height / 2, xOffset = Math.cos(radians) * halfWidth, yOffset = Math.sin(radians) * halfHeight, gradient = model.type === "radial" ? context.createRadialGradient(
|
|
957
|
+
options.x0 ?? centerX,
|
|
958
|
+
options.y0 ?? centerY,
|
|
959
|
+
options.r0 ?? 0,
|
|
960
|
+
options.x1 ?? centerX,
|
|
961
|
+
options.y1 ?? centerY,
|
|
962
|
+
options.r1 ?? maxRadius
|
|
963
|
+
) : model.type === "conic" && typeof context.createConicGradient == "function" ? context.createConicGradient(
|
|
964
|
+
options.startAngle ?? radians,
|
|
965
|
+
options.x0 ?? centerX,
|
|
966
|
+
options.y0 ?? centerY
|
|
967
|
+
) : context.createLinearGradient(
|
|
968
|
+
options.x0 ?? centerX - xOffset,
|
|
969
|
+
options.y0 ?? centerY - yOffset,
|
|
970
|
+
options.x1 ?? centerX + xOffset,
|
|
971
|
+
options.y1 ?? centerY + yOffset
|
|
972
|
+
), stops = model.type === "conic" ? getConicStops(model.stops) : model.stops;
|
|
973
|
+
for (const stop of stops)
|
|
974
|
+
gradient.addColorStop(
|
|
975
|
+
stop.position / 100,
|
|
976
|
+
toCssColor(stop.color, stop.opacity)
|
|
977
|
+
);
|
|
978
|
+
return gradient;
|
|
979
|
+
}, SVG_NAMESPACE = "http://www.w3.org/2000/svg", XHTML_NAMESPACE = "http://www.w3.org/1999/xhtml", escapeAttribute = (value) => value.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">"), formatSvgStop = (stop) => {
|
|
980
|
+
const opacity = stop.opacity === void 0 ? "" : ` stop-opacity="${clamp(stop.opacity)}"`;
|
|
981
|
+
return `<stop offset="${stop.position}%" stop-color="${stop.color}"${opacity} />`;
|
|
982
|
+
}, getPathStroke = (model, options) => {
|
|
983
|
+
var _a, _b, _c;
|
|
984
|
+
return {
|
|
985
|
+
active: options.activeStroke ?? ((_a = model.stops[Math.max(0, Math.floor(model.stops.length / 2))]) == null ? void 0 : _a.color) ?? ((_b = model.stops[0]) == null ? void 0 : _b.color) ?? "currentColor",
|
|
986
|
+
background: options.backgroundStroke ?? ((_c = model.stops[0]) == null ? void 0 : _c.color) ?? options.activeStroke ?? "currentColor"
|
|
987
|
+
};
|
|
988
|
+
}, getSvgViewBox = (svg, options) => {
|
|
989
|
+
var _a;
|
|
990
|
+
const viewBox = (_a = svg.match(/\bviewBox=(["'])(.*?)\1/i)) == null ? void 0 : _a[2];
|
|
991
|
+
if (viewBox) return viewBox;
|
|
992
|
+
const width = options.width ?? 240, height = options.height ?? 120;
|
|
993
|
+
return `0 0 ${width} ${height}`;
|
|
994
|
+
}, getSvgBody = (svg) => {
|
|
995
|
+
var _a;
|
|
996
|
+
return ((_a = svg.replace(/<\?xml[\s\S]*?\?>/gi, "").replace(/<!doctype[\s\S]*?>/gi, "").match(/<svg\b[^>]*>([\s\S]*?)<\/svg>/i)) == null ? void 0 : _a[1].trim()) ?? svg;
|
|
997
|
+
}, splitAbsoluteSubpaths = (path) => {
|
|
998
|
+
const subpaths = path.trim().split(/(?=M\s*[-+.\d])/).map((subpath) => subpath.trim()).filter(Boolean);
|
|
999
|
+
return subpaths.length > 1 ? subpaths : [path];
|
|
1000
|
+
}, getSvgPathData = (svg) => [...svg.matchAll(/<path\b[^>]*\sd=(["'])([\s\S]*?)\1/gi)].flatMap(
|
|
1001
|
+
(match) => splitAbsoluteSubpaths(match[2])
|
|
1002
|
+
), getPathComplexity = (path) => {
|
|
1003
|
+
var _a;
|
|
1004
|
+
return Math.max(1, ((_a = path.match(/[LlHhVvCcSsQqTtAaZz]/g)) == null ? void 0 : _a.length) ?? 0);
|
|
1005
|
+
}, getSourcePathFillTime = (path, maxComplexity) => {
|
|
1006
|
+
const fillTime = 0.5 + (1 - getPathComplexity(path) / maxComplexity) * 0.22;
|
|
1007
|
+
return Math.round(fillTime * 1e3) / 1e3;
|
|
1008
|
+
}, getViewBoxMetrics = (viewBox) => {
|
|
1009
|
+
const [x = "0", y = "0", width = "240", height = "120"] = viewBox.trim().split(/[\s,]+/);
|
|
1010
|
+
return {
|
|
1011
|
+
height: Number(height) || 120,
|
|
1012
|
+
width: Number(width) || 240,
|
|
1013
|
+
x: Number(x) || 0,
|
|
1014
|
+
y: Number(y) || 0
|
|
1015
|
+
};
|
|
1016
|
+
}, getPaddedViewBox = (viewBox, strokeWidth, options) => {
|
|
1017
|
+
if (options.viewBoxPadding === !1) return viewBox;
|
|
1018
|
+
const metrics = getViewBoxMetrics(viewBox), fallbackPadding = Math.max(
|
|
1019
|
+
strokeWidth * 2,
|
|
1020
|
+
Math.min(metrics.width, metrics.height) * 0.02
|
|
1021
|
+
), padding = options.viewBoxPadding ?? fallbackPadding;
|
|
1022
|
+
return [
|
|
1023
|
+
metrics.x - padding,
|
|
1024
|
+
metrics.y - padding,
|
|
1025
|
+
metrics.width + padding * 2,
|
|
1026
|
+
metrics.height + padding * 2
|
|
1027
|
+
].join(" ");
|
|
1028
|
+
}, getViewBoxSize = (viewBox) => {
|
|
1029
|
+
const { height, width } = getViewBoxMetrics(viewBox);
|
|
1030
|
+
return {
|
|
1031
|
+
height: Number(height) || 120,
|
|
1032
|
+
width: Number(width) || 240
|
|
1033
|
+
};
|
|
1034
|
+
}, getNormalizedStrokeWidth = (strokeWidth, viewBox, options) => {
|
|
1035
|
+
if (options.normalizeStrokeWidth === !1) return strokeWidth;
|
|
1036
|
+
const { height, width } = getViewBoxSize(viewBox), base = options.strokeWidthBase ?? 180;
|
|
1037
|
+
return strokeWidth * (Math.min(width, height) / base);
|
|
1038
|
+
}, toSvgGradient = (model, options = {}) => {
|
|
1039
|
+
const id = options.id ?? "g-gradient", stops = model.stops.map(formatSvgStop).join("");
|
|
1040
|
+
return model.type === "radial" ? `<radialGradient id="${id}" cx="${options.cx ?? "50%"}" cy="${options.cy ?? "50%"}" r="${options.r ?? "75%"}">${stops}</radialGradient>` : model.type === "conic" ? `<pattern id="${id}" patternUnits="objectBoundingBox" width="1" height="1"><foreignObject x="0" y="0" width="100%" height="100%"><div xmlns="${XHTML_NAMESPACE}" style="width:100%;height:100%;background:${escapeAttribute(toCssGradient(model))};"></div></foreignObject></pattern>` : `<linearGradient id="${id}" x1="${options.x1 ?? "0%"}" y1="${options.y1 ?? "0%"}" x2="${options.x2 ?? "100%"}" y2="${options.y2 ?? "100%"}">${stops}</linearGradient>`;
|
|
1041
|
+
}, toSvgGradientMarkup = (model, options = {}) => {
|
|
1042
|
+
const id = options.id ?? "g-gradient", width = options.width ?? 240, height = options.height ?? 120, rx = options.rx ?? 18;
|
|
1043
|
+
return `<svg xmlns="${SVG_NAMESPACE}" viewBox="0 0 ${width} ${height}" role="img">
|
|
1044
|
+
<defs>
|
|
1045
|
+
${toSvgGradient(model, options)}
|
|
1046
|
+
</defs>
|
|
1047
|
+
<rect width="${width}" height="${height}" rx="${rx}" fill="url(#${id})" />
|
|
1048
|
+
</svg>`;
|
|
1049
|
+
}, toSvgSourceAnimationMarkup = (sourceSvg, model, options = {}) => {
|
|
1050
|
+
const gradientId = `${options.id ?? "g-gradient-source"}-stroke`, sourceViewBox = getSvgViewBox(sourceSvg, options), body = getSvgBody(sourceSvg), paths = getSvgPathData(sourceSvg), strokeWidth = getNormalizedStrokeWidth(
|
|
1051
|
+
options.strokeWidth ?? 1.4,
|
|
1052
|
+
sourceViewBox,
|
|
1053
|
+
options
|
|
1054
|
+
), viewBox = getPaddedViewBox(sourceViewBox, strokeWidth, options), { width, x } = getViewBoxMetrics(viewBox), linecap = options.linecap ?? "round", duration = toCssDuration(options.duration ?? 3600), repeatCount = options.repeatCount ?? "indefinite", sourceOpacity = options.sourceOpacity ?? 0.22, stops = model.stops.map(formatSvgStop).join(""), maxPathComplexity = Math.max(...paths.map(getPathComplexity));
|
|
1055
|
+
return `<svg xmlns="${SVG_NAMESPACE}" viewBox="${escapeAttribute(viewBox)}" role="img">
|
|
1056
|
+
<defs>
|
|
1057
|
+
<linearGradient id="${gradientId}" gradientUnits="userSpaceOnUse" x1="${x}" y1="0" x2="${x + width}" y2="0">
|
|
1058
|
+
${stops}
|
|
1059
|
+
</linearGradient>
|
|
1060
|
+
</defs>
|
|
1061
|
+
<g opacity="${clamp(sourceOpacity)}">
|
|
1062
|
+
${body}
|
|
1063
|
+
</g>
|
|
1064
|
+
<g fill="none" stroke="url(#${gradientId})" stroke-width="${strokeWidth}" stroke-linecap="${linecap}" stroke-linejoin="round">
|
|
1065
|
+
${paths.map((path) => {
|
|
1066
|
+
const fillTime = getSourcePathFillTime(path, maxPathComplexity);
|
|
1067
|
+
return `<path d="${escapeAttribute(path)}" pathLength="100" stroke-dasharray="0 100" stroke-dashoffset="0">
|
|
1068
|
+
<animate attributeName="stroke-dasharray" values="0 100;100 100;0 100" keyTimes="0;${fillTime};1" dur="${duration}" repeatCount="${repeatCount}" calcMode="linear" />
|
|
1069
|
+
<animate attributeName="stroke-dashoffset" values="0;0;-100" keyTimes="0;${fillTime};1" dur="${duration}" repeatCount="${repeatCount}" calcMode="linear" />
|
|
1070
|
+
</path>`;
|
|
1071
|
+
}).join(`
|
|
1072
|
+
`)}
|
|
1073
|
+
</g>
|
|
1074
|
+
</svg>`;
|
|
1075
|
+
}, toSvgPathAnimationMarkup = (model, options = {}) => {
|
|
1076
|
+
const gradientId = `${options.id ?? "g-gradient-path"}-stroke`, width = options.width ?? 240, height = options.height ?? 120, path = options.path ?? `M 20 ${height * 0.64} C ${width * 0.28} ${height * 0.18}, ${width * 0.58} ${height * 0.18}, ${width - 20} ${height * 0.64}`, strokeWidth = options.strokeWidth ?? 12, linecap = options.linecap ?? "round", duration = toCssDuration(options.duration ?? 2800), repeatCount = options.repeatCount ?? "indefinite", opacity = options.backgroundOpacity ?? 0.24, stroke = getPathStroke(model, options), stops = model.stops.map(formatSvgStop).join("");
|
|
1077
|
+
return `<svg xmlns="${SVG_NAMESPACE}" viewBox="0 0 ${width} ${height}" role="img">
|
|
1078
|
+
<defs>
|
|
1079
|
+
<linearGradient id="${gradientId}" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="${width}" y2="0">
|
|
1080
|
+
${stops}
|
|
1081
|
+
</linearGradient>
|
|
1082
|
+
</defs>
|
|
1083
|
+
<path d="${escapeAttribute(path)}" fill="none" stroke="${stroke.background}" stroke-width="${strokeWidth}" stroke-linecap="${linecap}" opacity="${opacity}" />
|
|
1084
|
+
<path d="${escapeAttribute(path)}" fill="none" stroke="${options.activeStroke ? stroke.active : `url(#${gradientId})`}" stroke-width="${strokeWidth}" stroke-linecap="${linecap}" pathLength="100" stroke-dasharray="100 100" stroke-dashoffset="100">
|
|
1085
|
+
<animate attributeName="stroke-dashoffset" values="100;0;-100" dur="${duration}" repeatCount="${repeatCount}" />
|
|
1086
|
+
</path>
|
|
1087
|
+
</svg>`;
|
|
1088
|
+
}, index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1089
|
+
__proto__: null,
|
|
1090
|
+
createLinearGradient,
|
|
1091
|
+
toCanvasGradient,
|
|
1092
|
+
toCssGradient,
|
|
1093
|
+
toSvgGradient,
|
|
1094
|
+
toSvgGradientMarkup,
|
|
1095
|
+
toSvgPathAnimationMarkup,
|
|
1096
|
+
toSvgSourceAnimationMarkup
|
|
1097
|
+
}, Symbol.toStringTag, { value: "Module" })), DEFAULT_TOKEN_RECIPES = ["glare", "soft", "mesh"], DEFAULT_MATERIAL_CACHE_LIMIT = 128;
|
|
1098
|
+
let materialCacheLimit = DEFAULT_MATERIAL_CACHE_LIMIT;
|
|
1099
|
+
const materialCache = /* @__PURE__ */ new Map(), toKebabCase = (value) => value.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`), toTokenName = (recipe) => toKebabCase(recipe), toCssVar = (prefix, name, suffix) => `${prefix}-${name}`, toCssText = (cssVars) => Object.entries(cssVars).map(([name, value]) => `${name}: ${value};`).join(`
|
|
1100
|
+
`), toCssProperty = (value) => value.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`), toCssDeclarations = (styles) => Object.entries(styles).map(([name, value]) => `${toCssProperty(name)}: ${value};`).join(`
|
|
1101
|
+
`), stableSerialize = (value) => value === null || typeof value != "object" ? JSON.stringify(value) : Array.isArray(value) ? `[${value.map(stableSerialize).join(",")}]` : `{${Object.entries(value).filter(([, entryValue]) => entryValue !== void 0).sort(([firstKey], [secondKey]) => firstKey.localeCompare(secondKey)).map(
|
|
1102
|
+
([key, entryValue]) => `${JSON.stringify(key)}:${stableSerialize(entryValue)}`
|
|
1103
|
+
).join(",")}}`, hashString = (value) => {
|
|
1104
|
+
let hash = 5381;
|
|
1105
|
+
for (let index2 = 0; index2 < value.length; index2 += 1)
|
|
1106
|
+
hash = hash * 33 ^ value.charCodeAt(index2);
|
|
1107
|
+
return (hash >>> 0).toString(36);
|
|
1108
|
+
}, getMaterialCacheKey = (seed, options) => stableSerialize({ options, seed }), getCachedMaterial = (key) => {
|
|
1109
|
+
const cachedMaterial = materialCache.get(key);
|
|
1110
|
+
if (cachedMaterial)
|
|
1111
|
+
return materialCache.delete(key), materialCache.set(key, cachedMaterial), cachedMaterial;
|
|
1112
|
+
}, setCachedMaterial = (key, material2) => {
|
|
1113
|
+
if (materialCacheLimit <= 0) return material2;
|
|
1114
|
+
for (materialCache.set(key, material2); materialCache.size > materialCacheLimit; ) {
|
|
1115
|
+
const oldestKey = materialCache.keys().next().value;
|
|
1116
|
+
if (oldestKey === void 0) break;
|
|
1117
|
+
materialCache.delete(oldestKey);
|
|
1118
|
+
}
|
|
1119
|
+
return material2;
|
|
1120
|
+
}, clearGradientMaterialCache = () => {
|
|
1121
|
+
materialCache.clear();
|
|
1122
|
+
}, setGradientMaterialCacheLimit = (limit) => {
|
|
1123
|
+
for (materialCacheLimit = Math.max(0, Math.floor(limit)); materialCache.size > materialCacheLimit; ) {
|
|
1124
|
+
const oldestKey = materialCache.keys().next().value;
|
|
1125
|
+
if (oldestKey === void 0) break;
|
|
1126
|
+
materialCache.delete(oldestKey);
|
|
1127
|
+
}
|
|
1128
|
+
}, getGradientMaterialCacheStats = () => ({
|
|
1129
|
+
limit: materialCacheLimit,
|
|
1130
|
+
size: materialCache.size
|
|
1131
|
+
}), toScopedCssText = (className, cssVars, style, keyframes) => {
|
|
1132
|
+
const vars = toCssText(cssVars), styles = toCssDeclarations(style), body = [vars, styles].filter(Boolean).join(`
|
|
1133
|
+
`);
|
|
1134
|
+
return [`.${className} {
|
|
1135
|
+
${body}
|
|
1136
|
+
}`, keyframes].filter(Boolean).join(`
|
|
1137
|
+
|
|
1138
|
+
`);
|
|
1139
|
+
}, isGradientPresetName = (value, registry) => value in registry, resolveTokenPreset = (recipe, registry) => isGradientPresetName(recipe, registry) ? getGradientPreset(recipe, registry) : recipe === "soft" ? {
|
|
1140
|
+
label: "Soft",
|
|
1141
|
+
description: "Quiet monochrome radial gradient.",
|
|
1142
|
+
gradient: {
|
|
1143
|
+
recipe: "monochrome",
|
|
1144
|
+
type: "radial",
|
|
1145
|
+
position: "center",
|
|
1146
|
+
shape: "ellipse"
|
|
1147
|
+
},
|
|
1148
|
+
shadow: {
|
|
1149
|
+
layers: 2,
|
|
1150
|
+
opacity: 0.18,
|
|
1151
|
+
blur: 18,
|
|
1152
|
+
y: 7,
|
|
1153
|
+
spread: -4
|
|
1154
|
+
},
|
|
1155
|
+
dropShadow: {
|
|
1156
|
+
layers: 2,
|
|
1157
|
+
opacity: 0.26,
|
|
1158
|
+
blur: 16,
|
|
1159
|
+
y: 6
|
|
1160
|
+
},
|
|
1161
|
+
animation: {
|
|
1162
|
+
preset: "pulse",
|
|
1163
|
+
duration: 7200,
|
|
1164
|
+
easing: "ease-in-out"
|
|
1165
|
+
}
|
|
1166
|
+
} : recipe === "mesh" ? null : {
|
|
1167
|
+
label: recipe,
|
|
1168
|
+
gradient: {
|
|
1169
|
+
recipe,
|
|
1170
|
+
type: "linear",
|
|
1171
|
+
direction: recipe === "glare" ? 135 : 145
|
|
1172
|
+
}
|
|
1173
|
+
}, createMeshGradient = (seed) => {
|
|
1174
|
+
const layers = [
|
|
1175
|
+
`radial-gradient(circle at 16% 18%, ${shiftHue(seed, -42, 72, 1.05)} 0%, transparent 34%)`,
|
|
1176
|
+
`radial-gradient(circle at 86% 20%, ${getComplementaryColor(seed)} 0%, transparent 32%)`,
|
|
1177
|
+
`radial-gradient(circle at 50% 84%, ${shiftHue(seed, 56, 64, 1.08)} 0%, transparent 38%)`,
|
|
1178
|
+
`linear-gradient(135deg, ${changeTone(seed, 94)}, ${changeTone(seed, 28)})`
|
|
1179
|
+
];
|
|
1180
|
+
return {
|
|
1181
|
+
layers,
|
|
1182
|
+
value: layers.join(", ")
|
|
1183
|
+
};
|
|
1184
|
+
}, createTokenGradientEntry = (seed, recipe, cssVar, options, registry) => {
|
|
1185
|
+
if (recipe === "mesh") {
|
|
1186
|
+
const mesh = createMeshGradient(seed);
|
|
1187
|
+
return {
|
|
1188
|
+
cssVar,
|
|
1189
|
+
layers: mesh.layers,
|
|
1190
|
+
value: mesh.value
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
const preset = resolveTokenPreset(recipe, registry), palette = createPalette(seed), model = createGradientModel(palette, {
|
|
1194
|
+
...preset == null ? void 0 : preset.gradient,
|
|
1195
|
+
...options
|
|
1196
|
+
});
|
|
1197
|
+
return {
|
|
1198
|
+
cssVar,
|
|
1199
|
+
model,
|
|
1200
|
+
stops: model.stops,
|
|
1201
|
+
svg: toSvgGradient(model, { id: cssVar.replace(/^--/, "") }),
|
|
1202
|
+
value: toCssGradient(model)
|
|
1203
|
+
};
|
|
1204
|
+
}, createTokenEffectEntry = (model, cssVarName, preset, options) => {
|
|
1205
|
+
var _a, _b;
|
|
1206
|
+
if (!model) return {};
|
|
1207
|
+
const morphId = `${cssVarName.replace(/^--/, "")}-morph`, morphBlendMode = resolveGradientMorphBlendMode(
|
|
1208
|
+
(_a = options == null ? void 0 : options.morph) == null ? void 0 : _a.blendMode
|
|
1209
|
+
), morphOptions = {
|
|
1210
|
+
...options == null ? void 0 : options.morph,
|
|
1211
|
+
id: ((_b = options == null ? void 0 : options.morph) == null ? void 0 : _b.id) ?? morphId
|
|
1212
|
+
};
|
|
1213
|
+
return {
|
|
1214
|
+
boxShadow: {
|
|
1215
|
+
cssVar: `${cssVarName}-shadow`,
|
|
1216
|
+
value: toGradientBoxShadow(model, (options == null ? void 0 : options.shadow) ?? (preset == null ? void 0 : preset.shadow))
|
|
1217
|
+
},
|
|
1218
|
+
dropShadow: {
|
|
1219
|
+
cssVar: `${cssVarName}-drop-shadow`,
|
|
1220
|
+
value: toGradientDropShadow(
|
|
1221
|
+
model,
|
|
1222
|
+
(options == null ? void 0 : options.dropShadow) ?? (preset == null ? void 0 : preset.dropShadow)
|
|
1223
|
+
)
|
|
1224
|
+
},
|
|
1225
|
+
morph: {
|
|
1226
|
+
blendMode: morphBlendMode,
|
|
1227
|
+
blendModeCssVar: `${cssVarName}-morph-blend-mode`,
|
|
1228
|
+
cssVar: `${cssVarName}-morph`,
|
|
1229
|
+
svg: toGradientMorphFilterMarkup(morphOptions),
|
|
1230
|
+
value: toGradientMorphFilter(morphOptions)
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
1233
|
+
}, createTokenAnimationEntry = (name, cssVarName, preset, options) => {
|
|
1234
|
+
var _a;
|
|
1235
|
+
const animationOptions = {
|
|
1236
|
+
...preset == null ? void 0 : preset.animation,
|
|
1237
|
+
...options,
|
|
1238
|
+
name: `g-gradient-${name}-${(options == null ? void 0 : options.preset) ?? ((_a = preset == null ? void 0 : preset.animation) == null ? void 0 : _a.preset) ?? "shift"}`,
|
|
1239
|
+
selector: `.g-gradient-${name}`
|
|
1240
|
+
};
|
|
1241
|
+
return {
|
|
1242
|
+
css: toGradientAnimationCSS(animationOptions),
|
|
1243
|
+
cssVar: `${cssVarName}-animation`,
|
|
1244
|
+
keyframes: toGradientAnimationKeyframes(animationOptions),
|
|
1245
|
+
name: animationOptions.name,
|
|
1246
|
+
value: toGradientAnimationValue(animationOptions)
|
|
1247
|
+
};
|
|
1248
|
+
}, createGradientPreset = (seed, recipe = "glare", options = {}) => {
|
|
1249
|
+
const registry = options.registry ?? gradientPresets, name = toTokenName(recipe), cssVarName = toCssVar(options.prefix ?? "--g-gradient", name), preset = resolveTokenPreset(recipe, registry), seedColor = createPalette(seed)[500], gradient = createTokenGradientEntry(
|
|
1250
|
+
seedColor,
|
|
1251
|
+
recipe,
|
|
1252
|
+
cssVarName,
|
|
1253
|
+
options,
|
|
1254
|
+
registry
|
|
1255
|
+
), cssVars = {
|
|
1256
|
+
[cssVarName]: gradient.value
|
|
1257
|
+
}, effects = options.effects ? createTokenEffectEntry(gradient.model, cssVarName, preset, {
|
|
1258
|
+
dropShadow: options.dropShadow,
|
|
1259
|
+
morph: options.morph,
|
|
1260
|
+
shadow: options.shadow
|
|
1261
|
+
}) : void 0, animation = options.animations ? createTokenAnimationEntry(name, cssVarName, preset, options.animation) : void 0;
|
|
1262
|
+
return effects != null && effects.boxShadow && (cssVars[effects.boxShadow.cssVar] = effects.boxShadow.value), effects != null && effects.dropShadow && (cssVars[effects.dropShadow.cssVar] = effects.dropShadow.value), effects != null && effects.morph && (cssVars[effects.morph.cssVar] = effects.morph.value, cssVars[effects.morph.blendModeCssVar] = effects.morph.blendMode), animation && (cssVars[animation.cssVar] = animation.value), {
|
|
1263
|
+
animation,
|
|
1264
|
+
cssText: toCssText(cssVars),
|
|
1265
|
+
cssVars,
|
|
1266
|
+
description: preset == null ? void 0 : preset.description,
|
|
1267
|
+
effects,
|
|
1268
|
+
gradient,
|
|
1269
|
+
keyframes: (animation == null ? void 0 : animation.keyframes) ?? "",
|
|
1270
|
+
label: (preset == null ? void 0 : preset.label) ?? name,
|
|
1271
|
+
name
|
|
1272
|
+
};
|
|
1273
|
+
}, createGradientTokens = (seed, options = {}) => {
|
|
1274
|
+
const recipes = options.recipes ?? DEFAULT_TOKEN_RECIPES, gradients = {}, effects = {}, animations = {}, cssVars = {}, keyframes = [];
|
|
1275
|
+
for (const recipe of recipes) {
|
|
1276
|
+
const preset = createGradientPreset(seed, recipe, {
|
|
1277
|
+
animations: options.animations,
|
|
1278
|
+
effects: options.effects,
|
|
1279
|
+
morph: options.morph,
|
|
1280
|
+
prefix: options.prefix,
|
|
1281
|
+
registry: options.registry
|
|
1282
|
+
});
|
|
1283
|
+
gradients[preset.name] = preset.gradient, Object.assign(cssVars, preset.cssVars), preset.effects && (effects[preset.name] = preset.effects), preset.animation && (animations[preset.name] = preset.animation, keyframes.push(preset.animation.keyframes));
|
|
1284
|
+
}
|
|
1285
|
+
return {
|
|
1286
|
+
animations,
|
|
1287
|
+
cssText: toCssText(cssVars),
|
|
1288
|
+
cssVars,
|
|
1289
|
+
effects,
|
|
1290
|
+
gradients,
|
|
1291
|
+
keyframes: keyframes.join(`
|
|
1292
|
+
`)
|
|
1293
|
+
};
|
|
1294
|
+
}, createGradientMaterial = (seed, options = {}) => {
|
|
1295
|
+
var _a, _b;
|
|
1296
|
+
const cacheKey = getMaterialCacheKey(seed, options), cachedMaterial = getCachedMaterial(cacheKey);
|
|
1297
|
+
if (cachedMaterial) return cachedMaterial;
|
|
1298
|
+
const { className, id, recipe = "glare", ...presetOptions } = options, preset = createGradientPreset(seed, recipe, presetOptions), morphBlobs = preset.gradient.model && options.effects && options.morph ? createGradientMorphBlobs(preset.gradient.model, options.morph) : void 0, stableId = id ?? `g-gradient-${preset.name}-${hashString(
|
|
1299
|
+
stableSerialize({ options, seed })
|
|
1300
|
+
)}`, stableClassName = className ?? stableId, style = {
|
|
1301
|
+
backgroundImage: `var(${preset.gradient.cssVar})`
|
|
1302
|
+
};
|
|
1303
|
+
return (_a = preset.effects) != null && _a.boxShadow && (style.boxShadow = `var(${preset.effects.boxShadow.cssVar})`), (_b = preset.effects) != null && _b.dropShadow && (style.filter = `var(${preset.effects.dropShadow.cssVar})`), preset.animation && (style.animation = `var(${preset.animation.cssVar})`), setCachedMaterial(cacheKey, {
|
|
1304
|
+
animation: preset.animation,
|
|
1305
|
+
className: stableClassName,
|
|
1306
|
+
cssText: toScopedCssText(
|
|
1307
|
+
stableClassName,
|
|
1308
|
+
preset.cssVars,
|
|
1309
|
+
style,
|
|
1310
|
+
preset.keyframes
|
|
1311
|
+
),
|
|
1312
|
+
cssVars: preset.cssVars,
|
|
1313
|
+
effects: preset.effects,
|
|
1314
|
+
gradient: preset.gradient,
|
|
1315
|
+
id: stableId,
|
|
1316
|
+
keyframes: preset.keyframes,
|
|
1317
|
+
morphBlobs,
|
|
1318
|
+
preset,
|
|
1319
|
+
style
|
|
1320
|
+
});
|
|
1321
|
+
}, material = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1322
|
+
__proto__: null,
|
|
1323
|
+
clearGradientMaterialCache,
|
|
1324
|
+
createGradientMaterial,
|
|
1325
|
+
createGradientPreset,
|
|
1326
|
+
createGradientTokens,
|
|
1327
|
+
getGradientMaterialCacheStats,
|
|
1328
|
+
setGradientMaterialCacheLimit
|
|
1329
|
+
}, Symbol.toStringTag, { value: "Module" })), toChannels$1 = (color) => {
|
|
1330
|
+
const parsed = parseColor$1(color);
|
|
1331
|
+
if (!parsed)
|
|
1332
|
+
throw new Error(`Unsupported generated color: ${String(color)}`);
|
|
1333
|
+
return rgbToChannels$1(parsed);
|
|
1334
|
+
}, capitalize = (value) => `${value.charAt(0).toUpperCase()}${value.slice(1)}`, getOnTokenName = (name) => `on${capitalize(name)}`, kebabToCamelCase = (value) => value.replace(
|
|
1335
|
+
/-([a-z0-9])/g,
|
|
1336
|
+
(_, character) => character.toUpperCase()
|
|
1337
|
+
), addPaletteTokens = (colors, gradients, name, palettePair) => {
|
|
1338
|
+
const { colors: palette, onColors } = palettePair;
|
|
1339
|
+
for (const shade of COLOR_SHADES$1) {
|
|
1340
|
+
const color = palette[shade];
|
|
1341
|
+
colors[`${name}${shade}`] = toChannels$1(color), colors[`${getOnTokenName(name)}${shade}`] = toChannels$1(onColors[shade]), gradients[`${name}${shade}`] = createGradient$1(palette, { shade });
|
|
1342
|
+
}
|
|
1343
|
+
colors[name] = colors[`${name}500`], colors[getOnTokenName(name)] = colors[`${getOnTokenName(name)}500`], gradients[name] = gradients[`${name}500`];
|
|
1344
|
+
}, isColorDefinition = (value) => typeof value == "object" && value !== null && "color" in value, normalizeColorDefinition = (value) => isColorDefinition(value) ? value : { color: value }, addSingleColorTokens = (colors, gradients, name, definition) => {
|
|
1345
|
+
colors[name] = toChannels$1(definition.color), colors[getOnTokenName(name)] = toChannels$1(
|
|
1346
|
+
definition.onColor ?? getContrastingColor(definition.color)
|
|
1347
|
+
), definition.gradient !== !1 && (gradients[name] = definition.gradient ?? createGradientFromColor$1(definition.color));
|
|
1348
|
+
}, addCustomColorTokens = (colors, gradients, palettes, name, value) => {
|
|
1349
|
+
const normalizedName = kebabToCamelCase(camelToKebabCase(name)), definition = normalizeColorDefinition(value);
|
|
1350
|
+
if (definition.palette === !1) {
|
|
1351
|
+
addSingleColorTokens(colors, gradients, normalizedName, definition);
|
|
1352
|
+
return;
|
|
1353
|
+
}
|
|
1354
|
+
const palettePair = createPalettePair(definition.color);
|
|
1355
|
+
palettes[normalizedName] = palettePair, addPaletteTokens(colors, gradients, normalizedName, palettePair), definition.onColor && (colors[getOnTokenName(normalizedName)] = toChannels$1(definition.onColor)), definition.gradient && (gradients[normalizedName] = definition.gradient);
|
|
1356
|
+
}, createColorSystem = (seed, options = {}) => {
|
|
1357
|
+
const colors = {}, gradients = {}, palettes = {
|
|
1358
|
+
source: createPalettePair(seed)
|
|
1359
|
+
};
|
|
1360
|
+
for (const [name, colorSeed] of Object.entries(COLOR_SEEDS))
|
|
1361
|
+
palettes[name] = createPalettePair(colorSeed);
|
|
1362
|
+
for (const [name, palettePair] of Object.entries(palettes))
|
|
1363
|
+
addPaletteTokens(colors, gradients, name, palettePair);
|
|
1364
|
+
for (const [name, value] of Object.entries(options.colors ?? {}))
|
|
1365
|
+
addCustomColorTokens(colors, gradients, palettes, name, value);
|
|
1366
|
+
return gradients.main = createGradient$1(palettes.source.colors), gradients.error = createGradient$1(palettes.red.colors, { shade: 600 }), gradients.warning = createGradient$1(palettes.amber.colors, { shade: 600 }), gradients.success = createGradient$1(palettes.green.colors, { shade: 600 }), {
|
|
1367
|
+
colors,
|
|
1368
|
+
gradients,
|
|
1369
|
+
palettes
|
|
1370
|
+
};
|
|
1371
|
+
}, toChannels = (color) => {
|
|
1372
|
+
const parsed = parseColor$1(color);
|
|
1373
|
+
if (!parsed)
|
|
1374
|
+
throw new Error(`Unsupported generated color: ${String(color)}`);
|
|
1375
|
+
return rgbToChannels$1(parsed);
|
|
1376
|
+
}, schemeToTokens = (seed, mode) => {
|
|
1377
|
+
const scheme = themeFromSourceColor(argbFromHex(seed)).schemes[mode].toJSON();
|
|
1378
|
+
return Object.fromEntries(
|
|
1379
|
+
Object.entries(scheme).map(([name, argb]) => [
|
|
1380
|
+
name,
|
|
1381
|
+
toChannels(hexFromArgb(argb))
|
|
1382
|
+
])
|
|
1383
|
+
);
|
|
1384
|
+
}, createSemanticTokens = (seed, mode) => {
|
|
1385
|
+
const tokens = schemeToTokens(seed, mode), warning = schemeToTokens(COLOR_SEEDS.amber, mode), success = schemeToTokens(COLOR_SEEDS.green, mode);
|
|
1386
|
+
return {
|
|
1387
|
+
...tokens,
|
|
1388
|
+
warning: warning.primary,
|
|
1389
|
+
onWarning: warning.onPrimary,
|
|
1390
|
+
warningContainer: warning.primaryContainer,
|
|
1391
|
+
onWarningContainer: warning.onPrimaryContainer,
|
|
1392
|
+
success: success.primary,
|
|
1393
|
+
onSuccess: success.onPrimary,
|
|
1394
|
+
successContainer: success.primaryContainer,
|
|
1395
|
+
onSuccessContainer: success.onPrimaryContainer
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
export {
|
|
1399
|
+
createSemanticTokens as a,
|
|
1400
|
+
core as b,
|
|
1401
|
+
createColorSystem as c,
|
|
1402
|
+
index$1 as d,
|
|
1403
|
+
index as e,
|
|
1404
|
+
index$2 as i,
|
|
1405
|
+
material as m
|
|
1406
|
+
};
|