@caipira/tamandua 0.0.97 → 0.0.99

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.
Files changed (46) hide show
  1. package/dist/Dropdown.js +2 -2
  2. package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-jLXkMqpc.js → Dropdown.vue_vue_type_script_setup_true_lang-BSnpkGOU.js} +1 -1
  3. package/dist/Form.js +2 -2
  4. package/dist/{Form.vue_vue_type_script_setup_true_lang-CeWEv9hg.js → Form.vue_vue_type_script_setup_true_lang-BYcaoapl.js} +62 -62
  5. package/dist/InputMultiplier.js +2 -2
  6. package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BUbpeN-i.js +74 -0
  7. package/dist/InputPassword.js +2 -2
  8. package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-BKKnQy7v.js → InputPassword.vue_vue_type_script_setup_true_lang-BUBoQxdM.js} +32 -33
  9. package/dist/InputPhone.js +2 -2
  10. package/dist/{InputPhone.vue_vue_type_script_setup_true_lang-B4TULqLW.js → InputPhone.vue_vue_type_script_setup_true_lang-CtWnbbtm.js} +4 -5
  11. package/dist/InputText.js +2 -2
  12. package/dist/InputText.vue_vue_type_script_setup_true_lang-D2cGaq7X.js +47 -0
  13. package/dist/Popconfirm.js +2 -2
  14. package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-DCM2q4r_.js → Popconfirm.vue_vue_type_script_setup_true_lang-CR0OJ8Ao.js} +1 -1
  15. package/dist/Popover-P-D1olPy.js +96 -0
  16. package/dist/Popover.css +1 -1
  17. package/dist/Popover.js +2 -2
  18. package/dist/{ProgressLine-BqINh5jh.js → ProgressLine-WECUkWks.js} +8 -8
  19. package/dist/ProgressLine.css +1 -1
  20. package/dist/ProgressLine.js +2 -2
  21. package/dist/components.js +9 -9
  22. package/dist/{plugin-DDs2fkQY.js → plugin-Bhokj2iJ.js} +1 -1
  23. package/dist/{plugin-CLEf3cxJ.js → plugin-BkDzEYgS.js} +1 -1
  24. package/dist/{plugin-CQyHQgvJ.js → plugin-C3ZZPmkg.js} +1 -1
  25. package/dist/{plugin-DrmCCRQ9.js → plugin-C9FfiHWW.js} +1 -1
  26. package/dist/{plugin-CrHDShgh.js → plugin-CXTwBekr.js} +1 -1
  27. package/dist/{plugin-DyFj9P33.js → plugin-Cbz7TWzB.js} +1 -1
  28. package/dist/{plugin-axB5ton8.js → plugin-DJDKTDU5.js} +1 -1
  29. package/dist/{plugin-DMGSStZm.js → plugin-DJYF3-VD.js} +1 -1
  30. package/dist/{plugin-CRmM6_Ee.js → plugin-cOJ_nFaw.js} +1 -1
  31. package/dist/{plugins-DQqs_lDX.js → plugins-D57bfrRk.js} +16 -16
  32. package/dist/plugins.js +16 -16
  33. package/dist/tamandua.js +1 -1
  34. package/dist/types/components/Form/types.d.ts +4 -1
  35. package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +3 -0
  36. package/dist/types/components/InputMultiplier/types.d.ts +1 -0
  37. package/dist/types/components/InputText/InputText.vue.d.ts +12 -3
  38. package/dist/types/components/InputText/types.d.ts +5 -1
  39. package/dist/types/components/Popover/Popover.vue.d.ts +3 -3
  40. package/dist/types/components/Popover/types.d.ts +4 -1
  41. package/dist/types/components/ProgressLine/ProgressLine.vue.d.ts +12 -0
  42. package/dist/types/components/ProgressLine/types.d.ts +6 -0
  43. package/package.json +1 -1
  44. package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-DxO6Vq3F.js +0 -71
  45. package/dist/InputText.vue_vue_type_script_setup_true_lang-yxUtfIl9.js +0 -43
  46. package/dist/Popover-Cy9pkLML.js +0 -94
