formanitor 0.1.9 → 0.1.10

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.d.cts CHANGED
@@ -54,6 +54,11 @@ interface FieldStyleConfig {
54
54
  * Default true (show asterisk when required).
55
55
  */
56
56
  showRequiredAsterisk?: boolean;
57
+ /**
58
+ * When true and `classNames.control` is provided, control defaults are skipped and only that class
59
+ * string is used for the main control element. Default false (merge defaults + control override).
60
+ */
61
+ fullControl?: boolean;
57
62
  classNames?: FieldStyleClassNames;
58
63
  }
59
64
  interface BaseFieldDef {
package/dist/index.d.ts CHANGED
@@ -54,6 +54,11 @@ interface FieldStyleConfig {
54
54
  * Default true (show asterisk when required).
55
55
  */
56
56
  showRequiredAsterisk?: boolean;
57
+ /**
58
+ * When true and `classNames.control` is provided, control defaults are skipped and only that class
59
+ * string is used for the main control element. Default false (merge defaults + control override).
60
+ */
61
+ fullControl?: boolean;
57
62
  classNames?: FieldStyleClassNames;
58
63
  }
59
64
  interface BaseFieldDef {
package/dist/index.mjs CHANGED
@@ -2064,6 +2064,10 @@ function fieldLabelClass(fieldDef, ...defaults) {
2064
2064
  return cn(...defaults, fieldDef.style?.classNames?.label);
2065
2065
  }
2066
2066
  function fieldControlClass(fieldDef, ...defaults) {
2067
+ const controlClass = fieldDef.style?.classNames?.control;
2068
+ if (fieldDef.style?.fullControl && controlClass) {
2069
+ return cn(controlClass);
2070
+ }
2067
2071
  return cn(...defaults, fieldDef.style?.classNames?.control);
2068
2072
  }
2069
2073
  function fieldDescriptionClass(fieldDef, ...defaults) {
@@ -4034,13 +4038,7 @@ function Upload3({
4034
4038
  /* @__PURE__ */ jsx("br", {}),
4035
4039
  "and medical records"
4036
4040
  ] }),
4037
- /* @__PURE__ */ jsx(
4038
- Upload,
4039
- {
4040
- size: 20,
4041
- className: "rotate-180 text-[#727272] mt-4"
4042
- }
4043
- ),
4041
+ /* @__PURE__ */ jsx(Upload, { size: 20, className: "text-[#727272] mt-4" }),
4044
4042
  /* @__PURE__ */ jsx("div", { className: "text-xs mt-1 text-text-shades-2", children: placeholder }),
4045
4043
  /* @__PURE__ */ jsxs("div", { className: "mt-2 text-10px leading-[140%] text-[#989898]", children: [
4046
4044
  "Supported formats - ",