@wpic/ui 0.9.31 → 0.9.32

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/wpic-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as X, openBlock as e, createBlock as Z, resolveDynamicComponent as S1, normalizeClass as g, withCtx as s1, createElementVNode as i, createCommentVNode as u, renderSlot as K, createElementBlock as t, createVNode as $, unref as m, Fragment as I, renderList as l1, toDisplayString as v, useModel as c2, useSlots as X2, computed as M, ref as T, watch as C1, onBeforeUnmount as K1, mergeProps as G1, createTextVNode as v1, withDirectives as j1, normalizeStyle as h1, vModelDynamic as k0, mergeModels as t2, vModelCheckbox as t3, withModifiers as b1, onMounted as E2, withKeys as d2, inject as v2, provide as W1, nextTick as H1, Teleport as R1, isRef as i3, vShow as l3, Transition as e2, getCurrentInstance as G2, vModelText as r2, useAttrs as a3, TransitionGroup as o3, useCssVars as s3, vModelSelect as r3, onUnmounted as p3, createSlots as d3, createStaticVNode as A1 } from "vue";
1
+ import { defineComponent as X, openBlock as e, createBlock as Z, resolveDynamicComponent as S1, normalizeClass as g, withCtx as s1, createElementVNode as i, createCommentVNode as u, renderSlot as K, createElementBlock as t, createVNode as $, unref as m, Fragment as I, renderList as l1, toDisplayString as v, useModel as t2, useSlots as X2, computed as M, ref as T, watch as C1, onBeforeUnmount as K1, mergeProps as G1, createTextVNode as v1, withDirectives as j1, normalizeStyle as h1, vModelDynamic as k0, mergeModels as i2, vModelCheckbox as t3, withModifiers as b1, onMounted as E2, withKeys as d2, inject as v2, provide as W1, nextTick as H1, Teleport as R1, isRef as i3, vShow as l3, Transition as c2, getCurrentInstance as G2, vModelText as r2, useAttrs as a3, TransitionGroup as o3, useCssVars as s3, vModelSelect as r3, onUnmounted as p3, createSlots as d3, createStaticVNode as A1 } from "vue";
2
2
  import { Loader2 as I1, Calendar as x0, DollarSign as w3, X as $1, Check as _1, Search as W2, ChevronUp as y0, ChevronDown as Z1, ChevronsUpDown as _2, ChevronRight as E1, ChevronLeft as x2, Download as u3, Minimize as h3, Expand as m3, CalendarDays as D2, FolderSymlink as v3, Minimize2 as f3, Maximize2 as b3, Plus as $2, Trash2 as g3, Folder as v0, MoreHorizontal as z3, Bot as M0, Paperclip as B2, ThumbsUp as C3, ThumbsDown as k3, Copy as x3, Pencil as y3, MessageSquarePlus as M3, Square as L3, ArrowUp as L0, CircleAlert as V3, CircleCheck as $3, ShieldAlert as B3, Lightbulb as S3, PanelLeftOpen as A3, PanelLeftClose as F3, AlertTriangle as H3, Tag as T2, Clock as P3, RefreshCw as T3, MoveDownRight as j3 } from "lucide-vue-next";
3
3
  import { offset as f2, autoPlacement as E3, flip as b2, shift as g2, size as n0, useFloating as z2, autoUpdate as C2, arrow as W3 } from "@floating-ui/vue";
4
4
  import { defineStore as D3 } from "pinia";
