@caipira/tamandua 0.0.47 → 0.0.49
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/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-D5J-rPuH.js → InputCheckbox.vue_vue_type_style_index_0_lang-DnRqQiOj.js} +20 -19
- package/dist/InputCryptoCurrency.js +6 -0
- package/dist/InputCryptoCurrency.vue_vue_type_script_setup_true_lang-BIUT5eCh.js +757 -0
- package/dist/InputPrice.js +2 -2
- package/dist/InputPrice.vue_vue_type_script_setup_true_lang-C2wDVwnm.js +80 -0
- package/dist/InputSelect.js +2 -2
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-B89uyzj-.js +226 -0
- package/dist/components.js +61 -59
- package/dist/{plugin-DPCk5fFS.js → plugin-4XhHBTQc.js} +1 -1
- package/dist/plugin-Bq4nQPd4.js +10 -0
- package/dist/{plugin-cVdTR_s6.js → plugin-C77cnZuW.js} +1 -1
- package/dist/{plugin-z8Hr_T_O.js → plugin-CQ-FpZui.js} +1 -1
- package/dist/{plugins-DFHv5iXr.js → plugins-CkB_la4g.js} +48 -46
- package/dist/plugins.js +59 -57
- package/dist/tamandua.js +1 -1
- package/dist/types/components/InputCryptoCurrency/InputCryptoCurrency.story.d.ts +14 -0
- package/dist/types/components/InputCryptoCurrency/InputCryptoCurrency.vue.d.ts +14 -0
- package/dist/types/components/InputCryptoCurrency/currencies.d.ts +8 -0
- package/dist/types/components/InputCryptoCurrency/index.d.ts +5 -0
- package/dist/types/components/InputCryptoCurrency/plugin.d.ts +4 -0
- package/dist/types/components/InputCryptoCurrency/types.d.ts +8 -0
- package/dist/types/components/InputPrice/InputPrice.story.d.ts +13 -0
- package/dist/types/components/InputPrice/InputPrice.vue.d.ts +8 -2
- package/dist/types/components/InputPrice/types.d.ts +4 -1
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +157 -53
- package/dist/types/components/InputSelect/types.d.ts +0 -1
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/plugins.d.ts +2 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/dist/InputPrice.vue_vue_type_script_setup_true_lang-BX4rsYIr.js +0 -67
- package/dist/InputSelect.vue_vue_type_script_setup_true_lang-vCtwK795.js +0 -235
package/dist/InputCheckbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-DnRqQiOj.js";
|
|
2
|
+
import { p as t } from "./plugin-4XhHBTQc.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputCheckbox,
|
|
5
5
|
t as InputCheckboxPlugin
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './InputCheckbox.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
4
|
-
let
|
|
5
|
-
const
|
|
2
|
+
import { defineComponent as c, ref as m, watch as b, openBlock as o, createElementBlock as r, withDirectives as f, createElementVNode as h, mergeProps as v, vModelCheckbox as k, toDisplayString as y, createCommentVNode as x } from "vue";
|
|
3
|
+
const _ = { class: "h-9 inline-flex items-center" }, B = ["indeterminate", "disabled"];
|
|
4
|
+
let V = 0;
|
|
5
|
+
const I = /* @__PURE__ */ c({
|
|
6
6
|
name: "TInputCheckbox",
|
|
7
7
|
__name: "InputCheckbox",
|
|
8
8
|
props: {
|
|
@@ -13,37 +13,38 @@ const V = /* @__PURE__ */ u({
|
|
|
13
13
|
initializeValue: { type: Boolean, default: !1 }
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:model-value", "input"],
|
|
16
|
-
setup(
|
|
17
|
-
const t =
|
|
16
|
+
setup(d, { emit: s }) {
|
|
17
|
+
const t = d, l = s, i = `checkbox_${++V}`, a = m(!1), p = () => {
|
|
18
18
|
const e = !a.value;
|
|
19
|
-
|
|
19
|
+
l("update:model-value", e), l("input", e);
|
|
20
20
|
};
|
|
21
|
-
return
|
|
21
|
+
return b(
|
|
22
22
|
() => t.modelValue,
|
|
23
23
|
(e) => {
|
|
24
|
-
t.initializeValue && typeof e > "u" &&
|
|
24
|
+
t.initializeValue && typeof e > "u" && l("update:model-value", !1), a.value = e;
|
|
25
25
|
},
|
|
26
26
|
{ immediate: !0 }
|
|
27
|
-
), (e, n) => (
|
|
28
|
-
h(
|
|
29
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
27
|
+
), (e, n) => (o(), r("div", _, [
|
|
28
|
+
f(h("input", v({
|
|
29
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => a.value = u)
|
|
30
30
|
}, e.$attrs, {
|
|
31
31
|
type: "checkbox",
|
|
32
32
|
class: "form-checkbox w-5 h-5 border input-border input-roundness color-caipira-primary-inverted bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
|
|
33
33
|
indeterminate: t.isIndeterminate,
|
|
34
|
-
id:
|
|
34
|
+
id: i,
|
|
35
35
|
disabled: e.disabled,
|
|
36
|
-
onInput:
|
|
37
|
-
}), null, 16,
|
|
36
|
+
onInput: p
|
|
37
|
+
}), null, 16, B), [
|
|
38
38
|
[k, a.value]
|
|
39
39
|
]),
|
|
40
|
-
o("label", {
|
|
40
|
+
t.label ? (o(), r("label", {
|
|
41
|
+
key: 0,
|
|
41
42
|
class: "cursor-pointer pl-2 mr-3 input-label",
|
|
42
|
-
for:
|
|
43
|
-
}, y(t.label), 1)
|
|
43
|
+
for: i
|
|
44
|
+
}, y(t.label), 1)) : x("", !0)
|
|
44
45
|
]));
|
|
45
46
|
}
|
|
46
47
|
});
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
I as _
|
|
49
50
|
};
|