@orbitcommerce/constellation-docs 1.0.0 → 1.2.1

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 (235) hide show
  1. package/dist/docs.css +14764 -2237
  2. package/dist/index.js +2 -2
  3. package/dist/pages/{Playground-CNbBbErC.js → Playground-Mk1yIWXb.js} +2 -2
  4. package/dist/pages/_address-data-L9BR499w.js +161 -0
  5. package/dist/pages/_builder-demo-C0eJUmPU.js +282 -0
  6. package/dist/pages/_card-art-0be5ncyV.js +18 -0
  7. package/dist/pages/_conversation-samples-Bq7cn-4d.js +70 -0
  8. package/dist/pages/{_figures-data-BDmScEny.js → _figures-data-DaDvB7Nm.js} +5 -5
  9. package/dist/pages/_kpi-examples-DeGCBB9T.js +208 -0
  10. package/dist/pages/{_overlays-specimens-Dpn6oiyH.js → _overlays-specimens-bawR331Z.js} +33 -23
  11. package/dist/pages/_preview-specimens-DKQC9HAo.js +153 -0
  12. package/dist/pages/accordion-Sg0TUqxB.js +1036 -0
  13. package/dist/pages/address-autocomplete-DP0PUOlK.js +360 -0
  14. package/dist/pages/address-block-BvxQWBTy.js +403 -0
  15. package/dist/pages/address-fields-CwSqro3W.js +277 -0
  16. package/dist/pages/ai-highlight-D3x2vD83.js +642 -0
  17. package/dist/pages/{alert-BD4e6QTh.js → alert-D3i7xZTU.js} +195 -50
  18. package/dist/pages/anchored-overlay-BV0OCu2Q.js +788 -0
  19. package/dist/pages/{app-shell-KbA-nRqZ.js → app-shell-D4hdlHps.js} +133 -54
  20. package/dist/pages/{area-chart-B91dLcGo.js → area-chart-BEWFwiB2.js} +183 -27
  21. package/dist/pages/{avatar-DPPHXJAu.js → avatar-BFEqQViw.js} +194 -12
  22. package/dist/pages/avatar-upload-BDCzJfyN.js +484 -0
  23. package/dist/pages/{badge-C9JR0thI.js → badge-0-PyMrih.js} +441 -135
  24. package/dist/pages/bar-chart-DkLogYlt.js +1060 -0
  25. package/dist/pages/bar-fold-B-3XeIDZ.js +360 -0
  26. package/dist/pages/board-card-D2tZY_mU.js +415 -0
  27. package/dist/pages/brand-mark-BqiLvFSR.js +417 -0
  28. package/dist/pages/{button-D3V912P4.js → button-DAyfssDY.js} +276 -79
  29. package/dist/pages/{calendar-DSDZ9nRH.js → calendar-Ds7KsgSI.js} +69 -17
  30. package/dist/pages/canvas-stage-1KiPspkX.js +472 -0
  31. package/dist/pages/card-CXZ3V1d4.js +1612 -0
  32. package/dist/pages/caret-suggestions-oHI6QvqW.js +526 -0
  33. package/dist/pages/chart-legend-B20AbakD.js +724 -0
  34. package/dist/pages/chat-composer-CwzUJYIa.js +437 -0
  35. package/dist/pages/checkbox-BG9Zkb6j.js +1581 -0
  36. package/dist/pages/checklist-card-DEyykVFS.js +783 -0
  37. package/dist/pages/chip-Ck-o3Ui6.js +839 -0
  38. package/dist/pages/chip-list-k1LxXuCi.js +414 -0
  39. package/dist/pages/clamp-text-n-iE8RDR.js +203 -0
  40. package/dist/pages/coachmark-Be2ghobT.js +366 -0
  41. package/dist/pages/code-block-Dv_Y5GYq.js +622 -0
  42. package/dist/pages/collab-field-CfqqK7d2.js +696 -0
  43. package/dist/pages/color-field-CZpfcA-A.js +1127 -0
  44. package/dist/pages/{colour-BwuO8xAv.js → colour-q2ntvI0w.js} +496 -20
  45. package/dist/pages/column-mapper-TsTG39cl.js +502 -0
  46. package/dist/pages/combobox-DvK2j5tI.js +1334 -0
  47. package/dist/pages/{command-palette-xAD7fOg6.js → command-palette-CJ7uBA04.js} +201 -58
  48. package/dist/pages/comment-box-CDSGYhr5.js +346 -0
  49. package/dist/pages/composer-D4B0NgpA.js +689 -0
  50. package/dist/pages/condition-builder-BZy2ZGXe.js +715 -0
  51. package/dist/pages/conflict-chooser-C--_9UIS.js +210 -0
  52. package/dist/pages/context-menu-F9DV30ia.js +487 -0
  53. package/dist/pages/copy-button-Cn7WiKRF.js +568 -0
  54. package/dist/pages/copy-field-D3Xt3Jq6.js +511 -0
  55. package/dist/pages/danger-zone-Db_UUeiP.js +564 -0
  56. package/dist/pages/date-input-GOW067EB.js +956 -0
  57. package/dist/pages/{date-picker-BYSa816m.js → date-picker-GdBciR99.js} +186 -38
  58. package/dist/pages/date-time-BLKCXtVZ.js +678 -0
  59. package/dist/pages/{delta-CtAo0eIM.js → delta-CNAGv8JY.js} +266 -61
  60. package/dist/pages/description-list-BPeXn1eW.js +1268 -0
  61. package/dist/pages/device-switcher-BCaN99c1.js +554 -0
  62. package/dist/pages/dialog-CRpkRC98.js +3164 -0
  63. package/dist/pages/{docs-BNOb7AqR.js → docs-lM2UBSir.js} +20 -15
  64. package/dist/pages/doodle-nzkqi2UI.js +201 -0
  65. package/dist/pages/drag-ghost-B6kpzC3O.js +426 -0
  66. package/dist/pages/drill-menu-cskH5mol.js +490 -0
  67. package/dist/pages/dropzone-DOY_Rhw0.js +1069 -0
  68. package/dist/pages/element-toolbar-DZIhXlCJ.js +498 -0
  69. package/dist/pages/emoji-picker-CqaWaffD.js +235 -0
  70. package/dist/pages/empty-state-4U2txFpI.js +1113 -0
  71. package/dist/pages/facet-filters-McbBeY9e.js +353 -0
  72. package/dist/pages/figure-D-HF5vCj.js +563 -0
  73. package/dist/pages/figure-strip-hg7txTc3.js +1381 -0
  74. package/dist/pages/{figure-tabs-CoPFzzKz.js → figure-tabs-QOeQMY6N.js} +153 -35
  75. package/dist/pages/file-chip-DMDjtlqQ.js +738 -0
  76. package/dist/pages/filter-pill-DzqNOsD4.js +1295 -0
  77. package/dist/pages/font-picker-Bqhu0QMh.js +416 -0
  78. package/dist/pages/form-grid-BfWCVlie.js +692 -0
  79. package/dist/pages/gallery-BBk2EOri.js +453 -0
  80. package/dist/pages/gif-picker-CnoDTCaL.js +270 -0
  81. package/dist/pages/gradient-editor-Bqxp7Fxj.js +378 -0
  82. package/dist/pages/grouped-checklist-gNZ0tBKU.js +477 -0
  83. package/dist/pages/heatmap-BohgIcNk.js +507 -0
  84. package/dist/pages/highlight-text-BfxzfmvS.js +287 -0
  85. package/dist/pages/{home-dashboard-CFQwDtC9.js → home-dashboard-CxPmvduE.js} +21 -18
  86. package/dist/pages/hosted-embed-Jef3aIMP.js +163 -0
  87. package/dist/pages/hosted-field-BLh-53AE.js +208 -0
  88. package/dist/pages/hosted-field-DEpI4lVS.js +514 -0
  89. package/dist/pages/{icon-button-C9eSVPPW.js → icon-button-Bu4Gj5sy.js} +370 -31
  90. package/dist/pages/icon-picker-DEyoMUTh.js +291 -0
  91. package/dist/pages/icon-tile-DcgxyXPF.js +592 -0
  92. package/dist/pages/{icons-sxkTs5Ob.js → icons-CJ9Aar3d.js} +315 -52
  93. package/dist/pages/image-cropper-NyougqLH.js +466 -0
  94. package/dist/pages/image-field-7knBv4mJ.js +567 -0
  95. package/dist/pages/import-result-CmTtGXW_.js +486 -0
  96. package/dist/pages/inline-confirm-CEcI5Lxo.js +327 -0
  97. package/dist/pages/inline-edit-Ba39SzhM.js +1125 -0
  98. package/dist/pages/input-CzLCzfyx.js +2372 -0
  99. package/dist/pages/{installation-DpsX8G_n.js → installation-DRUWNVHP.js} +112 -29
  100. package/dist/pages/job-indicator-DOXWbFdl.js +755 -0
  101. package/dist/pages/kanban-Dy9sPAI0.js +740 -0
  102. package/dist/pages/{kbd-cNfDoikz.js → kbd-UNj4zqxn.js} +15 -14
  103. package/dist/pages/layout-primitives-CPRaZeyt.js +483 -0
  104. package/dist/pages/line-chart-CntWxeMF.js +1117 -0
  105. package/dist/pages/link-CXqvAg9z.js +689 -0
  106. package/dist/pages/link-picker-BMFGCC67.js +478 -0
  107. package/dist/pages/link-row-x8yaUuWc.js +595 -0
  108. package/dist/pages/{live-globe-ClvLn9Lb.js → live-globe-95ROMhGQ.js} +191 -47
  109. package/dist/pages/loading-overlay-BeGuXM9G.js +456 -0
  110. package/dist/pages/loading-state-BNbCo51C.js +556 -0
  111. package/dist/pages/log-viewer-BQz8I_a2.js +503 -0
  112. package/dist/pages/{logo-BfGF1Pq9.js → logo-D3a3QGKJ.js} +13 -13
  113. package/dist/pages/lottie_light-CxEH8eiR.js +9116 -0
  114. package/dist/pages/markdown-Ied72vMT.js +237 -0
  115. package/dist/pages/markdown-field-BfnIEKZH.js +193 -0
  116. package/dist/pages/media-banner-DkStCia0.js +233 -0
  117. package/dist/pages/{menu-by2sgQ09.js → menu-NrLYKqKp.js} +623 -109
  118. package/dist/pages/message-thread-Bo4zbxqu.js +731 -0
  119. package/dist/pages/meta-line-D5p2TycR.js +371 -0
  120. package/dist/pages/model-viewer-BfokvHoc.js +60288 -0
  121. package/dist/pages/model-viewer-C8PFO8wk.js +577 -0
  122. package/dist/pages/month-calendar-T1vw9Rup.js +457 -0
  123. package/dist/pages/{motion-BvTGc2Dk.js → motion-CrXtiBvA.js} +20 -10
  124. package/dist/pages/number-input-CuyMZg18.js +968 -0
  125. package/dist/pages/orbit-loader-DeVBtkFE.js +219 -0
  126. package/dist/pages/{orbit-spinner-Dil1Z3Oy.js → orbit-spinner-Dxv5qAhr.js} +30 -14
  127. package/dist/pages/otp-input-CVRoX1mw.js +591 -0
  128. package/dist/pages/{overview-BPEbZQ6g.js → overview-BSfEqHY8.js} +4 -4
  129. package/dist/pages/package-dimensions-DFCyZj_T.js +192 -0
  130. package/dist/pages/{pagination-BBUnGvv5.js → pagination-C1EgVtW4.js} +74 -29
  131. package/dist/pages/palette-tile-X9ZXu2Z0.js +414 -0
  132. package/dist/pages/password-field-DHEQKyUC.js +912 -0
  133. package/dist/pages/person-cell-BmjbADBz.js +564 -0
  134. package/dist/pages/phone-input-B3G7Qpb2.js +747 -0
  135. package/dist/pages/plan-card-DRaA6RuB.js +621 -0
  136. package/dist/pages/plan-card-DtloWvMh.js +258 -0
  137. package/dist/pages/plan-comparison-BVIGTtbd.js +559 -0
  138. package/dist/pages/plan-grid-BCPvtP8J.js +251 -0
  139. package/dist/pages/point-list-BbPmZjsm.js +222 -0
  140. package/dist/pages/{popover-Db1gLDpb.js → popover-C3Oar9D5.js} +76 -14
  141. package/dist/pages/presence-avatars-CRZIk8n9.js +328 -0
  142. package/dist/pages/preview-frame-Bcwk0y_Q.js +1631 -0
  143. package/dist/pages/price-CRBLoa9h.js +604 -0
  144. package/dist/pages/{principles-CeAIOIdt.js → principles-pnDyfHpK.js} +9 -9
  145. package/dist/pages/print-page-BkLv6bW8.js +513 -0
  146. package/dist/pages/profile-hero-CC9dUzuN.js +498 -0
  147. package/dist/pages/progress-CP_awmo4.js +904 -0
  148. package/dist/pages/progress-ring-JuOAwk2T.js +576 -0
  149. package/dist/pages/{radio-group-CkdBWWfG.js → radio-group-CbiibLwn.js} +581 -18
  150. package/dist/pages/radius-control-B2kRA2Ch.js +441 -0
  151. package/dist/pages/rating-CweKN2SX.js +471 -0
  152. package/dist/pages/record-layout-DUP_X0RL.js +719 -0
  153. package/dist/pages/record-pager-y9D7JFgb.js +278 -0
  154. package/dist/pages/registry-CNR7zpf7.js +594 -0
  155. package/dist/pages/{release-Dvo684UJ.js → release-DYBCY7jm.js} +4 -1
  156. package/dist/pages/repeater-BRZYKRQa.js +1351 -0
  157. package/dist/pages/reply-feedback-BDnHprla.js +192 -0
  158. package/dist/pages/reveal-BygENBbL.js +460 -0
  159. package/dist/pages/rich-text-DOFQZEpT.js +156 -0
  160. package/dist/pages/rich-text-editor-BhIM20JI.js +1265 -0
  161. package/dist/pages/rolldown-runtime-CbKu08Hx.js +25 -0
  162. package/dist/pages/{rolling-number-qmvH84Mq.js → rolling-number-GR3Cyfpz.js} +12 -12
  163. package/dist/pages/row-list-Dl6CYhC-.js +1565 -0
  164. package/dist/pages/rule-list-DTCmIMpT.js +648 -0
  165. package/dist/pages/save-status-B5KkyMZP.js +378 -0
  166. package/dist/pages/schedule-YycI95O1.js +243 -0
  167. package/dist/pages/scroll-area-B2sGm23Q.js +423 -0
  168. package/dist/pages/{search-field-BN7MWGQ4.js → search-field-D1uG7R6A.js} +15 -15
  169. package/dist/pages/search-menu-DMuXyUUW.js +580 -0
  170. package/dist/pages/secret-field-Dj9x3LL8.js +337 -0
  171. package/dist/pages/section-rail-BtTCETS5.js +637 -0
  172. package/dist/pages/section-v2Pubup9.js +639 -0
  173. package/dist/pages/{segmented-control-CTbIpRBW.js → segmented-control-D-FB1K1T.js} +450 -37
  174. package/dist/pages/{select-DguELoRR.js → select-DZ43NpOm.js} +22 -17
  175. package/dist/pages/selection-chrome-Czcs6RN6.js +437 -0
  176. package/dist/pages/{separator-CPZub9pv.js → separator-CFwqRvfO.js} +99 -22
  177. package/dist/pages/serp-preview-BGwORjmo.js +346 -0
  178. package/dist/pages/setting-row-Bt-dZV8H.js +913 -0
  179. package/dist/pages/{shape-DKvA0YKr.js → shape-DzniHAVT.js} +10 -10
  180. package/dist/pages/share-list-D4wgBxKN.js +926 -0
  181. package/dist/pages/side-panel-CCtkrZjs.js +811 -0
  182. package/dist/pages/site-preview-Dj1hM2Yo.js +353 -0
  183. package/dist/pages/skeleton-C1F5HkAu.js +1325 -0
  184. package/dist/pages/skip-link-BxznhSkz.js +252 -0
  185. package/dist/pages/slider-CAoPURKD.js +774 -0
  186. package/dist/pages/sortable-card-Sr44uCpI.js +424 -0
  187. package/dist/pages/sortable-list-DUAleYE1.js +1298 -0
  188. package/dist/pages/sortable-tree-BLzK-hTE.js +737 -0
  189. package/dist/pages/spacing-box-CtuvzxQu.js +550 -0
  190. package/dist/pages/{sparkline-DMMYGbHn.js → sparkline-D3aavCly.js} +301 -22
  191. package/dist/pages/split-bar-DYgZnFID.js +414 -0
  192. package/dist/pages/split-button-Be08-VI-.js +335 -0
  193. package/dist/pages/split-pane-lSNZgTKt.js +523 -0
  194. package/dist/pages/status-badge-DOdNhmzn.js +1074 -0
  195. package/dist/pages/status-checklist-CWkjCZIC.js +1152 -0
  196. package/dist/pages/status-dot-D99gAGsV.js +567 -0
  197. package/dist/pages/stepper-CxKTbEA-.js +1093 -0
  198. package/dist/pages/success-mark-CqFTOBEu.js +142 -0
  199. package/dist/pages/swatch-H_kNvHuC.js +565 -0
  200. package/dist/pages/{switch-B-Qe4kcT.js → switch-C93K6j9h.js} +151 -51
  201. package/dist/pages/table-mq_pNXza.js +3232 -0
  202. package/dist/pages/{tabs-B4M-usCV.js → tabs-Cf4MZ8Fq.js} +257 -21
  203. package/dist/pages/tag-input-BjZWKKRJ.js +1307 -0
  204. package/dist/pages/task-card-Dv0sR1-w.js +295 -0
  205. package/dist/pages/{textarea-fTuUZRQb.js → textarea-CCM-SnGN.js} +271 -15
  206. package/dist/pages/thumbnail-DwFJL_k1.js +1147 -0
  207. package/dist/pages/time-input-CA9-uZAa.js +442 -0
  208. package/dist/pages/time-zone-select-CEtMXVYO.js +296 -0
  209. package/dist/pages/timeline-BsMUTlpR.js +1798 -0
  210. package/dist/pages/{toast-CKP03zjy.js → toast-zXLRiMRT.js} +240 -25
  211. package/dist/pages/tool-rail-B1AbTMCP.js +355 -0
  212. package/dist/pages/toolbar-B9l_fHKy.js +754 -0
  213. package/dist/pages/{tooltip-CBYil3kt.js → tooltip-LHtCUkF-.js} +162 -33
  214. package/dist/pages/translation-field-CTRXiF2N.js +251 -0
  215. package/dist/pages/tree-checklist-CJj3OcLg.js +451 -0
  216. package/dist/pages/tree-select-DU1qXHy_.js +492 -0
  217. package/dist/pages/tree-view-g_RjLtAb.js +739 -0
  218. package/dist/pages/{typography-PCbg8Bhg.js → typography-BSijtiRl.js} +153 -12
  219. package/dist/pages/unit-input-Dml4fjmK.js +659 -0
  220. package/dist/pages/upload-rules-yozEzSah.js +419 -0
  221. package/dist/pages/url-upload-input-SSnMgfpA.js +307 -0
  222. package/dist/pages/value-change-CnubDKyO.js +489 -0
  223. package/dist/pages/weekly-hours-i2EpsmTx.js +287 -0
  224. package/dist/pages/widget-preview-CUJMyZ_k.js +625 -0
  225. package/dist/pages/working-status-CENemSsw.js +389 -0
  226. package/manifest.json +10989 -1108
  227. package/package.json +3 -3
  228. package/dist/pages/card-DUggbis3.js +0 -659
  229. package/dist/pages/checkbox-DwimQaK3.js +0 -365
  230. package/dist/pages/dialog-BRAf4LMh.js +0 -1451
  231. package/dist/pages/empty-state-C-mLrXW2.js +0 -417
  232. package/dist/pages/input-KF9Gkawf.js +0 -1093
  233. package/dist/pages/registry-CroHzK9I.js +0 -244
  234. package/dist/pages/skeleton-DLuBhP46.js +0 -561
  235. package/dist/pages/table-AMoODng4.js +0 -607
