@pantograph/vue 0.10.1 → 0.10.3
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-KL8JuFlI.js → ActionButton.vue_vue_type_script_setup_true_lang-Bmld__SV.js} +1 -2
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-Bno9iBJg.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-BBmLnOBV.js +1 -0
- package/dist/Avatar.vue_vue_type_style_index_0_lang-ZqNWAzDy.js +182 -0
- package/dist/AvatarGroup/AvatarGroup.d.ts +3 -6
- 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-nmw9qfJ_.js → Badge.vue_vue_type_script_setup_true_lang-CCIamdNB.js} +1 -2
- 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-4ju_QUXH.js +1 -0
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CEY27kcT.js +160 -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-DIj3gT2D.js → Button.vue_vue_type_script_setup_true_lang-BHumLt2E.js} +5 -6
- package/dist/Button.vue_vue_type_script_setup_true_lang-BZ0h9oaW.js +1 -0
- 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-Dq-kFXox.js → ColorPicker.vue_vue_type_style_index_0_lang-Bj735O4E.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-C36JPo4m.js → ColorPicker.vue_vue_type_style_index_0_lang-C86gVRVp.js} +1 -1
- 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-8sQWWbLp.js +100 -0
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-Bt9Tu3La.js +1 -0
- package/dist/ColorSwatchGroup/ColorSwatchGroup.d.ts +17 -11
- package/dist/ColorSwatchGroup/index.js.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs.js +1 -1
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-BiHYDJTg.js +159 -0
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-DmF-FkKK.js +1 -0
- package/dist/ColorTrigger/ColorTrigger.d.ts +13 -5
- package/dist/ColorTrigger/index.js.js +1 -1
- 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-Bapsnc_p.js → FloatButton.vue_vue_type_script_setup_true_lang-Bg4MdrWW.js} +1 -2
- package/dist/FloatButton.vue_vue_type_script_setup_true_lang-Bsmuycb8.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-B3FouRlw.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BEZ6FkRf.js} +1 -2
- 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-dI6-RNyi.js → IconButton.vue_vue_type_script_setup_true_lang-DJGgntqa.js} +1 -2
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-DU9MPZq2.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-ICqvLVbq.js → Indicator.vue_vue_type_script_setup_true_lang-B16OmZLF.js} +1 -2
- 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.js.js +1 -1
- package/dist/Input/index.umd.cjs.js +1 -1
- 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-CG9UOulA.js +1 -0
- package/dist/Menu.vue_vue_type_style_index_0_lang-CtqLC5y9.js +482 -0
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItem/index.js.js +1 -1
- package/dist/MenuItem/index.umd.cjs.js +1 -1
- package/dist/Popover/Popover.d.ts +83 -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-DRMPu5Ij.js +1 -0
- package/dist/{Popover.vue_vue_type_style_index_0_lang-C0IwnsU5.js → Popover.vue_vue_type_style_index_0_lang-vZfwRHoU.js} +22 -21
- 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 +4 -8
- 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-BjcjY70B.js +58 -0
- package/dist/Skeleton.vue_vue_type_style_index_0_lang-gJRxIuPb.js +1 -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/index.js.js +66 -62
- package/dist/index.umd.cjs.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 +7 -3
- package/dist/ActionButton.vue_vue_type_script_setup_true_lang-BVtP6mpl.js +0 -1
- package/dist/Avatar.vue_vue_type_style_index_0_lang-BHYcXGuX.js +0 -188
- package/dist/Avatar.vue_vue_type_style_index_0_lang-DKGY3npY.js +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-BcdNUohN.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-BrQJfrgg.js +0 -159
- package/dist/BaseButton.vue_vue_type_style_index_0_lang-CTK5nNR6.js +0 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-7V57ztN4.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-C6Mdufam.js +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_lang-DNlvOQmv.js +0 -216
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-Bo-zDAyc.js +0 -1
- package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DmLhCPh4.js +0 -102
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CIkTvqD_.js +0 -165
- package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-T_L-D2SS.js +0 -1
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DSZ8fAZ9.js +0 -91
- package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-DwyinKNj.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-C56u1xaL.js +0 -1
- package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-DlMeNk_1.js +0 -1
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-7QB-mmyg.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-CM6s5E6c.js +0 -1
- package/dist/IndentLevel.vue_vue_type_style_index_0_lang-nGsyFkwr.js +0 -104
- package/dist/Indicator.vue_vue_type_script_setup_true_lang-C4Ecg4iy.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-D0zx-hd_.js +0 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-cjYJlwXf.js +0 -413
- 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-DHGED80D.js +0 -481
- package/dist/Menu.vue_vue_type_style_index_0_lang-DU0Rexv8.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-CM8qMFEi.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-DWfKIuDH.js +0 -100
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-s-m7W1By.js +0 -1
- 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-BzC8-ylY.js +0 -103
- package/dist/Switch.vue_vue_type_style_index_0_lang-DnNHGn1c.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-B-BPV_p7.js +0 -547
- package/dist/Tree.vue_vue_type_style_index_0_lang-BIpFWo5L.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as j, useSlots as K, computed as
|
|
1
|
+
import { defineComponent as j, useSlots as K, computed as n, ref as N, unref as f, createBlock as m, openBlock as d, resolveDynamicComponent as g, mergeProps as y, withCtx as v, renderSlot as B, normalizeProps as q, guardReactiveProps as G, withDirectives as I, vShow as J } from "vue";
|
|
2
2
|
import { b as k, a as Q, g as W } from "./class-DziTeW9B.js";
|
|
3
3
|
import { cva as X } from "class-variance-authority";
|
|
4
|
-
import { useEmitAsProps as Y, HoverCardRoot as Z, PopoverRoot as x, HoverCardTrigger as ee, PopoverTrigger as te, HoverCardPortal as oe, PopoverPortal as re, HoverCardContent as
|
|
4
|
+
import { useEmitAsProps as Y, HoverCardRoot as Z, PopoverRoot as x, HoverCardTrigger as ee, PopoverTrigger as te, HoverCardPortal as oe, PopoverPortal as re, HoverCardContent as ne, PopoverContent as se } from "radix-vue";
|
|
5
5
|
import { f as ae, b as ie, a as le } from "./element-CddU1vUY.js";
|
|
6
6
|
import { g as pe } from "./options-JBqnVZUl.js";
|
|
7
7
|
import { injectConfigContext as ce } from "./ConfigProvider/index.js.js";
|
|
@@ -26,6 +26,7 @@ const ue = ["sm", "md", "lg"], Oe = [
|
|
|
26
26
|
props: {
|
|
27
27
|
class: {},
|
|
28
28
|
containerClass: {},
|
|
29
|
+
containerCls: {},
|
|
29
30
|
containerProps: {},
|
|
30
31
|
trigger: { default: "hover" },
|
|
31
32
|
size: { default: "md" },
|
|
@@ -45,24 +46,24 @@ const ue = ["sm", "md", "lg"], Oe = [
|
|
|
45
46
|
collisionBoundary: {}
|
|
46
47
|
},
|
|
47
48
|
emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
48
|
-
setup(S, { emit:
|
|
49
|
-
const
|
|
49
|
+
setup(S, { emit: $ }) {
|
|
50
|
+
const h = Y($), t = S, D = W("popover"), R = k(D, "trigger"), O = k(D, "content"), _ = X(O, {
|
|
50
51
|
variants: {
|
|
51
52
|
size: Q(ue, O)
|
|
52
53
|
}
|
|
53
|
-
}), P = K(), b =
|
|
54
|
+
}), P = K(), b = n(() => {
|
|
54
55
|
var o;
|
|
55
56
|
const e = ae((o = P.default) == null ? void 0 : o.call(P)) ?? null, r = e.length === 1 ? e[0] : e;
|
|
56
57
|
return r ? ie(r) && !le(r) : !0;
|
|
57
|
-
}), A =
|
|
58
|
+
}), A = n(() => ({
|
|
58
59
|
...z(t, "open", "defaultOpen"),
|
|
59
|
-
...z(
|
|
60
|
-
})), l = N(), E =
|
|
61
|
-
var c,
|
|
60
|
+
...z(h, "onUpdate:open")
|
|
61
|
+
})), l = N(), E = n(() => {
|
|
62
|
+
var c, s, u, i, C;
|
|
62
63
|
const { to: e, disabled: r, forceMount: o } = t;
|
|
63
64
|
let p = ((c = f(e)) == null ? void 0 : c.$el) ?? f(e);
|
|
64
65
|
if (e instanceof Function) {
|
|
65
|
-
const V = ((u = (
|
|
66
|
+
const V = ((u = (s = l.value) == null ? void 0 : s.$el) == null ? void 0 : u.nodeName) !== "#text" ? (i = l.value) == null ? void 0 : i.$el : (C = l.value) == null ? void 0 : C.$el.nextSibling;
|
|
66
67
|
p = e(V);
|
|
67
68
|
}
|
|
68
69
|
return {
|
|
@@ -70,22 +71,22 @@ const ue = ["sm", "md", "lg"], Oe = [
|
|
|
70
71
|
disabled: r,
|
|
71
72
|
forceMount: o
|
|
72
73
|
};
|
|
73
|
-
}), F =
|
|
74
|
+
}), F = n(() => t.trigger === "hover" ? Z : x), H = n(() => t.trigger === "hover" ? ee : te), T = n(() => t.trigger === "hover" ? oe : re), L = n(() => t.trigger === "hover" ? ne : se), a = ce(), M = n(() => {
|
|
74
75
|
var i;
|
|
75
76
|
const { sticky: e, prioritizePosition: r, placement: o, sideOffset: p, alignOffset: c } = t;
|
|
76
77
|
let [
|
|
77
|
-
|
|
78
|
+
s = "bottom",
|
|
78
79
|
u = "center"
|
|
79
80
|
] = ((i = o == null ? void 0 : o.split) == null ? void 0 : i.call(o, "-")) || ["bottom", "center"];
|
|
80
|
-
return t.reversePlacementOnDir && (a != null && a.dir.value) && (a == null ? void 0 : a.dir.value) === t.reversePlacementOnDir && (
|
|
81
|
+
return t.reversePlacementOnDir && (a != null && a.dir.value) && (a == null ? void 0 : a.dir.value) === t.reversePlacementOnDir && (s = {
|
|
81
82
|
right: "left",
|
|
82
83
|
left: "right"
|
|
83
|
-
}[
|
|
84
|
-
...w(
|
|
84
|
+
}[s] ?? s), {
|
|
85
|
+
...w(h, "onUpdate:open"),
|
|
85
86
|
...w(t.containerProps, "class"),
|
|
86
87
|
sticky: e,
|
|
87
88
|
prioritizePosition: r,
|
|
88
|
-
side:
|
|
89
|
+
side: s,
|
|
89
90
|
align: u,
|
|
90
91
|
sideOffset: p,
|
|
91
92
|
alignOffset: c
|
|
@@ -93,17 +94,17 @@ const ue = ["sm", "md", "lg"], Oe = [
|
|
|
93
94
|
}), U = (e) => {
|
|
94
95
|
t.trigger === "hover" && e.stopPropagation();
|
|
95
96
|
};
|
|
96
|
-
return (e, r) => (d(), m(g(F.value),
|
|
97
|
+
return (e, r) => (d(), m(g(F.value), y({
|
|
97
98
|
key: b.value
|
|
98
99
|
}, A.value, {
|
|
99
100
|
openDelay: e.openDelay,
|
|
100
101
|
closeDelay: e.closeDelay
|
|
101
102
|
}), {
|
|
102
103
|
default: v(({ open: o }) => [
|
|
103
|
-
(d(), m(g(H.value),
|
|
104
|
+
(d(), m(g(H.value), y({
|
|
104
105
|
asChild: b.value,
|
|
105
106
|
as: "span",
|
|
106
|
-
class: [f(
|
|
107
|
+
class: [f(R), t.class],
|
|
107
108
|
onPointerdown: U
|
|
108
109
|
}, e.$attrs, {
|
|
109
110
|
ref_key: "triggerRef",
|
|
@@ -116,8 +117,8 @@ const ue = ["sm", "md", "lg"], Oe = [
|
|
|
116
117
|
}, 16, ["asChild", "class"])),
|
|
117
118
|
(d(), m(g(T.value), q(G(E.value)), {
|
|
118
119
|
default: v(() => [
|
|
119
|
-
I((d(), m(g(L.value),
|
|
120
|
-
class: [f(
|
|
120
|
+
I((d(), m(g(L.value), y(M.value, {
|
|
121
|
+
class: [f(_)({ size: e.size }), e.containerClass, e.containerCls]
|
|
121
122
|
}), {
|
|
122
123
|
default: v(() => [
|
|
123
124
|
B(e.$slots, "content")
|
|
@@ -7,15 +7,22 @@ export interface RadioGroupProps extends RadioGroupRootProps {
|
|
|
7
7
|
size?: RadioGroupSize;
|
|
8
8
|
class?: Class;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<RadioGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
19
|
"update:modelValue": (payload: string) => any;
|
|
12
20
|
}, string, import('vue').PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
13
21
|
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
14
22
|
}>, {
|
|
15
|
-
size:
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
17
|
-
|
|
18
|
-
}>;
|
|
23
|
+
size: RadioGroupSize;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
26
|
export default _default;
|
|
20
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
28
|
new (): {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RadioGroupItemProps as RadixRadioGroupItemProps
|
|
1
|
+
import { RadioGroupItemProps as RadixRadioGroupItemProps } from 'radix-vue';
|
|
2
2
|
import { Class } from '../types';
|
|
3
|
-
export interface RadioGroupItemProps extends Omit<
|
|
3
|
+
export interface RadioGroupItemProps extends Omit<RadixRadioGroupItemProps, 'asChild' | 'as'> {
|
|
4
4
|
class?: Class;
|
|
5
5
|
rootCls?: Class;
|
|
6
6
|
labelCls?: Class;
|
|
@@ -10,7 +10,15 @@ export declare const radioGroupPrefix: string;
|
|
|
10
10
|
export interface RadioGroupSlots {
|
|
11
11
|
label?: () => never;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
blur: (e: InputEvent) => any;
|
|
15
|
+
focus: (e: InputEvent) => any;
|
|
16
|
+
"update:modelValue": (payload: string) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
|
|
18
|
+
onBlur?: ((e: InputEvent) => any) | undefined;
|
|
19
|
+
onFocus?: ((e: InputEvent) => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<RadioGroupSlots> & RadioGroupSlots>;
|
|
14
22
|
export default _default;
|
|
15
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
24
|
new (): {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as RadioGroup, type RadioGroupProps } from './RadioGroup';
|
|
1
|
+
export { default as RadioGroup, type RadioGroupProps, default } from './RadioGroup';
|
|
2
2
|
export { default as RadioGroupItem, type RadioGroupItemProps } from './RadioGroupItem';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { _ as r, a as
|
|
1
|
+
import { _ as r, a as d, _ as e } from "../RadioGroup.vue_vue_type_script_setup_true_lang-C8nd4TEI.js";
|
|
2
2
|
export {
|
|
3
3
|
r as RadioGroup,
|
|
4
|
-
|
|
4
|
+
d as RadioGroupItem,
|
|
5
|
+
e as default
|
|
5
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../RadioGroup.vue_vue_type_script_setup_true_lang-DjEHmvMo.js");exports.RadioGroup=e._sfc_main;exports.RadioGroupItem=e._sfc_main$1;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { defineComponent as G, useSlots as P, computed as m, createElementBlock as g, openBlock as t, mergeProps as d, unref as e, createVNode as _, createCommentVNode as R, withCtx as V, normalizeClass as v, renderSlot as h, createTextVNode as S, toDisplayString as z, createBlock as y, Fragment as w, renderList as x } from "vue";
|
|
2
|
+
import { RadioGroupItem as D, RadioGroupIndicator as E, useForwardPropsEmits as L, RadioGroupRoot as N } from "radix-vue";
|
|
3
|
+
import { cva as $ } from "class-variance-authority";
|
|
4
|
+
import { o as k } from "./omit-BEkBWXra.js";
|
|
5
|
+
import { g as I } from "./options-JBqnVZUl.js";
|
|
6
|
+
import { u as q } from "./useId-DvOSMFGX.js";
|
|
7
|
+
import { U as F } from "./useInputDataStates-CZbdWpyp.js";
|
|
8
|
+
import { g as U, b as n, a as O } from "./class-DziTeW9B.js";
|
|
9
|
+
const T = ["for"], B = U("radio_group"), j = /* @__PURE__ */ G({
|
|
10
|
+
...I("RadioGroupItem"),
|
|
11
|
+
__name: "RadioGroupItem",
|
|
12
|
+
props: {
|
|
13
|
+
class: {},
|
|
14
|
+
rootCls: {},
|
|
15
|
+
labelCls: {},
|
|
16
|
+
label: {},
|
|
17
|
+
id: {},
|
|
18
|
+
value: {},
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
required: { type: Boolean },
|
|
21
|
+
name: {}
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:modelValue", "blur", "focus"],
|
|
24
|
+
setup(u, { emit: p }) {
|
|
25
|
+
const o = u, s = n(B, "item"), c = P(), f = p, l = m(() => o.id ?? q(s)), { rootBindings: a, inputBindings: C } = F({
|
|
26
|
+
getDisabled: () => o.disabled,
|
|
27
|
+
emit: f
|
|
28
|
+
}), r = m(() => ({
|
|
29
|
+
...k(o, "class", "id", "rootCls", "labelCls", "label"),
|
|
30
|
+
id: l.value,
|
|
31
|
+
...C.value
|
|
32
|
+
})), b = m(() => !!(c.label || o.label));
|
|
33
|
+
return (i, H) => (t(), g("div", d({
|
|
34
|
+
class: [e(n)(e(s), "root"), i.rootCls]
|
|
35
|
+
}, e(a)), [
|
|
36
|
+
_(e(D), d({
|
|
37
|
+
class: [e(s), o.class]
|
|
38
|
+
}, r.value), {
|
|
39
|
+
default: V(() => [
|
|
40
|
+
_(e(E), {
|
|
41
|
+
class: v(e(n)(e(s), "indicator"))
|
|
42
|
+
}, null, 8, ["class"])
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 16, ["class"]),
|
|
46
|
+
b.value ? (t(), g("label", {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: v([e(n)(e(s), "label"), i.labelCls]),
|
|
49
|
+
for: l.value
|
|
50
|
+
}, [
|
|
51
|
+
h(i.$slots, "label", {}, () => [
|
|
52
|
+
S(z(i.label), 1)
|
|
53
|
+
])
|
|
54
|
+
], 10, T)) : R("", !0)
|
|
55
|
+
], 16));
|
|
56
|
+
}
|
|
57
|
+
}), A = ["2xsm", "xsm"], ee = /* @__PURE__ */ G({
|
|
58
|
+
...I("RadioGroup"),
|
|
59
|
+
__name: "RadioGroup",
|
|
60
|
+
props: {
|
|
61
|
+
items: {},
|
|
62
|
+
size: { default: "xsm" },
|
|
63
|
+
class: {},
|
|
64
|
+
modelValue: {},
|
|
65
|
+
defaultValue: {},
|
|
66
|
+
disabled: { type: Boolean },
|
|
67
|
+
name: {},
|
|
68
|
+
required: { type: Boolean },
|
|
69
|
+
orientation: {},
|
|
70
|
+
dir: {},
|
|
71
|
+
loop: { type: Boolean },
|
|
72
|
+
asChild: { type: Boolean },
|
|
73
|
+
as: {}
|
|
74
|
+
},
|
|
75
|
+
emits: ["update:modelValue"],
|
|
76
|
+
setup(u, { emit: p }) {
|
|
77
|
+
const o = u, s = p, c = m(() => k(o, "items", "class")), f = L(c, s), l = $(B, {
|
|
78
|
+
variants: {
|
|
79
|
+
size: O(A, B)
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return (a, C) => (t(), y(e(N), d(e(f), {
|
|
83
|
+
class: [e(l)(o), o.class]
|
|
84
|
+
}), {
|
|
85
|
+
default: V(() => [
|
|
86
|
+
h(a.$slots, "default", {}, () => {
|
|
87
|
+
var r;
|
|
88
|
+
return [
|
|
89
|
+
(r = a.items) != null && r.length ? (t(!0), g(w, { key: 0 }, x(a.items, (b) => (t(), y(j, d({ ref_for: !0 }, b), null, 16))), 256)) : R("", !0)
|
|
90
|
+
];
|
|
91
|
+
})
|
|
92
|
+
]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 16, ["class"]));
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
export {
|
|
98
|
+
ee as _,
|
|
99
|
+
j as a
|
|
100
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),i=require("radix-vue"),_=require("class-variance-authority"),g=require("./omit-BKPbELUG.js"),C=require("./options-B4iSAKol.js"),k=require("./useId-Ku3O_8TK.js"),V=require("./useInputDataStates-CbRgNQqU.js"),s=require("./class-CjZYGZDW.js"),v=["for"],f=s.getBemBlock("radio_group"),b=e.defineComponent({...C.getComponentOptions("RadioGroupItem"),__name:"RadioGroupItem",props:{class:{},rootCls:{},labelCls:{},label:{},id:{},value:{},disabled:{type:Boolean},required:{type:Boolean},name:{}},emits:["update:modelValue","blur","focus"],setup(u,{emit:c}){const o=u,t=s.getBemElement(f,"item"),d=e.useSlots(),m=c,a=e.computed(()=>o.id??k.usePCId(t)),{rootBindings:r,inputBindings:B}=V.UseInputDataStates({getDisabled:()=>o.disabled,emit:m}),l=e.computed(()=>({...g.omit(o,"class","id","rootCls","labelCls","label"),id:a.value,...B.value})),p=e.computed(()=>!!(d.label||o.label));return(n,h)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(s.getBemElement)(e.unref(t),"root"),n.rootCls]},e.unref(r)),[e.createVNode(e.unref(i.RadioGroupItem),e.mergeProps({class:[e.unref(t),o.class]},l.value),{default:e.withCtx(()=>[e.createVNode(e.unref(i.RadioGroupIndicator),{class:e.normalizeClass(e.unref(s.getBemElement)(e.unref(t),"indicator"))},null,8,["class"])]),_:1},16,["class"]),p.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass([e.unref(s.getBemElement)(e.unref(t),"label"),n.labelCls]),for:a.value},[e.renderSlot(n.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)])],10,v)):e.createCommentVNode("",!0)],16))}}),q=["2xsm","xsm"],y=e.defineComponent({...C.getComponentOptions("RadioGroup"),__name:"RadioGroup",props:{items:{},size:{default:"xsm"},class:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},name:{},required:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(u,{emit:c}){const o=u,t=c,d=e.computed(()=>g.omit(o,"items","class")),m=i.useForwardPropsEmits(d,t),a=_.cva(f,{variants:{size:s.generateVariantClassList(q,f)}});return(r,B)=>(e.openBlock(),e.createBlock(e.unref(i.RadioGroupRoot),e.mergeProps(e.unref(m),{class:[e.unref(a)(o),o.class]}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>{var l;return[(l=r.items)!=null&&l.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.items,p=>(e.openBlock(),e.createBlock(b,e.mergeProps({ref_for:!0},p),null,16))),256)):e.createCommentVNode("",!0)]})]),_:3},16,["class"]))}});exports._sfc_main=y;exports._sfc_main$1=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Shortcut.vue_vue_type_style_index_0_lang-D8_aLpYM.js");exports.Shortcut=e._sfc_main;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as i, createElementBlock as r, openBlock as e, normalizeClass as p, unref as o, Fragment as s, renderList as u, createVNode as f, createBlock as _, createCommentVNode as g, mergeProps as d } from "vue";
|
|
2
|
+
import { g as h } from "./class-DziTeW9B.js";
|
|
3
|
+
import { g as B } from "./options-JBqnVZUl.js";
|
|
4
|
+
import { _ as k } from "./Kbd.vue_vue_type_style_index_0_lang-D1y-0kBN.js";
|
|
5
|
+
import { _ as C } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
6
|
+
const b = /* @__PURE__ */ i({
|
|
7
|
+
...B("Shortcut"),
|
|
8
|
+
__name: "Shortcut",
|
|
9
|
+
props: {
|
|
10
|
+
class: {},
|
|
11
|
+
items: {},
|
|
12
|
+
plus: { type: Boolean, default: !0 }
|
|
13
|
+
},
|
|
14
|
+
setup(n) {
|
|
15
|
+
const m = n, a = h("shortcut");
|
|
16
|
+
return (t, y) => (e(), r("div", {
|
|
17
|
+
class: p([o(a), m.class])
|
|
18
|
+
}, [
|
|
19
|
+
(e(!0), r(s, null, u(t.items, (l, c) => (e(), r(s, null, [
|
|
20
|
+
f(o(k), d({ ref_for: !0 }, l), null, 16),
|
|
21
|
+
t.items.length > 1 && c < t.items.length - 1 ? (e(), _(C, {
|
|
22
|
+
key: 0,
|
|
23
|
+
icon: "tabler:plus",
|
|
24
|
+
size: "3xsm"
|
|
25
|
+
})) : g("", !0)
|
|
26
|
+
], 64))), 256))
|
|
27
|
+
], 2));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
b as _
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),l=require("./class-CjZYGZDW.js"),u=require("./options-B4iSAKol.js"),a=require("./Kbd.vue_vue_type_style_index_0_lang-CpDjSQqg.js"),i=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),_=e.defineComponent({...u.getComponentOptions("Shortcut"),__name:"Shortcut",props:{class:{},items:{},plus:{type:Boolean,default:!0}},setup(n){const r=n,o=l.getBemBlock("shortcut");return(t,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o),r.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(a._sfc_main),e.mergeProps({ref_for:!0},s),null,16),t.items.length>1&&c<t.items.length-1?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,icon:"tabler:plus",size:"3xsm"})):e.createCommentVNode("",!0)],64))),256))],2))}});exports._sfc_main=_;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { PrimitiveProps } from 'radix-vue';
|
|
2
1
|
import { SkeletonSize, SkeletonType } from './Skeleton.model';
|
|
3
2
|
import { Class } from '../types';
|
|
4
|
-
export interface SkeletonProps
|
|
3
|
+
export interface SkeletonProps {
|
|
5
4
|
type?: SkeletonType;
|
|
6
5
|
size?: SkeletonSize;
|
|
7
|
-
childAs?: PrimitiveProps['as'];
|
|
8
6
|
inactive?: boolean;
|
|
9
7
|
class?: Class;
|
|
10
|
-
|
|
8
|
+
itemCls?: Class;
|
|
11
9
|
itemsCount?: number;
|
|
12
10
|
}
|
|
13
11
|
declare const _default: import('vue').DefineComponent<SkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
|
|
14
|
-
size:
|
|
15
|
-
type:
|
|
16
|
-
as: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
17
|
-
childAs: import('radix-vue', { with: { "resolution-mode": "import" } }).AsTag | import('vue').Component;
|
|
12
|
+
size: SkeletonSize;
|
|
13
|
+
type: SkeletonType;
|
|
18
14
|
inactive: boolean;
|
|
19
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
16
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Skeleton.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Skeleton.vue_vue_type_style_index_0_lang-gJRxIuPb.js");exports.Skeleton=e._sfc_main;exports.SkeletonSizes=e.SkeletonSizes;exports.SkeletonTypes=e.SkeletonTypes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as u, computed as d, createElementBlock as s, openBlock as a, normalizeClass as r, unref as n, createCommentVNode as f, Fragment as C, renderList as g } from "vue";
|
|
2
|
+
import { g as v, a as o, b as k } from "./class-DziTeW9B.js";
|
|
3
|
+
import { cva as y } from "class-variance-authority";
|
|
4
|
+
import { g as h } from "./options-JBqnVZUl.js";
|
|
5
|
+
const B = [
|
|
6
|
+
"avatar",
|
|
7
|
+
"input",
|
|
8
|
+
"button",
|
|
9
|
+
"paragraph",
|
|
10
|
+
"headline",
|
|
11
|
+
"list",
|
|
12
|
+
"base",
|
|
13
|
+
"custom",
|
|
14
|
+
"custom-items"
|
|
15
|
+
], S = ["2xsm", "sm", "md", "lg"], L = /* @__PURE__ */ u({
|
|
16
|
+
...h("Skeleton"),
|
|
17
|
+
__name: "Skeleton",
|
|
18
|
+
props: {
|
|
19
|
+
type: { default: "base" },
|
|
20
|
+
size: { default: "md" },
|
|
21
|
+
inactive: { type: Boolean, default: !1 },
|
|
22
|
+
class: {},
|
|
23
|
+
itemCls: {},
|
|
24
|
+
itemsCount: {}
|
|
25
|
+
},
|
|
26
|
+
setup(i) {
|
|
27
|
+
const t = v("skeleton"), e = i, m = y(t, {
|
|
28
|
+
variants: {
|
|
29
|
+
inactive: o("inactive", t),
|
|
30
|
+
size: o(S, t),
|
|
31
|
+
type: o(B, t)
|
|
32
|
+
}
|
|
33
|
+
}), l = d(() => {
|
|
34
|
+
if (e.type === "custom-items" && e.itemsCount) return e.itemsCount;
|
|
35
|
+
switch (e.type) {
|
|
36
|
+
case "paragraph":
|
|
37
|
+
return 4;
|
|
38
|
+
case "list":
|
|
39
|
+
return 2;
|
|
40
|
+
default:
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return (c, _) => (a(), s("div", {
|
|
45
|
+
class: r([n(m)(e), e.class])
|
|
46
|
+
}, [
|
|
47
|
+
["paragraph", "list", "custom-items"].includes(c.type) ? (a(!0), s(C, { key: 0 }, g(l.value, (p) => (a(), s("div", {
|
|
48
|
+
class: r([n(k)(n(t), "item"), e.itemCls]),
|
|
49
|
+
key: p
|
|
50
|
+
}, null, 2))), 128)) : f("", !0)
|
|
51
|
+
], 2));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
B as S,
|
|
56
|
+
L as _,
|
|
57
|
+
S as a
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),n=require("./class-CjZYGZDW.js"),m=require("class-variance-authority"),p=require("./options-B4iSAKol.js"),a=["avatar","input","button","paragraph","headline","list","base","custom","custom-items"],r=["2xsm","sm","md","lg"],k=e.defineComponent({...p.getComponentOptions("Skeleton"),__name:"Skeleton",props:{type:{default:"base"},size:{default:"md"},inactive:{type:Boolean,default:!1},class:{},itemCls:{},itemsCount:{}},setup(i){const s=n.getBemBlock("skeleton"),t=i,o=m.cva(s,{variants:{inactive:n.generateVariantClassList("inactive",s),size:n.generateVariantClassList(r,s),type:n.generateVariantClassList(a,s)}}),l=e.computed(()=>{if(t.type==="custom-items"&&t.itemsCount)return t.itemsCount;switch(t.type){case"paragraph":return 4;case"list":return 2;default:return 0}});return(c,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o)(t),t.class])},[["paragraph","list","custom-items"].includes(c.type)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,u=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n.getBemElement)(e.unref(s),"item"),t.itemCls]),key:u},null,2))),128)):e.createCommentVNode("",!0)],2))}});exports.SkeletonSizes=r;exports.SkeletonTypes=a;exports._sfc_main=k;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { PrimitiveProps } from 'radix-vue';
|
|
2
1
|
import { Class } from '../types';
|
|
3
2
|
import { SpinnerSize } from './Spinner.model';
|
|
4
|
-
export interface SpinnerProps
|
|
3
|
+
export interface SpinnerProps {
|
|
5
4
|
size?: SpinnerSize;
|
|
6
5
|
class?: Class;
|
|
7
6
|
text?: string | boolean;
|
|
@@ -11,11 +10,17 @@ export interface SpinnerSlots {
|
|
|
11
10
|
default?: () => never;
|
|
12
11
|
icon?: () => never;
|
|
13
12
|
}
|
|
14
|
-
declare
|
|
15
|
-
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
slots: Readonly<SpinnerSlots> & SpinnerSlots;
|
|
15
|
+
refs: {};
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<SpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpinnerProps> & Readonly<{}>, {
|
|
20
|
+
size: SpinnerSize;
|
|
16
21
|
text: string | boolean;
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
24
|
export default _default;
|
|
20
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
26
|
new (): {
|
package/dist/Spinner/index.js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Spinner.vue_vue_type_style_index_0_lang-BP7P5xu8.js");exports.Spinner=e._sfc_main;exports.SpinnerSizes=e.SpinnerSizes;exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),o=require("./class-CjZYGZDW.js"),C=require("class-variance-authority"),p=require("./Icon.vue_vue_type_style_index_0_lang-BvHCdzZP.js"),d=require("./options-B4iSAKol.js"),a=["3xsm","2xsm","sm"],f={key:0,width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},B=e.defineComponent({...d.getComponentOptions("Spinner"),__name:"Spinner",props:{size:{default:"sm"},class:{},text:{type:[String,Boolean],default:void 0},icon:{}},setup(l){const s=l,n=o.getBemBlock("spinner"),c=C.cva(n,{variants:{size:o.generateVariantClassList(a,n),icon:o.generateVariantClassList("icon",n)}}),i=e.useSlots(),u=e.computed(()=>!!s.text||!!i.default),m=e.computed(()=>s.text);return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c)({size:t.size,icon:!!t.icon||!!i.icon}),s.class])},[e.createVNode(p._sfc_main,{class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"icon")),size:t.size,icon:t.icon},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",{},()=>[t.icon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",f,r[0]||(r[0]=[e.createElementVNode("path",{d:"M22.5 12C23.3284 12 24.0097 12.6742 23.9064 13.4961C23.6748 15.3394 23.0173 17.1109 21.9776 18.6668C20.6591 20.6402 18.7849 22.1783 16.5922 23.0866C14.3995 23.9948 11.9867 24.2324 9.65892 23.7694C7.33114 23.3064 5.19295 22.1635 3.51472 20.4853C1.83649 18.8071 0.693599 16.6689 0.230577 14.3411C-0.232446 12.0133 0.00519403 9.60051 0.913446 7.4078C1.8217 5.21509 3.35977 3.34094 5.33316 2.02236C6.88913 0.982696 8.66064 0.32524 10.5039 0.0936235C11.3258 -0.0096629 12 0.671573 12 1.5C12 2.32843 11.3239 2.98727 10.5069 3.12471C9.2582 3.33479 8.06207 3.80703 6.99987 4.51677C5.51983 5.50571 4.36627 6.91131 3.68508 8.55585C3.0039 10.2004 2.82567 12.01 3.17293 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.193 15.9379 20.6652 14.7418 20.8753 13.4931C21.0127 12.6761 21.6716 12 22.5 12Z",fill:"currentColor"},[e.createElementVNode("animateTransform",{attributeName:"transform",dur:"1s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})],-1)])))])]),_:3},8,["class","size","icon"]),u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o.getBemElement)(e.unref(n),"text"))},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.value),1)])],2)):e.createCommentVNode("",!0)],2))}});exports.SpinnerSizes=a;exports._sfc_main=B;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent as z, useSlots as S, computed as m, createElementBlock as n, openBlock as a, normalizeClass as i, unref as o, createVNode as x, createCommentVNode as c, withCtx as h, renderSlot as C, createElementVNode as p, createTextVNode as k, toDisplayString as y } from "vue";
|
|
2
|
+
import { g as N, a as u, b as d } from "./class-DziTeW9B.js";
|
|
3
|
+
import { cva as V } from "class-variance-authority";
|
|
4
|
+
import { _ as T } from "./Icon.vue_vue_type_style_index_0_lang-BfPcw6PU.js";
|
|
5
|
+
import { g as _ } from "./options-JBqnVZUl.js";
|
|
6
|
+
const w = ["3xsm", "2xsm", "sm"], E = {
|
|
7
|
+
key: 0,
|
|
8
|
+
width: "1em",
|
|
9
|
+
height: "1em",
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none"
|
|
12
|
+
}, O = /* @__PURE__ */ z({
|
|
13
|
+
..._("Spinner"),
|
|
14
|
+
__name: "Spinner",
|
|
15
|
+
props: {
|
|
16
|
+
size: { default: "sm" },
|
|
17
|
+
class: {},
|
|
18
|
+
text: { type: [String, Boolean], default: void 0 },
|
|
19
|
+
icon: {}
|
|
20
|
+
},
|
|
21
|
+
setup(f) {
|
|
22
|
+
const s = f, t = N("spinner"), g = V(t, {
|
|
23
|
+
variants: {
|
|
24
|
+
size: u(w, t),
|
|
25
|
+
icon: u("icon", t)
|
|
26
|
+
}
|
|
27
|
+
}), r = S(), v = m(() => !!s.text || !!r.default), B = m(() => s.text);
|
|
28
|
+
return (e, l) => (a(), n("div", {
|
|
29
|
+
class: i([
|
|
30
|
+
o(g)({ size: e.size, icon: !!e.icon || !!r.icon }),
|
|
31
|
+
s.class
|
|
32
|
+
])
|
|
33
|
+
}, [
|
|
34
|
+
x(T, {
|
|
35
|
+
class: i(o(d)(o(t), "icon")),
|
|
36
|
+
size: e.size,
|
|
37
|
+
icon: e.icon
|
|
38
|
+
}, {
|
|
39
|
+
default: h(() => [
|
|
40
|
+
C(e.$slots, "icon", {}, () => [
|
|
41
|
+
e.icon ? c("", !0) : (a(), n("svg", E, l[0] || (l[0] = [
|
|
42
|
+
p("path", {
|
|
43
|
+
d: "M22.5 12C23.3284 12 24.0097 12.6742 23.9064 13.4961C23.6748 15.3394 23.0173 17.1109 21.9776 18.6668C20.6591 20.6402 18.7849 22.1783 16.5922 23.0866C14.3995 23.9948 11.9867 24.2324 9.65892 23.7694C7.33114 23.3064 5.19295 22.1635 3.51472 20.4853C1.83649 18.8071 0.693599 16.6689 0.230577 14.3411C-0.232446 12.0133 0.00519403 9.60051 0.913446 7.4078C1.8217 5.21509 3.35977 3.34094 5.33316 2.02236C6.88913 0.982696 8.66064 0.32524 10.5039 0.0936235C11.3258 -0.0096629 12 0.671573 12 1.5C12 2.32843 11.3239 2.98727 10.5069 3.12471C9.2582 3.33479 8.06207 3.80703 6.99987 4.51677C5.51983 5.50571 4.36627 6.91131 3.68508 8.55585C3.0039 10.2004 2.82567 12.01 3.17293 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.193 15.9379 20.6652 14.7418 20.8753 13.4931C21.0127 12.6761 21.6716 12 22.5 12Z",
|
|
44
|
+
fill: "currentColor"
|
|
45
|
+
}, [
|
|
46
|
+
p("animateTransform", {
|
|
47
|
+
attributeName: "transform",
|
|
48
|
+
dur: "1s",
|
|
49
|
+
repeatCount: "indefinite",
|
|
50
|
+
type: "rotate",
|
|
51
|
+
values: "0 12 12;360 12 12"
|
|
52
|
+
})
|
|
53
|
+
], -1)
|
|
54
|
+
])))
|
|
55
|
+
])
|
|
56
|
+
]),
|
|
57
|
+
_: 3
|
|
58
|
+
}, 8, ["class", "size", "icon"]),
|
|
59
|
+
v.value ? (a(), n("div", {
|
|
60
|
+
key: 0,
|
|
61
|
+
class: i(o(d)(o(t), "text"))
|
|
62
|
+
}, [
|
|
63
|
+
C(e.$slots, "default", {}, () => [
|
|
64
|
+
k(y(B.value), 1)
|
|
65
|
+
])
|
|
66
|
+
], 2)) : c("", !0)
|
|
67
|
+
], 2));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
w as S,
|
|
72
|
+
O as _
|
|
73
|
+
};
|
package/dist/Switch/Switch.d.ts
CHANGED
|
@@ -23,16 +23,27 @@ export interface SwitchSlots {
|
|
|
23
23
|
size: IconSize;
|
|
24
24
|
}) => never;
|
|
25
25
|
}
|
|
26
|
-
declare
|
|
26
|
+
declare function __VLS_template(): {
|
|
27
|
+
slots: Readonly<SwitchSlots> & SwitchSlots;
|
|
28
|
+
refs: {};
|
|
29
|
+
attrs: Partial<{}>;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
|
+
declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
blur: (e: InputEvent) => any;
|
|
34
|
+
focus: (e: InputEvent) => any;
|
|
27
35
|
"update:checked": (payload: boolean) => any;
|
|
28
36
|
}, string, import('vue').PublicProps, Readonly<SwitchProps> & Readonly<{
|
|
37
|
+
onBlur?: ((e: InputEvent) => any) | undefined;
|
|
38
|
+
onFocus?: ((e: InputEvent) => any) | undefined;
|
|
29
39
|
"onUpdate:checked"?: ((payload: boolean) => any) | undefined;
|
|
30
40
|
}>, {
|
|
31
|
-
size:
|
|
41
|
+
size: SwitchSize;
|
|
32
42
|
disabled: boolean;
|
|
33
43
|
required: boolean;
|
|
34
44
|
checked: boolean;
|
|
35
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
47
|
export default _default;
|
|
37
48
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
49
|
new (): {
|
package/dist/Switch/index.js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Switch.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Switch.vue_vue_type_style_index_0_lang-CoXu3YJ-.js");exports.Switch=e._sfc_main;exports.SwitchSizes=e.SwitchSizes;exports.default=e._sfc_main;
|