@lets-ship/site 1.0.0 → 2.0.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/blog/article-view.d.ts.map +1 -1
- package/dist/blog/article-view.js +2 -1
- package/dist/blog/article-view.js.map +1 -1
- package/dist/blog/batches.d.ts +13 -0
- package/dist/blog/batches.d.ts.map +1 -0
- package/dist/blog/batches.js +17 -0
- package/dist/blog/batches.js.map +1 -0
- package/dist/blog/index-view.d.ts +5 -0
- package/dist/blog/index-view.d.ts.map +1 -1
- package/dist/blog/index-view.js +25 -8
- package/dist/blog/index-view.js.map +1 -1
- package/dist/blog/more-posts.d.ts +17 -0
- package/dist/blog/more-posts.d.ts.map +1 -0
- package/dist/blog/more-posts.js +65 -0
- package/dist/blog/more-posts.js.map +1 -0
- package/dist/config/site-config.d.ts +49 -2
- package/dist/config/site-config.d.ts.map +1 -1
- package/dist/config/site-config.js +46 -1
- package/dist/config/site-config.js.map +1 -1
- package/dist/i18n/tables/de.d.ts.map +1 -1
- package/dist/i18n/tables/de.js +17 -0
- package/dist/i18n/tables/de.js.map +1 -1
- package/dist/i18n/tables/en.d.ts.map +1 -1
- package/dist/i18n/tables/en.js +17 -0
- package/dist/i18n/tables/en.js.map +1 -1
- package/dist/i18n/tables/es.d.ts.map +1 -1
- package/dist/i18n/tables/es.js +17 -0
- package/dist/i18n/tables/es.js.map +1 -1
- package/dist/i18n/tables/fr.d.ts.map +1 -1
- package/dist/i18n/tables/fr.js +17 -0
- package/dist/i18n/tables/fr.js.map +1 -1
- package/dist/i18n/tables/nl.d.ts.map +1 -1
- package/dist/i18n/tables/nl.js +17 -0
- package/dist/i18n/tables/nl.js.map +1 -1
- package/dist/i18n/tables/pt.d.ts.map +1 -1
- package/dist/i18n/tables/pt.js +17 -0
- package/dist/i18n/tables/pt.js.map +1 -1
- package/dist/i18n/tables/tr.d.ts.map +1 -1
- package/dist/i18n/tables/tr.js +17 -0
- package/dist/i18n/tables/tr.js.map +1 -1
- package/dist/i18n/types.d.ts +27 -0
- package/dist/i18n/types.d.ts.map +1 -1
- package/dist/layout/footer.d.ts +9 -5
- package/dist/layout/footer.d.ts.map +1 -1
- package/dist/layout/footer.js +71 -8
- package/dist/layout/footer.js.map +1 -1
- package/dist/layout/frame.d.ts +14 -0
- package/dist/layout/frame.d.ts.map +1 -0
- package/dist/layout/frame.js +15 -0
- package/dist/layout/frame.js.map +1 -0
- package/dist/layout/header-menu.d.ts +27 -0
- package/dist/layout/header-menu.d.ts.map +1 -0
- package/dist/layout/header-menu.js +89 -0
- package/dist/layout/header-menu.js.map +1 -0
- package/dist/layout/header.d.ts +12 -0
- package/dist/layout/header.d.ts.map +1 -0
- package/dist/layout/header.js +101 -0
- package/dist/layout/header.js.map +1 -0
- package/dist/layout/nav-width.d.ts +29 -0
- package/dist/layout/nav-width.d.ts.map +1 -0
- package/dist/layout/nav-width.js +32 -0
- package/dist/layout/nav-width.js.map +1 -0
- package/dist/layout/nav.d.ts +13 -0
- package/dist/layout/nav.d.ts.map +1 -0
- package/dist/layout/nav.js +5 -0
- package/dist/layout/nav.js.map +1 -0
- package/dist/layout/root.d.ts.map +1 -1
- package/dist/layout/root.js +8 -1
- package/dist/layout/root.js.map +1 -1
- package/dist/mdx/allow-list.d.ts +2 -2
- package/dist/mdx/allow-list.d.ts.map +1 -1
- package/dist/mdx/allow-list.js +6 -0
- package/dist/mdx/allow-list.js.map +1 -1
- package/dist/mdx/components.d.ts +4 -1
- package/dist/mdx/components.d.ts.map +1 -1
- package/dist/mdx/components.js +14 -4
- package/dist/mdx/components.js.map +1 -1
- package/dist/node/errors.js +1 -1
- package/dist/node/errors.js.map +1 -1
- package/dist/site/app.d.ts.map +1 -1
- package/dist/site/app.js +3 -2
- package/dist/site/app.js.map +1 -1
- package/dist/site/site-page.d.ts.map +1 -1
- package/dist/site/site-page.js +4 -4
- package/dist/site/site-page.js.map +1 -1
- package/dist/website/blocks/announcement-dismiss.d.ts +13 -0
- package/dist/website/blocks/announcement-dismiss.d.ts.map +1 -0
- package/dist/website/blocks/announcement-dismiss.js +49 -0
- package/dist/website/blocks/announcement-dismiss.js.map +1 -0
- package/dist/website/blocks/announcement-views.d.ts +24 -0
- package/dist/website/blocks/announcement-views.d.ts.map +1 -0
- package/dist/website/blocks/announcement-views.js +31 -0
- package/dist/website/blocks/announcement-views.js.map +1 -0
- package/dist/website/blocks/button.d.ts +21 -0
- package/dist/website/blocks/button.d.ts.map +1 -0
- package/dist/website/blocks/button.js +32 -0
- package/dist/website/blocks/button.js.map +1 -0
- package/dist/website/blocks/call-to-action-views.d.ts +15 -0
- package/dist/website/blocks/call-to-action-views.d.ts.map +1 -0
- package/dist/website/blocks/call-to-action-views.js +36 -0
- package/dist/website/blocks/call-to-action-views.js.map +1 -0
- package/dist/website/blocks/card-grid-views.d.ts +41 -0
- package/dist/website/blocks/card-grid-views.d.ts.map +1 -0
- package/dist/website/blocks/card-grid-views.js +94 -0
- package/dist/website/blocks/card-grid-views.js.map +1 -0
- package/dist/website/blocks/carousel-controls.d.ts +13 -0
- package/dist/website/blocks/carousel-controls.d.ts.map +1 -0
- package/dist/website/blocks/carousel-controls.js +48 -0
- package/dist/website/blocks/carousel-controls.js.map +1 -0
- package/dist/website/blocks/carousel.d.ts +16 -0
- package/dist/website/blocks/carousel.d.ts.map +1 -0
- package/dist/website/blocks/carousel.js +12 -0
- package/dist/website/blocks/carousel.js.map +1 -0
- package/dist/website/blocks/catalog.d.ts +35 -0
- package/dist/website/blocks/catalog.d.ts.map +1 -0
- package/dist/website/blocks/catalog.js +26 -0
- package/dist/website/blocks/catalog.js.map +1 -0
- package/dist/website/blocks/commerce.d.ts +9 -16
- package/dist/website/blocks/commerce.d.ts.map +1 -1
- package/dist/website/blocks/commerce.js +12 -13
- package/dist/website/blocks/commerce.js.map +1 -1
- package/dist/website/blocks/contact-views.d.ts +28 -0
- package/dist/website/blocks/contact-views.d.ts.map +1 -0
- package/dist/website/blocks/contact-views.js +55 -0
- package/dist/website/blocks/contact-views.js.map +1 -0
- package/dist/website/blocks/content.d.ts +12 -20
- package/dist/website/blocks/content.d.ts.map +1 -1
- package/dist/website/blocks/content.js +18 -9
- package/dist/website/blocks/content.js.map +1 -1
- package/dist/website/blocks/empty-state-views.d.ts +32 -0
- package/dist/website/blocks/empty-state-views.d.ts.map +1 -0
- package/dist/website/blocks/empty-state-views.js +39 -0
- package/dist/website/blocks/empty-state-views.js.map +1 -0
- package/dist/website/blocks/faq-views.d.ts +20 -0
- package/dist/website/blocks/faq-views.d.ts.map +1 -0
- package/dist/website/blocks/faq-views.js +38 -0
- package/dist/website/blocks/faq-views.js.map +1 -0
- package/dist/website/blocks/feature-views.d.ts +17 -0
- package/dist/website/blocks/feature-views.d.ts.map +1 -0
- package/dist/website/blocks/feature-views.js +40 -0
- package/dist/website/blocks/feature-views.js.map +1 -0
- package/dist/website/blocks/hero-views.d.ts +15 -0
- package/dist/website/blocks/hero-views.d.ts.map +1 -0
- package/dist/website/blocks/hero-views.js +27 -0
- package/dist/website/blocks/hero-views.js.map +1 -0
- package/dist/website/blocks/icons.d.ts +63 -0
- package/dist/website/blocks/icons.d.ts.map +1 -0
- package/dist/website/blocks/icons.js +63 -0
- package/dist/website/blocks/icons.js.map +1 -0
- package/dist/website/blocks/list.d.ts +20 -0
- package/dist/website/blocks/list.d.ts.map +1 -0
- package/dist/website/blocks/list.js +29 -0
- package/dist/website/blocks/list.js.map +1 -0
- package/dist/website/blocks/logo-stats-views.d.ts +29 -0
- package/dist/website/blocks/logo-stats-views.d.ts.map +1 -0
- package/dist/website/blocks/logo-stats-views.js +51 -0
- package/dist/website/blocks/logo-stats-views.js.map +1 -0
- package/dist/website/blocks/marketing.d.ts +11 -22
- package/dist/website/blocks/marketing.d.ts.map +1 -1
- package/dist/website/blocks/marketing.js +12 -14
- package/dist/website/blocks/marketing.js.map +1 -1
- package/dist/website/blocks/media-views.d.ts +17 -0
- package/dist/website/blocks/media-views.d.ts.map +1 -0
- package/dist/website/blocks/media-views.js +24 -0
- package/dist/website/blocks/media-views.js.map +1 -0
- package/dist/website/blocks/newsletter-views.d.ts +26 -0
- package/dist/website/blocks/newsletter-views.d.ts.map +1 -0
- package/dist/website/blocks/newsletter-views.js +43 -0
- package/dist/website/blocks/newsletter-views.js.map +1 -0
- package/dist/website/blocks/parts.d.ts +19 -1
- package/dist/website/blocks/parts.d.ts.map +1 -1
- package/dist/website/blocks/parts.js +15 -2
- package/dist/website/blocks/parts.js.map +1 -1
- package/dist/website/blocks/sections.d.ts +27 -0
- package/dist/website/blocks/sections.d.ts.map +1 -0
- package/dist/website/blocks/sections.js +27 -0
- package/dist/website/blocks/sections.js.map +1 -0
- package/dist/website/blocks/team-views.d.ts +24 -0
- package/dist/website/blocks/team-views.d.ts.map +1 -0
- package/dist/website/blocks/team-views.js +45 -0
- package/dist/website/blocks/team-views.js.map +1 -0
- package/dist/website/blocks/testimonial-views.d.ts +24 -0
- package/dist/website/blocks/testimonial-views.d.ts.map +1 -0
- package/dist/website/blocks/testimonial-views.js +68 -0
- package/dist/website/blocks/testimonial-views.js.map +1 -0
- package/dist/website/blocks/variant.d.ts +28 -0
- package/dist/website/blocks/variant.d.ts.map +1 -0
- package/dist/website/blocks/variant.js +58 -0
- package/dist/website/blocks/variant.js.map +1 -0
- package/package.json +3 -2
- package/styles.css +840 -6
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
+
import { type ContactProps, type ContactVariant } from "./contact-views.js";
|
|
3
|
+
import { type FaqProps, type FaqVariant } from "./faq-views.js";
|
|
2
4
|
import { type Action } from "./parts.js";
|
|
3
5
|
type Plan = {
|
|
4
6
|
readonly name: string;
|
|
@@ -11,7 +13,8 @@ type Plan = {
|
|
|
11
13
|
readonly highlight?: boolean;
|
|
12
14
|
};
|
|
13
15
|
/** Plans side by side. Prices are text, so the content says the currency and the terms. */
|
|
14
|
-
export declare function Pricing({ title, intro, plans, }: {
|
|
16
|
+
export declare function Pricing({ id, title, intro, plans, }: {
|
|
17
|
+
readonly id?: string;
|
|
15
18
|
readonly title?: string;
|
|
16
19
|
readonly intro?: string;
|
|
17
20
|
readonly plans: readonly Plan[];
|
|
@@ -20,22 +23,12 @@ export declare function Pricing({ title, intro, plans, }: {
|
|
|
20
23
|
* Questions and answers, each open on click, with the same list as FAQPage structured data, so
|
|
21
24
|
* the markup never says what the page does not.
|
|
22
25
|
*/
|
|
23
|
-
export declare function Faq({
|
|
24
|
-
readonly
|
|
25
|
-
readonly items: ReadonlyArray<{
|
|
26
|
-
readonly q: string;
|
|
27
|
-
readonly a: string;
|
|
28
|
-
}>;
|
|
26
|
+
export declare function Faq({ variant, ...props }: FaqProps & {
|
|
27
|
+
readonly variant?: FaqVariant;
|
|
29
28
|
}): ReactElement;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
export declare function Contact({ title, email, phone, address, }: {
|
|
35
|
-
readonly title?: string;
|
|
36
|
-
readonly email?: string;
|
|
37
|
-
readonly phone?: string;
|
|
38
|
-
readonly address?: string;
|
|
29
|
+
/** How to reach the people behind the site: links, a form, or both. */
|
|
30
|
+
export declare function Contact({ variant, ...props }: ContactProps & {
|
|
31
|
+
readonly variant?: ContactVariant;
|
|
39
32
|
}): ReactElement;
|
|
40
33
|
export {};
|
|
41
34
|
//# sourceMappingURL=commerce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commerce.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/commerce.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"commerce.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/commerce.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAoB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAe,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|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { CONTACT_VARIANTS, contactView } from "./contact-views.js";
|
|
3
|
+
import { FAQ_VARIANTS, faqView } from "./faq-views.js";
|
|
4
|
+
import { gridColumns, keyed } from "./list.js";
|
|
4
5
|
import { ActionLink, Section } from "./parts.js";
|
|
6
|
+
import { filled, variantOf } from "./variant.js";
|
|
5
7
|
function PlanCard({ plan }) {
|
|
6
|
-
return (_jsxs("li", { className: plan.highlight ? "site-card site-card-highlight" : "site-card", children: [_jsx("h3", { className: "site-card-title", children: plan.name }), _jsxs("p", { className: "site-price", children: [plan.price, plan.period ? _jsxs("span", { className: "site-card-text", children: [" ", plan.period] }) : null] }), plan.description ? _jsx("p", { className: "site-card-text", children: plan.description }) : null, _jsx("ul", { className: "site-card-text my-4 flex flex-col gap-1", children: plan.features.map((feature) => (_jsx("li", { children: feature },
|
|
8
|
+
return (_jsxs("li", { className: plan.highlight ? "site-card site-card-highlight" : "site-card", children: [_jsx("h3", { className: "site-card-title", children: plan.name }), _jsxs("p", { className: "site-price", children: [plan.price, plan.period ? _jsxs("span", { className: "site-card-text", children: [" ", plan.period] }) : null] }), plan.description ? _jsx("p", { className: "site-card-text", children: plan.description }) : null, _jsx("ul", { className: "site-card-text my-4 flex flex-col gap-1", children: keyed(plan.features).map(({ key, item: feature }) => (_jsx("li", { children: feature }, key))) }), _jsx(ActionLink, { action: plan.action, secondary: !plan.highlight })] }));
|
|
7
9
|
}
|
|
8
10
|
/** Plans side by side. Prices are text, so the content says the currency and the terms. */
|
|
9
|
-
export function Pricing({ title, intro, plans, }) {
|
|
10
|
-
return (_jsx(Section, { name: "Pricing", title: title, intro: intro, children: _jsx("ul", { className: "grid
|
|
11
|
+
export function Pricing({ id, title, intro, plans, }) {
|
|
12
|
+
return (_jsx(Section, { name: "Pricing", id: id, title: title, intro: intro, children: _jsx("ul", { className: "site-grid", "data-cols": gridColumns(plans.length, 3), children: keyed(filled("Pricing", undefined, "plans", plans)).map(({ key, item: plan }) => (_jsx(PlanCard, { plan: plan }, key))) }) }));
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Questions and answers, each open on click, with the same list as FAQPage structured data, so
|
|
14
16
|
* the markup never says what the page does not.
|
|
15
17
|
*/
|
|
16
|
-
export function Faq({
|
|
17
|
-
return (
|
|
18
|
+
export function Faq({ variant, ...props }) {
|
|
19
|
+
return faqView(variantOf("Faq", variant, FAQ_VARIANTS), props);
|
|
18
20
|
}
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
export function Contact({ title, email, phone, address, }) {
|
|
24
|
-
return (_jsx(Section, { name: "Contact", title: title, children: _jsxs("ul", { className: "site-card flex flex-col gap-2", children: [email ? (_jsx("li", { children: _jsx("a", { href: `mailto:${email}`, className: "site-text-link", children: email }) })) : null, phone ? (_jsx("li", { children: _jsx("a", { href: `tel:${phone.replace(/\s+/g, "")}`, className: "site-text-link", children: phone }) })) : null, address ? _jsx("li", { className: "site-card-text", children: address }) : null] }) }));
|
|
21
|
+
/** How to reach the people behind the site: links, a form, or both. */
|
|
22
|
+
export function Contact({ variant, ...props }) {
|
|
23
|
+
return contactView(variantOf("Contact", variant, CONTACT_VARIANTS), props);
|
|
25
24
|
}
|
|
26
25
|
//# sourceMappingURL=commerce.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commerce.js","sourceRoot":"","sources":["../../../src/website/blocks/commerce.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"commerce.js","sourceRoot":"","sources":["../../../src/website/blocks/commerce.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAA0C,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC3G,OAAO,EAAE,YAAY,EAAkC,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACvF,OAAO,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AAE,KAAK,EAAE,KAAK,YACzD,aAAI,SAAS,EAAC,WAAW,eAAY,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,YAC/D,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACjF,KAAC,QAAQ,IAAW,IAAI,EAAE,IAAI,IAAf,GAAG,CAAgB,CAClC,CAAC,GACE,GACI,CACV,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAgD;IACtF,OAAO,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAwD;IAClG,OAAO,WAAW,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,EAAE,gBAAgB,CAAC,EAAE,KAAK,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { SiteStrings } from "../../i18n/strings.js";
|
|
3
|
+
import { type Anchor } from "./parts.js";
|
|
4
|
+
export declare const CONTACT_VARIANTS: readonly ["links", "form", "split"];
|
|
5
|
+
export type ContactVariant = (typeof CONTACT_VARIANTS)[number];
|
|
6
|
+
export type ContactProps = Anchor & {
|
|
7
|
+
readonly title?: string;
|
|
8
|
+
readonly intro?: string;
|
|
9
|
+
readonly email?: string;
|
|
10
|
+
readonly phone?: string;
|
|
11
|
+
readonly address?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Where the form posts, for the form and split layouts. A static site has no server of its
|
|
14
|
+
* own, so this is the site's form service or its own Worker route.
|
|
15
|
+
*/
|
|
16
|
+
readonly action?: string;
|
|
17
|
+
/** Adds a phone field to the form. */
|
|
18
|
+
readonly phoneField?: boolean;
|
|
19
|
+
/** The topics a visitor picks from; a subject field appears when there are any. */
|
|
20
|
+
readonly subjects?: readonly string[];
|
|
21
|
+
readonly strings: SiteStrings;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* How to reach the people behind the site: links the visitor's own apps open, a form that posts
|
|
25
|
+
* to the site's form service, or both side by side.
|
|
26
|
+
*/
|
|
27
|
+
export declare function contactView(variant: ContactVariant, props: ContactProps): ReactElement;
|
|
28
|
+
//# sourceMappingURL=contact-views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/contact-views.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzD,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,YAAY,CAAC;AAGlD,eAAO,MAAM,gBAAgB,qCAAyB,CAAC;AACvD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,sCAAsC;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC9B,CAAC;AAqIF;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,GAAG,YAAY,CAatF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Contact layouts. The form and split layouts are adapted from HyperUI's contact forms
|
|
4
|
+
* (https://github.com/markmead/hyperui, MIT, Copyright (c) Mark Mead): colours, type and radii
|
|
5
|
+
* come from the brand instead of fixed Tailwind colours.
|
|
6
|
+
*/
|
|
7
|
+
import { useId } from "react";
|
|
8
|
+
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
9
|
+
import { BlockIcon } from "./icons.js";
|
|
10
|
+
import { keyed } from "./list.js";
|
|
11
|
+
import { Section } from "./parts.js";
|
|
12
|
+
import { anchorOf, required } from "./variant.js";
|
|
13
|
+
export const CONTACT_VARIANTS = BLOCK_VARIANTS.Contact;
|
|
14
|
+
const telHref = (phone) => `tel:${phone.replace(/\s+/g, "")}`;
|
|
15
|
+
/** The block's own look: links the visitor's mail and phone apps open, and the address. */
|
|
16
|
+
function LinkList(props) {
|
|
17
|
+
return (_jsxs("ul", { className: "site-card flex flex-col gap-2", children: [props.email ? (_jsx("li", { children: _jsx("a", { href: `mailto:${props.email}`, className: "site-text-link", children: props.email }) })) : null, props.phone ? (_jsx("li", { children: _jsx("a", { href: telHref(props.phone), className: "site-text-link", children: props.phone }) })) : null, props.address ? _jsx("li", { className: "site-card-text", children: props.address }) : null] }));
|
|
18
|
+
}
|
|
19
|
+
function Field({ id, label, children, }) {
|
|
20
|
+
return (_jsxs("div", { children: [_jsx("label", { htmlFor: id, className: "site-label", children: label }), children] }));
|
|
21
|
+
}
|
|
22
|
+
/** The form: name, email, the optional phone and subject, and the message. */
|
|
23
|
+
function ContactForm({ props, variant }) {
|
|
24
|
+
const action = required("Contact", variant, "action", props.action, 'add action="<the URL the form posts to>"');
|
|
25
|
+
const s = props.strings;
|
|
26
|
+
// Two forms on one page (a form and a split block) must not share field ids, or a label
|
|
27
|
+
// names the other form's field.
|
|
28
|
+
const base = useId();
|
|
29
|
+
const id = (field) => `${base}-${field}`;
|
|
30
|
+
return (_jsxs("form", { method: "post", action: action, className: "site-form flex flex-col gap-4", children: [_jsx(Field, { id: id("name"), label: s.formName, children: _jsx("input", { id: id("name"), name: "name", type: "text", autoComplete: "name", required: true, className: "site-input" }) }), _jsx(Field, { id: id("email"), label: s.formEmail, children: _jsx("input", { id: id("email"), name: "email", type: "email", autoComplete: "email", required: true, className: "site-input" }) }), props.phoneField ? (_jsx(Field, { id: id("phone"), label: s.formPhone, children: _jsx("input", { id: id("phone"), name: "phone", type: "tel", autoComplete: "tel", className: "site-input" }) })) : null, props.subjects && props.subjects.length > 0 ? (_jsx(Field, { id: id("subject"), label: s.formSubject, children: _jsx("select", { id: id("subject"), name: "subject", className: "site-input", children: keyed(props.subjects).map(({ key, item: subject }) => (_jsx("option", { children: subject }, key))) }) })) : null, _jsx(Field, { id: id("message"), label: s.formMessage, children: _jsx("textarea", { id: id("message"), name: "message", rows: 5, required: true, className: "site-input resize-y" }) }), _jsx("button", { type: "submit", className: "site-button justify-center", children: s.formSend })] }));
|
|
31
|
+
}
|
|
32
|
+
/** The ways to reach the site's people, each after its icon. */
|
|
33
|
+
function Details(props) {
|
|
34
|
+
const s = props.strings;
|
|
35
|
+
const rows = [
|
|
36
|
+
props.phone ? { label: s.formPhone, icon: "phone", value: props.phone, href: telHref(props.phone) } : null,
|
|
37
|
+
props.email ? { label: s.formEmail, icon: "envelope", value: props.email, href: `mailto:${props.email}` } : null,
|
|
38
|
+
props.address ? { label: s.contactAddress, icon: "map-pin", value: props.address, href: undefined } : null,
|
|
39
|
+
].filter((row) => row !== null);
|
|
40
|
+
return (_jsx("dl", { className: "mt-6 flex flex-col gap-3", children: keyed(rows).map(({ key, item: row }) => (_jsxs("div", { children: [_jsx("dt", { className: "sr-only", children: row.label }), _jsxs("dd", { className: "site-contact-detail grid grid-cols-[24px_1fr] items-center gap-2", children: [_jsx(BlockIcon, { name: row.icon, className: "size-5" }), row.href ? (_jsx("a", { href: row.href, className: "site-text-link", children: row.value })) : (_jsx("span", { children: row.value }))] })] }, key))) }));
|
|
41
|
+
}
|
|
42
|
+
/** The heading, intro and details on one side, the form on the other. */
|
|
43
|
+
function SplitContact(props) {
|
|
44
|
+
return (_jsx("section", { id: anchorOf("Contact", props.id), className: "site-block", "data-block": "Contact", "data-variant": "split", children: _jsxs("div", { className: "site-container grid gap-10 md:grid-cols-2", children: [_jsxs("div", { children: [props.title ? _jsx("h2", { className: "site-block-title", children: props.title }) : null, props.intro ? _jsx("p", { className: "site-block-intro", children: props.intro }) : null, _jsx(Details, { ...props })] }), _jsx("div", { className: "site-card", children: _jsx(ContactForm, { props: props, variant: "split" }) })] }) }));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* How to reach the people behind the site: links the visitor's own apps open, a form that posts
|
|
48
|
+
* to the site's form service, or both side by side.
|
|
49
|
+
*/
|
|
50
|
+
export function contactView(variant, props) {
|
|
51
|
+
if (variant === "split")
|
|
52
|
+
return _jsx(SplitContact, { ...props });
|
|
53
|
+
return (_jsx(Section, { name: "Contact", id: props.id, title: props.title, intro: props.intro, children: variant === "links" ? (_jsx(LinkList, { ...props })) : (_jsx("div", { className: "site-card max-w-xl", "data-variant": "form", children: _jsx(ContactForm, { props: props, variant: "form" }) })) }));
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=contact-views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-views.js","sourceRoot":"","sources":["../../../src/website/blocks/contact-views.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OA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ACV,CAAC;AACH,CAAC"}
|
|
@@ -1,41 +1,33 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from "react";
|
|
2
|
-
import { type
|
|
2
|
+
import { type FeatureGridProps, type FeatureGridVariant } from "./feature-views.js";
|
|
3
|
+
import { type TeamProps, type TeamVariant } from "./team-views.js";
|
|
4
|
+
import { type TestimonialsProps, type TestimonialsVariant } from "./testimonial-views.js";
|
|
3
5
|
type Item = {
|
|
4
6
|
readonly title: string;
|
|
5
7
|
readonly text: string;
|
|
6
8
|
};
|
|
7
9
|
/** What the product or service offers, as a grid of short cards. */
|
|
8
|
-
export declare function FeatureGrid({
|
|
9
|
-
readonly
|
|
10
|
-
readonly intro?: string;
|
|
11
|
-
readonly items: readonly Item[];
|
|
10
|
+
export declare function FeatureGrid({ variant, ...props }: FeatureGridProps & {
|
|
11
|
+
readonly variant?: FeatureGridVariant;
|
|
12
12
|
}): ReactElement;
|
|
13
13
|
/**
|
|
14
14
|
* Numbered steps. With `items` it is a website block: a band of numbered cards. With children it
|
|
15
15
|
* is the docs form, fumadocs' Steps, so one name serves both kinds of page.
|
|
16
16
|
*/
|
|
17
|
-
export declare function Steps({ title, items, children, }: {
|
|
17
|
+
export declare function Steps({ id, title, items, children, }: {
|
|
18
|
+
/** The website block's anchor; the docs form has its headings for that. */
|
|
19
|
+
readonly id?: string;
|
|
18
20
|
readonly title?: string;
|
|
19
21
|
readonly items?: readonly Item[];
|
|
20
22
|
readonly children?: ReactNode;
|
|
21
23
|
}): ReactElement;
|
|
22
24
|
/** What customers say, each quote with the person who said it. */
|
|
23
|
-
export declare function Testimonials({
|
|
24
|
-
readonly
|
|
25
|
-
readonly items: ReadonlyArray<{
|
|
26
|
-
readonly quote: string;
|
|
27
|
-
readonly name: string;
|
|
28
|
-
readonly role?: string;
|
|
29
|
-
}>;
|
|
25
|
+
export declare function Testimonials({ variant, ...props }: TestimonialsProps & {
|
|
26
|
+
readonly variant?: TestimonialsVariant;
|
|
30
27
|
}): ReactElement;
|
|
31
28
|
/** The people behind the site, each with a role and an optional photo. */
|
|
32
|
-
export declare function Team({
|
|
33
|
-
readonly
|
|
34
|
-
readonly members: ReadonlyArray<{
|
|
35
|
-
readonly name: string;
|
|
36
|
-
readonly role: string;
|
|
37
|
-
readonly image?: BlockImage;
|
|
38
|
-
}>;
|
|
29
|
+
export declare function Team({ variant, ...props }: TeamProps & {
|
|
30
|
+
readonly variant?: TeamVariant;
|
|
39
31
|
}): ReactElement;
|
|
40
32
|
export {};
|
|
41
33
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAEN,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAEvB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAiB,KAAK,SAAS,EAAE,KAAK,WAAW,EAAY,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAEN,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAExB,MAAM,wBAAwB,CAAC;AAGhC,KAAK,IAAI,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,oEAAoE;AACpE,wBAAgB,WAAW,CAAC,EAC3B,OAAO,EACP,GAAG,KAAK,EACR,EAAE,gBAAgB,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAAE,GAAG,YAAY,CAE7E;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,EACrB,EAAE,EACF,KAAK,EACL,KAAK,EACL,QAAQ,GACR,EAAE;IACF,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,IAAI,EAAE,CAAC;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC9B,GAAG,YAAY,CAmBf;AAED,kEAAkE;AAClE,wBAAgB,YAAY,CAAC,EAC5B,OAAO,EACP,GAAG,KAAK,EACR,EAAE,iBAAiB,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAAE,GAAG,YAAY,CAE/E;AAED,0EAA0E;AAC1E,wBAAgB,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,GAAG,YAAY,CAExG"}
|
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Steps as StepsColumn } from "fumadocs-ui/components/steps";
|
|
3
|
+
import { FEATURE_GRID_VARIANTS, featureGridView, } from "./feature-views.js";
|
|
4
|
+
import { gridColumns, keyed } from "./list.js";
|
|
3
5
|
import { Section } from "./parts.js";
|
|
6
|
+
import { TEAM_VARIANTS, teamView } from "./team-views.js";
|
|
7
|
+
import { TESTIMONIALS_VARIANTS, testimonialsView, } from "./testimonial-views.js";
|
|
8
|
+
import { BlockIdError, filled, variantOf } from "./variant.js";
|
|
4
9
|
/** What the product or service offers, as a grid of short cards. */
|
|
5
|
-
export function FeatureGrid({
|
|
6
|
-
return (
|
|
10
|
+
export function FeatureGrid({ variant, ...props }) {
|
|
11
|
+
return featureGridView(variantOf("FeatureGrid", variant, FEATURE_GRID_VARIANTS), props);
|
|
7
12
|
}
|
|
8
13
|
/**
|
|
9
14
|
* Numbered steps. With `items` it is a website block: a band of numbered cards. With children it
|
|
10
15
|
* is the docs form, fumadocs' Steps, so one name serves both kinds of page.
|
|
11
16
|
*/
|
|
12
|
-
export function Steps({ title, items, children, }) {
|
|
13
|
-
if (!items)
|
|
17
|
+
export function Steps({ id, title, items, children, }) {
|
|
18
|
+
if (!items) {
|
|
19
|
+
if (id !== undefined)
|
|
20
|
+
throw new BlockIdError("Steps", id);
|
|
14
21
|
return _jsx(StepsColumn, { children: children });
|
|
15
|
-
|
|
22
|
+
}
|
|
23
|
+
const steps = filled("Steps", undefined, "items", items);
|
|
24
|
+
return (_jsx(Section, { name: "Steps", id: id, title: title, children: _jsx("ol", { className: "site-grid", "data-cols": gridColumns(steps.length, 3), children: keyed(steps).map(({ key, item }, index) => (_jsxs("li", { className: "site-card", children: [_jsx("span", { className: "site-step-number", children: index + 1 }), _jsx("h3", { className: "site-card-title", children: item.title }), _jsx("p", { className: "site-card-text", children: item.text })] }, key))) }) }));
|
|
16
25
|
}
|
|
17
26
|
/** What customers say, each quote with the person who said it. */
|
|
18
|
-
export function Testimonials({
|
|
19
|
-
return (
|
|
27
|
+
export function Testimonials({ variant, ...props }) {
|
|
28
|
+
return testimonialsView(variantOf("Testimonials", variant, TESTIMONIALS_VARIANTS), props);
|
|
20
29
|
}
|
|
21
30
|
/** The people behind the site, each with a role and an optional photo. */
|
|
22
|
-
export function Team({
|
|
23
|
-
return (
|
|
31
|
+
export function Team({ variant, ...props }) {
|
|
32
|
+
return teamView(variantOf("Team", variant, TEAM_VARIANTS), props);
|
|
24
33
|
}
|
|
25
34
|
//# sourceMappingURL=content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../src/website/blocks/content.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,8BAA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EAAC,WAAW,eAAY,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,YAC/D,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3C,cAAc,SAAS,EAAC,WAAW,aAClC,eAAM,SAAS,EAAC,kBAAkB,YAAE,KAAK,GAAG,CAAC,GAAQ,EACrD,aAAI,SAAS,EAAC,iBAAiB,YAAE,IAAI,CAAC,KAAK,GAAM,EACjD,YAAG,SAAS,EAAC,gBAAgB,YAAE,IAAI,CAAC,IAAI,GAAK,KAHrC,GAAG,CAIP,CACL,CAAC,GACE,GACI,CACV,CAAC;AACH,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,YAAY,CAAC,EAC5B,OAAO,EACP,GAAG,KAAK,EACwD;IAChE,OAAO,gBAAgB,CAAC,SAAS,CAAC,cAAc,EAAE,OAAO,EAAE,qBAAqB,CAAC,EAAE,KAAK,CAAC,CAAC;AAC3F,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAkD;IACzF,OAAO,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { SiteStrings } from "../../i18n/strings.js";
|
|
3
|
+
import { type Action, type Anchor } from "./parts.js";
|
|
4
|
+
export declare const EMPTY_STATE_VARIANTS: readonly ["actions", "links", "signup"];
|
|
5
|
+
export type EmptyStateVariant = (typeof EMPTY_STATE_VARIANTS)[number];
|
|
6
|
+
export type EmptyLink = {
|
|
7
|
+
readonly title: string;
|
|
8
|
+
readonly text?: string;
|
|
9
|
+
readonly href: string;
|
|
10
|
+
};
|
|
11
|
+
export type EmptyStateProps = Anchor & {
|
|
12
|
+
/** A name from the block icon set, shown large over the title. */
|
|
13
|
+
readonly icon?: string;
|
|
14
|
+
readonly title: string;
|
|
15
|
+
readonly text?: string;
|
|
16
|
+
/** The way on: needed by the actions layout, and shown under the links of the links layout. */
|
|
17
|
+
readonly primary?: Action;
|
|
18
|
+
readonly secondary?: Action;
|
|
19
|
+
/** The pages to try instead: needed by the links layout. */
|
|
20
|
+
readonly links?: readonly EmptyLink[];
|
|
21
|
+
/** Where the signup form posts: needed by the signup layout. */
|
|
22
|
+
readonly action?: string;
|
|
23
|
+
/** A short line at the foot, such as when the page will be ready. */
|
|
24
|
+
readonly note?: string;
|
|
25
|
+
readonly strings: SiteStrings;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* A page or a section with nothing in it yet: the words that say so, and the way on. Buttons
|
|
29
|
+
* (actions), other pages to try (links), or a form to hear when it is ready (signup).
|
|
30
|
+
*/
|
|
31
|
+
export declare function emptyStateView(variant: EmptyStateVariant, props: EmptyStateProps): ReactElement;
|
|
32
|
+
//# sourceMappingURL=empty-state-views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/empty-state-views.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKzD,OAAO,EAAE,KAAK,MAAM,EAAW,KAAK,MAAM,EAAE,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,oBAAoB,yCAA4B,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,MAAM,SAAS,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAElG,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG;IACtC,kEAAkE;IAClE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,+FAA+F;IAC/F,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IACtC,gEAAgE;IAChE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,qEAAqE;IACrE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC9B,CAAC;AAyCF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,eAAe,GAAG,YAAY,CAmB/F"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Empty-state layouts, adapted from HyperUI's empty content
|
|
4
|
+
* (https://github.com/markmead/hyperui, MIT, Copyright (c) Mark Mead): colours, type and radii
|
|
5
|
+
* come from the brand instead of fixed Tailwind colours.
|
|
6
|
+
*/
|
|
7
|
+
import Link from "next/link";
|
|
8
|
+
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
9
|
+
import { BlockIcon } from "./icons.js";
|
|
10
|
+
import { keyed } from "./list.js";
|
|
11
|
+
import { EmailSignup } from "./newsletter-views.js";
|
|
12
|
+
import { Actions } from "./parts.js";
|
|
13
|
+
import { anchorOf, BlockPropError, required } from "./variant.js";
|
|
14
|
+
export const EMPTY_STATE_VARIANTS = BLOCK_VARIANTS.EmptyState;
|
|
15
|
+
function LinkCards({ links }) {
|
|
16
|
+
return (_jsx("ul", { className: "mt-8 flex flex-col gap-2 text-start", children: keyed(links).map(({ key, item: link }) => (_jsxs("li", { className: "site-card-frame site-card-linked relative p-4", children: [_jsx(Link, { href: link.href, className: "site-card-link site-person-name", children: link.title }), link.text ? _jsx("p", { className: "site-card-text mt-1", children: link.text }) : null] }, key))) }));
|
|
17
|
+
}
|
|
18
|
+
/** What the layout shows under the words: buttons, a list of pages, or a signup form. */
|
|
19
|
+
function Body({ props, variant }) {
|
|
20
|
+
if (variant === "actions") {
|
|
21
|
+
const primary = required("EmptyState", variant, "primary", props.primary, "add primary={{ label, href }}");
|
|
22
|
+
return _jsx(Actions, { primary: primary, secondary: props.secondary, center: true });
|
|
23
|
+
}
|
|
24
|
+
if (variant === "links") {
|
|
25
|
+
if (!props.links || props.links.length === 0)
|
|
26
|
+
throw new BlockPropError("EmptyState", variant, "links", "add links={[{ title, href }]}");
|
|
27
|
+
return (_jsxs(_Fragment, { children: [_jsx(LinkCards, { links: props.links }), _jsx(Actions, { primary: props.primary, center: true })] }));
|
|
28
|
+
}
|
|
29
|
+
const action = required("EmptyState", variant, "action", props.action, 'add action="<the URL the form posts to>"');
|
|
30
|
+
return (_jsx("div", { className: "mt-8", children: _jsx(EmailSignup, { action: action, strings: props.strings, center: true }) }));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A page or a section with nothing in it yet: the words that say so, and the way on. Buttons
|
|
34
|
+
* (actions), other pages to try (links), or a form to hear when it is ready (signup).
|
|
35
|
+
*/
|
|
36
|
+
export function emptyStateView(variant, props) {
|
|
37
|
+
return (_jsx("section", { id: anchorOf("EmptyState", props.id), className: "site-block", "data-block": "EmptyState", "data-variant": variant === "actions" ? undefined : variant, children: _jsx("div", { className: "site-container", children: _jsxs("div", { className: "mx-auto max-w-md text-center", children: [props.icon ? _jsx(BlockIcon, { name: props.icon, className: "site-empty-icon mx-auto mb-6 size-20" }) : null, _jsx("h2", { className: "site-block-title", children: props.title }), props.text ? _jsx("p", { className: "site-empty-text", children: props.text }) : null, _jsx(Body, { props: props, variant: variant }), props.note ? _jsx("p", { className: "site-card-text mt-6", children: props.note }) : null] }) }) }));
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=empty-state-views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state-views.js","sourceRoot":"","sources":["../../../src/website/blocks/empty-state-views.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAe,OAAO,EAAe,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAElE,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC,UAAU,CAAC;AAsB9D,SAAS,SAAS,CAAC,EAAE,KAAK,EAA4C;IACrE,OAAO,CACN,aAAI,SAAS,EAAC,qCAAqC,YACjD,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC1C,cAAc,SAAS,EAAC,+CAA+C,aACtE,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,EAAC,iCAAiC,YAChE,IAAI,CAAC,KAAK,GACL,EACN,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAG,SAAS,EAAC,qBAAqB,YAAE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AQ,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,EACpC,SAAS,EAAC,YAAY,gBACX,YAAY,kBACT,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,YAEzD,cAAK,SAAS,EAAC,gBAAgB,YAC9B,eAAK,SAAS,EAAC,8BAA8B,aAC3C,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,SAAS,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,EAAC,sCAAsC,GAAG,CAAC,CAAC,CAAC,IAAI,EACrG,aAAI,SAAS,EAAC,kBAAkB,YAAE,KAAK,CAAC,KAAK,GAAM,EAClD,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,YAAG,SAAS,EAAC,iBAAiB,YAAE,KAAK,CAAC,IAAI,GAAK,CAAC,CAAC,CAAC,IAAI,EACpE,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,EACvC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,YAAG,SAAS,EAAC,qBAAqB,YAAE,KAAK,CAAC,IAAI,GAAK,CAAC,CAAC,CAAC,IAAI,IACnE,GACD,GACG,CACV,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { type Anchor } from "./parts.js";
|
|
3
|
+
export declare const FAQ_VARIANTS: readonly ["cards", "boxed", "divided", "bar"];
|
|
4
|
+
export type FaqVariant = (typeof FAQ_VARIANTS)[number];
|
|
5
|
+
type Question = {
|
|
6
|
+
readonly q: string;
|
|
7
|
+
readonly a: string;
|
|
8
|
+
};
|
|
9
|
+
export type FaqProps = Anchor & {
|
|
10
|
+
readonly title?: string;
|
|
11
|
+
readonly intro?: string;
|
|
12
|
+
readonly items: readonly Question[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Questions and answers, each open on click, with the same list as FAQPage structured data, so
|
|
16
|
+
* the markup never says what the page does not.
|
|
17
|
+
*/
|
|
18
|
+
export declare function faqView(variant: FaqVariant, props: FaqProps): ReactElement;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=faq-views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faq-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/faq-views.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,YAAY,CAAC;AAGlD,eAAO,MAAM,YAAY,+CAAqB,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,KAAK,QAAQ,GAAG;IAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3D,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAC/B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;CACpC,CAAC;AAkDF;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,GAAG,YAAY,CAQ1E"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* FAQ layouts. The boxed, divided and bar layouts are adapted from HyperUI's FAQs
|
|
4
|
+
* (https://github.com/markmead/hyperui, MIT, Copyright (c) Mark Mead): colours, type and radii
|
|
5
|
+
* come from the brand instead of fixed Tailwind colours.
|
|
6
|
+
*/
|
|
7
|
+
import { CaretDown } from "@phosphor-icons/react/dist/ssr";
|
|
8
|
+
import { faqNode } from "../../seo/article.js";
|
|
9
|
+
import { JsonLd } from "../../seo/json-ld.js";
|
|
10
|
+
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
11
|
+
import { keyed } from "./list.js";
|
|
12
|
+
import { Section } from "./parts.js";
|
|
13
|
+
import { filled } from "./variant.js";
|
|
14
|
+
export const FAQ_VARIANTS = BLOCK_VARIANTS.Faq;
|
|
15
|
+
/** The class of each part of a question, per layout: the item, its summary and its answer. */
|
|
16
|
+
const PARTS = {
|
|
17
|
+
boxed: { item: "group", summary: "site-faq-summary site-faq-box", answer: "site-faq-answer px-4 pt-4" },
|
|
18
|
+
divided: { item: "group site-faq-divided py-4", summary: "site-faq-summary", answer: "site-faq-answer pt-4" },
|
|
19
|
+
bar: { item: "group site-faq-bar p-4", summary: "site-faq-summary", answer: "site-faq-answer pt-4" },
|
|
20
|
+
};
|
|
21
|
+
/** The block's own look: each question a card that opens on click. */
|
|
22
|
+
function CardQuestions({ items }) {
|
|
23
|
+
return (_jsx("div", { className: "flex flex-col gap-3", children: keyed(items).map(({ key, item }) => (_jsxs("details", { className: "site-card", children: [_jsx("summary", { className: "site-card-title cursor-pointer", children: item.q }), _jsx("p", { className: "site-card-text mt-2", children: item.a })] }, key))) }));
|
|
24
|
+
}
|
|
25
|
+
/** Questions with a caret that turns when one opens. */
|
|
26
|
+
function CaretQuestions({ items, variant, }) {
|
|
27
|
+
const parts = PARTS[variant];
|
|
28
|
+
return (_jsx("div", { className: variant === "divided" ? "flex max-w-3xl flex-col" : "flex max-w-3xl flex-col gap-4", "data-variant": variant, children: keyed(items).map(({ key, item }) => (_jsxs("details", { className: parts.item, children: [_jsxs("summary", { className: parts.summary, children: [_jsx("span", { children: item.q }), _jsx(CaretDown, { "aria-hidden": "true", className: "site-faq-caret size-5 shrink-0" })] }), _jsx("p", { className: parts.answer, children: item.a })] }, key))) }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Questions and answers, each open on click, with the same list as FAQPage structured data, so
|
|
32
|
+
* the markup never says what the page does not.
|
|
33
|
+
*/
|
|
34
|
+
export function faqView(variant, props) {
|
|
35
|
+
const items = filled("Faq", variant, "items", props.items);
|
|
36
|
+
return (_jsxs(Section, { name: "Faq", id: props.id, title: props.title, intro: props.intro, children: [_jsx(JsonLd, { json: JSON.stringify(faqNode(items)) }), variant === "cards" ? _jsx(CardQuestions, { items: items }) : _jsx(CaretQuestions, { items: items, variant: variant })] }));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=faq-views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faq-views.js","sourceRoot":"","sources":["../../../src/website/blocks/faq-views.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAe,OAAO,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,YAAY,GAAG,cAAc,CAAC,GAAG,CAAC;AAU/C,8FAA8F;AAC9F,MAAM,KAAK,GAAsG;IAChH,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,+BAA+B,EAAE,MAAM,EAAE,2BAA2B,EAAE;IACvG,OAAO,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,sBAAsB,EAAE;IAC7G,GAAG,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,kBAAkB,E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EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3D,OAAO,CACN,MAAC,OAAO,IAAC,IAAI,EAAC,KAAK,EAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,aACvE,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAI,EAC/C,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,KAAC,cAAc,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,IAClG,CACV,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { type Anchor } from "./parts.js";
|
|
3
|
+
export declare const FEATURE_GRID_VARIANTS: readonly ["cards", "split", "centered", "inline"];
|
|
4
|
+
export type FeatureGridVariant = (typeof FEATURE_GRID_VARIANTS)[number];
|
|
5
|
+
/** One feature; `icon` is a name from the block icons, such as "rocket". */
|
|
6
|
+
export type Feature = {
|
|
7
|
+
readonly title: string;
|
|
8
|
+
readonly text: string;
|
|
9
|
+
readonly icon?: string;
|
|
10
|
+
};
|
|
11
|
+
export type FeatureGridProps = Anchor & {
|
|
12
|
+
readonly title?: string;
|
|
13
|
+
readonly intro?: string;
|
|
14
|
+
readonly items: readonly Feature[];
|
|
15
|
+
};
|
|
16
|
+
export declare function featureGridView(variant: FeatureGridVariant, props: FeatureGridProps): ReactElement;
|
|
17
|
+
//# sourceMappingURL=feature-views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/feature-views.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,YAAY,CAAC;AAGlD,eAAO,MAAM,qBAAqB,mDAA6B,CAAC;AAChE,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,4EAA4E;AAC5E,MAAM,MAAM,OAAO,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAChG,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAC;CACnC,CAAC;AAsGF,wBAAgB,eAAe,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,gBAAgB,GAAG,YAAY,CAGlG"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
3
|
+
import { BlockIcon } from "./icons.js";
|
|
4
|
+
import { gridColumns, keyed } from "./list.js";
|
|
5
|
+
import { Section } from "./parts.js";
|
|
6
|
+
import { anchorOf, filled } from "./variant.js";
|
|
7
|
+
export const FEATURE_GRID_VARIANTS = BLOCK_VARIANTS.FeatureGrid;
|
|
8
|
+
/** The icon in a tinted box; `stacked` leaves room under it for the words that follow. */
|
|
9
|
+
function IconBox({ name, stacked = false }) {
|
|
10
|
+
if (name === undefined)
|
|
11
|
+
return null;
|
|
12
|
+
return (_jsx("span", { className: stacked ? "site-icon-box mb-4" : "site-icon-box", children: _jsx(BlockIcon, { name: name, className: "size-6" }) }));
|
|
13
|
+
}
|
|
14
|
+
/** The block's own look: a grid of cards, each with its icon when it has one. */
|
|
15
|
+
function CardFeatures(props) {
|
|
16
|
+
return (_jsx(Section, { name: "FeatureGrid", id: props.id, title: props.title, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": gridColumns(props.items.length, 3), children: keyed(props.items).map(({ key, item }) => (_jsxs("li", { className: "site-card", children: [_jsx(IconBox, { name: item.icon, stacked: true }), _jsx("h3", { className: "site-card-title", children: item.title }), _jsx("p", { className: "site-card-text", children: item.text })] }, key))) }) }));
|
|
17
|
+
}
|
|
18
|
+
/** The heading and intro on one side, the features as a list with their icons on the other. */
|
|
19
|
+
function SplitFeatures(props) {
|
|
20
|
+
return (_jsx("section", { id: anchorOf("FeatureGrid", props.id), className: "site-block", "data-block": "FeatureGrid", "data-variant": "split", children: _jsxs("div", { className: "site-container grid gap-10 md:grid-cols-2", children: [_jsxs("div", { children: [props.title ? _jsx("h2", { className: "site-block-title", children: props.title }) : null, props.intro ? _jsx("p", { className: "site-block-intro", children: props.intro }) : null] }), _jsx("ul", { className: "flex flex-col gap-6", children: keyed(props.items).map(({ key, item }) => (_jsxs("li", { className: "flex items-start gap-4", children: [_jsx(IconBox, { name: item.icon }), _jsxs("div", { children: [_jsx("h3", { className: "site-card-title", children: item.title }), _jsx("p", { className: "site-card-text", children: item.text })] })] }, key))) })] }) }));
|
|
21
|
+
}
|
|
22
|
+
/** Four columns of short features, centred, with no card around them. */
|
|
23
|
+
function CenteredFeatures(props) {
|
|
24
|
+
return (_jsx(Section, { name: "FeatureGrid", id: props.id, title: props.title, intro: props.intro, align: "center", children: _jsx("ul", { className: "site-grid site-grid-roomy", "data-cols": gridColumns(props.items.length, 4), "data-variant": "centered", children: keyed(props.items).map(({ key, item }) => (_jsxs("li", { className: "flex flex-col items-center text-center", children: [_jsx(IconBox, { name: item.icon, stacked: true }), _jsx("h3", { className: "site-card-title", children: item.title }), _jsx("p", { className: "site-card-text", children: item.text })] }, key))) }) }));
|
|
25
|
+
}
|
|
26
|
+
/** Two columns of cards, each with its icon beside the words. */
|
|
27
|
+
function InlineFeatures(props) {
|
|
28
|
+
return (_jsx(Section, { name: "FeatureGrid", id: props.id, title: props.title, intro: props.intro, children: _jsx("ul", { className: "site-grid", "data-cols": gridColumns(props.items.length, 2), "data-variant": "inline", children: keyed(props.items).map(({ key, item }) => (_jsxs("li", { className: "site-card flex items-start gap-4", children: [_jsx(IconBox, { name: item.icon }), _jsxs("div", { children: [_jsx("h3", { className: "site-card-title", children: item.title }), _jsx("p", { className: "site-card-text", children: item.text })] })] }, key))) }) }));
|
|
29
|
+
}
|
|
30
|
+
const VIEWS = {
|
|
31
|
+
cards: CardFeatures,
|
|
32
|
+
split: SplitFeatures,
|
|
33
|
+
centered: CenteredFeatures,
|
|
34
|
+
inline: InlineFeatures,
|
|
35
|
+
};
|
|
36
|
+
export function featureGridView(variant, props) {
|
|
37
|
+
const View = VIEWS[variant];
|
|
38
|
+
return _jsx(View, { ...props, items: filled("FeatureGrid", variant, "items", props.items) });
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=feature-views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-views.js","sourceRoot":"","sources":["../../../src/website/blocks/feature-views.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAe,OAAO,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC,WAAW,CAAC;AAWhE,0FAA0F;AAC1F,SAAS,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,GAA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