@orbitcommerce/constellation-docs 1.0.0 → 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 (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-BZOOOPA9.js +368 -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-CQEM1_wc.js +1567 -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-BB3mNl7D.js +1364 -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-C3UcpQJT.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-B38rnzoq.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-LA9XRhZc.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-cfPVTB5V.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-C-4tg6FS.js} +580 -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-BZg-xAbi.js +594 -0
  155. package/dist/pages/{release-Dvo684UJ.js → release-Cs6tl16C.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-CL0vomno.js +3225 -0
  202. package/dist/pages/{tabs-B4M-usCV.js → tabs-Dh0mUsLw.js} +256 -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 +10984 -1108
  227. package/package.json +2 -2
  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
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { t as DocLink } from "./host-B6znjEgQ.js";
3
- import { a as DocTable, d as Section, 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-BNOb7AqR.js";
4
- import { d as formatGbpTick, f as formatHour, h as takingsSeries, l as figuresFor, u as formatGbp } from "./_figures-data-BDmScEny.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 { d as formatGbp, f as formatGbpTick, g as takingsSeries, p as formatHour, u as figuresFor } from "./_figures-data-DaDvB7Nm.js";
5
5
  import { useEffect, useMemo, useRef, useState } from "react";
6
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
- import { AreaChart, Button, SegmentedControl } from "@orbitcommerce/constellation";
7
+ import { AreaChart, Button, SegmentedControl, dateFormatter } from "@orbitcommerce/constellation";
8
8
  import { ArrowsClockwiseIcon } from "@orbitcommerce/constellation/icons";
9
9
  //#region src/pages/components/area-chart.tsx
10
10
  var PREVIEW = takingsSeries(21, "none");
@@ -13,6 +13,38 @@ var LAST_30_COMPARED = takingsSeries(30);
13
13
  var LAST_14 = takingsSeries(14, "none");
14
14
  var TODAY_BY_HOUR = figuresFor("today")[0].series;
15
15
  var round2 = (n) => Math.round(n * 100) / 100;
16
+ var CPU_DAY = [
17
+ 18,
18
+ 21,
19
+ 24,
20
+ null,
21
+ 47,
22
+ 63,
23
+ 58,
24
+ 52,
25
+ null,
26
+ 39,
27
+ 28,
28
+ 22
29
+ ].map((value, i) => value === null ? {
30
+ date: new Date(2026, 8, 3, i * 2),
31
+ value: null
32
+ } : {
33
+ date: new Date(2026, 8, 3, i * 2),
34
+ value
35
+ });
36
+ var cpuTime = dateFormatter("en-GB", {
37
+ hour: "2-digit",
38
+ minute: "2-digit"
39
+ });
40
+ var cpuReadout = dateFormatter("en-GB", {
41
+ weekday: "short",
42
+ day: "numeric",
43
+ month: "short",
44
+ hour: "2-digit",
45
+ minute: "2-digit"
46
+ });
47
+ var percent = (v) => `${v}%`;
16
48
  function Preview() {
17
49
  return /* @__PURE__ */ jsx("div", {
18
50
  className: "area-chart-preview",
@@ -172,7 +204,7 @@ function Page() {
172
204
  importNames: ["AreaChart"],
173
205
  lead: "The range chart: one figure over time as a single Orbit line over a wash that fades to nothing, with an optional dashed comparison and a readout that snaps to the nearest day. Reach for it under headline figures, for takings, orders or visits across a range.",
174
206
  children: [
175
- /* @__PURE__ */ jsx(Section, {
207
+ /* @__PURE__ */ jsx(Section$1, {
176
208
  id: "basics",
177
209
  title: "Basics",
178
210
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -180,7 +212,7 @@ function Page() {
180
212
  /* @__PURE__ */ jsx("code", { children: "YYYY-MM-DD" }),
181
213
  " strings (read as local dates) or ",
182
214
  /* @__PURE__ */ jsx("code", { children: "Date" }),
183
- " objects. Hover the chart, or tab to it and use the arrow keys, to read each day."
215
+ " objects. Hover or tap the chart, or tab to it and use the arrow keys, to read each day."
184
216
  ] }),
185
217
  children: /* @__PURE__ */ jsx(Example, {
186
218
  clientOnly: true,
@@ -205,7 +237,7 @@ const gbpCompact = new Intl.NumberFormat('en-GB', {
205
237
  })
206
238
  })
207
239
  }),
208
- /* @__PURE__ */ jsx(Section, {
240
+ /* @__PURE__ */ jsx(Section$1, {
209
241
  id: "comparison",
210
242
  title: "With a comparison",
211
243
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -237,7 +269,7 @@ const gbpCompact = new Intl.NumberFormat('en-GB', {
237
269
  })
238
270
  })
239
271
  }),
240
- /* @__PURE__ */ jsx(Section, {
272
+ /* @__PURE__ */ jsx(Section$1, {
241
273
  id: "ranges",
242
274
  title: "Ranges and refreshes",
243
275
  description: /* @__PURE__ */ jsx("p", { children: "A new range (different days) redraws: the old line fades out as the new one is uncovered from the left. A refresh of the same range (same days, new figures) morphs the line, the wash and the gridlines in place, so you can see what changed. Switch the range, then press Refresh." }),
@@ -261,10 +293,10 @@ const [range, setRange] = useState('30')
261
293
  children: /* @__PURE__ */ jsx(RangeDemo, {})
262
294
  })
263
295
  }),
264
- /* @__PURE__ */ jsx(Section, {
296
+ /* @__PURE__ */ jsx(Section$1, {
265
297
  id: "readout",
266
298
  title: "The readout",
267
- description: /* @__PURE__ */ jsx("p", { children: "The crosshair snaps to the nearest day and the readout glides after it on a spring, opening on whichever side has room. It leads with the value in Sora, keys each series with a short stroke that matches its line, and shows the change against the comparison. Here it is held open on one day in both themes." }),
299
+ description: /* @__PURE__ */ jsx("p", { children: "The crosshair snaps to the nearest day and the readout glides after it on a spring, opening on whichever side has room and never past the edge of the plot, a phone's included. It leads with the value in Sora, keys each series with a short stroke that matches its line, and shows the change against the comparison. Here it is held open on one day in both themes." }),
268
300
  children: /* @__PURE__ */ jsx(ThemePair, {
269
301
  clientOnly: true,
270
302
  align: "fill",
@@ -281,7 +313,7 @@ const [range, setRange] = useState('30')
281
313
  })
282
314
  })
283
315
  }),
284
- /* @__PURE__ */ jsxs(Section, {
316
+ /* @__PURE__ */ jsxs(Section$1, {
285
317
  id: "axes",
286
318
  title: "Axes and formatting",
287
319
  description: /* @__PURE__ */ jsx("p", { children: "Four formatters shape every label. The defaults are UK formats: dates such as \"3 Aug\" on the axis, \"Mon 3 Aug\" in the readout, and compact values such as \"2.5k\" on the gridlines. For hourly data, pass dates for each hour and format them as times (\"14:00\")." }),
@@ -341,12 +373,15 @@ const hour = (d: Date) => \`\${String(d.getHours()).padStart(2, '0')}:00\`
341
373
  ]
342
374
  }),
343
375
  /* @__PURE__ */ jsxs(Note, {
344
- title: "Sept, not Sep",
376
+ title: "Sep, not Sept",
345
377
  children: [
346
- "The en-GB formats write September as \"Sept\" in current browsers, so the defaults show \"29 Sept\". Pass your own",
347
- " ",
378
+ "Current browsers write September as \"Sept\" in en-GB. The kit's dates write \"Sep\", three letters as every other month, so the defaults show \"29 Sep\". Build your own ",
348
379
  /* @__PURE__ */ jsx("code", { children: "formatDate" }),
349
- " if you need three letters."
380
+ " with the kit's ",
381
+ /* @__PURE__ */ jsx("code", { children: "dateFormatter" }),
382
+ " to write it the same way, as the examples here do, or with ",
383
+ /* @__PURE__ */ jsx("code", { children: "Intl" }),
384
+ " for the browser's spelling."
350
385
  ]
351
386
  }),
352
387
  /* @__PURE__ */ jsx(SubSection, {
@@ -355,7 +390,60 @@ const hour = (d: Date) => \`\${String(d.getHours()).padStart(2, '0')}:00\`
355
390
  })
356
391
  ]
357
392
  }),
358
- /* @__PURE__ */ jsx(Section, {
393
+ /* @__PURE__ */ jsx(Section$1, {
394
+ id: "gaps",
395
+ title: "Gaps in the data",
396
+ description: /* @__PURE__ */ jsxs("p", { children: [
397
+ "A ",
398
+ /* @__PURE__ */ jsx("code", { children: "null" }),
399
+ " value is a reading nobody took: the line and its wash break there rather than drawing a slope across it, and the readout, the announcement and the table say \"No data\" (",
400
+ /* @__PURE__ */ jsx("code", { children: "noDataLabel" }),
401
+ "). A reading alone between two gaps is a dot. The comparison line, when there is one, still joins across its own missing days, as it always has."
402
+ ] }),
403
+ children: /* @__PURE__ */ jsx(Example, {
404
+ clientOnly: true,
405
+ align: "fill",
406
+ code: `
407
+ <AreaChart
408
+ data={[
409
+ { date: '2026-09-03T04:00', value: 24 },
410
+ { date: '2026-09-03T06:00', value: null }, // the agent missed it
411
+ { date: '2026-09-03T08:00', value: 47 },
412
+ /* ... */
413
+ ]}
414
+ max={100}
415
+ formatValue={(v) => \`\${v}%\`}
416
+ formatTick={(v) => \`\${v}%\`}
417
+ />`,
418
+ children: /* @__PURE__ */ jsx(AreaChart, {
419
+ data: CPU_DAY,
420
+ max: 100,
421
+ height: 200,
422
+ valueLabel: "CPU",
423
+ formatValue: percent,
424
+ formatTick: percent,
425
+ formatDate: (d) => cpuTime.format(d),
426
+ formatTooltipDate: (d) => cpuReadout.format(d)
427
+ })
428
+ })
429
+ }),
430
+ /* @__PURE__ */ jsx(Section$1, {
431
+ id: "fixed-axis",
432
+ title: "A fixed value axis",
433
+ description: /* @__PURE__ */ jsxs("p", { children: [
434
+ "A percentage reads best on its whole range: ",
435
+ /* @__PURE__ */ jsx("code", { children: "min" }),
436
+ " and ",
437
+ /* @__PURE__ */ jsx("code", { children: "max" }),
438
+ " fix the axis' ends (0 to 100 for a server's load, above), whatever the data, with round gridlines inside them, and a value past an end is drawn at it. Without them the axis rounds out the data to round steps, with zero in it.",
439
+ " ",
440
+ /* @__PURE__ */ jsx("code", { children: "wholeTicks" }),
441
+ " keeps a count's axis on whole numbers and ",
442
+ /* @__PURE__ */ jsx("code", { children: "maxTicks" }),
443
+ " caps its gridlines."
444
+ ] })
445
+ }),
446
+ /* @__PURE__ */ jsx(Section$1, {
359
447
  id: "states",
360
448
  title: "Loading and empty",
361
449
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -365,7 +453,7 @@ const hour = (d: Date) => \`\${String(d.getHours()).padStart(2, '0')}:00\`
365
453
  /* @__PURE__ */ jsx("code", { children: "loading" }),
366
454
  " and data already drawn, the chart holds its frame at half strength until the new data lands. With no data, ",
367
455
  /* @__PURE__ */ jsx("code", { children: "emptyMessage" }),
368
- " sits in the middle of the plot."
456
+ " sits in the middle of the plot. Without data the axis labels no scale, keeping its width so the plot does not jump."
369
457
  ] }),
370
458
  children: /* @__PURE__ */ jsx(Example, {
371
459
  clientOnly: true,
@@ -377,7 +465,7 @@ const hour = (d: Date) => \`\${String(d.getHours()).padStart(2, '0')}:00\`
377
465
  children: /* @__PURE__ */ jsx(StatesDemo, {})
378
466
  })
379
467
  }),
380
- /* @__PURE__ */ jsx(Section, {
468
+ /* @__PURE__ */ jsx(Section$1, {
381
469
  id: "motion",
382
470
  title: "Motion",
383
471
  children: /* @__PURE__ */ jsx(DocTable, {
@@ -391,7 +479,7 @@ const hour = (d: Date) => \`\${String(d.getHours()).padStart(2, '0')}:00\`
391
479
  ]
392
480
  })
393
481
  }),
394
- /* @__PURE__ */ jsxs(Section, {
482
+ /* @__PURE__ */ jsxs(Section$1, {
395
483
  id: "guidelines",
396
484
  title: "Guidelines",
397
485
  children: [/* @__PURE__ */ jsx(DoDont, {
@@ -442,36 +530,53 @@ const hour = (d: Date) => \`\${String(d.getHours()).padStart(2, '0')}:00\`
442
530
  "Give it room: 240px (the default) on a page, 200px at the least. The height includes the date labels; the legend sits above."
443
531
  ] })]
444
532
  }),
445
- /* @__PURE__ */ jsx(Section, {
533
+ /* @__PURE__ */ jsx(Section$1, {
446
534
  id: "accessibility",
447
535
  title: "Accessibility",
448
536
  children: /* @__PURE__ */ jsx(Guidelines, { items: [
449
537
  /* @__PURE__ */ jsxs(Fragment$1, { children: [
450
- "The plot is an image with a summary for its name, generated from the data unless you pass",
451
- " ",
538
+ "The plot is a group, described as a chart, with a summary for its name, generated from the data unless you pass ",
452
539
  /* @__PURE__ */ jsx("code", { children: "label" }),
453
- ": the range, the highest and lowest days, and the comparison."
540
+ ": the range, the highest and lowest days, the comparison, and how to read it with the arrow keys."
454
541
  ] }),
455
- "Tab to the plot and it reads the latest day. Left and right arrows step through the days, Home and End jump to the ends, and Escape hides the readout. Each step is announced politely.",
542
+ "A visually hidden table repeats every day: its date, the value and, with a comparison, the earlier figure, so the numbers are there for assistive technology in browse mode too.",
543
+ "Tab to the plot and it reads the latest day. Left and right arrows step through the days, Home and End jump to the ends, and Escape hides the readout; the next arrow picks up where it left off. Each step is announced politely.",
544
+ "On a touch screen, a tap reads the day under the finger and the readout follows a drag. It stays when the finger lifts, until a tap anywhere else or a scroll.",
456
545
  "The focus ring is teal, 2px, and sits 6px outside the plot.",
457
546
  /* @__PURE__ */ jsxs(Fragment$1, { children: [
458
547
  "While ",
459
548
  /* @__PURE__ */ jsx("code", { children: "loading" }),
460
549
  ", the plot is marked busy. The readout itself is hidden from assistive tech, because the announcement already says what it shows."
461
550
  ] }),
462
- "Every movement respects reduced motion (see Motion)."
551
+ "Every movement respects reduced motion (see Motion).",
552
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
553
+ "The words it adds for assistive technology are English by default, and each one can be replaced:",
554
+ " ",
555
+ /* @__PURE__ */ jsx("code", { children: "legendLabel" }),
556
+ ", ",
557
+ /* @__PURE__ */ jsx("code", { children: "dateLabel" }),
558
+ ", ",
559
+ /* @__PURE__ */ jsx("code", { children: "noDataLabel" }),
560
+ ", ",
561
+ /* @__PURE__ */ jsx("code", { children: "keyboardHint" }),
562
+ " and",
563
+ " ",
564
+ /* @__PURE__ */ jsx("code", { children: "roleDescription" }),
565
+ "."
566
+ ] }),
567
+ "Under forced colours the line keeps its colour (the chart is SVG), and so do the markers; the crosshair takes the system text colour."
463
568
  ] })
464
569
  }),
465
- /* @__PURE__ */ jsxs(Section, {
570
+ /* @__PURE__ */ jsxs(Section$1, {
466
571
  id: "props",
467
572
  title: "Props",
468
573
  description: /* @__PURE__ */ jsx("p", { children: "Also accepts every native div attribute except children." }),
469
574
  children: [/* @__PURE__ */ jsx(PropsTable, { rows: [
470
575
  {
471
576
  name: "data",
472
- type: "readonly AreaChartDatum[]",
577
+ type: "readonly (AreaChartDatum | AreaChartGap)[]",
473
578
  required: true,
474
- description: "One point per day (or bucket), oldest first."
579
+ description: "One point per day (or bucket), oldest first. A point whose value is null (AreaChartGap) is a gap."
475
580
  },
476
581
  {
477
582
  name: "height",
@@ -503,6 +608,27 @@ const hour = (d: Date) => \`\${String(d.getHours()).padStart(2, '0')}:00\`
503
608
  default: "compact number",
504
609
  description: "Gridline labels, e.g. \"2.5k\"."
505
610
  },
611
+ {
612
+ name: "min",
613
+ type: "number",
614
+ description: "Fixes the axis' lowest value; otherwise zero, or the round step below the lowest value."
615
+ },
616
+ {
617
+ name: "max",
618
+ type: "number",
619
+ description: "Fixes the axis' highest value (100 for a percentage)."
620
+ },
621
+ {
622
+ name: "wholeTicks",
623
+ type: "boolean",
624
+ default: "false",
625
+ description: "Labels the axis in whole numbers only."
626
+ },
627
+ {
628
+ name: "maxTicks",
629
+ type: "number",
630
+ description: "At most this many gridlines."
631
+ },
506
632
  {
507
633
  name: "formatDate",
508
634
  type: "(date: Date) => string",
@@ -531,6 +657,36 @@ const hour = (d: Date) => \`\${String(d.getHours()).padStart(2, '0')}:00\`
531
657
  name: "label",
532
658
  type: "string",
533
659
  description: "Accessible summary. Generated from the data when omitted."
660
+ },
661
+ {
662
+ name: "legendLabel",
663
+ type: "string",
664
+ default: "label, or 'Series'",
665
+ description: "Names the legend, shown with a comparison, for assistive technology."
666
+ },
667
+ {
668
+ name: "dateLabel",
669
+ type: "string",
670
+ default: "'Date'",
671
+ description: "Heads the hidden table’s column of dates."
672
+ },
673
+ {
674
+ name: "noDataLabel",
675
+ type: "string",
676
+ default: "'No data'",
677
+ description: "Stands in the readout, the announcement and the table for a day with no value."
678
+ },
679
+ {
680
+ name: "keyboardHint",
681
+ type: "string",
682
+ default: "'Use the arrow keys to read each point.'",
683
+ description: "Ends the summary generated when there is no label."
684
+ },
685
+ {
686
+ name: "roleDescription",
687
+ type: "string",
688
+ default: "'chart'",
689
+ description: "What assistive technology calls the plot after its name."
534
690
  }
535
691
  ] }), /* @__PURE__ */ jsx(PropsTable, {
536
692
  title: "AreaChartDatum",
@@ -1,5 +1,6 @@
1
1
  "use client";
2
- import { a as DocTable, d as Section, 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-BNOb7AqR.js";
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";
3
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
5
  import { Avatar, AvatarGroup, initialsOf } from "@orbitcommerce/constellation";
5
6
  //#region src/pages/components/avatar.tsx
@@ -81,7 +82,7 @@ function Page() {
81
82
  ],
82
83
  lead: "A person or a store, as a small circle or square. It shows an image when there is one and initials on a quiet tint when there is not, so every customer, colleague and shop has a face in lists, menus and headers.",
83
84
  children: [
84
- /* @__PURE__ */ jsxs(Section, {
85
+ /* @__PURE__ */ jsxs(Section$1, {
85
86
  id: "sizes",
86
87
  title: "Sizes",
87
88
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -150,7 +151,7 @@ function Page() {
150
151
  ]
151
152
  })]
152
153
  }),
153
- /* @__PURE__ */ jsx(Section, {
154
+ /* @__PURE__ */ jsx(Section$1, {
154
155
  id: "people-and-stores",
155
156
  title: "People and stores",
156
157
  description: /* @__PURE__ */ jsx("p", { children: "People are circles, the default. Stores, brands and suppliers are rounded squares, with corners at 28% of the size. The shape also changes the initials: a person takes their first and last name, a store its first two words, which is how shop names are shortened." }),
@@ -204,7 +205,7 @@ function Page() {
204
205
  })
205
206
  })
206
207
  }),
207
- /* @__PURE__ */ jsxs(Section, {
208
+ /* @__PURE__ */ jsxs(Section$1, {
208
209
  id: "tints",
209
210
  title: "Tints",
210
211
  description: /* @__PURE__ */ jsx("p", { children: "Without an image, initials sit on one of six quiet tints: Orbit teal turned a little either way around the colour wheel, plus a slate. The tint is picked from the name, so the same person or shop gets the same colour everywhere, on every visit." }),
@@ -259,7 +260,7 @@ function Page() {
259
260
  })
260
261
  })]
261
262
  }),
262
- /* @__PURE__ */ jsx(Section, {
263
+ /* @__PURE__ */ jsx(Section$1, {
263
264
  id: "status",
264
265
  title: "Status",
265
266
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -336,7 +337,129 @@ function Page() {
336
337
  })
337
338
  })
338
339
  }),
339
- /* @__PURE__ */ jsxs(Section, {
340
+ /* @__PURE__ */ jsxs(Section$1, {
341
+ id: "activity",
342
+ title: "Activity",
343
+ description: /* @__PURE__ */ jsxs("p", { children: [
344
+ "What a colleague is doing on the record you share with them: ",
345
+ /* @__PURE__ */ jsx("code", { children: "activity=\"viewing\"" }),
346
+ " rings the avatar in green, ",
347
+ /* @__PURE__ */ jsx("code", { children: "\"editing\"" }),
348
+ " in amber with a pencil on the rim, so the two differ by a mark as well as a colour. The ring sits past a hairline of the surface and takes no room. The name says it too: \"Sean Hughes (Editing)\". A status dot moves to the upper rim to make room for the pencil."
349
+ ] }),
350
+ children: [/* @__PURE__ */ jsx(Example, {
351
+ code: `
352
+ <Avatar size="lg" name="Priya Shah" activity="viewing" />
353
+ <Avatar size="lg" name="Sean Hughes" activity="editing" />
354
+ <Avatar size="lg" name="Grace Liu" activity="editing" status="online" />
355
+
356
+ <Avatar size="sm" name="Sean Hughes" activity="editing" />
357
+ <Avatar name="Sean Hughes" activity="editing" />
358
+ <Avatar size="xl" name="Sean Hughes" activity="editing" />`,
359
+ children: /* @__PURE__ */ jsxs("div", {
360
+ className: "avatar-rows",
361
+ children: [/* @__PURE__ */ jsxs("div", {
362
+ className: "avatar-row avatar-row--roomy",
363
+ children: [
364
+ /* @__PURE__ */ jsx(Avatar, {
365
+ size: "lg",
366
+ name: "Priya Shah",
367
+ activity: "viewing"
368
+ }),
369
+ /* @__PURE__ */ jsx(Avatar, {
370
+ size: "lg",
371
+ name: "Sean Hughes",
372
+ activity: "editing"
373
+ }),
374
+ /* @__PURE__ */ jsx(Avatar, {
375
+ size: "lg",
376
+ name: "Grace Liu",
377
+ activity: "editing",
378
+ status: "online"
379
+ })
380
+ ]
381
+ }), /* @__PURE__ */ jsxs("div", {
382
+ className: "avatar-row avatar-row--roomy",
383
+ children: [
384
+ /* @__PURE__ */ jsx(Avatar, {
385
+ size: "xs",
386
+ name: "Sean Hughes",
387
+ activity: "editing"
388
+ }),
389
+ /* @__PURE__ */ jsx(Avatar, {
390
+ size: "sm",
391
+ name: "Sean Hughes",
392
+ activity: "editing"
393
+ }),
394
+ /* @__PURE__ */ jsx(Avatar, {
395
+ name: "Sean Hughes",
396
+ activity: "editing"
397
+ }),
398
+ /* @__PURE__ */ jsx(Avatar, {
399
+ size: "xl",
400
+ name: "Sean Hughes",
401
+ activity: "editing"
402
+ })
403
+ ]
404
+ })]
405
+ })
406
+ }), /* @__PURE__ */ jsx(SubSection, {
407
+ title: "A spaced group",
408
+ description: /* @__PURE__ */ jsxs("p", { children: [
409
+ "Overlapping avatars would cover each other's rings, so a group of colleagues on a page takes",
410
+ " ",
411
+ /* @__PURE__ */ jsx("code", { children: "spacing=\"spaced\"" }),
412
+ ": side by side with a small gap. ",
413
+ /* @__PURE__ */ jsx("code", { children: "overflowTooltip" }),
414
+ " gives the +N chip a tooltip (the people it stands for) and keyboard focus. ",
415
+ /* @__PURE__ */ jsx(DocLink, {
416
+ to: "/components/presence-avatars",
417
+ children: "Presence avatars"
418
+ }),
419
+ " builds the whole thing for an editor's top bar."
420
+ ] }),
421
+ children: /* @__PURE__ */ jsx(Example, {
422
+ code: `
423
+ <AvatarGroup spacing="spaced" size="sm" max={3} overflowTooltip="Rhys Evans (viewing), Amara Okafor (viewing)" aria-label="Others on this page">
424
+ <Avatar name="Priya Shah" activity="viewing" />
425
+ <Avatar name="Sean Hughes" activity="editing" />
426
+ <Avatar name="Grace Liu" activity="editing" />
427
+ <Avatar name="Rhys Evans" activity="viewing" />
428
+ <Avatar name="Amara Okafor" activity="viewing" />
429
+ </AvatarGroup>`,
430
+ children: /* @__PURE__ */ jsxs(AvatarGroup, {
431
+ spacing: "spaced",
432
+ size: "sm",
433
+ max: 3,
434
+ overflowTooltip: "Rhys Evans (viewing), Amara Okafor (viewing)",
435
+ "aria-label": "Others on this page",
436
+ children: [
437
+ /* @__PURE__ */ jsx(Avatar, {
438
+ name: "Priya Shah",
439
+ activity: "viewing"
440
+ }),
441
+ /* @__PURE__ */ jsx(Avatar, {
442
+ name: "Sean Hughes",
443
+ activity: "editing"
444
+ }),
445
+ /* @__PURE__ */ jsx(Avatar, {
446
+ name: "Grace Liu",
447
+ activity: "editing"
448
+ }),
449
+ /* @__PURE__ */ jsx(Avatar, {
450
+ name: "Rhys Evans",
451
+ activity: "viewing"
452
+ }),
453
+ /* @__PURE__ */ jsx(Avatar, {
454
+ name: "Amara Okafor",
455
+ activity: "viewing"
456
+ })
457
+ ]
458
+ })
459
+ })
460
+ })]
461
+ }),
462
+ /* @__PURE__ */ jsxs(Section$1, {
340
463
  id: "images",
341
464
  title: "Images and fallbacks",
342
465
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -383,7 +506,7 @@ function Page() {
383
506
  children: "A contained logo sits on the canvas colour, which is near black in dark. A dark logo on a clear ground disappears there: ask for a mark that reads on both, or pass the right file for each theme."
384
507
  })]
385
508
  }),
386
- /* @__PURE__ */ jsxs(Section, {
509
+ /* @__PURE__ */ jsxs(Section$1, {
387
510
  id: "groups",
388
511
  title: "Groups",
389
512
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -450,7 +573,7 @@ function Page() {
450
573
  })
451
574
  })]
452
575
  }),
453
- /* @__PURE__ */ jsx(Section, {
576
+ /* @__PURE__ */ jsx(Section$1, {
454
577
  id: "both-themes",
455
578
  title: "In both themes",
456
579
  description: /* @__PURE__ */ jsx("p", { children: "All six tints for people and for stores, with status and a group, light and dark side by side." }),
@@ -492,11 +615,38 @@ function Page() {
492
615
  }),
493
616
  /* @__PURE__ */ jsx(Team, { max: 3 })
494
617
  ]
618
+ }),
619
+ /* @__PURE__ */ jsxs("div", {
620
+ className: "avatar-row avatar-row--roomy",
621
+ children: [
622
+ /* @__PURE__ */ jsx(Avatar, {
623
+ size: "lg",
624
+ name: "Priya Shah",
625
+ activity: "viewing"
626
+ }),
627
+ /* @__PURE__ */ jsx(Avatar, {
628
+ size: "lg",
629
+ name: "Sean Hughes",
630
+ activity: "editing"
631
+ }),
632
+ /* @__PURE__ */ jsxs(AvatarGroup, {
633
+ spacing: "spaced",
634
+ size: "sm",
635
+ "aria-label": "Others on this page",
636
+ children: [/* @__PURE__ */ jsx(Avatar, {
637
+ name: "Grace Liu",
638
+ activity: "editing"
639
+ }), /* @__PURE__ */ jsx(Avatar, {
640
+ name: "Rhys Evans",
641
+ activity: "viewing"
642
+ })]
643
+ })
644
+ ]
495
645
  })
496
646
  ]
497
647
  }) })
498
648
  }),
499
- /* @__PURE__ */ jsx(Section, {
649
+ /* @__PURE__ */ jsx(Section$1, {
500
650
  id: "initials",
501
651
  title: "Initials",
502
652
  description: /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("code", { children: "initialsOf(name, kind)" }), " is the function the avatar uses, exported for anywhere else you need the same letters. It drops company suffixes (Ltd, Limited, LLP, PLC, Inc), a leading \"The\" and stray punctuation, and keeps accented letters."] }),
@@ -521,7 +671,7 @@ function Page() {
521
671
  ])
522
672
  })
523
673
  }),
524
- /* @__PURE__ */ jsxs(Section, {
674
+ /* @__PURE__ */ jsxs(Section$1, {
525
675
  id: "guidelines",
526
676
  title: "Guidelines",
527
677
  children: [
@@ -566,7 +716,7 @@ function Page() {
566
716
  ] })
567
717
  ]
568
718
  }),
569
- /* @__PURE__ */ jsx(Section, {
719
+ /* @__PURE__ */ jsx(Section$1, {
570
720
  id: "accessibility",
571
721
  title: "Accessibility",
572
722
  children: /* @__PURE__ */ jsx(Guidelines, { items: [
@@ -595,10 +745,21 @@ function Page() {
595
745
  /* @__PURE__ */ jsx("code", { children: "overflowLabel" }),
596
746
  " translates it."
597
747
  ] }),
748
+ /* @__PURE__ */ jsxs(Fragment, { children: [
749
+ "An activity is read in the name, after any status: \"Sean Hughes (Online, Editing)\". ",
750
+ /* @__PURE__ */ jsx("code", { children: "activityLabel" }),
751
+ " ",
752
+ "translates it. In forced colours the ring is an outline, dashed for an editor."
753
+ ] }),
754
+ /* @__PURE__ */ jsxs(Fragment, { children: [
755
+ "With ",
756
+ /* @__PURE__ */ jsx("code", { children: "overflowTooltip" }),
757
+ " the +N chip takes keyboard focus, so its tooltip opens from the keyboard as well as the pointer."
758
+ ] }),
598
759
  "The lift on hover in a group is dropped under reduced motion."
599
760
  ] })
600
761
  }),
601
- /* @__PURE__ */ jsxs(Section, {
762
+ /* @__PURE__ */ jsxs(Section$1, {
602
763
  id: "props",
603
764
  title: "Props",
604
765
  children: [
@@ -652,6 +813,16 @@ function Page() {
652
813
  name: "seed",
653
814
  type: "string",
654
815
  description: "Picks the tint instead of name, e.g. a stable customer ID."
816
+ },
817
+ {
818
+ name: "activity",
819
+ type: "'viewing' | 'editing'",
820
+ description: "What a colleague is doing on the page: a green ring, or an amber ring and a pencil. Read in the name."
821
+ },
822
+ {
823
+ name: "activityLabel",
824
+ type: "string",
825
+ description: "Words read for the activity. Defaults to \"Viewing\" or \"Editing\"."
655
826
  }
656
827
  ]
657
828
  }),
@@ -683,6 +854,17 @@ function Page() {
683
854
  type: "(hidden: number) => string",
684
855
  default: "(n) => `${n} more`",
685
856
  description: "Accessible text for the +N chip."
857
+ },
858
+ {
859
+ name: "spacing",
860
+ type: "'overlap' | 'spaced'",
861
+ default: "'overlap'",
862
+ description: "Overlapping cut-outs, or side by side for avatars with activity rings."
863
+ },
864
+ {
865
+ name: "overflowTooltip",
866
+ type: "ReactNode",
867
+ description: "The +N chip's tooltip, such as the people it stands for. The chip then takes keyboard focus."
686
868
  }
687
869
  ]
688
870
  }),