formanitor 0.1.9 → 0.1.11
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 +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles/index.css +35 -2
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) {
|
|
@@ -2224,7 +2228,10 @@ function buildRichTextExtensions(placeholder, tables) {
|
|
|
2224
2228
|
return [
|
|
2225
2229
|
...base,
|
|
2226
2230
|
Table.configure({
|
|
2227
|
-
resizable:
|
|
2231
|
+
resizable: true,
|
|
2232
|
+
/** Wider hit zone along column borders (default 5px). */
|
|
2233
|
+
handleWidth: 8,
|
|
2234
|
+
cellMinWidth: 50
|
|
2228
2235
|
}),
|
|
2229
2236
|
TableRow,
|
|
2230
2237
|
TableHeader,
|
|
@@ -4034,13 +4041,7 @@ function Upload3({
|
|
|
4034
4041
|
/* @__PURE__ */ jsx("br", {}),
|
|
4035
4042
|
"and medical records"
|
|
4036
4043
|
] }),
|
|
4037
|
-
/* @__PURE__ */ jsx(
|
|
4038
|
-
Upload,
|
|
4039
|
-
{
|
|
4040
|
-
size: 20,
|
|
4041
|
-
className: "rotate-180 text-[#727272] mt-4"
|
|
4042
|
-
}
|
|
4043
|
-
),
|
|
4044
|
+
/* @__PURE__ */ jsx(Upload, { size: 20, className: "text-[#727272] mt-4" }),
|
|
4044
4045
|
/* @__PURE__ */ jsx("div", { className: "text-xs mt-1 text-text-shades-2", children: placeholder }),
|
|
4045
4046
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 text-10px leading-[140%] text-[#989898]", children: [
|
|
4046
4047
|
"Supported formats - ",
|