@tempoxyz/ds 0.3.15 → 0.3.17

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 (130) hide show
  1. package/dist/docs/AGENTS.md +10 -6
  2. package/dist/docs/arsenal.md +44 -0
  3. package/dist/docs/marketing.md +703 -4
  4. package/dist/docs/product/components/actions.md +53 -1
  5. package/dist/docs/product/components/blockchain.md +147 -3
  6. package/dist/docs/product/components/feedback-and-status.md +137 -7
  7. package/dist/docs/product/components/navigation.md +1 -1
  8. package/dist/docs/product/documents.md +225 -0
  9. package/dist/docs/product/foundations.md +2 -1
  10. package/dist/docs/product/patterns.md +3 -22
  11. package/dist/document/Document.d.ts +46 -0
  12. package/dist/document/Document.d.ts.map +1 -0
  13. package/dist/document/Document.js +190 -0
  14. package/dist/document/Document.js.map +1 -0
  15. package/dist/document/Enhance.d.ts +13 -0
  16. package/dist/document/Enhance.d.ts.map +1 -0
  17. package/dist/document/Enhance.js +421 -0
  18. package/dist/document/Enhance.js.map +1 -0
  19. package/dist/document/bin.d.ts +3 -0
  20. package/dist/document/bin.d.ts.map +1 -0
  21. package/dist/document/bin.js +38 -0
  22. package/dist/document/bin.js.map +1 -0
  23. package/dist/document/document.css +373 -0
  24. package/dist/document/index.d.ts +3 -0
  25. package/dist/document/index.d.ts.map +1 -0
  26. package/dist/document/index.js +3 -0
  27. package/dist/document/index.js.map +1 -0
  28. package/dist/document/internal/Cli.d.ts +43 -0
  29. package/dist/document/internal/Cli.d.ts.map +1 -0
  30. package/dist/document/internal/Cli.js +87 -0
  31. package/dist/document/internal/Cli.js.map +1 -0
  32. package/dist/document/internal/Template.d.ts +21 -0
  33. package/dist/document/internal/Template.d.ts.map +1 -0
  34. package/dist/document/internal/Template.js +15 -0
  35. package/dist/document/internal/Template.js.map +1 -0
  36. package/dist/document/script.d.ts +2 -0
  37. package/dist/document/script.d.ts.map +1 -0
  38. package/dist/document/script.js +379 -0
  39. package/dist/document/templates/brief.html +96 -0
  40. package/dist/document/templates/essay.html +70 -0
  41. package/dist/document/templates/post.html +69 -0
  42. package/dist/marketing/index.js.zyzz.json +1 -1
  43. package/dist/marketing/vars.d.ts +618 -758
  44. package/dist/marketing/vars.d.ts.map +1 -1
  45. package/dist/marketing/vars.js +8 -5
  46. package/dist/marketing/vars.js.map +1 -1
  47. package/dist/marketing/vars.js.zyzz.json +1 -1
  48. package/dist/marketing/zyzz.config.d.ts +3042 -3757
  49. package/dist/marketing/zyzz.config.d.ts.map +1 -1
  50. package/dist/marketing/zyzz.config.js +1 -1
  51. package/dist/marketing/zyzz.config.js.map +1 -1
  52. package/dist/marketing/zyzz.config.js.zyzz.json +1 -1
  53. package/dist/mobile/components/Button.d.ts +115 -15
  54. package/dist/mobile/components/Button.d.ts.map +1 -1
  55. package/dist/mobile/components/Button.js +85 -14
  56. package/dist/mobile/components/Button.js.map +1 -1
  57. package/dist/mobile/components/IconButton.d.ts +129 -40
  58. package/dist/mobile/components/IconButton.d.ts.map +1 -1
  59. package/dist/mobile/components/IconButton.js +97 -28
  60. package/dist/mobile/components/IconButton.js.map +1 -1
  61. package/dist/mobile/components/TextInput.d.ts +132 -11
  62. package/dist/mobile/components/TextInput.d.ts.map +1 -1
  63. package/dist/mobile/components/TextInput.js +115 -14
  64. package/dist/mobile/components/TextInput.js.map +1 -1
  65. package/dist/mobile/index.d.ts +1 -0
  66. package/dist/mobile/index.d.ts.map +1 -1
  67. package/dist/mobile/index.js +1 -0
  68. package/dist/mobile/index.js.map +1 -1
  69. package/dist/mobile/vars.d.ts +103 -0
  70. package/dist/mobile/vars.d.ts.map +1 -1
  71. package/dist/mobile/vars.js +74 -0
  72. package/dist/mobile/vars.js.map +1 -1
  73. package/dist/mobile/zyzz.config.d.ts +408 -0
  74. package/dist/mobile/zyzz.config.d.ts.map +1 -1
  75. package/dist/web/components/AddressCard.js.zyzz.json +1 -1
  76. package/dist/web/components/Amount.css +1 -1
  77. package/dist/web/components/Amount.d.ts +9 -0
  78. package/dist/web/components/Amount.d.ts.map +1 -1
  79. package/dist/web/components/Amount.js +8 -5
  80. package/dist/web/components/Amount.js.map +1 -1
  81. package/dist/web/components/Amount.js.zyzz.json +1 -1
  82. package/dist/web/components/CopyButton.d.ts +6 -0
  83. package/dist/web/components/CopyButton.d.ts.map +1 -1
  84. package/dist/web/components/CopyButton.js +4 -1
  85. package/dist/web/components/CopyButton.js.map +1 -1
  86. package/dist/web/components/CopyButton.js.zyzz.json +1 -1
  87. package/dist/web/components/Hex.css +1 -1
  88. package/dist/web/components/Hex.d.ts +84 -3
  89. package/dist/web/components/Hex.d.ts.map +1 -1
  90. package/dist/web/components/Hex.js +20 -13
  91. package/dist/web/components/Hex.js.map +1 -1
  92. package/dist/web/components/Hex.js.zyzz.json +1 -1
  93. package/dist/web/components/Progress.css +1 -1
  94. package/dist/web/components/Progress.d.ts +12 -2
  95. package/dist/web/components/Progress.d.ts.map +1 -1
  96. package/dist/web/components/Progress.js +9 -5
  97. package/dist/web/components/Progress.js.map +1 -1
  98. package/dist/web/components/Progress.js.zyzz.json +1 -1
  99. package/dist/web/components/SecretValue.js.zyzz.json +1 -1
  100. package/dist/web/components/SidebarMenu.d.ts +4 -4
  101. package/dist/web/components/SidebarMenu.js +6 -6
  102. package/dist/web/components/SidebarMenu.js.map +1 -1
  103. package/dist/web/components/Snippet.js.zyzz.json +1 -1
  104. package/dist/web/index.js.zyzz.json +1 -1
  105. package/package.json +19 -1
  106. package/src/document/Document.ts +277 -0
  107. package/src/document/Enhance.ts +434 -0
  108. package/src/document/bin.ts +38 -0
  109. package/src/document/document.css +373 -0
  110. package/src/document/index.ts +2 -0
  111. package/src/document/internal/Cli.ts +132 -0
  112. package/src/document/internal/Template.ts +25 -0
  113. package/src/document/script.ts +8 -0
  114. package/src/document/templates/brief.html +96 -0
  115. package/src/document/templates/essay.html +70 -0
  116. package/src/document/templates/post.html +69 -0
  117. package/src/marketing/README.md +1 -1
  118. package/src/marketing/vars.ts +526 -604
  119. package/src/marketing/zyzz.config.ts +5 -4
  120. package/src/mobile/README.md +19 -6
  121. package/src/mobile/components/Button.tsx +94 -17
  122. package/src/mobile/components/IconButton.tsx +122 -30
  123. package/src/mobile/components/TextInput.tsx +139 -24
  124. package/src/mobile/index.ts +1 -0
  125. package/src/mobile/vars.ts +74 -0
  126. package/src/web/components/Amount.tsx +37 -3
  127. package/src/web/components/CopyButton.tsx +8 -0
  128. package/src/web/components/Hex.tsx +79 -13
  129. package/src/web/components/Progress.tsx +8 -2
  130. package/src/web/components/SidebarMenu.tsx +6 -6
