@orbitcommerce/constellation-docs 0.0.0-stage → 1.0.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 +8260 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +308 -0
- package/dist/pages/Playground-CNbBbErC.js +129 -0
- package/dist/pages/_figures-data-BDmScEny.js +606 -0
- package/dist/pages/_foundations-blXWyYh8.js +30 -0
- package/dist/pages/_overlays-specimens-Dpn6oiyH.js +310 -0
- package/dist/pages/alert-BD4e6QTh.js +769 -0
- package/dist/pages/app-shell-KbA-nRqZ.js +1479 -0
- package/dist/pages/area-chart-B91dLcGo.js +562 -0
- package/dist/pages/avatar-DPPHXJAu.js +713 -0
- package/dist/pages/badge-C9JR0thI.js +729 -0
- package/dist/pages/button-D3V912P4.js +518 -0
- package/dist/pages/calendar-DSDZ9nRH.js +630 -0
- package/dist/pages/card-DUggbis3.js +659 -0
- package/dist/pages/checkbox-DwimQaK3.js +365 -0
- package/dist/pages/colour-BwuO8xAv.js +1498 -0
- package/dist/pages/command-palette-xAD7fOg6.js +1243 -0
- package/dist/pages/date-picker-BYSa816m.js +1421 -0
- package/dist/pages/delta-CtAo0eIM.js +574 -0
- package/dist/pages/dialog-BRAf4LMh.js +1451 -0
- package/dist/pages/docs-BNOb7AqR.js +515 -0
- package/dist/pages/empty-state-C-mLrXW2.js +417 -0
- package/dist/pages/figure-tabs-CoPFzzKz.js +460 -0
- package/dist/pages/home-dashboard-CFQwDtC9.js +959 -0
- package/dist/pages/host-B6znjEgQ.js +109 -0
- package/dist/pages/icon-button-C9eSVPPW.js +861 -0
- package/dist/pages/icons-sxkTs5Ob.js +473 -0
- package/dist/pages/input-KF9Gkawf.js +1093 -0
- package/dist/pages/installation-DpsX8G_n.js +445 -0
- package/dist/pages/kbd-cNfDoikz.js +544 -0
- package/dist/pages/live-globe-ClvLn9Lb.js +571 -0
- package/dist/pages/logo-BfGF1Pq9.js +571 -0
- package/dist/pages/menu-by2sgQ09.js +1618 -0
- package/dist/pages/motion-BvTGc2Dk.js +855 -0
- package/dist/pages/orbit-spinner-Dil1Z3Oy.js +332 -0
- package/dist/pages/overview-BPEbZQ6g.js +130 -0
- package/dist/pages/pagination-BBUnGvv5.js +249 -0
- package/dist/pages/popover-Db1gLDpb.js +1136 -0
- package/dist/pages/principles-CeAIOIdt.js +483 -0
- package/dist/pages/radio-group-CkdBWWfG.js +1077 -0
- package/dist/pages/registry-CroHzK9I.js +244 -0
- package/dist/pages/release-Dvo684UJ.js +13 -0
- package/dist/pages/rolling-number-qmvH84Mq.js +529 -0
- package/dist/pages/search-field-BN7MWGQ4.js +693 -0
- package/dist/pages/segmented-control-CTbIpRBW.js +777 -0
- package/dist/pages/select-DguELoRR.js +1429 -0
- package/dist/pages/separator-CPZub9pv.js +351 -0
- package/dist/pages/shape-DKvA0YKr.js +627 -0
- package/dist/pages/skeleton-DLuBhP46.js +561 -0
- package/dist/pages/sparkline-DMMYGbHn.js +668 -0
- package/dist/pages/switch-B-Qe4kcT.js +517 -0
- package/dist/pages/table-AMoODng4.js +607 -0
- package/dist/pages/tabs-B4M-usCV.js +1455 -0
- package/dist/pages/textarea-fTuUZRQb.js +693 -0
- package/dist/pages/toast-CKP03zjy.js +1176 -0
- package/dist/pages/tooltip-CBYil3kt.js +697 -0
- package/dist/pages/typography-PCbg8Bhg.js +735 -0
- package/manifest.json +3125 -0
- package/package.json +35 -4
|
@@ -0,0 +1,769 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as DocLink } from "./host-B6znjEgQ.js";
|
|
3
|
+
import { a as DocTable, d as Section, 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-BNOb7AqR.js";
|
|
4
|
+
import { t as Playground } from "./Playground-CNbBbErC.js";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Alert, Button, Card, CardHeader, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Field, Input } from "@orbitcommerce/constellation";
|
|
8
|
+
import { ArrowCounterClockwiseIcon, DownloadSimpleIcon, TruckIcon } from "@orbitcommerce/constellation/icons";
|
|
9
|
+
//#region src/pages/components/alert.tsx
|
|
10
|
+
function Preview() {
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
12
|
+
className: "alert-preview",
|
|
13
|
+
children: [/* @__PURE__ */ jsx(Alert, {
|
|
14
|
+
tone: "info",
|
|
15
|
+
children: "Your store is in test mode."
|
|
16
|
+
}), /* @__PURE__ */ jsx(Alert, {
|
|
17
|
+
tone: "warning",
|
|
18
|
+
children: "3 products need a weight."
|
|
19
|
+
})]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
var quote = (v) => String(v).replace(/"/g, """);
|
|
23
|
+
var PLAYGROUND = [
|
|
24
|
+
{
|
|
25
|
+
prop: "tone",
|
|
26
|
+
type: "select",
|
|
27
|
+
options: [
|
|
28
|
+
"neutral",
|
|
29
|
+
"info",
|
|
30
|
+
"success",
|
|
31
|
+
"warning",
|
|
32
|
+
"critical"
|
|
33
|
+
],
|
|
34
|
+
default: "warning",
|
|
35
|
+
toAttr: (v) => v === "info" ? null : `tone="${v}"`
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
prop: "title",
|
|
39
|
+
type: "text",
|
|
40
|
+
default: "Weights missing",
|
|
41
|
+
toAttr: (v) => v ? `title="${quote(v)}"` : null
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
prop: "children",
|
|
45
|
+
type: "text",
|
|
46
|
+
default: "3 products are missing a weight, so shipping cannot be calculated."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
prop: "actions",
|
|
50
|
+
type: "boolean",
|
|
51
|
+
default: true,
|
|
52
|
+
toAttr: (v) => v ? "actions={<Button size=\"sm\">Review products</Button>}" : null
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
prop: "icon",
|
|
56
|
+
type: "select",
|
|
57
|
+
options: ["tone", "none"],
|
|
58
|
+
default: "tone",
|
|
59
|
+
toAttr: (v) => v === "none" ? "icon={null}" : null
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
prop: "dismissible",
|
|
63
|
+
type: "boolean",
|
|
64
|
+
default: false
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
/** Renders a dismissible alert, and a way to bring it back once it has gone. */
|
|
68
|
+
function Returning({ render }) {
|
|
69
|
+
const [run, setRun] = useState(0);
|
|
70
|
+
const [gone, setGone] = useState(false);
|
|
71
|
+
if (gone) return /* @__PURE__ */ jsx(Button, {
|
|
72
|
+
size: "sm",
|
|
73
|
+
variant: "soft",
|
|
74
|
+
icon: /* @__PURE__ */ jsx(ArrowCounterClockwiseIcon, {}),
|
|
75
|
+
onClick: () => {
|
|
76
|
+
setGone(false);
|
|
77
|
+
setRun((n) => n + 1);
|
|
78
|
+
},
|
|
79
|
+
children: "Show the alert again"
|
|
80
|
+
});
|
|
81
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: render(() => setGone(true), run) });
|
|
82
|
+
}
|
|
83
|
+
function PlaygroundAlert({ values }) {
|
|
84
|
+
return /* @__PURE__ */ jsx(Returning, { render: (onDismiss, key) => /* @__PURE__ */ jsx("div", {
|
|
85
|
+
className: "alert-stage",
|
|
86
|
+
children: /* @__PURE__ */ jsx(Alert, {
|
|
87
|
+
tone: values.tone,
|
|
88
|
+
title: String(values.title) || void 0,
|
|
89
|
+
icon: values.icon === "none" ? null : void 0,
|
|
90
|
+
actions: values.actions ? /* @__PURE__ */ jsx(Button, {
|
|
91
|
+
size: "sm",
|
|
92
|
+
children: "Review products"
|
|
93
|
+
}) : void 0,
|
|
94
|
+
dismissible: Boolean(values.dismissible),
|
|
95
|
+
onDismiss: values.dismissible ? onDismiss : void 0,
|
|
96
|
+
children: String(values.children) || void 0
|
|
97
|
+
}, key)
|
|
98
|
+
}) });
|
|
99
|
+
}
|
|
100
|
+
var TONES = [
|
|
101
|
+
{
|
|
102
|
+
tone: "neutral",
|
|
103
|
+
message: "Prices include VAT at 20%. Customers pay what they see."
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
tone: "info",
|
|
107
|
+
message: "Your store is in test mode. Orders will not be charged."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
tone: "success",
|
|
111
|
+
message: "Stripe is connected. Payouts reach your bank every weekday."
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
tone: "warning",
|
|
115
|
+
message: "3 products are missing a weight, so shipping cannot be calculated."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
tone: "critical",
|
|
119
|
+
message: "Payment for order #1043 failed. The customer's card was declined."
|
|
120
|
+
}
|
|
121
|
+
];
|
|
122
|
+
function ToneStack() {
|
|
123
|
+
return /* @__PURE__ */ jsx("div", {
|
|
124
|
+
className: "alert-stack",
|
|
125
|
+
children: TONES.map(({ tone, message }) => /* @__PURE__ */ jsx(Alert, {
|
|
126
|
+
tone,
|
|
127
|
+
children: message
|
|
128
|
+
}, tone))
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
var wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
132
|
+
function RetryReport() {
|
|
133
|
+
const [state, setState] = useState("failed");
|
|
134
|
+
const retry = async () => {
|
|
135
|
+
setState("loading");
|
|
136
|
+
await wait(1100);
|
|
137
|
+
setState("loaded");
|
|
138
|
+
};
|
|
139
|
+
return /* @__PURE__ */ jsx("div", {
|
|
140
|
+
className: "alert-stack",
|
|
141
|
+
children: state === "loaded" ? /* @__PURE__ */ jsxs("div", {
|
|
142
|
+
className: "alert-report",
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ jsx("span", {
|
|
145
|
+
className: "alert-report__label",
|
|
146
|
+
children: "Visits this week"
|
|
147
|
+
}),
|
|
148
|
+
/* @__PURE__ */ jsx("span", {
|
|
149
|
+
className: "alert-report__value",
|
|
150
|
+
children: "1,284"
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ jsx(Button, {
|
|
153
|
+
size: "xs",
|
|
154
|
+
variant: "soft",
|
|
155
|
+
icon: /* @__PURE__ */ jsx(ArrowCounterClockwiseIcon, {}),
|
|
156
|
+
onClick: () => setState("failed"),
|
|
157
|
+
children: "Replay"
|
|
158
|
+
})
|
|
159
|
+
]
|
|
160
|
+
}) : /* @__PURE__ */ jsx(Alert, {
|
|
161
|
+
tone: "critical",
|
|
162
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
163
|
+
size: "sm",
|
|
164
|
+
loading: state === "loading",
|
|
165
|
+
onClick: () => void retry(),
|
|
166
|
+
children: "Try again"
|
|
167
|
+
}),
|
|
168
|
+
children: "Your traffic report could not be loaded."
|
|
169
|
+
})
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
function DismissDemo() {
|
|
173
|
+
const [shown, setShown] = useState(true);
|
|
174
|
+
const [run, setRun] = useState(0);
|
|
175
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
176
|
+
className: "alert-demo",
|
|
177
|
+
children: [
|
|
178
|
+
shown ? /* @__PURE__ */ jsx(Alert, {
|
|
179
|
+
tone: "info",
|
|
180
|
+
title: "Schedule discounts ahead",
|
|
181
|
+
dismissible: true,
|
|
182
|
+
onDismiss: () => setShown(false),
|
|
183
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
184
|
+
size: "sm",
|
|
185
|
+
children: "Set a start time"
|
|
186
|
+
}),
|
|
187
|
+
children: "Discount codes can now start and end at a set time, so a weekend sale runs itself."
|
|
188
|
+
}, run) : null,
|
|
189
|
+
/* @__PURE__ */ jsx(Field, {
|
|
190
|
+
label: "Discount code",
|
|
191
|
+
hint: "Customers enter this at checkout.",
|
|
192
|
+
children: /* @__PURE__ */ jsx(Input, { defaultValue: "AUTUMN15" })
|
|
193
|
+
}),
|
|
194
|
+
shown ? null : /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, {
|
|
195
|
+
size: "sm",
|
|
196
|
+
variant: "soft",
|
|
197
|
+
icon: /* @__PURE__ */ jsx(ArrowCounterClockwiseIcon, {}),
|
|
198
|
+
onClick: () => {
|
|
199
|
+
setShown(true);
|
|
200
|
+
setRun((n) => n + 1);
|
|
201
|
+
},
|
|
202
|
+
children: "Show the alert again"
|
|
203
|
+
}) })
|
|
204
|
+
]
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function ZoneDialog() {
|
|
208
|
+
return /* @__PURE__ */ jsxs(Dialog, { children: [/* @__PURE__ */ jsx(DialogTrigger, {
|
|
209
|
+
asChild: true,
|
|
210
|
+
children: /* @__PURE__ */ jsx(Button, { children: "Edit shipping zone" })
|
|
211
|
+
}), /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
212
|
+
/* @__PURE__ */ jsxs(DialogHeader, { children: [/* @__PURE__ */ jsx(DialogTitle, { children: "Edit UK mainland" }), /* @__PURE__ */ jsx(DialogDescription, { children: "The regions this zone covers and what delivery costs there." })] }),
|
|
213
|
+
/* @__PURE__ */ jsxs(DialogBody, {
|
|
214
|
+
className: "alert-dialog-body",
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ jsx(Alert, {
|
|
217
|
+
tone: "info",
|
|
218
|
+
children: "Changes apply to new orders. The 14 orders waiting to ship keep the rate they were charged."
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ jsx(Field, {
|
|
221
|
+
label: "Zone name",
|
|
222
|
+
children: /* @__PURE__ */ jsx(Input, { defaultValue: "UK mainland" })
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ jsx(Field, {
|
|
225
|
+
label: "Standard delivery",
|
|
226
|
+
hint: "Includes VAT at 20%",
|
|
227
|
+
children: /* @__PURE__ */ jsx(Input, {
|
|
228
|
+
prefix: "£",
|
|
229
|
+
inputMode: "decimal",
|
|
230
|
+
defaultValue: "4.95"
|
|
231
|
+
})
|
|
232
|
+
})
|
|
233
|
+
]
|
|
234
|
+
}),
|
|
235
|
+
/* @__PURE__ */ jsxs(DialogFooter, { children: [/* @__PURE__ */ jsx(DialogClose, {
|
|
236
|
+
asChild: true,
|
|
237
|
+
children: /* @__PURE__ */ jsx(Button, { children: "Cancel" })
|
|
238
|
+
}), /* @__PURE__ */ jsx(DialogClose, {
|
|
239
|
+
asChild: true,
|
|
240
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
241
|
+
variant: "primary",
|
|
242
|
+
children: "Save zone"
|
|
243
|
+
})
|
|
244
|
+
})] })
|
|
245
|
+
] })] });
|
|
246
|
+
}
|
|
247
|
+
var IMPORT_ERRORS = [
|
|
248
|
+
"Row 14, Oak standing desk: the price is empty.",
|
|
249
|
+
"Row 27, Arden ergonomic chair (grey): the SKU ARD-CHR-BLK is already used.",
|
|
250
|
+
"Row 51, Walnut monitor riser: the weight is not a number.",
|
|
251
|
+
"Row 88, Cable tray: the image link could not be opened."
|
|
252
|
+
];
|
|
253
|
+
function Page() {
|
|
254
|
+
return /* @__PURE__ */ jsxs(DocPage, {
|
|
255
|
+
title: "Alert",
|
|
256
|
+
status: "new",
|
|
257
|
+
importNames: ["Alert"],
|
|
258
|
+
lead: "An inline message inside a page, card or dialog: something the merchant should know about the thing in front of them, in plain words on its tone's pale wash. Not a toast: it stays beside the problem until the problem goes.",
|
|
259
|
+
children: [
|
|
260
|
+
/* @__PURE__ */ jsx(Section, {
|
|
261
|
+
id: "playground",
|
|
262
|
+
title: "Playground",
|
|
263
|
+
description: /* @__PURE__ */ jsx("p", { children: "Change the props. Turn on dismissible and press the cross to watch it leave." }),
|
|
264
|
+
children: /* @__PURE__ */ jsx(Playground, {
|
|
265
|
+
component: "Alert",
|
|
266
|
+
controls: PLAYGROUND,
|
|
267
|
+
childrenProp: "children",
|
|
268
|
+
render: (v) => /* @__PURE__ */ jsx(PlaygroundAlert, { values: v })
|
|
269
|
+
})
|
|
270
|
+
}),
|
|
271
|
+
/* @__PURE__ */ jsxs(Section, {
|
|
272
|
+
id: "tones",
|
|
273
|
+
title: "Tones",
|
|
274
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
275
|
+
"The tone is the meaning. Each one has its own icon and wash, and the words stay ink on all of them, so the message reads first and the colour backs it up. ",
|
|
276
|
+
/* @__PURE__ */ jsx("code", { children: "info" }),
|
|
277
|
+
" is the default."
|
|
278
|
+
] }),
|
|
279
|
+
children: [/* @__PURE__ */ jsx(Example, {
|
|
280
|
+
align: "fill",
|
|
281
|
+
code: `
|
|
282
|
+
<Alert tone="neutral">Prices include VAT at 20%. Customers pay what they see.</Alert>
|
|
283
|
+
<Alert tone="info">Your store is in test mode. Orders will not be charged.</Alert>
|
|
284
|
+
<Alert tone="success">Stripe is connected. Payouts reach your bank every weekday.</Alert>
|
|
285
|
+
<Alert tone="warning">3 products are missing a weight, so shipping cannot be calculated.</Alert>
|
|
286
|
+
<Alert tone="critical">Payment for order #1043 failed. The customer's card was declined.</Alert>`,
|
|
287
|
+
children: /* @__PURE__ */ jsx(ToneStack, {})
|
|
288
|
+
}), /* @__PURE__ */ jsx(SubSection, {
|
|
289
|
+
title: "What each tone means",
|
|
290
|
+
children: /* @__PURE__ */ jsx(DocTable, {
|
|
291
|
+
columns: [
|
|
292
|
+
"Tone",
|
|
293
|
+
"Means",
|
|
294
|
+
"For example",
|
|
295
|
+
"Announced"
|
|
296
|
+
],
|
|
297
|
+
rows: [
|
|
298
|
+
[
|
|
299
|
+
/* @__PURE__ */ jsx("code", { children: "neutral" }),
|
|
300
|
+
"Context with no judgement: a note or a tip.",
|
|
301
|
+
"Prices include VAT",
|
|
302
|
+
"Politely"
|
|
303
|
+
],
|
|
304
|
+
[
|
|
305
|
+
/* @__PURE__ */ jsx("code", { children: "info" }),
|
|
306
|
+
"Worth knowing, nothing to do yet.",
|
|
307
|
+
"Test mode, a new feature",
|
|
308
|
+
"Politely"
|
|
309
|
+
],
|
|
310
|
+
[
|
|
311
|
+
/* @__PURE__ */ jsx("code", { children: "success" }),
|
|
312
|
+
"Done and good, and it stays true.",
|
|
313
|
+
"Stripe connected, domain verified",
|
|
314
|
+
"Politely"
|
|
315
|
+
],
|
|
316
|
+
[
|
|
317
|
+
/* @__PURE__ */ jsx("code", { children: "warning" }),
|
|
318
|
+
"Needs the merchant soon, or something will go wrong.",
|
|
319
|
+
"Missing weights, low stock",
|
|
320
|
+
"At once"
|
|
321
|
+
],
|
|
322
|
+
[
|
|
323
|
+
/* @__PURE__ */ jsx("code", { children: "critical" }),
|
|
324
|
+
"Something failed or is blocked.",
|
|
325
|
+
"Payment failed, payouts paused",
|
|
326
|
+
"At once"
|
|
327
|
+
]
|
|
328
|
+
]
|
|
329
|
+
})
|
|
330
|
+
})]
|
|
331
|
+
}),
|
|
332
|
+
/* @__PURE__ */ jsx(Section, {
|
|
333
|
+
id: "title",
|
|
334
|
+
title: "With a title",
|
|
335
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
336
|
+
"Add a ",
|
|
337
|
+
/* @__PURE__ */ jsx("code", { children: "title" }),
|
|
338
|
+
" when the message runs past a sentence or two. The title says what happened in a few words; under it the message steps back to slate and explains."
|
|
339
|
+
] }),
|
|
340
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
341
|
+
align: "fill",
|
|
342
|
+
code: `
|
|
343
|
+
<Alert
|
|
344
|
+
tone="critical"
|
|
345
|
+
title="Payouts are paused"
|
|
346
|
+
actions={
|
|
347
|
+
<>
|
|
348
|
+
<Button size="sm">Verify identity</Button>
|
|
349
|
+
<Button size="sm" variant="ghost">Why this happens</Button>
|
|
350
|
+
</>
|
|
351
|
+
}
|
|
352
|
+
>
|
|
353
|
+
Stripe needs to confirm who you are before it can pay out £1,204.50. It usually takes a working day.
|
|
354
|
+
</Alert>`,
|
|
355
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
356
|
+
className: "alert-stack",
|
|
357
|
+
children: /* @__PURE__ */ jsx(Alert, {
|
|
358
|
+
tone: "critical",
|
|
359
|
+
title: "Payouts are paused",
|
|
360
|
+
actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
|
|
361
|
+
size: "sm",
|
|
362
|
+
children: "Verify identity"
|
|
363
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
364
|
+
size: "sm",
|
|
365
|
+
variant: "ghost",
|
|
366
|
+
children: "Why this happens"
|
|
367
|
+
})] }),
|
|
368
|
+
children: "Stripe needs to confirm who you are before it can pay out £1,204.50. It usually takes a working day."
|
|
369
|
+
})
|
|
370
|
+
})
|
|
371
|
+
})
|
|
372
|
+
}),
|
|
373
|
+
/* @__PURE__ */ jsx(Section, {
|
|
374
|
+
id: "actions",
|
|
375
|
+
title: "Actions",
|
|
376
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
377
|
+
/* @__PURE__ */ jsx("code", { children: "actions" }),
|
|
378
|
+
" takes one or two small buttons (",
|
|
379
|
+
/* @__PURE__ */ jsx("code", { children: "size=\"sm\"" }),
|
|
380
|
+
"): the move that fixes it, and perhaps a ghost button for a second, quieter one. They sit under the message. Press Try again."
|
|
381
|
+
] }),
|
|
382
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
383
|
+
align: "fill",
|
|
384
|
+
code: `
|
|
385
|
+
<Alert
|
|
386
|
+
tone="critical"
|
|
387
|
+
actions={<Button size="sm" loading={retrying} onClick={retry}>Try again</Button>}
|
|
388
|
+
>
|
|
389
|
+
Your traffic report could not be loaded.
|
|
390
|
+
</Alert>`,
|
|
391
|
+
children: /* @__PURE__ */ jsx(RetryReport, {})
|
|
392
|
+
})
|
|
393
|
+
}),
|
|
394
|
+
/* @__PURE__ */ jsxs(Section, {
|
|
395
|
+
id: "dismissing",
|
|
396
|
+
title: "Dismissing",
|
|
397
|
+
description: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("p", { children: [
|
|
398
|
+
/* @__PURE__ */ jsx("code", { children: "dismissible" }),
|
|
399
|
+
" adds a cross. Pressed, the alert fades, the space it leaves closes up so the content below glides into place, and it removes itself. ",
|
|
400
|
+
/* @__PURE__ */ jsx("code", { children: "onDismiss" }),
|
|
401
|
+
" runs once it has gone: use it to remember the choice. Passing ",
|
|
402
|
+
/* @__PURE__ */ jsx("code", { children: "onDismiss" }),
|
|
403
|
+
" on its own also shows the cross."
|
|
404
|
+
] }), /* @__PURE__ */ jsx("p", { children: "Only let merchants dismiss what they can safely ignore, such as news about a feature. A problem that is still there should stay until it is fixed." })] }),
|
|
405
|
+
children: [/* @__PURE__ */ jsx(Example, {
|
|
406
|
+
align: "fill",
|
|
407
|
+
code: `
|
|
408
|
+
const [shown, setShown] = useState(true)
|
|
409
|
+
|
|
410
|
+
{shown ? (
|
|
411
|
+
<Alert
|
|
412
|
+
tone="info"
|
|
413
|
+
title="Schedule discounts ahead"
|
|
414
|
+
dismissible
|
|
415
|
+
onDismiss={() => setShown(false)}
|
|
416
|
+
actions={<Button size="sm">Set a start time</Button>}
|
|
417
|
+
>
|
|
418
|
+
Discount codes can now start and end at a set time, so a weekend sale runs itself.
|
|
419
|
+
</Alert>
|
|
420
|
+
) : null}`,
|
|
421
|
+
children: /* @__PURE__ */ jsx(DismissDemo, {})
|
|
422
|
+
}), /* @__PURE__ */ jsx(Note, {
|
|
423
|
+
title: "Where focus goes",
|
|
424
|
+
children: "If focus was on the cross, it moves to the next control once the alert has gone (here, the discount code field), or to the one before it when the alert was last. Inside a dialog it stays inside the dialog."
|
|
425
|
+
})]
|
|
426
|
+
}),
|
|
427
|
+
/* @__PURE__ */ jsxs(Section, {
|
|
428
|
+
id: "in-context",
|
|
429
|
+
title: "In a card and a dialog",
|
|
430
|
+
description: /* @__PURE__ */ jsx("p", { children: "An alert sits at the top of what it is about: the card, the form or the dialog. It is a block that fills the width it is given and brings no margins, so the container spaces it." }),
|
|
431
|
+
children: [/* @__PURE__ */ jsx(Example, {
|
|
432
|
+
align: "fill",
|
|
433
|
+
code: `
|
|
434
|
+
<Card>
|
|
435
|
+
<CardHeader title="Shipping" description="How orders reach your customers." />
|
|
436
|
+
<Alert tone="warning" actions={<Button size="sm">Add weights</Button>}>
|
|
437
|
+
3 products are missing a weight, so shipping cannot be calculated for them at checkout.
|
|
438
|
+
</Alert>
|
|
439
|
+
<Field label="Default package" hint="Used when a product has no package of its own.">
|
|
440
|
+
<Input defaultValue="Medium box, 40 by 30 by 20 cm" />
|
|
441
|
+
</Field>
|
|
442
|
+
</Card>`,
|
|
443
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
444
|
+
className: "alert-card",
|
|
445
|
+
children: /* @__PURE__ */ jsxs(Card, { children: [
|
|
446
|
+
/* @__PURE__ */ jsx(CardHeader, {
|
|
447
|
+
title: "Shipping",
|
|
448
|
+
description: "How orders reach your customers."
|
|
449
|
+
}),
|
|
450
|
+
/* @__PURE__ */ jsx(Alert, {
|
|
451
|
+
tone: "warning",
|
|
452
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
453
|
+
size: "sm",
|
|
454
|
+
children: "Add weights"
|
|
455
|
+
}),
|
|
456
|
+
children: "3 products are missing a weight, so shipping cannot be calculated for them at checkout."
|
|
457
|
+
}),
|
|
458
|
+
/* @__PURE__ */ jsx(Field, {
|
|
459
|
+
label: "Default package",
|
|
460
|
+
hint: "Used when a product has no package of its own.",
|
|
461
|
+
children: /* @__PURE__ */ jsx(Input, { defaultValue: "Medium box, 40 by 30 by 20 cm" })
|
|
462
|
+
})
|
|
463
|
+
] })
|
|
464
|
+
})
|
|
465
|
+
}), /* @__PURE__ */ jsx(Example, {
|
|
466
|
+
code: `
|
|
467
|
+
<DialogBody>
|
|
468
|
+
<Alert tone="info">
|
|
469
|
+
Changes apply to new orders. The 14 orders waiting to ship keep the rate they were charged.
|
|
470
|
+
</Alert>
|
|
471
|
+
<Field label="Zone name">
|
|
472
|
+
<Input defaultValue="UK mainland" />
|
|
473
|
+
</Field>
|
|
474
|
+
</DialogBody>`,
|
|
475
|
+
children: /* @__PURE__ */ jsx(ZoneDialog, {})
|
|
476
|
+
})]
|
|
477
|
+
}),
|
|
478
|
+
/* @__PURE__ */ jsxs(Section, {
|
|
479
|
+
id: "long-content",
|
|
480
|
+
title: "Long content",
|
|
481
|
+
description: /* @__PURE__ */ jsx("p", { children: "The message can hold paragraphs and a list, and the actions wrap onto a second line when the alert is narrow. Keep lists short: the alert says what is wrong, the page it links to holds the detail." }),
|
|
482
|
+
children: [/* @__PURE__ */ jsx(Example, {
|
|
483
|
+
align: "fill",
|
|
484
|
+
code: `
|
|
485
|
+
<Alert
|
|
486
|
+
tone="critical"
|
|
487
|
+
title="4 products could not be imported"
|
|
488
|
+
actions={
|
|
489
|
+
<>
|
|
490
|
+
<Button size="sm" icon={<DownloadSimpleIcon />}>Download error report</Button>
|
|
491
|
+
<Button size="sm" variant="ghost">Import again</Button>
|
|
492
|
+
</>
|
|
493
|
+
}
|
|
494
|
+
>
|
|
495
|
+
<p>The other 112 products from catalogue-autumn.csv are in your store. Fix these rows, then import the file again:</p>
|
|
496
|
+
<ul>
|
|
497
|
+
<li>Row 14, Oak standing desk: the price is empty.</li>
|
|
498
|
+
<li>Row 27, Arden ergonomic chair (grey): the SKU ARD-CHR-BLK is already used.</li>
|
|
499
|
+
…
|
|
500
|
+
</ul>
|
|
501
|
+
</Alert>`,
|
|
502
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
503
|
+
className: "alert-narrow",
|
|
504
|
+
children: /* @__PURE__ */ jsxs(Alert, {
|
|
505
|
+
tone: "critical",
|
|
506
|
+
title: "4 products could not be imported",
|
|
507
|
+
actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
|
|
508
|
+
size: "sm",
|
|
509
|
+
icon: /* @__PURE__ */ jsx(DownloadSimpleIcon, {}),
|
|
510
|
+
children: "Download error report"
|
|
511
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
512
|
+
size: "sm",
|
|
513
|
+
variant: "ghost",
|
|
514
|
+
children: "Import again"
|
|
515
|
+
})] }),
|
|
516
|
+
children: [/* @__PURE__ */ jsx("p", { children: "The other 112 products from catalogue-autumn.csv are in your store. Fix these rows, then import the file again:" }), /* @__PURE__ */ jsx("ul", { children: IMPORT_ERRORS.map((line) => /* @__PURE__ */ jsx("li", { children: line }, line)) })]
|
|
517
|
+
})
|
|
518
|
+
})
|
|
519
|
+
}), /* @__PURE__ */ jsx(SubSection, {
|
|
520
|
+
title: "A title on its own",
|
|
521
|
+
description: /* @__PURE__ */ jsx("p", { children: "When the title says it all, leave out the message." }),
|
|
522
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
523
|
+
align: "fill",
|
|
524
|
+
code: `<Alert tone="success" title="Your domain harbourdesk.co.uk is connected" />`,
|
|
525
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
526
|
+
className: "alert-stack",
|
|
527
|
+
children: /* @__PURE__ */ jsx(Alert, {
|
|
528
|
+
tone: "success",
|
|
529
|
+
title: "Your domain harbourdesk.co.uk is connected"
|
|
530
|
+
})
|
|
531
|
+
})
|
|
532
|
+
})
|
|
533
|
+
})]
|
|
534
|
+
}),
|
|
535
|
+
/* @__PURE__ */ jsx(Section, {
|
|
536
|
+
id: "icon",
|
|
537
|
+
title: "Icon",
|
|
538
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
539
|
+
"Each tone brings its own Phosphor icon, drawn duotone so it reads as a tinted mark on the wash. Pass",
|
|
540
|
+
" ",
|
|
541
|
+
/* @__PURE__ */ jsx("code", { children: "icon" }),
|
|
542
|
+
" to use a picture that says more, coloured by the tone, or ",
|
|
543
|
+
/* @__PURE__ */ jsxs("code", { children: ["icon=", "{null}"] }),
|
|
544
|
+
" to leave it out."
|
|
545
|
+
] }),
|
|
546
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
547
|
+
align: "fill",
|
|
548
|
+
code: `
|
|
549
|
+
<Alert tone="neutral" icon={<TruckIcon weight="duotone" />}>
|
|
550
|
+
Orders placed before 2pm leave the warehouse the same working day.
|
|
551
|
+
</Alert>
|
|
552
|
+
<Alert tone="neutral" icon={null}>Prices on this page include VAT at 20%.</Alert>`,
|
|
553
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
554
|
+
className: "alert-stack",
|
|
555
|
+
children: [/* @__PURE__ */ jsx(Alert, {
|
|
556
|
+
tone: "neutral",
|
|
557
|
+
icon: /* @__PURE__ */ jsx(TruckIcon, { weight: "duotone" }),
|
|
558
|
+
children: "Orders placed before 2pm leave the warehouse the same working day."
|
|
559
|
+
}), /* @__PURE__ */ jsx(Alert, {
|
|
560
|
+
tone: "neutral",
|
|
561
|
+
icon: null,
|
|
562
|
+
children: "Prices on this page include VAT at 20%."
|
|
563
|
+
})]
|
|
564
|
+
})
|
|
565
|
+
})
|
|
566
|
+
}),
|
|
567
|
+
/* @__PURE__ */ jsx(Section, {
|
|
568
|
+
id: "both-themes",
|
|
569
|
+
title: "In both themes",
|
|
570
|
+
description: /* @__PURE__ */ jsx("p", { children: "Every tone, light and dark side by side. In dark the washes are the tone at 14% over the surface, the icons lift, and a hairline in the tone keeps each box crisp. The title holds at least 12:1 and the message at least 6.4:1 on every wash." }),
|
|
571
|
+
children: /* @__PURE__ */ jsx(ThemePair, {
|
|
572
|
+
align: "fill",
|
|
573
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
574
|
+
className: "alert-pair",
|
|
575
|
+
children: [TONES.map(({ tone, message }) => /* @__PURE__ */ jsx(Alert, {
|
|
576
|
+
tone,
|
|
577
|
+
children: message
|
|
578
|
+
}, tone)), /* @__PURE__ */ jsx(Returning, { render: (onDismiss, key) => /* @__PURE__ */ jsx(Alert, {
|
|
579
|
+
tone: "critical",
|
|
580
|
+
title: "Payouts are paused",
|
|
581
|
+
onDismiss,
|
|
582
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
583
|
+
size: "sm",
|
|
584
|
+
children: "Verify identity"
|
|
585
|
+
}),
|
|
586
|
+
children: "Stripe needs to confirm who you are before it can pay out £1,204.50."
|
|
587
|
+
}, key) })]
|
|
588
|
+
})
|
|
589
|
+
})
|
|
590
|
+
}),
|
|
591
|
+
/* @__PURE__ */ jsxs(Section, {
|
|
592
|
+
id: "guidelines",
|
|
593
|
+
title: "Guidelines",
|
|
594
|
+
children: [
|
|
595
|
+
/* @__PURE__ */ jsx(DoDont, {
|
|
596
|
+
do: {
|
|
597
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
598
|
+
className: "alert-dodont",
|
|
599
|
+
children: /* @__PURE__ */ jsx(Alert, {
|
|
600
|
+
tone: "warning",
|
|
601
|
+
actions: /* @__PURE__ */ jsx(Button, {
|
|
602
|
+
size: "sm",
|
|
603
|
+
children: "Add weights"
|
|
604
|
+
}),
|
|
605
|
+
children: "3 products are missing a weight, so shipping cannot be calculated."
|
|
606
|
+
})
|
|
607
|
+
}),
|
|
608
|
+
caption: "Say what happened, what it means, and the next move."
|
|
609
|
+
},
|
|
610
|
+
dont: {
|
|
611
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
612
|
+
className: "alert-dodont",
|
|
613
|
+
children: /* @__PURE__ */ jsx(Alert, {
|
|
614
|
+
tone: "critical",
|
|
615
|
+
children: "Error! Something went wrong."
|
|
616
|
+
})
|
|
617
|
+
}),
|
|
618
|
+
caption: "A vague alarm in red gives the merchant nothing to act on."
|
|
619
|
+
}
|
|
620
|
+
}),
|
|
621
|
+
/* @__PURE__ */ jsx(DoDont, {
|
|
622
|
+
do: {
|
|
623
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
624
|
+
className: "alert-dodont",
|
|
625
|
+
children: /* @__PURE__ */ jsx(Alert, {
|
|
626
|
+
tone: "neutral",
|
|
627
|
+
children: "Prices include VAT at 20%."
|
|
628
|
+
})
|
|
629
|
+
}),
|
|
630
|
+
caption: "Neutral for a note when nothing is wrong."
|
|
631
|
+
},
|
|
632
|
+
dont: {
|
|
633
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
634
|
+
className: "alert-dodont",
|
|
635
|
+
children: /* @__PURE__ */ jsx(Alert, {
|
|
636
|
+
tone: "warning",
|
|
637
|
+
children: "Prices include VAT at 20%."
|
|
638
|
+
})
|
|
639
|
+
}),
|
|
640
|
+
caption: "A warning that is not one teaches merchants to skim past the real ones."
|
|
641
|
+
}
|
|
642
|
+
}),
|
|
643
|
+
/* @__PURE__ */ jsx(Guidelines, { items: [
|
|
644
|
+
"One alert per area, at the top of what it is about. Several problems with one thing go in one alert, as a short list.",
|
|
645
|
+
"Lead with what happened, then what it means or what to do. Sentence case, no exclamation marks, no \"Error:\" prefix: the tone and the icon already say it.",
|
|
646
|
+
"Small buttons only: the action that fixes it, and perhaps a ghost button. Never a primary pill; the page already has its one.",
|
|
647
|
+
"Dismissible only when ignoring it is safe. An alert about a problem goes away when the problem does."
|
|
648
|
+
] }),
|
|
649
|
+
/* @__PURE__ */ jsx(SubSection, {
|
|
650
|
+
title: "Alert or something else",
|
|
651
|
+
children: /* @__PURE__ */ jsx(DocTable, {
|
|
652
|
+
columns: ["The merchant needs", "Use"],
|
|
653
|
+
rows: [
|
|
654
|
+
["To know about a lasting condition of this page, card or dialog", "Alert"],
|
|
655
|
+
["Feedback on what they just did (\"Product saved\")", "A toast"],
|
|
656
|
+
["To fix one field", /* @__PURE__ */ jsx(DocLink, {
|
|
657
|
+
to: "/components/input",
|
|
658
|
+
children: "The field's error"
|
|
659
|
+
})],
|
|
660
|
+
["A status in a row or a header (\"Unfulfilled\")", /* @__PURE__ */ jsx(DocLink, {
|
|
661
|
+
to: "/components/badge",
|
|
662
|
+
children: "Badge"
|
|
663
|
+
})],
|
|
664
|
+
["To decide before going on", /* @__PURE__ */ jsx(DocLink, {
|
|
665
|
+
to: "/components/dialog",
|
|
666
|
+
children: "ConfirmDialog"
|
|
667
|
+
})],
|
|
668
|
+
["To know there is nothing here yet", /* @__PURE__ */ jsx(DocLink, {
|
|
669
|
+
to: "/components/empty-state",
|
|
670
|
+
children: "Empty state"
|
|
671
|
+
})]
|
|
672
|
+
]
|
|
673
|
+
})
|
|
674
|
+
})
|
|
675
|
+
]
|
|
676
|
+
}),
|
|
677
|
+
/* @__PURE__ */ jsx(Section, {
|
|
678
|
+
id: "accessibility",
|
|
679
|
+
title: "Accessibility",
|
|
680
|
+
children: /* @__PURE__ */ jsx(Guidelines, { items: [
|
|
681
|
+
/* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
682
|
+
"Warnings and critical alerts are ",
|
|
683
|
+
/* @__PURE__ */ jsx("code", { children: "role=\"alert\"" }),
|
|
684
|
+
", so a screen reader announces them as soon as they appear. The other tones are ",
|
|
685
|
+
/* @__PURE__ */ jsx("code", { children: "role=\"status\"" }),
|
|
686
|
+
" and wait their turn. Pass ",
|
|
687
|
+
/* @__PURE__ */ jsx("code", { children: "role" }),
|
|
688
|
+
" to change it, or ",
|
|
689
|
+
/* @__PURE__ */ jsx("code", { children: "role=\"none\"" }),
|
|
690
|
+
" for a note that should only be read in place."
|
|
691
|
+
] }),
|
|
692
|
+
"An alert that is already on the page when it loads is read in place, not announced.",
|
|
693
|
+
"The icon is hidden from assistive tech. The words carry the meaning, so colour is never the only signal.",
|
|
694
|
+
/* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
695
|
+
"The cross is a real button named \"Dismiss\" (",
|
|
696
|
+
/* @__PURE__ */ jsx("code", { children: "dismissLabel" }),
|
|
697
|
+
" translates it). When the alert has gone, focus moves on to the next control instead of falling back to the top of the page."
|
|
698
|
+
] }),
|
|
699
|
+
"Text holds at least 6.4:1 on every wash in both themes, and the icons at least 4.5:1.",
|
|
700
|
+
"Under reduced motion it fades in and out without moving, and the space it leaves closes at once."
|
|
701
|
+
] })
|
|
702
|
+
}),
|
|
703
|
+
/* @__PURE__ */ jsx(Section, {
|
|
704
|
+
id: "props",
|
|
705
|
+
title: "Props",
|
|
706
|
+
description: /* @__PURE__ */ jsx("p", { children: "Also accepts every native div attribute." }),
|
|
707
|
+
children: /* @__PURE__ */ jsx(PropsTable, { rows: [
|
|
708
|
+
{
|
|
709
|
+
name: "tone",
|
|
710
|
+
type: "'neutral' | 'info' | 'success' | 'warning' | 'critical'",
|
|
711
|
+
default: "'info'",
|
|
712
|
+
description: "What the message means. Sets the icon, the wash and how it is announced."
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
name: "title",
|
|
716
|
+
type: "ReactNode",
|
|
717
|
+
description: "A short bold first line."
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
name: "titleAs",
|
|
721
|
+
type: "'h2' | 'h3' | 'h4' | 'p' | 'div'",
|
|
722
|
+
default: "'p'",
|
|
723
|
+
description: "Element for the title."
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
name: "children",
|
|
727
|
+
type: "ReactNode",
|
|
728
|
+
description: "The message. Text, or paragraphs and a short list."
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
name: "icon",
|
|
732
|
+
type: "ReactNode",
|
|
733
|
+
description: "Replaces the tone's icon. null hides it."
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
name: "actions",
|
|
737
|
+
type: "ReactNode",
|
|
738
|
+
description: "One or two small buttons under the message."
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
name: "dismissible",
|
|
742
|
+
type: "boolean",
|
|
743
|
+
default: "false",
|
|
744
|
+
description: "Shows the cross. The alert removes itself when it is pressed."
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
name: "onDismiss",
|
|
748
|
+
type: "() => void",
|
|
749
|
+
description: "Runs once a dismissed alert has gone. Shows the cross on its own too."
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
name: "dismissLabel",
|
|
753
|
+
type: "string",
|
|
754
|
+
default: "'Dismiss'",
|
|
755
|
+
description: "Accessible name of the cross."
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
name: "role",
|
|
759
|
+
type: "string",
|
|
760
|
+
description: "Defaults to 'alert' for warning and critical, 'status' for the rest."
|
|
761
|
+
}
|
|
762
|
+
] })
|
|
763
|
+
}),
|
|
764
|
+
/* @__PURE__ */ jsx(Fragment$1, {})
|
|
765
|
+
]
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
//#endregion
|
|
769
|
+
export { Page, Preview };
|