@caipira/tamandua 0.0.67 → 0.0.68

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 (68) hide show
  1. package/dist/Backdrop.js +2 -2
  2. package/dist/Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js +22 -0
  3. package/dist/ChartLine.css +1 -1
  4. package/dist/{Drawer-Cl9_4uHA.js → Drawer-y5xBARd2.js} +1 -1
  5. package/dist/Drawer.js +2 -2
  6. package/dist/Dropdown.js +2 -2
  7. package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-CUPNdEz7.js → Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js} +23 -23
  8. package/dist/FileDrop.js +2 -2
  9. package/dist/{FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js → FileDrop.vue_vue_type_script_setup_true_lang-Bq0lAgZ7.js} +1 -1
  10. package/dist/InputCheckbox.js +2 -2
  11. 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
  12. package/dist/InputDate.js +2 -2
  13. package/dist/{InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.js → InputDate.vue_vue_type_script_setup_true_lang-BUEAELkk.js} +2 -2
  14. package/dist/InputPassword.js +2 -2
  15. 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
  16. package/dist/InputPrice.js +2 -2
  17. package/dist/{InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js → InputPrice.vue_vue_type_script_setup_true_lang-9UZ7YqAf.js} +12 -12
  18. package/dist/InputRadio.js +2 -2
  19. package/dist/InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js +35 -0
  20. package/dist/InputSelect.js +2 -2
  21. package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-CGlaDHiJ.js → InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js} +19 -16
  22. package/dist/InputSwitch.js +2 -2
  23. 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
  24. package/dist/Modal.js +2 -2
  25. package/dist/{Modal.vue_vue_type_script_setup_true_lang-DiUI27HX.js → Modal.vue_vue_type_script_setup_true_lang-BvUk8ebI.js} +1 -1
  26. package/dist/Popover-Bq_SpOWb.js +73 -0
  27. package/dist/Popover.css +1 -0
  28. package/dist/Popover.js +2 -2
  29. package/dist/{ProgressCircle-Cpmi2CpO.js → ProgressCircle-C5CnEEoe.js} +14 -14
  30. package/dist/ProgressCircle.css +1 -1
  31. package/dist/ProgressCircle.js +2 -2
  32. package/dist/{ProgressLine-CTS0VOAI.js → ProgressLine-BqINh5jh.js} +13 -13
  33. package/dist/ProgressLine.css +1 -1
  34. package/dist/ProgressLine.js +2 -2
  35. package/dist/Skeleton.js +2 -2
  36. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-Dsy_4Ftz.js +18 -0
  37. package/dist/Tab.js +2 -2
  38. package/dist/{Tab.vue_vue_type_script_setup_true_lang-6bgS8FOw.js → Tab.vue_vue_type_script_setup_true_lang-OuqLqd04.js} +16 -16
  39. package/dist/components.js +17 -17
  40. package/dist/index.css +62 -41
  41. package/dist/{plugin-BJyDH94F.js → plugin-3Ql4s0Jh.js} +1 -1
  42. package/dist/{plugin-CJ6sqqaI.js → plugin-43q0Kzto.js} +1 -1
  43. package/dist/{plugin-C-iGigb_.js → plugin-AU2qI2I9.js} +1 -1
  44. package/dist/{plugin-MAzqwXys.js → plugin-CV6IjnsL.js} +1 -1
  45. package/dist/{plugin-RM2wZuwL.js → plugin-Co9LymNO.js} +1 -1
  46. package/dist/{plugin-x-Y35fqX.js → plugin-CzRCyET3.js} +1 -1
  47. package/dist/{plugin-wVt0wQNv.js → plugin-DBDBJ5_6.js} +1 -1
  48. package/dist/{plugin-BVJKxqmv.js → plugin-DIj5ypE6.js} +1 -1
  49. package/dist/{plugin-CZ2rAHjJ.js → plugin-DMGSStZm.js} +1 -1
  50. package/dist/{plugin-DxUJiAk-.js → plugin-DNJyBcDk.js} +1 -1
  51. package/dist/{plugin-Ch67LOIy.js → plugin-DSHWwE9A.js} +1 -1
  52. package/dist/{plugin-Do2-cqMT.js → plugin-DXPEO1fb.js} +1 -1
  53. package/dist/{plugin-C1kAmMfE.js → plugin-DYHfPgzY.js} +1 -1
  54. package/dist/{plugin-CNwzCYlr.js → plugin-JMSzJgz5.js} +1 -1
  55. package/dist/plugin-RTst32IC.js +10 -0
  56. package/dist/{plugin-B63n9_uc.js → plugin-hQ-aWPlo.js} +1 -1
  57. package/dist/{plugin-dX-bbpm5.js → plugin-n_PnyR3n.js} +1 -1
  58. package/dist/{plugins-3Yf4y3PS.js → plugins-CEGTMSZE.js} +24 -24
  59. package/dist/plugins.js +24 -24
  60. package/dist/tamandua.js +1 -1
  61. package/dist/types/components/Skeleton/Skeleton.vue.d.ts +29 -7
  62. package/dist/types/components/Skeleton/types.d.ts +4 -1
  63. package/package.json +1 -1
  64. package/dist/Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js +0 -22
  65. package/dist/InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js +0 -35
  66. package/dist/Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js +0 -71
  67. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-WahY1vGW.js +0 -11
  68. package/dist/plugin-ColpxTKB.js +0 -10
