@lets-ship/site 2.0.0 → 3.1.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/mdx/allow-list.d.ts +9 -1
- package/dist/mdx/allow-list.d.ts.map +1 -1
- package/dist/mdx/allow-list.js +6 -2
- package/dist/mdx/allow-list.js.map +1 -1
- package/dist/mdx/components.d.ts.map +1 -1
- package/dist/mdx/components.js +4 -0
- package/dist/mdx/components.js.map +1 -1
- package/dist/mdx/tones.d.ts +11 -0
- package/dist/mdx/tones.d.ts.map +1 -0
- package/dist/mdx/tones.js +43 -0
- package/dist/mdx/tones.js.map +1 -0
- package/dist/node/build.js +1 -1
- package/dist/node/build.js.map +1 -1
- package/dist/node/content.d.ts +7 -2
- package/dist/node/content.d.ts.map +1 -1
- package/dist/node/content.js +17 -7
- package/dist/node/content.js.map +1 -1
- package/dist/node/errors.d.ts +1 -0
- package/dist/node/errors.d.ts.map +1 -1
- package/dist/node/errors.js +1 -0
- package/dist/node/errors.js.map +1 -1
- package/dist/website/blocks/call-to-action-views.js +3 -3
- package/dist/website/blocks/call-to-action-views.js.map +1 -1
- package/dist/website/blocks/card-grid-views.js +1 -1
- package/dist/website/blocks/card-grid-views.js.map +1 -1
- package/dist/website/blocks/catalog.d.ts +10 -0
- package/dist/website/blocks/catalog.d.ts.map +1 -1
- package/dist/website/blocks/catalog.js +9 -0
- package/dist/website/blocks/catalog.js.map +1 -1
- package/dist/website/blocks/commerce.d.ts +2 -1
- package/dist/website/blocks/commerce.d.ts.map +1 -1
- package/dist/website/blocks/commerce.js +2 -2
- package/dist/website/blocks/commerce.js.map +1 -1
- package/dist/website/blocks/contact-views.d.ts.map +1 -1
- package/dist/website/blocks/contact-views.js +4 -4
- package/dist/website/blocks/contact-views.js.map +1 -1
- package/dist/website/blocks/content.d.ts +4 -1
- package/dist/website/blocks/content.d.ts.map +1 -1
- package/dist/website/blocks/content.js +5 -3
- package/dist/website/blocks/content.js.map +1 -1
- package/dist/website/blocks/empty-state-views.d.ts.map +1 -1
- package/dist/website/blocks/empty-state-views.js +3 -3
- package/dist/website/blocks/empty-state-views.js.map +1 -1
- package/dist/website/blocks/faq-views.js +1 -1
- package/dist/website/blocks/faq-views.js.map +1 -1
- package/dist/website/blocks/feature-views.d.ts.map +1 -1
- package/dist/website/blocks/feature-views.js +6 -6
- package/dist/website/blocks/feature-views.js.map +1 -1
- package/dist/website/blocks/hero-views.d.ts +4 -1
- package/dist/website/blocks/hero-views.d.ts.map +1 -1
- package/dist/website/blocks/hero-views.js +5 -5
- package/dist/website/blocks/hero-views.js.map +1 -1
- package/dist/website/blocks/local-views.d.ts +60 -0
- package/dist/website/blocks/local-views.d.ts.map +1 -0
- package/dist/website/blocks/local-views.js +38 -0
- package/dist/website/blocks/local-views.js.map +1 -0
- package/dist/website/blocks/local.d.ts +15 -0
- package/dist/website/blocks/local.d.ts.map +1 -0
- package/dist/website/blocks/local.js +15 -0
- package/dist/website/blocks/local.js.map +1 -0
- package/dist/website/blocks/logo-stats-views.d.ts.map +1 -1
- package/dist/website/blocks/logo-stats-views.js +5 -5
- package/dist/website/blocks/logo-stats-views.js.map +1 -1
- package/dist/website/blocks/media-views.d.ts.map +1 -1
- package/dist/website/blocks/media-views.js +4 -4
- package/dist/website/blocks/media-views.js.map +1 -1
- package/dist/website/blocks/newsletter-views.d.ts +1 -1
- package/dist/website/blocks/newsletter-views.d.ts.map +1 -1
- package/dist/website/blocks/newsletter-views.js +4 -3
- package/dist/website/blocks/newsletter-views.js.map +1 -1
- package/dist/website/blocks/parts.d.ts +29 -4
- package/dist/website/blocks/parts.d.ts.map +1 -1
- package/dist/website/blocks/parts.js +21 -7
- package/dist/website/blocks/parts.js.map +1 -1
- package/dist/website/blocks/team-views.js +3 -3
- package/dist/website/blocks/team-views.js.map +1 -1
- package/dist/website/blocks/testimonial-views.js +5 -5
- package/dist/website/blocks/testimonial-views.js.map +1 -1
- package/dist/website/blocks/variant.d.ts +7 -0
- package/dist/website/blocks/variant.d.ts.map +1 -1
- package/dist/website/blocks/variant.js +16 -0
- package/dist/website/blocks/variant.js.map +1 -1
- package/package.json +2 -2
- package/styles.css +451 -30
|
@@ -8,8 +8,8 @@ import { useId } from "react";
|
|
|
8
8
|
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
9
9
|
import { BlockIcon } from "./icons.js";
|
|
10
10
|
import { keyed } from "./list.js";
|
|
11
|
-
import { Section } from "./parts.js";
|
|
12
|
-
import {
|
|
11
|
+
import { bandAttrs, Section } from "./parts.js";
|
|
12
|
+
import { required } from "./variant.js";
|
|
13
13
|
export const CONTACT_VARIANTS = BLOCK_VARIANTS.Contact;
|
|
14
14
|
const telHref = (phone) => `tel:${phone.replace(/\s+/g, "")}`;
|
|
15
15
|
/** The block's own look: links the visitor's mail and phone apps open, and the address. */
|
|
@@ -41,7 +41,7 @@ function Details(props) {
|
|
|
41
41
|
}
|
|
42
42
|
/** The heading, intro and details on one side, the form on the other. */
|
|
43
43
|
function SplitContact(props) {
|
|
44
|
-
return (_jsx("section", {
|
|
44
|
+
return (_jsx("section", { ...bandAttrs("Contact", props, "site-block"), "data-variant": "split", children: _jsxs("div", { className: "site-container site-split-end", 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
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* How to reach the people behind the site: links the visitor's own apps open, a form that posts
|
|
@@ -50,6 +50,6 @@ function SplitContact(props) {
|
|
|
50
50
|
export function contactView(variant, props) {
|
|
51
51
|
if (variant === "split")
|
|
52
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" }) })) }));
|
|
53
|
+
return (_jsx(Section, { name: "Contact", id: props.id, tone: props.tone, 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
54
|
}
|
|
55
55
|
//# sourceMappingURL=contact-views.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-views.js","sourceRoot":"","sources":["../../../src/website/blocks/contact-views.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAqB,KAAK,EAAE,MAAM,OAAO,CAAC;AAEjD,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,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"contact-views.js","sourceRoot":"","sources":["../../../src/website/blocks/contact-views.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAqB,KAAK,EAAE,MAAM,OAAO,CAAC;AAEjD,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,SAAS,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,CAAC;AAqBvD,MAAM,OAAO,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,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OAAO,OAAK,KAAK,GAAI,IACjB,EACN,cAAK,SAAS,EAAC,WAAW,YACzB,KAAC,WAAW,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAC,OAAO,GAAG,GACxC,IACD,GACG,CACV,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,OAAuB,EAAE,KAAmB;IACvE,IAAI,OAAO,KAAK,OAAO;QAAE,OAAO,KAAC,YAAY,OAAK,KAAK,GAAI,CAAC;IAC5D,OAAO,CACN,KAAC,OAAO,IAAC,IAAI,EAAC,SAAS,EAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,YAC5F,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CACtB,KAAC,QAAQ,OAAK,KAAK,GAAI,CACvB,CAAC,CAAC,CAAC,CACH,cAAK,SAAS,EAAC,oBAAoB,kBAAc,MAAM,YACtD,KAAC,WAAW,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAC,MAAM,GAAG,GACvC,CACN,GACQ,CACV,CAAC;AACH,CAAC"}
|
|
@@ -14,10 +14,13 @@ export declare function FeatureGrid({ variant, ...props }: FeatureGridProps & {
|
|
|
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({ id, title, items, children, }: {
|
|
17
|
+
export declare function Steps({ id, tone, title, intro, items, children, }: {
|
|
18
18
|
/** The website block's anchor; the docs form has its headings for that. */
|
|
19
19
|
readonly id?: string;
|
|
20
|
+
/** The website block's section tone (SECTION_TONES). */
|
|
21
|
+
readonly tone?: string;
|
|
20
22
|
readonly title?: string;
|
|
23
|
+
readonly intro?: string;
|
|
21
24
|
readonly items?: readonly Item[];
|
|
22
25
|
readonly children?: ReactNode;
|
|
23
26
|
}): ReactElement;
|
|
@@ -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,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,
|
|
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,O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AAI,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,GAAG,YAAY,CAExG"}
|
|
@@ -5,7 +5,7 @@ import { gridColumns, keyed } from "./list.js";
|
|
|
5
5
|
import { Section } from "./parts.js";
|
|
6
6
|
import { TEAM_VARIANTS, teamView } from "./team-views.js";
|
|
7
7
|
import { TESTIMONIALS_VARIANTS, testimonialsView, } from "./testimonial-views.js";
|
|
8
|
-
import { BlockIdError, filled, variantOf } from "./variant.js";
|
|
8
|
+
import { BlockIdError, BlockToneError, filled, variantOf } from "./variant.js";
|
|
9
9
|
/** What the product or service offers, as a grid of short cards. */
|
|
10
10
|
export function FeatureGrid({ variant, ...props }) {
|
|
11
11
|
return featureGridView(variantOf("FeatureGrid", variant, FEATURE_GRID_VARIANTS), props);
|
|
@@ -14,14 +14,16 @@ export function FeatureGrid({ variant, ...props }) {
|
|
|
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 function Steps({ id, title, items, children, }) {
|
|
17
|
+
export function Steps({ id, tone, title, intro, items, children, }) {
|
|
18
18
|
if (!items) {
|
|
19
19
|
if (id !== undefined)
|
|
20
20
|
throw new BlockIdError("Steps", id);
|
|
21
|
+
if (tone !== undefined)
|
|
22
|
+
throw new BlockToneError("Steps", tone);
|
|
21
23
|
return _jsx(StepsColumn, { children: children });
|
|
22
24
|
}
|
|
23
25
|
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))) }) }));
|
|
26
|
+
return (_jsx(Section, { name: "Steps", id: id, tone: tone, title: title, intro: intro, 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))) }) }));
|
|
25
27
|
}
|
|
26
28
|
/** What customers say, each quote with the person who said it. */
|
|
27
29
|
export function Testimonials({ variant, ...props }) {
|
|
@@ -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,8BAA8B,CAAC;AAEpE,OAAO,EACN,qBAAqB,EAGrB,eAAe,GACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAoC,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EACN,qBAAqB,EAGrB,gBAAgB,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI/
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../src/website/blocks/content.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EACN,qBAAqB,EAGrB,eAAe,GACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,Y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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"}
|
|
@@ -1 +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,
|
|
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,EAAa,MAAM,YAAY,CAAC;AAG1E,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,CAiB/F"}
|
|
@@ -9,8 +9,8 @@ import { BLOCK_VARIANTS } from "./catalog.js";
|
|
|
9
9
|
import { BlockIcon } from "./icons.js";
|
|
10
10
|
import { keyed } from "./list.js";
|
|
11
11
|
import { EmailSignup } from "./newsletter-views.js";
|
|
12
|
-
import { Actions } from "./parts.js";
|
|
13
|
-
import {
|
|
12
|
+
import { Actions, bandAttrs } from "./parts.js";
|
|
13
|
+
import { BlockPropError, required } from "./variant.js";
|
|
14
14
|
export const EMPTY_STATE_VARIANTS = BLOCK_VARIANTS.EmptyState;
|
|
15
15
|
function LinkCards({ links }) {
|
|
16
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))) }));
|
|
@@ -34,6 +34,6 @@ function Body({ props, variant }) {
|
|
|
34
34
|
* (actions), other pages to try (links), or a form to hear when it is ready (signup).
|
|
35
35
|
*/
|
|
36
36
|
export function emptyStateView(variant, props) {
|
|
37
|
-
return (_jsx("section", {
|
|
37
|
+
return (_jsx("section", { ...bandAttrs("EmptyState", props, "site-block"), "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
38
|
}
|
|
39
39
|
//# sourceMappingURL=empty-state-views.js.map
|
|
@@ -1 +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;AA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C,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"}
|
|
@@ -33,6 +33,6 @@ function CaretQuestions({ items, variant, }) {
|
|
|
33
33
|
*/
|
|
34
34
|
export function faqView(variant, props) {
|
|
35
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 })] }));
|
|
36
|
+
return (_jsxs(Section, { name: "Faq", id: props.id, tone: props.tone, 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
37
|
}
|
|
38
38
|
//# sourceMappingURL=faq-views.js.map
|
|
@@ -1 +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,M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AAO,CAAC;AAI1C,OAAO,EAAE,KAAK,MAAM,
|
|
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,EAAsB,MAAM,YAAY,CAAC;AAG7D,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;AAiGF,wBAAgB,eAAe,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,gBAAgB,GAAG,YAAY,CAGlG"}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
3
3
|
import { BlockIcon } from "./icons.js";
|
|
4
4
|
import { gridColumns, keyed } from "./list.js";
|
|
5
|
-
import { Section } from "./parts.js";
|
|
6
|
-
import {
|
|
5
|
+
import { bandAttrs, Section } from "./parts.js";
|
|
6
|
+
import { filled } from "./variant.js";
|
|
7
7
|
export const FEATURE_GRID_VARIANTS = BLOCK_VARIANTS.FeatureGrid;
|
|
8
8
|
/** The icon in a tinted box; `stacked` leaves room under it for the words that follow. */
|
|
9
9
|
function IconBox({ name, stacked = false }) {
|
|
@@ -13,19 +13,19 @@ function IconBox({ name, stacked = false }) {
|
|
|
13
13
|
}
|
|
14
14
|
/** The block's own look: a grid of cards, each with its icon when it has one. */
|
|
15
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))) }) }));
|
|
16
|
+
return (_jsx(Section, { name: "FeatureGrid", id: props.id, tone: props.tone, 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
17
|
}
|
|
18
18
|
/** The heading and intro on one side, the features as a list with their icons on the other. */
|
|
19
19
|
function SplitFeatures(props) {
|
|
20
|
-
return (_jsx("section", {
|
|
20
|
+
return (_jsx("section", { ...bandAttrs("FeatureGrid", props, "site-block"), "data-variant": "split", children: _jsxs("div", { className: "site-container site-split-end", 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
21
|
}
|
|
22
22
|
/** Four columns of short features, centred, with no card around them. */
|
|
23
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))) }) }));
|
|
24
|
+
return (_jsx(Section, { name: "FeatureGrid", id: props.id, tone: props.tone, 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
25
|
}
|
|
26
26
|
/** Two columns of cards, each with its icon beside the words. */
|
|
27
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))) }) }));
|
|
28
|
+
return (_jsx(Section, { name: "FeatureGrid", id: props.id, tone: props.tone, 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
29
|
}
|
|
30
30
|
const VIEWS = {
|
|
31
31
|
cards: CardFeatures,
|
|
@@ -1 +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;
|
|
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,SAAS,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC,WAAW,CAAC;AAWhE,0FAA0F;AAC1F,SAAS,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,KAAK,EAAqE;IAC5G,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACpC,OAAO,CACN,eAAM,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,eAAe,YAChE,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,QAAQ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TS)[number];
|
|
5
5
|
export type HeroProps = Anchor & {
|
|
6
6
|
readonly title: string;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The key words of the title, in the brand's emphasis (a colour, a marker, an underline or
|
|
9
|
+
* none). They must appear in the title as written.
|
|
10
|
+
*/
|
|
8
11
|
readonly highlight?: string;
|
|
9
12
|
readonly subtitle?: string;
|
|
10
13
|
readonly primary?: Action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/hero-views.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,KAAK,MAAM,EAAW,KAAK,MAAM,EAAE,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"hero-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/hero-views.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,KAAK,MAAM,EAAW,KAAK,MAAM,EAAE,KAAK,UAAU,EAAoB,MAAM,YAAY,CAAC;AAGlG,eAAO,MAAM,aAAa,wCAAsB,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;CAC5B,CAAC;AAkDF,wBAAgB,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,GAAG,YAAY,CAE7E"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
3
|
-
import { Actions,
|
|
4
|
-
import {
|
|
3
|
+
import { Actions, bandAttrs, Media } from "./parts.js";
|
|
4
|
+
import { BlockPropError } from "./variant.js";
|
|
5
5
|
export const HERO_VARIANTS = BLOCK_VARIANTS.Hero;
|
|
6
|
-
/** The title, with the highlighted words in the brand
|
|
6
|
+
/** The title, with the highlighted words in the brand's emphasis. */
|
|
7
7
|
function heroTitle(variant, title, highlight) {
|
|
8
8
|
if (highlight === undefined)
|
|
9
9
|
return title;
|
|
@@ -14,12 +14,12 @@ function heroTitle(variant, title, highlight) {
|
|
|
14
14
|
}
|
|
15
15
|
/** The block's own look: the text beside an optional image. */
|
|
16
16
|
function SplitHero(props) {
|
|
17
|
-
return (_jsx("section", {
|
|
17
|
+
return (_jsx("section", { ...bandAttrs("Hero", props, "site-block site-hero"), children: _jsxs("div", { className: props.image ? "site-container site-split items-center" : "site-container", children: [_jsxs("div", { className: "site-hero-words", children: [_jsx("h1", { className: "site-hero-title", children: heroTitle("split", props.title, props.highlight) }), props.subtitle ? _jsx("p", { className: "site-hero-subtitle", children: props.subtitle }) : null, _jsx(Actions, { primary: props.primary, secondary: props.secondary, size: "lg" })] }), props.image ? _jsx(Media, { image: props.image, bleed: true, className: "site-hero-media" }) : null] }) }));
|
|
18
18
|
}
|
|
19
19
|
/** The text in one column, centred or from the start, with the image under it. */
|
|
20
20
|
function ColumnHero({ props, variant }) {
|
|
21
21
|
const center = variant === "centered";
|
|
22
|
-
return (_jsx("section", {
|
|
22
|
+
return (_jsx("section", { ...bandAttrs("Hero", props, "site-block site-hero"), "data-variant": variant, children: _jsxs("div", { className: "site-container", children: [_jsxs("div", { className: center ? "site-hero-words mx-auto max-w-4xl text-center" : "site-hero-words max-w-4xl", children: [_jsx("h1", { className: "site-hero-title", children: heroTitle(variant, props.title, props.highlight) }), props.subtitle ? _jsx("p", { className: "site-hero-subtitle", children: props.subtitle }) : null, _jsx(Actions, { primary: props.primary, secondary: props.secondary, center: center, size: "lg" })] }), props.image ? _jsx(Media, { image: props.image, className: "site-hero-image mt-12" }) : null] }) }));
|
|
23
23
|
}
|
|
24
24
|
export function heroView(variant, props) {
|
|
25
25
|
return variant === "split" ? _jsx(SplitHero, { ...props }) : _jsx(ColumnHero, { props: props, variant: variant });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero-views.js","sourceRoot":"","sources":["../../../src/website/blocks/hero-views.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAe,OAAO,EAAgC,
|
|
1
|
+
{"version":3,"file":"hero-views.js","sourceRoot":"","sources":["../../../src/website/blocks/hero-views.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAe,OAAO,EAAgC,SAAS,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC,IAAI,CAAC;AAgBjD,qEAAqE;AACrE,SAAS,SAAS,CAAC,OAAoB,EAAE,KAAa,EAAE,SAA6B;IACpF,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1C,MAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,IAAI,EAAE,GAAG,CAAC,IAAI,SAAS,KAAK,EAAE;QAC7B,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,SAAS,0BAA0B,KAAK,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AAC,kBAAgB,OAAO,YACnF,eAAK,SAAS,EAAC,gBAAgB,aAC9B,eAAK,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,+CAA+C,CAAC,CAAC,CAAC,2BAA2B,aACrG,aAAI,SAAS,EAAC,iBAAiB,YAAE,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,GAAM,EACtF,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAG,SAAS,EAAC,oBAAoB,YAAE,KAAK,CAAC,QAAQ,GAAK,CAAC,CAAC,CAAC,IAAI,EAC/E,KAAC,OAAO,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAC,IAAI,GAAG,IACpF,EACL,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAC,uBAAuB,GAAG,CAAC,CAAC,CAAC,IAAI,IAChF,GACG,CACV,CAAC;AACH,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAoB,EAAE,KAAgB;IAC9D,OAAO,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC,CAAC,CAAC,KAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC;AACxG,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The blocks of a business people visit: a price list, opening hours and a location. Every word
|
|
3
|
+
* is a prop, so the content writes them in the site's language, and the figures take the brand's
|
|
4
|
+
* numerals, so prices and hours line up.
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactElement } from "react";
|
|
7
|
+
import { type Action, type Anchor, type BlockImage } from "./parts.js";
|
|
8
|
+
export declare const PRICE_LIST_VARIANTS: readonly ["rows", "columns"];
|
|
9
|
+
export type PriceListVariant = (typeof PRICE_LIST_VARIANTS)[number];
|
|
10
|
+
export declare const HOURS_VARIANTS: readonly ["table", "split"];
|
|
11
|
+
export type HoursVariant = (typeof HOURS_VARIANTS)[number];
|
|
12
|
+
export declare const LOCATION_VARIANTS: readonly ["split", "stacked"];
|
|
13
|
+
export type LocationVariant = (typeof LOCATION_VARIANTS)[number];
|
|
14
|
+
/** One line of a price list. The price is text, so the content says the currency and the terms. */
|
|
15
|
+
export type PriceItem = {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly price: string;
|
|
18
|
+
readonly text?: string;
|
|
19
|
+
readonly note?: string;
|
|
20
|
+
};
|
|
21
|
+
export type PriceListProps = Anchor & {
|
|
22
|
+
readonly title?: string;
|
|
23
|
+
readonly intro?: string;
|
|
24
|
+
readonly items: readonly PriceItem[];
|
|
25
|
+
};
|
|
26
|
+
/** The heading beside the list (rows), or over a list in two columns (columns). */
|
|
27
|
+
export declare function priceListView(variant: PriceListVariant, props: PriceListProps): ReactElement;
|
|
28
|
+
/** One line of opening hours: the days, and the hours or a word such as "Closed". */
|
|
29
|
+
export type HoursRow = {
|
|
30
|
+
readonly days: string;
|
|
31
|
+
readonly hours: string;
|
|
32
|
+
};
|
|
33
|
+
export type HoursProps = Anchor & {
|
|
34
|
+
readonly title?: string;
|
|
35
|
+
readonly intro?: string;
|
|
36
|
+
readonly rows: readonly HoursRow[];
|
|
37
|
+
/** A line under the hours, such as the holiday hours. */
|
|
38
|
+
readonly note?: string;
|
|
39
|
+
};
|
|
40
|
+
/** The hours as a table under the heading (table), or the heading beside them (split). */
|
|
41
|
+
export declare function hoursView(variant: HoursVariant, props: HoursProps): ReactElement;
|
|
42
|
+
export type LocationProps = Anchor & {
|
|
43
|
+
readonly title?: string;
|
|
44
|
+
readonly intro?: string;
|
|
45
|
+
/** The address, one line each, as a visitor writes it. */
|
|
46
|
+
readonly address: readonly string[];
|
|
47
|
+
/** A picture of the place or a map the site holds. Without it the block draws a plan. */
|
|
48
|
+
readonly image?: BlockImage;
|
|
49
|
+
/** How to reach the place: a phone number, an email, the nearest stop. */
|
|
50
|
+
readonly details?: readonly {
|
|
51
|
+
readonly label: string;
|
|
52
|
+
readonly value: string;
|
|
53
|
+
}[];
|
|
54
|
+
/** Usually a link to directions. */
|
|
55
|
+
readonly primary?: Action;
|
|
56
|
+
readonly secondary?: Action;
|
|
57
|
+
};
|
|
58
|
+
/** The address with a picture or a plan beside it (split), or over it (stacked). */
|
|
59
|
+
export declare function locationView(variant: LocationVariant, props: LocationProps): ReactElement;
|
|
60
|
+
//# sourceMappingURL=local-views.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/local-views.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,MAAM,EAAW,KAAK,MAAM,EAAE,KAAK,UAAU,EAA6B,MAAM,YAAY,CAAC;AAG3G,eAAO,MAAM,mBAAmB,8BAA2B,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AACpE,eAAO,MAAM,cAAc,6BAAuB,CAAC;AACnD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAC3D,eAAO,MAAM,iBAAiB,+BAA0B,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,mGAAmG;AACnG,MAAM,MAAM,SAAS,GAAG;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACv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E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjF,oCAAoC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAWF,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,GAAG,YAAY,CAmCzF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
3
|
+
import { keyed } from "./list.js";
|
|
4
|
+
import { Actions, bandAttrs, Media, Section } from "./parts.js";
|
|
5
|
+
import { filled } from "./variant.js";
|
|
6
|
+
export const PRICE_LIST_VARIANTS = BLOCK_VARIANTS.PriceList;
|
|
7
|
+
export const HOURS_VARIANTS = BLOCK_VARIANTS.Hours;
|
|
8
|
+
export const LOCATION_VARIANTS = BLOCK_VARIANTS.Location;
|
|
9
|
+
function PriceRows({ items }) {
|
|
10
|
+
return (_jsx("ul", { className: "site-price-list", children: keyed(items).map(({ key, item }) => (_jsxs("li", { className: "site-price-row", children: [_jsxs("div", { className: "min-w-0", children: [_jsx("h3", { className: "site-price-name", children: item.name }), item.text ? _jsx("p", { className: "site-card-text", children: item.text }) : null] }), _jsxs("p", { className: "site-price-amount", children: [item.price, item.note ? _jsx("span", { className: "site-price-note", children: item.note }) : null] })] }, key))) }));
|
|
11
|
+
}
|
|
12
|
+
/** The heading beside the list (rows), or over a list in two columns (columns). */
|
|
13
|
+
export function priceListView(variant, props) {
|
|
14
|
+
const items = filled("PriceList", variant, "items", props.items);
|
|
15
|
+
if (variant === "columns")
|
|
16
|
+
return (_jsx(Section, { name: "PriceList", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("div", { className: "site-price-columns", "data-variant": "columns", children: _jsx(PriceRows, { items: items }) }) }));
|
|
17
|
+
return (_jsx("section", { ...bandAttrs("PriceList", props, "site-block"), children: _jsxs("div", { className: "site-container site-split-end", 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(PriceRows, { items: items })] }) }));
|
|
18
|
+
}
|
|
19
|
+
/** The hours as a table under the heading (table), or the heading beside them (split). */
|
|
20
|
+
export function hoursView(variant, props) {
|
|
21
|
+
const rows = filled("Hours", variant, "rows", props.rows);
|
|
22
|
+
const table = (_jsxs("div", { children: [_jsx("dl", { className: "site-hours", children: keyed(rows).map(({ key, item }) => (_jsxs("div", { className: "site-hours-row", children: [_jsx("dt", { children: item.days }), _jsx("dd", { children: item.hours })] }, key))) }), props.note ? _jsx("p", { className: "site-card-text mt-4", children: props.note }) : null] }));
|
|
23
|
+
if (variant === "split")
|
|
24
|
+
return (_jsx("section", { ...bandAttrs("Hours", props, "site-block"), "data-variant": "split", children: _jsxs("div", { className: "site-container site-split-end", 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] }), table] }) }));
|
|
25
|
+
return (_jsx(Section, { name: "Hours", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("div", { className: "site-hours-table", children: table }) }));
|
|
26
|
+
}
|
|
27
|
+
/** A drawn plan of streets and a pin, for a location with no picture. It names nothing. */
|
|
28
|
+
function Plan() {
|
|
29
|
+
return (_jsx("div", { className: "site-location-plan", "aria-hidden": "true", children: _jsx("span", { className: "site-location-pin" }) }));
|
|
30
|
+
}
|
|
31
|
+
/** The address with a picture or a plan beside it (split), or over it (stacked). */
|
|
32
|
+
export function locationView(variant, props) {
|
|
33
|
+
const address = filled("Location", variant, "address", props.address);
|
|
34
|
+
const picture = props.image ? _jsx(Media, { image: props.image, className: "site-location-media" }) : _jsx(Plan, {});
|
|
35
|
+
const words = (_jsxs("div", { className: "site-location-words", 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("address", { className: "site-location-address", children: keyed(address).map(({ key, item }) => (_jsx("span", { className: "block", children: item }, key))) }), props.details ? (_jsx("dl", { className: "site-hours mt-6", children: keyed(props.details).map(({ key, item }) => (_jsxs("div", { className: "site-hours-row", children: [_jsx("dt", { children: item.label }), _jsx("dd", { children: item.value })] }, key))) })) : null, _jsx(Actions, { primary: props.primary, secondary: props.secondary })] }));
|
|
36
|
+
return (_jsx("section", { ...bandAttrs("Location", props, "site-block"), "data-variant": variant === "split" ? undefined : variant, children: _jsxs("div", { className: variant === "split" ? "site-container site-split items-center" : "site-container grid gap-10", children: [variant === "split" ? picture : words, variant === "split" ? words : picture] }) }));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=local-views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-views.js","sourceRoot":"","sources":["../../../src/website/blocks/local-views.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAe,OAAO,EAAgC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC3G,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC,SAAS,CAAC;AAE5D,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC;AAEnD,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC;AAiBzD,SAAS,SAAS,CAAC,EAAE,KAAK,EAA4C;IACrE,OAAO,CACN,aAAI,SAAS,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I,EACvE,kBAAS,SAAS,EAAC,uBAAuB,YACxC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACtC,eAAgB,SAAS,EAAC,OAAO,YAC/B,IAAI,IADK,GAAG,CAEP,CACP,CAAC,GACO,EACT,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,aAAI,SAAS,EAAC,iBAAiB,YAC7B,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5C,eAAe,SAAS,EAAC,gBAAgB,aACxC,uBAAK,IAAI,CAAC,KAAK,GAAM,EACrB,uBAAK,IAAI,CAAC,KAAK,GAAM,KAFZ,GAAG,CAGP,CACN,CAAC,GACE,CACL,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,OAAO,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,GAAI,IAC1D,CACN,CAAC;IACF,OAAO,CACN,qBAAa,SAAS,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,CAAC,kBAAgB,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,YAC/G,eAAK,SAAS,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAC,4BAA4B,aAC3G,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EACrC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,IACjC,GACG,CACV,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { type HoursProps, type HoursVariant, type LocationProps, type LocationVariant, type PriceListProps, type PriceListVariant } from "./local-views.js";
|
|
3
|
+
/** What things cost, one line each: a service, a short note on it and its price. */
|
|
4
|
+
export declare function PriceList({ variant, ...props }: PriceListProps & {
|
|
5
|
+
readonly variant?: PriceListVariant;
|
|
6
|
+
}): ReactElement;
|
|
7
|
+
/** When the place is open, one line per group of days. */
|
|
8
|
+
export declare function Hours({ variant, ...props }: HoursProps & {
|
|
9
|
+
readonly variant?: HoursVariant;
|
|
10
|
+
}): ReactElement;
|
|
11
|
+
/** Where the place is: the address, how to reach it, and a picture or a drawn plan. */
|
|
12
|
+
export declare function Location({ variant, ...props }: LocationProps & {
|
|
13
|
+
readonly variant?: LocationVariant;
|
|
14
|
+
}): ReactElement;
|
|
15
|
+
//# sourceMappingURL=local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/local.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,YAAY,EAGjB,KAAK,aAAa,EAClB,KAAK,eAAe,EAGpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,MAAM,kBAAkB,CAAC;AAG1B,oFAAoF;AACpF,wBAAgB,SAAS,CAAC,EACzB,OAAO,EACP,GAAG,KAAK,EACR,EAAE,cAAc,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAAE,GAAG,YAAY,CAEzE;AAED,0DAA0D;AAC1D,wBAAgB,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;CAAE,GAAG,YAAY,CAE3G;AAED,uFAAuF;AACvF,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;CAAE,GAAG,YAAY,CAEpH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HOURS_VARIANTS, hoursView, LOCATION_VARIANTS, locationView, PRICE_LIST_VARIANTS, priceListView, } from "./local-views.js";
|
|
2
|
+
import { variantOf } from "./variant.js";
|
|
3
|
+
/** What things cost, one line each: a service, a short note on it and its price. */
|
|
4
|
+
export function PriceList({ variant, ...props }) {
|
|
5
|
+
return priceListView(variantOf("PriceList", variant, PRICE_LIST_VARIANTS), props);
|
|
6
|
+
}
|
|
7
|
+
/** When the place is open, one line per group of days. */
|
|
8
|
+
export function Hours({ variant, ...props }) {
|
|
9
|
+
return hoursView(variantOf("Hours", variant, HOURS_VARIANTS), props);
|
|
10
|
+
}
|
|
11
|
+
/** Where the place is: the address, how to reach it, and a picture or a drawn plan. */
|
|
12
|
+
export function Location({ variant, ...props }) {
|
|
13
|
+
return locationView(variantOf("Location", variant, LOCATION_VARIANTS), props);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=local.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local.js","sourceRoot":"","sources":["../../../src/website/blocks/local.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,cAAc,EAGd,SAAS,EACT,iBAAiB,EAGjB,YAAY,EACZ,mBAAmB,EAGnB,aAAa,GACb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,oFAAoF;AACpF,MAAM,UAAU,SAAS,CAAC,EACzB,OAAO,EACP,GAAG,KAAK,EACkD;IAC1D,OAAO,aAAa,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,mBAAmB,CAAC,EAAE,KAAK,CAAC,CAAC;AACnF,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,KAAK,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAoD;IAC5F,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,KAAK,CAAC,CAAC;AACtE,CAAC;AAED,uFAAuF;AACvF,MAAM,UAAU,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAA0D;IACrG,OAAO,YAAY,CAAC,SAAS,CAAC,UAAU,EAAE,OAAO,EAAE,iBAAiB,CAAC,EAAE,KAAK,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-stats-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/logo-stats-views.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAqB,MAAM,YAAY,CAAC;AAG7E,eAAO,MAAM,mBAAmB,+CAA2B,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3D,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC9B,CAAC;
|
|
1
|
+
{"version":3,"file":"logo-stats-views.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/logo-stats-views.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,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,CAGhF"}
|
|
@@ -11,16 +11,16 @@ function LogoImage({ logo, className }) {
|
|
|
11
11
|
}
|
|
12
12
|
/** The block's own look: one centred row of logos. */
|
|
13
13
|
function RowLogos(props) {
|
|
14
|
-
return (_jsx(Section, { name: "LogoCloud", id: props.id, title: props.title, intro: props.intro, children: _jsx("ul", { className: "flex flex-wrap items-center justify-center gap-10", children: keyed(props.logos).map(({ key, item: logo }) => (_jsx("li", { children: _jsx(LogoImage, { logo: logo, className: "site-logo" }) }, key))) }) }));
|
|
14
|
+
return (_jsx(Section, { name: "LogoCloud", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("ul", { className: "flex flex-wrap items-center justify-center gap-10", children: keyed(props.logos).map(({ key, item: logo }) => (_jsx("li", { children: _jsx(LogoImage, { logo: logo, className: "site-logo" }) }, key))) }) }));
|
|
15
15
|
}
|
|
16
16
|
/** Logos in a grid of equal cells, in grey until a pointer rests on one (grid), or on tiles (tiles). */
|
|
17
17
|
function GridLogos({ props, variant }) {
|
|
18
18
|
const tiles = variant === "tiles";
|
|
19
|
-
return (_jsx(Section, { name: "LogoCloud", id: props.id, title: props.title, intro: props.intro, align: tiles ? undefined : "center", children: _jsx("ul", { className: tiles ? "site-logo-tiles site-grid site-grid-hairline overflow-hidden" : "site-grid site-grid-flush", "data-cols": gridColumns(props.logos.length, 4), "data-phone": "2", "data-variant": variant, children: keyed(props.logos).map(({ key, item: logo }) => (_jsx("li", { className: tiles ? "site-logo-tile grid aspect-video place-content-center p-4" : "grid place-content-center p-4", children: _jsx(LogoImage, { logo: logo, className: "site-logo site-logo-muted" }) }, key))) }) }));
|
|
19
|
+
return (_jsx(Section, { name: "LogoCloud", id: props.id, tone: props.tone, title: props.title, intro: props.intro, align: tiles ? undefined : "center", children: _jsx("ul", { className: tiles ? "site-logo-tiles site-grid site-grid-hairline overflow-hidden" : "site-grid site-grid-flush", "data-cols": gridColumns(props.logos.length, 4), "data-phone": "2", "data-variant": variant, children: keyed(props.logos).map(({ key, item: logo }) => (_jsx("li", { className: tiles ? "site-logo-tile grid aspect-video place-content-center p-4" : "grid place-content-center p-4", children: _jsx(LogoImage, { logo: logo, className: "site-logo site-logo-muted" }) }, key))) }) }));
|
|
20
20
|
}
|
|
21
21
|
/** The logos in one row the reader scrolls, for more logos than one row holds. */
|
|
22
22
|
function CarouselLogos(props) {
|
|
23
|
-
return (_jsx(Section, { name: "LogoCloud", id: props.id, title: props.title, intro: props.intro, align: "center", children: _jsx(CarouselRow, { kind: "logos", label: props.title, items: props.logos, strings: props.strings, render: (logo) => _jsx(LogoImage, { logo: logo, className: "site-logo" }) }) }));
|
|
23
|
+
return (_jsx(Section, { name: "LogoCloud", id: props.id, tone: props.tone, title: props.title, intro: props.intro, align: "center", children: _jsx(CarouselRow, { kind: "logos", label: props.title, items: props.logos, strings: props.strings, render: (logo) => _jsx(LogoImage, { logo: logo, className: "site-logo" }) }) }));
|
|
24
24
|
}
|
|
25
25
|
export function logoCloudView(variant, props) {
|
|
26
26
|
const full = { ...props, logos: filled("LogoCloud", variant, "logos", props.logos) };
|
|
@@ -33,7 +33,7 @@ export function logoCloudView(variant, props) {
|
|
|
33
33
|
export const STATS_VARIANTS = BLOCK_VARIANTS.Stats;
|
|
34
34
|
/** The block's own look: a card for each figure, its label above it. */
|
|
35
35
|
function CardStats(props) {
|
|
36
|
-
return (_jsx(Section, { name: "Stats", id: props.id, title: props.title, intro: props.intro, children: _jsx("dl", { className: "site-grid", "data-cols": gridColumns(props.items.length, 4), "data-phone": "2", children: keyed(props.items).map(({ key, item }) => (_jsxs("div", { className: "site-card", children: [_jsx("dt", { className: "site-stat-label", children: item.label }), _jsx("dd", { className: "site-stat-value", children: item.value })] }, key))) }) }));
|
|
36
|
+
return (_jsx(Section, { name: "Stats", id: props.id, tone: props.tone, title: props.title, intro: props.intro, children: _jsx("dl", { className: "site-grid", "data-cols": gridColumns(props.items.length, 4), "data-phone": "2", children: keyed(props.items).map(({ key, item }) => (_jsxs("div", { className: "site-card", children: [_jsx("dt", { className: "site-stat-label", children: item.label }), _jsx("dd", { className: "site-stat-value", children: item.value })] }, key))) }) }));
|
|
37
37
|
}
|
|
38
38
|
const STAT_CELL = {
|
|
39
39
|
outlined: "site-stat-outlined",
|
|
@@ -42,7 +42,7 @@ const STAT_CELL = {
|
|
|
42
42
|
};
|
|
43
43
|
/** Large figures in the brand colour, centred, each over its label. */
|
|
44
44
|
function FeatureStats({ props, variant, }) {
|
|
45
|
-
return (_jsx(Section, { name: "Stats", id: props.id, title: props.title, intro: props.intro, align: "center", children: _jsx("dl", { className: "site-grid site-grid-tight", "data-cols": gridColumns(props.items.length, 4), "data-variant": variant, children: keyed(props.items).map(({ key, item }) => (_jsxs("div", { className: `${STAT_CELL[variant]} flex flex-col px-4 py-8 text-center`, children: [_jsx("dt", { className: "site-stat-caption order-last", children: item.label }), _jsx("dd", { className: "site-stat-figure", children: item.value })] }, key))) }) }));
|
|
45
|
+
return (_jsx(Section, { name: "Stats", id: props.id, tone: props.tone, title: props.title, intro: props.intro, align: "center", children: _jsx("dl", { className: "site-grid site-grid-tight", "data-cols": gridColumns(props.items.length, 4), "data-variant": variant, children: keyed(props.items).map(({ key, item }) => (_jsxs("div", { className: `${STAT_CELL[variant]} flex flex-col px-4 py-8 text-center`, children: [_jsx("dt", { className: "site-stat-caption order-last", children: item.label }), _jsx("dd", { className: "site-stat-figure", children: item.value })] }, key))) }) }));
|
|
46
46
|
}
|
|
47
47
|
export function statsView(variant, props) {
|
|
48
48
|
const full = { ...props, items: filled("Stats", variant, "items", props.items) };
|