@orbitcommerce/constellation-docs 0.0.0-stage → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +6 -0
- package/README.md +6 -2
- package/dist/docs.css +20787 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +308 -0
- package/dist/pages/Playground-Mk1yIWXb.js +129 -0
- 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-DaDvB7Nm.js +606 -0
- package/dist/pages/_foundations-blXWyYh8.js +30 -0
- package/dist/pages/_kpi-examples-DeGCBB9T.js +208 -0
- package/dist/pages/_overlays-specimens-bawR331Z.js +320 -0
- 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-BZOOOPA9.js +368 -0
- package/dist/pages/address-fields-CwSqro3W.js +277 -0
- package/dist/pages/ai-highlight-D3x2vD83.js +642 -0
- package/dist/pages/alert-D3i7xZTU.js +914 -0
- package/dist/pages/anchored-overlay-BV0OCu2Q.js +788 -0
- package/dist/pages/app-shell-D4hdlHps.js +1558 -0
- package/dist/pages/area-chart-BEWFwiB2.js +718 -0
- package/dist/pages/avatar-BFEqQViw.js +895 -0
- package/dist/pages/avatar-upload-BDCzJfyN.js +484 -0
- package/dist/pages/badge-0-PyMrih.js +1035 -0
- 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-DAyfssDY.js +715 -0
- package/dist/pages/calendar-Ds7KsgSI.js +682 -0
- package/dist/pages/canvas-stage-1KiPspkX.js +472 -0
- package/dist/pages/card-CQEM1_wc.js +1567 -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-q2ntvI0w.js +1974 -0
- package/dist/pages/column-mapper-TsTG39cl.js +502 -0
- package/dist/pages/combobox-DvK2j5tI.js +1334 -0
- package/dist/pages/command-palette-CJ7uBA04.js +1386 -0
- 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-GdBciR99.js +1569 -0
- package/dist/pages/date-time-BLKCXtVZ.js +678 -0
- package/dist/pages/delta-CNAGv8JY.js +779 -0
- 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-lM2UBSir.js +520 -0
- 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-BB3mNl7D.js +1364 -0
- package/dist/pages/figure-tabs-QOeQMY6N.js +578 -0
- 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-CxPmvduE.js +962 -0
- package/dist/pages/host-B6znjEgQ.js +109 -0
- 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-Bu4Gj5sy.js +1200 -0
- package/dist/pages/icon-picker-DEyoMUTh.js +291 -0
- package/dist/pages/icon-tile-DcgxyXPF.js +592 -0
- package/dist/pages/icons-CJ9Aar3d.js +736 -0
- 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-C3UcpQJT.js +528 -0
- package/dist/pages/job-indicator-DOXWbFdl.js +755 -0
- package/dist/pages/kanban-Dy9sPAI0.js +740 -0
- package/dist/pages/kbd-UNj4zqxn.js +545 -0
- 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-95ROMhGQ.js +715 -0
- 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-B38rnzoq.js +571 -0
- 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-NrLYKqKp.js +2132 -0
- 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-CrXtiBvA.js +865 -0
- package/dist/pages/number-input-CuyMZg18.js +968 -0
- package/dist/pages/orbit-loader-DeVBtkFE.js +219 -0
- package/dist/pages/orbit-spinner-Dxv5qAhr.js +348 -0
- package/dist/pages/otp-input-CVRoX1mw.js +591 -0
- package/dist/pages/overview-LA9XRhZc.js +130 -0
- package/dist/pages/package-dimensions-DFCyZj_T.js +192 -0
- package/dist/pages/pagination-C1EgVtW4.js +294 -0
- 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-cfPVTB5V.js +251 -0
- package/dist/pages/point-list-BbPmZjsm.js +222 -0
- package/dist/pages/popover-C3Oar9D5.js +1198 -0
- 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-pnDyfHpK.js +483 -0
- 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-C-4tg6FS.js +1639 -0
- 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-BZg-xAbi.js +594 -0
- package/dist/pages/release-Cs6tl16C.js +16 -0
- 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-GR3Cyfpz.js +529 -0
- 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-D1uG7R6A.js +693 -0
- 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-D-FB1K1T.js +1190 -0
- package/dist/pages/select-DZ43NpOm.js +1434 -0
- package/dist/pages/selection-chrome-Czcs6RN6.js +437 -0
- package/dist/pages/separator-CFwqRvfO.js +428 -0
- package/dist/pages/serp-preview-BGwORjmo.js +346 -0
- package/dist/pages/setting-row-Bt-dZV8H.js +913 -0
- package/dist/pages/shape-DzniHAVT.js +627 -0
- 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-D3aavCly.js +947 -0
- 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-C93K6j9h.js +617 -0
- package/dist/pages/table-CL0vomno.js +3225 -0
- package/dist/pages/tabs-Dh0mUsLw.js +1690 -0
- package/dist/pages/tag-input-BjZWKKRJ.js +1307 -0
- package/dist/pages/task-card-Dv0sR1-w.js +295 -0
- package/dist/pages/textarea-CCM-SnGN.js +949 -0
- 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-zXLRiMRT.js +1391 -0
- package/dist/pages/tool-rail-B1AbTMCP.js +355 -0
- package/dist/pages/toolbar-B9l_fHKy.js +754 -0
- package/dist/pages/tooltip-LHtCUkF-.js +826 -0
- 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-BSijtiRl.js +876 -0
- 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 +13001 -0
- package/package.json +35 -4
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { a as DocTable, d as Section$1, i as DocPage, m as ThemePair, n as CodeBlock$1, o as Example, p as SubSection, s as Guidelines, u as PropsTable } from "./docs-lM2UBSir.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { BRAND_MARKS, BrandMark, BrandMarkProvider, Button, Card, Switch } from "@orbitcommerce/constellation";
|
|
5
|
+
//#region src/pages/components/brand-mark.tsx
|
|
6
|
+
var svgUrl = (markup) => `data:image/svg+xml,${encodeURIComponent(markup)}`;
|
|
7
|
+
var ARTWORK = {
|
|
8
|
+
"linnet.svg": svgUrl("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 120 48\"><circle cx=\"20\" cy=\"24\" r=\"12\" fill=\"#1f7a6d\"/><circle cx=\"34\" cy=\"24\" r=\"12\" fill=\"#e0a43a\" fill-opacity=\"0.9\"/><text x=\"52\" y=\"31\" font-family=\"Georgia, serif\" font-size=\"20\" fill=\"#1c2b29\">linnet</text></svg>"),
|
|
9
|
+
"harbour-pay.svg": svgUrl("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 96 60\"><rect x=\"1\" y=\"1\" width=\"94\" height=\"58\" rx=\"9\" fill=\"#ffffff\" stroke=\"#1c2b29\" stroke-width=\"2\"/><path d=\"M18 40 L30 20 L42 40 Z\" fill=\"#1c2b29\"/><text x=\"48\" y=\"37\" font-family=\"Helvetica, Arial, sans-serif\" font-weight=\"700\" font-size=\"15\" fill=\"#1c2b29\">Pay</text></svg>"),
|
|
10
|
+
"fernhill-later.svg": svgUrl("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 150 30\"><rect width=\"150\" height=\"30\" rx=\"15\" fill=\"#c9e8d6\"/><text x=\"16\" y=\"20\" font-family=\"Helvetica, Arial, sans-serif\" font-weight=\"700\" font-size=\"14\" fill=\"#14382a\">fernhill later</text></svg>")
|
|
11
|
+
};
|
|
12
|
+
var INVENTED = {
|
|
13
|
+
linnet: {
|
|
14
|
+
kind: "artwork",
|
|
15
|
+
file: "linnet.svg",
|
|
16
|
+
name: "Linnet",
|
|
17
|
+
aspect: 120 / 48,
|
|
18
|
+
chrome: "chip",
|
|
19
|
+
height: 20
|
|
20
|
+
},
|
|
21
|
+
harbour_pay: {
|
|
22
|
+
kind: "artwork",
|
|
23
|
+
file: "harbour-pay.svg",
|
|
24
|
+
name: "Harbour Pay",
|
|
25
|
+
aspect: 96 / 60,
|
|
26
|
+
chrome: "bare",
|
|
27
|
+
height: 24
|
|
28
|
+
},
|
|
29
|
+
fernhill_later: {
|
|
30
|
+
kind: "artwork",
|
|
31
|
+
file: "fernhill-later.svg",
|
|
32
|
+
name: "Fernhill Later",
|
|
33
|
+
aspect: 5,
|
|
34
|
+
chrome: "bare",
|
|
35
|
+
height: 24
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var docsSrc = (artwork) => ARTWORK[artwork.file];
|
|
39
|
+
/** A file that cannot be read, to show the fallback without a request that fails. */
|
|
40
|
+
var brokenFile = "data:image/png;base64,AAAA";
|
|
41
|
+
var METHODS = [
|
|
42
|
+
{
|
|
43
|
+
id: "linnet",
|
|
44
|
+
name: "Linnet cards",
|
|
45
|
+
detail: "Visa, Mastercard and Linnet debit",
|
|
46
|
+
category: "card"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "harbour_pay",
|
|
50
|
+
name: "Harbour Pay",
|
|
51
|
+
detail: "One tap on a phone or a watch",
|
|
52
|
+
category: "wallet"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "fernhill_later",
|
|
56
|
+
name: "Fernhill Later",
|
|
57
|
+
detail: "Three payments, no interest",
|
|
58
|
+
category: "bnpl"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "bank_transfer",
|
|
62
|
+
name: "Bank transfer",
|
|
63
|
+
detail: "Paid by the customer’s bank, 1 to 2 days",
|
|
64
|
+
category: "bank"
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
function MethodsList() {
|
|
68
|
+
return /* @__PURE__ */ jsx(BrandMarkProvider, {
|
|
69
|
+
src: docsSrc,
|
|
70
|
+
marks: INVENTED,
|
|
71
|
+
children: /* @__PURE__ */ jsx(Card, {
|
|
72
|
+
padding: "none",
|
|
73
|
+
className: "brand-mark-list",
|
|
74
|
+
children: /* @__PURE__ */ jsx("ul", {
|
|
75
|
+
className: "brand-mark-list__rows",
|
|
76
|
+
children: METHODS.map((method) => /* @__PURE__ */ jsxs("li", {
|
|
77
|
+
className: "brand-mark-list__row",
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ jsx("span", {
|
|
80
|
+
className: "brand-mark-list__slot",
|
|
81
|
+
children: /* @__PURE__ */ jsx(BrandMark, {
|
|
82
|
+
id: method.id,
|
|
83
|
+
category: method.category,
|
|
84
|
+
maxWidth: 96
|
|
85
|
+
})
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ jsxs("span", {
|
|
88
|
+
className: "brand-mark-list__text",
|
|
89
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
90
|
+
className: "brand-mark-list__name",
|
|
91
|
+
children: method.name
|
|
92
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
93
|
+
className: "brand-mark-list__detail",
|
|
94
|
+
children: method.detail
|
|
95
|
+
})]
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ jsx(Switch, {
|
|
98
|
+
"aria-label": method.name,
|
|
99
|
+
defaultChecked: method.id !== "bank_transfer"
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
}, method.id))
|
|
103
|
+
})
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function Preview() {
|
|
108
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
109
|
+
className: "brand-mark-preview",
|
|
110
|
+
children: [/* @__PURE__ */ jsx(BrandMarkProvider, {
|
|
111
|
+
src: docsSrc,
|
|
112
|
+
marks: INVENTED,
|
|
113
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
114
|
+
className: "brand-mark-preview__row",
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ jsx(BrandMark, { id: "linnet" }),
|
|
117
|
+
/* @__PURE__ */ jsx(BrandMark, { id: "harbour_pay" }),
|
|
118
|
+
/* @__PURE__ */ jsx(BrandMark, {
|
|
119
|
+
id: "bank_transfer",
|
|
120
|
+
category: "bank"
|
|
121
|
+
})
|
|
122
|
+
]
|
|
123
|
+
})
|
|
124
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
125
|
+
className: "brand-mark-preview__row",
|
|
126
|
+
children: [
|
|
127
|
+
/* @__PURE__ */ jsx(BrandMark, {
|
|
128
|
+
id: "google_analytics",
|
|
129
|
+
size: "sm"
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ jsx(BrandMark, {
|
|
132
|
+
id: "facebook",
|
|
133
|
+
size: "sm"
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ jsx(BrandMark, { id: "google" })
|
|
136
|
+
]
|
|
137
|
+
})]
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
var TRACKING = [
|
|
141
|
+
{
|
|
142
|
+
id: "google_analytics",
|
|
143
|
+
detail: "Measurement ID G-4F2K8Q1"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: "google_ads",
|
|
147
|
+
detail: "Not connected"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
id: "facebook",
|
|
151
|
+
detail: "Pixel 1234567890123456"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: "tiktok",
|
|
155
|
+
detail: "Not connected"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: "snapchat",
|
|
159
|
+
detail: "Not connected"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: "pinterest",
|
|
163
|
+
detail: "Tag 2612345678901"
|
|
164
|
+
}
|
|
165
|
+
];
|
|
166
|
+
var PAYMENT_IDS = Object.entries(BRAND_MARKS).filter((entry) => entry[1].kind === "artwork");
|
|
167
|
+
function Page() {
|
|
168
|
+
return /* @__PURE__ */ jsxs(DocPage, {
|
|
169
|
+
title: "Brand mark",
|
|
170
|
+
status: "new",
|
|
171
|
+
importNames: ["BrandMark", "BrandMarkProvider"],
|
|
172
|
+
lead: "A brand's own mark beside its name: a payment method in a settings list, a card network, a tracking service, the mark on a sign-in button. Each is drawn at its own height and proportions so a row of them lines up, decorative, with the name in words beside it.",
|
|
173
|
+
children: [
|
|
174
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
175
|
+
id: "basics",
|
|
176
|
+
title: "Basics",
|
|
177
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
178
|
+
"Give it the brand's ",
|
|
179
|
+
/* @__PURE__ */ jsx("code", { children: "id" }),
|
|
180
|
+
", as the payment provider names it (",
|
|
181
|
+
/* @__PURE__ */ jsx("code", { children: "visa" }),
|
|
182
|
+
", ",
|
|
183
|
+
/* @__PURE__ */ jsx("code", { children: "apple_pay" }),
|
|
184
|
+
",",
|
|
185
|
+
" ",
|
|
186
|
+
/* @__PURE__ */ jsx("code", { children: "american_express" }),
|
|
187
|
+
"). Payment artwork is the brand's own published file, which your app serves: tell",
|
|
188
|
+
" ",
|
|
189
|
+
/* @__PURE__ */ jsx("code", { children: "BrandMarkProvider" }),
|
|
190
|
+
" where, once, and every mark inside it loads from there. A method with no artwork gets a brand-free chip with its ",
|
|
191
|
+
/* @__PURE__ */ jsx("code", { children: "category" }),
|
|
192
|
+
" icon. The list below uses invented brands."
|
|
193
|
+
] }),
|
|
194
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
195
|
+
align: "fill",
|
|
196
|
+
code: `
|
|
197
|
+
<BrandMarkProvider src={(mark) => \`\${api}/assets/payment-marks/\${mark.file}\`}>
|
|
198
|
+
{methods.map((method) => (
|
|
199
|
+
<li key={method.id}>
|
|
200
|
+
<span className="mark-slot">
|
|
201
|
+
<BrandMark id={method.id} category={method.category} maxWidth={96} />
|
|
202
|
+
</span>
|
|
203
|
+
{method.name}
|
|
204
|
+
</li>
|
|
205
|
+
))}
|
|
206
|
+
</BrandMarkProvider>`,
|
|
207
|
+
children: /* @__PURE__ */ jsx(MethodsList, {})
|
|
208
|
+
})
|
|
209
|
+
}),
|
|
210
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
211
|
+
id: "artwork",
|
|
212
|
+
title: "Payment artwork",
|
|
213
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
214
|
+
"A plain logo is drawn in a white chip with a hairline, white in both themes because the artwork is drawn for light grounds. Artwork that ships its own container (Apple Pay's outlined mark, the Amex Blue Box, Klarna's badge) is drawn bare, so it never shares a border with another graphic. Each mark has its own height in the 24px row: a file that builds clear space into its box draws taller, so the visible mark matches its neighbours.",
|
|
215
|
+
/* @__PURE__ */ jsx("code", { children: "maxWidth" }),
|
|
216
|
+
" draws a wide mark smaller in its own proportions, so single marks share one slot width."
|
|
217
|
+
] }),
|
|
218
|
+
children: [/* @__PURE__ */ jsx(ThemePair, { children: /* @__PURE__ */ jsx(BrandMarkProvider, {
|
|
219
|
+
src: docsSrc,
|
|
220
|
+
marks: INVENTED,
|
|
221
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
222
|
+
className: "brand-mark-row",
|
|
223
|
+
children: [
|
|
224
|
+
/* @__PURE__ */ jsx(BrandMark, { id: "linnet" }),
|
|
225
|
+
/* @__PURE__ */ jsx(BrandMark, { id: "harbour_pay" }),
|
|
226
|
+
/* @__PURE__ */ jsx(BrandMark, { id: "fernhill_later" }),
|
|
227
|
+
/* @__PURE__ */ jsx(BrandMark, {
|
|
228
|
+
id: "fernhill_later",
|
|
229
|
+
maxWidth: 72
|
|
230
|
+
})
|
|
231
|
+
]
|
|
232
|
+
})
|
|
233
|
+
}) }), /* @__PURE__ */ jsx(SubSection, {
|
|
234
|
+
title: "The marks the kit knows",
|
|
235
|
+
description: /* @__PURE__ */ jsx("p", { children: "The kit holds what it needs to draw each of these in line; the files are the ones Orbit's checkout ships, with their sources and terms. Never recolour, crop, rotate or fade a mark." }),
|
|
236
|
+
children: /* @__PURE__ */ jsx(DocTable, {
|
|
237
|
+
columns: [
|
|
238
|
+
"id",
|
|
239
|
+
"Brand",
|
|
240
|
+
"Drawn",
|
|
241
|
+
"Height"
|
|
242
|
+
],
|
|
243
|
+
rows: PAYMENT_IDS.map(([id, mark]) => [
|
|
244
|
+
/* @__PURE__ */ jsx("code", { children: id }),
|
|
245
|
+
mark.name,
|
|
246
|
+
mark.chrome === "chip" ? "In a chip" : "Bare",
|
|
247
|
+
`${mark.height}px`
|
|
248
|
+
])
|
|
249
|
+
})
|
|
250
|
+
})]
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
253
|
+
id: "neutral",
|
|
254
|
+
title: "No artwork",
|
|
255
|
+
description: /* @__PURE__ */ jsx("p", { children: "Where the kit has no artwork for a method, where no file is served, or where a file fails to load, the mark is a brand-free chip with the category's icon: never a broken image, never a redrawn logo. The name beside it carries the meaning." }),
|
|
256
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
257
|
+
code: `
|
|
258
|
+
<BrandMark id="ideal" category="bank" />
|
|
259
|
+
<BrandMark id="visa" src={brokenFile} category="card" />`,
|
|
260
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
261
|
+
className: "brand-mark-neutral",
|
|
262
|
+
children: [[
|
|
263
|
+
"card",
|
|
264
|
+
"wallet",
|
|
265
|
+
"bnpl",
|
|
266
|
+
"bank",
|
|
267
|
+
"other"
|
|
268
|
+
].map((category) => /* @__PURE__ */ jsxs("figure", {
|
|
269
|
+
className: "brand-mark-neutral__item",
|
|
270
|
+
children: [/* @__PURE__ */ jsx(BrandMark, {
|
|
271
|
+
id: `unknown_${category}`,
|
|
272
|
+
category
|
|
273
|
+
}), /* @__PURE__ */ jsx("figcaption", { children: category })]
|
|
274
|
+
}, category)), /* @__PURE__ */ jsxs("figure", {
|
|
275
|
+
className: "brand-mark-neutral__item",
|
|
276
|
+
children: [/* @__PURE__ */ jsx(BrandMark, {
|
|
277
|
+
id: "visa",
|
|
278
|
+
src: brokenFile,
|
|
279
|
+
category: "card"
|
|
280
|
+
}), /* @__PURE__ */ jsx("figcaption", { children: "failed file" })]
|
|
281
|
+
})]
|
|
282
|
+
})
|
|
283
|
+
})
|
|
284
|
+
}),
|
|
285
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
286
|
+
id: "services",
|
|
287
|
+
title: "Service tiles",
|
|
288
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
289
|
+
"A tracking service is its logo on a tile of its own colour: ",
|
|
290
|
+
/* @__PURE__ */ jsx("code", { children: "google_analytics" }),
|
|
291
|
+
",",
|
|
292
|
+
" ",
|
|
293
|
+
/* @__PURE__ */ jsx("code", { children: "google_ads" }),
|
|
294
|
+
", ",
|
|
295
|
+
/* @__PURE__ */ jsx("code", { children: "facebook" }),
|
|
296
|
+
", ",
|
|
297
|
+
/* @__PURE__ */ jsx("code", { children: "tiktok" }),
|
|
298
|
+
", ",
|
|
299
|
+
/* @__PURE__ */ jsx("code", { children: "snapchat" }),
|
|
300
|
+
" and",
|
|
301
|
+
" ",
|
|
302
|
+
/* @__PURE__ */ jsx("code", { children: "pinterest" }),
|
|
303
|
+
" (the pixel ids work too). 36px beside a row's two lines, 28px with ",
|
|
304
|
+
/* @__PURE__ */ jsx("code", { children: "size=\"sm\"" }),
|
|
305
|
+
"."
|
|
306
|
+
] }),
|
|
307
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
308
|
+
align: "fill",
|
|
309
|
+
code: `<BrandMark id="google_analytics" />`,
|
|
310
|
+
children: /* @__PURE__ */ jsx(Card, {
|
|
311
|
+
padding: "none",
|
|
312
|
+
className: "brand-mark-list",
|
|
313
|
+
children: /* @__PURE__ */ jsx("ul", {
|
|
314
|
+
className: "brand-mark-list__rows",
|
|
315
|
+
children: TRACKING.map(({ id, detail }) => /* @__PURE__ */ jsxs("li", {
|
|
316
|
+
className: "brand-mark-list__row",
|
|
317
|
+
children: [/* @__PURE__ */ jsx(BrandMark, { id }), /* @__PURE__ */ jsxs("span", {
|
|
318
|
+
className: "brand-mark-list__text",
|
|
319
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
320
|
+
className: "brand-mark-list__name",
|
|
321
|
+
children: BRAND_MARKS[id].name
|
|
322
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
323
|
+
className: "brand-mark-list__detail",
|
|
324
|
+
children: detail
|
|
325
|
+
})]
|
|
326
|
+
})]
|
|
327
|
+
}, id))
|
|
328
|
+
})
|
|
329
|
+
})
|
|
330
|
+
})
|
|
331
|
+
}),
|
|
332
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
333
|
+
id: "sign-in",
|
|
334
|
+
title: "Sign-in marks",
|
|
335
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
336
|
+
"Google's and Microsoft's official multi-colour marks, at 18px, the smallest their branding rules allow (24px with",
|
|
337
|
+
" ",
|
|
338
|
+
/* @__PURE__ */ jsx("code", { children: "size=\"md\"" }),
|
|
339
|
+
"). They are never recoloured, in either theme."
|
|
340
|
+
] }),
|
|
341
|
+
children: /* @__PURE__ */ jsx(ThemePair, { children: /* @__PURE__ */ jsxs("div", {
|
|
342
|
+
className: "brand-mark-signin",
|
|
343
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
344
|
+
size: "lg",
|
|
345
|
+
fullWidth: true,
|
|
346
|
+
icon: /* @__PURE__ */ jsx(BrandMark, { id: "google" }),
|
|
347
|
+
children: "Continue with Google"
|
|
348
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
349
|
+
size: "lg",
|
|
350
|
+
fullWidth: true,
|
|
351
|
+
icon: /* @__PURE__ */ jsx(BrandMark, { id: "microsoft" }),
|
|
352
|
+
children: "Continue with Microsoft"
|
|
353
|
+
})]
|
|
354
|
+
}) })
|
|
355
|
+
}),
|
|
356
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
357
|
+
id: "accessibility",
|
|
358
|
+
title: "Accessibility and use",
|
|
359
|
+
children: [/* @__PURE__ */ jsx(Guidelines, { items: [
|
|
360
|
+
"Every mark is decorative: hidden from assistive technology, the brand’s name in its title. Write the name beside it, as every example here does.",
|
|
361
|
+
"Keep clear space round a mark: a gap of at least a quarter of its height (6px in a 24px row) between marks, the strictest rule of the set.",
|
|
362
|
+
"Under forced colours the tiles and the sign-in marks keep their own colours, and the chips gain an outline.",
|
|
363
|
+
"Serve the brands’ own files only, downloaded from each brand’s portal, never a logo collection."
|
|
364
|
+
] }), /* @__PURE__ */ jsx(CodeBlock$1, { code: `
|
|
365
|
+
// Your app tells the kit where its payment artwork is served, once, near the top.
|
|
366
|
+
<BrandMarkProvider src={(mark) => \`\${apiBase}/assets/payment-marks/\${mark.file}\`}>
|
|
367
|
+
<App />
|
|
368
|
+
</BrandMarkProvider>` })]
|
|
369
|
+
}),
|
|
370
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
371
|
+
id: "props",
|
|
372
|
+
title: "Props",
|
|
373
|
+
children: [/* @__PURE__ */ jsx(PropsTable, { rows: [
|
|
374
|
+
{
|
|
375
|
+
name: "id",
|
|
376
|
+
type: "string",
|
|
377
|
+
description: "The brand: a payment method or card brand id, a tracking service, or google or microsoft."
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: "category",
|
|
381
|
+
type: "'card' | 'wallet' | 'bnpl' | 'bank' | 'other'",
|
|
382
|
+
default: "'other'",
|
|
383
|
+
description: "Picks the neutral chip’s icon where there is no artwork or the file fails."
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
name: "maxWidth",
|
|
387
|
+
type: "number",
|
|
388
|
+
description: "The widest a payment mark may be drawn, chip included, in px."
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
name: "src",
|
|
392
|
+
type: "string",
|
|
393
|
+
description: "This mark’s file, over the provider’s."
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
name: "size",
|
|
397
|
+
type: "'sm' | 'md'",
|
|
398
|
+
description: "A service tile: md 36px (default), sm 28px. A sign-in mark: sm 18px (default), md 24px."
|
|
399
|
+
}
|
|
400
|
+
] }), /* @__PURE__ */ jsx(PropsTable, {
|
|
401
|
+
title: "BrandMarkProvider",
|
|
402
|
+
rows: [{
|
|
403
|
+
name: "src",
|
|
404
|
+
type: "(mark, id) => string | undefined",
|
|
405
|
+
description: "Where a payment mark’s file is served, from its file name."
|
|
406
|
+
}, {
|
|
407
|
+
name: "marks",
|
|
408
|
+
type: "Record<string, BrandMarkDefinition>",
|
|
409
|
+
description: "Marks of your own, or your own definitions of the kit’s."
|
|
410
|
+
}]
|
|
411
|
+
})]
|
|
412
|
+
})
|
|
413
|
+
]
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
//#endregion
|
|
417
|
+
export { Page, Preview };
|