@zealsolutions/zeal-ui 1.0.0-alpha.100

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 (58) hide show
  1. package/README.md +29 -0
  2. package/dist/BaseDropdownButton-D4GSZKdk.js +43 -0
  3. package/dist/BaseOverlay-aTh6_ssu.js +21 -0
  4. package/dist/BaseTooltip-CcnCHpL4.js +53 -0
  5. package/dist/ChevronDownIcon-De0Ga7A4.js +23 -0
  6. package/dist/ChevronRightIcon-Be-vxVtQ.js +95 -0
  7. package/dist/CircleExclamationIcon-CVpIK7Mu.js +23 -0
  8. package/dist/CircleStatusIcon-CRoBchKs.js +46 -0
  9. package/dist/CloseButton-BsjhPDWi.js +19 -0
  10. package/dist/DropdownMenuTextItem-BYGt1jLy.js +1813 -0
  11. package/dist/InfiniteScroll-CgeGewSV.js +498 -0
  12. package/dist/InputField-CxSec0eW.js +59 -0
  13. package/dist/NavigationMenuNotification-C_z9naik.js +452 -0
  14. package/dist/NotificationIcon-CxO6DGyQ.js +191 -0
  15. package/dist/OpacityScaleTransition-CtMzqccC.js +26 -0
  16. package/dist/OpacityTransition-D4EuhJnX.js +26 -0
  17. package/dist/OpacityTranslateTransition-fF3EnRwC.js +32 -0
  18. package/dist/ProclusLogo-BAHzwRvI.js +81 -0
  19. package/dist/TranslateTransition-iGQAQ66h.js +32 -0
  20. package/dist/TruncateText-BOyOYUV6.js +61 -0
  21. package/dist/XMarkIcon-Ba-nxo3h.js +23 -0
  22. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  23. package/dist/components/buttons/index.js +68 -0
  24. package/dist/components/forms/index.js +118 -0
  25. package/dist/components/icons/index.js +1416 -0
  26. package/dist/components/inputs/index.js +360 -0
  27. package/dist/components/layouts/index.js +118 -0
  28. package/dist/components/logos/index.js +468 -0
  29. package/dist/components/menus/index.js +304 -0
  30. package/dist/components/modals/index.js +212 -0
  31. package/dist/components/navigation/index.js +9 -0
  32. package/dist/components/overlays/index.js +4 -0
  33. package/dist/components/tooltips/index.js +4 -0
  34. package/dist/components/transitions/index.js +10 -0
  35. package/dist/components/utils/index.js +6 -0
  36. package/dist/config/tailwind/index.js +354 -0
  37. package/dist/css/base.css +185 -0
  38. package/dist/css/typography.css +43 -0
  39. package/dist/favicon.ico +0 -0
  40. package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2 +0 -0
  41. package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2 +0 -0
  42. package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2 +0 -0
  43. package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2 +0 -0
  44. package/dist/fonts/montserrat/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2 +0 -0
  45. package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2 +0 -0
  46. package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2 +0 -0
  47. package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2 +0 -0
  48. package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2 +0 -0
  49. package/dist/fonts/montserrat/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2 +0 -0
  50. package/dist/fonts/unna/AYCEpXzofN0NOp8LlQ.woff2 +0 -0
  51. package/dist/fonts/unna/AYCEpXzofN0NOpELlVHC.woff2 +0 -0
  52. package/dist/fonts/unna/AYCJpXzofN0NOpozLGzTR3Jv.woff2 +0 -0
  53. package/dist/fonts/unna/AYCJpXzofN0NOpozLGzTSXJv_vc.woff2 +0 -0
  54. package/dist/fonts/unna/AYCKpXzofN0NOpo7l0nG.woff2 +0 -0
  55. package/dist/fonts/unna/AYCKpXzofN0NOpo7mUnGeFM.woff2 +0 -0
  56. package/dist/fonts/unna/AYCLpXzofN0NMiQugG7jRQ.woff2 +0 -0
  57. package/dist/fonts/unna/AYCLpXzofN0NMiQugGDjRWpr.woff2 +0 -0
  58. package/package.json +83 -0
