@orbitcommerce/constellation-docs 0.0.0-stage → 1.2.0

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 (232) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +6 -2
  3. package/dist/docs.css +20787 -0
  4. package/dist/index.d.ts +33 -0
  5. package/dist/index.js +308 -0
  6. package/dist/pages/Playground-Mk1yIWXb.js +129 -0
  7. package/dist/pages/_address-data-L9BR499w.js +161 -0
  8. package/dist/pages/_builder-demo-C0eJUmPU.js +282 -0
  9. package/dist/pages/_card-art-0be5ncyV.js +18 -0
  10. package/dist/pages/_conversation-samples-Bq7cn-4d.js +70 -0
  11. package/dist/pages/_figures-data-DaDvB7Nm.js +606 -0
  12. package/dist/pages/_foundations-blXWyYh8.js +30 -0
  13. package/dist/pages/_kpi-examples-DeGCBB9T.js +208 -0
  14. package/dist/pages/_overlays-specimens-bawR331Z.js +320 -0
  15. package/dist/pages/_preview-specimens-DKQC9HAo.js +153 -0
  16. package/dist/pages/accordion-Sg0TUqxB.js +1036 -0
  17. package/dist/pages/address-autocomplete-DP0PUOlK.js +360 -0
  18. package/dist/pages/address-block-BZOOOPA9.js +368 -0
  19. package/dist/pages/address-fields-CwSqro3W.js +277 -0
  20. package/dist/pages/ai-highlight-D3x2vD83.js +642 -0
  21. package/dist/pages/alert-D3i7xZTU.js +914 -0
  22. package/dist/pages/anchored-overlay-BV0OCu2Q.js +788 -0
  23. package/dist/pages/app-shell-D4hdlHps.js +1558 -0
  24. package/dist/pages/area-chart-BEWFwiB2.js +718 -0
  25. package/dist/pages/avatar-BFEqQViw.js +895 -0
  26. package/dist/pages/avatar-upload-BDCzJfyN.js +484 -0
  27. package/dist/pages/badge-0-PyMrih.js +1035 -0
  28. package/dist/pages/bar-chart-DkLogYlt.js +1060 -0
  29. package/dist/pages/bar-fold-B-3XeIDZ.js +360 -0
  30. package/dist/pages/board-card-D2tZY_mU.js +415 -0
  31. package/dist/pages/brand-mark-BqiLvFSR.js +417 -0
  32. package/dist/pages/button-DAyfssDY.js +715 -0
  33. package/dist/pages/calendar-Ds7KsgSI.js +682 -0
  34. package/dist/pages/canvas-stage-1KiPspkX.js +472 -0
  35. package/dist/pages/card-CQEM1_wc.js +1567 -0
  36. package/dist/pages/caret-suggestions-oHI6QvqW.js +526 -0
  37. package/dist/pages/chart-legend-B20AbakD.js +724 -0
  38. package/dist/pages/chat-composer-CwzUJYIa.js +437 -0
  39. package/dist/pages/checkbox-BG9Zkb6j.js +1581 -0
  40. package/dist/pages/checklist-card-DEyykVFS.js +783 -0
  41. package/dist/pages/chip-Ck-o3Ui6.js +839 -0
  42. package/dist/pages/chip-list-k1LxXuCi.js +414 -0
  43. package/dist/pages/clamp-text-n-iE8RDR.js +203 -0
  44. package/dist/pages/coachmark-Be2ghobT.js +366 -0
  45. package/dist/pages/code-block-Dv_Y5GYq.js +622 -0
  46. package/dist/pages/collab-field-CfqqK7d2.js +696 -0
  47. package/dist/pages/color-field-CZpfcA-A.js +1127 -0
  48. package/dist/pages/colour-q2ntvI0w.js +1974 -0
  49. package/dist/pages/column-mapper-TsTG39cl.js +502 -0
  50. package/dist/pages/combobox-DvK2j5tI.js +1334 -0
  51. package/dist/pages/command-palette-CJ7uBA04.js +1386 -0
  52. package/dist/pages/comment-box-CDSGYhr5.js +346 -0
  53. package/dist/pages/composer-D4B0NgpA.js +689 -0
  54. package/dist/pages/condition-builder-BZy2ZGXe.js +715 -0
  55. package/dist/pages/conflict-chooser-C--_9UIS.js +210 -0
  56. package/dist/pages/context-menu-F9DV30ia.js +487 -0
  57. package/dist/pages/copy-button-Cn7WiKRF.js +568 -0
  58. package/dist/pages/copy-field-D3Xt3Jq6.js +511 -0
  59. package/dist/pages/danger-zone-Db_UUeiP.js +564 -0
  60. package/dist/pages/date-input-GOW067EB.js +956 -0
  61. package/dist/pages/date-picker-GdBciR99.js +1569 -0
  62. package/dist/pages/date-time-BLKCXtVZ.js +678 -0
  63. package/dist/pages/delta-CNAGv8JY.js +779 -0
  64. package/dist/pages/description-list-BPeXn1eW.js +1268 -0
  65. package/dist/pages/device-switcher-BCaN99c1.js +554 -0
  66. package/dist/pages/dialog-CRpkRC98.js +3164 -0
  67. package/dist/pages/docs-lM2UBSir.js +520 -0
  68. package/dist/pages/doodle-nzkqi2UI.js +201 -0
  69. package/dist/pages/drag-ghost-B6kpzC3O.js +426 -0
  70. package/dist/pages/drill-menu-cskH5mol.js +490 -0
  71. package/dist/pages/dropzone-DOY_Rhw0.js +1069 -0
  72. package/dist/pages/element-toolbar-DZIhXlCJ.js +498 -0
  73. package/dist/pages/emoji-picker-CqaWaffD.js +235 -0
  74. package/dist/pages/empty-state-4U2txFpI.js +1113 -0
  75. package/dist/pages/facet-filters-McbBeY9e.js +353 -0
  76. package/dist/pages/figure-D-HF5vCj.js +563 -0
  77. package/dist/pages/figure-strip-BB3mNl7D.js +1364 -0
  78. package/dist/pages/figure-tabs-QOeQMY6N.js +578 -0
  79. package/dist/pages/file-chip-DMDjtlqQ.js +738 -0
  80. package/dist/pages/filter-pill-DzqNOsD4.js +1295 -0
  81. package/dist/pages/font-picker-Bqhu0QMh.js +416 -0
  82. package/dist/pages/form-grid-BfWCVlie.js +692 -0
  83. package/dist/pages/gallery-BBk2EOri.js +453 -0
  84. package/dist/pages/gif-picker-CnoDTCaL.js +270 -0
  85. package/dist/pages/gradient-editor-Bqxp7Fxj.js +378 -0
  86. package/dist/pages/grouped-checklist-gNZ0tBKU.js +477 -0
  87. package/dist/pages/heatmap-BohgIcNk.js +507 -0
  88. package/dist/pages/highlight-text-BfxzfmvS.js +287 -0
  89. package/dist/pages/home-dashboard-CxPmvduE.js +962 -0
  90. package/dist/pages/host-B6znjEgQ.js +109 -0
  91. package/dist/pages/hosted-embed-Jef3aIMP.js +163 -0
  92. package/dist/pages/hosted-field-BLh-53AE.js +208 -0
  93. package/dist/pages/hosted-field-DEpI4lVS.js +514 -0
  94. package/dist/pages/icon-button-Bu4Gj5sy.js +1200 -0
  95. package/dist/pages/icon-picker-DEyoMUTh.js +291 -0
  96. package/dist/pages/icon-tile-DcgxyXPF.js +592 -0
  97. package/dist/pages/icons-CJ9Aar3d.js +736 -0
  98. package/dist/pages/image-cropper-NyougqLH.js +466 -0
  99. package/dist/pages/image-field-7knBv4mJ.js +567 -0
  100. package/dist/pages/import-result-CmTtGXW_.js +486 -0
  101. package/dist/pages/inline-confirm-CEcI5Lxo.js +327 -0
  102. package/dist/pages/inline-edit-Ba39SzhM.js +1125 -0
  103. package/dist/pages/input-CzLCzfyx.js +2372 -0
  104. package/dist/pages/installation-C3UcpQJT.js +528 -0
  105. package/dist/pages/job-indicator-DOXWbFdl.js +755 -0
  106. package/dist/pages/kanban-Dy9sPAI0.js +740 -0
  107. package/dist/pages/kbd-UNj4zqxn.js +545 -0
  108. package/dist/pages/layout-primitives-CPRaZeyt.js +483 -0
  109. package/dist/pages/line-chart-CntWxeMF.js +1117 -0
  110. package/dist/pages/link-CXqvAg9z.js +689 -0
  111. package/dist/pages/link-picker-BMFGCC67.js +478 -0
  112. package/dist/pages/link-row-x8yaUuWc.js +595 -0
  113. package/dist/pages/live-globe-95ROMhGQ.js +715 -0
  114. package/dist/pages/loading-overlay-BeGuXM9G.js +456 -0
  115. package/dist/pages/loading-state-BNbCo51C.js +556 -0
  116. package/dist/pages/log-viewer-BQz8I_a2.js +503 -0
  117. package/dist/pages/logo-B38rnzoq.js +571 -0
  118. package/dist/pages/lottie_light-CxEH8eiR.js +9116 -0
  119. package/dist/pages/markdown-Ied72vMT.js +237 -0
  120. package/dist/pages/markdown-field-BfnIEKZH.js +193 -0
  121. package/dist/pages/media-banner-DkStCia0.js +233 -0
  122. package/dist/pages/menu-NrLYKqKp.js +2132 -0
  123. package/dist/pages/message-thread-Bo4zbxqu.js +731 -0
  124. package/dist/pages/meta-line-D5p2TycR.js +371 -0
  125. package/dist/pages/model-viewer-BfokvHoc.js +60288 -0
  126. package/dist/pages/model-viewer-C8PFO8wk.js +577 -0
  127. package/dist/pages/month-calendar-T1vw9Rup.js +457 -0
  128. package/dist/pages/motion-CrXtiBvA.js +865 -0
  129. package/dist/pages/number-input-CuyMZg18.js +968 -0
  130. package/dist/pages/orbit-loader-DeVBtkFE.js +219 -0
  131. package/dist/pages/orbit-spinner-Dxv5qAhr.js +348 -0
  132. package/dist/pages/otp-input-CVRoX1mw.js +591 -0
  133. package/dist/pages/overview-LA9XRhZc.js +130 -0
  134. package/dist/pages/package-dimensions-DFCyZj_T.js +192 -0
  135. package/dist/pages/pagination-C1EgVtW4.js +294 -0
  136. package/dist/pages/palette-tile-X9ZXu2Z0.js +414 -0
  137. package/dist/pages/password-field-DHEQKyUC.js +912 -0
  138. package/dist/pages/person-cell-BmjbADBz.js +564 -0
  139. package/dist/pages/phone-input-B3G7Qpb2.js +747 -0
  140. package/dist/pages/plan-card-DRaA6RuB.js +621 -0
  141. package/dist/pages/plan-card-DtloWvMh.js +258 -0
  142. package/dist/pages/plan-comparison-BVIGTtbd.js +559 -0
  143. package/dist/pages/plan-grid-cfPVTB5V.js +251 -0
  144. package/dist/pages/point-list-BbPmZjsm.js +222 -0
  145. package/dist/pages/popover-C3Oar9D5.js +1198 -0
  146. package/dist/pages/presence-avatars-CRZIk8n9.js +328 -0
  147. package/dist/pages/preview-frame-Bcwk0y_Q.js +1631 -0
  148. package/dist/pages/price-CRBLoa9h.js +604 -0
  149. package/dist/pages/principles-pnDyfHpK.js +483 -0
  150. package/dist/pages/print-page-BkLv6bW8.js +513 -0
  151. package/dist/pages/profile-hero-CC9dUzuN.js +498 -0
  152. package/dist/pages/progress-CP_awmo4.js +904 -0
  153. package/dist/pages/progress-ring-JuOAwk2T.js +576 -0
  154. package/dist/pages/radio-group-C-4tg6FS.js +1639 -0
  155. package/dist/pages/radius-control-B2kRA2Ch.js +441 -0
  156. package/dist/pages/rating-CweKN2SX.js +471 -0
  157. package/dist/pages/record-layout-DUP_X0RL.js +719 -0
  158. package/dist/pages/record-pager-y9D7JFgb.js +278 -0
  159. package/dist/pages/registry-BZg-xAbi.js +594 -0
  160. package/dist/pages/release-Cs6tl16C.js +16 -0
  161. package/dist/pages/repeater-BRZYKRQa.js +1351 -0
  162. package/dist/pages/reply-feedback-BDnHprla.js +192 -0
  163. package/dist/pages/reveal-BygENBbL.js +460 -0
  164. package/dist/pages/rich-text-DOFQZEpT.js +156 -0
  165. package/dist/pages/rich-text-editor-BhIM20JI.js +1265 -0
  166. package/dist/pages/rolldown-runtime-CbKu08Hx.js +25 -0
  167. package/dist/pages/rolling-number-GR3Cyfpz.js +529 -0
  168. package/dist/pages/row-list-Dl6CYhC-.js +1565 -0
  169. package/dist/pages/rule-list-DTCmIMpT.js +648 -0
  170. package/dist/pages/save-status-B5KkyMZP.js +378 -0
  171. package/dist/pages/schedule-YycI95O1.js +243 -0
  172. package/dist/pages/scroll-area-B2sGm23Q.js +423 -0
  173. package/dist/pages/search-field-D1uG7R6A.js +693 -0
  174. package/dist/pages/search-menu-DMuXyUUW.js +580 -0
  175. package/dist/pages/secret-field-Dj9x3LL8.js +337 -0
  176. package/dist/pages/section-rail-BtTCETS5.js +637 -0
  177. package/dist/pages/section-v2Pubup9.js +639 -0
  178. package/dist/pages/segmented-control-D-FB1K1T.js +1190 -0
  179. package/dist/pages/select-DZ43NpOm.js +1434 -0
  180. package/dist/pages/selection-chrome-Czcs6RN6.js +437 -0
  181. package/dist/pages/separator-CFwqRvfO.js +428 -0
  182. package/dist/pages/serp-preview-BGwORjmo.js +346 -0
  183. package/dist/pages/setting-row-Bt-dZV8H.js +913 -0
  184. package/dist/pages/shape-DzniHAVT.js +627 -0
  185. package/dist/pages/share-list-D4wgBxKN.js +926 -0
  186. package/dist/pages/side-panel-CCtkrZjs.js +811 -0
  187. package/dist/pages/site-preview-Dj1hM2Yo.js +353 -0
  188. package/dist/pages/skeleton-C1F5HkAu.js +1325 -0
  189. package/dist/pages/skip-link-BxznhSkz.js +252 -0
  190. package/dist/pages/slider-CAoPURKD.js +774 -0
  191. package/dist/pages/sortable-card-Sr44uCpI.js +424 -0
  192. package/dist/pages/sortable-list-DUAleYE1.js +1298 -0
  193. package/dist/pages/sortable-tree-BLzK-hTE.js +737 -0
  194. package/dist/pages/spacing-box-CtuvzxQu.js +550 -0
  195. package/dist/pages/sparkline-D3aavCly.js +947 -0
  196. package/dist/pages/split-bar-DYgZnFID.js +414 -0
  197. package/dist/pages/split-button-Be08-VI-.js +335 -0
  198. package/dist/pages/split-pane-lSNZgTKt.js +523 -0
  199. package/dist/pages/status-badge-DOdNhmzn.js +1074 -0
  200. package/dist/pages/status-checklist-CWkjCZIC.js +1152 -0
  201. package/dist/pages/status-dot-D99gAGsV.js +567 -0
  202. package/dist/pages/stepper-CxKTbEA-.js +1093 -0
  203. package/dist/pages/success-mark-CqFTOBEu.js +142 -0
  204. package/dist/pages/swatch-H_kNvHuC.js +565 -0
  205. package/dist/pages/switch-C93K6j9h.js +617 -0
  206. package/dist/pages/table-CL0vomno.js +3225 -0
  207. package/dist/pages/tabs-Dh0mUsLw.js +1690 -0
  208. package/dist/pages/tag-input-BjZWKKRJ.js +1307 -0
  209. package/dist/pages/task-card-Dv0sR1-w.js +295 -0
  210. package/dist/pages/textarea-CCM-SnGN.js +949 -0
  211. package/dist/pages/thumbnail-DwFJL_k1.js +1147 -0
  212. package/dist/pages/time-input-CA9-uZAa.js +442 -0
  213. package/dist/pages/time-zone-select-CEtMXVYO.js +296 -0
  214. package/dist/pages/timeline-BsMUTlpR.js +1798 -0
  215. package/dist/pages/toast-zXLRiMRT.js +1391 -0
  216. package/dist/pages/tool-rail-B1AbTMCP.js +355 -0
  217. package/dist/pages/toolbar-B9l_fHKy.js +754 -0
  218. package/dist/pages/tooltip-LHtCUkF-.js +826 -0
  219. package/dist/pages/translation-field-CTRXiF2N.js +251 -0
  220. package/dist/pages/tree-checklist-CJj3OcLg.js +451 -0
  221. package/dist/pages/tree-select-DU1qXHy_.js +492 -0
  222. package/dist/pages/tree-view-g_RjLtAb.js +739 -0
  223. package/dist/pages/typography-BSijtiRl.js +876 -0
  224. package/dist/pages/unit-input-Dml4fjmK.js +659 -0
  225. package/dist/pages/upload-rules-yozEzSah.js +419 -0
  226. package/dist/pages/url-upload-input-SSnMgfpA.js +307 -0
  227. package/dist/pages/value-change-CnubDKyO.js +489 -0
  228. package/dist/pages/weekly-hours-i2EpsmTx.js +287 -0
  229. package/dist/pages/widget-preview-CUJMyZ_k.js +625 -0
  230. package/dist/pages/working-status-CENemSsw.js +389 -0
  231. package/manifest.json +13001 -0
  232. package/package.json +35 -4