@@ -125,7 +125,7 @@ const O3 = {
125
125
  }, S0 = /* @__PURE__ */ X({
126
126
  inheritAttrs: !1,
127
127
  __name: "WInput",
128
- props: /* @__PURE__ */ t2({
128
+ props: /* @__PURE__ */ i2({
129
129
  icon: { type: [Object, Function] },
130
130
  label: {},
131
131
  placeholder: {},
@@ -144,7 +144,7 @@ const O3 = {
144
144
  }),
145
145
  emits: ["update:modelValue"],
146
146
  setup(n) {
147
- const d = c2(n, "modelValue"), c = n, o = X2(), r = M(() => c.prepend !== void 0 || !!o.prepend), l = M(() => c.append !== void 0 || !!o.append), a = M(() => {
147
+ const d = t2(n, "modelValue"), c = n, o = X2(), r = M(() => c.prepend !== void 0 || !!o.prepend), l = M(() => c.append !== void 0 || !!o.append), a = M(() => {
148
148
  if (c.icon) return c.icon;
149
149
  if (c.type === "date") return x0;
150
150
  if (c.type === "money") return w3;
@@ -243,7 +243,7 @@ const O3 = {
243
243
  }
244
244
  }), c5 = ["disabled"], f0 = /* @__PURE__ */ X({
245
245
  __name: "WCheckbox",
246
- props: /* @__PURE__ */ t2({
246
+ props: /* @__PURE__ */ i2({
247
247
  disabled: { type: Boolean }
248
248
  }, {
249
249
  modelValue: { type: Boolean },
@@ -251,7 +251,7 @@ const O3 = {
251
251
  }),
252
252
  emits: ["update:modelValue"],
253
253
  setup(n) {
254
- const d = c2(n, "modelValue");
254
+ const d = t2(n, "modelValue");
255
255
  return (c, o) => (e(), t("label", {
256
256
  class: g(["wpic-checkbox wpic:relative wpic:inline-flex wpic:items-center wpic:gap-2 wpic:select-none", n.disabled ? "wpic:cursor-not-allowed wpic:opacity-50" : "wpic:cursor-pointer"])
257
257
  }, [
@@ -833,11 +833,11 @@ const O3 = {
833
833
  if (!L.value || !B.value) return;
834
834
  const C = L.value, D = B.value, S = Math.min(C.row, D.row), a1 = Math.max(C.row, D.row), u1 = Math.min(C.cell, D.cell), R = Math.max(C.cell, D.cell), Q = /* @__PURE__ */ new Set(), t1 = U.value[C.row], L1 = t1?.cells[C.cell];
835
835
  for (let T1 = S; T1 <= a1; T1++) {
836
- const i2 = U.value[T1];
837
- if (i2)
838
- for (let l2 = u1; l2 <= R; l2++) {
839
- const w2 = i2.cells[l2];
840
- w2?.editable && (Q.add(j(i2, w2)), r("cell-change", { rowKey: i2.key, cellKey: w2.key, value: C.value, row: i2, cell: w2 }));
836
+ const l2 = U.value[T1];
837
+ if (l2)
838
+ for (let n2 = u1; n2 <= R; n2++) {
839
+ const w2 = l2.cells[n2];
840
+ w2?.editable && (Q.add(j(l2, w2)), r("cell-change", { rowKey: l2.key, cellKey: w2.key, value: C.value, row: l2, cell: w2 }));
841
841
  }
842
842
  }
843
843
  L.value = null, B.value = null, x.value = t1 && L1 ? { cells: Q, source: j(t1, L1) } : null;
@@ -1453,7 +1453,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1453
1453
  class: "wpic-chat-loading-card",
1454
1454
  role: "status",
1455
1455
  "aria-label": "Generating image"
1456
- }, e6 = ["innerHTML", "onClick"], c6 = ["href", "onClick"], t6 = ["src"], i6 = ["title", "aria-label", "onClick"], l6 = ["title", "aria-label", "onClick"], a6 = ["title", "onClick"], o6 = ["onClick"], s6 = ["title", "onClick"], r6 = { class: "wpic-chat-panel__footer wpic:shrink-0 wpic:bg-white wpic:p-3 wpic:dark:bg-zinc-800" }, p6 = {
1456
+ }, e6 = ["innerHTML", "onClick"], c6 = ["href", "onClick"], t6 = ["src"], i6 = ["title", "aria-label", "aria-pressed", "onClick"], l6 = ["title", "aria-label", "aria-pressed", "onClick"], a6 = ["title", "onClick"], o6 = ["onClick"], s6 = ["title", "onClick"], r6 = { class: "wpic-chat-panel__footer wpic:shrink-0 wpic:bg-white wpic:p-3 wpic:dark:bg-zinc-800" }, p6 = {
1457
1457
  key: 0,
1458
1458
  class: "wpic:mb-2 wpic:flex wpic:flex-wrap wpic:justify-end wpic:gap-1.5"
1459
1459
  }, d6 = ["src", "alt"], w6 = { class: "wpic:max-w-40 wpic:truncate" }, u6 = {
@@ -1749,7 +1749,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1749
1749
  const w = g1(p.content), h = _(p.content), P = m1(p.content);
1750
1750
  return !w && !h && !P ? null : { prompt: w, taskType: P, settings: h };
1751
1751
  }
1752
- const i2 = M(() => {
1752
+ const l2 = M(() => {
1753
1753
  if (c.maximized) {
1754
1754
  const h = Math.max(8, c.maximizedMargin);
1755
1755
  return {
@@ -1790,7 +1790,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1790
1790
  zIndex: c.zIndex
1791
1791
  };
1792
1792
  });
1793
- function l2(p, w) {
1793
+ function n2(p, w) {
1794
1794
  return p.id ?? `${p.role}-${w}`;
1795
1795
  }
1796
1796
  function w2(p) {
@@ -1896,10 +1896,10 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1896
1896
  for (const M1 of W)
1897
1897
  f1 = f1.replace(O1(M1.label), a2(M1.label, "setting", "model", M1.value));
1898
1898
  if (!y?.settings) return f1;
1899
- const y1 = (M1, D1, n2) => {
1900
- if (n2 == null) return;
1899
+ const y1 = (M1, D1, e2) => {
1900
+ if (e2 == null) return;
1901
1901
  const q1 = p.match(M1);
1902
- q1?.[1] && (f1 = f1.replace(O1(q1[1]), a2(q1[1], "setting", D1, n2)));
1902
+ q1?.[1] && (f1 = f1.replace(O1(q1[1]), a2(q1[1], "setting", D1, e2)));
1903
1903
  };
1904
1904
  if ((w1.includes("format") || w1.includes("aspect") || w1.includes("ratio")) && y1(/\b(\d{1,2}:\d{1,2})\b/, "aspect", y.settings.aspect), (w1.includes("résolution") || w1.includes("resolution")) && y1(/\b([1248]K)\b/i, "resolution", y.settings.resolution), (w1.includes("durée") || w1.includes("duration")) && y1(/\b(\d{1,3})\s*(?:s|sec|secondes?|seconds?)\b/i, "duration", y.settings.duration), w1.includes("fps") && y1(/\b(\d{1,3})\s*fps\b/i, "fps", y.settings.fps), y.settings.format) {
1905
1905
  const M1 = p.match(/\b(jpe?g|png|webp)\b/i)?.[1];
@@ -1936,7 +1936,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1936
1936
  }, D1 = () => {
1937
1937
  W && (y.push(`<pre><code>${O1(i1.join(`
1938
1938
  `))}</code></pre>`), i1 = [], W = !1);
1939
- }, n2 = (V1) => {
1939
+ }, e2 = (V1) => {
1940
1940
  const P1 = V1.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((F1) => F1.trim());
1941
1941
  return P1.length > 1 && P1.every((F1) => /^:?-{3,}:?$/.test(F1));
1942
1942
  }, q1 = (V1) => V1.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((P1) => P1.trim());
@@ -1961,7 +1961,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1961
1961
  M1(), y1();
1962
1962
  continue;
1963
1963
  }
1964
- if (!f1 && F1.includes("|") && P[V1 + 1] && n2(P[V1 + 1])) {
1964
+ if (!f1 && F1.includes("|") && P[V1 + 1] && e2(P[V1 + 1])) {
1965
1965
  y1();
1966
1966
  const J1 = q1(F1);
1967
1967
  y.push('<div class="wpic-chat-table-wrap"><table><thead><tr>'), y.push(J1.map((Y2) => `<th>${L2(Y2, p)}</th>`).join("")), y.push("</tr></thead><tbody>"), f1 = !0, V1 += 1;
@@ -2221,9 +2221,9 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
2221
2221
  if (!h) return;
2222
2222
  O.value = !0;
2223
2223
  const P = p.clientX, y = p.clientY, W = h.width, i1 = h.height, w1 = h.left, f1 = h.top, y1 = (D1) => {
2224
- const n2 = D1.clientX - P, q1 = D1.clientY - y;
2224
+ const e2 = D1.clientX - P, q1 = D1.clientY - y;
2225
2225
  let s2 = W, Q1 = i1, V1 = w1, P1 = f1;
2226
- w.includes("e") && (s2 = Math.max(c.minWidth, W + n2)), w.includes("s") && (Q1 = Math.max(c.minHeight, i1 + q1)), w.includes("w") && (s2 = Math.max(c.minWidth, W - n2), V1 = w1 + (W - s2)), w.includes("n") && (Q1 = Math.max(c.minHeight, i1 - q1), P1 = Math.max(c.topOffset, f1 + (i1 - Q1))), o("update:width", Math.min(s2, window.innerWidth)), o("update:height", Math.min(Q1, window.innerHeight - c.topOffset)), c.docked || (o("update:x", Math.max(0, V1)), o("update:y", Math.max(c.topOffset, P1)));
2226
+ w.includes("e") && (s2 = Math.max(c.minWidth, W + e2)), w.includes("s") && (Q1 = Math.max(c.minHeight, i1 + q1)), w.includes("w") && (s2 = Math.max(c.minWidth, W - e2), V1 = w1 + (W - s2)), w.includes("n") && (Q1 = Math.max(c.minHeight, i1 - q1), P1 = Math.max(c.topOffset, f1 + (i1 - Q1))), o("update:width", Math.min(s2, window.innerWidth)), o("update:height", Math.min(Q1, window.innerHeight - c.topOffset)), c.docked || (o("update:x", Math.max(0, V1)), o("update:y", Math.max(c.topOffset, P1)));
2227
2227
  }, M1 = () => {
2228
2228
  O.value = !1, document.removeEventListener("mousemove", y1), document.removeEventListener("mouseup", M1);
2229
2229
  };
@@ -2247,7 +2247,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
2247
2247
  }), K1(() => {
2248
2248
  x && window.clearTimeout(x), u2(), document.removeEventListener("pointerdown", s0, !0);
2249
2249
  }), (p, w) => (e(), Z(R1, { to: "body" }, [
2250
- $(e2, {
2250
+ $(c2, {
2251
2251
  "enter-active-class": "wpic:transition-opacity wpic:duration-150",
2252
2252
  "enter-from-class": "wpic:opacity-0",
2253
2253
  "enter-to-class": "wpic:opacity-100",
@@ -2262,7 +2262,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
2262
2262
  ]),
2263
2263
  _: 1
2264
2264
  }),
2265
- $(e2, {
2265
+ $(c2, {
2266
2266
  "enter-active-class": "wpic:transition wpic:duration-150 wpic:ease-out",
2267
2267
  "enter-from-class": "wpic:opacity-0 wpic:translate-y-2",
2268
2268
  "enter-to-class": "wpic:opacity-100 wpic:translate-y-0",
@@ -2279,7 +2279,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
2279
2279
  "data-variant": n.variant,
2280
2280
  "data-maximized": n.maximized,
2281
2281
  "data-docked": n.docked,
2282
- style: h1(i2.value),
2282
+ style: h1(l2.value),
2283
2283
  "aria-label": "Chat"
2284
2284
  }, [
2285
2285
  i("div", {
@@ -2642,7 +2642,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
2642
2642
  i("p", N4, v(n.thinkingLabel), 1)
2643
2643
  ])) : Y.value.length ? (e(), t("div", q4, [
2644
2644
  (e(!0), t(I, null, l1(Y.value, (h, P) => (e(), t("article", {
2645
- key: l2(h, P),
2645
+ key: n2(h, P),
2646
2646
  class: g(["wpic:group wpic:flex", h.role === "user" ? "wpic:justify-end" : "wpic:justify-start"])
2647
2647
  }, [
2648
2648
  i("div", Q4, [
@@ -2716,18 +2716,20 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
2716
2716
  h.role === "assistant" && !h.streaming ? (e(), t(I, { key: 0 }, [
2717
2717
  i("button", {
2718
2718
  type: "button",
2719
- class: g(["wpic:flex wpic:h-7 wpic:w-7 wpic:items-center wpic:justify-center wpic:rounded-md wpic:text-zinc-400 wpic:transition wpic:hover:bg-zinc-100 wpic:hover:text-emerald-600 wpic:dark:hover:bg-zinc-700 wpic:dark:hover:text-emerald-400", h.metadata?.feedbackRating === 1 ? "wpic:text-emerald-600 wpic:dark:text-emerald-400" : ""]),
2719
+ class: g(["wpic:flex wpic:h-7 wpic:w-7 wpic:items-center wpic:justify-center wpic:rounded-md wpic:transition wpic:hover:bg-zinc-100 wpic:hover:text-emerald-600 wpic:dark:hover:bg-zinc-700 wpic:dark:hover:text-emerald-400", h.metadata?.feedbackRating === 1 ? "wpic:text-emerald-600 wpic:dark:text-emerald-400" : "wpic:text-zinc-400"]),
2720
2720
  title: n.helpfulLabel,
2721
2721
  "aria-label": n.helpfulLabel,
2722
+ "aria-pressed": h.metadata?.feedbackRating === 1,
2722
2723
  onClick: (y) => o("message-feedback", h, 1)
2723
2724
  }, [
2724
2725
  $(m(C3), { size: 14 })
2725
2726
  ], 10, i6),
2726
2727
  i("button", {
2727
2728
  type: "button",
2728
- class: g(["wpic:flex wpic:h-7 wpic:w-7 wpic:items-center wpic:justify-center wpic:rounded-md wpic:text-zinc-400 wpic:transition wpic:hover:bg-zinc-100 wpic:hover:text-rose-500 wpic:dark:hover:bg-zinc-700 wpic:dark:hover:text-rose-400", h.metadata?.feedbackRating === -1 ? "wpic:text-rose-500 wpic:dark:text-rose-400" : ""]),
2729
+ class: g(["wpic:flex wpic:h-7 wpic:w-7 wpic:items-center wpic:justify-center wpic:rounded-md wpic:transition wpic:hover:bg-zinc-100 wpic:hover:text-rose-500 wpic:dark:hover:bg-zinc-700 wpic:dark:hover:text-rose-400", h.metadata?.feedbackRating === -1 ? "wpic:text-rose-500 wpic:dark:text-rose-400" : "wpic:text-zinc-400"]),
2729
2730
  title: n.notHelpfulLabel,
2730
2731
  "aria-label": n.notHelpfulLabel,
2732
+ "aria-pressed": h.metadata?.feedbackRating === -1,
2731
2733
  onClick: (y) => o("message-feedback", h, -1)
2732
2734
  }, [
2733
2735
  $(m(k3), { size: 14 })
@@ -2736,10 +2738,10 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
2736
2738
  i("button", {
2737
2739
  type: "button",
2738
2740
  class: "wpic:flex wpic:h-7 wpic:w-7 wpic:items-center wpic:justify-center wpic:rounded-md wpic:text-zinc-400 wpic:transition wpic:hover:bg-zinc-100 wpic:hover:text-zinc-700 wpic:dark:hover:bg-zinc-700 wpic:dark:hover:text-zinc-100",
2739
- title: n.copyLabel,
2740
- onClick: (y) => _0(h.content, l2(h, P))
2741
+ title: V.value === n2(h, P) ? n.copiedLabel : n.copyLabel,
2742
+ onClick: (y) => _0(h.content, n2(h, P))
2741
2743
  }, [
2742
- (e(), Z(S1(V.value === l2(h, P) ? m(_1) : m(x3)), { size: 14 }))
2744
+ (e(), Z(S1(V.value === n2(h, P) ? m(_1) : m(x3)), { size: 14 }))
2743
2745
  ], 8, a6),
2744
2746
  h.role === "user" ? (e(), t("button", {
2745
2747
  key: 1,
@@ -3360,7 +3362,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
3360
3362
  }
3361
3363
  }), q6 = ["min", "max", "step", "disabled"], al = /* @__PURE__ */ X({
3362
3364
  __name: "WSlider",
3363
- props: /* @__PURE__ */ t2({
3365
+ props: /* @__PURE__ */ i2({
3364
3366
  min: { default: 0 },
3365
3367
  max: { default: 100 },
3366
3368
  step: { default: 1 },
@@ -3372,7 +3374,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
3372
3374
  }),
3373
3375
  emits: ["update:modelValue"],
3374
3376
  setup(n) {
3375
- const d = c2(n, "modelValue"), c = n, o = M(() => {
3377
+ const d = t2(n, "modelValue"), c = n, o = M(() => {
3376
3378
  const l = c.max - c.min;
3377
3379
  return l <= 0 ? 0 : Math.max(0, Math.min(100, (Number(d.value ?? c.min) - c.min) / l * 100));
3378
3380
  }), r = M(() => c.min < 0 && c.max > 0);
@@ -3828,7 +3830,7 @@ const _6 = {
3828
3830
  }
3829
3831
  }), W9 = ["aria-checked", "aria-label", "aria-labelledby", "disabled"], pl = /* @__PURE__ */ X({
3830
3832
  __name: "WToggle",
3831
- props: /* @__PURE__ */ t2({
3833
+ props: /* @__PURE__ */ i2({
3832
3834
  disabled: { type: Boolean },
3833
3835
  ariaLabel: {}
3834
3836
  }, {
@@ -3837,7 +3839,7 @@ const _6 = {
3837
3839
  }),
3838
3840
  emits: ["update:modelValue"],
3839
3841
  setup(n) {
3840
- const d = c2(n, "modelValue"), c = `wpic-toggle-${G2()?.uid}`;
3842
+ const d = t2(n, "modelValue"), c = `wpic-toggle-${G2()?.uid}`;
3841
3843
  return (o, r) => (e(), t("div", {
3842
3844
  class: g(["wpic-toggle wpic:flex wpic:items-center wpic:gap-3", n.disabled ? "wpic:cursor-not-allowed" : "wpic:cursor-pointer"])
3843
3845
  }, [
@@ -4292,7 +4294,7 @@ function L7(n, d) {
4292
4294
  }
4293
4295
  const bl = /* @__PURE__ */ U1(y7, [["render", L7]]), V7 = ["placeholder", "rows"], gl = /* @__PURE__ */ X({
4294
4296
  __name: "FormTextarea",
4295
- props: /* @__PURE__ */ t2({
4297
+ props: /* @__PURE__ */ i2({
4296
4298
  placeholder: {},
4297
4299
  rows: {},
4298
4300
  error: { type: Boolean }
@@ -4302,7 +4304,7 @@ const bl = /* @__PURE__ */ U1(y7, [["render", L7]]), V7 = ["placeholder", "rows"
4302
4304
  }),
4303
4305
  emits: ["update:modelValue"],
4304
4306
  setup(n) {
4305
- const d = c2(n, "modelValue");
4307
+ const d = t2(n, "modelValue");
4306
4308
  return (c, o) => j1((e(), t("textarea", G1({
4307
4309
  "onUpdate:modelValue": o[0] || (o[0] = (r) => d.value = r),
4308
4310
  placeholder: n.placeholder ?? "",
@@ -4318,7 +4320,7 @@ const bl = /* @__PURE__ */ U1(y7, [["render", L7]]), V7 = ["placeholder", "rows"
4318
4320
  }
4319
4321
  }), $7 = ["type", "placeholder"], zl = /* @__PURE__ */ X({
4320
4322
  __name: "FormInput",
4321
- props: /* @__PURE__ */ t2({
4323
+ props: /* @__PURE__ */ i2({
4322
4324
  placeholder: {},
4323
4325
  type: {},
4324
4326
  error: { type: Boolean }
@@ -4328,7 +4330,7 @@ const bl = /* @__PURE__ */ U1(y7, [["render", L7]]), V7 = ["placeholder", "rows"
4328
4330
  }),
4329
4331
  emits: ["update:modelValue"],
4330
4332
  setup(n) {
4331
- const d = c2(n, "modelValue");
4333
+ const d = t2(n, "modelValue");
4332
4334
  return (c, o) => j1((e(), t("input", G1({
4333
4335
  "onUpdate:modelValue": o[0] || (o[0] = (r) => d.value = r),
4334
4336
  type: n.type ?? "text",
@@ -4348,7 +4350,7 @@ const bl = /* @__PURE__ */ U1(y7, [["render", L7]]), V7 = ["placeholder", "rows"
4348
4350
  disabled: ""
4349
4351
  }, S7 = ["value"], Cl = /* @__PURE__ */ X({
4350
4352
  __name: "FormSelect",
4351
- props: /* @__PURE__ */ t2({
4353
+ props: /* @__PURE__ */ i2({
4352
4354
  options: {},
4353
4355
  placeholder: {},
4354
4356
  error: { type: Boolean }
@@ -4358,7 +4360,7 @@ const bl = /* @__PURE__ */ U1(y7, [["render", L7]]), V7 = ["placeholder", "rows"
4358
4360
  }),
4359
4361
  emits: ["update:modelValue"],
4360
4362
  setup(n) {
4361
- const d = c2(n, "modelValue");
4363
+ const d = t2(n, "modelValue");
4362
4364
  return (c, o) => j1((e(), t("select", G1({
4363
4365
  "onUpdate:modelValue": o[0] || (o[0] = (r) => d.value = r)
4364
4366
  }, c.$attrs, {
@@ -4836,7 +4838,7 @@ const Ml = /* @__PURE__ */ U1(e8, [["render", c8]]), Ll = /* @__PURE__ */ X({
4836
4838
  to: "body",
4837
4839
  class: "wpic-slide-panel"
4838
4840
  }, [
4839
- $(e2, { name: "wp-backdrop" }, {
4841
+ $(c2, { name: "wp-backdrop" }, {
4840
4842
  default: s1(() => [
4841
4843
  n.modelValue ? (e(), t("div", {
4842
4844
  key: 0,
@@ -4847,7 +4849,7 @@ const Ml = /* @__PURE__ */ U1(e8, [["render", c8]]), Ll = /* @__PURE__ */ X({
4847
4849
  ]),
4848
4850
  _: 1
4849
4851
  }),
4850
- $(e2, { name: "wp-panel" }, {
4852
+ $(c2, { name: "wp-panel" }, {
4851
4853
  default: s1(() => [
4852
4854
  n.modelValue ? (e(), t("div", {
4853
4855
  key: 0,
@@ -5683,7 +5685,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5683
5685
  K(x.$slots, "default")
5684
5686
  ], 16),
5685
5687
  (e(), Z(R1, { to: "body" }, [
5686
- $(e2, {
5688
+ $(c2, {
5687
5689
  "enter-active-class": "wpic:transition-opacity wpic:duration-150 wpic:ease-out",
5688
5690
  "enter-from-class": "wpic:opacity-0",
5689
5691
  "enter-to-class": "wpic:opacity-100",
@@ -5981,7 +5983,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5981
5983
  class: "wpic:h-1.5 wpic:w-1.5 wpic:rounded-full wpic:bg-current"
5982
5984
  }, Fn = { key: 3 }, Hn = /* @__PURE__ */ X({
5983
5985
  __name: "WPillGroup",
5984
- props: /* @__PURE__ */ t2({
5986
+ props: /* @__PURE__ */ i2({
5985
5987
  options: {},
5986
5988
  multiple: { type: Boolean },
5987
5989
  size: {},
@@ -5994,7 +5996,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5994
5996
  }),
5995
5997
  emits: ["update:modelValue"],
5996
5998
  setup(n) {
5997
- const d = n, c = c2(n, "modelValue");
5999
+ const d = n, c = t2(n, "modelValue");
5998
6000
  function o(f) {
5999
6001
  return d.multiple ? Array.isArray(c.value) && c.value.includes(f) : c.value === f;
6000
6002
  }
@@ -7479,7 +7481,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
7479
7481
  },
7480
7482
  emits: ["close"],
7481
7483
  setup(n) {
7482
- return (d, c) => (e(), Z(e2, {
7484
+ return (d, c) => (e(), Z(c2, {
7483
7485
  "enter-active-class": "wpic:transition wpic:duration-200 wpic:ease-out",
7484
7486
  "enter-from-class": "wpic:opacity-0 wpic:translate-y-4",
7485
7487
  "enter-to-class": "wpic:opacity-100 wpic:translate-y-0",
@@ -18549,7 +18551,7 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
18549
18551
  }, [
18550
18552
  $(m(M0), { size: 21 })
18551
18553
  ], 10, wi),
18552
- $(e2, { name: "wpic-composer-content" }, {
18554
+ $(c2, { name: "wpic-composer-content" }, {
18553
18555
  default: s1(() => [
18554
18556
  !B.value && x.value ? (e(), t("button", {
18555
18557
  key: "compact",
@@ -18609,7 +18611,7 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
18609
18611
  }, [
18610
18612
  $(m(j3), { size: 17 })
18611
18613
  ], 10, bi)) : u("", !0),
18612
- $(e2, { name: "wpic-composer-send" }, {
18614
+ $(c2, { name: "wpic-composer-send" }, {
18613
18615
  default: s1(() => [
18614
18616
  B.value ? (e(), t("button", {
18615
18617
  key: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpic/ui",
3
- "version": "0.9.31",
3
+ "version": "0.9.32",
4
4
  "type": "module",
5
5
  "description": "WPIC shared Vue 3 component library",
6
6
  "publishConfig": {