@charisol/plexo-sdk 1.0.35 → 1.0.36
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.
|
@@ -1061,10 +1061,10 @@ var k = () => ({
|
|
|
1061
1061
|
], N = (e) => {
|
|
1062
1062
|
if (!e || typeof e != "object") return "";
|
|
1063
1063
|
let t = e.kind || "text", n = A(e.name || e.label || "field"), r = e.required ? " required" : "", i = T({
|
|
1064
|
-
fontSize: e.fontSize,
|
|
1065
|
-
borderRadius: e.borderRadius,
|
|
1064
|
+
fontSize: e.fontSize || "13px",
|
|
1065
|
+
borderRadius: e.borderRadius || "12px",
|
|
1066
1066
|
borderWidth: e.borderWidth || "1px",
|
|
1067
|
-
borderColor: e.borderColor || "#
|
|
1067
|
+
borderColor: e.borderColor || "#334155",
|
|
1068
1068
|
borderStyle: "solid",
|
|
1069
1069
|
color: e.inputTextColor
|
|
1070
1070
|
}), a = e.showLabel === !1 ? "" : `<label style="display: block; margin-bottom: 4px; font-size: ${e.fontSize || "12px"}; font-weight: ${e.labelFontWeight || "700"}; color: ${e.labelColor || "inherit"};">${e.label || ""}${e.required ? " <span style=\"color:#e11d48;\">*</span>" : ""}</label>`;
|
|
@@ -1121,10 +1121,10 @@ var k = () => ({
|
|
|
1121
1121
|
}
|
|
1122
1122
|
case "input": {
|
|
1123
1123
|
let e = r.inputType || r.type || "text", t = A(r.name || r.fieldName || "field"), a = A(r.placeholder || ""), o = r.required ? " required" : "";
|
|
1124
|
-
return `<input${i} type="${A(e)}" name="${t}" placeholder="${a}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #
|
|
1124
|
+
return `<input${i} type="${A(e)}" name="${t}" placeholder="${a}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${n}"${o} />`;
|
|
1125
1125
|
}
|
|
1126
|
-
case "textarea": return `<textarea${i} name="${A(r.name || r.fieldName || "field")}" placeholder="${A(r.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #
|
|
1127
|
-
case "select": return `<select${i} name="${A(r.name || r.fieldName || "field")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #
|
|
1126
|
+
case "textarea": return `<textarea${i} name="${A(r.name || r.fieldName || "field")}" placeholder="${A(r.placeholder || "")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${n}"${r.required ? " required" : ""}></textarea>`;
|
|
1127
|
+
case "select": return `<select${i} name="${A(r.name || r.fieldName || "field")}" style="width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #334155; ${n}"${r.required ? " required" : ""}>${(Array.isArray(r.options) ? r.options : []).map((e) => `<option value="${A(e?.value ?? "")}">${e?.label ?? e?.value ?? ""}</option>`).join("")}</select>`;
|
|
1128
1128
|
case "html": return `<div${i} style="${n}">${r.htmlContent || r.text || ""}</div>`;
|
|
1129
1129
|
default: return `<!-- Unsupported block ${e.type} -->`;
|
|
1130
1130
|
}
|
package/dist/compiler.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./compiler-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./compiler-B23a0JeZ.js";
|
|
2
2
|
export { c as DEFAULT_BODY_FONT_FAMILY, i as FORM_NON_CSS_STYLE_KEYS, o as collectResponsiveRule, n as compileToHTML, e as compileToHTMLWithStrataAuto, a as compileToPlainText, s as convertSectionRowToPlexoRow, t as getFormDefaultStyle, r as getInlineStylesImportant, l as injectStrataBundle };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, m as l, n as u, o as d, p as f, r as p, u as m, x as h, y as g } from "./compiler-
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, m as l, n as u, o as d, p as f, r as p, u as m, x as h, y as g } from "./compiler-B23a0JeZ.js";
|
|
2
2
|
import { parseJsonToTargetFormat as _ } from "./compilerClient.js";
|
|
3
3
|
import v, { createContext as y, createElement as b, forwardRef as x, useCallback as ee, useContext as te, useEffect as S, useImperativeHandle as C, useMemo as w, useRef as T, useState as E } from "react";
|
|
4
4
|
import { DndContext as ne, DragOverlay as re, PointerSensor as ie, TouchSensor as ae, useDraggable as oe, useDroppable as se, useSensor as ce, useSensors as D } from "@dnd-kit/core";
|
|
@@ -56078,7 +56078,7 @@ var VU = ({ html: e, className: t, style: n, tag: r = "div", dataPlexoId: i }) =
|
|
|
56078
56078
|
}), HU = {
|
|
56079
56079
|
borderWidth: "1px",
|
|
56080
56080
|
borderStyle: "solid",
|
|
56081
|
-
borderColor: "#
|
|
56081
|
+
borderColor: "#334155"
|
|
56082
56082
|
}, UU = (e, t) => {
|
|
56083
56083
|
if (!e || typeof e != "object") return null;
|
|
56084
56084
|
let n = e.kind || "text", r = e.name || e.label || "field", i = !!e.required, a = {
|
|
@@ -56086,10 +56086,10 @@ var VU = ({ html: e, className: t, style: n, tag: r = "div", dataPlexoId: i }) =
|
|
|
56086
56086
|
boxSizing: "border-box",
|
|
56087
56087
|
padding: "10px 12px",
|
|
56088
56088
|
...zU({
|
|
56089
|
-
fontSize: e.fontSize,
|
|
56090
|
-
borderRadius: e.borderRadius,
|
|
56089
|
+
fontSize: e.fontSize || "13px",
|
|
56090
|
+
borderRadius: e.borderRadius || "12px",
|
|
56091
56091
|
borderWidth: e.borderWidth || "1px",
|
|
56092
|
-
borderColor: e.borderColor || "#
|
|
56092
|
+
borderColor: e.borderColor || "#334155",
|
|
56093
56093
|
borderStyle: "solid",
|
|
56094
56094
|
color: e.inputTextColor
|
|
56095
56095
|
})
|
package/package.json
CHANGED