@digilogiclabs/saas-factory-ui 1.16.6 → 1.16.7

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 CHANGED
@@ -29370,7 +29370,6 @@ var DEFAULT_GRADIENT = {
29370
29370
  endCycle: "#1a4d52;#3a7a7f;#c45e2e;#f16c25;#c45e2e;#3a7a7f;#1a4d52",
29371
29371
  cycleDuration: 4
29372
29372
  };
29373
- var STYLE_ID3 = "dll-brand-loader-styles";
29374
29373
  var BRAND_LOADER_CSS = `
29375
29374
  .brand-loader-wrapper {
29376
29375
  display: inline-flex;
@@ -29483,14 +29482,6 @@ var BRAND_LOADER_CSS = `
29483
29482
  .brand-loader-label { animation: none; opacity: 1; }
29484
29483
  }
29485
29484
  `;
29486
- function ensureStylesInjected3() {
29487
- if (typeof document === "undefined") return;
29488
- if (document.getElementById(STYLE_ID3)) return;
29489
- const el = document.createElement("style");
29490
- el.id = STYLE_ID3;
29491
- el.textContent = BRAND_LOADER_CSS;
29492
- document.head.appendChild(el);
29493
- }
29494
29485
  function BrandLoader({
29495
29486
  mode = "draw",
29496
29487
  paths,
@@ -29511,7 +29502,6 @@ function BrandLoader({
29511
29502
  }) {
29512
29503
  const rawId = (0, import_react64.useId)().replace(/:/g, "");
29513
29504
  if (!loading) return null;
29514
- ensureStylesInjected3();
29515
29505
  const uid = `brand-${rawId}`;
29516
29506
  const px = typeof size === "number" ? size : SIZES[size] ?? SIZES.md;
29517
29507
  const effectiveDuration = duration ?? (mode === "pulse" ? 2 : 4);
@@ -29540,6 +29530,7 @@ function BrandLoader({
29540
29530
  "aria-live": "polite",
29541
29531
  "aria-label": ariaLabel ?? label ?? "Loading",
29542
29532
  children: [
29533
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("style", { href: "dll-brand-loader", precedence: "default", children: BRAND_LOADER_CSS }),
29543
29534
  mode === "pulse" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
29544
29535
  "div",
29545
29536
  {
@@ -29742,7 +29733,7 @@ var STAGGER_STEP_MS = 35;
29742
29733
  var STAGGER_CAP = 14;
29743
29734
  var TILT_MAX_DEG = 12;
29744
29735
  var SCALE_HOVER = 1.04;
29745
- var STYLE_ID4 = "dll-tilt-card-styles";
29736
+ var STYLE_ID3 = "dll-tilt-card-styles";
29746
29737
  var TILT_CARD_CSS = `