@@ -0,0 +1,1268 @@
1
+ "use client";
2
+ import { t as DocLink } from "./host-B6znjEgQ.js";
3
+ import { a as DocTable, d as Section$1, i as DocPage, l as Note, m as ThemePair, o as Example, p as SubSection, r as DoDont, s as Guidelines, u as PropsTable } from "./docs-lM2UBSir.js";
4
+ import { useState } from "react";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
+ import { Card, Delta, DescriptionList, SegmentedControl, Skeleton, StatusBadge } from "@orbitcommerce/constellation";
7
+ //#region src/pages/components/description-list.tsx
8
+ /** One order, as an invented furniture shop would see it. */
9
+ var ORDER_FACTS = [
10
+ {
11
+ key: "number",
12
+ label: "Order number",
13
+ value: "DEMO-1037"
14
+ },
15
+ {
16
+ key: "placed",
17
+ label: "Placed",
18
+ value: "6 Oct 2026, 04:32"
19
+ },
20
+ {
21
+ key: "channel",
22
+ label: "Channel",
23
+ value: "Online store"
24
+ },
25
+ {
26
+ key: "payment",
27
+ label: "Payment",
28
+ value: /* @__PURE__ */ jsx(StatusBadge, {
29
+ domain: "payment",
30
+ status: "paid"
31
+ })
32
+ },
33
+ {
34
+ key: "delivery",
35
+ label: "Delivery",
36
+ value: "Royal Mail 24"
37
+ }
38
+ ];
39
+ var RECEIPT = [
40
+ {
41
+ key: "items",
42
+ label: "Items (3)",
43
+ value: "£70.00"
44
+ },
45
+ {
46
+ key: "discount",
47
+ label: "Discount",
48
+ value: "−£7.00",
49
+ kind: "deduction",
50
+ hint: "SPRING10"
51
+ },
52
+ {
53
+ key: "subtotal",
54
+ label: "Subtotal",
55
+ value: "£63.00",
56
+ kind: "subtotal"
57
+ },
58
+ {
59
+ key: "shipping",
60
+ label: "Shipping",
61
+ value: "£9.00",
62
+ hint: "Royal Mail 24"
63
+ },
64
+ {
65
+ key: "total",
66
+ label: "Total",
67
+ value: "£72.00",
68
+ kind: "total",
69
+ hint: "Includes £12.00 VAT"
70
+ }
71
+ ];
72
+ var STORE = [
73
+ {
74
+ key: "name",
75
+ label: "Store name",
76
+ value: "Hollin Lane Furniture"
77
+ },
78
+ {
79
+ key: "email",
80
+ label: "Contact email",
81
+ value: "hello@hollinlane.example"
82
+ },
83
+ {
84
+ key: "currency",
85
+ label: "Currency",
86
+ value: "Pound sterling (GBP)"
87
+ },
88
+ {
89
+ key: "zone",
90
+ label: "Time zone",
91
+ value: "(GMT+00:00) London"
92
+ },
93
+ {
94
+ key: "note",
95
+ label: "Delivery note",
96
+ value: "Leave with a neighbour if nobody is home. The gate code is on the back of the delivery card."
97
+ }
98
+ ];
99
+ /** A subscription's facts: two ids to copy, and a tracking number that is not there yet. */
100
+ var SUBSCRIPTION = [
101
+ {
102
+ key: "id",
103
+ label: "Subscription ID",
104
+ value: "sub_1Q8xYzK2eZ…",
105
+ mono: true,
106
+ copy: "sub_1Q8xYzK2eZvKYlo2C0aBcDeF"
107
+ },
108
+ {
109
+ key: "customer",
110
+ label: "Customer ID",
111
+ value: "cus_R4mPq93LxT",
112
+ mono: true,
113
+ copy: "cus_R4mPq93LxT"
114
+ },
115
+ {
116
+ key: "plan",
117
+ label: "Plan",
118
+ value: "Growth, monthly"
119
+ },
120
+ {
121
+ key: "renews",
122
+ label: "Renews",
123
+ value: "12 Nov 2026"
124
+ },
125
+ {
126
+ key: "tracking",
127
+ label: "Tracking number",
128
+ value: null
129
+ }
130
+ ];
131
+ /** A hosted site's billing and contract facts: short, many, and nothing to compare down a column. */
132
+ var HOSTING = [
133
+ {
134
+ key: "plan",
135
+ label: "Plan",
136
+ value: "Growth, monthly"
137
+ },
138
+ {
139
+ key: "card",
140
+ label: "Card",
141
+ value: "Visa ending 4242"
142
+ },
143
+ {
144
+ key: "renews",
145
+ label: "Renews",
146
+ value: "12 Nov 2026"
147
+ },
148
+ {
149
+ key: "billed",
150
+ label: "Billed until",
151
+ value: "12 Nov 2026"
152
+ },
153
+ {
154
+ key: "region",
155
+ label: "Region",
156
+ value: "London"
157
+ },
158
+ {
159
+ key: "contract",
160
+ label: "Contract version",
161
+ value: "v3.2",
162
+ mono: true
163
+ },
164
+ {
165
+ key: "stripe",
166
+ label: "Stripe subscription",
167
+ value: "sub_1Q8xYz…",
168
+ mono: true,
169
+ copy: "sub_1Q8xYzK2eZvKYlo2C0aBcDeF"
170
+ },
171
+ {
172
+ key: "deletion",
173
+ label: "Data deleted",
174
+ value: null
175
+ }
176
+ ];
177
+ function Preview() {
178
+ return /* @__PURE__ */ jsx(DescriptionList, {
179
+ size: "sm",
180
+ "aria-label": "Order",
181
+ style: { width: 200 },
182
+ items: [
183
+ {
184
+ key: "number",
185
+ label: "Order",
186
+ value: "DEMO-1037"
187
+ },
188
+ {
189
+ key: "placed",
190
+ label: "Placed",
191
+ value: "6 Oct"
192
+ },
193
+ {
194
+ key: "total",
195
+ label: "Total",
196
+ value: "£72.00"
197
+ }
198
+ ]
199
+ });
200
+ }
201
+ function LoadingValues() {
202
+ const [state, setState] = useState("loading");
203
+ const loading = state === "loading";
204
+ return /* @__PURE__ */ jsxs("div", {
205
+ className: "description-list-demo",
206
+ children: [/* @__PURE__ */ jsx(SegmentedControl, {
207
+ "aria-label": "State",
208
+ size: "sm",
209
+ value: state,
210
+ onValueChange: setState,
211
+ options: [{
212
+ value: "loading",
213
+ label: "Loading"
214
+ }, {
215
+ value: "loaded",
216
+ label: "Loaded"
217
+ }]
218
+ }), /* @__PURE__ */ jsx("div", {
219
+ className: "description-list-demo__column",
220
+ "aria-busy": loading || void 0,
221
+ children: /* @__PURE__ */ jsx(DescriptionList, {
222
+ "aria-label": "Customer",
223
+ items: [
224
+ {
225
+ key: "payment",
226
+ label: "Payment",
227
+ value: loading ? /* @__PURE__ */ jsx(Skeleton, {
228
+ width: 72,
229
+ height: 22,
230
+ radius: "pill"
231
+ }) : /* @__PURE__ */ jsx(StatusBadge, {
232
+ domain: "payment",
233
+ status: "paid"
234
+ })
235
+ },
236
+ {
237
+ key: "orders",
238
+ label: "Orders",
239
+ value: loading ? /* @__PURE__ */ jsx(Skeleton, { width: 28 }) : "38"
240
+ },
241
+ {
242
+ key: "spent",
243
+ label: "Lifetime value",
244
+ value: loading ? /* @__PURE__ */ jsx(Skeleton, { width: 72 }) : "£2,630.50"
245
+ },
246
+ {
247
+ key: "change",
248
+ label: "On last month",
249
+ value: loading ? /* @__PURE__ */ jsx(Skeleton, { width: 56 }) : /* @__PURE__ */ jsx(Delta, {
250
+ value: 12.4,
251
+ size: "sm"
252
+ })
253
+ },
254
+ {
255
+ key: "tracking",
256
+ label: "Tracking",
257
+ value: loading ? /* @__PURE__ */ jsx(Skeleton, { width: 110 }) : null
258
+ }
259
+ ]
260
+ })
261
+ })]
262
+ });
263
+ }
264
+ function FieldsWidths() {
265
+ const [width, setWidth] = useState("wide");
266
+ const px = {
267
+ wide: "100%",
268
+ narrow: "420px"
269
+ }[width];
270
+ return /* @__PURE__ */ jsxs("div", {
271
+ className: "description-list-demo",
272
+ children: [/* @__PURE__ */ jsx(SegmentedControl, {
273
+ "aria-label": "Container width",
274
+ size: "sm",
275
+ value: width,
276
+ onValueChange: setWidth,
277
+ options: [{
278
+ value: "wide",
279
+ label: "Wide"
280
+ }, {
281
+ value: "narrow",
282
+ label: "420px"
283
+ }]
284
+ }), /* @__PURE__ */ jsx("div", {
285
+ className: "description-list-demo__frame",
286
+ style: { width: px },
287
+ children: /* @__PURE__ */ jsx(DescriptionList, {
288
+ "aria-label": "Store",
289
+ layout: "fields",
290
+ labelWidth: 160,
291
+ items: STORE
292
+ })
293
+ })]
294
+ });
295
+ }
296
+ function GridColumns() {
297
+ const [columns, setColumns] = useState("3");
298
+ const [width, setWidth] = useState("wide");
299
+ const px = {
300
+ wide: "100%",
301
+ medium: "560px",
302
+ narrow: "340px"
303
+ }[width];
304
+ return /* @__PURE__ */ jsxs("div", {
305
+ className: "description-list-demo",
306
+ children: [/* @__PURE__ */ jsxs("div", {
307
+ className: "description-list-demo__controls",
308
+ children: [/* @__PURE__ */ jsx(SegmentedControl, {
309
+ "aria-label": "Columns",
310
+ size: "sm",
311
+ value: columns,
312
+ onValueChange: setColumns,
313
+ options: [
314
+ {
315
+ value: "2",
316
+ label: "2"
317
+ },
318
+ {
319
+ value: "3",
320
+ label: "3"
321
+ },
322
+ {
323
+ value: "4",
324
+ label: "4"
325
+ }
326
+ ]
327
+ }), /* @__PURE__ */ jsx(SegmentedControl, {
328
+ "aria-label": "Container width",
329
+ size: "sm",
330
+ value: width,
331
+ onValueChange: setWidth,
332
+ options: [
333
+ {
334
+ value: "wide",
335
+ label: "Wide"
336
+ },
337
+ {
338
+ value: "medium",
339
+ label: "560px"
340
+ },
341
+ {
342
+ value: "narrow",
343
+ label: "340px"
344
+ }
345
+ ]
346
+ })]
347
+ }), /* @__PURE__ */ jsx("div", {
348
+ className: "description-list-demo__frame",
349
+ style: { width: px },
350
+ children: /* @__PURE__ */ jsx(DescriptionList, {
351
+ "aria-label": "Hosting",
352
+ layout: "grid",
353
+ columns: Number(columns),
354
+ items: HOSTING
355
+ })
356
+ })]
357
+ });
358
+ }
359
+ function Matrix() {
360
+ return /* @__PURE__ */ jsxs("div", {
361
+ className: "description-list-demo__column description-list-demo__column--stack",
362
+ children: [
363
+ /* @__PURE__ */ jsx(DescriptionList, {
364
+ "aria-label": "Order",
365
+ items: ORDER_FACTS
366
+ }),
367
+ /* @__PURE__ */ jsx(DescriptionList, {
368
+ "aria-label": "Summary",
369
+ layout: "receipt",
370
+ items: RECEIPT
371
+ }),
372
+ /* @__PURE__ */ jsx(DescriptionList, {
373
+ "aria-label": "Subscription",
374
+ items: SUBSCRIPTION
375
+ }),
376
+ /* @__PURE__ */ jsx(DescriptionList, {
377
+ "aria-label": "Store",
378
+ layout: "fields",
379
+ items: STORE.slice(0, 3)
380
+ }),
381
+ /* @__PURE__ */ jsx(DescriptionList, {
382
+ "aria-label": "Hosting",
383
+ layout: "grid",
384
+ columns: 2,
385
+ items: HOSTING.slice(0, 6)
386
+ })
387
+ ]
388
+ });
389
+ }
390
+ var code = (value) => /* @__PURE__ */ jsx("code", { children: value });
391
+ /** An order whose discount gave free items, whose delivery was waived and which was partly refunded. */
392
+ var ORDER_SUMMARY = [
393
+ {
394
+ key: "subtotal",
395
+ label: "Subtotal",
396
+ value: "£1,240.00"
397
+ },
398
+ {
399
+ key: "discount",
400
+ label: "Discount",
401
+ hint: "DESKDEAL, buy 2 get 1",
402
+ value: "−£80.00",
403
+ kind: "deduction",
404
+ details: {
405
+ label: "2 bonus items applied",
406
+ items: [{
407
+ key: "desk",
408
+ label: "Oak desk x1 free",
409
+ value: "−£80.00",
410
+ tone: "negative"
411
+ }, {
412
+ key: "mat",
413
+ label: "Desk mat x1",
414
+ value: "Free"
415
+ }]
416
+ }
417
+ },
418
+ {
419
+ key: "shipping",
420
+ label: "Shipping",
421
+ hint: "Mainland UK, two-person delivery",
422
+ value: "Free",
423
+ was: "£12.00"
424
+ },
425
+ {
426
+ key: "total",
427
+ label: "Total",
428
+ value: "£1,160.00",
429
+ kind: "total",
430
+ hint: "Includes £193.33 VAT"
431
+ },
432
+ {
433
+ key: "refunded",
434
+ label: "Refunded",
435
+ value: "−£24.00",
436
+ tone: "negative"
437
+ }
438
+ ];
439
+ /** A new order being built: the rows still to fill in are the way to fill them. */
440
+ function NewOrderSummary() {
441
+ const [discount, setDiscount] = useState(false);
442
+ return /* @__PURE__ */ jsx(DescriptionList, {
443
+ "aria-label": "New order",
444
+ layout: "receipt",
445
+ items: [
446
+ {
447
+ key: "subtotal",
448
+ label: "Subtotal",
449
+ value: "£420.00"
450
+ },
451
+ discount ? {
452
+ key: "discount",
453
+ label: "Discount",
454
+ hint: "Trade 10%",
455
+ value: "−£42.00",
456
+ kind: "deduction"
457
+ } : {
458
+ key: "discount",
459
+ label: "Add discount",
460
+ value: "£0.00",
461
+ onClick: () => setDiscount(true)
462
+ },
463
+ {
464
+ key: "shipping",
465
+ label: "Add shipping",
466
+ value: "£0.00",
467
+ href: "#receipt-rows"
468
+ },
469
+ {
470
+ key: "total",
471
+ label: "Total",
472
+ value: discount ? "£378.00" : "£420.00",
473
+ kind: "total"
474
+ }
475
+ ]
476
+ });
477
+ }
478
+ function Page() {
479
+ return /* @__PURE__ */ jsxs(DocPage, {
480
+ title: "Description list",
481
+ status: "new",
482
+ importNames: ["DescriptionList"],
483
+ lead: "A label and its value on every row: a record's facts, an order's sums, a read-only form. A real description list underneath, so assistive tech pairs each label with its value.",
484
+ children: [
485
+ /* @__PURE__ */ jsxs(Section$1, {
486
+ id: "ledger",
487
+ title: "Ledger",
488
+ description: /* @__PURE__ */ jsxs("p", { children: [
489
+ "The default, ",
490
+ /* @__PURE__ */ jsx("code", { children: "layout=\"ledger\"" }),
491
+ ". The label sits left, quiet; the value sits right, in ink; a hairline falls between rows, and a row is 40px at least. It is for a record's facts, in a side column or under a heading. Each value is any node: text, a ",
492
+ /* @__PURE__ */ jsx(DocLink, {
493
+ to: "/components/status-badge",
494
+ children: "status badge"
495
+ }),
496
+ ", a number you have formatted yourself. The label stays whole and a long value (an email, an address) wraps beside it; money or a count that must not break takes",
497
+ " ",
498
+ /* @__PURE__ */ jsx("code", { children: "nowrap" }),
499
+ " on its item."
500
+ ] }),
501
+ children: [/* @__PURE__ */ jsx(Example, {
502
+ align: "fill",
503
+ code: `
504
+ <DescriptionList
505
+ aria-label="Order"
506
+ items={[
507
+ { key: 'number', label: 'Order number', value: 'DEMO-1037' },
508
+ { key: 'placed', label: 'Placed', value: '6 Oct 2026, 04:32' },
509
+ { key: 'channel', label: 'Channel', value: 'Online store' },
510
+ { key: 'payment', label: 'Payment', value: <StatusBadge domain="payment" status="paid" /> },
511
+ { key: 'delivery', label: 'Delivery', value: 'Royal Mail 24' },
512
+ ]}
513
+ />`,
514
+ children: /* @__PURE__ */ jsx("div", {
515
+ className: "description-list-demo__column",
516
+ children: /* @__PURE__ */ jsx(DescriptionList, {
517
+ "aria-label": "Order",
518
+ items: ORDER_FACTS
519
+ })
520
+ })
521
+ }), /* @__PURE__ */ jsxs(Note, {
522
+ title: "The list has no padding of its own",
523
+ children: [
524
+ "It adds no space above or below, and no frame. Put it under a heading, or inside a",
525
+ " ",
526
+ /* @__PURE__ */ jsx(DocLink, {
527
+ to: "/components/card",
528
+ children: "Card"
529
+ }),
530
+ " when the facts need a surface."
531
+ ]
532
+ })]
533
+ }),
534
+ /* @__PURE__ */ jsxs(Section$1, {
535
+ id: "receipt",
536
+ title: "Receipt",
537
+ description: /* @__PURE__ */ jsxs("p", { children: [
538
+ "For sums, ",
539
+ /* @__PURE__ */ jsx("code", { children: "layout=\"receipt\"" }),
540
+ ". No rules between lines, so the figures read down one edge as a column of numbers. A",
541
+ " ",
542
+ /* @__PURE__ */ jsx("code", { children: "subtotal" }),
543
+ " is ruled off above and set in ink; the ",
544
+ /* @__PURE__ */ jsx("code", { children: "total" }),
545
+ " is ruled off more firmly and set in Sora, the figure the receipt is for. A ",
546
+ /* @__PURE__ */ jsx("code", { children: "deduction" }),
547
+ " is a line taken off and is written with a true minus (−£7.00), never a hyphen. A ",
548
+ /* @__PURE__ */ jsx("code", { children: "hint" }),
549
+ " sits under its label."
550
+ ] }),
551
+ children: [
552
+ /* @__PURE__ */ jsx(Example, {
553
+ align: "fill",
554
+ code: `
555
+ <DescriptionList
556
+ layout="receipt"
557
+ aria-label="Summary"
558
+ items={[
559
+ { key: 'items', label: 'Items (3)', value: '£70.00' },
560
+ { key: 'discount', label: 'Discount', value: '−£7.00', kind: 'deduction', hint: 'SPRING10' },
561
+ { key: 'subtotal', label: 'Subtotal', value: '£63.00', kind: 'subtotal' },
562
+ { key: 'shipping', label: 'Shipping', value: '£9.00', hint: 'Royal Mail 24' },
563
+ { key: 'total', label: 'Total', value: '£72.00', kind: 'total', hint: 'Includes £12.00 VAT' },
564
+ ]}
565
+ />`,
566
+ children: /* @__PURE__ */ jsx("div", {
567
+ className: "description-list-demo__column",
568
+ children: /* @__PURE__ */ jsx(DescriptionList, {
569
+ "aria-label": "Summary",
570
+ layout: "receipt",
571
+ items: RECEIPT
572
+ })
573
+ })
574
+ }),
575
+ /* @__PURE__ */ jsx(DocTable, {
576
+ columns: [
577
+ "kind",
578
+ "Reads as",
579
+ "Drawn"
580
+ ],
581
+ rows: [
582
+ [
583
+ code("row"),
584
+ "A line (the default).",
585
+ "Quiet label, ink value."
586
+ ],
587
+ [
588
+ code("deduction"),
589
+ "A line taken off: a discount, a refund.",
590
+ "As a row. Write the value with a true minus; the minus is what says it comes off."
591
+ ],
592
+ [
593
+ code("subtotal"),
594
+ "A sum so far.",
595
+ "A hairline above, ink label and value."
596
+ ],
597
+ [
598
+ code("total"),
599
+ "The figure the receipt is for.",
600
+ "A firmer rule above, 600 weight, the value in Sora."
601
+ ]
602
+ ]
603
+ }),
604
+ /* @__PURE__ */ jsx(Note, {
605
+ title: "Sums are the caller's",
606
+ children: "The list does no arithmetic and no formatting. Pass the money as text in the currency and locale you want, and let the server decide what the total is."
607
+ })
608
+ ]
609
+ }),
610
+ /* @__PURE__ */ jsx(Section$1, {
611
+ id: "receipt-rows",
612
+ title: "Receipt rows",
613
+ description: /* @__PURE__ */ jsxs("p", { children: [
614
+ "An order's summary as the vendor dashboard draws it. A row can open to the lines behind it (",
615
+ /* @__PURE__ */ jsx("code", { children: "details" }),
616
+ "): the toggle under its label says what is there (\"2 bonus items applied\") and a chevron turns down as it opens, and the lines read under it, quieter. A ",
617
+ /* @__PURE__ */ jsx("code", { children: "hint" }),
618
+ " under a label carries the delivery method and zone. ",
619
+ /* @__PURE__ */ jsx("code", { children: "was" }),
620
+ " ",
621
+ "strikes the original value before the new one (delivery that was £12.00, waived). ",
622
+ /* @__PURE__ */ jsx("code", { children: "onClick" }),
623
+ " or",
624
+ " ",
625
+ /* @__PURE__ */ jsx("code", { children: "href" }),
626
+ " makes the label the way to fill the row in (\"Add discount\"), and ",
627
+ /* @__PURE__ */ jsx("code", { children: "tone" }),
628
+ " colours a figure going back (a refund). Press the toggle."
629
+ ] }),
630
+ children: /* @__PURE__ */ jsx(Example, {
631
+ align: "fill",
632
+ code: `
633
+ <DescriptionList
634
+ layout="receipt"
635
+ aria-label="Order summary"
636
+ items={[
637
+ { key: 'subtotal', label: 'Subtotal', value: '£1,240.00' },
638
+ {
639
+ key: 'discount',
640
+ label: 'Discount',
641
+ hint: 'DESKDEAL, buy 2 get 1',
642
+ value: '−£80.00',
643
+ kind: 'deduction',
644
+ details: {
645
+ label: '2 bonus items applied',
646
+ items: [
647
+ { key: 'desk', label: 'Oak desk x1 free', value: '−£80.00', tone: 'negative' },
648
+ { key: 'mat', label: 'Desk mat x1', value: 'Free' },
649
+ ],
650
+ },
651
+ },
652
+ { key: 'shipping', label: 'Shipping', hint: 'Mainland UK, two-person delivery', value: 'Free', was: '£12.00' },
653
+ { key: 'total', label: 'Total', value: '£1,160.00', kind: 'total', hint: 'Includes £193.33 VAT' },
654
+ { key: 'refunded', label: 'Refunded', value: '−£24.00', tone: 'negative' },
655
+ ]}
656
+ />
657
+
658
+ <DescriptionList
659
+ layout="receipt"
660
+ aria-label="New order"
661
+ items={[
662
+ { key: 'subtotal', label: 'Subtotal', value: '£420.00' },
663
+ { key: 'discount', label: 'Add discount', value: '£0.00', onClick: openDiscount },
664
+ { key: 'shipping', label: 'Add shipping', value: '£0.00', onClick: openShipping },
665
+ { key: 'total', label: 'Total', value: '£420.00', kind: 'total' },
666
+ ]}
667
+ />`,
668
+ children: /* @__PURE__ */ jsxs("div", {
669
+ className: "description-list-demo__row",
670
+ children: [/* @__PURE__ */ jsx("div", {
671
+ className: "description-list-demo__column",
672
+ children: /* @__PURE__ */ jsx(DescriptionList, {
673
+ "aria-label": "Order summary",
674
+ layout: "receipt",
675
+ items: ORDER_SUMMARY
676
+ })
677
+ }), /* @__PURE__ */ jsx("div", {
678
+ className: "description-list-demo__column",
679
+ children: /* @__PURE__ */ jsx(NewOrderSummary, {})
680
+ })]
681
+ })
682
+ })
683
+ }),
684
+ /* @__PURE__ */ jsx(Section$1, {
685
+ id: "fields",
686
+ title: "Fields",
687
+ description: /* @__PURE__ */ jsxs("p", { children: [
688
+ "A label column and a value column, like a form that is not editable: a store's details, a connection's settings. Ask for",
689
+ " ",
690
+ /* @__PURE__ */ jsx("code", { children: "layout=\"fields\"" }),
691
+ ". The label column is 200px, or whatever ",
692
+ /* @__PURE__ */ jsx("code", { children: "labelWidth" }),
693
+ " says. Values wrap to as many lines as they need. When the row is too narrow for both columns, the value drops under its label. It follows the width of the list, not the window. This is the layout the older ",
694
+ /* @__PURE__ */ jsx("code", { children: "variant=\"grid\"" }),
695
+ " draws, which still works."
696
+ ] }),
697
+ children: /* @__PURE__ */ jsx(Example, {
698
+ align: "fill",
699
+ code: `
700
+ <DescriptionList
701
+ layout="fields"
702
+ labelWidth={160}
703
+ aria-label="Store"
704
+ items={[
705
+ { key: 'name', label: 'Store name', value: 'Hollin Lane Furniture' },
706
+ { key: 'email', label: 'Contact email', value: 'hello@hollinlane.example' },
707
+ { key: 'currency', label: 'Currency', value: 'Pound sterling (GBP)' },
708
+ …
709
+ ]}
710
+ />`,
711
+ children: /* @__PURE__ */ jsx(FieldsWidths, {})
712
+ })
713
+ }),
714
+ /* @__PURE__ */ jsxs(Section$1, {
715
+ id: "grid",
716
+ title: "Grid",
717
+ description: /* @__PURE__ */ jsxs("p", { children: [
718
+ "Label over value, in columns: for facts that are short and many, with nothing to compare down a column. Ask for",
719
+ " ",
720
+ /* @__PURE__ */ jsx("code", { children: "layout=\"grid\"" }),
721
+ " and say how many columns at most with ",
722
+ /* @__PURE__ */ jsx("code", { children: "columns" }),
723
+ " (2, the default, 3 or 4). Each column is never narrower than 10rem, so a narrow list has fewer columns, down to one: it follows the width of the list, not the window. Change the columns and the width below."
724
+ ] }),
725
+ children: [/* @__PURE__ */ jsx(Example, {
726
+ align: "fill",
727
+ code: `
728
+ <DescriptionList
729
+ layout="grid"
730
+ columns={3}
731
+ aria-label="Hosting"
732
+ items={[
733
+ { key: 'plan', label: 'Plan', value: 'Growth, monthly' },
734
+ { key: 'card', label: 'Card', value: 'Visa ending 4242' },
735
+ { key: 'renews', label: 'Renews', value: '12 Nov 2026' },
736
+ { key: 'billed', label: 'Billed until', value: '12 Nov 2026' },
737
+ { key: 'region', label: 'Region', value: 'London' },
738
+ { key: 'contract', label: 'Contract version', value: 'v3.2', mono: true },
739
+ { key: 'stripe', label: 'Stripe subscription', value: 'sub_1Q8xYz…', mono: true, copy: 'sub_1Q8xYzK2eZvKYlo2C0aBcDeF' },
740
+ { key: 'deletion', label: 'Data deleted', value: null },
741
+ ]}
742
+ />`,
743
+ children: /* @__PURE__ */ jsx(GridColumns, {})
744
+ }), /* @__PURE__ */ jsxs(Note, {
745
+ title: "Hints stay with the label",
746
+ children: [
747
+ "A ",
748
+ /* @__PURE__ */ jsx("code", { children: "hint" }),
749
+ " is part of the term in every layout, so in a grid it sits between the label and the value. Words about the value itself read better in the value."
750
+ ]
751
+ })]
752
+ }),
753
+ /* @__PURE__ */ jsx(Section$1, {
754
+ id: "size",
755
+ title: "Size",
756
+ description: /* @__PURE__ */ jsxs("p", { children: [
757
+ /* @__PURE__ */ jsx("code", { children: "md" }),
758
+ " rows breathe, and are right for a page's main column. ",
759
+ /* @__PURE__ */ jsx("code", { children: "sm" }),
760
+ " rows are snug, for a side column or a card. Only the rows' spacing changes; the type stays the same. ",
761
+ /* @__PURE__ */ jsx("code", { children: "dense" }),
762
+ " is the same as ",
763
+ /* @__PURE__ */ jsx("code", { children: "size=\"sm\"" }),
764
+ ", for a list that reads better as a flag."
765
+ ] }),
766
+ children: /* @__PURE__ */ jsx(Example, {
767
+ align: "start",
768
+ code: `
769
+ <DescriptionList dense items={items} />
770
+
771
+ <Card variant="sunken" padding="sm">
772
+ <DescriptionList size="sm" layout="receipt" items={receipt} />
773
+ </Card>`,
774
+ children: /* @__PURE__ */ jsxs("div", {
775
+ className: "description-list-demo__row",
776
+ children: [/* @__PURE__ */ jsx("div", {
777
+ className: "description-list-demo__column description-list-demo__column--narrow",
778
+ children: /* @__PURE__ */ jsx(DescriptionList, {
779
+ "aria-label": "Order, snug",
780
+ dense: true,
781
+ items: ORDER_FACTS
782
+ })
783
+ }), /* @__PURE__ */ jsx(Card, {
784
+ variant: "sunken",
785
+ padding: "sm",
786
+ className: "description-list-demo__column description-list-demo__column--narrow",
787
+ children: /* @__PURE__ */ jsx(DescriptionList, {
788
+ "aria-label": "Summary, snug",
789
+ size: "sm",
790
+ layout: "receipt",
791
+ items: RECEIPT
792
+ })
793
+ })]
794
+ })
795
+ })
796
+ }),
797
+ /* @__PURE__ */ jsx(Section$1, {
798
+ id: "values",
799
+ title: "Anything as a value",
800
+ description: /* @__PURE__ */ jsxs("p", { children: [
801
+ "A value is a node, so it can be a badge, a ",
802
+ /* @__PURE__ */ jsx(DocLink, {
803
+ to: "/components/delta",
804
+ children: "Delta"
805
+ }),
806
+ ", a link, or a",
807
+ " ",
808
+ /* @__PURE__ */ jsx(DocLink, {
809
+ to: "/components/skeleton",
810
+ children: "Skeleton"
811
+ }),
812
+ " while the data is on its way. When there is nothing to say, give it nothing (",
813
+ /* @__PURE__ */ jsx("code", { children: "null" }),
814
+ ", ",
815
+ /* @__PURE__ */ jsx("code", { children: "undefined" }),
816
+ ", ",
817
+ /* @__PURE__ */ jsx("code", { children: "false" }),
818
+ " or an empty string) and the list draws an en dash, which a screen reader hears as \"No value\". A ",
819
+ /* @__PURE__ */ jsx("code", { children: "0" }),
820
+ " is a value and is drawn. Never leave a row blank and never show a zero for a value you do not have yet."
821
+ ] }),
822
+ children: /* @__PURE__ */ jsx(Example, {
823
+ align: "fill",
824
+ code: `
825
+ <DescriptionList
826
+ items={[
827
+ { key: 'payment', label: 'Payment', value: loading ? <Skeleton width={72} height={22} radius="pill" /> : <StatusBadge domain="payment" status="paid" /> },
828
+ { key: 'orders', label: 'Orders', value: loading ? <Skeleton width={28} /> : '38' },
829
+ { key: 'change', label: 'On last month', value: loading ? <Skeleton width={56} /> : <Delta value={12.4} size="sm" /> },
830
+ { key: 'tracking', label: 'Tracking', value: loading ? <Skeleton width={110} /> : null },
831
+ ]}
832
+ />`,
833
+ children: /* @__PURE__ */ jsx(LoadingValues, {})
834
+ })
835
+ }),
836
+ /* @__PURE__ */ jsxs(Section$1, {
837
+ id: "mono-copy",
838
+ title: "Monospace and copy",
839
+ description: /* @__PURE__ */ jsxs("p", { children: [
840
+ "An id, a key or a code is set apart by ",
841
+ /* @__PURE__ */ jsx("code", { children: "mono" }),
842
+ " on its item: Geist Mono at 13px, tabular and without ligatures. Add",
843
+ " ",
844
+ /* @__PURE__ */ jsx("code", { children: "copy" }),
845
+ ", the text to put on the clipboard, and a small copy button follows the value. The text copied need not be the text shown: show the start of a long id and copy all of it. The button is the",
846
+ " ",
847
+ /* @__PURE__ */ jsx(DocLink, {
848
+ to: "/components/copy-button",
849
+ children: "copy button"
850
+ }),
851
+ " the copy field and code block use, named by its row (\"Copy Subscription ID\"), so several on a page tell each other apart. Keep monospace for ids, keys and codes; words and money stay in Geist."
852
+ ] }),
853
+ children: [
854
+ /* @__PURE__ */ jsx(Example, {
855
+ align: "fill",
856
+ code: `
857
+ <DescriptionList
858
+ layout="fields"
859
+ aria-label="Subscription"
860
+ items={[
861
+ { key: 'id', label: 'Subscription ID', value: 'sub_1Q8xYzK2eZ…', mono: true, copy: 'sub_1Q8xYzK2eZvKYlo2C0aBcDeF' },
862
+ { key: 'customer', label: 'Customer ID', value: 'cus_R4mPq93LxT', mono: true, copy: 'cus_R4mPq93LxT' },
863
+ { key: 'plan', label: 'Plan', value: 'Growth, monthly' },
864
+ { key: 'renews', label: 'Renews', value: '12 Nov 2026' },
865
+ { key: 'tracking', label: 'Tracking number', value: null },
866
+ ]}
867
+ />`,
868
+ children: /* @__PURE__ */ jsx("div", {
869
+ className: "description-list-demo__column description-list-demo__column--wide",
870
+ children: /* @__PURE__ */ jsx(DescriptionList, {
871
+ "aria-label": "Subscription",
872
+ layout: "fields",
873
+ items: SUBSCRIPTION
874
+ })
875
+ })
876
+ }),
877
+ /* @__PURE__ */ jsx(SubSection, {
878
+ title: "In a ledger",
879
+ description: /* @__PURE__ */ jsx("p", { children: "The button ends the value, so in a ledger, whose values sit at the right, it ends the row. A row with a button reads a little in from the edge the other values end on." }),
880
+ children: /* @__PURE__ */ jsx(Example, {
881
+ align: "fill",
882
+ code: `
883
+ <DescriptionList
884
+ aria-label="Subscription"
885
+ items={[
886
+ { key: 'id', label: 'Subscription ID', value: 'sub_1Q8xYzK2eZ…', mono: true, copy: 'sub_1Q8xYzK2eZvKYlo2C0aBcDeF' },
887
+ { key: 'customer', label: 'Customer ID', value: 'cus_R4mPq93LxT', mono: true, copy: 'cus_R4mPq93LxT' },
888
+ { key: 'plan', label: 'Plan', value: 'Growth, monthly' },
889
+ { key: 'renews', label: 'Renews', value: '12 Nov 2026' },
890
+ { key: 'tracking', label: 'Tracking number', value: null },
891
+ ]}
892
+ />`,
893
+ children: /* @__PURE__ */ jsx("div", {
894
+ className: "description-list-demo__column",
895
+ children: /* @__PURE__ */ jsx(DescriptionList, {
896
+ "aria-label": "Subscription, ledger",
897
+ items: SUBSCRIPTION
898
+ })
899
+ })
900
+ })
901
+ }),
902
+ /* @__PURE__ */ jsxs(Note, {
903
+ title: "A row with no value has no button",
904
+ children: [
905
+ "The tracking number above has nothing to show, so it is a dash, with no copy button even if the item gave something to copy. Reword the sentences the list says (the dash, the button's name and its result) with the ",
906
+ /* @__PURE__ */ jsx("code", { children: "labels" }),
907
+ " prop."
908
+ ]
909
+ })
910
+ ]
911
+ }),
912
+ /* @__PURE__ */ jsx(Section$1, {
913
+ id: "both-themes",
914
+ title: "In both themes",
915
+ description: /* @__PURE__ */ jsx("p", { children: "A ledger (with ids to copy and a dash), a receipt, fields and a grid, light and dark side by side." }),
916
+ children: /* @__PURE__ */ jsx(ThemePair, {
917
+ align: "fill",
918
+ children: /* @__PURE__ */ jsx(Matrix, {})
919
+ })
920
+ }),
921
+ /* @__PURE__ */ jsxs(Section$1, {
922
+ id: "guidelines",
923
+ title: "Guidelines",
924
+ children: [
925
+ /* @__PURE__ */ jsx(DoDont, {
926
+ do: {
927
+ children: /* @__PURE__ */ jsx("div", {
928
+ className: "description-list-dodont",
929
+ children: /* @__PURE__ */ jsx(DescriptionList, {
930
+ "aria-label": "Summary",
931
+ layout: "receipt",
932
+ size: "sm",
933
+ items: RECEIPT.slice(1)
934
+ })
935
+ }),
936
+ caption: "A receipt for sums: figures on one edge, a rule above the subtotal and the total, the total in Sora."
937
+ },
938
+ dont: {
939
+ children: /* @__PURE__ */ jsx("div", {
940
+ className: "description-list-dodont",
941
+ children: /* @__PURE__ */ jsx(DescriptionList, {
942
+ "aria-label": "Summary",
943
+ layout: "ledger",
944
+ size: "sm",
945
+ items: RECEIPT.slice(1)
946
+ })
947
+ }),
948
+ caption: "A ledger for sums. A rule under every line, and the total reads as one more line."
949
+ }
950
+ }),
951
+ /* @__PURE__ */ jsx(DocTable, {
952
+ columns: ["Reach for", "When"],
953
+ rows: [
954
+ [code("DescriptionList"), "The facts about one record, an order's sums, or a read-only form."],
955
+ [/* @__PURE__ */ jsx(DocLink, {
956
+ to: "/components/table",
957
+ children: "Table"
958
+ }), "Many records with the same columns, to scan and sort."],
959
+ [/* @__PURE__ */ jsx(DocLink, {
960
+ to: "/components/figure-strip",
961
+ children: "FigureStrip"
962
+ }), "Headline numbers a page opens with: large, with how they moved."],
963
+ ["Form fields", "Values the person can change. A description list is only for reading."]
964
+ ]
965
+ }),
966
+ /* @__PURE__ */ jsx(DocTable, {
967
+ columns: [
968
+ "layout",
969
+ "For",
970
+ "Reads as"
971
+ ],
972
+ rows: [
973
+ [
974
+ code("ledger"),
975
+ "A record's facts, in a side column or under a heading.",
976
+ "Label left, value right, a hairline between."
977
+ ],
978
+ [
979
+ code("receipt"),
980
+ "Sums: an order, a refund, a breakdown.",
981
+ "Figures down one edge, a rule above the subtotal and the total."
982
+ ],
983
+ [
984
+ code("fields"),
985
+ "A read-only form: a store's details, a connection's settings.",
986
+ "A label column and a value column."
987
+ ],
988
+ [
989
+ code("grid"),
990
+ "Short facts, many of them: billing, hosting, a technical capture.",
991
+ "Label over value, in two to four columns."
992
+ ]
993
+ ]
994
+ }),
995
+ /* @__PURE__ */ jsx(Guidelines, { items: [
996
+ "Labels are nouns in sentence case: \"Order number\", \"Contact email\". No colons.",
997
+ "Put the facts a person came for first; the audit trail last.",
998
+ "Keep a value to one line where you can. A value that must run long belongs in the fields layout, which wraps it.",
999
+ "Give a value you do not have nothing, and let the list draw the dash. Do not type a dash, a blank or a zero.",
1000
+ "Set ids, keys and codes in monospace and give them a copy button. Do not set words or money in monospace.",
1001
+ "Name the list with aria-label when no heading sits directly above it."
1002
+ ] })
1003
+ ]
1004
+ }),
1005
+ /* @__PURE__ */ jsx(Section$1, {
1006
+ id: "accessibility",
1007
+ title: "Accessibility",
1008
+ children: /* @__PURE__ */ jsx(Guidelines, { items: [
1009
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1010
+ "It is a real ",
1011
+ /* @__PURE__ */ jsx("code", { children: "dl" }),
1012
+ ", each row a ",
1013
+ /* @__PURE__ */ jsx("code", { children: "div" }),
1014
+ " holding a ",
1015
+ /* @__PURE__ */ jsx("code", { children: "dt" }),
1016
+ " and its ",
1017
+ /* @__PURE__ */ jsx("code", { children: "dd" }),
1018
+ ", so a screen reader announces \"Order number, DEMO-1037\" and can jump between terms. That holds in every layout."
1019
+ ] }),
1020
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1021
+ "A ",
1022
+ /* @__PURE__ */ jsx("code", { children: "hint" }),
1023
+ " is part of the term, so it is read with its label: \"Total, includes £12.00 VAT\"."
1024
+ ] }),
1025
+ "A deduction is told by its minus sign in the text and never by colour, so it survives forced colours and a printout.",
1026
+ "Values carry their own semantics: a badge keeps its dot and its words, a link stays a link.",
1027
+ /* @__PURE__ */ jsx(Fragment$1, { children: "The dash for no value is hidden from assistive tech and followed by words only it hears (\"No value\"), because a lone dash is read as \"dash\" or not at all." }),
1028
+ /* @__PURE__ */ jsx(Fragment$1, { children: "A copy button is a real button, in the tab order, named by what it copies (\"Copy Subscription ID\") and not by \"Copy\" alone. Its result is said in a polite status that is in the page before it speaks, and a browser that refuses is told so, in words and in the icon." }),
1029
+ "Nothing animates. A skeleton shown while loading is hidden from assistive tech: mark the surrounding region with aria-busy."
1030
+ ] })
1031
+ }),
1032
+ /* @__PURE__ */ jsxs(Section$1, {
1033
+ id: "props",
1034
+ title: "Props",
1035
+ description: /* @__PURE__ */ jsxs("p", { children: [
1036
+ "Also accepts every native ",
1037
+ /* @__PURE__ */ jsx("code", { children: "dl" }),
1038
+ " attribute."
1039
+ ] }),
1040
+ children: [/* @__PURE__ */ jsx(PropsTable, { rows: [
1041
+ {
1042
+ name: "items",
1043
+ type: "DescriptionItem[]",
1044
+ required: true,
1045
+ description: "The rows, top to bottom."
1046
+ },
1047
+ {
1048
+ name: "layout",
1049
+ type: "'ledger' | 'receipt' | 'fields' | 'grid'",
1050
+ default: "'ledger'",
1051
+ description: "How the facts are arranged: label left and value right on hairlines; ruled sums; a label column and a value column; or label over value in columns. Wins over variant when both are given."
1052
+ },
1053
+ {
1054
+ name: "columns",
1055
+ type: "2 | 3 | 4",
1056
+ default: "2",
1057
+ description: "With layout=\"grid\": the most columns to draw. Each is never narrower than 10rem, so a narrow list has fewer."
1058
+ },
1059
+ {
1060
+ name: "size",
1061
+ type: "'md' | 'sm'",
1062
+ default: "'md'",
1063
+ description: "Rows that breathe, or snug rows for a side column or a card."
1064
+ },
1065
+ {
1066
+ name: "dense",
1067
+ type: "boolean",
1068
+ default: "false",
1069
+ description: "Snug rows: the same as size=\"sm\". If both are given, size wins."
1070
+ },
1071
+ {
1072
+ name: "labelWidth",
1073
+ type: "number | string",
1074
+ default: "200",
1075
+ description: "The fields layout's label column. A number is px."
1076
+ },
1077
+ {
1078
+ name: "labels",
1079
+ type: "Partial<DescriptionListLabels>",
1080
+ description: "Reword the list's own sentences: empty (read out in place of the dash), copy (the button's name and tooltip), copied and copyFailed. descriptionListLabels is the English set."
1081
+ },
1082
+ {
1083
+ name: "variant",
1084
+ type: "'ledger' | 'receipt' | 'grid'",
1085
+ default: "'ledger'",
1086
+ description: "The older name for layout, and it keeps working. Its grid is the fields layout; use layout in new code, where grid is the columns."
1087
+ }
1088
+ ] }), /* @__PURE__ */ jsx(PropsTable, {
1089
+ title: "Each item",
1090
+ rows: [
1091
+ {
1092
+ name: "key",
1093
+ type: "string",
1094
+ required: true,
1095
+ description: "Identifies the row: the React key."
1096
+ },
1097
+ {
1098
+ name: "label",
1099
+ type: "ReactNode",
1100
+ required: true,
1101
+ description: "The term: what the row is about."
1102
+ },
1103
+ {
1104
+ name: "value",
1105
+ type: "ReactNode",
1106
+ required: true,
1107
+ description: "The description. Any node. Money and numbers are formatted by the caller, with a true minus for a deduction. Nothing (null, undefined, false, an empty string) is drawn as an en dash."
1108
+ },
1109
+ {
1110
+ name: "kind",
1111
+ type: "'row' | 'deduction' | 'subtotal' | 'total'",
1112
+ default: "'row'",
1113
+ description: "The row's part in a receipt. Ignored in the other layouts."
1114
+ },
1115
+ {
1116
+ name: "hint",
1117
+ type: "ReactNode",
1118
+ description: "Quiet words under the label: \"Royal Mail 24\", \"Includes £12.00 VAT\"."
1119
+ },
1120
+ {
1121
+ name: "nowrap",
1122
+ type: "boolean",
1123
+ default: "false",
1124
+ description: "Keeps the value on one line at its own width, for money or a count. A receipt always does."
1125
+ },
1126
+ {
1127
+ name: "mono",
1128
+ type: "boolean",
1129
+ default: "false",
1130
+ description: "Sets the value in Geist Mono, tabular and without ligatures: an id, a key, a SKU, a code."
1131
+ },
1132
+ {
1133
+ name: "copy",
1134
+ type: "string",
1135
+ description: "The text to copy, with a copy button after the value. Need not be the text shown. A row with no value has no button."
1136
+ },
1137
+ {
1138
+ name: "was",
1139
+ type: "ReactNode",
1140
+ description: "An original value, struck before the new one; a screen reader hears \"was\" and it after the value."
1141
+ },
1142
+ {
1143
+ name: "tone",
1144
+ type: "'negative' | 'positive'",
1145
+ description: "Colours the figure: money going back (a refund), or a saving."
1146
+ },
1147
+ {
1148
+ name: "onClick",
1149
+ type: "(event) => void",
1150
+ description: "Makes the label a button: \"Add discount\"."
1151
+ },
1152
+ {
1153
+ name: "href",
1154
+ type: "string",
1155
+ description: "Makes the label a link."
1156
+ },
1157
+ {
1158
+ name: "details",
1159
+ type: "DescriptionDetails",
1160
+ description: "{ label, items, defaultOpen?, open?, onOpenChange? }: lines behind a toggle under the label, drawn only while open. Each line is { key, label, value, tone? }."
1161
+ }
1162
+ ]
1163
+ })]
1164
+ }),
1165
+ /* @__PURE__ */ jsx(Section$1, {
1166
+ id: "differences",
1167
+ title: "Where it differs from the vendor dashboard",
1168
+ description: /* @__PURE__ */ jsx("p", { children: "The rows are the vendor dashboard's ledger, order summary, analytics receipt and customer fields, measured in the running app. These are the places the kit chooses differently." }),
1169
+ children: /* @__PURE__ */ jsx(DocTable, {
1170
+ columns: [
1171
+ "Where",
1172
+ "Vendor dashboard",
1173
+ "Kit"
1174
+ ],
1175
+ rows: [
1176
+ [
1177
+ "The receipt total",
1178
+ "The order summary sets it in Sora at 21px and 600 with its label at 14px and 600. The analytics receipt sets its total in Geist at 15px.",
1179
+ "The order summary's: Sora, 21px, 600. A receipt is one component, so the analytics receipt moves to it."
1180
+ ],
1181
+ [
1182
+ "The rule above the total",
1183
+ "The order summary rules it with the quiet separator, the analytics receipt with a firmer one.",
1184
+ "The firmer rule, one step above the hairline, so the total reads as the sum it is."
1185
+ ],
1186
+ [
1187
+ "Row spacing",
1188
+ "Each list has its own: a ledger row 10px, the analytics receipt 8px a row, the order summary 5px.",
1189
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1190
+ /* @__PURE__ */ jsx("code", { children: "size" }),
1191
+ " chooses between two, one set for each layout: ",
1192
+ /* @__PURE__ */ jsx("code", { children: "md" }),
1193
+ " is 10px in a ledger, 8px in a receipt (the analytics receipt) and 11px in fields, and ",
1194
+ /* @__PURE__ */ jsx("code", { children: "sm" }),
1195
+ " is 7px, 5px (the order summary) and 8px, snug for a side column or a card. ",
1196
+ /* @__PURE__ */ jsx("code", { children: "dense" }),
1197
+ " is ",
1198
+ /* @__PURE__ */ jsx("code", { children: "sm" }),
1199
+ "."
1200
+ ] })
1201
+ ],
1202
+ [
1203
+ "A long value",
1204
+ "Wraps beside a label that stays whole.",
1205
+ "The same. A value that must not wrap says so with nowrap, instead of every value in a receipt-like list being nowrap."
1206
+ ],
1207
+ [
1208
+ "Fields",
1209
+ "The customer fields are a CSS grid of minmax(120px, 200px) and the rest, 11px of padding and a hairline, and one column only in the mobile shell.",
1210
+ "The 11px, the hairline and the label column's 200px at most are the same. The columns are flex lines, not a grid, so by the width of the list and not the shell the value drops under its label when less than 15rem is left beside it, rather than being squeezed."
1211
+ ],
1212
+ [
1213
+ "Grid",
1214
+ "The analytics summary is two columns of label over a 15px, 600 value, 16px apart. Other label-over-value blocks are hand-built.",
1215
+ "Two to four columns of a 13px label over a 14px value in ink, 32px apart and 20px down, folding by the list's width. The 15px, 600 figure is a FigureStrip's job; a fact stays in the type of the rest of the list."
1216
+ ],
1217
+ [
1218
+ "No value",
1219
+ "About ninety places type an en dash by hand, in the muted ink.",
1220
+ "The list draws it for any empty value, in the quiet ink, and says \"No value\" to a screen reader."
1221
+ ],
1222
+ [
1223
+ "Ids and codes",
1224
+ "Codes and ids are set in Geist Mono at 12px (sales list) or 13px (customer ids).",
1225
+ "Geist Mono at 13px, tabular, without ligatures."
1226
+ ],
1227
+ [
1228
+ "Copy",
1229
+ "No fact in a list has a copy button; the order page copies a payment link from a button of its own.",
1230
+ "A 24px ghost icon button after the value, the same one the copy field and code block use."
1231
+ ],
1232
+ [
1233
+ "layout and variant",
1234
+ "Not applicable.",
1235
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1236
+ "The list had ",
1237
+ /* @__PURE__ */ jsx("code", { children: "variant" }),
1238
+ " (",
1239
+ /* @__PURE__ */ jsx("code", { children: "ledger" }),
1240
+ ", ",
1241
+ /* @__PURE__ */ jsx("code", { children: "receipt" }),
1242
+ ", ",
1243
+ /* @__PURE__ */ jsx("code", { children: "grid" }),
1244
+ ") before it had",
1245
+ " ",
1246
+ /* @__PURE__ */ jsx("code", { children: "layout" }),
1247
+ ". ",
1248
+ /* @__PURE__ */ jsx("code", { children: "layout" }),
1249
+ " names the same arrangements and adds the columns; its ",
1250
+ /* @__PURE__ */ jsx("code", { children: "fields" }),
1251
+ " is",
1252
+ " ",
1253
+ /* @__PURE__ */ jsx("code", { children: "variant=\"grid\"" }),
1254
+ ", and its ",
1255
+ /* @__PURE__ */ jsx("code", { children: "grid" }),
1256
+ " is the new columns. ",
1257
+ /* @__PURE__ */ jsx("code", { children: "variant" }),
1258
+ " still works as it did."
1259
+ ] })
1260
+ ]
1261
+ ]
1262
+ })
1263
+ })
1264
+ ]
1265
+ });
1266
+ }
1267
+ //#endregion
1268
+ export { Page, Preview };