@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.
Files changed (56) hide show
  1. package/dist/form-builder.es.js +10 -6
  2. package/dist/form-builder.umd.js +30 -29
  3. package/dist/index.css +1 -0
  4. package/package.json +7 -4
  5. package/types/App.d.ts +4 -0
  6. package/types/components/ApiExample.d.ts +2 -0
  7. package/types/components/CustomSelect.d.ts +20 -0
  8. package/types/components/ImageViewer.d.ts +4 -0
  9. package/types/components/Loader.d.ts +1 -0
  10. package/types/components/TableInputColumns.d.ts +1 -0
  11. package/types/components/TableInputElement.d.ts +6 -0
  12. package/types/components/UniversalFileViewer.d.ts +5 -0
  13. package/types/components/editor/bottom-bar.d.ts +5 -0
  14. package/types/components/editor/element-canvas.d.ts +14 -0
  15. package/types/components/editor/element-render.d.ts +1 -0
  16. package/types/components/editor/index.d.ts +2 -0
  17. package/types/components/editor/layout.d.ts +8 -0
  18. package/types/components/editor/main.d.ts +5 -0
  19. package/types/components/editor/preview-modal.d.ts +8 -0
  20. package/types/components/editor/sidebar.d.ts +2 -0
  21. package/types/components/editor/topbar.d.ts +1 -0
  22. package/types/components/elements/amount-input.d.ts +4 -0
  23. package/types/components/elements/checkbox-input.d.ts +4 -0
  24. package/types/components/elements/date-input.d.ts +4 -0
  25. package/types/components/elements/element-container.d.ts +13 -0
  26. package/types/components/elements/element-editor.d.ts +8 -0
  27. package/types/components/elements/email-input.d.ts +4 -0
  28. package/types/components/elements/file-input.d.ts +4 -0
  29. package/types/components/elements/grid-input.d.ts +8 -0
  30. package/types/components/elements/long-text.d.ts +4 -0
  31. package/types/components/elements/multi-select-input.d.ts +4 -0
  32. package/types/components/elements/password-input.d.ts +4 -0
  33. package/types/components/elements/radio-input.d.ts +4 -0
  34. package/types/components/elements/section-editor.d.ts +7 -0
  35. package/types/components/elements/section-input.d.ts +4 -0
  36. package/types/components/elements/select-input.d.ts +4 -0
  37. package/types/components/elements/table-input.d.ts +4 -0
  38. package/types/components/elements/text-input.d.ts +4 -0
  39. package/types/components/elements/validate-input.d.ts +4 -0
  40. package/types/components/forms/dynamic-input.d.ts +19 -0
  41. package/types/components/forms/file-uploader.d.ts +10 -0
  42. package/types/components/ui/AppButton.d.ts +18 -0
  43. package/types/components/ui/AppIcon.d.ts +5 -0
  44. package/types/components/ui/AppTab.d.ts +17 -0
  45. package/types/components/viewer/elements-render.d.ts +1 -0
  46. package/types/components/viewer/index.d.ts +2 -0
  47. package/types/components/viewer/validation.d.ts +24 -0
  48. package/types/context/editor-context.d.ts +17 -0
  49. package/types/index.d.ts +3 -0
  50. package/types/main.d.ts +1 -0
  51. package/types/pages/builder/index.d.ts +3 -0
  52. package/types/pages/viewer/index.d.ts +10 -0
  53. package/types/utils/contants.d.ts +44 -0
  54. package/types/utils/isValidImage.d.ts +1 -0
  55. package/types/utils/localStorageControl.d.ts +4 -0
  56. package/dist/form-builder-react.css +0 -1
@@ -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);