@digilogiclabs/saas-factory-ui 1.26.0 → 1.26.1

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
@@ -34375,9 +34375,21 @@ var TRANSITIONS = {
34375
34375
  }
34376
34376
  };
34377
34377
  var STAT_SIZES = {
34378
- sm: { value: "clamp(18px,2.5vw,26px)", label: "clamp(9px,1vw,11px)", divider: 24 },
34379
- md: { value: "clamp(22px,3.5vw,36px)", label: "clamp(10px,1.2vw,13px)", divider: 32 },
34380
- lg: { value: "clamp(28px,4.5vw,48px)", label: "clamp(11px,1.3vw,14px)", divider: 40 }
34378
+ sm: {
34379
+ value: "clamp(18px,2.5vw,26px)",
34380
+ label: "clamp(9px,1vw,11px)",
34381
+ divider: 24
34382
+ },
34383
+ md: {
34384
+ value: "clamp(22px,3.5vw,36px)",
34385
+ label: "clamp(10px,1.2vw,13px)",
34386
+ divider: 32
34387
+ },
34388
+ lg: {
34389
+ value: "clamp(28px,4.5vw,48px)",
34390
+ label: "clamp(11px,1.3vw,14px)",
34391
+ divider: 40
34392
+ }
34381
34393
  };
