@tempoxyz/ds 0.3.18 → 0.3.20
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/arsenal/icons/Icon.d.ts +57 -0
- package/dist/arsenal/icons/Icon.d.ts.map +1 -0
- package/dist/arsenal/icons/Icon.js +117 -0
- package/dist/arsenal/icons/Icon.js.map +1 -0
- package/dist/arsenal/icons/glyphs.d.ts +5238 -0
- package/dist/arsenal/icons/glyphs.d.ts.map +1 -0
- package/dist/arsenal/icons/glyphs.js +2888 -0
- package/dist/arsenal/icons/glyphs.js.map +1 -0
- package/dist/arsenal/icons/index.d.ts +4 -0
- package/dist/arsenal/icons/index.d.ts.map +1 -0
- package/dist/arsenal/icons/index.js +4 -0
- package/dist/arsenal/icons/index.js.map +1 -0
- package/dist/docs/AGENTS.md +2 -2
- package/dist/docs/arsenal.md +4555 -0
- package/dist/docs/marketing.md +7082 -480
- package/dist/docs/product/documents.md +17 -1
- package/dist/document/Document.d.ts +1 -1
- package/dist/document/Document.d.ts.map +1 -1
- package/dist/document/Document.js +1 -0
- package/dist/document/Document.js.map +1 -1
- package/dist/document/document.css +12 -1
- package/dist/document/templates/brief.html +3 -3
- package/dist/document/templates/essay.html +3 -3
- package/dist/document/templates/post.html +3 -3
- package/dist/marketing/components/ArticleBody.css +1 -0
- package/dist/marketing/components/ArticleBody.d.ts +1013 -0
- package/dist/marketing/components/ArticleBody.d.ts.map +1 -0
- package/dist/marketing/components/ArticleBody.js +120 -0
- package/dist/marketing/components/ArticleBody.js.map +1 -0
- package/dist/marketing/components/ArticleBody.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleHero.css +1 -0
- package/dist/marketing/components/ArticleHero.d.ts +168 -0
- package/dist/marketing/components/ArticleHero.d.ts.map +1 -0
- package/dist/marketing/components/ArticleHero.js +74 -0
- package/dist/marketing/components/ArticleHero.js.map +1 -0
- package/dist/marketing/components/ArticleHero.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleIndex.css +1 -0
- package/dist/marketing/components/ArticleIndex.d.ts +164 -0
- package/dist/marketing/components/ArticleIndex.d.ts.map +1 -0
- package/dist/marketing/components/ArticleIndex.js +100 -0
- package/dist/marketing/components/ArticleIndex.js.map +1 -0
- package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -0
- package/dist/marketing/components/ArticleRail.css +1 -0
- package/dist/marketing/components/ArticleRail.d.ts +105 -0
- package/dist/marketing/components/ArticleRail.d.ts.map +1 -0
- package/dist/marketing/components/ArticleRail.js +96 -0
- package/dist/marketing/components/ArticleRail.js.map +1 -0
- package/dist/marketing/components/ArticleRail.js.zyzz.json +1 -0
- package/dist/marketing/components/AsideLayout.css +1 -0
- package/dist/marketing/components/AsideLayout.d.ts +39 -0
- package/dist/marketing/components/AsideLayout.d.ts.map +1 -0
- package/dist/marketing/components/AsideLayout.js +24 -0
- package/dist/marketing/components/AsideLayout.js.map +1 -0
- package/dist/marketing/components/AsideLayout.js.zyzz.json +1 -0
- package/dist/marketing/components/Breadcrumbs.css +1 -0
- package/dist/marketing/components/Breadcrumbs.d.ts +132 -0
- package/dist/marketing/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/marketing/components/Breadcrumbs.js +75 -0
- package/dist/marketing/components/Breadcrumbs.js.map +1 -0
- package/dist/marketing/components/Breadcrumbs.js.zyzz.json +1 -0
- package/dist/marketing/components/Button.css +1 -0
- package/dist/marketing/components/Button.d.ts +421 -0
- package/dist/marketing/components/Button.d.ts.map +1 -0
- package/dist/marketing/components/Button.js +87 -0
- package/dist/marketing/components/Button.js.map +1 -0
- package/dist/marketing/components/Button.js.zyzz.json +1 -0
- package/dist/marketing/components/Card.css +1 -0
- package/dist/marketing/components/Card.d.ts +563 -0
- package/dist/marketing/components/Card.d.ts.map +1 -0
- package/dist/marketing/components/Card.js +171 -0
- package/dist/marketing/components/Card.js.map +1 -0
- package/dist/marketing/components/Card.js.zyzz.json +1 -0
- package/dist/marketing/components/Contact.css +1 -0
- package/dist/marketing/components/Contact.d.ts +51 -0
- package/dist/marketing/components/Contact.d.ts.map +1 -0
- package/dist/marketing/components/Contact.js +44 -0
- package/dist/marketing/components/Contact.js.map +1 -0
- package/dist/marketing/components/Contact.js.zyzz.json +1 -0
- package/dist/marketing/components/Cta.css +1 -0
- package/dist/marketing/components/Cta.d.ts +138 -0
- package/dist/marketing/components/Cta.d.ts.map +1 -0
- package/dist/marketing/components/Cta.js +71 -0
- package/dist/marketing/components/Cta.js.map +1 -0
- package/dist/marketing/components/Cta.js.zyzz.json +1 -0
- package/dist/marketing/components/CustomerStoryFeature.css +1 -0
- package/dist/marketing/components/CustomerStoryFeature.d.ts +48 -0
- package/dist/marketing/components/CustomerStoryFeature.d.ts.map +1 -0
- package/dist/marketing/components/CustomerStoryFeature.js +58 -0
- package/dist/marketing/components/CustomerStoryFeature.js.map +1 -0
- package/dist/marketing/components/CustomerStoryFeature.js.zyzz.json +1 -0
- package/dist/marketing/components/Faq.css +1 -0
- package/dist/marketing/components/Faq.d.ts +99 -0
- package/dist/marketing/components/Faq.d.ts.map +1 -0
- package/dist/marketing/components/Faq.js +83 -0
- package/dist/marketing/components/Faq.js.map +1 -0
- package/dist/marketing/components/Faq.js.zyzz.json +1 -0
- package/dist/marketing/components/FeatureAccordion.css +1 -0
- package/dist/marketing/components/FeatureAccordion.d.ts +230 -0
- package/dist/marketing/components/FeatureAccordion.d.ts.map +1 -0
- package/dist/marketing/components/FeatureAccordion.js +117 -0
- package/dist/marketing/components/FeatureAccordion.js.map +1 -0
- package/dist/marketing/components/FeatureAccordion.js.zyzz.json +1 -0
- package/dist/marketing/components/Footer.css +1 -0
- package/dist/marketing/components/Footer.d.ts +178 -0
- package/dist/marketing/components/Footer.d.ts.map +1 -0
- package/dist/marketing/components/Footer.js +109 -0
- package/dist/marketing/components/Footer.js.map +1 -0
- package/dist/marketing/components/Footer.js.zyzz.json +1 -0
- package/dist/marketing/components/Hero.css +1 -0
- package/dist/marketing/components/Hero.d.ts +200 -0
- package/dist/marketing/components/Hero.d.ts.map +1 -0
- package/dist/marketing/components/Hero.js +67 -0
- package/dist/marketing/components/Hero.js.map +1 -0
- package/dist/marketing/components/Hero.js.zyzz.json +1 -0
- package/dist/marketing/components/LeadCapture.css +1 -0
- package/dist/marketing/components/LeadCapture.d.ts +102 -0
- package/dist/marketing/components/LeadCapture.d.ts.map +1 -0
- package/dist/marketing/components/LeadCapture.js +78 -0
- package/dist/marketing/components/LeadCapture.js.map +1 -0
- package/dist/marketing/components/LeadCapture.js.zyzz.json +1 -0
- package/dist/marketing/components/Link.css +1 -0
- package/dist/marketing/components/Link.d.ts +342 -0
- package/dist/marketing/components/Link.d.ts.map +1 -0
- package/dist/marketing/components/Link.js +152 -0
- package/dist/marketing/components/Link.js.map +1 -0
- package/dist/marketing/components/Link.js.zyzz.json +1 -0
- package/dist/marketing/components/Logo.css +1 -0
- package/dist/marketing/components/Logo.d.ts +30 -0
- package/dist/marketing/components/Logo.d.ts.map +1 -0
- package/dist/marketing/components/Logo.js +38 -0
- package/dist/marketing/components/Logo.js.map +1 -0
- package/dist/marketing/components/Logo.js.zyzz.json +1 -0
- package/dist/marketing/components/LogoWall.css +1 -0
- package/dist/marketing/components/LogoWall.d.ts +156 -0
- package/dist/marketing/components/LogoWall.d.ts.map +1 -0
- package/dist/marketing/components/LogoWall.js +41 -0
- package/dist/marketing/components/LogoWall.js.map +1 -0
- package/dist/marketing/components/LogoWall.js.zyzz.json +1 -0
- package/dist/marketing/components/Mark.css +1 -0
- package/dist/marketing/components/Mark.d.ts +30 -0
- package/dist/marketing/components/Mark.d.ts.map +1 -0
- package/dist/marketing/components/Mark.js +38 -0
- package/dist/marketing/components/Mark.js.map +1 -0
- package/dist/marketing/components/Mark.js.zyzz.json +1 -0
- package/dist/marketing/components/Media.css +1 -0
- package/dist/marketing/components/Media.d.ts +74 -0
- package/dist/marketing/components/Media.d.ts.map +1 -0
- package/dist/marketing/components/Media.js +80 -0
- package/dist/marketing/components/Media.js.map +1 -0
- package/dist/marketing/components/Media.js.zyzz.json +1 -0
- package/dist/marketing/components/Nav.css +1 -0
- package/dist/marketing/components/Nav.d.ts +303 -0
- package/dist/marketing/components/Nav.d.ts.map +1 -0
- package/dist/marketing/components/Nav.js +166 -0
- package/dist/marketing/components/Nav.js.map +1 -0
- package/dist/marketing/components/Nav.js.zyzz.json +1 -0
- package/dist/marketing/components/PartnersIndex.css +1 -0
- package/dist/marketing/components/PartnersIndex.d.ts +267 -0
- package/dist/marketing/components/PartnersIndex.d.ts.map +1 -0
- package/dist/marketing/components/PartnersIndex.js +96 -0
- package/dist/marketing/components/PartnersIndex.js.map +1 -0
- package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -0
- package/dist/marketing/components/QuoteBand.css +1 -0
- package/dist/marketing/components/QuoteBand.d.ts +128 -0
- package/dist/marketing/components/QuoteBand.d.ts.map +1 -0
- package/dist/marketing/components/QuoteBand.js +73 -0
- package/dist/marketing/components/QuoteBand.js.map +1 -0
- package/dist/marketing/components/QuoteBand.js.zyzz.json +1 -0
- package/dist/marketing/components/Section.css +1 -0
- package/dist/marketing/components/Section.d.ts +132 -0
- package/dist/marketing/components/Section.d.ts.map +1 -0
- package/dist/marketing/components/Section.js +33 -0
- package/dist/marketing/components/Section.js.map +1 -0
- package/dist/marketing/components/Section.js.zyzz.json +1 -0
- package/dist/marketing/components/SectionHeading.css +1 -0
- package/dist/marketing/components/SectionHeading.d.ts +215 -0
- package/dist/marketing/components/SectionHeading.d.ts.map +1 -0
- package/dist/marketing/components/SectionHeading.js +48 -0
- package/dist/marketing/components/SectionHeading.js.map +1 -0
- package/dist/marketing/components/SectionHeading.js.zyzz.json +1 -0
- package/dist/marketing/components/Showcase.css +1 -0
- package/dist/marketing/components/Showcase.d.ts +269 -0
- package/dist/marketing/components/Showcase.d.ts.map +1 -0
- package/dist/marketing/components/Showcase.js +67 -0
- package/dist/marketing/components/Showcase.js.map +1 -0
- package/dist/marketing/components/Showcase.js.zyzz.json +1 -0
- package/dist/marketing/components/Stats.css +1 -0
- package/dist/marketing/components/Stats.d.ts +133 -0
- package/dist/marketing/components/Stats.d.ts.map +1 -0
- package/dist/marketing/components/Stats.js +34 -0
- package/dist/marketing/components/Stats.js.map +1 -0
- package/dist/marketing/components/Stats.js.zyzz.json +1 -0
- package/dist/marketing/components/Steps.css +1 -0
- package/dist/marketing/components/Steps.d.ts +53 -0
- package/dist/marketing/components/Steps.d.ts.map +1 -0
- package/dist/marketing/components/Steps.js +78 -0
- package/dist/marketing/components/Steps.js.map +1 -0
- package/dist/marketing/components/Steps.js.zyzz.json +1 -0
- package/dist/marketing/components/SymbolTile.css +1 -0
- package/dist/marketing/components/SymbolTile.d.ts +85 -0
- package/dist/marketing/components/SymbolTile.d.ts.map +1 -0
- package/dist/marketing/components/SymbolTile.js +35 -0
- package/dist/marketing/components/SymbolTile.js.map +1 -0
- package/dist/marketing/components/SymbolTile.js.zyzz.json +1 -0
- package/dist/marketing/components/Tab.css +1 -0
- package/dist/marketing/components/Tab.d.ts +280 -0
- package/dist/marketing/components/Tab.d.ts.map +1 -0
- package/dist/marketing/components/Tab.js +43 -0
- package/dist/marketing/components/Tab.js.map +1 -0
- package/dist/marketing/components/Tab.js.zyzz.json +1 -0
- package/dist/marketing/components/Table.css +1 -0
- package/dist/marketing/components/Table.d.ts +157 -0
- package/dist/marketing/components/Table.d.ts.map +1 -0
- package/dist/marketing/components/Table.js +80 -0
- package/dist/marketing/components/Table.js.map +1 -0
- package/dist/marketing/components/Table.js.zyzz.json +1 -0
- package/dist/marketing/components/Tag.css +1 -0
- package/dist/marketing/components/Tag.d.ts +254 -0
- package/dist/marketing/components/Tag.d.ts.map +1 -0
- package/dist/marketing/components/Tag.js +59 -0
- package/dist/marketing/components/Tag.js.map +1 -0
- package/dist/marketing/components/Tag.js.zyzz.json +1 -0
- package/dist/marketing/components/internal/Links.d.ts +9 -0
- package/dist/marketing/components/internal/Links.d.ts.map +1 -0
- package/dist/marketing/components/internal/Links.js +15 -0
- package/dist/marketing/components/internal/Links.js.map +1 -0
- package/dist/marketing/icons/ArrowUpRight.d.ts +6 -0
- package/dist/marketing/icons/ArrowUpRight.d.ts.map +1 -0
- package/dist/marketing/icons/ArrowUpRight.js +5 -0
- package/dist/marketing/icons/ArrowUpRight.js.map +1 -0
- package/dist/marketing/icons/Checkmark.d.ts +6 -0
- package/dist/marketing/icons/Checkmark.d.ts.map +1 -0
- package/dist/marketing/icons/Checkmark.js +5 -0
- package/dist/marketing/icons/Checkmark.js.map +1 -0
- package/dist/marketing/icons/ChevronRight.d.ts +6 -0
- package/dist/marketing/icons/ChevronRight.d.ts.map +1 -0
- package/dist/marketing/icons/ChevronRight.js +5 -0
- package/dist/marketing/icons/ChevronRight.js.map +1 -0
- package/dist/marketing/icons/Link.d.ts +6 -0
- package/dist/marketing/icons/Link.d.ts.map +1 -0
- package/dist/marketing/icons/Link.js +5 -0
- package/dist/marketing/icons/Link.js.map +1 -0
- package/dist/marketing/icons/Play.d.ts +6 -0
- package/dist/marketing/icons/Play.d.ts.map +1 -0
- package/dist/marketing/icons/Play.js +5 -0
- package/dist/marketing/icons/Play.js.map +1 -0
- package/dist/marketing/icons/Spinner.d.ts +6 -0
- package/dist/marketing/icons/Spinner.d.ts.map +1 -0
- package/dist/marketing/icons/Spinner.js +5 -0
- package/dist/marketing/icons/Spinner.js.map +1 -0
- package/dist/marketing/icons/Xmark.d.ts +6 -0
- package/dist/marketing/icons/Xmark.d.ts.map +1 -0
- package/dist/marketing/icons/Xmark.js +5 -0
- package/dist/marketing/icons/Xmark.js.map +1 -0
- package/dist/marketing/index.d.ts +34 -1
- package/dist/marketing/index.d.ts.map +1 -1
- package/dist/marketing/index.js +34 -1
- package/dist/marketing/index.js.map +1 -1
- package/dist/marketing/index.js.zyzz.json +1 -1
- package/package.json +8 -2
- package/src/arsenal/icons/CATALOGUE.md +471 -0
- package/src/arsenal/icons/CHANGELOG.md +181 -0
- package/src/arsenal/icons/Icon.tsx +187 -0
- package/src/arsenal/icons/README.md +53 -0
- package/src/arsenal/icons/glyphs.ts +2901 -0
- package/src/arsenal/icons/index.ts +12 -0
- package/src/document/Document.ts +1 -0
- package/src/document/document.css +12 -1
- package/src/marketing/README.md +13 -1
- package/src/marketing/components/ArticleBody.tsx +784 -0
- package/src/marketing/components/ArticleHero.tsx +331 -0
- package/src/marketing/components/ArticleIndex.tsx +457 -0
- package/src/marketing/components/ArticleRail.tsx +384 -0
- package/src/marketing/components/AsideLayout.tsx +52 -0
- package/src/marketing/components/Breadcrumbs.tsx +197 -0
- package/src/marketing/components/Button.tsx +469 -0
- package/src/marketing/components/Card.tsx +865 -0
- package/src/marketing/components/Contact.tsx +157 -0
- package/src/marketing/components/Cta.tsx +297 -0
- package/src/marketing/components/CustomerStoryFeature.tsx +218 -0
- package/src/marketing/components/Faq.tsx +334 -0
- package/src/marketing/components/FeatureAccordion.tsx +459 -0
- package/src/marketing/components/Footer.tsx +440 -0
- package/src/marketing/components/Hero.tsx +275 -0
- package/src/marketing/components/LeadCapture.tsx +322 -0
- package/src/marketing/components/Link.tsx +508 -0
- package/src/marketing/components/Logo.tsx +71 -0
- package/src/marketing/components/LogoWall.tsx +185 -0
- package/src/marketing/components/Mark.tsx +67 -0
- package/src/marketing/components/Media.tsx +275 -0
- package/src/marketing/components/Nav.tsx +1030 -0
- package/src/marketing/components/PartnersIndex.tsx +448 -0
- package/src/marketing/components/QuoteBand.tsx +288 -0
- package/src/marketing/components/Section.tsx +110 -0
- package/src/marketing/components/SectionHeading.tsx +227 -0
- package/src/marketing/components/Showcase.tsx +301 -0
- package/src/marketing/components/Stats.tsx +130 -0
- package/src/marketing/components/Steps.tsx +215 -0
- package/src/marketing/components/SymbolTile.tsx +89 -0
- package/src/marketing/components/Tab.tsx +306 -0
- package/src/marketing/components/Table.tsx +255 -0
- package/src/marketing/components/Tag.tsx +289 -0
- package/src/marketing/components/internal/Links.ts +19 -0
- package/src/marketing/icons/ArrowUpRight.tsx +25 -0
- package/src/marketing/icons/Checkmark.tsx +25 -0
- package/src/marketing/icons/ChevronRight.tsx +25 -0
- package/src/marketing/icons/Link.tsx +25 -0
- package/src/marketing/icons/Play.tsx +25 -0
- package/src/marketing/icons/Spinner.tsx +25 -0
- package/src/marketing/icons/Xmark.tsx +25 -0
- package/src/marketing/index.ts +34 -1
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
/** Renders one feature through a large picture, with its steps, cards or tools beside or under it. @module */
|
|
2
|
+
import { type ComponentPropsWithRef, type ReactNode, useId } from 'react'
|
|
3
|
+
import type * as zyzz from 'zyzz'
|
|
4
|
+
import { style, variants } from '../zyzz.config.js'
|
|
5
|
+
import { Section } from './Section.js'
|
|
6
|
+
import { SectionHeading } from './SectionHeading.js'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* One feature told through a large picture. Renders a `Section` named by its heading, over the art
|
|
10
|
+
* and its items. The art comes in as a slot, so a page keeps its own canvas or animation.
|
|
11
|
+
*
|
|
12
|
+
* - Set `layout` by the content's shape: `split` sets the items in a column beside the art from
|
|
13
|
+
* 1024px, as Home's agentic payments do. `stacked` sets them in a row under the art. `contained`
|
|
14
|
+
* sets the heading inside the art's plate, under the art, from 1024px.
|
|
15
|
+
* - Pass each step, card or tool as a `Showcase.Item`, with its link as a Marketing `Link` in
|
|
16
|
+
* `action`.
|
|
17
|
+
* - Use feature cards for benefits side by side, `Steps` for a sequence the business goes through,
|
|
18
|
+
* and `FeatureAccordion` for capabilities told one at a time.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* <Showcase art={<AgentPayments />} eyebrow="Agentic payments" title="Payments that work for AI agents">
|
|
22
|
+
* <Showcase.Item action={<Link href="https://mpp.dev" icon="external" tone="secondary">Explore MPP</Link>} title="MPP">
|
|
23
|
+
* A protocol for machine payments.
|
|
24
|
+
* </Showcase.Item>
|
|
25
|
+
* </Showcase>
|
|
26
|
+
*
|
|
27
|
+
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html | WCAG 2.2 Info and Relationships}
|
|
28
|
+
*/
|
|
29
|
+
export function Showcase(props: Showcase.Props) {
|
|
30
|
+
const { action, art, children, description, eyebrow, layout, title, titleId, ...attributes } =
|
|
31
|
+
props
|
|
32
|
+
|
|
33
|
+
const generated = useId()
|
|
34
|
+
const id = titleId ?? generated
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<Section aria-labelledby={id} {...attributes}>
|
|
38
|
+
<div {...styles.root({ layout })}>
|
|
39
|
+
<div {...styles.header({ layout })}>
|
|
40
|
+
<SectionHeading
|
|
41
|
+
description={description}
|
|
42
|
+
eyebrow={eyebrow}
|
|
43
|
+
subtitle="body"
|
|
44
|
+
title={title}
|
|
45
|
+
titleId={id}
|
|
46
|
+
>
|
|
47
|
+
{action}
|
|
48
|
+
</SectionHeading>
|
|
49
|
+
</div>
|
|
50
|
+
<div {...styles.body({ layout })}>
|
|
51
|
+
{art && <div {...styles.art({ layout })}>{art}</div>}
|
|
52
|
+
{children && (
|
|
53
|
+
<div data-layout={layout ?? 'split'} {...styles.items({ layout })}>
|
|
54
|
+
{children}
|
|
55
|
+
</div>
|
|
56
|
+
)}
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</Section>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export namespace Showcase {
|
|
64
|
+
export type Props = Omit<Section.Props, 'children' | 'title'> &
|
|
65
|
+
Omit<zyzz.Props.Variants<typeof styles.root>, 'className' | 'style' | 'vars'> & {
|
|
66
|
+
/** The section's one action under the heading, such as a `Button.Link`. */
|
|
67
|
+
action?: ReactNode | undefined
|
|
68
|
+
/** The picture of the feature, such as a canvas, an animation or an image. */
|
|
69
|
+
art?: ReactNode | undefined
|
|
70
|
+
/** The feature's steps, cards or tools, each a `Showcase.Item`. */
|
|
71
|
+
children?: ReactNode | undefined
|
|
72
|
+
/** A line under the title, in Body B1. */
|
|
73
|
+
description?: ReactNode | undefined
|
|
74
|
+
/** A few uppercase words above the title that name the section, such as In practice. */
|
|
75
|
+
eyebrow?: ReactNode | undefined
|
|
76
|
+
/** The `h2`, which names the section. */
|
|
77
|
+
title: ReactNode
|
|
78
|
+
/** The title's `id`. Absent by default, when the showcase generates one. */
|
|
79
|
+
titleId?: string | undefined
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* One step, card or tool of the feature: an `h3` and a line under a hairline, and an optional
|
|
84
|
+
* link. Renders an `article`.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* <Showcase.Item title="Mercator">A discovery layer and tool-router for agentic workflows.</Showcase.Item>
|
|
88
|
+
*/
|
|
89
|
+
export function Item(props: Item.Props) {
|
|
90
|
+
const { action, children, className, title, vars, ...attributes } = props
|
|
91
|
+
|
|
92
|
+
return (
|
|
93
|
+
<article {...attributes} {...styles.item({ className, style: props.style, vars })}>
|
|
94
|
+
<h3 {...styles.itemTitle()}>{title}</h3>
|
|
95
|
+
{children && <p {...styles.itemText()}>{children}</p>}
|
|
96
|
+
{action}
|
|
97
|
+
</article>
|
|
98
|
+
)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export namespace Item {
|
|
102
|
+
export type Props = Omit<ComponentPropsWithRef<'article'>, 'title'> &
|
|
103
|
+
zyzz.Props.Variants<typeof styles.item> & {
|
|
104
|
+
/** A link under the line, such as a Marketing `Link` with `tone="secondary"`. */
|
|
105
|
+
action?: ReactNode | undefined
|
|
106
|
+
/** One line on the item, in Body B1. */
|
|
107
|
+
children?: ReactNode | undefined
|
|
108
|
+
/** The item's `h3`. */
|
|
109
|
+
title: ReactNode
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
namespace styles {
|
|
115
|
+
export const root = variants(
|
|
116
|
+
{
|
|
117
|
+
base: { display: 'grid' },
|
|
118
|
+
defaultVariants: { layout: 'split' },
|
|
119
|
+
variants: {
|
|
120
|
+
/**
|
|
121
|
+
* Where the items and heading go: `split` sets the items in a column beside the art from
|
|
122
|
+
* 1024px, `stacked` in a row under the art, and `contained` sets the heading inside the art's
|
|
123
|
+
* plate, under the art, from 1024px. From 1280px the `contained` plate is 16:9.
|
|
124
|
+
*
|
|
125
|
+
* @default 'split'
|
|
126
|
+
*/
|
|
127
|
+
layout: {
|
|
128
|
+
contained: {
|
|
129
|
+
'@media >=1024': {
|
|
130
|
+
backgroundColor: 'container.surface',
|
|
131
|
+
borderRadius: 'md',
|
|
132
|
+
overflow: 'hidden',
|
|
133
|
+
},
|
|
134
|
+
'@media >=1280': {
|
|
135
|
+
aspectRatio: '16 / 9 !custom',
|
|
136
|
+
gridTemplateRows: 'minmax(0, 1fr) auto !custom',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
split: {},
|
|
140
|
+
stacked: {},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{ id: 'tds/marketing/showcase' },
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
// The art has no plate in `split`: a hairline rules it off above. Elsewhere it sits on the page's
|
|
148
|
+
// grey step with its own corners, which the `contained` plate takes over from 1024px.
|
|
149
|
+
export const art = variants(
|
|
150
|
+
{
|
|
151
|
+
base: {
|
|
152
|
+
minWidth: '0',
|
|
153
|
+
selectors: { '& > *': { display: 'block', maxWidth: '100% !custom' } },
|
|
154
|
+
},
|
|
155
|
+
defaultVariants: { layout: 'split' },
|
|
156
|
+
variants: {
|
|
157
|
+
layout: {
|
|
158
|
+
contained: {
|
|
159
|
+
backgroundColor: 'container.surface',
|
|
160
|
+
borderRadius: 'md',
|
|
161
|
+
overflow: 'hidden',
|
|
162
|
+
'@media >=1024': { backgroundColor: 'transparent !custom', borderRadius: 'none' },
|
|
163
|
+
'@media >=1280': {
|
|
164
|
+
height: '100% !custom',
|
|
165
|
+
selectors: { '& > *': { height: '100% !custom', width: '100% !custom' } },
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
split: {
|
|
169
|
+
borderBlockStartColor: 'line.secondary',
|
|
170
|
+
borderBlockStartStyle: 'solid',
|
|
171
|
+
borderBlockStartWidth: 'regular',
|
|
172
|
+
paddingBlockStart: '32',
|
|
173
|
+
'@media >=1024': { gridColumn: '5 / span 8 !custom', gridRow: '1 !custom' },
|
|
174
|
+
},
|
|
175
|
+
stacked: {
|
|
176
|
+
backgroundColor: 'container.surface',
|
|
177
|
+
borderRadius: 'md',
|
|
178
|
+
overflow: 'hidden',
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{ id: 'tds/marketing/showcase/art' },
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
export const body = variants(
|
|
187
|
+
{
|
|
188
|
+
base: { display: 'grid', minWidth: '0' },
|
|
189
|
+
defaultVariants: { layout: 'split' },
|
|
190
|
+
variants: {
|
|
191
|
+
layout: {
|
|
192
|
+
contained: {
|
|
193
|
+
gap: '32',
|
|
194
|
+
'@media >=1024': { gridRow: '1 !custom' },
|
|
195
|
+
'@media >=1280': { gridTemplateRows: 'minmax(0, 1fr) !custom', minHeight: '0' },
|
|
196
|
+
},
|
|
197
|
+
split: {
|
|
198
|
+
columnGap: '24',
|
|
199
|
+
gridTemplateColumns: 'minmax(0, 1fr) !custom',
|
|
200
|
+
rowGap: '48',
|
|
201
|
+
'@media >=1024': { gridTemplateColumns: 'repeat(12, minmax(0, 1fr)) !custom' },
|
|
202
|
+
},
|
|
203
|
+
stacked: { gap: '32' },
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
{ id: 'tds/marketing/showcase/body' },
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
// Inside the `contained` plate the heading sits under the art, inset by the plate's padding. The
|
|
211
|
+
// heading's own end space is the plate's 48px bottom padding from 1024px.
|
|
212
|
+
export const header = variants(
|
|
213
|
+
{
|
|
214
|
+
base: { minWidth: '0' },
|
|
215
|
+
defaultVariants: { layout: 'split' },
|
|
216
|
+
variants: {
|
|
217
|
+
layout: {
|
|
218
|
+
contained: {
|
|
219
|
+
selectors: { '& h2 + p': { maxWidth: '320px !custom' } },
|
|
220
|
+
'@media >=1024': {
|
|
221
|
+
gridRow: '2 !custom',
|
|
222
|
+
paddingBlockStart: '32',
|
|
223
|
+
paddingInline: '48',
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
split: {},
|
|
227
|
+
stacked: {},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
{ id: 'tds/marketing/showcase/header' },
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
// Each item sits under a hairline: 32px above its title, or 24px in a `stacked` row.
|
|
235
|
+
export const item = variants(
|
|
236
|
+
{
|
|
237
|
+
base: {
|
|
238
|
+
alignItems: 'flex-start',
|
|
239
|
+
borderBlockStartColor: 'line.secondary',
|
|
240
|
+
borderBlockStartStyle: 'solid',
|
|
241
|
+
borderBlockStartWidth: 'regular',
|
|
242
|
+
display: 'flex',
|
|
243
|
+
flexDirection: 'column',
|
|
244
|
+
gap: 'textPair.h4B1',
|
|
245
|
+
minWidth: '0',
|
|
246
|
+
paddingBlockStart: '32',
|
|
247
|
+
typography: 'body.b1',
|
|
248
|
+
selectors: { '[data-layout="stacked"] > &': { paddingBlockStart: '24' } },
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
{ id: 'tds/marketing/showcase/item' },
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
export const items = variants(
|
|
255
|
+
{
|
|
256
|
+
base: { display: 'grid', gap: '32', minWidth: '0' },
|
|
257
|
+
defaultVariants: { layout: 'split' },
|
|
258
|
+
variants: {
|
|
259
|
+
layout: {
|
|
260
|
+
contained: {
|
|
261
|
+
'@media >=768': {
|
|
262
|
+
gap: '24',
|
|
263
|
+
gridAutoColumns: 'minmax(0, 1fr) !custom',
|
|
264
|
+
gridAutoFlow: 'column',
|
|
265
|
+
},
|
|
266
|
+
'@media >=1024': { paddingBlockEnd: '48', paddingInline: '48' },
|
|
267
|
+
},
|
|
268
|
+
split: {
|
|
269
|
+
alignContent: 'start',
|
|
270
|
+
'@media >=1024': { gridColumn: '1 / span 4 !custom', gridRow: '1 !custom' },
|
|
271
|
+
},
|
|
272
|
+
// One column per item from 768px.
|
|
273
|
+
stacked: {
|
|
274
|
+
'@media >=768': {
|
|
275
|
+
gap: '24',
|
|
276
|
+
gridAutoColumns: 'minmax(0, 1fr) !custom',
|
|
277
|
+
gridAutoFlow: 'column',
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
{ id: 'tds/marketing/showcase/items' },
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
export const itemText = style(
|
|
287
|
+
{ color: 'content.secondary', margin: '0', maxWidth: '280', textWrap: 'pretty' },
|
|
288
|
+
{ id: 'tds/marketing/showcase/item-text' },
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
export const itemTitle = style(
|
|
292
|
+
{
|
|
293
|
+
color: 'content.primary',
|
|
294
|
+
margin: '0',
|
|
295
|
+
maxWidth: '400',
|
|
296
|
+
textWrap: 'wrap',
|
|
297
|
+
typography: 'heading.h4',
|
|
298
|
+
},
|
|
299
|
+
{ id: 'tds/marketing/showcase/item-title' },
|
|
300
|
+
)
|
|
301
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/** Renders Marketing stats: a row of figures, each under a rule and over its label. @module */
|
|
2
|
+
import type { ComponentPropsWithRef, ReactNode } from 'react'
|
|
3
|
+
import type * as zyzz from 'zyzz'
|
|
4
|
+
import { variants } from '../zyzz.config.js'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A `<dl>` of figures, each under a rule and over its label: stacked on phones, side by side in
|
|
8
|
+
* equal columns from 768px. Each label is a `<dt>` and its figure the `<dd>`, which draws first. It
|
|
9
|
+
* has no states or motion.
|
|
10
|
+
*
|
|
11
|
+
* - Keep each figure short, such as 2M+ or $10B, and its label to a few words.
|
|
12
|
+
* - Set `size="small"` for long figures or a dense row, such as a report's findings.
|
|
13
|
+
* - Set `appearance="inverse"` in an inverse `Section`.
|
|
14
|
+
* - Pass `aria-label` to name the list, such as ARQ at a glance.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <Stats
|
|
18
|
+
* aria-label="ARQ at a glance"
|
|
19
|
+
* items={[{ label: 'Customers', value: '2M+' }, { label: 'Countries', value: '4' }]}
|
|
20
|
+
* />
|
|
21
|
+
*/
|
|
22
|
+
export function Stats(props: Stats.Props) {
|
|
23
|
+
const { appearance, className, items, size, vars, ...attributes } = props
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<dl {...attributes} {...styles.root({ className, style: props.style, vars })}>
|
|
27
|
+
{items.map((item, index) => (
|
|
28
|
+
<div key={index} {...styles.item({ appearance, size })}>
|
|
29
|
+
<dt {...styles.label({ appearance })}>{item.label}</dt>
|
|
30
|
+
<dd {...styles.value({ size })}>{item.value}</dd>
|
|
31
|
+
</div>
|
|
32
|
+
))}
|
|
33
|
+
</dl>
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export namespace Stats {
|
|
38
|
+
/** One figure and what it counts, such as 2M+ and Customers. */
|
|
39
|
+
export type Stat = {
|
|
40
|
+
/** What the figure counts, in Body B2 up to 320px. */
|
|
41
|
+
label: ReactNode
|
|
42
|
+
/** The figure, drawn above its label. */
|
|
43
|
+
value: ReactNode
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type Props = Omit<ComponentPropsWithRef<'dl'>, 'children'> &
|
|
47
|
+
zyzz.Props.Variants<typeof styles.root> &
|
|
48
|
+
Pick<zyzz.Props.Variants<typeof styles.item>, 'appearance' | 'size'> & {
|
|
49
|
+
/** The figures, in reading order. */
|
|
50
|
+
items: readonly Stat[]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
namespace styles {
|
|
55
|
+
// A rule over each figure, 24px above it, then 12px to its label, or 8px at `small`.
|
|
56
|
+
export const item = variants(
|
|
57
|
+
{
|
|
58
|
+
base: {
|
|
59
|
+
borderBlockStartStyle: 'solid',
|
|
60
|
+
borderBlockStartWidth: 'regular',
|
|
61
|
+
display: 'flex',
|
|
62
|
+
flexDirection: 'column',
|
|
63
|
+
paddingBlockStart: '24',
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: { appearance: 'base', size: 'large' },
|
|
66
|
+
variants: {
|
|
67
|
+
/**
|
|
68
|
+
* The ground under the figures: the page or a light tone for `base`, an inverse `Section`
|
|
69
|
+
* for `inverse`, which takes the inverse rule and text roles.
|
|
70
|
+
*
|
|
71
|
+
* @default 'base'
|
|
72
|
+
*/
|
|
73
|
+
appearance: {
|
|
74
|
+
base: { borderBlockStartColor: 'line.primary', color: 'content.primary' },
|
|
75
|
+
inverse: {
|
|
76
|
+
borderBlockStartColor: 'inverse.line.primary',
|
|
77
|
+
color: 'inverse.content.primary',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* The figure's type: Heading H2 at `large`, and Heading H4 at `small`.
|
|
82
|
+
*
|
|
83
|
+
* @default 'large'
|
|
84
|
+
*/
|
|
85
|
+
size: { large: { gap: '12' }, small: { gap: '8' } },
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{ id: 'tds/marketing/stats/item' },
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
export const label = variants(
|
|
92
|
+
{
|
|
93
|
+
base: { margin: '0', maxWidth: '320', textWrap: 'balance', typography: 'body.b2' },
|
|
94
|
+
defaultVariants: { appearance: 'base' },
|
|
95
|
+
variants: {
|
|
96
|
+
appearance: {
|
|
97
|
+
base: { color: 'content.secondary' },
|
|
98
|
+
inverse: { color: 'inverse.content.secondary' },
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{ id: 'tds/marketing/stats/label' },
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
// One column, 24px apart, and from 768px the figures side by side in equal columns.
|
|
106
|
+
export const root = variants(
|
|
107
|
+
{
|
|
108
|
+
base: {
|
|
109
|
+
display: 'grid',
|
|
110
|
+
gap: '24',
|
|
111
|
+
gridTemplateColumns: 'minmax(0, 1fr) !custom',
|
|
112
|
+
margin: '0',
|
|
113
|
+
'@media >=768': { gridAutoColumns: 'minmax(0, 1fr) !custom', gridAutoFlow: 'column' },
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{ id: 'tds/marketing/stats' },
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
// After its label in the list, and before it on the page.
|
|
120
|
+
export const value = variants(
|
|
121
|
+
{
|
|
122
|
+
base: { margin: '0', order: '-1 !custom' },
|
|
123
|
+
defaultVariants: { size: 'large' },
|
|
124
|
+
variants: {
|
|
125
|
+
size: { large: { typography: 'heading.h2' }, small: { typography: 'heading.h4' } },
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{ id: 'tds/marketing/stats/value' },
|
|
129
|
+
)
|
|
130
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/** Renders Marketing steps: a numbered sequence on one rail that draws in as it comes into view. @module */
|
|
2
|
+
import { type ComponentPropsWithRef, type ReactNode, useEffect, useRef, useState } from 'react'
|
|
3
|
+
import type * as zyzz from 'zyzz'
|
|
4
|
+
import { style, variants } from '../zyzz.config.js'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A numbered sequence on one rail: an `<ol>` whose steps each sit on the rail with a two-digit
|
|
8
|
+
* index, an `<h3>` title and a sentence. Four across from 1024px, and down the start edge below.
|
|
9
|
+
* When the list first comes 40% into view, the rail draws from the first node to the last and each
|
|
10
|
+
* node lights as the rail reaches it. Under reduced motion, and before the script runs, the rail
|
|
11
|
+
* shows drawn.
|
|
12
|
+
*
|
|
13
|
+
* - Use it for an ordered process of up to four steps, such as an engagement's phases.
|
|
14
|
+
* - Start each title with a verb, such as Shape the strategy, and keep each sentence short.
|
|
15
|
+
* - Place it under a heading, such as a `SectionHeading`, since each title is an `<h3>`.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <Steps
|
|
19
|
+
* items={[
|
|
20
|
+
* { description: 'Prioritize high-impact use cases.', title: 'Shape the strategy' },
|
|
21
|
+
* { description: 'Define the roadmap and operating model.', title: 'Design the product' },
|
|
22
|
+
* ]}
|
|
23
|
+
* />
|
|
24
|
+
*
|
|
25
|
+
* @see {@link https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html | WCAG 2.2 Animation from Interactions}
|
|
26
|
+
*/
|
|
27
|
+
export function Steps(props: Steps.Props) {
|
|
28
|
+
const { className, items, vars, ...attributes } = props
|
|
29
|
+
|
|
30
|
+
const list = useRef<HTMLOListElement>(null)
|
|
31
|
+
const [drawn, setDrawn] = useState(false)
|
|
32
|
+
const [pending, setPending] = useState(false)
|
|
33
|
+
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const element = list.current
|
|
36
|
+
if (!element) return
|
|
37
|
+
|
|
38
|
+
if (!matchMedia('(prefers-reduced-motion: no-preference)').matches) {
|
|
39
|
+
setDrawn(true)
|
|
40
|
+
return
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// The rail waits undrawn until the list comes into view, then draws once.
|
|
44
|
+
setPending(true)
|
|
45
|
+
const observer = new IntersectionObserver(
|
|
46
|
+
(entries) => {
|
|
47
|
+
if (!entries[0]?.isIntersecting) return
|
|
48
|
+
setDrawn(true)
|
|
49
|
+
observer.disconnect()
|
|
50
|
+
},
|
|
51
|
+
{ threshold: 0.4 },
|
|
52
|
+
)
|
|
53
|
+
observer.observe(element)
|
|
54
|
+
|
|
55
|
+
return () => observer.disconnect()
|
|
56
|
+
}, [])
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<div
|
|
60
|
+
{...attributes}
|
|
61
|
+
data-drawn={drawn ? '' : undefined}
|
|
62
|
+
data-pending={pending ? '' : undefined}
|
|
63
|
+
{...styles.root({ className, style: props.style, vars })}
|
|
64
|
+
>
|
|
65
|
+
<span aria-hidden="true" {...styles.rail()} />
|
|
66
|
+
<ol ref={list} {...styles.list()}>
|
|
67
|
+
{items.map((item, index) => (
|
|
68
|
+
<li key={index} {...styles.step()}>
|
|
69
|
+
<span aria-hidden="true" {...styles.number()}>
|
|
70
|
+
{String(index + 1).padStart(2, '0')}
|
|
71
|
+
</span>
|
|
72
|
+
<h3 {...styles.title()}>{item.title}</h3>
|
|
73
|
+
<p {...styles.text()}>{item.description}</p>
|
|
74
|
+
</li>
|
|
75
|
+
))}
|
|
76
|
+
</ol>
|
|
77
|
+
</div>
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export namespace Steps {
|
|
82
|
+
/** One step: its title and a sentence on what it does. */
|
|
83
|
+
export type Step = {
|
|
84
|
+
/** What the step does, in one sentence. */
|
|
85
|
+
description: ReactNode
|
|
86
|
+
/** The step's `h3`, in Heading H4. */
|
|
87
|
+
title: ReactNode
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type Props = Omit<ComponentPropsWithRef<'div'>, 'children'> &
|
|
91
|
+
zyzz.Props.Variants<typeof styles.root> & {
|
|
92
|
+
/** The steps, in order. The list numbers them from 01. */
|
|
93
|
+
items: readonly Step[]
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
namespace styles {
|
|
98
|
+
// Each step's node sits on the rail, its copy 24px below it from 1024px (four across) and 32px
|
|
99
|
+
// beside it below (stacked down the rail).
|
|
100
|
+
export const list = style(
|
|
101
|
+
{
|
|
102
|
+
display: 'grid',
|
|
103
|
+
gap: '48',
|
|
104
|
+
gridTemplateColumns: 'minmax(0, 1fr) !custom',
|
|
105
|
+
listStyle: 'none !custom',
|
|
106
|
+
margin: '0',
|
|
107
|
+
padding: '0',
|
|
108
|
+
'@media >=1024': { gap: '24', gridTemplateColumns: 'repeat(4, minmax(0, 1fr)) !custom' },
|
|
109
|
+
},
|
|
110
|
+
{ id: 'tds/marketing/steps/list' },
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
// The index, in Utility Mono, its 14px line padded to the 22px of the Body B1 line it replaces,
|
|
114
|
+
// which the node centers on.
|
|
115
|
+
export const number = style(
|
|
116
|
+
{ color: 'content.secondary', paddingBlock: '4', typography: 'utility.mono' },
|
|
117
|
+
{ id: 'tds/marketing/steps/number' },
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
// A hairline through the centers of the 9px nodes, from the first node on. While it waits, it
|
|
121
|
+
// snaps to scale 0, then draws over the draw pace on its curve. Only the draw moves, so the rail
|
|
122
|
+
// never shrinks into its wait.
|
|
123
|
+
export const rail = style(
|
|
124
|
+
{
|
|
125
|
+
backgroundColor: 'line.primary',
|
|
126
|
+
insetBlock: '11px 0 !custom',
|
|
127
|
+
insetInlineStart: '4px !custom',
|
|
128
|
+
position: 'absolute',
|
|
129
|
+
transformOrigin: 'top !custom',
|
|
130
|
+
width: '1px !custom',
|
|
131
|
+
selectors: {
|
|
132
|
+
'[data-pending]:not([data-drawn]) > &': { transform: 'scaleY(0) !custom' },
|
|
133
|
+
'[data-drawn] > &': {
|
|
134
|
+
transitionDuration: 'draw',
|
|
135
|
+
transitionProperty: 'transform !custom',
|
|
136
|
+
transitionTimingFunction: 'draw',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
'@media >=1024': {
|
|
140
|
+
height: '1px !custom',
|
|
141
|
+
insetBlock: '4px auto !custom',
|
|
142
|
+
insetInline: '0',
|
|
143
|
+
// It draws from the inline start.
|
|
144
|
+
transformOrigin: 'left !custom',
|
|
145
|
+
width: 'auto !custom',
|
|
146
|
+
selectors: {
|
|
147
|
+
'[dir="rtl"] &': { transformOrigin: 'right !custom' },
|
|
148
|
+
'[data-pending]:not([data-drawn]) > &': { transform: 'scaleX(0) !custom' },
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
{ id: 'tds/marketing/steps/rail' },
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
export const root = variants({ base: { position: 'relative' } }, { id: 'tds/marketing/steps' })
|
|
156
|
+
|
|
157
|
+
// The node: a solid 9px squircle on the rail, in an opaque grey of the rail until the rail
|
|
158
|
+
// reaches it, then a darker grey, so the rail never shows through. Each node fades in as the
|
|
159
|
+
// drawn rail reaches it, and snaps out to wait. On its curve the rail passes 1/4, 2/4 and 3/4 of
|
|
160
|
+
// its length at about 40%, 50% and 60% of its 1400ms. Below 1024px the node centers on the
|
|
161
|
+
// index's 22px line.
|
|
162
|
+
export const step = style(
|
|
163
|
+
{
|
|
164
|
+
alignItems: 'flex-start',
|
|
165
|
+
display: 'flex',
|
|
166
|
+
flexDirection: 'column',
|
|
167
|
+
paddingInlineStart: '32',
|
|
168
|
+
position: 'relative',
|
|
169
|
+
selectors: {
|
|
170
|
+
'& > h3': { marginBlockStart: '16' },
|
|
171
|
+
'& > h3 + p': { marginBlockStart: 'textPair.h4B1' },
|
|
172
|
+
'&::before, &::after': {
|
|
173
|
+
borderRadius: 'calc(2px * var(--tds-corner-scale, 1)) !custom',
|
|
174
|
+
content: '"" !custom',
|
|
175
|
+
height: '9px !custom',
|
|
176
|
+
insetBlockStart: '6.5px !custom',
|
|
177
|
+
insetInlineStart: '0',
|
|
178
|
+
position: 'absolute',
|
|
179
|
+
width: '9px !custom',
|
|
180
|
+
},
|
|
181
|
+
'&::before': { backgroundColor: 'neutral.020' },
|
|
182
|
+
'&::after': { backgroundColor: 'neutral.040' },
|
|
183
|
+
'[data-pending]:not([data-drawn]) &::after': { opacity: '0 !custom' },
|
|
184
|
+
'[data-drawn] &::after': {
|
|
185
|
+
transitionDuration: 'state',
|
|
186
|
+
transitionProperty: 'opacity !custom',
|
|
187
|
+
transitionTimingFunction: 'enter',
|
|
188
|
+
},
|
|
189
|
+
'[data-drawn] &:nth-child(2)::after': { transitionDelay: '560ms !custom' },
|
|
190
|
+
'[data-drawn] &:nth-child(3)::after': { transitionDelay: '700ms !custom' },
|
|
191
|
+
'[data-drawn] &:nth-child(4)::after': { transitionDelay: '840ms !custom' },
|
|
192
|
+
},
|
|
193
|
+
'@media (prefers-reduced-motion: reduce)': {
|
|
194
|
+
selectors: { '[data-drawn] &::after': { transitionDelay: '0ms !custom' } },
|
|
195
|
+
},
|
|
196
|
+
'@media >=1024': {
|
|
197
|
+
paddingBlockStart: '24',
|
|
198
|
+
paddingInlineStart: '0',
|
|
199
|
+
selectors: { '&::before, &::after': { insetBlockStart: '0' } },
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
{ id: 'tds/marketing/steps/step' },
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
// The sentence, which holds 4.5:1 on the page.
|
|
206
|
+
export const text = style(
|
|
207
|
+
{ color: 'content.secondary', margin: '0', maxWidth: '320', typography: 'body.b1' },
|
|
208
|
+
{ id: 'tds/marketing/steps/text' },
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
export const title = style(
|
|
212
|
+
{ color: 'content.primary', margin: '0', maxWidth: '600', typography: 'heading.h4' },
|
|
213
|
+
{ id: 'tds/marketing/steps/title' },
|
|
214
|
+
)
|
|
215
|
+
}
|