@twintag/twintag-form 0.3.0 → 0.3.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../lib/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,gVAErB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;YAmBxB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;YAwBpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;YAuBtB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;YAWtB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA4BtB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../lib/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,gVAErB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;YAmBxB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;YAwBpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;YAuBtB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;YAWtB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA4BtB,CAAC"}
@@ -28210,7 +28210,7 @@ const Kk = ({ children: i, useForm: u }) => ji.map(i, (c) => {
28210
28210
  };
28211
28211
  return Fi(() => (c.current && c.current.addEventListener("twintag-form-validate", N), () => {
28212
28212
  c.current && c.current.removeEventListener("twintag-form-validate", N);
28213
- }), []), St.jsx("form", { ref: c, className: "relative font-fftext", onSubmit: g(E, T), children: St.jsx("div", { className: "grid w-auto gap-4", children: St.jsx(Kk, { useForm: { register: v, control: x }, children: i }) }) });
28213
+ }), []), St.jsx("form", { ref: c, className: "font-fftext relative", onSubmit: g(E, T), children: St.jsx("div", { className: "grid w-auto gap-4", children: St.jsx(Kk, { useForm: { register: v, control: x }, children: i }) }) });
28214
28214
  };
28215
28215
  var JT = (i) => typeof i == "boolean" ? `${i}` : i === 0 ? "0" : i, zi = (i) => !i || typeof i != "object" || Object.keys(i).length === 0, YL = (...i) => [...i].flat().filter(Boolean), Jk = (i, u) => {
28216
28216
  let c = {};
@@ -31185,7 +31185,7 @@ const a4 = ({ useForm: i, label: u, bind: c, options: p }) => {
31185
31185
  }, className: "peer sr-only" }), St.jsxs("span", { className: `${m()} ${E && E.length > 0 ? "border-primary text-input" : "border-slate-700/10 text-slate-400"}`, children: [St.jsx("span", { className: "grid", children: E && E.length > 0 ? Array.from(E).map((T, N) => St.jsx("span", { className: "block max-w-full overflow-hidden text-ellipsis whitespace-nowrap", children: T.name }, N)) : St.jsx("span", { className: "block max-w-full overflow-hidden text-ellipsis whitespace-nowrap", children: (p == null ? void 0 : p.placeholder) || "No file selected" }) }), St.jsx(r4, { className: "h-6 w-6 min-w-[1.5rem]" })] })] });
31186
31186
  }, i4 = ({ label: i, options: u }) => {
31187
31187
  const c = ma(() => u != null && u.variant ? lk({ variant: u.variant }) : lk(), []);
31188
- return St.jsx("div", { className: "w-full flex justify-center", children: St.jsx("button", { type: "submit", className: c, children: i }) });
31188
+ return St.jsx("div", { className: "flex w-full justify-center", children: St.jsx("button", { type: "submit", className: c, children: i }) });
31189
31189
  };
31190
31190
  function o4(i, u) {
31191
31191
  typeof i == "function" ? i(u) : i != null && (i.current = u);