@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,202 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, computed, openBlock, createBlock, mergeProps, withCtx, resolveDynamicComponent, unref, createElementVNode, normalizeClass, createElementBlock, Fragment, renderList, normalizeStyle, createCommentVNode, renderSlot, toDisplayString } from "vue";
|
|
2
|
+
import GGradient from "./components/GGradient.mjs";
|
|
3
|
+
import GIcon from "./components/GIcon.mjs";
|
|
4
|
+
import { m as makeMaterialSurfaceProps, u as useMaterialSurface } from "./materialSurface-DKWanYUC.js";
|
|
5
|
+
import { m as makeSizeProps, u as useSize } from "./size-C-WH-uPa.js";
|
|
6
|
+
import { m as makeTagNameProps, a as useTagName } from "./tagName-D8HI-Yqc.js";
|
|
7
|
+
import { m as makeDisabledProps } from "./disabled-CAV056h6.js";
|
|
8
|
+
import { m as makeSurfaceTextureProps } from "./surface-i-1vm2j3.js";
|
|
9
|
+
import { p as propsFactory } from "./propsFactory-FM5RGbLN.js";
|
|
10
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-B--vMWp3.js";
|
|
11
|
+
const makeAvatarProps = propsFactory({
|
|
12
|
+
...makeMaterialSurfaceProps({
|
|
13
|
+
borderRadius: void 0,
|
|
14
|
+
borderWidth: void 0,
|
|
15
|
+
color: "primary",
|
|
16
|
+
placement: "center"
|
|
17
|
+
}),
|
|
18
|
+
...makeSurfaceTextureProps(),
|
|
19
|
+
...makeSizeProps(),
|
|
20
|
+
...makeDisabledProps(),
|
|
21
|
+
...makeTagNameProps(),
|
|
22
|
+
src: String,
|
|
23
|
+
image: String,
|
|
24
|
+
alt: String,
|
|
25
|
+
name: String,
|
|
26
|
+
text: String,
|
|
27
|
+
icon: String,
|
|
28
|
+
hover: Boolean,
|
|
29
|
+
variant: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "tonal"
|
|
32
|
+
},
|
|
33
|
+
shape: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "circle"
|
|
36
|
+
},
|
|
37
|
+
color: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "primary"
|
|
40
|
+
},
|
|
41
|
+
state: String
|
|
42
|
+
}), makeAvatarGroupProps = propsFactory({
|
|
43
|
+
items: {
|
|
44
|
+
type: Array,
|
|
45
|
+
default: () => []
|
|
46
|
+
},
|
|
47
|
+
max: Number,
|
|
48
|
+
total: Number,
|
|
49
|
+
size: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: "m"
|
|
52
|
+
},
|
|
53
|
+
shape: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: "circle"
|
|
56
|
+
},
|
|
57
|
+
variant: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "tonal"
|
|
60
|
+
},
|
|
61
|
+
color: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: "primary"
|
|
64
|
+
},
|
|
65
|
+
overflowColor: String,
|
|
66
|
+
overlap: {
|
|
67
|
+
type: [Number, String],
|
|
68
|
+
default: void 0
|
|
69
|
+
},
|
|
70
|
+
stacked: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: !0
|
|
73
|
+
},
|
|
74
|
+
reverse: Boolean,
|
|
75
|
+
hover: Boolean,
|
|
76
|
+
ariaLabel: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "Avatar group"
|
|
79
|
+
}
|
|
80
|
+
}), _hoisted_1 = ["src", "alt"], _hoisted_2 = {
|
|
81
|
+
key: 2,
|
|
82
|
+
class: "g-avatar__text"
|
|
83
|
+
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
|
+
inheritAttrs: !1,
|
|
85
|
+
__name: "GAvatar",
|
|
86
|
+
props: makeAvatarProps(),
|
|
87
|
+
emits: ["click"],
|
|
88
|
+
setup(__props, { emit: __emit }) {
|
|
89
|
+
const attrs = useAttrs(), emit = __emit, props = __props, sizeClass = useSize(props, "g-avatar"), { tagName, tagAttrs } = useTagName(props, "span"), isActionable = computed(
|
|
90
|
+
() => !props.disabled && (props.href !== void 0 || tagName.value === "button")
|
|
91
|
+
), hasHoverLift = computed(
|
|
92
|
+
() => !props.disabled && (isActionable.value || props.hover || props.shadow || props.dropShadow)
|
|
93
|
+
), resolvedImage = computed(() => props.src ?? props.image), resolvedText = computed(() => props.text ? props.text : props.name ? props.name.trim().split(/\s+/).slice(0, 2).map((part) => part[0]).join("").toUpperCase() : ""), accessibleLabel = computed(
|
|
94
|
+
() => props.alt ?? props.name ?? props.text ?? void 0
|
|
95
|
+
), computedRole = computed(
|
|
96
|
+
() => !resolvedImage.value && accessibleLabel.value ? "img" : void 0
|
|
97
|
+
), squircleRadiusBySize = {
|
|
98
|
+
s: 10,
|
|
99
|
+
m: 12,
|
|
100
|
+
l: 16,
|
|
101
|
+
xl: 20
|
|
102
|
+
}, toCssRadius = (value) => typeof value == "number" || /^\d+(\.\d+)?$/.test(value) ? `${value}px` : value, squircleRadius = computed(() => squircleRadiusBySize[props.size]), frameRadius = computed(() => props.borderRadius !== void 0 ? props.borderRadius : props.shape === "square" ? 0 : props.shape === "rounded" ? 12 : props.shape === "squircle" ? squircleRadius.value : 999), cssRadius = computed(() => props.borderRadius !== void 0 ? toCssRadius(props.borderRadius) : props.shape === "square" ? "0" : props.shape === "rounded" ? "12px" : props.shape === "squircle" ? `${squircleRadius.value}px` : "999px"), {
|
|
103
|
+
getMorphBlobStyle,
|
|
104
|
+
morphBlobs,
|
|
105
|
+
morphEnabled,
|
|
106
|
+
materialFrameProps,
|
|
107
|
+
surfaceStyles,
|
|
108
|
+
surfaceMaterialMorphBlobClasses,
|
|
109
|
+
surfaceMaterialMorphClasses,
|
|
110
|
+
surfaceOverlayClasses,
|
|
111
|
+
surfaceUnderlayClasses,
|
|
112
|
+
surfaceTextureClasses,
|
|
113
|
+
surfaceContentClasses
|
|
114
|
+
} = useMaterialSurface(props, "g-avatar", { kind: "action" }), resolvedBorderWidth = computed(
|
|
115
|
+
() => props.borderWidth ?? (props.glow || props.animateGlow || props.variant === "outlined" || props.variant === "glass" ? 1 : 0)
|
|
116
|
+
), avatarFrameProps = computed(() => ({
|
|
117
|
+
...materialFrameProps.value,
|
|
118
|
+
borderRadius: frameRadius.value,
|
|
119
|
+
borderWidth: props.shape === "squircle" ? 0 : materialFrameProps.value.borderWidth,
|
|
120
|
+
interactive: hasHoverLift.value,
|
|
121
|
+
rounded: !1
|
|
122
|
+
})), avatarStyles = computed(() => ({
|
|
123
|
+
"--g-avatar-radius": cssRadius.value,
|
|
124
|
+
"--g-avatar-squircle-radius": `${squircleRadius.value}px`,
|
|
125
|
+
"--g-avatar-border-width": toCssRadius(resolvedBorderWidth.value)
|
|
126
|
+
})), onClick = (event) => {
|
|
127
|
+
if (props.disabled) {
|
|
128
|
+
event.preventDefault(), event.stopPropagation();
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
emit("click", event);
|
|
132
|
+
};
|
|
133
|
+
return (_ctx, _cache) => (openBlock(), createBlock(GGradient, mergeProps({
|
|
134
|
+
class: "g-avatar__frame",
|
|
135
|
+
style: avatarStyles.value
|
|
136
|
+
}, avatarFrameProps.value), {
|
|
137
|
+
default: withCtx(() => [
|
|
138
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(tagName)), mergeProps({
|
|
139
|
+
class: ["g-avatar", [
|
|
140
|
+
unref(sizeClass),
|
|
141
|
+
`g-avatar_${props.variant}`,
|
|
142
|
+
`g-avatar_shape-${props.shape}`,
|
|
143
|
+
{
|
|
144
|
+
"g-avatar_disabled": props.disabled,
|
|
145
|
+
"g-avatar_actionable": isActionable.value,
|
|
146
|
+
"g-avatar_hoverable": hasHoverLift.value,
|
|
147
|
+
[`g-avatar_texture-${props.texture}`]: props.texture !== "none"
|
|
148
|
+
}
|
|
149
|
+
]],
|
|
150
|
+
style: [unref(surfaceStyles), avatarStyles.value],
|
|
151
|
+
role: computedRole.value,
|
|
152
|
+
"aria-label": computedRole.value ? accessibleLabel.value : void 0
|
|
153
|
+
}, { ...unref(tagAttrs), ...unref(attrs) }, { onClick }), {
|
|
154
|
+
default: withCtx(() => [
|
|
155
|
+
createElementVNode("span", {
|
|
156
|
+
class: normalizeClass(unref(surfaceUnderlayClasses))
|
|
157
|
+
}, null, 2),
|
|
158
|
+
unref(morphEnabled) ? (openBlock(), createElementBlock("span", {
|
|
159
|
+
key: 0,
|
|
160
|
+
class: normalizeClass(unref(surfaceMaterialMorphClasses)),
|
|
161
|
+
"aria-hidden": "true"
|
|
162
|
+
}, [
|
|
163
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(morphBlobs), (blob, index) => (openBlock(), createElementBlock("span", {
|
|
164
|
+
key: index,
|
|
165
|
+
class: normalizeClass(unref(surfaceMaterialMorphBlobClasses)),
|
|
166
|
+
style: normalizeStyle(unref(getMorphBlobStyle)(blob))
|
|
167
|
+
}, null, 6))), 128))
|
|
168
|
+
], 2)) : createCommentVNode("", !0),
|
|
169
|
+
createElementVNode("span", {
|
|
170
|
+
class: normalizeClass(unref(surfaceOverlayClasses))
|
|
171
|
+
}, null, 2),
|
|
172
|
+
createElementVNode("span", {
|
|
173
|
+
class: normalizeClass(unref(surfaceTextureClasses))
|
|
174
|
+
}, null, 2),
|
|
175
|
+
createElementVNode("span", {
|
|
176
|
+
class: normalizeClass(["g-avatar__content", unref(surfaceContentClasses)])
|
|
177
|
+
}, [
|
|
178
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
179
|
+
resolvedImage.value ? (openBlock(), createElementBlock("img", {
|
|
180
|
+
key: 0,
|
|
181
|
+
class: "g-avatar__image",
|
|
182
|
+
src: resolvedImage.value,
|
|
183
|
+
alt: props.alt ?? props.name ?? ""
|
|
184
|
+
}, null, 8, _hoisted_1)) : props.icon ? (openBlock(), createBlock(GIcon, {
|
|
185
|
+
key: 1,
|
|
186
|
+
class: "g-avatar__icon",
|
|
187
|
+
icon: props.icon
|
|
188
|
+
}, null, 8, ["icon"])) : resolvedText.value ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(resolvedText.value), 1)) : createCommentVNode("", !0)
|
|
189
|
+
], !0)
|
|
190
|
+
], 2)
|
|
191
|
+
]),
|
|
192
|
+
_: 3
|
|
193
|
+
}, 16, ["class", "style", "role", "aria-label"]))
|
|
194
|
+
]),
|
|
195
|
+
_: 3
|
|
196
|
+
}, 16, ["style"]));
|
|
197
|
+
}
|
|
198
|
+
}), GAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7aae19be"]]);
|
|
199
|
+
export {
|
|
200
|
+
GAvatar as G,
|
|
201
|
+
makeAvatarGroupProps as m
|
|
202
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const vue=require("vue"),components_GGradient=require("./components/GGradient.cjs"),components_GIcon=require("./components/GIcon.cjs"),materialSurface=require("./materialSurface-BZWqxSOo.cjs"),size=require("./size-BSjg5E6f.cjs"),tagName=require("./tagName-EmIHK0fg.cjs"),disabled=require("./disabled-B_bAKgaM.cjs"),surface=require("./surface-NFdB950M.cjs"),propsFactory=require("./propsFactory-DT6-QS4L.cjs"),_pluginVue_exportHelper=require("./_plugin-vue_export-helper-D_jf5u0r.cjs"),makeAvatarProps=propsFactory.propsFactory({...materialSurface.makeMaterialSurfaceProps({borderRadius:void 0,borderWidth:void 0,color:"primary",placement:"center"}),...surface.makeSurfaceTextureProps(),...size.makeSizeProps(),...disabled.makeDisabledProps(),...tagName.makeTagNameProps(),src:String,image:String,alt:String,name:String,text:String,icon:String,hover:Boolean,variant:{type:String,default:"tonal"},shape:{type:String,default:"circle"},color:{type:String,default:"primary"},state:String}),makeAvatarGroupProps=propsFactory.propsFactory({items:{type:Array,default:()=>[]},max:Number,total:Number,size:{type:String,default:"m"},shape:{type:String,default:"circle"},variant:{type:String,default:"tonal"},color:{type:String,default:"primary"},overflowColor:String,overlap:{type:[Number,String],default:void 0},stacked:{type:Boolean,default:!0},reverse:Boolean,hover:Boolean,ariaLabel:{type:String,default:"Avatar group"}}),_hoisted_1=["src","alt"],_hoisted_2={key:2,class:"g-avatar__text"},_sfc_main=vue.defineComponent({inheritAttrs:!1,__name:"GAvatar",props:makeAvatarProps(),emits:["click"],setup(__props,{emit:__emit}){const attrs=vue.useAttrs(),emit=__emit,props=__props,sizeClass=size.useSize(props,"g-avatar"),{tagName:tagName$1,tagAttrs}=tagName.useTagName(props,"span"),isActionable=vue.computed(()=>!props.disabled&&(props.href!==void 0||tagName$1.value==="button")),hasHoverLift=vue.computed(()=>!props.disabled&&(isActionable.value||props.hover||props.shadow||props.dropShadow)),resolvedImage=vue.computed(()=>props.src??props.image),resolvedText=vue.computed(()=>props.text?props.text:props.name?props.name.trim().split(/\s+/).slice(0,2).map(part=>part[0]).join("").toUpperCase():""),accessibleLabel=vue.computed(()=>props.alt??props.name??props.text??void 0),computedRole=vue.computed(()=>!resolvedImage.value&&accessibleLabel.value?"img":void 0),squircleRadiusBySize={s:10,m:12,l:16,xl:20},toCssRadius=value=>typeof value=="number"||/^\d+(\.\d+)?$/.test(value)?`${value}px`:value,squircleRadius=vue.computed(()=>squircleRadiusBySize[props.size]),frameRadius=vue.computed(()=>props.borderRadius!==void 0?props.borderRadius:props.shape==="square"?0:props.shape==="rounded"?12:props.shape==="squircle"?squircleRadius.value:999),cssRadius=vue.computed(()=>props.borderRadius!==void 0?toCssRadius(props.borderRadius):props.shape==="square"?"0":props.shape==="rounded"?"12px":props.shape==="squircle"?`${squircleRadius.value}px`:"999px"),{getMorphBlobStyle,morphBlobs,morphEnabled,materialFrameProps,surfaceStyles,surfaceMaterialMorphBlobClasses,surfaceMaterialMorphClasses,surfaceOverlayClasses,surfaceUnderlayClasses,surfaceTextureClasses,surfaceContentClasses}=materialSurface.useMaterialSurface(props,"g-avatar",{kind:"action"}),resolvedBorderWidth=vue.computed(()=>props.borderWidth??(props.glow||props.animateGlow||props.variant==="outlined"||props.variant==="glass"?1:0)),avatarFrameProps=vue.computed(()=>({...materialFrameProps.value,borderRadius:frameRadius.value,borderWidth:props.shape==="squircle"?0:materialFrameProps.value.borderWidth,interactive:hasHoverLift.value,rounded:!1})),avatarStyles=vue.computed(()=>({"--g-avatar-radius":cssRadius.value,"--g-avatar-squircle-radius":`${squircleRadius.value}px`,"--g-avatar-border-width":toCssRadius(resolvedBorderWidth.value)})),onClick=event=>{if(props.disabled){event.preventDefault(),event.stopPropagation();return}emit("click",event)};return(_ctx,_cache)=>(vue.openBlock(),vue.createBlock(components_GGradient.default,vue.mergeProps({class:"g-avatar__frame",style:avatarStyles.value},avatarFrameProps.value),{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(tagName$1)),vue.mergeProps({class:["g-avatar",[vue.unref(sizeClass),`g-avatar_${props.variant}`,`g-avatar_shape-${props.shape}`,{"g-avatar_disabled":props.disabled,"g-avatar_actionable":isActionable.value,"g-avatar_hoverable":hasHoverLift.value,[`g-avatar_texture-${props.texture}`]:props.texture!=="none"}]],style:[vue.unref(surfaceStyles),avatarStyles.value],role:computedRole.value,"aria-label":computedRole.value?accessibleLabel.value:void 0},{...vue.unref(tagAttrs),...vue.unref(attrs)},{onClick}),{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass(vue.unref(surfaceUnderlayClasses))},null,2),vue.unref(morphEnabled)?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:vue.normalizeClass(vue.unref(surfaceMaterialMorphClasses)),"aria-hidden":"true"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(morphBlobs),(blob,index)=>(vue.openBlock(),vue.createElementBlock("span",{key:index,class:vue.normalizeClass(vue.unref(surfaceMaterialMorphBlobClasses)),style:vue.normalizeStyle(vue.unref(getMorphBlobStyle)(blob))},null,6))),128))],2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass(vue.unref(surfaceOverlayClasses))},null,2),vue.createElementVNode("span",{class:vue.normalizeClass(vue.unref(surfaceTextureClasses))},null,2),vue.createElementVNode("span",{class:vue.normalizeClass(["g-avatar__content",vue.unref(surfaceContentClasses)])},[vue.renderSlot(_ctx.$slots,"default",{},()=>[resolvedImage.value?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"g-avatar__image",src:resolvedImage.value,alt:props.alt??props.name??""},null,8,_hoisted_1)):props.icon?(vue.openBlock(),vue.createBlock(components_GIcon.default,{key:1,class:"g-avatar__icon",icon:props.icon},null,8,["icon"])):resolvedText.value?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2,vue.toDisplayString(resolvedText.value),1)):vue.createCommentVNode("",!0)],!0)],2)]),_:3},16,["class","style","role","aria-label"]))]),_:3},16,["style"]))}}),GAvatar=_pluginVue_exportHelper._export_sfc(_sfc_main,[["__scopeId","data-v-7aae19be"]]);exports.GAvatar=GAvatar;exports.makeAvatarGroupProps=makeAvatarGroupProps;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { defineComponent, useSlots, useAttrs, computed, resolveDirective, withDirectives, openBlock, createBlock, mergeProps, unref, withCtx, resolveDynamicComponent, createElementBlock, normalizeClass, createCommentVNode, Fragment, renderList, normalizeStyle, createElementVNode, renderSlot, createVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import GGradient from "./components/GGradient.mjs";
|
|
3
|
+
import { m as makeActionSurfaceProps, u as useActionSurface, G as GIcon } from "./actionSurface-BkFPXb-Z.js";
|
|
4
|
+
import { m as makeGradientProps } from "./gradient-Cesrzb2-.js";
|
|
5
|
+
import { m as makePLAProps } from "./PLA-DePtRzKl.js";
|
|
6
|
+
import { m as makeTagNameProps, a as useTagName } from "./tagName-D8HI-Yqc.js";
|
|
7
|
+
import { p as propsFactory } from "./propsFactory-FM5RGbLN.js";
|
|
8
|
+
import { u as usePx } from "./px-B-cyF02Z.js";
|
|
9
|
+
const makeButtonProps = propsFactory({
|
|
10
|
+
...makeActionSurfaceProps(),
|
|
11
|
+
...makePLAProps(),
|
|
12
|
+
...makeGradientProps(),
|
|
13
|
+
...makeTagNameProps(),
|
|
14
|
+
isIconButton: Boolean,
|
|
15
|
+
iconButton: String,
|
|
16
|
+
ripple: {
|
|
17
|
+
type: [Boolean, String, Object],
|
|
18
|
+
default: !0
|
|
19
|
+
}
|
|
20
|
+
}), _hoisted_1 = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "g-button__prepend"
|
|
23
|
+
}, _hoisted_2 = { class: "g-button__label" }, _hoisted_3 = {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "g-button__append"
|
|
26
|
+
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
|
+
inheritAttrs: !1,
|
|
28
|
+
__name: "GButton",
|
|
29
|
+
props: makeButtonProps({
|
|
30
|
+
borderWidth: void 0,
|
|
31
|
+
borderRadius: 4,
|
|
32
|
+
placement: "center"
|
|
33
|
+
}),
|
|
34
|
+
setup(__props) {
|
|
35
|
+
const slots = useSlots(), attrs = useAttrs(), props = __props, computedBorderRadius = usePx(props.borderRadius), resolvedBorderWidth = computed(
|
|
36
|
+
() => props.borderWidth ?? (props.variant === "glass" || props.glow || props.animateGlow ? 1 : 0)
|
|
37
|
+
), computedRipple = computed(() => props.disabled || props.ripple === !1 ? !1 : typeof props.ripple == "object" ? {
|
|
38
|
+
...props.ripple,
|
|
39
|
+
disabled: props.ripple.disabled || props.disabled
|
|
40
|
+
} : props.ripple), { tagName, tagAttrs } = useTagName(props, "button"), {
|
|
41
|
+
actionSurfaceClasses,
|
|
42
|
+
resolvedColor,
|
|
43
|
+
resolvedState,
|
|
44
|
+
surfaceStyles,
|
|
45
|
+
surfaceMaterialMorphBlobClasses,
|
|
46
|
+
surfaceMaterialMorphClasses,
|
|
47
|
+
surfaceOverlayClasses,
|
|
48
|
+
surfaceUnderlayClasses,
|
|
49
|
+
surfaceTextureClasses,
|
|
50
|
+
surfaceContentClasses,
|
|
51
|
+
hasSurfaceOverlay,
|
|
52
|
+
hasSurfaceTexture,
|
|
53
|
+
hasSurfaceUnderlay,
|
|
54
|
+
morphBlobs,
|
|
55
|
+
morphEnabled,
|
|
56
|
+
getMorphBlobStyle
|
|
57
|
+
} = useActionSurface(props, "g-button");
|
|
58
|
+
return (_ctx, _cache) => {
|
|
59
|
+
const _directive_ripple = resolveDirective("ripple"), _directive_gradient_icon = resolveDirective("gradient-icon");
|
|
60
|
+
return withDirectives((openBlock(), createBlock(GGradient, mergeProps({ class: "g-gradient" }, {
|
|
61
|
+
...props,
|
|
62
|
+
color: unref(resolvedColor),
|
|
63
|
+
state: unref(resolvedState)
|
|
64
|
+
}, { "border-width": resolvedBorderWidth.value }), {
|
|
65
|
+
default: withCtx(() => [
|
|
66
|
+
withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(tagName)), mergeProps({
|
|
67
|
+
class: ["g-button", [
|
|
68
|
+
unref(actionSurfaceClasses),
|
|
69
|
+
{
|
|
70
|
+
"g-button_icon": _ctx.iconButton || _ctx.isIconButton
|
|
71
|
+
}
|
|
72
|
+
]],
|
|
73
|
+
style: [
|
|
74
|
+
unref(surfaceStyles),
|
|
75
|
+
{ "--g-button-radius": unref(computedBorderRadius) }
|
|
76
|
+
]
|
|
77
|
+
}, { ...unref(tagAttrs), ...unref(attrs) }), {
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
unref(hasSurfaceUnderlay) ? (openBlock(), createElementBlock("span", {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: normalizeClass(unref(surfaceUnderlayClasses))
|
|
82
|
+
}, null, 2)) : createCommentVNode("", !0),
|
|
83
|
+
unref(morphEnabled) ? (openBlock(), createElementBlock("span", {
|
|
84
|
+
key: 1,
|
|
85
|
+
class: normalizeClass(unref(surfaceMaterialMorphClasses)),
|
|
86
|
+
"aria-hidden": "true"
|
|
87
|
+
}, [
|
|
88
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(morphBlobs), (blob, index) => (openBlock(), createElementBlock("span", {
|
|
89
|
+
key: index,
|
|
90
|
+
class: normalizeClass(unref(surfaceMaterialMorphBlobClasses)),
|
|
91
|
+
style: normalizeStyle(unref(getMorphBlobStyle)(blob))
|
|
92
|
+
}, null, 6))), 128))
|
|
93
|
+
], 2)) : createCommentVNode("", !0),
|
|
94
|
+
unref(hasSurfaceOverlay) ? (openBlock(), createElementBlock("span", {
|
|
95
|
+
key: 2,
|
|
96
|
+
class: normalizeClass(unref(surfaceOverlayClasses))
|
|
97
|
+
}, null, 2)) : createCommentVNode("", !0),
|
|
98
|
+
unref(hasSurfaceTexture) ? (openBlock(), createElementBlock("span", {
|
|
99
|
+
key: 3,
|
|
100
|
+
class: normalizeClass(unref(surfaceTextureClasses))
|
|
101
|
+
}, null, 2)) : createCommentVNode("", !0),
|
|
102
|
+
createElementVNode("span", {
|
|
103
|
+
class: normalizeClass(["g-button__content", unref(surfaceContentClasses)])
|
|
104
|
+
}, [
|
|
105
|
+
(slots.prepend || _ctx.prepend) && !_ctx.iconButton ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
106
|
+
renderSlot(_ctx.$slots, "prepend", {}, () => [
|
|
107
|
+
createVNode(GIcon, { icon: _ctx.prepend }, null, 8, ["icon"])
|
|
108
|
+
])
|
|
109
|
+
])) : createCommentVNode("", !0),
|
|
110
|
+
createElementVNode("span", _hoisted_2, [
|
|
111
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
112
|
+
_ctx.iconButton ? _ctx.iconButton ? (openBlock(), createBlock(GIcon, {
|
|
113
|
+
key: 1,
|
|
114
|
+
icon: _ctx.iconButton
|
|
115
|
+
}, null, 8, ["icon"])) : createCommentVNode("", !0) : (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
116
|
+
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
117
|
+
], 64))
|
|
118
|
+
])
|
|
119
|
+
]),
|
|
120
|
+
(slots.append || _ctx.append) && !_ctx.iconButton ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
121
|
+
renderSlot(_ctx.$slots, "append", {}, () => [
|
|
122
|
+
createVNode(GIcon, { icon: _ctx.append }, null, 8, ["icon"])
|
|
123
|
+
])
|
|
124
|
+
])) : createCommentVNode("", !0)
|
|
125
|
+
], 2)
|
|
126
|
+
]),
|
|
127
|
+
_: 3
|
|
128
|
+
}, 16, ["class", "style"])), [
|
|
129
|
+
[_directive_ripple, computedRipple.value]
|
|
130
|
+
])
|
|
131
|
+
]),
|
|
132
|
+
_: 3
|
|
133
|
+
}, 16, ["border-width"])), [
|
|
134
|
+
[_directive_gradient_icon]
|
|
135
|
+
]);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export {
|
|
140
|
+
_sfc_main as _
|
|
141
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const vue=require("vue"),components_GGradient=require("./components/GGradient.cjs"),actionSurface=require("./actionSurface-Db2TksPm.cjs"),gradient=require("./gradient-Bf_C3oqp.cjs"),PLA=require("./PLA-B2QljfgE.cjs"),tagName=require("./tagName-EmIHK0fg.cjs"),propsFactory=require("./propsFactory-DT6-QS4L.cjs"),px=require("./px-CVkec5Jf.cjs"),makeButtonProps=propsFactory.propsFactory({...actionSurface.makeActionSurfaceProps(),...PLA.makePLAProps(),...gradient.makeGradientProps(),...tagName.makeTagNameProps(),isIconButton:Boolean,iconButton:String,ripple:{type:[Boolean,String,Object],default:!0}}),_hoisted_1={key:0,class:"g-button__prepend"},_hoisted_2={class:"g-button__label"},_hoisted_3={key:1,class:"g-button__append"},_sfc_main=vue.defineComponent({inheritAttrs:!1,__name:"GButton",props:makeButtonProps({borderWidth:void 0,borderRadius:4,placement:"center"}),setup(__props){const slots=vue.useSlots(),attrs=vue.useAttrs(),props=__props,computedBorderRadius=px.usePx(props.borderRadius),resolvedBorderWidth=vue.computed(()=>props.borderWidth??(props.variant==="glass"||props.glow||props.animateGlow?1:0)),computedRipple=vue.computed(()=>props.disabled||props.ripple===!1?!1:typeof props.ripple=="object"?{...props.ripple,disabled:props.ripple.disabled||props.disabled}:props.ripple),{tagName:tagName$1,tagAttrs}=tagName.useTagName(props,"button"),{actionSurfaceClasses,resolvedColor,resolvedState,surfaceStyles,surfaceMaterialMorphBlobClasses,surfaceMaterialMorphClasses,surfaceOverlayClasses,surfaceUnderlayClasses,surfaceTextureClasses,surfaceContentClasses,hasSurfaceOverlay,hasSurfaceTexture,hasSurfaceUnderlay,morphBlobs,morphEnabled,getMorphBlobStyle}=actionSurface.useActionSurface(props,"g-button");return(_ctx,_cache)=>{const _directive_ripple=vue.resolveDirective("ripple"),_directive_gradient_icon=vue.resolveDirective("gradient-icon");return vue.withDirectives((vue.openBlock(),vue.createBlock(components_GGradient.default,vue.mergeProps({class:"g-gradient"},{...props,color:vue.unref(resolvedColor),state:vue.unref(resolvedState)},{"border-width":resolvedBorderWidth.value}),{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(tagName$1)),vue.mergeProps({class:["g-button",[vue.unref(actionSurfaceClasses),{"g-button_icon":_ctx.iconButton||_ctx.isIconButton}]],style:[vue.unref(surfaceStyles),{"--g-button-radius":vue.unref(computedBorderRadius)}]},{...vue.unref(tagAttrs),...vue.unref(attrs)}),{default:vue.withCtx(()=>[vue.unref(hasSurfaceUnderlay)?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:vue.normalizeClass(vue.unref(surfaceUnderlayClasses))},null,2)):vue.createCommentVNode("",!0),vue.unref(morphEnabled)?(vue.openBlock(),vue.createElementBlock("span",{key:1,class:vue.normalizeClass(vue.unref(surfaceMaterialMorphClasses)),"aria-hidden":"true"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(morphBlobs),(blob,index)=>(vue.openBlock(),vue.createElementBlock("span",{key:index,class:vue.normalizeClass(vue.unref(surfaceMaterialMorphBlobClasses)),style:vue.normalizeStyle(vue.unref(getMorphBlobStyle)(blob))},null,6))),128))],2)):vue.createCommentVNode("",!0),vue.unref(hasSurfaceOverlay)?(vue.openBlock(),vue.createElementBlock("span",{key:2,class:vue.normalizeClass(vue.unref(surfaceOverlayClasses))},null,2)):vue.createCommentVNode("",!0),vue.unref(hasSurfaceTexture)?(vue.openBlock(),vue.createElementBlock("span",{key:3,class:vue.normalizeClass(vue.unref(surfaceTextureClasses))},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass(["g-button__content",vue.unref(surfaceContentClasses)])},[(slots.prepend||_ctx.prepend)&&!_ctx.iconButton?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1,[vue.renderSlot(_ctx.$slots,"prepend",{},()=>[vue.createVNode(actionSurface.GIcon,{icon:_ctx.prepend},null,8,["icon"])])])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_2,[vue.renderSlot(_ctx.$slots,"default",{},()=>[_ctx.iconButton?_ctx.iconButton?(vue.openBlock(),vue.createBlock(actionSurface.GIcon,{key:1,icon:_ctx.iconButton},null,8,["icon"])):vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(_ctx.label),1)],64))])]),(slots.append||_ctx.append)&&!_ctx.iconButton?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3,[vue.renderSlot(_ctx.$slots,"append",{},()=>[vue.createVNode(actionSurface.GIcon,{icon:_ctx.append},null,8,["icon"])])])):vue.createCommentVNode("",!0)],2)]),_:3},16,["class","style"])),[[_directive_ripple,computedRipple.value]])]),_:3},16,["border-width"])),[[_directive_gradient_icon]])}}});exports._sfc_main=_sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const vue=require("vue"),control=require("./control-C5Ws5lp3.cjs"),selectionController=require("./selectionController-D_SzzLi7.cjs"),createComponentId=require("./createComponentId-CK5eUecc.cjs"),GCheckIndicator=require("./GCheckIndicator-C-adGOcb.cjs"),disabled=require("./disabled-B_bAKgaM.cjs"),size=require("./size-BSjg5E6f.cjs"),state=require("./state-CUskk7oG.cjs"),surfaceColor=require("./surfaceColor-BlDoAKoV.cjs"),_pluginVue_exportHelper=require("./_plugin-vue_export-helper-D_jf5u0r.cjs");function useCheckOptionGroup(props,emit,options){const generatedName=createComponentId.createComponentId(options.namePrefix),groupName=vue.computed(()=>props.name??generatedName),{focused,$v,disabled:disabled2,computedMessage,hasValidationError,onFocus,onBlur,onInputValidation}=control.useFormControl({modelValue:vue.computed(()=>props.modelValue),rules:vue.computed(()=>props.rules),message:vue.computed(()=>props.message),disabled:vue.computed(()=>props.disabled)}),valueComparator=vue.computed(()=>props.valueComparator),{items,isItemSelected,getNextItemValue,selectItem}=selectionController.useSelectionController({items:vue.toRef(props,"options"),modelValue:vue.computed(()=>props.modelValue),labelKey:vue.toRef(props,"labelKey"),valueKey:vue.toRef(props,"valueKey"),returnObject:vue.toRef(props,"returnObject"),multiple:vue.computed(()=>options.multiple),valueComparator},(_event,value)=>{emit.updateModelValue(value)}),{handleGroupFocusIn,handleGroupFocusOut,handlePointerDown,handlePointerEnd}=GCheckIndicator.useCheckGroupFocus({onFocusWithin:onFocus,onBlurWithin:onBlur,emitters:{focus:emit.focus,blur:emit.blur}}),groupProps=vue.computed(()=>({label:props.label,message:computedMessage.value,color:props.color,disabled:disabled2.value,size:props.size,state:hasValidationError.value?"error":props.state,indicatorView:props.indicatorView,vertical:props.vertical,focused:focused.value}));function selectOption(item){selectItem(item),onInputValidation()}return{groupName,groupProps,disabled:disabled2,items,isItemSelected,getNextItemValue,selectItem:selectOption,handleGroupFocusIn,handleGroupFocusOut,handlePointerDown,handlePointerEnd,$v}}const _hoisted_1=["data-g-validation-error","aria-invalid"],_hoisted_2={key:0,class:"g-check-group__label"},_hoisted_3={class:"g-check-group__content"},_hoisted_4={class:"g-check-group__items"},_hoisted_5={key:0,class:"g-check-group__message"},_sfc_main=vue.defineComponent({__name:"GCheckGroup",props:GCheckIndicator.makeCheckGroupBaseProps(),emits:["focusin","focusout","pointerdown","pointerup","pointercancel"],setup(__props,{emit:__emit}){const props=__props,slots=vue.useSlots(),emit=__emit,sizeClass=size.useSize(props,"g-check-group"),disabledClass=disabled.useDisabled(props,"g-check-group"),focusedClass=GCheckIndicator.useFocused(props,"g-check-group"),stateClass=state.useState(props,"g-check-group"),{colorStyles}=surfaceColor.useSurfaceColor(props);return(_ctx,_cache)=>(vue.openBlock(),vue.createElementBlock("fieldset",{class:vue.normalizeClass(["g-check-group",[vue.unref(sizeClass),vue.unref(disabledClass),vue.unref(focusedClass),vue.unref(stateClass),{"g-check-group_vertical":props.vertical}]]),"data-g-validation-error":props.state==="error"?"true":void 0,"aria-invalid":props.state==="error"||void 0,style:vue.normalizeStyle(vue.unref(colorStyles)),onFocusin:_cache[0]||(_cache[0]=$event=>emit("focusin",$event)),onFocusout:_cache[1]||(_cache[1]=$event=>emit("focusout",$event)),onPointerdown:_cache[2]||(_cache[2]=$event=>emit("pointerdown",$event)),onPointerup:_cache[3]||(_cache[3]=$event=>emit("pointerup",$event)),onPointercancel:_cache[4]||(_cache[4]=$event=>emit("pointercancel",$event))},[props.label||slots.label?(vue.openBlock(),vue.createElementBlock("legend",_hoisted_2,[vue.renderSlot(_ctx.$slots,"label",{},()=>[vue.createTextVNode(vue.toDisplayString(props.label),1)],!0)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3,[vue.createElementVNode("div",_hoisted_4,[vue.renderSlot(_ctx.$slots,"default",{},void 0,!0)]),props.message||slots.message?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5,[vue.renderSlot(_ctx.$slots,"message",{},()=>[vue.createTextVNode(vue.toDisplayString(props.message),1)],!0)])):vue.createCommentVNode("",!0)])],46,_hoisted_1))}}),GCheckGroup=_pluginVue_exportHelper._export_sfc(_sfc_main,[["__scopeId","data-v-aa5b29f3"]]);exports.GCheckGroup=GCheckGroup;exports.useCheckOptionGroup=useCheckOptionGroup;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { computed, toRef, defineComponent, useSlots, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
|
+
import { u as useFormControl } from "./control-B3T1H83D.js";
|
|
3
|
+
import { u as useSelectionController } from "./selectionController-Cq7OffKP.js";
|
|
4
|
+
import { c as createComponentId } from "./createComponentId-CrqdDHC3.js";
|
|
5
|
+
import { b as useCheckGroupFocus, c as useFocused, d as makeCheckGroupBaseProps } from "./GCheckIndicator-yvipPkWi.js";
|
|
6
|
+
import { u as useDisabled } from "./disabled-CAV056h6.js";
|
|
7
|
+
import { u as useSize } from "./size-C-WH-uPa.js";
|
|
8
|
+
import { u as useState } from "./state-zMDQLwyB.js";
|
|
9
|
+
import { u as useSurfaceColor } from "./surfaceColor-Cic675ry.js";
|
|
10
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper-B--vMWp3.js";
|
|
11
|
+
function useCheckOptionGroup(props, emit, options) {
|
|
12
|
+
const generatedName = createComponentId(options.namePrefix), groupName = computed(() => props.name ?? generatedName), {
|
|
13
|
+
focused,
|
|
14
|
+
$v,
|
|
15
|
+
disabled,
|
|
16
|
+
computedMessage,
|
|
17
|
+
hasValidationError,
|
|
18
|
+
onFocus,
|
|
19
|
+
onBlur,
|
|
20
|
+
onInputValidation
|
|
21
|
+
} = useFormControl({
|
|
22
|
+
modelValue: computed(() => props.modelValue),
|
|
23
|
+
rules: computed(() => props.rules),
|
|
24
|
+
message: computed(() => props.message),
|
|
25
|
+
disabled: computed(() => props.disabled)
|
|
26
|
+
}), valueComparator = computed(() => props.valueComparator), { items, isItemSelected, getNextItemValue, selectItem } = useSelectionController(
|
|
27
|
+
{
|
|
28
|
+
items: toRef(props, "options"),
|
|
29
|
+
modelValue: computed(() => props.modelValue),
|
|
30
|
+
labelKey: toRef(props, "labelKey"),
|
|
31
|
+
valueKey: toRef(props, "valueKey"),
|
|
32
|
+
returnObject: toRef(props, "returnObject"),
|
|
33
|
+
multiple: computed(() => options.multiple),
|
|
34
|
+
valueComparator
|
|
35
|
+
},
|
|
36
|
+
(_event, value) => {
|
|
37
|
+
emit.updateModelValue(value);
|
|
38
|
+
}
|
|
39
|
+
), {
|
|
40
|
+
handleGroupFocusIn,
|
|
41
|
+
handleGroupFocusOut,
|
|
42
|
+
handlePointerDown,
|
|
43
|
+
handlePointerEnd
|
|
44
|
+
} = useCheckGroupFocus({
|
|
45
|
+
onFocusWithin: onFocus,
|
|
46
|
+
onBlurWithin: onBlur,
|
|
47
|
+
emitters: {
|
|
48
|
+
focus: emit.focus,
|
|
49
|
+
blur: emit.blur
|
|
50
|
+
}
|
|
51
|
+
}), groupProps = computed(() => ({
|
|
52
|
+
label: props.label,
|
|
53
|
+
message: computedMessage.value,
|
|
54
|
+
color: props.color,
|
|
55
|
+
disabled: disabled.value,
|
|
56
|
+
size: props.size,
|
|
57
|
+
state: hasValidationError.value ? "error" : props.state,
|
|
58
|
+
indicatorView: props.indicatorView,
|
|
59
|
+
vertical: props.vertical,
|
|
60
|
+
focused: focused.value
|
|
61
|
+
}));
|
|
62
|
+
function selectOption(item) {
|
|
63
|
+
selectItem(item), onInputValidation();
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
groupName,
|
|
67
|
+
groupProps,
|
|
68
|
+
disabled,
|
|
69
|
+
items,
|
|
70
|
+
isItemSelected,
|
|
71
|
+
getNextItemValue,
|
|
72
|
+
selectItem: selectOption,
|
|
73
|
+
handleGroupFocusIn,
|
|
74
|
+
handleGroupFocusOut,
|
|
75
|
+
handlePointerDown,
|
|
76
|
+
handlePointerEnd,
|
|
77
|
+
$v
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
const _hoisted_1 = ["data-g-validation-error", "aria-invalid"], _hoisted_2 = {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: "g-check-group__label"
|
|
83
|
+
}, _hoisted_3 = { class: "g-check-group__content" }, _hoisted_4 = { class: "g-check-group__items" }, _hoisted_5 = {
|
|
84
|
+
key: 0,
|
|
85
|
+
class: "g-check-group__message"
|
|
86
|
+
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
87
|
+
__name: "GCheckGroup",
|
|
88
|
+
props: makeCheckGroupBaseProps(),
|
|
89
|
+
emits: ["focusin", "focusout", "pointerdown", "pointerup", "pointercancel"],
|
|
90
|
+
setup(__props, { emit: __emit }) {
|
|
91
|
+
const props = __props, slots = useSlots(), emit = __emit, sizeClass = useSize(props, "g-check-group"), disabledClass = useDisabled(props, "g-check-group"), focusedClass = useFocused(props, "g-check-group"), stateClass = useState(props, "g-check-group"), { colorStyles } = useSurfaceColor(props);
|
|
92
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("fieldset", {
|
|
93
|
+
class: normalizeClass(["g-check-group", [
|
|
94
|
+
unref(sizeClass),
|
|
95
|
+
unref(disabledClass),
|
|
96
|
+
unref(focusedClass),
|
|
97
|
+
unref(stateClass),
|
|
98
|
+
{
|
|
99
|
+
"g-check-group_vertical": props.vertical
|
|
100
|
+
}
|
|
101
|
+
]]),
|
|
102
|
+
"data-g-validation-error": props.state === "error" ? "true" : void 0,
|
|
103
|
+
"aria-invalid": props.state === "error" || void 0,
|
|
104
|
+
style: normalizeStyle(unref(colorStyles)),
|
|
105
|
+
onFocusin: _cache[0] || (_cache[0] = ($event) => emit("focusin", $event)),
|
|
106
|
+
onFocusout: _cache[1] || (_cache[1] = ($event) => emit("focusout", $event)),
|
|
107
|
+
onPointerdown: _cache[2] || (_cache[2] = ($event) => emit("pointerdown", $event)),
|
|
108
|
+
onPointerup: _cache[3] || (_cache[3] = ($event) => emit("pointerup", $event)),
|
|
109
|
+
onPointercancel: _cache[4] || (_cache[4] = ($event) => emit("pointercancel", $event))
|
|
110
|
+
}, [
|
|
111
|
+
props.label || slots.label ? (openBlock(), createElementBlock("legend", _hoisted_2, [
|
|
112
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
113
|
+
createTextVNode(toDisplayString(props.label), 1)
|
|
114
|
+
], !0)
|
|
115
|
+
])) : createCommentVNode("", !0),
|
|
116
|
+
createElementVNode("div", _hoisted_3, [
|
|
117
|
+
createElementVNode("div", _hoisted_4, [
|
|
118
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
119
|
+
]),
|
|
120
|
+
props.message || slots.message ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
121
|
+
renderSlot(_ctx.$slots, "message", {}, () => [
|
|
122
|
+
createTextVNode(toDisplayString(props.message), 1)
|
|
123
|
+
], !0)
|
|
124
|
+
])) : createCommentVNode("", !0)
|
|
125
|
+
])
|
|
126
|
+
], 46, _hoisted_1));
|
|
127
|
+
}
|
|
128
|
+
}), GCheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aa5b29f3"]]);
|
|
129
|
+
export {
|
|
130
|
+
GCheckGroup as G,
|
|
131
|
+
useCheckOptionGroup as u
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const vue=require("vue"),environment=require("./environment-Dr5kpq3D.cjs"),color=require("./color-8SkPDCIp.cjs"),propsFactory=require("./propsFactory-DT6-QS4L.cjs"),disabled=require("./disabled-B_bAKgaM.cjs"),selected=require("./selected-CEdYQtXH.cjs"),size=require("./size-BSjg5E6f.cjs"),state=require("./state-CUskk7oG.cjs"),surfaceColor=require("./surfaceColor-BlDoAKoV.cjs"),_pluginVue_exportHelper=require("./_plugin-vue_export-helper-D_jf5u0r.cjs"),components_GIcon=require("./components/GIcon.cjs"),components_GSquircle=require("./components/GSquircle.cjs");function useCheckGroupFocus(options){const isFocusedWithin=vue.ref(!1),isPointerDownWithin=vue.ref(!1);function handleGroupFocusIn(event){var _a,_b;isPointerDownWithin.value=!1,isFocusedWithin.value||(isFocusedWithin.value=!0,options.onFocusWithin()),(_b=(_a=options.emitters)==null?void 0:_a.focus)==null||_b.call(_a,event)}function handleGroupFocusOut(event){var _a,_b;const currentTarget=event.currentTarget,relatedTarget=event.relatedTarget;isPointerDownWithin.value||environment.isClientHTMLElement(currentTarget)&&relatedTarget instanceof Node&¤tTarget.contains(relatedTarget)||(isFocusedWithin.value&&(isFocusedWithin.value=!1,options.onBlurWithin()),(_b=(_a=options.emitters)==null?void 0:_a.blur)==null||_b.call(_a,event))}function handlePointerDown(){isPointerDownWithin.value=!0}function handlePointerEnd(){isPointerDownWithin.value=!1}return{isFocusedWithin,handleGroupFocusIn,handleGroupFocusOut,handlePointerDown,handlePointerEnd}}const useCheckFocusWithin=useCheckGroupFocus,makeCheckFieldProps=propsFactory.propsFactory({...color.makeColorProps(),id:String,name:String,label:String,disabled:Boolean,size:{type:String,default:"m"},state:String,indicatorView:{type:String,default:"default"},message:String,inline:Boolean}),makeCheckGroupVisualProps=propsFactory.propsFactory({...color.makeColorProps(),label:String,message:String,disabled:Boolean,size:{type:String,default:"m"},state:String,indicatorView:{type:String,default:"default"},vertical:Boolean,focused:Boolean}),makeCheckControlBaseProps=propsFactory.propsFactory({...makeCheckFieldProps({disabled:!1,size:"m",inline:!1}),inputType:{type:String,required:!0},checked:Boolean,focused:Boolean}),makeCheckGroupBaseProps=propsFactory.propsFactory({...makeCheckGroupVisualProps({disabled:!1,size:"m",vertical:!1,focused:!1})});function makeCheckBooleanControlProps(){return propsFactory.propsFactory({...makeCheckFieldProps({disabled:!1,size:"m",inline:!1}),rules:{type:Array,default:()=>[]}})()}function useFocused(props,base){return vue.computed(()=>props.focused?`${base}_focused`:"")}const _hoisted_1$1=["data-g-validation-error","aria-invalid"],_hoisted_2$1=["id","name","type","checked","disabled"],_hoisted_3$1=["for"],_hoisted_4$1={class:"g-check-control__indicator"},_hoisted_5$1={key:0,class:"g-check-control__content"},_hoisted_6={key:0,class:"g-check-control__label"},_hoisted_7={key:1,class:"g-check-control__message"},_sfc_main$1=vue.defineComponent({__name:"GCheckControl",props:makeCheckControlBaseProps(),emits:["change","focus","blur","focusin","focusout","pointerdown","pointerup","pointercancel"],setup(__props,{emit:__emit}){const props=__props,slots=vue.useSlots(),emit=__emit,hasTextContent=vue.computed(()=>!!props.label||!!slots.default),hasMessage=vue.computed(()=>!!props.message||!!slots.message),sizeClass=size.useSize(props,"g-check-control"),disabledClass=disabled.useDisabled(props,"g-check-control"),focusedClass=useFocused(props,"g-check-control"),stateClass=state.useState(props,"g-check-control"),{colorStyles}=surfaceColor.useSurfaceColor(props),checkedClass=selected.useSelected({selected:()=>props.checked},"g-check-control");return(_ctx,_cache)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["g-check-control",[vue.unref(sizeClass),vue.unref(disabledClass),vue.unref(focusedClass),vue.unref(stateClass),vue.unref(checkedClass),{"g-check-control_inline":props.inline}]]),"data-g-validation-error":props.state==="error"?"true":void 0,"aria-invalid":props.state==="error"||void 0,style:vue.normalizeStyle(vue.unref(colorStyles)),onFocusin:_cache[3]||(_cache[3]=$event=>emit("focusin",$event)),onFocusout:_cache[4]||(_cache[4]=$event=>emit("focusout",$event)),onPointerdown:_cache[5]||(_cache[5]=$event=>emit("pointerdown",$event)),onPointerup:_cache[6]||(_cache[6]=$event=>emit("pointerup",$event)),onPointercancel:_cache[7]||(_cache[7]=$event=>emit("pointercancel",$event))},[vue.createElementVNode("input",{id:props.id,name:props.name,type:props.inputType,checked:props.checked,disabled:props.disabled,class:"g-check-control__native",onChange:_cache[0]||(_cache[0]=$event=>emit("change",$event)),onFocus:_cache[1]||(_cache[1]=$event=>emit("focus",$event)),onBlur:_cache[2]||(_cache[2]=$event=>emit("blur",$event))},null,40,_hoisted_2$1),vue.createElementVNode("label",{for:props.id,class:"g-check-control__body"},[vue.createElementVNode("span",_hoisted_4$1,[vue.renderSlot(_ctx.$slots,"indicator",{},void 0,!0)]),hasTextContent.value||hasMessage.value?(vue.openBlock(),vue.createElementBlock("span",_hoisted_5$1,[hasTextContent.value?(vue.openBlock(),vue.createElementBlock("span",_hoisted_6,[vue.renderSlot(_ctx.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(props.label),1)],!0)])):vue.createCommentVNode("",!0),hasMessage.value?(vue.openBlock(),vue.createElementBlock("span",_hoisted_7,[vue.renderSlot(_ctx.$slots,"message",{},()=>[vue.createTextVNode(vue.toDisplayString(props.message),1)],!0)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)],8,_hoisted_3$1)],46,_hoisted_1$1))}}),GCheckControl=_pluginVue_exportHelper._export_sfc(_sfc_main$1,[["__scopeId","data-v-a3c045c0"]]),_hoisted_1={key:0,class:"g-check-indicator__switch-track"},_hoisted_2={key:1,class:"g-check-indicator__radio-dot"},_hoisted_3={key:2,class:"g-check-indicator__shape"},_hoisted_4={class:"g-check-indicator__shape-content"},_hoisted_5={key:1,class:"g-check-indicator__radio-dot"},_sfc_main=vue.defineComponent({__name:"GCheckIndicator",props:{kind:{},view:{default:"default"},checked:{type:Boolean,default:!1},color:{},disabled:{type:Boolean,default:!1},size:{default:"m"},state:{default:void 0}},setup(__props){const props=__props,{resolvedColor,resolvedState,colorStyles}=surfaceColor.useSurfaceColor(props),squircleSize=vue.computed(()=>({s:18,m:22,l:26,xl:30})[props.size]);return(_ctx,_cache)=>(vue.openBlock(),vue.createElementBlock("span",{class:vue.normalizeClass(["g-check-indicator",{[`g-check-indicator_${props.kind}`]:!0,[`g-check-indicator_${props.size}`]:!0,[`g-check-indicator_view-${props.view}`]:!0,"g-check-indicator_checked":props.checked,"g-check-indicator_disabled":props.disabled,[`g-check-indicator_${props.state}`]:!!props.state}]),style:vue.normalizeStyle(vue.unref(colorStyles))},[props.kind==="switch"?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1,[..._cache[0]||(_cache[0]=[vue.createElementVNode("span",{class:"g-check-indicator__switch-thumb"},null,-1)])])):props.view==="squircle"?(vue.openBlock(),vue.createBlock(components_GSquircle.default,{key:1,class:"g-check-indicator__squircle",size:squircleSize.value,color:vue.unref(resolvedColor),state:vue.unref(resolvedState),variant:props.checked?"primary":"tonal",shadow:!1,border:props.checked?0:1,"border-color":"var(--g-check-indicator-shape-border)"},{default:vue.withCtx(()=>[props.kind==="checkbox"&&props.checked?(vue.openBlock(),vue.createBlock(components_GIcon.default,{key:0,icon:"check",size:"14"})):props.kind==="radio"?(vue.openBlock(),vue.createElementBlock("span",_hoisted_2)):vue.createCommentVNode("",!0)]),_:1},8,["size","color","state","variant","border"])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_3,[vue.createElementVNode("span",_hoisted_4,[props.kind==="checkbox"&&props.checked?(vue.openBlock(),vue.createBlock(components_GIcon.default,{key:0,icon:"check",size:"14"})):props.kind==="radio"?(vue.openBlock(),vue.createElementBlock("span",_hoisted_5)):vue.createCommentVNode("",!0)])]))],6))}}),GCheckIndicator=_pluginVue_exportHelper._export_sfc(_sfc_main,[["__scopeId","data-v-f2de2eef"]]);exports.GCheckControl=GCheckControl;exports.GCheckIndicator=GCheckIndicator;exports.makeCheckBooleanControlProps=makeCheckBooleanControlProps;exports.makeCheckGroupBaseProps=makeCheckGroupBaseProps;exports.useCheckFocusWithin=useCheckFocusWithin;exports.useCheckGroupFocus=useCheckGroupFocus;exports.useFocused=useFocused;
|