@@ -0,0 +1,498 @@
1
+ import { unref as ee, watch as A, onMounted as P, nextTick as Q, getCurrentScope as te, onScopeDispose as ne, getCurrentInstance as X, isRef as re, computed as _, reactive as N, ref as g, watchEffect as oe, openBlock as ie, createElementBlock as le, renderSlot as se } from "vue";
2
+ function H(e) {
3
+ return te() ? (ne(e), !0) : !1;
4
+ }
5
+ function w(e) {
6
+ return typeof e == "function" ? e() : ee(e);
7
+ }
8
+ const ue = typeof window < "u" && typeof document < "u";
9
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
+ const ce = (e) => e != null, ae = Object.prototype.toString, fe = (e) => ae.call(e) === "[object Object]", T = () => {
11
+ };
12
+ function V(e, n) {
13
+ function t(...o) {
14
+ return new Promise((i, l) => {
15
+ Promise.resolve(e(() => n.apply(this, o), { fn: n, thisArg: this, args: o })).then(i).catch(l);
16
+ });
17
+ }
18
+ return t;
19
+ }
20
+ const de = (e) => e();
21
+ function U(e, n = {}) {
22
+ let t, o, i = T;
23
+ const l = (u) => {
24
+ clearTimeout(u), i(), i = T;
25
+ };
26
+ return (u) => {
27
+ const a = w(e), f = w(n.maxWait);
28
+ return t && l(t), a <= 0 || f !== void 0 && f <= 0 ? (o && (l(o), o = null), Promise.resolve(u())) : new Promise((r, s) => {
29
+ i = n.rejectOnCancel ? s : r, f && !o && (o = setTimeout(() => {
30
+ t && l(t), o = null, r(u());
31
+ }, f)), t = setTimeout(() => {
32
+ o && l(o), o = null, r(u());
33
+ }, a);
34
+ });
35
+ };
36
+ }
37
+ function me(...e) {
38
+ let n = 0, t, o = !0, i = T, l, c, u, a, f;
39
+ !re(e[0]) && typeof e[0] == "object" ? { delay: c, trailing: u = !0, leading: a = !0, rejectOnCancel: f = !1 } = e[0] : [c, u = !0, a = !0, f = !1] = e;
40
+ const r = () => {
41
+ t && (clearTimeout(t), t = void 0, i(), i = T);
42
+ };
43
+ return (m) => {
44
+ const v = w(c), h = Date.now() - n, S = () => l = m();
45
+ return r(), v <= 0 ? (n = Date.now(), S()) : (h > v && (a || !o) ? (n = Date.now(), S()) : u && (l = new Promise((b, p) => {
46
+ i = f ? p : b, t = setTimeout(() => {
47
+ n = Date.now(), o = !0, b(S()), r();
48
+ }, Math.max(0, v - h));
49
+ })), !a && !t && (t = setTimeout(() => o = !0, v)), o = !1, l);
50
+ };
51
+ }
52
+ function ve(e, n) {
53
+ var t;
54
+ if (typeof e == "number")
55
+ return e + n;
56
+ const o = ((t = e.match(/^-?[0-9]+\.?[0-9]*/)) == null ? void 0 : t[0]) || "", i = e.slice(o.length), l = Number.parseFloat(o) + n;
57
+ return Number.isNaN(l) ? e : l + i;
58
+ }
59
+ function he(e) {
60
+ return X();
61
+ }
62
+ function pe(e, n = 200, t = {}) {
63
+ return V(
64
+ U(n, t),
65
+ e
66
+ );
67
+ }
68
+ function we(e, n = 200, t = !1, o = !0, i = !1) {
69
+ return V(
70
+ me(n, t, o, i),
71
+ e
72
+ );
73
+ }
74
+ function be(e, n, t = {}) {
75
+ const {
76
+ eventFilter: o = de,
77
+ ...i
78
+ } = t;
79
+ return A(
80
+ e,
81
+ V(
82
+ o,
83
+ n
84
+ ),
85
+ i
86
+ );
87
+ }
88
+ function J(e, n = !0, t) {
89
+ he() ? P(e, t) : n ? e() : Q(e);
90
+ }
91
+ function _e(e, n, t = {}) {
92
+ const {
93
+ debounce: o = 0,
94
+ maxWait: i = void 0,
95
+ ...l
96
+ } = t;
97
+ return be(
98
+ e,
99
+ n,
100
+ {
101
+ ...l,
102
+ eventFilter: U(o, { maxWait: i })
103
+ }
104
+ );
105
+ }
106
+ function $(e) {
107
+ var n;
108
+ const t = w(e);
109
+ return (n = t == null ? void 0 : t.$el) != null ? n : t;
110
+ }
111
+ const W = ue ? window : void 0;
112
+ function F(...e) {
113
+ let n, t, o, i;
114
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o, i] = e, n = W) : [n, t, o, i] = e, !n)
115
+ return T;
116
+ Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
117
+ const l = [], c = () => {
118
+ l.forEach((r) => r()), l.length = 0;
119
+ }, u = (r, s, m, v) => (r.addEventListener(s, m, v), () => r.removeEventListener(s, m, v)), a = A(
120
+ () => [$(n), w(i)],
121
+ ([r, s]) => {
122
+ if (c(), !r)
123
+ return;
124
+ const m = fe(s) ? { ...s } : s;
125
+ l.push(
126
+ ...t.flatMap((v) => o.map((h) => u(r, v, h, m)))
127
+ );
128
+ },
129
+ { immediate: !0, flush: "post" }
130
+ ), f = () => {
131
+ a(), c();
132
+ };
133
+ return H(f), f;
134
+ }
135
+ function ye() {
136
+ const e = g(!1), n = X();
137
+ return n && P(() => {
138
+ e.value = !0;
139
+ }, n), e;
140
+ }
141
+ function K(e) {
142
+ const n = ye();
143
+ return _(() => (n.value, !!e()));
144
+ }
145
+ function L(e, n = {}) {
146
+ const { window: t = W } = n, o = K(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
147
+ let i;
148
+ const l = g(!1), c = (f) => {
149
+ l.value = f.matches;
150
+ }, u = () => {
151
+ i && ("removeEventListener" in i ? i.removeEventListener("change", c) : i.removeListener(c));
152
+ }, a = oe(() => {
153
+ o.value && (u(), i = t.matchMedia(w(e)), "addEventListener" in i ? i.addEventListener("change", c) : i.addListener(c), l.value = i.matches);
154
+ });
155
+ return H(() => {
156
+ a(), u(), i = void 0;
157
+ }), l;
158
+ }
159
+ const xe = {
160
+ sm: 640,
161
+ md: 768,
162
+ lg: 1024,
163
+ xl: 1280,
164
+ "2xl": 1536
165
+ };
166
+ function Ie(e, n = {}) {
167
+ function t(r, s) {
168
+ let m = w(e[w(r)]);
169
+ return s != null && (m = ve(m, s)), typeof m == "number" && (m = `${m}px`), m;
170
+ }
171
+ const { window: o = W, strategy: i = "min-width" } = n;
172
+ function l(r) {
173
+ return o ? o.matchMedia(r).matches : !1;
174
+ }
175
+ const c = (r) => L(() => `(min-width: ${t(r)})`, n), u = (r) => L(() => `(max-width: ${t(r)})`, n), a = Object.keys(e).reduce((r, s) => (Object.defineProperty(r, s, {
176
+ get: () => i === "min-width" ? c(s) : u(s),
177
+ enumerable: !0,
178
+ configurable: !0
179
+ }), r), {});
180
+ function f() {
181
+ const r = Object.keys(e).map((s) => [s, c(s)]);
182
+ return _(() => r.filter(([, s]) => s.value).map(([s]) => s));
183
+ }
184
+ return Object.assign(a, {
185
+ greaterOrEqual: c,
186
+ smallerOrEqual: u,
187
+ greater(r) {
188
+ return L(() => `(min-width: ${t(r, 0.1)})`, n);
189
+ },
190
+ smaller(r) {
191
+ return L(() => `(max-width: ${t(r, -0.1)})`, n);
192
+ },
193
+ between(r, s) {
194
+ return L(() => `(min-width: ${t(r)}) and (max-width: ${t(s, -0.1)})`, n);
195
+ },
196
+ isGreater(r) {
197
+ return l(`(min-width: ${t(r, 0.1)})`);
198
+ },
199
+ isGreaterOrEqual(r) {
200
+ return l(`(min-width: ${t(r)})`);
201
+ },
202
+ isSmaller(r) {
203
+ return l(`(max-width: ${t(r, -0.1)})`);
204
+ },
205
+ isSmallerOrEqual(r) {
206
+ return l(`(max-width: ${t(r)})`);
207
+ },
208
+ isInBetween(r, s) {
209
+ return l(`(min-width: ${t(r)}) and (max-width: ${t(s, -0.1)})`);
210
+ },
211
+ current: f,
212
+ active() {
213
+ const r = f();
214
+ return _(() => r.value.length === 0 ? "" : r.value.at(-1));
215
+ }
216
+ });
217
+ }
218
+ function ge(e, n, t = {}) {
219
+ const {
220
+ root: o,
221
+ rootMargin: i = "0px",
222
+ threshold: l = 0.1,
223
+ window: c = W,
224
+ immediate: u = !0
225
+ } = t, a = K(() => c && "IntersectionObserver" in c), f = _(() => {
226
+ const h = w(e);
227
+ return (Array.isArray(h) ? h : [h]).map($).filter(ce);
228
+ });
229
+ let r = T;
230
+ const s = g(u), m = a.value ? A(
231
+ () => [f.value, $(o), s.value],
232
+ ([h, S]) => {
233
+ if (r(), !s.value || !h.length)
234
+ return;
235
+ const b = new IntersectionObserver(
236
+ n,
237
+ {
238
+ root: $(S),
239
+ rootMargin: i,
240
+ threshold: l
241
+ }
242
+ );
243
+ h.forEach((p) => p && b.observe(p)), r = () => {
244
+ b.disconnect(), r = T;
245
+ };
246
+ },
247
+ { immediate: u, flush: "post" }
248
+ ) : T, v = () => {
249
+ r(), m(), s.value = !1;
250
+ };
251
+ return H(v), {
252
+ isSupported: a,
253
+ isActive: s,
254
+ pause() {
255
+ r(), s.value = !1;
256
+ },
257
+ resume() {
258
+ s.value = !0;
259
+ },
260
+ stop: v
261
+ };
262
+ }
263
+ function Ee(e, n = {}) {
264
+ const { window: t = W, scrollTarget: o, threshold: i = 0 } = n, l = g(!1);
265
+ return ge(
266
+ e,
267
+ (c) => {
268
+ let u = l.value, a = 0;
269
+ for (const f of c)
270
+ f.time >= a && (a = f.time, u = f.isIntersecting);
271
+ l.value = u;
272
+ },
273
+ {
274
+ root: o,
275
+ window: t,
276
+ threshold: i
277
+ }
278
+ ), l;
279
+ }
280
+ const Y = 1;
281
+ function Se(e, n = {}) {
282
+ const {
283
+ throttle: t = 0,
284
+ idle: o = 200,
285
+ onStop: i = T,
286
+ onScroll: l = T,
287
+ offset: c = {
288
+ left: 0,
289
+ right: 0,
290
+ top: 0,
291
+ bottom: 0
292
+ },
293
+ eventListenerOptions: u = {
294
+ capture: !1,
295
+ passive: !0
296
+ },
297
+ behavior: a = "auto",
298
+ window: f = W,
299
+ onError: r = (d) => {
300
+ console.error(d);
301
+ }
302
+ } = n, s = g(0), m = g(0), v = _({
303
+ get() {
304
+ return s.value;
305
+ },
306
+ set(d) {
307
+ S(d, void 0);
308
+ }
309
+ }), h = _({
310
+ get() {
311
+ return m.value;
312
+ },
313
+ set(d) {
314
+ S(void 0, d);
315
+ }
316
+ });
317
+ function S(d, x) {
318
+ var y, M, D;
319
+ if (!f)
320
+ return;
321
+ const O = w(e);
322
+ O && ((D = O instanceof Document ? f.document.body : O) == null || D.scrollTo({
323
+ top: (y = w(x)) != null ? y : h.value,
324
+ left: (M = w(d)) != null ? M : v.value,
325
+ behavior: w(a)
326
+ }));
327
+ }
328
+ const b = g(!1), p = N({
329
+ left: !0,
330
+ right: !1,
331
+ top: !0,
332
+ bottom: !1
333
+ }), E = N({
334
+ left: !1,
335
+ right: !1,
336
+ top: !1,
337
+ bottom: !1
338
+ }), C = (d) => {
339
+ b.value && (b.value = !1, E.left = !1, E.right = !1, E.top = !1, E.bottom = !1, i(d));
340
+ }, Z = pe(C, t + o), j = (d) => {
341
+ var x;
342
+ if (!f)
343
+ return;
344
+ const y = ((x = d == null ? void 0 : d.document) == null ? void 0 : x.documentElement) || (d == null ? void 0 : d.documentElement) || $(d), { display: M, flexDirection: D } = getComputedStyle(y), O = y.scrollLeft;
345
+ E.left = O < s.value, E.right = O > s.value;
346
+ const k = Math.abs(O) <= (c.left || 0), R = Math.abs(O) + y.clientWidth >= y.scrollWidth - (c.right || 0) - Y;
347
+ M === "flex" && D === "row-reverse" ? (p.left = R, p.right = k) : (p.left = k, p.right = R), s.value = O;
348
+ let I = y.scrollTop;
349
+ d === f.document && !I && (I = f.document.body.scrollTop), E.top = I < m.value, E.bottom = I > m.value;
350
+ const q = Math.abs(I) <= (c.top || 0), G = Math.abs(I) + y.clientHeight >= y.scrollHeight - (c.bottom || 0) - Y;
351
+ M === "flex" && D === "column-reverse" ? (p.top = G, p.bottom = q) : (p.top = q, p.bottom = G), m.value = I;
352
+ }, B = (d) => {
353
+ var x;
354
+ if (!f)
355
+ return;
356
+ const y = (x = d.target.documentElement) != null ? x : d.target;
357
+ j(y), b.value = !0, Z(d), l(d);
358
+ };
359
+ return F(
360
+ e,
361
+ "scroll",
362
+ t ? we(B, t, !0, !1) : B,
363
+ u
364
+ ), J(() => {
365
+ try {
366
+ const d = w(e);
367
+ if (!d)
368
+ return;
369
+ j(d);
370
+ } catch (d) {
371
+ r(d);
372
+ }
373
+ }), F(
374
+ e,
375
+ "scrollend",
376
+ C,
377
+ u
378
+ ), {
379
+ x: v,
380
+ y: h,
381
+ isScrolling: b,
382
+ arrivedState: p,
383
+ directions: E,
384
+ measure() {
385
+ const d = w(e);
386
+ f && d && j(d);
387
+ }
388
+ };
389
+ }
390
+ function Te(e) {
391
+ return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
392
+ }
393
+ function z(e, n, t = {}) {
394
+ var o;
395
+ const {
396
+ direction: i = "bottom",
397
+ interval: l = 100,
398
+ canLoadMore: c = () => !0
399
+ } = t, u = N(Se(
400
+ e,
401
+ {
402
+ ...t,
403
+ offset: {
404
+ [i]: (o = t.distance) != null ? o : 0,
405
+ ...t.offset
406
+ }
407
+ }
408
+ )), a = g(), f = _(() => !!a.value), r = _(() => Te(w(e))), s = Ee(r);
409
+ function m() {
410
+ if (u.measure(), !r.value || !s.value || !c(r.value))
411
+ return;
412
+ const { scrollHeight: v, clientHeight: h, scrollWidth: S, clientWidth: b } = r.value, p = i === "bottom" || i === "top" ? v <= h : S <= b;
413
+ (u.arrivedState[i] || p) && (a.value || (a.value = Promise.all([
414
+ n(u),
415
+ new Promise((E) => setTimeout(E, l))
416
+ ]).finally(() => {
417
+ a.value = null, Q(() => m());
418
+ })));
419
+ }
420
+ return A(
421
+ () => [u.arrivedState[i], s.value],
422
+ m,
423
+ { immediate: !0 }
424
+ ), {
425
+ isLoading: f
426
+ };
427
+ }
428
+ function We(e = {}) {
429
+ const {
430
+ window: n = W,
431
+ initialWidth: t = Number.POSITIVE_INFINITY,
432
+ initialHeight: o = Number.POSITIVE_INFINITY,
433
+ listenOrientation: i = !0,
434
+ includeScrollbar: l = !0
435
+ } = e, c = g(t), u = g(o), a = () => {
436
+ n && (l ? (c.value = n.innerWidth, u.value = n.innerHeight) : (c.value = n.document.documentElement.clientWidth, u.value = n.document.documentElement.clientHeight));
437
+ };
438
+ if (a(), J(a), F("resize", a, { passive: !0 }), i) {
439
+ const f = L("(orientation: portrait)");
440
+ A(f, () => a());
441
+ }
442
+ return { width: c, height: u };
443
+ }
444
+ const Le = {
445
+ __name: "InfiniteScroll",
446
+ props: {
447
+ down: {
448
+ type: Boolean,
449
+ default: !0
450
+ },
451
+ up: {
452
+ type: Boolean,
453
+ default: !1
454
+ },
455
+ distance: {
456
+ type: Number,
457
+ default: 10
458
+ }
459
+ },
460
+ emits: ["load"],
461
+ setup(e, { expose: n, emit: t }) {
462
+ const o = e, i = t, l = g(null), c = g(!0);
463
+ n({
464
+ canEmit: c
465
+ }), o.down && z(
466
+ l,
467
+ () => {
468
+ u("down");
469
+ },
470
+ { distance: o.distance }
471
+ ), o.up && z(
472
+ l,
473
+ () => {
474
+ u("up");
475
+ },
476
+ { distance: o.distance, direction: "top" }
477
+ );
478
+ const u = (a) => {
479
+ c.value && (c.value = !1, i("load", a));
480
+ };
481
+ return P(() => {
482
+ l.value.scrollTop = 0;
483
+ }), (a, f) => (ie(), le("div", {
484
+ ref_key: "el",
485
+ ref: l,
486
+ class: "overflow-y-scroll overscroll-none"
487
+ }, [
488
+ se(a.$slots, "default")
489
+ ], 512));
490
+ }
491
+ };
492
+ export {
493
+ Le as _,
494
+ We as a,
495
+ xe as b,
496
+ Ie as u,
497
+ _e as w
498
+ };
@@ -0,0 +1,59 @@
1
+ import { mergeModels as o, useModel as f, computed as m, openBlock as n, createElementBlock as h, normalizeClass as a, renderSlot as g, withDirectives as b, createElementVNode as x, vModelDynamic as y, createBlock as v, createCommentVNode as w } from "vue";
2
+ import { C as B } from "./CircleExclamationIcon-CVpIK7Mu.js";
3
+ const E = ["name", "type", "placeholder", "disabled"], C = {
4
+ __name: "InputField",
5
+ props: /* @__PURE__ */ o({
6
+ hasError: {
7
+ type: Boolean,
8
+ default: !1
9
+ },
10
+ label: {
11
+ type: String,
12
+ default: ""
13
+ },
14
+ placeholder: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ fieldType: {
19
+ type: String,
20
+ default: "text"
21
+ },
22
+ disabled: {
23
+ type: Boolean,
24
+ default: !1
25
+ }
26
+ }, {
27
+ modelValue: {},
28
+ modelModifiers: {}
29
+ }),
30
+ emits: /* @__PURE__ */ o(["blur"], ["update:modelValue"]),
31
+ setup(e, { emit: i }) {
32
+ const t = e, s = i, l = f(e, "modelValue"), d = () => {
33
+ s("blur");
34
+ }, u = m(() => t.hasError && !t.disabled ? "ring-error-950 focus-within:bg-error-100 focus-within:ring-error-950 text-error-950" : t.disabled ? "ring-steel-500 bg-steel-100 cursor-not-allowed" : "ring-steel-500 focus-within:bg-app-100 focus-within:ring-app-950 text-black-950");
35
+ return (c, r) => (n(), h("div", {
36
+ class: a(["relative flex flex-1 gap-x-2 px-4 text-style-input items-center h-10 rounded-[20px] ring-1 ring-inset focus-within:ring-2 focus-within:outline-none", u.value])
37
+ }, [
38
+ g(c.$slots, "icon"),
39
+ b(x("input", {
40
+ "onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p),
41
+ name: e.label,
42
+ onBlur: d,
43
+ type: e.fieldType,
44
+ class: a(["flex-1 border-0 bg-transparent pl-0 ring-0 focus:ring-0 outline-none focus:outline-none disabled:placeholder:text-steel-800 disabled:pointer-events-none", e.hasError ? " focus:placeholder:text-error-950 pr-6" : "placeholder:text-steel-950 pr-0"]),
45
+ placeholder: e.placeholder,
46
+ disabled: e.disabled
47
+ }, null, 42, E), [
48
+ [y, l.value]
49
+ ]),
50
+ e.hasError ? (n(), v(B, {
51
+ key: 0,
52
+ class: "absolute top-1/2 -translate-y-1/2 right-3 scale-[0.8182] pointer-events-none text-error-950"
53
+ })) : w("", !0)
54
+ ], 2));
55
+ }
56
+ };
57
+ export {
58
+ C as _
59
+ };