@caipira/tamandua 0.0.67 → 0.0.69
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/Backdrop.js +2 -2
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js +22 -0
- package/dist/ChartLine.css +1 -1
- package/dist/{Drawer-Cl9_4uHA.js → Drawer-y5xBARd2.js} +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/Dropdown.js +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-CUPNdEz7.js → Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js} +23 -23
- package/dist/FileDrop.js +2 -2
- package/dist/{FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js → FileDrop.vue_vue_type_script_setup_true_lang-Bq0lAgZ7.js} +1 -1
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js +71 -0
- package/dist/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js → InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js} +4 -4
- package/dist/InputDate.js +2 -2
- package/dist/{InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.js → InputDate.vue_vue_type_script_setup_true_lang-D0VnFq6E.js} +3 -3
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-BMChy2_E.js → InputPassword.vue_vue_type_script_setup_true_lang-ChHDOnS8.js} +35 -35
- package/dist/InputPrice.js +2 -2
- package/dist/{InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js → InputPrice.vue_vue_type_script_setup_true_lang-9UZ7YqAf.js} +12 -12
- package/dist/InputRadio.js +2 -2
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js +35 -0
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-CGlaDHiJ.js → InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js} +19 -16
- package/dist/InputSwitch.js +2 -2
- package/dist/{InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js → InputSwitch.vue_vue_type_script_setup_true_lang-BVGfQFZh.js} +10 -9
- package/dist/InputTextarea.js +2 -2
- package/dist/{InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js → InputTextarea.vue_vue_type_script_setup_true_lang-C8f2hfeZ.js} +11 -11
- package/dist/Modal.js +2 -2
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DiUI27HX.js → Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js} +22 -22
- package/dist/Popover-Bq_SpOWb.js +73 -0
- package/dist/Popover.css +1 -0
- package/dist/Popover.js +2 -2
- package/dist/{ProgressCircle-Cpmi2CpO.js → ProgressCircle-C5CnEEoe.js} +14 -14
- package/dist/ProgressCircle.css +1 -1
- package/dist/ProgressCircle.js +2 -2
- package/dist/{ProgressLine-CTS0VOAI.js → ProgressLine-BqINh5jh.js} +13 -13
- package/dist/ProgressLine.css +1 -1
- package/dist/ProgressLine.js +2 -2
- package/dist/Skeleton.js +2 -2
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-Dsy_4Ftz.js +18 -0
- package/dist/Tab.js +2 -2
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-6bgS8FOw.js → Tab.vue_vue_type_script_setup_true_lang-OuqLqd04.js} +16 -16
- package/dist/components.js +19 -19
- package/dist/index.css +77 -45
- package/dist/{plugin-BJyDH94F.js → plugin-3Ql4s0Jh.js} +1 -1
- package/dist/{plugin-CJ6sqqaI.js → plugin-43q0Kzto.js} +1 -1
- package/dist/{plugin-C-iGigb_.js → plugin-AU2qI2I9.js} +1 -1
- package/dist/{plugin-Ch67LOIy.js → plugin-CDKPVcLp.js} +1 -1
- package/dist/{plugin-CvohbpUQ.js → plugin-CEsqY6D6.js} +1 -1
- package/dist/{plugin-dX-bbpm5.js → plugin-CPpRqUnI.js} +1 -1
- package/dist/{plugin-MAzqwXys.js → plugin-CV6IjnsL.js} +1 -1
- package/dist/{plugin-C8Z-XgLn.js → plugin-Clp0zNY0.js} +1 -1
- package/dist/{plugin-RM2wZuwL.js → plugin-Co9LymNO.js} +1 -1
- package/dist/{plugin-x-Y35fqX.js → plugin-CzRCyET3.js} +1 -1
- package/dist/{plugin-wVt0wQNv.js → plugin-DBDBJ5_6.js} +1 -1
- package/dist/{plugin-BVJKxqmv.js → plugin-DIj5ypE6.js} +1 -1
- package/dist/{plugin-CZ2rAHjJ.js → plugin-DMGSStZm.js} +1 -1
- package/dist/{plugin-DxUJiAk-.js → plugin-DNJyBcDk.js} +1 -1
- package/dist/{plugin-Do2-cqMT.js → plugin-DXPEO1fb.js} +1 -1
- package/dist/{plugin-C1kAmMfE.js → plugin-DYHfPgzY.js} +1 -1
- package/dist/{plugin-CNwzCYlr.js → plugin-JMSzJgz5.js} +1 -1
- package/dist/plugin-RTst32IC.js +10 -0
- package/dist/{plugin-B63n9_uc.js → plugin-hQ-aWPlo.js} +1 -1
- package/dist/{plugins-3Yf4y3PS.js → plugins-BCnw00-W.js} +26 -26
- package/dist/plugins.js +26 -26
- package/dist/tamandua.js +1 -1
- package/dist/types/components/FormItem/types.d.ts +1 -1
- package/dist/types/components/Skeleton/Skeleton.vue.d.ts +29 -7
- package/dist/types/components/Skeleton/types.d.ts +4 -1
- package/package.json +1 -1
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js +0 -22
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js +0 -64
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js +0 -35
- package/dist/Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js +0 -71
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-WahY1vGW.js +0 -11
- package/dist/plugin-ColpxTKB.js +0 -10
package/dist/plugins.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "./Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js";
|
|
2
2
|
import { p as C } from "./plugin-DNwjBl_u.js";
|
|
3
3
|
import "vue";
|
|
4
|
-
import { p as b } from "./plugin-
|
|
4
|
+
import { p as b } from "./plugin-AU2qI2I9.js";
|
|
5
5
|
import "./Button.vue_vue_type_script_setup_true_lang-DW0Q2Ut2.js";
|
|
6
6
|
import { p as S } from "./plugin-CV_fI920.js";
|
|
7
7
|
import "./transform-DSaNEFMr.js";
|
|
8
8
|
import "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
9
9
|
import { p as v } from "./plugin-DDXOF4cU.js";
|
|
10
10
|
import { p as D } from "./plugin-CyDnzy2n.js";
|
|
11
|
-
import "./Drawer-
|
|
12
|
-
import { p as L } from "./plugin-
|
|
13
|
-
import { p as A } from "./plugin-
|
|
14
|
-
import { p as E } from "./plugin-
|
|
11
|
+
import "./Drawer-y5xBARd2.js";
|
|
12
|
+
import { p as L } from "./plugin-JMSzJgz5.js";
|
|
13
|
+
import { p as A } from "./plugin-CzRCyET3.js";
|
|
14
|
+
import { p as E } from "./plugin-43q0Kzto.js";
|
|
15
15
|
import "./Form.vue_vue_type_script_setup_true_lang-CNGNCak7.js";
|
|
16
16
|
import { p as j } from "./plugin-BuU0zOfE.js";
|
|
17
|
-
import { p as z } from "./plugin-
|
|
17
|
+
import { p as z } from "./plugin-CEsqY6D6.js";
|
|
18
18
|
import { p as J } from "./plugin-Buc7eEox.js";
|
|
19
19
|
import { p as N } from "./plugin-CC97Vx-s.js";
|
|
20
20
|
import "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
|
|
@@ -24,38 +24,38 @@ import { p as X } from "./plugin-DOeDaXWj.js";
|
|
|
24
24
|
import "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
|
|
25
25
|
import { p as Z } from "./plugin-BShPzL82.js";
|
|
26
26
|
import { p as $ } from "./plugin--F5QK2vy.js";
|
|
27
|
-
import "./InputCheckbox.vue_vue_type_style_index_0_lang-
|
|
28
|
-
import { p as or } from "./plugin-
|
|
27
|
+
import "./InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js";
|
|
28
|
+
import { p as or } from "./plugin-DIj5ypE6.js";
|
|
29
29
|
import { p as tr } from "./plugin-Bq4nQPd4.js";
|
|
30
30
|
import { p as er } from "./plugin-D9KHvOM3.js";
|
|
31
|
-
import { p as nr } from "./plugin-
|
|
31
|
+
import { p as nr } from "./plugin-CDKPVcLp.js";
|
|
32
32
|
import { p as ur } from "./plugin-Br-QOjhk.js";
|
|
33
|
-
import { p as Pr } from "./plugin-
|
|
33
|
+
import { p as Pr } from "./plugin-3Ql4s0Jh.js";
|
|
34
34
|
import { p as gr } from "./plugin-CrHDShgh.js";
|
|
35
|
-
import { p as fr } from "./plugin-
|
|
36
|
-
import "./InputRadio.vue_vue_type_style_index_0_lang-
|
|
37
|
-
import { p as cr } from "./plugin-
|
|
38
|
-
import "./InputSelect.vue_vue_type_script_setup_true_lang-
|
|
39
|
-
import { p as yr } from "./plugin-
|
|
40
|
-
import { p as Cr } from "./plugin-
|
|
35
|
+
import { p as fr } from "./plugin-Co9LymNO.js";
|
|
36
|
+
import "./InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js";
|
|
37
|
+
import { p as cr } from "./plugin-DXPEO1fb.js";
|
|
38
|
+
import "./InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js";
|
|
39
|
+
import { p as yr } from "./plugin-DNJyBcDk.js";
|
|
40
|
+
import { p as Cr } from "./plugin-hQ-aWPlo.js";
|
|
41
41
|
import { p as br } from "./plugin-lYDlOt8p.js";
|
|
42
|
-
import { p as Sr } from "./plugin-
|
|
42
|
+
import { p as Sr } from "./plugin-Clp0zNY0.js";
|
|
43
43
|
import "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
|
|
44
44
|
import { p as vr } from "./plugin-CEByTREY.js";
|
|
45
|
-
import { p as Dr } from "./plugin-
|
|
45
|
+
import { p as Dr } from "./plugin-CPpRqUnI.js";
|
|
46
46
|
import { p as Lr } from "./plugin-DNXazWwT.js";
|
|
47
47
|
import { p as Ar } from "./plugin-jyvJNavM.js";
|
|
48
48
|
import "./Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js";
|
|
49
49
|
import { p as Er } from "./plugin-2Cr_XUjp.js";
|
|
50
|
-
import "./Popover
|
|
51
|
-
import { p as jr } from "./plugin-
|
|
52
|
-
import "./ProgressCircle-
|
|
53
|
-
import { p as zr } from "./plugin-
|
|
54
|
-
import "./ProgressLine-
|
|
55
|
-
import { p as Jr } from "./plugin-
|
|
50
|
+
import "./Popover-Bq_SpOWb.js";
|
|
51
|
+
import { p as jr } from "./plugin-RTst32IC.js";
|
|
52
|
+
import "./ProgressCircle-C5CnEEoe.js";
|
|
53
|
+
import { p as zr } from "./plugin-CV6IjnsL.js";
|
|
54
|
+
import "./ProgressLine-BqINh5jh.js";
|
|
55
|
+
import { p as Jr } from "./plugin-DMGSStZm.js";
|
|
56
56
|
import { p as Nr } from "./plugin-BWfDY9pB.js";
|
|
57
|
-
import { p as Qr } from "./plugin-
|
|
58
|
-
import { p as Vr } from "./plugin-
|
|
57
|
+
import { p as Qr } from "./plugin-DYHfPgzY.js";
|
|
58
|
+
import { p as Vr } from "./plugin-DBDBJ5_6.js";
|
|
59
59
|
import "./Table-vjjmPzlZ.js";
|
|
60
60
|
import { p as Xr } from "./plugin-6KewRQ9w.js";
|
|
61
61
|
import "./Tag.vue_vue_type_script_setup_true_lang-CKzb-As0.js";
|
package/dist/tamandua.js
CHANGED
|
@@ -1,8 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { SkeletonProps } from './types.js';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkeletonProps>, {
|
|
4
|
+
marginClass: string;
|
|
5
|
+
sizeClass: string;
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkeletonProps>, {
|
|
7
|
+
marginClass: string;
|
|
8
|
+
sizeClass: string;
|
|
9
|
+
}>>>, {
|
|
10
|
+
marginClass: string;
|
|
11
|
+
sizeClass: string;
|
|
12
|
+
}, {}>;
|
|
8
13
|
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: import('vue').PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type __VLS_WithDefaults<P, D> = {
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
|
+
default: D[K];
|
|
26
|
+
}> : P[K];
|
|
27
|
+
};
|
|
28
|
+
type __VLS_Prettify<T> = {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} & {};
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, openBlock as s, createElementBlock as c, normalizeClass as p } from "vue";
|
|
2
|
-
const k = /* @__PURE__ */ i({
|
|
3
|
-
name: "TBackdrop",
|
|
4
|
-
__name: "Backdrop",
|
|
5
|
-
props: {
|
|
6
|
-
isTransparent: { type: Boolean, default: !1 }
|
|
7
|
-
},
|
|
8
|
-
emits: ["click"],
|
|
9
|
-
setup(t, { emit: n }) {
|
|
10
|
-
const o = t, r = n;
|
|
11
|
-
return (l, e) => (s(), c("div", {
|
|
12
|
-
class: p(["fixed inset-0", {
|
|
13
|
-
"bg-caipira-tertiary opacity-80": !o.isTransparent
|
|
14
|
-
}]),
|
|
15
|
-
role: "button",
|
|
16
|
-
onClick: e[0] || (e[0] = (a) => r("click", a))
|
|
17
|
-
}, null, 2));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
k as _
|
|
22
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, useSlots as b, inject as g, computed as a, resolveComponent as z, openBlock as s, createElementBlock as n, createElementVNode as u, normalizeClass as i, createVNode as C, unref as p, withCtx as S, renderSlot as f, Fragment as k, renderList as F, toDisplayString as I, createCommentVNode as N } from "vue";
|
|
2
|
-
const V = { class: "w-full" }, w = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "float-right"
|
|
5
|
-
}, M = /* @__PURE__ */ x({
|
|
6
|
-
name: "TFormItem",
|
|
7
|
-
__name: "FormItem",
|
|
8
|
-
props: {
|
|
9
|
-
label: {},
|
|
10
|
-
rules: {},
|
|
11
|
-
layout: {}
|
|
12
|
-
},
|
|
13
|
-
setup(d) {
|
|
14
|
-
const l = d, o = b(), c = [], t = g("formStyle", {
|
|
15
|
-
label: "",
|
|
16
|
-
input: "",
|
|
17
|
-
layout: "horizontal"
|
|
18
|
-
}), y = a(() => {
|
|
19
|
-
if (!o || !o.default)
|
|
20
|
-
return !1;
|
|
21
|
-
const e = o?.default();
|
|
22
|
-
return e ? e[0].type.name : !1;
|
|
23
|
-
}), m = a(() => y.value === "TInputMultiplier"), r = a(() => l.layout ? l.layout : t.layout ? t.layout : "horizontal");
|
|
24
|
-
return (e, B) => {
|
|
25
|
-
const _ = z("t-graphy-label");
|
|
26
|
-
return s(), n("div", V, [
|
|
27
|
-
u("div", {
|
|
28
|
-
class: i(["flex gap-2 my-5", {
|
|
29
|
-
"flex-col": r.value === "vertical",
|
|
30
|
-
"items-center": r.value === "horizontal" && !m.value,
|
|
31
|
-
"items-start": m.value
|
|
32
|
-
}])
|
|
33
|
-
}, [
|
|
34
|
-
C(_, {
|
|
35
|
-
text: l.label,
|
|
36
|
-
class: i({
|
|
37
|
-
[p(t).label]: !0,
|
|
38
|
-
"text-right": r.value === "horizontal"
|
|
39
|
-
})
|
|
40
|
-
}, {
|
|
41
|
-
default: S(() => [
|
|
42
|
-
f(e.$slots, "label")
|
|
43
|
-
]),
|
|
44
|
-
_: 3
|
|
45
|
-
}, 8, ["text", "class"]),
|
|
46
|
-
u("div", {
|
|
47
|
-
class: i({ [p(t).input]: !0 })
|
|
48
|
-
}, [
|
|
49
|
-
f(e.$slots, "default")
|
|
50
|
-
], 2)
|
|
51
|
-
], 2),
|
|
52
|
-
c ? (s(), n("div", w, [
|
|
53
|
-
(s(), n(k, null, F(c, (h, v) => u("span", {
|
|
54
|
-
class: "text-sm text-red-600",
|
|
55
|
-
key: v
|
|
56
|
-
}, I(h), 1)), 64))
|
|
57
|
-
])) : N("", !0)
|
|
58
|
-
]);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
export {
|
|
63
|
-
M as _
|
|
64
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import './InputRadio.css';
|
|
2
|
-
import { defineComponent as p, inject as r, openBlock as u, createElementBlock as m, createElementVNode as o, unref as a, toDisplayString as b } from "vue";
|
|
3
|
-
const h = { class: "h-9 inline-flex items-center" }, v = ["value", "name", "disabled", "checked"];
|
|
4
|
-
let f = 0;
|
|
5
|
-
const g = /* @__PURE__ */ p({
|
|
6
|
-
name: "TInputRadio",
|
|
7
|
-
__name: "InputRadio",
|
|
8
|
-
props: {
|
|
9
|
-
value: {},
|
|
10
|
-
label: {}
|
|
11
|
-
},
|
|
12
|
-
setup(t) {
|
|
13
|
-
const n = `radio_${++f}`, c = r("name", ""), e = t, l = r("model", ""), d = r("change", () => {
|
|
14
|
-
}), s = r("disabled", !1);
|
|
15
|
-
return (_, i) => (u(), m("div", h, [
|
|
16
|
-
o("input", {
|
|
17
|
-
value: e.value,
|
|
18
|
-
name: a(c),
|
|
19
|
-
id: n,
|
|
20
|
-
disabled: a(s),
|
|
21
|
-
checked: e.value === a(l),
|
|
22
|
-
type: "radio",
|
|
23
|
-
class: "form-radio w-5 h-5 border input-border checked:hover:border-caipira-primary-inverted checked:focus:border-caipira-primary-inverted checked:border-caipira-primary-inverted input-outline focus:input-outline bg-caipira-primary color-caipira-primary",
|
|
24
|
-
onChange: i[0] || (i[0] = (k) => a(d)(e.value))
|
|
25
|
-
}, null, 40, v),
|
|
26
|
-
o("label", {
|
|
27
|
-
class: "cursor-pointer pl-2 mr-3 input-label",
|
|
28
|
-
for: n
|
|
29
|
-
}, b(e.label), 1)
|
|
30
|
-
]));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
g as _
|
|
35
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent as E, mergeModels as b, useModel as M, ref as r, computed as c, onBeforeMount as P, onBeforeUnmount as _, openBlock as f, createElementBlock as d, renderSlot as m, normalizeProps as g, guardReactiveProps as v, normalizeStyle as z, unref as O, normalizeClass as R, createCommentVNode as T } from "vue";
|
|
2
|
-
import { u as x } from "./useDomHelpers-CGVrQd35.js";
|
|
3
|
-
import { d as S, E as $ } from "./ui-J-lhC9qd.js";
|
|
4
|
-
import { o as L, s as W, a as U, u as j, b as A } from "./floating-ui.vue-B5QcGNjh.js";
|
|
5
|
-
let D = 0;
|
|
6
|
-
const K = /* @__PURE__ */ E({
|
|
7
|
-
name: "TPopover",
|
|
8
|
-
__name: "Popover",
|
|
9
|
-
props: /* @__PURE__ */ b({
|
|
10
|
-
trigger: { default: S.CLICK },
|
|
11
|
-
disabled: { type: Boolean, default: !1 },
|
|
12
|
-
placement: { default: $.BOTTOM },
|
|
13
|
-
slotWrapperClasses: { default: "rounded-lg" },
|
|
14
|
-
width: { default: "auto" }
|
|
15
|
-
}, {
|
|
16
|
-
open: { type: Boolean, default: !1 },
|
|
17
|
-
openModifiers: {}
|
|
18
|
-
}),
|
|
19
|
-
emits: ["update:open"],
|
|
20
|
-
setup(s, { expose: C }) {
|
|
21
|
-
const t = M(s, "open"), n = s, a = `popover_${++D}`, l = r(), y = c(() => n.placement), o = r(), { wasClickOutsideOfContainer: k } = x(), h = c(
|
|
22
|
-
() => o.value?.firstChild?.nextElementSibling
|
|
23
|
-
), w = r([
|
|
24
|
-
L(1),
|
|
25
|
-
W({
|
|
26
|
-
apply({ elements: e }) {
|
|
27
|
-
if (n.width === "static")
|
|
28
|
-
return;
|
|
29
|
-
const u = e.reference.getBoundingClientRect();
|
|
30
|
-
Object.assign(e.floating.style, {
|
|
31
|
-
minWidth: `${u.width}px`
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}),
|
|
35
|
-
U({ crossAxis: !0 })
|
|
36
|
-
]), { floatingStyles: B } = j(h, l, {
|
|
37
|
-
open: t,
|
|
38
|
-
placement: y,
|
|
39
|
-
middleware: w,
|
|
40
|
-
whileElementsMounted: A
|
|
41
|
-
}), i = (e = !t.value) => {
|
|
42
|
-
t.value = e;
|
|
43
|
-
}, p = (e) => t.value && o.value && k(e, o.value) ? (t.value = !1, !1) : !0;
|
|
44
|
-
return P(() => {
|
|
45
|
-
document.addEventListener("click", p);
|
|
46
|
-
}), _(() => {
|
|
47
|
-
document.removeEventListener("click", p);
|
|
48
|
-
}), C({ name: a }), (e, u) => (f(), d("div", {
|
|
49
|
-
ref_key: "wrapperRef",
|
|
50
|
-
ref: o
|
|
51
|
-
}, [
|
|
52
|
-
m(e.$slots, "default", g(v({ onTogglePopover: i }))),
|
|
53
|
-
t.value ? (f(), d("div", {
|
|
54
|
-
key: 0,
|
|
55
|
-
ref_key: "floating",
|
|
56
|
-
ref: l,
|
|
57
|
-
role: "tooltip",
|
|
58
|
-
id: a,
|
|
59
|
-
style: z(O(B)),
|
|
60
|
-
class: R(["bg-caipira-primary z-10", {
|
|
61
|
-
[n.slotWrapperClasses]: !0
|
|
62
|
-
}])
|
|
63
|
-
}, [
|
|
64
|
-
m(e.$slots, "content", g(v({ onTogglePopover: i })))
|
|
65
|
-
], 6)) : T("", !0)
|
|
66
|
-
], 512));
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
K as _
|
|
71
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, openBlock as n, createElementBlock as t } from "vue";
|
|
2
|
-
const o = { class: "animate-pulse h-4 bg-gray-100 my-1 mx-2 dark:bg-neutral-800 rounded-sm" }, _ = /* @__PURE__ */ e({
|
|
3
|
-
name: "TSkeleton",
|
|
4
|
-
__name: "Skeleton",
|
|
5
|
-
setup(r) {
|
|
6
|
-
return (a, m) => (n(), t("div", o));
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
_
|
|
11
|
-
};
|