@forms.expert/sdk 0.4.4 → 0.4.5
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/react/index.cjs +2 -2
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +2 -2
- package/dist/react/index.js.map +1 -1
- package/dist/vanilla/index.cjs +1 -1
- package/dist/vanilla/index.cjs.map +1 -1
- package/dist/vanilla/index.global.js +1 -1
- package/dist/vanilla/index.global.js.map +1 -1
- package/dist/vanilla/index.js +1 -1
- package/dist/vanilla/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -1232,7 +1232,7 @@ function FormsExpertForm({
|
|
|
1232
1232
|
textAlign: "center",
|
|
1233
1233
|
marginTop: "1rem",
|
|
1234
1234
|
paddingTop: "0.75rem",
|
|
1235
|
-
borderTop: `1px solid ${styling.theme === "dark" ? "#374151" : "#e5e7eb"}`
|
|
1235
|
+
borderTop: `1px solid ${styling.separatorColor || (styling.theme === "dark" ? "#374151" : "#e5e7eb")}`
|
|
1236
1236
|
},
|
|
1237
1237
|
children: /* @__PURE__ */ jsx2(
|
|
1238
1238
|
"a",
|
|
@@ -1518,7 +1518,7 @@ function FormFieldInput({
|
|
|
1518
1518
|
} else if (field.type === "file") {
|
|
1519
1519
|
const fileValue = value;
|
|
1520
1520
|
const formatSize = (size) => size < 1024 ? `${size} B` : size < 1048576 ? `${(size / 1024).toFixed(1)} KB` : `${(size / 1048576).toFixed(1)} MB`;
|
|
1521
|
-
const borderColor = error ? styling.errorColor || "#ef4444" : styling.theme === "dark" ? "#4b5563" : "#d1d5db";
|
|
1521
|
+
const borderColor = error ? styling.errorColor || "#ef4444" : styling.fieldBorderColor || (styling.theme === "dark" ? "#4b5563" : "#d1d5db");
|
|
1522
1522
|
const mutedColor = styling.theme === "dark" ? "#9ca3af" : "#6b7280";
|
|
1523
1523
|
fieldEl = /* @__PURE__ */ jsxs(
|
|
1524
1524
|
"label",
|