@designa8/vibedesign-openai-internal-v1-2-176b 0.0.6 → 0.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @designa8/vibedesign-openai-internal-v1-2-176b
2
2
 
3
- Complete design system generated by Atoms Design, version **0.0.6**.
3
+ Complete design system generated by Atoms Design, version **0.0.7**.
4
4
  Tokens, atoms, molecules, organisms, and templates — import from the package root;
5
5
  never hardcode visual values in consumer code.
6
6
 
package/dist/index.cjs CHANGED
@@ -582,12 +582,62 @@ var Button = React5.forwardRef(
582
582
  className,
583
583
  children,
584
584
  onClick,
585
+ href,
585
586
  ...props
586
587
  }, ref) => {
587
588
  const isDisabled = Boolean(disabled);
588
589
  const isBare = variant === "bare";
589
590
  const row = isRow(variant);
590
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
591
+ const isLink = typeof href === "string";
592
+ const classes = cn3(
593
+ isBare ? bareBase : row ? rowBase : base,
594
+ variants[variant],
595
+ isBare ? bareSizes[size] : row ? rowSizes[variant][size] : iconOnly ? squareSizes[size] : sizes[size],
596
+ shape === "pill" ? "rounded-full" : radii[size],
597
+ fullWidth && "w-full",
598
+ loading && "cursor-progress",
599
+ className
600
+ );
601
+ const handleClick = (event) => {
602
+ if (loading) {
603
+ event.preventDefault();
604
+ return;
605
+ }
606
+ onClick?.(event);
607
+ };
608
+ const content = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
609
+ !row || loading ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
610
+ "span",
611
+ {
612
+ "aria-hidden": "true",
613
+ className: cn3(
614
+ "inline-flex items-center overflow-hidden transition-all duration-200 ease-out",
615
+ loading ? "w-4 opacity-100" : "w-0 -mr-xs opacity-0"
616
+ ),
617
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "loader-circle", size: iconSize[size], className: "animate-spin" })
618
+ }
619
+ ) : null,
620
+ leadingIcon ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "aria-hidden": "true", className: "inline-flex items-center", children: leadingIcon }) : null,
621
+ children != null && !(iconOnly && loading) ? isBare ? children : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: row ? "min-w-0 flex-1 truncate" : "inline-flex items-center", children }) : null,
622
+ trailingIcon ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "aria-hidden": "true", className: "inline-flex items-center", children: trailingIcon }) : null
623
+ ] });
624
+ if (isLink) {
625
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
626
+ "a",
627
+ {
628
+ ref,
629
+ href,
630
+ "aria-disabled": isDisabled || void 0,
631
+ "aria-busy": loading || void 0,
632
+ "data-loading": loading ? "" : void 0,
633
+ onClick: handleClick,
634
+ className: cn3(classes, isDisabled && "pointer-events-none opacity-50"),
635
+ ...props,
636
+ children: content
637
+ }
638
+ );
639
+ }
640
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
591
641
  "button",
592
642
  {
593
643
  ref,
@@ -595,39 +645,10 @@ var Button = React5.forwardRef(
595
645
  disabled: isDisabled,
596
646
  "aria-busy": loading || void 0,
597
647
  "data-loading": loading ? "" : void 0,
598
- onClick: (e) => {
599
- if (loading) {
600
- e.preventDefault();
601
- return;
602
- }
603
- onClick?.(e);
604
- },
605
- className: cn3(
606
- isBare ? bareBase : row ? rowBase : base,
607
- variants[variant],
608
- isBare ? bareSizes[size] : row ? rowSizes[variant][size] : iconOnly ? squareSizes[size] : sizes[size],
609
- shape === "pill" ? "rounded-full" : radii[size],
610
- fullWidth && "w-full",
611
- loading && "cursor-progress",
612
- className
613
- ),
648
+ onClick: handleClick,
649
+ className: classes,
614
650
  ...props,
615
- children: [
616
- !row || loading ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
617
- "span",
618
- {
619
- "aria-hidden": "true",
620
- className: cn3(
621
- "inline-flex items-center overflow-hidden transition-all duration-200 ease-out",
622
- loading ? "w-4 opacity-100" : "w-0 -mr-xs opacity-0"
623
- ),
624
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "loader-circle", size: iconSize[size], className: "animate-spin" })
625
- }
626
- ) : null,
627
- leadingIcon ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "aria-hidden": "true", className: "inline-flex items-center", children: leadingIcon }) : null,
628
- children != null && !(iconOnly && loading) ? isBare ? children : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: row ? "min-w-0 flex-1 truncate" : "inline-flex items-center", children }) : null,
629
- trailingIcon ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "aria-hidden": "true", className: "inline-flex items-center", children: trailingIcon }) : null
630
- ]
651
+ children: content
631
652
  }
