@designa8/vibedesign-supabase-deepseek-image-v1-2-176b 0.3.1 → 0.3.2
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 +1 -1
- package/dist/index.cjs +84 -38
- package/dist/index.js +102 -56
- package/package.json +1 -1
- package/src/atoms/Footer/Footer.tsx +161 -80
- package/src/atoms/Footer/preview.tsx +51 -24
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-supabase-deepseek-image-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.3.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.3.2**.
|
|
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
|
@@ -10595,7 +10595,8 @@ var DEFAULT_LEGAL_LINKS = [
|
|
|
10595
10595
|
{ label: "Privacy", href: "#privacy" },
|
|
10596
10596
|
{ label: "Cookies", href: "#cookies" }
|
|
10597
10597
|
];
|
|
10598
|
-
var
|
|
10598
|
+
var PANEL_INVERSE = "rounded-lg border border-inverse-hairline";
|
|
10599
|
+
var PANEL_CANVAS = "rounded-lg border border-hairline";
|
|
10599
10600
|
var cx3 = (...parts) => parts.filter(Boolean).join(" ");
|
|
10600
10601
|
var Footer = React53.forwardRef(
|
|
10601
10602
|
({
|
|
@@ -10613,6 +10614,12 @@ var Footer = React53.forwardRef(
|
|
|
10613
10614
|
onSubscribe,
|
|
10614
10615
|
legalLinks = DEFAULT_LEGAL_LINKS,
|
|
10615
10616
|
year = 2025,
|
|
10617
|
+
tone = "inverse",
|
|
10618
|
+
tagline,
|
|
10619
|
+
copyright,
|
|
10620
|
+
showNewsletter = true,
|
|
10621
|
+
onLinkClick,
|
|
10622
|
+
onBrandClick,
|
|
10616
10623
|
className,
|
|
10617
10624
|
...rest
|
|
10618
10625
|
}, ref) => {
|
|
@@ -10620,6 +10627,13 @@ var Footer = React53.forwardRef(
|
|
|
10620
10627
|
const [subscribedState, setSubscribedState] = React53.useState(false);
|
|
10621
10628
|
const email = emailProp ?? emailState;
|
|
10622
10629
|
const subscribed = subscribedProp ?? subscribedState;
|
|
10630
|
+
const newsletterId = React53.useId();
|
|
10631
|
+
const newsletterTitleId = `${newsletterId}-title`;
|
|
10632
|
+
const isCanvas = tone === "canvas";
|
|
10633
|
+
const panel = isCanvas ? PANEL_CANVAS : PANEL_INVERSE;
|
|
10634
|
+
const mutedText = isCanvas ? "text-muted" : "text-inverse-muted";
|
|
10635
|
+
const titleInk = isCanvas ? "text-ink" : "text-inverse-ink";
|
|
10636
|
+
const ringOffset = isCanvas ? "focus-visible:ring-offset-canvas" : "focus-visible:ring-offset-inverse-surface";
|
|
10623
10637
|
const handleEmail = (value) => {
|
|
10624
10638
|
if (emailProp === void 0) setEmailState(value);
|
|
10625
10639
|
onEmailChange?.(value);
|
|
@@ -10630,12 +10644,16 @@ var Footer = React53.forwardRef(
|
|
|
10630
10644
|
if (subscribedProp === void 0) setSubscribedState(true);
|
|
10631
10645
|
onSubscribe?.(email);
|
|
10632
10646
|
};
|
|
10647
|
+
const linkHandler = (link) => (event) => {
|
|
10648
|
+
onLinkClick?.(link, event);
|
|
10649
|
+
};
|
|
10633
10650
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10634
10651
|
"footer",
|
|
10635
10652
|
{
|
|
10636
10653
|
ref,
|
|
10637
10654
|
className: cx3(
|
|
10638
|
-
"w-full
|
|
10655
|
+
"w-full font-body",
|
|
10656
|
+
isCanvas ? "bg-canvas text-ink" : "bg-inverse-surface text-inverse-ink",
|
|
10639
10657
|
className
|
|
10640
10658
|
),
|
|
10641
10659
|
...rest,
|
|
@@ -10644,48 +10662,68 @@ var Footer = React53.forwardRef(
|
|
|
10644
10662
|
"nav",
|
|
10645
10663
|
{
|
|
10646
10664
|
"aria-label": "Footer",
|
|
10647
|
-
className: cx3(
|
|
10665
|
+
className: cx3(
|
|
10666
|
+
panel,
|
|
10667
|
+
"overflow-hidden",
|
|
10668
|
+
showNewsletter ? "lg:col-span-7" : "lg:col-span-12"
|
|
10669
|
+
),
|
|
10648
10670
|
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col gap-lg p-lg sm:flex-row sm:gap-xl", children: [
|
|
10649
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
10671
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex min-w-0 shrink-0 flex-col gap-sm sm:max-w-[14rem]", children: [
|
|
10672
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10673
|
+
"a",
|
|
10674
|
+
{
|
|
10675
|
+
href: brandHref,
|
|
10676
|
+
"aria-label": brand,
|
|
10677
|
+
onClick: (event) => onBrandClick?.(event),
|
|
10678
|
+
className: cx3(
|
|
10679
|
+
"inline-flex cursor-pointer self-start rounded-xs transition duration-150 ease-out active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue focus-visible:ring-offset-2",
|
|
10680
|
+
ringOffset
|
|
10681
|
+
),
|
|
10682
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10683
|
+
Logo,
|
|
10684
|
+
{
|
|
10685
|
+
variant: "lockup",
|
|
10686
|
+
size: "md",
|
|
10687
|
+
tone: isCanvas ? "default" : "inverse",
|
|
10688
|
+
wordmark: brand,
|
|
10689
|
+
label: brand
|
|
10690
|
+
}
|
|
10691
|
+
)
|
|
10692
|
+
}
|
|
10693
|
+
),
|
|
10694
|
+
tagline ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: cx3("text-body-sm", mutedText), children: tagline }) : null
|
|
10695
|
+
] }),
|
|
10696
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("ul", { className: "grid min-w-0 flex-1 grid-cols-2 gap-x-lg gap-y-lg sm:grid-cols-3", children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("li", { className: "flex min-w-0 flex-col gap-md", children: [
|
|
10697
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: cx3("text-label", titleInk), children: column.title }),
|
|
10698
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("ul", { className: "flex flex-col gap-md", children: column.links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("li", { className: "min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10699
|
+
Link,
|
|
10700
|
+
{
|
|
10701
|
+
href: link.href,
|
|
10702
|
+
tone: isCanvas ? "default" : "inverse",
|
|
10703
|
+
size: "md",
|
|
10704
|
+
onClick: linkHandler(link),
|
|
10705
|
+
children: link.label
|
|
10706
|
+
}
|
|
10707
|
+
) }, link.label)) })
|
|
10670
10708
|
] }, column.title)) })
|
|
10671
10709
|
] })
|
|
10672
10710
|
}
|
|
10673
10711
|
),
|
|
10674
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
10712
|
+
showNewsletter ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
10675
10713
|
"section",
|
|
10676
10714
|
{
|
|
10677
|
-
"aria-labelledby":
|
|
10678
|
-
className: cx3(
|
|
10715
|
+
"aria-labelledby": newsletterTitleId,
|
|
10716
|
+
className: cx3(panel, "flex flex-col p-lg lg:col-span-5"),
|
|
10679
10717
|
children: [
|
|
10680
10718
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10681
10719
|
"h2",
|
|
10682
10720
|
{
|
|
10683
|
-
id:
|
|
10684
|
-
className: "text-heading-sm
|
|
10721
|
+
id: newsletterTitleId,
|
|
10722
|
+
className: cx3("text-heading-sm", titleInk),
|
|
10685
10723
|
children: newsletterTitle
|
|
10686
10724
|
}
|
|
10687
10725
|
),
|
|
10688
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: "mt-xs text-body-md
|
|
10726
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: cx3("mt-xs text-body-md", mutedText), children: newsletterDescription }),
|
|
10689
10727
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
10690
10728
|
"form",
|
|
10691
10729
|
{
|
|
@@ -10695,12 +10733,11 @@ var Footer = React53.forwardRef(
|
|
|
10695
10733
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10696
10734
|
Input,
|
|
10697
10735
|
{
|
|
10698
|
-
id: "footer-newsletter-email",
|
|
10699
10736
|
type: "email",
|
|
10700
10737
|
name: "email",
|
|
10701
10738
|
"aria-label": "Email address",
|
|
10702
10739
|
autoComplete: "email",
|
|
10703
|
-
tone: "inverse",
|
|
10740
|
+
tone: isCanvas ? "default" : "inverse",
|
|
10704
10741
|
size: "md",
|
|
10705
10742
|
placeholder: emailPlaceholder,
|
|
10706
10743
|
value: email,
|
|
@@ -10735,22 +10772,31 @@ var Footer = React53.forwardRef(
|
|
|
10735
10772
|
)
|
|
10736
10773
|
]
|
|
10737
10774
|
}
|
|
10738
|
-
),
|
|
10775
|
+
) : null,
|
|
10739
10776
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
10740
10777
|
"div",
|
|
10741
10778
|
{
|
|
10742
10779
|
className: cx3(
|
|
10743
|
-
|
|
10744
|
-
"flex flex-col gap-md px-lg py-md sm:flex-row sm:items-center sm:justify-between lg:col-span-12"
|
|
10780
|
+
panel,
|
|
10781
|
+
"flex min-w-0 flex-col gap-md px-lg py-md sm:flex-row sm:items-center sm:justify-between lg:col-span-12"
|
|
10745
10782
|
),
|
|
10746
10783
|
children: [
|
|
10747
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.
|
|
10784
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: cx3("min-w-0 text-body-md", mutedText), children: copyright ?? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
|
10748
10785
|
"\xA9 ",
|
|
10749
10786
|
year,
|
|
10750
10787
|
" ",
|
|
10751
10788
|
brand
|
|
10752
|
-
] }),
|
|
10753
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("ul", { className: "flex flex-wrap items-center gap-
|
|
10789
|
+
] }) }),
|
|
10790
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("ul", { className: "flex min-w-0 flex-wrap items-center gap-md", children: legalLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("li", { className: "min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
10791
|
+
Link,
|
|
10792
|
+
{
|
|
10793
|
+
href: link.href,
|
|
10794
|
+
tone: isCanvas ? "default" : "inverse-strong",
|
|
10795
|
+
size: "md",
|
|
10796
|
+
onClick: linkHandler(link),
|
|
10797
|
+
children: link.label
|
|
10798
|
+
}
|
|
10799
|
+
) }, link.label)) })
|
|
10754
10800
|
]
|
|
10755
10801
|
}
|
|
10756
10802
|
)
|
package/dist/index.js
CHANGED
|
@@ -10437,7 +10437,7 @@ FileUpload.displayName = "FileUpload";
|
|
|
10437
10437
|
|
|
10438
10438
|
// virtual-pkg:src/atoms/Footer/Footer.tsx
|
|
10439
10439
|
import * as React53 from "react";
|
|
10440
|
-
import { jsx as jsx52, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
10440
|
+
import { Fragment as Fragment14, jsx as jsx52, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
10441
10441
|
var DEFAULT_COLUMNS3 = [
|
|
10442
10442
|
{
|
|
10443
10443
|
title: "Product",
|
|
@@ -10469,7 +10469,8 @@ var DEFAULT_LEGAL_LINKS = [
|
|
|
10469
10469
|
{ label: "Privacy", href: "#privacy" },
|
|
10470
10470
|
{ label: "Cookies", href: "#cookies" }
|
|
10471
10471
|
];
|
|
10472
|
-
var
|
|
10472
|
+
var PANEL_INVERSE = "rounded-lg border border-inverse-hairline";
|
|
10473
|
+
var PANEL_CANVAS = "rounded-lg border border-hairline";
|
|
10473
10474
|
var cx3 = (...parts) => parts.filter(Boolean).join(" ");
|
|
10474
10475
|
var Footer = React53.forwardRef(
|
|
10475
10476
|
({
|
|
@@ -10487,6 +10488,12 @@ var Footer = React53.forwardRef(
|
|
|
10487
10488
|
onSubscribe,
|
|
10488
10489
|
legalLinks = DEFAULT_LEGAL_LINKS,
|
|
10489
10490
|
year = 2025,
|
|
10491
|
+
tone = "inverse",
|
|
10492
|
+
tagline,
|
|
10493
|
+
copyright,
|
|
10494
|
+
showNewsletter = true,
|
|
10495
|
+
onLinkClick,
|
|
10496
|
+
onBrandClick,
|
|
10490
10497
|
className,
|
|
10491
10498
|
...rest
|
|
10492
10499
|
}, ref) => {
|
|
@@ -10494,6 +10501,13 @@ var Footer = React53.forwardRef(
|
|
|
10494
10501
|
const [subscribedState, setSubscribedState] = React53.useState(false);
|
|
10495
10502
|
const email = emailProp ?? emailState;
|
|
10496
10503
|
const subscribed = subscribedProp ?? subscribedState;
|
|
10504
|
+
const newsletterId = React53.useId();
|
|
10505
|
+
const newsletterTitleId = `${newsletterId}-title`;
|
|
10506
|
+
const isCanvas = tone === "canvas";
|
|
10507
|
+
const panel = isCanvas ? PANEL_CANVAS : PANEL_INVERSE;
|
|
10508
|
+
const mutedText = isCanvas ? "text-muted" : "text-inverse-muted";
|
|
10509
|
+
const titleInk = isCanvas ? "text-ink" : "text-inverse-ink";
|
|
10510
|
+
const ringOffset = isCanvas ? "focus-visible:ring-offset-canvas" : "focus-visible:ring-offset-inverse-surface";
|
|
10497
10511
|
const handleEmail = (value) => {
|
|
10498
10512
|
if (emailProp === void 0) setEmailState(value);
|
|
10499
10513
|
onEmailChange?.(value);
|
|
@@ -10504,12 +10518,16 @@ var Footer = React53.forwardRef(
|
|
|
10504
10518
|
if (subscribedProp === void 0) setSubscribedState(true);
|
|
10505
10519
|
onSubscribe?.(email);
|
|
10506
10520
|
};
|
|
10521
|
+
const linkHandler = (link) => (event) => {
|
|
10522
|
+
onLinkClick?.(link, event);
|
|
10523
|
+
};
|
|
10507
10524
|
return /* @__PURE__ */ jsx52(
|
|
10508
10525
|
"footer",
|
|
10509
10526
|
{
|
|
10510
10527
|
ref,
|
|
10511
10528
|
className: cx3(
|
|
10512
|
-
"w-full
|
|
10529
|
+
"w-full font-body",
|
|
10530
|
+
isCanvas ? "bg-canvas text-ink" : "bg-inverse-surface text-inverse-ink",
|
|
10513
10531
|
className
|
|
10514
10532
|
),
|
|
10515
10533
|
...rest,
|
|
@@ -10518,48 +10536,68 @@ var Footer = React53.forwardRef(
|
|
|
10518
10536
|
"nav",
|
|
10519
10537
|
{
|
|
10520
10538
|
"aria-label": "Footer",
|
|
10521
|
-
className: cx3(
|
|
10539
|
+
className: cx3(
|
|
10540
|
+
panel,
|
|
10541
|
+
"overflow-hidden",
|
|
10542
|
+
showNewsletter ? "lg:col-span-7" : "lg:col-span-12"
|
|
10543
|
+
),
|
|
10522
10544
|
children: /* @__PURE__ */ jsxs50("div", { className: "flex flex-col gap-lg p-lg sm:flex-row sm:gap-xl", children: [
|
|
10523
|
-
/* @__PURE__ */
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10545
|
+
/* @__PURE__ */ jsxs50("div", { className: "flex min-w-0 shrink-0 flex-col gap-sm sm:max-w-[14rem]", children: [
|
|
10546
|
+
/* @__PURE__ */ jsx52(
|
|
10547
|
+
"a",
|
|
10548
|
+
{
|
|
10549
|
+
href: brandHref,
|
|
10550
|
+
"aria-label": brand,
|
|
10551
|
+
onClick: (event) => onBrandClick?.(event),
|
|
10552
|
+
className: cx3(
|
|
10553
|
+
"inline-flex cursor-pointer self-start rounded-xs transition duration-150 ease-out active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue focus-visible:ring-offset-2",
|
|
10554
|
+
ringOffset
|
|
10555
|
+
),
|
|
10556
|
+
children: /* @__PURE__ */ jsx52(
|
|
10557
|
+
Logo,
|
|
10558
|
+
{
|
|
10559
|
+
variant: "lockup",
|
|
10560
|
+
size: "md",
|
|
10561
|
+
tone: isCanvas ? "default" : "inverse",
|
|
10562
|
+
wordmark: brand,
|
|
10563
|
+
label: brand
|
|
10564
|
+
}
|
|
10565
|
+
)
|
|
10566
|
+
}
|
|
10567
|
+
),
|
|
10568
|
+
tagline ? /* @__PURE__ */ jsx52("p", { className: cx3("text-body-sm", mutedText), children: tagline }) : null
|
|
10569
|
+
] }),
|
|
10570
|
+
/* @__PURE__ */ jsx52("ul", { className: "grid min-w-0 flex-1 grid-cols-2 gap-x-lg gap-y-lg sm:grid-cols-3", children: columns.map((column) => /* @__PURE__ */ jsxs50("li", { className: "flex min-w-0 flex-col gap-md", children: [
|
|
10571
|
+
/* @__PURE__ */ jsx52("p", { className: cx3("text-label", titleInk), children: column.title }),
|
|
10572
|
+
/* @__PURE__ */ jsx52("ul", { className: "flex flex-col gap-md", children: column.links.map((link) => /* @__PURE__ */ jsx52("li", { className: "min-w-0", children: /* @__PURE__ */ jsx52(
|
|
10573
|
+
Link,
|
|
10574
|
+
{
|
|
10575
|
+
href: link.href,
|
|
10576
|
+
tone: isCanvas ? "default" : "inverse",
|
|
10577
|
+
size: "md",
|
|
10578
|
+
onClick: linkHandler(link),
|
|
10579
|
+
children: link.label
|
|
10580
|
+
}
|
|
10581
|
+
) }, link.label)) })
|
|
10544
10582
|
] }, column.title)) })
|
|
10545
10583
|
] })
|
|
10546
10584
|
}
|
|
10547
10585
|
),
|
|
10548
|
-
/* @__PURE__ */ jsxs50(
|
|
10586
|
+
showNewsletter ? /* @__PURE__ */ jsxs50(
|
|
10549
10587
|
"section",
|
|
10550
10588
|
{
|
|
10551
|
-
"aria-labelledby":
|
|
10552
|
-
className: cx3(
|
|
10589
|
+
"aria-labelledby": newsletterTitleId,
|
|
10590
|
+
className: cx3(panel, "flex flex-col p-lg lg:col-span-5"),
|
|
10553
10591
|
children: [
|
|
10554
10592
|
/* @__PURE__ */ jsx52(
|
|
10555
10593
|
"h2",
|
|
10556
10594
|
{
|
|
10557
|
-
id:
|
|
10558
|
-
className: "text-heading-sm
|
|
10595
|
+
id: newsletterTitleId,
|
|
10596
|
+
className: cx3("text-heading-sm", titleInk),
|
|
10559
10597
|
children: newsletterTitle
|
|
10560
10598
|
}
|
|
10561
10599
|
),
|
|
10562
|
-
/* @__PURE__ */ jsx52("p", { className: "mt-xs text-body-md
|
|
10600
|
+
/* @__PURE__ */ jsx52("p", { className: cx3("mt-xs text-body-md", mutedText), children: newsletterDescription }),
|
|
10563
10601
|
/* @__PURE__ */ jsxs50(
|
|
10564
10602
|
"form",
|
|
10565
10603
|
{
|
|
@@ -10569,12 +10607,11 @@ var Footer = React53.forwardRef(
|
|
|
10569
10607
|
/* @__PURE__ */ jsx52(
|
|
10570
10608
|
Input,
|
|
10571
10609
|
{
|
|
10572
|
-
id: "footer-newsletter-email",
|
|
10573
10610
|
type: "email",
|
|
10574
10611
|
name: "email",
|
|
10575
10612
|
"aria-label": "Email address",
|
|
10576
10613
|
autoComplete: "email",
|
|
10577
|
-
tone: "inverse",
|
|
10614
|
+
tone: isCanvas ? "default" : "inverse",
|
|
10578
10615
|
size: "md",
|
|
10579
10616
|
placeholder: emailPlaceholder,
|
|
10580
10617
|
value: email,
|
|
@@ -10609,22 +10646,31 @@ var Footer = React53.forwardRef(
|
|
|
10609
10646
|
)
|
|
10610
10647
|
]
|
|
10611
10648
|
}
|
|
10612
|
-
),
|
|
10649
|
+
) : null,
|
|
10613
10650
|
/* @__PURE__ */ jsxs50(
|
|
10614
10651
|
"div",
|
|
10615
10652
|
{
|
|
10616
10653
|
className: cx3(
|
|
10617
|
-
|
|
10618
|
-
"flex flex-col gap-md px-lg py-md sm:flex-row sm:items-center sm:justify-between lg:col-span-12"
|
|
10654
|
+
panel,
|
|
10655
|
+
"flex min-w-0 flex-col gap-md px-lg py-md sm:flex-row sm:items-center sm:justify-between lg:col-span-12"
|
|
10619
10656
|
),
|
|
10620
10657
|
children: [
|
|
10621
|
-
/* @__PURE__ */
|
|
10658
|
+
/* @__PURE__ */ jsx52("p", { className: cx3("min-w-0 text-body-md", mutedText), children: copyright ?? /* @__PURE__ */ jsxs50(Fragment14, { children: [
|
|
10622
10659
|
"\xA9 ",
|
|
10623
10660
|
year,
|
|
10624
10661
|
" ",
|
|
10625
10662
|
brand
|
|
10626
|
-
] }),
|
|
10627
|
-
/* @__PURE__ */ jsx52("ul", { className: "flex flex-wrap items-center gap-
|
|
10663
|
+
] }) }),
|
|
10664
|
+
/* @__PURE__ */ jsx52("ul", { className: "flex min-w-0 flex-wrap items-center gap-md", children: legalLinks.map((link) => /* @__PURE__ */ jsx52("li", { className: "min-w-0", children: /* @__PURE__ */ jsx52(
|
|
10665
|
+
Link,
|
|
10666
|
+
{
|
|
10667
|
+
href: link.href,
|
|
10668
|
+
tone: isCanvas ? "default" : "inverse-strong",
|
|
10669
|
+
size: "md",
|
|
10670
|
+
onClick: linkHandler(link),
|
|
10671
|
+
children: link.label
|
|
10672
|
+
}
|
|
10673
|
+
) }, link.label)) })
|
|
10628
10674
|
]
|
|
10629
10675
|
}
|
|
10630
10676
|
)
|
|
@@ -11029,7 +11075,7 @@ import * as React59 from "react";
|
|
|
11029
11075
|
|
|
11030
11076
|
// virtual-pkg:src/atoms/HeroSectionDesktop/HeroSectionDesktop.tsx
|
|
11031
11077
|
import * as React57 from "react";
|
|
11032
|
-
import { Fragment as
|
|
11078
|
+
import { Fragment as Fragment15, jsx as jsx56, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
11033
11079
|
var DEFAULT_TITLE_LINES = ["Build in a weekend", "scale to millions"];
|
|
11034
11080
|
var DEFAULT_TRUSTED_BY = [
|
|
11035
11081
|
{ name: "Northwind", icon: "triangle" },
|
|
@@ -11144,7 +11190,7 @@ var HeroSectionDesktop = React57.forwardRef(
|
|
|
11144
11190
|
rise(90)
|
|
11145
11191
|
),
|
|
11146
11192
|
style: riseDelay(90),
|
|
11147
|
-
children: title !== void 0 ? title : /* @__PURE__ */ jsxs54(
|
|
11193
|
+
children: title !== void 0 ? title : /* @__PURE__ */ jsxs54(Fragment15, { children: [
|
|
11148
11194
|
/* @__PURE__ */ jsx56("span", { className: "block", children: titleLines[0] }),
|
|
11149
11195
|
/* @__PURE__ */ jsx56("span", { className: "block", children: titleLines[1] })
|
|
11150
11196
|
] })
|
|
@@ -11350,7 +11396,7 @@ HeroSectionDesktop.displayName = "HeroSectionDesktop";
|
|
|
11350
11396
|
|
|
11351
11397
|
// virtual-pkg:src/atoms/HeroSectionMobile/HeroSectionMobile.tsx
|
|
11352
11398
|
import * as React58 from "react";
|
|
11353
|
-
import { Fragment as
|
|
11399
|
+
import { Fragment as Fragment16, jsx as jsx57, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
11354
11400
|
var DEFAULT_TITLE_LINES2 = ["Build in a weekend", "Scale to millions"];
|
|
11355
11401
|
var DEFAULT_PROOF_BRANDS = [
|
|
11356
11402
|
{ name: "Northwind", icon: "triangle" },
|
|
@@ -11436,7 +11482,7 @@ var HeroSectionMobile = React58.forwardRef(
|
|
|
11436
11482
|
rise(animateIn)
|
|
11437
11483
|
),
|
|
11438
11484
|
style: riseDelay(90),
|
|
11439
|
-
children: title !== void 0 ? title : /* @__PURE__ */ jsxs55(
|
|
11485
|
+
children: title !== void 0 ? title : /* @__PURE__ */ jsxs55(Fragment16, { children: [
|
|
11440
11486
|
/* @__PURE__ */ jsx57("span", { className: "block", children: titleLines[0] }),
|
|
11441
11487
|
/* @__PURE__ */ jsx57("span", { className: "block text-primary", children: titleLines[1] })
|
|
11442
11488
|
] })
|
|
@@ -12977,7 +13023,7 @@ NavbarDesktop.displayName = "NavbarDesktop";
|
|
|
12977
13023
|
|
|
12978
13024
|
// virtual-pkg:src/atoms/NavbarMobile/NavbarMobile.tsx
|
|
12979
13025
|
import * as React66 from "react";
|
|
12980
|
-
import { Fragment as
|
|
13026
|
+
import { Fragment as Fragment18, jsx as jsx65, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
12981
13027
|
var DEFAULT_ITEMS = [
|
|
12982
13028
|
{ id: "home", label: "Home", icon: "house" },
|
|
12983
13029
|
{ id: "database", label: "Database", icon: "table" },
|
|
@@ -13116,7 +13162,7 @@ var NavbarMobile = React66.forwardRef(
|
|
|
13116
13162
|
),
|
|
13117
13163
|
children: /* @__PURE__ */ jsx65("div", { className: "min-h-0 overflow-hidden", children: /* @__PURE__ */ jsxs63("div", { className: "border-t border-hairline px-sm py-md", children: [
|
|
13118
13164
|
/* @__PURE__ */ jsx65("nav", { "aria-label": navLabel, className: "flex flex-col gap-xxs", children: items.map(renderRow) }),
|
|
13119
|
-
utilityItems.length > 0 ? /* @__PURE__ */ jsxs63(
|
|
13165
|
+
utilityItems.length > 0 ? /* @__PURE__ */ jsxs63(Fragment18, { children: [
|
|
13120
13166
|
/* @__PURE__ */ jsx65(Divider, { className: "my-sm" }),
|
|
13121
13167
|
/* @__PURE__ */ jsx65(
|
|
13122
13168
|
"nav",
|
|
@@ -13309,7 +13355,7 @@ import * as React70 from "react";
|
|
|
13309
13355
|
// virtual-pkg:src/atoms/NavigationMenuDesktop/NavigationMenuDesktop.tsx
|
|
13310
13356
|
import * as React68 from "react";
|
|
13311
13357
|
import { createPortal as createPortal8 } from "react-dom";
|
|
13312
|
-
import { Fragment as
|
|
13358
|
+
import { Fragment as Fragment19, jsx as jsx67, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
13313
13359
|
var DEFAULT_ITEMS2 = [
|
|
13314
13360
|
{
|
|
13315
13361
|
id: "product",
|
|
@@ -13760,7 +13806,7 @@ var NavigationMenuDesktop = React68.forwardRef(
|
|
|
13760
13806
|
}
|
|
13761
13807
|
)
|
|
13762
13808
|
] }),
|
|
13763
|
-
/* @__PURE__ */ jsx67("div", { className: "flex shrink-0 items-center gap-sm", children: actions ?? /* @__PURE__ */ jsxs65(
|
|
13809
|
+
/* @__PURE__ */ jsx67("div", { className: "flex shrink-0 items-center gap-sm", children: actions ?? /* @__PURE__ */ jsxs65(Fragment19, { children: [
|
|
13764
13810
|
/* @__PURE__ */ jsx67(
|
|
13765
13811
|
Button,
|
|
13766
13812
|
{
|
|
@@ -13802,7 +13848,7 @@ NavigationMenuDesktop.displayName = "NavigationMenuDesktop";
|
|
|
13802
13848
|
|
|
13803
13849
|
// virtual-pkg:src/atoms/NavigationMenuMobile/NavigationMenuMobile.tsx
|
|
13804
13850
|
import * as React69 from "react";
|
|
13805
|
-
import { Fragment as
|
|
13851
|
+
import { Fragment as Fragment21, jsx as jsx68, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
13806
13852
|
var DEFAULT_ENTRIES = [
|
|
13807
13853
|
{
|
|
13808
13854
|
id: "product",
|
|
@@ -14089,7 +14135,7 @@ var NavigationMenuMobile = React69.forwardRef(
|
|
|
14089
14135
|
),
|
|
14090
14136
|
children: /* @__PURE__ */ jsx68("div", { className: "min-h-0 overflow-hidden", children: /* @__PURE__ */ jsxs66("div", { className: "border-t border-hairline px-sm pb-sm pt-sm", children: [
|
|
14091
14137
|
/* @__PURE__ */ jsx68("nav", { "aria-label": navLabel, className: "flex flex-col", children: renderEntries(entries) }),
|
|
14092
|
-
utilityEntries.length > 0 ? /* @__PURE__ */ jsxs66(
|
|
14138
|
+
utilityEntries.length > 0 ? /* @__PURE__ */ jsxs66(Fragment21, { children: [
|
|
14093
14139
|
/* @__PURE__ */ jsx68(
|
|
14094
14140
|
"div",
|
|
14095
14141
|
{
|
|
@@ -15177,7 +15223,7 @@ var Skeleton = React77.forwardRef(
|
|
|
15177
15223
|
Skeleton.displayName = "Skeleton";
|
|
15178
15224
|
|
|
15179
15225
|
// virtual-pkg:src/atoms/RecordTable/RecordTable.tsx
|
|
15180
|
-
import { Fragment as
|
|
15226
|
+
import { Fragment as Fragment23, jsx as jsx77, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
15181
15227
|
var ALIGN_HEADER = {
|
|
15182
15228
|
start: "left",
|
|
15183
15229
|
center: "center",
|
|
@@ -15271,7 +15317,7 @@ function RecordTableInner({
|
|
|
15271
15317
|
event.preventDefault();
|
|
15272
15318
|
onRowClick(row);
|
|
15273
15319
|
};
|
|
15274
|
-
const mobileBody = (row) => /* @__PURE__ */ jsxs74(
|
|
15320
|
+
const mobileBody = (row) => /* @__PURE__ */ jsxs74(Fragment23, { children: [
|
|
15275
15321
|
/* @__PURE__ */ jsxs74("span", { className: "flex min-w-0 flex-1 flex-col gap-xxs", children: [
|
|
15276
15322
|
/* @__PURE__ */ jsx77(
|
|
15277
15323
|
"span",
|
|
@@ -16042,7 +16088,7 @@ import * as React82 from "react";
|
|
|
16042
16088
|
|
|
16043
16089
|
// virtual-pkg:src/atoms/SidebarMobile/SidebarMobile.tsx
|
|
16044
16090
|
import * as React81 from "react";
|
|
16045
|
-
import { Fragment as
|
|
16091
|
+
import { Fragment as Fragment25, jsx as jsx80, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
16046
16092
|
var DEFAULT_WORKSPACE2 = [
|
|
16047
16093
|
{ id: "home", label: "Home", icon: "house" },
|
|
16048
16094
|
{ id: "observability", label: "Observability", icon: "table" }
|
|
@@ -16383,7 +16429,7 @@ var SidebarMobile = React81.forwardRef(
|
|
|
16383
16429
|
surfaceClassName: "rounded-r-xl",
|
|
16384
16430
|
footer: accountFooter,
|
|
16385
16431
|
children: /* @__PURE__ */ jsxs77("div", { className: "flex flex-col", children: [
|
|
16386
|
-
showSelector ? /* @__PURE__ */ jsxs77(
|
|
16432
|
+
showSelector ? /* @__PURE__ */ jsxs77(Fragment25, { children: [
|
|
16387
16433
|
selectorSlot ? selectorSlot : /* @__PURE__ */ jsx80(
|
|
16388
16434
|
Button,
|
|
16389
16435
|
{
|
|
@@ -16442,12 +16488,12 @@ var SidebarMobile = React81.forwardRef(
|
|
|
16442
16488
|
/* @__PURE__ */ jsx80(Divider, { className: railDivider })
|
|
16443
16489
|
] }) : null,
|
|
16444
16490
|
/* @__PURE__ */ jsx80("nav", { "aria-label": "Workspace", className: "flex flex-col gap-xxs", children: workspaceItems.map(row) }),
|
|
16445
|
-
productItems.length > 0 ? /* @__PURE__ */ jsxs77(
|
|
16491
|
+
productItems.length > 0 ? /* @__PURE__ */ jsxs77(Fragment25, { children: [
|
|
16446
16492
|
/* @__PURE__ */ jsx80(Divider, { className: railDivider }),
|
|
16447
16493
|
/* @__PURE__ */ jsx80("p", { className: CAPTION, children: productLabel }),
|
|
16448
16494
|
/* @__PURE__ */ jsx80("nav", { "aria-label": productLabel, className: "flex flex-col gap-xxs", children: productItems.map(row) })
|
|
16449
16495
|
] }) : null,
|
|
16450
|
-
showAddBlock ? /* @__PURE__ */ jsxs77(
|
|
16496
|
+
showAddBlock ? /* @__PURE__ */ jsxs77(Fragment25, { children: [
|
|
16451
16497
|
/* @__PURE__ */ jsx80(Divider, { className: railDivider }),
|
|
16452
16498
|
/* @__PURE__ */ jsxs77(
|
|
16453
16499
|
"a",
|
|
@@ -16477,7 +16523,7 @@ var SidebarMobile = React81.forwardRef(
|
|
|
16477
16523
|
/* @__PURE__ */ jsx80("p", { className: CAPTION, children: section.label }),
|
|
16478
16524
|
/* @__PURE__ */ jsx80("nav", { "aria-label": section.label, className: "flex flex-col gap-xxs", children: section.items.map(reportRow) })
|
|
16479
16525
|
] }, section.id)),
|
|
16480
|
-
showPromo ? /* @__PURE__ */ jsxs77(
|
|
16526
|
+
showPromo ? /* @__PURE__ */ jsxs77(Fragment25, { children: [
|
|
16481
16527
|
/* @__PURE__ */ jsx80(Divider, { className: railDivider }),
|
|
16482
16528
|
/* @__PURE__ */ jsxs77(
|
|
16483
16529
|
"a",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designa8/vibedesign-supabase-deepseek-image-v1-2-176b",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Complete design system \"My Project supabase-deepseek-image-v1\" generated by Atoms Design.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -14,6 +14,13 @@ export interface FooterColumn {
|
|
|
14
14
|
links: FooterLink[];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Surface the footer sits on. `inverse` is the dark band (today's look);
|
|
19
|
+
* `canvas` paints the footer on the page itself so it follows the light and
|
|
20
|
+
* dark canvas tokens.
|
|
21
|
+
*/
|
|
22
|
+
export type FooterTone = "inverse" | "canvas";
|
|
23
|
+
|
|
17
24
|
export interface FooterProps
|
|
18
25
|
extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
19
26
|
/** Brand word rendered in the lockup and the copyright line. */
|
|
@@ -38,6 +45,27 @@ export interface FooterProps
|
|
|
38
45
|
legalLinks?: FooterLink[];
|
|
39
46
|
/** Copyright year printed after the brand. */
|
|
40
47
|
year?: number;
|
|
48
|
+
/** Surface relationship. Defaults to `inverse` (the dark band). */
|
|
49
|
+
tone?: FooterTone;
|
|
50
|
+
/** One muted line under the brand lockup. */
|
|
51
|
+
tagline?: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Replaces the default `© {year} {brand}` line. Any React node — a year
|
|
54
|
+
* range, a company suffix, a localized string.
|
|
55
|
+
*/
|
|
56
|
+
copyright?: React.ReactNode;
|
|
57
|
+
/** Renders the newsletter card. `false` lets the links panel take the row. */
|
|
58
|
+
showNewsletter?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Fired for every column link and legal link. Call `preventDefault()` here to
|
|
61
|
+
* route client-side; the `href` stays on the anchor either way.
|
|
62
|
+
*/
|
|
63
|
+
onLinkClick?: (
|
|
64
|
+
link: FooterLink,
|
|
65
|
+
event: React.MouseEvent<HTMLAnchorElement>,
|
|
66
|
+
) => void;
|
|
67
|
+
/** Fired when the brand lockup is activated. */
|
|
68
|
+
onBrandClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
41
69
|
}
|
|
42
70
|
|
|
43
71
|
const DEFAULT_COLUMNS: FooterColumn[] = [
|
|
@@ -73,8 +101,9 @@ const DEFAULT_LEGAL_LINKS: FooterLink[] = [
|
|
|
73
101
|
{ label: "Cookies", href: "#cookies" },
|
|
74
102
|
];
|
|
75
103
|
|
|
76
|
-
/** Bordered panel
|
|
77
|
-
const
|
|
104
|
+
/** Bordered panel. Transparent fill, hairline stroke for the surface it sits on. */
|
|
105
|
+
const PANEL_INVERSE = "rounded-lg border border-inverse-hairline";
|
|
106
|
+
const PANEL_CANVAS = "rounded-lg border border-hairline";
|
|
78
107
|
|
|
79
108
|
const cx = (...parts: Array<string | false | null | undefined>) =>
|
|
80
109
|
parts.filter(Boolean).join(" ");
|
|
@@ -97,6 +126,12 @@ export const Footer = React.forwardRef<HTMLElement, FooterProps>(
|
|
|
97
126
|
onSubscribe,
|
|
98
127
|
legalLinks = DEFAULT_LEGAL_LINKS,
|
|
99
128
|
year = 2025,
|
|
129
|
+
tone = "inverse",
|
|
130
|
+
tagline,
|
|
131
|
+
copyright,
|
|
132
|
+
showNewsletter = true,
|
|
133
|
+
onLinkClick,
|
|
134
|
+
onBrandClick,
|
|
100
135
|
className,
|
|
101
136
|
...rest
|
|
102
137
|
},
|
|
@@ -108,6 +143,19 @@ export const Footer = React.forwardRef<HTMLElement, FooterProps>(
|
|
|
108
143
|
const email = emailProp ?? emailState;
|
|
109
144
|
const subscribed = subscribedProp ?? subscribedState;
|
|
110
145
|
|
|
146
|
+
const newsletterId = React.useId();
|
|
147
|
+
const newsletterTitleId = `${newsletterId}-title`;
|
|
148
|
+
|
|
149
|
+
/** `canvas` inverts every surface, text, and stroke role back to the page. */
|
|
150
|
+
const isCanvas = tone === "canvas";
|
|
151
|
+
|
|
152
|
+
const panel = isCanvas ? PANEL_CANVAS : PANEL_INVERSE;
|
|
153
|
+
const mutedText = isCanvas ? "text-muted" : "text-inverse-muted";
|
|
154
|
+
const titleInk = isCanvas ? "text-ink" : "text-inverse-ink";
|
|
155
|
+
const ringOffset = isCanvas
|
|
156
|
+
? "focus-visible:ring-offset-canvas"
|
|
157
|
+
: "focus-visible:ring-offset-inverse-surface";
|
|
158
|
+
|
|
111
159
|
const handleEmail = (value: string) => {
|
|
112
160
|
if (emailProp === undefined) setEmailState(value);
|
|
113
161
|
onEmailChange?.(value);
|
|
@@ -120,11 +168,17 @@ export const Footer = React.forwardRef<HTMLElement, FooterProps>(
|
|
|
120
168
|
onSubscribe?.(email);
|
|
121
169
|
};
|
|
122
170
|
|
|
171
|
+
const linkHandler =
|
|
172
|
+
(link: FooterLink) => (event: React.MouseEvent<HTMLAnchorElement>) => {
|
|
173
|
+
onLinkClick?.(link, event);
|
|
174
|
+
};
|
|
175
|
+
|
|
123
176
|
return (
|
|
124
177
|
<footer
|
|
125
178
|
ref={ref}
|
|
126
179
|
className={cx(
|
|
127
|
-
"w-full
|
|
180
|
+
"w-full font-body",
|
|
181
|
+
isCanvas ? "bg-canvas text-ink" : "bg-inverse-surface text-inverse-ink",
|
|
128
182
|
className,
|
|
129
183
|
)}
|
|
130
184
|
{...rest}
|
|
@@ -134,33 +188,50 @@ export const Footer = React.forwardRef<HTMLElement, FooterProps>(
|
|
|
134
188
|
{/* Link columns — lockup, then the three nav columns. */}
|
|
135
189
|
<nav
|
|
136
190
|
aria-label="Footer"
|
|
137
|
-
className={cx(
|
|
191
|
+
className={cx(
|
|
192
|
+
panel,
|
|
193
|
+
"overflow-hidden",
|
|
194
|
+
showNewsletter ? "lg:col-span-7" : "lg:col-span-12",
|
|
195
|
+
)}
|
|
138
196
|
>
|
|
139
197
|
<div className="flex flex-col gap-lg p-lg sm:flex-row sm:gap-xl">
|
|
140
|
-
<
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
198
|
+
<div className="flex min-w-0 shrink-0 flex-col gap-sm sm:max-w-[14rem]">
|
|
199
|
+
<a
|
|
200
|
+
href={brandHref}
|
|
201
|
+
aria-label={brand}
|
|
202
|
+
onClick={(event) => onBrandClick?.(event)}
|
|
203
|
+
className={cx(
|
|
204
|
+
"inline-flex cursor-pointer self-start rounded-xs transition duration-150 ease-out active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue focus-visible:ring-offset-2",
|
|
205
|
+
ringOffset,
|
|
206
|
+
)}
|
|
207
|
+
>
|
|
208
|
+
<Logo
|
|
209
|
+
variant="lockup"
|
|
210
|
+
size="md"
|
|
211
|
+
tone={isCanvas ? "default" : "inverse"}
|
|
212
|
+
wordmark={brand}
|
|
213
|
+
label={brand}
|
|
214
|
+
/>
|
|
215
|
+
</a>
|
|
216
|
+
|
|
217
|
+
{tagline ? (
|
|
218
|
+
<p className={cx("text-body-sm", mutedText)}>{tagline}</p>
|
|
219
|
+
) : null}
|
|
220
|
+
</div>
|
|
153
221
|
|
|
154
|
-
<ul className="grid flex-1 grid-cols-2 gap-x-lg gap-y-lg sm:grid-cols-3">
|
|
222
|
+
<ul className="grid min-w-0 flex-1 grid-cols-2 gap-x-lg gap-y-lg sm:grid-cols-3">
|
|
155
223
|
{columns.map((column) => (
|
|
156
|
-
<li key={column.title} className="flex flex-col gap-md">
|
|
157
|
-
<p className="text-label
|
|
158
|
-
{column.title}
|
|
159
|
-
</p>
|
|
224
|
+
<li key={column.title} className="flex min-w-0 flex-col gap-md">
|
|
225
|
+
<p className={cx("text-label", titleInk)}>{column.title}</p>
|
|
160
226
|
<ul className="flex flex-col gap-md">
|
|
161
227
|
{column.links.map((link) => (
|
|
162
|
-
<li key={link.label}>
|
|
163
|
-
<Link
|
|
228
|
+
<li key={link.label} className="min-w-0">
|
|
229
|
+
<Link
|
|
230
|
+
href={link.href}
|
|
231
|
+
tone={isCanvas ? "default" : "inverse"}
|
|
232
|
+
size="md"
|
|
233
|
+
onClick={linkHandler(link)}
|
|
234
|
+
>
|
|
164
235
|
{link.label}
|
|
165
236
|
</Link>
|
|
166
237
|
</li>
|
|
@@ -173,73 +244,83 @@ export const Footer = React.forwardRef<HTMLElement, FooterProps>(
|
|
|
173
244
|
</nav>
|
|
174
245
|
|
|
175
246
|
{/* Newsletter card. */}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
<h2
|
|
181
|
-
id="footer-newsletter-title"
|
|
182
|
-
className="text-heading-sm text-inverse-ink"
|
|
247
|
+
{showNewsletter ? (
|
|
248
|
+
<section
|
|
249
|
+
aria-labelledby={newsletterTitleId}
|
|
250
|
+
className={cx(panel, "flex flex-col p-lg lg:col-span-5")}
|
|
183
251
|
>
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
252
|
+
<h2
|
|
253
|
+
id={newsletterTitleId}
|
|
254
|
+
className={cx("text-heading-sm", titleInk)}
|
|
255
|
+
>
|
|
256
|
+
{newsletterTitle}
|
|
257
|
+
</h2>
|
|
258
|
+
<p className={cx("mt-xs text-body-md", mutedText)}>
|
|
259
|
+
{newsletterDescription}
|
|
260
|
+
</p>
|
|
189
261
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
>
|
|
194
|
-
<Input
|
|
195
|
-
id="footer-newsletter-email"
|
|
196
|
-
type="email"
|
|
197
|
-
name="email"
|
|
198
|
-
aria-label="Email address"
|
|
199
|
-
autoComplete="email"
|
|
200
|
-
tone="inverse"
|
|
201
|
-
size="md"
|
|
202
|
-
placeholder={emailPlaceholder}
|
|
203
|
-
value={email}
|
|
204
|
-
onChange={(event) => handleEmail(event.target.value)}
|
|
205
|
-
className="min-w-0 flex-1"
|
|
206
|
-
/>
|
|
207
|
-
<Button
|
|
208
|
-
type="submit"
|
|
209
|
-
variant="primary"
|
|
210
|
-
size="md"
|
|
211
|
-
className="shrink-0"
|
|
262
|
+
<form
|
|
263
|
+
onSubmit={handleSubmit}
|
|
264
|
+
className="mt-lg flex flex-col gap-sm sm:flex-row sm:items-center"
|
|
212
265
|
>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
266
|
+
<Input
|
|
267
|
+
type="email"
|
|
268
|
+
name="email"
|
|
269
|
+
aria-label="Email address"
|
|
270
|
+
autoComplete="email"
|
|
271
|
+
tone={isCanvas ? "default" : "inverse"}
|
|
272
|
+
size="md"
|
|
273
|
+
placeholder={emailPlaceholder}
|
|
274
|
+
value={email}
|
|
275
|
+
onChange={(event) => handleEmail(event.target.value)}
|
|
276
|
+
className="min-w-0 flex-1"
|
|
277
|
+
/>
|
|
278
|
+
<Button
|
|
279
|
+
type="submit"
|
|
280
|
+
variant="primary"
|
|
281
|
+
size="md"
|
|
282
|
+
className="shrink-0"
|
|
283
|
+
>
|
|
284
|
+
{submitLabel}
|
|
285
|
+
</Button>
|
|
286
|
+
</form>
|
|
216
287
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
288
|
+
<p
|
|
289
|
+
role="status"
|
|
290
|
+
aria-live="polite"
|
|
291
|
+
className={cx(
|
|
292
|
+
"mt-sm text-caption text-primary transition duration-200 ease-out",
|
|
293
|
+
subscribed ? "opacity-100" : "opacity-0",
|
|
294
|
+
)}
|
|
295
|
+
>
|
|
296
|
+
{subscribed ? subscribedMessage : "\u00A0"}
|
|
297
|
+
</p>
|
|
298
|
+
</section>
|
|
299
|
+
) : null}
|
|
228
300
|
|
|
229
|
-
{/* Legal row — copyright left, legal links right. */}
|
|
301
|
+
{/* Legal row — copyright left, legal links right. At 375px they stack. */}
|
|
230
302
|
<div
|
|
231
303
|
className={cx(
|
|
232
|
-
|
|
233
|
-
"flex flex-col gap-md px-lg py-md sm:flex-row sm:items-center sm:justify-between lg:col-span-12",
|
|
304
|
+
panel,
|
|
305
|
+
"flex min-w-0 flex-col gap-md px-lg py-md sm:flex-row sm:items-center sm:justify-between lg:col-span-12",
|
|
234
306
|
)}
|
|
235
307
|
>
|
|
236
|
-
<p className="
|
|
237
|
-
|
|
308
|
+
<p className={cx("min-w-0 text-body-md", mutedText)}>
|
|
309
|
+
{copyright ?? (
|
|
310
|
+
<>
|
|
311
|
+
© {year} {brand}
|
|
312
|
+
</>
|
|
313
|
+
)}
|
|
238
314
|
</p>
|
|
239
|
-
<ul className="flex flex-wrap items-center gap-
|
|
315
|
+
<ul className="flex min-w-0 flex-wrap items-center gap-md">
|
|
240
316
|
{legalLinks.map((link) => (
|
|
241
|
-
<li key={link.label}>
|
|
242
|
-
<Link
|
|
317
|
+
<li key={link.label} className="min-w-0">
|
|
318
|
+
<Link
|
|
319
|
+
href={link.href}
|
|
320
|
+
tone={isCanvas ? "default" : "inverse-strong"}
|
|
321
|
+
size="md"
|
|
322
|
+
onClick={linkHandler(link)}
|
|
323
|
+
>
|
|
243
324
|
{link.label}
|
|
244
325
|
</Link>
|
|
245
326
|
</li>
|
|
@@ -1,31 +1,58 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { Footer } from "./Footer";
|
|
2
|
+
import { Footer, type FooterLink } from "./Footer";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
const [
|
|
6
|
-
|
|
4
|
+
export default function Preview() {
|
|
5
|
+
const [lastAction, setLastAction] = React.useState<string>(
|
|
6
|
+
"Click a link, the brand lockup, or subscribe.",
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
const handleLinkClick = (
|
|
10
|
+
link: FooterLink,
|
|
11
|
+
event: React.MouseEvent<HTMLAnchorElement>,
|
|
12
|
+
) => {
|
|
13
|
+
// A client-side router would call preventDefault here and push the route.
|
|
14
|
+
event.preventDefault();
|
|
15
|
+
setLastAction(`Link clicked: ${link.label} → ${link.href}`);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const handleBrandClick = (event: React.MouseEvent<HTMLAnchorElement>) => {
|
|
19
|
+
event.preventDefault();
|
|
20
|
+
setLastAction("Brand lockup clicked → route home");
|
|
21
|
+
};
|
|
7
22
|
|
|
8
23
|
return (
|
|
9
|
-
<div className="w-full max-w-
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
setSubscribed(false);
|
|
17
|
-
}}
|
|
18
|
-
onSubscribe={() => setSubscribed(true)}
|
|
19
|
-
/>
|
|
24
|
+
<div className="w-full max-w-3xl mx-auto space-y-lg p-lg">
|
|
25
|
+
<div
|
|
26
|
+
aria-live="polite"
|
|
27
|
+
className="rounded-md border border-hairline bg-surface-soft px-md py-sm text-body-sm text-body"
|
|
28
|
+
>
|
|
29
|
+
{lastAction}
|
|
30
|
+
</div>
|
|
20
31
|
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
<section className="space-y-md">
|
|
33
|
+
<p className="text-label text-muted">Inverse (default band)</p>
|
|
34
|
+
<Footer
|
|
35
|
+
onLinkClick={handleLinkClick}
|
|
36
|
+
onBrandClick={handleBrandClick}
|
|
37
|
+
tagline="The backend your side project deserves."
|
|
38
|
+
copyright="© 2024–2025 Boltbase, Inc."
|
|
39
|
+
onSubscribe={(email) => setLastAction(`Subscribed: ${email}`)}
|
|
40
|
+
/>
|
|
41
|
+
</section>
|
|
42
|
+
|
|
43
|
+
<section className="space-y-md">
|
|
44
|
+
<p className="text-label text-muted">
|
|
45
|
+
Canvas tone, no newsletter — the links panel takes the full row
|
|
46
|
+
</p>
|
|
47
|
+
<Footer
|
|
48
|
+
tone="canvas"
|
|
49
|
+
showNewsletter={false}
|
|
50
|
+
onLinkClick={handleLinkClick}
|
|
51
|
+
onBrandClick={handleBrandClick}
|
|
52
|
+
tagline="Follows the page in light and dark mode."
|
|
53
|
+
onSubscribe={(email) => setLastAction(`Subscribed: ${email}`)}
|
|
54
|
+
/>
|
|
55
|
+
</section>
|
|
27
56
|
</div>
|
|
28
57
|
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export default Preview;
|
|
58
|
+
}
|