@arudovwen/form-builder-react 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/dist/form-builder.es.js +10 -6
- package/dist/form-builder.umd.js +30 -29
- package/dist/index.css +1 -0
- package/package.json +7 -4
- package/types/App.d.ts +4 -0
- package/types/components/ApiExample.d.ts +2 -0
- package/types/components/CustomSelect.d.ts +20 -0
- package/types/components/ImageViewer.d.ts +4 -0
- package/types/components/Loader.d.ts +1 -0
- package/types/components/TableInputColumns.d.ts +1 -0
- package/types/components/TableInputElement.d.ts +6 -0
- package/types/components/UniversalFileViewer.d.ts +5 -0
- package/types/components/editor/bottom-bar.d.ts +5 -0
- package/types/components/editor/element-canvas.d.ts +14 -0
- package/types/components/editor/element-render.d.ts +1 -0
- package/types/components/editor/index.d.ts +2 -0
- package/types/components/editor/layout.d.ts +8 -0
- package/types/components/editor/main.d.ts +5 -0
- package/types/components/editor/preview-modal.d.ts +8 -0
- package/types/components/editor/sidebar.d.ts +2 -0
- package/types/components/editor/topbar.d.ts +1 -0
- package/types/components/elements/amount-input.d.ts +4 -0
- package/types/components/elements/checkbox-input.d.ts +4 -0
- package/types/components/elements/date-input.d.ts +4 -0
- package/types/components/elements/element-container.d.ts +13 -0
- package/types/components/elements/element-editor.d.ts +8 -0
- package/types/components/elements/email-input.d.ts +4 -0
- package/types/components/elements/file-input.d.ts +4 -0
- package/types/components/elements/grid-input.d.ts +8 -0
- package/types/components/elements/long-text.d.ts +4 -0
- package/types/components/elements/multi-select-input.d.ts +4 -0
- package/types/components/elements/password-input.d.ts +4 -0
- package/types/components/elements/radio-input.d.ts +4 -0
- package/types/components/elements/section-editor.d.ts +7 -0
- package/types/components/elements/section-input.d.ts +4 -0
- package/types/components/elements/select-input.d.ts +4 -0
- package/types/components/elements/table-input.d.ts +4 -0
- package/types/components/elements/text-input.d.ts +4 -0
- package/types/components/elements/validate-input.d.ts +4 -0
- package/types/components/forms/dynamic-input.d.ts +19 -0
- package/types/components/forms/file-uploader.d.ts +10 -0
- package/types/components/ui/AppButton.d.ts +18 -0
- package/types/components/ui/AppIcon.d.ts +5 -0
- package/types/components/ui/AppTab.d.ts +17 -0
- package/types/components/viewer/elements-render.d.ts +1 -0
- package/types/components/viewer/index.d.ts +2 -0
- package/types/components/viewer/validation.d.ts +24 -0
- package/types/context/editor-context.d.ts +17 -0
- package/types/index.d.ts +3 -0
- package/types/main.d.ts +1 -0
- package/types/pages/builder/index.d.ts +3 -0
- package/types/pages/viewer/index.d.ts +10 -0
- package/types/utils/contants.d.ts +44 -0
- package/types/utils/isValidImage.d.ts +1 -0
- package/types/utils/localStorageControl.d.ts +4 -0
- package/dist/form-builder-react.css +0 -1
package/dist/form-builder.es.js
CHANGED
|
@@ -3977,7 +3977,7 @@ function fm({ onSubmit: e }) {
|
|
|
3977
3977
|
{
|
|
3978
3978
|
onClick: () => r(),
|
|
3979
3979
|
text: "Save Form",
|
|
3980
|
-
style: { background: n.buttonColor },
|
|
3980
|
+
style: { background: (n == null ? void 0 : n.buttonColor) || "#333" },
|
|
3981
3981
|
btnClass: "text-gray-700 border-[#98A2B3] !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg"
|
|
3982
3982
|
}
|
|
3983
3983
|
) });
|
|
@@ -11847,7 +11847,7 @@ const O0 = () => /* @__PURE__ */ g.jsx("blockquote", { className: "bg-gray-100 p
|
|
|
11847
11847
|
{
|
|
11848
11848
|
type: "submit",
|
|
11849
11849
|
disabled: !m || d,
|
|
11850
|
-
style: { background: o.buttonColor },
|
|
11850
|
+
style: { background: (o == null ? void 0 : o.buttonColor) || "#333" },
|
|
11851
11851
|
className: `flex-1 px-4 py-2.5 ${!m || d ? "bg-[#F2F4F7]" : "bg-[#2563EB]"} ${!m || d ? "text-[#98A2B3]" : "text-white"} rounded-lg shadow-xs font-semibold font-onest disabled:opacity-50`,
|
|
11852
11852
|
children: d ? "Saving..." : "Save"
|
|
11853
11853
|
}
|
|
@@ -14299,7 +14299,9 @@ const Pw = ({
|
|
|
14299
14299
|
onSubmit: e,
|
|
14300
14300
|
questionData: t,
|
|
14301
14301
|
isReadOnly: n,
|
|
14302
|
-
config: r
|
|
14302
|
+
config: r = {
|
|
14303
|
+
buttonColor: "#333"
|
|
14304
|
+
}
|
|
14303
14305
|
}) => (Z(() => {
|
|
14304
14306
|
r && Cu("config", r);
|
|
14305
14307
|
}, [r]), /* @__PURE__ */ g.jsx(
|
|
@@ -14494,7 +14496,7 @@ const Fw = ({
|
|
|
14494
14496
|
{
|
|
14495
14497
|
type: "button",
|
|
14496
14498
|
text: "Continue",
|
|
14497
|
-
style: { background: x.buttonColor },
|
|
14499
|
+
style: { background: (x == null ? void 0 : x.buttonColor) || "#333" },
|
|
14498
14500
|
onClick: _,
|
|
14499
14501
|
btnClass: "text-gray-700 border-[#98A2B3] !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg"
|
|
14500
14502
|
}
|
|
@@ -14505,7 +14507,7 @@ const Fw = ({
|
|
|
14505
14507
|
isLoading: y,
|
|
14506
14508
|
type: "submit",
|
|
14507
14509
|
text: "Submit",
|
|
14508
|
-
style: { background: x.buttonColor },
|
|
14510
|
+
style: { background: (x == null ? void 0 : x.buttonColor) || "#333" },
|
|
14509
14511
|
btnClass: "text-gray-700 border-[#98A2B3] !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg"
|
|
14510
14512
|
}
|
|
14511
14513
|
) })
|
|
@@ -14519,7 +14521,9 @@ function kw({
|
|
|
14519
14521
|
onSubmit: r,
|
|
14520
14522
|
isReadOnly: i = !1,
|
|
14521
14523
|
loading: s = !1,
|
|
14522
|
-
config: o
|
|
14524
|
+
config: o = {
|
|
14525
|
+
buttonColor: "#333"
|
|
14526
|
+
}
|
|
14523
14527
|
}) {
|
|
14524
14528
|
return Z(() => {
|
|
14525
14529
|
o && Cu("config", o);
|