@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.
Files changed (311) hide show
  1. package/dist/arsenal/icons/Icon.d.ts +57 -0
  2. package/dist/arsenal/icons/Icon.d.ts.map +1 -0
  3. package/dist/arsenal/icons/Icon.js +117 -0
  4. package/dist/arsenal/icons/Icon.js.map +1 -0
  5. package/dist/arsenal/icons/glyphs.d.ts +5238 -0
  6. package/dist/arsenal/icons/glyphs.d.ts.map +1 -0
  7. package/dist/arsenal/icons/glyphs.js +2888 -0
  8. package/dist/arsenal/icons/glyphs.js.map +1 -0
  9. package/dist/arsenal/icons/index.d.ts +4 -0
  10. package/dist/arsenal/icons/index.d.ts.map +1 -0
  11. package/dist/arsenal/icons/index.js +4 -0
  12. package/dist/arsenal/icons/index.js.map +1 -0
  13. package/dist/docs/AGENTS.md +2 -2
  14. package/dist/docs/arsenal.md +4555 -0
  15. package/dist/docs/marketing.md +7082 -480
  16. package/dist/docs/product/documents.md +17 -1
  17. package/dist/document/Document.d.ts +1 -1
  18. package/dist/document/Document.d.ts.map +1 -1
  19. package/dist/document/Document.js +1 -0
  20. package/dist/document/Document.js.map +1 -1
  21. package/dist/document/document.css +12 -1
  22. package/dist/document/templates/brief.html +3 -3
  23. package/dist/document/templates/essay.html +3 -3
  24. package/dist/document/templates/post.html +3 -3
  25. package/dist/marketing/components/ArticleBody.css +1 -0
  26. package/dist/marketing/components/ArticleBody.d.ts +1013 -0
  27. package/dist/marketing/components/ArticleBody.d.ts.map +1 -0
  28. package/dist/marketing/components/ArticleBody.js +120 -0
  29. package/dist/marketing/components/ArticleBody.js.map +1 -0
  30. package/dist/marketing/components/ArticleBody.js.zyzz.json +1 -0
  31. package/dist/marketing/components/ArticleHero.css +1 -0
  32. package/dist/marketing/components/ArticleHero.d.ts +168 -0
  33. package/dist/marketing/components/ArticleHero.d.ts.map +1 -0
  34. package/dist/marketing/components/ArticleHero.js +74 -0
  35. package/dist/marketing/components/ArticleHero.js.map +1 -0
  36. package/dist/marketing/components/ArticleHero.js.zyzz.json +1 -0
  37. package/dist/marketing/components/ArticleIndex.css +1 -0
  38. package/dist/marketing/components/ArticleIndex.d.ts +164 -0
  39. package/dist/marketing/components/ArticleIndex.d.ts.map +1 -0
  40. package/dist/marketing/components/ArticleIndex.js +100 -0
  41. package/dist/marketing/components/ArticleIndex.js.map +1 -0
  42. package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -0
  43. package/dist/marketing/components/ArticleRail.css +1 -0
  44. package/dist/marketing/components/ArticleRail.d.ts +105 -0
  45. package/dist/marketing/components/ArticleRail.d.ts.map +1 -0
  46. package/dist/marketing/components/ArticleRail.js +96 -0
  47. package/dist/marketing/components/ArticleRail.js.map +1 -0
  48. package/dist/marketing/components/ArticleRail.js.zyzz.json +1 -0
  49. package/dist/marketing/components/AsideLayout.css +1 -0
  50. package/dist/marketing/components/AsideLayout.d.ts +39 -0
  51. package/dist/marketing/components/AsideLayout.d.ts.map +1 -0
  52. package/dist/marketing/components/AsideLayout.js +24 -0
  53. package/dist/marketing/components/AsideLayout.js.map +1 -0
  54. package/dist/marketing/components/AsideLayout.js.zyzz.json +1 -0
  55. package/dist/marketing/components/Breadcrumbs.css +1 -0
  56. package/dist/marketing/components/Breadcrumbs.d.ts +132 -0
  57. package/dist/marketing/components/Breadcrumbs.d.ts.map +1 -0
  58. package/dist/marketing/components/Breadcrumbs.js +75 -0
  59. package/dist/marketing/components/Breadcrumbs.js.map +1 -0
  60. package/dist/marketing/components/Breadcrumbs.js.zyzz.json +1 -0
  61. package/dist/marketing/components/Button.css +1 -0
  62. package/dist/marketing/components/Button.d.ts +421 -0
  63. package/dist/marketing/components/Button.d.ts.map +1 -0
  64. package/dist/marketing/components/Button.js +87 -0
  65. package/dist/marketing/components/Button.js.map +1 -0
  66. package/dist/marketing/components/Button.js.zyzz.json +1 -0
  67. package/dist/marketing/components/Card.css +1 -0
  68. package/dist/marketing/components/Card.d.ts +563 -0
  69. package/dist/marketing/components/Card.d.ts.map +1 -0
  70. package/dist/marketing/components/Card.js +171 -0
  71. package/dist/marketing/components/Card.js.map +1 -0
  72. package/dist/marketing/components/Card.js.zyzz.json +1 -0
  73. package/dist/marketing/components/Contact.css +1 -0
  74. package/dist/marketing/components/Contact.d.ts +51 -0
  75. package/dist/marketing/components/Contact.d.ts.map +1 -0
  76. package/dist/marketing/components/Contact.js +44 -0
  77. package/dist/marketing/components/Contact.js.map +1 -0
  78. package/dist/marketing/components/Contact.js.zyzz.json +1 -0
  79. package/dist/marketing/components/Cta.css +1 -0
  80. package/dist/marketing/components/Cta.d.ts +138 -0
  81. package/dist/marketing/components/Cta.d.ts.map +1 -0
  82. package/dist/marketing/components/Cta.js +71 -0
  83. package/dist/marketing/components/Cta.js.map +1 -0
  84. package/dist/marketing/components/Cta.js.zyzz.json +1 -0
  85. package/dist/marketing/components/CustomerStoryFeature.css +1 -0
  86. package/dist/marketing/components/CustomerStoryFeature.d.ts +48 -0
  87. package/dist/marketing/components/CustomerStoryFeature.d.ts.map +1 -0
  88. package/dist/marketing/components/CustomerStoryFeature.js +58 -0
  89. package/dist/marketing/components/CustomerStoryFeature.js.map +1 -0
  90. package/dist/marketing/components/CustomerStoryFeature.js.zyzz.json +1 -0
  91. package/dist/marketing/components/Faq.css +1 -0
  92. package/dist/marketing/components/Faq.d.ts +99 -0
  93. package/dist/marketing/components/Faq.d.ts.map +1 -0
  94. package/dist/marketing/components/Faq.js +83 -0
  95. package/dist/marketing/components/Faq.js.map +1 -0
  96. package/dist/marketing/components/Faq.js.zyzz.json +1 -0
  97. package/dist/marketing/components/FeatureAccordion.css +1 -0
  98. package/dist/marketing/components/FeatureAccordion.d.ts +230 -0
  99. package/dist/marketing/components/FeatureAccordion.d.ts.map +1 -0
  100. package/dist/marketing/components/FeatureAccordion.js +117 -0
  101. package/dist/marketing/components/FeatureAccordion.js.map +1 -0
  102. package/dist/marketing/components/FeatureAccordion.js.zyzz.json +1 -0
  103. package/dist/marketing/components/Footer.css +1 -0
  104. package/dist/marketing/components/Footer.d.ts +178 -0
  105. package/dist/marketing/components/Footer.d.ts.map +1 -0
  106. package/dist/marketing/components/Footer.js +109 -0
  107. package/dist/marketing/components/Footer.js.map +1 -0
  108. package/dist/marketing/components/Footer.js.zyzz.json +1 -0
  109. package/dist/marketing/components/Hero.css +1 -0
  110. package/dist/marketing/components/Hero.d.ts +200 -0
  111. package/dist/marketing/components/Hero.d.ts.map +1 -0
  112. package/dist/marketing/components/Hero.js +67 -0
  113. package/dist/marketing/components/Hero.js.map +1 -0
  114. package/dist/marketing/components/Hero.js.zyzz.json +1 -0
  115. package/dist/marketing/components/LeadCapture.css +1 -0
  116. package/dist/marketing/components/LeadCapture.d.ts +102 -0
  117. package/dist/marketing/components/LeadCapture.d.ts.map +1 -0
  118. package/dist/marketing/components/LeadCapture.js +78 -0
  119. package/dist/marketing/components/LeadCapture.js.map +1 -0
  120. package/dist/marketing/components/LeadCapture.js.zyzz.json +1 -0
  121. package/dist/marketing/components/Link.css +1 -0
  122. package/dist/marketing/components/Link.d.ts +342 -0
  123. package/dist/marketing/components/Link.d.ts.map +1 -0
  124. package/dist/marketing/components/Link.js +152 -0
  125. package/dist/marketing/components/Link.js.map +1 -0
  126. package/dist/marketing/components/Link.js.zyzz.json +1 -0
  127. package/dist/marketing/components/Logo.css +1 -0
  128. package/dist/marketing/components/Logo.d.ts +30 -0
  129. package/dist/marketing/components/Logo.d.ts.map +1 -0
  130. package/dist/marketing/components/Logo.js +38 -0
  131. package/dist/marketing/components/Logo.js.map +1 -0
  132. package/dist/marketing/components/Logo.js.zyzz.json +1 -0
  133. package/dist/marketing/components/LogoWall.css +1 -0
  134. package/dist/marketing/components/LogoWall.d.ts +156 -0
  135. package/dist/marketing/components/LogoWall.d.ts.map +1 -0
  136. package/dist/marketing/components/LogoWall.js +41 -0
  137. package/dist/marketing/components/LogoWall.js.map +1 -0
  138. package/dist/marketing/components/LogoWall.js.zyzz.json +1 -0
  139. package/dist/marketing/components/Mark.css +1 -0
  140. package/dist/marketing/components/Mark.d.ts +30 -0
  141. package/dist/marketing/components/Mark.d.ts.map +1 -0
  142. package/dist/marketing/components/Mark.js +38 -0
  143. package/dist/marketing/components/Mark.js.map +1 -0
  144. package/dist/marketing/components/Mark.js.zyzz.json +1 -0
  145. package/dist/marketing/components/Media.css +1 -0
  146. package/dist/marketing/components/Media.d.ts +74 -0
  147. package/dist/marketing/components/Media.d.ts.map +1 -0
  148. package/dist/marketing/components/Media.js +80 -0
  149. package/dist/marketing/components/Media.js.map +1 -0
  150. package/dist/marketing/components/Media.js.zyzz.json +1 -0
  151. package/dist/marketing/components/Nav.css +1 -0
  152. package/dist/marketing/components/Nav.d.ts +303 -0
  153. package/dist/marketing/components/Nav.d.ts.map +1 -0
  154. package/dist/marketing/components/Nav.js +166 -0
  155. package/dist/marketing/components/Nav.js.map +1 -0
  156. package/dist/marketing/components/Nav.js.zyzz.json +1 -0
  157. package/dist/marketing/components/PartnersIndex.css +1 -0
  158. package/dist/marketing/components/PartnersIndex.d.ts +267 -0
  159. package/dist/marketing/components/PartnersIndex.d.ts.map +1 -0
  160. package/dist/marketing/components/PartnersIndex.js +96 -0
  161. package/dist/marketing/components/PartnersIndex.js.map +1 -0
  162. package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -0
  163. package/dist/marketing/components/QuoteBand.css +1 -0
  164. package/dist/marketing/components/QuoteBand.d.ts +128 -0
  165. package/dist/marketing/components/QuoteBand.d.ts.map +1 -0
  166. package/dist/marketing/components/QuoteBand.js +73 -0
  167. package/dist/marketing/components/QuoteBand.js.map +1 -0
  168. package/dist/marketing/components/QuoteBand.js.zyzz.json +1 -0
  169. package/dist/marketing/components/Section.css +1 -0
  170. package/dist/marketing/components/Section.d.ts +132 -0
  171. package/dist/marketing/components/Section.d.ts.map +1 -0
  172. package/dist/marketing/components/Section.js +33 -0
  173. package/dist/marketing/components/Section.js.map +1 -0
  174. package/dist/marketing/components/Section.js.zyzz.json +1 -0
  175. package/dist/marketing/components/SectionHeading.css +1 -0
  176. package/dist/marketing/components/SectionHeading.d.ts +215 -0
  177. package/dist/marketing/components/SectionHeading.d.ts.map +1 -0
  178. package/dist/marketing/components/SectionHeading.js +48 -0
  179. package/dist/marketing/components/SectionHeading.js.map +1 -0
  180. package/dist/marketing/components/SectionHeading.js.zyzz.json +1 -0
  181. package/dist/marketing/components/Showcase.css +1 -0
  182. package/dist/marketing/components/Showcase.d.ts +269 -0
  183. package/dist/marketing/components/Showcase.d.ts.map +1 -0
  184. package/dist/marketing/components/Showcase.js +67 -0
  185. package/dist/marketing/components/Showcase.js.map +1 -0
  186. package/dist/marketing/components/Showcase.js.zyzz.json +1 -0
  187. package/dist/marketing/components/Stats.css +1 -0
  188. package/dist/marketing/components/Stats.d.ts +133 -0
  189. package/dist/marketing/components/Stats.d.ts.map +1 -0
  190. package/dist/marketing/components/Stats.js +34 -0
  191. package/dist/marketing/components/Stats.js.map +1 -0
  192. package/dist/marketing/components/Stats.js.zyzz.json +1 -0
  193. package/dist/marketing/components/Steps.css +1 -0
  194. package/dist/marketing/components/Steps.d.ts +53 -0
  195. package/dist/marketing/components/Steps.d.ts.map +1 -0
  196. package/dist/marketing/components/Steps.js +78 -0
  197. package/dist/marketing/components/Steps.js.map +1 -0
  198. package/dist/marketing/components/Steps.js.zyzz.json +1 -0
  199. package/dist/marketing/components/SymbolTile.css +1 -0
  200. package/dist/marketing/components/SymbolTile.d.ts +85 -0
  201. package/dist/marketing/components/SymbolTile.d.ts.map +1 -0
  202. package/dist/marketing/components/SymbolTile.js +35 -0
  203. package/dist/marketing/components/SymbolTile.js.map +1 -0
  204. package/dist/marketing/components/SymbolTile.js.zyzz.json +1 -0
  205. package/dist/marketing/components/Tab.css +1 -0
  206. package/dist/marketing/components/Tab.d.ts +280 -0
  207. package/dist/marketing/components/Tab.d.ts.map +1 -0
  208. package/dist/marketing/components/Tab.js +43 -0
  209. package/dist/marketing/components/Tab.js.map +1 -0
  210. package/dist/marketing/components/Tab.js.zyzz.json +1 -0
  211. package/dist/marketing/components/Table.css +1 -0
  212. package/dist/marketing/components/Table.d.ts +157 -0
  213. package/dist/marketing/components/Table.d.ts.map +1 -0
  214. package/dist/marketing/components/Table.js +80 -0
  215. package/dist/marketing/components/Table.js.map +1 -0
  216. package/dist/marketing/components/Table.js.zyzz.json +1 -0
  217. package/dist/marketing/components/Tag.css +1 -0
  218. package/dist/marketing/components/Tag.d.ts +254 -0
  219. package/dist/marketing/components/Tag.d.ts.map +1 -0
  220. package/dist/marketing/components/Tag.js +59 -0
  221. package/dist/marketing/components/Tag.js.map +1 -0
  222. package/dist/marketing/components/Tag.js.zyzz.json +1 -0
  223. package/dist/marketing/components/internal/Links.d.ts +9 -0
  224. package/dist/marketing/components/internal/Links.d.ts.map +1 -0
  225. package/dist/marketing/components/internal/Links.js +15 -0
  226. package/dist/marketing/components/internal/Links.js.map +1 -0
  227. package/dist/marketing/icons/ArrowUpRight.d.ts +6 -0
  228. package/dist/marketing/icons/ArrowUpRight.d.ts.map +1 -0
  229. package/dist/marketing/icons/ArrowUpRight.js +5 -0
  230. package/dist/marketing/icons/ArrowUpRight.js.map +1 -0
  231. package/dist/marketing/icons/Checkmark.d.ts +6 -0
  232. package/dist/marketing/icons/Checkmark.d.ts.map +1 -0
  233. package/dist/marketing/icons/Checkmark.js +5 -0
  234. package/dist/marketing/icons/Checkmark.js.map +1 -0
  235. package/dist/marketing/icons/ChevronRight.d.ts +6 -0
  236. package/dist/marketing/icons/ChevronRight.d.ts.map +1 -0
  237. package/dist/marketing/icons/ChevronRight.js +5 -0
  238. package/dist/marketing/icons/ChevronRight.js.map +1 -0
  239. package/dist/marketing/icons/Link.d.ts +6 -0
  240. package/dist/marketing/icons/Link.d.ts.map +1 -0
  241. package/dist/marketing/icons/Link.js +5 -0
  242. package/dist/marketing/icons/Link.js.map +1 -0
  243. package/dist/marketing/icons/Play.d.ts +6 -0
  244. package/dist/marketing/icons/Play.d.ts.map +1 -0
  245. package/dist/marketing/icons/Play.js +5 -0
  246. package/dist/marketing/icons/Play.js.map +1 -0
  247. package/dist/marketing/icons/Spinner.d.ts +6 -0
  248. package/dist/marketing/icons/Spinner.d.ts.map +1 -0
  249. package/dist/marketing/icons/Spinner.js +5 -0
  250. package/dist/marketing/icons/Spinner.js.map +1 -0
  251. package/dist/marketing/icons/Xmark.d.ts +6 -0
  252. package/dist/marketing/icons/Xmark.d.ts.map +1 -0
  253. package/dist/marketing/icons/Xmark.js +5 -0
  254. package/dist/marketing/icons/Xmark.js.map +1 -0
  255. package/dist/marketing/index.d.ts +34 -1
  256. package/dist/marketing/index.d.ts.map +1 -1
  257. package/dist/marketing/index.js +34 -1
  258. package/dist/marketing/index.js.map +1 -1
  259. package/dist/marketing/index.js.zyzz.json +1 -1
  260. package/package.json +8 -2
  261. package/src/arsenal/icons/CATALOGUE.md +471 -0
  262. package/src/arsenal/icons/CHANGELOG.md +181 -0
  263. package/src/arsenal/icons/Icon.tsx +187 -0
  264. package/src/arsenal/icons/README.md +53 -0
  265. package/src/arsenal/icons/glyphs.ts +2901 -0
  266. package/src/arsenal/icons/index.ts +12 -0
  267. package/src/document/Document.ts +1 -0
  268. package/src/document/document.css +12 -1
  269. package/src/marketing/README.md +13 -1
  270. package/src/marketing/components/ArticleBody.tsx +784 -0
  271. package/src/marketing/components/ArticleHero.tsx +331 -0
  272. package/src/marketing/components/ArticleIndex.tsx +457 -0
  273. package/src/marketing/components/ArticleRail.tsx +384 -0
  274. package/src/marketing/components/AsideLayout.tsx +52 -0
  275. package/src/marketing/components/Breadcrumbs.tsx +197 -0
  276. package/src/marketing/components/Button.tsx +469 -0
  277. package/src/marketing/components/Card.tsx +865 -0
  278. package/src/marketing/components/Contact.tsx +157 -0
  279. package/src/marketing/components/Cta.tsx +297 -0
  280. package/src/marketing/components/CustomerStoryFeature.tsx +218 -0
  281. package/src/marketing/components/Faq.tsx +334 -0
  282. package/src/marketing/components/FeatureAccordion.tsx +459 -0
  283. package/src/marketing/components/Footer.tsx +440 -0
  284. package/src/marketing/components/Hero.tsx +275 -0
  285. package/src/marketing/components/LeadCapture.tsx +322 -0
  286. package/src/marketing/components/Link.tsx +508 -0
  287. package/src/marketing/components/Logo.tsx +71 -0
  288. package/src/marketing/components/LogoWall.tsx +185 -0
  289. package/src/marketing/components/Mark.tsx +67 -0
  290. package/src/marketing/components/Media.tsx +275 -0
  291. package/src/marketing/components/Nav.tsx +1030 -0
  292. package/src/marketing/components/PartnersIndex.tsx +448 -0
  293. package/src/marketing/components/QuoteBand.tsx +288 -0
  294. package/src/marketing/components/Section.tsx +110 -0
  295. package/src/marketing/components/SectionHeading.tsx +227 -0
  296. package/src/marketing/components/Showcase.tsx +301 -0
  297. package/src/marketing/components/Stats.tsx +130 -0
  298. package/src/marketing/components/Steps.tsx +215 -0
  299. package/src/marketing/components/SymbolTile.tsx +89 -0
  300. package/src/marketing/components/Tab.tsx +306 -0
  301. package/src/marketing/components/Table.tsx +255 -0
  302. package/src/marketing/components/Tag.tsx +289 -0
  303. package/src/marketing/components/internal/Links.ts +19 -0
  304. package/src/marketing/icons/ArrowUpRight.tsx +25 -0
  305. package/src/marketing/icons/Checkmark.tsx +25 -0
  306. package/src/marketing/icons/ChevronRight.tsx +25 -0
  307. package/src/marketing/icons/Link.tsx +25 -0
  308. package/src/marketing/icons/Play.tsx +25 -0
  309. package/src/marketing/icons/Spinner.tsx +25 -0
  310. package/src/marketing/icons/Xmark.tsx +25 -0
  311. package/src/marketing/index.ts +34 -1
