@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";
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
4
  import { useState } from "react";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
- import { Badge, IconButton } from "@orbitcommerce/constellation";
7
- import { ClockIcon, MinusIcon, PlusIcon, ReceiptIcon, StorefrontIcon, TagIcon } from "@orbitcommerce/constellation/icons";
6
+ import { Badge, IconButton, statusRegistry } from "@orbitcommerce/constellation";
7
+ import { ArrowsClockwiseIcon, ClockIcon, CreditCardIcon, MinusIcon, PackageIcon, PlusIcon, ReceiptIcon, StorefrontIcon, TagIcon } from "@orbitcommerce/constellation/icons";
8
8
  //#region src/pages/components/badge.tsx
9
9
  function Preview() {
10
10
  return /* @__PURE__ */ jsxs("div", {
@@ -17,11 +17,11 @@ function Preview() {
17
17
  /* @__PURE__ */ jsx(Badge, {
18
18
  tone: "warning",
19
19
  dot: true,
20
- children: "Unfulfilled"
20
+ children: "Awaiting payment"
21
21
  }),
22
22
  /* @__PURE__ */ jsx(Badge, {
23
23
  tone: "negative",
24
- children: "Refunded"
24
+ children: "Failed"
25
25
  }),
26
26
  /* @__PURE__ */ jsx(Badge, {
27
27
  variant: "outline",
@@ -95,7 +95,7 @@ function LiveCount() {
95
95
  ] });
96
96
  }
97
97
  var tone = (name) => /* @__PURE__ */ jsx("code", { children: name });
98
- /** A status badge with its tone beside it, for the mapping table. */
98
+ /** A badge with its tone beside it, for the mapping table. */
99
99
  function Status({ tone: meaning, icon, children }) {
100
100
  return /* @__PURE__ */ jsxs("span", {
101
101
  className: "badge-status",
@@ -106,14 +106,21 @@ function Status({ tone: meaning, icon, children }) {
106
106
  }), /* @__PURE__ */ jsx("code", { children: meaning })]
107
107
  });
108
108
  }
109
+ /** A status as the registry draws it, so this table cannot disagree with the status badge. */
110
+ function Registered({ domain, status, label }) {
111
+ return /* @__PURE__ */ jsx(Status, {
112
+ tone: statusRegistry.tone(domain, status),
113
+ children: label ?? statusRegistry.label(domain, status)
114
+ });
115
+ }
109
116
  function Page() {
110
117
  return /* @__PURE__ */ jsxs(DocPage, {
111
118
  title: "Badge",
112
119
  status: "stable",
113
120
  importNames: ["Badge"],
114
- lead: "A small pill that labels a status, a count or a category. Reach for it when one or two words tell the merchant the state of something at a glance: Paid, Unfulfilled, 3 new.",
121
+ lead: "A small pill that labels a status, a count or a category. Reach for it when one or two words tell the merchant the state of something at a glance: Paid, Unfulfilled, 3 new. For a status that comes from the API, use the status badge, which picks the tone for you.",
115
122
  children: [
116
- /* @__PURE__ */ jsxs(Section, {
123
+ /* @__PURE__ */ jsxs(Section$1, {
117
124
  id: "tones",
118
125
  title: "Tones",
119
126
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -126,7 +133,7 @@ function Page() {
126
133
  <Badge>Draft</Badge>
127
134
  <Badge tone="accent">New</Badge>
128
135
  <Badge tone="positive">Paid</Badge>
129
- <Badge tone="negative">Refunded</Badge>
136
+ <Badge tone="negative">Failed</Badge>
130
137
  <Badge tone="warning">Low stock</Badge>
131
138
  <Badge tone="info">Scheduled</Badge>`,
132
139
  children: [
@@ -141,7 +148,7 @@ function Page() {
141
148
  }),
142
149
  /* @__PURE__ */ jsx(Badge, {
143
150
  tone: "negative",
144
- children: "Refunded"
151
+ children: "Failed"
145
152
  }),
146
153
  /* @__PURE__ */ jsx(Badge, {
147
154
  tone: "warning",
@@ -164,12 +171,12 @@ function Page() {
164
171
  [
165
172
  tone("neutral"),
166
173
  "No judgement: not started, closed, or just a fact.",
167
- "Draft, Cancelled, Archived"
174
+ "Draft, Archived, Unfulfilled"
168
175
  ],
169
176
  [
170
177
  tone("accent"),
171
- "Orbit teal: what Orbit wants you to notice. New, live, a count asking for attention. Not a status.",
172
- "New, Live, 3"
178
+ "Orbit teal: what Orbit wants you to notice. New, live, a count asking for attention. Also the few special states that are neither good nor bad. Never a good or bad status.",
179
+ "New, 3, Returned, Syncing"
173
180
  ],
174
181
  [
175
182
  tone("positive"),
@@ -178,13 +185,13 @@ function Page() {
178
185
  ],
179
186
  [
180
187
  tone("negative"),
181
- "Something failed, or money went back out.",
182
- "Payment failed, Refunded, Disputed"
188
+ "Something failed, was refused or was cancelled.",
189
+ "Payment failed, Cancelled, Declined"
183
190
  ],
184
191
  [
185
192
  tone("warning"),
186
- "Needs the merchant soon, or money is still owed.",
187
- "Unfulfilled, Low stock, Awaiting payment"
193
+ "Needs the merchant soon, or money is still owed or moving back.",
194
+ "Awaiting payment, Refunded, Low stock"
188
195
  ],
189
196
  [
190
197
  tone("info"),
@@ -195,24 +202,26 @@ function Page() {
195
202
  })
196
203
  })]
197
204
  }),
198
- /* @__PURE__ */ jsxs(Section, {
205
+ /* @__PURE__ */ jsxs(Section$1, {
199
206
  id: "variants",
200
207
  title: "Variants",
201
208
  description: /* @__PURE__ */ jsxs("p", { children: [
202
- "Three materials. ",
209
+ "Four materials. ",
203
210
  /* @__PURE__ */ jsx("code", { children: "subtle" }),
204
211
  " is the default and is right for status. ",
205
212
  /* @__PURE__ */ jsx("code", { children: "solid" }),
206
213
  " is for counts and the few states that must shout. ",
207
214
  /* @__PURE__ */ jsx("code", { children: "outline" }),
208
- " is for categories and quiet flags that sit beside a status without competing with it."
215
+ " is for categories and quiet flags that sit beside a status without competing with it. ",
216
+ /* @__PURE__ */ jsx("code", { children: "dashed" }),
217
+ " is for a value that is not there yet: quiet words in a dashed hairline, whatever the tone."
209
218
  ] }),
210
219
  children: [/* @__PURE__ */ jsx(Example, {
211
220
  align: "start",
212
221
  code: `
213
222
  <Badge tone="positive">Paid</Badge>
214
- <Badge tone="warning">Unfulfilled</Badge>
215
- <Badge tone="negative">Refunded</Badge>
223
+ <Badge tone="warning">Awaiting payment</Badge>
224
+ <Badge tone="negative">Failed</Badge>
216
225
 
217
226
  <Badge variant="solid" tone="accent">3</Badge>
218
227
  <Badge variant="solid">12</Badge>
@@ -221,7 +230,10 @@ function Page() {
221
230
 
222
231
  <Badge variant="outline">Trade</Badge>
223
232
  <Badge variant="outline" tone="info">Pre-order</Badge>
224
- <Badge variant="outline" tone="warning">Sample data</Badge>`,
233
+ <Badge variant="outline" tone="warning">Sample data</Badge>
234
+
235
+ <Badge variant="dashed">No pricing yet</Badge>
236
+ <Badge variant="dashed" dot>No plan</Badge>`,
225
237
  children: /* @__PURE__ */ jsxs("div", {
226
238
  className: "badge-rows",
227
239
  children: [
@@ -234,11 +246,11 @@ function Page() {
234
246
  }),
235
247
  /* @__PURE__ */ jsx(Badge, {
236
248
  tone: "warning",
237
- children: "Unfulfilled"
249
+ children: "Awaiting payment"
238
250
  }),
239
251
  /* @__PURE__ */ jsx(Badge, {
240
252
  tone: "negative",
241
- children: "Refunded"
253
+ children: "Failed"
242
254
  })
243
255
  ]
244
256
  }),
@@ -284,6 +296,17 @@ function Page() {
284
296
  children: "Sample data"
285
297
  })
286
298
  ]
299
+ }),
300
+ /* @__PURE__ */ jsxs("div", {
301
+ className: "badge-row",
302
+ children: [/* @__PURE__ */ jsx(Badge, {
303
+ variant: "dashed",
304
+ children: "No pricing yet"
305
+ }), /* @__PURE__ */ jsx(Badge, {
306
+ variant: "dashed",
307
+ dot: true,
308
+ children: "No plan"
309
+ })]
287
310
  })
288
311
  ]
289
312
  })
@@ -294,93 +317,161 @@ function Page() {
294
317
  rows: [
295
318
  [/* @__PURE__ */ jsx("code", { children: "subtle" }), "Status in lists, rows and headers: a tinted pill with toned text. The default."],
296
319
  [/* @__PURE__ */ jsx("code", { children: "solid" }), "Counts, and strong states such as Overdue. A single digit becomes a circle."],
297
- [/* @__PURE__ */ jsx("code", { children: "outline" }), "Categories and quiet flags: Trade, Pre-order, VAT 20%, Sample data."]
320
+ [/* @__PURE__ */ jsx("code", { children: "outline" }), "Categories and quiet flags: Trade, Pre-order, VAT 20%, Sample data."],
321
+ [/* @__PURE__ */ jsx("code", { children: "dashed" }), "A value that is not there yet, where a dash would be lost: No pricing yet, No plan."]
298
322
  ]
299
323
  })
300
324
  })]