632
653
  );
633
654
  }
@@ -5450,11 +5471,19 @@ var HeroSectionDesktop = React50.forwardRef(
5450
5471
  media = null,
5451
5472
  onPlay,
5452
5473
  proof = null,
5474
+ visual,
5475
+ eyebrow,
5476
+ surface = "canvas",
5477
+ trailing,
5453
5478
  className,
5454
5479
  ...props
5455
5480
  }, ref) => {
5456
5481
  const titleId = React50.useId();
5457
- const showMedia = layout === "media" && media;
5482
+ const poster = layout === "media" && media ? media : null;
5483
+ const iconFor = (action, fallback) => {
5484
+ const name = action.icon === void 0 ? fallback : action.icon;
5485
+ return name ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { name, size: 14, className: "fill-current" }) : void 0;
5486
+ };
5458
5487
  const actions = primaryAction || secondaryAction ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-wrap items-center gap-base", children: [
5459
5488
  primaryAction ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5460
5489
  Button,
@@ -5463,7 +5492,8 @@ var HeroSectionDesktop = React50.forwardRef(
5463
5492
  shape: "pill",
5464
5493
  size: "lg",
5465
5494
  className: "uppercase tracking-overline",
5466
- leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { name: "play", size: 14, className: "fill-current" }),
5495
+ href: primaryAction.href,
5496
+ leadingIcon: iconFor(primaryAction, "play"),
5467
5497
  onClick: primaryAction.onClick,
5468
5498
  children: primaryAction.label
5469
5499
  }
@@ -5480,27 +5510,58 @@ var HeroSectionDesktop = React50.forwardRef(
5480
5510
  )
5481
5511
  ] }) : null
5482
5512
  ] }) : null;
5513
+ const posterNode = poster ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "relative w-full", children: [
5514
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Image, { src: poster.src, alt: poster.alt, ratio: "landscape", radius: "lg" }),
5515
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5516
+ Button,
5517
+ {
5518
+ variant: "secondary",
5519
+ shape: "pill",
5520
+ size: "lg",
5521
+ iconOnly: true,
5522
+ "aria-label": "Play video",
5523
+ className: "shadow-lg",
5524
+ onClick: onPlay ?? primaryAction?.onClick,
5525
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { name: "play", size: 18, className: "fill-current" })
5526
+ }
5527
+ ) })
5528
+ ] }) : null;
5529
+ const rightColumn = visual ?? posterNode;
5530
+ const isTwoColumn = Boolean(rightColumn);
5483
5531
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5484
5532
  "section",
5485
5533
  {
5486
5534
  ref,
5487
5535
  "aria-labelledby": titleId,
5488
- className: cn45("w-full bg-canvas px-lg py-xxl text-ink", className),
5536
+ className: cn45(
5537
+ "w-full px-lg py-xxl text-ink",
5538
+ surface === "transparent" ? "bg-transparent" : "bg-canvas",
5539
+ className
5540
+ ),
5489
5541
  ...props,
5490
5542
  children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5491
5543
  "div",
5492
5544
  {
5493
5545
  className: cn45(
5494
5546
  "mx-auto grid w-full max-w-xl items-center gap-xl",
5495
- showMedia ? "grid-cols-2" : "grid-cols-1"
5547
+ isTwoColumn ? "grid-cols-2" : "grid-cols-1"
5496
5548
  ),
5497
5549
  children: [
5498
5550
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex min-w-0 flex-col gap-lg", children: [
5499
5551
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-base", children: [
5500
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h1", { id: titleId, className: "max-w-2xl text-display-lg text-ink [font-weight:var(--font-weight-body-lg,400)]", children: headline }),
5552
+ eyebrow ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center gap-xs text-caption text-muted", children: eyebrow }) : null,
5553
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5554
+ "h1",
5555
+ {
5556
+ id: titleId,
5557
+ className: "max-w-2xl text-display-lg text-ink [font-weight:var(--font-weight-body-lg,400)]",
5558
+ children: headline
5559
+ }
5560
+ ),
5501
5561
  description ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "max-w-xl text-body-lg text-muted", children: description }) : null
