@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,1798 @@
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 { Alert, Avatar, Badge, Button, Card, DescriptionList, SegmentedControl, Timeline, TimelineDay, TimelineItem, formatRelativeTime, formatTimelineDay, formatTimelineTime, groupTimelineByDay } from "@orbitcommerce/constellation";
7
+ import { ArrowCounterClockwiseIcon, CheckCircleIcon, CreditCardIcon, EnvelopeSimpleIcon, PackageIcon, PencilSimpleIcon, ShoppingCartIcon, TruckIcon, WarningCircleIcon } from "@orbitcommerce/constellation/icons";
8
+ //#region src/pages/components/timeline.tsx
9
+ var NOW = "2026-10-12T15:00:00Z";
10
+ var ZONE = "Europe/London";
11
+ var DAYS = {
12
+ now: NOW,
13
+ timeZone: ZONE
14
+ };
15
+ var clock = (at) => formatTimelineTime(at, { timeZone: ZONE });
16
+ /** The full date and time ("12 October 2026, 13:00"), for a title: a moment long before `now` is always written out. */
17
+ var fullDate = (at) => `${formatTimelineDay(at, {
18
+ now: "2000-01-01T00:00:00Z",
19
+ timeZone: ZONE
20
+ })}, ${clock(at)}`;
21
+ /** One order's history, newest first, as an invented furniture shop would see it. */
22
+ var ORDER = [
23
+ {
24
+ id: "paid",
25
+ at: "2026-10-12T13:32:00Z",
26
+ title: "Payment of £72.00 received",
27
+ tone: "positive",
28
+ icon: /* @__PURE__ */ jsx(CreditCardIcon, {})
29
+ },
30
+ {
31
+ id: "note",
32
+ at: "2026-10-12T13:05:00Z",
33
+ title: "Priya Shah",
34
+ tone: "neutral",
35
+ icon: null,
36
+ by: "Priya Shah",
37
+ note: "The customer asked for delivery on Friday, so the parcel is held until Thursday."
38
+ },
39
+ {
40
+ id: "failed",
41
+ at: "2026-10-12T12:05:00Z",
42
+ title: "Payment failed: card declined",
43
+ tone: "negative",
44
+ icon: /* @__PURE__ */ jsx(WarningCircleIcon, {})
45
+ },
46
+ {
47
+ id: "placed",
48
+ at: "2026-10-12T11:58:00Z",
49
+ title: "Order placed on the online store",
50
+ tone: "accent",
51
+ icon: /* @__PURE__ */ jsx(ShoppingCartIcon, {})
52
+ },
53
+ {
54
+ id: "address",
55
+ at: "2026-10-11T09:14:00Z",
56
+ title: "Delivery address updated",
57
+ tone: "neutral",
58
+ icon: /* @__PURE__ */ jsx(PencilSimpleIcon, {})
59
+ },
60
+ {
61
+ id: "quote",
62
+ at: "2026-10-05T10:00:00Z",
63
+ title: "Quote accepted by the customer",
64
+ tone: "accent",
65
+ icon: /* @__PURE__ */ jsx(CheckCircleIcon, {})
66
+ }
67
+ ];
68
+ var TODAY = ORDER.slice(0, 4);
69
+ function OrderEntry({ event, time = clock(event.at) }) {
70
+ if (event.by) return /* @__PURE__ */ jsx(TimelineItem, {
71
+ avatar: /* @__PURE__ */ jsx(Avatar, { name: event.by }),
72
+ title: event.by,
73
+ time,
74
+ dateTime: event.at,
75
+ badge: /* @__PURE__ */ jsx(Badge, {
76
+ tone: "info",
77
+ size: "sm",
78
+ children: "Customer notified"
79
+ }),
80
+ children: event.note
81
+ });
82
+ return /* @__PURE__ */ jsx(TimelineItem, {
83
+ icon: event.icon,
84
+ tone: event.tone,
85
+ title: event.title,
86
+ time,
87
+ dateTime: event.at
88
+ });
89
+ }
90
+ function Preview() {
91
+ return /* @__PURE__ */ jsxs(Timeline, {
92
+ "aria-label": "History",
93
+ density: "compact",
94
+ style: { width: 200 },
95
+ children: [
96
+ /* @__PURE__ */ jsx(TimelineItem, {
97
+ icon: /* @__PURE__ */ jsx(CreditCardIcon, {}),
98
+ tone: "positive",
99
+ title: "Paid",
100
+ time: "14:32"
101
+ }),
102
+ /* @__PURE__ */ jsx(TimelineItem, {
103
+ icon: /* @__PURE__ */ jsx(ShoppingCartIcon, {}),
104
+ tone: "accent",
105
+ title: "Order placed",
106
+ time: "12:58"
107
+ }),
108
+ /* @__PURE__ */ jsx(TimelineItem, {
109
+ icon: /* @__PURE__ */ jsx(PencilSimpleIcon, {}),
110
+ title: "Created",
111
+ time: "12:50"
112
+ })
113
+ ]
114
+ });
115
+ }
116
+ var TONES = [
117
+ {
118
+ tone: "neutral",
119
+ title: "Order updated",
120
+ icon: /* @__PURE__ */ jsx(PencilSimpleIcon, {})
121
+ },
122
+ {
123
+ tone: "accent",
124
+ title: "Order placed on the online store",
125
+ icon: /* @__PURE__ */ jsx(ShoppingCartIcon, {})
126
+ },
127
+ {
128
+ tone: "positive",
129
+ title: "Payment of £72.00 received",
130
+ icon: /* @__PURE__ */ jsx(CreditCardIcon, {})
131
+ },
132
+ {
133
+ tone: "warning",
134
+ title: "Payment refunded in part",
135
+ icon: /* @__PURE__ */ jsx(ArrowCounterClockwiseIcon, {})
136
+ },
137
+ {
138
+ tone: "negative",
139
+ title: "Payment failed: card declined",
140
+ icon: /* @__PURE__ */ jsx(WarningCircleIcon, {})
141
+ },
142
+ {
143
+ tone: "info",
144
+ title: "Customer notified by email",
145
+ icon: /* @__PURE__ */ jsx(EnvelopeSimpleIcon, {})
146
+ }
147
+ ];
148
+ function ToneList({ variant }) {
149
+ return /* @__PURE__ */ jsx(Timeline, {
150
+ "aria-label": `Tones, ${variant ?? "ring"}`,
151
+ variant,
152
+ children: TONES.map((each) => /* @__PURE__ */ jsx(TimelineItem, {
153
+ icon: each.icon,
154
+ tone: each.tone,
155
+ title: each.title
156
+ }, each.tone))
157
+ });
158
+ }
159
+ /** The record's changes, as an audit log writes them: who, when (relative) and what changed, behind a toggle. */
160
+ var AUDIT = [
161
+ {
162
+ id: "price",
163
+ at: "2026-10-12T12:00:00Z",
164
+ title: "Price changed on Oak side table",
165
+ by: "Priya Shah · Staff",
166
+ rows: [{
167
+ key: "price",
168
+ label: "Price",
169
+ value: "£34.00 to £36.00"
170
+ }, {
171
+ key: "compare",
172
+ label: "Compare at price",
173
+ value: "None to £42.00"
174
+ }]
175
+ },
176
+ {
177
+ id: "stock",
178
+ at: "2026-10-11T16:30:00Z",
179
+ title: "Stock adjusted on Oak side table",
180
+ by: "Stock sync · App",
181
+ rows: [{
182
+ key: "on-hand",
183
+ label: "On hand",
184
+ value: "4 to 3"
185
+ }, {
186
+ key: "reason",
187
+ label: "Reason",
188
+ value: "Order DEMO-1037"
189
+ }]
190
+ },
191
+ {
192
+ id: "published",
193
+ at: "2026-10-02T09:00:00Z",
194
+ title: "Oak side table published",
195
+ by: "Priya Shah · Staff",
196
+ rows: []
197
+ }
198
+ ];
199
+ function AuditLog({ one = false }) {
200
+ const [open, setOpen] = useState(null);
201
+ return /* @__PURE__ */ jsx(Timeline, {
202
+ "aria-label": "Audit log",
203
+ timeAlign: "end",
204
+ children: AUDIT.map((entry) => /* @__PURE__ */ jsx(TimelineItem, {
205
+ icon: /* @__PURE__ */ jsx(PencilSimpleIcon, {}),
206
+ title: entry.title,
207
+ meta: `by ${entry.by}`,
208
+ time: formatRelativeTime(entry.at, {
209
+ now: NOW,
210
+ timeZone: ZONE
211
+ }),
212
+ dateTime: entry.at,
213
+ timeTitle: fullDate(entry.at),
214
+ expandable: entry.rows.length > 0,
215
+ ...one ? {
216
+ expanded: open === entry.id,
217
+ onExpandedChange: (next) => setOpen(next ? entry.id : null)
218
+ } : {},
219
+ children: entry.rows.length > 0 ? /* @__PURE__ */ jsx(DescriptionList, {
220
+ size: "sm",
221
+ items: entry.rows,
222
+ "aria-label": "Changes"
223
+ }) : null
224
+ }, entry.id))
225
+ });
226
+ }
227
+ var VERSIONS = [{
228
+ id: "v14",
229
+ version: "1.4.0",
230
+ at: "2026-10-09T10:20:00Z",
231
+ badge: "Published",
232
+ tone: "positive",
233
+ notes: "Wider product grid on large screens and a new footer layout."
234
+ }, {
235
+ id: "v13",
236
+ version: "1.3.2",
237
+ at: "2026-10-03T08:00:00Z",
238
+ badge: null,
239
+ tone: "neutral",
240
+ notes: "Fixes the cart drawer on small phones."
241
+ }];
242
+ function VersionHistory() {
243
+ return /* @__PURE__ */ jsx(Timeline, {
244
+ "aria-label": "Version history",
245
+ variant: "disc",
246
+ children: VERSIONS.map((version) => /* @__PURE__ */ jsx(TimelineItem, {
247
+ icon: /* @__PURE__ */ jsx(PackageIcon, {}),
248
+ tone: version.tone,
249
+ title: `Version ${version.version}`,
250
+ badge: version.badge ? /* @__PURE__ */ jsx(Badge, {
251
+ tone: "positive",
252
+ size: "sm",
253
+ children: version.badge
254
+ }) : null,
255
+ meta: `Priya Shah · ${formatRelativeTime(version.at, {
256
+ now: NOW,
257
+ timeZone: ZONE
258
+ })}`,
259
+ actions: version.badge ? null : /* @__PURE__ */ jsx(Button, {
260
+ size: "sm",
261
+ variant: "secondary",
262
+ children: "Roll back"
263
+ }),
264
+ children: version.notes
265
+ }, version.id))
266
+ });
267
+ }
268
+ function Journey() {
269
+ return /* @__PURE__ */ jsxs(Timeline, {
270
+ "aria-label": "What happened to this commission",
271
+ children: [
272
+ /* @__PURE__ */ jsx(TimelineItem, {
273
+ icon: /* @__PURE__ */ jsx(CheckCircleIcon, {}),
274
+ tone: "positive",
275
+ markLabel: "Completed",
276
+ title: "Commission earned",
277
+ meta: "Hollin Lane Furniture became a paying customer",
278
+ time: "12 Oct"
279
+ }),
280
+ /* @__PURE__ */ jsx(TimelineItem, {
281
+ tone: "accent",
282
+ markLabel: "In progress",
283
+ title: "Held for 30 days",
284
+ meta: "Until 11 Nov 2026"
285
+ }),
286
+ /* @__PURE__ */ jsx(TimelineItem, {
287
+ pending: true,
288
+ markLabel: "Upcoming",
289
+ title: "Ready to pay out"
290
+ }),
291
+ /* @__PURE__ */ jsx(TimelineItem, {
292
+ pending: true,
293
+ markLabel: "Upcoming",
294
+ title: "Paid"
295
+ })
296
+ ]
297
+ });
298
+ }
299
+ function States() {
300
+ const [state, setState] = useState("loading");
301
+ return /* @__PURE__ */ jsxs("div", {
302
+ className: "timeline-demo",
303
+ children: [/* @__PURE__ */ jsx(SegmentedControl, {
304
+ "aria-label": "State",
305
+ size: "sm",
306
+ value: state,
307
+ onValueChange: setState,
308
+ options: [
309
+ {
310
+ value: "loading",
311
+ label: "Loading"
312
+ },
313
+ {
314
+ value: "loaded",
315
+ label: "Loaded"
316
+ },
317
+ {
318
+ value: "empty",
319
+ label: "Empty"
320
+ },
321
+ {
322
+ value: "error",
323
+ label: "Error"
324
+ }
325
+ ]
326
+ }), /* @__PURE__ */ jsx("div", {
327
+ className: "timeline-demo__column",
328
+ children: state === "error" ? /* @__PURE__ */ jsx(Alert, {
329
+ tone: "critical",
330
+ actions: /* @__PURE__ */ jsx(Button, {
331
+ size: "sm",
332
+ variant: "secondary",
333
+ children: "Retry"
334
+ }),
335
+ children: "Couldn’t load activity for this record."
336
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Timeline, {
337
+ "aria-label": "Order history",
338
+ loading: state === "loading",
339
+ children: state === "loaded" ? TODAY.map((event) => /* @__PURE__ */ jsx(OrderEntry, { event }, event.id)) : null
340
+ }), state === "loaded" ? /* @__PURE__ */ jsx("div", {
341
+ className: "timeline-demo__more",
342
+ children: /* @__PURE__ */ jsx(Button, {
343
+ size: "sm",
344
+ variant: "secondary",
345
+ children: "Show more"
346
+ })
347
+ }) : null] })
348
+ })]
349
+ });
350
+ }
351
+ function Matrix() {
352
+ return /* @__PURE__ */ jsxs("div", {
353
+ className: "timeline-demo__matrix",
354
+ children: [
355
+ /* @__PURE__ */ jsx(Timeline, {
356
+ "aria-label": "Rings",
357
+ children: TONES.map((each) => /* @__PURE__ */ jsx(TimelineItem, {
358
+ icon: each.icon,
359
+ tone: each.tone,
360
+ title: each.title,
361
+ time: "14:32"
362
+ }, each.tone))
363
+ }),
364
+ /* @__PURE__ */ jsx(Timeline, {
365
+ "aria-label": "Discs",
366
+ variant: "disc",
367
+ children: TONES.map((each) => /* @__PURE__ */ jsx(TimelineItem, {
368
+ icon: each.icon,
369
+ tone: each.tone,
370
+ title: each.title,
371
+ time: "14:32"
372
+ }, each.tone))
373
+ }),
374
+ /* @__PURE__ */ jsxs(Timeline, {
375
+ "aria-label": "Order history",
376
+ children: [/* @__PURE__ */ jsxs(TimelineDay, {
377
+ label: "Today",
378
+ children: [/* @__PURE__ */ jsx(OrderEntry, { event: ORDER[1] }), /* @__PURE__ */ jsx(TimelineItem, {
379
+ tone: "info",
380
+ title: "Customer notified",
381
+ time: "13:00"
382
+ })]
383
+ }), /* @__PURE__ */ jsxs(TimelineDay, {
384
+ label: "Yesterday",
385
+ children: [/* @__PURE__ */ jsx(TimelineItem, {
386
+ icon: /* @__PURE__ */ jsx(PencilSimpleIcon, {}),
387
+ title: "Price changed",
388
+ meta: "by Priya Shah · Staff",
389
+ time: "3 hours ago",
390
+ expandable: true,
391
+ defaultExpanded: true,
392
+ children: /* @__PURE__ */ jsx(DescriptionList, {
393
+ size: "sm",
394
+ items: AUDIT[0].rows,
395
+ "aria-label": "Changes"
396
+ })
397
+ }), /* @__PURE__ */ jsx(TimelineItem, {
398
+ icon: /* @__PURE__ */ jsx(PencilSimpleIcon, {}),
399
+ title: "Stock adjusted",
400
+ time: "yesterday",
401
+ expandable: true,
402
+ children: "From 4 to 3"
403
+ })]
404
+ })]
405
+ }),
406
+ /* @__PURE__ */ jsxs(Timeline, {
407
+ "aria-label": "Times at the end",
408
+ timeAlign: "end",
409
+ children: [/* @__PURE__ */ jsx(TimelineItem, {
410
+ icon: /* @__PURE__ */ jsx(PackageIcon, {}),
411
+ title: "Packed",
412
+ meta: "by Priya Shah · Staff",
413
+ time: "3 hours ago"
414
+ }), /* @__PURE__ */ jsx(TimelineItem, {
415
+ icon: /* @__PURE__ */ jsx(TruckIcon, {}),
416
+ tone: "positive",
417
+ title: "Delivered",
418
+ time: "12 Oct"
419
+ })]
420
+ }),
421
+ /* @__PURE__ */ jsxs(Timeline, {
422
+ "aria-label": "Lifecycle",
423
+ children: [/* @__PURE__ */ jsx(TimelineItem, {
424
+ icon: /* @__PURE__ */ jsx(TruckIcon, {}),
425
+ tone: "positive",
426
+ markLabel: "Completed",
427
+ title: "Delivered",
428
+ time: "12 Oct"
429
+ }), /* @__PURE__ */ jsx(TimelineItem, {
430
+ pending: true,
431
+ markLabel: "Upcoming",
432
+ title: "Review requested"
433
+ })]
434
+ }),
435
+ /* @__PURE__ */ jsxs(Timeline, {
436
+ "aria-label": "Compact",
437
+ density: "compact",
438
+ children: [/* @__PURE__ */ jsx(TimelineItem, {
439
+ icon: /* @__PURE__ */ jsx(CreditCardIcon, {}),
440
+ tone: "positive",
441
+ title: "Paid",
442
+ time: "14:32"
443
+ }), /* @__PURE__ */ jsx(TimelineItem, {
444
+ icon: /* @__PURE__ */ jsx(ShoppingCartIcon, {}),
445
+ tone: "accent",
446
+ title: "Order placed",
447
+ time: "12:58"
448
+ })]
449
+ }),
450
+ /* @__PURE__ */ jsx(Timeline, {
451
+ "aria-label": "Loading",
452
+ loading: true,
453
+ loadingCount: 2
454
+ }),
455
+ /* @__PURE__ */ jsx(Timeline, { "aria-label": "Empty" })
456
+ ]
457
+ });
458
+ }
459
+ /** The same history in French, to show the words and the locale being yours. */
460
+ var FRENCH = {
461
+ paid: "Paiement de 72,00 £ reçu",
462
+ placed: "Commande passée sur la boutique en ligne",
463
+ address: "Adresse de livraison mise à jour"
464
+ };
465
+ var FRENCH_AGO = { justNow: "À l'instant" };
466
+ var code = (value) => /* @__PURE__ */ jsx("code", { children: value });
467
+ /** The home page's sales tape: the latest orders on a rail, the time before it, each order a way in. */
468
+ var TAPE = [
469
+ {
470
+ id: "1052",
471
+ at: "2026-10-12T14:41:00Z",
472
+ customer: "Priya Shah",
473
+ items: 3,
474
+ amount: "£1,160.00",
475
+ status: "Unfulfilled",
476
+ tone: "warning"
477
+ },
478
+ {
479
+ id: "1051",
480
+ at: "2026-10-12T13:58:00Z",
481
+ customer: "Callum Reid",
482
+ items: 1,
483
+ amount: "£24.00",
484
+ status: "Refunded",
485
+ tone: "negative"
486
+ },
487
+ {
488
+ id: "1050",
489
+ at: "2026-10-12T12:20:00Z",
490
+ customer: "Amara Okafor",
491
+ items: 2,
492
+ amount: "£312.50",
493
+ status: "Shipped",
494
+ tone: "positive"
495
+ }
496
+ ];
497
+ function SalesTape() {
498
+ const [arrived, setArrived] = useState(false);
499
+ const rows = arrived ? [{
500
+ id: "1053",
501
+ at: "2026-10-12T14:59:00Z",
502
+ customer: "Harbour Desk Co",
503
+ items: 6,
504
+ amount: "£2,480.00",
505
+ status: "Unfulfilled",
506
+ tone: "warning"
507
+ }, ...TAPE] : TAPE;
508
+ return /* @__PURE__ */ jsxs("div", {
509
+ className: "timeline-tape",
510
+ children: [/* @__PURE__ */ jsx(Timeline, {
511
+ "aria-label": "Latest orders",
512
+ timeAlign: "column",
513
+ timeZone: ZONE,
514
+ children: rows.map((row) => /* @__PURE__ */ jsx(TimelineItem, {
515
+ tone: row.tone,
516
+ fresh: row.id === "1053",
517
+ dateTime: row.at,
518
+ title: row.customer,
519
+ meta: `#${row.id} · ${row.items} ${row.items === 1 ? "item" : "items"}`,
520
+ badge: /* @__PURE__ */ jsx(Badge, {
521
+ size: "sm",
522
+ tone: row.tone,
523
+ children: row.status
524
+ }),
525
+ figure: row.amount,
526
+ figureStruck: row.status === "Refunded",
527
+ href: "#feeds"
528
+ }, row.id))
529
+ }), /* @__PURE__ */ jsx(Button, {
530
+ size: "sm",
531
+ variant: "secondary",
532
+ onClick: () => setArrived(!arrived),
533
+ children: arrived ? "Reset the tape" : "An order arrives"
534
+ })]
535
+ });
536
+ }
537
+ function Page() {
538
+ return /* @__PURE__ */ jsxs(DocPage, {
539
+ title: "Timeline",
540
+ status: "new",
541
+ importNames: [
542
+ "Timeline",
543
+ "TimelineDay",
544
+ "TimelineItem"
545
+ ],
546
+ lead: "A rail of dated events, newest first: an order's history, an audit log, a list of versions. Each event hangs off a mark, reads as a line of ink with its time beside it, and can keep its detail behind a toggle. Days divide the rail.",
547
+ children: [
548
+ /* @__PURE__ */ jsxs(Section$1, {
549
+ id: "basics",
550
+ title: "Basics",
551
+ description: /* @__PURE__ */ jsxs("p", { children: [
552
+ "Give a ",
553
+ /* @__PURE__ */ jsx("code", { children: "Timeline" }),
554
+ " its ",
555
+ /* @__PURE__ */ jsx("code", { children: "TimelineItem" }),
556
+ "s, newest first. Each has a ",
557
+ /* @__PURE__ */ jsx("code", { children: "title" }),
558
+ " (what happened, in words), an ",
559
+ /* @__PURE__ */ jsx("code", { children: "icon" }),
560
+ " and a ",
561
+ /* @__PURE__ */ jsx("code", { children: "tone" }),
562
+ " for its mark, and a ",
563
+ /* @__PURE__ */ jsx("code", { children: "time" }),
564
+ ". A timeline is an ordered list, so name it with ",
565
+ /* @__PURE__ */ jsx("code", { children: "aria-label" }),
566
+ ". The mark and the rail are decoration: the title has to say what happened."
567
+ ] }),
568
+ children: [/* @__PURE__ */ jsx(Example, {
569
+ align: "fill",
570
+ code: `
571
+ <Timeline aria-label="Order history">
572
+ <TimelineItem icon={<CreditCardIcon />} tone="positive" title="Payment of £72.00 received" time="14:32" dateTime="2026-10-12T13:32:00Z" />
573
+ <TimelineItem
574
+ avatar={<Avatar name="Priya Shah" />}
575
+ title="Priya Shah"
576
+ time="14:05"
577
+ badge={<Badge tone="info" size="sm">Customer notified</Badge>}
578
+ >
579
+ The customer asked for delivery on Friday, so the parcel is held until Thursday.
580
+ </TimelineItem>
581
+ <TimelineItem icon={<WarningCircleIcon />} tone="negative" title="Payment failed: card declined" time="13:05" />
582
+ <TimelineItem icon={<ShoppingCartIcon />} tone="accent" title="Order placed on the online store" time="12:58" />
583
+ </Timeline>`,
584
+ children: /* @__PURE__ */ jsx("div", {
585
+ className: "timeline-demo__column",
586
+ children: /* @__PURE__ */ jsx(Timeline, {
587
+ "aria-label": "Order history",
588
+ children: TODAY.map((event) => /* @__PURE__ */ jsx(OrderEntry, { event }, event.id))
589
+ })
590
+ })
591
+ }), /* @__PURE__ */ jsxs(Note, {
592
+ title: "Newest first, and one thing per line",
593
+ children: [
594
+ "The rail runs between events and stops at the last one, and the timeline adds no space above or below itself, so it sits straight in a ",
595
+ /* @__PURE__ */ jsx(DocLink, {
596
+ to: "/components/card",
597
+ children: "Card"
598
+ }),
599
+ " or under a heading."
600
+ ]
601
+ })]
602
+ }),
603
+ /* @__PURE__ */ jsx(Section$1, {
604
+ id: "days",
605
+ title: "Days",
606
+ description: /* @__PURE__ */ jsxs("p", { children: [
607
+ "Wrap a day's events in a ",
608
+ /* @__PURE__ */ jsx("code", { children: "TimelineDay" }),
609
+ " and the rail breaks between days: a centred label between two hairlines. The label names the day's list for a screen reader. ",
610
+ /* @__PURE__ */ jsx("code", { children: "groupTimelineByDay" }),
611
+ " sorts a list into days for you and",
612
+ " ",
613
+ /* @__PURE__ */ jsx("code", { children: "formatTimelineDay" }),
614
+ " writes the label: \"Today\", \"Yesterday\", then \"12 October 2026\". Both cut the days in the",
615
+ " ",
616
+ /* @__PURE__ */ jsx("code", { children: "timeZone" }),
617
+ " you give them, which should be your store's."
618
+ ] }),
619
+ children: /* @__PURE__ */ jsx(Example, {
620
+ align: "fill",
621
+ code: `
622
+ groupTimelineByDay(events, (event) => event.createdAt, { timeZone: 'Europe/London' }).map((day) => (
623
+ <TimelineDay key={day.key} label={day.label}>
624
+ {day.items.map((event) => (
625
+ <TimelineItem
626
+ key={event.id}
627
+ icon={event.icon}
628
+ tone={event.tone}
629
+ title={event.title}
630
+ time={formatTimelineTime(event.createdAt, { timeZone: 'Europe/London' })}
631
+ dateTime={event.createdAt}
632
+ />
633
+ ))}
634
+ </TimelineDay>
635
+ ))`,
636
+ children: /* @__PURE__ */ jsx("div", {
637
+ className: "timeline-demo__column",
638
+ children: /* @__PURE__ */ jsx(Timeline, {
639
+ "aria-label": "Order history",
640
+ children: groupTimelineByDay(ORDER, (event) => event.at, DAYS).map((day) => /* @__PURE__ */ jsx(TimelineDay, {
641
+ label: day.label,
642
+ children: day.items.map((event) => /* @__PURE__ */ jsx(OrderEntry, { event }, event.id))
643
+ }, day.key))
644
+ })
645
+ })
646
+ })
647
+ }),
648
+ /* @__PURE__ */ jsxs(Section$1, {
649
+ id: "marks",
650
+ title: "Marks and tone",
651
+ description: /* @__PURE__ */ jsxs("p", { children: [
652
+ "A mark says what kind of event it was, at a glance. ",
653
+ /* @__PURE__ */ jsx("code", { children: "ring" }),
654
+ " (default) is a hairline ring and a glyph in the event's tone; ",
655
+ /* @__PURE__ */ jsx("code", { children: "disc" }),
656
+ " is a muted pebble with the glyph in the tone. The tone is one of the six that ",
657
+ /* @__PURE__ */ jsx("code", { children: "Badge" }),
658
+ " and",
659
+ " ",
660
+ /* @__PURE__ */ jsx("code", { children: "StatusDot" }),
661
+ " draw: ",
662
+ /* @__PURE__ */ jsx("code", { children: "neutral" }),
663
+ " (default), ",
664
+ /* @__PURE__ */ jsx("code", { children: "accent" }),
665
+ ", ",
666
+ /* @__PURE__ */ jsx("code", { children: "positive" }),
667
+ ", ",
668
+ /* @__PURE__ */ jsx("code", { children: "negative" }),
669
+ ",",
670
+ " ",
671
+ /* @__PURE__ */ jsx("code", { children: "warning" }),
672
+ " and ",
673
+ /* @__PURE__ */ jsx("code", { children: "info" }),
674
+ "."
675
+ ] }),
676
+ children: [
677
+ /* @__PURE__ */ jsx(Example, {
678
+ align: "fill",
679
+ code: `
680
+ <Timeline aria-label="Order history">
681
+ <TimelineItem icon={<PencilSimpleIcon />} tone="neutral" title="Order updated" />
682
+ <TimelineItem icon={<ShoppingCartIcon />} tone="accent" title="Order placed on the online store" />
683
+ <TimelineItem icon={<CreditCardIcon />} tone="positive" title="Payment of £72.00 received" />
684
+ <TimelineItem icon={<ArrowCounterClockwiseIcon />} tone="warning" title="Payment refunded in part" />
685
+ <TimelineItem icon={<WarningCircleIcon />} tone="negative" title="Payment failed: card declined" />
686
+ <TimelineItem icon={<EnvelopeSimpleIcon />} tone="info" title="Customer notified by email" />
687
+ </Timeline>
688
+
689
+ <Timeline aria-label="Order history" variant="disc">…</Timeline>`,
690
+ children: /* @__PURE__ */ jsxs("div", {
691
+ className: "timeline-demo__pair",
692
+ children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
693
+ className: "timeline-demo__caption",
694
+ children: "Ring (default)"
695
+ }), /* @__PURE__ */ jsx(ToneList, {})] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
696
+ className: "timeline-demo__caption",
697
+ children: "Disc"
698
+ }), /* @__PURE__ */ jsx(ToneList, { variant: "disc" })] })]
699
+ })
700
+ }),
701
+ /* @__PURE__ */ jsx(Note, {
702
+ title: "Most events are neutral or accent",
703
+ children: "A tone is for the event that deserves the eye: the failed payment, the delivery. If every event has a colour, none stands out, and the words still have to carry the meaning for anyone who cannot tell the colours apart."
704
+ }),
705
+ /* @__PURE__ */ jsx(SubSection, {
706
+ title: "An icon, a dot or an avatar",
707
+ description: /* @__PURE__ */ jsxs("p", { children: [
708
+ "The mark is the ",
709
+ /* @__PURE__ */ jsx("code", { children: "avatar" }),
710
+ " if you pass one (a comment or a note: the title is then the person's name, a little heavier, and the children are what they wrote), the ",
711
+ /* @__PURE__ */ jsx("code", { children: "icon" }),
712
+ " in a ring if you pass one, and a",
713
+ " ",
714
+ /* @__PURE__ */ jsx(DocLink, {
715
+ to: "/components/status-dot",
716
+ children: "status dot"
717
+ }),
718
+ " in the tone if you pass neither. An icon is 13px in a ring and 16px in a disc; an avatar is drawn at the mark's size."
719
+ ] }),
720
+ children: /* @__PURE__ */ jsx(Example, {
721
+ align: "fill",
722
+ code: `
723
+ <TimelineItem icon={<TruckIcon />} tone="positive" title="Delivered" />
724
+ <TimelineItem tone="accent" title="Order placed" />
725
+ <TimelineItem avatar={<Avatar name="Priya Shah" />} title="Priya Shah">Packed and ready.</TimelineItem>`,
726
+ children: /* @__PURE__ */ jsx("div", {
727
+ className: "timeline-demo__column",
728
+ children: /* @__PURE__ */ jsxs(Timeline, {
729
+ "aria-label": "Marks",
730
+ children: [
731
+ /* @__PURE__ */ jsx(TimelineItem, {
732
+ icon: /* @__PURE__ */ jsx(TruckIcon, {}),
733
+ tone: "positive",
734
+ title: "Delivered by Royal Mail 24",
735
+ time: "12 Oct"
736
+ }),
737
+ /* @__PURE__ */ jsx(TimelineItem, {
738
+ tone: "accent",
739
+ title: "Order placed on the online store",
740
+ time: "12 Oct"
741
+ }),
742
+ /* @__PURE__ */ jsx(TimelineItem, {
743
+ avatar: /* @__PURE__ */ jsx(Avatar, { name: "Priya Shah" }),
744
+ title: "Priya Shah",
745
+ time: "12 Oct",
746
+ children: "Packed and ready for the 3pm collection."
747
+ })
748
+ ]
749
+ })
750
+ })
751
+ })
752
+ }),
753
+ /* @__PURE__ */ jsx(SubSection, {
754
+ title: "Tone from a status",
755
+ description: /* @__PURE__ */ jsxs("p", { children: [
756
+ "Give an item a ",
757
+ /* @__PURE__ */ jsx("code", { children: "status" }),
758
+ " (and its ",
759
+ /* @__PURE__ */ jsx("code", { children: "domain" }),
760
+ ") instead of a ",
761
+ /* @__PURE__ */ jsx("code", { children: "tone" }),
762
+ " and it reads the tone from the",
763
+ " ",
764
+ /* @__PURE__ */ jsx(DocLink, {
765
+ to: "/components/status-badge",
766
+ children: "status registry"
767
+ }),
768
+ ", exactly as a status badge does, so an order event and the order's badge never disagree. A host's own statuses come from a ",
769
+ /* @__PURE__ */ jsx("code", { children: "StatusRegistryProvider" }),
770
+ ". An explicit",
771
+ " ",
772
+ /* @__PURE__ */ jsx("code", { children: "tone" }),
773
+ " wins."
774
+ ] }),
775
+ children: /* @__PURE__ */ jsx(Example, {
776
+ align: "fill",
777
+ code: `
778
+ <TimelineItem icon={<CreditCardIcon />} status="paid" domain="payment" title="Paid" />
779
+ <TimelineItem icon={<ArrowCounterClockwiseIcon />} status="refunded" domain="payment" title="Refunded" />
780
+ <TimelineItem icon={<WarningCircleIcon />} status="failed" domain="payment" title="Failed" />`,
781
+ children: /* @__PURE__ */ jsx("div", {
782
+ className: "timeline-demo__column",
783
+ children: /* @__PURE__ */ jsxs(Timeline, {
784
+ "aria-label": "Payment history",
785
+ children: [
786
+ /* @__PURE__ */ jsx(TimelineItem, {
787
+ icon: /* @__PURE__ */ jsx(CreditCardIcon, {}),
788
+ status: "paid",
789
+ domain: "payment",
790
+ title: "Payment of £72.00 received",
791
+ time: "14:32"
792
+ }),
793
+ /* @__PURE__ */ jsx(TimelineItem, {
794
+ icon: /* @__PURE__ */ jsx(ArrowCounterClockwiseIcon, {}),
795
+ status: "refunded",
796
+ domain: "payment",
797
+ title: "£12.00 refunded",
798
+ time: "13:50"
799
+ }),
800
+ /* @__PURE__ */ jsx(TimelineItem, {
801
+ icon: /* @__PURE__ */ jsx(WarningCircleIcon, {}),
802
+ status: "failed",
803
+ domain: "payment",
804
+ title: "Payment failed: card declined",
805
+ time: "13:05"
806
+ })
807
+ ]
808
+ })
809
+ })
810
+ })
811
+ }),
812
+ /* @__PURE__ */ jsx(SubSection, {
813
+ title: "A step still to come",
814
+ description: /* @__PURE__ */ jsxs("p", { children: [
815
+ /* @__PURE__ */ jsx("code", { children: "pending" }),
816
+ " draws a dashed ring and quiet words, for a lifecycle rather than a history: what has happened to a commission and what is left. A mark carries no meaning alone, so name it with ",
817
+ /* @__PURE__ */ jsx("code", { children: "markLabel" }),
818
+ " (\"Completed\", \"Upcoming\") when the title does not say."
819
+ ] }),
820
+ children: /* @__PURE__ */ jsx(Example, {
821
+ align: "fill",
822
+ code: `
823
+ <TimelineItem icon={<CheckCircleIcon />} tone="positive" markLabel="Completed" title="Commission earned" time="12 Oct" />
824
+ <TimelineItem tone="accent" markLabel="In progress" title="Held for 30 days" meta="Until 11 Nov 2026" />
825
+ <TimelineItem pending markLabel="Upcoming" title="Ready to pay out" />
826
+ <TimelineItem pending markLabel="Upcoming" title="Paid" />`,
827
+ children: /* @__PURE__ */ jsx("div", {
828
+ className: "timeline-demo__column",
829
+ children: /* @__PURE__ */ jsx(Journey, {})
830
+ })
831
+ })
832
+ })
833
+ ]
834
+ }),
835
+ /* @__PURE__ */ jsx(Section$1, {
836
+ id: "content",
837
+ title: "What an event carries",
838
+ description: /* @__PURE__ */ jsxs("p", { children: [
839
+ "After the title come a ",
840
+ /* @__PURE__ */ jsx("code", { children: "badge" }),
841
+ " (one or more: \"Customer notified\", \"Published\"), the ",
842
+ /* @__PURE__ */ jsx("code", { children: "time" }),
843
+ " and any",
844
+ " ",
845
+ /* @__PURE__ */ jsx("code", { children: "actions" }),
846
+ ". Under them, a quiet ",
847
+ /* @__PURE__ */ jsx("code", { children: "meta" }),
848
+ " line (who did it) and the ",
849
+ /* @__PURE__ */ jsx("code", { children: "children" }),
850
+ " (a comment's text). Pass ",
851
+ /* @__PURE__ */ jsx("code", { children: "dateTime" }),
852
+ " and the time becomes a ",
853
+ /* @__PURE__ */ jsx("code", { children: "time" }),
854
+ " element a machine can read; pass ",
855
+ /* @__PURE__ */ jsx("code", { children: "timeTitle" }),
856
+ " for the full date (\"12 October 2026, 13:00\") on hover when the time is relative. A ",
857
+ /* @__PURE__ */ jsx("code", { children: "title" }),
858
+ " shows to a pointer only: a keyboard or a touch screen never sees it, so for a record read slowly write the full date where everyone can reach it, and keep ",
859
+ /* @__PURE__ */ jsx("code", { children: "dateTime" }),
860
+ " for what a machine reads. ",
861
+ /* @__PURE__ */ jsx("code", { children: "timeAlign=\"end\"" }),
862
+ " pushes every time to the end of its line, so they make a column."
863
+ ] }),
864
+ children: /* @__PURE__ */ jsx(Example, {
865
+ align: "fill",
866
+ code: `
867
+ <Timeline aria-label="Version history" variant="disc">
868
+ <TimelineItem
869
+ icon={<PackageIcon />}
870
+ tone="positive"
871
+ title="Version 1.4.0"
872
+ badge={<Badge tone="positive" size="sm">Published</Badge>}
873
+ meta="Priya Shah · 3 days ago"
874
+ >
875
+ Wider product grid on large screens and a new footer layout.
876
+ </TimelineItem>
877
+ <TimelineItem
878
+ icon={<PackageIcon />}
879
+ title="Version 1.3.2"
880
+ meta="Priya Shah · 3 Oct 2026"
881
+ actions={<Button size="sm" variant="secondary">Roll back</Button>}
882
+ >
883
+ Fixes the cart drawer on small phones.
884
+ </TimelineItem>
885
+ </Timeline>`,
886
+ children: /* @__PURE__ */ jsx("div", {
887
+ className: "timeline-demo__column",
888
+ children: /* @__PURE__ */ jsx(VersionHistory, {})
889
+ })
890
+ })
891
+ }),
892
+ /* @__PURE__ */ jsxs(Section$1, {
893
+ id: "details",
894
+ title: "Detail behind a toggle",
895
+ description: /* @__PURE__ */ jsxs("p", { children: [
896
+ "Mark an item ",
897
+ /* @__PURE__ */ jsx("code", { children: "expandable" }),
898
+ " and its ",
899
+ /* @__PURE__ */ jsx("code", { children: "children" }),
900
+ " wait behind a \"Show details\" button, for a diff or a block of JSON that most people will not read. The button has ",
901
+ /* @__PURE__ */ jsx("code", { children: "aria-expanded" }),
902
+ " and ",
903
+ /* @__PURE__ */ jsx("code", { children: "aria-controls" }),
904
+ ", is described by the event's title (so ten identical buttons are told apart), and the details are not rendered until they are opened. Start it open with ",
905
+ /* @__PURE__ */ jsx("code", { children: "defaultExpanded" }),
906
+ ", or control it with ",
907
+ /* @__PURE__ */ jsx("code", { children: "expanded" }),
908
+ " and ",
909
+ /* @__PURE__ */ jsx("code", { children: "onExpandedChange" }),
910
+ ", for one open at a time."
911
+ ] }),
912
+ children: [
913
+ /* @__PURE__ */ jsx(Example, {
914
+ align: "fill",
915
+ code: `
916
+ <Timeline aria-label="Audit log" timeAlign="end">
917
+ <TimelineItem
918
+ icon={<PencilSimpleIcon />}
919
+ title="Price changed on Oak side table"
920
+ meta="by Priya Shah · Staff"
921
+ time={formatRelativeTime(entry.createdAt)}
922
+ dateTime={entry.createdAt}
923
+ expandable
924
+ >
925
+ <DescriptionList size="sm" items={changes} aria-label="Changes" />
926
+ </TimelineItem>
927
+ </Timeline>`,
928
+ children: /* @__PURE__ */ jsx("div", {
929
+ className: "timeline-demo__column",
930
+ children: /* @__PURE__ */ jsx(AuditLog, {})
931
+ })
932
+ }),
933
+ /* @__PURE__ */ jsxs(Note, {
934
+ title: "A wide diff or block of JSON",
935
+ children: [
936
+ "A block wider than the column scrolls sideways inside the details. Give it its own scroll container with",
937
+ " ",
938
+ /* @__PURE__ */ jsxs("code", { children: ["tabIndex=", "{0}"] }),
939
+ " and a name (",
940
+ /* @__PURE__ */ jsx("code", { children: "<pre tabIndex={0} aria-label=\"Raw payload\">" }),
941
+ "), so a keyboard can reach it where the browser does not make a scroller focusable: Safari does not."
942
+ ]
943
+ }),
944
+ /* @__PURE__ */ jsx(SubSection, {
945
+ title: "One open at a time",
946
+ description: /* @__PURE__ */ jsx("p", { children: "Hold the open event's key in state and pass it to each item." }),
947
+ children: /* @__PURE__ */ jsx(Example, {
948
+ align: "fill",
949
+ code: `
950
+ const [open, setOpen] = useState<string | null>(null)
951
+
952
+ <TimelineItem
953
+ expandable
954
+ expanded={open === entry.id}
955
+ onExpandedChange={(next) => setOpen(next ? entry.id : null)}
956
+ >…</TimelineItem>`,
957
+ children: /* @__PURE__ */ jsx("div", {
958
+ className: "timeline-demo__column",
959
+ children: /* @__PURE__ */ jsx(AuditLog, { one: true })
960
+ })
961
+ })
962
+ })
963
+ ]
964
+ }),
965
+ /* @__PURE__ */ jsxs(Section$1, {
966
+ id: "feeds",
967
+ title: "Feeds",
968
+ description: /* @__PURE__ */ jsxs("p", { children: [
969
+ "The home page's sales tape. ",
970
+ /* @__PURE__ */ jsx("code", { children: "timeAlign=\"column\"" }),
971
+ " puts each time in a column of its own before the rail, written from the event's ",
972
+ /* @__PURE__ */ jsx("code", { children: "dateTime" }),
973
+ " in the timeline's ",
974
+ /* @__PURE__ */ jsx("code", { children: "timeZone" }),
975
+ " (the store's, so a London store reads its own clock anywhere). ",
976
+ /* @__PURE__ */ jsx("code", { children: "href" }),
977
+ " (or ",
978
+ /* @__PURE__ */ jsx("code", { children: "onClick" }),
979
+ ", or a router link with",
980
+ " ",
981
+ /* @__PURE__ */ jsx("code", { children: "asChild" }),
982
+ ") makes the whole event one way in, and ",
983
+ /* @__PURE__ */ jsx("code", { children: "figure" }),
984
+ " sets an amount in an end column beside the title and the meta line, struck with ",
985
+ /* @__PURE__ */ jsx("code", { children: "figureStruck" }),
986
+ " for money that went back. An event that has just arrived is",
987
+ " ",
988
+ /* @__PURE__ */ jsx("code", { children: "fresh" }),
989
+ ": it prints in from above and its mark sends out two rings. Add an order."
990
+ ] }),
991
+ children: [
992
+ /* @__PURE__ */ jsx(Example, {
993
+ align: "fill",
994
+ code: `
995
+ <Timeline aria-label="Latest orders" timeAlign="column" timeZone={store.timeZone}>
996
+ {orders.map((order) => (
997
+ <TimelineItem
998
+ key={order.id}
999
+ tone={order.tone}
1000
+ fresh={arrivedSinceFirstPaint.has(order.id)}
1001
+ dateTime={order.createdAt}
1002
+ title={order.customerName}
1003
+ meta={\`#\${order.number} · \${order.items} items\`}
1004
+ badge={<Badge size="sm" tone={order.tone}>{order.statusLabel}</Badge>}
1005
+ figure={order.total}
1006
+ figureStruck={order.refunded}
1007
+ href={\`/orders/\${order.id}\`}
1008
+ />
1009
+ ))}
1010
+ </Timeline>`,
1011
+ children: /* @__PURE__ */ jsx(SalesTape, {})
1012
+ }),
1013
+ /* @__PURE__ */ jsx(SubSection, {
1014
+ title: "On a twelve-hour clock",
1015
+ description: /* @__PURE__ */ jsxs("p", { children: [
1016
+ "A ",
1017
+ /* @__PURE__ */ jsx("code", { children: "locale" }),
1018
+ " that writes the time on a twelve-hour clock (\"02:32 PM\") widens the column from 38px to 56px, so the rail stays straight down the marks."
1019
+ ] }),
1020
+ children: /* @__PURE__ */ jsx(Example, {
1021
+ align: "fill",
1022
+ code: `<Timeline aria-label="Latest orders" timeAlign="column" timeZone="America/New_York" locale="en-US">…</Timeline>`,
1023
+ children: /* @__PURE__ */ jsx("div", {
1024
+ className: "timeline-tape",
1025
+ children: /* @__PURE__ */ jsx(Timeline, {
1026
+ "aria-label": "Latest orders, New York",
1027
+ timeAlign: "column",
1028
+ timeZone: "America/New_York",
1029
+ locale: "en-US",
1030
+ children: TAPE.map((row) => /* @__PURE__ */ jsx(TimelineItem, {
1031
+ tone: row.tone,
1032
+ dateTime: row.at,
1033
+ title: row.customer,
1034
+ meta: `#${row.id} · ${row.items} ${row.items === 1 ? "item" : "items"}`,
1035
+ figure: row.amount.replace("£", "$"),
1036
+ figureStruck: row.status === "Refunded"
1037
+ }, row.id))
1038
+ })
1039
+ })
1040
+ })
1041
+ }),
1042
+ /* @__PURE__ */ jsx(Note, {
1043
+ title: "Struck is not said",
1044
+ children: "A screen reader does not read a line through the figure: say what happened in words, as the Refunded badge does."
1045
+ })
1046
+ ]
1047
+ }),
1048
+ /* @__PURE__ */ jsx(Section$1, {
1049
+ id: "density",
1050
+ title: "Compact",
1051
+ description: /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("code", { children: "density=\"compact\"" }), " draws 24px marks and 12px between events, for a side column or a card that sits beside a record. The kit's own addition: the vendor dashboard has one density."] }),
1052
+ children: /* @__PURE__ */ jsx(Example, {
1053
+ align: "start",
1054
+ code: `
1055
+ <Card variant="sunken" padding="sm">
1056
+ <Timeline aria-label="Recent activity" density="compact">…</Timeline>
1057
+ </Card>`,
1058
+ children: /* @__PURE__ */ jsx(Card, {
1059
+ variant: "sunken",
1060
+ padding: "sm",
1061
+ className: "timeline-demo__side",
1062
+ children: /* @__PURE__ */ jsxs(Timeline, {
1063
+ "aria-label": "Recent activity",
1064
+ density: "compact",
1065
+ children: [
1066
+ /* @__PURE__ */ jsx(TimelineItem, {
1067
+ icon: /* @__PURE__ */ jsx(CreditCardIcon, {}),
1068
+ tone: "positive",
1069
+ title: "Payment received",
1070
+ time: "14:32"
1071
+ }),
1072
+ /* @__PURE__ */ jsx(TimelineItem, {
1073
+ icon: /* @__PURE__ */ jsx(ShoppingCartIcon, {}),
1074
+ tone: "accent",
1075
+ title: "Order placed",
1076
+ time: "12:58"
1077
+ }),
1078
+ /* @__PURE__ */ jsx(TimelineItem, {
1079
+ icon: /* @__PURE__ */ jsx(PencilSimpleIcon, {}),
1080
+ title: "Address updated",
1081
+ time: "12:50"
1082
+ })
1083
+ ]
1084
+ })
1085
+ })
1086
+ })
1087
+ }),
1088
+ /* @__PURE__ */ jsx(Section$1, {
1089
+ id: "states",
1090
+ title: "Loading, empty and error",
1091
+ description: /* @__PURE__ */ jsxs("p", { children: [
1092
+ /* @__PURE__ */ jsx("code", { children: "loading" }),
1093
+ " draws skeleton events in place of the real ones (three, or ",
1094
+ /* @__PURE__ */ jsx("code", { children: "loadingCount" }),
1095
+ ") and says",
1096
+ " ",
1097
+ /* @__PURE__ */ jsx("code", { children: "loadingLabel" }),
1098
+ " to a screen reader, once, a moment after it appears. With no events it draws one quiet line, ",
1099
+ /* @__PURE__ */ jsx("code", { children: "empty" }),
1100
+ ": never \"get started\" copy on a history that is simply new. A failed load is not the timeline's to draw: put an",
1101
+ " ",
1102
+ /* @__PURE__ */ jsx(DocLink, {
1103
+ to: "/components/alert",
1104
+ children: "Alert"
1105
+ }),
1106
+ " with a Retry in its place. \"Show more\" is a button after the list."
1107
+ ] }),
1108
+ children: /* @__PURE__ */ jsx(Example, {
1109
+ align: "fill",
1110
+ code: `
1111
+ <Timeline aria-label="Order history" loading={isLoading} empty="No activity yet.">
1112
+ {events.map(renderEvent)}
1113
+ </Timeline>
1114
+
1115
+ {hasNextPage ? <Button size="sm" variant="secondary" onClick={fetchNextPage}>Show more</Button> : null}
1116
+
1117
+ {isError ? <Alert tone="critical" actions={<Button size="sm" variant="secondary" onClick={refetch}>Retry</Button>}>Couldn’t load activity for this record.</Alert> : null}`,
1118
+ children: /* @__PURE__ */ jsx(States, {})
1119
+ })
1120
+ }),
1121
+ /* @__PURE__ */ jsxs(Section$1, {
1122
+ id: "dates",
1123
+ title: "Dates and words",
1124
+ description: /* @__PURE__ */ jsxs("p", { children: [
1125
+ "The kit has no locale files, so \"Today\", \"Yesterday\" and \"Just now\" are written in English by default and are yours to replace. Four functions write them, from ",
1126
+ /* @__PURE__ */ jsx("code", { children: "Intl" }),
1127
+ ", in the ",
1128
+ /* @__PURE__ */ jsx("code", { children: "locale" }),
1129
+ " and ",
1130
+ /* @__PURE__ */ jsx("code", { children: "timeZone" }),
1131
+ " you give them, and measure \"now\" from the ",
1132
+ /* @__PURE__ */ jsx("code", { children: "now" }),
1133
+ " you give them (the clock when you give none). ",
1134
+ /* @__PURE__ */ jsx("code", { children: "locale" }),
1135
+ " spells a date, the month's name and the order of it, and says \"5 minutes ago\" in its own words; the day words and \"Just now\" come from ",
1136
+ /* @__PURE__ */ jsx("code", { children: "labels" }),
1137
+ ", in English until you give yours. A ",
1138
+ /* @__PURE__ */ jsx("code", { children: "YYYY-MM-DD" }),
1139
+ " string is a calendar day, not an instant, so it is the same day in every time zone. The spelling of a month is the platform's, except that English September is always \"Sep\", where current browsers write \"Sept\": pass ",
1140
+ /* @__PURE__ */ jsx("code", { children: "dateFormat" }),
1141
+ " for another. A date that is missing or cannot be read is \"Unknown date\" in a group, and nothing in a time."
1142
+ ] }),
1143
+ children: [/* @__PURE__ */ jsx(DocTable, {
1144
+ columns: [
1145
+ "Function",
1146
+ "Writes",
1147
+ "Default words",
1148
+ "Yours"
1149
+ ],
1150
+ rows: [
1151
+ [
1152
+ code("formatTimelineDay(date, options)"),
1153
+ "The day a group falls on.",
1154
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1155
+ formatTimelineDay("2026-10-12T11:00:00Z", DAYS),
1156
+ ", ",
1157
+ formatTimelineDay("2026-10-11T11:00:00Z", DAYS),
1158
+ ",",
1159
+ " ",
1160
+ formatTimelineDay("2026-10-05T11:00:00Z", DAYS)
1161
+ ] }),
1162
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1163
+ /* @__PURE__ */ jsx("code", { children: "labels" }),
1164
+ " (",
1165
+ code("today"),
1166
+ ", ",
1167
+ code("yesterday"),
1168
+ ", ",
1169
+ code("unknown"),
1170
+ "), ",
1171
+ /* @__PURE__ */ jsx("code", { children: "locale" }),
1172
+ ", ",
1173
+ /* @__PURE__ */ jsx("code", { children: "dateFormat" })
1174
+ ] })
1175
+ ],
1176
+ [
1177
+ code("formatRelativeTime(date, options)"),
1178
+ "How long ago, in whole units, counted down: the same words as DateTime and the notification list.",
1179
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1180
+ formatRelativeTime("2026-10-12T14:59:30Z", DAYS),
1181
+ ", ",
1182
+ formatRelativeTime("2026-10-12T14:55:00Z", DAYS),
1183
+ ",",
1184
+ " ",
1185
+ formatRelativeTime("2026-10-12T12:00:00Z", DAYS),
1186
+ ", ",
1187
+ formatRelativeTime("2026-10-10T12:00:00Z", DAYS),
1188
+ ",",
1189
+ " ",
1190
+ formatRelativeTime("2026-10-01T12:00:00Z", DAYS)
1191
+ ] }),
1192
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1193
+ /* @__PURE__ */ jsx("code", { children: "labels" }),
1194
+ " (",
1195
+ code("justNow"),
1196
+ ", and ",
1197
+ code("minutes"),
1198
+ ", ",
1199
+ code("hours"),
1200
+ ", ",
1201
+ code("days"),
1202
+ " as functions of the count, for compact words such as \"5m ago\" in place of Intl's), ",
1203
+ /* @__PURE__ */ jsx("code", { children: "maxDays" }),
1204
+ ", ",
1205
+ /* @__PURE__ */ jsx("code", { children: "locale" }),
1206
+ ", ",
1207
+ /* @__PURE__ */ jsx("code", { children: "dateFormat" })
1208
+ ] })
1209
+ ],
1210
+ [
1211
+ code("formatTimelineTime(date, options)"),
1212
+ "The time of day.",
1213
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1214
+ clock("2026-10-12T13:32:00Z"),
1215
+ ", ",
1216
+ clock("2026-10-12T04:05:00Z")
1217
+ ] }),
1218
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1219
+ /* @__PURE__ */ jsx("code", { children: "locale" }),
1220
+ ", ",
1221
+ /* @__PURE__ */ jsx("code", { children: "hour12" })
1222
+ ] })
1223
+ ],
1224
+ [
1225
+ code("groupTimelineByDay(items, getDate, options)"),
1226
+ "Sorts items into days, in the order they appear.",
1227
+ "A group per day, with its key, label and items.",
1228
+ /* @__PURE__ */ jsxs(Fragment$1, { children: ["The options of ", /* @__PURE__ */ jsx("code", { children: "formatTimelineDay" })] })
1229
+ ]
1230
+ ]
1231
+ }), /* @__PURE__ */ jsx(Example, {
1232
+ align: "fill",
1233
+ code: `
1234
+ const fr = {
1235
+ locale: 'fr-FR',
1236
+ labels: { today: "Aujourd'hui", yesterday: 'Hier' },
1237
+ }
1238
+
1239
+ <TimelineDay label={formatTimelineDay(event.createdAt, fr)}>…</TimelineDay>
1240
+
1241
+ formatRelativeTime(event.createdAt, {
1242
+ locale: 'fr-FR', // "il y a 3 heures"
1243
+ labels: { justNow: "À l'instant" },
1244
+ })`,
1245
+ children: /* @__PURE__ */ jsx("div", {
1246
+ className: "timeline-demo__column",
1247
+ children: /* @__PURE__ */ jsx(Timeline, {
1248
+ "aria-label": "Historique de la commande",
1249
+ children: groupTimelineByDay(ORDER.filter((event) => FRENCH[event.id]), (event) => event.at, {
1250
+ ...DAYS,
1251
+ locale: "fr-FR",
1252
+ labels: {
1253
+ today: "Aujourd'hui",
1254
+ yesterday: "Hier"
1255
+ }
1256
+ }).map((day) => /* @__PURE__ */ jsx(TimelineDay, {
1257
+ label: day.label,
1258
+ children: day.items.map((event) => /* @__PURE__ */ jsx(TimelineItem, {
1259
+ icon: event.icon,
1260
+ tone: event.tone,
1261
+ title: FRENCH[event.id],
1262
+ time: formatRelativeTime(event.at, {
1263
+ ...DAYS,
1264
+ locale: "fr-FR",
1265
+ labels: FRENCH_AGO
1266
+ }),
1267
+ dateTime: event.at
1268
+ }, event.id))
1269
+ }, day.key))
1270
+ })
1271
+ })
1272
+ })]
1273
+ }),
1274
+ /* @__PURE__ */ jsx(Section$1, {
1275
+ id: "staleness",
1276
+ title: "Times go stale",
1277
+ description: /* @__PURE__ */ jsx("p", { children: "The date functions are as of the moment they are called, so a page left open keeps saying \"3 hours ago\" for hours. Re-render on a timer (a minute is enough) if the page stays open, or show absolute times on a record that is read slowly. A time within a minute either side of now is \"Just now\", and one further ahead reads as the future (\"in 3 hours\")." })
1278
+ }),
1279
+ /* @__PURE__ */ jsx(Section$1, {
1280
+ id: "both-themes",
1281
+ title: "In both themes",
1282
+ description: /* @__PURE__ */ jsx("p", { children: "Rings in every tone, discs, an avatar and a badge, a detail open and closed, a lifecycle with a step to come, the compact density, and the loading and empty states, light and dark side by side." }),
1283
+ children: /* @__PURE__ */ jsx(ThemePair, {
1284
+ align: "fill",
1285
+ children: /* @__PURE__ */ jsx(Matrix, {})
1286
+ })
1287
+ }),
1288
+ /* @__PURE__ */ jsxs(Section$1, {
1289
+ id: "guidelines",
1290
+ title: "Guidelines",
1291
+ children: [
1292
+ /* @__PURE__ */ jsx(DoDont, {
1293
+ do: {
1294
+ children: /* @__PURE__ */ jsx("div", {
1295
+ className: "timeline-demo__dodont",
1296
+ children: /* @__PURE__ */ jsxs(Timeline, {
1297
+ "aria-label": "Order history",
1298
+ density: "compact",
1299
+ children: [
1300
+ /* @__PURE__ */ jsx(TimelineItem, {
1301
+ icon: /* @__PURE__ */ jsx(WarningCircleIcon, {}),
1302
+ tone: "negative",
1303
+ title: "Payment failed: card declined",
1304
+ time: "13:05"
1305
+ }),
1306
+ /* @__PURE__ */ jsx(TimelineItem, {
1307
+ icon: /* @__PURE__ */ jsx(ShoppingCartIcon, {}),
1308
+ title: "Order placed",
1309
+ time: "12:58"
1310
+ }),
1311
+ /* @__PURE__ */ jsx(TimelineItem, {
1312
+ icon: /* @__PURE__ */ jsx(PencilSimpleIcon, {}),
1313
+ title: "Order updated",
1314
+ time: "12:50"
1315
+ })
1316
+ ]
1317
+ })
1318
+ }),
1319
+ caption: "A tone on the one event that needs the eye, and words that say what happened."
1320
+ },
1321
+ dont: {
1322
+ children: /* @__PURE__ */ jsx("div", {
1323
+ className: "timeline-demo__dodont",
1324
+ children: /* @__PURE__ */ jsxs(Timeline, {
1325
+ "aria-label": "Order history",
1326
+ density: "compact",
1327
+ children: [
1328
+ /* @__PURE__ */ jsx(TimelineItem, {
1329
+ icon: /* @__PURE__ */ jsx(WarningCircleIcon, {}),
1330
+ tone: "warning",
1331
+ title: "Event",
1332
+ time: "13:05"
1333
+ }),
1334
+ /* @__PURE__ */ jsx(TimelineItem, {
1335
+ icon: /* @__PURE__ */ jsx(ShoppingCartIcon, {}),
1336
+ tone: "info",
1337
+ title: "Event",
1338
+ time: "12:58"
1339
+ }),
1340
+ /* @__PURE__ */ jsx(TimelineItem, {
1341
+ icon: /* @__PURE__ */ jsx(PencilSimpleIcon, {}),
1342
+ tone: "positive",
1343
+ title: "Event",
1344
+ time: "12:50"
1345
+ })
1346
+ ]
1347
+ })
1348
+ }),
1349
+ caption: "A colour on every event, and a title that leaves the mark to say what it was."
1350
+ }
1351
+ }),
1352
+ /* @__PURE__ */ jsx(DocTable, {
1353
+ columns: ["Reach for", "When"],
1354
+ rows: [
1355
+ [code("Timeline"), "Things that happened to one record, in order, with a time each: a history, an audit log, versions."],
1356
+ [/* @__PURE__ */ jsx(DocLink, {
1357
+ to: "/components/table",
1358
+ children: "Table"
1359
+ }), "An audit log across the whole store, to filter, sort and page."],
1360
+ [/* @__PURE__ */ jsx(DocLink, {
1361
+ to: "/components/description-list",
1362
+ children: "DescriptionList"
1363
+ }), "The facts about a record as they are now, with no time. Also what goes inside an expanded event."],
1364
+ [/* @__PURE__ */ jsx(DocLink, {
1365
+ to: "/components/status-badge",
1366
+ children: "StatusBadge"
1367
+ }), "The state a record is in now. A timeline shows how it got there."]
1368
+ ]
1369
+ }),
1370
+ /* @__PURE__ */ jsx(Guidelines, { items: [
1371
+ "Write each event as a short sentence in the past tense: \"Payment of £72.00 received\", \"Delivery address updated\". Sentence case, no full stop.",
1372
+ "Put who did it in the meta line (\"by Priya Shah · Staff\") and what changed behind the toggle, so the line stays one line.",
1373
+ "Show the day with a day label and the time of day on the event. For an audit log, show how long ago (\"3 hours ago\") and the full date on hover.",
1374
+ "Newest first. A person scrolling a history wants what just happened.",
1375
+ "Keep the event's own state in its words, not only its tone: \"Payment failed\", not a red mark and \"Payment\"."
1376
+ ] })
1377
+ ]
1378
+ }),
1379
+ /* @__PURE__ */ jsx(Section$1, {
1380
+ id: "accessibility",
1381
+ title: "Accessibility",
1382
+ children: /* @__PURE__ */ jsx(Guidelines, { items: [
1383
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1384
+ "A timeline is an ",
1385
+ /* @__PURE__ */ jsx("code", { children: "ol" }),
1386
+ " and an event an ",
1387
+ /* @__PURE__ */ jsx("code", { children: "li" }),
1388
+ ", so a screen reader hears how many events there are and where it is in them. Name it with ",
1389
+ /* @__PURE__ */ jsx("code", { children: "aria-label" }),
1390
+ "; a day's list is named by its label (\"Today, list, 4 items\"), and the label itself is hidden from assistive tech, so the day is said once."
1391
+ ] }),
1392
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1393
+ "Marks are decoration and hidden from assistive tech. The title says what happened. Where the mark is the only thing that says it (a step in a lifecycle), give it a ",
1394
+ /* @__PURE__ */ jsx("code", { children: "markLabel" }),
1395
+ " and it becomes a named picture."
1396
+ ] }),
1397
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1398
+ "The toggle is a button with ",
1399
+ /* @__PURE__ */ jsx("code", { children: "aria-expanded" }),
1400
+ " and ",
1401
+ /* @__PURE__ */ jsx("code", { children: "aria-controls" }),
1402
+ " pointing at its region, described by the event's title. Enter and Space press it and focus stays on it. The details are not in the page until they are opened."
1403
+ ] }),
1404
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1405
+ "With a ",
1406
+ /* @__PURE__ */ jsx("code", { children: "dateTime" }),
1407
+ " the time is a ",
1408
+ /* @__PURE__ */ jsx("code", { children: "time" }),
1409
+ " element, so assistive tech and search can read the moment behind \"3 hours ago\"."
1410
+ ] }),
1411
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1412
+ "Loading hides the skeleton events and marks that list ",
1413
+ /* @__PURE__ */ jsx("code", { children: "aria-busy" }),
1414
+ ". The words go in a polite status beside it, not in it (a busy region can hold back what is inside it), and the status is in the page before its words are, which follow a moment later: a live region that arrives with its words already in it is often not read."
1415
+ ] }),
1416
+ "In forced colours the marks take a system-coloured edge, the rail and the day lines take the text colour, and a detail gets an edge.",
1417
+ "Nothing moves. The skeleton shimmer stops under reduced motion."
1418
+ ] })
1419
+ }),
1420
+ /* @__PURE__ */ jsx(Section$1, {
1421
+ id: "differences",
1422
+ title: "Where it differs from the vendor dashboard",
1423
+ description: /* @__PURE__ */ jsx("p", { children: "The order timeline's numbers are the kit's (28px marks, a 1px rail 13.5px in, 12px beside the mark, 16px under each event, the day label 20px above and 14px below). These are the places the kit chooses differently, each on purpose." }),
1424
+ children: /* @__PURE__ */ jsx(DocTable, {
1425
+ columns: [
1426
+ "Where",
1427
+ "Vendor dashboard",
1428
+ "Kit"
1429
+ ],
1430
+ rows: [
1431
+ [
1432
+ "A comment's name line",
1433
+ "Top of the row, 4px above the middle of the avatar.",
1434
+ "Level with the middle of the avatar, as every other event is."
1435
+ ],
1436
+ [
1437
+ "Order of a comment's head",
1438
+ "Name, time, then the \"customer notified\" chip.",
1439
+ "Name, the badge, then the time."
1440
+ ],
1441
+ [
1442
+ "Rail on the audit timeline",
1443
+ "1.5px, drawn inside the column beside each mark.",
1444
+ "One rail for every timeline: 1px, down the middle of a 28px mark, as the order timeline has it."
1445
+ ],
1446
+ [
1447
+ "Marks on the audit timeline",
1448
+ "Raw Tailwind hues on a pebble (green, blue, red, orange, purple).",
1449
+ "The six tones, in a ring or a disc. There is no purple: use accent or neutral."
1450
+ ],
1451
+ [
1452
+ "Warning and info",
1453
+ "Not drawn by the order timeline (four tones).",
1454
+ "Drawn, in the badge's colours, for audit logs and payments."
1455
+ ],
1456
+ [
1457
+ "Event words",
1458
+ "Muted grey, turned to ink by the Orbit styles.",
1459
+ "Ink."
1460
+ ],
1461
+ [
1462
+ "\"Show details\"",
1463
+ "12px words, about 16px tall, in the accent teal on the entity timeline and in grey on the subscription timeline.",
1464
+ "The same words, with a 24px target and a focus ring, in grey as the subscription timeline has them, so the accent stays for what is chosen."
1465
+ ],
1466
+ [
1467
+ "The \"customer notified\" chip",
1468
+ "A 20px pill with a 10px eye glyph, 7px at the sides, in the info colours at weight 550.",
1469
+ "The badge you pass: 18px at sm and 22px at md, with no glyph unless you give it an icon."
1470
+ ],
1471
+ [
1472
+ "A time in the future",
1473
+ "Just now: anything under a minute ago, which includes every future time.",
1474
+ "Just now within a minute either side of now; further ahead it reads as the future (\"in 3 hours\"). A browser clock a minute or so behind the server's would otherwise write every fresh event as \"in 2 minutes\"."
1475
+ ],
1476
+ [
1477
+ "The words of \"how long ago\"",
1478
+ "Compact and one language each: \"5m ago\", \"3h ago\", \"2d ago\", with a label per language.",
1479
+ "Intl's, in the locale: \"5 minutes ago\", \"yesterday\", \"il y a 3 heures\", the same as DateTime and the notification list. Pass labels for the compact words."
1480
+ ],
1481
+ [
1482
+ "A date without a time",
1483
+ "Read as midnight UTC, so a zone west of Greenwich shows the day before.",
1484
+ "A calendar day: the same day in every zone."
1485
+ ],
1486
+ [
1487
+ "Space above and below",
1488
+ "16px under the last event, 20px above the first day.",
1489
+ "None above the first day or under the last event."
1490
+ ]
1491
+ ]
1492
+ })
1493
+ }),
1494
+ /* @__PURE__ */ jsxs(Section$1, {
1495
+ id: "props",
1496
+ title: "Props",
1497
+ children: [
1498
+ /* @__PURE__ */ jsx(PropsTable, {
1499
+ title: "Timeline",
1500
+ rows: [
1501
+ {
1502
+ name: "aria-label",
1503
+ type: "string",
1504
+ description: "Names the list. Give this or aria-labelledby."
1505
+ },
1506
+ {
1507
+ name: "aria-labelledby",
1508
+ type: "string",
1509
+ description: "Names the list from a heading elsewhere on the page."
1510
+ },
1511
+ {
1512
+ name: "variant",
1513
+ type: "'ring' | 'disc'",
1514
+ default: "'ring'",
1515
+ description: "A hairline ring and a tone glyph on the canvas, or a muted pebble with the glyph in the tone."
1516
+ },
1517
+ {
1518
+ name: "density",
1519
+ type: "'comfortable' | 'compact'",
1520
+ default: "'comfortable'",
1521
+ description: "28px marks and 16px between events, or 24px marks and 12px."
1522
+ },
1523
+ {
1524
+ name: "timeAlign",
1525
+ type: "'start' | 'end' | 'column'",
1526
+ default: "'start'",
1527
+ description: "Each time straight after its title, pushed to the end of the line, or in a column of its own before the rail."
1528
+ },
1529
+ {
1530
+ name: "timeZone",
1531
+ type: "string",
1532
+ description: "The zone the column's times are written in: the store's. Defaults to the browser's. The column is 38px, 56px on a twelve-hour clock; --o-tl-when sets it."
1533
+ },
1534
+ {
1535
+ name: "locale",
1536
+ type: "string",
1537
+ default: "'en-GB'",
1538
+ description: "The locale the column's times are written in."
1539
+ },
1540
+ {
1541
+ name: "loading",
1542
+ type: "boolean",
1543
+ default: "false",
1544
+ description: "Skeleton events in place of the real ones, announced once, a moment after they appear."
1545
+ },
1546
+ {
1547
+ name: "loadingCount",
1548
+ type: "number",
1549
+ default: "3",
1550
+ description: "How many skeleton events to draw while loading."
1551
+ },
1552
+ {
1553
+ name: "loadingLabel",
1554
+ type: "string",
1555
+ default: "'Loading activity'",
1556
+ description: "What a screen reader hears when loading starts: a polite status beside the list, in the page before its words."
1557
+ },
1558
+ {
1559
+ name: "empty",
1560
+ type: "ReactNode",
1561
+ default: "'No activity yet.'",
1562
+ description: "The one quiet line shown with no events. null or false draws nothing."
1563
+ },
1564
+ {
1565
+ name: "children",
1566
+ type: "ReactNode",
1567
+ description: "TimelineDays, or TimelineItems straight away."
1568
+ }
1569
+ ]
1570
+ }),
1571
+ /* @__PURE__ */ jsx(PropsTable, {
1572
+ title: "TimelineDay",
1573
+ rows: [{
1574
+ name: "label",
1575
+ type: "ReactNode",
1576
+ required: true,
1577
+ description: "The day: \"Today\", \"Yesterday\", \"12 October 2026\". Names the day's list."
1578
+ }, {
1579
+ name: "children",
1580
+ type: "ReactNode",
1581
+ description: "The day's TimelineItems, newest first."
1582
+ }]
1583
+ }),
1584
+ /* @__PURE__ */ jsx(PropsTable, {
1585
+ title: "TimelineItem",
1586
+ rows: [
1587
+ {
1588
+ name: "title",
1589
+ type: "ReactNode",
1590
+ required: true,
1591
+ description: "What happened, one line in ink. With an avatar, the person's name."
1592
+ },
1593
+ {
1594
+ name: "icon",
1595
+ type: "ReactNode",
1596
+ description: "A glyph for the mark, in the tone. Decorative. Without an icon or avatar the mark holds a status dot."
1597
+ },
1598
+ {
1599
+ name: "avatar",
1600
+ type: "ReactNode",
1601
+ description: "A person's Avatar in place of the mark. Wins over icon."
1602
+ },
1603
+ {
1604
+ name: "tone",
1605
+ type: "'neutral' | 'accent' | 'positive' | 'negative' | 'warning' | 'info'",
1606
+ default: "'neutral'",
1607
+ description: "The mark's tone."
1608
+ },
1609
+ {
1610
+ name: "status",
1611
+ type: "string | null",
1612
+ description: "A status to take the tone from, through the registry. tone wins."
1613
+ },
1614
+ {
1615
+ name: "domain",
1616
+ type: "StatusDomain",
1617
+ default: "'generic'",
1618
+ description: "Which part of the registry status is read from."
1619
+ },
1620
+ {
1621
+ name: "registry",
1622
+ type: "StatusRegistry",
1623
+ description: "A registry with the host's statuses. Defaults to the nearest provider's, then the kit's."
1624
+ },
1625
+ {
1626
+ name: "pending",
1627
+ type: "boolean",
1628
+ default: "false",
1629
+ description: "A step still to come: a dashed ring and quiet words."
1630
+ },
1631
+ {
1632
+ name: "markLabel",
1633
+ type: "string",
1634
+ description: "Names the mark and makes it a picture for assistive tech. Without it the mark is hidden."
1635
+ },
1636
+ {
1637
+ name: "badge",
1638
+ type: "ReactNode",
1639
+ description: "One or more badges after the title."
1640
+ },
1641
+ {
1642
+ name: "time",
1643
+ type: "ReactNode",
1644
+ description: "When it happened, short: \"14:32\", \"3 hours ago\"."
1645
+ },
1646
+ {
1647
+ name: "dateTime",
1648
+ type: "string | Date",
1649
+ description: "The moment time stands for. Makes it a time element. An Invalid Date is left out, not thrown on."
1650
+ },
1651
+ {
1652
+ name: "timeTitle",
1653
+ type: "string",
1654
+ description: "The full date and time, on hover."
1655
+ },
1656
+ {
1657
+ name: "meta",
1658
+ type: "ReactNode",
1659
+ description: "A quiet second line: who did it (\"by Priya Shah · Staff\")."
1660
+ },
1661
+ {
1662
+ name: "actions",
1663
+ type: "ReactNode",
1664
+ description: "Controls at the end of the line: a small Button, a menu."
1665
+ },
1666
+ {
1667
+ name: "expandable",
1668
+ type: "boolean",
1669
+ default: "false",
1670
+ description: "Keeps children behind a toggle with aria-expanded and aria-controls."
1671
+ },
1672
+ {
1673
+ name: "expanded",
1674
+ type: "boolean",
1675
+ description: "Controls whether the details are open. Use with onExpandedChange."
1676
+ },
1677
+ {
1678
+ name: "defaultExpanded",
1679
+ type: "boolean",
1680
+ default: "false",
1681
+ description: "Whether the details start open when the item is not controlled."
1682
+ },
1683
+ {
1684
+ name: "onExpandedChange",
1685
+ type: "(expanded: boolean) => void",
1686
+ description: "Called with the next state when the toggle is pressed."
1687
+ },
1688
+ {
1689
+ name: "showLabel",
1690
+ type: "string",
1691
+ default: "'Show details'",
1692
+ description: "The toggle's words while the details are closed."
1693
+ },
1694
+ {
1695
+ name: "hideLabel",
1696
+ type: "string",
1697
+ default: "'Hide details'",
1698
+ description: "The toggle's words while the details are open."
1699
+ },
1700
+ {
1701
+ name: "children",
1702
+ type: "ReactNode",
1703
+ description: "What the event carries: a comment, a diff, JSON. Always shown, or behind the toggle when expandable. With asChild, the router link the event's link is drawn as."
1704
+ },
1705
+ {
1706
+ name: "href",
1707
+ type: "string",
1708
+ description: "Makes the title a link over the whole event. Its controls stay pressable above it."
1709
+ },
1710
+ {
1711
+ name: "onClick",
1712
+ type: "(event) => void",
1713
+ description: "Makes the title a button over the whole event."
1714
+ },
1715
+ {
1716
+ name: "asChild",
1717
+ type: "boolean",
1718
+ default: "false",
1719
+ description: "Draws the event's link with the one child element, a router link left empty."
1720
+ },
1721
+ {
1722
+ name: "figure",
1723
+ type: "ReactNode",
1724
+ description: "An amount, tabular at 600, in an end column beside the title and the meta line, centred on them."
1725
+ },
1726
+ {
1727
+ name: "figureStruck",
1728
+ type: "boolean",
1729
+ default: "false",
1730
+ description: "Strikes the figure and quietens it: money that went back. Say it in words too."
1731
+ },
1732
+ {
1733
+ name: "fresh",
1734
+ type: "boolean",
1735
+ default: "false",
1736
+ description: "Just arrived: prints in from above, its mark sends out two rings. Fades in under reduced motion."
1737
+ }
1738
+ ]
1739
+ }),
1740
+ /* @__PURE__ */ jsx(DocTable, {
1741
+ columns: [
1742
+ "Option (of the date functions)",
1743
+ "Type",
1744
+ "Default",
1745
+ "Does"
1746
+ ],
1747
+ rows: [
1748
+ [
1749
+ code("now"),
1750
+ "Date | string | number",
1751
+ "The clock",
1752
+ "The moment today and \"5 minutes ago\" are measured from. Pin it in tests and docs."
1753
+ ],
1754
+ [
1755
+ code("locale"),
1756
+ "string",
1757
+ "'en-GB'",
1758
+ "The BCP 47 tag dates are spelt in. Words are labels."
1759
+ ],
1760
+ [
1761
+ code("timeZone"),
1762
+ "string",
1763
+ "The browser's",
1764
+ "The IANA zone days are cut in."
1765
+ ],
1766
+ [
1767
+ code("labels"),
1768
+ "object",
1769
+ "English",
1770
+ "Your words: today, yesterday, unknown; justNow, minutes, hours, days."
1771
+ ],
1772
+ [
1773
+ code("dateFormat"),
1774
+ "Intl.DateTimeFormatOptions",
1775
+ "Long date, or short for relative",
1776
+ "How a date older than yesterday (or a week) is written."
1777
+ ],
1778
+ [
1779
+ code("maxDays"),
1780
+ "number",
1781
+ "7",
1782
+ "formatRelativeTime: how many days \"2 days ago\" runs to before the date is written."
1783
+ ],
1784
+ [
1785
+ code("hour12"),
1786
+ "boolean",
1787
+ "The locale's",
1788
+ "formatTimelineTime: a twelve-hour clock."
1789
+ ]
1790
+ ]
1791
+ })
1792
+ ]
1793
+ })
1794
+ ]
1795
+ });
1796
+ }
1797
+ //#endregion
1798
+ export { Page, Preview };