@orbitcommerce/constellation-docs 1.0.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/dist/docs.css +14764 -2237
  2. package/dist/index.js +2 -2
  3. package/dist/pages/{Playground-CNbBbErC.js → Playground-Mk1yIWXb.js} +2 -2
  4. package/dist/pages/_address-data-L9BR499w.js +161 -0
  5. package/dist/pages/_builder-demo-C0eJUmPU.js +282 -0
  6. package/dist/pages/_card-art-0be5ncyV.js +18 -0
  7. package/dist/pages/_conversation-samples-Bq7cn-4d.js +70 -0
  8. package/dist/pages/{_figures-data-BDmScEny.js → _figures-data-DaDvB7Nm.js} +5 -5
  9. package/dist/pages/_kpi-examples-DeGCBB9T.js +208 -0
  10. package/dist/pages/{_overlays-specimens-Dpn6oiyH.js → _overlays-specimens-bawR331Z.js} +33 -23
  11. package/dist/pages/_preview-specimens-DKQC9HAo.js +153 -0
  12. package/dist/pages/accordion-Sg0TUqxB.js +1036 -0
  13. package/dist/pages/address-autocomplete-DP0PUOlK.js +360 -0
  14. package/dist/pages/address-block-BvxQWBTy.js +403 -0
  15. package/dist/pages/address-fields-CwSqro3W.js +277 -0
  16. package/dist/pages/ai-highlight-D3x2vD83.js +642 -0
  17. package/dist/pages/{alert-BD4e6QTh.js → alert-D3i7xZTU.js} +195 -50
  18. package/dist/pages/anchored-overlay-BV0OCu2Q.js +788 -0
  19. package/dist/pages/{app-shell-KbA-nRqZ.js → app-shell-D4hdlHps.js} +133 -54
  20. package/dist/pages/{area-chart-B91dLcGo.js → area-chart-BEWFwiB2.js} +183 -27
  21. package/dist/pages/{avatar-DPPHXJAu.js → avatar-BFEqQViw.js} +194 -12
  22. package/dist/pages/avatar-upload-BDCzJfyN.js +484 -0
  23. package/dist/pages/{badge-C9JR0thI.js → badge-0-PyMrih.js} +441 -135
  24. package/dist/pages/bar-chart-DkLogYlt.js +1060 -0
  25. package/dist/pages/bar-fold-B-3XeIDZ.js +360 -0
  26. package/dist/pages/board-card-D2tZY_mU.js +415 -0
  27. package/dist/pages/brand-mark-BqiLvFSR.js +417 -0
  28. package/dist/pages/{button-D3V912P4.js → button-DAyfssDY.js} +276 -79
  29. package/dist/pages/{calendar-DSDZ9nRH.js → calendar-Ds7KsgSI.js} +69 -17
  30. package/dist/pages/canvas-stage-1KiPspkX.js +472 -0
  31. package/dist/pages/card-CXZ3V1d4.js +1612 -0
  32. package/dist/pages/caret-suggestions-oHI6QvqW.js +526 -0
  33. package/dist/pages/chart-legend-B20AbakD.js +724 -0
  34. package/dist/pages/chat-composer-CwzUJYIa.js +437 -0
  35. package/dist/pages/checkbox-BG9Zkb6j.js +1581 -0
  36. package/dist/pages/checklist-card-DEyykVFS.js +783 -0
  37. package/dist/pages/chip-Ck-o3Ui6.js +839 -0
  38. package/dist/pages/chip-list-k1LxXuCi.js +414 -0
  39. package/dist/pages/clamp-text-n-iE8RDR.js +203 -0
  40. package/dist/pages/coachmark-Be2ghobT.js +366 -0
  41. package/dist/pages/code-block-Dv_Y5GYq.js +622 -0
  42. package/dist/pages/collab-field-CfqqK7d2.js +696 -0
  43. package/dist/pages/color-field-CZpfcA-A.js +1127 -0
  44. package/dist/pages/{colour-BwuO8xAv.js → colour-q2ntvI0w.js} +496 -20
  45. package/dist/pages/column-mapper-TsTG39cl.js +502 -0
  46. package/dist/pages/combobox-DvK2j5tI.js +1334 -0
  47. package/dist/pages/{command-palette-xAD7fOg6.js → command-palette-CJ7uBA04.js} +201 -58
  48. package/dist/pages/comment-box-CDSGYhr5.js +346 -0
  49. package/dist/pages/composer-D4B0NgpA.js +689 -0
  50. package/dist/pages/condition-builder-BZy2ZGXe.js +715 -0
  51. package/dist/pages/conflict-chooser-C--_9UIS.js +210 -0
  52. package/dist/pages/context-menu-F9DV30ia.js +487 -0
  53. package/dist/pages/copy-button-Cn7WiKRF.js +568 -0
  54. package/dist/pages/copy-field-D3Xt3Jq6.js +511 -0
  55. package/dist/pages/danger-zone-Db_UUeiP.js +564 -0
  56. package/dist/pages/date-input-GOW067EB.js +956 -0
  57. package/dist/pages/{date-picker-BYSa816m.js → date-picker-GdBciR99.js} +186 -38
  58. package/dist/pages/date-time-BLKCXtVZ.js +678 -0
  59. package/dist/pages/{delta-CtAo0eIM.js → delta-CNAGv8JY.js} +266 -61
  60. package/dist/pages/description-list-BPeXn1eW.js +1268 -0
  61. package/dist/pages/device-switcher-BCaN99c1.js +554 -0
  62. package/dist/pages/dialog-CRpkRC98.js +3164 -0
  63. package/dist/pages/{docs-BNOb7AqR.js → docs-lM2UBSir.js} +20 -15
  64. package/dist/pages/doodle-nzkqi2UI.js +201 -0
  65. package/dist/pages/drag-ghost-B6kpzC3O.js +426 -0
  66. package/dist/pages/drill-menu-cskH5mol.js +490 -0
  67. package/dist/pages/dropzone-DOY_Rhw0.js +1069 -0
  68. package/dist/pages/element-toolbar-DZIhXlCJ.js +498 -0
  69. package/dist/pages/emoji-picker-CqaWaffD.js +235 -0
  70. package/dist/pages/empty-state-4U2txFpI.js +1113 -0
  71. package/dist/pages/facet-filters-McbBeY9e.js +353 -0
  72. package/dist/pages/figure-D-HF5vCj.js +563 -0
  73. package/dist/pages/figure-strip-hg7txTc3.js +1381 -0
  74. package/dist/pages/{figure-tabs-CoPFzzKz.js → figure-tabs-QOeQMY6N.js} +153 -35
  75. package/dist/pages/file-chip-DMDjtlqQ.js +738 -0
  76. package/dist/pages/filter-pill-DzqNOsD4.js +1295 -0
  77. package/dist/pages/font-picker-Bqhu0QMh.js +416 -0
  78. package/dist/pages/form-grid-BfWCVlie.js +692 -0
  79. package/dist/pages/gallery-BBk2EOri.js +453 -0
  80. package/dist/pages/gif-picker-CnoDTCaL.js +270 -0
  81. package/dist/pages/gradient-editor-Bqxp7Fxj.js +378 -0
  82. package/dist/pages/grouped-checklist-gNZ0tBKU.js +477 -0
  83. package/dist/pages/heatmap-BohgIcNk.js +507 -0
  84. package/dist/pages/highlight-text-BfxzfmvS.js +287 -0
  85. package/dist/pages/{home-dashboard-CFQwDtC9.js → home-dashboard-CxPmvduE.js} +21 -18
  86. package/dist/pages/hosted-embed-Jef3aIMP.js +163 -0
  87. package/dist/pages/hosted-field-BLh-53AE.js +208 -0
  88. package/dist/pages/hosted-field-DEpI4lVS.js +514 -0
  89. package/dist/pages/{icon-button-C9eSVPPW.js → icon-button-Bu4Gj5sy.js} +370 -31
  90. package/dist/pages/icon-picker-DEyoMUTh.js +291 -0
  91. package/dist/pages/icon-tile-DcgxyXPF.js +592 -0
  92. package/dist/pages/{icons-sxkTs5Ob.js → icons-CJ9Aar3d.js} +315 -52
  93. package/dist/pages/image-cropper-NyougqLH.js +466 -0
  94. package/dist/pages/image-field-7knBv4mJ.js +567 -0
  95. package/dist/pages/import-result-CmTtGXW_.js +486 -0
  96. package/dist/pages/inline-confirm-CEcI5Lxo.js +327 -0
  97. package/dist/pages/inline-edit-Ba39SzhM.js +1125 -0
  98. package/dist/pages/input-CzLCzfyx.js +2372 -0
  99. package/dist/pages/{installation-DpsX8G_n.js → installation-DRUWNVHP.js} +112 -29
  100. package/dist/pages/job-indicator-DOXWbFdl.js +755 -0
  101. package/dist/pages/kanban-Dy9sPAI0.js +740 -0
  102. package/dist/pages/{kbd-cNfDoikz.js → kbd-UNj4zqxn.js} +15 -14
  103. package/dist/pages/layout-primitives-CPRaZeyt.js +483 -0
  104. package/dist/pages/line-chart-CntWxeMF.js +1117 -0
  105. package/dist/pages/link-CXqvAg9z.js +689 -0
  106. package/dist/pages/link-picker-BMFGCC67.js +478 -0
  107. package/dist/pages/link-row-x8yaUuWc.js +595 -0
  108. package/dist/pages/{live-globe-ClvLn9Lb.js → live-globe-95ROMhGQ.js} +191 -47
  109. package/dist/pages/loading-overlay-BeGuXM9G.js +456 -0
  110. package/dist/pages/loading-state-BNbCo51C.js +556 -0
  111. package/dist/pages/log-viewer-BQz8I_a2.js +503 -0
  112. package/dist/pages/{logo-BfGF1Pq9.js → logo-D3a3QGKJ.js} +13 -13
  113. package/dist/pages/lottie_light-CxEH8eiR.js +9116 -0
  114. package/dist/pages/markdown-Ied72vMT.js +237 -0
  115. package/dist/pages/markdown-field-BfnIEKZH.js +193 -0
  116. package/dist/pages/media-banner-DkStCia0.js +233 -0
  117. package/dist/pages/{menu-by2sgQ09.js → menu-NrLYKqKp.js} +623 -109
  118. package/dist/pages/message-thread-Bo4zbxqu.js +731 -0
  119. package/dist/pages/meta-line-D5p2TycR.js +371 -0
  120. package/dist/pages/model-viewer-BfokvHoc.js +60288 -0
  121. package/dist/pages/model-viewer-C8PFO8wk.js +577 -0
  122. package/dist/pages/month-calendar-T1vw9Rup.js +457 -0
  123. package/dist/pages/{motion-BvTGc2Dk.js → motion-CrXtiBvA.js} +20 -10
  124. package/dist/pages/number-input-CuyMZg18.js +968 -0
  125. package/dist/pages/orbit-loader-DeVBtkFE.js +219 -0
  126. package/dist/pages/{orbit-spinner-Dil1Z3Oy.js → orbit-spinner-Dxv5qAhr.js} +30 -14
  127. package/dist/pages/otp-input-CVRoX1mw.js +591 -0
  128. package/dist/pages/{overview-BPEbZQ6g.js → overview-BSfEqHY8.js} +4 -4
  129. package/dist/pages/package-dimensions-DFCyZj_T.js +192 -0
  130. package/dist/pages/{pagination-BBUnGvv5.js → pagination-C1EgVtW4.js} +74 -29
  131. package/dist/pages/palette-tile-X9ZXu2Z0.js +414 -0
  132. package/dist/pages/password-field-DHEQKyUC.js +912 -0
  133. package/dist/pages/person-cell-BmjbADBz.js +564 -0
  134. package/dist/pages/phone-input-B3G7Qpb2.js +747 -0
  135. package/dist/pages/plan-card-DRaA6RuB.js +621 -0
  136. package/dist/pages/plan-card-DtloWvMh.js +258 -0
  137. package/dist/pages/plan-comparison-BVIGTtbd.js +559 -0
  138. package/dist/pages/plan-grid-BCPvtP8J.js +251 -0
  139. package/dist/pages/point-list-BbPmZjsm.js +222 -0
  140. package/dist/pages/{popover-Db1gLDpb.js → popover-C3Oar9D5.js} +76 -14
  141. package/dist/pages/presence-avatars-CRZIk8n9.js +328 -0
  142. package/dist/pages/preview-frame-Bcwk0y_Q.js +1631 -0
  143. package/dist/pages/price-CRBLoa9h.js +604 -0
  144. package/dist/pages/{principles-CeAIOIdt.js → principles-pnDyfHpK.js} +9 -9
  145. package/dist/pages/print-page-BkLv6bW8.js +513 -0
  146. package/dist/pages/profile-hero-CC9dUzuN.js +498 -0
  147. package/dist/pages/progress-CP_awmo4.js +904 -0
  148. package/dist/pages/progress-ring-JuOAwk2T.js +576 -0
  149. package/dist/pages/{radio-group-CkdBWWfG.js → radio-group-CbiibLwn.js} +581 -18
  150. package/dist/pages/radius-control-B2kRA2Ch.js +441 -0
  151. package/dist/pages/rating-CweKN2SX.js +471 -0
  152. package/dist/pages/record-layout-DUP_X0RL.js +719 -0
  153. package/dist/pages/record-pager-y9D7JFgb.js +278 -0
  154. package/dist/pages/registry-CNR7zpf7.js +594 -0
  155. package/dist/pages/{release-Dvo684UJ.js → release-DYBCY7jm.js} +4 -1
  156. package/dist/pages/repeater-BRZYKRQa.js +1351 -0
  157. package/dist/pages/reply-feedback-BDnHprla.js +192 -0
  158. package/dist/pages/reveal-BygENBbL.js +460 -0
  159. package/dist/pages/rich-text-DOFQZEpT.js +156 -0
  160. package/dist/pages/rich-text-editor-BhIM20JI.js +1265 -0
  161. package/dist/pages/rolldown-runtime-CbKu08Hx.js +25 -0
  162. package/dist/pages/{rolling-number-qmvH84Mq.js → rolling-number-GR3Cyfpz.js} +12 -12
  163. package/dist/pages/row-list-Dl6CYhC-.js +1565 -0
  164. package/dist/pages/rule-list-DTCmIMpT.js +648 -0
  165. package/dist/pages/save-status-B5KkyMZP.js +378 -0
  166. package/dist/pages/schedule-YycI95O1.js +243 -0
  167. package/dist/pages/scroll-area-B2sGm23Q.js +423 -0
  168. package/dist/pages/{search-field-BN7MWGQ4.js → search-field-D1uG7R6A.js} +15 -15
  169. package/dist/pages/search-menu-DMuXyUUW.js +580 -0
  170. package/dist/pages/secret-field-Dj9x3LL8.js +337 -0
  171. package/dist/pages/section-rail-BtTCETS5.js +637 -0
  172. package/dist/pages/section-v2Pubup9.js +639 -0
  173. package/dist/pages/{segmented-control-CTbIpRBW.js → segmented-control-D-FB1K1T.js} +450 -37
  174. package/dist/pages/{select-DguELoRR.js → select-DZ43NpOm.js} +22 -17
  175. package/dist/pages/selection-chrome-Czcs6RN6.js +437 -0
  176. package/dist/pages/{separator-CPZub9pv.js → separator-CFwqRvfO.js} +99 -22
  177. package/dist/pages/serp-preview-BGwORjmo.js +346 -0
  178. package/dist/pages/setting-row-Bt-dZV8H.js +913 -0
  179. package/dist/pages/{shape-DKvA0YKr.js → shape-DzniHAVT.js} +10 -10
  180. package/dist/pages/share-list-D4wgBxKN.js +926 -0
  181. package/dist/pages/side-panel-CCtkrZjs.js +811 -0
  182. package/dist/pages/site-preview-Dj1hM2Yo.js +353 -0
  183. package/dist/pages/skeleton-C1F5HkAu.js +1325 -0
  184. package/dist/pages/skip-link-BxznhSkz.js +252 -0
  185. package/dist/pages/slider-CAoPURKD.js +774 -0
  186. package/dist/pages/sortable-card-Sr44uCpI.js +424 -0
  187. package/dist/pages/sortable-list-DUAleYE1.js +1298 -0
  188. package/dist/pages/sortable-tree-BLzK-hTE.js +737 -0
  189. package/dist/pages/spacing-box-CtuvzxQu.js +550 -0
  190. package/dist/pages/{sparkline-DMMYGbHn.js → sparkline-D3aavCly.js} +301 -22
  191. package/dist/pages/split-bar-DYgZnFID.js +414 -0
  192. package/dist/pages/split-button-Be08-VI-.js +335 -0
  193. package/dist/pages/split-pane-lSNZgTKt.js +523 -0
  194. package/dist/pages/status-badge-DOdNhmzn.js +1074 -0
  195. package/dist/pages/status-checklist-CWkjCZIC.js +1152 -0
  196. package/dist/pages/status-dot-D99gAGsV.js +567 -0
  197. package/dist/pages/stepper-CxKTbEA-.js +1093 -0
  198. package/dist/pages/success-mark-CqFTOBEu.js +142 -0
  199. package/dist/pages/swatch-H_kNvHuC.js +565 -0
  200. package/dist/pages/{switch-B-Qe4kcT.js → switch-C93K6j9h.js} +151 -51
  201. package/dist/pages/table-mq_pNXza.js +3232 -0
  202. package/dist/pages/{tabs-B4M-usCV.js → tabs-Cf4MZ8Fq.js} +257 -21
  203. package/dist/pages/tag-input-BjZWKKRJ.js +1307 -0
  204. package/dist/pages/task-card-Dv0sR1-w.js +295 -0
  205. package/dist/pages/{textarea-fTuUZRQb.js → textarea-CCM-SnGN.js} +271 -15
  206. package/dist/pages/thumbnail-DwFJL_k1.js +1147 -0
  207. package/dist/pages/time-input-CA9-uZAa.js +442 -0
  208. package/dist/pages/time-zone-select-CEtMXVYO.js +296 -0
  209. package/dist/pages/timeline-BsMUTlpR.js +1798 -0
  210. package/dist/pages/{toast-CKP03zjy.js → toast-zXLRiMRT.js} +240 -25
  211. package/dist/pages/tool-rail-B1AbTMCP.js +355 -0
  212. package/dist/pages/toolbar-B9l_fHKy.js +754 -0
  213. package/dist/pages/{tooltip-CBYil3kt.js → tooltip-LHtCUkF-.js} +162 -33
  214. package/dist/pages/translation-field-CTRXiF2N.js +251 -0
  215. package/dist/pages/tree-checklist-CJj3OcLg.js +451 -0
  216. package/dist/pages/tree-select-DU1qXHy_.js +492 -0
  217. package/dist/pages/tree-view-g_RjLtAb.js +739 -0
  218. package/dist/pages/{typography-PCbg8Bhg.js → typography-BSijtiRl.js} +153 -12
  219. package/dist/pages/unit-input-Dml4fjmK.js +659 -0
  220. package/dist/pages/upload-rules-yozEzSah.js +419 -0
  221. package/dist/pages/url-upload-input-SSnMgfpA.js +307 -0
  222. package/dist/pages/value-change-CnubDKyO.js +489 -0
  223. package/dist/pages/weekly-hours-i2EpsmTx.js +287 -0
  224. package/dist/pages/widget-preview-CUJMyZ_k.js +625 -0
  225. package/dist/pages/working-status-CENemSsw.js +389 -0
  226. package/manifest.json +10989 -1108
  227. package/package.json +3 -3
  228. package/dist/pages/card-DUggbis3.js +0 -659
  229. package/dist/pages/checkbox-DwimQaK3.js +0 -365
  230. package/dist/pages/dialog-BRAf4LMh.js +0 -1451
  231. package/dist/pages/empty-state-C-mLrXW2.js +0 -417
  232. package/dist/pages/input-KF9Gkawf.js +0 -1093
  233. package/dist/pages/registry-CroHzK9I.js +0 -244
  234. package/dist/pages/skeleton-DLuBhP46.js +0 -561
  235. package/dist/pages/table-AMoODng4.js +0 -607