301
325
  }),
302
- /* @__PURE__ */ jsx(Section, {
326
+ /* @__PURE__ */ jsx(Section$1, {
303
327
  id: "both-themes",
304
328
  title: "In both themes",
305
329
  description: /* @__PURE__ */ jsx("p", { children: "Every tone in every variant, light and dark side by side. In dark the washes deepen and the status hues lift, so toned text still reads as ink with a colour." }),
306
330
  children: /* @__PURE__ */ jsx(ThemePair, { children: /* @__PURE__ */ jsx(BadgeMatrix, {}) })
307
331
  }),
308
- /* @__PURE__ */ jsx(Section, {
332
+ /* @__PURE__ */ jsxs(Section$1, {
309
333
  id: "sizes",
310
334
  title: "Sizes",
311
335
  description: /* @__PURE__ */ jsxs("p", { children: [
312
336
  /* @__PURE__ */ jsx("code", { children: "md" }),
313
337
  " is 22px tall with 12px text, the default. ",
314
338
  /* @__PURE__ */ jsx("code", { children: "sm" }),
315
- " is 18px with 11px text, for dense table rows and beside 13px text."
339
+ " is 18px with 11px text, for dense table rows and beside 13px text. ",
340
+ /* @__PURE__ */ jsx("code", { children: "lg" }),
341
+ " is 28px with 13px text, the height of the controls beside it: a summary under a page title, or a status that is a link."
316
342
  ] }),
317
- children: /* @__PURE__ */ jsx(Example, {
343
+ children: [/* @__PURE__ */ jsx(Example, {
318
344
  align: "start",
319
345
  code: `
320
346
  <Badge tone="positive">Paid</Badge>
321
- <Badge tone="warning" dot>Unfulfilled</Badge>
347
+ <Badge tone="warning" dot>Awaiting payment</Badge>
322
348
  <Badge variant="outline">VAT 20%</Badge>
323
349
  <Badge variant="solid" tone="accent">5</Badge>
324
350
 
325
351
  <Badge size="sm" tone="positive">Paid</Badge>
326
- <Badge size="sm" tone="warning" dot>Unfulfilled</Badge>
352
+ <Badge size="sm" tone="warning" dot>Awaiting payment</Badge>
327
353
  <Badge size="sm" variant="outline">VAT 20%</Badge>
328
- <Badge size="sm" variant="solid" tone="accent">5</Badge>`,
354
+ <Badge size="sm" variant="solid" tone="accent">5</Badge>
355
+
356
+ <Badge size="lg" tone="positive">Paid</Badge>
357
+ <Badge size="lg" tone="warning" dot>Awaiting payment</Badge>
358
+ <Badge size="lg" variant="outline">VAT 20%</Badge>`,
329
359
  children: /* @__PURE__ */ jsxs("div", {
330
360
  className: "badge-rows",
331
- children: [/* @__PURE__ */ jsxs("div", {
332
- className: "badge-row",
333
- children: [
334
- /* @__PURE__ */ jsx(Badge, {
335
- tone: "positive",
336
- children: "Paid"
337
- }),
338
- /* @__PURE__ */ jsx(Badge, {
339
- tone: "warning",
340
- dot: true,
341
- children: "Unfulfilled"
342
- }),
343
- /* @__PURE__ */ jsx(Badge, {
344
- variant: "outline",
345
- children: "VAT 20%"
346
- }),
347
- /* @__PURE__ */ jsx(Badge, {
348
- variant: "solid",
349
- tone: "accent",
350
- children: "5"
351
- })
352
- ]
353
- }), /* @__PURE__ */ jsxs("div", {
361
+ children: [
362
+ /* @__PURE__ */ jsxs("div", {
363
+ className: "badge-row",
364
+ children: [
365
+ /* @__PURE__ */ jsx(Badge, {
366
+ tone: "positive",
367
+ children: "Paid"
368
+ }),
369
+ /* @__PURE__ */ jsx(Badge, {
370
+ tone: "warning",
371
+ dot: true,
372
+ children: "Awaiting payment"
373
+ }),
374
+ /* @__PURE__ */ jsx(Badge, {
375
+ variant: "outline",
376
+ children: "VAT 20%"
377
+ }),
378
+ /* @__PURE__ */ jsx(Badge, {
379
+ variant: "solid",
380
+ tone: "accent",
381
+ children: "5"
382
+ })
383
+ ]
384
+ }),
385
+ /* @__PURE__ */ jsxs("div", {
386
+ className: "badge-row",
387
+ children: [
388
+ /* @__PURE__ */ jsx(Badge, {
389
+ size: "sm",
390
+ tone: "positive",
391
+ children: "Paid"
392
+ }),
393
+ /* @__PURE__ */ jsx(Badge, {
394
+ size: "sm",
395
+ tone: "warning",
396
+ dot: true,
397
+ children: "Awaiting payment"
398
+ }),
399
+ /* @__PURE__ */ jsx(Badge, {
400
+ size: "sm",
401
+ variant: "outline",
402
+ children: "VAT 20%"
403
+ }),
404
+ /* @__PURE__ */ jsx(Badge, {
405
+ size: "sm",
406
+ variant: "solid",
407
+ tone: "accent",
408
+ children: "5"
409
+ })
410
+ ]
411
+ }),
412
+ /* @__PURE__ */ jsxs("div", {
413
+ className: "badge-row",
414
+ children: [
415
+ /* @__PURE__ */ jsx(Badge, {
416
+ size: "lg",
417
+ tone: "positive",
418
+ children: "Paid"
419
+ }),
420
+ /* @__PURE__ */ jsx(Badge, {
421
+ size: "lg",
422
+ tone: "warning",
423
+ dot: true,
424
+ children: "Awaiting payment"
425
+ }),
426
+ /* @__PURE__ */ jsx(Badge, {
427
+ size: "lg",
428
+ variant: "outline",
429
+ children: "VAT 20%"
430
+ })
431
+ ]
432
+ })
433
+ ]
434
+ })
435
+ }), /* @__PURE__ */ jsx(SubSection, {
436
+ title: "With a figure",
437
+ description: /* @__PURE__ */ jsxs("p", { children: [
438
+ /* @__PURE__ */ jsx("code", { children: "figure" }),
439
+ " puts a number before the words, in ink at 600 on the neutral pill, and the two read as one phrase. At ",
440
+ /* @__PURE__ */ jsx("code", { children: "lg" }),
441
+ " it is the summary strip under a supplier's name."
442
+ ] }),
443
+ children: /* @__PURE__ */ jsx(Example, {
444
+ align: "start",
445
+ code: `
446
+ <Badge size="lg" icon={<PackageIcon />} figure="142">products imported</Badge>
447
+ <Badge size="lg" icon={<ArrowsClockwiseIcon />} figure="12">updates waiting</Badge>
448
+ <Badge size="lg" icon={<ClockIcon />}>Synced 3 hours ago</Badge>`,
449
+ children: /* @__PURE__ */ jsxs("div", {
354
450
  className: "badge-row",
355
451
  children: [
356
452
  /* @__PURE__ */ jsx(Badge, {
357
- size: "sm",
358
- tone: "positive",
359
- children: "Paid"
360
- }),
361
- /* @__PURE__ */ jsx(Badge, {
362
- size: "sm",
363
- tone: "warning",
364
- dot: true,
365
- children: "Unfulfilled"
453
+ size: "lg",
454
+ icon: /* @__PURE__ */ jsx(PackageIcon, {}),
455
+ figure: "142",
456
+ children: "products imported"
366
457
  }),
367
458
  /* @__PURE__ */ jsx(Badge, {
368
- size: "sm",
369
- variant: "outline",
370
- children: "VAT 20%"
459
+ size: "lg",
460
+ icon: /* @__PURE__ */ jsx(ArrowsClockwiseIcon, {}),
461
+ figure: "12",
462
+ children: "updates waiting"
371
463
  }),
372
464
  /* @__PURE__ */ jsx(Badge, {
373
- size: "sm",
374
- variant: "solid",
375
- tone: "accent",
376
- children: "5"
465
+ size: "lg",
466
+ icon: /* @__PURE__ */ jsx(ClockIcon, {}),
467
+ children: "Synced 3 hours ago"
377
468
  })
378
469
  ]
379
- })]
470
+ })
380
471
  })
381
- })
472
+ })]
382
473
  }),
383
- /* @__PURE__ */ jsxs(Section, {
474
+ /* @__PURE__ */ jsxs(Section$1, {
384
475
  id: "dot-and-pulse",
385
476
  title: "Dot and pulse",
386
477
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -391,25 +482,25 @@ function Page() {
391
482
  ] }),
392
483
  children: [/* @__PURE__ */ jsxs(Example, {
393
484
  code: `
394
- <Badge tone="warning" dot>Unfulfilled</Badge>
395
- <Badge tone="positive" dot>Fulfilled</Badge>
396
- <Badge dot>Paused</Badge>
485
+ <Badge tone="warning" dot>Awaiting payment</Badge>
486
+ <Badge tone="positive" dot>Paid</Badge>
487
+ <Badge dot>Draft</Badge>
397
488
  <Badge tone="positive" pulse>Store live</Badge>
398
489
  <Badge tone="accent" pulse>Syncing catalogue</Badge>`,
399
490
  children: [
400
491
  /* @__PURE__ */ jsx(Badge, {
401
492
  tone: "warning",
402
493
  dot: true,
403
- children: "Unfulfilled"
494
+ children: "Awaiting payment"
404
495
  }),
405
496
  /* @__PURE__ */ jsx(Badge, {
406
497
  tone: "positive",
407
498
  dot: true,
408
- children: "Fulfilled"
499
+ children: "Paid"
409
500
  }),
410
501
  /* @__PURE__ */ jsx(Badge, {
411
502
  dot: true,
412
- children: "Paused"
503
+ children: "Draft"
413
504
  }),
414
505
  /* @__PURE__ */ jsx(Badge, {
415
506
  tone: "positive",
@@ -427,7 +518,7 @@ function Page() {
427
518
  children: "When the system asks for reduced motion the pulse stops sending rings and the dot breathes in place instead, so a live state still looks live."
428
519
  })]
429
520
  }),
430
- /* @__PURE__ */ jsx(Section, {
521
+ /* @__PURE__ */ jsx(Section$1, {
431
522
  id: "icons",
432
523
  title: "With an icon",
433
524
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -466,7 +557,7 @@ function Page() {
466
557
  ]
467
558
  })
468
559
  }),
469
- /* @__PURE__ */ jsxs(Section, {
560
+ /* @__PURE__ */ jsxs(Section$1, {
470
561
  id: "counts",
471
562
  title: "Counts",
472
563
  description: /* @__PURE__ */ jsxs("p", { children: [
@@ -525,76 +616,261 @@ const [count, setCount] = useState(7)
525
616
  ]
526
617
  })]
527
618
  }),
528
- /* @__PURE__ */ jsxs(Section, {
619
+ /* @__PURE__ */ jsxs(Section$1, {
620
+ id: "as-a-link",
621
+ title: "As a link or button",
622
+ description: /* @__PURE__ */ jsxs("p", { children: [
623
+ /* @__PURE__ */ jsx("code", { children: "asChild" }),
624
+ " dresses the child element as the badge, so a badge can be a link or a button and keep its focus ring and keyboard behaviour. It takes the hover wash under the pointer and a deeper one when pressed, on every variant and tone, and its target reaches a few pixels past the pill. The child's own words become the label, and end in an ellipsis if they are too long. Put an icon in the ",
625
+ /* @__PURE__ */ jsx("code", { children: "icon" }),
626
+ " prop, as below. An icon you place inside the child instead stays where you put it, beside the words, and is not part of the label."
627
+ ] }),
628
+ children: [/* @__PURE__ */ jsxs(Example, {
629
+ code: `
630
+ <Badge asChild tone="warning" icon={<ClockIcon />}>
631
+ <a href="/billing">Trial ends in 3 days</a>
632
+ </Badge>
633
+ <Badge asChild variant="outline" tone="warning">
634
+ <button type="button" onClick={showSample}>Sample data</button>
635
+ </Badge>`,
636
+ children: [/* @__PURE__ */ jsx(Badge, {
637
+ asChild: true,
638
+ tone: "warning",
639
+ icon: /* @__PURE__ */ jsx(ClockIcon, {}),
640
+ children: /* @__PURE__ */ jsx("a", {
641
+ href: "#as-a-link",
642
+ children: "Trial ends in 3 days"
643
+ })
644
+ }), /* @__PURE__ */ jsx(Badge, {
645
+ asChild: true,
646
+ variant: "outline",
647
+ tone: "warning",
648
+ children: /* @__PURE__ */ jsx("button", {
649
+ type: "button",
650
+ children: "Sample data"
651
+ })
652
+ })]
653
+ }), /* @__PURE__ */ jsx(SubSection, {
654
+ title: "A link with a state",
655
+ description: /* @__PURE__ */ jsxs("p", { children: [
656
+ "At ",
657
+ /* @__PURE__ */ jsx("code", { children: "lg" }),
658
+ " a link badge stands beside buttons: an icon, the state in words, and a tone that follows the state. While the state is being worked out, ",
659
+ /* @__PURE__ */ jsx("code", { children: "loading" }),
660
+ " swaps the icon for a spinner; the words say what is happening. This is the label-buying balance beside an order's actions."
661
+ ] }),
662
+ children: /* @__PURE__ */ jsx(Example, {
663
+ align: "start",
664
+ code: `
665
+ <Badge size="lg" loading>Checking the balance</Badge>
666
+ <Badge asChild size="lg" icon={<CreditCardIcon />}>
667
+ <a href="/settings/shipping">£12.40 in credit</a>
668
+ </Badge>
669
+ <Badge asChild size="lg" tone="info" icon={<CreditCardIcon />}>
670
+ <a href="/settings/shipping">Settling £8.20</a>
671
+ </Badge>
672
+ <Badge asChild size="lg" tone="negative" icon={<CreditCardIcon />}>
673
+ <a href="/settings/shipping">Labels paused: confirm payment</a>
674
+ </Badge>`,
675
+ children: /* @__PURE__ */ jsxs("div", {
676
+ className: "badge-row",
677
+ children: [
678
+ /* @__PURE__ */ jsx(Badge, {
679
+ size: "lg",
680
+ loading: true,
681
+ children: "Checking the balance"
682
+ }),
683
+ /* @__PURE__ */ jsx(Badge, {
684
+ asChild: true,
685
+ size: "lg",
686
+ icon: /* @__PURE__ */ jsx(CreditCardIcon, {}),
687
+ children: /* @__PURE__ */ jsx("a", {
688
+ href: "#as-a-link",
689
+ children: "£12.40 in credit"
690
+ })
691
+ }),
692
+ /* @__PURE__ */ jsx(Badge, {
693
+ asChild: true,
694
+ size: "lg",
695
+ tone: "info",
696
+ icon: /* @__PURE__ */ jsx(CreditCardIcon, {}),
697
+ children: /* @__PURE__ */ jsx("a", {
698
+ href: "#as-a-link",
699
+ children: "Settling £8.20"
700
+ })
701
+ }),
702
+ /* @__PURE__ */ jsx(Badge, {
703
+ asChild: true,
704
+ size: "lg",
705
+ tone: "negative",
706
+ icon: /* @__PURE__ */ jsx(CreditCardIcon, {}),
707
+ children: /* @__PURE__ */ jsx("a", {
708
+ href: "#as-a-link",
709
+ children: "Labels paused: confirm payment"
710
+ })
711
+ })
712
+ ]
713
+ })
714
+ })
715
+ })]
716
+ }),
717
+ /* @__PURE__ */ jsx(Section$1, {
718
+ id: "wrapping",
719
+ title: "Wrapping words",
720
+ description: /* @__PURE__ */ jsxs("p", { children: [
721
+ "A badge stays on one line and ends long words in an ellipsis. ",
722
+ /* @__PURE__ */ jsx("code", { children: "wrap" }),
723
+ " lets them run onto more lines instead, for a name that must be read whole, such as a release. The pill grows from its one-line height and keeps a pill's corners, and the dot or icon stays level with the first line."
724
+ ] }),
725
+ children: /* @__PURE__ */ jsx(Example, {
726
+ align: "start",
727
+ code: `
728
+ <Badge tone="accent">Development release 12 of the booking plugin</Badge>
729
+ <Badge tone="accent" wrap>Development release 12 of the booking plugin</Badge>`,
730
+ children: /* @__PURE__ */ jsxs("div", {
731
+ className: "badge-rows badge-narrow",
732
+ children: [/* @__PURE__ */ jsx(Badge, {
733
+ tone: "accent",
734
+ children: "Development release 12 of the booking plugin"
735
+ }), /* @__PURE__ */ jsx(Badge, {
736
+ tone: "accent",
737
+ wrap: true,
738
+ dot: true,
739
+ children: "Development release 12 of the booking plugin"
740
+ })]
741
+ })
742
+ })
743
+ }),
744
+ /* @__PURE__ */ jsx(Section$1, {
745
+ id: "colour",
746
+ title: "A dot of its own colour",
747
+ description: /* @__PURE__ */ jsxs("p", { children: [
748
+ /* @__PURE__ */ jsx("code", { children: "color" }),
749
+ " gives the dot a colour that belongs to what the badge names: a customer group's, a category's, a brand's. It turns the dot on, and a hairline round it keeps a pale colour visible. The pill keeps its tone, so the colour never competes with a status. A missing or unreadable colour leaves the tone's dot. The",
750
+ " ",
751
+ /* @__PURE__ */ jsx(DocLink, {
752
+ to: "/components/status-dot#colour",
753
+ children: "status dot"
754
+ }),
755
+ " takes the same ",
756
+ /* @__PURE__ */ jsx("code", { children: "color" }),
757
+ "."
758
+ ] }),
759
+ children: /* @__PURE__ */ jsx(Example, {
760
+ align: "start",
761
+ code: `
762
+ <Badge variant="outline" color="#7c3aed">Wholesale</Badge>
763
+ <Badge variant="outline" color="#0ea5e9">Key accounts</Badge>
764
+ <Badge variant="outline" color="#fde68a">Pending review</Badge>
765
+ <Badge variant="outline" dot color={group.color}>Unsorted</Badge>`,
766
+ children: /* @__PURE__ */ jsxs("div", {
767
+ className: "badge-row",
768
+ children: [
769
+ /* @__PURE__ */ jsx(Badge, {
770
+ variant: "outline",
771
+ color: "#7c3aed",
772
+ children: "Wholesale"
773
+ }),
774
+ /* @__PURE__ */ jsx(Badge, {
775
+ variant: "outline",
776
+ color: "#0ea5e9",
777
+ children: "Key accounts"
778
+ }),
779
+ /* @__PURE__ */ jsx(Badge, {
780
+ variant: "outline",
781
+ color: "#fde68a",
782
+ children: "Pending review"
783
+ }),
784
+ /* @__PURE__ */ jsx(Badge, {
785
+ variant: "outline",
786
+ dot: true,
787
+ color: null,
788
+ children: "Unsorted"
789
+ })
790
+ ]
791
+ })
792
+ })
793
+ }),
794
+ /* @__PURE__ */ jsxs(Section$1, {
529
795
  id: "order-statuses",
530
796
  title: "Order statuses",
531
- description: /* @__PURE__ */ jsx("p", { children: "The mapping for orders in Orbit Commerce's store dashboard. Pick the tone by what the merchant has to do next, not by how the word feels: warning when it needs them or money is still owed, negative when something failed or money went back out." }),
797
+ description: /* @__PURE__ */ jsxs("p", { children: [
798
+ "The mapping for orders in Orbit Commerce's store dashboard, as the vendor dashboard draws it. Pick the tone by what the merchant has to do next, not by how the word feels: warning when it needs them or money is still owed or moving back, negative when something failed or was cancelled. This table is drawn from the status registry. To use the same tones in your own pages, use the ",
799
+ /* @__PURE__ */ jsx(DocLink, {
800
+ to: "/components/status-badge",
801
+ children: "status badge"
802
+ }),
803
+ ", and see there where they differ from what this page used to say."
804
+ ] }),
532
805
  children: [/* @__PURE__ */ jsx(DocTable, {
533
806
  columns: ["Status and tone", "Use it when"],
534
807
  rows: [
535
- [/* @__PURE__ */ jsx(Status, {
536
- tone: "positive",
537
- children: "Paid"
808
+ [/* @__PURE__ */ jsx(Registered, {
809
+ domain: "payment",
810
+ status: "paid"
538
811
  }), "The money is in. Nothing to do."],
539
- [/* @__PURE__ */ jsx(Status, {
540
- tone: "warning",
541
- children: "Awaiting payment"
812
+ [/* @__PURE__ */ jsx(Registered, {
813
+ domain: "payment",
814
+ status: "awaiting_payment"
542
815
  }), "The customer still owes it: a bank transfer, an invoice or a payment link."],
543
- [/* @__PURE__ */ jsx(Status, {
544
- tone: "warning",
545
- children: "Partially paid"
816
+ [/* @__PURE__ */ jsx(Registered, {
817
+ domain: "payment",
818
+ status: "partially_paid"
546
819
  }), "A deposit is in and the balance is still owed."],
547
- [/* @__PURE__ */ jsx(Status, {
548
- tone: "negative",
549
- children: "Payment failed"
820
+ [/* @__PURE__ */ jsx(Registered, {
821
+ domain: "payment",
822
+ status: "failed"
550
823
  }), "The charge did not go through. Do not ship yet."],
551
- [/* @__PURE__ */ jsx(Status, {
552
- tone: "negative",
553
- children: "Disputed"
824
+ [/* @__PURE__ */ jsx(Registered, {
825
+ domain: "payment",
826
+ status: "disputed"
554
827
  }), "The customer's bank has opened a chargeback, and it needs a reply."],
555
- [/* @__PURE__ */ jsx(Status, {
556
- tone: "negative",
557
- children: "Refunded"
558
- }), "Money went back to the customer. A part refund says so: Partially refunded."],
559
- [/* @__PURE__ */ jsx(Status, {
560
- tone: "warning",
561
- children: "Unfulfilled"
562
- }), "Paid and waiting to ship: the next job."],
563
- [/* @__PURE__ */ jsx(Status, {
564
- tone: "warning",
565
- children: "Partially fulfilled"
828
+ [/* @__PURE__ */ jsx(Registered, {
829
+ domain: "payment",
830
+ status: "refunded"
831
+ }), "Money is moving back to the customer. A part refund says so: Partially refunded."],
832
+ [/* @__PURE__ */ jsx(Registered, {
833
+ domain: "fulfilment",
834
+ status: "unfulfilled"
835
+ }), "Paid and waiting to ship, with nothing started."],
836
+ [/* @__PURE__ */ jsx(Registered, {
837
+ domain: "fulfilment",
838
+ status: "partially_fulfilled"
566
839
  }), "Some items have shipped and the rest are waiting."],
567
- [/* @__PURE__ */ jsx(Status, {
568
- tone: "positive",
569
- children: "Fulfilled"
840
+ [/* @__PURE__ */ jsx(Registered, {
841
+ domain: "fulfilment",
842
+ status: "fulfilled"
570
843
  }), "Everything has shipped. Delivered works the same way."],
571
844
  [/* @__PURE__ */ jsx(Status, {
572
845
  tone: "info",
573
846
  icon: /* @__PURE__ */ jsx(StorefrontIcon, {}),
574
847
  children: "Click and collect"
575
848
  }), "How the order is reaching the customer. Useful to know, nothing to do."],
576
- [/* @__PURE__ */ jsx(Status, {
577
- tone: "neutral",
578
- children: "Draft"
579
- }), "A draft order that has not been sent or paid."],
580
- [/* @__PURE__ */ jsx(Status, {
581
- tone: "neutral",
582
- children: "Cancelled"
583
- }), "Closed. Nothing more will happen."]
849
+ [/* @__PURE__ */ jsx(Registered, {
850
+ domain: "order",
851
+ status: "draft"
852
+ }), "A draft order that has not been sent or paid. It is work waiting."],
853
+ [/* @__PURE__ */ jsx(Registered, {
854
+ domain: "order",
855
+ status: "canceled"
856
+ }), "Closed, and it will not be fulfilled or paid."],
857
+ [/* @__PURE__ */ jsx(Registered, {
858
+ domain: "orderReturn",
859
+ status: "returned"
860
+ }), "A special state, neither good nor bad: the accent."]
584
861
  ]
585
862
  }), /* @__PURE__ */ jsxs(Note, {
586
- title: "Teal is not a status",
863
+ title: "Teal is not a good or bad status",
587
864
  children: [
588
- "Orbit teal is the brand's line of light, not a state. Use ",
865
+ "Orbit teal is the brand's line of light. Use ",
589
866
  /* @__PURE__ */ jsx("code", { children: "accent" }),
590
- " only when you mean Orbit's own emphasis: something new, something live, a count that wants attention. A paid order is",
591
- " ",
867
+ " for what Orbit wants you to notice: something new, something live, a count that wants attention. The dashboards also draw a few special states in it, such as a returned order. A paid order is ",
592
868
  /* @__PURE__ */ jsx("code", { children: "positive" }),
593
869
  ", never teal."
594
870
  ]
595
871
  })]
596
872
  }),
597
- /* @__PURE__ */ jsxs(Section, {
873
+ /* @__PURE__ */ jsxs(Section$1, {
598
874
  id: "guidelines",
599
875
  title: "Guidelines",
600
876
  children: [
@@ -625,7 +901,7 @@ const [count, setCount] = useState(7)
625
901
  do: {
626
902
  children: /* @__PURE__ */ jsx(Badge, {
627
903
  tone: "warning",
628
- children: "Unfulfilled"
904
+ children: "Awaiting payment"
629
905
  }),
630
906
  caption: "One or two words that name the state."
631
907
  },
@@ -646,7 +922,7 @@ const [count, setCount] = useState(7)
646
922
  ] })
647
923
  ]
648
924
  }),
649
- /* @__PURE__ */ jsx(Section, {
925
+ /* @__PURE__ */ jsx(Section$1, {
650
926
  id: "accessibility",
651
927
  title: "Accessibility",
652
928
  children: /* @__PURE__ */ jsx(Guidelines, { items: [
@@ -672,10 +948,12 @@ const [count, setCount] = useState(7)
672
948
  /* @__PURE__ */ jsxs("code", { children: ["tabIndex=", "{0}"] }),
673
949
  " so keyboard users can reach it."
674
950
  ] }),
675
- "Under reduced motion the pulse breathes in place and counts change without the bump."
951
+ "Under reduced motion the pulse breathes in place and counts change without the bump.",
952
+ "A figure and its words are read as one phrase (\"142 products imported\"). A spinner is decorative: the words say what is happening (\"Checking the balance\").",
953
+ "A dot of its own colour is decoration too. The words name the group, so the colour is never the only signal."
676
954
  ] })
677
955
  }),
678
- /* @__PURE__ */ jsx(Section, {
956
+ /* @__PURE__ */ jsx(Section$1, {
679
957
  id: "props",
680
958
  title: "Props",
681
959
  description: /* @__PURE__ */ jsx("p", { children: "Also accepts every native span attribute." }),
@@ -688,15 +966,37 @@ const [count, setCount] = useState(7)
688
966
  },
689
967
  {
690
968
  name: "variant",
691
- type: "'subtle' | 'solid' | 'outline'",
969
+ type: "'subtle' | 'solid' | 'outline' | 'dashed'",
692
970
  default: "'subtle'",
693
- description: "Material: a tinted pill with toned text, a filled pill, or a hairline ring."
971
+ description: "Material: a tinted pill with toned text, a filled pill, a hairline ring, or a dashed ring for a value not there yet."
694
972
  },
695
973
  {
696
974
  name: "size",
697
- type: "'sm' | 'md'",
975
+ type: "'sm' | 'md' | 'lg'",
698
976
  default: "'md'",
699
- description: "18px with 11px text, or 22px with 12px text."
977
+ description: "18px with 11px text, 22px with 12px text, or 28px with 13px text (the controls' height)."
978
+ },
979
+ {
980
+ name: "figure",
981
+ type: "ReactNode",
982
+ description: "A number before the words, in ink at 600, read with them as one phrase."
983
+ },
984
+ {
985
+ name: "loading",
986
+ type: "boolean",
987
+ default: "false",
988
+ description: "A spinner in the icon's place (or the dot's). Decorative."
989
+ },
990
+ {
991
+ name: "wrap",
992
+ type: "boolean",
993
+ default: "false",
994
+ description: "Long words wrap onto more lines instead of ending in an ellipsis."
995
+ },
996
+ {
997
+ name: "color",
998
+ type: "string | null",
999
+ description: "A hex colour of the dot's own (a group's). Turns the dot on, held by a hairline; the pill keeps its tone."
700
1000
  },
701
1001
  {
702
1002
  name: "dot",
@@ -715,6 +1015,12 @@ const [count, setCount] = useState(7)
715
1015
  type: "ReactNode",
716
1016
  description: "Leading icon, 12px (11px at sm). Decorative."
717
1017
  },
1018
+ {
1019
+ name: "asChild",
1020
+ type: "boolean",
1021
+ default: "false",
1022
+ description: "Render the child element (a link or a button) as the badge. Its words are the label; put an icon in the icon prop."
1023
+ },
718
1024
  {
719
1025
  name: "children",
720
1026
  type: "ReactNode",