@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,604 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as DocLink } from "./host-B6znjEgQ.js";
|
|
3
|
+
import { a as DocTable, d as Section$1, i as DocPage, l as Note, m as ThemePair, o as Example, p as SubSection, r as DoDont, s as Guidelines, u as PropsTable } from "./docs-lM2UBSir.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Card, Price, Table, TableBody, TableCell, TableFrame, TableHead, TableHeaderCell, TableRow } from "@orbitcommerce/constellation";
|
|
6
|
+
//#region src/pages/components/price.tsx
|
|
7
|
+
function Preview() {
|
|
8
|
+
return /* @__PURE__ */ jsx("div", {
|
|
9
|
+
className: "price-preview",
|
|
10
|
+
children: /* @__PURE__ */ jsx(Price, {
|
|
11
|
+
amount: 25,
|
|
12
|
+
compareAt: 35,
|
|
13
|
+
unit: "/mo",
|
|
14
|
+
unitLabel: "per month",
|
|
15
|
+
note: "Billed £300/year"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/** Three plugin tiers as a shop would see them, to show the prices lining up across cards. */
|
|
20
|
+
function Tiers() {
|
|
21
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
22
|
+
className: "price-tiers",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ jsxs(Card, {
|
|
25
|
+
className: "price-tier",
|
|
26
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
27
|
+
className: "price-tier__name",
|
|
28
|
+
children: "Starter"
|
|
29
|
+
}), /* @__PURE__ */ jsx(Price, {
|
|
30
|
+
free: true,
|
|
31
|
+
note: "Up to 50 trade accounts"
|
|
32
|
+
})]
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ jsxs(Card, {
|
|
35
|
+
className: "price-tier",
|
|
36
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
37
|
+
className: "price-tier__name",
|
|
38
|
+
children: "Growth"
|
|
39
|
+
}), /* @__PURE__ */ jsx(Price, {
|
|
40
|
+
amount: 19,
|
|
41
|
+
unit: "/mo",
|
|
42
|
+
unitLabel: "per month",
|
|
43
|
+
note: "Billed monthly"
|
|
44
|
+
})]
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ jsxs(Card, {
|
|
47
|
+
className: "price-tier",
|
|
48
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
49
|
+
className: "price-tier__name",
|
|
50
|
+
children: "Scale"
|
|
51
|
+
}), /* @__PURE__ */ jsx(Price, {
|
|
52
|
+
amount: 25,
|
|
53
|
+
compareAt: 35,
|
|
54
|
+
unit: "/mo",
|
|
55
|
+
unitLabel: "per month",
|
|
56
|
+
note: "Billed £300/year"
|
|
57
|
+
})]
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ jsxs(Card, {
|
|
60
|
+
className: "price-tier",
|
|
61
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
62
|
+
className: "price-tier__name",
|
|
63
|
+
children: "Enterprise"
|
|
64
|
+
}), /* @__PURE__ */ jsx(Price, {
|
|
65
|
+
onRequest: true,
|
|
66
|
+
note: "For groups of stores"
|
|
67
|
+
})]
|
|
68
|
+
})
|
|
69
|
+
]
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
var ROWS = [
|
|
73
|
+
{
|
|
74
|
+
name: "Trade accounts",
|
|
75
|
+
price: /* @__PURE__ */ jsx(Price, {
|
|
76
|
+
size: "row",
|
|
77
|
+
align: "end",
|
|
78
|
+
amount: 19,
|
|
79
|
+
unit: "/mo",
|
|
80
|
+
unitLabel: "per month"
|
|
81
|
+
})
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "Quote requests",
|
|
85
|
+
price: /* @__PURE__ */ jsx(Price, {
|
|
86
|
+
size: "row",
|
|
87
|
+
align: "end",
|
|
88
|
+
amount: 12.5,
|
|
89
|
+
compareAt: 15,
|
|
90
|
+
unit: "/mo",
|
|
91
|
+
unitLabel: "per month"
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "Delivery rules",
|
|
96
|
+
price: /* @__PURE__ */ jsx(Price, {
|
|
97
|
+
size: "row",
|
|
98
|
+
align: "end",
|
|
99
|
+
free: true
|
|
100
|
+
})
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "Order sync for Sage",
|
|
104
|
+
price: /* @__PURE__ */ jsx(Price, {
|
|
105
|
+
size: "row",
|
|
106
|
+
align: "end",
|
|
107
|
+
amount: 240,
|
|
108
|
+
unit: "one-time",
|
|
109
|
+
note: "Plus a £99 onboarding fee"
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
];
|
|
113
|
+
function PluginTable() {
|
|
114
|
+
return /* @__PURE__ */ jsx(TableFrame, {
|
|
115
|
+
className: "price-table",
|
|
116
|
+
children: /* @__PURE__ */ jsxs(Table, { children: [/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { children: [/* @__PURE__ */ jsx(TableHeaderCell, { children: "Plugin" }), /* @__PURE__ */ jsx(TableHeaderCell, {
|
|
117
|
+
align: "end",
|
|
118
|
+
children: "Price"
|
|
119
|
+
})] }) }), /* @__PURE__ */ jsx(TableBody, { children: ROWS.map((row) => /* @__PURE__ */ jsxs(TableRow, { children: [/* @__PURE__ */ jsx(TableCell, { children: row.name }), /* @__PURE__ */ jsx(TableCell, {
|
|
120
|
+
align: "end",
|
|
121
|
+
children: row.price
|
|
122
|
+
})] }, row.name)) })] })
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
var code = (value) => /* @__PURE__ */ jsx("code", { children: value });
|
|
126
|
+
function Page() {
|
|
127
|
+
return /* @__PURE__ */ jsxs(DocPage, {
|
|
128
|
+
title: "Price",
|
|
129
|
+
status: "new",
|
|
130
|
+
importNames: ["Price", "PRICE_LABELS"],
|
|
131
|
+
lead: "An amount in its currency on the display face, with a quiet unit on its baseline and quiet lines under it for how it is billed. It leads with From, strikes a compare-at price, or says Free or Price on request in place of the figure.",
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
134
|
+
id: "basics",
|
|
135
|
+
title: "Basics",
|
|
136
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
137
|
+
"Give it the ",
|
|
138
|
+
/* @__PURE__ */ jsx("code", { children: "amount" }),
|
|
139
|
+
" in the currency's main unit and a ",
|
|
140
|
+
/* @__PURE__ */ jsx("code", { children: "currency" }),
|
|
141
|
+
" code (pounds by default). The figure is written by ",
|
|
142
|
+
/* @__PURE__ */ jsx("code", { children: "formatMoney" }),
|
|
143
|
+
", so it reads like every other amount on the dashboards: a bare £, € or $, CA$ and A$ for the other dollars, the separators of the",
|
|
144
|
+
" ",
|
|
145
|
+
/* @__PURE__ */ jsx("code", { children: "locale" }),
|
|
146
|
+
". On the display face a whole amount drops its pence (£29, but £29.50)."
|
|
147
|
+
] }),
|
|
148
|
+
children: /* @__PURE__ */ jsxs(Example, {
|
|
149
|
+
code: `
|
|
150
|
+
<Price amount={29} unit="/mo" unitLabel="per month" />
|
|
151
|
+
<Price amount={29.5} unit="/mo" unitLabel="per month" />
|
|
152
|
+
<Price amount={1234.5} currency="EUR" locale="de" unit="/Monat" />`,
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ jsx(Price, {
|
|
155
|
+
amount: 29,
|
|
156
|
+
unit: "/mo",
|
|
157
|
+
unitLabel: "per month"
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ jsx(Price, {
|
|
160
|
+
amount: 29.5,
|
|
161
|
+
unit: "/mo",
|
|
162
|
+
unitLabel: "per month"
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ jsx(Price, {
|
|
165
|
+
amount: 1234.5,
|
|
166
|
+
currency: "EUR",
|
|
167
|
+
locale: "de",
|
|
168
|
+
unit: "/Monat"
|
|
169
|
+
})
|
|
170
|
+
]
|
|
171
|
+
})
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
174
|
+
id: "units",
|
|
175
|
+
title: "Units and the line under it",
|
|
176
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
177
|
+
/* @__PURE__ */ jsx("code", { children: "unit" }),
|
|
178
|
+
" sits on the figure's baseline in quiet type: \"/mo\", \"/month\", \"/mo per store\", \"/yr\", \"one-time\". A short form like \"/mo\" is read letter by letter, so give ",
|
|
179
|
+
/* @__PURE__ */ jsx("code", { children: "unitLabel" }),
|
|
180
|
+
" its words (\"per month\"): the short form is then hidden from a screen reader and the words are read instead.",
|
|
181
|
+
" ",
|
|
182
|
+
/* @__PURE__ */ jsx("code", { children: "note" }),
|
|
183
|
+
" is a quiet second line for how the price is billed."
|
|
184
|
+
] }),
|
|
185
|
+
children: /* @__PURE__ */ jsxs(Example, {
|
|
186
|
+
code: `
|
|
187
|
+
<Price amount={25} unit="/mo" unitLabel="per month" note="Billed £300/year" />
|
|
188
|
+
<Price amount={8} unit="/mo per store" unitLabel="per month for each store" note="£96.00 per store each year" />
|
|
189
|
+
<Price amount={240} unit="one-time" note="Yours to keep, with a year of updates" />`,
|
|
190
|
+
children: [
|
|
191
|
+
/* @__PURE__ */ jsx(Price, {
|
|
192
|
+
amount: 25,
|
|
193
|
+
unit: "/mo",
|
|
194
|
+
unitLabel: "per month",
|
|
195
|
+
note: "Billed £300/year"
|
|
196
|
+
}),
|
|
197
|
+
/* @__PURE__ */ jsx(Price, {
|
|
198
|
+
amount: 8,
|
|
199
|
+
unit: "/mo per store",
|
|
200
|
+
unitLabel: "per month for each store",
|
|
201
|
+
note: "£96.00 per store each year"
|
|
202
|
+
}),
|
|
203
|
+
/* @__PURE__ */ jsx(Price, {
|
|
204
|
+
amount: 240,
|
|
205
|
+
unit: "one-time",
|
|
206
|
+
note: "Yours to keep, with a year of updates"
|
|
207
|
+
})
|
|
208
|
+
]
|
|
209
|
+
})
|
|
210
|
+
}),
|
|
211
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
212
|
+
id: "from-and-compare-at",
|
|
213
|
+
title: "From, and a price before a reduction",
|
|
214
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
215
|
+
/* @__PURE__ */ jsx("code", { children: "from" }),
|
|
216
|
+
" leads with \"From\" for the lowest of several prices: a plugin with tiers, a theme with a single-store and an agency licence. ",
|
|
217
|
+
/* @__PURE__ */ jsx("code", { children: "compareAt" }),
|
|
218
|
+
" strikes the price before a reduction ahead of the figure, and is drawn only when it is higher than the price. A screen reader hears \"Was £35, now £25\", since a strike is not read."
|
|
219
|
+
] }),
|
|
220
|
+
children: /* @__PURE__ */ jsxs(Example, {
|
|
221
|
+
code: `
|
|
222
|
+
<Price from amount={8} unit="/mo" unitLabel="per month" note="Three plans" />
|
|
223
|
+
<Price amount={25} compareAt={35} unit="/mo" unitLabel="per month" />
|
|
224
|
+
<Price from amount={49} compareAt={69} note="Single store, or £149 for an agency" />`,
|
|
225
|
+
children: [
|
|
226
|
+
/* @__PURE__ */ jsx(Price, {
|
|
227
|
+
from: true,
|
|
228
|
+
amount: 8,
|
|
229
|
+
unit: "/mo",
|
|
230
|
+
unitLabel: "per month",
|
|
231
|
+
note: "Three plans"
|
|
232
|
+
}),
|
|
233
|
+
/* @__PURE__ */ jsx(Price, {
|
|
234
|
+
amount: 25,
|
|
235
|
+
compareAt: 35,
|
|
236
|
+
unit: "/mo",
|
|
237
|
+
unitLabel: "per month"
|
|
238
|
+
}),
|
|
239
|
+
/* @__PURE__ */ jsx(Price, {
|
|
240
|
+
from: true,
|
|
241
|
+
amount: 49,
|
|
242
|
+
compareAt: 69,
|
|
243
|
+
note: "Single store, or £149 for an agency"
|
|
244
|
+
})
|
|
245
|
+
]
|
|
246
|
+
})
|
|
247
|
+
}),
|
|
248
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
249
|
+
id: "free-and-on-request",
|
|
250
|
+
title: "Free, and Price on request",
|
|
251
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
252
|
+
/* @__PURE__ */ jsx("code", { children: "free" }),
|
|
253
|
+
" says Free in the figure's face, and ",
|
|
254
|
+
/* @__PURE__ */ jsx("code", { children: "onRequest" }),
|
|
255
|
+
" says Price on request, a size down, as words that may wrap. Neither draws a unit, From or a compare-at; the note stays. Pass a string to either to say it in your own words."
|
|
256
|
+
] }),
|
|
257
|
+
children: [/* @__PURE__ */ jsxs(Example, {
|
|
258
|
+
code: `
|
|
259
|
+
<Price free note="Up to 50 trade accounts" />
|
|
260
|
+
<Price onRequest note="For groups of stores" />
|
|
261
|
+
<Price free="Included" note="On every plan" />`,
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ jsx(Price, {
|
|
264
|
+
free: true,
|
|
265
|
+
note: "Up to 50 trade accounts"
|
|
266
|
+
}),
|
|
267
|
+
/* @__PURE__ */ jsx(Price, {
|
|
268
|
+
onRequest: true,
|
|
269
|
+
note: "For groups of stores"
|
|
270
|
+
}),
|
|
271
|
+
/* @__PURE__ */ jsx(Price, {
|
|
272
|
+
free: "Included",
|
|
273
|
+
note: "On every plan"
|
|
274
|
+
})
|
|
275
|
+
]
|
|
276
|
+
}), /* @__PURE__ */ jsx(SubSection, {
|
|
277
|
+
title: "No price yet",
|
|
278
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
279
|
+
"Leave ",
|
|
280
|
+
/* @__PURE__ */ jsx("code", { children: "amount" }),
|
|
281
|
+
" out (or pass ",
|
|
282
|
+
/* @__PURE__ */ jsx("code", { children: "null" }),
|
|
283
|
+
") for a price that is not set yet: a quiet dash, read as \"No price\" (",
|
|
284
|
+
/* @__PURE__ */ jsx("code", { children: "labels.none" }),
|
|
285
|
+
"), never a £0 that reads as free. An ",
|
|
286
|
+
/* @__PURE__ */ jsx("code", { children: "amount" }),
|
|
287
|
+
" of 0 is a price, and is written £0; say Free with ",
|
|
288
|
+
/* @__PURE__ */ jsx("code", { children: "free" }),
|
|
289
|
+
"."
|
|
290
|
+
] }),
|
|
291
|
+
children: /* @__PURE__ */ jsxs(Example, {
|
|
292
|
+
code: `<Price note="Set a price to start selling" />\n<Price size="row" amount={null} />`,
|
|
293
|
+
children: [/* @__PURE__ */ jsx(Price, { note: "Set a price to start selling" }), /* @__PURE__ */ jsx(Price, {
|
|
294
|
+
size: "row",
|
|
295
|
+
amount: null
|
|
296
|
+
})]
|
|
297
|
+
})
|
|
298
|
+
})]
|
|
299
|
+
}),
|
|
300
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
301
|
+
id: "fee",
|
|
302
|
+
title: "A fee on top",
|
|
303
|
+
description: /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("code", { children: "fee" }), " is its own quiet line, under the note, for a one-off charge that comes with the price."] }),
|
|
304
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
305
|
+
code: `<Price amount={49} unit="/mo" unitLabel="per month" note="Billed monthly" fee="Plus a £99 onboarding fee" />`,
|
|
306
|
+
children: /* @__PURE__ */ jsx(Price, {
|
|
307
|
+
amount: 49,
|
|
308
|
+
unit: "/mo",
|
|
309
|
+
unitLabel: "per month",
|
|
310
|
+
note: "Billed monthly",
|
|
311
|
+
fee: "Plus a £99 onboarding fee"
|
|
312
|
+
})
|
|
313
|
+
})
|
|
314
|
+
}),
|
|
315
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
316
|
+
id: "in-cards",
|
|
317
|
+
title: "Across a row of cards",
|
|
318
|
+
description: /* @__PURE__ */ jsx("p", { children: "Every kind of price has the same first line, so a row of tiers lines up at the figure whichever kind each one is." }),
|
|
319
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
320
|
+
align: "fill",
|
|
321
|
+
code: `
|
|
322
|
+
<Card><span>Starter</span><Price free note="Up to 50 trade accounts" /></Card>
|
|
323
|
+
<Card><span>Growth</span><Price amount={19} unit="/mo" unitLabel="per month" note="Billed monthly" /></Card>
|
|
324
|
+
<Card><span>Scale</span><Price amount={25} compareAt={35} unit="/mo" unitLabel="per month" note="Billed £300/year" /></Card>
|
|
325
|
+
<Card><span>Enterprise</span><Price onRequest note="For groups of stores" /></Card>`,
|
|
326
|
+
children: /* @__PURE__ */ jsx(Tiers, {})
|
|
327
|
+
})
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
330
|
+
id: "sizes",
|
|
331
|
+
title: "Sizes and alignment",
|
|
332
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
333
|
+
/* @__PURE__ */ jsx("code", { children: "display" }),
|
|
334
|
+
" (the default) is the Sora figure of a plan, a plugin or a listing.",
|
|
335
|
+
" ",
|
|
336
|
+
/* @__PURE__ */ jsx("code", { children: "row" }),
|
|
337
|
+
" sets the figure in body type, 14px at 500, for a",
|
|
338
|
+
" ",
|
|
339
|
+
/* @__PURE__ */ jsx(DocLink, {
|
|
340
|
+
to: "/components/table",
|
|
341
|
+
children: "table"
|
|
342
|
+
}),
|
|
343
|
+
" cell or a list row, and keeps the currency's own places so a column of prices lines up by the digit. ",
|
|
344
|
+
/* @__PURE__ */ jsx("code", { children: "align=\"end\"" }),
|
|
345
|
+
" puts every line on the end edge, as a column of figures is."
|
|
346
|
+
] }),
|
|
347
|
+
children: [
|
|
348
|
+
/* @__PURE__ */ jsx(SubSection, {
|
|
349
|
+
title: "Display",
|
|
350
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
351
|
+
code: `<Price amount={25} compareAt={35} unit="/mo" unitLabel="per month" note="Billed £300/year" />`,
|
|
352
|
+
children: /* @__PURE__ */ jsx(Price, {
|
|
353
|
+
amount: 25,
|
|
354
|
+
compareAt: 35,
|
|
355
|
+
unit: "/mo",
|
|
356
|
+
unitLabel: "per month",
|
|
357
|
+
note: "Billed £300/year"
|
|
358
|
+
})
|
|
359
|
+
})
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ jsx(SubSection, {
|
|
362
|
+
title: "Row, on the end edge",
|
|
363
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
364
|
+
align: "fill",
|
|
365
|
+
code: `
|
|
366
|
+
<TableCell align="end">
|
|
367
|
+
<Price size="row" align="end" amount={19} unit="/mo" unitLabel="per month" />
|
|
368
|
+
</TableCell>
|
|
369
|
+
<TableCell align="end">
|
|
370
|
+
<Price size="row" align="end" amount={12.5} compareAt={15} unit="/mo" unitLabel="per month" />
|
|
371
|
+
</TableCell>
|
|
372
|
+
<TableCell align="end">
|
|
373
|
+
<Price size="row" align="end" free />
|
|
374
|
+
</TableCell>
|
|
375
|
+
<TableCell align="end">
|
|
376
|
+
<Price size="row" align="end" amount={240} unit="one-time" note="Plus a £99 onboarding fee" />
|
|
377
|
+
</TableCell>`,
|
|
378
|
+
children: /* @__PURE__ */ jsx(PluginTable, {})
|
|
379
|
+
})
|
|
380
|
+
}),
|
|
381
|
+
/* @__PURE__ */ jsx(DocTable, {
|
|
382
|
+
columns: [
|
|
383
|
+
"Size",
|
|
384
|
+
"Figure",
|
|
385
|
+
"Unit, From and lines",
|
|
386
|
+
"Places"
|
|
387
|
+
],
|
|
388
|
+
rows: [[
|
|
389
|
+
code("display"),
|
|
390
|
+
"Sora 600, 1.625rem (on request 1.3125rem)",
|
|
391
|
+
"13px, fg-3",
|
|
392
|
+
"A whole amount drops its pence"
|
|
393
|
+
], [
|
|
394
|
+
code("row"),
|
|
395
|
+
"Geist 500, 14px",
|
|
396
|
+
"12px, fg-3",
|
|
397
|
+
"The currency's own (£19.00)"
|
|
398
|
+
]]
|
|
399
|
+
})
|
|
400
|
+
]
|
|
401
|
+
}),
|
|
402
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
403
|
+
id: "both-themes",
|
|
404
|
+
title: "In both themes",
|
|
405
|
+
description: /* @__PURE__ */ jsx("p", { children: "Every kind and both sizes, light and dark side by side." }),
|
|
406
|
+
children: /* @__PURE__ */ jsx(ThemePair, { children: /* @__PURE__ */ jsxs("div", {
|
|
407
|
+
className: "price-stack",
|
|
408
|
+
children: [
|
|
409
|
+
/* @__PURE__ */ jsx(Price, {
|
|
410
|
+
from: true,
|
|
411
|
+
amount: 25,
|
|
412
|
+
compareAt: 35,
|
|
413
|
+
unit: "/mo",
|
|
414
|
+
unitLabel: "per month",
|
|
415
|
+
note: "Billed £300/year",
|
|
416
|
+
fee: "Plus a £99 onboarding fee"
|
|
417
|
+
}),
|
|
418
|
+
/* @__PURE__ */ jsxs("div", {
|
|
419
|
+
className: "price-row",
|
|
420
|
+
children: [/* @__PURE__ */ jsx(Price, {
|
|
421
|
+
free: true,
|
|
422
|
+
note: "Up to 50 trade accounts"
|
|
423
|
+
}), /* @__PURE__ */ jsx(Price, {
|
|
424
|
+
onRequest: true,
|
|
425
|
+
note: "For groups of stores"
|
|
426
|
+
})]
|
|
427
|
+
}),
|
|
428
|
+
/* @__PURE__ */ jsx(Price, {
|
|
429
|
+
size: "row",
|
|
430
|
+
amount: 12.5,
|
|
431
|
+
compareAt: 15,
|
|
432
|
+
unit: "/mo",
|
|
433
|
+
unitLabel: "per month",
|
|
434
|
+
note: "Billed monthly"
|
|
435
|
+
})
|
|
436
|
+
]
|
|
437
|
+
}) })
|
|
438
|
+
}),
|
|
439
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
440
|
+
id: "guidelines",
|
|
441
|
+
title: "Guidelines",
|
|
442
|
+
children: [/* @__PURE__ */ jsx(DoDont, {
|
|
443
|
+
do: {
|
|
444
|
+
children: /* @__PURE__ */ jsx(Price, {
|
|
445
|
+
amount: 25,
|
|
446
|
+
unit: "/mo",
|
|
447
|
+
unitLabel: "per month",
|
|
448
|
+
note: "Billed £300/year"
|
|
449
|
+
}),
|
|
450
|
+
caption: "The figure stays ink, and how it is billed sits quietly under it."
|
|
451
|
+
},
|
|
452
|
+
dont: {
|
|
453
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
454
|
+
className: "price-dont",
|
|
455
|
+
children: "£25.00 per month, billed as £300.00 per year"
|
|
456
|
+
}),
|
|
457
|
+
caption: "One long sentence buries the number the reader came for."
|
|
458
|
+
}
|
|
459
|
+
}), /* @__PURE__ */ jsx(Guidelines, { items: [
|
|
460
|
+
"Say what the price is for, every time: a unit on the figure, or a note under it.",
|
|
461
|
+
"Show a compare-at only for a real reduction the shop offers, never a made-up \"was\" price.",
|
|
462
|
+
"Use From only when there really are several prices; name them nearby.",
|
|
463
|
+
"Prices in a table or a list row are row size and end-aligned, so their digits line up.",
|
|
464
|
+
"Whether a price includes VAT is said once for the page, in one quiet line, not on every price."
|
|
465
|
+
] })]
|
|
466
|
+
}),
|
|
467
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
468
|
+
id: "accessibility",
|
|
469
|
+
title: "Accessibility",
|
|
470
|
+
children: [/* @__PURE__ */ jsx(Guidelines, { items: [
|
|
471
|
+
"The parts are read in order, a space between each: From, £8, per month, then the note and the fee.",
|
|
472
|
+
"A reduction is read as \"Was £35, now £25 per month\", since a strike alone is not announced. With From the price comes first: \"From £49 per month, was £69\".",
|
|
473
|
+
"No price is a dash read as \"No price\".",
|
|
474
|
+
"unitLabel replaces a short unit (\"/mo\") with words for a screen reader, so it is not spelt out.",
|
|
475
|
+
"It is a span, so it can sit in a table cell, a paragraph or a label. It moves nothing and its colours are text colours, so forced colours need nothing of their own."
|
|
476
|
+
] }), /* @__PURE__ */ jsxs(Note, {
|
|
477
|
+
title: "For tests and styling",
|
|
478
|
+
children: [
|
|
479
|
+
"The root carries ",
|
|
480
|
+
/* @__PURE__ */ jsx("code", { children: "data-size" }),
|
|
481
|
+
" (",
|
|
482
|
+
/* @__PURE__ */ jsx("code", { children: "display" }),
|
|
483
|
+
", ",
|
|
484
|
+
/* @__PURE__ */ jsx("code", { children: "row" }),
|
|
485
|
+
"), ",
|
|
486
|
+
/* @__PURE__ */ jsx("code", { children: "data-align" }),
|
|
487
|
+
" ",
|
|
488
|
+
"(",
|
|
489
|
+
/* @__PURE__ */ jsx("code", { children: "start" }),
|
|
490
|
+
", ",
|
|
491
|
+
/* @__PURE__ */ jsx("code", { children: "end" }),
|
|
492
|
+
") and ",
|
|
493
|
+
/* @__PURE__ */ jsx("code", { children: "data-kind" }),
|
|
494
|
+
" (",
|
|
495
|
+
/* @__PURE__ */ jsx("code", { children: "amount" }),
|
|
496
|
+
", ",
|
|
497
|
+
/* @__PURE__ */ jsx("code", { children: "free" }),
|
|
498
|
+
",",
|
|
499
|
+
" ",
|
|
500
|
+
/* @__PURE__ */ jsx("code", { children: "words" }),
|
|
501
|
+
", ",
|
|
502
|
+
/* @__PURE__ */ jsx("code", { children: "none" }),
|
|
503
|
+
")."
|
|
504
|
+
]
|
|
505
|
+
})]
|
|
506
|
+
}),
|
|
507
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
508
|
+
id: "props",
|
|
509
|
+
title: "Props",
|
|
510
|
+
description: /* @__PURE__ */ jsx("p", { children: "Also accepts every native span attribute except children." }),
|
|
511
|
+
children: /* @__PURE__ */ jsx(PropsTable, {
|
|
512
|
+
title: "Price",
|
|
513
|
+
rows: [
|
|
514
|
+
{
|
|
515
|
+
name: "amount",
|
|
516
|
+
type: "number | null",
|
|
517
|
+
description: "The amount in the currency's main unit (29.5 for £29.50). Not needed for free or onRequest. Left out or null: a quiet dash, read as \"No price\". Anything else that is not a number is written as zero."
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
name: "currency",
|
|
521
|
+
type: "string",
|
|
522
|
+
default: "'GBP'",
|
|
523
|
+
description: "An ISO 4217 code."
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: "locale",
|
|
527
|
+
type: "string",
|
|
528
|
+
default: "British English",
|
|
529
|
+
description: "A BCP 47 locale for the separators and the place of the sign."
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
name: "decimals",
|
|
533
|
+
type: "number | 'auto'",
|
|
534
|
+
default: "'auto' (display), the currency's own (row)",
|
|
535
|
+
description: "Places after the point. auto drops the pence of a whole amount; a number fixes them."
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
name: "unit",
|
|
539
|
+
type: "ReactNode",
|
|
540
|
+
description: "A quiet unit on the baseline: \"/mo\", \"/yr\", \"one-time\"."
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
name: "unitLabel",
|
|
544
|
+
type: "string",
|
|
545
|
+
description: "The unit in words for a screen reader (\"per month\"); the short form is then hidden from it."
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
name: "from",
|
|
549
|
+
type: "boolean | string",
|
|
550
|
+
default: "false",
|
|
551
|
+
description: "Leads with From. A string says it in your words."
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
name: "compareAt",
|
|
555
|
+
type: "number | null",
|
|
556
|
+
description: "The price before a reduction, struck before the figure. Drawn only when higher than amount."
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
name: "free",
|
|
560
|
+
type: "boolean | string",
|
|
561
|
+
default: "false",
|
|
562
|
+
description: "Free in place of the figure. A string says it in your words."
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
name: "onRequest",
|
|
566
|
+
type: "boolean | string",
|
|
567
|
+
default: "false",
|
|
568
|
+
description: "Price on request in place of the figure, as words that may wrap."
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
name: "note",
|
|
572
|
+
type: "ReactNode",
|
|
573
|
+
description: "A quiet second line: \"Billed £300/year\"."
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
name: "fee",
|
|
577
|
+
type: "ReactNode",
|
|
578
|
+
description: "A quiet line for a fee on top: \"Plus a £99 onboarding fee\"."
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
name: "size",
|
|
582
|
+
type: "'display' | 'row'",
|
|
583
|
+
default: "'display'",
|
|
584
|
+
description: "The Sora figure, or body type for a table cell or a list row."
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
name: "align",
|
|
588
|
+
type: "'start' | 'end'",
|
|
589
|
+
default: "'start'",
|
|
590
|
+
description: "end lines every line up on the end edge."
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
name: "labels",
|
|
594
|
+
type: "Partial<PriceLabels>",
|
|
595
|
+
description: "Its words: from, free, onRequest, and none, was, now and wasAfter (read, not shown). PRICE_LABELS is the English set."
|
|
596
|
+
}
|
|
597
|
+
]
|
|
598
|
+
})
|
|
599
|
+
})
|
|
600
|
+
]
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
//#endregion
|
|
604
|
+
export { Page, Preview };
|