@tempoxyz/ds 0.3.2 → 0.3.5

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 (160) hide show
  1. package/README.md +7 -0
  2. package/dist/web/components/Accordion.css +1 -1
  3. package/dist/web/components/Accordion.js.zyzz.json +1 -1
  4. package/dist/web/components/AddressCard.css +1 -1
  5. package/dist/web/components/AddressCard.js.zyzz.json +1 -1
  6. package/dist/web/components/AgentLogo.js.zyzz.json +1 -1
  7. package/dist/web/components/Alert.css +1 -1
  8. package/dist/web/components/Alert.js.zyzz.json +1 -1
  9. package/dist/web/components/AlertDialog.js.zyzz.json +1 -1
  10. package/dist/web/components/Amount.css +1 -1
  11. package/dist/web/components/Amount.js.zyzz.json +1 -1
  12. package/dist/web/components/AmountInput.css +1 -1
  13. package/dist/web/components/AmountInput.js.zyzz.json +1 -1
  14. package/dist/web/components/AppShell.css +1 -1
  15. package/dist/web/components/AppShell.d.ts +4 -0
  16. package/dist/web/components/AppShell.d.ts.map +1 -1
  17. package/dist/web/components/AppShell.js +20 -20
  18. package/dist/web/components/AppShell.js.map +1 -1
  19. package/dist/web/components/AppShell.js.zyzz.json +1 -1
  20. package/dist/web/components/AssetChip.css +1 -1
  21. package/dist/web/components/AssetChip.js.zyzz.json +1 -1
  22. package/dist/web/components/Autocomplete.js.zyzz.json +1 -1
  23. package/dist/web/components/Avatar.css +1 -1
  24. package/dist/web/components/Avatar.js.zyzz.json +1 -1
  25. package/dist/web/components/Badge.css +1 -1
  26. package/dist/web/components/Badge.js.zyzz.json +1 -1
  27. package/dist/web/components/Banner.css +1 -1
  28. package/dist/web/components/Banner.js.zyzz.json +1 -1
  29. package/dist/web/components/BarChart.css +1 -1
  30. package/dist/web/components/BarChart.js.zyzz.json +1 -1
  31. package/dist/web/components/Breadcrumbs.css +1 -1
  32. package/dist/web/components/Breadcrumbs.js.zyzz.json +1 -1
  33. package/dist/web/components/Button.css +1 -1
  34. package/dist/web/components/Button.js.zyzz.json +1 -1
  35. package/dist/web/components/ButtonGroup.js.zyzz.json +1 -1
  36. package/dist/web/components/Calendar.css +1 -1
  37. package/dist/web/components/Calendar.js.zyzz.json +1 -1
  38. package/dist/web/components/Callout.css +1 -1
  39. package/dist/web/components/Callout.js.zyzz.json +1 -1
  40. package/dist/web/components/Checkbox.js.zyzz.json +1 -1
  41. package/dist/web/components/CheckboxGroup.js.zyzz.json +1 -1
  42. package/dist/web/components/ChoiceGroup.css +1 -1
  43. package/dist/web/components/ChoiceGroup.js.zyzz.json +1 -1
  44. package/dist/web/components/Choicebox.css +1 -1
  45. package/dist/web/components/Choicebox.js.zyzz.json +1 -1
  46. package/dist/web/components/Code.js.zyzz.json +1 -1
  47. package/dist/web/components/Combobox.css +1 -1
  48. package/dist/web/components/Combobox.js.zyzz.json +1 -1
  49. package/dist/web/components/Container.js.zyzz.json +1 -1
  50. package/dist/web/components/CopyButton.js.zyzz.json +1 -1
  51. package/dist/web/components/DatePicker.css +1 -1
  52. package/dist/web/components/DatePicker.js.zyzz.json +1 -1
  53. package/dist/web/components/Dialog.css +1 -1
  54. package/dist/web/components/Dialog.js.zyzz.json +1 -1
  55. package/dist/web/components/Drawer.css +1 -1
  56. package/dist/web/components/Drawer.js.zyzz.json +1 -1
  57. package/dist/web/components/Empty.css +1 -1
  58. package/dist/web/components/Empty.js.zyzz.json +1 -1
  59. package/dist/web/components/Field.css +1 -1
  60. package/dist/web/components/Field.js.zyzz.json +1 -1
  61. package/dist/web/components/Fieldset.css +1 -1
  62. package/dist/web/components/Fieldset.js.zyzz.json +1 -1
  63. package/dist/web/components/Frame.css +1 -1
  64. package/dist/web/components/Frame.js.zyzz.json +1 -1
  65. package/dist/web/components/Gauge.css +1 -1
  66. package/dist/web/components/Gauge.js.zyzz.json +1 -1
  67. package/dist/web/components/GetStartedVisual.js.zyzz.json +1 -1
  68. package/dist/web/components/Grid.js.zyzz.json +1 -1
  69. package/dist/web/components/HeroVisual.css +1 -1
  70. package/dist/web/components/HeroVisual.js.zyzz.json +1 -1
  71. package/dist/web/components/Hex.js.zyzz.json +1 -1
  72. package/dist/web/components/IconTile.js.zyzz.json +1 -1
  73. package/dist/web/components/Identicon.js.zyzz.json +1 -1
  74. package/dist/web/components/Inline.js.zyzz.json +1 -1
  75. package/dist/web/components/Inset.js.zyzz.json +1 -1
  76. package/dist/web/components/Kbd.css +1 -1
  77. package/dist/web/components/Kbd.js.zyzz.json +1 -1
  78. package/dist/web/components/ListGroup.css +1 -1
  79. package/dist/web/components/ListGroup.js.zyzz.json +1 -1
  80. package/dist/web/components/LoadingDots.js.zyzz.json +1 -1
  81. package/dist/web/components/Menu.css +1 -1
  82. package/dist/web/components/Menu.js.zyzz.json +1 -1
  83. package/dist/web/components/NativeSelect.css +1 -1
  84. package/dist/web/components/NativeSelect.js.zyzz.json +1 -1
  85. package/dist/web/components/NetworkLogo.js.zyzz.json +1 -1
  86. package/dist/web/components/NumberField.js.zyzz.json +1 -1
  87. package/dist/web/components/OtpField.css +1 -1
  88. package/dist/web/components/OtpField.js.zyzz.json +1 -1
  89. package/dist/web/components/Pagination.css +1 -1
  90. package/dist/web/components/Pagination.js.zyzz.json +1 -1
  91. package/dist/web/components/Popover.css +1 -1
  92. package/dist/web/components/Popover.js.zyzz.json +1 -1
  93. package/dist/web/components/Progress.css +1 -1
  94. package/dist/web/components/Progress.js.zyzz.json +1 -1
  95. package/dist/web/components/Qr.js.zyzz.json +1 -1
  96. package/dist/web/components/RadioGroup.js.zyzz.json +1 -1
  97. package/dist/web/components/SecretValue.js.zyzz.json +1 -1
  98. package/dist/web/components/Select.js.zyzz.json +1 -1
  99. package/dist/web/components/Separator.css +1 -1
  100. package/dist/web/components/Separator.js.zyzz.json +1 -1
  101. package/dist/web/components/SidebarMenu.css +1 -1
  102. package/dist/web/components/SidebarMenu.js.zyzz.json +1 -1
  103. package/dist/web/components/Skeleton.js.zyzz.json +1 -1
  104. package/dist/web/components/Slider.css +1 -1
  105. package/dist/web/components/Slider.js.zyzz.json +1 -1
  106. package/dist/web/components/Snippet.js.zyzz.json +1 -1
  107. package/dist/web/components/Spinner.js.zyzz.json +1 -1
  108. package/dist/web/components/SplitBar.css +1 -1
  109. package/dist/web/components/SplitBar.js.zyzz.json +1 -1
  110. package/dist/web/components/SplitButton.js.zyzz.json +1 -1
  111. package/dist/web/components/Stack.js.zyzz.json +1 -1
  112. package/dist/web/components/StatusChip.css +1 -1
  113. package/dist/web/components/StatusChip.js.zyzz.json +1 -1
  114. package/dist/web/components/StatusIndicator.css +1 -1
  115. package/dist/web/components/StatusIndicator.js.zyzz.json +1 -1
  116. package/dist/web/components/StatusRow.css +1 -1
  117. package/dist/web/components/StatusRow.js.zyzz.json +1 -1
  118. package/dist/web/components/Stepper.js.zyzz.json +1 -1
  119. package/dist/web/components/SuccessHero.css +1 -1
  120. package/dist/web/components/SuccessHero.js.zyzz.json +1 -1
  121. package/dist/web/components/Surface.css +1 -1
  122. package/dist/web/components/Surface.js.zyzz.json +1 -1
  123. package/dist/web/components/Switch.js.zyzz.json +1 -1
  124. package/dist/web/components/Table.css +1 -1
  125. package/dist/web/components/Table.js.zyzz.json +1 -1
  126. package/dist/web/components/Tabs.css +1 -1
  127. package/dist/web/components/Tabs.js.zyzz.json +1 -1
  128. package/dist/web/components/TempoLogo.js.zyzz.json +1 -1
  129. package/dist/web/components/TextInput.js.zyzz.json +1 -1
  130. package/dist/web/components/Textarea.css +1 -1
  131. package/dist/web/components/Textarea.js.zyzz.json +1 -1
  132. package/dist/web/components/Toast.css +1 -1
  133. package/dist/web/components/Toast.js.zyzz.json +1 -1
  134. package/dist/web/components/Token.css +1 -1
  135. package/dist/web/components/Token.js.zyzz.json +1 -1
  136. package/dist/web/components/TokenLogo.js.zyzz.json +1 -1
  137. package/dist/web/components/Tooltip.css +1 -1
  138. package/dist/web/components/Tooltip.js.zyzz.json +1 -1
  139. package/dist/web/components/VerificationCode.css +1 -1
  140. package/dist/web/components/VerificationCode.js.zyzz.json +1 -1
  141. package/dist/web/components/Visual.css +1 -1
  142. package/dist/web/components/Visual.js.zyzz.json +1 -1
  143. package/dist/web/components/internal/Field.css +1 -1
  144. package/dist/web/components/internal/Field.js.zyzz.json +1 -1
  145. package/dist/web/components/internal/InputGroup.css +1 -1
  146. package/dist/web/components/internal/InputGroup.js.zyzz.json +1 -1
  147. package/dist/web/components/internal/Listbox.css +1 -1
  148. package/dist/web/components/internal/Listbox.js.zyzz.json +1 -1
  149. package/dist/web/components/internal/Streaks.js.zyzz.json +1 -1
  150. package/dist/web/index.js.zyzz.json +1 -1
  151. package/dist/web/vars.d.ts +8 -8
  152. package/dist/web/vars.d.ts.map +1 -1
  153. package/dist/web/vars.js.map +1 -1
  154. package/dist/web/vars.js.zyzz.json +1 -1
  155. package/dist/web/zyzz.config.d.ts +40 -40
  156. package/dist/web/zyzz.config.js.zyzz.json +1 -1
  157. package/package.json +1 -1
  158. package/src/web/README.md +1 -1
  159. package/src/web/components/AppShell.tsx +5 -0
  160. package/src/web/vars.ts +15 -14
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tempoxyz/ds",
3
3
  "type": "module",
