manolis-ui 0.27.4 → 0.27.6
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/SearchCounter-Bo1dwTXm.js +41 -0
- package/dist/index.d.ts +2422 -234
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +3967 -1839
- package/dist/manolis-ui.umd.cjs +11 -11
- package/dist/style.css +257 -182
- package/package.json +2 -4
- package/dist/inputField-BxT95oyM.js +0 -4
- package/dist/select-Cz4vf_YE.js +0 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as f, ref as x, watch as v, createElementBlock as l, openBlock as a, Fragment as h, renderList as g, createElementVNode as e, toDisplayString as d, withModifiers as u } from "vue";
|
|
2
|
+
const V = { class: "flex flex-col gap-6" }, C = { class: "flex flex-col" }, w = { class: "font-bold capitalize text-lg" }, k = { class: "flex items-center gap-4" }, B = ["disabled", "onClick"], E = { class: "w-6 text-center font-mono text-lg" }, M = ["onClick"], $ = /* @__PURE__ */ f({
|
|
3
|
+
__name: "SearchCounter",
|
|
4
|
+
props: {
|
|
5
|
+
modelValue: {}
|
|
6
|
+
},
|
|
7
|
+
emits: ["update:modelValue"],
|
|
8
|
+
setup(b, { emit: m }) {
|
|
9
|
+
const c = b, p = m, t = x({ ...c.modelValue }), i = (o, s) => {
|
|
10
|
+
t.value[o] = Math.max(0, t.value[o] + s), p("update:modelValue", { ...t.value });
|
|
11
|
+
};
|
|
12
|
+
return v(() => c.modelValue, (o) => {
|
|
13
|
+
t.value = { ...o };
|
|
14
|
+
}, { deep: !0 }), (o, s) => (a(), l("div", V, [
|
|
15
|
+
(a(!0), l(h, null, g(t.value, (r, n) => (a(), l("div", {
|
|
16
|
+
key: n,
|
|
17
|
+
class: "flex items-center justify-between min-w-[300px]"
|
|
18
|
+
}, [
|
|
19
|
+
e("div", C, [
|
|
20
|
+
e("span", w, d(n), 1),
|
|
21
|
+
s[0] || (s[0] = e("span", { class: "text-sm text-base-content/60" }, "Ages 13 or above", -1))
|
|
22
|
+
]),
|
|
23
|
+
e("div", k, [
|
|
24
|
+
e("button", {
|
|
25
|
+
class: "btn btn-circle btn-outline btn-sm border-base-300 hover:border-black disabled:opacity-20",
|
|
26
|
+
disabled: r <= 0,
|
|
27
|
+
onClick: u((_) => i(n, -1), ["stop"])
|
|
28
|
+
}, " - ", 8, B),
|
|
29
|
+
e("span", E, d(r), 1),
|
|
30
|
+
e("button", {
|
|
31
|
+
class: "btn btn-circle btn-outline btn-sm border-base-300 hover:border-black",
|
|
32
|
+
onClick: u((_) => i(n, 1), ["stop"])
|
|
33
|
+
}, " + ", 8, M)
|
|
34
|
+
])
|
|
35
|
+
]))), 128))
|
|
36
|
+
]));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
$ as default
|
|
41
|
+
};
|