@@ -1,71 +0,0 @@
1
- import { defineComponent as _, ref as z, watch as r, resolveComponent as V, openBlock as n, createElementBlock as a, createVNode as i, Fragment as k, renderList as C, createBlock as I, resolveDynamicComponent as b, mergeProps as w, toHandlers as y } from "vue";
2
- import { F as M } from "./ui-5PiaVzMN.js";
3
- const g = /* @__PURE__ */ _({
4
- name: "TInputMultiplier",
5
- __name: "InputMultiplier",
6
- props: {
7
- size: { default: M.Default },
8
- component: { default: "t-input-text" },
9
- inputProps: { default: () => ({}) },
10
- listeners: { default: () => ({}) },
11
- newItemModel: { default: "" },
12
- modelValue: {}
13
- },
14
- emits: ["update:model-value"],
15
- setup(m, { emit: p }) {
16
- const t = m, c = p, l = z([]), d = () => {
17
- l.value.push(t.newItemModel);
18
- }, v = (e) => {
19
- l.value = e;
20
- }, f = (e) => {
21
- l.value.splice(e, 1);
22
- };
23
- return r(
24
- l,
25
- (e) => {
26
- c("update:model-value", e);
27
- },
28
- { deep: !0 }
29
- ), r(
30
- () => t.modelValue,
31
- (e) => {
32
- v(e ?? []);
33
- },
34
- { immediate: !0 }
35
- ), (e, h) => {
36
- const s = V("t-button");
37
- return n(), a("div", null, [
38
- i(s, {
39
- label: "Add",
40
- variant: "primary",
41
- "is-outline": !0,
42
- icon: "plus",
43
- size: "sm",
44
- onClick: d
45
- }),
46
- (n(!0), a(k, null, C(l.value, (B, o) => (n(), a("div", {
47
- key: o,
48
- class: "flex items-center justify-start mt-2"
49
- }, [
50
- (n(), I(b(t.component), w({
51
- size: t.size
52
- }, t.inputProps, y(t.listeners), {
53
- modelValue: l.value[o],
54
- "onUpdate:modelValue": (u) => l.value[o] = u
55
- }), null, 16, ["size", "modelValue", "onUpdate:modelValue"])),
56
- i(s, {
57
- variant: "transparent",
58
- icon: "close",
59
- class: "ml-0.5",
60
- size: t.size,
61
- "icon-props": { class: "text-(--border-color)" },
62
- onClick: (u) => f(o)
63
- }, null, 8, ["size", "onClick"])
64
- ]))), 128))
65
- ]);
66
- };
67
- }
68
- });
69
- export {
70
- g as _
71
- };
@@ -1,43 +0,0 @@
1
- import { defineComponent as p, mergeModels as u, useModel as m, inject as s, withDirectives as c, openBlock as f, createElementBlock as b, normalizeClass as v, unref as t, vModelDynamic as y } from "vue";
2
- import { F as l } from "./ui-5PiaVzMN.js";
3
- const x = ["type", "placeholder", "autocomplete", "disabled"], D = /* @__PURE__ */ p({
4
- name: "TInputText",
5
- __name: "InputText",
6
- props: /* @__PURE__ */ u({
7
- size: { default: l.Default },
8
- type: { default: "text" },
9
- placeholder: { default: void 0 },
10
- autocomplete: { default: void 0 },
11
- disabled: { type: Boolean, default: !1 },
12
- disableStyle: { type: Boolean, default: !1 }
13
- }, {
14
- modelValue: {
15
- default: ""
16
- },
17
- modelModifiers: {}
18
- }),
19
- emits: /* @__PURE__ */ u(["keyup.enter"], ["update:modelValue"]),
20
- setup(o, { emit: h }) {
21
- const a = m(o, "modelValue"), e = o, d = s("invalid", !1), i = s("validated", !1);
22
- return (_, n) => c((f(), b("input", {
23
- "onUpdate:modelValue": n[0] || (n[0] = (r) => a.value = r),
24
- type: e.type,
25
- class: v({
26
- "input-bg-color input-text-color input-outline border input-border input-roundness input-padding w-full": !e.disableStyle,
27
- // Size
28
- "h-7 text-sm": e.size === t(l).Small,
29
- "h-9 text-base": e.size === t(l).Default,
30
- "border-red-500": !t(i) && t(d),
31
- "border-emerald-500": t(i) && !t(d)
32
- }),
33
- placeholder: e.placeholder,
34
- autocomplete: e.autocomplete,
35
- disabled: e.disabled
36
- }, null, 10, x)), [
37
- [y, a.value]
38
- ]);
39
- }
40
- });
41
- export {
42
- D as _
43
- };
@@ -1,94 +0,0 @@
1
- import './Popover.css';
2
- import { defineComponent as E, mergeModels as S, useModel as k, ref as i, computed as u, onBeforeMount as A, onBeforeUnmount as B, openBlock as v, createElementBlock as g, renderSlot as T, normalizeProps as O, guardReactiveProps as C, normalizeStyle as N, unref as b, normalizeClass as w, createCommentVNode as M } from "vue";
3
- import { u as R } from "./useDomHelpers-CGVrQd35.js";
4
- import { d as z, a } from "./ui-5PiaVzMN.js";
5
- import { o as L, s as V, a as $, u as W, b as U } from "./floating-ui.vue-B5QcGNjh.js";
6
- import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- let D = 0;
8
- const F = /* @__PURE__ */ E({
9
- name: "TPopover",
10
- __name: "Popover",
11
- props: /* @__PURE__ */ S({
12
- trigger: { default: z.CLICK },
13
- disabled: { type: Boolean, default: !1 },
14
- placement: { default: a.BOTTOM },
15
- slotWrapperClasses: { default: "input-roundness" },
16
- width: { default: "auto" }
17
- }, {
18
- open: { type: Boolean, default: !1 },
19
- openModifiers: {}
20
- }),
21
- emits: ["update:open"],
22
- setup(c, { expose: I }) {
23
- const o = k(c, "open"), n = c, p = `popover_${++D}`, d = i(), f = u(() => n.placement), l = i(), r = i(), { wasClickOutsideOfContainer: _ } = R(), y = u(() => {
24
- if (n.placement === a.ACTIVATION_POSITION && r.value) {
25
- const { x: e, y: t } = r.value;
26
- return {
27
- getBoundingClientRect: () => ({
28
- x: e,
29
- y: t,
30
- left: e,
31
- top: t,
32
- right: e + 1,
33
- bottom: t + 1,
34
- width: 1,
35
- height: 1,
36
- toJSON: () => {
37
- }
38
- }),
39
- contextElement: l.value?.firstChild?.nextElementSibling
40
- };
41
- }
42
- return l.value?.firstChild?.nextElementSibling;
43
- }), h = u(() => {
44
- const e = n.placement === a.ACTIVATION_POSITION && r.value;
45
- return [
46
- L(e ? 0 : 5),
47
- V({
48
- apply({ elements: t }) {
49
- if (n.width === "static")
50
- return;
51
- const x = t.reference.getBoundingClientRect();
52
- Object.assign(t.floating.style, {
53
- minWidth: `${x.width}px`
54
- });
55
- }
56
- }),
57
- $({ crossAxis: !0 })
58
- ];
59
- }), { floatingStyles: P } = W(y, d, {
60
- open: o,
61
- placement: f.value === a.ACTIVATION_POSITION ? a.BOTTOM_START : f.value,
62
- middleware: h,
63
- whileElementsMounted: U
64
- }), m = (e, t) => {
65
- o.value = typeof e == "boolean" ? e : !o.value, o.value ? t && n.placement === a.ACTIVATION_POSITION && (r.value = { x: t.clientX, y: t.clientY }) : r.value = void 0;
66
- }, s = (e) => o.value && l.value && _(e, l.value) ? (o.value = !1, !1) : !0;
67
- return A(() => {
68
- document.addEventListener("click", s), document.addEventListener("contextmenu", s);
69
- }), B(() => {
70
- document.removeEventListener("click", s), document.removeEventListener("contextmenu", s);
71
- }), I({ name: p }), (e, t) => (v(), g("div", {
72
- ref_key: "wrapperRef",
73
- ref: l
74
- }, [
75
- T(e.$slots, "default", O(C({ onTogglePopover: m })), void 0, !0),
76
- o.value ? (v(), g("div", {
77
- key: 0,
78
- ref_key: "floating",
79
- ref: d,
80
- role: "tooltip",
81
- id: p,
82
- style: N(b(P)),
83
- class: w(["popover-floatable bg-caipira-primary z-10", {
84
- [n.slotWrapperClasses]: !0
85
- }])
86
- }, [
87
- T(e.$slots, "content", O(C({ onTogglePopover: m })), void 0, !0)
88
- ], 6)) : M("", !0)
89
- ], 512));
90
- }
91
- }), Y = /* @__PURE__ */ j(F, [["__scopeId", "data-v-f4d2e0e8"]]);
92
- export {
93
- Y as P
94
- };