@digilogiclabs/saas-factory-ui 1.34.1 → 1.35.0
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.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -10
- package/dist/index.mjs.map +1 -1
- package/dist/web/index.js +1 -10
- package/dist/web/index.js.map +1 -1
- package/dist/web/index.mjs +1 -10
- package/dist/web/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42239,7 +42239,6 @@ function TagInput({
|
|
|
42239
42239
|
// src/components/ui/sectioned-list-editor/index.tsx
|
|
42240
42240
|
var import_react81 = require("react");
|
|
42241
42241
|
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
42242
|
-
var STYLE_ID2 = "dll-sectioned-list-editor-styles";
|
|
42243
42242
|
var SECTIONED_LIST_CSS = `
|
|
42244
42243
|
.sle-root {
|
|
42245
42244
|
--sle-accent: var(--primary, #3b82f6);
|
|
@@ -42452,14 +42451,6 @@ var SECTIONED_LIST_CSS = `
|
|
|
42452
42451
|
font-variant-numeric: tabular-nums;
|
|
42453
42452
|
}
|
|
42454
42453
|
`;
|
|
42455
|
-
function ensureStylesInjected2() {
|
|
42456
|
-
if (typeof document === "undefined") return;
|
|
42457
|
-
if (document.getElementById(STYLE_ID2)) return;
|
|
42458
|
-
const el = document.createElement("style");
|
|
42459
|
-
el.id = STYLE_ID2;
|
|
42460
|
-
el.textContent = SECTIONED_LIST_CSS;
|
|
42461
|
-
document.head.appendChild(el);
|
|
42462
|
-
}
|
|
42463
42454
|
function SectionedListEditor({
|
|
42464
42455
|
sections,
|
|
42465
42456
|
onChange,
|
|
@@ -42470,7 +42461,6 @@ function SectionedListEditor({
|
|
|
42470
42461
|
renderSummary,
|
|
42471
42462
|
className = ""
|
|
42472
42463
|
}) {
|
|
42473
|
-
ensureStylesInjected2();
|
|
42474
42464
|
const [activeKey, setActiveKey] = (0, import_react81.useState)(sections[0]?.key ?? "");
|
|
42475
42465
|
const [input, setInput] = (0, import_react81.useState)("");
|
|
42476
42466
|
const [customName, setCustomName] = (0, import_react81.useState)("");
|
|
@@ -42532,6 +42522,7 @@ function SectionedListEditor({
|
|
|
42532
42522
|
}
|
|
42533
42523
|
};
|
|
42534
42524
|
return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)("div", { className: `sle-root ${className}`.trim(), children: [
|
|
42525
|
+
/* @__PURE__ */ (0, import_jsx_runtime131.jsx)("style", { href: "dll-sectioned-list-editor-styles", precedence: "default", children: SECTIONED_LIST_CSS }),
|
|
42535
42526
|
/* @__PURE__ */ (0, import_jsx_runtime131.jsx)("div", { className: "sle-tabs", role: "tablist", children: sections.map((s) => {
|
|
42536
42527
|
const active = s.key === effectiveActive;
|
|
42537
42528
|
const removable = !isProtected(s.key);
|