4
- "version": "0.3.2",
4
+ "version": "0.3.5",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "DESIGN.md",
package/src/web/README.md CHANGED
@@ -37,7 +37,7 @@ export default defineConfig({
37
37
 
38
38
  The scales hold the `neutral` and `accent` colors, such as `neutral.shade.040` and `accent.blue.background`, and the `spacing` steps, so spacing `'24'` is `1.5rem`. Tokens named for their role derive from them, such as `content.primary`, `container.regular`, `line.primary`, `radius.xs`, and `borderWidth.thin`. Light and dark values follow the inherited `color-scheme`. [`vars.ts`](./vars.ts) lists every value.
39
39
 
40
- Typography sets bundle a family, size, weight, tracking, and leading, such as `body.b2`, `heading.h1`, and `mono.m1`. The plugin emits the bundled Inter, Pilat, and JetBrains Mono faces, so only the HB Set display face falls back, to Pilat.
40
+ Typography sets bundle a family, size, weight, tracking, and leading, such as `body.b2`, `heading.h1`, and `mono.m1`. The plugin emits the bundled Inter, Pilat, and JetBrains Mono faces, which every set uses.
41
41
 
42
42
  An app that needs tokens of its own extends `variables` in its own Zyzz config, and applies that config's `vars()` class beside the library's.
43
43
 
@@ -460,6 +460,7 @@ namespace styles {
460
460
  {
461
461
  alignItems: 'center',
462
462
  backgroundColor: 'inverse.background.secondary',
463
+ border: 'none !custom',
463
464
  borderRadius: 'full',
464
465
  boxShadow: 'large',
465
466
  boxSizing: 'border-box',
@@ -876,6 +877,9 @@ namespace styles {
876
877
  {
877
878
  base: {
878
879
  alignItems: 'center',
880
+ appearance: 'none !custom',
881
+ backgroundColor: 'transparent !custom',
882
+ border: 'none !custom',
879
883
  borderRadius: 'full',
880
884
  boxSizing: 'border-box',
881
885
  color: 'content.secondary',
@@ -883,6 +887,7 @@ namespace styles {
883
887
  cursor: 'pointer',
884
888
  display: 'flex',
885
889
  flex: '1 !custom',
890
+ font: 'inherit !custom',
886
891
  height: '100% !custom',
887
892
  justifyContent: 'center',
888
893
  minWidth: '0',
package/src/web/vars.ts CHANGED
@@ -192,9 +192,9 @@ export const variables = Vars.define(
192
192
  snappy: 'cubic-bezier(0.23, 1, 0.32, 1)',
193
193
  spring: 'cubic-bezier(0.32, 0.72, 0, 1)',
194
194
  },
195
- // The Platform text styles set copy in Inter, titles and values in Pilat, the second display
196
- // size in HB Set, and code in JetBrains Mono. The Web contracts ship Inter, Pilat, and JetBrains
197
- // Mono, so only HB Set falls back, to Pilat.
195
+ // The Platform text styles set copy in Inter, titles, display copy, and values in Pilat, and code
196
+ // in JetBrains Mono. The Web contracts ship all three. The `display` stack keeps HB Set, which
197
+ // falls back to Pilat, for callers that still name it.
198
198
  fontFamily: {
199
199
  body: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
200
200
  display:
@@ -567,54 +567,55 @@ export const variables = Vars.define(
567
567
  xs: vars.spacing['24'],
568
568
  },
569
569
  },
570
- // Figma's percentage tracking is converted to px. The `utility` styles are uppercase in Figma,
571
- // which a component applies with `textTransform`.
570
+ // Figma's percentage tracking is converted to px. Body tracking instead follows Inter's dynamic
571
+ // metrics, -0.0223 + 0.185 * e^(-0.1745 * size) em, rounded to 0.01px. The `utility` styles are
572
+ // uppercase in Figma, which a component applies with `textTransform`.
572
573
  typography: {
573
574
  body: {
574
575
  b1: {
575
576
  fontFamily: vars.fontFamily.body,
576
577
  fontSize: '16px',
577
578
  fontWeight: 400,
578
- letterSpacing: '.12px',
579
+ letterSpacing: '-.18px',
579
580
  lineHeight: '22px',
580
581
  },
581
582
  b1Strong: {
582
583
  fontFamily: vars.fontFamily.body,
583
584
  fontSize: '16px',
584
585
  fontWeight: 500,
585
- letterSpacing: '.12px',
586
+ letterSpacing: '-.18px',
586
587
  lineHeight: '22px',
587
588
  },
588
589
  b2: {
589
590
  fontFamily: vars.fontFamily.body,
590
591
  fontSize: '14px',
591
592
  fontWeight: 400,
592
- letterSpacing: '.14px',
593
+ letterSpacing: '-.09px',
593
594
  lineHeight: '20px',
594
595
  },
595
596
  b2Strong: {
596
597
  fontFamily: vars.fontFamily.body,
597
598
  fontSize: '14px',
598
599
  fontWeight: 500,
599
- letterSpacing: '.14px',
600
+ letterSpacing: '-.09px',
600
601
  lineHeight: '20px',
601
602
  },
602
603
  b3: {
603
604
  fontFamily: vars.fontFamily.body,
604
605
  fontSize: '12px',
605
606
  fontWeight: 400,
606
- letterSpacing: '.15px',
607
+ letterSpacing: '.01px',
607
608
  lineHeight: '16px',
608
609
  },
609
610
  b3Strong: {
610
611
  fontFamily: vars.fontFamily.body,
611
612
  fontSize: '12px',
612
613
  fontWeight: 500,
613
- letterSpacing: '.15px',
614
+ letterSpacing: '.01px',
614
615
  lineHeight: '16px',
615
616
  },
616
617
  },
617
- // Pilat Light and HB Set Light are weight 300.
618
+ // Pilat Light is weight 300, and Pilat Regular is 400.
618
619
  display: {
619
620
  d1: {
620
621
  fontFamily: vars.fontFamily.heading,
@@ -624,9 +625,9 @@ export const variables = Vars.define(
624
625
  lineHeight: '41.8px',
625
626
  },
626
627
  d2: {
627
- fontFamily: vars.fontFamily.display,
628
+ fontFamily: vars.fontFamily.heading,
628
629
  fontSize: '36px',
629
- fontWeight: 300,
630
+ fontWeight: 400,
630
631
  letterSpacing: '-1.44px',
631
632
  lineHeight: '34.2px',
632
633
  },