5502
5562
  ] }),
5503
5563
  actions,
5564
+ trailing ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center gap-xs text-body-sm text-muted", children: trailing }) : null,
5504
5565
  layout === "proof" && proof ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-lg", children: [
5505
5566
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AvatarGroup, { items: proof.people, size: "lg" }),
5506
5567
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { "aria-hidden": "true", className: "h-10 w-px bg-hairline" }),
@@ -5510,22 +5571,7 @@ var HeroSectionDesktop = React50.forwardRef(
5510
5571
  ] })
5511
5572
  ] }) : null
5512
5573
  ] }),
5513
- showMedia ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "relative w-full", children: [
5514
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Image, { src: media.src, alt: media.alt, ratio: "landscape", radius: "lg" }),
5515
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5516
- Button,
5517
- {
5518
- variant: "secondary",
5519
- shape: "pill",
5520
- size: "lg",
5521
- iconOnly: true,
5522
- "aria-label": "Play video",
5523
- className: "shadow-lg",
5524
- onClick: onPlay ?? primaryAction?.onClick,
5525
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { name: "play", size: 18, className: "fill-current" })
5526
- }
5527
- ) })
5528
- ] }) : null
5574
+ rightColumn ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "relative w-full", children: rightColumn }) : null
5529
5575
  ]
5530
5576
  }
5531
5577
  )
