@app-studio/components 0.10.24 → 0.10.26

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/web.esm.js CHANGED
@@ -24321,25 +24321,30 @@ const Gl = ({
24321
24321
  Y(() => {
24322
24322
  t(l.values);
24323
24323
  }, [l.values]);
24324
- const i = oe({}), c = oe([]), s = (u, m) => {
24325
- i.current[u] = m, m && !c.current.includes(u) && c.current.push(u);
24326
- }, d = (u) => {
24327
- var m, g;
24324
+ const i = oe({}), c = oe([]), s = (g, h) => {
24325
+ i.current[g] = h, h && !c.current.includes(g) && c.current.push(g);
24326
+ }, d = (g) => {
24327
+ var h, y;
24328
24328
  if (o) {
24329
- const y = c.current.indexOf(u) + 1;
24330
- y < c.current.length ? (m = i.current[c.current[y]]) == null || m.focus() : (g = l.submitForm) == null || g.call(l);
24329
+ const C = c.current.indexOf(g) + 1;
24330
+ C < c.current.length ? (h = i.current[c.current[C]]) == null || h.focus() : (y = l.submitForm) == null || y.call(l);
24331
24331
  }
24332
24332
  }, p = {
24333
24333
  active: o,
24334
24334
  focusNextInput: d,
24335
24335
  setInputRef: s,
24336
24336
  handleSubmitEditing: d,
24337
- getReturnKeyType: (u) => c.current.indexOf(u) === c.current.length - 1 ? "done" : "next"
24337
+ getReturnKeyType: (g) => c.current.indexOf(g) === c.current.length - 1 ? "done" : "next"
24338
24338
  };
24339
- return Y(() => {
24340
- var u, m;
24341
- o && (r && i.current[r] ? (u = i.current[r]) == null || u.focus() : c.current[0] && ((m = i.current[c.current[0]]) == null || m.focus()));
24342
- }, [o, r]), /* @__PURE__ */ n(Yl.Provider, { value: p, children: /* @__PURE__ */ n(Ic, { ...a, children: e }) });
24339
+ Y(() => {
24340
+ var g, h;
24341
+ o && (r && i.current[r] ? (g = i.current[r]) == null || g.focus() : c.current[0] && ((h = i.current[c.current[0]]) == null || h.focus()));
24342
+ }, [o, r]);
24343
+ const m = typeof document < "u" && typeof document.createElement == "function" ? {
24344
+ onSubmit: l.handleSubmit,
24345
+ onReset: l.handleReset
24346
+ } : {};
24347
+ return /* @__PURE__ */ n(Yl.Provider, { value: p, children: /* @__PURE__ */ n(Ic, { ...a, ...m, children: e }) });
24343
24348
  }, U0 = (e) => {
24344
24349
  switch (e) {
24345
24350
  case "email":
@@ -37345,13 +37350,13 @@ const Wf = (e, o, r) => {
37345
37350
  x,
37346
37351
  {
37347
37352
  width: "100%",
37348
- padding: "16px",
37353
+ padding: t ? "16px" : "8px",
37349
37354
  borderTopWidth: "1px",
37350
37355
  borderTopStyle: "solid",
37351
37356
  borderTopColor: "color-gray-200",
37352
37357
  ...o == null ? void 0 : o.footer,
37353
37358
  ...r,
37354
- children: t ? e : null
37359
+ children: e
37355
37360
  }
37356
37361
  );
37357
37362
  }, cy = ({