@lets-ship/site 1.0.1 → 3.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 +10 -2
- package/dist/mdx/allow-list.d.ts.map +1 -1
- package/dist/mdx/allow-list.js +12 -2
- 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 +18 -4
- 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 +2 -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 +45 -0
- package/dist/website/blocks/catalog.d.ts.map +1 -0
- package/dist/website/blocks/catalog.js +35 -0
- package/dist/website/blocks/catalog.js.map +1 -0
- package/dist/website/blocks/commerce.d.ts +10 -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 +15 -20
- package/dist/website/blocks/content.d.ts.map +1 -1
- package/dist/website/blocks/content.js +20 -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 +18 -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/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 +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 +44 -0
- package/dist/website/blocks/newsletter-views.js.map +1 -0
- package/dist/website/blocks/parts.d.ts +45 -2
- package/dist/website/blocks/parts.d.ts.map +1 -1
- package/dist/website/blocks/parts.js +31 -4
- 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 +35 -0
- package/dist/website/blocks/variant.d.ts.map +1 -0
- package/dist/website/blocks/variant.js +74 -0
- package/dist/website/blocks/variant.js.map +1 -0
- package/package.json +3 -2
- package/styles.css +1291 -42
|
@@ -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,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,QAAQ,GACR,EAAE;IACF,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,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,CAoBf;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,36 @@
|
|
|
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, BlockToneError, 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, tone, title, intro, items, children, }) {
|
|
18
|
+
if (!items) {
|
|
19
|
+
if (id !== undefined)
|
|
20
|
+
throw new BlockIdError("Steps", id);
|
|
21
|
+
if (tone !== undefined)
|
|
22
|
+
throw new BlockToneError("Steps", tone);
|
|
14
23
|
return _jsx(StepsColumn, { children: children });
|
|
15
|
-
|
|
24
|
+
}
|
|
25
|
+
const steps = filled("Steps", undefined, "items", items);
|
|
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))) }) }));
|
|
16
27
|
}
|
|
17
28
|
/** What customers say, each quote with the person who said it. */
|
|
18
|
-
export function Testimonials({
|
|
19
|
-
return (
|
|
29
|
+
export function Testimonials({ variant, ...props }) {
|
|
30
|
+
return testimonialsView(variantOf("Testimonials", variant, TESTIMONIALS_VARIANTS), props);
|
|
20
31
|
}
|
|
21
32
|
/** The people behind the site, each with a role and an optional photo. */
|
|
22
|
-
export function Team({
|
|
23
|
-
return (
|
|
33
|
+
export function Team({ variant, ...props }) {
|
|
34
|
+
return teamView(variantOf("Team", variant, TEAM_VARIANTS), props);
|
|
24
35
|
}
|
|
25
36
|
//# 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,EA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E,KAAK,CAAC,CAAC;IACzD,OAAO,CACN,KAAC,OAAO,IAAC,IAAI,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,YACnE,aAAI,SAAS,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,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"}
|
|
@@ -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, bandAttrs } from "./parts.js";
|
|
13
|
+
import { 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", { ...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
|
+
}
|
|
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,SAAS,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExD,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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,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,SAAG,GACzD,CACN,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,OAA0B,EAAE,KAAsB;IAChF,OAAO,CACN,qBACK,SAAS,CAAC,YAAY,EAAE,KAAK,EAAE,YAAY,CAAC,kBAClC,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, 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
|
+
}
|
|
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,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,GACG,CACN,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,OAAmB,EAAE,KAAe;IAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,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,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,aACzF,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,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"}
|
|
@@ -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 { bandAttrs, Section } from "./parts.js";
|
|
6
|
+
import { 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, 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
|
+
}
|
|
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", { ...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
|
+
}
|
|
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, 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
|
+
}
|
|
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, 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
|
+
}
|
|
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,SAAS,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,E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C1B,MAAM,EAAE,cAAc;CACtB,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,OAA2B,EAAE,KAAuB;IACnF,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5B,OAAO,KAAC,IAAI,OAAK,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,GAAI,CAAC;AACzF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { type Action, type Anchor, type BlockImage } from "./parts.js";
|
|
3
|
+
export declare const HERO_VARIANTS: readonly ["split", "centered", "left"];
|
|
4
|
+
export type HeroVariant = (typeof HERO_VARIANTS)[number];
|
|
5
|
+
export type HeroProps = Anchor & {
|
|
6
|
+
readonly title: string;
|
|
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
|
+
*/
|
|
11
|
+
readonly highlight?: string;
|
|
12
|
+
readonly subtitle?: string;
|
|
13
|
+
readonly primary?: Action;
|
|
14
|
+
readonly secondary?: Action;
|
|
15
|
+
readonly image?: BlockImage;
|
|
16
|
+
};
|
|
17
|
+
export declare function heroView(variant: HeroVariant, props: HeroProps): ReactElement;
|
|
18
|
+
//# sourceMappingURL=hero-views.d.ts.map
|
|
@@ -0,0 +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,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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BLOCK_VARIANTS } from "./catalog.js";
|
|
3
|
+
import { Actions, bandAttrs, Media } from "./parts.js";
|
|
4
|
+
import { BlockPropError } from "./variant.js";
|
|
5
|
+
export const HERO_VARIANTS = BLOCK_VARIANTS.Hero;
|
|
6
|
+
/** The title, with the highlighted words in the brand's emphasis. */
|
|
7
|
+
function heroTitle(variant, title, highlight) {
|
|
8
|
+
if (highlight === undefined)
|
|
9
|
+
return title;
|
|
10
|
+
const at = title.indexOf(highlight);
|
|
11
|
+
if (at < 0 || highlight === "")
|
|
12
|
+
throw new BlockPropError("Hero", variant, "highlight", `"${highlight}" is not in the title "${title}"`);
|
|
13
|
+
return (_jsxs(_Fragment, { children: [title.slice(0, at), _jsx("strong", { className: "site-highlight", children: highlight }), title.slice(at + highlight.length)] }));
|
|
14
|
+
}
|
|
15
|
+
/** The block's own look: the text beside an optional image. */
|
|
16
|
+
function SplitHero(props) {
|
|
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
|
+
}
|
|
19
|
+
/** The text in one column, centred or from the start, with the image under it. */
|
|
20
|
+
function ColumnHero({ props, variant }) {
|
|
21
|
+
const center = variant === "centered";
|
|
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
|
+
}
|
|
24
|
+
export function heroView(variant, props) {
|
|
25
|
+
return variant === "split" ? _jsx(SplitHero, { ...props }) : _jsx(ColumnHero, { props: props, variant: variant });
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=hero-views.js.map
|
|
@@ -0,0 +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,SAAS,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC,IA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EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC;AACxG,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The icons a block can show, by a plain name content can write (`icon: "rocket"`). The set is
|
|
3
|
+
* Phosphor's, through its server build, so an icon renders in a static export with no client code.
|
|
4
|
+
* Colour comes from the text colour around it, so the brand themes it like any text.
|
|
5
|
+
*/
|
|
6
|
+
import type { Icon } from "@phosphor-icons/react/dist/lib/types";
|
|
7
|
+
import type { ReactElement } from "react";
|
|
8
|
+
export declare const BLOCK_ICONS: {
|
|
9
|
+
readonly "arrow-left": Icon;
|
|
10
|
+
readonly "arrow-right": Icon;
|
|
11
|
+
readonly bell: Icon;
|
|
12
|
+
readonly calendar: Icon;
|
|
13
|
+
readonly "chart-line": Icon;
|
|
14
|
+
readonly chat: Icon;
|
|
15
|
+
readonly "check-circle": Icon;
|
|
16
|
+
readonly clock: Icon;
|
|
17
|
+
readonly close: Icon;
|
|
18
|
+
readonly cloud: Icon;
|
|
19
|
+
readonly code: Icon;
|
|
20
|
+
readonly "credit-card": Icon;
|
|
21
|
+
readonly database: Icon;
|
|
22
|
+
readonly envelope: Icon;
|
|
23
|
+
readonly gear: Icon;
|
|
24
|
+
readonly github: Icon;
|
|
25
|
+
readonly globe: Icon;
|
|
26
|
+
readonly heart: Icon;
|
|
27
|
+
readonly home: Icon;
|
|
28
|
+
readonly instagram: Icon;
|
|
29
|
+
readonly leaf: Icon;
|
|
30
|
+
readonly lightbulb: Icon;
|
|
31
|
+
readonly lightning: Icon;
|
|
32
|
+
readonly linkedin: Icon;
|
|
33
|
+
readonly list: Icon;
|
|
34
|
+
readonly lock: Icon;
|
|
35
|
+
readonly "map-pin": Icon;
|
|
36
|
+
readonly package: Icon;
|
|
37
|
+
readonly phone: Icon;
|
|
38
|
+
readonly plugs: Icon;
|
|
39
|
+
readonly rocket: Icon;
|
|
40
|
+
readonly search: Icon;
|
|
41
|
+
readonly "shield-check": Icon;
|
|
42
|
+
readonly sliders: Icon;
|
|
43
|
+
readonly sparkle: Icon;
|
|
44
|
+
readonly star: Icon;
|
|
45
|
+
readonly target: Icon;
|
|
46
|
+
readonly "trend-up": Icon;
|
|
47
|
+
readonly truck: Icon;
|
|
48
|
+
readonly users: Icon;
|
|
49
|
+
readonly wrench: Icon;
|
|
50
|
+
readonly x: Icon;
|
|
51
|
+
};
|
|
52
|
+
export type BlockIconName = keyof typeof BLOCK_ICONS;
|
|
53
|
+
export declare const BLOCK_ICON_NAMES: BlockIconName[];
|
|
54
|
+
/** An icon name the set does not have. */
|
|
55
|
+
export declare class BlockIconError extends Error {
|
|
56
|
+
constructor(name: string);
|
|
57
|
+
}
|
|
58
|
+
/** One icon, hidden from assistive technology: the text next to it says what it means. */
|
|
59
|
+
export declare function BlockIcon({ name, className }: {
|
|
60
|
+
readonly name: string;
|
|
61
|
+
readonly className?: string;
|
|
62
|
+
}): ReactElement;
|
|
63
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/icons.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AA6CjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C2B,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,WAAW,CAAC;AAErD,eAAO,MAAM,gBAAgB,EAA+B,aAAa,EAAE,CAAC;AAE5E,0CAA0C;AAC1C,qBAAa,cAAe,SAAQ,KAAK;gBAC5B,IAAI,EAAE,MAAM;CAIxB;AAID,0FAA0F;AAC1F,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAInH"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowLeft, ArrowRight, Bell, Calendar, ChartLine, ChatCircle, CheckCircle, Clock, Cloud, Code, CreditCard, Database, EnvelopeSimple, Gear, GithubLogo, Globe, Heart, House, InstagramLogo, Leaf, Lightbulb, Lightning, LinkedinLogo, List, Lock, MagnifyingGlass, MapPin, Package, Phone, Plugs, Rocket, ShieldCheck, Sliders, Sparkle, Star, Target, TrendUp, Truck, Users, Wrench, X, XLogo, } from "@phosphor-icons/react/dist/ssr";
|
|
3
|
+
export const BLOCK_ICONS = {
|
|
4
|
+
"arrow-left": ArrowLeft,
|
|
5
|
+
"arrow-right": ArrowRight,
|
|
6
|
+
bell: Bell,
|
|
7
|
+
calendar: Calendar,
|
|
8
|
+
"chart-line": ChartLine,
|
|
9
|
+
chat: ChatCircle,
|
|
10
|
+
"check-circle": CheckCircle,
|
|
11
|
+
clock: Clock,
|
|
12
|
+
close: X,
|
|
13
|
+
cloud: Cloud,
|
|
14
|
+
code: Code,
|
|
15
|
+
"credit-card": CreditCard,
|
|
16
|
+
database: Database,
|
|
17
|
+
envelope: EnvelopeSimple,
|
|
18
|
+
gear: Gear,
|
|
19
|
+
github: GithubLogo,
|
|
20
|
+
globe: Globe,
|
|
21
|
+
heart: Heart,
|
|
22
|
+
home: House,
|
|
23
|
+
instagram: InstagramLogo,
|
|
24
|
+
leaf: Leaf,
|
|
25
|
+
lightbulb: Lightbulb,
|
|
26
|
+
lightning: Lightning,
|
|
27
|
+
linkedin: LinkedinLogo,
|
|
28
|
+
list: List,
|
|
29
|
+
lock: Lock,
|
|
30
|
+
"map-pin": MapPin,
|
|
31
|
+
package: Package,
|
|
32
|
+
phone: Phone,
|
|
33
|
+
plugs: Plugs,
|
|
34
|
+
rocket: Rocket,
|
|
35
|
+
search: MagnifyingGlass,
|
|
36
|
+
"shield-check": ShieldCheck,
|
|
37
|
+
sliders: Sliders,
|
|
38
|
+
sparkle: Sparkle,
|
|
39
|
+
star: Star,
|
|
40
|
+
target: Target,
|
|
41
|
+
"trend-up": TrendUp,
|
|
42
|
+
truck: Truck,
|
|
43
|
+
users: Users,
|
|
44
|
+
wrench: Wrench,
|
|
45
|
+
x: XLogo,
|
|
46
|
+
};
|
|
47
|
+
export const BLOCK_ICON_NAMES = Object.keys(BLOCK_ICONS);
|
|
48
|
+
/** An icon name the set does not have. */
|
|
49
|
+
export class BlockIconError extends Error {
|
|
50
|
+
constructor(name) {
|
|
51
|
+
super(`block icon: there is no icon "${name}". Use one of ${BLOCK_ICON_NAMES.join(", ")}.`);
|
|
52
|
+
this.name = "BlockIconError";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const isIconName = (name) => Object.hasOwn(BLOCK_ICONS, name);
|
|
56
|
+
/** One icon, hidden from assistive technology: the text next to it says what it means. */
|
|
57
|
+
export function BlockIcon({ name, className }) {
|
|
58
|
+
if (!isIconName(name))
|
|
59
|
+
throw new BlockIconError(name);
|
|
60
|
+
const Glyph = BLOCK_ICONS[name];
|
|
61
|
+
return _jsx(Glyph, { "aria-hidden": "true", focusable: "false", className: className });
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/website/blocks/icons.tsx"],"names":[],"mappings":";AAOA,OAAO,EACN,SAAS,EACT,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,WAAW,EACX,KAAK,EACL,KAAK,EACL,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,IAAI,EACJ,UAAU,EACV,KAAK,EACL,KAAK,EACL,KAAK,EACL,aAAa,EACb,IAAI,EACJ,SAAS,E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Z,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM;IACd,CAAC,EAAE,KAAK;CAC0C,CAAC;AAIpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAoB,CAAC;AAE5E,0CAA0C;AAC1C,MAAM,OAAO,cAAe,SAAQ,KAAK;IACxC,YAAY,IAAY;QACvB,KAAK,CAAC,iCAAiC,IAAI,iBAAiB,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5F,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC9B,CAAC;CACD;AAED,MAAM,UAAU,GAAG,CAAC,IAAY,EAAyB,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AAE7F,0FAA0F;AAC1F,MAAM,UAAU,SAAS,CAAC,EAAE,IAAI,EAAE,SAAS,EAA0D;IACpG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,MAAM,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IACtD,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC,OAAO,KAAC,KAAK,mBAAa,MAAM,EAAC,SAAS,EAAC,OAAO,EAAC,SAAS,EAAE,SAAS,GAAI,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a block lays out a list of content: the key of each item and the columns of a grid.
|
|
3
|
+
* Pure functions, so tests and the gallery can call them without rendering.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A content list with a React key for each item: its position. A page never reorders its
|
|
7
|
+
* lists, and content may repeat a title or a link, so no field of an item is a safe key.
|
|
8
|
+
*/
|
|
9
|
+
export declare function keyed<T>(items: readonly T[]): readonly {
|
|
10
|
+
readonly key: string;
|
|
11
|
+
readonly item: T;
|
|
12
|
+
}[];
|
|
13
|
+
/**
|
|
14
|
+
* The columns a grid of `count` items gets on a wide screen, at most `max`. A short list keeps
|
|
15
|
+
* at least two columns, so one item does not stretch across the page. A longer list takes `max`
|
|
16
|
+
* or one fewer, whichever needs fewer rows and then leaves fewer gaps in the last row: four
|
|
17
|
+
* items with a `max` of 3 make two rows of two, not a row of three and one.
|
|
18
|
+
*/
|
|
19
|
+
export declare function gridColumns(count: number, max: number): number;
|
|
20
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/website/blocks/list.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;CAAE,EAAE,CAEnG;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAQ9D"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a block lays out a list of content: the key of each item and the columns of a grid.
|
|
3
|
+
* Pure functions, so tests and the gallery can call them without rendering.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A content list with a React key for each item: its position. A page never reorders its
|
|
7
|
+
* lists, and content may repeat a title or a link, so no field of an item is a safe key.
|
|
8
|
+
*/
|
|
9
|
+
export function keyed(items) {
|
|
10
|
+
return items.map((item, index) => ({ key: String(index), item }));
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The columns a grid of `count` items gets on a wide screen, at most `max`. A short list keeps
|
|
14
|
+
* at least two columns, so one item does not stretch across the page. A longer list takes `max`
|
|
15
|
+
* or one fewer, whichever needs fewer rows and then leaves fewer gaps in the last row: four
|
|
16
|
+
* items with a `max` of 3 make two rows of two, not a row of three and one.
|
|
17
|
+
*/
|
|
18
|
+
export function gridColumns(count, max) {
|
|
19
|
+
if (count <= max)
|
|
20
|
+
return Math.max(count, Math.min(2, max));
|
|
21
|
+
const rows = (columns) => Math.ceil(count / columns);
|
|
22
|
+
const gaps = (columns) => rows(columns) * columns - count;
|
|
23
|
+
const fewer = max - 1;
|
|
24
|
+
if (fewer < 2)
|
|
25
|
+
return max;
|
|
26
|
+
const better = rows(fewer) < rows(max) || (rows(fewer) === rows(max) && gaps(fewer) < gaps(max));
|
|
27
|
+
return better ? fewer : max;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/website/blocks/list.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,UAAU,KAAK,CAAI,KAAmB;IAC3C,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACnE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa,EAAE,GAAW;IACrD,IAAI,KAAK,IAAI,GAAG;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3D,MAAM,IAAI,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC;IACrE,MAAM,IAAI,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,KAAK,CAAC;IAC1E,MAAM,KAAK,GAAG,GAAG,GAAG,CAAC,CAAC;IACtB,IAAI,KAAK,GAAG,CAAC;QAAE,OAAO,GAAG,CAAC;IAC1B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACjG,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;AAC7B,CAAC"}
|