@@ -0,0 +1,96 @@
1
+ <!doctype html>
2
+ <!--
3
+ Brief template for Tempo document mode. Replace every placeholder that a comment marks,
4
+ keep the structure, and run the lint before you publish:
5
+ npx -p @tempoxyz/ds@{{version}} tempo-document lint brief.html
6
+ -->
7
+ <html lang="en">
8
+ <head>
9
+ <meta charset="utf-8" />
10
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
11
+ <!-- Replace: the document title. -->
12
+ <title>Title of the brief</title>
13
+ <link
14
+ rel="stylesheet"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@{{version}}/dist/document/document.css"
16
+ />
17
+ <script
18
+ defer
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@{{version}}/dist/document/script.js"
20
+ ></script>
21
+ </head>
22
+ <body>
23
+ <div class="brief">
24
+ <header>
25
+ <!-- Replace: the title, what was decided or proposed, the author, and the date. -->
26
+ <h1>Title of the brief</h1>
27
+ <p class="dek">One sentence that states what was decided or proposed.</p>
28
+ <p class="byline">Author name · <time datetime="2026-11-17">Nov 17, 2026</time></p>
29
+ </header>
30
+
31
+ <article class="doc" data-template="brief">
32
+ <!-- Replace: two or three sections. Each H2 id matches a link in the summary contents. -->
33
+ <h2 id="summary">Summary</h2>
34
+
35
+ <p>
36
+ State the decision or the proposal, and why it matters now.<span class="sn"
37
+ ><small
38
+ >A note holds a source or an aside. The script numbers it and lists it at the
39
+ end.</small
40
+ ></span
41
+ >
42
+ </p>
43
+
44
+ <h2 id="plan">Plan</h2>
45
+
46
+ <p>Describe the work in order, and name the owner of each part.</p>
47
+
48
+ <!-- Replace: a figure that supports the plan. The caption states the takeaway, then the source. -->
49
+ <figure>
50
+ <svg viewBox="0 0 640 88" role="img" aria-labelledby="figure-title">
51
+ <title id="figure-title">Two phases drawn as bars, the second twice as long.</title>
52
+ <text class="label" x="0" y="20">Phase 1</text>
53
+ <rect class="fill-ink" x="96" y="8" width="160" height="16" />
54
+ <text class="meta" x="264" y="20">2 weeks</text>
55
+ <text class="label" x="0" y="64">Phase 2</text>
56
+ <rect class="fill-quiet" x="256" y="52" width="320" height="16" />
57
+ <text class="meta" x="584" y="64">4 weeks</text>
58
+ </svg>
59
+ <figcaption>
60
+ The second phase takes twice as long as the first (Source: name the estimate).
61
+ </figcaption>
62
+ </figure>
63
+
64
+ <h2 id="risks">Risks</h2>
65
+
66
+ <p>List what could change the plan, and what you do if it happens.</p>
67
+ </article>
68
+
69
+ <!-- Replace: the facts readers return for, and one contents link per H2. -->
70
+ <aside class="summary" aria-label="Summary">
71
+ <dl class="facts">
72
+ <div>
73
+ <dt>Status</dt>
74
+ <dd>Proposed</dd>
75
+ </div>
76
+ <div>
77
+ <dt>Owner</dt>
78
+ <dd>Owner name</dd>
79
+ </div>
80
+ <div>
81
+ <dt>Next</dt>
82
+ <dd>The next step and its date</dd>
83
+ </div>
84
+ </dl>
85
+ <nav aria-label="Contents">
86
+ <h2>Contents</h2>
87
+ <ol>
88
+ <li><a href="#summary">Summary</a></li>
89
+ <li><a href="#plan">Plan</a></li>
90
+ <li><a href="#risks">Risks</a></li>
91
+ </ol>
92
+ </nav>
93
+ </aside>
94
+ </div>
95
+ </body>
96
+ </html>
@@ -0,0 +1,70 @@
1
+ <!doctype html>
2
+ <!--
3
+ Essay template for Tempo document mode. Replace every placeholder that a comment marks,
4
+ keep the structure, and run the lint before you publish:
5
+ npx -p @tempoxyz/ds@{{version}} tempo-document lint essay.html
6
+ -->
7
+ <html lang="en">
8
+ <head>
9
+ <meta charset="utf-8" />
10
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
11
+ <!-- Replace: the document title. -->
12
+ <title>Title of the essay</title>
13
+ <link
14
+ rel="stylesheet"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@{{version}}/dist/document/document.css"
16
+ />
17
+ <script
18
+ defer
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@{{version}}/dist/document/script.js"
20
+ ></script>
21
+ </head>
22
+ <body>
23
+ <article class="doc" data-template="essay" data-rail>
24
+ <header>
25
+ <!-- Replace: the title, the dek, the author, and the date. -->
26
+ <h1>Title of the essay</h1>
27
+ <p class="dek">One sentence that states what the reader learns.</p>
28
+ <p class="byline">Author name · <time datetime="2026-11-17">Nov 17, 2026</time></p>
29
+ </header>
30
+
31
+ <!-- Replace: the opening paragraph, which states the argument. -->
32
+ <p>
33
+ State the argument in the first paragraph. The rest of the essay supports it, one section at
34
+ a time.<span class="sn"
35
+ ><small
36
+ >A note holds a source or an aside. The script numbers it and lists it at the
37
+ end.</small
38
+ ></span
39
+ >
40
+ </p>
41
+
42
+ <!-- Replace: two or three sections. Give each H2 an id, which the reading rail links. -->
43
+ <h2 id="evidence">First section</h2>
44
+
45
+ <p>Make one point in each section, and support it with evidence.</p>
46
+
47
+ <!-- Replace: a figure that shows the evidence. The caption states the takeaway, then the source. -->
48
+ <figure>
49
+ <svg viewBox="0 0 640 88" role="img" aria-labelledby="figure-title">
50
+ <title id="figure-title">Two values drawn as bars, the second twice the first.</title>
51
+ <text class="label" x="0" y="20">Before</text>
52
+ <rect class="fill-quiet" x="96" y="8" width="240" height="16" />
53
+ <text class="meta" x="344" y="20">240</text>
54
+ <text class="label" x="0" y="64">After</text>
55
+ <rect class="fill-ink" x="96" y="52" width="480" height="16" />
56
+ <text class="meta" x="584" y="64">480</text>
57
+ </svg>
58
+ <figcaption>The second value is twice the first (Source: name the data).</figcaption>
59
+ </figure>
60
+
61
+ <h2 id="consequence">Second section</h2>
62
+
63
+ <p>Explain what the evidence means and what follows from it.</p>
64
+
65
+ <h2 id="conclusion">Conclusion</h2>
66
+
67
+ <p>Restate the argument in light of the evidence, and say what the reader can do with it.</p>
68
+ </article>
69
+ </body>
70
+ </html>
@@ -0,0 +1,69 @@
1
+ <!doctype html>
2
+ <!--
3
+ Post template for Tempo document mode. Replace every placeholder that a comment marks,
4
+ keep the structure, and run the lint before you publish:
5
+ npx -p @tempoxyz/ds@{{version}} tempo-document lint post.html
6
+ -->
7
+ <html lang="en">
8
+ <head>
9
+ <meta charset="utf-8" />
10
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
11
+ <!-- Replace: the document title. -->
12
+ <title>Title of the post</title>
13
+ <link
14
+ rel="stylesheet"
15
+ href="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@{{version}}/dist/document/document.css"
16
+ />
17
+ <script
18
+ defer
19
+ src="https://cdn.jsdelivr.net/npm/@tempoxyz/ds@{{version}}/dist/document/script.js"
20
+ ></script>
21
+ </head>
22
+ <body>
23
+ <article class="doc" data-template="post">
24
+ <header>
25
+ <!-- Replace: the title, the dek, the authors, and the date. -->
26
+ <h1>Title of the post</h1>
27
+ <p class="dek">One sentence that states what the reader can do after reading.</p>
28
+ <p class="byline">By author name · <time datetime="2026-11-17">Nov 17, 2026</time></p>
29
+ </header>
30
+
31
+ <!-- Replace: the opening paragraph, which states who the post is for. -->
32
+ <p>
33
+ State who the post is for and what it covers.<span class="sn"
34
+ ><small
35
+ >A note holds a source or an aside. The script numbers it and lists it at the
36
+ end.</small
37
+ ></span
38
+ >
39
+ </p>
40
+
41
+ <!-- Replace: two or three sections. Number the steps of a procedure with ol.steps. -->
42
+ <h2 id="steps">Steps</h2>
43
+
44
+ <ol class="steps">
45
+ <li>Write the first step as an instruction.</li>
46
+ <li>Write the second step, and name the result the reader sees.</li>
47
+ <li>Write the last step, and say how the reader knows it worked.</li>
48
+ </ol>
49
+
50
+ <!-- Replace: a figure that shows the result. The caption states the takeaway, then the source. -->
51
+ <figure>
52
+ <svg viewBox="0 0 640 88" role="img" aria-labelledby="figure-title">
53
+ <title id="figure-title">Two values drawn as bars, the second twice the first.</title>
54
+ <text class="label" x="0" y="20">Before</text>
55
+ <rect class="fill-quiet" x="96" y="8" width="240" height="16" />
56
+ <text class="meta" x="344" y="20">240</text>
57
+ <text class="label" x="0" y="64">After</text>
58
+ <rect class="fill-ink" x="96" y="52" width="480" height="16" />
59
+ <text class="meta" x="584" y="64">480</text>
60
+ </svg>
61
+ <figcaption>The steps double the result (Source: name the data).</figcaption>
62
+ </figure>
63
+
64
+ <h2 id="next">Next steps</h2>
65
+
66
+ <p>Link what the reader can read or do next.</p>
67
+ </article>
68
+ </body>
69
+ </html>
@@ -16,6 +16,6 @@ namespace styles {
16
16
  ;<section {...styles.hero()} />
17
17
  ```
18
18
 
19
- The Marketing variables start as a copy of the Web variables and change as the Marketing designs define their own values. Marketing ships no components yet. An app uses one surface: a marketing site imports `@tempoxyz/ds/marketing`, and a product interface imports `@tempoxyz/ds`.
19
+ The Marketing variables follow the DS Marketing Figma file and keep its names, such as `section.lg`, `layoutGap.content`, and `transitionDuration.hoverIn`. Responsive tokens step up at 768px, 1024px, and 1512px, motion tokens turn off under `prefers-reduced-motion`, and the `inverse` colors style dark sections. `pnpm figma:check` compares them with Figma. Marketing ships no components yet. An app uses one surface: a marketing site imports `@tempoxyz/ds/marketing`, and a product interface imports `@tempoxyz/ds`.
20
20
 
21
21
  The Marketing surface shares the Zyzz plugin setup of the [Web surface](../web/README.md#setup).