34382
34394
  var STAT_BG = {
34383
34395
  glass: {
@@ -34754,9 +34766,7 @@ function DynamicHeroBanner({
34754
34766
  [current, slideCount, goTo]
34755
34767
  );
34756
34768
  const prev = (0, import_react72.useCallback)(
34757
- () => goTo(
34758
- (current - 1 + Math.max(slideCount, 1)) % Math.max(slideCount, 1)
34759
- ),
34769
+ () => goTo((current - 1 + Math.max(slideCount, 1)) % Math.max(slideCount, 1)),
34760
34770
  [current, slideCount, goTo]
34761
34771
  );
34762
34772
  (0, import_react72.useEffect)(() => {
@@ -34841,12 +34851,26 @@ function DynamicHeroBanner({
34841
34851
  overflow: "hidden",
34842
34852
  background: backgroundColor,
34843
34853
  fontFamily: bodyFontFamily,
34854
+ // Expose accent/glow as CSS custom properties so hover rules in the
34855
+ // injected `<style>` block can reference them without prop drilling.
34856
+ ["--dll-hero-accent"]: resolvedTheme.accent,
34857
+ ["--dll-hero-glow"]: resolvedTheme.glow,
34844
34858
  ...style
34845
34859
  },
34846
34860
  children: [
34847
34861
  /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("style", { children: `${loadGoogleFonts ? `@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');` : ""}
34848
34862
  @keyframes dllHeroProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
34849
- @media(prefers-reduced-motion:reduce){.dll-hero-banner *{animation-duration:.01ms!important;transition-duration:.01ms!important}}` }),
34863
+ .dll-hero-cta{transition:transform .25s cubic-bezier(.2,.8,.3,1),background-color .25s,box-shadow .25s,color .25s,border-color .25s,filter .25s}
34864
+ .dll-hero-cta:hover{transform:translateY(-2px)}
34865
+ .dll-hero-cta:focus-visible{outline:2px solid var(--dll-hero-accent,#fff);outline-offset:3px}
34866
+ .dll-hero-cta--primary:hover{filter:brightness(1.08);box-shadow:0 10px 32px color-mix(in srgb, var(--dll-hero-glow, #3b82f6) 40%, transparent)}
34867
+ .dll-hero-cta--secondary:hover{background:rgba(255,255,255,0.12)!important;border-color:rgba(255,255,255,0.38)!important;color:#fff!important}
34868
+ .dll-hero-cta--ghost:hover{color:var(--dll-hero-accent,#fff)!important}
34869
+ .dll-hero-dot{transition:all .35s}
34870
+ .dll-hero-dot:hover{background:rgba(255,255,255,0.55)!important;transform:scaleY(1.15)}
34871
+ .dll-hero-arrow{transition:opacity .25s,background-color .25s,transform .25s}
34872
+ .dll-hero-arrow:hover{background:rgba(255,255,255,0.16)!important;transform:translateY(-50%) scale(1.06)}
34873
+ @media(prefers-reduced-motion:reduce){.dll-hero-cta:hover,.dll-hero-dot:hover,.dll-hero-arrow:hover{transform:none!important}}` }),
34850
34874
  slides.map((slide, i) => {
34851
34875
  const isCurrent = i === current;
34852
34876
  const filter = IMAGE_FILTERS[slide.imageFilter ?? imageFilter] ?? IMAGE_FILTERS.cinematic;
@@ -35113,6 +35137,7 @@ function DynamicHeroBanner({
35113
35137
  type: "button",
35114
35138
  onClick: prev,
35115
35139
  "aria-label": "Previous slide",
35140
+ className: "dll-hero-arrow",
35116
35141
  style: {
35117
35142
  position: "absolute",
35118
35143
  top: "50%",
@@ -35144,6 +35169,7 @@ function DynamicHeroBanner({
35144
35169
  type: "button",
35145
35170
  onClick: next,
35146
35171
  "aria-label": "Next slide",
35172
+ className: "dll-hero-arrow",
35147
35173
  style: {
35148
35174
  position: "absolute",
35149
35175
  top: "50%",
@@ -35192,6 +35218,7 @@ function DynamicHeroBanner({
35192
35218
  "aria-selected": i === current,
35193
35219
  "aria-label": `Go to slide ${i + 1}`,
35194
35220
  onClick: () => goTo(i),
35221
+ className: "dll-hero-dot",
35195
35222
  style: {
35196
35223
  width: i === current ? 28 : 10,
35197
35224
  height: 10,
@@ -35199,7 +35226,6 @@ function DynamicHeroBanner({
35199
35226
  border: "none",
35200
35227
  background: i === current ? resolvedTheme.accent : "rgba(255,255,255,0.25)",
35201
35228
  cursor: "pointer",
35202
- transition: "all 0.35s",
35203
35229
  padding: 0
35204
35230
  }
35205
35231
  },
@@ -35250,6 +35276,7 @@ function CtaButton({
35250
35276
  const variant = cta.variant ?? (index === 0 ? "primary" : "secondary");
35251
35277
  const isPrimary = variant === "primary";
35252
35278
  const isGhost = variant === "ghost";
35279
+ const ctaClass = `dll-hero-cta dll-hero-cta--${variant}`;
35253
35280
  const buttonStyle = {
35254
35281
  fontFamily: bodyFont,
35255
35282
  fontSize: "clamp(13px,1.2vw,15px)",
@@ -35263,7 +35290,6 @@ function CtaButton({
35263
35290
  textDecoration: isGhost ? "underline" : "none",
35264
35291
  textUnderlineOffset: isGhost ? 4 : void 0,
35265
35292
  letterSpacing: "-0.01em",
35266
- transition: "all 0.25s",
35267
35293
  boxShadow: isPrimary ? `0 4px 20px ${glow}33` : "none",
35268
35294
  display: "inline-flex",
35269
35295
  alignItems: "center",
@@ -35288,6 +35314,7 @@ function CtaButton({
35288
35314
  href: cta.href,
35289
35315
  onClick: cta.onClick,
35290
35316
  "aria-label": cta.ariaLabel,
35317
+ className: ctaClass,
35291
35318
  style: buttonStyle,
35292
35319
  children: content
35293
35320
  }
@@ -35302,6 +35329,7 @@ function CtaButton({
35302
35329
  target: cta.target,
35303
35330
  rel: cta.rel,
35304
35331
  "aria-label": cta.ariaLabel,
35332
+ className: ctaClass,
35305
35333
  style: buttonStyle,
35306
35334
  children: content
35307
35335
  }
@@ -35313,6 +35341,7 @@ function CtaButton({
35313
35341
  type: "button",
35314
35342
  onClick: cta.onClick,
35315
35343
  "aria-label": cta.ariaLabel,
35344
+ className: ctaClass,
35316
35345
  style: buttonStyle,
35317
35346
  children: content
35318
35347
  }