formanitor 0.2.6 → 0.2.7

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/index.cjs CHANGED
@@ -954,6 +954,7 @@ function Upload3({
954
954
  onChange,
955
955
  className,
956
956
  formatsLabel,
957
+ label,
957
958
  placeholder = "Upload File",
958
959
  beforeUploadContent,
959
960
  id: idProp,
@@ -1008,11 +1009,7 @@ function Upload3({
1008
1009
  count === 1 ? "" : "s",
1009
1010
  " selected"
1010
1011
  ] }) : beforeUploadContent ? beforeUploadContent : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center", children: [
1011
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm text-black font-normal leading-[120%] tracking-[-0.28px] text-center", children: [
1012
- "Upload your surgery prescription",
1013
- /* @__PURE__ */ jsxRuntime.jsx("br", {}),
1014
- "and medical records"
1015
- ] }),
1012
+ label ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-black font-normal leading-[120%] tracking-[-0.28px] text-center whitespace-pre-line", children: label }) : null,
1016
1013
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Upload, { size: 20, className: "text-[#727272] mt-4" }),
1017
1014
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs mt-1 text-text-shades-2", children: placeholder }),
1018
1015
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 text-10px leading-[140%] text-[#989898]", children: [
@@ -1193,6 +1190,7 @@ var FormFileUploadWidget = ({
1193
1190
  onChange: handleChange,
1194
1191
  disabled: disabled || isUploading,
1195
1192
  listLayout,
1193
+ label: fieldDef.label,
1196
1194
  placeholder: isUploading ? "Uploading..." : def.uploadPlaceholder ?? "Upload File",
1197
1195
  formatsLabel: def.uploadFormats,
1198
1196
  className: chunk5E3APMY6_cjs.fieldControlClass(