@app-studio/components 0.10.25 → 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":