@tempoxyz/ds 1.9.20261125225753 → 1.10.20261125231509

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 (88) hide show
  1. package/README.md +1 -1
  2. package/dist/docs/marketing.md +17 -31
  3. package/dist/document/templates/brief.html +3 -3
  4. package/dist/document/templates/essay.html +3 -3
  5. package/dist/document/templates/post.html +3 -3
  6. package/dist/marketing/components/ArticleBody.js.zyzz.json +1 -1
  7. package/dist/marketing/components/ArticleIndex.css +1 -1
  8. package/dist/marketing/components/ArticleIndex.d.ts.map +1 -1
  9. package/dist/marketing/components/ArticleIndex.js +14 -14
  10. package/dist/marketing/components/ArticleIndex.js.map +1 -1
  11. package/dist/marketing/components/ArticleIndex.js.zyzz.json +1 -1
  12. package/dist/marketing/components/ArticleRail.css +1 -1
  13. package/dist/marketing/components/ArticleRail.d.ts.map +1 -1
  14. package/dist/marketing/components/ArticleRail.js +8 -7
  15. package/dist/marketing/components/ArticleRail.js.map +1 -1
  16. package/dist/marketing/components/ArticleRail.js.zyzz.json +1 -1
  17. package/dist/marketing/components/Breadcrumbs.css +1 -1
  18. package/dist/marketing/components/Breadcrumbs.d.ts.map +1 -1
  19. package/dist/marketing/components/Breadcrumbs.js +1 -1
  20. package/dist/marketing/components/Breadcrumbs.js.map +1 -1
  21. package/dist/marketing/components/Breadcrumbs.js.zyzz.json +1 -1
  22. package/dist/marketing/components/Button.css +1 -1
  23. package/dist/marketing/components/Button.d.ts +24 -3
  24. package/dist/marketing/components/Button.d.ts.map +1 -1
  25. package/dist/marketing/components/Button.js +2 -2
  26. package/dist/marketing/components/Button.js.map +1 -1
  27. package/dist/marketing/components/Button.js.zyzz.json +1 -1
  28. package/dist/marketing/components/Card.css +1 -1
  29. package/dist/marketing/components/Card.d.ts +1 -1
  30. package/dist/marketing/components/Card.d.ts.map +1 -1
  31. package/dist/marketing/components/Card.js +19 -17
  32. package/dist/marketing/components/Card.js.map +1 -1
  33. package/dist/marketing/components/Card.js.zyzz.json +1 -1
  34. package/dist/marketing/components/Media.css +1 -1
  35. package/dist/marketing/components/Media.d.ts +0 -1
  36. package/dist/marketing/components/Media.d.ts.map +1 -1
  37. package/dist/marketing/components/Media.js +7 -9
  38. package/dist/marketing/components/Media.js.map +1 -1
  39. package/dist/marketing/components/Media.js.zyzz.json +1 -1
  40. package/dist/marketing/components/Nav.css +1 -1
  41. package/dist/marketing/components/Nav.js +24 -24
  42. package/dist/marketing/components/Nav.js.map +1 -1
  43. package/dist/marketing/components/Nav.js.zyzz.json +1 -1
  44. package/dist/marketing/components/PartnersIndex.css +1 -1
  45. package/dist/marketing/components/PartnersIndex.d.ts +2 -1
  46. package/dist/marketing/components/PartnersIndex.d.ts.map +1 -1
  47. package/dist/marketing/components/PartnersIndex.js +10 -10
  48. package/dist/marketing/components/PartnersIndex.js.map +1 -1
  49. package/dist/marketing/components/PartnersIndex.js.zyzz.json +1 -1
  50. package/dist/marketing/icons/ArrowUpRight.d.ts +5 -0
  51. package/dist/marketing/icons/ArrowUpRight.d.ts.map +1 -1
  52. package/dist/marketing/icons/ArrowUpRight.js.map +1 -1
  53. package/dist/marketing/icons/Checkmark.d.ts +5 -0
  54. package/dist/marketing/icons/Checkmark.d.ts.map +1 -1
  55. package/dist/marketing/icons/Checkmark.js.map +1 -1
  56. package/dist/marketing/icons/ChevronRight.d.ts +5 -0
  57. package/dist/marketing/icons/ChevronRight.d.ts.map +1 -1
  58. package/dist/marketing/icons/ChevronRight.js.map +1 -1
  59. package/dist/marketing/icons/Link.d.ts +5 -0
  60. package/dist/marketing/icons/Link.d.ts.map +1 -1
  61. package/dist/marketing/icons/Link.js.map +1 -1
  62. package/dist/marketing/icons/Play.d.ts +5 -0
  63. package/dist/marketing/icons/Play.d.ts.map +1 -1
  64. package/dist/marketing/icons/Play.js.map +1 -1
  65. package/dist/marketing/icons/Spinner.d.ts +5 -0
  66. package/dist/marketing/icons/Spinner.d.ts.map +1 -1
  67. package/dist/marketing/icons/Spinner.js.map +1 -1
  68. package/dist/marketing/icons/Xmark.d.ts +5 -0
  69. package/dist/marketing/icons/Xmark.d.ts.map +1 -1
  70. package/dist/marketing/icons/Xmark.js.map +1 -1
  71. package/dist/marketing/index.js.zyzz.json +1 -1
  72. package/package.json +2 -2
  73. package/src/marketing/README.md +2 -0
  74. package/src/marketing/components/ArticleIndex.tsx +2 -1
  75. package/src/marketing/components/ArticleRail.tsx +5 -10
  76. package/src/marketing/components/Breadcrumbs.tsx +2 -1
  77. package/src/marketing/components/Button.tsx +8 -3
  78. package/src/marketing/components/Card.tsx +6 -4
  79. package/src/marketing/components/Media.tsx +2 -8
  80. package/src/marketing/components/Nav.tsx +1 -1
  81. package/src/marketing/components/PartnersIndex.tsx +2 -1
  82. package/src/marketing/icons/ArrowUpRight.tsx +5 -0
  83. package/src/marketing/icons/Checkmark.tsx +5 -0
  84. package/src/marketing/icons/ChevronRight.tsx +5 -0
  85. package/src/marketing/icons/Link.tsx +5 -0
  86. package/src/marketing/icons/Play.tsx +5 -0
  87. package/src/marketing/icons/Spinner.tsx +5 -0
  88. package/src/marketing/icons/Xmark.tsx +5 -0