@@ -5548,6 +5594,10 @@ var HeroSectionMobile = React51.forwardRef(
5548
5594
  primaryAction,
5549
5595
  secondaryAction,
5550
5596
  proof = null,
5597
+ visual,
5598
+ eyebrow,
5599
+ surface = "canvas",
5600
+ trailing,
5551
5601
  className,
5552
5602
  ...props
5553
5603
  }, ref) => {
@@ -5557,56 +5607,83 @@ var HeroSectionMobile = React51.forwardRef(
5557
5607
  const body = description ?? (isProof ? null : "Build with the latest models, tools, and APIs from our platform.");
5558
5608
  const primary = primaryAction === void 0 ? { label: isProof ? "Watch video" : "Sign up" } : primaryAction;
5559
5609
  const secondary = secondaryAction === void 0 ? isProof ? { label: "View careers", href: "#careers" } : { label: "Log in" } : secondaryAction;
5560
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("section", { ref, "aria-labelledby": titleId, className: cn46("w-full text-ink", className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5561
- "div",
5610
+ const iconFor = (action, fallback) => {
5611
+ const name = action.icon === void 0 ? fallback : action.icon;
5612
+ return name ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name, size: 14, className: "fill-current" }) : void 0;
5613
+ };
5614
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5615
+ "section",
5562
5616
  {
5563
- className: cn46(
5564
- "flex w-full flex-col gap-base rounded-xl border p-lg",
5565
- layout === "media" ? "border-hairline-soft bg-surface-soft" : "border-hairline bg-canvas"
5566
- ),
5567
- children: [
5568
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-sm", children: [
5569
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("h1", { id: titleId, className: "text-heading-lg text-ink [font-weight:var(--font-weight-body-lg,400)]", children: title }),
5570
- body ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-body-md text-muted", children: body }) : null
5571
- ] }),
5572
- isProof ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col items-start gap-xs", children: [
5573
- primary ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5574
- Button,
5575
- {
5576
- variant: "primary",
5577
- shape: "pill",
5578
- size: "lg",
5579
- className: "uppercase tracking-overline",
5580
- leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name: "play", size: 14, className: "fill-current" }),
5581
- onClick: primary.onClick,
5582
- children: primary.label
5583
- }
5584
- ) : null,
5585
- secondary ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("a", { href: secondary.href ?? "#", onClick: secondary.onClick, className: textLink, children: [
5586
- secondary.label,
5587
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5588
- Icon,
5589
- {
5590
- name: "chevron-right",
5591
- size: 16,
5592
- className: "transition-transform duration-150 ease-out group-hover:translate-x-xxs"
5593
- }
5594
- )
5595
- ] }) : null
5596
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
5597
- primary ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Button, { variant: "primary", size: "lg", onClick: primary.onClick, children: primary.label }) : null,
5598
- secondary ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Button, { variant: "secondary", size: "lg", onClick: secondary.onClick, children: secondary.label }) : null
5599
- ] }),
5600
- isProof && proof ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-base", children: [
5601
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AvatarGroup, { items: proof.people, size: "md" }),
5602
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
5603
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-heading-sm text-ink", children: proof.stat }),
5604
- proof.caption ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-caption text-muted", children: proof.caption }) : null
5605
- ] })
5606
- ] }) : null
5607
- ]
5617
+ ref,
5618
+ "aria-labelledby": titleId,
5619
+ className: cn46("w-full text-ink", className),
5620
+ ...props,
5621
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5622
+ "div",
5623
+ {
5624
+ className: cn46(
5625
+ "flex w-full flex-col gap-base rounded-xl border p-lg",
5626
+ surface === "transparent" ? "border-transparent bg-transparent" : layout === "media" ? "border-hairline-soft bg-surface-soft" : "border-hairline bg-canvas"
5627
+ ),
5628
+ children: [
5629
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-sm", children: [
5630
+ eyebrow ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex items-center gap-xs text-caption text-muted", children: eyebrow }) : null,
5631
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("h1", { id: titleId, className: "text-heading-lg text-ink [font-weight:var(--font-weight-body-lg,400)]", children: title }),
5632
+ body ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-body-md text-muted", children: body }) : null
5633
+ ] }),
5634
+ isProof ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col items-start gap-xs", children: [
5635
+ primary ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5636
+ Button,
5637
+ {
5638
+ variant: "primary",
5639
+ shape: "pill",
5640
+ size: "lg",
5641
+ className: "uppercase tracking-overline",
5642
+ href: primary.href,
5643
+ leadingIcon: iconFor(primary, "play"),
5644
+ onClick: primary.onClick,
5645
+ children: primary.label
5646
+ }
5647
+ ) : null,
5648
+ secondary ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("a", { href: secondary.href ?? "#", onClick: secondary.onClick, className: textLink, children: [
5649
+ secondary.label,
5650
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5651
+ Icon,
5652
+ {
5653
+ name: "chevron-right",
5654
+ size: 16,
5655
+ className: "transition-transform duration-150 ease-out group-hover:translate-x-xxs"
5656
+ }
5657
+ )
5658
+ ] }) : null
5659
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
5660
+ primary ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5661
+ Button,
5662
+ {
5663
+ variant: "primary",
5664
+ size: "lg",
5665
+ href: primary.href,
5666
+ leadingIcon: iconFor(primary, null),
5667
+ onClick: primary.onClick,
5668
+ children: primary.label
5669
+ }
5670
+ ) : null,
5671
+ secondary ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Button, { variant: "secondary", size: "lg", href: secondary.href, onClick: secondary.onClick, children: secondary.label }) : null
5672
+ ] }),
5673
+ trailing ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex items-center gap-xs text-caption text-muted", children: trailing }) : null,
5674
+ visual ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-full", children: visual }) : null,
5675
+ isProof && proof ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-base", children: [
5676
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AvatarGroup, { items: proof.people, size: "md" }),
5677
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
5678
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-heading-sm text-ink", children: proof.stat }),
5679
+ proof.caption ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-caption text-muted", children: proof.caption }) : null
5680
+ ] })
5681
+ ] }) : null
5682
+ ]
5683
+ }
5684
+ )
5608
5685
  }
5609
- ) });
5686
+ );
5610
5687
  }
5611
5688
  );
5612
5689
  HeroSectionMobile.displayName = "HeroSectionMobile";