@@ -0,0 +1,185 @@
1
+ /** Renders the companies Tempo was designed with as a wall of logos under a centered heading. @module */
2
+ import { type ReactNode, useId } from 'react'
3
+ import type * as zyzz from 'zyzz'
4
+ import { variants } from '../zyzz.config.js'
5
+ import { Section } from './Section.js'
6
+ import { SectionHeading } from './SectionHeading.js'
7
+
8
+ /**
9
+ * The companies Tempo was designed with, as on About. Renders a `Section` named by its centered
10
+ * heading over a list of logos: two columns, three from 640px and six from 1024px. Every logo draws
11
+ * in one ink at 28px tall and at most 140px wide, so no company outweighs another.
12
+ *
13
+ * - Pass each logo as a `src` or a `logo` node, with the company's `name`. The name labels the
14
+ * logo, so a screen reader reads every company.
15
+ * - Set `appearance="inverse"` with `tone="inverse"`, so the logos and heading draw near-white.
16
+ * - Use a `Hero` with logos for a row under a page's title, and a partners directory for partners a
17
+ * visitor can search.
18
+ *
19
+ * @example
20
+ * <LogoWall
21
+ * description="Tempo was shaped with input from fintechs, banks, and commerce platforms."
22
+ * logos={[{ name: 'Visa', src: '/partners/visa.svg' }]}
23
+ * title="Designed with global payment leaders"
24
+ * />
25
+ *
26
+ * @see {@link https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html | WCAG 2.2 Non-text Content}
27
+ * @see {@link https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html | WCAG 2.2 Info and Relationships}
28
+ */
29
+ export function LogoWall(props: LogoWall.Props) {
30
+ const { appearance, description, logos, title, titleId, ...attributes } = props
31
+
32
+ const generated = useId()
33
+ const id = titleId ?? generated
34
+
35
+ return (
36
+ <Section aria-labelledby={id} {...attributes}>
37
+ <SectionHeading
38
+ appearance={appearance}
39
+ centered
40
+ description={description}
41
+ subtitle="body"
42
+ title={title}
43
+ titleId={id}
44
+ />
45
+ <ul {...styles.list()}>
46
+ {logos.map((logo) => (
47
+ <li key={logo.name}>
48
+ {'src' in logo ? (
49
+ <img
50
+ alt={logo.name}
51
+ loading="lazy"
52
+ src={logo.src}
53
+ {...styles.logo({ appearance, kind: 'image' })}
54
+ />
55
+ ) : (
56
+ <span
57
+ aria-label={logo.name}
58
+ role="img"
59
+ {...styles.logo({ appearance, kind: 'node' })}
60
+ >
61
+ {logo.logo}
62
+ </span>
63
+ )}
64
+ </li>
65
+ ))}
66
+ </ul>
67
+ </Section>
68
+ )
69
+ }
70
+
71
+ export namespace LogoWall {
72
+ /** One company's logo: a file by its `src`, or a node such as an inline `svg`. */
73
+ export type Logo =
74
+ | {
75
+ /** The company's name, which labels the logo. */
76
+ name: string
77
+ /** The logo file's URL, such as an SVG cropped to its ink. */
78
+ src: string
79
+ }
80
+ | {
81
+ /** The logo as a node, such as an inline `svg`. It draws at the wall's height. */
82
+ logo: ReactNode
83
+ /** The company's name, which labels the logo. */
84
+ name: string
85
+ }
86
+
87
+ export type Props = Omit<Section.Props, 'children' | 'title'> &
88
+ Omit<zyzz.Props.Variants<typeof styles.logo>, 'className' | 'kind' | 'style' | 'vars'> & {
89
+ /** One line under the title, in Body B1. */
90
+ description?: ReactNode | undefined
91
+ /** The logos, in reading order. */
92
+ logos: readonly Logo[]
93
+ /** The `h2` over the logos, which names the section. */
94
+ title: ReactNode
95
+ /** The title's `id`. Absent by default, when the wall generates one. */
96
+ titleId?: string | undefined
97
+ }
98
+ }
99
+
100
+ namespace styles {
101
+ export const list = variants(
102
+ {
103
+ base: {
104
+ columnGap: '48',
105
+ display: 'grid',
106
+ gridTemplateColumns: 'repeat(2, minmax(0, 1fr)) !custom',
107
+ listStyle: 'none !custom',
108
+ margin: '0',
109
+ padding: '0',
110
+ rowGap: '32',
111
+ '@media (min-width: 640px)': {
112
+ gridTemplateColumns: 'repeat(3, minmax(0, 1fr)) !custom',
113
+ },
114
+ '@media >=1024': { gridTemplateColumns: 'repeat(6, minmax(0, 1fr)) !custom' },
115
+ },
116
+ },
117
+ { id: 'tds/marketing/logo-wall/list' },
118
+ )
119
+
120
+ // Every logo takes one ink: grayscale and no brightness draw it black, and invert draws it white.
121
+ export const logo = variants(
122
+ {
123
+ base: {
124
+ display: 'block',
125
+ height: '28px !custom',
126
+ marginInline: 'auto !custom',
127
+ maxWidth: '140px !custom',
128
+ opacity: '0.8 !custom',
129
+ width: '100% !custom',
130
+ },
131
+ defaultVariants: { appearance: 'base', kind: 'image' },
132
+ variants: {
133
+ /**
134
+ * The ground under the wall: the light page for `base`, or an inverse `Section` for
135
+ * `inverse`, which draws the logos and heading near-white.
136
+ *
137
+ * @default 'base'
138
+ */
139
+ appearance: { base: {}, inverse: {} },
140
+ // An image contains itself in the box, and a node's own `svg` or `img` takes its height.
141
+ kind: {
142
+ image: { objectFit: 'contain' },
143
+ node: {
144
+ alignItems: 'center',
145
+ display: 'flex',
146
+ justifyContent: 'center',
147
+ selectors: {
148
+ '& > svg, & > img': {
149
+ display: 'block',
150
+ height: '100% !custom',
151
+ maxWidth: '100% !custom',
152
+ width: 'auto !custom',
153
+ },
154
+ },
155
+ },
156
+ },
157
+ },
158
+ compoundVariants: [
159
+ {
160
+ when: { appearance: 'base', kind: 'image' },
161
+ style: { filter: 'grayscale(1) brightness(0) !custom' },
162
+ },
163
+ {
164
+ when: { appearance: 'inverse', kind: 'image' },
165
+ style: { filter: 'grayscale(1) brightness(0) invert(1) !custom' },
166
+ },
167
+ {
168
+ when: { appearance: 'base', kind: 'node' },
169
+ style: {
170
+ selectors: { '& > svg, & > img': { filter: 'grayscale(1) brightness(0) !custom' } },
171
+ },
172
+ },
173
+ {
174
+ when: { appearance: 'inverse', kind: 'node' },
175
+ style: {
176
+ selectors: {
177
+ '& > svg, & > img': { filter: 'grayscale(1) brightness(0) invert(1) !custom' },
178
+ },
179
+ },
180
+ },
181
+ ],
182
+ },
183
+ { id: 'tds/marketing/logo-wall/logo' },
184
+ )
185
+ }
@@ -0,0 +1,67 @@
1
+ /** Renders the Tempo mark, the wordmark's T on its own, as an inline SVG. @module */
2
+ import type { ComponentPropsWithRef } from 'react'
3
+ import { style } from '../zyzz.config.js'
4
+
5
+ /**
6
+ * The Tempo mark, the wordmark's T on its own, centered in its square: black at 20 by 20 unless
7
+ * `width`, `height` or `fill` set otherwise. Without a `fill` of its own, it takes the system text
8
+ * color in forced colors. It is hidden from assistive technology and never takes focus, so the link
9
+ * or label beside it carries the name. It has no states or motion.
10
+ *
11
+ * - Use `Mark` for a link home in a square or small space, such as a footer, or beside a label that
12
+ * names Tempo. Use `Logo` where the whole name fits.
13
+ * - Set `width` and `height` to the same size. A box of another ratio leaves space beside the T.
14
+ * - Leave `fill` unset for black, set it to `white` on a dark ground, or to `currentColor` to take
15
+ * the text color beside it.
16
+ *
17
+ * @example
18
+ * <a aria-label="Tempo home" href="/">
19
+ * <Mark />
20
+ * </a>
21
+ *
22
+ * @see {@link https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html | WCAG 2.2 Non-text Content}
23
+ */
24
+ export function Mark(props: Mark.Props) {
25
+ const { className, ...attributes } = props
26
+
27
+ // Without a fill of its own, it follows forced colors.
28
+ const forced = props.fill === undefined
29
+
30
+ return (
31
+ <svg
32
+ aria-hidden="true"
33
+ fill="black"
34
+ focusable="false"
35
+ height={20}
36
+ viewBox="-10 0 750 750"
37
+ width={20}
38
+ xmlns="http://www.w3.org/2000/svg"
39
+ {...attributes}
40
+ {...(forced ? styles.root({ className, style: props.style }) : { className })}
41
+ >
42
+ <path d="M258 750 447 170H677L730 0H53L0 170H243L53 750Z" />
43
+ </svg>
44
+ )
45
+ }
46
+
47
+ export namespace Mark {
48
+ /**
49
+ * The SVG's own attributes. `width` and `height` default to 20, and `fill` to black, which forced
50
+ * colors replace with the system text color.
51
+ */
52
+ export type Props = Omit<ComponentPropsWithRef<'svg'>, 'children'>
53
+ }
54
+
55
+ namespace styles {
56
+ // In forced colors a drawing without a fill of its own takes the system text color, so it shows on
57
+ // the system background, light or dark, and it drops any filter that recolors it, such as an
58
+ // invert. `:is(svg)` lifts the rule above a class its caller adds.
59
+ export const root = style(
60
+ {
61
+ '@media (forced-colors: active)': {
62
+ selectors: { '&:is(svg)': { fill: 'CanvasText !custom', filter: 'none !custom' } },
63
+ },
64
+ },
65
+ { id: 'tds/marketing/mark' },
66
+ )
67
+ }
@@ -0,0 +1,275 @@
1
+ /** Renders a customer story's 4:3 image, or a video's poster that opens the video in a dialog. @module */
2
+ import * as BaseUi from '@base-ui/react/dialog'
3
+ import { useRender } from '@base-ui/react/use-render'
4
+ import { useRef, useState } from 'react'
5
+ import type * as zyzz from 'zyzz'
6
+ import { Play } from '../icons/Play.js'
7
+ import { Xmark } from '../icons/Xmark.js'
8
+ import { style, variants, vars } from '../zyzz.config.js'
9
+ import { Button } from './Button.js'
10
+
11
+ /**
12
+ * A customer story's media at the top of its text: a 4:3 image, cropped to fill, with a 16px corner
13
+ * (24px from 768px). Set `video`, and the image becomes the video's poster, with a Play button that
14
+ * opens the video in a full-viewport dialog built on Base UI Dialog. A pointer opens it anywhere on
15
+ * the poster. The dialog starts the video with sound, focuses Close, and returns focus to Play when
16
+ * Escape or Close shuts it.
17
+ *
18
+ * - Crop the image to 4:3. The frame crops to fill, so other ratios lose their edges.
19
+ * - Give every video a poster that shows who speaks.
20
+ * - Set `alt` to the company the story names, such as DoorDash. Play and the dialog take it as
21
+ * their name unless `name` sets another.
22
+ * - Pass `render` for an optimized image component, such as `<NextImage width={960} height={720} />`.
23
+ *
24
+ * @example
25
+ * <Media alt="DoorDash" src="/doordash-poster.jpg" video="/doordash.mp4" />
26
+ *
27
+ * @see {@link https://base-ui.com/react/components/dialog | Base UI Dialog}
28
+ * @see {@link https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/ | WAI-ARIA APG Dialog (Modal) pattern}
29
+ * @see {@link https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html | WCAG 2.2 Non-text Content}
30
+ */
31
+ export function Media(props: Media.Props) {
32
+ const { className, messages = {}, name, ref, render, video, vars, ...attributes } = props
33
+
34
+ const [open, setOpen] = useState(false)
35
+ const close = useRef<HTMLButtonElement>(null)
36
+ const trigger = useRef<HTMLButtonElement>(null)
37
+
38
+ const image = useRender({
39
+ defaultTagName: 'img',
40
+ props: {
41
+ ...attributes,
42
+ ...(video === undefined
43
+ ? styles.image({ className, style: props.style, vars })
44
+ : styles.poster()),
45
+ },
46
+ ref,
47
+ render,
48
+ })
49
+
50
+ if (video === undefined) return image
51
+
52
+ const label = name ?? attributes.alt
53
+ const play = (messages.play ?? 'Play {name} video').replaceAll('{name}', label)
54
+ const dialog = (messages.dialog ?? '{name} video').replaceAll('{name}', label)
55
+
56
+ return (
57
+ <BaseUi.Dialog.Root onOpenChange={setOpen} open={open}>
58
+ {/* Play is the control for the keyboard and assistive technology. A pointer can also open
59
+ the video anywhere on the poster. */}
60
+ {/* oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}
61
+ <div {...styles.frame({ className, style: props.style, vars })} onClick={() => setOpen(true)}>
62
+ {image}
63
+ <BaseUi.Dialog.Trigger
64
+ aria-label={play}
65
+ ref={trigger}
66
+ render={
67
+ <Button appearance="overlay" layout="playback" variant="secondary" {...styles.play()} />
68
+ }
69
+ >
70
+ <Play {...styles.glyph()} />
71
+ </BaseUi.Dialog.Trigger>
72
+ </div>
73
+ <BaseUi.Dialog.Portal>
74
+ <BaseUi.Dialog.Popup
75
+ aria-label={dialog}
76
+ finalFocus={trigger}
77
+ initialFocus={close}
78
+ {...styles.popup()}
79
+ >
80
+ <div {...styles.player()}>
81
+ <BaseUi.Dialog.Close
82
+ aria-label={messages.close ?? 'Close video'}
83
+ ref={close}
84
+ render={<Button appearance="inverse" layout="carousel" variant="secondary" />}
85
+ >
86
+ <Xmark {...styles.glyph()} />
87
+ </BaseUi.Dialog.Close>
88
+ {/* Marketing interviews ship without caption tracks. */}
89
+ {/* oxlint-disable-next-line jsx-a11y/media-has-caption */}
90
+ <video autoPlay controls playsInline src={video} {...styles.video()} />
91
+ </div>
92
+ </BaseUi.Dialog.Popup>
93
+ </BaseUi.Dialog.Portal>
94
+ </BaseUi.Dialog.Root>
95
+ )
96
+ }
97
+
98
+ export namespace Media {
99
+ export type Props = useRender.ComponentProps<'img'> &
100
+ zyzz.Props.Variants<typeof styles.image> & {
101
+ /** The image's alternative text, such as the company the story names. */
102
+ alt: string
103
+ /**
104
+ * The labels of the video's controls, in English by default. `{name}` stands for `name`.
105
+ * `play` names the Play button ("Play {name} video"), `dialog` names the dialog
106
+ * ("{name} video"), and `close` names its Close button ("Close video").
107
+ */
108
+ messages?:
109
+ | {
110
+ /** The Close button's label. @default 'Close video' */
111
+ close?: string | undefined
112
+ /** The dialog's label. @default '{name} video' */
113
+ dialog?: string | undefined
114
+ /** The Play button's label. @default 'Play {name} video' */
115
+ play?: string | undefined
116
+ }
117
+ | undefined
118
+ /** Names the video in its labels, such as DoorDash. Defaults to `alt`. */
119
+ name?: string | undefined
120
+ /**
121
+ * The URL of a video that Play opens in a dialog. The image becomes its poster, and
122
+ * `className` and `style` reach the frame around the poster instead of the image.
123
+ */
124
+ video?: string | undefined
125
+ }
126
+ }
127
+
128
+ namespace styles {
129
+ // The video's frame rounds and clips the poster, which fills it with square corners, and centers
130
+ // Play on it in the same grid cell.
131
+ export const frame = style(
132
+ {
133
+ borderRadius: 'sm',
134
+ cursor: 'pointer',
135
+ display: 'grid',
136
+ gridTemplate: 'minmax(0, 1fr) / minmax(0, 1fr) !custom',
137
+ overflow: 'hidden',
138
+ '@media >=768': { borderRadius: 'md' },
139
+ },
140
+ { id: 'tds/marketing/media/frame' },
141
+ )
142
+
143
+ // The glyphs draw at 16px, the smallest icon size, and never shrink in their circles.
144
+ export const glyph = style(
145
+ { flexShrink: '0 !custom', fontSize: '16px !custom' },
146
+ { id: 'tds/marketing/media/glyph' },
147
+ )
148
+
149
+ // A 4:3 image on the grey of its ground while it loads. The ratio and the fill have no tokens.
150
+ export const image = variants(
151
+ {
152
+ base: {
153
+ aspectRatio: '4 / 3 !custom',
154
+ backgroundColor: 'container.surface',
155
+ blockSize: 'auto !custom',
156
+ borderRadius: 'sm',
157
+ display: 'block',
158
+ inlineSize: '100% !custom',
159
+ objectFit: 'cover',
160
+ '@media >=768': { borderRadius: 'md' },
161
+ },
162
+ },
163
+ { id: 'tds/marketing/media' },
164
+ )
165
+
166
+ // Over the poster the light ring is two-tone: a black hairline just inside it, on the button's
167
+ // own corner, holds it to 3:1 on any picture. Forced colors draw the one Highlight ring.
168
+ export const play = style(
169
+ {
170
+ gridArea: '1 / 1 !custom',
171
+ placeSelf: 'center',
172
+ selectors: {
173
+ '&:focus-visible::before': {
174
+ borderRadius: 'inherit !custom',
175
+ content: '"" !custom',
176
+ cornerShape: 'inherit !custom',
177
+ inset: '0',
178
+ outlineColor: 'content.primary',
179
+ outlineOffset: `calc(${vars.outlineOffset.ring} - ${vars.borderWidth.regular}) !custom`,
180
+ outlineStyle: 'solid',
181
+ outlineWidth: '1px !custom',
182
+ pointerEvents: 'none',
183
+ position: 'absolute',
184
+ },
185
+ },
186
+ '@media (forced-colors: active)': {
187
+ selectors: { '&:focus-visible::before': { display: 'none' } },
188
+ },
189
+ },
190
+ { id: 'tds/marketing/media/play' },
191
+ )
192
+
193
+ // Close sits 12px above the video, at its end. The player grows in from the surface scale, which
194
+ // holds at 1 under reduced motion. The 1200px cap has no token.
195
+ export const player = style(
196
+ {
197
+ alignItems: 'flex-end',
198
+ display: 'flex',
199
+ flexDirection: 'column',
200
+ gap: '12',
201
+ inlineSize: 'min(1200px, 100%) !custom',
202
+ scale: '1 !custom',
203
+ transitionDuration: 'surfaceIn',
204
+ transitionProperty: 'scale !custom',
205
+ transitionTimingFunction: 'standard',
206
+ selectors: {
207
+ '[data-starting-style] > &': { scale: 'surfaceIn' },
208
+ '[data-ending-style] > &': { scale: 'surfaceOut', transitionDuration: 'surfaceOut' },
209
+ },
210
+ },
211
+ { id: 'tds/marketing/media/player' },
212
+ )
213
+
214
+ // The dialog fills the viewport in the inverse colors, the player centered 24px in (48px from
215
+ // 768px). It fades in at the surface pace and out faster. Viewport units and the stacking order
216
+ // have no tokens.
217
+ export const popup = style(
218
+ {
219
+ backgroundColor: 'inverse.background.primary',
220
+ blockSize: '100dvh !custom',
221
+ borderWidth: 'none',
222
+ boxSizing: 'border-box',
223
+ color: 'inverse.content.primary',
224
+ display: 'grid',
225
+ inlineSize: '100vw !custom',
226
+ inset: '0',
227
+ margin: '0',
228
+ opacity: 'full',
229
+ outlineStyle: 'none',
230
+ padding: '24',
231
+ placeItems: 'center',
232
+ position: 'fixed',
233
+ transitionDuration: 'surfaceIn',
234
+ transitionProperty: 'opacity !custom',
235
+ transitionTimingFunction: 'standard',
236
+ zIndex: '1000 !custom',
237
+ selectors: {
238
+ '&[data-starting-style]': { opacity: '0 !custom' },
239
+ '&[data-ending-style]': { opacity: '0 !custom', transitionDuration: 'surfaceOut' },
240
+ },
241
+ '@media >=768': { padding: '48' },
242
+ },
243
+ { id: 'tds/marketing/media/popup' },
244
+ )
245
+
246
+ export const poster = style(
247
+ {
248
+ aspectRatio: '4 / 3 !custom',
249
+ backgroundColor: 'container.surface',
250
+ blockSize: 'auto !custom',
251
+ display: 'block',
252
+ gridArea: '1 / 1 !custom',
253
+ inlineSize: '100% !custom',
254
+ objectFit: 'cover',
255
+ },
256
+ { id: 'tds/marketing/media/poster' },
257
+ )
258
+
259
+ // A 16:9 video, letterboxed on the inverse ground and short enough to leave room for Close (40px
260
+ // at most) and the 12px above it.
261
+ export const video = style(
262
+ {
263
+ aspectRatio: '16 / 9 !custom',
264
+ backgroundColor: 'inverse.background.primary',
265
+ display: 'block',
266
+ inlineSize: '100% !custom',
267
+ maxBlockSize: `calc(100dvh - 2 * ${vars.spacing['24']} - ${vars.spacing['40']} - ${vars.spacing['12']}) !custom`,
268
+ objectFit: 'contain',
269
+ '@media >=768': {
270
+ maxBlockSize: `calc(100dvh - 2 * ${vars.spacing['48']} - ${vars.spacing['40']} - ${vars.spacing['12']}) !custom`,
271
+ },
272
+ },
273
+ { id: 'tds/marketing/media/video' },
274
+ )
275
+ }