@@ -0,0 +1,876 @@
1
+ "use client";
2
+ import { a as DocTable, d as Section$1, i as DocPage, l as Note, m as ThemePair, n as CodeBlock$1, o as Example, p as SubSection, r as DoDont, s as Guidelines } from "./docs-lM2UBSir.js";
3
+ import { useState } from "react";
4
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
+ import { Button, Delta, RollingNumber, SegmentedControl, formatDeduction, formatMoney, formatMoneyTick, formatRate } from "@orbitcommerce/constellation";
6
+ import { PlusIcon } from "@orbitcommerce/constellation/icons";
7
+ //#region src/pages/foundations/typography.tsx
8
+ var GBP = {
9
+ style: "currency",
10
+ currency: "GBP"
11
+ };
12
+ var DISPLAY = {
13
+ fontFamily: "var(--o-font-display)",
14
+ fontWeight: 600,
15
+ letterSpacing: "var(--o-tracking-display)"
16
+ };
17
+ var TNUM = { fontVariantNumeric: "tabular-nums" };
18
+ /** The product ramp, from DESIGN.md, each line set exactly as the components set it. */
19
+ var RAMP = [
20
+ {
21
+ name: "Figure hero",
22
+ spec: "Sora 600 · 38px · 1 · -0.03em · tabular",
23
+ use: "The day's takings at the head of the home dashboard.",
24
+ sample: "£3,214.80",
25
+ style: {
26
+ ...DISPLAY,
27
+ ...TNUM,
28
+ fontSize: "2.375rem",
29
+ lineHeight: 1,
30
+ letterSpacing: "-0.03em"
31
+ }
32
+ },
33
+ {
34
+ name: "Display",
35
+ spec: "Sora 600 · 30px, 24px on phones · 1.12 · -0.025em",
36
+ use: "Greetings, the home, and whole-screen states such as a page that was not found.",
37
+ sample: "Good afternoon, Priya",
38
+ style: {
39
+ ...DISPLAY,
40
+ fontSize: "var(--o-text-4xl)",
41
+ lineHeight: 1.12
42
+ }
43
+ },
44
+ {
45
+ name: "Page title",
46
+ spec: "Sora 600 · 24px, 22px on phones · 1.2 · -0.022em",
47
+ use: "The title at the top of a list, a record or a settings page. The header already names the page, so it stays a step below Display.",
48
+ sample: "Orders",
49
+ style: {
50
+ ...DISPLAY,
51
+ fontSize: "var(--o-text-3xl)",
52
+ lineHeight: 1.2,
53
+ letterSpacing: "-0.022em"
54
+ }
55
+ },
56
+ {
57
+ name: "Figure",
58
+ spec: "Sora 600 · 26px · 1.1 · -0.025em · tabular",
59
+ use: "Headline figures that double as chart tabs.",
60
+ sample: "£18,420.50",
61
+ style: {
62
+ ...DISPLAY,
63
+ ...TNUM,
64
+ fontSize: "1.625rem",
65
+ lineHeight: 1.1
66
+ }
67
+ },
68
+ {
69
+ name: "Figure strip",
70
+ spec: "Sora 600 · 21px · 1.1 · -0.025em · tabular",
71
+ use: "Figures in the Z-read strip, on one baseline with their label.",
72
+ sample: "1,284",
73
+ style: {
74
+ ...DISPLAY,
75
+ ...TNUM,
76
+ fontSize: "1.3125rem",
77
+ lineHeight: 1.1
78
+ }
79
+ },
80
+ {
81
+ name: "Headline",
82
+ spec: "Sora 600 · 20px · -0.025em",
83
+ use: "Section titles on the canvas.",
84
+ sample: "Next up",
85
+ style: {
86
+ ...DISPLAY,
87
+ fontSize: "var(--o-text-2xl)",
88
+ lineHeight: 1.2
89
+ }
90
+ },
91
+ {
92
+ name: "Dialog title",
93
+ spec: "Sora 600 · 19px · 1.3 · -0.025em",
94
+ use: "The headline voice, a step smaller, inside dialogs.",
95
+ sample: "Delete 3 products?",
96
+ style: {
97
+ ...DISPLAY,
98
+ fontSize: "1.1875rem",
99
+ lineHeight: "var(--o-leading-snug)"
100
+ }
101
+ },
102
+ {
103
+ name: "Title",
104
+ spec: "Geist 600 · 15px · 1.3 · -0.012em",
105
+ use: "Card titles, job titles, list headings.",
106
+ sample: "5 orders to fulfil",
107
+ style: {
108
+ fontSize: "var(--o-text-lg)",
109
+ fontWeight: 600,
110
+ lineHeight: "var(--o-leading-snug)",
111
+ letterSpacing: "var(--o-tracking-tight)"
112
+ }
113
+ },
114
+ {
115
+ name: "Body",
116
+ spec: "Geist 400 · 14px · 1.45",
117
+ use: "The default: rows, fields, descriptions. Menu items at 450.",
118
+ sample: "Paid and waiting to be sent. The oldest has waited 1 day.",
119
+ style: {
120
+ fontSize: "var(--o-text-md)",
121
+ fontWeight: 400,
122
+ lineHeight: "var(--o-leading-normal)"
123
+ }
124
+ },
125
+ {
126
+ name: "Control",
127
+ spec: "Geist 550 · 14px · 1 · -0.006em",
128
+ use: "Button labels. 13px at sm, 12px at xs, 15px at lg.",
129
+ sample: "Save changes",
130
+ style: {
131
+ fontSize: "var(--o-text-md)",
132
+ fontWeight: 550,
133
+ lineHeight: 1,
134
+ letterSpacing: "-0.006em"
135
+ }
136
+ },
137
+ {
138
+ name: "Label",
139
+ spec: "Geist 500 · 13px · 1.3",
140
+ use: "Figure labels and segmented options. Field labels at 550.",
141
+ sample: "Takings today",
142
+ style: {
143
+ fontSize: "var(--o-text-sm)",
144
+ fontWeight: 500,
145
+ lineHeight: "var(--o-leading-snug)"
146
+ }
147
+ },
148
+ {
149
+ name: "Caption",
150
+ spec: "Geist 500 · 12px · 1.3",
151
+ use: "Sidebar section titles, menu headings, meta lines, timestamps.",
152
+ sample: "vs this time yesterday",
153
+ style: {
154
+ fontSize: "var(--o-text-xs)",
155
+ fontWeight: 500,
156
+ lineHeight: "var(--o-leading-snug)",
157
+ color: "var(--o-fg-3)"
158
+ }
159
+ },
160
+ {
161
+ name: "Tag",
162
+ spec: "Geist 550 · 12px · 1 · tabular",
163
+ use: "Badges and delta pills. 11px at sm.",
164
+ sample: "Unfulfilled · 12",
165
+ style: {
166
+ ...TNUM,
167
+ fontSize: "var(--o-text-xs)",
168
+ fontWeight: 550,
169
+ lineHeight: 1
170
+ }
171
+ }
172
+ ];
173
+ var SIZES = [
174
+ [
175
+ "2xs",
176
+ "0.6875rem",
177
+ 11,
178
+ "Small badges and deltas, nav counts, keycaps, chart axes"
179
+ ],
180
+ [
181
+ "xs",
182
+ "0.75rem",
183
+ 12,
184
+ "Captions, meta lines, tooltips, badges, xs buttons"
185
+ ],
186
+ [
187
+ "sm",
188
+ "0.8125rem",
189
+ 13,
190
+ "Labels, hints, segmented options, sm buttons"
191
+ ],
192
+ [
193
+ "md",
194
+ "0.875rem",
195
+ 14,
196
+ "The default UI size: body, fields, menus, buttons"
197
+ ],
198
+ [
199
+ "lg",
200
+ "0.9375rem",
201
+ 15,
202
+ "Card and empty-state titles, lg buttons"
203
+ ],
204
+ [
205
+ "xl",
206
+ "1.0625rem",
207
+ 17,
208
+ "Page-level text. Components stop at lg"
209
+ ],
210
+ [
211
+ "2xl",
212
+ "1.25rem",
213
+ 20,
214
+ "Headlines: section titles on the canvas"
215
+ ],
216
+ [
217
+ "3xl",
218
+ "1.5rem",
219
+ 24,
220
+ "Page titles, and Display on phones"
221
+ ],
222
+ [
223
+ "4xl",
224
+ "1.875rem",
225
+ 30,
226
+ "Display: greetings and whole-screen states"
227
+ ],
228
+ [
229
+ "5xl",
230
+ "2.5rem",
231
+ 40,
232
+ "Large figures"
233
+ ],
234
+ [
235
+ "6xl",
236
+ "3.5rem",
237
+ 56,
238
+ "The largest figures"
239
+ ]
240
+ ];
241
+ var WEIGHTS = [
242
+ [400, "Body text, descriptions"],
243
+ [450, "Menu items, nested nav, field errors"],
244
+ [500, "Labels, nav items, captions"],
245
+ [550, "Controls, tags, field labels"],
246
+ [600, "Titles, and every Sora figure and headline"],
247
+ [650, "Nav counts"]
248
+ ];
249
+ var AMOUNTS = [
250
+ "£1,111.11",
251
+ "£8,080.08",
252
+ "£410.47",
253
+ "£19,999.90"
254
+ ];
255
+ /** Yesterday's takings at this time, for the comparison. */
256
+ var YESTERDAY = 3398.2;
257
+ var SALE_AMOUNTS = [
258
+ 129,
259
+ 45,
260
+ 249,
261
+ 68.5,
262
+ 18.99,
263
+ 579
264
+ ];
265
+ function TillDemo() {
266
+ const [takings, setTakings] = useState(3214.8);
267
+ const [sales, setSales] = useState(0);
268
+ return /* @__PURE__ */ jsxs("div", {
269
+ className: "typography-till",
270
+ children: [/* @__PURE__ */ jsxs("div", {
271
+ className: "typography-till__figure",
272
+ children: [
273
+ /* @__PURE__ */ jsx("span", {
274
+ className: "typography-till__label",
275
+ children: "Takings today"
276
+ }),
277
+ /* @__PURE__ */ jsx(RollingNumber, {
278
+ className: "typography-till__value",
279
+ value: takings,
280
+ format: GBP,
281
+ animateOnMount: false,
282
+ live: true
283
+ }),
284
+ /* @__PURE__ */ jsx(Delta, {
285
+ value: (takings - YESTERDAY) / YESTERDAY * 100,
286
+ label: "vs this time yesterday"
287
+ })
288
+ ]
289
+ }), /* @__PURE__ */ jsx(Button, {
290
+ size: "sm",
291
+ icon: /* @__PURE__ */ jsx(PlusIcon, {}),
292
+ onClick: () => {
293
+ setTakings((t) => Math.round((t + (SALE_AMOUNTS[sales % SALE_AMOUNTS.length] ?? 45)) * 100) / 100);
294
+ setSales((n) => n + 1);
295
+ },
296
+ children: "Take a sale"
297
+ })]
298
+ });
299
+ }
300
+ var MONEY_LOCALES = [
301
+ {
302
+ value: "en-GB",
303
+ label: "English"
304
+ },
305
+ {
306
+ value: "de-DE",
307
+ label: "Deutsch"
308
+ },
309
+ {
310
+ value: "fr-FR",
311
+ label: "Français"
312
+ },
313
+ {
314
+ value: "ja-JP",
315
+ label: "日本語"
316
+ }
317
+ ];
318
+ var MONEY_CURRENCIES = [
319
+ {
320
+ value: "GBP",
321
+ label: "GBP"
322
+ },
323
+ {
324
+ value: "EUR",
325
+ label: "EUR"
326
+ },
327
+ {
328
+ value: "USD",
329
+ label: "USD"
330
+ },
331
+ {
332
+ value: "CAD",
333
+ label: "CAD"
334
+ }
335
+ ];
336
+ var TICKS = [
337
+ 0,
338
+ 25e4,
339
+ 5e5,
340
+ 12e5
341
+ ];
342
+ /** A figure in running text, kept on one line so a minus never parts from its amount. */
343
+ var figure = (text) => /* @__PURE__ */ jsx("span", {
344
+ className: "typography-money__figure o-num",
345
+ children: text
346
+ });
347
+ /** An invented order's sums, written for the chosen language and currency. */
348
+ function MoneyDemo() {
349
+ const [locale, setLocale] = useState("en-GB");
350
+ const [currency, setCurrency] = useState("GBP");
351
+ const rows = [
352
+ ["Subtotal", formatMoney(1249.5, currency, locale)],
353
+ ["Trade discount", formatDeduction(124.95, currency, locale)],
354
+ ["Refund to card", formatMoney(-80, currency, locale)],
355
+ ["Conversion rate", formatRate(3.3, 1, locale)],
356
+ ["Change on last week", formatRate(-4, 1, locale)]
357
+ ];
358
+ return /* @__PURE__ */ jsxs("div", {
359
+ className: "typography-money",
360
+ children: [
361
+ /* @__PURE__ */ jsxs("div", {
362
+ className: "typography-money__controls",
363
+ children: [/* @__PURE__ */ jsx(SegmentedControl, {
364
+ "aria-label": "Language",
365
+ size: "sm",
366
+ value: locale,
367
+ onValueChange: setLocale,
368
+ options: MONEY_LOCALES
369
+ }), /* @__PURE__ */ jsx(SegmentedControl, {
370
+ "aria-label": "Currency",
371
+ size: "sm",
372
+ value: currency,
373
+ onValueChange: setCurrency,
374
+ options: MONEY_CURRENCIES
375
+ })]
376
+ }),
377
+ /* @__PURE__ */ jsx("dl", {
378
+ className: "typography-money__sums",
379
+ children: rows.map(([label, value]) => /* @__PURE__ */ jsxs("div", {
380
+ className: "typography-money__row",
381
+ children: [/* @__PURE__ */ jsx("dt", { children: label }), /* @__PURE__ */ jsx("dd", {
382
+ className: "o-num",
383
+ children: value
384
+ })]
385
+ }, label))
386
+ }),
387
+ /* @__PURE__ */ jsx("div", {
388
+ className: "typography-money__axis",
389
+ children: TICKS.map((tick) => /* @__PURE__ */ jsx("span", {
390
+ className: "o-num",
391
+ children: formatMoneyTick(tick, currency, locale)
392
+ }, tick))
393
+ })
394
+ ]
395
+ });
396
+ }
397
+ function Page() {
398
+ return /* @__PURE__ */ jsxs(DocPage, {
399
+ title: "Typography",
400
+ lead: "Sora for figures and titles, Geist for every word of UI, Geist Mono for code. Every numeral is tabular, so figures read like a till.",
401
+ children: [
402
+ /* @__PURE__ */ jsxs(Section$1, {
403
+ id: "typefaces",
404
+ title: "Three typefaces",
405
+ description: /* @__PURE__ */ jsxs("p", { children: [
406
+ "Sora's geometric lowercase echoes the Orbit wordmark and gives money the presence of a till display. Geist does every other job with an instrument's neutrality. All three are variable fonts, self-hosted through",
407
+ " ",
408
+ /* @__PURE__ */ jsx("code", { children: "fonts.css" }),
409
+ "."
410
+ ] }),
411
+ children: [/* @__PURE__ */ jsxs("div", {
412
+ className: "typography-faces",
413
+ children: [
414
+ /* @__PURE__ */ jsxs("figure", {
415
+ className: "typography-face",
416
+ "data-face": "display",
417
+ children: [
418
+ /* @__PURE__ */ jsx("span", {
419
+ className: "typography-face__glyph",
420
+ "aria-hidden": "true",
421
+ children: "Aa"
422
+ }),
423
+ /* @__PURE__ */ jsx("span", {
424
+ className: "typography-face__sample",
425
+ children: "£3,214.80"
426
+ }),
427
+ /* @__PURE__ */ jsxs("figcaption", { children: [
428
+ /* @__PURE__ */ jsx("strong", { children: "Sora" }),
429
+ /* @__PURE__ */ jsx("span", { children: "Figures, greetings, page titles and section headlines. Weight 600." }),
430
+ /* @__PURE__ */ jsx("code", {
431
+ className: "typography-face__token",
432
+ children: "--o-font-display"
433
+ })
434
+ ] })
435
+ ]
436
+ }),
437
+ /* @__PURE__ */ jsxs("figure", {
438
+ className: "typography-face",
439
+ "data-face": "sans",
440
+ children: [
441
+ /* @__PURE__ */ jsx("span", {
442
+ className: "typography-face__glyph",
443
+ "aria-hidden": "true",
444
+ children: "Aa"
445
+ }),
446
+ /* @__PURE__ */ jsx("span", {
447
+ className: "typography-face__sample",
448
+ children: "Paid and waiting to be sent"
449
+ }),
450
+ /* @__PURE__ */ jsxs("figcaption", { children: [
451
+ /* @__PURE__ */ jsx("strong", { children: "Geist" }),
452
+ /* @__PURE__ */ jsx("span", { children: "Every word of UI: labels, controls, tables, body. Weights 400 to 650." }),
453
+ /* @__PURE__ */ jsx("code", {
454
+ className: "typography-face__token",
455
+ children: "--o-font-sans"
456
+ })
457
+ ] })
458
+ ]
459
+ }),
460
+ /* @__PURE__ */ jsxs("figure", {
461
+ className: "typography-face",
462
+ "data-face": "mono",
463
+ children: [
464
+ /* @__PURE__ */ jsx("span", {
465
+ className: "typography-face__glyph",
466
+ "aria-hidden": "true",
467
+ children: "Aa"
468
+ }),
469
+ /* @__PURE__ */ jsx("span", {
470
+ className: "typography-face__sample",
471
+ children: "SKU ARD-CHR-0042"
472
+ }),
473
+ /* @__PURE__ */ jsxs("figcaption", { children: [
474
+ /* @__PURE__ */ jsx("strong", { children: "Geist Mono" }),
475
+ /* @__PURE__ */ jsx("span", { children: "Code, IDs and SKUs only. Shipped, and not yet used by a component." }),
476
+ /* @__PURE__ */ jsx("code", {
477
+ className: "typography-face__token",
478
+ children: "--o-font-mono"
479
+ })
480
+ ] })
481
+ ]
482
+ })
483
+ ]
484
+ }), /* @__PURE__ */ jsx(DocTable, {
485
+ columns: ["Token", "Stack"],
486
+ rows: [
487
+ [/* @__PURE__ */ jsx("code", { children: "--o-font-display" }), /* @__PURE__ */ jsx("code", { children: "'Sora Variable', 'Sora', var(--o-font-sans)" })],
488
+ [/* @__PURE__ */ jsx("code", { children: "--o-font-sans" }), /* @__PURE__ */ jsx("code", { children: "'Geist Variable', 'Geist Sans', 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif" })],
489
+ [/* @__PURE__ */ jsx("code", { children: "--o-font-mono" }), /* @__PURE__ */ jsx("code", { children: "'Geist Mono Variable', 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace" })]
490
+ ]
491
+ })]
492
+ }),
493
+ /* @__PURE__ */ jsx(Section$1, {
494
+ id: "ramp",
495
+ title: "The ramp in product",
496
+ description: /* @__PURE__ */ jsx("p", { children: "Twelve roles, each set exactly as the components set them. Sora carries the figures and headlines; from Title down, everything is Geist." }),
497
+ children: /* @__PURE__ */ jsx(Example, {
498
+ align: "fill",
499
+ children: /* @__PURE__ */ jsx("ol", {
500
+ className: "typography-ramp",
501
+ children: RAMP.map((row) => /* @__PURE__ */ jsxs("li", {
502
+ className: "typography-ramp__row",
503
+ children: [/* @__PURE__ */ jsxs("div", {
504
+ className: "typography-ramp__meta",
505
+ children: [
506
+ /* @__PURE__ */ jsx("span", {
507
+ className: "typography-ramp__name",
508
+ children: row.name
509
+ }),
510
+ /* @__PURE__ */ jsx("span", {
511
+ className: "typography-ramp__spec",
512
+ children: row.spec
513
+ }),
514
+ /* @__PURE__ */ jsx("span", {
515
+ className: "typography-ramp__use",
516
+ children: row.use
517
+ })
518
+ ]
519
+ }), /* @__PURE__ */ jsx("span", {
520
+ className: "typography-ramp__sample",
521
+ style: row.style,
522
+ children: row.sample
523
+ })]
524
+ }, row.name))
525
+ })
526
+ })
527
+ }),
528
+ /* @__PURE__ */ jsxs(Section$1, {
529
+ id: "tokens",
530
+ title: "Type tokens",
531
+ description: /* @__PURE__ */ jsxs("p", { children: [
532
+ "A fixed rem scale for product UI, with a ratio of about 1.14. Components use ",
533
+ /* @__PURE__ */ jsx("code", { children: "2xs" }),
534
+ " to",
535
+ " ",
536
+ /* @__PURE__ */ jsx("code", { children: "lg" }),
537
+ "; the larger steps are for page titles, headlines and figures."
538
+ ] }),
539
+ children: [/* @__PURE__ */ jsx("div", {
540
+ className: "typography-sizes",
541
+ role: "table",
542
+ "aria-label": "Text size tokens",
543
+ children: SIZES.map(([token, rem, px, where]) => /* @__PURE__ */ jsxs("div", {
544
+ className: "typography-size",
545
+ role: "row",
546
+ children: [
547
+ /* @__PURE__ */ jsxs("span", {
548
+ className: "typography-size__token",
549
+ role: "rowheader",
550
+ children: [/* @__PURE__ */ jsxs("code", { children: ["--o-text-", token] }), /* @__PURE__ */ jsxs("span", { children: [
551
+ px,
552
+ "px · ",
553
+ rem
554
+ ] })]
555
+ }),
556
+ /* @__PURE__ */ jsx("span", {
557
+ className: "typography-size__sample",
558
+ role: "cell",
559
+ style: { fontSize: `var(--o-text-${token})` },
560
+ children: "Arden chair"
561
+ }),
562
+ /* @__PURE__ */ jsx("span", {
563
+ className: "typography-size__where",
564
+ role: "cell",
565
+ children: where
566
+ })
567
+ ]
568
+ }, token))
569
+ }), /* @__PURE__ */ jsx(SubSection, {
570
+ title: "Leading and tracking",
571
+ children: /* @__PURE__ */ jsx(DocTable, {
572
+ columns: [
573
+ "Token",
574
+ "Value",
575
+ "Used for"
576
+ ],
577
+ rows: [
578
+ [
579
+ /* @__PURE__ */ jsx("code", { children: "--o-leading-tight" }),
580
+ "1.15",
581
+ "Large display lines. No component uses it yet."
582
+ ],
583
+ [
584
+ /* @__PURE__ */ jsx("code", { children: "--o-leading-snug" }),
585
+ "1.3",
586
+ "Titles, labels, dialog titles, tooltips."
587
+ ],
588
+ [
589
+ /* @__PURE__ */ jsx("code", { children: "--o-leading-normal" }),
590
+ "1.45",
591
+ "Body text, menus, dialogs, cards. The .o-root default."
592
+ ],
593
+ [
594
+ /* @__PURE__ */ jsx("code", { children: "--o-tracking-display" }),
595
+ "-0.025em",
596
+ "Sora figures and headlines (and the .o-display class)."
597
+ ],
598
+ [
599
+ /* @__PURE__ */ jsx("code", { children: "--o-tracking-tight" }),
600
+ "-0.012em",
601
+ "Titles in Geist: card and empty-state titles."
602
+ ]
603
+ ]
604
+ })
605
+ })]
606
+ }),
607
+ /* @__PURE__ */ jsxs(Section$1, {
608
+ id: "numerals",
609
+ title: "Tabular numerals",
610
+ description: /* @__PURE__ */ jsx("p", { children: "The Till Rule: every numeral is tabular, everywhere. Figures, badges, deltas, fields, times, amounts, shortcuts. Columns of money line up, and a total that changes never shuffles sideways." }),
611
+ children: [/* @__PURE__ */ jsx(Example, {
612
+ align: "fill",
613
+ code: `
614
+ <span className="o-num">£1,111.11</span>
615
+
616
+ /* or in CSS */
617
+ .amount {
618
+ font-variant-numeric: tabular-nums;
619
+ }`,
620
+ children: /* @__PURE__ */ jsxs("div", {
621
+ className: "typography-numerals",
622
+ children: [/* @__PURE__ */ jsxs("figure", {
623
+ className: "typography-numerals__col",
624
+ "data-kind": "proportional",
625
+ children: [/* @__PURE__ */ jsx("figcaption", { children: "Proportional (never)" }), AMOUNTS.map((a) => /* @__PURE__ */ jsx("span", { children: a }, a))]
626
+ }), /* @__PURE__ */ jsxs("figure", {
627
+ className: "typography-numerals__col",
628
+ "data-kind": "tabular",
629
+ children: [/* @__PURE__ */ jsx("figcaption", { children: "Tabular (always)" }), AMOUNTS.map((a) => /* @__PURE__ */ jsx("span", { children: a }, a))]
630
+ })]
631
+ })
632
+ }), /* @__PURE__ */ jsx(SubSection, {
633
+ title: "Figures that change",
634
+ description: /* @__PURE__ */ jsx("p", { children: "Money and counts that lead a view are set in Sora 600 and roll into place like a till display. A fall is written with a true minus sign. Take a sale to see it." }),
635
+ children: /* @__PURE__ */ jsx(Example, {
636
+ code: `
637
+ <RollingNumber value={takings} format={{ style: 'currency', currency: 'GBP' }} live />
638
+ <Delta value={12.4} label="vs this time yesterday" />`,
639
+ children: /* @__PURE__ */ jsx(TillDemo, {})
640
+ })
641
+ })]
642
+ }),
643
+ /* @__PURE__ */ jsxs(Section$1, {
644
+ id: "money",
645
+ title: "Writing money",
646
+ description: /* @__PURE__ */ jsx("p", { children: "Money is written one way on every page. Pounds, euros and dollars take their bare sign (£, € and $, where British English would write US$), and every other currency its full one, so a Canadian dollar reads CA$, never a $ that looks American. A fall and a deduction take a true minus (U+2212), never a hyphen, and an amount that rounds to nothing is written as zero with no sign. The language decides the separators and where the sign goes; British English is the default. Switch the language and the currency." }),
647
+ children: [/* @__PURE__ */ jsx(Example, {
648
+ align: "fill",
649
+ code: `
650
+ import { formatDeduction, formatMoney, formatMoneyTick, formatRate } from '@orbitcommerce/constellation'
651
+
652
+ formatMoney(1249.5, 'GBP') // £1,249.50
653
+ formatMoney(-80, 'GBP') // −£80.00
654
+ formatMoney(1249.5, 'EUR', 'de-DE') // 1.249,50 €
655
+ formatDeduction(124.95, 'GBP') // −£124.95, whichever sign it came with
656
+ formatMoneyTick(1200000, 'GBP') // £1.2m, for a chart's axis
657
+ formatRate(3.3) // 3.3%: the value is already a percent`,
658
+ children: /* @__PURE__ */ jsx(MoneyDemo, {})
659
+ }), /* @__PURE__ */ jsx(DocTable, {
660
+ columns: ["Function", "Writes"],
661
+ rows: [
662
+ [/* @__PURE__ */ jsx("code", { children: "formatMoney" }), /* @__PURE__ */ jsxs(Fragment$1, { children: [
663
+ "An amount, ",
664
+ figure("£1,249.50"),
665
+ ", in the currency (GBP by default) and the language. options.decimals fixes the places; otherwise the currency’s own (none for yen)."
666
+ ] })],
667
+ [/* @__PURE__ */ jsx("code", { children: "formatDeduction" }), /* @__PURE__ */ jsxs(Fragment$1, { children: [
668
+ "Money taken off, ",
669
+ figure("−£124.95"),
670
+ ": a discount, a refund line, a return. Always with a minus."
671
+ ] })],
672
+ [/* @__PURE__ */ jsx("code", { children: "formatMoneyTick" }), /* @__PURE__ */ jsxs(Fragment$1, { children: [
673
+ "A gridline, short: ",
674
+ figure("£250k"),
675
+ ". English the British way, with k, m and bn."
676
+ ] })],
677
+ [/* @__PURE__ */ jsx("code", { children: "formatRate" }), /* @__PURE__ */ jsxs(Fragment$1, { children: [
678
+ "A rate that is already a percent, ",
679
+ figure("3.3%"),
680
+ ", to one place by default."
681
+ ] })],
682
+ [/* @__PURE__ */ jsx("code", { children: "currencyDisplayFor" }), "The sign rule, for an Intl format of your own."],
683
+ [/* @__PURE__ */ jsx("code", { children: "MINUS_SIGN" }), "The true minus, for a figure you write yourself."]
684
+ ]
685
+ })]
686
+ }),
687
+ /* @__PURE__ */ jsx(Section$1, {
688
+ id: "weights",
689
+ title: "Weight in half-steps",
690
+ description: /* @__PURE__ */ jsxs("p", { children: [
691
+ "Emphasis is tuned, not shouted: Geist moves in steps of 50, so a label can sit a half-step above its value. Synthesised bold is switched off inside ",
692
+ /* @__PURE__ */ jsx("code", { children: ".o-root" }),
693
+ ", so a weight is never faked."
694
+ ] }),
695
+ children: /* @__PURE__ */ jsx("div", {
696
+ className: "typography-weights",
697
+ children: WEIGHTS.map(([weight, where]) => /* @__PURE__ */ jsxs("div", {
698
+ className: "typography-weight",
699
+ children: [/* @__PURE__ */ jsx("span", {
700
+ className: "typography-weight__sample",
701
+ style: { fontWeight: weight },
702
+ children: "Arden ergonomic chair"
703
+ }), /* @__PURE__ */ jsxs("span", {
704
+ className: "typography-weight__meta",
705
+ children: [
706
+ /* @__PURE__ */ jsx("strong", {
707
+ className: "o-num",
708
+ children: weight
709
+ }),
710
+ " ",
711
+ where
712
+ ]
713
+ })]
714
+ }, weight))
715
+ })
716
+ }),
717
+ /* @__PURE__ */ jsx(Section$1, {
718
+ id: "both-themes",
719
+ title: "In both themes",
720
+ description: /* @__PURE__ */ jsx("p", { children: "The same ramp, light and dark. Words stay ink in both." }),
721
+ children: /* @__PURE__ */ jsx(ThemePair, {
722
+ align: "start",
723
+ children: /* @__PURE__ */ jsxs("div", {
724
+ className: "typography-pair",
725
+ children: [
726
+ /* @__PURE__ */ jsx("span", {
727
+ className: "typography-pair__greeting",
728
+ children: "Good afternoon, Priya"
729
+ }),
730
+ /* @__PURE__ */ jsx("span", {
731
+ className: "typography-pair__label",
732
+ children: "Takings today"
733
+ }),
734
+ /* @__PURE__ */ jsx("span", {
735
+ className: "typography-pair__figure",
736
+ children: "£3,214.80"
737
+ }),
738
+ /* @__PURE__ */ jsx(Delta, {
739
+ value: 12.4,
740
+ size: "sm",
741
+ label: "vs this time yesterday"
742
+ }),
743
+ /* @__PURE__ */ jsx("span", {
744
+ className: "typography-pair__body",
745
+ children: "Paid and waiting to be sent. The oldest has waited 1 day."
746
+ })
747
+ ]
748
+ })
749
+ })
750
+ }),
751
+ /* @__PURE__ */ jsxs(Section$1, {
752
+ id: "guidelines",
753
+ title: "Guidelines",
754
+ children: [
755
+ /* @__PURE__ */ jsx(DoDont, {
756
+ do: {
757
+ children: /* @__PURE__ */ jsxs("div", {
758
+ className: "typography-dodont",
759
+ children: [/* @__PURE__ */ jsx("span", {
760
+ className: "typography-pair__label",
761
+ children: "Orders"
762
+ }), /* @__PURE__ */ jsx("span", {
763
+ className: "typography-pair__figure",
764
+ "data-size": "md",
765
+ children: "1,284"
766
+ })]
767
+ }),
768
+ caption: "Sora for the figure, Geist for its label."
769
+ },
770
+ dont: {
771
+ children: /* @__PURE__ */ jsxs("div", {
772
+ className: "typography-dodont",
773
+ "data-wrong": "",
774
+ children: [
775
+ /* @__PURE__ */ jsx("span", {
776
+ className: "typography-dodont__row",
777
+ children: "Order #1043 · Arden ergonomic chair"
778
+ }),
779
+ /* @__PURE__ */ jsx("span", {
780
+ className: "typography-dodont__row",
781
+ children: "Order #1044 · Harbour standing desk"
782
+ }),
783
+ /* @__PURE__ */ jsx(Button, {
784
+ size: "sm",
785
+ children: "View order"
786
+ })
787
+ ]
788
+ }),
789
+ caption: "Sora in rows and controls. The Sora Budget Rule keeps it to figures and headlines."
790
+ }
791
+ }),
792
+ /* @__PURE__ */ jsx(DoDont, {
793
+ do: {
794
+ children: /* @__PURE__ */ jsx("span", {
795
+ className: "typography-heading",
796
+ children: "Orders to fulfil"
797
+ }),
798
+ caption: "Section titles in sentence case, 12 to 13px, in Quiet Slate."
799
+ },
800
+ dont: {
801
+ children: /* @__PURE__ */ jsx("span", {
802
+ className: "typography-heading",
803
+ "data-wrong": "",
804
+ children: "Orders to fulfil"
805
+ }),
806
+ caption: "All caps and wide tracking shout, and read slower."
807
+ }
808
+ }),
809
+ /* @__PURE__ */ jsx(Guidelines, { items: [
810
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("strong", { children: "The Sora Budget Rule." }), " Sora is for figures, greetings, page titles and section headlines. Controls, labels, tables and body copy are always Geist."] }),
811
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("strong", { children: "The Till Rule." }), " Every numeral is tabular. Figures inside lists stay Geist at 550 to 600."] }),
812
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("strong", { children: "The Sentence Case Rule." }), " No all-caps, no tracked-out labels, no small labels stacked above headings."] }),
813
+ "Geist Mono only for code, IDs and SKUs.",
814
+ "Empty-state lines stop at 44 characters; body text in docs and settings at about 68."
815
+ ] })
816
+ ]
817
+ }),
818
+ /* @__PURE__ */ jsxs(Section$1, {
819
+ id: "in-code",
820
+ title: "In code",
821
+ description: /* @__PURE__ */ jsxs("p", { children: [
822
+ "Read the tokens, or use the two utility classes:",
823
+ " ",
824
+ /* @__PURE__ */ jsx("span", {
825
+ className: "typography-nowrap",
826
+ children: /* @__PURE__ */ jsx("code", { children: ".o-display" })
827
+ }),
828
+ " ",
829
+ "for Sora with display tracking, and",
830
+ " ",
831
+ /* @__PURE__ */ jsx("span", {
832
+ className: "typography-nowrap",
833
+ children: /* @__PURE__ */ jsx("code", { children: ".o-num" })
834
+ }),
835
+ " ",
836
+ "for tabular numerals."
837
+ ] }),
838
+ children: [
839
+ /* @__PURE__ */ jsx(CodeBlock$1, {
840
+ lang: "css",
841
+ code: `
842
+ .takings__value {
843
+ font-family: var(--o-font-display);
844
+ font-size: 1.625rem;
845
+ font-weight: 600;
846
+ line-height: 1.1;
847
+ letter-spacing: var(--o-tracking-display);
848
+ font-variant-numeric: tabular-nums;
849
+ }
850
+
851
+ .takings__label {
852
+ font-size: var(--o-text-sm);
853
+ font-weight: 500;
854
+ color: var(--o-fg-3);
855
+ }`
856
+ }),
857
+ /* @__PURE__ */ jsx(CodeBlock$1, {
858
+ lang: "tsx",
859
+ code: `<span className="o-display o-num">£3,214.80</span>`
860
+ }),
861
+ /* @__PURE__ */ jsxs(Note, {
862
+ title: "Fonts",
863
+ children: [
864
+ /* @__PURE__ */ jsx("code", { children: "fonts.css" }),
865
+ " loads Geist, Sora and Geist Mono (Fontsource, SIL Open Font License). A host that already ships Geist can import ",
866
+ /* @__PURE__ */ jsx("code", { children: "@orbitcommerce/constellation/fonts/sora.css" }),
867
+ " on its own."
868
+ ]
869
+ })
870
+ ]
871
+ })
872
+ ]
873
+ });
874
+ }
875
+ //#endregion
876
+ export { Page };