@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.
- package/dist/docs.css +14764 -2237
- package/dist/index.js +2 -2
- package/dist/pages/{Playground-CNbBbErC.js → Playground-Mk1yIWXb.js} +2 -2
- package/dist/pages/_address-data-L9BR499w.js +161 -0
- package/dist/pages/_builder-demo-C0eJUmPU.js +282 -0
- package/dist/pages/_card-art-0be5ncyV.js +18 -0
- package/dist/pages/_conversation-samples-Bq7cn-4d.js +70 -0
- package/dist/pages/{_figures-data-BDmScEny.js → _figures-data-DaDvB7Nm.js} +5 -5
- package/dist/pages/_kpi-examples-DeGCBB9T.js +208 -0
- package/dist/pages/{_overlays-specimens-Dpn6oiyH.js → _overlays-specimens-bawR331Z.js} +33 -23
- package/dist/pages/_preview-specimens-DKQC9HAo.js +153 -0
- package/dist/pages/accordion-Sg0TUqxB.js +1036 -0
- package/dist/pages/address-autocomplete-DP0PUOlK.js +360 -0
- package/dist/pages/address-block-BvxQWBTy.js +403 -0
- package/dist/pages/address-fields-CwSqro3W.js +277 -0
- package/dist/pages/ai-highlight-D3x2vD83.js +642 -0
- package/dist/pages/{alert-BD4e6QTh.js → alert-D3i7xZTU.js} +195 -50
- package/dist/pages/anchored-overlay-BV0OCu2Q.js +788 -0
- package/dist/pages/{app-shell-KbA-nRqZ.js → app-shell-D4hdlHps.js} +133 -54
- package/dist/pages/{area-chart-B91dLcGo.js → area-chart-BEWFwiB2.js} +183 -27
- package/dist/pages/{avatar-DPPHXJAu.js → avatar-BFEqQViw.js} +194 -12
- package/dist/pages/avatar-upload-BDCzJfyN.js +484 -0
- package/dist/pages/{badge-C9JR0thI.js → badge-0-PyMrih.js} +441 -135
- package/dist/pages/bar-chart-DkLogYlt.js +1060 -0
- package/dist/pages/bar-fold-B-3XeIDZ.js +360 -0
- package/dist/pages/board-card-D2tZY_mU.js +415 -0
- package/dist/pages/brand-mark-BqiLvFSR.js +417 -0
- package/dist/pages/{button-D3V912P4.js → button-DAyfssDY.js} +276 -79
- package/dist/pages/{calendar-DSDZ9nRH.js → calendar-Ds7KsgSI.js} +69 -17
- package/dist/pages/canvas-stage-1KiPspkX.js +472 -0
- package/dist/pages/card-CXZ3V1d4.js +1612 -0
- package/dist/pages/caret-suggestions-oHI6QvqW.js +526 -0
- package/dist/pages/chart-legend-B20AbakD.js +724 -0
- package/dist/pages/chat-composer-CwzUJYIa.js +437 -0
- package/dist/pages/checkbox-BG9Zkb6j.js +1581 -0
- package/dist/pages/checklist-card-DEyykVFS.js +783 -0
- package/dist/pages/chip-Ck-o3Ui6.js +839 -0
- package/dist/pages/chip-list-k1LxXuCi.js +414 -0
- package/dist/pages/clamp-text-n-iE8RDR.js +203 -0
- package/dist/pages/coachmark-Be2ghobT.js +366 -0
- package/dist/pages/code-block-Dv_Y5GYq.js +622 -0
- package/dist/pages/collab-field-CfqqK7d2.js +696 -0
- package/dist/pages/color-field-CZpfcA-A.js +1127 -0
- package/dist/pages/{colour-BwuO8xAv.js → colour-q2ntvI0w.js} +496 -20
- package/dist/pages/column-mapper-TsTG39cl.js +502 -0
- package/dist/pages/combobox-DvK2j5tI.js +1334 -0
- package/dist/pages/{command-palette-xAD7fOg6.js → command-palette-CJ7uBA04.js} +201 -58
- package/dist/pages/comment-box-CDSGYhr5.js +346 -0
- package/dist/pages/composer-D4B0NgpA.js +689 -0
- package/dist/pages/condition-builder-BZy2ZGXe.js +715 -0
- package/dist/pages/conflict-chooser-C--_9UIS.js +210 -0
- package/dist/pages/context-menu-F9DV30ia.js +487 -0
- package/dist/pages/copy-button-Cn7WiKRF.js +568 -0
- package/dist/pages/copy-field-D3Xt3Jq6.js +511 -0
- package/dist/pages/danger-zone-Db_UUeiP.js +564 -0
- package/dist/pages/date-input-GOW067EB.js +956 -0
- package/dist/pages/{date-picker-BYSa816m.js → date-picker-GdBciR99.js} +186 -38
- package/dist/pages/date-time-BLKCXtVZ.js +678 -0
- package/dist/pages/{delta-CtAo0eIM.js → delta-CNAGv8JY.js} +266 -61
- package/dist/pages/description-list-BPeXn1eW.js +1268 -0
- package/dist/pages/device-switcher-BCaN99c1.js +554 -0
- package/dist/pages/dialog-CRpkRC98.js +3164 -0
- package/dist/pages/{docs-BNOb7AqR.js → docs-lM2UBSir.js} +20 -15
- package/dist/pages/doodle-nzkqi2UI.js +201 -0
- package/dist/pages/drag-ghost-B6kpzC3O.js +426 -0
- package/dist/pages/drill-menu-cskH5mol.js +490 -0
- package/dist/pages/dropzone-DOY_Rhw0.js +1069 -0
- package/dist/pages/element-toolbar-DZIhXlCJ.js +498 -0
- package/dist/pages/emoji-picker-CqaWaffD.js +235 -0
- package/dist/pages/empty-state-4U2txFpI.js +1113 -0
- package/dist/pages/facet-filters-McbBeY9e.js +353 -0
- package/dist/pages/figure-D-HF5vCj.js +563 -0
- package/dist/pages/figure-strip-hg7txTc3.js +1381 -0
- package/dist/pages/{figure-tabs-CoPFzzKz.js → figure-tabs-QOeQMY6N.js} +153 -35
- package/dist/pages/file-chip-DMDjtlqQ.js +738 -0
- package/dist/pages/filter-pill-DzqNOsD4.js +1295 -0
- package/dist/pages/font-picker-Bqhu0QMh.js +416 -0
- package/dist/pages/form-grid-BfWCVlie.js +692 -0
- package/dist/pages/gallery-BBk2EOri.js +453 -0
- package/dist/pages/gif-picker-CnoDTCaL.js +270 -0
- package/dist/pages/gradient-editor-Bqxp7Fxj.js +378 -0
- package/dist/pages/grouped-checklist-gNZ0tBKU.js +477 -0
- package/dist/pages/heatmap-BohgIcNk.js +507 -0
- package/dist/pages/highlight-text-BfxzfmvS.js +287 -0
- package/dist/pages/{home-dashboard-CFQwDtC9.js → home-dashboard-CxPmvduE.js} +21 -18
- package/dist/pages/hosted-embed-Jef3aIMP.js +163 -0
- package/dist/pages/hosted-field-BLh-53AE.js +208 -0
- package/dist/pages/hosted-field-DEpI4lVS.js +514 -0
- package/dist/pages/{icon-button-C9eSVPPW.js → icon-button-Bu4Gj5sy.js} +370 -31
- package/dist/pages/icon-picker-DEyoMUTh.js +291 -0
- package/dist/pages/icon-tile-DcgxyXPF.js +592 -0
- package/dist/pages/{icons-sxkTs5Ob.js → icons-CJ9Aar3d.js} +315 -52
- package/dist/pages/image-cropper-NyougqLH.js +466 -0
- package/dist/pages/image-field-7knBv4mJ.js +567 -0
- package/dist/pages/import-result-CmTtGXW_.js +486 -0
- package/dist/pages/inline-confirm-CEcI5Lxo.js +327 -0
- package/dist/pages/inline-edit-Ba39SzhM.js +1125 -0
- package/dist/pages/input-CzLCzfyx.js +2372 -0
- package/dist/pages/{installation-DpsX8G_n.js → installation-DRUWNVHP.js} +112 -29
- package/dist/pages/job-indicator-DOXWbFdl.js +755 -0
- package/dist/pages/kanban-Dy9sPAI0.js +740 -0
- package/dist/pages/{kbd-cNfDoikz.js → kbd-UNj4zqxn.js} +15 -14
- package/dist/pages/layout-primitives-CPRaZeyt.js +483 -0
- package/dist/pages/line-chart-CntWxeMF.js +1117 -0
- package/dist/pages/link-CXqvAg9z.js +689 -0
- package/dist/pages/link-picker-BMFGCC67.js +478 -0
- package/dist/pages/link-row-x8yaUuWc.js +595 -0
- package/dist/pages/{live-globe-ClvLn9Lb.js → live-globe-95ROMhGQ.js} +191 -47
- package/dist/pages/loading-overlay-BeGuXM9G.js +456 -0
- package/dist/pages/loading-state-BNbCo51C.js +556 -0
- package/dist/pages/log-viewer-BQz8I_a2.js +503 -0
- package/dist/pages/{logo-BfGF1Pq9.js → logo-D3a3QGKJ.js} +13 -13
- package/dist/pages/lottie_light-CxEH8eiR.js +9116 -0
- package/dist/pages/markdown-Ied72vMT.js +237 -0
- package/dist/pages/markdown-field-BfnIEKZH.js +193 -0
- package/dist/pages/media-banner-DkStCia0.js +233 -0
- package/dist/pages/{menu-by2sgQ09.js → menu-NrLYKqKp.js} +623 -109
- package/dist/pages/message-thread-Bo4zbxqu.js +731 -0
- package/dist/pages/meta-line-D5p2TycR.js +371 -0
- package/dist/pages/model-viewer-BfokvHoc.js +60288 -0
- package/dist/pages/model-viewer-C8PFO8wk.js +577 -0
- package/dist/pages/month-calendar-T1vw9Rup.js +457 -0
- package/dist/pages/{motion-BvTGc2Dk.js → motion-CrXtiBvA.js} +20 -10
- package/dist/pages/number-input-CuyMZg18.js +968 -0
- package/dist/pages/orbit-loader-DeVBtkFE.js +219 -0
- package/dist/pages/{orbit-spinner-Dil1Z3Oy.js → orbit-spinner-Dxv5qAhr.js} +30 -14
- package/dist/pages/otp-input-CVRoX1mw.js +591 -0
- package/dist/pages/{overview-BPEbZQ6g.js → overview-BSfEqHY8.js} +4 -4
- package/dist/pages/package-dimensions-DFCyZj_T.js +192 -0
- package/dist/pages/{pagination-BBUnGvv5.js → pagination-C1EgVtW4.js} +74 -29
- package/dist/pages/palette-tile-X9ZXu2Z0.js +414 -0
- package/dist/pages/password-field-DHEQKyUC.js +912 -0
- package/dist/pages/person-cell-BmjbADBz.js +564 -0
- package/dist/pages/phone-input-B3G7Qpb2.js +747 -0
- package/dist/pages/plan-card-DRaA6RuB.js +621 -0
- package/dist/pages/plan-card-DtloWvMh.js +258 -0
- package/dist/pages/plan-comparison-BVIGTtbd.js +559 -0
- package/dist/pages/plan-grid-BCPvtP8J.js +251 -0
- package/dist/pages/point-list-BbPmZjsm.js +222 -0
- package/dist/pages/{popover-Db1gLDpb.js → popover-C3Oar9D5.js} +76 -14
- package/dist/pages/presence-avatars-CRZIk8n9.js +328 -0
- package/dist/pages/preview-frame-Bcwk0y_Q.js +1631 -0
- package/dist/pages/price-CRBLoa9h.js +604 -0
- package/dist/pages/{principles-CeAIOIdt.js → principles-pnDyfHpK.js} +9 -9
- package/dist/pages/print-page-BkLv6bW8.js +513 -0
- package/dist/pages/profile-hero-CC9dUzuN.js +498 -0
- package/dist/pages/progress-CP_awmo4.js +904 -0
- package/dist/pages/progress-ring-JuOAwk2T.js +576 -0
- package/dist/pages/{radio-group-CkdBWWfG.js → radio-group-CbiibLwn.js} +581 -18
- package/dist/pages/radius-control-B2kRA2Ch.js +441 -0
- package/dist/pages/rating-CweKN2SX.js +471 -0
- package/dist/pages/record-layout-DUP_X0RL.js +719 -0
- package/dist/pages/record-pager-y9D7JFgb.js +278 -0
- package/dist/pages/registry-CNR7zpf7.js +594 -0
- package/dist/pages/{release-Dvo684UJ.js → release-DYBCY7jm.js} +4 -1
- package/dist/pages/repeater-BRZYKRQa.js +1351 -0
- package/dist/pages/reply-feedback-BDnHprla.js +192 -0
- package/dist/pages/reveal-BygENBbL.js +460 -0
- package/dist/pages/rich-text-DOFQZEpT.js +156 -0
- package/dist/pages/rich-text-editor-BhIM20JI.js +1265 -0
- package/dist/pages/rolldown-runtime-CbKu08Hx.js +25 -0
- package/dist/pages/{rolling-number-qmvH84Mq.js → rolling-number-GR3Cyfpz.js} +12 -12
- package/dist/pages/row-list-Dl6CYhC-.js +1565 -0
- package/dist/pages/rule-list-DTCmIMpT.js +648 -0
- package/dist/pages/save-status-B5KkyMZP.js +378 -0
- package/dist/pages/schedule-YycI95O1.js +243 -0
- package/dist/pages/scroll-area-B2sGm23Q.js +423 -0
- package/dist/pages/{search-field-BN7MWGQ4.js → search-field-D1uG7R6A.js} +15 -15
- package/dist/pages/search-menu-DMuXyUUW.js +580 -0
- package/dist/pages/secret-field-Dj9x3LL8.js +337 -0
- package/dist/pages/section-rail-BtTCETS5.js +637 -0
- package/dist/pages/section-v2Pubup9.js +639 -0
- package/dist/pages/{segmented-control-CTbIpRBW.js → segmented-control-D-FB1K1T.js} +450 -37
- package/dist/pages/{select-DguELoRR.js → select-DZ43NpOm.js} +22 -17
- package/dist/pages/selection-chrome-Czcs6RN6.js +437 -0
- package/dist/pages/{separator-CPZub9pv.js → separator-CFwqRvfO.js} +99 -22
- package/dist/pages/serp-preview-BGwORjmo.js +346 -0
- package/dist/pages/setting-row-Bt-dZV8H.js +913 -0
- package/dist/pages/{shape-DKvA0YKr.js → shape-DzniHAVT.js} +10 -10
- package/dist/pages/share-list-D4wgBxKN.js +926 -0
- package/dist/pages/side-panel-CCtkrZjs.js +811 -0
- package/dist/pages/site-preview-Dj1hM2Yo.js +353 -0
- package/dist/pages/skeleton-C1F5HkAu.js +1325 -0
- package/dist/pages/skip-link-BxznhSkz.js +252 -0
- package/dist/pages/slider-CAoPURKD.js +774 -0
- package/dist/pages/sortable-card-Sr44uCpI.js +424 -0
- package/dist/pages/sortable-list-DUAleYE1.js +1298 -0
- package/dist/pages/sortable-tree-BLzK-hTE.js +737 -0
- package/dist/pages/spacing-box-CtuvzxQu.js +550 -0
- package/dist/pages/{sparkline-DMMYGbHn.js → sparkline-D3aavCly.js} +301 -22
- package/dist/pages/split-bar-DYgZnFID.js +414 -0
- package/dist/pages/split-button-Be08-VI-.js +335 -0
- package/dist/pages/split-pane-lSNZgTKt.js +523 -0
- package/dist/pages/status-badge-DOdNhmzn.js +1074 -0
- package/dist/pages/status-checklist-CWkjCZIC.js +1152 -0
- package/dist/pages/status-dot-D99gAGsV.js +567 -0
- package/dist/pages/stepper-CxKTbEA-.js +1093 -0
- package/dist/pages/success-mark-CqFTOBEu.js +142 -0
- package/dist/pages/swatch-H_kNvHuC.js +565 -0
- package/dist/pages/{switch-B-Qe4kcT.js → switch-C93K6j9h.js} +151 -51
- package/dist/pages/table-mq_pNXza.js +3232 -0
- package/dist/pages/{tabs-B4M-usCV.js → tabs-Cf4MZ8Fq.js} +257 -21
- package/dist/pages/tag-input-BjZWKKRJ.js +1307 -0
- package/dist/pages/task-card-Dv0sR1-w.js +295 -0
- package/dist/pages/{textarea-fTuUZRQb.js → textarea-CCM-SnGN.js} +271 -15
- package/dist/pages/thumbnail-DwFJL_k1.js +1147 -0
- package/dist/pages/time-input-CA9-uZAa.js +442 -0
- package/dist/pages/time-zone-select-CEtMXVYO.js +296 -0
- package/dist/pages/timeline-BsMUTlpR.js +1798 -0
- package/dist/pages/{toast-CKP03zjy.js → toast-zXLRiMRT.js} +240 -25
- package/dist/pages/tool-rail-B1AbTMCP.js +355 -0
- package/dist/pages/toolbar-B9l_fHKy.js +754 -0
- package/dist/pages/{tooltip-CBYil3kt.js → tooltip-LHtCUkF-.js} +162 -33
- package/dist/pages/translation-field-CTRXiF2N.js +251 -0
- package/dist/pages/tree-checklist-CJj3OcLg.js +451 -0
- package/dist/pages/tree-select-DU1qXHy_.js +492 -0
- package/dist/pages/tree-view-g_RjLtAb.js +739 -0
- package/dist/pages/{typography-PCbg8Bhg.js → typography-BSijtiRl.js} +153 -12
- package/dist/pages/unit-input-Dml4fjmK.js +659 -0
- package/dist/pages/upload-rules-yozEzSah.js +419 -0
- package/dist/pages/url-upload-input-SSnMgfpA.js +307 -0
- package/dist/pages/value-change-CnubDKyO.js +489 -0
- package/dist/pages/weekly-hours-i2EpsmTx.js +287 -0
- package/dist/pages/widget-preview-CUJMyZ_k.js +625 -0
- package/dist/pages/working-status-CENemSsw.js +389 -0
- package/manifest.json +10989 -1108
- package/package.json +3 -3
- package/dist/pages/card-DUggbis3.js +0 -659
- package/dist/pages/checkbox-DwimQaK3.js +0 -365
- package/dist/pages/dialog-BRAf4LMh.js +0 -1451
- package/dist/pages/empty-state-C-mLrXW2.js +0 -417
- package/dist/pages/input-KF9Gkawf.js +0 -1093
- package/dist/pages/registry-CroHzK9I.js +0 -244
- package/dist/pages/skeleton-DLuBhP46.js +0 -561
- package/dist/pages/table-AMoODng4.js +0 -607
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { n as __toESM } from "./rolldown-runtime-CbKu08Hx.js";
|
|
3
|
+
import { t as DocLink } from "./host-B6znjEgQ.js";
|
|
4
|
+
import { a as DocTable, d as Section$1, i as DocPage, l as Note, m as ThemePair, o as Example, r as DoDont, s as Guidelines, u as PropsTable } from "./docs-lM2UBSir.js";
|
|
5
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Button, Card, CardBody, CardHeader, LoadingState, OrbitSpinner, SkeletonList, setOrbitLoaderPlayer } from "@orbitcommerce/constellation";
|
|
8
|
+
//#region src/pages/components/loading-state.tsx
|
|
9
|
+
setOrbitLoaderPlayer(() => import("./lottie_light-CxEH8eiR.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
|
|
10
|
+
/** A loading state without the words a screen reader would hear, so a page of examples does not announce them all. */
|
|
11
|
+
function Quiet(props) {
|
|
12
|
+
return /* @__PURE__ */ jsx(LoadingState, {
|
|
13
|
+
label: null,
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function Preview() {
|
|
18
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: "loading-state-preview",
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ jsx(Quiet, {
|
|
22
|
+
size: "sm",
|
|
23
|
+
className: "loading-state-box"
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ jsx(Quiet, {
|
|
26
|
+
size: "md",
|
|
27
|
+
className: "loading-state-box"
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ jsx(Quiet, {
|
|
30
|
+
size: "sm",
|
|
31
|
+
tone: "accent",
|
|
32
|
+
className: "loading-state-box"
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
var SIZES = [
|
|
38
|
+
{
|
|
39
|
+
name: "sm",
|
|
40
|
+
size: "sm",
|
|
41
|
+
box: "40"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "md",
|
|
45
|
+
size: "md",
|
|
46
|
+
box: "80"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "lg",
|
|
50
|
+
size: "lg",
|
|
51
|
+
box: "120"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "xl",
|
|
55
|
+
size: "xl",
|
|
56
|
+
box: "200"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "150",
|
|
60
|
+
size: 150,
|
|
61
|
+
box: "150"
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
/** A report that loads for a moment when asked, so the box can be seen holding its place and then giving it up. */
|
|
65
|
+
function Report() {
|
|
66
|
+
const [loading, setLoading] = useState(true);
|
|
67
|
+
const timer = useRef(void 0);
|
|
68
|
+
const load = useCallback(() => {
|
|
69
|
+
setLoading(true);
|
|
70
|
+
window.clearTimeout(timer.current);
|
|
71
|
+
timer.current = window.setTimeout(() => setLoading(false), 2200);
|
|
72
|
+
}, []);
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
load();
|
|
75
|
+
return () => window.clearTimeout(timer.current);
|
|
76
|
+
}, [load]);
|
|
77
|
+
return /* @__PURE__ */ jsxs(Card, {
|
|
78
|
+
className: "loading-state-card",
|
|
79
|
+
children: [/* @__PURE__ */ jsx(CardHeader, {
|
|
80
|
+
title: "Sales by channel",
|
|
81
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
82
|
+
size: "sm",
|
|
83
|
+
variant: "secondary",
|
|
84
|
+
onClick: load,
|
|
85
|
+
children: "Reload"
|
|
86
|
+
})
|
|
87
|
+
}), /* @__PURE__ */ jsx(CardBody, { children: loading ? /* @__PURE__ */ jsx(LoadingState, {
|
|
88
|
+
placement: "section",
|
|
89
|
+
label: "Loading the report"
|
|
90
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
91
|
+
className: "loading-state-report",
|
|
92
|
+
children: [/* @__PURE__ */ jsx("strong", { children: "£12,480.00" }), /* @__PURE__ */ jsx("span", { children: "across three channels this week" })]
|
|
93
|
+
}) })]
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function Page() {
|
|
97
|
+
return /* @__PURE__ */ jsxs(DocPage, {
|
|
98
|
+
title: "Loading state",
|
|
99
|
+
status: "stable",
|
|
100
|
+
importNames: ["LoadingState"],
|
|
101
|
+
lead: "The Orbit spinner in a block that holds its place, for a view that is waiting on something with no known shape: a route, an embedded report, a card whose data is on its way. It keeps the room the loaded view will take, and says it is loading once, in words.",
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
104
|
+
id: "sizes",
|
|
105
|
+
title: "Sizes",
|
|
106
|
+
description: /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("code", { children: "size" }), " is the square the block reserves, so nothing around it moves. The spinner inside is a third of it (never under 16px), centred. Use a name, or any number of pixels."] }),
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ jsx(Example, {
|
|
109
|
+
code: `
|
|
110
|
+
<LoadingState size="sm" />
|
|
111
|
+
<LoadingState size="md" />
|
|
112
|
+
<LoadingState size="lg" />
|
|
113
|
+
<LoadingState size="xl" />
|
|
114
|
+
<LoadingState size={150} />`,
|
|
115
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
116
|
+
className: "loading-state-row",
|
|
117
|
+
children: SIZES.map((item) => /* @__PURE__ */ jsxs("figure", {
|
|
118
|
+
className: "loading-state-cell",
|
|
119
|
+
children: [/* @__PURE__ */ jsx(Quiet, {
|
|
120
|
+
size: item.size,
|
|
121
|
+
className: "loading-state-box"
|
|
122
|
+
}), /* @__PURE__ */ jsx("figcaption", { children: item.name === item.box ? `${item.box}px` : `${item.name}, ${item.box}px` })]
|
|
123
|
+
}, item.name))
|
|
124
|
+
})
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ jsx(DocTable, {
|
|
127
|
+
columns: [
|
|
128
|
+
"Size",
|
|
129
|
+
"Box",
|
|
130
|
+
"Spinner",
|
|
131
|
+
"For"
|
|
132
|
+
],
|
|
133
|
+
rows: [
|
|
134
|
+
[
|
|
135
|
+
/* @__PURE__ */ jsx("code", { children: "sm" }),
|
|
136
|
+
"40px",
|
|
137
|
+
"16px",
|
|
138
|
+
"A compact spot: a table cell, a small tile."
|
|
139
|
+
],
|
|
140
|
+
[
|
|
141
|
+
/* @__PURE__ */ jsx("code", { children: "md" }),
|
|
142
|
+
"80px",
|
|
143
|
+
"27px",
|
|
144
|
+
"The default: a card or a panel."
|
|
145
|
+
],
|
|
146
|
+
[
|
|
147
|
+
/* @__PURE__ */ jsx("code", { children: "lg" }),
|
|
148
|
+
"120px",
|
|
149
|
+
"40px",
|
|
150
|
+
"A page that has nothing else yet."
|
|
151
|
+
],
|
|
152
|
+
[
|
|
153
|
+
/* @__PURE__ */ jsx("code", { children: "xl" }),
|
|
154
|
+
"200px",
|
|
155
|
+
"67px",
|
|
156
|
+
"A whole screen, on its own."
|
|
157
|
+
]
|
|
158
|
+
]
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ jsx("p", {
|
|
161
|
+
className: "doc-section__description",
|
|
162
|
+
children: "The dashed squares in these examples are drawn by this page, to show the room held. The component draws none."
|
|
163
|
+
})
|
|
164
|
+
]
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
167
|
+
id: "placement",
|
|
168
|
+
title: "Where it sits",
|
|
169
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
170
|
+
/* @__PURE__ */ jsx("code", { children: "placement" }),
|
|
171
|
+
" says how the block sits in its page. ",
|
|
172
|
+
/* @__PURE__ */ jsx("code", { children: "inline" }),
|
|
173
|
+
" (the default) is just the box, for a spot you place yourself. ",
|
|
174
|
+
/* @__PURE__ */ jsx("code", { children: "section" }),
|
|
175
|
+
" is as wide as its parent and at least 256px tall, with the spinner in the middle: the body of a card or a panel. Press Reload to watch it hand over to the report."
|
|
176
|
+
] }),
|
|
177
|
+
children: [
|
|
178
|
+
/* @__PURE__ */ jsx(Example, {
|
|
179
|
+
align: "fill",
|
|
180
|
+
code: `
|
|
181
|
+
<Card>
|
|
182
|
+
<CardHeader title="Sales by channel" />
|
|
183
|
+
<CardBody>
|
|
184
|
+
{loading ? (
|
|
185
|
+
<LoadingState placement="section" label="Loading the report" />
|
|
186
|
+
) : (
|
|
187
|
+
<Report />
|
|
188
|
+
)}
|
|
189
|
+
</CardBody>
|
|
190
|
+
</Card>`,
|
|
191
|
+
children: /* @__PURE__ */ jsx(Report, {})
|
|
192
|
+
}),
|
|
193
|
+
/* @__PURE__ */ jsxs("p", {
|
|
194
|
+
className: "doc-section__description",
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ jsx("code", { children: "page" }),
|
|
197
|
+
" and ",
|
|
198
|
+
/* @__PURE__ */ jsx("code", { children: "screen" }),
|
|
199
|
+
" are for a view that has nothing else on it yet. ",
|
|
200
|
+
/* @__PURE__ */ jsx("code", { children: "page" }),
|
|
201
|
+
" is the free canvas of a page: at least 560px tall (or the window less 180px, if that is less), with the spinner a little above the middle, where the eye rests, and draws the spinner in the accent, as the plugin pages do. ",
|
|
202
|
+
/* @__PURE__ */ jsx("code", { children: "screen" }),
|
|
203
|
+
" is the whole window, for a route that is still loading, and draws it muted, as the vendor dashboard's route fallback does. The two frames below are shortened to fit this page."
|
|
204
|
+
]
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ jsx(Example, {
|
|
207
|
+
align: "fill",
|
|
208
|
+
code: `
|
|
209
|
+
<LoadingState placement="page" label="Loading the plugin" />
|
|
210
|
+
|
|
211
|
+
<Suspense fallback={<LoadingState placement="screen" />}>
|
|
212
|
+
<Routes />
|
|
213
|
+
</Suspense>`,
|
|
214
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
215
|
+
className: "loading-state-frames",
|
|
216
|
+
children: [/* @__PURE__ */ jsxs("figure", {
|
|
217
|
+
className: "loading-state-frame",
|
|
218
|
+
children: [/* @__PURE__ */ jsx(Quiet, { placement: "page" }), /* @__PURE__ */ jsx("figcaption", { children: "page" })]
|
|
219
|
+
}), /* @__PURE__ */ jsxs("figure", {
|
|
220
|
+
className: "loading-state-frame",
|
|
221
|
+
children: [/* @__PURE__ */ jsx(Quiet, { placement: "screen" }), /* @__PURE__ */ jsx("figcaption", { children: "screen" })]
|
|
222
|
+
})]
|
|
223
|
+
})
|
|
224
|
+
})
|
|
225
|
+
]
|
|
226
|
+
}),
|
|
227
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
228
|
+
id: "tone",
|
|
229
|
+
title: "Tone",
|
|
230
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
231
|
+
/* @__PURE__ */ jsx("code", { children: "muted" }),
|
|
232
|
+
" is quiet ink, the right weight inside a card or a panel. ",
|
|
233
|
+
/* @__PURE__ */ jsx("code", { children: "accent" }),
|
|
234
|
+
" is the brand colour, as the vendor dashboard's plugin pages draw their spinner, for a spinner that is the only thing on a page. It follows the placement unless you say: ",
|
|
235
|
+
/* @__PURE__ */ jsx("code", { children: "accent" }),
|
|
236
|
+
" on a ",
|
|
237
|
+
/* @__PURE__ */ jsx("code", { children: "page" }),
|
|
238
|
+
", ",
|
|
239
|
+
/* @__PURE__ */ jsx("code", { children: "muted" }),
|
|
240
|
+
" everywhere else, a ",
|
|
241
|
+
/* @__PURE__ */ jsx("code", { children: "screen" }),
|
|
242
|
+
" included (the vendor dashboard's route fallback is muted)."
|
|
243
|
+
] }),
|
|
244
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
245
|
+
code: `
|
|
246
|
+
<LoadingState tone="muted" />
|
|
247
|
+
<LoadingState tone="accent" />`,
|
|
248
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
249
|
+
className: "loading-state-row",
|
|
250
|
+
children: [/* @__PURE__ */ jsxs("figure", {
|
|
251
|
+
className: "loading-state-cell",
|
|
252
|
+
children: [/* @__PURE__ */ jsx(Quiet, {
|
|
253
|
+
tone: "muted",
|
|
254
|
+
className: "loading-state-box"
|
|
255
|
+
}), /* @__PURE__ */ jsx("figcaption", { children: "muted" })]
|
|
256
|
+
}), /* @__PURE__ */ jsxs("figure", {
|
|
257
|
+
className: "loading-state-cell",
|
|
258
|
+
children: [/* @__PURE__ */ jsx(Quiet, {
|
|
259
|
+
tone: "accent",
|
|
260
|
+
className: "loading-state-box"
|
|
261
|
+
}), /* @__PURE__ */ jsx("figcaption", { children: "accent" })]
|
|
262
|
+
})]
|
|
263
|
+
})
|
|
264
|
+
})
|
|
265
|
+
}),
|
|
266
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
267
|
+
id: "orbit",
|
|
268
|
+
title: "The Orbit logo",
|
|
269
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
270
|
+
/* @__PURE__ */ jsx("code", { children: "art=\"orbit\"" }),
|
|
271
|
+
" waits with the animated Orbit logo (",
|
|
272
|
+
/* @__PURE__ */ jsx(DocLink, {
|
|
273
|
+
to: "/components/orbit-loader",
|
|
274
|
+
children: "Orbit loader"
|
|
275
|
+
}),
|
|
276
|
+
") drawn the size of the box, in place of the spinner: for a page or a panel that has nothing to show yet, as the supplier and agency dashboards' loader is. It needs the app to hand over the Lottie player once; until then, and if it fails, the spinner stands in, and under reduced motion the logo stands still. The logo keeps its own colours, so ",
|
|
277
|
+
/* @__PURE__ */ jsx("code", { children: "tone" }),
|
|
278
|
+
" does not change it. Inside a button or a row, keep the spinner."
|
|
279
|
+
] }),
|
|
280
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
281
|
+
code: `
|
|
282
|
+
// Once, where the app starts
|
|
283
|
+
setOrbitLoaderPlayer(() => import('lottie-web/build/player/lottie_light'))
|
|
284
|
+
|
|
285
|
+
<LoadingState art="orbit" size="md" label="Loading products" />
|
|
286
|
+
<LoadingState art="orbit" size="lg" placement="section" label="Loading your media library" showLabel />`,
|
|
287
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
288
|
+
className: "loading-state-row",
|
|
289
|
+
children: [/* @__PURE__ */ jsxs("figure", {
|
|
290
|
+
className: "loading-state-cell",
|
|
291
|
+
children: [/* @__PURE__ */ jsx(Quiet, {
|
|
292
|
+
art: "orbit",
|
|
293
|
+
className: "loading-state-box"
|
|
294
|
+
}), /* @__PURE__ */ jsx("figcaption", { children: "md" })]
|
|
295
|
+
}), /* @__PURE__ */ jsxs("figure", {
|
|
296
|
+
className: "loading-state-cell",
|
|
297
|
+
children: [/* @__PURE__ */ jsx(Quiet, {
|
|
298
|
+
art: "orbit",
|
|
299
|
+
size: "lg",
|
|
300
|
+
className: "loading-state-box"
|
|
301
|
+
}), /* @__PURE__ */ jsx("figcaption", { children: "lg" })]
|
|
302
|
+
})]
|
|
303
|
+
})
|
|
304
|
+
})
|
|
305
|
+
}),
|
|
306
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
307
|
+
id: "label",
|
|
308
|
+
title: "What it says",
|
|
309
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
310
|
+
"The spinner is decoration. The words are one polite status line, visually hidden, so the wait is announced once:",
|
|
311
|
+
" ",
|
|
312
|
+
/* @__PURE__ */ jsx("code", { children: "label" }),
|
|
313
|
+
" is what a screen reader hears (\"Loading\" by default, in English whatever the page's language, so pass it translated; name the wait, such as \"Loading orders\"). ",
|
|
314
|
+
/* @__PURE__ */ jsx("code", { children: "showLabel" }),
|
|
315
|
+
" also shows the words under the spinner, for a block that might sit there a while. The examples on this page pass ",
|
|
316
|
+
/* @__PURE__ */ jsxs("code", { children: ["label=", "{null}"] }),
|
|
317
|
+
" so the page does not announce a dozen of them; the report card above and this example say their words."
|
|
318
|
+
] }),
|
|
319
|
+
children: [
|
|
320
|
+
/* @__PURE__ */ jsx(Example, {
|
|
321
|
+
code: `
|
|
322
|
+
<LoadingState size="lg" label="Loading orders" showLabel />
|
|
323
|
+
<LoadingState size="lg" label={null} />`,
|
|
324
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
325
|
+
className: "loading-state-row",
|
|
326
|
+
children: [/* @__PURE__ */ jsxs("figure", {
|
|
327
|
+
className: "loading-state-cell",
|
|
328
|
+
children: [/* @__PURE__ */ jsx(LoadingState, {
|
|
329
|
+
size: "lg",
|
|
330
|
+
label: "Loading orders",
|
|
331
|
+
showLabel: true,
|
|
332
|
+
className: "loading-state-box"
|
|
333
|
+
}), /* @__PURE__ */ jsx("figcaption", { children: "label and showLabel" })]
|
|
334
|
+
}), /* @__PURE__ */ jsxs("figure", {
|
|
335
|
+
className: "loading-state-cell",
|
|
336
|
+
children: [/* @__PURE__ */ jsx(Quiet, {
|
|
337
|
+
size: "lg",
|
|
338
|
+
className: "loading-state-box"
|
|
339
|
+
}), /* @__PURE__ */ jsxs("figcaption", { children: [
|
|
340
|
+
"label=",
|
|
341
|
+
"{null}",
|
|
342
|
+
": silent"
|
|
343
|
+
] })]
|
|
344
|
+
})]
|
|
345
|
+
})
|
|
346
|
+
}),
|
|
347
|
+
/* @__PURE__ */ jsxs(Note, {
|
|
348
|
+
title: "Do not mark the region busy",
|
|
349
|
+
children: [
|
|
350
|
+
"A loading state is not ",
|
|
351
|
+
/* @__PURE__ */ jsx("code", { children: "aria-busy" }),
|
|
352
|
+
", and nor should the region around it be: a busy region can hold back what is inside it, and the status is inside. Pass ",
|
|
353
|
+
/* @__PURE__ */ jsxs("code", { children: ["label=", "{null}"] }),
|
|
354
|
+
" when the wait is announced elsewhere (a button that says \"Saving\", a page heading that already says what is loading) so it is not said twice."
|
|
355
|
+
]
|
|
356
|
+
}),
|
|
357
|
+
/* @__PURE__ */ jsx(Fragment$1, {})
|
|
358
|
+
]
|
|
359
|
+
}),
|
|
360
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
361
|
+
id: "both-themes",
|
|
362
|
+
title: "In both themes",
|
|
363
|
+
description: /* @__PURE__ */ jsx("p", { children: "Both tones and a section block, light and dark side by side." }),
|
|
364
|
+
children: /* @__PURE__ */ jsx(ThemePair, {
|
|
365
|
+
align: "fill",
|
|
366
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
367
|
+
className: "loading-state-stack",
|
|
368
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
369
|
+
className: "loading-state-row",
|
|
370
|
+
children: [/* @__PURE__ */ jsx(Quiet, { className: "loading-state-box" }), /* @__PURE__ */ jsx(Quiet, {
|
|
371
|
+
tone: "accent",
|
|
372
|
+
className: "loading-state-box"
|
|
373
|
+
})]
|
|
374
|
+
}), /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsx(CardHeader, { title: "Sales by channel" }), /* @__PURE__ */ jsx(CardBody, { children: /* @__PURE__ */ jsx(Quiet, { placement: "section" }) })] })]
|
|
375
|
+
})
|
|
376
|
+
})
|
|
377
|
+
}),
|
|
378
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
379
|
+
id: "guidelines",
|
|
380
|
+
title: "Guidelines",
|
|
381
|
+
children: [
|
|
382
|
+
/* @__PURE__ */ jsx(DoDont, {
|
|
383
|
+
do: {
|
|
384
|
+
children: /* @__PURE__ */ jsxs(Card, {
|
|
385
|
+
className: "loading-state-dodont",
|
|
386
|
+
children: [/* @__PURE__ */ jsx(CardHeader, { title: "Sales by channel" }), /* @__PURE__ */ jsx(CardBody, { children: /* @__PURE__ */ jsx(Quiet, { placement: "section" }) })]
|
|
387
|
+
}),
|
|
388
|
+
caption: "A block that holds the room of the report that is coming."
|
|
389
|
+
},
|
|
390
|
+
dont: {
|
|
391
|
+
children: /* @__PURE__ */ jsxs(Card, {
|
|
392
|
+
className: "loading-state-dodont",
|
|
393
|
+
children: [/* @__PURE__ */ jsx(CardHeader, { title: "Sales by channel" }), /* @__PURE__ */ jsx(CardBody, { children: /* @__PURE__ */ jsx(OrbitSpinner, { size: 24 }) })]
|
|
394
|
+
}),
|
|
395
|
+
caption: "A bare spinner takes no room: the card is a sliver, and jumps when the report lands."
|
|
396
|
+
}
|
|
397
|
+
}),
|
|
398
|
+
/* @__PURE__ */ jsx(DoDont, {
|
|
399
|
+
do: {
|
|
400
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
401
|
+
className: "loading-state-dodont",
|
|
402
|
+
children: /* @__PURE__ */ jsx(SkeletonList, {
|
|
403
|
+
rows: 2,
|
|
404
|
+
lead: "tile",
|
|
405
|
+
lines: 2,
|
|
406
|
+
trail: true,
|
|
407
|
+
dividers: true,
|
|
408
|
+
label: null
|
|
409
|
+
})
|
|
410
|
+
}),
|
|
411
|
+
caption: "Rows in the shape of the rows that are coming, for a list."
|
|
412
|
+
},
|
|
413
|
+
dont: {
|
|
414
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
415
|
+
className: "loading-state-dodont",
|
|
416
|
+
children: /* @__PURE__ */ jsx(Quiet, {})
|
|
417
|
+
}),
|
|
418
|
+
caption: "A spinner where a list will be says wait but not what for, and the page jumps when the rows arrive."
|
|
419
|
+
}
|
|
420
|
+
}),
|
|
421
|
+
/* @__PURE__ */ jsx(Guidelines, { items: [
|
|
422
|
+
/* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
423
|
+
"Use it for a view with no known shape. For a list, a card or a figure, use a",
|
|
424
|
+
" ",
|
|
425
|
+
/* @__PURE__ */ jsx(DocLink, {
|
|
426
|
+
to: "/components/skeleton#compositions",
|
|
427
|
+
children: "skeleton"
|
|
428
|
+
}),
|
|
429
|
+
"; for an action the merchant started, a loading button."
|
|
430
|
+
] }),
|
|
431
|
+
"Reserve the room of what is coming: choose the size, or a number of pixels, so the page does not jump when the content lands.",
|
|
432
|
+
"One loader per wait. Never a loading state inside a region that is already showing skeletons.",
|
|
433
|
+
"Name the wait in the label: \"Loading orders\", not \"Loading\"."
|
|
434
|
+
] })
|
|
435
|
+
]
|
|
436
|
+
}),
|
|
437
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
438
|
+
id: "accessibility",
|
|
439
|
+
title: "Accessibility",
|
|
440
|
+
children: /* @__PURE__ */ jsx(Guidelines, { items: [
|
|
441
|
+
/* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
442
|
+
"The spinner and the visible label are hidden from assistive tech. One ",
|
|
443
|
+
/* @__PURE__ */ jsx("code", { children: "role=\"status\"" }),
|
|
444
|
+
" line (polite, visually hidden) carries the words, so the wait is announced once."
|
|
445
|
+
] }),
|
|
446
|
+
"The status is in the page before its words are, and says them a moment later. A live region that arrives with its words already in it is often not read.",
|
|
447
|
+
"Nothing here is focusable and nothing steals focus.",
|
|
448
|
+
"Under reduced motion the satellite stops travelling and the spinner breathes in place (see Orbit spinner).",
|
|
449
|
+
/* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
450
|
+
"Do not wrap it in an ",
|
|
451
|
+
/* @__PURE__ */ jsx("code", { children: "aria-busy" }),
|
|
452
|
+
" region: a busy region can hold back the status inside it. If a region must be marked busy, keep the loading state outside it."
|
|
453
|
+
] })
|
|
454
|
+
] })
|
|
455
|
+
}),
|
|
456
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
457
|
+
id: "differences",
|
|
458
|
+
title: "Where it differs from the vendor dashboard",
|
|
459
|
+
description: /* @__PURE__ */ jsx("p", { children: "The four boxes, the spinner at a third of its box in muted ink, and the page block are the vendor dashboard's, measured in the running app (its LoadingSpinner, and the spinner on its plugin pages). These are the places the kit chooses differently." }),
|
|
460
|
+
children: /* @__PURE__ */ jsx(DocTable, {
|
|
461
|
+
columns: [
|
|
462
|
+
"Where",
|
|
463
|
+
"Vendor dashboard",
|
|
464
|
+
"Kit"
|
|
465
|
+
],
|
|
466
|
+
rows: [
|
|
467
|
+
[
|
|
468
|
+
"Announcing it",
|
|
469
|
+
"Nothing: the spinner has no label, so no screen reader hears that anything is loading. The plugin pages' spinner block is aria-busy.",
|
|
470
|
+
"One polite status, \"Loading\" or your words. Not aria-busy, which can hold back the status inside it."
|
|
471
|
+
],
|
|
472
|
+
[
|
|
473
|
+
"A line of words",
|
|
474
|
+
"The page builder fallback puts a quiet line under the spinner.",
|
|
475
|
+
/* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("code", { children: "showLabel" }), " does the same, and the same words are what a screen reader hears."] })
|
|
476
|
+
],
|
|
477
|
+
[
|
|
478
|
+
"A route, a page, a screen",
|
|
479
|
+
"Fixed boxes: 384px for a route inside the shell, the full window for the page builder, 560px with 24px above and 48px below for the plugin pages.",
|
|
480
|
+
/* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
481
|
+
/* @__PURE__ */ jsx("code", { children: "section" }),
|
|
482
|
+
" is 256px at least, ",
|
|
483
|
+
/* @__PURE__ */ jsx("code", { children: "page" }),
|
|
484
|
+
" is the plugin pages' block (560px, or the window less 180px if that is less), ",
|
|
485
|
+
/* @__PURE__ */ jsx("code", { children: "screen" }),
|
|
486
|
+
" is the window."
|
|
487
|
+
] })
|
|
488
|
+
],
|
|
489
|
+
[
|
|
490
|
+
"The colour of a page",
|
|
491
|
+
"Muted ink, as everywhere: only a few Orbit-only places (the plugin pages, the store menu) draw the spinner in the accent.",
|
|
492
|
+
/* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
493
|
+
"The accent on a ",
|
|
494
|
+
/* @__PURE__ */ jsx("code", { children: "page" }),
|
|
495
|
+
", as the plugin pages draw it. A ",
|
|
496
|
+
/* @__PURE__ */ jsx("code", { children: "screen" }),
|
|
497
|
+
" is muted, as the route fallback is. ",
|
|
498
|
+
/* @__PURE__ */ jsx("code", { children: "tone" }),
|
|
499
|
+
" overrides."
|
|
500
|
+
] })
|
|
501
|
+
]
|
|
502
|
+
]
|
|
503
|
+
})
|
|
504
|
+
}),
|
|
505
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
506
|
+
id: "props",
|
|
507
|
+
title: "Props",
|
|
508
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
509
|
+
"Also accepts every native span attribute, and a ref. It is a ",
|
|
510
|
+
/* @__PURE__ */ jsx("code", { children: "span" }),
|
|
511
|
+
", drawn as a block by a placement, as the vendor dashboard's spinner is, so it can sit inside a paragraph."
|
|
512
|
+
] }),
|
|
513
|
+
children: /* @__PURE__ */ jsx(PropsTable, { rows: [
|
|
514
|
+
{
|
|
515
|
+
name: "size",
|
|
516
|
+
type: "'sm' | 'md' | 'lg' | 'xl' | number",
|
|
517
|
+
default: "'md'",
|
|
518
|
+
description: "The square it reserves: 40, 80, 120 or 200px, or any number of pixels. The spinner is a third of it, never under 16px."
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
name: "placement",
|
|
522
|
+
type: "'inline' | 'section' | 'page' | 'screen'",
|
|
523
|
+
default: "'inline'",
|
|
524
|
+
description: "The box itself; a block as wide as its parent and at least 256px tall; the free canvas of a page; the whole window."
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
name: "tone",
|
|
528
|
+
type: "'muted' | 'accent'",
|
|
529
|
+
default: "'accent' on a page, else 'muted'",
|
|
530
|
+
description: "Quiet ink, or the brand colour for a spinner that is alone on a page."
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
name: "label",
|
|
534
|
+
type: "string | null",
|
|
535
|
+
default: "'Loading'",
|
|
536
|
+
description: "What a screen reader hears, once. English by default: pass it translated. null says nothing."
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
name: "showLabel",
|
|
540
|
+
type: "boolean",
|
|
541
|
+
default: "false",
|
|
542
|
+
description: "Shows the label under the spinner as well."
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
name: "art",
|
|
546
|
+
type: "'spinner' | 'orbit'",
|
|
547
|
+
default: "'spinner'",
|
|
548
|
+
description: "What waits in the box: the CSS spinner, a third of it, or the animated Orbit logo the size of it."
|
|
549
|
+
}
|
|
550
|
+
] })
|
|
551
|
+
})
|
|
552
|
+
]
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
//#endregion
|
|
556
|
+
export { Page, Preview };
|