@@ -0,0 +1,1325 @@
1
+ "use client";
2
+ import { t as DocLink } from "./host-B6znjEgQ.js";
3
+ import { a as DocTable, d as Section$1, i as DocPage, l as Note, m as ThemePair, o as Example, p as SubSection, r as DoDont, s as Guidelines, u as PropsTable } from "./docs-lM2UBSir.js";
4
+ import { Fragment, useState } from "react";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
+ import { Avatar, Badge, Card, CardBody, CardHeader, OrbitSpinner, Separator, Skeleton, SkeletonCard, SkeletonHead, SkeletonList, SkeletonMetric, SkeletonRow, SkeletonTable, SkeletonText, Switch, Table, TableBody, TableCell, TableFrame, TableHead, TableHeaderCell, TableRow } from "@orbitcommerce/constellation";
7
+ import { PackageIcon } from "@orbitcommerce/constellation/icons";
8
+ //#region src/pages/components/skeleton.tsx
9
+ /** One line of text still on its way: SkeletonText takes exactly one line at the font size around it. */
10
+ function Line({ width }) {
11
+ return /* @__PURE__ */ jsx("span", {
12
+ className: "skeleton-line",
13
+ style: { width },
14
+ children: /* @__PURE__ */ jsx(SkeletonText, { lines: 1 })
15
+ });
16
+ }
17
+ function Preview() {
18
+ return /* @__PURE__ */ jsxs("div", {
19
+ className: "skeleton-preview",
20
+ children: [/* @__PURE__ */ jsxs("div", {
21
+ className: "skeleton-row",
22
+ children: [/* @__PURE__ */ jsx(Skeleton, {
23
+ radius: "circle",
24
+ width: 24,
25
+ height: 24
26
+ }), /* @__PURE__ */ jsxs("div", {
27
+ className: "skeleton-row__text",
28
+ children: [/* @__PURE__ */ jsx("span", {
29
+ className: "skeleton-row__title",
30
+ children: /* @__PURE__ */ jsx(Line, { width: "70%" })
31
+ }), /* @__PURE__ */ jsx("span", {
32
+ className: "skeleton-row__meta",
33
+ children: /* @__PURE__ */ jsx(Line, { width: "46%" })
34
+ })]
35
+ })]
36
+ }), /* @__PURE__ */ jsx(SkeletonText, { lines: 3 })]
37
+ });
38
+ }
39
+ var ORDERS = [
40
+ {
41
+ id: "#1048",
42
+ customer: "Amara Okafor",
43
+ items: "Oak veneer desk, 1600mm",
44
+ total: "£349.00",
45
+ status: /* @__PURE__ */ jsx(Badge, {
46
+ tone: "neutral",
47
+ children: "Unfulfilled"
48
+ })
49
+ },
50
+ {
51
+ id: "#1047",
52
+ customer: "Callum Reid",
53
+ items: "2 × Arden ergonomic chair, black",
54
+ total: "£498.00",
55
+ status: /* @__PURE__ */ jsx(Badge, {
56
+ tone: "positive",
57
+ children: "Fulfilled"
58
+ })
59
+ },
60
+ {
61
+ id: "#1046",
62
+ customer: "Grace Liu",
63
+ items: "Dual monitor arm",
64
+ total: "£89.00",
65
+ status: /* @__PURE__ */ jsx(Badge, {
66
+ tone: "info",
67
+ children: "Click and collect"
68
+ })
69
+ }
70
+ ];
71
+ var SHAPES = [
72
+ {
73
+ title: "52%",
74
+ meta: "74%",
75
+ status: 92
76
+ },
77
+ {
78
+ title: "44%",
79
+ meta: "88%",
80
+ status: 78
81
+ },
82
+ {
83
+ title: "38%",
84
+ meta: "58%",
85
+ status: 116
86
+ }
87
+ ];
88
+ function OrderRow({ order }) {
89
+ return /* @__PURE__ */ jsxs("div", {
90
+ className: "skeleton-row",
91
+ children: [
92
+ /* @__PURE__ */ jsx(Avatar, {
93
+ size: "sm",
94
+ name: order.customer,
95
+ alt: ""
96
+ }),
97
+ /* @__PURE__ */ jsxs("div", {
98
+ className: "skeleton-row__text",
99
+ children: [/* @__PURE__ */ jsxs("span", {
100
+ className: "skeleton-row__title",
101
+ children: [
102
+ order.customer,
103
+ " ",
104
+ /* @__PURE__ */ jsx("span", {
105
+ className: "skeleton-row__id",
106
+ children: order.id
107
+ })
108
+ ]
109
+ }), /* @__PURE__ */ jsx("span", {
110
+ className: "skeleton-row__meta",
111
+ children: order.items
112
+ })]
113
+ }),
114
+ /* @__PURE__ */ jsx("span", {
115
+ className: "skeleton-row__status",
116
+ children: order.status
117
+ }),
118
+ /* @__PURE__ */ jsx("span", {
119
+ className: "skeleton-row__total",
120
+ children: order.total
121
+ })
122
+ ]
123
+ });
124
+ }
125
+ function OrderRowSkeleton({ index }) {
126
+ const shape = SHAPES[index % SHAPES.length];
127
+ return /* @__PURE__ */ jsxs("div", {
128
+ className: "skeleton-row",
129
+ children: [
130
+ /* @__PURE__ */ jsx(Skeleton, {
131
+ radius: "circle",
132
+ width: 24,
133
+ height: 24
134
+ }),
135
+ /* @__PURE__ */ jsxs("div", {
136
+ className: "skeleton-row__text",
137
+ children: [/* @__PURE__ */ jsx("span", {
138
+ className: "skeleton-row__title",
139
+ children: /* @__PURE__ */ jsx(Line, { width: shape.title })
140
+ }), /* @__PURE__ */ jsx("span", {
141
+ className: "skeleton-row__meta",
142
+ children: /* @__PURE__ */ jsx(Line, { width: shape.meta })
143
+ })]
144
+ }),
145
+ /* @__PURE__ */ jsx("span", {
146
+ className: "skeleton-row__status",
147
+ children: /* @__PURE__ */ jsx(Skeleton, {
148
+ radius: "pill",
149
+ width: shape.status,
150
+ height: 22
151
+ })
152
+ }),
153
+ /* @__PURE__ */ jsx("span", {
154
+ className: "skeleton-row__total",
155
+ children: /* @__PURE__ */ jsx(Line, { width: 56 })
156
+ })
157
+ ]
158
+ });
159
+ }
160
+ function RecentOrders() {
161
+ const [loaded, setLoaded] = useState(false);
162
+ return /* @__PURE__ */ jsxs(Card, {
163
+ padding: "sm",
164
+ className: "skeleton-list",
165
+ children: [/* @__PURE__ */ jsx(CardHeader, {
166
+ title: "Recent orders",
167
+ actions: /* @__PURE__ */ jsx(Switch, {
168
+ size: "sm",
169
+ label: "Loaded",
170
+ checked: loaded,
171
+ onCheckedChange: setLoaded
172
+ })
173
+ }), /* @__PURE__ */ jsx(CardBody, {
174
+ "aria-busy": !loaded,
175
+ children: ORDERS.map((order, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i > 0 ? /* @__PURE__ */ jsx(Separator, {}) : null, loaded ? /* @__PURE__ */ jsx(OrderRow, { order }) : /* @__PURE__ */ jsx(OrderRowSkeleton, { index: i })] }, order.id))
176
+ })]
177
+ });
178
+ }
179
+ var LOW_STOCK = [{
180
+ name: "Arden ergonomic chair, black",
181
+ left: 3,
182
+ weekly: 9
183
+ }, {
184
+ name: "Oak veneer desk, 1600mm",
185
+ left: 2,
186
+ weekly: 4
187
+ }];
188
+ function LowStock({ loading }) {
189
+ return /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, {
190
+ icon: /* @__PURE__ */ jsx(PackageIcon, {}),
191
+ title: "Low stock",
192
+ description: loading ? /* @__PURE__ */ jsx(Line, { width: "64%" }) : "Two products sell out this week."
193
+ }), /* @__PURE__ */ jsx(CardBody, {
194
+ "aria-busy": loading || void 0,
195
+ children: LOW_STOCK.map((item, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i > 0 ? /* @__PURE__ */ jsx(Separator, {}) : null, /* @__PURE__ */ jsxs("div", {
196
+ className: "skeleton-stock-row",
197
+ children: [/* @__PURE__ */ jsxs("span", {
198
+ className: "skeleton-stock-row__text",
199
+ children: [loading ? /* @__PURE__ */ jsx(Line, { width: ["76%", "62%"][i] }) : item.name, /* @__PURE__ */ jsx("span", {
200
+ className: "skeleton-stock-row__meta",
201
+ children: loading ? /* @__PURE__ */ jsx(Line, { width: ["48%", "54%"][i] }) : `Sells about ${item.weekly} a week`
202
+ })]
203
+ }), loading ? /* @__PURE__ */ jsx(Skeleton, {
204
+ radius: "pill",
205
+ width: 52,
206
+ height: 22
207
+ }) : /* @__PURE__ */ jsxs(Badge, {
208
+ tone: "warning",
209
+ children: [item.left, " left"]
210
+ })]
211
+ })] }, item.name))
212
+ })] });
213
+ }
214
+ var PRODUCTS = [
215
+ {
216
+ name: "Arden ergonomic chair, black",
217
+ meta: "3 in stock · Chairs",
218
+ price: "£249.00"
219
+ },
220
+ {
221
+ name: "Oak veneer desk, 1600mm",
222
+ meta: "2 in stock · Desks",
223
+ price: "£349.00"
224
+ },
225
+ {
226
+ name: "Dual monitor arm",
227
+ meta: "41 in stock · Accessories",
228
+ price: "£89.00"
229
+ }
230
+ ];
231
+ /** A product as the list shows it once loaded: a 40px tile and two lines, 14px above and below. */
232
+ function ProductRow({ product }) {
233
+ return /* @__PURE__ */ jsxs("div", {
234
+ className: "skeleton-product",
235
+ children: [
236
+ /* @__PURE__ */ jsx("span", {
237
+ className: "skeleton-product__tile",
238
+ children: /* @__PURE__ */ jsx(PackageIcon, {})
239
+ }),
240
+ /* @__PURE__ */ jsxs("span", {
241
+ className: "skeleton-product__text",
242
+ children: [/* @__PURE__ */ jsx("span", {
243
+ className: "skeleton-product__name",
244
+ children: product.name
245
+ }), /* @__PURE__ */ jsx("span", {
246
+ className: "skeleton-product__meta",
247
+ children: product.meta
248
+ })]
249
+ }),
250
+ /* @__PURE__ */ jsx("span", {
251
+ className: "skeleton-product__price",
252
+ children: product.price
253
+ })
254
+ ]
255
+ });
256
+ }
257
+ /** Products, loading or loaded. The loading rows are the kit's own SkeletonList, and take the loaded rows' height. */
258
+ function ProductList() {
259
+ const [loaded, setLoaded] = useState(false);
260
+ return /* @__PURE__ */ jsxs(Card, {
261
+ padding: "sm",
262
+ className: "skeleton-list",
263
+ children: [/* @__PURE__ */ jsx(CardHeader, {
264
+ title: "Products",
265
+ actions: /* @__PURE__ */ jsx(Switch, {
266
+ size: "sm",
267
+ label: "Loaded",
268
+ checked: loaded,
269
+ onCheckedChange: setLoaded
270
+ })
271
+ }), /* @__PURE__ */ jsx(CardBody, { children: loaded ? /* @__PURE__ */ jsx("div", {
272
+ className: "skeleton-products",
273
+ children: PRODUCTS.map((product) => /* @__PURE__ */ jsx(ProductRow, { product }, product.name))
274
+ }) : /* @__PURE__ */ jsx(SkeletonList, {
275
+ rows: 3,
276
+ lead: "tile",
277
+ lines: 2,
278
+ trail: true,
279
+ dividers: true,
280
+ label: "Loading products"
281
+ }) })]
282
+ });
283
+ }
284
+ /** The summary a `SkeletonCard` stands in for: a title, a big figure and a line. */
285
+ function SummaryCard() {
286
+ return /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, {
287
+ title: "This month",
288
+ description: "Paid orders, net of refunds."
289
+ }), /* @__PURE__ */ jsxs(CardBody, { children: [/* @__PURE__ */ jsx("p", {
290
+ className: "skeleton-figure",
291
+ children: "£12,480"
292
+ }), /* @__PURE__ */ jsx("p", {
293
+ className: "skeleton-figure__meta",
294
+ children: "8.2% up on last month. 214 orders."
295
+ })] })] });
296
+ }
297
+ /**
298
+ * The rows the loaded table shows: short enough to stay on one line in a half-width column, as the placeholders do, so
299
+ * the comparison shows the table's own height and not the wrapping of long names.
300
+ */
301
+ var TABLE_ORDERS = [
302
+ {
303
+ id: "#1048",
304
+ customer: "Amara Okafor",
305
+ items: "1",
306
+ total: "£349.00"
307
+ },
308
+ {
309
+ id: "#1047",
310
+ customer: "Callum Reid",
311
+ items: "2",
312
+ total: "£498.00"
313
+ },
314
+ {
315
+ id: "#1046",
316
+ customer: "Grace Liu",
317
+ items: "1",
318
+ total: "£89.00"
319
+ }
320
+ ];
321
+ /** The table a `SkeletonTable` stands in for: four columns and the rows that are coming. */
322
+ function OrdersTable() {
323
+ return /* @__PURE__ */ jsx(TableFrame, { children: /* @__PURE__ */ jsxs(Table, { children: [/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
324
+ /* @__PURE__ */ jsx(TableHeaderCell, { children: "Order" }),
325
+ /* @__PURE__ */ jsx(TableHeaderCell, { children: "Customer" }),
326
+ /* @__PURE__ */ jsx(TableHeaderCell, { children: "Items" }),
327
+ /* @__PURE__ */ jsx(TableHeaderCell, { children: "Total" })
328
+ ] }) }), /* @__PURE__ */ jsx(TableBody, { children: TABLE_ORDERS.map((order) => /* @__PURE__ */ jsxs(TableRow, { children: [
329
+ /* @__PURE__ */ jsx(TableCell, { children: order.id }),
330
+ /* @__PURE__ */ jsx(TableCell, { children: order.customer }),
331
+ /* @__PURE__ */ jsx(TableCell, { children: order.items }),
332
+ /* @__PURE__ */ jsx(TableCell, { children: order.total })
333
+ ] }, order.id)) })] }) });
334
+ }
335
+ function Page() {
336
+ return /* @__PURE__ */ jsxs(DocPage, {
337
+ title: "Skeleton",
338
+ status: "stable",
339
+ importNames: [
340
+ "Skeleton",
341
+ "SkeletonText",
342
+ "SkeletonRow",
343
+ "SkeletonList",
344
+ "SkeletonMetric",
345
+ "SkeletonHead",
346
+ "SkeletonCard",
347
+ "SkeletonTable"
348
+ ],
349
+ lead: "A placeholder in the shape of content that is on its way, with a slow sheen passing over it. Use it while a list, a card or a figure loads, so the page holds its layout and the content lands without a jump.",
350
+ children: [
351
+ /* @__PURE__ */ jsxs(Section$1, {
352
+ id: "shapes",
353
+ title: "Shapes",
354
+ description: /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("code", { children: "Skeleton" }), " is a block: give it a width, a height and the corners of what it stands in for. It fills the available width and is 16px tall unless told otherwise."] }),
355
+ children: [/* @__PURE__ */ jsx(Example, {
356
+ code: `
357
+ <Skeleton radius="circle" width={32} height={32} />
358
+ <Skeleton radius="pill" width={84} height={22} />
359
+ <Skeleton radius="sm" width={48} height={48} />
360
+ <Skeleton width={140} height={36} />
361
+ <Skeleton radius="lg" width={180} height={96} />`,
362
+ children: /* @__PURE__ */ jsxs("div", {
363
+ className: "skeleton-shapes",
364
+ children: [
365
+ /* @__PURE__ */ jsx(Skeleton, {
366
+ radius: "circle",
367
+ width: 32,
368
+ height: 32
369
+ }),
370
+ /* @__PURE__ */ jsx(Skeleton, {
371
+ radius: "pill",
372
+ width: 84,
373
+ height: 22
374
+ }),
375
+ /* @__PURE__ */ jsx(Skeleton, {
376
+ radius: "sm",
377
+ width: 48,
378
+ height: 48
379
+ }),
380
+ /* @__PURE__ */ jsx(Skeleton, {
381
+ width: 140,
382
+ height: 36
383
+ }),
384
+ /* @__PURE__ */ jsx(Skeleton, {
385
+ radius: "lg",
386
+ width: 180,
387
+ height: 96
388
+ })
389
+ ]
390
+ })
391
+ }), /* @__PURE__ */ jsx(DocTable, {
392
+ columns: [
393
+ "Radius",
394
+ "Corners",
395
+ "Stands in for"
396
+ ],
397
+ rows: [
398
+ [
399
+ /* @__PURE__ */ jsx("code", { children: "circle" }),
400
+ "Round",
401
+ "Avatars and round marks."
402
+ ],
403
+ [
404
+ /* @__PURE__ */ jsx("code", { children: "pill" }),
405
+ "Fully rounded ends",
406
+ "Badges, buttons and lines of text."
407
+ ],
408
+ [
409
+ /* @__PURE__ */ jsx("code", { children: "sm" }),
410
+ "8px",
411
+ "Small blocks, such as thumbnails."
412
+ ],
413
+ [
414
+ /* @__PURE__ */ jsx("code", { children: "md" }),
415
+ "12px, the default",
416
+ "Fields and icon tiles."
417
+ ],
418
+ [
419
+ /* @__PURE__ */ jsx("code", { children: "lg" }),
420
+ "16px",
421
+ "Cards, images and chart areas."
422
+ ]
423
+ ]
424
+ })]
425
+ }),
426
+ /* @__PURE__ */ jsxs(Section$1, {
427
+ id: "text",
428
+ title: "Text",
429
+ description: /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("code", { children: "SkeletonText" }), " is a paragraph of pill lines that vary a little in width, as real lines do, with a shorter last line. Each line takes exactly the height of a line of text at the font size around it (at the normal 1.45 line height), so when the words arrive nothing moves. The sheen falls down the lines one after another."] }),
430
+ children: [/* @__PURE__ */ jsx(Example, {
431
+ align: "fill",
432
+ code: `
433
+ <SkeletonText lines={3} />
434
+
435
+ <p>Orders placed before 2pm ship the same day. Collection from the showroom is free, and we will text you when it is ready.</p>`,
436
+ children: /* @__PURE__ */ jsxs("div", {
437
+ className: "skeleton-compare",
438
+ children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
439
+ className: "skeleton-compare__label",
440
+ children: "Loading"
441
+ }), /* @__PURE__ */ jsx(SkeletonText, { lines: 3 })] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
442
+ className: "skeleton-compare__label",
443
+ children: "Loaded"
444
+ }), /* @__PURE__ */ jsx("p", { children: "Orders placed before 2pm ship the same day. Collection from the showroom is free, and we will text you when it is ready." })] })]
445
+ })
446
+ }), /* @__PURE__ */ jsx(SubSection, {
447
+ title: "A single line",
448
+ description: /* @__PURE__ */ jsxs("p", { children: [
449
+ "For a name, a total or a label, use ",
450
+ /* @__PURE__ */ jsxs("code", { children: ["SkeletonText lines=", "{1}"] }),
451
+ " inside a box as wide as the words usually are. It takes one line of height at that box's font size."
452
+ ] }),
453
+ children: /* @__PURE__ */ jsxs(Example, {
454
+ code: `
455
+ <span style={{ display: 'block', width: 140, fontSize: 'var(--o-text-md)' }}>
456
+ <SkeletonText lines={1} />
457
+ </span>
458
+ <span style={{ display: 'block', width: 64, fontSize: 'var(--o-text-xl)' }}>
459
+ <SkeletonText lines={1} />
460
+ </span>`,
461
+ children: [/* @__PURE__ */ jsx("span", {
462
+ className: "skeleton-line",
463
+ style: {
464
+ width: 140,
465
+ fontSize: "var(--o-text-md)"
466
+ },
467
+ children: /* @__PURE__ */ jsx(SkeletonText, { lines: 1 })
468
+ }), /* @__PURE__ */ jsx("span", {
469
+ className: "skeleton-line",
470
+ style: {
471
+ width: 64,
472
+ fontSize: "var(--o-text-xl)"
473
+ },
474
+ children: /* @__PURE__ */ jsx(SkeletonText, { lines: 1 })
475
+ })]
476
+ })
477
+ })]
478
+ }),
479
+ /* @__PURE__ */ jsx(Section$1, {
480
+ id: "order-row",
481
+ title: "Loading a list",
482
+ description: /* @__PURE__ */ jsxs("p", { children: [
483
+ "A list of orders while it loads: the same columns as the loaded rows, a circle for the avatar, a line for each line of text, a pill for the status. The region that is loading carries ",
484
+ /* @__PURE__ */ jsx("code", { children: "aria-busy" }),
485
+ ". Switch Loaded on and off: the rows keep their height."
486
+ ] }),
487
+ children: /* @__PURE__ */ jsx(Example, {
488
+ align: "fill",
489
+ code: `
490
+ <CardBody aria-busy={!loaded}>
491
+ {orders.map((order, i) => (
492
+ <Fragment key={order.id}>
493
+ {i > 0 ? <Separator /> : null}
494
+ {loaded ? (
495
+ <OrderRow order={order} />
496
+ ) : (
497
+ <div className="row">
498
+ <Skeleton radius="circle" width={24} height={24} />
499
+ <div>
500
+ <span className="name"><SkeletonText lines={1} /></span>
501
+ <span className="items"><SkeletonText lines={1} /></span>
502
+ </div>
503
+ <Skeleton radius="pill" width={92} height={22} />
504
+ <span className="total"><SkeletonText lines={1} /></span>
505
+ </div>
506
+ )}
507
+ </Fragment>
508
+ ))}
509
+ </CardBody>`,
510
+ children: /* @__PURE__ */ jsx(RecentOrders, {})
511
+ })
512
+ }),
513
+ /* @__PURE__ */ jsx(Section$1, {
514
+ id: "card",
515
+ title: "Loading a card",
516
+ description: /* @__PURE__ */ jsx("p", { children: "Only the data waits. The icon and the title do not depend on it, so they render at once; the description, the product lines and the stock badges are placeholders until the numbers arrive." }),
517
+ children: /* @__PURE__ */ jsx(Example, {
518
+ align: "fill",
519
+ code: `
520
+ <Card>
521
+ <CardHeader
522
+ icon={<PackageIcon />}
523
+ title="Low stock"
524
+ description={<SkeletonText lines={1} />}
525
+ />
526
+ <CardBody aria-busy="true">
527
+ <div className="row">
528
+ <span>
529
+ <SkeletonText lines={1} />
530
+ <span className="meta"><SkeletonText lines={1} /></span>
531
+ </span>
532
+ <Skeleton radius="pill" width={52} height={22} />
533
+ </div>
534
+ <Separator />
535
+ …
536
+ </CardBody>
537
+ </Card>`,
538
+ children: /* @__PURE__ */ jsxs("div", {
539
+ className: "skeleton-card-pair",
540
+ children: [/* @__PURE__ */ jsx(LowStock, { loading: true }), /* @__PURE__ */ jsx(LowStock, { loading: false })]
541
+ })
542
+ })
543
+ }),
544
+ /* @__PURE__ */ jsxs(Section$1, {
545
+ id: "compositions",
546
+ title: "Ready-made rows",
547
+ description: /* @__PURE__ */ jsx("p", { children: "The placeholders every list ends up building by hand, in the shape of the row that is coming. They are the vendor dashboard's own (its home page, plugin list, top products and customer page), measured in the running app, so a dashboard no longer sizes its own. The lists and the head carry one status line that says they are loading, and hide everything else from assistive tech." }),
548
+ children: [
549
+ /* @__PURE__ */ jsx(SubSection, {
550
+ title: "A row",
551
+ description: /* @__PURE__ */ jsxs("p", { children: [
552
+ /* @__PURE__ */ jsx("code", { children: "SkeletonRow" }),
553
+ " is a lead (a ",
554
+ /* @__PURE__ */ jsx("code", { children: "tile" }),
555
+ " or a ",
556
+ /* @__PURE__ */ jsx("code", { children: "circle" }),
557
+ ", or ",
558
+ /* @__PURE__ */ jsx("code", { children: "none" }),
559
+ "), one to three lines, and optionally a value at the end and a thin bar. ",
560
+ /* @__PURE__ */ jsx("code", { children: "comfortable" }),
561
+ " is 68px a row, as lists of jobs and plugins are; ",
562
+ /* @__PURE__ */ jsx("code", { children: "compact" }),
563
+ " is 56px, as the top products are. Rows alternate the widths of their lines, as real rows vary: pass ",
564
+ /* @__PURE__ */ jsx("code", { children: "index" }),
565
+ " and they do it for you."
566
+ ] }),
567
+ children: /* @__PURE__ */ jsx(Example, {
568
+ align: "fill",
569
+ code: `
570
+ <SkeletonRow lead="tile" lines={2} />
571
+ <SkeletonRow lead="circle" lines={2} trail index={1} />
572
+ <SkeletonRow lead="tile" lines={1} bar density="compact" />
573
+ <SkeletonRow lead="tile" lines={3} density="compact" />
574
+ <SkeletonRow lead="none" lines={3} />`,
575
+ children: /* @__PURE__ */ jsxs("div", {
576
+ className: "skeleton-variants",
577
+ children: [
578
+ /* @__PURE__ */ jsxs("figure", {
579
+ className: "skeleton-variant",
580
+ children: [/* @__PURE__ */ jsx(SkeletonRow, {
581
+ lead: "tile",
582
+ lines: 2
583
+ }), /* @__PURE__ */ jsx("figcaption", { children: "Tile and two lines, 68px" })]
584
+ }),
585
+ /* @__PURE__ */ jsxs("figure", {
586
+ className: "skeleton-variant",
587
+ children: [/* @__PURE__ */ jsx(SkeletonRow, {
588
+ lead: "circle",
589
+ lines: 2,
590
+ trail: true,
591
+ index: 1
592
+ }), /* @__PURE__ */ jsx("figcaption", { children: "Circle, two lines and a value" })]
593
+ }),
594
+ /* @__PURE__ */ jsxs("figure", {
595
+ className: "skeleton-variant",
596
+ children: [/* @__PURE__ */ jsx(SkeletonRow, {
597
+ lead: "tile",
598
+ lines: 1,
599
+ bar: true,
600
+ density: "compact"
601
+ }), /* @__PURE__ */ jsx("figcaption", { children: "Compact, a line and a bar for a share, 56px" })]
602
+ }),
603
+ /* @__PURE__ */ jsxs("figure", {
604
+ className: "skeleton-variant",
605
+ children: [/* @__PURE__ */ jsx(SkeletonRow, {
606
+ lead: "tile",
607
+ lines: 3,
608
+ density: "compact"
609
+ }), /* @__PURE__ */ jsx("figcaption", { children: "Compact, three lines: the lines make it taller than 56px" })]
610
+ }),
611
+ /* @__PURE__ */ jsxs("figure", {
612
+ className: "skeleton-variant",
613
+ children: [/* @__PURE__ */ jsx(SkeletonRow, {
614
+ lead: "none",
615
+ lines: 3
616
+ }), /* @__PURE__ */ jsx("figcaption", { children: "Three lines, no lead" })]
617
+ })
618
+ ]
619
+ })
620
+ })
621
+ }),
622
+ /* @__PURE__ */ jsx(SubSection, {
623
+ title: "A list",
624
+ description: /* @__PURE__ */ jsxs("p", { children: [
625
+ /* @__PURE__ */ jsx("code", { children: "SkeletonList" }),
626
+ " is the rows, the ",
627
+ /* @__PURE__ */ jsx("code", { children: "aria-busy" }),
628
+ " region around them, and one polite status that says ",
629
+ /* @__PURE__ */ jsx("code", { children: "label" }),
630
+ ". Give it the shape of the loaded row and about as many rows as usually come. Switch Loaded on and off: the rows keep their height, so nothing below moves."
631
+ ] }),
632
+ children: /* @__PURE__ */ jsx(Example, {
633
+ align: "fill",
634
+ code: `
635
+ <SkeletonList
636
+ rows={3}
637
+ lead="tile"
638
+ lines={2}
639
+ trail
640
+ dividers
641
+ label="Loading products"
642
+ />`,
643
+ children: /* @__PURE__ */ jsx(ProductList, {})
644
+ })
645
+ }),
646
+ /* @__PURE__ */ jsx(SubSection, {
647
+ title: "A figure and a share",
648
+ description: /* @__PURE__ */ jsxs("p", { children: [
649
+ /* @__PURE__ */ jsx("code", { children: "SkeletonMetric" }),
650
+ " is a small label over a bigger value, as a headline figure has. The",
651
+ " ",
652
+ /* @__PURE__ */ jsx("code", { children: "bar" }),
653
+ " variant is a label over a thin bar, as a share in a panel has. Place them in the same grid as the numbers they stand in for."
654
+ ] }),
655
+ children: /* @__PURE__ */ jsx(Example, {
656
+ align: "fill",
657
+ code: `
658
+ <SkeletonMetric />
659
+ <SkeletonMetric variant="bar" />`,
660
+ children: /* @__PURE__ */ jsxs("div", {
661
+ className: "skeleton-metrics",
662
+ children: [/* @__PURE__ */ jsxs("figure", {
663
+ className: "skeleton-variant",
664
+ children: [/* @__PURE__ */ jsxs("div", {
665
+ className: "skeleton-metrics__row",
666
+ children: [
667
+ /* @__PURE__ */ jsx(SkeletonMetric, {}),
668
+ /* @__PURE__ */ jsx(SkeletonMetric, {}),
669
+ /* @__PURE__ */ jsx(SkeletonMetric, {})
670
+ ]
671
+ }), /* @__PURE__ */ jsx("figcaption", { children: "Figures" })]
672
+ }), /* @__PURE__ */ jsxs("figure", {
673
+ className: "skeleton-variant",
674
+ children: [/* @__PURE__ */ jsxs("div", {
675
+ className: "skeleton-metrics__shares",
676
+ children: [/* @__PURE__ */ jsx(SkeletonMetric, { variant: "bar" }), /* @__PURE__ */ jsx(SkeletonMetric, { variant: "bar" })]
677
+ }), /* @__PURE__ */ jsx("figcaption", { children: "Shares" })]
678
+ })]
679
+ })
680
+ })
681
+ }),
682
+ /* @__PURE__ */ jsx(SubSection, {
683
+ title: "The head of a record",
684
+ description: /* @__PURE__ */ jsxs("p", { children: [
685
+ /* @__PURE__ */ jsx("code", { children: "SkeletonHead" }),
686
+ " is the top of a customer or an order while it loads: a 56px circle beside a name and a line, and the headline figures on a hairline. ",
687
+ /* @__PURE__ */ jsx("code", { children: "figures" }),
688
+ " says how many; ",
689
+ /* @__PURE__ */ jsx("code", { children: "0" }),
690
+ " draws the name alone."
691
+ ] }),
692
+ children: /* @__PURE__ */ jsx(Example, {
693
+ align: "fill",
694
+ code: `
695
+ <SkeletonHead lead="circle" figures={3} label="Loading customer" />
696
+ <SkeletonHead lead="tile" figures={2} label="Loading order" />
697
+ <SkeletonHead lead="none" figures={0} label="Loading page" />`,
698
+ children: /* @__PURE__ */ jsxs("div", {
699
+ className: "skeleton-heads",
700
+ children: [
701
+ /* @__PURE__ */ jsxs("figure", {
702
+ className: "skeleton-variant",
703
+ children: [/* @__PURE__ */ jsx("div", {
704
+ className: "skeleton-list",
705
+ children: /* @__PURE__ */ jsx(SkeletonHead, {
706
+ lead: "circle",
707
+ figures: 3,
708
+ label: null
709
+ })
710
+ }), /* @__PURE__ */ jsx("figcaption", { children: "A circle and three figures: a customer" })]
711
+ }),
712
+ /* @__PURE__ */ jsxs("figure", {
713
+ className: "skeleton-variant",
714
+ children: [/* @__PURE__ */ jsx("div", {
715
+ className: "skeleton-list",
716
+ children: /* @__PURE__ */ jsx(SkeletonHead, {
717
+ lead: "tile",
718
+ figures: 2,
719
+ label: null
720
+ })
721
+ }), /* @__PURE__ */ jsx("figcaption", { children: "A tile and two figures: an order or a product" })]
722
+ }),
723
+ /* @__PURE__ */ jsxs("figure", {
724
+ className: "skeleton-variant",
725
+ children: [/* @__PURE__ */ jsx("div", {
726
+ className: "skeleton-list",
727
+ children: /* @__PURE__ */ jsx(SkeletonHead, {
728
+ lead: "none",
729
+ figures: 0,
730
+ label: null
731
+ })
732
+ }), /* @__PURE__ */ jsx("figcaption", { children: "The name alone" })]
733
+ })
734
+ ]
735
+ })
736
+ })
737
+ }),
738
+ /* @__PURE__ */ jsxs(Note, {
739
+ title: "The examples are silent",
740
+ children: [
741
+ "The lists and the head say \"Loading\" to a screen reader a moment after they appear. The examples on this page pass ",
742
+ /* @__PURE__ */ jsxs("code", { children: ["label=", "{null}"] }),
743
+ " where they can, so the page does not announce a dozen of them at once. Where a spinner block fits better than rows, see ",
744
+ /* @__PURE__ */ jsx(DocLink, {
745
+ to: "/components/loading-state",
746
+ children: "Loading state"
747
+ }),
748
+ "."
749
+ ]
750
+ })
751
+ ]
752
+ }),
753
+ /* @__PURE__ */ jsxs(Section$1, {
754
+ id: "frames",
755
+ title: "In the frame of a card and a table",
756
+ description: /* @__PURE__ */ jsxs("p", { children: [
757
+ "Two placeholders come in the frame of a real component, so the box and the rows are the ones the data will land in:",
758
+ " ",
759
+ /* @__PURE__ */ jsx("code", { children: "SkeletonCard" }),
760
+ " inside a ",
761
+ /* @__PURE__ */ jsx(DocLink, {
762
+ to: "/components/card",
763
+ children: "Card"
764
+ }),
765
+ ", and ",
766
+ /* @__PURE__ */ jsx("code", { children: "SkeletonTable" }),
767
+ " inside the",
768
+ " ",
769
+ /* @__PURE__ */ jsx(DocLink, {
770
+ to: "/components/table",
771
+ children: "Table"
772
+ }),
773
+ "'s own frame. Neither moves when the data arrives."
774
+ ] }),
775
+ children: [
776
+ /* @__PURE__ */ jsx(SubSection, {
777
+ title: "A card",
778
+ description: /* @__PURE__ */ jsxs("p", { children: [
779
+ /* @__PURE__ */ jsx("code", { children: "SkeletonCard" }),
780
+ " is a head (a title line, and a quieter ",
781
+ /* @__PURE__ */ jsx("code", { children: "description" }),
782
+ " line under it) and a body (optionally a ",
783
+ /* @__PURE__ */ jsx("code", { children: "figure" }),
784
+ ", then body lines), spaced as a ",
785
+ /* @__PURE__ */ jsx("code", { children: "CardHeader" }),
786
+ " and a ",
787
+ /* @__PURE__ */ jsx("code", { children: "CardBody" }),
788
+ " are, each line in the line box of the words it stands in for. Give it the shape of the card that is coming and it is as tall as that card."
789
+ ] }),
790
+ children: /* @__PURE__ */ jsx(Example, {
791
+ align: "fill",
792
+ code: `
793
+ <SkeletonCard description figure lines={1} />
794
+
795
+ <Card>
796
+ <CardHeader title="This month" description="Paid orders, net of refunds." />
797
+ <CardBody>
798
+ <p>£12,480</p>
799
+ <p>8.2% up on last month. 214 orders.</p>
800
+ </CardBody>
801
+ </Card>`,
802
+ children: /* @__PURE__ */ jsxs("div", {
803
+ className: "skeleton-variants",
804
+ children: [/* @__PURE__ */ jsxs("figure", {
805
+ className: "skeleton-variant",
806
+ children: [/* @__PURE__ */ jsx(SkeletonCard, {
807
+ description: true,
808
+ figure: true,
809
+ lines: 1,
810
+ label: null
811
+ }), /* @__PURE__ */ jsx("figcaption", { children: "Loading: the card keeps its frame" })]
812
+ }), /* @__PURE__ */ jsxs("figure", {
813
+ className: "skeleton-variant",
814
+ children: [/* @__PURE__ */ jsx(SummaryCard, {}), /* @__PURE__ */ jsx("figcaption", { children: "Loaded" })]
815
+ })]
816
+ })
817
+ })
818
+ }),
819
+ /* @__PURE__ */ jsx(SubSection, {
820
+ title: "A table",
821
+ description: /* @__PURE__ */ jsxs("p", { children: [
822
+ /* @__PURE__ */ jsx("code", { children: "SkeletonTable" }),
823
+ " is a header row and body rows of pill placeholders, the first column a little wider, drawn through the kit's own Table parts with ",
824
+ /* @__PURE__ */ jsx("code", { children: "role=\"presentation\"" }),
825
+ " (it is not data). Pass",
826
+ " ",
827
+ /* @__PURE__ */ jsxs("code", { children: ["header=", "{false}"] }),
828
+ " for rows alone."
829
+ ] }),
830
+ children: /* @__PURE__ */ jsx(Example, {
831
+ align: "fill",
832
+ code: `
833
+ <SkeletonTable rows={3} columns={4} />
834
+
835
+ <TableFrame>
836
+ <Table>
837
+ <TableHead>
838
+ <TableRow>
839
+ <TableHeaderCell>Order</TableHeaderCell>
840
+ <TableHeaderCell>Customer</TableHeaderCell>
841
+ <TableHeaderCell>Items</TableHeaderCell>
842
+ <TableHeaderCell>Total</TableHeaderCell>
843
+ </TableRow>
844
+ </TableHead>
845
+ <TableBody>
846
+ {orders.map((order) => (
847
+ <TableRow key={order.id}>
848
+ <TableCell>{order.id}</TableCell>
849
+ <TableCell>{order.customer}</TableCell>
850
+ <TableCell>{order.items}</TableCell>
851
+ <TableCell>{order.total}</TableCell>
852
+ </TableRow>
853
+ ))}
854
+ </TableBody>
855
+ </Table>
856
+ </TableFrame>`,
857
+ children: /* @__PURE__ */ jsxs("div", {
858
+ className: "skeleton-variants",
859
+ children: [/* @__PURE__ */ jsxs("figure", {
860
+ className: "skeleton-variant",
861
+ children: [/* @__PURE__ */ jsx(SkeletonTable, {
862
+ rows: 3,
863
+ columns: 4,
864
+ label: null
865
+ }), /* @__PURE__ */ jsx("figcaption", { children: "Loading: the same header and body rows" })]
866
+ }), /* @__PURE__ */ jsxs("figure", {
867
+ className: "skeleton-variant",
868
+ children: [/* @__PURE__ */ jsx(OrdersTable, {}), /* @__PURE__ */ jsx("figcaption", { children: "Loaded" })]
869
+ })]
870
+ })
871
+ })
872
+ }),
873
+ /* @__PURE__ */ jsx(SubSection, {
874
+ title: "In both themes",
875
+ description: /* @__PURE__ */ jsx("p", { children: "A skeleton card and a skeleton table, light and dark." }),
876
+ children: /* @__PURE__ */ jsx(ThemePair, {
877
+ align: "fill",
878
+ children: /* @__PURE__ */ jsxs("div", {
879
+ className: "skeleton-pair-stack",
880
+ children: [/* @__PURE__ */ jsx(SkeletonCard, {
881
+ description: true,
882
+ figure: true,
883
+ lines: 1,
884
+ label: null
885
+ }), /* @__PURE__ */ jsx(SkeletonTable, {
886
+ rows: 3,
887
+ columns: 4,
888
+ label: null
889
+ })]
890
+ })
891
+ })
892
+ }),
893
+ /* @__PURE__ */ jsxs(Note, {
894
+ title: "Silent in the examples",
895
+ children: [
896
+ "Both carry one polite status, as ",
897
+ /* @__PURE__ */ jsx("code", { children: "SkeletonList" }),
898
+ " does, and hide every placeholder from assistive tech. The examples pass ",
899
+ /* @__PURE__ */ jsxs("code", { children: ["label=", "{null}"] }),
900
+ " so the page does not announce several at once."
901
+ ]
902
+ })
903
+ ]
904
+ }),
905
+ /* @__PURE__ */ jsx(Section$1, {
906
+ id: "differences",
907
+ title: "Where the ready-made rows differ from the vendor dashboard",
908
+ description: /* @__PURE__ */ jsx("p", { children: "The row heights, the lead sizes, the figure and share placeholders and the customer head are the vendor dashboard's, measured in the running app. Its lists each draw their own placeholders, a little differently from one another; the kit draws one set. These are the places it chooses differently." }),
909
+ children: /* @__PURE__ */ jsx(DocTable, {
910
+ columns: [
911
+ "Where",
912
+ "Vendor dashboard",
913
+ "Kit"
914
+ ],
915
+ rows: [
916
+ [
917
+ "The lines of a row",
918
+ "The next jobs draw 14px and 12px lines, the plugin list 13px and 11px, the top products a 13px line, the conversation rows 12px and 10px.",
919
+ "One scale for every list: a 14px title and 12px lines under it. The row heights match."
920
+ ],
921
+ [
922
+ "Their widths",
923
+ "The next jobs draw 60% and 40% on every row, the plugin list alternates 36% and 64% with 28% and 52%, the top products a 70% line over a full bar, the conversation rows alternate 70% and 48% with 58% and 40%.",
924
+ "Rows alternate: an even row draws 60%, 40% and 72%, an odd row 48%, 32% and 58%."
925
+ ],
926
+ [
927
+ "The gap between lines",
928
+ "3px in the next jobs, 8px in the plugin list and the conversation rows, 7px between the top products' line and its bar.",
929
+ "6px."
930
+ ],
931
+ [
932
+ "A compact row",
933
+ "The top products' text starts 52px in: a 36px tile in a 40px column, then 12px.",
934
+ "48px in: the tile, then 12px."
935
+ ],
936
+ [
937
+ "A conversation row",
938
+ "59px: 14px above and below, 16px at the sides, a hairline under it.",
939
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("code", { children: "lead=\"none\"" }), " is 60px. The side padding and the hairline are the page's."] })
940
+ ],
941
+ [
942
+ "The sheen",
943
+ "Every row catches the light at the same moment.",
944
+ "Each row catches it a beat after the one above, down the list (the delay is capped at 640ms)."
945
+ ],
946
+ [
947
+ "A value at the end",
948
+ "None of the rows measured draws one.",
949
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("code", { children: "trail" }), " is a 64 x 14px pill, for a list whose rows end in an amount or a status."] })
950
+ ],
951
+ [
952
+ "The head's figures",
953
+ "A 12px margin above them and 12px under the sticky identity row: 24px between the two.",
954
+ "The 24px is the head's own. The sticky row's padding is the page's."
955
+ ],
956
+ [
957
+ "Announcing it",
958
+ "Nothing says a list is loading. The plugin list is marked busy, and its placeholders are hidden.",
959
+ "One polite status beside the busy list or head, a moment after it appears."
960
+ ]
961
+ ]
962
+ })
963
+ }),
964
+ /* @__PURE__ */ jsx(Section$1, {
965
+ id: "both-themes",
966
+ title: "In both themes",
967
+ description: /* @__PURE__ */ jsx("p", { children: "Shapes, text and loading rows, light and dark side by side." }),
968
+ children: /* @__PURE__ */ jsx(ThemePair, {
969
+ align: "fill",
970
+ children: /* @__PURE__ */ jsxs("div", {
971
+ className: "skeleton-pair-stack",
972
+ children: [
973
+ /* @__PURE__ */ jsxs("div", {
974
+ className: "skeleton-shapes",
975
+ children: [
976
+ /* @__PURE__ */ jsx(Skeleton, {
977
+ radius: "circle",
978
+ width: 32,
979
+ height: 32
980
+ }),
981
+ /* @__PURE__ */ jsx(Skeleton, {
982
+ radius: "pill",
983
+ width: 84,
984
+ height: 22
985
+ }),
986
+ /* @__PURE__ */ jsx(Skeleton, {
987
+ width: 96,
988
+ height: 36
989
+ })
990
+ ]
991
+ }),
992
+ /* @__PURE__ */ jsx(SkeletonText, { lines: 3 }),
993
+ /* @__PURE__ */ jsx(OrderRowSkeleton, { index: 0 }),
994
+ /* @__PURE__ */ jsx(SkeletonList, {
995
+ rows: 2,
996
+ lead: "tile",
997
+ lines: 2,
998
+ trail: true,
999
+ dividers: true,
1000
+ label: null
1001
+ })
1002
+ ]
1003
+ })
1004
+ })
1005
+ }),
1006
+ /* @__PURE__ */ jsxs(Section$1, {
1007
+ id: "guidelines",
1008
+ title: "Guidelines",
1009
+ children: [
1010
+ /* @__PURE__ */ jsx(DoDont, {
1011
+ do: {
1012
+ children: /* @__PURE__ */ jsxs("div", {
1013
+ className: "skeleton-list",
1014
+ children: [
1015
+ /* @__PURE__ */ jsx(OrderRowSkeleton, { index: 0 }),
1016
+ /* @__PURE__ */ jsx(Separator, {}),
1017
+ /* @__PURE__ */ jsx(OrderRowSkeleton, { index: 1 })
1018
+ ]
1019
+ }),
1020
+ caption: "Rows in the shape of the rows that are coming."
1021
+ },
1022
+ dont: {
1023
+ children: /* @__PURE__ */ jsx(OrbitSpinner, { size: 24 }),
1024
+ caption: "A spinner where a list will be says wait but not what for, and the page jumps when the rows arrive."
1025
+ }
1026
+ }),
1027
+ /* @__PURE__ */ jsx(DoDont, {
1028
+ do: {
1029
+ children: /* @__PURE__ */ jsx("div", {
1030
+ className: "skeleton-dd",
1031
+ children: /* @__PURE__ */ jsx(LowStock, { loading: true })
1032
+ }),
1033
+ caption: "Real chrome, placeholder data: the eye knows what is coming."
1034
+ },
1035
+ dont: {
1036
+ children: /* @__PURE__ */ jsx(Skeleton, {
1037
+ radius: "lg",
1038
+ height: 160
1039
+ }),
1040
+ caption: "One grey slab says nothing about what is coming, and the header pops in with the data."
1041
+ }
1042
+ }),
1043
+ /* @__PURE__ */ jsx(Guidelines, { items: [
1044
+ "Match what is coming: the same columns, the same line heights, and about as many rows as usually arrive.",
1045
+ "Keep the chrome real. Titles, icons and buttons that do not depend on the data render straight away.",
1046
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1047
+ "Use ",
1048
+ /* @__PURE__ */ jsx("code", { children: "SkeletonText" }),
1049
+ " for words, even a single line: it takes exactly the height of real text."
1050
+ ] }),
1051
+ "For an action the merchant started, such as saving or sending, use a loading button, not a skeleton.",
1052
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1053
+ "For a list, a figure or a record head, use ",
1054
+ /* @__PURE__ */ jsx("code", { children: "SkeletonList" }),
1055
+ ", ",
1056
+ /* @__PURE__ */ jsx("code", { children: "SkeletonMetric" }),
1057
+ " and",
1058
+ " ",
1059
+ /* @__PURE__ */ jsx("code", { children: "SkeletonHead" }),
1060
+ " rather than sizing your own rows. For a view with no shape to copy, use",
1061
+ " ",
1062
+ /* @__PURE__ */ jsx(DocLink, {
1063
+ to: "/components/loading-state",
1064
+ children: "Loading state"
1065
+ }),
1066
+ "."
1067
+ ] })
1068
+ ] })
1069
+ ]
1070
+ }),
1071
+ /* @__PURE__ */ jsx(Section$1, {
1072
+ id: "accessibility",
1073
+ title: "Accessibility",
1074
+ children: /* @__PURE__ */ jsx(Guidelines, { items: [
1075
+ "Skeletons are always hidden from assistive tech.",
1076
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1077
+ "Put ",
1078
+ /* @__PURE__ */ jsx("code", { children: "aria-busy=\"true\"" }),
1079
+ " on the region that is loading, and remove it when the content lands."
1080
+ ] }),
1081
+ "A skeleton says nothing to a screen reader. Where the wait could be long, say so in words as well, for example a visually hidden \"Loading orders\".",
1082
+ /* @__PURE__ */ jsxs(Fragment$1, { children: [
1083
+ /* @__PURE__ */ jsx("code", { children: "SkeletonList" }),
1084
+ " and ",
1085
+ /* @__PURE__ */ jsx("code", { children: "SkeletonHead" }),
1086
+ " do this for you: they hide every row and piece, and put ",
1087
+ /* @__PURE__ */ jsx("strong", { children: "one" }),
1088
+ " polite status beside the region, so a list of ten rows says \"Loading products\" once, not ten times. The status is in the page before its words are (they follow a moment later), because a live region that arrives with its words in it is often not read. Pass ",
1089
+ /* @__PURE__ */ jsx("code", { children: "label" }),
1090
+ " to name the wait, or",
1091
+ " ",
1092
+ /* @__PURE__ */ jsx("code", { children: "null" }),
1093
+ " when the page around it already says it."
1094
+ ] }),
1095
+ "The status sits beside the aria-busy region, not inside it: a region marked busy holds back what it contains.",
1096
+ "Under reduced motion the sheen stops and the blocks hold still in their quiet fill."
1097
+ ] })
1098
+ }),
1099
+ /* @__PURE__ */ jsxs(Section$1, {
1100
+ id: "props",
1101
+ title: "Props",
1102
+ children: [
1103
+ /* @__PURE__ */ jsx(PropsTable, {
1104
+ title: "Skeleton",
1105
+ rows: [
1106
+ {
1107
+ name: "width",
1108
+ type: "number | string",
1109
+ default: "'100%'",
1110
+ description: "Pixels, or any CSS length. Fills the space available by default."
1111
+ },
1112
+ {
1113
+ name: "height",
1114
+ type: "number | string",
1115
+ default: "'16px'",
1116
+ description: "Pixels, or any CSS length."
1117
+ },
1118
+ {
1119
+ name: "radius",
1120
+ type: "'sm' | 'md' | 'lg' | 'pill' | 'circle'",
1121
+ default: "'md'",
1122
+ description: "The corners of what is loading: circle for avatars, pill for badges and text."
1123
+ }
1124
+ ]
1125
+ }),
1126
+ /* @__PURE__ */ jsx(PropsTable, {
1127
+ title: "SkeletonText",
1128
+ rows: [{
1129
+ name: "lines",
1130
+ type: "number",
1131
+ default: "3",
1132
+ description: "How many lines. At least one."
1133
+ }, {
1134
+ name: "lastLineWidth",
1135
+ type: "number | string",
1136
+ default: "'60%'",
1137
+ description: "Width of the last line when there is more than one. Pixels, or any CSS length."
1138
+ }]
1139
+ }),
1140
+ /* @__PURE__ */ jsx("p", {
1141
+ className: "doc-section__description",
1142
+ children: "Both accept every native span attribute."
1143
+ }),
1144
+ /* @__PURE__ */ jsx(PropsTable, {
1145
+ title: "SkeletonRow",
1146
+ rows: [
1147
+ {
1148
+ name: "lead",
1149
+ type: "'tile' | 'circle' | 'none'",
1150
+ default: "'tile'",
1151
+ description: "What leads the row: a rounded square (40px, 36px compact), a round avatar (40px, 32px compact), or nothing."
1152
+ },
1153
+ {
1154
+ name: "lines",
1155
+ type: "1 | 2 | 3",
1156
+ default: "2",
1157
+ description: "Lines of text: a title and quieter lines under it."
1158
+ },
1159
+ {
1160
+ name: "trail",
1161
+ type: "boolean",
1162
+ default: "false",
1163
+ description: "A value at the end of the row, such as an amount or a status."
1164
+ },
1165
+ {
1166
+ name: "bar",
1167
+ type: "boolean",
1168
+ default: "false",
1169
+ description: "A thin bar under the lines, for a row that shows a share."
1170
+ },
1171
+ {
1172
+ name: "density",
1173
+ type: "'comfortable' | 'compact'",
1174
+ default: "'comfortable'",
1175
+ description: "A 40px lead and 14px above and below (68px a row), or a 36px lead and 10px (56px a row with a line and a bar). Three lines make a row taller."
1176
+ },
1177
+ {
1178
+ name: "index",
1179
+ type: "number",
1180
+ default: "0",
1181
+ description: "Which row of a list this is. Even and odd rows draw their lines at different widths, and the sheen reaches each row a beat after the one before."
1182
+ },
1183
+ {
1184
+ name: "divided",
1185
+ type: "boolean",
1186
+ default: "false",
1187
+ description: "A hairline above the row."
1188
+ }
1189
+ ]
1190
+ }),
1191
+ /* @__PURE__ */ jsx(PropsTable, {
1192
+ title: "SkeletonList",
1193
+ rows: [
1194
+ {
1195
+ name: "rows",
1196
+ type: "number",
1197
+ default: "3",
1198
+ description: "How many rows: about as many as usually arrive."
1199
+ },
1200
+ {
1201
+ name: "dividers",
1202
+ type: "boolean",
1203
+ default: "false",
1204
+ description: "Hairlines between the rows."
1205
+ },
1206
+ {
1207
+ name: "label",
1208
+ type: "string | null",
1209
+ default: "'Loading'",
1210
+ description: "What a screen reader hears, once. English by default: pass it translated. null says nothing."
1211
+ },
1212
+ {
1213
+ name: "lead, lines, trail, bar, density",
1214
+ type: "as SkeletonRow",
1215
+ description: "The shape of every row."
1216
+ }
1217
+ ]
1218
+ }),
1219
+ /* @__PURE__ */ jsx(PropsTable, {
1220
+ title: "SkeletonMetric",
1221
+ rows: [{
1222
+ name: "variant",
1223
+ type: "'figure' | 'bar'",
1224
+ default: "'figure'",
1225
+ description: "A label over a value, or a label over a thin bar."
1226
+ }]
1227
+ }),
1228
+ /* @__PURE__ */ jsx(PropsTable, {
1229
+ title: "SkeletonHead",
1230
+ rows: [
1231
+ {
1232
+ name: "lead",
1233
+ type: "'circle' | 'tile' | 'none'",
1234
+ default: "'circle'",
1235
+ description: "What leads the name. 56px."
1236
+ },
1237
+ {
1238
+ name: "figures",
1239
+ type: "number",
1240
+ default: "3",
1241
+ description: "Headline figures on the hairline under the name. 0 draws the name alone."
1242
+ },
1243
+ {
1244
+ name: "label",
1245
+ type: "string | null",
1246
+ default: "'Loading'",
1247
+ description: "What a screen reader hears, once. English by default: pass it translated. null says nothing."
1248
+ }
1249
+ ]
1250
+ }),
1251
+ /* @__PURE__ */ jsx(PropsTable, {
1252
+ title: "SkeletonCard",
1253
+ rows: [
1254
+ {
1255
+ name: "title",
1256
+ type: "boolean",
1257
+ default: "true",
1258
+ description: "A title line at the top, as a CardHeader title."
1259
+ },
1260
+ {
1261
+ name: "description",
1262
+ type: "boolean",
1263
+ default: "false",
1264
+ description: "A quieter line under the title, as a CardHeader description."
1265
+ },
1266
+ {
1267
+ name: "lines",
1268
+ type: "number",
1269
+ default: "3",
1270
+ description: "Body lines, under the figure when there is one."
1271
+ },
1272
+ {
1273
+ name: "figure",
1274
+ type: "boolean",
1275
+ default: "false",
1276
+ description: "A figure line (a big number), as a stat card has."
1277
+ },
1278
+ {
1279
+ name: "label",
1280
+ type: "string | null",
1281
+ default: "'Loading'",
1282
+ description: "What a screen reader hears, once. English by default: pass it translated. null says nothing."
1283
+ }
1284
+ ]
1285
+ }),
1286
+ /* @__PURE__ */ jsx(PropsTable, {
1287
+ title: "SkeletonTable",
1288
+ rows: [
1289
+ {
1290
+ name: "rows",
1291
+ type: "number",
1292
+ default: "5",
1293
+ description: "Body rows."
1294
+ },
1295
+ {
1296
+ name: "columns",
1297
+ type: "number",
1298
+ default: "4",
1299
+ description: "Columns."
1300
+ },
1301
+ {
1302
+ name: "header",
1303
+ type: "boolean",
1304
+ default: "true",
1305
+ description: "Draw a header row."
1306
+ },
1307
+ {
1308
+ name: "label",
1309
+ type: "string | null",
1310
+ default: "'Loading'",
1311
+ description: "What a screen reader hears, once. English by default: pass it translated. null says nothing."
1312
+ }
1313
+ ]
1314
+ }),
1315
+ /* @__PURE__ */ jsx("p", {
1316
+ className: "doc-section__description",
1317
+ children: "These accept every native div attribute, and a ref. The rows and pieces are always hidden from assistive tech."
1318
+ })
1319
+ ]
1320
+ })
1321
+ ]
1322
+ });
1323
+ }
1324
+ //#endregion
1325
+ export { Page, Preview };