@bison-lab/ui 4.35.0 → 4.38.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.mjs CHANGED
@@ -8952,7 +8952,7 @@ const TICK_MS = 100;
8952
8952
  function inertWhen(hidden) {
8953
8953
  return { inert: hidden };
8954
8954
  }
8955
- const ProcessStepsBlock = React.forwardRef(({ items, defaultActiveIndex = 0, activeIndex: activeIndexProp, onActiveIndexChange, autoAdvance = true, autoAdvanceDuration = 6e3, pauseOnHover = true, renderImage, ariaLabel = "Process steps", stepLabel = (item) => `Step ${item.step ?? 1}`, labels, className, ...props }, ref) => {
8955
+ const ProcessStepsStage = React.forwardRef(({ items, defaultActiveIndex = 0, activeIndex: activeIndexProp, onActiveIndexChange, autoAdvance = true, autoAdvanceDuration = 6e3, pauseOnHover = true, renderImage, ariaLabel = "Process steps", stepLabel = (item, i) => `Step ${item.step ?? i + 1}`, labels, className, ...props }, ref) => {
8956
8956
  const [activeIndexState, setActiveIndexState] = React.useState(defaultActiveIndex);
8957
8957
  const activeIndex = activeIndexProp ?? activeIndexState;
8958
8958
  const [progress, setProgress] = React.useState(0);
@@ -9025,8 +9025,8 @@ const ProcessStepsBlock = React.forwardRef(({ items, defaultActiveIndex = 0, act
9025
9025
  };
9026
9026
  const total = items.length;
9027
9027
  const defaultImage = (item) => /* @__PURE__ */ jsx("img", {
9028
- src: item.image.src,
9029
- alt: item.image.alt ?? "",
9028
+ src: item.image?.src,
9029
+ alt: item.image?.alt ?? "",
9030
9030
  className: cn("size-full object-cover", item.imageClassName)
9031
9031
  });
9032
9032
  return /* @__PURE__ */ jsxs("div", {
@@ -9048,7 +9048,7 @@ const ProcessStepsBlock = React.forwardRef(({ items, defaultActiveIndex = 0, act
9048
9048
  className: "absolute inset-0 motion-safe:transition-[clip-path] motion-safe:duration-700 motion-safe:ease-out",
9049
9049
  style: { clipPath: isActive ? "inset(0% 0% 0% 0%)" : "inset(0% 0% 0% 100%)" },
9050
9050
  ...inertWhen(!isActive),
9051
- children: (renderImage ?? defaultImage)(item, i)
9051
+ children: item.image ? (renderImage ?? defaultImage)(item, i) : null
9052
9052
  }, item.id);
9053
9053
  }),
9054
9054
  /* @__PURE__ */ jsx("div", {
@@ -9157,6 +9157,143 @@ const ProcessStepsBlock = React.forwardRef(({ items, defaultActiveIndex = 0, act
9157
9157
  })]
9158
9158
  });
9159
9159
  });
9160
+ ProcessStepsStage.displayName = "ProcessStepsStage";
9161
+ /**
9162
+ * Every step at once, down a number rail: a filled numeral per step joined
9163
+ * by a hairline, so the order reads at a glance and nothing is hidden. With
9164
+ * a heading, the intro takes a sticky column beside the list from `lg` up.
9165
+ */
9166
+ const ProcessStepsNumbered = React.forwardRef(({ items, renderImage, ariaLabel = "Process steps", eyebrow, title, description, headingLevel: Heading = "h2", className, ...props }, ref) => {
9167
+ const hasIntro = title != null || eyebrow != null || description != null;
9168
+ const list = /* @__PURE__ */ jsx("ol", {
9169
+ "aria-label": title != null ? void 0 : ariaLabel,
9170
+ children: items.map((item, index) => {
9171
+ const last = index === items.length - 1;
9172
+ return /* @__PURE__ */ jsxs("li", {
9173
+ className: "relative flex gap-5 sm:gap-6",
9174
+ children: [/* @__PURE__ */ jsxs("div", {
9175
+ className: "flex flex-col items-center",
9176
+ children: [/* @__PURE__ */ jsx("span", {
9177
+ className: "z-10 inline-flex size-11 shrink-0 items-center justify-center rounded-full bg-secondary font-heading text-lg font-bold text-secondary-foreground",
9178
+ children: item.step ?? index + 1
9179
+ }), !last && /* @__PURE__ */ jsx("span", {
9180
+ "aria-hidden": true,
9181
+ className: "w-px flex-1 bg-border"
9182
+ })]
9183
+ }), /* @__PURE__ */ jsxs("div", {
9184
+ className: last ? "pb-2" : "pb-10",
9185
+ children: [
9186
+ /* @__PURE__ */ jsx("h3", {
9187
+ className: "pt-2 font-heading text-xl font-bold",
9188
+ children: item.title
9189
+ }),
9190
+ /* @__PURE__ */ jsx("p", {
9191
+ className: "mt-2 leading-relaxed text-muted-foreground",
9192
+ children: item.description
9193
+ }),
9194
+ item.image ? /* @__PURE__ */ jsx("div", {
9195
+ className: "relative mt-5 aspect-[2/1] w-full overflow-hidden rounded-xl border border-border",
9196
+ children: /* @__PURE__ */ jsx("div", {
9197
+ className: "absolute inset-0",
9198
+ children: renderImage ? renderImage(item, index) : /* @__PURE__ */ jsx("img", {
9199
+ src: item.image.src,
9200
+ alt: item.image.alt ?? "",
9201
+ className: cn("size-full object-cover", item.imageClassName)
9202
+ })
9203
+ })
9204
+ }) : null
9205
+ ]
9206
+ })]
9207
+ }, item.id);
9208
+ })
9209
+ });
9210
+ return /* @__PURE__ */ jsx("div", {
9211
+ ref,
9212
+ "data-layout": "numbered",
9213
+ className,
9214
+ ...props,
9215
+ children: hasIntro ? /* @__PURE__ */ jsxs("div", {
9216
+ className: "grid gap-10 lg:grid-cols-[minmax(0,5fr)_minmax(0,7fr)] lg:gap-16",
9217
+ children: [/* @__PURE__ */ jsxs("div", {
9218
+ className: "lg:sticky lg:top-28 lg:self-start",
9219
+ children: [
9220
+ typeof eyebrow === "string" ? /* @__PURE__ */ jsx("p", {
9221
+ className: "text-sm font-semibold tracking-wide text-secondary uppercase",
9222
+ children: eyebrow
9223
+ }) : eyebrow,
9224
+ title != null && /* @__PURE__ */ jsx(Heading, {
9225
+ className: "mt-3 font-heading text-3xl font-bold tracking-tight text-balance sm:text-4xl",
9226
+ children: title
9227
+ }),
9228
+ description != null && /* @__PURE__ */ jsx("p", {
9229
+ className: "mt-4 text-lg text-muted-foreground",
9230
+ children: description
9231
+ })
9232
+ ]
9233
+ }), list]
9234
+ }) : list
9235
+ });
9236
+ });
9237
+ ProcessStepsNumbered.displayName = "ProcessStepsNumbered";
9238
+ /**
9239
+ * An ordered walkthrough: the stage (one step at a time over its photo,
9240
+ * advancing on its own) or the numbered list (every step down a number
9241
+ * rail). Either takes an optional section heading.
9242
+ */
9243
+ const ProcessStepsBlock = React.forwardRef(({ layout = "stage", eyebrow, title, description, headingLevel, ...props }, ref) => {
9244
+ if (layout === "numbered") {
9245
+ const { defaultActiveIndex: _defaultActiveIndex, activeIndex: _activeIndex, onActiveIndexChange: _onActiveIndexChange, autoAdvance: _autoAdvance, autoAdvanceDuration: _autoAdvanceDuration, pauseOnHover: _pauseOnHover, labels: _labels, stepLabel: _stepLabel, ...rest } = props;
9246
+ return /* @__PURE__ */ jsx(ProcessStepsNumbered, {
9247
+ ref,
9248
+ eyebrow,
9249
+ title,
9250
+ description,
9251
+ headingLevel,
9252
+ ...rest
9253
+ });
9254
+ }
9255
+ if (title == null && eyebrow == null && description == null) return /* @__PURE__ */ jsx(ProcessStepsStage, {
9256
+ ref,
9257
+ ...props
9258
+ });
9259
+ const { items, defaultActiveIndex, activeIndex, onActiveIndexChange, autoAdvance, autoAdvanceDuration, pauseOnHover, renderImage, ariaLabel, stepLabel, labels, className, ...wrapper } = props;
9260
+ const Heading = headingLevel ?? "h2";
9261
+ return /* @__PURE__ */ jsxs("div", {
9262
+ ref,
9263
+ className,
9264
+ ...wrapper,
9265
+ children: [/* @__PURE__ */ jsxs("div", {
9266
+ className: "mb-10",
9267
+ children: [
9268
+ typeof eyebrow === "string" ? /* @__PURE__ */ jsx(Badge, {
9269
+ variant: "outline",
9270
+ className: "h-7 rounded-full px-3 font-medium",
9271
+ children: eyebrow
9272
+ }) : eyebrow,
9273
+ title != null && /* @__PURE__ */ jsx(Heading, {
9274
+ className: cn("text-3xl leading-[1.05] font-light tracking-tight md:text-4xl", eyebrow != null && "mt-6"),
9275
+ children: title
9276
+ }),
9277
+ description != null && /* @__PURE__ */ jsx("p", {
9278
+ className: "mt-4 max-w-2xl text-base leading-relaxed text-muted-foreground",
9279
+ children: description
9280
+ })
9281
+ ]
9282
+ }), /* @__PURE__ */ jsx(ProcessStepsStage, {
9283
+ items,
9284
+ defaultActiveIndex,
9285
+ activeIndex,
9286
+ onActiveIndexChange,
9287
+ autoAdvance,
9288
+ autoAdvanceDuration,
9289
+ pauseOnHover,
9290
+ renderImage,
9291
+ ariaLabel,
9292
+ stepLabel,
9293
+ labels
9294
+ })]
9295
+ });
9296
+ });
9160
9297
  ProcessStepsBlock.displayName = "ProcessStepsBlock";
9161
9298
  //#endregion
9162
9299
  //#region src/blocks/marketing/stats-band-block.tsx
@@ -9182,10 +9319,10 @@ const TABLET_SPAN = {
9182
9319
  * down and leave a bordered hole in the row above; the flag is ignored there
9183
9320
  * rather than reordering the stats to fill the hole.
9184
9321
  */
9185
- function wideIndex(items) {
9322
+ function wideIndex(items, fallbackToFirst = true) {
9186
9323
  if (items.length % 2 === 0) return -1;
9187
9324
  const flagged = items.findIndex((item, i) => item.wide && i % 2 === 0);
9188
- return Math.max(flagged, 0);
9325
+ return fallbackToFirst ? Math.max(flagged, 0) : flagged;
9189
9326
  }
9190
9327
  /**
9191
9328
  * Tablets: three per row on a six-track grid, so a short last row can
@@ -9211,19 +9348,45 @@ const StatsBandBlock = React.forwardRef(({ items, columns, tone = "card", align
9211
9348
  const headingId = `${uid}-heading`;
9212
9349
  if (items.length < 2) return null;
9213
9350
  const desktopColumns = Math.min(columns ?? items.length, items.length, 6);
9214
- const wide = wideIndex(items);
9351
+ const open = tone === "open";
9352
+ const wide = wideIndex(items, !open);
9215
9353
  const tablet = tabletSpans(items.length);
9216
9354
  const centered = align === "center";
9217
9355
  const hasHeader = title != null;
9356
+ const renderValue = (item, labelId) => item.href ? renderLink({
9357
+ href: item.href,
9358
+ ...newTabAttributes(item.newTab),
9359
+ "aria-describedby": labelId,
9360
+ className: "outline-none after:absolute after:inset-0 focus-visible:after:ring-2 focus-visible:after:ring-ring focus-visible:after:ring-inset",
9361
+ children: item.value
9362
+ }) : item.value;
9218
9363
  return /* @__PURE__ */ jsx("section", {
9219
9364
  ref,
9220
9365
  "aria-labelledby": hasHeader ? headingId : void 0,
9221
9366
  "aria-label": hasHeader ? void 0 : ariaLabel,
9367
+ "data-tone": tone,
9222
9368
  className: cn("relative", className),
9223
9369
  ...props,
9224
9370
  children: /* @__PURE__ */ jsxs("div", {
9225
9371
  className: cn("mx-auto max-w-6xl px-4 sm:px-6", containerClassName),
9226
- children: [(hasHeader || eyebrow != null || description != null) && /* @__PURE__ */ jsxs("div", {
9372
+ children: [(hasHeader || eyebrow != null || description != null) && (open ? /* @__PURE__ */ jsxs("div", {
9373
+ className: cn("mb-10 max-w-2xl", centered && "mx-auto text-center"),
9374
+ children: [
9375
+ typeof eyebrow === "string" ? /* @__PURE__ */ jsx("p", {
9376
+ className: "text-sm font-semibold tracking-wide text-secondary uppercase",
9377
+ children: eyebrow
9378
+ }) : eyebrow,
9379
+ hasHeader && /* @__PURE__ */ jsx(Heading, {
9380
+ id: headingId,
9381
+ className: "mt-3 font-heading text-3xl font-bold tracking-tight text-balance sm:text-4xl",
9382
+ children: title
9383
+ }),
9384
+ description != null && /* @__PURE__ */ jsx("p", {
9385
+ className: "mt-4 text-lg text-muted-foreground",
9386
+ children: description
9387
+ })
9388
+ ]
9389
+ }) : /* @__PURE__ */ jsxs("div", {
9227
9390
  className: cn("mb-10", centered && "text-center"),
9228
9391
  children: [
9229
9392
  typeof eyebrow === "string" ? /* @__PURE__ */ jsx(Badge, {
@@ -9241,7 +9404,30 @@ const StatsBandBlock = React.forwardRef(({ items, columns, tone = "card", align
9241
9404
  children: description
9242
9405
  })
9243
9406
  ]
9244
- }), /* @__PURE__ */ jsx("div", {
9407
+ })), open ? /* @__PURE__ */ jsx("dl", {
9408
+ className: cn("grid grid-cols-2 gap-x-6 gap-y-8 sm:gap-x-8 sm:gap-y-10", DESKTOP_COLUMNS[desktopColumns]),
9409
+ children: items.map((item, i) => {
9410
+ const labelId = `${uid}-label-${i}`;
9411
+ return /* @__PURE__ */ jsx("div", {
9412
+ className: cn("relative flex flex-col", centered && "items-center text-center", i === wide && "col-span-2 lg:col-span-1"),
9413
+ children: renderItem ? renderItem(item, i) : /* @__PURE__ */ jsxs(Fragment, { children: [
9414
+ /* @__PURE__ */ jsx("dt", {
9415
+ id: labelId,
9416
+ className: "order-2 mt-2 font-heading text-base font-semibold sm:mt-3 sm:text-lg",
9417
+ children: item.label
9418
+ }),
9419
+ /* @__PURE__ */ jsx("dd", {
9420
+ className: "order-1 font-heading text-4xl font-bold tracking-tight text-primary sm:text-6xl",
9421
+ children: renderValue(item, labelId)
9422
+ }),
9423
+ item.detail != null && item.detail !== "" && /* @__PURE__ */ jsx("dd", {
9424
+ className: "order-3 mt-1 text-sm text-muted-foreground",
9425
+ children: item.detail
9426
+ })
9427
+ ] })
9428
+ }, item.id);
9429
+ })
9430
+ }) : /* @__PURE__ */ jsx("div", {
9245
9431
  className: cn("overflow-hidden", tone === "card" && "rounded-xl border border-border bg-card shadow-md"),
9246
9432
  children: /* @__PURE__ */ jsx("dl", {
9247
9433
  className: cn("-mr-px -mb-px grid grid-cols-2 md:grid-cols-6", DESKTOP_COLUMNS[desktopColumns]),
@@ -9249,21 +9435,22 @@ const StatsBandBlock = React.forwardRef(({ items, columns, tone = "card", align
9249
9435
  const labelId = `${uid}-label-${i}`;
9250
9436
  const linked = Boolean(item.href);
9251
9437
  return /* @__PURE__ */ jsx("div", {
9252
- className: cn("relative flex flex-col-reverse justify-end gap-2 border-r border-b border-border px-6 py-8 last:border-r-0 sm:px-8", centered && "items-center text-center", linked && "transition-colors hover:bg-muted/40", i === wide && "col-span-2", TABLET_SPAN[tablet[i]], "lg:col-span-1"),
9253
- children: renderItem ? renderItem(item, i) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("dt", {
9254
- id: labelId,
9255
- className: "max-w-[24ch] text-sm leading-relaxed text-muted-foreground",
9256
- children: item.label
9257
- }), /* @__PURE__ */ jsx("dd", {
9258
- className: "font-heading text-3xl font-bold tracking-tight text-primary sm:text-4xl",
9259
- children: linked ? renderLink({
9260
- href: item.href,
9261
- ...newTabAttributes(item.newTab),
9262
- "aria-describedby": labelId,
9263
- className: "outline-none after:absolute after:inset-0 focus-visible:after:ring-2 focus-visible:after:ring-ring focus-visible:after:ring-inset",
9264
- children: item.value
9265
- }) : item.value
9266
- })] })
9438
+ className: cn("relative flex gap-2 border-r border-b border-border px-6 py-8 last:border-r-0 sm:px-8", renderItem ? "flex-col-reverse justify-end" : "flex-col", centered && "items-center text-center", linked && "transition-colors hover:bg-muted/40", i === wide && "col-span-2", TABLET_SPAN[tablet[i]], "lg:col-span-1"),
9439
+ children: renderItem ? renderItem(item, i) : /* @__PURE__ */ jsxs(Fragment, { children: [
9440
+ /* @__PURE__ */ jsx("dt", {
9441
+ id: labelId,
9442
+ className: "order-2 max-w-[24ch] text-sm leading-relaxed text-muted-foreground",
9443
+ children: item.label
9444
+ }),
9445
+ /* @__PURE__ */ jsx("dd", {
9446
+ className: "order-1 font-heading text-3xl font-bold tracking-tight text-primary sm:text-4xl",
9447
+ children: renderValue(item, labelId)
9448
+ }),
9449
+ item.detail != null && item.detail !== "" && /* @__PURE__ */ jsx("dd", {
9450
+ className: "order-3 max-w-[24ch] text-xs leading-relaxed text-muted-foreground",
9451
+ children: item.detail
9452
+ })
9453
+ ] })
9267
9454
  }, item.id);
9268
9455
  })
9269
9456
  })
@@ -11142,60 +11329,150 @@ const CTA_BAND_MAX_ACTIONS = 2;
11142
11329
  */
11143
11330
  const SCRIM = "bg-[rgb(0_0_0/0.6)]";
11144
11331
  /**
11145
- * The closing band at the end of a page: a heading, an optional line and up
11146
- * to two buttons, with an optional background image.
11332
+ * The gradient tone's surface: the darkest secondary step with a glow of a
11333
+ * lighter one from the top-left corner.
11147
11334
  */
11148
- const CtaBandBlock = React.forwardRef(function CtaBandBlock({ heading, description, actions, media, align = "center", renderLink = renderPlainLink, containerClassName, className, ...rest }, ref) {
11335
+ const GRADIENT = "bg-[radial-gradient(120%_120%_at_0%_0%,hsl(var(--secondary-800))_0%,hsl(var(--secondary-950))_55%)]";
11336
+ /** The panel's own padding, inside the card. */
11337
+ const PANEL_PADDING = "px-6 py-14 sm:px-10 lg:px-14 lg:py-20";
11338
+ /**
11339
+ * The closing band at the end of a page: an optional kicker, a heading, an
11340
+ * optional line and up to two buttons, with an optional image. Edge to edge
11341
+ * or as a rounded panel, on the page's surface or a dark gradient.
11342
+ */
11343
+ const CtaBandBlock = React.forwardRef(function CtaBandBlock({ eyebrow, heading, description, actions, media, align = "center", layout = "band", tone = "plain", renderLink = renderPlainLink, containerClassName, className, ...rest }, ref) {
11149
11344
  const centered = align === "center";
11345
+ const panel = layout === "panel";
11346
+ const gradient = tone === "gradient";
11150
11347
  const shown = (actions ?? []).slice(0, 2);
11151
- return /* @__PURE__ */ jsxs("section", {
11348
+ const hasEyebrow = eyebrow != null && eyebrow !== "";
11349
+ const buttons = shown.length > 0 ? /* @__PURE__ */ jsx("div", {
11350
+ className: cn("mt-8 flex flex-wrap items-center gap-3", centered && "justify-center"),
11351
+ children: shown.map((action, i) => {
11352
+ const variant = i === 0 ? "default" : "outline";
11353
+ if (!action.href) return /* @__PURE__ */ jsx("span", {
11354
+ className: "px-2 text-base font-medium",
11355
+ children: action.label
11356
+ }, i);
11357
+ return /* @__PURE__ */ jsx(React.Fragment, { children: renderLink({
11358
+ href: action.href,
11359
+ ...newTabAttributes(action.newTab),
11360
+ "data-variant": variant,
11361
+ className: cn(buttonVariants({
11362
+ variant,
11363
+ size: action.size ?? "lg"
11364
+ }), "rounded-full"),
11365
+ children: action.label
11366
+ }) }, i);
11367
+ })
11368
+ }) : null;
11369
+ if (gradient) {
11370
+ const photo = media ? /* @__PURE__ */ jsx("div", {
11371
+ className: "pointer-events-none absolute inset-y-0 right-0 hidden [mask-image:linear-gradient(to_right,transparent,black_45%)] lg:block lg:w-[72%]",
11372
+ "data-cta-band-media": "",
11373
+ children: media
11374
+ }) : null;
11375
+ const copy = /* @__PURE__ */ jsxs("div", {
11376
+ className: cn(centered ? "mx-auto max-w-3xl text-center" : "lg:w-1/2 lg:pr-8", panel && PANEL_PADDING),
11377
+ children: [
11378
+ hasEyebrow ? /* @__PURE__ */ jsx("p", {
11379
+ className: "font-medium text-secondary-300",
11380
+ children: eyebrow
11381
+ }) : null,
11382
+ /* @__PURE__ */ jsx("h2", {
11383
+ className: cn("font-heading text-3xl font-bold tracking-tight text-balance text-secondary-50 sm:text-4xl lg:text-5xl", hasEyebrow && "mt-4"),
11384
+ children: heading
11385
+ }),
11386
+ description ? /* @__PURE__ */ jsx("p", {
11387
+ className: cn("mt-5 max-w-xl text-lg text-secondary-100/80", centered && "mx-auto"),
11388
+ children: description
11389
+ }) : null,
11390
+ buttons
11391
+ ]
11392
+ });
11393
+ if (panel) return /* @__PURE__ */ jsx("section", {
11394
+ ref,
11395
+ "data-align": align,
11396
+ "data-layout": layout,
11397
+ "data-tone": tone,
11398
+ className: cn("py-16 lg:py-24", className),
11399
+ ...rest,
11400
+ children: /* @__PURE__ */ jsx("div", {
11401
+ className: cn(DEFAULT_CONTAINER, containerClassName),
11402
+ children: /* @__PURE__ */ jsxs("div", {
11403
+ className: cn("relative overflow-hidden rounded-3xl", GRADIENT),
11404
+ "data-cta-band-panel": "",
11405
+ children: [photo, /* @__PURE__ */ jsx("div", {
11406
+ className: "relative",
11407
+ children: copy
11408
+ })]
11409
+ })
11410
+ })
11411
+ });
11412
+ return /* @__PURE__ */ jsxs("section", {
11413
+ ref,
11414
+ "data-align": align,
11415
+ "data-layout": layout,
11416
+ "data-tone": tone,
11417
+ className: cn("relative overflow-hidden py-16 lg:py-24", GRADIENT, className),
11418
+ ...rest,
11419
+ children: [photo, /* @__PURE__ */ jsx("div", {
11420
+ className: cn(DEFAULT_CONTAINER, containerClassName, "relative"),
11421
+ children: copy
11422
+ })]
11423
+ });
11424
+ }
11425
+ const backdrop = media ? /* @__PURE__ */ jsxs("div", {
11426
+ className: "absolute inset-0 -z-10",
11427
+ "data-cta-band-media": "",
11428
+ children: [media, /* @__PURE__ */ jsx("div", {
11429
+ "aria-hidden": true,
11430
+ className: cn("absolute inset-0", SCRIM)
11431
+ })]
11432
+ }) : null;
11433
+ const copy = /* @__PURE__ */ jsxs("div", {
11434
+ "data-theme": media ? "dark" : void 0,
11435
+ className: cn("max-w-3xl", centered && "mx-auto text-center", media && "text-foreground", panel && PANEL_PADDING),
11436
+ children: [
11437
+ hasEyebrow ? /* @__PURE__ */ jsx("p", {
11438
+ className: cn("text-sm font-semibold tracking-wide uppercase", media ? "text-foreground" : "text-muted-foreground"),
11439
+ children: eyebrow
11440
+ }) : null,
11441
+ /* @__PURE__ */ jsx("h2", {
11442
+ className: cn("font-heading text-3xl font-bold tracking-tight text-balance sm:text-4xl", hasEyebrow && "mt-3"),
11443
+ children: heading
11444
+ }),
11445
+ description ? /* @__PURE__ */ jsx("p", {
11446
+ className: cn("mt-4 max-w-2xl text-lg leading-relaxed", centered && "mx-auto", media ? "text-foreground" : "text-muted-foreground"),
11447
+ children: description
11448
+ }) : null,
11449
+ buttons
11450
+ ]
11451
+ });
11452
+ if (panel) return /* @__PURE__ */ jsx("section", {
11152
11453
  ref,
11153
11454
  "data-align": align,
11154
- className: cn("relative isolate overflow-hidden py-16 lg:py-24", className),
11455
+ "data-layout": layout,
11456
+ "data-tone": tone,
11457
+ className: cn("py-16 lg:py-24", className),
11155
11458
  ...rest,
11156
- children: [media ? /* @__PURE__ */ jsxs("div", {
11157
- className: "absolute inset-0 -z-10",
11158
- "data-cta-band-media": "",
11159
- children: [media, /* @__PURE__ */ jsx("div", {
11160
- "aria-hidden": true,
11161
- className: cn("absolute inset-0", SCRIM)
11162
- })]
11163
- }) : null, /* @__PURE__ */ jsx("div", {
11459
+ children: /* @__PURE__ */ jsx("div", {
11164
11460
  className: cn(DEFAULT_CONTAINER, containerClassName),
11165
11461
  children: /* @__PURE__ */ jsxs("div", {
11166
- "data-theme": media ? "dark" : void 0,
11167
- className: cn("max-w-3xl", centered && "mx-auto text-center", media && "text-foreground"),
11168
- children: [
11169
- /* @__PURE__ */ jsx("h2", {
11170
- className: "font-heading text-3xl font-bold tracking-tight text-balance sm:text-4xl",
11171
- children: heading
11172
- }),
11173
- description ? /* @__PURE__ */ jsx("p", {
11174
- className: cn("mt-4 max-w-2xl text-lg leading-relaxed", centered && "mx-auto", media ? "text-foreground" : "text-muted-foreground"),
11175
- children: description
11176
- }) : null,
11177
- shown.length > 0 ? /* @__PURE__ */ jsx("div", {
11178
- className: cn("mt-8 flex flex-wrap items-center gap-3", centered && "justify-center"),
11179
- children: shown.map((action, i) => {
11180
- const variant = i === 0 ? "default" : "outline";
11181
- if (!action.href) return /* @__PURE__ */ jsx("span", {
11182
- className: "px-2 text-base font-medium",
11183
- children: action.label
11184
- }, i);
11185
- return /* @__PURE__ */ jsx(React.Fragment, { children: renderLink({
11186
- href: action.href,
11187
- ...newTabAttributes(action.newTab),
11188
- "data-variant": variant,
11189
- className: cn(buttonVariants({
11190
- variant,
11191
- size: "lg"
11192
- }), "rounded-full"),
11193
- children: action.label
11194
- }) }, i);
11195
- })
11196
- }) : null
11197
- ]
11462
+ className: "relative isolate overflow-hidden rounded-3xl border border-border bg-card",
11463
+ "data-cta-band-panel": "",
11464
+ children: [backdrop, copy]
11198
11465
  })
11466
+ })
11467
+ });
11468
+ return /* @__PURE__ */ jsxs("section", {
11469
+ ref,
11470
+ "data-align": align,
11471
+ className: cn("relative isolate overflow-hidden py-16 lg:py-24", className),
11472
+ ...rest,
11473
+ children: [backdrop, /* @__PURE__ */ jsx("div", {
11474
+ className: cn(DEFAULT_CONTAINER, containerClassName),
11475
+ children: copy
11199
11476
  })]
11200
11477
  });
11201
11478
  });