package/README.md CHANGED
@@ -123,7 +123,7 @@ pnpm dev # Write contracts and link source entrypoints
123
123
  pnpm docs:dev # Start the documentation site
124
124
  pnpm figma:check # Check tokens, variants, and rendered components against the Figma snapshot
125
125
  pnpm figma:sync # Refresh the Figma snapshot with FIGMA_TOKEN, then check
126
- pnpm icons:arsenal # Regenerate the Tempo Icons components from the release's glyphs.ts
126
+ pnpm icons:arsenal # Regenerate the Tempo Icons components and Marketing's icons from the release's glyphs.ts
127
127
  pnpm playground:dev # Start the web playground
128
128
  pnpm playground:mobile # Start the Expo playground in the iOS Simulator
129
129
  pnpm swift:generate # Regenerate the Swift package's TDS.swift from the Web variables
@@ -570,10 +570,11 @@ namespace styles {
570
570
 
571
571
  #### Layout
572
572
 
573
- Set `layout` to `navigation` in the site header, `card` in a card, where the label may wrap, or `carousel` for a round icon-only paging control.
573
+ Set `layout` to `navigation` in the site header, `card` in a card, where the label may wrap, or `carousel` for a round icon-only paging control. The round layouts size the glyph they hold to their circle.
574
574
 
575
575
  ```tsx
576
576
  /** Demonstrates the navigation, card, and carousel layouts of the Marketing Button. @module */
577
+ import { ChevronLeftLargeIcon, ChevronRightLargeIcon } from '@tempoxyz/ds/arsenal/icons'
577
578
  import { Button, style } from '@tempoxyz/ds/marketing'
578
579
 
579
580
  export function Demo() {
@@ -586,30 +587,15 @@ export function Demo() {
586
587
  Talk with our team
587
588
  </Button.Link>
588
589
  <Button aria-label="Previous customer" layout="carousel" variant="secondary">
589
- <Chevron direction="left" />
590
+ <ChevronLeftLargeIcon weight="emphasis" />
590
591
  </Button>
591
592
  <Button aria-label="Next customer" layout="carousel" variant="secondary">
592
- <Chevron direction="right" />
593
+ <ChevronRightLargeIcon weight="emphasis" />
593
594
  </Button>
594
595
  </div>
595
596
  )
596
597
  }
597
598
 
598
- /** A 16px chevron, drawn inline because Marketing exports no icons. */
599
- function Chevron(props: { direction: 'left' | 'right' }) {
600
- return (
601
- <svg aria-hidden="true" fill="none" height="16" viewBox="0 0 16 16" width="16">
602
- <path
603
- d={props.direction === 'left' ? 'M10 4 6 8l4 4' : 'm6 4 4 4-4 4'}
604
- stroke="currentColor"
605
- strokeLinecap="round"
606
- strokeLinejoin="round"
607
- strokeWidth="1.5"
608
- />
609
- </svg>
610
- )
611
- }
612
-
613
599
  namespace styles {
614
600
  export const row = style({ alignItems: 'center', display: 'flex', flexWrap: 'wrap', gap: '8' })
615
601
  }
@@ -623,15 +609,14 @@ Set `appearance="overlay"` over a photo or video. The `playback` layout draws th
623
609
 
624
610
  ```tsx
625
611
  /** Demonstrates the Marketing Button over a photo, as on a video's play control. @module */
612
+ import { PlayIcon } from '@tempoxyz/ds/arsenal/icons'
626
613
  import { Button, style } from '@tempoxyz/ds/marketing'
627
614
 
628
615
  export function Demo() {
629
616
  return (
630
617
  <div {...styles.photo()}>
631
618
  <Button aria-label="Play video" appearance="overlay" layout="playback" variant="secondary">
632
- <svg aria-hidden="true" fill="currentColor" height="16" viewBox="0 0 16 16" width="16">
633
- <path d="M5 3.5v9l7.5-4.5z" />
634
- </svg>
619
+ <PlayIcon weight="emphasis" />
635
620
  </Button>
636
621
  <Button appearance="overlay">Watch the story</Button>
637
622
  </div>
@@ -2700,7 +2685,7 @@ Marketing pages draw every glyph from Tempo Icons, the one icon family across Te
2700
2685
 
2701
2686
  Each glyph stands for one thing, and a page loads only the glyphs it draws.
2702
2687
 
2703
- The Marketing parts that end in a glyph, such as [Link](/marketing/components/link) and [Button](/marketing/components/button), draw their own. A page imports a glyph only where it places one itself.
2688
+ The Marketing parts that end in a glyph, such as [Link](/marketing/components/link) and [Button](/marketing/components/button), draw theirs from Tempo Icons too. A page imports a glyph only where it places one itself.
2704
2689
 
2705
2690
  ### Values
2706
2691
 
@@ -2737,6 +2722,14 @@ Import each glyph from Tempo Icons. Never type one as a character, such as an ar
2737
2722
 
2738
2723
  Draw glyphs at the Emphasis weight, which matches the weight of Pilat Book text beside them. Choose the scale from the placement, then set the size.
2739
2724
 
2725
+ #### Size a Glyph by Its Control
2726
+
2727
+ A glyph takes its size from the control or the type that holds it. The icon-only [Button](/marketing/components/button) layouts size the glyph they hold.
2728
+
2729
+ * **36px Controls (icon.sm):** A 16px glyph, such as a carousel's chevron.
2730
+ * **40px Controls and Up (icon.md):** A 20px glyph, such as a video's Play button.
2731
+ * **Headings (icon.lg):** A 24px glyph, such as an article row's chevron.
2732
+
2740
2733
  #### End Each Link in Its Own Glyph
2741
2734
 
2742
2735
  A link outside a sentence ends in a chevron within the site, or an arrow up right when it leaves. [Link](/marketing/components/link) draws both.
@@ -5146,6 +5139,7 @@ The footer from every page. Resize the preview to see the groups fill one, two,
5146
5139
 
5147
5140
  ```tsx
5148
5141
  /** Demonstrates the Marketing footer: the site map by group, a sign-up, and the social and legal links. @module */
5142
+ import { ArrowRightIcon } from '@tempoxyz/ds/arsenal/icons'
5149
5143
  import { Button, Footer, style } from '@tempoxyz/ds/marketing'
5150
5144
 
5151
5145
  export const fill = true
@@ -5215,15 +5209,7 @@ export function Demo() {
5215
5209
  {...styles.input()}
5216
5210
  />
5217
5211
  <Button aria-label="Subscribe" appearance="inverse" layout="carousel" variant="secondary">
5218
- <svg aria-hidden="true" fill="none" height="16" viewBox="0 0 16 16" width="16">
5219
- <path
5220
- d="m6 4 4 4-4 4"
5221
- stroke="currentColor"
5222
- strokeLinecap="round"
5223
- strokeLinejoin="round"
5224
- strokeWidth="1.5"
5225
- />
5226
- </svg>
5212
+ <ArrowRightIcon weight="emphasis" />
5227
5213
  </Button>
5228
5214
  </form>
5229
5215
  }
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
  Brief template for Tempo document mode. Replace every placeholder that a comment marks,
4
4
  keep the structure, and run the lint before you publish:
5
- npx -p @tempoxyz/ds@1.9.20261125225753 tempo-document lint brief.html
5
+ npx -p @tempoxyz/ds@1.10.20261125231509 tempo-document lint brief.html
6
6
  -->
7
7
  <html lang="en">
8
8
  <head>
@@ -12,11 +12,11 @@
12
12
  <title>Title of the brief</title>
13
13
  <link
14
14
  rel="stylesheet"
15
- href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.9.20261125225753/dist/document/document.css"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.10.20261125231509/dist/document/document.css"
16
16
  />
17
17
  <script
18
18
  defer
19
- src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.9.20261125225753/dist/document/script.js"
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.10.20261125231509/dist/document/script.js"
20
20
  ></script>
21
21
  </head>
22
22
  <body>
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
  Essay template for Tempo document mode. Replace every placeholder that a comment marks,
4
4
  keep the structure, and run the lint before you publish:
5
- npx -p @tempoxyz/ds@1.9.20261125225753 tempo-document lint essay.html
5
+ npx -p @tempoxyz/ds@1.10.20261125231509 tempo-document lint essay.html
6
6
  -->
7
7
  <html lang="en">
8
8
  <head>
@@ -12,11 +12,11 @@
12
12
  <title>Title of the essay</title>
13
13
  <link
14
14
  rel="stylesheet"
15
- href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.9.20261125225753/dist/document/document.css"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.10.20261125231509/dist/document/document.css"
16
16
  />
17
17
  <script
18
18
  defer
19
- src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.9.20261125225753/dist/document/script.js"
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.10.20261125231509/dist/document/script.js"
20
20
  ></script>
21
21
  </head>
22
22
  <body>
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
  Post template for Tempo document mode. Replace every placeholder that a comment marks,
4
4
  keep the structure, and run the lint before you publish:
5
- npx -p @tempoxyz/ds@1.9.20261125225753 tempo-document lint post.html
5
+ npx -p @tempoxyz/ds@1.10.20261125231509 tempo-document lint post.html
6
6
  -->
7
7
  <html lang="en">
8
8
  <head>
@@ -12,11 +12,11 @@
12
12
  <title>Title of the post</title>
13
13
  <link
14
14
  rel="stylesheet"
15
- href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.9.20261125225753/dist/document/document.css"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.10.20261125231509/dist/document/document.css"
16
16
  />
17
17
  <script
18
18
  defer
19
- src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.9.20261125225753/dist/document/script.js"
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@1.10.20261125231509/dist/document/script.js"
20
20
  ></script>
21
21
  </head>
22
22
  <body>