@orbitcommerce/constellation-docs 1.2.0 → 1.3.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/dist/index.js +2 -2
- package/dist/pages/{address-block-BZOOOPA9.js → address-block-BvxQWBTy.js} +38 -3
- package/dist/pages/{card-CQEM1_wc.js → card-CXZ3V1d4.js} +64 -19
- package/dist/pages/{colour-q2ntvI0w.js → colour-Blv4aPli.js} +1 -0
- package/dist/pages/{figure-strip-BB3mNl7D.js → figure-strip-hg7txTc3.js} +18 -1
- package/dist/pages/{installation-C3UcpQJT.js → installation-BMhneI9u.js} +1 -1
- package/dist/pages/{logo-B38rnzoq.js → logo-pmHCkArD.js} +1 -1
- package/dist/pages/{overview-LA9XRhZc.js → overview-CT0A0qFa.js} +1 -1
- package/dist/pages/{plan-grid-cfPVTB5V.js → plan-grid-BCPvtP8J.js} +1 -1
- package/dist/pages/{radio-group-C-4tg6FS.js → radio-group-CbiibLwn.js} +3 -2
- package/dist/pages/{registry-BZg-xAbi.js → registry-BraP_Jwt.js} +11 -11
- package/dist/pages/{release-Cs6tl16C.js → release-CBaMurIe.js} +1 -1
- package/dist/pages/{table-CL0vomno.js → table-mq_pNXza.js} +8 -1
- package/dist/pages/{tabs-Dh0mUsLw.js → tabs-Cf4MZ8Fq.js} +1 -0
- package/manifest.json +10 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as useDocsHost, i as docsHref, n as DocsHostProvider, o as useDocumentTheme, t as DocLink } from "./pages/host-B6znjEgQ.js";
|
|
3
|
-
import { t as CONSTELLATION_VERSION } from "./pages/release-
|
|
4
|
-
import { a as pageAt, i as navSections, n as GROUPS, r as PAGES } from "./pages/registry-
|
|
3
|
+
import { t as CONSTELLATION_VERSION } from "./pages/release-CBaMurIe.js";
|
|
4
|
+
import { a as pageAt, i as navSections, n as GROUPS, r as PAGES } from "./pages/registry-BraP_Jwt.js";
|
|
5
5
|
import "@orbitcommerce/constellation/fonts.css";
|
|
6
6
|
import "@orbitcommerce/constellation/styles.css";
|
|
7
7
|
import "./docs.css";
|
|
@@ -49,7 +49,7 @@ function Page() {
|
|
|
49
49
|
id: "basics",
|
|
50
50
|
title: "Basics",
|
|
51
51
|
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
52
|
-
"The customer column of an order. An address is lines, the addressee first in ink at 500, then the street, the town, county and postcode on one line, the country and the phone, with any part that is empty left out.",
|
|
52
|
+
"The customer column of an order. An address is lines, the addressee first in ink at 500, then the street, the town, county and postcode on one line, the country and the phone, with any part that is empty left out. The phone is a tap-to-call link.",
|
|
53
53
|
" ",
|
|
54
54
|
/* @__PURE__ */ jsx("code", { children: "mapHref" }),
|
|
55
55
|
" adds a \"View map\" link that opens in a new tab (",
|
|
@@ -77,6 +77,39 @@ function Page() {
|
|
|
77
77
|
})
|
|
78
78
|
})
|
|
79
79
|
}),
|
|
80
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
81
|
+
id: "reach",
|
|
82
|
+
title: "Phone and email",
|
|
83
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
84
|
+
"Under the address, the phone is a tap-to-call link and the email (",
|
|
85
|
+
/* @__PURE__ */ jsx("code", { children: "email" }),
|
|
86
|
+
") a mailto link, both in the address's ink and underlined on hover. ",
|
|
87
|
+
/* @__PURE__ */ jsx("code", { children: "phone" }),
|
|
88
|
+
" takes the place of the address's own. The link dials the number as it is shown, with the spaces, brackets and dashes taken out and a leading + kept; the (0) written after a country code is left out, so \"+44 (0)113 496 0000\" calls +441134960000, and words after the number (\"ext. 12\") are not dialled. A phone with no digits in it stays text."
|
|
89
|
+
] }),
|
|
90
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
91
|
+
align: "fill",
|
|
92
|
+
code: `
|
|
93
|
+
<AddressBlock label="Shipping address" address={order.shippingAddress} phone="+44 (0)113 496 0000" email={order.email} />
|
|
94
|
+
<AddressBlock label="Billing address" address={order.billingAddress} phone="Withheld" />`,
|
|
95
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
96
|
+
className: "address-row",
|
|
97
|
+
children: [/* @__PURE__ */ jsx(AddressBlock, {
|
|
98
|
+
label: "Shipping address",
|
|
99
|
+
address: {
|
|
100
|
+
...PRIYA,
|
|
101
|
+
phone: null
|
|
102
|
+
},
|
|
103
|
+
phone: "+44 (0)113 496 0000",
|
|
104
|
+
email: "priya@harbourdesk.example"
|
|
105
|
+
}), /* @__PURE__ */ jsx(AddressBlock, {
|
|
106
|
+
label: "Billing address",
|
|
107
|
+
address: OFFICE,
|
|
108
|
+
phone: "Withheld"
|
|
109
|
+
})]
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
|
+
}),
|
|
80
113
|
/* @__PURE__ */ jsx(Section$1, {
|
|
81
114
|
id: "empty",
|
|
82
115
|
title: "No address",
|
|
@@ -229,6 +262,7 @@ function Page() {
|
|
|
229
262
|
children: [/* @__PURE__ */ jsx(AddressBlock, {
|
|
230
263
|
label: "Home",
|
|
231
264
|
address: PRIYA,
|
|
265
|
+
email: "priya@harbourdesk.example",
|
|
232
266
|
defaultShipping: true,
|
|
233
267
|
mapHref: true
|
|
234
268
|
}), /* @__PURE__ */ jsx(AddressBlock, {
|
|
@@ -269,6 +303,7 @@ function Page() {
|
|
|
269
303
|
" element, which marks them as contact details, set upright."
|
|
270
304
|
] }),
|
|
271
305
|
"The glyphs of the contact lines are decorative: the email, the phone number and the address say what each line is.",
|
|
306
|
+
"The phone and the email are real links: a phone dials the number, a computer hands it to its calling app, and the link's name is the number as shown.",
|
|
272
307
|
"The map link is the kit's external link: it opens in a new tab and says so to a screen reader."
|
|
273
308
|
] })
|
|
274
309
|
}),
|
|
@@ -292,7 +327,7 @@ function Page() {
|
|
|
292
327
|
name: "variant",
|
|
293
328
|
type: "'lines' | 'contact'",
|
|
294
329
|
default: "'lines'",
|
|
295
|
-
description: "Lines, the addressee first; or icon-led contact lines."
|
|
330
|
+
description: "Lines, the addressee first, then the phone and email links; or icon-led contact lines."
|
|
296
331
|
},
|
|
297
332
|
{
|
|
298
333
|
name: "size",
|
|
@@ -308,7 +343,7 @@ function Page() {
|
|
|
308
343
|
{
|
|
309
344
|
name: "phone",
|
|
310
345
|
type: "string",
|
|
311
|
-
description: "A phone
|
|
346
|
+
description: "A phone, as a tap-to-call link. Defaults to the address's own."
|
|
312
347
|
},
|
|
313
348
|
{
|
|
314
349
|
name: "defaultShipping",
|
|
@@ -81,27 +81,54 @@ function LowStockCard() {
|
|
|
81
81
|
})] })
|
|
82
82
|
] });
|
|
83
83
|
}
|
|
84
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* Three settings cards a phone's width across: a badge that fits beside its title, an action that does not, and a row of
|
|
86
|
+
* actions wider than the card, which wraps.
|
|
87
|
+
*/
|
|
85
88
|
function NarrowCards() {
|
|
86
89
|
return /* @__PURE__ */ jsxs("div", {
|
|
87
90
|
className: "card-narrow",
|
|
88
|
-
children: [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardHeader, {
|
|
93
|
+
icon: /* @__PURE__ */ jsx(EnvelopeSimpleIcon, {}),
|
|
94
|
+
title: "Abandoned checkout emails",
|
|
95
|
+
description: "A reminder to customers who leave with items in their basket.",
|
|
96
|
+
actions: /* @__PURE__ */ jsx(Badge, {
|
|
97
|
+
tone: "positive",
|
|
98
|
+
children: "On"
|
|
99
|
+
})
|
|
100
|
+
}) }),
|
|
101
|
+
/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardHeader, {
|
|
102
|
+
icon: /* @__PURE__ */ jsx(TranslateIcon, {}),
|
|
103
|
+
title: "Checkout language",
|
|
104
|
+
description: "Follows your store's language, English (UK).",
|
|
105
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
106
|
+
size: "sm",
|
|
107
|
+
children: "Change the language"
|
|
108
|
+
})
|
|
109
|
+
}) }),
|
|
110
|
+
/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardHeader, {
|
|
111
|
+
icon: /* @__PURE__ */ jsx(EyeIcon, {}),
|
|
112
|
+
title: "Live preview",
|
|
113
|
+
description: "A sample range in your store's finishes.",
|
|
114
|
+
actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
115
|
+
/* @__PURE__ */ jsx(Button, {
|
|
116
|
+
size: "sm",
|
|
117
|
+
variant: "secondary",
|
|
118
|
+
children: "Share link"
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ jsx(Button, {
|
|
121
|
+
size: "sm",
|
|
122
|
+
variant: "secondary",
|
|
123
|
+
children: "Download PDF"
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ jsx(Button, {
|
|
126
|
+
size: "sm",
|
|
127
|
+
children: "Rebuild sample"
|
|
128
|
+
})
|
|
129
|
+
] })
|
|
130
|
+
}) })
|
|
131
|
+
]
|
|
105
132
|
});
|
|
106
133
|
}
|
|
107
134
|
function OrdersCard() {
|
|
@@ -536,7 +563,7 @@ function Page() {
|
|
|
536
563
|
to: "/components/row-list",
|
|
537
564
|
children: "row list"
|
|
538
565
|
}),
|
|
539
|
-
" keeps for its words. On a card too narrow for that, on a phone or in a side column, they drop under the title and the description, at the start and 12px below the words, so the title is never squeezed to a letter a line. It goes by what the actions need, not by the card's width: a badge, a switch or a short button stays beside the title wherever it fits."
|
|
566
|
+
" keeps for its words. On a card too narrow for that, on a phone or in a side column, they drop under the title and the description, at the start and 12px below the words, so the title is never squeezed to a letter a line. It goes by what the actions need, not by the card's width: a badge, a switch or a short button stays beside the title wherever it fits. Actions wider than the card wrap onto further lines, at the start, each control at its full width, so nothing runs past the card's edge."
|
|
540
567
|
] }),
|
|
541
568
|
children: /* @__PURE__ */ jsx(Example, {
|
|
542
569
|
align: "fill",
|
|
@@ -556,6 +583,24 @@ function Page() {
|
|
|
556
583
|
description="Follows your store's language, English (UK)."
|
|
557
584
|
actions={<Button size="sm">Change the language</Button>}
|
|
558
585
|
/>
|
|
586
|
+
</Card>
|
|
587
|
+
<Card>
|
|
588
|
+
<CardHeader
|
|
589
|
+
icon={<EyeIcon />}
|
|
590
|
+
title="Live preview"
|
|
591
|
+
description="A sample range in your store's finishes."
|
|
592
|
+
actions={
|
|
593
|
+
<>
|
|
594
|
+
<Button size="sm" variant="secondary">
|
|
595
|
+
Share link
|
|
596
|
+
</Button>
|
|
597
|
+
<Button size="sm" variant="secondary">
|
|
598
|
+
Download PDF
|
|
599
|
+
</Button>
|
|
600
|
+
<Button size="sm">Rebuild sample</Button>
|
|
601
|
+
</>
|
|
602
|
+
}
|
|
603
|
+
/>
|
|
559
604
|
</Card>`,
|
|
560
605
|
children: /* @__PURE__ */ jsx(NarrowCards, {})
|
|
561
606
|
})
|
|
@@ -661,7 +661,10 @@ function Page() {
|
|
|
661
661
|
" for a figure with nothing to show, and an",
|
|
662
662
|
" ",
|
|
663
663
|
/* @__PURE__ */ jsx("code", { children: "action" }),
|
|
664
|
-
" after the figure: a small button, a sparkline."
|
|
664
|
+
" after the figure: a small button, a sparkline. A value that is words, not a figure, takes",
|
|
665
|
+
" ",
|
|
666
|
+
/* @__PURE__ */ jsx("code", { children: "valueType=\"text\"" }),
|
|
667
|
+
": body type that wraps, so it does not stand in the figure's face beside the numbers."
|
|
665
668
|
] }),
|
|
666
669
|
children: [
|
|
667
670
|
/* @__PURE__ */ jsx(Example, {
|
|
@@ -673,6 +676,7 @@ function Page() {
|
|
|
673
676
|
{ key: 'trend', label: 'Sessions', icon: <UsersIcon />, value: '1,204',
|
|
674
677
|
action: <Sparkline data={[4, 6, 5, 9, 8, 12, 11, 15]} width={64} height={24} /> },
|
|
675
678
|
{ key: 'returns', label: 'Returns', dot: '#7c3aed', value: '0', quiet: true },
|
|
679
|
+
{ key: 'win', label: 'Win rate', value: 'No closed deals yet', valueType: 'text', quiet: true },
|
|
676
680
|
]} />`,
|
|
677
681
|
children: /* @__PURE__ */ jsx(FigureStrip, {
|
|
678
682
|
"aria-label": "Cells",
|
|
@@ -722,6 +726,13 @@ function Page() {
|
|
|
722
726
|
dot: "#7c3aed",
|
|
723
727
|
value: "0",
|
|
724
728
|
quiet: true
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
key: "win",
|
|
732
|
+
label: "Win rate",
|
|
733
|
+
value: "No closed deals yet",
|
|
734
|
+
valueType: "text",
|
|
735
|
+
quiet: true
|
|
725
736
|
}
|
|
726
737
|
]
|
|
727
738
|
})
|
|
@@ -1344,6 +1355,12 @@ const [active, setActive] = useState<string | null>('orders')
|
|
|
1344
1355
|
type: "boolean",
|
|
1345
1356
|
description: "Nothing to show: the figure goes quiet."
|
|
1346
1357
|
},
|
|
1358
|
+
{
|
|
1359
|
+
name: "valueType",
|
|
1360
|
+
type: "'figure' | 'text'",
|
|
1361
|
+
default: "'figure'",
|
|
1362
|
+
description: "A value that is words takes text: body type that wraps, so it does not stand in the figure's face beside the numbers."
|
|
1363
|
+
},
|
|
1347
1364
|
{
|
|
1348
1365
|
name: "tone",
|
|
1349
1366
|
type: "'neutral' | 'accent' | 'positive' | 'negative' | 'warning' | 'info'",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as DocLink } from "./host-B6znjEgQ.js";
|
|
3
|
-
import { n as REACT_RANGE, t as CONSTELLATION_VERSION } from "./release-
|
|
3
|
+
import { n as REACT_RANGE, t as CONSTELLATION_VERSION } from "./release-CBaMurIe.js";
|
|
4
4
|
import { a as DocTable, d as Section$1, i as DocPage, l as Note, n as CodeBlock$1, o as Example, s as Guidelines, u as PropsTable } from "./docs-lM2UBSir.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Button, IconButton, Menu, MenuContent, MenuItem, MenuTrigger, ThemeScope, Tooltip, useThemeScope } from "@orbitcommerce/constellation";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { r as ForAudience } from "./host-B6znjEgQ.js";
|
|
3
|
-
import { t as CONSTELLATION_VERSION } from "./release-
|
|
3
|
+
import { t as CONSTELLATION_VERSION } from "./release-CBaMurIe.js";
|
|
4
4
|
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, u as PropsTable } from "./docs-lM2UBSir.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Button, OrbitLogo, ShellBrand, Sidebar, SidebarFooter, SidebarHeader } from "@orbitcommerce/constellation";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as DocLink } from "./host-B6znjEgQ.js";
|
|
3
|
-
import { o as pagesIn, t as CATEGORIES } from "./registry-
|
|
3
|
+
import { o as pagesIn, t as CATEGORIES } from "./registry-BraP_Jwt.js";
|
|
4
4
|
import { c as ImportLine, i as DocPage } from "./docs-lM2UBSir.js";
|
|
5
5
|
import { useEffect, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -132,7 +132,7 @@ var PLANS = [
|
|
|
132
132
|
{
|
|
133
133
|
value: "growth",
|
|
134
134
|
label: "Growth",
|
|
135
|
-
description: "Unlimited products and two staff.",
|
|
135
|
+
description: "Unlimited products and two staff. Abandoned basket emails, gift cards and the reports you need to grow.",
|
|
136
136
|
price: {
|
|
137
137
|
amount: 25,
|
|
138
138
|
compareAt: 35,
|
|
@@ -1170,7 +1170,8 @@ const [error, setError] = useState<string>()
|
|
|
1170
1170
|
>
|
|
1171
1171
|
<RadioGroupItem value="starter" label="Starter" description="One shop, up to 100 products."
|
|
1172
1172
|
price={{ free: true }} current badge={<Badge size="sm">Current</Badge>} selectedPill />
|
|
1173
|
-
<RadioGroupItem value="growth" label="Growth"
|
|
1173
|
+
<RadioGroupItem value="growth" label="Growth"
|
|
1174
|
+
description="Unlimited products and two staff. Abandoned basket emails, gift cards and the reports you need to grow."
|
|
1174
1175
|
price={{ amount: 25, compareAt: 35, unit: '/mo', unitLabel: 'per month', note: '14-day free trial' }}
|
|
1175
1176
|
badge={<Badge size="sm" tone="accent">Recommended</Badge>} selectedPill />
|
|
1176
1177
|
<RadioGroupItem value="scale" label="Scale" description="Ten staff, B2B pricing and the API."
|
|
@@ -335,7 +335,7 @@ function orderOf(entry) {
|
|
|
335
335
|
var PAGES = Object.entries(/* @__PURE__ */ Object.assign({
|
|
336
336
|
"../pages/components/accordion.tsx": () => import("./accordion-Sg0TUqxB.js"),
|
|
337
337
|
"../pages/components/address-autocomplete.tsx": () => import("./address-autocomplete-DP0PUOlK.js"),
|
|
338
|
-
"../pages/components/address-block.tsx": () => import("./address-block-
|
|
338
|
+
"../pages/components/address-block.tsx": () => import("./address-block-BvxQWBTy.js"),
|
|
339
339
|
"../pages/components/address-fields.tsx": () => import("./address-fields-CwSqro3W.js"),
|
|
340
340
|
"../pages/components/ai-highlight.tsx": () => import("./ai-highlight-D3x2vD83.js"),
|
|
341
341
|
"../pages/components/alert.tsx": () => import("./alert-D3i7xZTU.js"),
|
|
@@ -351,7 +351,7 @@ var PAGES = Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
351
351
|
"../pages/components/button.tsx": () => import("./button-DAyfssDY.js"),
|
|
352
352
|
"../pages/components/calendar.tsx": () => import("./calendar-Ds7KsgSI.js"),
|
|
353
353
|
"../pages/components/canvas-stage.tsx": () => import("./canvas-stage-1KiPspkX.js"),
|
|
354
|
-
"../pages/components/card.tsx": () => import("./card-
|
|
354
|
+
"../pages/components/card.tsx": () => import("./card-CXZ3V1d4.js"),
|
|
355
355
|
"../pages/components/caret-suggestions.tsx": () => import("./caret-suggestions-oHI6QvqW.js"),
|
|
356
356
|
"../pages/components/chart-legend.tsx": () => import("./chart-legend-B20AbakD.js"),
|
|
357
357
|
"../pages/components/chat-composer.tsx": () => import("./chat-composer-CwzUJYIa.js"),
|
|
@@ -390,7 +390,7 @@ var PAGES = Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
390
390
|
"../pages/components/emoji-picker.tsx": () => import("./emoji-picker-CqaWaffD.js"),
|
|
391
391
|
"../pages/components/empty-state.tsx": () => import("./empty-state-4U2txFpI.js"),
|
|
392
392
|
"../pages/components/facet-filters.tsx": () => import("./facet-filters-McbBeY9e.js"),
|
|
393
|
-
"../pages/components/figure-strip.tsx": () => import("./figure-strip-
|
|
393
|
+
"../pages/components/figure-strip.tsx": () => import("./figure-strip-hg7txTc3.js"),
|
|
394
394
|
"../pages/components/figure-tabs.tsx": () => import("./figure-tabs-QOeQMY6N.js"),
|
|
395
395
|
"../pages/components/figure.tsx": () => import("./figure-D-HF5vCj.js"),
|
|
396
396
|
"../pages/components/file-chip.tsx": () => import("./file-chip-DMDjtlqQ.js"),
|
|
@@ -446,7 +446,7 @@ var PAGES = Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
446
446
|
"../pages/components/phone-input.tsx": () => import("./phone-input-B3G7Qpb2.js"),
|
|
447
447
|
"../pages/components/plan-card.tsx": () => import("./plan-card-DRaA6RuB.js"),
|
|
448
448
|
"../pages/components/plan-comparison.tsx": () => import("./plan-comparison-BVIGTtbd.js"),
|
|
449
|
-
"../pages/components/plan-grid.tsx": () => import("./plan-grid-
|
|
449
|
+
"../pages/components/plan-grid.tsx": () => import("./plan-grid-BCPvtP8J.js"),
|
|
450
450
|
"../pages/components/point-list.tsx": () => import("./point-list-BbPmZjsm.js"),
|
|
451
451
|
"../pages/components/popover.tsx": () => import("./popover-C3Oar9D5.js"),
|
|
452
452
|
"../pages/components/presence-avatars.tsx": () => import("./presence-avatars-CRZIk8n9.js"),
|
|
@@ -456,7 +456,7 @@ var PAGES = Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
456
456
|
"../pages/components/profile-hero.tsx": () => import("./profile-hero-CC9dUzuN.js"),
|
|
457
457
|
"../pages/components/progress-ring.tsx": () => import("./progress-ring-JuOAwk2T.js"),
|
|
458
458
|
"../pages/components/progress.tsx": () => import("./progress-CP_awmo4.js"),
|
|
459
|
-
"../pages/components/radio-group.tsx": () => import("./radio-group-
|
|
459
|
+
"../pages/components/radio-group.tsx": () => import("./radio-group-CbiibLwn.js"),
|
|
460
460
|
"../pages/components/radius-control.tsx": () => import("./radius-control-B2kRA2Ch.js"),
|
|
461
461
|
"../pages/components/rating.tsx": () => import("./rating-CweKN2SX.js"),
|
|
462
462
|
"../pages/components/record-layout.tsx": () => import("./record-layout-DUP_X0RL.js"),
|
|
@@ -504,8 +504,8 @@ var PAGES = Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
504
504
|
"../pages/components/success-mark.tsx": () => import("./success-mark-CqFTOBEu.js"),
|
|
505
505
|
"../pages/components/swatch.tsx": () => import("./swatch-H_kNvHuC.js"),
|
|
506
506
|
"../pages/components/switch.tsx": () => import("./switch-C93K6j9h.js"),
|
|
507
|
-
"../pages/components/table.tsx": () => import("./table-
|
|
508
|
-
"../pages/components/tabs.tsx": () => import("./tabs-
|
|
507
|
+
"../pages/components/table.tsx": () => import("./table-mq_pNXza.js"),
|
|
508
|
+
"../pages/components/tabs.tsx": () => import("./tabs-Cf4MZ8Fq.js"),
|
|
509
509
|
"../pages/components/tag-input.tsx": () => import("./tag-input-BjZWKKRJ.js"),
|
|
510
510
|
"../pages/components/task-card.tsx": () => import("./task-card-Dv0sR1-w.js"),
|
|
511
511
|
"../pages/components/textarea.tsx": () => import("./textarea-CCM-SnGN.js"),
|
|
@@ -528,16 +528,16 @@ var PAGES = Object.entries(/* @__PURE__ */ Object.assign({
|
|
|
528
528
|
"../pages/components/weekly-hours.tsx": () => import("./weekly-hours-i2EpsmTx.js"),
|
|
529
529
|
"../pages/components/widget-preview.tsx": () => import("./widget-preview-CUJMyZ_k.js"),
|
|
530
530
|
"../pages/components/working-status.tsx": () => import("./working-status-CENemSsw.js"),
|
|
531
|
-
"../pages/foundations/colour.tsx": () => import("./colour-
|
|
531
|
+
"../pages/foundations/colour.tsx": () => import("./colour-Blv4aPli.js"),
|
|
532
532
|
"../pages/foundations/icons.tsx": () => import("./icons-CJ9Aar3d.js"),
|
|
533
|
-
"../pages/foundations/logo.tsx": () => import("./logo-
|
|
533
|
+
"../pages/foundations/logo.tsx": () => import("./logo-pmHCkArD.js"),
|
|
534
534
|
"../pages/foundations/motion.tsx": () => import("./motion-CrXtiBvA.js"),
|
|
535
535
|
"../pages/foundations/shape.tsx": () => import("./shape-DzniHAVT.js"),
|
|
536
536
|
"../pages/foundations/typography.tsx": () => import("./typography-BSijtiRl.js"),
|
|
537
537
|
"../pages/patterns/app-shell.tsx": () => import("./app-shell-D4hdlHps.js"),
|
|
538
538
|
"../pages/patterns/home-dashboard.tsx": () => import("./home-dashboard-CxPmvduE.js"),
|
|
539
|
-
"../pages/start/installation.tsx": () => import("./installation-
|
|
540
|
-
"../pages/start/overview.tsx": () => import("./overview-
|
|
539
|
+
"../pages/start/installation.tsx": () => import("./installation-BMhneI9u.js"),
|
|
540
|
+
"../pages/start/overview.tsx": () => import("./overview-CT0A0qFa.js"),
|
|
541
541
|
"../pages/start/principles.tsx": () => import("./principles-pnDyfHpK.js")
|
|
542
542
|
})).map(([file, load]) => {
|
|
543
543
|
const [, group, name] = file.match(/\.\.\/pages\/([^/]+)\/([^/]+)\.tsx$/) ?? [];
|
|
@@ -2055,7 +2055,14 @@ function Page() {
|
|
|
2055
2055
|
children: /* @__PURE__ */ jsx(FramedDemo, {})
|
|
2056
2056
|
}), /* @__PURE__ */ jsx(SubSection, {
|
|
2057
2057
|
title: "Shadows on the edges",
|
|
2058
|
-
description: /* @__PURE__ */
|
|
2058
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
2059
|
+
"While a table is wider than its frame, each edge with columns beyond it casts a soft shadow: the end edge until the table has scrolled to its end, the start edge once it has left its start. A table that fits, or one at its start, shows none on that side. The frame marks itself with ",
|
|
2060
|
+
/* @__PURE__ */ jsx("code", { children: "data-scroll-start" }),
|
|
2061
|
+
" and",
|
|
2062
|
+
" ",
|
|
2063
|
+
/* @__PURE__ */ jsx("code", { children: "data-scroll-end" }),
|
|
2064
|
+
" as it scrolls and as it or its table changes size, and the shadows follow those marks, so they are the same in every browser. An edge that a column is pinned to draws none: the pinned column draws its own seam."
|
|
2065
|
+
] }),
|
|
2059
2066
|
children: /* @__PURE__ */ jsx(Example, {
|
|
2060
2067
|
align: "fill",
|
|
2061
2068
|
code: `<TableFrame role="region" aria-label="Sales by month, scrolls sideways" tabIndex={0}>
|
|
@@ -1515,6 +1515,7 @@ const [rank, setRank] = useState<'revenue' | 'units'>('revenue')
|
|
|
1515
1515
|
/* @__PURE__ */ jsx("code", { children: "aria-label" }),
|
|
1516
1516
|
" when nothing nearby says what the tabs are for."
|
|
1517
1517
|
] }),
|
|
1518
|
+
"The focus ring shows only when a tab is reached from the keyboard (Tab or the arrow keys), never after a mouse or touch press.",
|
|
1518
1519
|
/* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1519
1520
|
"Counts are read with the label (\"Variants 3\"). A step adds its status after the label (\"Regions, in progress\"); ",
|
|
1520
1521
|
/* @__PURE__ */ jsx("code", { children: "statusLabel" }),
|
package/manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbitcommerce/constellation-docs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"constellation": {
|
|
5
5
|
"name": "@orbitcommerce/constellation",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.3.0"
|
|
7
7
|
},
|
|
8
8
|
"groups": [
|
|
9
9
|
{
|
|
@@ -7662,7 +7662,12 @@
|
|
|
7662
7662
|
{
|
|
7663
7663
|
"id": "basics",
|
|
7664
7664
|
"title": "Basics",
|
|
7665
|
-
"text": "The customer column of an order. An address is lines, the addressee first in ink at 500, then the street, the town, county and postcode on one line, the country and the phone, with any part that is empty left out. mapHref adds a \"View map\" link that opens in a new tab (true searches a map for the address). A billing address that is the shipping one says so with sameAsShipping."
|
|
7665
|
+
"text": "The customer column of an order. An address is lines, the addressee first in ink at 500, then the street, the town, county and postcode on one line, the country and the phone, with any part that is empty left out. The phone is a tap-to-call link. mapHref adds a \"View map\" link that opens in a new tab (true searches a map for the address). A billing address that is the shipping one says so with sameAsShipping."
|
|
7666
|
+
},
|
|
7667
|
+
{
|
|
7668
|
+
"id": "reach",
|
|
7669
|
+
"title": "Phone and email",
|
|
7670
|
+
"text": "Under the address, the phone is a tap-to-call link and the email (email) a mailto link, both in the address's ink and underlined on hover. phone takes the place of the address's own. The link dials the number as it is shown, with the spaces, brackets and dashes taken out and a leading + kept; the (0) written after a country code is left out, so \"+44 (0)113 496 0000\" calls +441134960000, and words after the number (\"ext. 12\") are not dialled. A phone with no digits in it stays text."
|
|
7666
7671
|
},
|
|
7667
7672
|
{
|
|
7668
7673
|
"id": "empty",
|
|
@@ -9699,7 +9704,7 @@
|
|
|
9699
9704
|
{
|
|
9700
9705
|
"id": "narrow",
|
|
9701
9706
|
"title": "On a narrow card",
|
|
9702
|
-
"text": "The header's actions sit beside the title while the title keeps 7rem (112px), as a row list keeps for its words. On a card too narrow for that, on a phone or in a side column, they drop under the title and the description, at the start and 12px below the words, so the title is never squeezed to a letter a line. It goes by what the actions need, not by the card's width: a badge, a switch or a short button stays beside the title wherever it fits."
|
|
9707
|
+
"text": "The header's actions sit beside the title while the title keeps 7rem (112px), as a row list keeps for its words. On a card too narrow for that, on a phone or in a side column, they drop under the title and the description, at the start and 12px below the words, so the title is never squeezed to a letter a line. It goes by what the actions need, not by the card's width: a badge, a switch or a short button stays beside the title wherever it fits. Actions wider than the card wrap onto further lines, at the start, each control at its full width, so nothing runs past the card's edge."
|
|
9703
9708
|
},
|
|
9704
9709
|
{
|
|
9705
9710
|
"id": "padding",
|
|
@@ -12627,7 +12632,7 @@
|
|
|
12627
12632
|
{
|
|
12628
12633
|
"id": "cells",
|
|
12629
12634
|
"title": "Icon, dot, tone, quiet and an action",
|
|
12630
|
-
"text": "Most strips are words and figures, and that is the default. When a figure needs more, an item takes an icon before the label, a dot that ties it to a series or a column (a tone, or any colour), a tone for the one figure that needs chasing, quiet for a figure with nothing to show, and an action after the figure: a small button, a sparkline."
|
|
12635
|
+
"text": "Most strips are words and figures, and that is the default. When a figure needs more, an item takes an icon before the label, a dot that ties it to a series or a column (a tone, or any colour), a tone for the one figure that needs chasing, quiet for a figure with nothing to show, and an action after the figure: a small button, a sparkline. A value that is words, not a figure, takes valueType=\"text\": body type that wraps, so it does not stand in the figure's face beside the numbers."
|
|
12631
12636
|
},
|
|
12632
12637
|
{
|
|
12633
12638
|
"id": "filter",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbitcommerce/constellation-docs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "The Constellation by Orbit Commerce documentation pages, packaged for developers.orbitcommerce.net. Not for use in apps: install @orbitcommerce/constellation.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Orbit Commerce",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"manifest.json"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@orbitcommerce/constellation": "1.
|
|
26
|
-
"motion": "^
|
|
25
|
+
"@orbitcommerce/constellation": "1.3.0",
|
|
26
|
+
"motion": "^14.2.0",
|
|
27
27
|
"shiki": "^4.4.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|