package/dist/Backdrop.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
2
- import { p as c } from "./plugin-C-iGigb_.js";
1
+ import { _ as p } from "./Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js";
2
+ import { p as c } from "./plugin-AU2qI2I9.js";
3
3
  export {
4
4
  p as Backdrop,
5
5
  c as BackdropPlugin
@@ -0,0 +1,22 @@
1
+ import { defineComponent as a, openBlock as c, createElementBlock as i, normalizeClass as l } from "vue";
2
+ const u = /* @__PURE__ */ a({
3
+ name: "TBackdrop",
4
+ __name: "Backdrop",
5
+ props: {
6
+ isTransparent: { type: Boolean, default: !1 }
7
+ },
8
+ emits: ["click"],
9
+ setup(o, { emit: n }) {
10
+ const t = o, r = n;
11
+ return (p, e) => (c(), i("div", {
12
+ class: l(["fixed inset-0", {
13
+ "bg-[var(--unfocused-bg-color)] opacity-80": !t.isTransparent
14
+ }]),
15
+ role: "button",
16
+ onClick: e[0] || (e[0] = (s) => r("click", s))
17
+ }, null, 2));
18
+ }
19
+ });
20
+ export {
21
+ u as _
22
+ };
@@ -1 +1 @@
1
- .axis-grid line{stroke:var(--caipira-tertiary)}
1
+ .axis-grid line{stroke:var(--unfocused-bg-color)}
@@ -1,6 +1,6 @@
1
1
  import './Drawer.css';
2
2
  import { defineComponent as _, ref as b, onMounted as v, resolveComponent as y, openBlock as t, createElementBlock as r, withKeys as h, createVNode as i, createElementVNode as d, normalizeClass as c, toDisplayString as k, createCommentVNode as s, renderSlot as a } from "vue";
3
- import { _ as w } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
3
+ import { _ as w } from "./Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js";
4
4
  import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const C = {
6
6
  key: 0,
package/dist/Drawer.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as e } from "./Drawer-Cl9_4uHA.js";
2
- import { p } from "./plugin-CNwzCYlr.js";
1
+ import { D as e } from "./Drawer-y5xBARd2.js";
2
+ import { p } from "./plugin-JMSzJgz5.js";
3
3
  export {
4
4
  e as Drawer,
5
5
  p as DrawerPlugin
package/dist/Dropdown.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Dropdown.vue_vue_type_script_setup_true_lang-CUPNdEz7.js";
2
- import { p as a } from "./plugin-x-Y35fqX.js";
1
+ import { _ as p } from "./Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js";
2
+ import { p as a } from "./plugin-CzRCyET3.js";
3
3
  export {
4
4
  p as Dropdown,
5
5
  a as DropdownPlugin
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, ref as w, resolveComponent as V, openBlock as n, createElementBlock as a, normalizeClass as u, createVNode as z, Fragment as R, renderList as K, toDisplayString as P, withKeys as A, renderSlot as E, normalizeProps as G, mergeProps as $, createBlock as I, createCommentVNode as O, createTextVNode as F, createElementVNode as U } from "vue";
1
+ import { defineComponent as T, ref as w, resolveComponent as V, openBlock as l, createElementBlock as a, normalizeClass as u, createVNode as z, Fragment as R, renderList as K, toDisplayString as P, withKeys as A, renderSlot as E, normalizeProps as G, mergeProps as $, createBlock as I, createCommentVNode as O, createTextVNode as F, createElementVNode as U } from "vue";
2
2
  const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected", "onKeydown", "onClick"], J = {
3
3
  key: 1,
4
4
  class: "inline-flex items-center select-none input-text-color"
@@ -13,16 +13,16 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
13
13
  optionMarginClass: { default: "" },
14
14
  optionPaddingClass: { default: "py-2 px-2" },
15
15
  wrapperPaddingClass: { default: "" },
16
- optionRoundnessClass: { default: "" },
17
- wrapperRoundnessClass: { default: "rounded-md" }
16
+ optionRoundnessClass: { default: "input-roundness" },
17
+ wrapperRoundnessClass: { default: "input-roundness" }
18
18
  },
19
19
  emits: ["change", "end-reached", "created"],
20
20
  setup(H, { expose: S, emit: B }) {
21
- const s = H, b = B, i = w(-1), v = w(null), d = w([]), f = w("keyboard"), y = (o = i.value, t = s.items[o], l = void 0) => {
22
- l?.stopPropagation(), b("change", {
21
+ const s = H, b = B, i = w(-1), v = w(null), d = w([]), f = w("keyboard"), y = (o = i.value, t = s.items[o], n = void 0) => {
22
+ n?.stopPropagation(), b("change", {
23
23
  index: o,
24
24
  option: t,
25
- hold: l?.ctrlKey ?? !1
25
+ hold: n?.ctrlKey ?? !1
26
26
  }), t.action && t.action();
27
27
  }, D = (o) => {
28
28
  if (!s.isVisible)
@@ -38,12 +38,12 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
38
38
  const o = v.value;
39
39
  o.scrollTop = 0;
40
40
  }, x = (o) => {
41
- const t = o.key === "ArrowDown", l = s.items.length;
41
+ const t = o.key === "ArrowDown", n = s.items.length;
42
42
  let e = i.value;
43
43
  const r = () => s.items[e] ? "isGroupLabel" in s.items[e] && s.items[e].isGroupLabel : !1, p = () => {
44
- e === l - 1 ? e = 0 : e++;
44
+ e === n - 1 ? e = 0 : e++;
45
45
  }, N = () => {
46
- e === 0 ? e = l - 1 : e--;
46
+ e === 0 ? e = n - 1 : e--;
47
47
  };
48
48
  if (t)
49
49
  do
@@ -53,7 +53,7 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
53
53
  do
54
54
  N();
55
55
  while (r());
56
- e > -1 && e < l && (i.value = e);
56
+ e > -1 && e < n && (i.value = e);
57
57
  const C = v.value, k = d.value[i.value], m = k.offsetTop, g = k.offsetHeight, _ = C.offsetHeight, c = C.scrollTop;
58
58
  let h = 0;
59
59
  if (k.focus(), m === 0 || c === 0)
@@ -66,21 +66,21 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
66
66
  return !0;
67
67
  return C.scroll({ top: h }), !0;
68
68
  }, M = (o) => {
69
- const t = o.target, l = d.value[0];
70
- !t || !l || t.scrollTop + t.clientHeight + l.offsetHeight >= t.scrollHeight && b("end-reached");
69
+ const t = o.target, n = d.value[0];
70
+ !t || !n || t.scrollTop + t.clientHeight + n.offsetHeight >= t.scrollHeight && b("end-reached");
71
71
  };
72
72
  return S({ move: x, resetScroll: L }), (o, t) => {
73
- const l = V("t-icon");
74
- return n(), a("ul", {
73
+ const n = V("t-icon");
74
+ return l(), a("ul", {
75
75
  ref_key: "listRef",
76
76
  ref: v,
77
77
  role: "listbox",
78
- class: u(["text-left max-h-60 min-w-[12rem] z-10 overflow-y-auto scrollbar select-none floatable w-full", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
78
+ class: u(["text-left max-h-60 min-w-[8rem] z-10 overflow-y-auto scrollbar select-none floatable w-full", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
79
79
  onScrollend: M,
80
80
  onMousemove: t[0] || (t[0] = () => f.value = "mouse"),
81
81
  onKeydown: D
82
82
  }, [
83
- s.loading ? (n(), a("li", {
83
+ s.loading ? (l(), a("li", {
84
84
  key: 0,
85
85
  role: "option",
86
86
  "aria-disabled": "true",
@@ -90,13 +90,13 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
90
90
  s.optionRoundnessClass
91
91
  ]])
92
92
  }, [
93
- z(l, {
93
+ z(n, {
94
94
  size: "sm",
95
95
  class: "w-6 h-6 animate-spin mr-3",
96
96
  icon: "loading"
97
97
  }),
98
98
  j
99
- ], 2)) : o.items.length === 0 ? (n(), a("li", {
99
+ ], 2)) : o.items.length === 0 ? (l(), a("li", {
100
100
  key: 1,
101
101
  role: "option",
102
102
  "aria-disabled": "true",
@@ -105,10 +105,10 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
105
105
  s.optionMarginClass,
106
106
  s.optionRoundnessClass
107
107
  ]])
108
- }, " Nothing here ", 2)) : (n(!0), a(R, { key: 2 }, K(o.items, (e, r) => (n(), a(R, {
108
+ }, " Nothing here ", 2)) : (l(!0), a(R, { key: 2 }, K(o.items, (e, r) => (l(), a(R, {
109
109
  key: e?.isGroupLabel ? r : e.value
110
110
  }, [
111
- e.isGroupLabel ? (n(), a("li", {
111
+ e.isGroupLabel ? (l(), a("li", {
112
112
  key: 0,
113
113
  class: u(["text-xs font-bold tracking-wider text-neutral-600", [
114
114
  s.optionPaddingClass,
@@ -118,7 +118,7 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
118
118
  ref_for: !0,
119
119
  ref_key: "itemRefs",
120
120
  ref: d
121
- }, P(e.label), 3)) : (n(), a("li", {
121
+ }, P(e.label), 3)) : (l(), a("li", {
122
122
  key: 1,
123
123
  class: u([{
124
124
  "bg-[var(--hover-color)]": r === i.value && f.value === "keyboard",
@@ -136,8 +136,8 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
136
136
  onKeydown: A((p) => y(r, e), ["enter"]),
137
137
  onClick: (p) => y(r, e, p)
138
138
  }, [
139
- o.$slots.default ? E(o.$slots, "default", G($({ key: 0 }, e))) : (n(), a("div", J, [
140
- e.icon ? (n(), I(l, {
139
+ o.$slots.default ? E(o.$slots, "default", G($({ key: 0 }, e))) : (l(), a("div", J, [
140
+ e.icon ? (l(), I(n, {
141
141
  key: 0,
142
142
  icon: e.icon,
143
143
  class: "mr-2",
package/dist/FileDrop.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js";
2
- import { p as i } from "./plugin-CJ6sqqaI.js";
1
+ import { _ as p } from "./FileDrop.vue_vue_type_script_setup_true_lang-Bq0lAgZ7.js";
2
+ import { p as i } from "./plugin-43q0Kzto.js";
3
3
  export {
4
4
  p as FileDrop,
5
5
  i as FileDropPlugin
@@ -72,7 +72,7 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
72
72
  ]))), 128))
73
73
  ])) : (s(), a("div", j, [
74
74
  f(r, {
75
- class: "text-[var(--unfocused-color)]",
75
+ class: "text-[var(--unfocused-bg-color)]",
76
76
  icon: "upload",
77
77
  role: "button",
78
78
  size: "lg"
@@ -1,5 +1,5 @@
1
- import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js";
2
- import { p as t } from "./plugin-BVJKxqmv.js";
1
+ import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js";
2
+ import { p as t } from "./plugin-DIj5ypE6.js";
3
3
  export {
4
4
  e as InputCheckbox,
5
5
  t as InputCheckboxPlugin
@@ -1,5 +1,5 @@
1
1
  import './InputCheckbox.css';
2
- import { defineComponent as u, ref as m, watch as f, resolveComponent as b, openBlock as i, createElementBlock as h, withDirectives as v, createElementVNode as _, mergeProps as k, vModelCheckbox as y, createBlock as x, withCtx as B, createTextVNode as C, toDisplayString as V, createCommentVNode as g } from "vue";
2
+ import { defineComponent as u, ref as m, watch as f, resolveComponent as b, openBlock as i, createElementBlock as h, withDirectives as v, createElementVNode as y, mergeProps as _, vModelCheckbox as k, createBlock as x, withCtx as B, createTextVNode as C, toDisplayString as V, createCommentVNode as g } from "vue";
3
3
  const I = { class: "h-9 inline-flex items-center" }, w = ["indeterminate", "disabled"];
4
4
  let N = 0;
5
5
  const D = /* @__PURE__ */ u({
@@ -27,17 +27,17 @@ const D = /* @__PURE__ */ u({
27
27
  ), (e, n) => {
28
28
  const p = b("t-graphy-label");
29
29
  return i(), h("div", I, [
30
- v(_("input", k({
30
+ v(y("input", _({
31
31
  "onUpdate:modelValue": n[0] || (n[0] = (c) => a.value = c)
32
32
  }, e.$attrs, {
33
33
  type: "checkbox",
34
- class: "form-checkbox w-5 h-5 border input-border input-roundness bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
34
+ class: "form-checkbox w-5 h-5 border border-[var(--caipira-primary-inverted)] input-roundness bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
35
35
  indeterminate: t.isIndeterminate,
36
36
  id: o,
37
37
  disabled: e.disabled,
38
38
  onInput: s
39
39
  }), null, 16, w), [
40
- [y, a.value]
40
+ [k, a.value]
41
41
  ]),
42
42
  t.label ? (i(), x(p, {
43
43
  key: 0,
package/dist/InputDate.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.js";
2
- import { p as o } from "./plugin-Ch67LOIy.js";
1
+ import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-BUEAELkk.js";
2
+ import { p as o } from "./plugin-DSHWwE9A.js";
3
3
  export {
4
4
  a as InputDate,
5
5
  o as InputDatePlugin
@@ -163,13 +163,13 @@ const oe = ["value"], le = {
163
163
  (v(!0), m($, null, F(H.value, (t) => (v(), m("div", {
164
164
  key: t.key,
165
165
  style: { width: "14.28%" },
166
- class: "px-1 mb-1"
166
+ class: "p-0 m-0"
167
167
  }, [
168
168
  a("div", {
169
169
  onClick: (_) => R(t),
170
170
  class: T(["cursor-pointer text-center text-sm rounded-sm leading-loose transition ease-in-out duration-100", {
171
171
  "hover:bg-[var(--hover-color)]": !t.selected,
172
- "color-unfocused-text": t.overflow !== 0,
172
+ "text-[var(--unfocused-text-color)]": t.overflow !== 0,
173
173
  "border border-caipira-primary-inverted": t.isToday,
174
174
  "color-caipira-primary bg-caipira-primary-inverted": t.selected
175
175
  }])
@@ -1,5 +1,5 @@
1
- import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-BMChy2_E.js";
2
- import { p as a } from "./plugin-BJyDH94F.js";
1
+ import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-ChHDOnS8.js";
2
+ import { p as a } from "./plugin-3Ql4s0Jh.js";
3
3
  export {
4
4
  s as InputPassword,
5
5
  a as InputPasswordPlugin
@@ -1,57 +1,57 @@
1
- import { defineComponent as ee, mergeModels as j, useModel as te, ref as R, watch as le, resolveComponent as V, openBlock as A, createElementBlock as S, Fragment as ne, createElementVNode as z, normalizeClass as B, createVNode as k, unref as U, createCommentVNode as _, withKeys as oe, createBlock as se, toDisplayString as ae } from "vue";
1
+ import { defineComponent as ee, mergeModels as V, useModel as te, ref as R, watch as le, resolveComponent as j, openBlock as A, createElementBlock as S, Fragment as ne, createElementVNode as z, normalizeClass as B, createVNode as k, unref as U, createCommentVNode as _, withKeys as se, createBlock as oe, toDisplayString as ae } from "vue";
2
2
  import { u as re } from "./useClipboard-BHFD0Jvv.js";
3
3
  import { f as ie } from "./format-BZx-8XXc.js";
4
- const ue = (o = 18) => {
4
+ const ue = (s = 18) => {
5
5
  const e = "abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789", a = "!?@#-+<%$>[]{}";
6
6
  let n = "";
7
7
  const l = [
8
- Math.floor(Math.random() * o),
9
- Math.floor(Math.random() * o)
8
+ Math.floor(Math.random() * s),
9
+ Math.floor(Math.random() * s)
10
10
  ];
11
- for (let r = 0; r < o; r++)
11
+ for (let r = 0; r < s; r++)
12
12
  l.includes(r) ? n += a.charAt(
13
13
  Math.floor(Math.random() * a.length)
14
14
  ) : n += e.charAt(
15
15
  Math.floor(Math.random() * e.length)
16
16
  );
17
17
  return n;
18
- }, ce = (o) => {
19
- let e = 0, a = 0, n = 0, l = 0, r = 0, u = 0, c = 0, b = 0, d = 0, w = 0, p = 0, C = 0, v = 0, s = 0, m = 0, M = 0, x = 0, g = 0, F = 2, O = 2, T = 2, E = 2, I = 3, D = 3, K = 3, Z = 4, G = 4, H = 6, L = 0, q = 0, N = 0;
20
- const Q = "abcdefghijklmnopqrstuvwxyz", W = "01234567890", X = ")!@#$%^&*()", Y = 8, h = o.replace(/\s+/g, "").split(/\s*/), y = h.length;
21
- e = o.length * Z, a = o.length;
22
- for (let t = 0; t < y; t++) {
23
- h[t].match(/[A-Z]/g) ? (L !== 0 && L + 1 === t && C++, L = t, n++) : h[t].match(/[a-z]/g) ? (q !== 0 && q + 1 === t && v++, q = t, l++) : h[t].match(/[0-9]/g) ? (t > 0 && t < y - 1 && c++, N !== 0 && N + 1 === t && s++, N = t, r++) : h[t].match(/[^a-zA-Z0-9_]/g) && (t > 0 && t < y - 1 && c++, u++);
18
+ }, ce = (s) => {
19
+ let e = 0, a = 0, n = 0, l = 0, r = 0, u = 0, c = 0, b = 0, d = 0, w = 0, p = 0, C = 0, v = 0, o = 0, m = 0, M = 0, x = 0, y = 0, F = 2, O = 2, T = 2, E = 2, I = 3, D = 3, K = 3, Z = 4, G = 4, H = 6, L = 0, q = 0, N = 0;
20
+ const Q = "abcdefghijklmnopqrstuvwxyz", W = "01234567890", X = ")!@#$%^&*()", Y = 8, h = s.replace(/\s+/g, "").split(/\s*/), g = h.length;
21
+ e = s.length * Z, a = s.length;
22
+ for (let t = 0; t < g; t++) {
23
+ h[t].match(/[A-Z]/g) ? (L !== 0 && L + 1 === t && C++, L = t, n++) : h[t].match(/[a-z]/g) ? (q !== 0 && q + 1 === t && v++, q = t, l++) : h[t].match(/[0-9]/g) ? (t > 0 && t < g - 1 && c++, N !== 0 && N + 1 === t && o++, N = t, r++) : h[t].match(/[^a-zA-Z0-9_]/g) && (t > 0 && t < g - 1 && c++, u++);
24
24
  let i = !1;
25
- for (let f = 0; f < y; f++)
26
- h[t] == h[f] && t != f && (i = !0, p += Math.abs(y / (f - t)));
27
- i && (w++, d = y - w, p = Math.ceil(d ? p / d : p));
25
+ for (let f = 0; f < g; f++)
26
+ h[t] == h[f] && t != f && (i = !0, p += Math.abs(g / (f - t)));
27
+ i && (w++, d = g - w, p = Math.ceil(d ? p / d : p));
28
28
  }
29
29
  for (let t = 0; t < 23; t++) {
30
30
  let i = Q.substring(t, t + 3), f = i.split("").reverse().join("");
31
- (o.toLowerCase().indexOf(i) != -1 || o.toLowerCase().indexOf(f) != -1) && m++;
31
+ (s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(f) != -1) && m++;
32
32
  }
33
33
  for (let t = 0; t < 8; t++) {
34
34
  let i = W.substring(t, t + 3);
35
35
  var J = i.split("").reverse().join("");
36
- (o.toLowerCase().indexOf(i) != -1 || o.toLowerCase().indexOf(J) != -1) && M++;
36
+ (s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(J) != -1) && M++;
37
37
  }
38
38
  for (let t = 0; t < 8; t++) {
39
39
  let i = X.substring(t, t + 3), f = i.split("").reverse().join("");
40
- (o.toLowerCase().indexOf(i) != -1 || o.toLowerCase().indexOf(f) != -1) && x++;
40
+ (s.toLowerCase().indexOf(i) != -1 || s.toLowerCase().indexOf(f) != -1) && x++;
41
41
  }
42
- n > 0 && n < a && (e = e + (a - n) * 2), l > 0 && l < a && (e = e + (a - l) * 2), r > 0 && r < a && (e = e + r * G), u > 0 && (e = e + u * H), c > 0 && (e = e + c * F), (l > 0 || n > 0) && u === 0 && r === 0 && (e = e - a), l === 0 && n === 0 && u === 0 && r > 0 && (e = e - a), w > 0 && (e = e - p), C > 0 && (e = e - C * O), v > 0 && (e = e - v * T), s > 0 && (e = e - s * E), m > 0 && (e = e - m * I), M > 0 && (e = e - M * D), x > 0 && (e = e - x * K), b = g;
42
+ n > 0 && n < a && (e = e + (a - n) * 2), l > 0 && l < a && (e = e + (a - l) * 2), r > 0 && r < a && (e = e + r * G), u > 0 && (e = e + u * H), c > 0 && (e = e + c * F), (l > 0 || n > 0) && u === 0 && r === 0 && (e = e - a), l === 0 && n === 0 && u === 0 && r > 0 && (e = e - a), w > 0 && (e = e - p), C > 0 && (e = e - C * O), v > 0 && (e = e - v * T), o > 0 && (e = e - o * E), m > 0 && (e = e - m * I), M > 0 && (e = e - M * D), x > 0 && (e = e - x * K), b = y;
43
43
  let P = 0;
44
- return o.length >= Y ? P = 3 : P = 4, b > P && (e = e + b * 2), e > 100 ? e = 100 : e < 0 && (e = 0), e;
44
+ return s.length >= Y ? P = 3 : P = 4, b > P && (e = e + b * 2), e > 100 ? e = 100 : e < 0 && (e = 0), e;
45
45
  }, $ = {
46
46
  generatePassword: ue,
47
47
  getPasswordStrength: ce
48
- }, fe = { class: "flex border h-9 relative input-roundness input-border w-full" }, de = { class: "border-l select-none input-border input-bg-color" }, pe = {
48
+ }, fe = { class: "flex border h-9 relative input-roundness input-border w-full" }, de = { class: "w-12 flex justify-center items-center border-l select-none ml-[0.5px] rounded-r-[var(--input-radius)] input-border input-bg-color" }, pe = {
49
49
  key: 1,
50
50
  class: "inline-block float-right select-none"
51
- }, ge = /* @__PURE__ */ ee({
51
+ }, ye = /* @__PURE__ */ ee({
52
52
  name: "TInputPassword",
53
53
  __name: "InputPassword",
54
- props: /* @__PURE__ */ j({
54
+ props: /* @__PURE__ */ V({
55
55
  autocomplete: { default: "current-password" },
56
56
  encryptor: { type: Function, default: void 0 },
57
57
  showCopy: { type: Boolean, default: !0 },
@@ -68,10 +68,10 @@ const ue = (o = 18) => {
68
68
  },
69
69
  modelModifiers: {}
70
70
  }),
71
- emits: /* @__PURE__ */ j(["generate", "enter"], ["update:modelValue"]),
72
- setup(o, { expose: e, emit: a }) {
73
- const n = o, l = te(o, "modelValue"), r = a, u = R("password"), c = R(null), { copy: b } = re(), d = R(!1), w = async (v, s) => {
74
- if (s === void 0 && !v) {
71
+ emits: /* @__PURE__ */ V(["generate", "enter"], ["update:modelValue"]),
72
+ setup(s, { expose: e, emit: a }) {
73
+ const n = s, l = te(s, "modelValue"), r = a, u = R("password"), c = R(null), { copy: b } = re(), d = R(!1), w = async (v, o) => {
74
+ if (o === void 0 && !v) {
75
75
  l.value = { ...l.value };
76
76
  return;
77
77
  }
@@ -81,13 +81,13 @@ const ue = (o = 18) => {
81
81
  }, C = async () => {
82
82
  l.value.raw = $.generatePassword(), r("generate", l.value);
83
83
  };
84
- return le(() => l.value.raw, w, { immediate: !0 }), e({ focus: p }), (v, s) => {
85
- const m = V("t-button"), M = V("t-input-text"), x = V("t-progress-line");
84
+ return le(() => l.value.raw, w, { immediate: !0 }), e({ focus: p }), (v, o) => {
85
+ const m = j("t-button"), M = j("t-input-text"), x = j("t-progress-line");
86
86
  return A(), S(ne, null, [
87
87
  z("div", fe, [
88
88
  n.showCopy ? (A(), S("div", {
89
89
  key: 0,
90
- class: B(["flex justify-center items-center border-r select-none input-border input-bg-color", { "w-12": n.showCopy }])
90
+ class: B(["flex justify-center items-center border-r select-none rounded-l-[var(--input-radius)] input-border input-bg-color", { "w-12": n.showCopy }])
91
91
  }, [
92
92
  k(m, {
93
93
  variant: "transparent",
@@ -105,7 +105,7 @@ const ue = (o = 18) => {
105
105
  reset: { opacity: 1, scale: 1 }
106
106
  },
107
107
  disabled: d.value,
108
- onClick: s[0] || (s[0] = (g) => U(b)(l.value.raw))
108
+ onClick: o[0] || (o[0] = (y) => U(b)(l.value.raw))
109
109
  }, null, 8, ["disabled"])
110
110
  ], 2)) : _("", !0),
111
111
  n.showRefresh ? (A(), S("div", {
@@ -129,7 +129,7 @@ const ue = (o = 18) => {
129
129
  ], 2)) : _("", !0),
130
130
  k(M, {
131
131
  modelValue: l.value.raw,
132
- "onUpdate:modelValue": s[1] || (s[1] = (g) => l.value.raw = g),
132
+ "onUpdate:modelValue": o[1] || (o[1] = (y) => l.value.raw = y),
133
133
  type: u.value,
134
134
  autocomplete: n.autocomplete,
135
135
  disabled: d.value,
@@ -137,7 +137,7 @@ const ue = (o = 18) => {
137
137
  ref_key: "input",
138
138
  ref: c,
139
139
  class: "w-full px-2 input-bg-color input-text-color input-outline input-roundness",
140
- onKeyup: s[2] || (s[2] = oe((g) => r("enter"), ["enter"]))
140
+ onKeyup: o[2] || (o[2] = se((y) => r("enter"), ["enter"]))
141
141
  }, null, 8, ["modelValue", "type", "autocomplete", "disabled"]),
142
142
  z("div", de, [
143
143
  k(m, {
@@ -146,11 +146,11 @@ const ue = (o = 18) => {
146
146
  class: "h-full w-full justify-center",
147
147
  icon: u.value === "password" ? "eye" : "eye-off",
148
148
  disabled: d.value,
149
- onClick: s[3] || (s[3] = (g) => u.value = u.value === "password" ? "text" : "password")
149
+ onClick: o[3] || (o[3] = (y) => u.value = u.value === "password" ? "text" : "password")
150
150
  }, null, 8, ["icon", "disabled"])
151
151
  ])
152
152
  ]),
153
- n.showStrength ? (A(), se(x, {
153
+ n.showStrength ? (A(), oe(x, {
154
154
  key: 0,
155
155
  value: l.value.strength,
156
156
  class: "mt-0.5",
@@ -163,5 +163,5 @@ const ue = (o = 18) => {
163
163
  }
164
164
  });
165
165
  export {
166
- ge as _
166
+ ye as _
167
167
  };
@@ -1,5 +1,5 @@
1
- import { _ as e } from "./InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js";
2
- import { p as t } from "./plugin-RM2wZuwL.js";
1
+ import { _ as e } from "./InputPrice.vue_vue_type_script_setup_true_lang-9UZ7YqAf.js";
2
+ import { p as t } from "./plugin-Co9LymNO.js";
3
3
  export {
4
4
  e as InputPrice,
5
5
  t as InputPricePlugin
@@ -23,11 +23,11 @@ const _ = {
23
23
  modelModifiers: {}
24
24
  }),
25
25
  emits: /* @__PURE__ */ a(["keyup", "blur"], ["update:modelValue"]),
26
- setup(r, { emit: n }) {
27
- const e = b(r, "modelValue"), u = n, i = r, p = (o) => ({
26
+ setup(r, { emit: l }) {
27
+ const e = b(r, "modelValue"), n = l, i = r, d = (o) => ({
28
28
  label: o.symbol,
29
29
  value: o.iso
30
- }), d = (o, t) => {
30
+ }), p = (o, t) => {
31
31
  if (t === void 0) {
32
32
  e.value = { ...e.value };
33
33
  return;
@@ -39,26 +39,26 @@ const _ = {
39
39
  iso: o
40
40
  };
41
41
  }, m = (o) => {
42
- const l = o.target.value;
42
+ const u = o.target.value;
43
43
  e.value = {
44
44
  ...e.value,
45
- value: _.inputToPriceNumber(l)
45
+ value: _.inputToPriceNumber(u)
46
46
  };
47
47
  };
48
- return f(e, d, { immediate: !0 }), (o, t) => {
49
- const l = g("t-input-select");
48
+ return f(e, p, { immediate: !0 }), (o, t) => {
49
+ const u = g("t-input-select");
50
50
  return x(), y("div", h, [
51
- I(l, {
51
+ I(u, {
52
52
  modelValue: e.value.iso,
53
53
  "onUpdate:modelValue": [
54
54
  t[0] || (t[0] = (s) => e.value.iso = s),
55
55
  c
56
56
  ],
57
57
  resource: i.resource,
58
- mapper: p,
58
+ mapper: d,
59
59
  "width-class": "w-20",
60
60
  "border-class": "border-t border-r border-b input-border",
61
- "roundness-class": ""
61
+ "roundness-class": "rounded-l-[var(--input-radius)]"
62
62
  }, null, 8, ["modelValue", "resource"]),
63
63
  N(M("input", {
64
64
  "onUpdate:modelValue": t[1] || (t[1] = (s) => e.value.value = s),
@@ -66,8 +66,8 @@ const _ = {
66
66
  class: "w-full h-full input-bg-color input-text-color input-outline input-roundness input-padding",
67
67
  disabled: i.disabled,
68
68
  onInput: m,
69
- onKeyup: t[2] || (t[2] = (s) => u("keyup", s)),
70
- onBlur: t[3] || (t[3] = (s) => u("blur", s))
69
+ onKeyup: t[2] || (t[2] = (s) => n("keyup", s)),
70
+ onBlur: t[3] || (t[3] = (s) => n("blur", s))
71
71
  }, null, 40, k), [
72
72
  [P, e.value.value]
73
73
  ])
@@ -1,5 +1,5 @@
1
- import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
2
- import { p as t } from "./plugin-Do2-cqMT.js";
1
+ import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js";
2
+ import { p as t } from "./plugin-DXPEO1fb.js";
3
3
  export {
4
4
  a as InputRadio,
5
5
  t as InputRadioPlugin
@@ -0,0 +1,35 @@
1
+ import './InputRadio.css';
2
+ import { defineComponent as p, inject as r, openBlock as m, createElementBlock as u, createElementVNode as o, unref as a, toDisplayString as b } from "vue";
3
+ const v = { class: "h-9 inline-flex items-center" }, h = ["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 i = `radio_${++f}`, c = r("name", ""), e = t, l = r("model", ""), d = r("change", () => {
14
+ }), s = r("disabled", !1);
15
+ return (_, n) => (m(), u("div", v, [
16
+ o("input", {
17
+ value: e.value,
18
+ name: a(c),
19
+ id: i,
20
+ disabled: a(s),
21
+ checked: e.value === a(l),
22
+ type: "radio",
23
+ class: "form-radio w-5 h-5 border border-[var(--caipira-primary-inverted)] 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: n[0] || (n[0] = (y) => a(d)(e.value))
25
+ }, null, 40, h),
26
+ o("label", {
27
+ class: "cursor-pointer pl-2 mr-3 input-label",
28
+ for: i
29
+ }, b(e.label), 1)
30
+ ]));
31
+ }
32
+ });
33
+ export {
34
+ g as _
35
+ };
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-CGlaDHiJ.js";
2
- import { p as r } from "./plugin-DxUJiAk-.js";
1
+ import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js";
2
+ import { p as r } from "./plugin-DNJyBcDk.js";
3
3
  export {
4
4
  p as InputSelect,
5
5
  r as InputSelectPlugin