@sawabona/forms 1.0.2 → 1.0.4
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 +27 -0
- package/dist/components/FormRenderer.d.ts +1 -0
- package/dist/components/FormRenderer.d.ts.map +1 -1
- package/dist/components/QuestionRenderer.d.ts +1 -0
- package/dist/components/QuestionRenderer.d.ts.map +1 -1
- package/dist/components/ui/RatingInput.d.ts +1 -0
- package/dist/components/ui/SelectInput.d.ts +1 -0
- package/dist/components/ui/SelectInput.d.ts.map +1 -1
- package/dist/components/ui/TextInput.d.ts +1 -0
- package/dist/components/ui/TextInput.d.ts.map +1 -1
- package/dist/core/FormContext.d.ts +1 -0
- package/dist/core/types.d.ts +16 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/useFormEngine.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/sawabona-forms.css +2 -2
- package/dist/sawabona-forms.es.js +295 -254
- package/dist/sawabona-forms.umd.js +5 -5
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -1,296 +1,335 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var r in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
_.call(
|
|
1
|
+
var M = Object.defineProperty, U = Object.defineProperties;
|
|
2
|
+
var V = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var B = Object.getOwnPropertySymbols;
|
|
4
|
+
var W = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var P = (e, n, r) => n in e ? M(e, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[n] = r, a = (e, n) => {
|
|
6
|
+
for (var r in n || (n = {}))
|
|
7
|
+
W.call(n, r) && P(e, r, n[r]);
|
|
8
|
+
if (B)
|
|
9
|
+
for (var r of B(n))
|
|
10
|
+
_.call(n, r) && P(e, r, n[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, S = (e, n) => U(e, V(n));
|
|
13
|
+
var D = (e) => typeof e == "symbol" ? e : e + "", K = (e, n) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var t in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var t of
|
|
19
|
-
|
|
16
|
+
W.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
|
|
17
|
+
if (e != null && B)
|
|
18
|
+
for (var t of B(e))
|
|
19
|
+
n.indexOf(t) < 0 && _.call(e, t) && (r[t] = e[t]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
import { jsxs as
|
|
23
|
-
import { useState as
|
|
24
|
-
import { motion as
|
|
25
|
-
import { Check as O, Star as
|
|
26
|
-
function
|
|
27
|
-
var
|
|
28
|
-
const [r, t] =
|
|
22
|
+
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
23
|
+
import { useState as G, useMemo as X, useCallback as $, createContext as Z, useContext as J, useRef as Y, useEffect as T } from "react";
|
|
24
|
+
import { motion as b, AnimatePresence as q } from "framer-motion";
|
|
25
|
+
import { Check as O, Star as ee, ChevronLeft as te, ChevronRight as re } from "lucide-react";
|
|
26
|
+
function ne({ schema: e, onSubmit: n }) {
|
|
27
|
+
var d;
|
|
28
|
+
const [r, t] = G({
|
|
29
29
|
answers: {},
|
|
30
|
-
currentStepId: ((
|
|
30
|
+
currentStepId: ((d = e.questions[0]) == null ? void 0 : d.id) || "",
|
|
31
31
|
history: [],
|
|
32
32
|
isSubmitting: !1,
|
|
33
33
|
errors: {},
|
|
34
34
|
isCompleted: !1
|
|
35
|
-
}),
|
|
36
|
-
() => e.questions.findIndex((
|
|
35
|
+
}), l = X(
|
|
36
|
+
() => e.questions.findIndex((o) => o.id === r.currentStepId),
|
|
37
37
|
[e.questions, r.currentStepId]
|
|
38
|
-
),
|
|
39
|
-
t((
|
|
40
|
-
answers:
|
|
41
|
-
[
|
|
38
|
+
), p = e.questions[l], u = $((o, c) => {
|
|
39
|
+
t((m) => S(a({}, m), {
|
|
40
|
+
answers: S(a({}, m.answers), {
|
|
41
|
+
[o]: c
|
|
42
42
|
}),
|
|
43
43
|
// Clear error on modification
|
|
44
|
-
errors:
|
|
45
|
-
[
|
|
44
|
+
errors: S(a({}, m.errors), {
|
|
45
|
+
[o]: ""
|
|
46
46
|
})
|
|
47
47
|
}));
|
|
48
|
-
}, []),
|
|
49
|
-
t((
|
|
50
|
-
if (
|
|
51
|
-
const
|
|
52
|
-
return
|
|
48
|
+
}, []), x = $((o, c) => {
|
|
49
|
+
t((m) => {
|
|
50
|
+
if (c === null) {
|
|
51
|
+
const k = m.errors, { [o]: z } = k, L = K(k, [D(o)]);
|
|
52
|
+
return S(a({}, m), { errors: L });
|
|
53
53
|
}
|
|
54
|
-
return
|
|
55
|
-
errors:
|
|
54
|
+
return S(a({}, m), {
|
|
55
|
+
errors: S(a({}, m.errors), { [o]: c })
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
|
-
}, []),
|
|
59
|
-
var
|
|
60
|
-
if (!
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
-
}, [
|
|
64
|
-
const
|
|
65
|
-
return
|
|
66
|
-
}, [e.questions]),
|
|
67
|
-
if (!
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
history: [...
|
|
71
|
-
currentStepId:
|
|
58
|
+
}, []), g = $(() => {
|
|
59
|
+
var m;
|
|
60
|
+
if (!p) return !0;
|
|
61
|
+
const o = r.answers[p.id], c = p.validation;
|
|
62
|
+
return c && c.required && (o === void 0 || o === "" || Array.isArray(o) && o.length === 0) ? (x(p.id, ((m = e.i18n) == null ? void 0 : m.required) || "This field is required"), !1) : !0;
|
|
63
|
+
}, [p, r.answers, x, e.i18n]), h = $((o) => {
|
|
64
|
+
const c = e.questions.findIndex((m) => m.id === o.id);
|
|
65
|
+
return c < e.questions.length - 1 ? e.questions[c + 1].id : "submit";
|
|
66
|
+
}, [e.questions]), N = $(() => {
|
|
67
|
+
if (!g()) return;
|
|
68
|
+
const o = h(p);
|
|
69
|
+
o === "submit" ? (t((c) => S(a({}, c), { isCompleted: !0 })), n == null || n(r.answers)) : t((c) => S(a({}, c), {
|
|
70
|
+
history: [...c.history, c.currentStepId],
|
|
71
|
+
currentStepId: o
|
|
72
72
|
}));
|
|
73
|
-
}, [
|
|
73
|
+
}, [p, r.answers, g, h, n]), s = $(() => {
|
|
74
74
|
if (r.history.length === 0) return;
|
|
75
|
-
const
|
|
76
|
-
t((
|
|
77
|
-
history:
|
|
78
|
-
currentStepId:
|
|
75
|
+
const o = r.history[r.history.length - 1];
|
|
76
|
+
t((c) => S(a({}, c), {
|
|
77
|
+
history: c.history.slice(0, -1),
|
|
78
|
+
currentStepId: o
|
|
79
79
|
}));
|
|
80
|
-
}, [r.history]),
|
|
81
|
-
if (!e.questions.some((
|
|
82
|
-
console.warn(`Step ${
|
|
80
|
+
}, [r.history]), v = $((o) => {
|
|
81
|
+
if (!e.questions.some((m) => m.id === o)) {
|
|
82
|
+
console.warn(`Step ${o} does not exist`);
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
t((
|
|
86
|
-
history: [...
|
|
87
|
-
currentStepId:
|
|
85
|
+
t((m) => S(a({}, m), {
|
|
86
|
+
history: [...m.history, m.currentStepId],
|
|
87
|
+
currentStepId: o
|
|
88
88
|
}));
|
|
89
|
-
}, [e.questions]),
|
|
90
|
-
var
|
|
89
|
+
}, [e.questions]), y = $(() => {
|
|
90
|
+
var o;
|
|
91
91
|
t({
|
|
92
92
|
answers: {},
|
|
93
|
-
currentStepId: ((
|
|
93
|
+
currentStepId: ((o = e.questions[0]) == null ? void 0 : o.id) || "",
|
|
94
94
|
history: [],
|
|
95
95
|
isSubmitting: !1,
|
|
96
96
|
errors: {},
|
|
97
97
|
isCompleted: !1
|
|
98
98
|
});
|
|
99
99
|
}, [e.questions]);
|
|
100
|
-
return
|
|
101
|
-
setAnswer:
|
|
102
|
-
nextStep:
|
|
103
|
-
prevStep:
|
|
104
|
-
jumpToStep:
|
|
105
|
-
submitForm: () =>
|
|
106
|
-
resetForm:
|
|
107
|
-
registerError:
|
|
100
|
+
return S(a({}, r), {
|
|
101
|
+
setAnswer: u,
|
|
102
|
+
nextStep: N,
|
|
103
|
+
prevStep: s,
|
|
104
|
+
jumpToStep: v,
|
|
105
|
+
submitForm: () => n == null ? void 0 : n(r.answers),
|
|
106
|
+
resetForm: y,
|
|
107
|
+
registerError: x,
|
|
108
108
|
// Helper to calculate progress
|
|
109
|
-
progress:
|
|
109
|
+
progress: l / e.questions.length * 100
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const Q =
|
|
113
|
-
const e =
|
|
112
|
+
const Q = Z(void 0), E = () => {
|
|
113
|
+
const e = J(Q);
|
|
114
114
|
if (!e)
|
|
115
115
|
throw new Error("useFormContext must be used within a FormProvider");
|
|
116
116
|
return e;
|
|
117
117
|
};
|
|
118
|
-
function
|
|
119
|
-
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
118
|
+
function ie(e, n, r) {
|
|
119
|
+
if (!e) return "";
|
|
120
|
+
const t = e.replace(/\D/g, "");
|
|
121
|
+
if (n === "phone")
|
|
122
|
+
return t.replace(/(\d{2})(\d)/, "($1) $2").replace(/(\d{4})(\d)/, "$1-$2").slice(0, 14);
|
|
123
|
+
if (n === "cellphone")
|
|
124
|
+
return t.replace(/(\d{2})(\d)/, "($1) $2").replace(/(\d{5})(\d)/, "$1-$2").slice(0, 15);
|
|
125
|
+
if (n === "cpf")
|
|
126
|
+
return t.replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})/, "$1-$2").replace(/(-\d{2})\d+?$/, "$1");
|
|
127
|
+
if (n === "cnpj")
|
|
128
|
+
return t.replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d)/, "$1-$2").replace(/(-\d{2})\d+?$/, "$1");
|
|
129
|
+
if (n === "cep")
|
|
130
|
+
return t.replace(/(\d{5})(\d)/, "$1-$2").slice(0, 9);
|
|
131
|
+
if (n === "custom" && r) {
|
|
132
|
+
let l = 0;
|
|
133
|
+
return r.replace(/[#X0]/g, () => t[l++] || "").replace(/[^0-9a-zA-Z]+$/, "");
|
|
134
|
+
}
|
|
135
|
+
return e;
|
|
136
|
+
}
|
|
137
|
+
function oe({ question: e }) {
|
|
138
|
+
var d, o, c, m, k, z, L, j;
|
|
139
|
+
const { answers: n, setAnswer: r, nextStep: t, schema: l } = E(), p = n[e.id], u = p != null ? String(p) : "", x = Y(null), g = l.questions[0].id === e.id, h = !l.disableAutoFocus || !g;
|
|
140
|
+
T(() => {
|
|
141
|
+
if (h) {
|
|
142
|
+
const C = setTimeout(() => {
|
|
143
|
+
var w;
|
|
144
|
+
(w = x.current) == null || w.focus();
|
|
126
145
|
}, 500);
|
|
127
|
-
return () => clearTimeout(
|
|
146
|
+
return () => clearTimeout(C);
|
|
128
147
|
}
|
|
129
|
-
}, [e.id,
|
|
130
|
-
const
|
|
131
|
-
var
|
|
132
|
-
let
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
148
|
+
}, [e.id, h]);
|
|
149
|
+
const N = (C) => {
|
|
150
|
+
var A, R, F;
|
|
151
|
+
let w = C.target.value;
|
|
152
|
+
((A = e.validation) != null && A.maskType || (R = e.validation) != null && R.mask) && (w = ie(w, e.validation.maskType, e.validation.mask));
|
|
153
|
+
const I = ((F = e.validation) == null ? void 0 : F.maxLength) || 2048;
|
|
154
|
+
if (w.length > I && (w = w.slice(0, I)), e.type === "number") {
|
|
155
|
+
const H = w === "" ? "" : parseFloat(w);
|
|
156
|
+
r(e.id, H);
|
|
137
157
|
} else
|
|
138
|
-
r(e.id,
|
|
139
|
-
},
|
|
140
|
-
var
|
|
141
|
-
if ((
|
|
142
|
-
if (
|
|
143
|
-
if ((
|
|
144
|
-
if ((
|
|
158
|
+
r(e.id, w);
|
|
159
|
+
}, s = () => {
|
|
160
|
+
var C, w, I, A, R;
|
|
161
|
+
if ((C = e.validation) != null && C.required && !u) return !1;
|
|
162
|
+
if (u) {
|
|
163
|
+
if ((w = e.validation) != null && w.minLength && u.length < e.validation.minLength || e.type === "email" && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u)) return !1;
|
|
164
|
+
if ((I = e.validation) != null && I.pattern)
|
|
145
165
|
try {
|
|
146
|
-
if (!new RegExp(e.validation.pattern).test(
|
|
147
|
-
} catch (
|
|
148
|
-
console.error("Invalid regex pattern in schema",
|
|
166
|
+
if (!new RegExp(e.validation.pattern).test(u)) return !1;
|
|
167
|
+
} catch (F) {
|
|
168
|
+
console.error("Invalid regex pattern in schema", F);
|
|
149
169
|
}
|
|
150
170
|
if (e.type === "number") {
|
|
151
|
-
const
|
|
152
|
-
if (!isNaN(
|
|
171
|
+
const F = parseFloat(u);
|
|
172
|
+
if (!isNaN(F) && (((A = e.validation) == null ? void 0 : A.min) !== void 0 && F < e.validation.min || ((R = e.validation) == null ? void 0 : R.max) !== void 0 && F > e.validation.max))
|
|
153
173
|
return !1;
|
|
154
174
|
}
|
|
155
175
|
}
|
|
156
176
|
return !0;
|
|
157
|
-
},
|
|
158
|
-
if (
|
|
159
|
-
if (
|
|
160
|
-
const
|
|
161
|
-
|
|
177
|
+
}, v = (C) => {
|
|
178
|
+
if (C.key === "Enter" && !C.shiftKey) {
|
|
179
|
+
if (C.preventDefault(), !s()) {
|
|
180
|
+
const w = document.querySelector(".sawabona-form-container") || document.body;
|
|
181
|
+
w.classList.add("shake-animation"), setTimeout(() => w.classList.remove("shake-animation"), 500);
|
|
162
182
|
return;
|
|
163
183
|
}
|
|
164
184
|
t();
|
|
165
185
|
}
|
|
166
186
|
};
|
|
167
|
-
return /* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ f("div", { className: "w-full relative group", children: [
|
|
188
|
+
/* @__PURE__ */ i(
|
|
169
189
|
"input",
|
|
170
190
|
{
|
|
171
|
-
ref:
|
|
191
|
+
ref: x,
|
|
172
192
|
type: e.type,
|
|
173
|
-
value: typeof
|
|
174
|
-
onChange:
|
|
175
|
-
onKeyDown:
|
|
193
|
+
value: typeof u == "string" || typeof u == "number" ? u : "",
|
|
194
|
+
onChange: N,
|
|
195
|
+
onKeyDown: v,
|
|
176
196
|
placeholder: e.placeholder,
|
|
177
|
-
minLength: (
|
|
178
|
-
maxLength: ((
|
|
179
|
-
min: (
|
|
180
|
-
max: (
|
|
181
|
-
pattern: (
|
|
197
|
+
minLength: (d = e.validation) == null ? void 0 : d.minLength,
|
|
198
|
+
maxLength: ((o = e.validation) == null ? void 0 : o.maxLength) || 2048,
|
|
199
|
+
min: (c = e.validation) == null ? void 0 : c.min,
|
|
200
|
+
max: (m = e.validation) == null ? void 0 : m.max,
|
|
201
|
+
pattern: (k = e.validation) == null ? void 0 : k.pattern,
|
|
182
202
|
className: `
|
|
183
203
|
w-full bg-transparent border-b-2 border-sw-text-secondary/20
|
|
184
204
|
py-4 text-2xl md:text-3xl font-medium outline-none transition-colors
|
|
185
205
|
placeholder:text-sw-text-secondary/30
|
|
186
206
|
focus:border-sw-primary
|
|
187
207
|
font-sw-heading
|
|
188
|
-
|
|
208
|
+
`,
|
|
209
|
+
style: a(a({}, ((z = l.theme) == null ? void 0 : z.labelFont) && { fontFamily: "var(--font-sw-label)" }), ((L = l.theme) == null ? void 0 : L.labelFontSize) && { fontSize: "var(--size-sw-label)" })
|
|
189
210
|
}
|
|
190
211
|
),
|
|
191
212
|
void 0,
|
|
192
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ i("p", { className: "text-sm opacity-50 mt-4", children: (e.type === "email" || e.type === "text" || e.type === "number" || e.type === "url") && (((j = l.i18n) == null ? void 0 : j.pressEnter) || "Press Enter to continue") })
|
|
193
214
|
] });
|
|
194
215
|
}
|
|
195
|
-
function
|
|
196
|
-
var
|
|
197
|
-
const { answers:
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
216
|
+
function ae({ question: e }) {
|
|
217
|
+
var N;
|
|
218
|
+
const { answers: n, setAnswer: r, nextStep: t, schema: l } = E(), p = e.type === "multi-select" || e.multiple, u = n[e.id], x = p ? Array.isArray(u) ? u : u !== void 0 ? [u] : [] : u || "", g = (s) => {
|
|
219
|
+
if (p) {
|
|
220
|
+
const v = x, y = v.includes(s);
|
|
221
|
+
let d;
|
|
222
|
+
y ? d = v.filter((o) => o !== s) : d = [...v, s], r(e.id, d);
|
|
223
|
+
} else
|
|
224
|
+
r(e.id, s), setTimeout(() => t(), 400);
|
|
225
|
+
}, h = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
226
|
+
return T(() => {
|
|
227
|
+
const s = (v) => {
|
|
228
|
+
var o;
|
|
229
|
+
const y = v.key.toUpperCase(), d = h.indexOf(y);
|
|
230
|
+
d >= 0 && d < (((o = e.options) == null ? void 0 : o.length) || 0) && g(e.options[d].value);
|
|
205
231
|
};
|
|
206
|
-
return window.addEventListener("keydown",
|
|
207
|
-
}, [e.options, e.id]), /* @__PURE__ */
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
232
|
+
return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
|
|
233
|
+
}, [e.options, e.id]), /* @__PURE__ */ i("div", { className: "flex flex-col gap-3 w-full max-w-xl", style: { gap: "var(--sw-option-gap, 0.75rem)" }, children: (N = e.options) == null ? void 0 : N.map((s, v) => {
|
|
234
|
+
var d, o, c, m, k, z;
|
|
235
|
+
const y = p ? x.includes(s.value) : x === s.value;
|
|
236
|
+
return /* @__PURE__ */ f(
|
|
237
|
+
b.button,
|
|
211
238
|
{
|
|
212
239
|
initial: { opacity: 0, y: 10 },
|
|
213
240
|
animate: { opacity: 1, y: 0 },
|
|
214
|
-
transition: { delay:
|
|
215
|
-
onClick: () =>
|
|
241
|
+
transition: { delay: v * 0.05 },
|
|
242
|
+
onClick: () => g(s.value),
|
|
216
243
|
className: `
|
|
217
244
|
w-full text-left p-4 rounded-lg border-2 transition-all duration-200
|
|
218
245
|
flex items-center justify-between group
|
|
219
|
-
${
|
|
246
|
+
${y ? "border-sw-primary bg-sw-primary/5 text-sw-primary" : "border-sw-text-secondary/10 hover:border-sw-primary/50 hover:bg-sw-primary/5"}
|
|
220
247
|
`,
|
|
248
|
+
style: a({
|
|
249
|
+
padding: "var(--sw-option-padding, 1rem)",
|
|
250
|
+
borderRadius: "var(--sw-option-radius, 0.5rem)",
|
|
251
|
+
borderWidth: "var(--sw-option-border, 2px)"
|
|
252
|
+
}, y && ((d = l.theme) != null && d.optionActiveColor) ? {
|
|
253
|
+
borderColor: "var(--sw-option-active)"
|
|
254
|
+
} : {}),
|
|
221
255
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors
|
|
225
|
-
${
|
|
226
|
-
`,
|
|
227
|
-
|
|
256
|
+
/* @__PURE__ */ f("span", { className: "text-lg font-medium flex items-center gap-3", style: a(a({}, ((o = l.theme) == null ? void 0 : o.labelFont) && { fontFamily: "var(--font-sw-label)" }), ((c = l.theme) == null ? void 0 : c.labelFontSize) && { fontSize: "var(--size-sw-label)" }), children: [
|
|
257
|
+
/* @__PURE__ */ i("span", { className: `
|
|
258
|
+
flex-shrink-0 w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors
|
|
259
|
+
${y ? "border-sw-primary bg-sw-primary" : "border-sw-text-secondary/30 group-hover:border-sw-primary/50"}
|
|
260
|
+
`, style: a({}, y && ((m = l.theme) != null && m.optionActiveColor) ? {
|
|
261
|
+
borderColor: "var(--sw-option-active)",
|
|
262
|
+
backgroundColor: "var(--sw-option-active)"
|
|
263
|
+
} : {}), children: y && /* @__PURE__ */ i(O, { size: 14, className: "text-sw-background" }) }),
|
|
264
|
+
s.label
|
|
228
265
|
] }),
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
"Select
|
|
231
|
-
|
|
266
|
+
!((k = l.i18n) != null && k.hideSelectText) && /* @__PURE__ */ f("span", { className: "opacity-0 group-hover:opacity-100 transition-opacity text-xs font-mono uppercase tracking-widest text-sw-text-secondary/50", children: [
|
|
267
|
+
((z = l.i18n) == null ? void 0 : z.selectKey) || "Select",
|
|
268
|
+
" ",
|
|
269
|
+
/* @__PURE__ */ f("span", { className: "hidden md:inline", children: [
|
|
232
270
|
"Key ",
|
|
233
|
-
|
|
271
|
+
v + 1
|
|
234
272
|
] })
|
|
235
273
|
] })
|
|
236
274
|
]
|
|
237
275
|
},
|
|
238
|
-
String(
|
|
276
|
+
String(s.value)
|
|
239
277
|
);
|
|
240
278
|
}) });
|
|
241
279
|
}
|
|
242
|
-
function
|
|
243
|
-
var
|
|
244
|
-
const { answers:
|
|
245
|
-
return /* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
const
|
|
248
|
-
return /* @__PURE__ */
|
|
249
|
-
|
|
280
|
+
function le({ question: e }) {
|
|
281
|
+
var p;
|
|
282
|
+
const { answers: n, setAnswer: r } = E(), t = n[e.id] || 0, l = Math.min(((p = e.validation) == null ? void 0 : p.max) || 5, 20);
|
|
283
|
+
return /* @__PURE__ */ f("div", { className: "flex flex-col gap-6", children: [
|
|
284
|
+
/* @__PURE__ */ i("div", { className: "flex gap-4 flex-wrap", children: Array.from({ length: l }).map((u, x) => {
|
|
285
|
+
const g = x + 1, h = g <= t;
|
|
286
|
+
return /* @__PURE__ */ i(
|
|
287
|
+
b.button,
|
|
250
288
|
{
|
|
251
289
|
initial: { opacity: 0, scale: 0 },
|
|
252
290
|
animate: { opacity: 1, scale: 1 },
|
|
253
|
-
transition: { delay:
|
|
254
|
-
onClick: () => r(e.id,
|
|
291
|
+
transition: { delay: x * 0.05 },
|
|
292
|
+
onClick: () => r(e.id, g),
|
|
255
293
|
whileHover: { scale: 1.2, rotate: 5 },
|
|
256
294
|
whileTap: { scale: 0.9 },
|
|
257
295
|
className: "focus:outline-none",
|
|
258
|
-
children: /* @__PURE__ */
|
|
259
|
-
|
|
296
|
+
children: /* @__PURE__ */ i(
|
|
297
|
+
ee,
|
|
260
298
|
{
|
|
261
|
-
className: `w-12 h-12 md:w-16 md:h-16 transition-all duration-300 ${
|
|
299
|
+
className: `w-12 h-12 md:w-16 md:h-16 transition-all duration-300 ${h ? "fill-yellow-400 text-yellow-400 drop-shadow-[0_0_15px_rgba(250,204,21,0.4)]" : "text-zinc-600 hover:text-yellow-400/50"}`,
|
|
262
300
|
strokeWidth: 1.5
|
|
263
301
|
}
|
|
264
302
|
)
|
|
265
303
|
},
|
|
266
|
-
|
|
304
|
+
x
|
|
267
305
|
);
|
|
268
306
|
}) }),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
-
|
|
307
|
+
/* @__PURE__ */ f("div", { className: "flex justify-between w-full max-w-[300px] md:max-w-[400px] px-2 items-center", children: [
|
|
308
|
+
/* @__PURE__ */ i("span", { className: "text-sm md:text-base font-medium text-sw-text-secondary/50 uppercase tracking-wide", children: e.minLabel || "Poor" }),
|
|
309
|
+
/* @__PURE__ */ i(
|
|
310
|
+
b.div,
|
|
273
311
|
{
|
|
274
312
|
initial: { opacity: 0, scale: 0.8 },
|
|
275
313
|
animate: { opacity: t ? 1 : 0, scale: t ? 1 : 0.8 },
|
|
276
314
|
className: "font-bold text-primary text-xl",
|
|
277
|
-
children: t ? `${t} / ${
|
|
315
|
+
children: t ? `${t} / ${l}` : ""
|
|
278
316
|
}
|
|
279
317
|
),
|
|
280
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ i("span", { className: "text-sm md:text-base font-medium text-muted-foreground uppercase tracking-wide", children: e.maxLabel || "Excellent" })
|
|
281
319
|
] })
|
|
282
320
|
] });
|
|
283
321
|
}
|
|
284
|
-
function
|
|
285
|
-
|
|
322
|
+
function se({ question: e }) {
|
|
323
|
+
var x, g, h, N;
|
|
324
|
+
const { schema: n } = E(), r = n.questions.findIndex((s) => s.id === e.id) + 1, t = n.questions.length, l = {
|
|
286
325
|
hidden: { opacity: 0, y: 20 },
|
|
287
326
|
visible: { opacity: 1, y: 0, transition: { duration: 0.5, ease: [0.22, 1, 0.36, 1] } }
|
|
288
|
-
},
|
|
289
|
-
const
|
|
290
|
-
return
|
|
291
|
-
}),
|
|
292
|
-
return /* @__PURE__ */
|
|
293
|
-
|
|
327
|
+
}, p = (s) => s && s.replace(/\{\{(\w+)\}\}/g, (v, y) => {
|
|
328
|
+
const d = u.answers[y];
|
|
329
|
+
return d != null ? String(d) : "";
|
|
330
|
+
}), u = E();
|
|
331
|
+
return /* @__PURE__ */ f(
|
|
332
|
+
b.div,
|
|
294
333
|
{
|
|
295
334
|
className: "flex flex-col gap-8 w-full max-w-4xl mx-auto",
|
|
296
335
|
initial: "hidden",
|
|
@@ -299,34 +338,36 @@ function ie({ question: e }) {
|
|
|
299
338
|
visible: { transition: { staggerChildren: 0.1 } }
|
|
300
339
|
},
|
|
301
340
|
children: [
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
-
/* @__PURE__ */
|
|
306
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ f("div", { className: "flex flex-col gap-2", children: [
|
|
342
|
+
/* @__PURE__ */ i(b.div, { variants: l, className: "flex gap-4 items-baseline", children: /* @__PURE__ */ f("span", { className: "flex items-center gap-2 text-sm md:text-base font-medium text-sw-primary/90 bg-sw-primary/10 px-3 py-1 rounded-full border border-sw-primary/20 backdrop-blur-sm", children: [
|
|
343
|
+
/* @__PURE__ */ i("span", { children: r }),
|
|
344
|
+
/* @__PURE__ */ i("span", { className: "opacity-40 text-xs", children: "/" }),
|
|
345
|
+
/* @__PURE__ */ i("span", { className: "opacity-60", children: t })
|
|
307
346
|
] }) }),
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
-
|
|
347
|
+
/* @__PURE__ */ f(
|
|
348
|
+
b.h2,
|
|
310
349
|
{
|
|
311
|
-
variants:
|
|
350
|
+
variants: l,
|
|
312
351
|
className: "text-3xl md:text-4xl lg:text-5xl font-bold leading-tight tracking-tight text-pretty mt-2 font-sw-heading",
|
|
352
|
+
style: a(a({}, ((x = n.theme) == null ? void 0 : x.titleFont) && { fontFamily: "var(--font-sw-title)" }), ((g = n.theme) == null ? void 0 : g.titleFontSize) && { fontSize: "var(--size-sw-title)" }),
|
|
313
353
|
children: [
|
|
314
|
-
|
|
354
|
+
p(e.title),
|
|
315
355
|
" ",
|
|
316
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ i("span", { className: "text-sw-primary", children: "*" })
|
|
317
357
|
]
|
|
318
358
|
}
|
|
319
359
|
),
|
|
320
|
-
e.description && /* @__PURE__ */
|
|
321
|
-
|
|
360
|
+
e.description && /* @__PURE__ */ i(
|
|
361
|
+
b.p,
|
|
322
362
|
{
|
|
323
|
-
variants:
|
|
363
|
+
variants: l,
|
|
324
364
|
className: "text-lg md:text-xl text-muted-foreground font-normal leading-relaxed max-w-2xl mt-2",
|
|
325
|
-
|
|
365
|
+
style: a(a({}, ((h = n.theme) == null ? void 0 : h.descriptionFont) && { fontFamily: "var(--font-sw-description)" }), ((N = n.theme) == null ? void 0 : N.descriptionFontSize) && { fontSize: "var(--size-sw-description)" }),
|
|
366
|
+
children: p(e.description)
|
|
326
367
|
}
|
|
327
368
|
)
|
|
328
369
|
] }),
|
|
329
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ i(b.div, { variants: l, className: "w-full mt-6", children: e.type === "text" || e.type === "email" || e.type === "number" || e.type === "url" ? /* @__PURE__ */ i(oe, { question: e }) : e.type === "select" || e.type === "multi-select" ? /* @__PURE__ */ i(ae, { question: e }) : e.type === "rating" ? /* @__PURE__ */ i(le, { question: e }) : /* @__PURE__ */ f("div", { className: "p-4 bg-yellow-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-200 rounded", children: [
|
|
330
371
|
"Unsupported question type: ",
|
|
331
372
|
e.type,
|
|
332
373
|
" (ID: ",
|
|
@@ -337,7 +378,7 @@ function ie({ question: e }) {
|
|
|
337
378
|
}
|
|
338
379
|
);
|
|
339
380
|
}
|
|
340
|
-
const
|
|
381
|
+
const de = {
|
|
341
382
|
next: "Next",
|
|
342
383
|
back: "Back",
|
|
343
384
|
submit: "Submit",
|
|
@@ -345,16 +386,16 @@ const ae = {
|
|
|
345
386
|
optional: "Optional",
|
|
346
387
|
stepInfo: "Question {{current}} of {{total}}"
|
|
347
388
|
};
|
|
348
|
-
function
|
|
349
|
-
var
|
|
350
|
-
const r =
|
|
389
|
+
function xe({ schema: e, onSubmit: n }) {
|
|
390
|
+
var y;
|
|
391
|
+
const r = ne({ schema: e, onSubmit: n }), t = e.theme || {
|
|
351
392
|
backgroundColor: "#ffffff",
|
|
352
393
|
textColor: "#000000",
|
|
353
394
|
// Start with generic defaults, override in usage
|
|
354
395
|
primaryColor: "#000000",
|
|
355
396
|
borderRadius: "8px"
|
|
356
397
|
// fontFamily removed to allow inheritance
|
|
357
|
-
},
|
|
398
|
+
}, l = a(a({}, de), e.i18n), p = a(a(a(a(a(a(a(a(a(a(a({
|
|
358
399
|
backgroundColor: t.backgroundColor,
|
|
359
400
|
color: t.textColor,
|
|
360
401
|
fontFamily: t.fontFamily,
|
|
@@ -365,91 +406,91 @@ function me({ schema: e, onSubmit: i }) {
|
|
|
365
406
|
"--color-sw-text-secondary": t.textColor,
|
|
366
407
|
"--font-sw-heading": t.fontFamily || "inherit",
|
|
367
408
|
"--font-sw-body": t.fontFamily || "inherit"
|
|
368
|
-
},
|
|
369
|
-
backgroundColor:
|
|
370
|
-
color:
|
|
371
|
-
border:
|
|
409
|
+
}, t.titleFont && { "--font-sw-title": t.titleFont }), t.descriptionFont && { "--font-sw-description": t.descriptionFont }), t.labelFont && { "--font-sw-label": t.labelFont }), t.titleFontSize && { "--size-sw-title": t.titleFontSize }), t.descriptionFontSize && { "--size-sw-description": t.descriptionFontSize }), t.labelFontSize && { "--size-sw-label": t.labelFontSize }), t.optionPadding && { "--sw-option-padding": t.optionPadding }), t.optionBorderRadius && { "--sw-option-radius": t.optionBorderRadius }), t.optionBorderWidth && { "--sw-option-border": t.optionBorderWidth }), t.optionGap && { "--sw-option-gap": t.optionGap }), t.optionActiveColor && { "--sw-option-active": t.optionActiveColor }), u = t.buttonVariant === "outline", x = {
|
|
410
|
+
backgroundColor: u ? "transparent" : t.primaryColor,
|
|
411
|
+
color: u ? t.primaryColor : t.textColor,
|
|
412
|
+
border: u ? `2px solid ${t.primaryColor}` : "none",
|
|
372
413
|
borderRadius: t.borderRadius || "8px",
|
|
373
414
|
fontWeight: 600
|
|
374
|
-
},
|
|
415
|
+
}, g = {
|
|
375
416
|
color: t.primaryColor,
|
|
376
417
|
borderRadius: t.borderRadius || "8px",
|
|
377
418
|
fontWeight: 600
|
|
378
|
-
}, { autoReload:
|
|
379
|
-
if (
|
|
380
|
-
if (r.isCompleted &&
|
|
381
|
-
const
|
|
419
|
+
}, { autoReload: h, reloadDelay: N = 3e3 } = e;
|
|
420
|
+
if (T(() => {
|
|
421
|
+
if (r.isCompleted && h) {
|
|
422
|
+
const d = setTimeout(() => {
|
|
382
423
|
r.resetForm();
|
|
383
|
-
},
|
|
384
|
-
return () => clearTimeout(
|
|
424
|
+
}, N);
|
|
425
|
+
return () => clearTimeout(d);
|
|
385
426
|
}
|
|
386
|
-
}, [r.isCompleted,
|
|
387
|
-
return /* @__PURE__ */
|
|
427
|
+
}, [r.isCompleted, h, N, r.resetForm]), r.isCompleted)
|
|
428
|
+
return /* @__PURE__ */ f(
|
|
388
429
|
"div",
|
|
389
430
|
{
|
|
390
431
|
className: "flex flex-col items-center justify-center h-full w-full p-8 text-center relative overflow-hidden",
|
|
391
|
-
style:
|
|
432
|
+
style: p,
|
|
392
433
|
children: [
|
|
393
|
-
|
|
394
|
-
|
|
434
|
+
h && /* @__PURE__ */ i(
|
|
435
|
+
b.div,
|
|
395
436
|
{
|
|
396
437
|
initial: { width: "0%" },
|
|
397
438
|
animate: { width: "100%" },
|
|
398
|
-
transition: { duration:
|
|
439
|
+
transition: { duration: N / 1e3, ease: "linear" },
|
|
399
440
|
className: "absolute top-0 left-0 h-1 bg-green-500 z-50"
|
|
400
441
|
}
|
|
401
442
|
),
|
|
402
|
-
/* @__PURE__ */
|
|
403
|
-
|
|
443
|
+
/* @__PURE__ */ f(
|
|
444
|
+
b.div,
|
|
404
445
|
{
|
|
405
446
|
initial: { scale: 0.9, opacity: 0, y: 20 },
|
|
406
447
|
animate: { scale: 1, opacity: 1, y: 0 },
|
|
407
448
|
transition: { duration: 0.6, ease: [0.22, 1, 0.36, 1] },
|
|
408
449
|
className: "flex flex-col items-center",
|
|
409
450
|
children: [
|
|
410
|
-
/* @__PURE__ */
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */
|
|
451
|
+
/* @__PURE__ */ i("div", { className: "mb-6 p-4 rounded-full bg-green-500/20 text-green-500 w-24 h-24 flex items-center justify-center", children: /* @__PURE__ */ i(O, { size: 48 }) }),
|
|
452
|
+
/* @__PURE__ */ i("h1", { className: "text-4xl md:text-5xl font-bold mb-4 tracking-tight", children: "Obrigado!" }),
|
|
453
|
+
/* @__PURE__ */ i("p", { className: "text-xl opacity-70 max-w-md leading-relaxed", children: "Suas respostas foram enviadas com sucesso." })
|
|
413
454
|
]
|
|
414
455
|
}
|
|
415
456
|
)
|
|
416
457
|
]
|
|
417
458
|
}
|
|
418
459
|
);
|
|
419
|
-
const
|
|
420
|
-
return /* @__PURE__ */
|
|
460
|
+
const s = e.questions.find((d) => d.id === r.currentStepId), v = (e.questions.findIndex((d) => d.id === r.currentStepId) + 1) / e.questions.length * 100;
|
|
461
|
+
return /* @__PURE__ */ i(Q.Provider, { value: S(a({}, r), { schema: e }), children: /* @__PURE__ */ f(
|
|
421
462
|
"div",
|
|
422
463
|
{
|
|
423
464
|
className: "w-full h-full flex flex-col relative overflow-hidden transition-colors duration-700",
|
|
424
|
-
style:
|
|
465
|
+
style: p,
|
|
425
466
|
children: [
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
|
|
467
|
+
/* @__PURE__ */ f("div", { className: "absolute top-0 left-0 w-full h-1 z-50", children: [
|
|
468
|
+
/* @__PURE__ */ i("div", { className: "absolute top-0 left-0 w-full h-full bg-current opacity-10" }),
|
|
469
|
+
/* @__PURE__ */ i(
|
|
470
|
+
b.div,
|
|
430
471
|
{
|
|
431
472
|
className: "h-full relative z-10",
|
|
432
473
|
initial: { width: 0 },
|
|
433
|
-
animate: { width: `${
|
|
474
|
+
animate: { width: `${v}%` },
|
|
434
475
|
transition: { duration: 0.5, ease: "easeInOut" },
|
|
435
476
|
style: { backgroundColor: t.primaryColor }
|
|
436
477
|
}
|
|
437
478
|
)
|
|
438
479
|
] }),
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
-
|
|
480
|
+
/* @__PURE__ */ i("div", { className: "flex-1 flex flex-col items-center justify-center relative w-full pt-10 pb-6 px-6 md:px-12 z-10 overflow-y-auto", children: /* @__PURE__ */ i("div", { className: "w-full max-w-5xl mx-auto my-auto flex flex-col justify-center", children: /* @__PURE__ */ i(q, { mode: "wait", children: s && /* @__PURE__ */ i(
|
|
481
|
+
b.div,
|
|
441
482
|
{
|
|
442
483
|
initial: { opacity: 0, y: 40 },
|
|
443
484
|
animate: { opacity: 1, y: 0 },
|
|
444
485
|
exit: { opacity: 0, y: -40 },
|
|
445
486
|
transition: { duration: 0.5, ease: [0.22, 1, 0.36, 1] },
|
|
446
|
-
className: "w-full",
|
|
447
|
-
children: /* @__PURE__ */
|
|
487
|
+
className: "w-full py-8",
|
|
488
|
+
children: /* @__PURE__ */ i(se, { question: s })
|
|
448
489
|
},
|
|
449
|
-
|
|
450
|
-
) }) }),
|
|
451
|
-
/* @__PURE__ */
|
|
452
|
-
t.showPoweredBy !== !1 && /* @__PURE__ */
|
|
490
|
+
s.id
|
|
491
|
+
) }) }) }),
|
|
492
|
+
/* @__PURE__ */ f("div", { className: "w-full px-6 pt-6 pb-8 md:p-10 flex flex-col md:flex-row justify-between items-center z-20 gap-4", children: [
|
|
493
|
+
t.showPoweredBy !== !1 && /* @__PURE__ */ f(
|
|
453
494
|
"a",
|
|
454
495
|
{
|
|
455
496
|
href: t.poweredByUrl || "#",
|
|
@@ -457,42 +498,42 @@ function me({ schema: e, onSubmit: i }) {
|
|
|
457
498
|
rel: t.poweredByUrl ? "noopener noreferrer" : void 0,
|
|
458
499
|
className: "order-3 md:order-1 group flex items-center gap-2 px-3 py-1.5 rounded-md border border-white/10 bg-black/20 hover:border-sw-primary/50 hover:bg-black/40 transition-all duration-300 cursor-pointer no-underline backdrop-blur-sm",
|
|
459
500
|
children: [
|
|
460
|
-
/* @__PURE__ */
|
|
461
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ i("span", { className: "text-[10px] md:text-xs font-mono font-medium tracking-[0.2em] uppercase text-muted-foreground group-hover:text-muted-foreground/80 transition-colors", children: "Powered By" }),
|
|
502
|
+
/* @__PURE__ */ i(
|
|
462
503
|
"span",
|
|
463
504
|
{
|
|
464
505
|
className: "text-[10px] md:text-xs font-mono font-bold tracking-[0.2em] uppercase transition-colors shadow-sw-primary",
|
|
465
506
|
style: { color: t.brandColor || t.primaryColor },
|
|
466
|
-
children: ((
|
|
507
|
+
children: ((y = t.poweredBy) == null ? void 0 : y.replace("Powered by ", "")) || "SAWABONA TECH"
|
|
467
508
|
}
|
|
468
509
|
)
|
|
469
510
|
]
|
|
470
511
|
}
|
|
471
512
|
),
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
-
|
|
513
|
+
/* @__PURE__ */ f("div", { className: "flex items-center gap-4 order-2 md:order-3 ml-auto", children: [
|
|
514
|
+
/* @__PURE__ */ i(
|
|
515
|
+
b.button,
|
|
475
516
|
{
|
|
476
517
|
onClick: r.prevStep,
|
|
477
518
|
disabled: r.history.length === 0,
|
|
478
519
|
whileHover: { scale: 1.05 },
|
|
479
520
|
whileTap: { scale: 0.95 },
|
|
480
521
|
className: "w-12 h-12 md:w-14 md:h-14 flex items-center justify-center disabled:opacity-0 disabled:pointer-events-none transition-all hover:bg-white/5 rounded-full",
|
|
481
|
-
style:
|
|
482
|
-
children: /* @__PURE__ */
|
|
522
|
+
style: g,
|
|
523
|
+
children: /* @__PURE__ */ i(te, { size: 24 })
|
|
483
524
|
}
|
|
484
525
|
),
|
|
485
|
-
/* @__PURE__ */
|
|
486
|
-
|
|
526
|
+
/* @__PURE__ */ f(
|
|
527
|
+
b.button,
|
|
487
528
|
{
|
|
488
529
|
onClick: r.nextStep,
|
|
489
530
|
whileHover: { scale: 1.02 },
|
|
490
531
|
whileTap: { scale: 0.98 },
|
|
491
532
|
className: "px-8 py-3 md:px-10 md:py-4 text-lg font-bold shadow-2xl flex items-center gap-3 transition-all rounded-lg",
|
|
492
|
-
style:
|
|
533
|
+
style: x,
|
|
493
534
|
children: [
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
r.currentStepId !== e.questions[e.questions.length - 1].id && /* @__PURE__ */
|
|
535
|
+
/* @__PURE__ */ i("span", { children: r.currentStepId === e.questions[e.questions.length - 1].id ? t.submitText || l.submit : l.next }),
|
|
536
|
+
r.currentStepId !== e.questions[e.questions.length - 1].id && /* @__PURE__ */ i(re, { size: 20, strokeWidth: 3 })
|
|
496
537
|
]
|
|
497
538
|
}
|
|
498
539
|
)
|
|
@@ -503,5 +544,5 @@ function me({ schema: e, onSubmit: i }) {
|
|
|
503
544
|
) });
|
|
504
545
|
}
|
|
505
546
|
export {
|
|
506
|
-
|
|
547
|
+
xe as FormRenderer
|
|
507
548
|
};
|