@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/README.md +2 -0
- package/dist/native/components/Formik/Formik.Form.js +15 -1
- package/dist/native/components/Formik/Formik.Form.js.map +1 -1
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.js +15 -2
- package/dist/native/components/Sidebar/Sidebar/Sidebar.view.js.map +1 -1
- package/dist/web.cjs.js +2 -2
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.esm.js +18 -13
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.js +2 -2
- package/dist/web.umd.js.map +1 -1
- package/docs/README.md +1 -1
- package/docs/components/Center.mdx +3 -1
- package/docs/components/Form.mdx +34 -7
- package/docs/components/Formik.mdx +7 -0
- package/docs/components/Vertical.mdx +4 -2
- package/docs/getting-started/component-usage.md +40 -16
- package/docs/getting-started/react-native.md +66 -0
- package/package.json +1 -1
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 = (
|
|
24325
|
-
i.current[
|
|
24326
|
-
}, d = (
|
|
24327
|
-
var
|
|
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
|
|
24330
|
-
|
|
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: (
|
|
24337
|
+
getReturnKeyType: (g) => c.current.indexOf(g) === c.current.length - 1 ? "done" : "next"
|
|
24338
24338
|
};
|
|
24339
|
-
|
|
24340
|
-
var
|
|
24341
|
-
o && (r && i.current[r] ? (
|
|
24342
|
-
}, [o, r])
|
|
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:
|
|
37359
|
+
children: e
|
|
37355
37360
|
}
|
|
37356
37361
|
);
|
|
37357
37362
|
}, cy = ({
|