@pantograph/vue 0.10.0 → 0.10.2
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/dist/ActionButton/ActionButton.d.ts +79 -3
- package/dist/ActionButton/index.js.js +1 -1
- package/dist/ActionButton/index.umd.cjs.js +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-ClxZJxTh.js → ActionButton.vue_vue_type_script_setup_true_lang-B8F78aq-.js} +2 -3
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-DYj83ijm.js +1 -0
- package/dist/Avatar/Avatar.d.ts +14 -7
- package/dist/Avatar/index.js.js +1 -1
- package/dist/Avatar/index.umd.cjs.js +1 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BwkELI0y.js +1 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DheqjJPa.js +182 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +2 -5
- package/dist/AvatarGroup/index.js.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs.js +1 -1
- package/dist/Badge/Badge.d.ts +9 -2
- package/dist/Badge/index.js.js +1 -1
- package/dist/Badge/index.umd.cjs.js +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CfA3dSJr.js → Badge.vue_vue_type_script_setup_true_lang-CCIamdNB.js} +2 -3
- package/dist/Badge.vue_vue_type_script_setup_true_lang-ooDlpl8j.js +1 -0
- package/dist/Base/BaseBadge/BaseBadge.d.ts +12 -7
- package/dist/Base/BaseButton/BaseButton.d.ts +14 -7
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-BNs69VP4.js +1 -0
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-MM6bsdzR.js → BaseBadge.vue_vue_type_style_index_0_lang-Bh1152XC.js} +46 -52
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CgEN8K4D.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-D7irHU-6.js +153 -0
- package/dist/Button/Button.d.ts +79 -3
- package/dist/Button/index.js.js +1 -1
- package/dist/Button/index.umd.cjs.js +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-BA3bxjLD.js +1 -0
- package/dist/{Button.vue_vue_type_script_setup_true_lang-B8DWC8Du.js → Button.vue_vue_type_script_setup_true_lang-NKY7YYCC.js} +6 -7
- package/dist/ButtonGroup/ButtonGroup.d.ts +3 -5
- package/dist/ButtonGroup/index.js.js +1 -1
- package/dist/ButtonGroup/index.umd.cjs.js +1 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CT_Kgpjf.js +47 -0
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-D486_o-Z.js +1 -0
- package/dist/Checkbox/Checkbox.d.ts +12 -4
- package/dist/Checkbox/index.js.js +1 -1
- package/dist/Checkbox/index.umd.cjs.js +1 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-CSmeTeZh.js +209 -0
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-D0sF0-hW.js +1 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -5
- package/dist/CheckboxGroup/index.js.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs.js +1 -1
- package/dist/ColorPicker/index.js.js +1 -1
- package/dist/ColorPicker/index.umd.cjs.js +1 -1
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-B1Rst4Q9.js +1 -0
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-CEz3bIJG.js +541 -0
- package/dist/ColorSwatch/ColorSwatch.d.ts +11 -4
- package/dist/ColorSwatch/index.js.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs.js +1 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-BH-NSALx.js +1 -0
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-CL9dd69H.js +100 -0
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +17 -11
- package/dist/ColorSwatchGroup/index.js.js +3 -163
- package/dist/ColorSwatchGroup/index.umd.cjs.js +1 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CpgTgIuE.js +1 -0
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-Cwh2REmh.js +159 -0
- package/dist/ColorTrigger/ColorTrigger.d.ts +13 -5
- package/dist/ColorTrigger/index.js.js +4 -90
- package/dist/ColorTrigger/index.umd.cjs.js +1 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BNFu93Ns.js +86 -0
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-C8kPa338.js +1 -0
- package/dist/ConfigProvider/index.d.ts +6 -6
- package/dist/ConfigProvider/utils.d.ts +2 -2
- package/dist/Divider/Divider.d.ts +13 -8
- package/dist/Divider/index.js.js +1 -1
- package/dist/Divider/index.umd.cjs.js +1 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-BELWThBf.js +1 -0
- package/dist/Divider.vue_vue_type_style_index_0_lang-CRs1KEcj.js +34 -0
- package/dist/FloatButton/FloatButton.d.ts +79 -3
- package/dist/FloatButton/index.js.js +1 -1
- package/dist/FloatButton/index.umd.cjs.js +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-iElZdgSE.js → FloatButton.vue_vue_type_script_setup_true_lang-BAxKXFb0.js} +2 -3
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-C5hAAZZQ.js +1 -0
- package/dist/GraphicalObject/GraphicalObject.d.ts +9 -2
- package/dist/GraphicalObject/index.js.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs.js +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-Cc4PxUnd.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BEZ6FkRf.js} +2 -3
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CdO2zArd.js +1 -0
- package/dist/Icon/Icon.d.ts +11 -4
- package/dist/IconButton/IconButton.d.ts +79 -3
- package/dist/IconButton/index.js.js +1 -1
- package/dist/IconButton/index.umd.cjs.js +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-D1nK8pEU.js → IconButton.vue_vue_type_script_setup_true_lang-CchpvdkX.js} +2 -3
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-c16Xu6mm.js +1 -0
- package/dist/Image/Image.d.ts +16 -8
- package/dist/Image/index.js.js +1 -1
- package/dist/Image/index.umd.cjs.js +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-DbqKKOAs.js → Image.vue_vue_type_style_index_0_lang-Hg1jFz-L.js} +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-Cku5hiNE.js → Image.vue_vue_type_style_index_0_lang-pkzjPQyu.js} +2 -2
- package/dist/IndentLevel/IndentLevel.d.ts +14 -8
- package/dist/IndentLevel/index.js.js +1 -1
- package/dist/IndentLevel/index.umd.cjs.js +1 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-DqqJTrDF.js +1 -0
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-ZZ1uEhji.js +94 -0
- package/dist/Indicator/Indicator.d.ts +9 -2
- package/dist/Indicator/index.js.js +1 -1
- package/dist/Indicator/index.umd.cjs.js +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-DURlzRTQ.js → Indicator.vue_vue_type_script_setup_true_lang-B16OmZLF.js} +2 -3
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-BibzfVax.js +1 -0
- package/dist/Input/Input.d.ts +15 -7
- package/dist/Input/index.d.ts +2 -0
- package/dist/Input/index.js.js +7 -0
- package/dist/Input/index.umd.cjs.js +1 -0
- package/dist/Input.vue_vue_type_style_index_0_lang-CcR6oCIR.js +407 -0
- package/dist/Input.vue_vue_type_style_index_0_lang-DVN491cI.js +1 -0
- package/dist/Kbd/Kbd.d.ts +13 -9
- package/dist/Kbd/index.js.js +1 -1
- package/dist/Kbd/index.umd.cjs.js +1 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-CpDjSQqg.js +1 -0
- package/dist/Kbd.vue_vue_type_style_index_0_lang-D1y-0kBN.js +47 -0
- package/dist/Menu/Menu.d.ts +9 -10
- package/dist/Menu/index.js.js +1 -1
- package/dist/Menu/index.umd.cjs.js +1 -1
- package/dist/Menu.vue_vue_type_style_index_0_lang-B64mJSxF.js +481 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-Sq_kFrSI.js +1 -0
- package/dist/MenuItem/MenuItem.d.ts +2 -2
- package/dist/MenuItem/index.js.js +1 -1
- package/dist/MenuItem/index.umd.cjs.js +1 -1
- package/dist/Popover/Popover.d.ts +82 -5
- package/dist/Popover/index.js.js +1 -1
- package/dist/Popover/index.umd.cjs.js +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-DkM_Ynrg.js → Popover.vue_vue_type_style_index_0_lang-C0IwnsU5.js} +2 -2
- package/dist/{Popover.vue_vue_type_style_index_0_lang-pSXmj4z1.js → Popover.vue_vue_type_style_index_0_lang-CM8qMFEi.js} +1 -1
- package/dist/RadioGroup/RadioGroup.d.ts +12 -5
- package/dist/RadioGroup/RadioGroupItem.d.ts +11 -3
- package/dist/RadioGroup/index.d.ts +1 -1
- package/dist/RadioGroup/index.js.js +3 -2
- package/dist/RadioGroup/index.umd.cjs.js +1 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-C8nd4TEI.js +100 -0
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-DjEHmvMo.js +1 -0
- package/dist/Shortcut/Shortcut.d.ts +1 -2
- package/dist/Shortcut/index.js.js +1 -1
- package/dist/Shortcut/index.umd.cjs.js +1 -1
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-D4xo_UgO.js +32 -0
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-D8_aLpYM.js +1 -0
- package/dist/Skeleton/Skeleton.d.ts +3 -7
- package/dist/Skeleton/index.js.js +1 -1
- package/dist/Skeleton/index.umd.cjs.js +1 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-C1I-p4Yn.js +1 -0
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-IQEtEnZx.js +58 -0
- package/dist/Spinner/Spinner.d.ts +11 -6
- package/dist/Spinner/index.js.js +1 -1
- package/dist/Spinner/index.umd.cjs.js +1 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-BP7P5xu8.js +1 -0
- package/dist/Spinner.vue_vue_type_style_index_0_lang-BYqqSQAx.js +73 -0
- package/dist/Switch/Switch.d.ts +14 -3
- package/dist/Switch/index.js.js +1 -1
- package/dist/Switch/index.umd.cjs.js +1 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-CoXu3YJ-.js +1 -0
- package/dist/Switch.vue_vue_type_style_index_0_lang-CvWay8Wa.js +106 -0
- package/dist/Tree/Tree.d.ts +12 -3
- package/dist/Tree/TreeNode.d.ts +11 -2
- package/dist/Tree/index.js.js +1 -1
- package/dist/Tree/index.umd.cjs.js +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-BCYjSwUH.js +545 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-CvskECfv.js +1 -0
- package/dist/_flatRest-CHX8vV1P.js +556 -0
- package/dist/_flatRest-R59G2N4m.js +1 -0
- package/dist/{cloneDeep-7ho7cOLj.js → cloneDeep-BMA7VTX1.js} +1 -1
- package/dist/cloneDeep-BcKVMzWC.js +1 -0
- package/dist/get-B4UJlXpC.js +1 -0
- package/dist/{get-CdoyK4GU.js → get-Q8GXlj-L.js} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js.js +123 -102
- package/dist/index.umd.cjs.js +1 -1
- package/dist/omit-BEkBWXra.js +212 -0
- package/dist/omit-BKPbELUG.js +1 -0
- package/dist/pick-C-ap2Lj0.js +1 -0
- package/dist/{pick-BHVX8oMF.js → pick-DLskPTKb.js} +1 -1
- package/dist/style/index.css +1 -1
- package/dist/useId-DvOSMFGX.js +9 -0
- package/dist/useId-Ku3O_8TK.js +1 -0
- package/dist/useInputDataStates-CZbdWpyp.js +26 -0
- package/dist/useInputDataStates-CbRgNQqU.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js.js +10 -6
- package/dist/utils/index.umd.cjs.js +1 -1
- package/dist/utils/useId.d.ts +1 -0
- package/dist/utils/useInputDataStates.d.ts +19 -0
- package/package.json +10 -3
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Db3ryil1.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-B538jct0.js +0 -188
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BSi0qbuq.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CKxCSXXL.js +0 -1
- package/dist/Base/Primitive.d.ts +0 -39
- package/dist/Base/Slot.d.ts +0 -6
- package/dist/BaseBadge.vue_vue_type_style_index_0_lang-OEeJw0Sy.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-gzePKYHN.js +0 -1
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-s4G57j5o.js +0 -159
- package/dist/Button.vue_vue_type_script_setup_true_lang-BVCP3jP3.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-BSj1Y1j2.js +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-CdSgBboA.js +0 -52
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-Bm6sm_wm.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-maH6mbC5.js +0 -216
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-CROQzfNe.js +0 -944
- package/dist/ColorPicker.vue_vue_type_style_index_0_lang-IZSWne-0.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-Bf0glWPU.js +0 -102
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-Dki5150Z.js +0 -1
- package/dist/Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js +0 -40
- package/dist/Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js +0 -1
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-DARsq4US.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-Bouixpu2.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CufKPHFD.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-C9mNx1Zx.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CKJpRLV6.js +0 -104
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-DpPAMjWw.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-BqEaW_kJ.js +0 -1
- package/dist/Kbd.vue_vue_type_style_index_0_lang-DbtLbpq-.js +0 -60
- package/dist/Menu.vue_vue_type_style_index_0_lang-Danl_w4K.js +0 -480
- package/dist/Menu.vue_vue_type_style_index_0_lang-eKNVzfnz.js +0 -1
- package/dist/Primitive-BT1RjuGS.js +0 -1
- package/dist/Primitive-nOVjbfuc.js +0 -47
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-8BgnVYlc.js +0 -1
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-NNLg5ogX.js +0 -100
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-BQb7DjFe.js +0 -41
- package/dist/Shortcut.vue_vue_type_style_index_0_lang-C49ZdQFd.js +0 -1
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-B6bCkLlD.js +0 -66
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-PNNUgKOq.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js +0 -1
- package/dist/Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js +0 -85
- package/dist/Switch.vue_vue_type_style_index_0_lang-B9_IPFyg.js +0 -1
- package/dist/Switch.vue_vue_type_style_index_0_lang-_FIrRkI7.js +0 -103
- package/dist/Tree.vue_vue_type_style_index_0_lang-B3ZzwkLN.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-D9GBs86I.js +0 -547
- package/dist/cloneDeep-C6tiVz1k.js +0 -1
- package/dist/get-BULsy4gy.js +0 -1
- package/dist/omit-BHZMfUBv.js +0 -757
- package/dist/omit-DlH5U9Jc.js +0 -1
- package/dist/pick-DpwC5mlg.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),Pe=require("./ActionButton.vue_vue_type_script_setup_true_lang-Db3ryil1.js"),ee=require("@vueuse/core"),Be=require("./Primitive-BT1RjuGS.js"),_=require("./class-CjZYGZDW.js"),Se=require("class-variance-authority"),te=require("./pick-DpwC5mlg.js"),y=require("./omit-DlH5U9Jc.js"),K=require("./get-BULsy4gy.js"),W=require("./isObjectLike-kO9e4B7g.js"),ne=require("./isArray-B7z6QoM5.js"),ve=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),Re=require("./Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js"),Le=require("radix-vue");function $(e,n,s){return Math.max(n,Math.min(e,s))}function Me(e,n){if(typeof e=="string"||typeof n=="string")return e===n;if(e){if(!n)return!1;for(const s in e)if(e[s]!==n[s])return!1}return!0}function z(e){const n=[],s=e.length>5?2:1;for(let r=1;r<e.length;r+=s){const l=e.substring(r,r+s).repeat(s%2+1),o=parseInt(l,16);n.push(r===3*s+1?o/255:o)}return n.length===3&&n.push(1),{r:n[0],g:n[1],b:n[2],a:n[3]}}function pe(e){const n=e.l/100,s=n+e.s/100*Math.min(n,1-n),r=s===0?0:200*(1-n/s);return{h:e.h,s:r,v:s*100,a:e.a}}function U(e){let n=e.h%360;n<0&&(n+=360);const s=e.s/100,r=e.l/100;return{r:J(0,n,s,r)*255,g:J(8,n,s,r)*255,b:J(4,n,s,r)*255,a:e.a}}function J(e,n,s,r){const l=(e+n/30)%12,o=s*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(l-3,9-l,1))}function he(e){const n=e.s/100,s=e.v/100,r=s*(1-n/2);return{h:e.h,s:r===0||r===1?0:(s-r)/Math.min(r,1-r)*100,l:r*100,a:e.a}}function be(e){return{h:e.h,w:e.v*(100-e.s)/100,b:100-e.v,a:e.a}}function k(e){return U(he(e))}function N(e){const n=e.w/100,s=e.b/100;let r,l;const o=n+s;return o>=1?(r=0,l=n/o):(l=1-s,r=(1-n/l)*100),{h:e.h,s:r,v:l*100,a:e.a}}function G(e){const{r:n,g:s,b:r,a:l}=e,o=Math.min(n,s,r),a=Math.max(n,s,r),i=a-o,d=(a+o)/2;let u=0;i!==0&&(a===n?u=(s-r)/i+(s<r?6:0):a===s?u=(r-n)/i+2:a===r&&(u=(n-s)/i+4),u*=60);let b=0;return d!==0&&d!==255&&(b=(a-d)/Math.min(d,255-d)),{h:u,s:b*100,l:d/255*100,a:l}}function H(e){return"#"+Object.values(e).map((n,s)=>Math.round(s===3?n*255:n).toString(16).padStart(2,"0")).join("")}function D(e){return be(pe(G(e)))}const Ne={hex:{hex:e=>e,hsl:e=>G(z(e)),hsv:e=>N(D(z(e))),hwb:e=>D(z(e)),rgb:z},hsl:{hex:e=>H(U(e)),hsl:e=>e,hsv:pe,hwb:e=>D(U(e)),rgb:U},hsv:{hex:e=>H(k(e)),hsl:he,hsv:e=>e,hwb:be,rgb:k},hwb:{hex:e=>H(k(N(e))),hsl:e=>G(k(N(e))),hsv:N,hwb:e=>e,rgb:e=>k(N(e))},rgb:{hex:H,hsl:G,hsv:e=>N(D(e)),hwb:D,rgb:e=>e}};function oe(e,n,s){return Ne[e][n](s)}function Ve(e,n){const s=e.toFixed(n);return s.includes(".")?s.replace(/\.?0+$/,""):s}const Oe={deg:1,grad:.9,rad:180/Math.PI,turn:360},Y={from(e){return e.endsWith("%")?V.from(e,{referenceValue:1}):S.from(e,{min:0,max:1})},to(e){return S.to(e)}},le={from(e){const n=e.match(/deg|g?rad|turn$/);if(n===null)return S.from(e);const s=n[0];return S.from(e.slice(0,-s.length))*Oe[s]},to(e){return S.to(e)}},S={from(e,{min:n=Number.NEGATIVE_INFINITY,max:s=Number.POSITIVE_INFINITY}={}){return e.endsWith(".")?NaN:$(Number(e),n,s)},to(e){return Ve(e,2)}},V={from(e,{referenceValue:n=100,min:s=0,max:r=100}={}){return e.endsWith("%")?S.from(e.slice(0,-1),{min:s,max:r})*n/100:NaN},to(e){return S.to(e)+"%"}},Q={from(e){return e.endsWith("%")?V.from(e,{referenceValue:255}):S.from(e,{min:0,max:255})},to(e){return S.to(e)}},Ie={hsl:{h:le,s:V,l:V},hwb:{h:le,w:V,b:V},rgb:{r:Q,g:Q,b:Q}};function X(e,n){return Ie[e][n]}function Z({format:e,color:n},s){if(e==="hex")return s&&[5,9].includes(n.length)?n.substring(0,n.length-(n.length-1)/4):n;const r=Object.entries(n).slice(0,s?3:4).map(([l,o])=>{const a=l==="a"?Y:X(e,l);return(l==="a"?"/ ":"")+a.to(o)});return`${e}(${r.join(" ")})`}function ye(e){return/^#(?:(?:[A-F0-9]{2}){3,4}|[A-F0-9]{3,4})$/i.test(e)}function ke(e){return"r"in e?"rgb":"w"in e?"hwb":"v"in e?"hsv":"s"in e?"hsl":null}const ae={hsl:["h","s","l","a"],hwb:["h","w","b","a"],rgb:["r","g","b","a"]};function ie(e){if(!e)return null;if(typeof e!="string"){const i=ke(e);return i===null?null:{format:i,color:e}}if(e.startsWith("#"))return ye(e)?{format:"hex",color:e}:null;if(!e.includes("(")){const i=document.createElement("canvas").getContext("2d");i.fillStyle=e;const d=i.fillStyle;return d==="#000000"&&e!=="black"?null:{format:"hex",color:d}}const[n,s]=e.split("("),r=n.substring(0,3);if(!(r in ae))return null;const l=s.replace(/[,/)]/g," ").replace(/\s+/g," ").trim().split(" ");l.length===3&&l.push("1");const o=ae[r],a=Object.fromEntries(o.map((i,d)=>{const u=i==="a"?Y:X(r,i);return[i,u.from(l[d])]}));return{format:r,color:a}}const De=typeof window<"u",we=De&&"EyeDropper"in window,$e=e=>{const n=new AbortController;t.onUnmounted(()=>n.abort());async function s(){if(!we)return;const r=new window.EyeDropper;try{let o=(await r.open({signal:n.signal})).sRGBHex;if(o.startsWith("rgba")){const a=o.match(/rgba?\((?<r>\d+), (?<g>\d+), (?<b>\d+), (?<a>[\d.]+)\)/);if(a){const[i,d,u,b,c]=a;o=`rgba(${d}, ${u}, ${b}, ${parseFloat(c)===0?"1":c})`}}e(o)}catch(l){console.log("e ===>",l)}}return{openEyeDropper:s,abortController:n}};function Fe(e){return e===void 0}function ze(e,n){for(var s=-1,r=e==null?0:e.length;++s<r;)if(n(e[s],s,e))return!0;return!1}var He=1,qe=2;function Ce(e,n,s,r,l,o){var a=s&He,i=e.length,d=n.length;if(i!=d&&!(a&&d>i))return!1;var u=o.get(e),b=o.get(n);if(u&&b)return u==n&&b==e;var c=-1,h=!0,E=s&qe?new K.SetCache:void 0;for(o.set(e,n),o.set(n,e);++c<i;){var w=e[c],m=n[c];if(r)var C=a?r(m,w,c,n,e,o):r(w,m,c,e,n,o);if(C!==void 0){if(C)continue;h=!1;break}if(E){if(!ze(n,function(x,T){if(!K.cacheHas(E,T)&&(w===x||l(w,x,s,r,o)))return E.push(T)})){h=!1;break}}else if(!(w===m||l(w,m,s,r,o))){h=!1;break}}return o.delete(e),o.delete(n),h}function Ue(e){var n=-1,s=Array(e.size);return e.forEach(function(r,l){s[++n]=[l,r]}),s}var Ge=1,Ke=2,We="[object Boolean]",Ye="[object Date]",Xe="[object Error]",Je="[object Map]",Qe="[object Number]",Ze="[object RegExp]",je="[object Set]",en="[object String]",nn="[object Symbol]",tn="[object ArrayBuffer]",rn="[object DataView]",ue=W.Symbol?W.Symbol.prototype:void 0,j=ue?ue.valueOf:void 0;function sn(e,n,s,r,l,o,a){switch(s){case rn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case tn:return!(e.byteLength!=n.byteLength||!o(new y.Uint8Array(e),new y.Uint8Array(n)));case We:case Ye:case Qe:return y.eq(+e,+n);case Xe:return e.name==n.name&&e.message==n.message;case Ze:case en:return e==n+"";case Je:var i=Ue;case je:var d=r&Ge;if(i||(i=K.setToArray),e.size!=n.size&&!d)return!1;var u=a.get(e);if(u)return u==n;r|=Ke,a.set(e,n);var b=Ce(i(e),i(n),r,l,o,a);return a.delete(e),b;case nn:if(j)return j.call(e)==j.call(n)}return!1}var on=1,ln=Object.prototype,an=ln.hasOwnProperty;function un(e,n,s,r,l,o){var a=s&on,i=y.getAllKeys(e),d=i.length,u=y.getAllKeys(n),b=u.length;if(d!=b&&!a)return!1;for(var c=d;c--;){var h=i[c];if(!(a?h in n:an.call(n,h)))return!1}var E=o.get(e),w=o.get(n);if(E&&w)return E==n&&w==e;var m=!0;o.set(e,n),o.set(n,e);for(var C=a;++c<d;){h=i[c];var x=e[h],T=n[h];if(r)var M=a?r(T,x,h,n,e,o):r(x,T,h,e,n,o);if(!(M===void 0?x===T||l(x,T,s,r,o):M)){m=!1;break}C||(C=h=="constructor")}if(m&&!C){var R=e.constructor,L=n.constructor;R!=L&&"constructor"in e&&"constructor"in n&&!(typeof R=="function"&&R instanceof R&&typeof L=="function"&&L instanceof L)&&(m=!1)}return o.delete(e),o.delete(n),m}var cn=1,ce="[object Arguments]",fe="[object Array]",q="[object Object]",fn=Object.prototype,de=fn.hasOwnProperty;function dn(e,n,s,r,l,o){var a=ne.isArray(e),i=ne.isArray(n),d=a?fe:y.getTag(e),u=i?fe:y.getTag(n);d=d==ce?q:d,u=u==ce?q:u;var b=d==q,c=u==q,h=d==u;if(h&&y.isBuffer(e)){if(!y.isBuffer(n))return!1;a=!0,b=!1}if(h&&!b)return o||(o=new y.Stack),a||y.isTypedArray(e)?Ce(e,n,s,r,l,o):sn(e,n,d,s,r,l,o);if(!(s&cn)){var E=b&&de.call(e,"__wrapped__"),w=c&&de.call(n,"__wrapped__");if(E||w){var m=E?e.value():e,C=w?n.value():n;return o||(o=new y.Stack),l(m,C,s,r,o)}}return h?(o||(o=new y.Stack),un(e,n,s,r,l,o)):!1}function re(e,n,s,r,l){return e===n?!0:e==null||n==null||!W.isObjectLike(e)&&!W.isObjectLike(n)?e!==e&&n!==n:dn(e,n,s,r,re,l)}var mn=1,gn=2;function vn(e,n,s,r){var l=s.length,o=l;if(e==null)return!o;for(e=Object(e);l--;){var a=s[l];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++l<o;){a=s[l];var i=a[0],d=e[i],u=a[1];if(a[2]){if(d===void 0&&!(i in e))return!1}else{var b=new y.Stack,c;if(!(c===void 0?re(u,d,mn|gn,r,b):c))return!1}}return!0}function Ae(e){return e===e&&!y.isObject(e)}function pn(e){for(var n=y.keys(e),s=n.length;s--;){var r=n[s],l=e[r];n[s]=[r,l,Ae(l)]}return n}function Ee(e,n){return function(s){return s==null?!1:s[e]===n&&(n!==void 0||e in Object(s))}}function hn(e){var n=pn(e);return n.length==1&&n[0][2]?Ee(n[0][0],n[0][1]):function(s){return s===e||vn(s,e,n)}}var bn=1,yn=2;function wn(e,n){return y.isKey(e)&&Ae(n)?Ee(y.toKey(e),n):function(s){var r=K.get(s,e);return r===void 0&&r===n?te.hasIn(s,e):re(n,r,bn|yn)}}function Cn(e){return function(n){return n==null?void 0:n[e]}}function An(e){return function(n){return y.baseGet(n,e)}}function En(e){return y.isKey(e)?Cn(y.toKey(e)):An(e)}function _e(e){return typeof e=="function"?e:e==null?y.identity:typeof e=="object"?ne.isArray(e)?wn(e[0],e[1]):hn(e):En(e)}var _n="Expected a function";function Tn(e){if(typeof e!="function")throw new TypeError(_n);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function xn(e,n){if(e==null)return{};var s=y.arrayMap(y.getAllKeysIn(e),function(r){return[r]});return n=_e(n),te.basePickBy(e,s,function(r,l){return n(r,l[0])})}function Pn(e,n){return xn(e,Tn(_e(n)))}const me=["sm","md","lg"],Bn=["error","warning"],ge=t.defineComponent({__name:"Input",props:{id:{},maxlength:{},type:{},placeholder:{},disabled:{type:Boolean,default:void 0},required:{type:Boolean},modelValue:{},defaultValue:{},leading:{},trailing:{},clearIcon:{default:"tabler:circle-x"},trailingCls:{},clearIconCls:{},dividerCls:{},leadingCls:{},class:{},allowClear:{type:Boolean},bordered:{type:Boolean,default:!0},size:{},status:{}},emits:["update:modelValue","clear","blur","focus"],setup(e,{expose:n,emit:s}){const r=e,l=t.useSlots(),o=s,a=ee.useVModel(r,"modelValue",o,{defaultValue:r.defaultValue,passive:r.modelValue===void 0}),i=t.computed(()=>!(l.leading||l.trailing||r.leading||r.trailing||r.allowClear||l.clearIcon)),d=t.computed(()=>i.value?"template":"div"),u=_.getBemBlock("input"),b=Se.cva(u,{variants:{size:_.generateVariantClassList(me,u),status:_.generateVariantClassList(Bn,u),bordered:_.generateVariantClassList("bordered",u)}}),c=t.computed(()=>r.size&&me.includes(r.size)?r.size:"md"),h=t.useAttrs(),E=t.shallowRef(),w=t.computed(()=>Pn({...te.pick(r,"id","maxlength","type","disabled","required","placeholder"),...h,onBlur:p=>{var P;(P=p.target)!=null&&P.value&&(p.target.value=a.value),i.value||(E.value=!1),o("blur",p)},onFocus:p=>{i.value||(E.value=!0),o("focus",p)}},Fe)),m=t.computed(()=>{switch(c.value){case"sm":return"2xsm";default:return"xsm"}}),C=t.computed(()=>{switch(c.value){case"sm":return"2xsm";case"md":return"xsm";default:return"sm"}}),x=()=>{a.value="",o("clear")},T=t.ref();return n({input:T,focus:p=>{var P;return(P=T.value)==null?void 0:P.focus(p)},blur:()=>{var p;return(p=T.value)==null?void 0:p.blur()},select:()=>{var p;return(p=T.value.input)==null?void 0:p.select()},setSelectionRange:(p,P,B)=>{var v;return(v=T.value.input)==null?void 0:v.setSelectionRange(p,P,B)}}),(p,P)=>(t.openBlock(),t.createBlock(t.unref(Be.Primitive),{as:d.value,asChild:i.value,class:t.normalizeClass([t.unref(b)({size:c.value,status:p.status,bordered:p.bordered}),r.class]),"data-disabled":i.value?void 0:p.disabled,"data-focus":E.value},{default:t.withCtx(()=>{var B;return[l.leading||r.leading?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([t.unref(_.getBemElement)(t.unref(u),"leading"),p.leadingCls])},[t.renderSlot(p.$slots,"leading",{iconSize:C.value},()=>[t.createTextVNode(t.toDisplayString(p.leading),1)])],2)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("input",t.mergeProps({ref_key:"inputRef",ref:T,"onUpdate:modelValue":P[0]||(P[0]=v=>t.isRef(a)?a.value=v:null)},w.value,{class:[!i.value&&t.unref(_.getBemElement)(t.unref(u),"input")]}),null,16),[[t.vModelDynamic,t.unref(a)]]),l.trailing||r.trailing||p.allowClear?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([t.unref(_.getBemElement)(t.unref(u),"trailing"),p.trailingCls])},[!p.disabled&&p.allowClear&&((B=t.unref(a))!=null&&B.length)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(ve._sfc_main,{icon:p.clearIcon,size:m.value,onClick:x,class:t.normalizeClass([t.unref(_.getBemElement)(t.unref(u),"clear_icon"),p.clearIconCls])},{default:t.withCtx(()=>[t.renderSlot(p.$slots,"clearIcon")]),_:3},8,["icon","size","class"]),l.trailing||r.trailing?(t.openBlock(),t.createBlock(Re._sfc_main,{key:0,type:"vertical",class:t.normalizeClass([t.unref(_.getBemElement)(t.unref(u),"divider"),p.dividerCls])},null,8,["class"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.renderSlot(p.$slots,"trailing",{iconSize:C.value},()=>[t.createTextVNode(t.toDisplayString(p.trailing),1)])],2)):t.createCommentVNode("",!0)]}),_:3},8,["as","asChild","class","data-disabled","data-focus"]))}});function Sn(e,n,s){const r=e.getBoundingClientRect(),l=n-r.left,o=s-r.top;return{x:r.width===0?0:$(l/r.width*100,0,100),y:r.height===0?0:$((1-o/r.height)*100,0,100)}}const Rn=t.defineComponent({__name:"ColorPickerSpace",setup(e){const n=Te();let s=!1,r;function l(c){r=document.body.style.userSelect,document.body.style.userSelect="none",s=!0,i(c)}function o(c){s=!0,d(c)}function a(){document.body.style.userSelect=r,s=!1}function i(c){c.buttons!==1||!s||!(n.colorSpace.value instanceof HTMLElement)||u(n.colorSpace.value,c.clientX,c.clientY)}function d(c){if(!s||!(n.colorSpace.value instanceof HTMLElement))return;c.preventDefault();const h=c.touches[0];u(n.colorSpace.value,h.clientX,h.clientY)}function u(c,h,E){const w=Sn(c,h,E),m={...n.colors.hsv};m.s=w.x,m.v=w.y,n.setColor("hsv",m)}function b(c){if(!["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"].includes(c.key))return;c.preventDefault();const h=["ArrowLeft","ArrowDown"].includes(c.key)?-1:1,E=["ArrowLeft","ArrowRight"].includes(c.key)?"s":"v",w=c.shiftKey?10:1,m=n.colors.hsv[E]+h*w,C={...n.colors.hsv};C[E]=$(m,0,100),n.setColor("hsv",C)}return t.onMounted(()=>{document.addEventListener("mousemove",i,{passive:!1}),document.addEventListener("touchmove",d,{passive:!1}),document.addEventListener("mouseup",a),document.addEventListener("touchend",a)}),t.onBeforeUnmount(()=>{document.removeEventListener("mousemove",i),document.removeEventListener("touchmove",d),document.removeEventListener("mouseup",a),document.removeEventListener("touchend",a)}),(c,h)=>(t.openBlock(),t.createElementBlock("div",{ref:t.unref(n).colorSpace,class:t.normalizeClass([t.unref(_.getBemElement)(t.unref(O),"space")]),onMousedown:l,onTouchstart:o},[t.createElementVNode("button",{ref:t.unref(n).thumb,class:t.normalizeClass([t.unref(_.getBemElement)(t.unref(O),"thumb")]),tabindex:"0","aria-label":"Color space thumb",onKeydown:b},null,34)],34))}}),Ln=["value"],Mn=["value"],[Te,xe]=Le.createContext("ColorPicker"),O=_.getBemBlock("color_picker"),Nn=t.defineComponent({__name:"ColorPicker",props:{class:{},color:{},defaultColor:{default:"#ffffffff"},format:{},defaultFormat:{default:"hex"},hideAlpha:{type:Boolean}},emits:["update:color","update:format","change"],setup(e,{emit:n}){const s=["hex","hsl","hsv","hwb","rgb"],r=e,l=n,o=t.ref(null),a=t.ref(null),i=t.ref(null),d=ee.useVModel(r,"format",l,{defaultValue:r.defaultFormat,passive:r.format===void 0}),u=t.computed(()=>d.value&&s.includes(d.value)?d.value:"hex"),b=ee.useVModel(r,"color",l,{defaultValue:r.defaultColor,passive:r.color===void 0}),c="#ffffffff",h=t.computed(()=>b.value??r.defaultColor??c);t.watch(h,x);const E=t.computed(()=>{const v=u.value,f=m[v];return v.split("").map(g=>{const A=f[g];return{value:X(v,g).to(A),channel:g,label:g.toUpperCase()}}).concat(r.hideAlpha?[]:[{value:Y.to(f.a),channel:"a",label:"Alpha"}])}),w=t.computed({get(){return r.hideAlpha&&[5,9].includes(m.hex.length)?m.hex.substring(0,m.hex.length-(m.hex.length-1)/4):m.hex},set(v){ye(v)&&C("hex",v)}}),m=t.reactive({hex:c,hsl:{h:0,s:0,l:100,a:1},hsv:{h:0,s:0,v:100,a:1},hwb:{h:0,w:100,b:0,a:1},rgb:{r:255,g:255,b:255,a:1}});function C(v,f){let g=f;if(r.hideAlpha)if(typeof f!="string")f.a=1,g=f;else if([5,9].includes(f.length)){const A=(f.length-1)/4;g=f.substring(0,f.length-A)+"f".repeat(A)}else[4,7].includes(f.length)&&(g=f+"f".repeat((f.length-1)/3));if(!Me(m[v],g)){m[v]=g;for(const A of s)A!==v&&(m[A]=oe(v,A,g));b.value=Z({color:oe(v,u.value,g),format:u.value},r.hideAlpha),l("change",se())}o.value instanceof HTMLElement&&a.value instanceof HTMLElement&&i.value instanceof HTMLElement&&L(o.value,a.value,i.value)}function x(v){const f=ie(v);if(f!==null)C(f.format,f.color);else{const g=ie(c);g!==null&&C(g.format,g.color)}}function T(v){d.value=v}function M(v,f){const g=v.currentTarget,A={...m.hsv};A[f]=Number(g.value),C("hsv",A)}function R(v,f){const g=u.value,A={...m[g]},F=(f==="a"?Y:X(g,f)).from(v);Number.isNaN(v)||v===void 0||(A[f]=F,C(g,A))}function L(v,f,g){const A=Z({format:"hsl",color:m.hsl},!0);v.style.setProperty("--vacp-color",A),f.style.position="relative",f.style.backgroundColor=`hsl(${m.hsl.h} 100% 50%)`,f.style.backgroundImage="linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent)",g.style.boxSizing="border-box",g.style.position="absolute",g.style.left=`${m.hsv.s}%`,g.style.bottom=`${m.hsv.v}%`}function se(){const v=Z({color:m[u.value],format:u.value},r.hideAlpha);return{colors:m,cssColor:v}}function p(v){if(!["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"].includes(v.key)||!v.shiftKey)return;const f=v.currentTarget,g=Number(f.step),A=["ArrowLeft","ArrowDown"].includes(v.key)?-1:1,I=Number(f.value)+A*g*10,F=$(I,Number(f.min),Number(f.max));f.value=String(F-A*g)}const{openEyeDropper:P}=$e(x);t.onMounted(()=>x(h.value)),xe({colorSpace:a,thumb:i,colors:m,setColor:C});const B=_.getBemElement(O,"slider");return(v,f)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"colorPicker",ref:o,class:t.normalizeClass([t.unref(O),r.class])},[t.createVNode(Rn),t.createElementVNode("div",{class:t.normalizeClass(t.unref(_.getBemElement)(t.unref(O),"sliders"))},[t.createElementVNode("input",{class:t.normalizeClass([t.unref(B),t.unref(_.getBemModifier)(t.unref(B),"hue")]),value:m.hsv.h,type:"range",min:"0",max:"360",step:"1",onKeydownPassive:p,onInput:f[0]||(f[0]=g=>M(g,"h"))},null,42,Ln),v.hideAlpha?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("input",{key:0,class:t.normalizeClass([t.unref(B),t.unref(_.getBemModifier)(t.unref(B),"alpha")]),value:m.hsv.a,type:"range",min:"0",max:"1",step:"0.01",onKeydownPassive:p,onInput:f[1]||(f[1]=g=>M(g,"a"))},null,42,Mn))],2),t.createElementVNode("div",{class:t.normalizeClass(t.unref(_.getBemElement)(t.unref(O),"inputs"))},[t.createElementVNode("button",{disabled:!0,class:"fake-select",onClick:f[2]||(f[2]=g=>T("rgb"))},[f[4]||(f[4]=t.createElementVNode("div",null,"Hex",-1)),t.createVNode(ve._sfc_main,{icon:"tabler:chevron-down",size:"2xsm",class:"fake-select-icon"})]),u.value==="hex"?(t.openBlock(),t.createBlock(ge,{key:0,class:"flex-1",size:"sm",modelValue:w.value,"onUpdate:modelValue":f[3]||(f[3]=g=>w.value=g)},null,8,["modelValue"])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(E.value,({value:g,channel:A})=>(t.openBlock(),t.createBlock(ge,{modelValue:g,"onUpdate:modelValue":I=>R(I,A),size:"sm"},null,8,["modelValue","onUpdate:modelValue"]))),256)),t.unref(we)?(t.openBlock(),t.createBlock(Pe._sfc_main,{key:2,onClick:t.unref(P),icon:"tabler:color-picker",size:"sm",type:"outline",variant:"icon"},null,8,["onClick"])):t.createCommentVNode("",!0)],2)],2))}});exports._sfc_main=Nn;exports.injectColorPickerContext=Te;exports.provideColorPickerContext=xe;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, computed as s, useSlots as S, createBlock as d, openBlock as c, unref as f, mergeProps as i, withCtx as n, createElementBlock as _, createCommentVNode as y, renderSlot as a, normalizeProps as r, createSlots as b, renderList as $, guardReactiveProps as g, createElementVNode as E } from "vue";
|
|
2
|
-
import { _ as I } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-Cc4PxUnd.js";
|
|
3
|
-
import { g as L } from "./options-JBqnVZUl.js";
|
|
4
|
-
import { o as V } from "./omit-BHZMfUBv.js";
|
|
5
|
-
import { g as N, a as l } from "./class-DziTeW9B.js";
|
|
6
|
-
import { cva as O } from "class-variance-authority";
|
|
7
|
-
import { P as T } from "./Primitive-nOVjbfuc.js";
|
|
8
|
-
import { _ as j } from "./IconButton.vue_vue_type_script_setup_true_lang-D1nK8pEU.js";
|
|
9
|
-
const k = ["sm", "md"], M = ["color", "remover", "custom-picker"], R = {
|
|
10
|
-
key: 1,
|
|
11
|
-
height: "100%",
|
|
12
|
-
width: "100%",
|
|
13
|
-
viewBox: "0 0 19 18",
|
|
14
|
-
fill: "none"
|
|
15
|
-
}, Q = /* @__PURE__ */ P({
|
|
16
|
-
...L("ColorTrigger"),
|
|
17
|
-
__name: "ColorSwatch",
|
|
18
|
-
props: {
|
|
19
|
-
class: {},
|
|
20
|
-
icon: {},
|
|
21
|
-
fg: {},
|
|
22
|
-
bg: {},
|
|
23
|
-
br: {},
|
|
24
|
-
size: { default: "md" },
|
|
25
|
-
selected: { type: Boolean },
|
|
26
|
-
type: { default: "color" },
|
|
27
|
-
customPickerIcon: { default: "tabler:palette" }
|
|
28
|
-
},
|
|
29
|
-
setup(v) {
|
|
30
|
-
const o = v, t = N("color_swatch"), z = O(t, {
|
|
31
|
-
variants: {
|
|
32
|
-
selected: l("selected", t),
|
|
33
|
-
size: l(k, t),
|
|
34
|
-
type: l(M, t)
|
|
35
|
-
}
|
|
36
|
-
}), m = s(
|
|
37
|
-
() => o.size && k.includes(o.size) ? o.size : "md"
|
|
38
|
-
), C = s(() => ({
|
|
39
|
-
size: m.value,
|
|
40
|
-
...V(
|
|
41
|
-
o,
|
|
42
|
-
"size",
|
|
43
|
-
"class",
|
|
44
|
-
"type",
|
|
45
|
-
"selected"
|
|
46
|
-
/*'fg', 'bg', 'br'*/
|
|
47
|
-
)
|
|
48
|
-
})), h = S(), w = s(() => {
|
|
49
|
-
switch (o.type) {
|
|
50
|
-
case "color":
|
|
51
|
-
return "div";
|
|
52
|
-
case "custom-picker":
|
|
53
|
-
return j;
|
|
54
|
-
case "remover":
|
|
55
|
-
return "div";
|
|
56
|
-
}
|
|
57
|
-
}), B = s(() => {
|
|
58
|
-
const e = {};
|
|
59
|
-
return o.type === "custom-picker" && (e.size = m.value, e.icon = o.customPickerIcon, e.color = "gray", e.type = "outline"), e;
|
|
60
|
-
});
|
|
61
|
-
return (e, p) => (c(), d(f(T), i({
|
|
62
|
-
as: w.value,
|
|
63
|
-
class: [
|
|
64
|
-
f(z)({
|
|
65
|
-
selected: e.type !== "custom-picker" && o.selected,
|
|
66
|
-
size: e.size,
|
|
67
|
-
type: e.type
|
|
68
|
-
}),
|
|
69
|
-
o.class
|
|
70
|
-
]
|
|
71
|
-
}, B.value), {
|
|
72
|
-
icon: n(() => [
|
|
73
|
-
a(e.$slots, "icon", r(g(o)))
|
|
74
|
-
]),
|
|
75
|
-
default: n(() => [
|
|
76
|
-
e.type === "color" ? (c(), d(I, r(i({ key: 0 }, C.value)), b({ _: 2 }, [
|
|
77
|
-
$(Object.keys(h), (u) => ({
|
|
78
|
-
name: u,
|
|
79
|
-
fn: n(() => [
|
|
80
|
-
a(e.$slots, u, r(g(o)))
|
|
81
|
-
])
|
|
82
|
-
}))
|
|
83
|
-
]), 1040)) : e.type === "remover" ? (c(), _("svg", R, p[0] || (p[0] = [
|
|
84
|
-
E("path", {
|
|
85
|
-
id: "Empty Indicator",
|
|
86
|
-
d: "M17.5 1L1.5 17",
|
|
87
|
-
stroke: "currentColor",
|
|
88
|
-
"stroke-width": "2",
|
|
89
|
-
"stroke-linecap": "round"
|
|
90
|
-
}, null, -1)
|
|
91
|
-
]))) : y("", !0),
|
|
92
|
-
e.type === "custom-picker" ? a(e.$slots, "default", r(i({ key: 2 }, o))) : y("", !0)
|
|
93
|
-
]),
|
|
94
|
-
_: 3
|
|
95
|
-
}, 16, ["as", "class"]));
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
export {
|
|
99
|
-
k as C,
|
|
100
|
-
Q as _,
|
|
101
|
-
M as a
|
|
102
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),g=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-Bouixpu2.js"),k=require("./options-B4iSAKol.js"),_=require("./omit-DlH5U9Jc.js"),s=require("./class-CjZYGZDW.js"),C=require("class-variance-authority"),f=require("./Primitive-BT1RjuGS.js"),h=require("./IconButton.vue_vue_type_script_setup_true_lang-CufKPHFD.js"),c=["sm","md"],l=["color","remover","custom-picker"],z={key:1,height:"100%",width:"100%",viewBox:"0 0 19 18",fill:"none"},P=e.defineComponent({...k.getComponentOptions("ColorTrigger"),__name:"ColorSwatch",props:{class:{},icon:{},fg:{},bg:{},br:{},size:{default:"md"},selected:{type:Boolean},type:{default:"color"},customPickerIcon:{default:"tabler:palette"}},setup(u){const o=u,r=s.getBemBlock("color_swatch"),p=C.cva(r,{variants:{selected:s.generateVariantClassList("selected",r),size:s.generateVariantClassList(c,r),type:s.generateVariantClassList(l,r)}}),n=e.computed(()=>o.size&&c.includes(o.size)?o.size:"md"),m=e.computed(()=>({size:n.value,..._.omit(o,"size","class","type","selected")})),d=e.useSlots(),v=e.computed(()=>{switch(o.type){case"color":return"div";case"custom-picker":return h._sfc_main;case"remover":return"div"}}),y=e.computed(()=>{const t={};return o.type==="custom-picker"&&(t.size=n.value,t.icon=o.customPickerIcon,t.color="gray",t.type="outline"),t});return(t,i)=>(e.openBlock(),e.createBlock(e.unref(f.Primitive),e.mergeProps({as:v.value,class:[e.unref(p)({selected:t.type!=="custom-picker"&&o.selected,size:t.size,type:t.type}),o.class]},y.value),{icon:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",e.normalizeProps(e.guardReactiveProps(o)))]),default:e.withCtx(()=>[t.type==="color"?(e.openBlock(),e.createBlock(g._sfc_main,e.normalizeProps(e.mergeProps({key:0},m.value)),e.createSlots({_:2},[e.renderList(Object.keys(d),a=>({name:a,fn:e.withCtx(()=>[e.renderSlot(t.$slots,a,e.normalizeProps(e.guardReactiveProps(o)))])}))]),1040)):t.type==="remover"?(e.openBlock(),e.createElementBlock("svg",z,i[0]||(i[0]=[e.createElementVNode("path",{id:"Empty Indicator",d:"M17.5 1L1.5 17",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},null,-1)]))):e.createCommentVNode("",!0),t.type==="custom-picker"?e.renderSlot(t.$slots,"default",e.normalizeProps(e.mergeProps({key:2},o))):e.createCommentVNode("",!0)]),_:3},16,["as","class"]))}});exports.ColorSwatchSizes=c;exports.ColorSwatchTypes=l;exports._sfc_main=P;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, createBlock as n, openBlock as p, unref as t, normalizeClass as l, withCtx as m, renderSlot as c } from "vue";
|
|
2
|
-
import { Primitive as f } from "radix-vue";
|
|
3
|
-
import { g as d, a as v } from "./class-DziTeW9B.js";
|
|
4
|
-
import { cva as u } from "class-variance-authority";
|
|
5
|
-
import { g as C } from "./options-JBqnVZUl.js";
|
|
6
|
-
const g = ["horizontal", "vertical"], z = /* @__PURE__ */ i({
|
|
7
|
-
...C("Divider"),
|
|
8
|
-
__name: "Divider",
|
|
9
|
-
props: {
|
|
10
|
-
type: { default: "horizontal" },
|
|
11
|
-
class: {},
|
|
12
|
-
as: { default: "div" }
|
|
13
|
-
},
|
|
14
|
-
setup(a) {
|
|
15
|
-
const r = a, s = d("divider"), o = u(s, {
|
|
16
|
-
variants: {
|
|
17
|
-
type: v(g, s)
|
|
18
|
-
// hasChild: generateVariantClassList('has-child', prefix),
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return (e, y) => (p(), n(t(f), {
|
|
22
|
-
as: e.as,
|
|
23
|
-
class: l([
|
|
24
|
-
t(o)({
|
|
25
|
-
type: e.type
|
|
26
|
-
}),
|
|
27
|
-
r.class
|
|
28
|
-
])
|
|
29
|
-
}, {
|
|
30
|
-
default: m(() => [
|
|
31
|
-
c(e.$slots, "default")
|
|
32
|
-
]),
|
|
33
|
-
_: 3
|
|
34
|
-
}, 8, ["as", "class"]));
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
g as D,
|
|
39
|
-
z as _
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),c=require("radix-vue"),r=require("./class-CjZYGZDW.js"),l=require("class-variance-authority"),u=require("./options-B4iSAKol.js"),i=["horizontal","vertical"],p=e.defineComponent({...u.getComponentOptions("Divider"),__name:"Divider",props:{type:{default:"horizontal"},class:{},as:{default:"div"}},setup(a){const n=a,t=r.getBemBlock("divider"),o=l.cva(t,{variants:{type:r.generateVariantClassList(i,t)}});return(s,d)=>(e.openBlock(),e.createBlock(e.unref(c.Primitive),{as:s.as,class:e.normalizeClass([e.unref(o)({type:s.type}),n.class])},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["as","class"]))}});exports.DividerTypes=i;exports._sfc_main=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),l=require("./omit-DlH5U9Jc.js"),p=require("./BaseButton.vue_vue_type_style_index_0_lang-gzePKYHN.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("FloatButton",!1),__name:"FloatButton",props:{as:{},class:{},color:{},loading:{type:Boolean},size:{},icon:{},type:{}},setup(s,{expose:r}){const a=s,c=e.useAttrs(),i=e.computed(()=>({...l.omit(c,"variant","text","preIcon","postIcon","action","active","badgeText"),...a})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(p._sfc_main,e.mergeProps(i.value,{variant:"float",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),u=require("./omit-DlH5U9Jc.js"),g=require("./BaseBadge.vue_vue_type_style_index_0_lang-OEeJw0Sy.js"),b=require("./options-B4iSAKol.js"),t=require("@pantograph/tokens"),m=e.defineComponent({...b.getComponentOptions("GraphicalObject",!1),__name:"GraphicalObject",props:{as:{},class:{},icon:{},fg:{},bg:{},br:{},size:{}},setup(c){const s=c,i=e.computed(()=>{const a=Object.fromEntries(g.BadgeColors.map(r=>[r,t.getCssVar(`${r}-5`)])),o={...a,...Object.fromEntries(g.BadgeColorsSubtle.map(r=>[r,t.getCssVar(`${r.replace("-subtle","")}-0`)])),transparent:"transparent","gray-subtle":t.getCssVar("gray-1")},n={...a,gray:t.getCssVar("gray-6"),default:t.getCssVar("gray-8"),"default-subtle":t.getCssVar("gray-5"),white:t.getCssVar("grayscale-light-0"),black:t.getCssVar("grayscale-light-10")};return{bg:o[s.bg]??s.bg,br:o[s.br]??(s.bg==="transparent"?t.getCssVar("gray-2"):void 0),fg:n[s.fg??"default"]??s.fg}}),l=e.useAttrs(),p=e.computed(()=>({...u.omit(l,"type","text"),...s,...i.value}));return(a,o)=>(e.openBlock(),e.createBlock(g._sfc_main,e.mergeProps(p.value,{type:"rect"}),e.createSlots({_:2},[e.renderList(Object.keys(a.$slots),n=>({name:n,fn:e.withCtx(r=>[e.renderSlot(a.$slots,n,e.normalizeProps(e.guardReactiveProps(r)))])}))]),1040))}});exports._sfc_main=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=require("./omit-DlH5U9Jc.js"),l=require("./BaseButton.vue_vue_type_style_index_0_lang-gzePKYHN.js"),_=require("./options-B4iSAKol.js"),f=e.defineComponent({..._.getComponentOptions("IconButton",!1),__name:"IconButton",props:{as:{},class:{},type:{},color:{},loading:{type:Boolean},icon:{},size:{}},setup(s,{expose:r}){const c=s,a=e.useAttrs(),i=e.computed(()=>({...p.omit(a,"variant","preIcon","postIcon","text","action","active","badgeText"),...c})),o=e.ref();return r({focus(){var t;(t=o.value)==null||t.focus()},blur(){var t;(t=o.value)==null||t.blur()}}),(t,m)=>(e.openBlock(),e.createBlock(l._sfc_main,e.mergeProps(i.value,{variant:"icon",ref_key:"buttonRef",ref:o}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),n=>({name:n,fn:e.withCtx(u=>[e.renderSlot(t.$slots,n,e.normalizeProps(e.guardReactiveProps(u)))])}))]),1040))}});exports._sfc_main=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./class-CjZYGZDW.js"),u=require("radix-vue"),k=require("class-variance-authority"),g=require("./options-B4iSAKol.js"),d=require("./Divider.vue_vue_type_style_index_0_lang-C6Suy0tD.js"),L=require("./Spinner.vue_vue_type_style_index_0_lang-CxNO28J7.js"),_=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-Bouixpu2.js"),y=require("./isNumber-eaDdxhkG.js"),m=["2xsm","xsm","sm"],C=["last","all","before","self"],b={key:0},w=e.defineComponent({...g.getComponentOptions("IndentLevel"),__name:"IndentLevel",props:{size:{default:"xsm"},showLine:{type:[Number,Boolean]},children:{type:Boolean},level:{default:1},expanded:{type:Boolean},loading:{type:Boolean},class:{},branchIcon:{default:"tabler:chevron-right"},noRotateBranch:{type:Boolean},as:{}},setup(p){const t=p,s=a.getBemBlock("indent_level"),i=a.getBemElement(s,"item"),f=a.getBemElement(i,"branch"),v=k.cva(s,{variants:{size:a.generateVariantClassList(m,s),expanded:a.generateVariantClassList("expanded",s),branchSlot:a.generateVariantClassList("branch-slot",s),selfDivider:a.generateVariantClassList("self-divider",s),noRotateBranch:a.generateVariantClassList("no-rotate-branch",s),loading:a.generateVariantClassList("loading",s)}}),r=e.computed(()=>{const n=Number(t.level);return n<1?1:n%10===0?n:Math.floor(n)}),l=e.computed(()=>{if(t.showLine)return typeof t.showLine=="string"?["all","self"].includes(t.showLine):y.isNumber(t.showLine)&&t.showLine<=Number(t.level)}),h=n=>typeof t.showLine=="number"?t.showLine<=Number(n):!1;return(n,c)=>(e.openBlock(),e.createBlock(e.unref(u.Primitive),{as:n.as,class:e.normalizeClass([e.unref(v)({size:n.size,expanded:n.expanded,noRotateBranch:n.noRotateBranch,branchSlot:n.$slots.default,selfDivider:l.value,loading:n.loading}),t.class])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,o=>(e.openBlock(),e.createBlock(e.unref(u.Primitive),{as:n.as,class:e.normalizeClass([e.unref(i),{[e.unref(a.getBemModifier)(e.unref(s),"expand")]:o===r.value}]),key:o},{default:e.withCtx(()=>[o===r.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.children?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.loading?(e.openBlock(),e.createBlock(L._sfc_main,{key:1,size:n.size},null,8,["size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.expanded&&l.value?(e.openBlock(),e.createElementBlock("div",b)):e.createCommentVNode("",!0),e.createVNode(_._sfc_main,{size:n.size,icon:n.branchIcon,color:"none",class:e.normalizeClass(e.unref(f)),onClick:c[0]||(c[0]=B=>n.$emit("toggleExpand",B))},{icon:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["size","icon","class"]),n.expanded&&l.value?(e.openBlock(),e.createBlock(d._sfc_main,{key:1,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)],64)):["all","before"].includes(n.showLine)||n.showLine==="last"&&o===r.value-1||h(o)?(e.openBlock(),e.createBlock(d._sfc_main,{key:1,type:"vertical"})):e.createCommentVNode("",!0)]),_:2},1032,["as","class"]))),128))]),_:3},8,["as","class"]))}});exports.IndentLevelShowLines=C;exports.IndentLevelSizes=m;exports._sfc_main=w;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, computed as g, createBlock as l, openBlock as s, unref as a, normalizeClass as f, withCtx as p, createElementBlock as i, Fragment as m, renderList as N, createCommentVNode as c, createVNode as S, renderSlot as $ } from "vue";
|
|
2
|
-
import { g as R, a as r, b as L, c as D } from "./class-DziTeW9B.js";
|
|
3
|
-
import { Primitive as b } from "radix-vue";
|
|
4
|
-
import { cva as E } from "class-variance-authority";
|
|
5
|
-
import { g as V } from "./options-JBqnVZUl.js";
|
|
6
|
-
import { _ as y } from "./Divider.vue_vue_type_style_index_0_lang-B_4XMyuu.js";
|
|
7
|
-
import { _ } from "./Spinner.vue_vue_type_style_index_0_lang-D6nB06Z8.js";
|
|
8
|
-
import { _ as M } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-Cc4PxUnd.js";
|
|
9
|
-
import { i as F } from "./isNumber-DlKYWCo3.js";
|
|
10
|
-
const O = ["2xsm", "xsm", "sm"], U = ["last", "all", "before", "self"], P = { key: 0 }, W = /* @__PURE__ */ C({
|
|
11
|
-
...V("IndentLevel"),
|
|
12
|
-
__name: "IndentLevel",
|
|
13
|
-
props: {
|
|
14
|
-
size: { default: "xsm" },
|
|
15
|
-
showLine: { type: [Number, Boolean] },
|
|
16
|
-
children: { type: Boolean },
|
|
17
|
-
level: { default: 1 },
|
|
18
|
-
expanded: { type: Boolean },
|
|
19
|
-
loading: { type: Boolean },
|
|
20
|
-
class: {},
|
|
21
|
-
branchIcon: { default: "tabler:chevron-right" },
|
|
22
|
-
noRotateBranch: { type: Boolean },
|
|
23
|
-
as: {}
|
|
24
|
-
},
|
|
25
|
-
setup(B) {
|
|
26
|
-
const n = B, o = R("indent_level"), h = L(o, "item"), k = L(h, "branch"), w = E(o, {
|
|
27
|
-
variants: {
|
|
28
|
-
size: r(O, o),
|
|
29
|
-
expanded: r("expanded", o),
|
|
30
|
-
branchSlot: r("branch-slot", o),
|
|
31
|
-
selfDivider: r("self-divider", o),
|
|
32
|
-
noRotateBranch: r("no-rotate-branch", o),
|
|
33
|
-
loading: r("loading", o)
|
|
34
|
-
}
|
|
35
|
-
}), d = g(() => {
|
|
36
|
-
const e = Number(n.level);
|
|
37
|
-
return e < 1 ? 1 : e % 10 === 0 ? e : Math.floor(e);
|
|
38
|
-
}), u = g(() => {
|
|
39
|
-
if (n.showLine)
|
|
40
|
-
return typeof n.showLine == "string" ? ["all", "self"].includes(n.showLine) : F(n.showLine) && n.showLine <= Number(n.level);
|
|
41
|
-
}), z = (e) => typeof n.showLine == "number" ? n.showLine <= Number(e) : !1;
|
|
42
|
-
return (e, v) => (s(), l(a(b), {
|
|
43
|
-
as: e.as,
|
|
44
|
-
class: f([
|
|
45
|
-
a(w)({
|
|
46
|
-
size: e.size,
|
|
47
|
-
expanded: e.expanded,
|
|
48
|
-
noRotateBranch: e.noRotateBranch,
|
|
49
|
-
branchSlot: e.$slots.default,
|
|
50
|
-
selfDivider: u.value,
|
|
51
|
-
loading: e.loading
|
|
52
|
-
}),
|
|
53
|
-
n.class
|
|
54
|
-
])
|
|
55
|
-
}, {
|
|
56
|
-
default: p(() => [
|
|
57
|
-
(s(!0), i(m, null, N(d.value, (t) => (s(), l(a(b), {
|
|
58
|
-
as: e.as,
|
|
59
|
-
class: f([a(h), { [a(D)(a(o), "expand")]: t === d.value }]),
|
|
60
|
-
key: t
|
|
61
|
-
}, {
|
|
62
|
-
default: p(() => [
|
|
63
|
-
t === d.value ? (s(), i(m, { key: 0 }, [
|
|
64
|
-
e.children ? (s(), i(m, { key: 0 }, [
|
|
65
|
-
e.loading ? (s(), l(_, {
|
|
66
|
-
key: 1,
|
|
67
|
-
size: e.size
|
|
68
|
-
}, null, 8, ["size"])) : (s(), i(m, { key: 0 }, [
|
|
69
|
-
e.expanded && u.value ? (s(), i("div", P)) : c("", !0),
|
|
70
|
-
S(M, {
|
|
71
|
-
size: e.size,
|
|
72
|
-
icon: e.branchIcon,
|
|
73
|
-
color: "none",
|
|
74
|
-
class: f(a(k)),
|
|
75
|
-
onClick: v[0] || (v[0] = (I) => e.$emit("toggleExpand", I))
|
|
76
|
-
}, {
|
|
77
|
-
icon: p(() => [
|
|
78
|
-
$(e.$slots, "default")
|
|
79
|
-
]),
|
|
80
|
-
_: 3
|
|
81
|
-
}, 8, ["size", "icon", "class"]),
|
|
82
|
-
e.expanded && u.value ? (s(), l(y, {
|
|
83
|
-
key: 1,
|
|
84
|
-
type: "vertical"
|
|
85
|
-
})) : c("", !0)
|
|
86
|
-
], 64))
|
|
87
|
-
], 64)) : c("", !0)
|
|
88
|
-
], 64)) : ["all", "before"].includes(e.showLine) || e.showLine === "last" && t === d.value - 1 || z(t) ? (s(), l(y, {
|
|
89
|
-
key: 1,
|
|
90
|
-
type: "vertical"
|
|
91
|
-
})) : c("", !0)
|
|
92
|
-
]),
|
|
93
|
-
_: 2
|
|
94
|
-
}, 1032, ["as", "class"]))), 128))
|
|
95
|
-
]),
|
|
96
|
-
_: 3
|
|
97
|
-
}, 8, ["as", "class"]));
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
export {
|
|
101
|
-
O as I,
|
|
102
|
-
W as _,
|
|
103
|
-
U as a
|
|
104
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("./omit-DlH5U9Jc.js"),n=require("./BaseBadge.vue_vue_type_style_index_0_lang-OEeJw0Sy.js"),d=require("./options-B4iSAKol.js"),c=require("@pantograph/tokens"),g=e.defineComponent({...d.getComponentOptions("Indicator",!1),__name:"Indicator",props:{as:{},class:{},size:{},color:{}},setup(a){const s=a,i=e.useAttrs(),p=e.computed(()=>({bg:Object.fromEntries(n.BadgeColors.map(t=>[t,c.getCssVar(`${t}-5`)]))[s.color]??c.getCssVar("primary-5")})),u=e.computed(()=>({..._.omit(i,"type","text","icon","mode"),...s,...p.value})),m=e.useSlots();return(o,t)=>(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps(u.value,{type:"minify",mode:"bold"}),e.createSlots({_:2},[e.renderList(Object.keys(m),r=>({name:r,fn:e.withCtx(l=>[e.renderSlot(o.$slots,r,e.normalizeProps(e.guardReactiveProps(l)))])}))]),1040))}});exports._sfc_main=g;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./class-CjZYGZDW.js"),r=require("class-variance-authority"),i=require("radix-vue"),l=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),u=require("./options-B4iSAKol.js"),d=e.defineComponent({...u.getComponentOptions("Kbd"),__name:"Kbd",props:{iconOnly:{type:Boolean},class:{},containerCls:{},containerAs:{},text:{default:void 0},icon:{},as:{default:"div"}},setup(a){const s=a,o=t.getBemBlock("kbd"),c=r.cva(o,{variants:{iconOnly:t.generateVariantClassList("icon-only",o)}});return(n,y)=>(e.openBlock(),e.createBlock(e.unref(i.Primitive),{class:e.normalizeClass([e.unref(c)({iconOnly:s.iconOnly}),s.class]),key:s.as,as:n.as},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.unref(i.Primitive),{class:e.normalizeClass([e.unref(t.getBemElement)(e.unref(o),"container"),s.containerCls]),key:n.iconOnly,as:n.containerAs,"as-child":n.iconOnly},{default:e.withCtx(()=>[n.iconOnly?(e.openBlock(),e.createBlock(l._sfc_main,{key:0,icon:n.icon,size:"2xsm"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"icon")]),_:3},8,["icon"])):e.renderSlot(n.$slots,"text",{key:1},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])]),_:3},8,["class","as","as-child"]))]),_:3},8,["class","as"]))}});exports._sfc_main=d;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, createBlock as a, openBlock as t, unref as s, normalizeClass as r, withCtx as i, renderSlot as l, createTextVNode as d, toDisplayString as y } from "vue";
|
|
2
|
-
import { g as u, a as k, b as C } from "./class-DziTeW9B.js";
|
|
3
|
-
import { cva as O } from "class-variance-authority";
|
|
4
|
-
import { Primitive as c } from "radix-vue";
|
|
5
|
-
import { _ as g } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
6
|
-
import { g as v } from "./options-JBqnVZUl.js";
|
|
7
|
-
const K = /* @__PURE__ */ f({
|
|
8
|
-
...v("Kbd"),
|
|
9
|
-
__name: "Kbd",
|
|
10
|
-
props: {
|
|
11
|
-
iconOnly: { type: Boolean },
|
|
12
|
-
class: {},
|
|
13
|
-
containerCls: {},
|
|
14
|
-
containerAs: {},
|
|
15
|
-
text: { default: void 0 },
|
|
16
|
-
icon: {},
|
|
17
|
-
as: { default: "div" }
|
|
18
|
-
},
|
|
19
|
-
setup(m) {
|
|
20
|
-
const o = m, e = u("kbd"), p = O(e, {
|
|
21
|
-
variants: {
|
|
22
|
-
iconOnly: k("icon-only", e)
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
return (n, B) => (t(), a(s(c), {
|
|
26
|
-
class: r([s(p)({ iconOnly: o.iconOnly }), o.class]),
|
|
27
|
-
key: o.as,
|
|
28
|
-
as: n.as
|
|
29
|
-
}, {
|
|
30
|
-
default: i(() => [
|
|
31
|
-
(t(), a(s(c), {
|
|
32
|
-
class: r([s(C)(s(e), "container"), o.containerCls]),
|
|
33
|
-
key: n.iconOnly,
|
|
34
|
-
as: n.containerAs,
|
|
35
|
-
"as-child": n.iconOnly
|
|
36
|
-
}, {
|
|
37
|
-
default: i(() => [
|
|
38
|
-
n.iconOnly ? (t(), a(g, {
|
|
39
|
-
key: 0,
|
|
40
|
-
icon: n.icon,
|
|
41
|
-
size: "2xsm"
|
|
42
|
-
}, {
|
|
43
|
-
default: i(() => [
|
|
44
|
-
l(n.$slots, "icon")
|
|
45
|
-
]),
|
|
46
|
-
_: 3
|
|
47
|
-
}, 8, ["icon"])) : l(n.$slots, "text", { key: 1 }, () => [
|
|
48
|
-
d(y(n.text), 1)
|
|
49
|
-
])
|
|
50
|
-
]),
|
|
51
|
-
_: 3
|
|
52
|
-
}, 8, ["class", "as", "as-child"]))
|
|
53
|
-
]),
|
|
54
|
-
_: 3
|
|
55
|
-
}, 8, ["class", "as"]));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
K as _
|
|
60
|
-
};
|