@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,755 @@
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, n as CodeBlock$1, o as Example, p as SubSection, s as Guidelines, u as PropsTable } from "./docs-lM2UBSir.js";
4
+ import { useEffect, useRef, useState } from "react";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
+ import { Button, JobIndicator } from "@orbitcommerce/constellation";
7
+ //#region src/pages/components/job-indicator.tsx
8
+ /** Advance a running job by a step; it finishes when it reaches the end. */
9
+ function step(job) {
10
+ const progress = Math.min(1, (job.progress ?? 0) + .05);
11
+ if (progress >= 1) return {
12
+ ...job,
13
+ status: "done",
14
+ progress: void 0,
15
+ detail: "248 added, 6 updated."
16
+ };
17
+ return {
18
+ ...job,
19
+ progress,
20
+ detail: `${Math.round(progress * 100)}%`
21
+ };
22
+ }
23
+ function LiveJobs() {
24
+ const [jobs, setJobs] = useState(() => [
25
+ {
26
+ id: "import",
27
+ title: "Importing 248 products",
28
+ status: "running",
29
+ progress: .35,
30
+ detail: "35%",
31
+ href: "/components/toast"
32
+ },
33
+ {
34
+ id: "export",
35
+ title: "Exporting 318 orders",
36
+ status: "failed",
37
+ detail: "The file was too large. Split it and try again."
38
+ },
39
+ {
40
+ id: "customers",
41
+ title: "Importing 1,204 customers",
42
+ status: "done",
43
+ detail: "1,204 added, 12 updated.",
44
+ href: "/components/toast"
45
+ }
46
+ ]);
47
+ useEffect(() => {
48
+ const timer = window.setInterval(() => {
49
+ setJobs((now) => now.map((job) => job.status === "running" ? step(job) : job));
50
+ }, 400);
51
+ return () => window.clearInterval(timer);
52
+ }, []);
53
+ const remove = (id) => setJobs((now) => now.filter((job) => job.id !== id));
54
+ const retry = (id) => setJobs((now) => now.map((job) => job.id === id ? {
55
+ ...job,
56
+ status: "running",
57
+ progress: .05,
58
+ detail: "5%"
59
+ } : job));
60
+ const cancel = (id) => setJobs((now) => now.map((job) => job.id === id ? {
61
+ ...job,
62
+ status: "cancelled",
63
+ progress: void 0,
64
+ detail: "Cancelled."
65
+ } : job));
66
+ const nextId = useRef(1);
67
+ const startAnother = () => {
68
+ const id = `import-${nextId.current++}`;
69
+ setJobs((now) => [...now, {
70
+ id,
71
+ title: "Importing 96 products from Northgate Supply",
72
+ status: "running",
73
+ progress: .05,
74
+ detail: "5%",
75
+ href: "/components/toast"
76
+ }]);
77
+ };
78
+ const shown = jobs.map((job) => ({
79
+ ...job,
80
+ onCancel: job.status === "running" || job.status === "queued" ? () => cancel(job.id) : void 0,
81
+ onRetry: job.status === "failed" ? () => retry(job.id) : void 0
82
+ }));
83
+ return /* @__PURE__ */ jsxs("div", {
84
+ className: "job-indicator-demo",
85
+ children: [/* @__PURE__ */ jsx(Button, {
86
+ size: "sm",
87
+ variant: "secondary",
88
+ onClick: startAnother,
89
+ children: "Start another import"
90
+ }), /* @__PURE__ */ jsx(JobIndicator, {
91
+ placement: "inline",
92
+ jobs: shown,
93
+ onDismiss: remove,
94
+ renderLink: ({ href, ...props }) => /* @__PURE__ */ jsx(DocLink, {
95
+ to: href,
96
+ ...props
97
+ })
98
+ })]
99
+ });
100
+ }
101
+ /** The pill in a few states, held still for the theme pair. */
102
+ function States() {
103
+ return /* @__PURE__ */ jsxs("div", {
104
+ className: "job-indicator-stills",
105
+ children: [
106
+ /* @__PURE__ */ jsx(JobIndicator, {
107
+ placement: "inline",
108
+ jobs: [{
109
+ id: "run",
110
+ title: "Importing 248 products",
111
+ status: "running",
112
+ progress: .6,
113
+ detail: "60%"
114
+ }]
115
+ }),
116
+ /* @__PURE__ */ jsx(JobIndicator, {
117
+ placement: "inline",
118
+ jobs: [{
119
+ id: "done",
120
+ title: "Importing 1,204 customers",
121
+ status: "done"
122
+ }]
123
+ }),
124
+ /* @__PURE__ */ jsx(JobIndicator, {
125
+ placement: "inline",
126
+ jobs: [{
127
+ id: "fail",
128
+ title: "Exporting 318 orders",
129
+ status: "failed"
130
+ }]
131
+ })
132
+ ]
133
+ });
134
+ }
135
+ /** An export that runs, saves itself when it is ready and offers it again; and an import that reports what it did. */
136
+ function CardJobs() {
137
+ const [exportJob, setExportJob] = useState(null);
138
+ const [importJob, setImportJob] = useState(null);
139
+ const timer = useRef(void 0);
140
+ useEffect(() => () => window.clearInterval(timer.current), []);
141
+ const startExport = () => {
142
+ window.clearInterval(timer.current);
143
+ setExportJob({
144
+ id: "export",
145
+ title: "Exporting products",
146
+ status: "running",
147
+ progress: 0,
148
+ fileName: "products-2026-10-14.csv",
149
+ timeLeft: "About a minute left",
150
+ note: "You can keep working. We'll download it when it's ready."
151
+ });
152
+ timer.current = window.setInterval(() => {
153
+ setExportJob((job) => {
154
+ if (!job || job.status !== "running") return job;
155
+ const progress = Math.min(1, (job.progress ?? 0) + .08);
156
+ if (progress < 1) return {
157
+ ...job,
158
+ progress,
159
+ timeLeft: progress > .6 ? "A few seconds left" : job.timeLeft
160
+ };
161
+ window.clearInterval(timer.current);
162
+ return {
163
+ ...job,
164
+ title: "Export ready",
165
+ status: "done",
166
+ progress: void 0,
167
+ downloaded: true,
168
+ counts: void 0,
169
+ detail: "1,240 products",
170
+ onDownload: () => new Promise((done) => window.setTimeout(done, 900))
171
+ };
172
+ });
173
+ }, 350);
174
+ };
175
+ const finishImport = (failed) => setImportJob(failed ? {
176
+ id: "import",
177
+ title: "Import failed",
178
+ status: "failed",
179
+ fileName: "customers.csv",
180
+ detail: "The file has no Email column. Map one and try again.",
181
+ onRetry: () => finishImport(false),
182
+ onOpen: () => {}
183
+ } : {
184
+ id: "import",
185
+ title: "Customers imported",
186
+ status: "done",
187
+ fileName: "customers.csv",
188
+ counts: {
189
+ created: 1204,
190
+ updated: 12,
191
+ failed: 3
192
+ }
193
+ });
194
+ return /* @__PURE__ */ jsxs("div", {
195
+ className: "job-indicator-cards",
196
+ children: [/* @__PURE__ */ jsxs("div", {
197
+ className: "job-indicator-card-controls",
198
+ children: [/* @__PURE__ */ jsx(Button, {
199
+ size: "sm",
200
+ onClick: startExport,
201
+ children: "Export products"
202
+ }), /* @__PURE__ */ jsx(Button, {
203
+ size: "sm",
204
+ onClick: () => finishImport(true),
205
+ children: "Import customers"
206
+ })]
207
+ }), /* @__PURE__ */ jsxs("div", {
208
+ className: "job-indicator-card-column",
209
+ children: [exportJob ? /* @__PURE__ */ jsx(JobIndicator, {
210
+ presentation: "card",
211
+ placement: "inline",
212
+ jobs: [exportJob],
213
+ onDismiss: () => setExportJob(null)
214
+ }) : null, importJob ? /* @__PURE__ */ jsx(JobIndicator, {
215
+ presentation: "card",
216
+ placement: "inline",
217
+ jobs: [importJob],
218
+ onDismiss: () => setImportJob(null)
219
+ }) : null]
220
+ })]
221
+ });
222
+ }
223
+ var UPLOADS = [
224
+ {
225
+ id: "chair",
226
+ title: "arden-chair.jpg",
227
+ status: "running",
228
+ progress: .64
229
+ },
230
+ {
231
+ id: "desk",
232
+ title: "walnut-desk.jpg",
233
+ status: "running",
234
+ progress: .22
235
+ },
236
+ {
237
+ id: "lamp",
238
+ title: "brass-lamp.png",
239
+ status: "failed",
240
+ detail: "This file is larger than 20 MB."
241
+ },
242
+ {
243
+ id: "shelf",
244
+ title: "oak-shelf.jpg",
245
+ status: "done"
246
+ }
247
+ ];
248
+ /** An upload batch held still: the head with the overall progress, opening onto a row per file. */
249
+ function UploadBatch() {
250
+ return /* @__PURE__ */ jsx(JobIndicator, {
251
+ presentation: "card",
252
+ placement: "inline",
253
+ autoDismiss: false,
254
+ jobs: UPLOADS.map((job) => job.status === "failed" ? {
255
+ ...job,
256
+ onRetry: () => {}
257
+ } : job),
258
+ onDismiss: () => {}
259
+ });
260
+ }
261
+ function Preview() {
262
+ return /* @__PURE__ */ jsx("div", {
263
+ className: "job-indicator-preview",
264
+ children: /* @__PURE__ */ jsx(JobIndicator, {
265
+ placement: "inline",
266
+ jobs: [{
267
+ id: "a",
268
+ title: "Importing 248 products",
269
+ status: "running",
270
+ progress: .6,
271
+ detail: "60%"
272
+ }, {
273
+ id: "b",
274
+ title: "Exporting 318 orders",
275
+ status: "done"
276
+ }]
277
+ })
278
+ });
279
+ }
280
+ var code = (value) => /* @__PURE__ */ jsx("code", { children: value });
281
+ function Page() {
282
+ return /* @__PURE__ */ jsxs(DocPage, {
283
+ title: "Job indicator",
284
+ status: "new",
285
+ importNames: ["JobIndicator"],
286
+ lead: "A small pill that shows work running in the background (an import, an export), wherever the merchant has gone in the app: a ring of the overall progress and a count, opening a list of every job with its status, its progress and what can be done with it.",
287
+ children: [
288
+ /* @__PURE__ */ jsxs(Section$1, {
289
+ id: "basics",
290
+ title: "Basics",
291
+ description: /* @__PURE__ */ jsxs("p", { children: [
292
+ "Give it the jobs you are running and render it once, high in the app, so it follows the merchant from page to page while the work finishes. It draws nothing when there are no jobs. Each job has an ",
293
+ /* @__PURE__ */ jsx("code", { children: "id" }),
294
+ ", a ",
295
+ /* @__PURE__ */ jsx("code", { children: "title" }),
296
+ " and a",
297
+ " ",
298
+ /* @__PURE__ */ jsx("code", { children: "status" }),
299
+ "; a running job can carry a ",
300
+ /* @__PURE__ */ jsx("code", { children: "progress" }),
301
+ " (0 to 1), anyone can carry a ",
302
+ /* @__PURE__ */ jsx("code", { children: "detail" }),
303
+ " line, and the actions (",
304
+ /* @__PURE__ */ jsx("code", { children: "onCancel" }),
305
+ ", ",
306
+ /* @__PURE__ */ jsx("code", { children: "onRetry" }),
307
+ ", ",
308
+ /* @__PURE__ */ jsx("code", { children: "href" }),
309
+ ", ",
310
+ /* @__PURE__ */ jsx("code", { children: "onDismiss" }),
311
+ ") appear when the status fits. Click the pill below to open the list. Use it for background work the merchant can walk away from. Do not use it for a single action they started (a loading ",
312
+ /* @__PURE__ */ jsx(DocLink, {
313
+ to: "/components/button",
314
+ children: "Button"
315
+ }),
316
+ " says that), for a region held still while it reloads (a ",
317
+ /* @__PURE__ */ jsx(DocLink, {
318
+ to: "/components/loading-overlay",
319
+ children: "LoadingOverlay"
320
+ }),
321
+ "), or for a message that leaves on its own (a",
322
+ " ",
323
+ /* @__PURE__ */ jsx(DocLink, {
324
+ to: "/components/toast",
325
+ children: "Toast"
326
+ }),
327
+ ")."
328
+ ] }),
329
+ children: [/* @__PURE__ */ jsx(Example, {
330
+ align: "fill",
331
+ clientOnly: true,
332
+ minHeight: 160,
333
+ caption: "The import runs, finishes and turns green; Try again restarts the export and Cancel stops a job, which stays until it is dismissed. Focus stays in the row when its action changes. Nothing here floats: the pill is placed inline.",
334
+ code: `
335
+ <JobIndicator
336
+ placement="inline"
337
+ jobs={[
338
+ { id: 'import', title: 'Importing 248 products', status: 'running', progress: 0.35, detail: '35%', onCancel: cancel },
339
+ { id: 'export', title: 'Exporting 318 orders', status: 'failed', detail: 'The file was too large.', onRetry: retry },
340
+ { id: 'customers', title: 'Importing 1,204 customers', status: 'done', href: '/customers' },
341
+ ]}
342
+ onDismiss={(id) => remove(id)}
343
+ renderLink={({ href, ...props }) => <Link to={href} {...props} />}
344
+ />`,
345
+ children: /* @__PURE__ */ jsx(LiveJobs, {})
346
+ }), /* @__PURE__ */ jsx(Note, {
347
+ title: "One of it",
348
+ children: "Render one indicator near the root and give it every job. Two of them would show the same jobs twice and say the same finish out loud twice."
349
+ })]
350
+ }),
351
+ /* @__PURE__ */ jsxs(Section$1, {
352
+ id: "statuses",
353
+ title: "Statuses",
354
+ description: /* @__PURE__ */ jsxs("p", { children: [
355
+ "Five statuses. The badge in the list carries the words; the pill counts a ",
356
+ /* @__PURE__ */ jsx("code", { children: "queued" }),
357
+ " or ",
358
+ /* @__PURE__ */ jsx("code", { children: "running" }),
359
+ " job as still going, shows a check when all are done, and says how many failed (\"1 job failed\") beside a warning mark when any did."
360
+ ] }),
361
+ children: [/* @__PURE__ */ jsx(DocTable, {
362
+ columns: [
363
+ "Status",
364
+ "The row shows",
365
+ "The pill counts it as"
366
+ ],
367
+ rows: [
368
+ [
369
+ /* @__PURE__ */ jsx("code", { children: "queued" }),
370
+ "A neutral \"Queued\" badge; Cancel.",
371
+ "Going"
372
+ ],
373
+ [
374
+ /* @__PURE__ */ jsx("code", { children: "running" }),
375
+ "An accent \"Running\" badge, a progress bar (or an indeterminate one) and Cancel.",
376
+ "Going"
377
+ ],
378
+ [
379
+ /* @__PURE__ */ jsx("code", { children: "done" }),
380
+ "A green \"Done\" badge, an Open link when there is an href, and Dismiss.",
381
+ "Finished"
382
+ ],
383
+ [
384
+ /* @__PURE__ */ jsx("code", { children: "failed" }),
385
+ "A red \"Failed\" badge, the reason in detail, Try again and Dismiss.",
386
+ "Finished, and counted in \"1 job failed\""
387
+ ],
388
+ [
389
+ /* @__PURE__ */ jsx("code", { children: "cancelled" }),
390
+ "A neutral \"Cancelled\" badge and Dismiss.",
391
+ "Finished"
392
+ ]
393
+ ]
394
+ }), /* @__PURE__ */ jsx(SubSection, {
395
+ title: "The overall ring",
396
+ description: /* @__PURE__ */ jsxs("p", { children: [
397
+ "The ring in the pill is the mean of the running jobs' progress. Give a running job no ",
398
+ /* @__PURE__ */ jsx("code", { children: "progress" }),
399
+ " and the ring becomes indeterminate (a spinner), because the whole cannot be known from part. When nothing is running the pill shows a check, or a warning mark if something failed."
400
+ ] })
401
+ })]
402
+ }),
403
+ /* @__PURE__ */ jsxs(Section$1, {
404
+ id: "card",
405
+ title: "As a card",
406
+ description: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("p", { children: [
407
+ /* @__PURE__ */ jsx("code", { children: "presentation=\"card\"" }),
408
+ " draws the jobs on a floating card instead of a pill, as the dashboards' import, export and upload indicators do. A single job is shown in full at once: its ",
409
+ /* @__PURE__ */ jsx("code", { children: "fileName" }),
410
+ " after the title, a bar with the percent and ",
411
+ /* @__PURE__ */ jsx("code", { children: "timeLeft" }),
412
+ " while it runs, a ",
413
+ /* @__PURE__ */ jsx("code", { children: "note" }),
414
+ " (\"You can keep working\"), and once it is done the ",
415
+ /* @__PURE__ */ jsx("code", { children: "counts" }),
416
+ " of what an import did, the failures in a warning tone."
417
+ ] }), /* @__PURE__ */ jsxs("p", { children: [
418
+ "Its actions are callbacks. ",
419
+ /* @__PURE__ */ jsx("code", { children: "onDownload" }),
420
+ " fetches a generated file with the person's credentials and saves it (",
421
+ /* @__PURE__ */ jsx("code", { children: "downloadBlob(blob, fileName)" }),
422
+ "); it is busy while its promise runs, and says \"Download again\" once the file has come down by itself (",
423
+ /* @__PURE__ */ jsx("code", { children: "downloaded" }),
424
+ "). ",
425
+ /* @__PURE__ */ jsx("code", { children: "onOpen" }),
426
+ " goes back to the job's own screen: \"View progress\" while it runs, \"Open\" once it has stopped. A job that is done and offers nothing more goes by itself 4 seconds later (",
427
+ /* @__PURE__ */ jsx("code", { children: "autoDismiss" }),
428
+ "), never while the pointer or focus is on it; one that failed stays until it is dismissed."
429
+ ] })] }),
430
+ children: [/* @__PURE__ */ jsx(Example, {
431
+ align: "start",
432
+ code: `
433
+ <JobIndicator
434
+ presentation="card"
435
+ placement="inline" // in a CornerStack; or a corner of the window
436
+ onDismiss={dismiss}
437
+ jobs={[{
438
+ id: 'export',
439
+ title: 'Exporting products',
440
+ status: 'running',
441
+ progress: 0.42,
442
+ fileName: 'products-2026-10-14.csv',
443
+ timeLeft: 'About a minute left',
444
+ note: "You can keep working. We'll download it when it's ready.",
445
+ }]}
446
+ />
447
+
448
+ // Done, the file saved by itself, and offered again
449
+ { ...job, status: 'done', downloaded: true, onDownload: async () => downloadBlob(await fetchExport(job), job.fileName) }
450
+
451
+ // An import that reports what it did
452
+ { id: 'import', title: 'Customers imported', status: 'done', fileName: 'customers.csv', counts: { created: 1204, updated: 12, failed: 3 } }`,
453
+ children: /* @__PURE__ */ jsx(CardJobs, {})
454
+ }), /* @__PURE__ */ jsx(SubSection, {
455
+ title: "A batch",
456
+ description: /* @__PURE__ */ jsx("p", { children: "Several jobs, such as the files of an upload, are a head with their count and overall progress that opens onto a row for each, with its own bar, reason and actions. The rows scroll inside the card past 240px." }),
457
+ children: /* @__PURE__ */ jsx(Example, {
458
+ align: "start",
459
+ code: `<JobIndicator presentation="card" placement="inline" jobs={uploads} onDismiss={dismiss} />`,
460
+ children: /* @__PURE__ */ jsx(UploadBatch, {})
461
+ })
462
+ })]
463
+ }),
464
+ /* @__PURE__ */ jsxs(Section$1, {
465
+ id: "placement",
466
+ title: "Placement",
467
+ description: /* @__PURE__ */ jsxs("p", { children: [
468
+ /* @__PURE__ */ jsx("code", { children: "bottom-right" }),
469
+ " (the default) and ",
470
+ /* @__PURE__ */ jsx("code", { children: "bottom-left" }),
471
+ " fix the pill 16px in from that corner (or clear of a phone's home indicator and rounded corners, where the screen has them), above the page but below toasts, so a toast still covers it. ",
472
+ /* @__PURE__ */ jsx("code", { children: "inline" }),
473
+ " draws it in the flow, for a header or a toolbar. The fixed placements are not shown live here, because they would float over this page."
474
+ ] }),
475
+ children: [/* @__PURE__ */ jsx(CodeBlock$1, { code: `
476
+ {/* Fixed in a corner of the window */}
477
+ <JobIndicator jobs={jobs} onDismiss={dismiss} placement="bottom-right" />
478
+
479
+ {/* In a header */}
480
+ <JobIndicator jobs={jobs} onDismiss={dismiss} placement="inline" />` }), /* @__PURE__ */ jsx(Fragment$1, {})]
481
+ }),
482
+ /* @__PURE__ */ jsx(Section$1, {
483
+ id: "both-themes",
484
+ title: "In both themes",
485
+ description: /* @__PURE__ */ jsx("p", { children: "The pill counting a running job, holding a finished one and warning about a failed one, light and dark." }),
486
+ children: /* @__PURE__ */ jsx(ThemePair, {
487
+ align: "fill",
488
+ children: /* @__PURE__ */ jsx(States, {})
489
+ })
490
+ }),
491
+ /* @__PURE__ */ jsx(Section$1, {
492
+ id: "accessibility",
493
+ title: "Accessibility",
494
+ children: /* @__PURE__ */ jsx(Guidelines, { items: [
495
+ "The pill is a button with aria-haspopup=\"dialog\"; it opens a dialog named \"Background jobs\" that lists the jobs.",
496
+ "Each row names its progress bar with the job's title, so a bar is never read as a bare number.",
497
+ "A job that finishes or fails is said once, politely (\"Importing 248 products: Done\"), from a status that is in the page before its words are. Nothing is announced for the jobs already finished when the indicator appears.",
498
+ "The actions are small buttons with real names (Cancel, Try again, Open, Dismiss), in the tab order with the pill.",
499
+ "An action that goes while it holds focus hands it on: Try again to the row's Cancel, Cancel to its Dismiss, and a dismissed row to the first action left in the list. Dismissing the last job hands focus to the next control on the page.",
500
+ "The pill is decoration for the count: the ring and the check are hidden from assistive technology, and the words carry the count."
501
+ ] })
502
+ }),
503
+ /* @__PURE__ */ jsxs(Section$1, {
504
+ id: "guidelines",
505
+ title: "Guidelines",
506
+ children: [/* @__PURE__ */ jsx(DocTable, {
507
+ columns: ["Reach for", "When"],
508
+ rows: [
509
+ [code("JobIndicator"), "Work runs in the background while the merchant moves around: imports and exports they can walk away from."],
510
+ [/* @__PURE__ */ jsx(DocLink, {
511
+ to: "/components/toast",
512
+ children: "Toast"
513
+ }), "A one-off message about something that just happened, which leaves on its own."],
514
+ [/* @__PURE__ */ jsx(DocLink, {
515
+ to: "/components/loading-overlay",
516
+ children: "LoadingOverlay"
517
+ }), "A region or the whole page is held still while it reloads."],
518
+ [/* @__PURE__ */ jsx(DocLink, {
519
+ to: "/components/progress",
520
+ children: "Progress"
521
+ }), "One measure on its own, on the page it belongs to."]
522
+ ]
523
+ }), /* @__PURE__ */ jsx(Guidelines, { items: [
524
+ "Title a job with what it is doing and to what: \"Importing 248 products\", not \"Import\".",
525
+ "Give a job a progress only when you have one; leave it out and the ring says the work is under way without a figure.",
526
+ "Say what finished in the job's detail on completion (\"248 added, 6 updated\"), so the merchant need not open the result to know.",
527
+ "Offer Cancel while a job can still be stopped, Try again when it failed, and Open only when there is a result to open.",
528
+ "Keep the list to the jobs that matter. When many finish together, let them be dismissed rather than pile up.",
529
+ "Never make the indicator the only way to reach a result: the page the job was started from should show it too."
530
+ ] })]
531
+ }),
532
+ /* @__PURE__ */ jsxs(Section$1, {
533
+ id: "props",
534
+ title: "Props",
535
+ description: /* @__PURE__ */ jsxs("p", { children: [
536
+ "Also accepts every native ",
537
+ /* @__PURE__ */ jsx("code", { children: "div" }),
538
+ " attribute, and a ref."
539
+ ] }),
540
+ children: [
541
+ /* @__PURE__ */ jsx(PropsTable, { rows: [
542
+ {
543
+ name: "jobs",
544
+ type: "JobIndicatorJob[]",
545
+ required: true,
546
+ description: "The background jobs, top to bottom. Nothing is drawn when this is empty."
547
+ },
548
+ {
549
+ name: "onDismiss",
550
+ type: "(id: string) => void",
551
+ description: "Called by Dismiss on a finished job (done, failed or cancelled)."
552
+ },
553
+ {
554
+ name: "placement",
555
+ type: "'bottom-right' | 'bottom-left' | 'inline'",
556
+ default: "'bottom-right'",
557
+ description: "The corner of the window, or 'inline' to draw it in the flow for a header."
558
+ },
559
+ {
560
+ name: "presentation",
561
+ type: "'pill' | 'card'",
562
+ default: "'pill'",
563
+ description: "A pill that opens a popover of the jobs, or the jobs on a floating card."
564
+ },
565
+ {
566
+ name: "autoDismiss",
567
+ type: "number | boolean",
568
+ default: "4000 for a card, off for the pill",
569
+ description: "How long a job that is done and offers nothing more stays before onDismiss takes it. It waits while the pointer or focus is on it."
570
+ },
571
+ {
572
+ name: "renderLink",
573
+ type: "(props: { href: string; className: string; children: ReactNode }) => ReactElement",
574
+ description: "Draws the Open action with your router's link. Receives the link's props and returns the one element."
575
+ },
576
+ {
577
+ name: "labels",
578
+ type: "Partial<JobIndicatorLabels>",
579
+ description: "Reword the indicator's own words: the counts, the heading, the four actions and the statuses."
580
+ }
581
+ ] }),
582
+ /* @__PURE__ */ jsx(PropsTable, {
583
+ title: "JobIndicatorJob",
584
+ rows: [
585
+ {
586
+ name: "id",
587
+ type: "string",
588
+ required: true,
589
+ description: "Stable id: the row's key, and what onDismiss is called with."
590
+ },
591
+ {
592
+ name: "title",
593
+ type: "ReactNode",
594
+ required: true,
595
+ description: "What the job is doing: \"Importing 1,240 products\". A string is what the announcement says."
596
+ },
597
+ {
598
+ name: "status",
599
+ type: "JobStatus",
600
+ required: true,
601
+ description: "'queued', 'running', 'done', 'failed' or 'cancelled'."
602
+ },
603
+ {
604
+ name: "progress",
605
+ type: "number",
606
+ description: "How far it has got, 0 to 1, while running. Leave it out when that is not known, and the ring is indeterminate."
607
+ },
608
+ {
609
+ name: "detail",
610
+ type: "ReactNode",
611
+ description: "A quiet line under the title: \"320 of 1,240\", or why it failed."
612
+ },
613
+ {
614
+ name: "onCancel",
615
+ type: "() => void",
616
+ description: "A Cancel action while the job is queued or running."
617
+ },
618
+ {
619
+ name: "onRetry",
620
+ type: "() => void",
621
+ description: "A Try again action when the job has failed."
622
+ },
623
+ {
624
+ name: "href",
625
+ type: "string",
626
+ description: "An Open link when the job is done. Goes through renderLink when that is given."
627
+ },
628
+ {
629
+ name: "fileName",
630
+ type: "ReactNode",
631
+ description: "The file it reads or writes, after the title."
632
+ },
633
+ {
634
+ name: "timeLeft",
635
+ type: "ReactNode",
636
+ description: "How long it has left, beside the percent while it runs: \"About 2 minutes left\"."
637
+ },
638
+ {
639
+ name: "note",
640
+ type: "ReactNode",
641
+ description: "A quiet line while it runs: \"You can keep working.\""
642
+ },
643
+ {
644
+ name: "counts",
645
+ type: "{ created?, updated?, skipped?, failed? }",
646
+ description: "What an import did, once it is done. Skips and failures are in a warning tone."
647
+ },
648
+ {
649
+ name: "onDownload",
650
+ type: "() => void | Promise<unknown>",
651
+ description: "A Download action once it is done. Busy while its promise runs."
652
+ },
653
+ {
654
+ name: "downloaded",
655
+ type: "boolean",
656
+ description: "The file has come down already: the action says \"Download again\"."
657
+ },
658
+ {
659
+ name: "onOpen",
660
+ type: "() => void",
661
+ description: "\"View progress\" while it runs, \"Open\" once it has stopped: back to the job's own screen."
662
+ }
663
+ ]
664
+ }),
665
+ /* @__PURE__ */ jsx(PropsTable, {
666
+ title: "Labels",
667
+ rows: [
668
+ {
669
+ name: "running",
670
+ type: "(count: number) => string",
671
+ default: "'1 job running' / '2 jobs running'",
672
+ description: "The pill's words while jobs run."
673
+ },
674
+ {
675
+ name: "finished",
676
+ type: "(count: number) => string",
677
+ default: "'1 job finished' / '2 jobs finished'",
678
+ description: "The pill's words when none run and none failed."
679
+ },
680
+ {
681
+ name: "failed",
682
+ type: "(count: number) => string",
683
+ default: "'1 job failed' / '2 jobs failed'",
684
+ description: "The pill's words when none run and some failed: the count of those that failed."
685
+ },
686
+ {
687
+ name: "title",
688
+ type: "string",
689
+ default: "'Background jobs'",
690
+ description: "The heading of the popover list."
691
+ },
692
+ {
693
+ name: "cancel",
694
+ type: "string",
695
+ default: "'Cancel'",
696
+ description: "The Cancel action."
697
+ },
698
+ {
699
+ name: "retry",
700
+ type: "string",
701
+ default: "'Try again'",
702
+ description: "The Retry action."
703
+ },
704
+ {
705
+ name: "open",
706
+ type: "string",
707
+ default: "'Open'",
708
+ description: "The action that opens a finished job's result."
709
+ },
710
+ {
711
+ name: "dismiss",
712
+ type: "string",
713
+ default: "'Dismiss'",
714
+ description: "The action that clears a finished job."
715
+ },
716
+ {
717
+ name: "status",
718
+ type: "Record<JobStatus, string>",
719
+ default: "'Queued' / 'Running' / 'Done' / 'Failed' / 'Cancelled'",
720
+ description: "The words each status draws on its badge."
721
+ },
722
+ {
723
+ name: "viewProgress",
724
+ type: "string",
725
+ default: "'View progress'",
726
+ description: "onOpen while the job runs."
727
+ },
728
+ {
729
+ name: "download / downloadAgain",
730
+ type: "string",
731
+ default: "'Download' / 'Download again'",
732
+ description: "onDownload, before and after the file has come down."
733
+ },
734
+ {
735
+ name: "createdCount, updatedCount, skippedCount, failedCount",
736
+ type: "(count: number) => string",
737
+ default: "'12 created' …",
738
+ description: "The parts of an import's summary."
739
+ },
740
+ {
741
+ name: "percent",
742
+ type: "(value: number) => string",
743
+ default: "'42%'",
744
+ description: "How a progress is written on the card."
745
+ }
746
+ ]
747
+ })
748
+ ]
749
+ }),
750
+ /* @__PURE__ */ jsx(Fragment$1, {})
751
+ ]
752
+ });
753
+ }
754
+ //#endregion
755
+ export { Page, Preview };