29747
29738
  .tc-root {
29748
29739
  --tc-accent: #3b82f6;
@@ -30047,11 +30038,11 @@ var TILT_CARD_CSS = `
30047
30038
  }
30048
30039
  }
30049
30040
  `;
30050
- function ensureStylesInjected4() {
30041
+ function ensureStylesInjected3() {
30051
30042
  if (typeof document === "undefined") return;
30052
- if (document.getElementById(STYLE_ID4)) return;
30043
+ if (document.getElementById(STYLE_ID3)) return;
30053
30044
  const el = document.createElement("style");
30054
- el.id = STYLE_ID4;
30045
+ el.id = STYLE_ID3;
30055
30046
  el.textContent = TILT_CARD_CSS;
30056
30047
  document.head.appendChild(el);
30057
30048
  }
@@ -30078,7 +30069,7 @@ function TiltCard({
30078
30069
  const uid = (0, import_react65.useId)().replace(/:/g, "");
30079
30070
  const rootRef = (0, import_react65.useRef)(null);
30080
30071
  const [hovered, setHovered] = (0, import_react65.useState)(false);
30081
- ensureStylesInjected4();
30072
+ ensureStylesInjected3();
30082
30073
  const handleMove = (0, import_react65.useCallback)(
30083
30074
  (e) => {
30084
30075
  if (disableTilt && disableShine) return;
@@ -31067,7 +31058,7 @@ DiceRoller.displayName = "DiceRoller";
31067
31058
  // src/components/ui/step-wizard/index.tsx
31068
31059
  var import_react67 = require("react");
31069
31060
  var import_jsx_runtime115 = require("react/jsx-runtime");
31070
- var STYLE_ID5 = "dll-step-wizard-styles";
31061
+ var STYLE_ID4 = "dll-step-wizard-styles";
31071
31062
  var STEP_WIZARD_CSS = `
31072
31063
  .sw-root {
31073
31064
  --sw-accent: var(--primary, #3b82f6);
@@ -31225,11 +31216,11 @@ var STEP_WIZARD_CSS = `
31225
31216
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
31226
31217
  }
31227
31218
  `;
31228
- function ensureStylesInjected5() {
31219
+ function ensureStylesInjected4() {
31229
31220
  if (typeof document === "undefined") return;
31230
- if (document.getElementById(STYLE_ID5)) return;
31221
+ if (document.getElementById(STYLE_ID4)) return;
31231
31222
  const el = document.createElement("style");
31232
- el.id = STYLE_ID5;
31223
+ el.id = STYLE_ID4;
31233
31224
  el.textContent = STEP_WIZARD_CSS;
31234
31225
  document.head.appendChild(el);
31235
31226
  }
@@ -31239,7 +31230,7 @@ function StepProgress({
31239
31230
  onJump,
31240
31231
  className = ""
31241
31232
  }) {
31242
- ensureStylesInjected5();
31233
+ ensureStylesInjected4();
31243
31234
  const currentIdx = Math.max(
31244
31235
  0,
31245
31236
  steps.findIndex((s) => s.key === current)
@@ -31295,7 +31286,7 @@ function StepWizard({
31295
31286
  nextLabel = "Continue",
31296
31287
  className = ""
31297
31288
  }) {
31298
- ensureStylesInjected5();
31289
+ ensureStylesInjected4();
31299
31290
  const currentIdx = steps.findIndex((s) => s.key === current);
31300
31291
  const safeIdx = currentIdx < 0 ? 0 : currentIdx;
31301
31292
  const isFirst = safeIdx === 0;
@@ -31360,7 +31351,7 @@ function StepWizard({
31360
31351
 
31361
31352
  // src/components/ui/pill-toggle/index.tsx
31362
31353
  var import_jsx_runtime116 = require("react/jsx-runtime");
31363
- var STYLE_ID6 = "dll-pill-toggle-styles";
31354
+ var STYLE_ID5 = "dll-pill-toggle-styles";
31364
31355
  var PILL_TOGGLE_CSS = `
31365
31356
  .pt-root {
31366
31357
  --pt-accent: var(--primary, #3b82f6);
@@ -31409,16 +31400,16 @@ var PILL_TOGGLE_CSS = `
31409
31400
  line-height: 1;
31410
31401
  }
31411
31402
  `;
31412
- function ensureStylesInjected6() {
31403
+ function ensureStylesInjected5() {
31413
31404
  if (typeof document === "undefined") return;
31414
- if (document.getElementById(STYLE_ID6)) return;
31405
+ if (document.getElementById(STYLE_ID5)) return;
31415
31406
  const el = document.createElement("style");
31416
- el.id = STYLE_ID6;
31407
+ el.id = STYLE_ID5;
31417
31408
  el.textContent = PILL_TOGGLE_CSS;
31418
31409
  document.head.appendChild(el);
31419
31410
  }
31420
31411
  function PillToggle(props) {
31421
- ensureStylesInjected6();
31412
+ ensureStylesInjected5();
31422
31413
  const { options, ariaLabel, className = "" } = props;
31423
31414
  const isActive = (value) => {
31424
31415
  if (props.multi) return props.value.includes(value);
@@ -31470,7 +31461,7 @@ function PillToggle(props) {
31470
31461
  // src/components/ui/tag-input/index.tsx
31471
31462
  var import_react68 = require("react");
31472
31463
  var import_jsx_runtime117 = require("react/jsx-runtime");
31473
- var STYLE_ID7 = "dll-tag-input-styles";
31464
+ var STYLE_ID6 = "dll-tag-input-styles";
31474
31465
  var TAG_INPUT_CSS = `
31475
31466
  .ti-root {
31476
31467
  --ti-accent: var(--primary, #3b82f6);
@@ -31579,11 +31570,11 @@ var TAG_INPUT_CSS = `
31579
31570
  font-variant-numeric: tabular-nums;
31580
31571
  }
31581
31572
  `;
31582
- function ensureStylesInjected7() {
31573
+ function ensureStylesInjected6() {
31583
31574
  if (typeof document === "undefined") return;
31584
- if (document.getElementById(STYLE_ID7)) return;
31575
+ if (document.getElementById(STYLE_ID6)) return;
31585
31576
  const el = document.createElement("style");
31586
- el.id = STYLE_ID7;
31577
+ el.id = STYLE_ID6;
31587
31578
  el.textContent = TAG_INPUT_CSS;
31588
31579
  document.head.appendChild(el);
31589
31580
  }
@@ -31606,7 +31597,7 @@ function TagInput({
31606
31597
  onInputChange,
31607
31598
  className = ""
31608
31599
  }) {
31609
- ensureStylesInjected7();
31600
+ ensureStylesInjected6();
31610
31601
  const [internalInput, setInternalInput] = (0, import_react68.useState)("");
31611
31602
  const isControlled = inputValue !== void 0;
31612
31603
  const input = isControlled ? inputValue : internalInput;
@@ -31721,7 +31712,7 @@ function TagInput({
31721
31712
  // src/components/ui/sectioned-list-editor/index.tsx
31722
31713
  var import_react69 = require("react");
31723
31714
  var import_jsx_runtime118 = require("react/jsx-runtime");
31724
- var STYLE_ID8 = "dll-sectioned-list-editor-styles";
31715
+ var STYLE_ID7 = "dll-sectioned-list-editor-styles";
31725
31716
  var SECTIONED_LIST_CSS = `
31726
31717
  .sle-root {
31727
31718
  --sle-accent: var(--primary, #3b82f6);
@@ -31934,11 +31925,11 @@ var SECTIONED_LIST_CSS = `
31934
31925
  font-variant-numeric: tabular-nums;
31935
31926
  }
31936
31927
  `;
31937
- function ensureStylesInjected8() {
31928
+ function ensureStylesInjected7() {
31938
31929
  if (typeof document === "undefined") return;
31939
- if (document.getElementById(STYLE_ID8)) return;
31930
+ if (document.getElementById(STYLE_ID7)) return;
31940
31931
  const el = document.createElement("style");
31941
- el.id = STYLE_ID8;
31932
+ el.id = STYLE_ID7;
31942
31933
  el.textContent = SECTIONED_LIST_CSS;
31943
31934
  document.head.appendChild(el);
31944
31935
  }
@@ -31952,7 +31943,7 @@ function SectionedListEditor({
31952
31943
  renderSummary,
31953
31944
  className = ""
31954
31945
  }) {
31955
- ensureStylesInjected8();
31946
+ ensureStylesInjected7();
31956
31947
  const [activeKey, setActiveKey] = (0, import_react69.useState)(sections[0]?.key ?? "");
31957
31948
  const [input, setInput] = (0, import_react69.useState)("");
31958
31949
  const [customName, setCustomName] = (0, import_react69.useState)("");