@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as DocTable, d as Section, i as DocPage, l as Note, m as ThemePair, n as CodeBlock, o as Example, p as SubSection, r as DoDont, s as Guidelines } from "./docs-
|
|
2
|
+
import { a as DocTable, d as Section$1, i as DocPage, l as Note, m as ThemePair, n as CodeBlock$1, o as Example, p as SubSection, r as DoDont, s as Guidelines } from "./docs-lM2UBSir.js";
|
|
3
3
|
import { n as useCopied, t as LiveStatus } from "./_foundations-blXWyYh8.js";
|
|
4
4
|
import { createContext, useContext, useLayoutEffect, useRef, useState } from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -227,12 +227,25 @@ var STATUS = [
|
|
|
227
227
|
"blue-500",
|
|
228
228
|
"blue-100"
|
|
229
229
|
];
|
|
230
|
+
/** The colour each Orbit dashboard wears in its frame (the shell's data-o-app), in the shell's order. */
|
|
231
|
+
var IDENTITY = [
|
|
232
|
+
"vendor",
|
|
233
|
+
"supplier",
|
|
234
|
+
"admin",
|
|
235
|
+
"agency",
|
|
236
|
+
"partner",
|
|
237
|
+
"affiliate",
|
|
238
|
+
"enterprise"
|
|
239
|
+
].map((s) => `identity-${s}`);
|
|
230
240
|
var PRIMITIVES = [
|
|
231
241
|
...TEAL,
|
|
232
242
|
...BRAND,
|
|
233
243
|
...GREY,
|
|
234
|
-
...STATUS
|
|
244
|
+
...STATUS,
|
|
245
|
+
...IDENTITY
|
|
235
246
|
];
|
|
247
|
+
/** Tokens that are not colours, read from the live stylesheet all the same. */
|
|
248
|
+
var MEASURES = ["identity-strength"];
|
|
236
249
|
/** The names DESIGN.md gives the colours, so reviewers and designers share one vocabulary. */
|
|
237
250
|
var NAMES = {
|
|
238
251
|
"teal-50": "Teal Wash",
|
|
@@ -296,6 +309,11 @@ var SEMANTIC = [
|
|
|
296
309
|
kind: "surface",
|
|
297
310
|
use: "Wells: the secondary pill's hover, read-only fields, sunken cards."
|
|
298
311
|
},
|
|
312
|
+
{
|
|
313
|
+
token: "bg-well",
|
|
314
|
+
kind: "surface",
|
|
315
|
+
use: "A board's columns and the current plan's card: the sunken ground in light, a step above the canvas in dark, where the sunken ground is the page's own."
|
|
316
|
+
},
|
|
299
317
|
{
|
|
300
318
|
token: "bg-muted",
|
|
301
319
|
kind: "surface",
|
|
@@ -386,6 +404,11 @@ var SEMANTIC = [
|
|
|
386
404
|
token: "border-3",
|
|
387
405
|
kind: "border",
|
|
388
406
|
use: "Hover edges, the future arc of the day, scrollbar thumbs."
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
token: "raised-ring",
|
|
410
|
+
kind: "border",
|
|
411
|
+
use: "The ring round a raised sheet, for what continues its edge (a popover's arrow): none in light, a faint hairline in dark."
|
|
389
412
|
}
|
|
390
413
|
]
|
|
391
414
|
},
|
|
@@ -459,7 +482,7 @@ var SEMANTIC = [
|
|
|
459
482
|
{
|
|
460
483
|
token: "negative",
|
|
461
484
|
kind: "fill",
|
|
462
|
-
use: "Falling figures,
|
|
485
|
+
use: "Falling figures, failed payments, cancelled orders, field errors, destructive actions."
|
|
463
486
|
},
|
|
464
487
|
{
|
|
465
488
|
token: "negative-subtle",
|
|
@@ -469,13 +492,19 @@ var SEMANTIC = [
|
|
|
469
492
|
{
|
|
470
493
|
token: "warning",
|
|
471
494
|
kind: "fill",
|
|
472
|
-
use: "Strained states: an order waiting over a day, stock at zero."
|
|
495
|
+
use: "Strained states: money owed or moving back, an order waiting over a day, stock at zero."
|
|
473
496
|
},
|
|
474
497
|
{
|
|
475
498
|
token: "warning-subtle",
|
|
476
499
|
kind: "fill",
|
|
477
500
|
use: "The wash under a warning badge."
|
|
478
501
|
},
|
|
502
|
+
{
|
|
503
|
+
token: "warning-mark",
|
|
504
|
+
kind: "text",
|
|
505
|
+
on: "warning-subtle",
|
|
506
|
+
use: "Amber for a mark or a word (an icon, a glyph, a label), leaned towards ink so it reads on its wash."
|
|
507
|
+
},
|
|
479
508
|
{
|
|
480
509
|
token: "info",
|
|
481
510
|
kind: "fill",
|
|
@@ -488,6 +517,16 @@ var SEMANTIC = [
|
|
|
488
517
|
}
|
|
489
518
|
]
|
|
490
519
|
},
|
|
520
|
+
{
|
|
521
|
+
id: "rating",
|
|
522
|
+
title: "Rating",
|
|
523
|
+
description: "A rating's stars are gold, not the warning amber: they say how well, not that something is wrong.",
|
|
524
|
+
rows: [{
|
|
525
|
+
token: "star",
|
|
526
|
+
kind: "fill",
|
|
527
|
+
use: "Rating's and RatingInput's stars, read and chosen. 3.2:1 on the light canvas, as a graphic that carries a value must be."
|
|
528
|
+
}]
|
|
529
|
+
},
|
|
491
530
|
{
|
|
492
531
|
id: "focus",
|
|
493
532
|
title: "Focus and selection",
|
|
@@ -505,12 +544,12 @@ var SEMANTIC = [
|
|
|
505
544
|
{
|
|
506
545
|
id: "charts",
|
|
507
546
|
title: "Charts",
|
|
508
|
-
description: "One teal line over a wash that fades, the previous period in Mist, and gridlines you barely see.",
|
|
547
|
+
description: "One teal line over a wash that fades, the previous period in Mist, and gridlines you barely see. Then a colour for each job: a run of hues for which series, one teal ramp for how much, and two poles round a grey for which side.",
|
|
509
548
|
rows: [
|
|
510
549
|
{
|
|
511
550
|
token: "chart-1",
|
|
512
551
|
kind: "line",
|
|
513
|
-
use: "The series line."
|
|
552
|
+
use: "The series line, and the first of the categorical run."
|
|
514
553
|
},
|
|
515
554
|
{
|
|
516
555
|
token: "chart-1-fill",
|
|
@@ -520,12 +559,82 @@ var SEMANTIC = [
|
|
|
520
559
|
{
|
|
521
560
|
token: "chart-2",
|
|
522
561
|
kind: "dashed",
|
|
523
|
-
use: "The comparison line: the previous period."
|
|
562
|
+
use: "The comparison line: the previous period. \"Other\" in a breakdown."
|
|
524
563
|
},
|
|
525
564
|
{
|
|
526
565
|
token: "chart-grid",
|
|
527
566
|
kind: "grid",
|
|
528
567
|
use: "Gridlines."
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
token: "chart-3",
|
|
571
|
+
kind: "fill",
|
|
572
|
+
use: "Categorical, in order after chart-1: rose."
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
token: "chart-4",
|
|
576
|
+
kind: "fill",
|
|
577
|
+
use: "Categorical: amber."
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
token: "chart-5",
|
|
581
|
+
kind: "fill",
|
|
582
|
+
use: "Categorical: blue."
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
token: "chart-6",
|
|
586
|
+
kind: "fill",
|
|
587
|
+
use: "Categorical: green."
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
token: "chart-7",
|
|
591
|
+
kind: "fill",
|
|
592
|
+
use: "Categorical: violet."
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
token: "chart-8",
|
|
596
|
+
kind: "fill",
|
|
597
|
+
use: "Categorical: coral, the last. A ninth series folds into Other."
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
token: "chart-seq-1",
|
|
601
|
+
kind: "fill",
|
|
602
|
+
use: "Sequential, the least: a quiet hour, a one-star rating."
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
token: "chart-seq-2",
|
|
606
|
+
kind: "fill",
|
|
607
|
+
use: "Sequential, step 2."
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
token: "chart-seq-3",
|
|
611
|
+
kind: "fill",
|
|
612
|
+
use: "Sequential, step 3."
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
token: "chart-seq-4",
|
|
616
|
+
kind: "fill",
|
|
617
|
+
use: "Sequential, step 4."
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
token: "chart-seq-5",
|
|
621
|
+
kind: "fill",
|
|
622
|
+
use: "Sequential, the most. In dark the ramp flips, so this is the brightest."
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
token: "chart-positive",
|
|
626
|
+
kind: "fill",
|
|
627
|
+
use: "Diverging, the good side: positive sentiment, above target."
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
token: "chart-neutral",
|
|
631
|
+
kind: "fill",
|
|
632
|
+
use: "Diverging, the midpoint: neutral, on target. A grey that reads as nothing."
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
token: "chart-negative",
|
|
636
|
+
kind: "fill",
|
|
637
|
+
use: "Diverging, the other side: negative sentiment, below target."
|
|
529
638
|
}
|
|
530
639
|
]
|
|
531
640
|
}
|
|
@@ -551,7 +660,11 @@ function readScope(scope) {
|
|
|
551
660
|
const probe = document.createElement("span");
|
|
552
661
|
scope.appendChild(probe);
|
|
553
662
|
const out = {};
|
|
554
|
-
for (const token of [
|
|
663
|
+
for (const token of [
|
|
664
|
+
...PRIMITIVES,
|
|
665
|
+
...SEMANTIC_TOKENS,
|
|
666
|
+
...MEASURES
|
|
667
|
+
]) {
|
|
555
668
|
const value = style.getPropertyValue(`--o-${token}`).trim();
|
|
556
669
|
probe.style.backgroundColor = `var(--o-${token})`;
|
|
557
670
|
const alias = aliasOf(value, primitives);
|
|
@@ -743,7 +856,7 @@ function HeroTile({ theme }) {
|
|
|
743
856
|
]
|
|
744
857
|
});
|
|
745
858
|
}
|
|
746
|
-
function Chip({ token, copied, onCopy }) {
|
|
859
|
+
function Chip$1({ token, copied, onCopy }) {
|
|
747
860
|
const r = useReadout("light", token);
|
|
748
861
|
const ink = useReadout("light", "ink")?.color;
|
|
749
862
|
const white = useReadout("light", "grey-0")?.color;
|
|
@@ -791,7 +904,7 @@ function Ramp({ title, tokens, copied, onCopy }) {
|
|
|
791
904
|
children: title
|
|
792
905
|
}), /* @__PURE__ */ jsx("div", {
|
|
793
906
|
className: "colour-ramp__chips",
|
|
794
|
-
children: tokens.map((t) => /* @__PURE__ */ jsx(Chip, {
|
|
907
|
+
children: tokens.map((t) => /* @__PURE__ */ jsx(Chip$1, {
|
|
795
908
|
token: t,
|
|
796
909
|
copied: copied === `var(--o-${t})`,
|
|
797
910
|
onCopy
|
|
@@ -837,6 +950,42 @@ function Ramps() {
|
|
|
837
950
|
})]
|
|
838
951
|
}), /* @__PURE__ */ jsx(LiveStatus, { message: copied ? `Copied ${copied}` : null })] });
|
|
839
952
|
}
|
|
953
|
+
function IdentityStrength({ theme }) {
|
|
954
|
+
return /* @__PURE__ */ jsx("code", { children: useReadout(theme, "identity-strength")?.value });
|
|
955
|
+
}
|
|
956
|
+
function Identities() {
|
|
957
|
+
const { copied, copy } = useCopied();
|
|
958
|
+
const onCopy = (token) => copy(`var(--o-${token})`);
|
|
959
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
960
|
+
/* @__PURE__ */ jsx("div", {
|
|
961
|
+
className: "colour-ramps",
|
|
962
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
963
|
+
className: "colour-ramps__col",
|
|
964
|
+
children: /* @__PURE__ */ jsx(Ramp, {
|
|
965
|
+
title: "By dashboard",
|
|
966
|
+
tokens: IDENTITY,
|
|
967
|
+
copied,
|
|
968
|
+
onCopy
|
|
969
|
+
})
|
|
970
|
+
})
|
|
971
|
+
}),
|
|
972
|
+
/* @__PURE__ */ jsx(LiveStatus, { message: copied ? `Copied ${copied}` : null }),
|
|
973
|
+
/* @__PURE__ */ jsx(DocTable, {
|
|
974
|
+
columns: [
|
|
975
|
+
"Token",
|
|
976
|
+
"Light",
|
|
977
|
+
"Dark",
|
|
978
|
+
"What it does"
|
|
979
|
+
],
|
|
980
|
+
rows: [[
|
|
981
|
+
/* @__PURE__ */ jsx("code", { children: "--o-identity-strength" }, "token"),
|
|
982
|
+
/* @__PURE__ */ jsx(IdentityStrength, { theme: "light" }, "light"),
|
|
983
|
+
/* @__PURE__ */ jsx(IdentityStrength, { theme: "dark" }, "dark"),
|
|
984
|
+
"How much of the app's colour a solid frame's ground is: all of it in light, the rest the night ground in dark. It is set on each theme scope, so a light or dark island takes its own."
|
|
985
|
+
]]
|
|
986
|
+
})
|
|
987
|
+
] });
|
|
988
|
+
}
|
|
840
989
|
function Specimen({ spec }) {
|
|
841
990
|
const style = {
|
|
842
991
|
"--colour-spec": `var(--o-${spec.token})`,
|
|
@@ -1220,24 +1369,333 @@ function TealUse({ label, children }) {
|
|
|
1220
1369
|
}), /* @__PURE__ */ jsx("figcaption", { children: label })]
|
|
1221
1370
|
});
|
|
1222
1371
|
}
|
|
1372
|
+
var SEQ = [
|
|
1373
|
+
1,
|
|
1374
|
+
2,
|
|
1375
|
+
3,
|
|
1376
|
+
4,
|
|
1377
|
+
5
|
|
1378
|
+
].map((step) => `var(--o-chart-seq-${step})`);
|
|
1379
|
+
var HOURS = [
|
|
1380
|
+
"8",
|
|
1381
|
+
"9",
|
|
1382
|
+
"10",
|
|
1383
|
+
"11",
|
|
1384
|
+
"12",
|
|
1385
|
+
"1",
|
|
1386
|
+
"2",
|
|
1387
|
+
"3",
|
|
1388
|
+
"4",
|
|
1389
|
+
"5",
|
|
1390
|
+
"6",
|
|
1391
|
+
"7"
|
|
1392
|
+
];
|
|
1393
|
+
var DAYS = [
|
|
1394
|
+
"Mon",
|
|
1395
|
+
"Tue",
|
|
1396
|
+
"Wed",
|
|
1397
|
+
"Thu",
|
|
1398
|
+
"Fri",
|
|
1399
|
+
"Sat",
|
|
1400
|
+
"Sun"
|
|
1401
|
+
];
|
|
1402
|
+
var CHATS = [
|
|
1403
|
+
[
|
|
1404
|
+
1,
|
|
1405
|
+
3,
|
|
1406
|
+
6,
|
|
1407
|
+
8,
|
|
1408
|
+
9,
|
|
1409
|
+
7,
|
|
1410
|
+
8,
|
|
1411
|
+
9,
|
|
1412
|
+
7,
|
|
1413
|
+
5,
|
|
1414
|
+
3,
|
|
1415
|
+
1
|
|
1416
|
+
],
|
|
1417
|
+
[
|
|
1418
|
+
2,
|
|
1419
|
+
4,
|
|
1420
|
+
7,
|
|
1421
|
+
9,
|
|
1422
|
+
10,
|
|
1423
|
+
8,
|
|
1424
|
+
9,
|
|
1425
|
+
8,
|
|
1426
|
+
6,
|
|
1427
|
+
5,
|
|
1428
|
+
2,
|
|
1429
|
+
1
|
|
1430
|
+
],
|
|
1431
|
+
[
|
|
1432
|
+
1,
|
|
1433
|
+
4,
|
|
1434
|
+
6,
|
|
1435
|
+
8,
|
|
1436
|
+
9,
|
|
1437
|
+
9,
|
|
1438
|
+
10,
|
|
1439
|
+
9,
|
|
1440
|
+
7,
|
|
1441
|
+
4,
|
|
1442
|
+
3,
|
|
1443
|
+
1
|
|
1444
|
+
],
|
|
1445
|
+
[
|
|
1446
|
+
2,
|
|
1447
|
+
3,
|
|
1448
|
+
7,
|
|
1449
|
+
9,
|
|
1450
|
+
11,
|
|
1451
|
+
8,
|
|
1452
|
+
9,
|
|
1453
|
+
10,
|
|
1454
|
+
8,
|
|
1455
|
+
6,
|
|
1456
|
+
3,
|
|
1457
|
+
2
|
|
1458
|
+
],
|
|
1459
|
+
[
|
|
1460
|
+
2,
|
|
1461
|
+
5,
|
|
1462
|
+
8,
|
|
1463
|
+
10,
|
|
1464
|
+
12,
|
|
1465
|
+
11,
|
|
1466
|
+
10,
|
|
1467
|
+
9,
|
|
1468
|
+
8,
|
|
1469
|
+
7,
|
|
1470
|
+
5,
|
|
1471
|
+
3
|
|
1472
|
+
],
|
|
1473
|
+
[
|
|
1474
|
+
0,
|
|
1475
|
+
2,
|
|
1476
|
+
4,
|
|
1477
|
+
6,
|
|
1478
|
+
8,
|
|
1479
|
+
9,
|
|
1480
|
+
9,
|
|
1481
|
+
8,
|
|
1482
|
+
7,
|
|
1483
|
+
5,
|
|
1484
|
+
4,
|
|
1485
|
+
2
|
|
1486
|
+
],
|
|
1487
|
+
[
|
|
1488
|
+
0,
|
|
1489
|
+
0,
|
|
1490
|
+
2,
|
|
1491
|
+
3,
|
|
1492
|
+
5,
|
|
1493
|
+
6,
|
|
1494
|
+
6,
|
|
1495
|
+
5,
|
|
1496
|
+
4,
|
|
1497
|
+
2,
|
|
1498
|
+
1,
|
|
1499
|
+
0
|
|
1500
|
+
]
|
|
1501
|
+
];
|
|
1502
|
+
/** A count's step on the ramp: 0 is no step at all (the muted well), then five even bands up to the busiest hour. */
|
|
1503
|
+
function stepOf(count, most) {
|
|
1504
|
+
if (count === 0) return 0;
|
|
1505
|
+
return Math.min(5, Math.ceil(count / most * 5));
|
|
1506
|
+
}
|
|
1507
|
+
function Heatmap$1() {
|
|
1508
|
+
const most = Math.max(...CHATS.flat());
|
|
1509
|
+
return /* @__PURE__ */ jsxs("figure", {
|
|
1510
|
+
className: "colour-job",
|
|
1511
|
+
children: [
|
|
1512
|
+
/* @__PURE__ */ jsx("figcaption", {
|
|
1513
|
+
className: "colour-job__title",
|
|
1514
|
+
children: "How much: chats by hour"
|
|
1515
|
+
}),
|
|
1516
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1517
|
+
className: "colour-heat",
|
|
1518
|
+
role: "img",
|
|
1519
|
+
"aria-label": "Chats started by hour across the week, busiest at midday on Friday",
|
|
1520
|
+
children: [
|
|
1521
|
+
/* @__PURE__ */ jsx("span", {}),
|
|
1522
|
+
HOURS.map((hour) => /* @__PURE__ */ jsx("span", {
|
|
1523
|
+
className: "colour-heat__hour",
|
|
1524
|
+
"aria-hidden": "true",
|
|
1525
|
+
children: hour
|
|
1526
|
+
}, hour)),
|
|
1527
|
+
DAYS.map((day, row) => /* @__PURE__ */ jsxs("span", {
|
|
1528
|
+
className: "colour-heat__row",
|
|
1529
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
1530
|
+
className: "colour-heat__day",
|
|
1531
|
+
"aria-hidden": "true",
|
|
1532
|
+
children: day
|
|
1533
|
+
}), CHATS[row].map((count, column) => {
|
|
1534
|
+
const step = stepOf(count, most);
|
|
1535
|
+
return /* @__PURE__ */ jsx("span", {
|
|
1536
|
+
className: "colour-heat__cell",
|
|
1537
|
+
"data-empty": step === 0 ? "" : void 0,
|
|
1538
|
+
style: step ? { background: SEQ[step - 1] } : void 0
|
|
1539
|
+
}, column);
|
|
1540
|
+
})]
|
|
1541
|
+
}, day))
|
|
1542
|
+
]
|
|
1543
|
+
}),
|
|
1544
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1545
|
+
className: "colour-job__key",
|
|
1546
|
+
"aria-hidden": "true",
|
|
1547
|
+
children: [
|
|
1548
|
+
/* @__PURE__ */ jsx("span", { children: "Fewer" }),
|
|
1549
|
+
SEQ.map((colour) => /* @__PURE__ */ jsx("span", {
|
|
1550
|
+
className: "colour-job__swatch",
|
|
1551
|
+
style: { background: colour }
|
|
1552
|
+
}, colour)),
|
|
1553
|
+
/* @__PURE__ */ jsx("span", { children: "More" })
|
|
1554
|
+
]
|
|
1555
|
+
})
|
|
1556
|
+
]
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
var RATINGS = [
|
|
1560
|
+
{
|
|
1561
|
+
stars: 1,
|
|
1562
|
+
count: 4
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
stars: 2,
|
|
1566
|
+
count: 7
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
stars: 3,
|
|
1570
|
+
count: 18
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
stars: 4,
|
|
1574
|
+
count: 46
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
stars: 5,
|
|
1578
|
+
count: 71
|
|
1579
|
+
}
|
|
1580
|
+
];
|
|
1581
|
+
function Ratings() {
|
|
1582
|
+
const most = Math.max(...RATINGS.map((r) => r.count));
|
|
1583
|
+
return /* @__PURE__ */ jsxs("figure", {
|
|
1584
|
+
className: "colour-job",
|
|
1585
|
+
children: [/* @__PURE__ */ jsx("figcaption", {
|
|
1586
|
+
className: "colour-job__title",
|
|
1587
|
+
children: "In order: chat ratings"
|
|
1588
|
+
}), /* @__PURE__ */ jsx("ul", {
|
|
1589
|
+
className: "colour-ratings",
|
|
1590
|
+
children: RATINGS.map(({ stars, count }) => /* @__PURE__ */ jsxs("li", {
|
|
1591
|
+
className: "colour-ratings__row",
|
|
1592
|
+
children: [
|
|
1593
|
+
/* @__PURE__ */ jsx("span", {
|
|
1594
|
+
className: "colour-ratings__label",
|
|
1595
|
+
children: stars === 1 ? "1 star" : `${stars} stars`
|
|
1596
|
+
}),
|
|
1597
|
+
/* @__PURE__ */ jsx("span", {
|
|
1598
|
+
className: "colour-ratings__track",
|
|
1599
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
1600
|
+
className: "colour-ratings__bar",
|
|
1601
|
+
style: {
|
|
1602
|
+
width: `${count / most * 100}%`,
|
|
1603
|
+
background: SEQ[stars - 1]
|
|
1604
|
+
}
|
|
1605
|
+
})
|
|
1606
|
+
}),
|
|
1607
|
+
/* @__PURE__ */ jsx("span", {
|
|
1608
|
+
className: "colour-ratings__count o-num",
|
|
1609
|
+
children: count
|
|
1610
|
+
})
|
|
1611
|
+
]
|
|
1612
|
+
}, stars))
|
|
1613
|
+
})]
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
var SENTIMENT = [
|
|
1617
|
+
{
|
|
1618
|
+
key: "positive",
|
|
1619
|
+
label: "Positive",
|
|
1620
|
+
share: 62
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
key: "neutral",
|
|
1624
|
+
label: "Neutral",
|
|
1625
|
+
share: 27
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
key: "negative",
|
|
1629
|
+
label: "Negative",
|
|
1630
|
+
share: 11
|
|
1631
|
+
}
|
|
1632
|
+
];
|
|
1633
|
+
function Sentiment() {
|
|
1634
|
+
return /* @__PURE__ */ jsxs("figure", {
|
|
1635
|
+
className: "colour-job",
|
|
1636
|
+
children: [
|
|
1637
|
+
/* @__PURE__ */ jsx("figcaption", {
|
|
1638
|
+
className: "colour-job__title",
|
|
1639
|
+
children: "Which side: sentiment"
|
|
1640
|
+
}),
|
|
1641
|
+
/* @__PURE__ */ jsx("div", {
|
|
1642
|
+
className: "colour-sentiment",
|
|
1643
|
+
"aria-hidden": "true",
|
|
1644
|
+
children: SENTIMENT.map(({ key, share }) => /* @__PURE__ */ jsx("span", {
|
|
1645
|
+
className: "colour-sentiment__part",
|
|
1646
|
+
style: {
|
|
1647
|
+
flexGrow: share,
|
|
1648
|
+
background: `var(--o-chart-${key})`
|
|
1649
|
+
}
|
|
1650
|
+
}, key))
|
|
1651
|
+
}),
|
|
1652
|
+
/* @__PURE__ */ jsx("ul", {
|
|
1653
|
+
className: "colour-sentiment__key",
|
|
1654
|
+
children: SENTIMENT.map(({ key, label, share }) => /* @__PURE__ */ jsxs("li", { children: [
|
|
1655
|
+
/* @__PURE__ */ jsx("span", {
|
|
1656
|
+
className: "colour-job__swatch",
|
|
1657
|
+
style: { background: `var(--o-chart-${key})` },
|
|
1658
|
+
"aria-hidden": "true"
|
|
1659
|
+
}),
|
|
1660
|
+
label,
|
|
1661
|
+
" ",
|
|
1662
|
+
/* @__PURE__ */ jsxs("span", {
|
|
1663
|
+
className: "o-num",
|
|
1664
|
+
children: [share, "%"]
|
|
1665
|
+
})
|
|
1666
|
+
] }, key))
|
|
1667
|
+
})
|
|
1668
|
+
]
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1223
1671
|
function Page() {
|
|
1224
1672
|
return /* @__PURE__ */ jsx(DocPage, {
|
|
1225
1673
|
title: "Colour",
|
|
1226
1674
|
lead: "A faintly teal-tinted neutral world with warm ink for words. Orbit teal is a line of light: it draws rings, focus, live marks, selection and the one primary pill, and never fills a panel.",
|
|
1227
1675
|
children: /* @__PURE__ */ jsxs(Readings, { children: [
|
|
1228
|
-
/* @__PURE__ */ jsx(Section, {
|
|
1676
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
1229
1677
|
id: "orbit-teal",
|
|
1230
1678
|
title: "Orbit teal",
|
|
1231
1679
|
description: /* @__PURE__ */ jsx("p", { children: "The logo colour, #336A65, is the accent in light. In dark it becomes Orbit Mint: the same teal, lit. Each theme uses it three ways: as a fill for small marks, as a line for rings and arcs, and as light for the comet." }),
|
|
1232
1680
|
children: /* @__PURE__ */ jsx(TealHero, {})
|
|
1233
1681
|
}),
|
|
1234
|
-
/* @__PURE__ */ jsx(Section, {
|
|
1682
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
1235
1683
|
id: "primitives",
|
|
1236
1684
|
title: "Primitive ramps",
|
|
1237
1685
|
description: /* @__PURE__ */ jsx("p", { children: "The raw ramps. Components never read these directly; they read the semantic tokens below, which the themes remap. Every grey carries a trace of the teal. Select a colour to copy its variable." }),
|
|
1238
1686
|
children: /* @__PURE__ */ jsx(Ramps, {})
|
|
1239
1687
|
}),
|
|
1240
|
-
/* @__PURE__ */ jsx(Section, {
|
|
1688
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
1689
|
+
id: "identities",
|
|
1690
|
+
title: "App identities",
|
|
1691
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
1692
|
+
"The colour each Orbit dashboard wears in its frame, so you always know which one you are in: the shell reads it from its ",
|
|
1693
|
+
/* @__PURE__ */ jsx("code", { children: "data-o-app" }),
|
|
1694
|
+
". Every one is dark and muted, and none is warm, since the page's actions stay Orbit teal in every app. The store's own dashboard wears Orbit teal."
|
|
1695
|
+
] }),
|
|
1696
|
+
children: /* @__PURE__ */ jsx(Identities, {})
|
|
1697
|
+
}),
|
|
1698
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
1241
1699
|
id: "semantic",
|
|
1242
1700
|
title: "Semantic tokens",
|
|
1243
1701
|
description: /* @__PURE__ */ jsx("p", { children: "What components read. Light and dark remap every one of them, so a component never asks which theme it is in. Values below are read from the live stylesheet." }),
|
|
@@ -1250,7 +1708,25 @@ function Page() {
|
|
|
1250
1708
|
})
|
|
1251
1709
|
}, group.id))
|
|
1252
1710
|
}),
|
|
1253
|
-
/* @__PURE__ */ jsxs(Section, {
|
|
1711
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
1712
|
+
id: "chart-jobs",
|
|
1713
|
+
title: "Chart colour by job",
|
|
1714
|
+
description: /* @__PURE__ */ jsx("p", { children: "A chart's colour does one job. Which series a mark belongs to takes the categorical run, in order and never cycled. How much takes one teal ramp, the least in the palest step and the most in the strongest, five even steps that hold 2:1 on the canvas even at the pale end, so the same ramp serves a heatmap and a rating from one star to five. In dark the ramp flips: strong means furthest from the surface, so its most is its brightest. Which side of a line takes two poles round a grey: teal for the good side, coral for the other, apart for colour-blind readers too. Every part keeps its name in words beside it." }),
|
|
1715
|
+
children: [/* @__PURE__ */ jsx(ThemePair, { children: /* @__PURE__ */ jsxs("div", {
|
|
1716
|
+
className: "colour-jobs",
|
|
1717
|
+
children: [
|
|
1718
|
+
/* @__PURE__ */ jsx(Heatmap$1, {}),
|
|
1719
|
+
/* @__PURE__ */ jsx(Ratings, {}),
|
|
1720
|
+
/* @__PURE__ */ jsx(Sentiment, {})
|
|
1721
|
+
]
|
|
1722
|
+
}) }), /* @__PURE__ */ jsx(Guidelines, { items: [
|
|
1723
|
+
"Sequential and ordered marks read --o-chart-seq-1 to --o-chart-seq-5, never the categorical hues: a rating or an hour has an order, and the colour should show it.",
|
|
1724
|
+
"A zero, or no data, is no step at all: draw it in the muted well (--o-bg-muted), not the palest step.",
|
|
1725
|
+
"Diverging marks read --o-chart-positive, --o-chart-neutral and --o-chart-negative. The midpoint is a grey on purpose: a hue there would read as a side.",
|
|
1726
|
+
"Colour is never the only sign. Label the segments, or give the chart a legend with the figures, as the sentiment bar does."
|
|
1727
|
+
] })]
|
|
1728
|
+
}),
|
|
1729
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
1254
1730
|
id: "contrast",
|
|
1255
1731
|
title: "Contrast",
|
|
1256
1732
|
description: /* @__PURE__ */ jsx("p", { children: "Measured live from the tokens on this page, against WCAG 2.2: 4.5:1 for text, 3:1 for large text. Every text token clears 4.5:1 on the canvas and on the ground, in both themes. Mist is only for marks that are not text, such as ticks and separators, so it is never used for words." }),
|
|
@@ -1267,7 +1743,7 @@ function Page() {
|
|
|
1267
1743
|
})
|
|
1268
1744
|
]
|
|
1269
1745
|
}),
|
|
1270
|
-
/* @__PURE__ */ jsxs(Section, {
|
|
1746
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
1271
1747
|
id: "where-teal-goes",
|
|
1272
1748
|
title: "Where teal may appear",
|
|
1273
1749
|
description: /* @__PURE__ */ jsx("p", { children: "The Line-of-Light Rule: Orbit teal is drawn, never poured. Anything it fills is small: a dot, a count, a switch track, a pale wash under a badge. These are all the places it goes." }),
|
|
@@ -1369,7 +1845,7 @@ function Page() {
|
|
|
1369
1845
|
children: "£1,284.50"
|
|
1370
1846
|
})]
|
|
1371
1847
|
}),
|
|
1372
|
-
caption: "A teal panel. Teal is never a surface, a heading or running text."
|
|
1848
|
+
caption: "A teal panel. Teal is never a surface, a heading or running text (the accent link, for marketing pages, is the one exception)."
|
|
1373
1849
|
}
|
|
1374
1850
|
}),
|
|
1375
1851
|
/* @__PURE__ */ jsx(DoDont, {
|
|
@@ -1397,7 +1873,7 @@ function Page() {
|
|
|
1397
1873
|
] })
|
|
1398
1874
|
]
|
|
1399
1875
|
}),
|
|
1400
|
-
/* @__PURE__ */ jsxs(Section, {
|
|
1876
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
1401
1877
|
id: "dark",
|
|
1402
1878
|
title: "Dark theme",
|
|
1403
1879
|
description: /* @__PURE__ */ jsx("p", { children: "Night is its own palette, not an inversion. The same components on both, with nothing branching on the theme." }),
|
|
@@ -1414,7 +1890,7 @@ function Page() {
|
|
|
1414
1890
|
/* @__PURE__ */ jsx(Badge, {
|
|
1415
1891
|
tone: "warning",
|
|
1416
1892
|
dot: true,
|
|
1417
|
-
children: "
|
|
1893
|
+
children: "Awaiting payment"
|
|
1418
1894
|
}),
|
|
1419
1895
|
/* @__PURE__ */ jsx(Delta, { value: 12.4 }),
|
|
1420
1896
|
/* @__PURE__ */ jsx(Switch, {
|
|
@@ -1466,11 +1942,11 @@ function Page() {
|
|
|
1466
1942
|
]
|
|
1467
1943
|
})]
|
|
1468
1944
|
}),
|
|
1469
|
-
/* @__PURE__ */ jsx(Section, {
|
|
1945
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
1470
1946
|
id: "in-code",
|
|
1471
1947
|
title: "In code",
|
|
1472
1948
|
description: /* @__PURE__ */ jsx("p", { children: "Read the semantic tokens, and make tints with color-mix so they follow the theme." }),
|
|
1473
|
-
children: /* @__PURE__ */ jsx(CodeBlock, {
|
|
1949
|
+
children: /* @__PURE__ */ jsx(CodeBlock$1, {
|
|
1474
1950
|
lang: "css",
|
|
1475
1951
|
code: `
|
|
1476
1952
|
.order-note {
|