@ostack.tech/ui-exhibit 1.2.0-beta.0 → 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/dist/ostack-ui-exhibit.js +2254 -1436
- package/dist/ostack-ui-exhibit.js.map +1 -1
- package/dist/webapp/assets/index-YoKkcL9J.js +1136 -0
- package/dist/webapp/index.html +1 -1
- package/package.json +12 -11
- package/types/components/ExhibitSection.d.ts +1 -1
- package/dist/webapp/assets/index-BSUz5SK5.js +0 -1136
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
1
2
|
import { Alert, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Button, ButtonGroup, Calendar, Checkbox, CheckboxGroup, Code, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandMenu, CommandMenuDialog, CommandMenuGroup, CommandMenuItem, Container, ControlAddon, DataTable, DataTableContent, DataTableFilter, DataTablePagination, DataTableRowsPerPage, DateInput, DateRangeInput, DescriptionList, DescriptionListItem, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Feedback, Field, FieldGroup, FieldGroupBody, FieldGroupHeader, FieldGroupTitle, Heading, HelperText, IconButton, Input, Keybinds, Keyboard, Label, Link, Mark, MenuList, MenuListGroup, MenuListItem, NumericInput, Option, Output, Popover, PopoverContent, PopoverTrigger, Radio, RadioGroup, Root, Select, Spinner, Stack, Step, StepContent, StepList, Stepper, StepperFinishTrigger, StepperNextTrigger, StepperPreviousTrigger, Tab, TabContent, TabList, Table, TableBody, TableCell, TableColumn, TableFoot, TableHead, TableRow, Tabs, Tag, TextArea, Tooltip, VisuallyHidden, useCssVars, useKeyboardShortcut, useSpacing, useToastManager } from "@ostack.tech/ui";
|
|
2
3
|
import { enGB } from "@ostack.tech/ui/locales";
|
|
3
4
|
import { DEV } from "esm-env";
|
|
@@ -11,459 +12,789 @@ function useDocsUrl() {
|
|
|
11
12
|
}
|
|
12
13
|
//#endregion
|
|
13
14
|
//#region src/components/ExhibitGrid.tsx
|
|
14
|
-
function ExhibitGrid(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
function ExhibitGrid(t0) {
|
|
16
|
+
const $ = c(17);
|
|
17
|
+
const { rows, cols, renderItem } = t0;
|
|
18
|
+
let t1;
|
|
19
|
+
if ($[0] !== cols) {
|
|
20
|
+
t1 = Object.keys(cols);
|
|
21
|
+
$[0] = cols;
|
|
22
|
+
$[1] = t1;
|
|
23
|
+
} else t1 = $[1];
|
|
24
|
+
const t2 = t1.length + (rows ? 1 : 0);
|
|
25
|
+
let t3;
|
|
26
|
+
if ($[2] !== t2) {
|
|
27
|
+
t3 = { "--exhibit-grid-cols": t2 };
|
|
28
|
+
$[2] = t2;
|
|
29
|
+
$[3] = t3;
|
|
30
|
+
} else t3 = $[3];
|
|
31
|
+
const t4 = t3;
|
|
32
|
+
let t5;
|
|
33
|
+
if ($[4] !== rows) {
|
|
34
|
+
t5 = rows && /* @__PURE__ */ jsx("div", {});
|
|
35
|
+
$[4] = rows;
|
|
36
|
+
$[5] = t5;
|
|
37
|
+
} else t5 = $[5];
|
|
38
|
+
let t6;
|
|
39
|
+
if ($[6] !== cols) {
|
|
40
|
+
t6 = Object.keys(cols).map(_temp$27);
|
|
41
|
+
$[6] = cols;
|
|
42
|
+
$[7] = t6;
|
|
43
|
+
} else t6 = $[7];
|
|
44
|
+
let t7;
|
|
45
|
+
if ($[8] !== cols || $[9] !== renderItem || $[10] !== rows) {
|
|
46
|
+
t7 = Object.entries(rows ?? { "": void 0 }).map((t8) => {
|
|
47
|
+
const [rowLabel, row] = t8;
|
|
48
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [rowLabel && /* @__PURE__ */ jsx("div", {
|
|
26
49
|
className: "exhibit-grid-row-label",
|
|
27
50
|
children: rowLabel
|
|
28
|
-
}), Object.entries(cols).map((
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
51
|
+
}), Object.entries(cols).map((t9) => {
|
|
52
|
+
const [colLabel_0, col] = t9;
|
|
53
|
+
return /* @__PURE__ */ jsx("div", {
|
|
54
|
+
className: "exhibit-grid-item",
|
|
55
|
+
children: renderItem({
|
|
56
|
+
row,
|
|
57
|
+
col
|
|
58
|
+
})
|
|
59
|
+
}, colLabel_0);
|
|
60
|
+
})] }, rowLabel);
|
|
61
|
+
});
|
|
62
|
+
$[8] = cols;
|
|
63
|
+
$[9] = renderItem;
|
|
64
|
+
$[10] = rows;
|
|
65
|
+
$[11] = t7;
|
|
66
|
+
} else t7 = $[11];
|
|
67
|
+
let t8;
|
|
68
|
+
if ($[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== t7) {
|
|
69
|
+
t8 = /* @__PURE__ */ jsxs("div", {
|
|
70
|
+
className: "exhibit-grid",
|
|
71
|
+
style: t4,
|
|
72
|
+
tabIndex: 0,
|
|
73
|
+
children: [
|
|
74
|
+
t5,
|
|
75
|
+
t6,
|
|
76
|
+
t7
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
$[12] = t4;
|
|
80
|
+
$[13] = t5;
|
|
81
|
+
$[14] = t6;
|
|
82
|
+
$[15] = t7;
|
|
83
|
+
$[16] = t8;
|
|
84
|
+
} else t8 = $[16];
|
|
85
|
+
return t8;
|
|
86
|
+
}
|
|
87
|
+
function _temp$27(colLabel) {
|
|
88
|
+
return /* @__PURE__ */ jsx("div", {
|
|
89
|
+
className: "exhibit-grid-col-label",
|
|
90
|
+
children: colLabel
|
|
91
|
+
}, colLabel);
|
|
37
92
|
}
|
|
38
93
|
//#endregion
|
|
39
94
|
//#region src/components/ExhibitSection.tsx
|
|
40
|
-
function ExhibitSection(
|
|
95
|
+
function ExhibitSection(t0) {
|
|
96
|
+
const $ = c(35);
|
|
97
|
+
const { title, docsPage, children } = t0;
|
|
41
98
|
const { cssVar } = useCssVars();
|
|
42
|
-
|
|
99
|
+
let t1;
|
|
100
|
+
if ($[0] !== title) {
|
|
101
|
+
let t2;
|
|
102
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
103
|
+
t2 = /[^a-z0-9]/g;
|
|
104
|
+
$[2] = t2;
|
|
105
|
+
} else t2 = $[2];
|
|
106
|
+
t1 = title.toLowerCase().replace(t2, "-");
|
|
107
|
+
$[0] = title;
|
|
108
|
+
$[1] = t1;
|
|
109
|
+
} else t1 = $[1];
|
|
110
|
+
const headingId = t1;
|
|
43
111
|
const docsUrl = new URL(useDocsUrl());
|
|
44
112
|
docsUrl.searchParams.set("path", `/docs/${docsPage}--docs`);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
113
|
+
const T0 = Stack;
|
|
114
|
+
const t2 = true;
|
|
115
|
+
const t3 = "exhibit-section";
|
|
116
|
+
const T1 = Stack;
|
|
117
|
+
const t4 = true;
|
|
118
|
+
const t5 = "row";
|
|
119
|
+
const t6 = 4;
|
|
120
|
+
const t7 = "baseline";
|
|
121
|
+
const t8 = `#${headingId}`;
|
|
122
|
+
let t9;
|
|
123
|
+
if ($[3] !== cssVar) {
|
|
124
|
+
t9 = cssVar("neutral-a12");
|
|
125
|
+
$[3] = cssVar;
|
|
126
|
+
$[4] = t9;
|
|
127
|
+
} else t9 = $[4];
|
|
128
|
+
let t10;
|
|
129
|
+
if ($[5] !== t9) {
|
|
130
|
+
t10 = { color: t9 };
|
|
131
|
+
$[5] = t9;
|
|
132
|
+
$[6] = t10;
|
|
133
|
+
} else t10 = $[6];
|
|
134
|
+
let t11;
|
|
135
|
+
if ($[7] !== t10 || $[8] !== t8 || $[9] !== title) {
|
|
136
|
+
t11 = /* @__PURE__ */ jsx(Link, {
|
|
137
|
+
href: t8,
|
|
138
|
+
color: "neutral",
|
|
139
|
+
style: t10,
|
|
140
|
+
children: title
|
|
141
|
+
});
|
|
142
|
+
$[7] = t10;
|
|
143
|
+
$[8] = t8;
|
|
144
|
+
$[9] = title;
|
|
145
|
+
$[10] = t11;
|
|
146
|
+
} else t11 = $[10];
|
|
147
|
+
let t12;
|
|
148
|
+
if ($[11] !== headingId || $[12] !== t11) {
|
|
149
|
+
t12 = /* @__PURE__ */ jsx(Heading, {
|
|
150
|
+
id: headingId,
|
|
151
|
+
children: t11
|
|
152
|
+
});
|
|
153
|
+
$[11] = headingId;
|
|
154
|
+
$[12] = t11;
|
|
155
|
+
$[13] = t12;
|
|
156
|
+
} else t12 = $[13];
|
|
157
|
+
const T2 = Link;
|
|
158
|
+
const t13 = "exhibit-section-docs-link";
|
|
159
|
+
const t14 = docsUrl.toString();
|
|
160
|
+
let t15;
|
|
161
|
+
if ($[14] !== title) {
|
|
162
|
+
t15 = /* @__PURE__ */ jsxs(VisuallyHidden, { children: [" of ", title] });
|
|
163
|
+
$[14] = title;
|
|
164
|
+
$[15] = t15;
|
|
165
|
+
} else t15 = $[15];
|
|
166
|
+
let t16;
|
|
167
|
+
if ($[16] !== T2 || $[17] !== t14 || $[18] !== t15) {
|
|
168
|
+
t16 = /* @__PURE__ */ jsxs(T2, {
|
|
169
|
+
className: t13,
|
|
170
|
+
href: t14,
|
|
171
|
+
external: true,
|
|
172
|
+
children: ["View docs", t15]
|
|
173
|
+
});
|
|
174
|
+
$[16] = T2;
|
|
175
|
+
$[17] = t14;
|
|
176
|
+
$[18] = t15;
|
|
177
|
+
$[19] = t16;
|
|
178
|
+
} else t16 = $[19];
|
|
179
|
+
let t17;
|
|
180
|
+
if ($[20] !== t12 || $[21] !== t16) {
|
|
181
|
+
t17 = /* @__PURE__ */ jsxs("header", { children: [t12, t16] });
|
|
182
|
+
$[20] = t12;
|
|
183
|
+
$[21] = t16;
|
|
184
|
+
$[22] = t17;
|
|
185
|
+
} else t17 = $[22];
|
|
186
|
+
let t18;
|
|
187
|
+
if ($[23] !== T1 || $[24] !== t17) {
|
|
188
|
+
t18 = /* @__PURE__ */ jsx(T1, {
|
|
189
|
+
asChild: t4,
|
|
190
|
+
direction: t5,
|
|
191
|
+
gap: t6,
|
|
192
|
+
alignItems: t7,
|
|
193
|
+
children: t17
|
|
194
|
+
});
|
|
195
|
+
$[23] = T1;
|
|
196
|
+
$[24] = t17;
|
|
197
|
+
$[25] = t18;
|
|
198
|
+
} else t18 = $[25];
|
|
199
|
+
let t19;
|
|
200
|
+
if ($[26] !== children) {
|
|
201
|
+
t19 = /* @__PURE__ */ jsx("div", {
|
|
202
|
+
className: "exhibit-section-content",
|
|
203
|
+
children
|
|
204
|
+
});
|
|
205
|
+
$[26] = children;
|
|
206
|
+
$[27] = t19;
|
|
207
|
+
} else t19 = $[27];
|
|
208
|
+
let t20;
|
|
209
|
+
if ($[28] !== headingId || $[29] !== t18 || $[30] !== t19) {
|
|
210
|
+
t20 = /* @__PURE__ */ jsxs("section", {
|
|
211
|
+
className: t3,
|
|
49
212
|
"aria-labelledby": headingId,
|
|
50
|
-
children: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
})] })
|
|
69
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
70
|
-
className: "exhibit-section-content",
|
|
71
|
-
children
|
|
72
|
-
})]
|
|
73
|
-
})
|
|
74
|
-
});
|
|
213
|
+
children: [t18, t19]
|
|
214
|
+
});
|
|
215
|
+
$[28] = headingId;
|
|
216
|
+
$[29] = t18;
|
|
217
|
+
$[30] = t19;
|
|
218
|
+
$[31] = t20;
|
|
219
|
+
} else t20 = $[31];
|
|
220
|
+
let t21;
|
|
221
|
+
if ($[32] !== T0 || $[33] !== t20) {
|
|
222
|
+
t21 = /* @__PURE__ */ jsx(T0, {
|
|
223
|
+
asChild: t2,
|
|
224
|
+
children: t20
|
|
225
|
+
});
|
|
226
|
+
$[32] = T0;
|
|
227
|
+
$[33] = t20;
|
|
228
|
+
$[34] = t21;
|
|
229
|
+
} else t21 = $[34];
|
|
230
|
+
return t21;
|
|
75
231
|
}
|
|
76
232
|
//#endregion
|
|
77
233
|
//#region src/sections/AlertDialogSection.tsx
|
|
78
234
|
function AlertDialogSection() {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
235
|
+
const $ = c(1);
|
|
236
|
+
let t0;
|
|
237
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
238
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
239
|
+
title: "Alert dialog",
|
|
240
|
+
docsPage: "ostack-ui-overlay-alert-dialog",
|
|
241
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
242
|
+
cols: {
|
|
243
|
+
Neutral: "neutral",
|
|
244
|
+
Primary: "primary",
|
|
245
|
+
Success: "success",
|
|
246
|
+
Danger: "danger",
|
|
247
|
+
Warning: "warning"
|
|
248
|
+
},
|
|
249
|
+
rows: {
|
|
250
|
+
Solid: "solid",
|
|
251
|
+
Subtle: "subtle",
|
|
252
|
+
Outlined: "outlined",
|
|
253
|
+
Ghost: "ghost"
|
|
254
|
+
},
|
|
255
|
+
renderItem: _temp$26
|
|
256
|
+
})
|
|
257
|
+
});
|
|
258
|
+
$[0] = t0;
|
|
259
|
+
} else t0 = $[0];
|
|
260
|
+
return t0;
|
|
261
|
+
}
|
|
262
|
+
function _temp$26(t0) {
|
|
263
|
+
const { col, row } = t0;
|
|
264
|
+
return /* @__PURE__ */ jsxs(AlertDialog, { children: [/* @__PURE__ */ jsx(AlertDialogTrigger, { children: /* @__PURE__ */ jsx(Button, {
|
|
265
|
+
variant: row,
|
|
266
|
+
color: col,
|
|
267
|
+
children: "Restore"
|
|
268
|
+
}) }), /* @__PURE__ */ jsxs(AlertDialogContent, {
|
|
269
|
+
variant: row,
|
|
270
|
+
color: col,
|
|
271
|
+
children: [
|
|
272
|
+
/* @__PURE__ */ jsx(AlertDialogHeader, { children: /* @__PURE__ */ jsx(AlertDialogTitle, { children: "Restore previous version?" }) }),
|
|
273
|
+
/* @__PURE__ */ jsx(AlertDialogBody, { children: /* @__PURE__ */ jsx(AlertDialogDescription, { children: "This will overwrite your current draft with the version saved on January 12th. Current changes will be lost." }) }),
|
|
274
|
+
/* @__PURE__ */ jsxs(AlertDialogFooter, { children: [/* @__PURE__ */ jsx(AlertDialogCancel, { children: /* @__PURE__ */ jsx(Button, {
|
|
275
|
+
variant: "subtle",
|
|
276
|
+
children: "Go back"
|
|
277
|
+
}) }), /* @__PURE__ */ jsx(AlertDialogAction, { children: /* @__PURE__ */ jsx(Button, {
|
|
98
278
|
color: col,
|
|
99
279
|
children: "Restore"
|
|
100
|
-
}) })
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
children: [
|
|
104
|
-
/* @__PURE__ */ jsx(AlertDialogHeader, { children: /* @__PURE__ */ jsx(AlertDialogTitle, { children: "Restore previous version?" }) }),
|
|
105
|
-
/* @__PURE__ */ jsx(AlertDialogBody, { children: /* @__PURE__ */ jsx(AlertDialogDescription, { children: "This will overwrite your current draft with the version saved on January 12th. Current changes will be lost." }) }),
|
|
106
|
-
/* @__PURE__ */ jsxs(AlertDialogFooter, { children: [/* @__PURE__ */ jsx(AlertDialogCancel, { children: /* @__PURE__ */ jsx(Button, {
|
|
107
|
-
variant: "subtle",
|
|
108
|
-
children: "Go back"
|
|
109
|
-
}) }), /* @__PURE__ */ jsx(AlertDialogAction, { children: /* @__PURE__ */ jsx(Button, {
|
|
110
|
-
color: col,
|
|
111
|
-
children: "Restore"
|
|
112
|
-
}) })] })
|
|
113
|
-
]
|
|
114
|
-
})] })
|
|
115
|
-
})
|
|
116
|
-
});
|
|
280
|
+
}) })] })
|
|
281
|
+
]
|
|
282
|
+
})] });
|
|
117
283
|
}
|
|
118
284
|
//#endregion
|
|
119
285
|
//#region src/sections/AlertSection.tsx
|
|
120
286
|
function AlertSection() {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
children: "Accept"
|
|
145
|
-
}),
|
|
146
|
-
severity: col === "title" || col === "action" || col === "showCloseButton" ? void 0 : col,
|
|
147
|
-
showCloseButton: col === "showCloseButton",
|
|
148
|
-
children: [col === "title" && /* @__PURE__ */ jsx(AlertTitle, { children: "Notice" }), "Terms may apply."]
|
|
287
|
+
const $ = c(1);
|
|
288
|
+
let t0;
|
|
289
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
290
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
291
|
+
title: "Alert",
|
|
292
|
+
docsPage: "ostack-ui-feedback-alert",
|
|
293
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
294
|
+
cols: {
|
|
295
|
+
Neutral: "neutral",
|
|
296
|
+
Info: "info",
|
|
297
|
+
Success: "success",
|
|
298
|
+
Danger: "danger",
|
|
299
|
+
Warning: "warning",
|
|
300
|
+
Title: "title",
|
|
301
|
+
Action: "action",
|
|
302
|
+
"Close button": "showCloseButton"
|
|
303
|
+
},
|
|
304
|
+
rows: {
|
|
305
|
+
Solid: "solid",
|
|
306
|
+
Subtle: "subtle",
|
|
307
|
+
Outlined: "outlined"
|
|
308
|
+
},
|
|
309
|
+
renderItem: _temp$25
|
|
149
310
|
})
|
|
150
|
-
})
|
|
311
|
+
});
|
|
312
|
+
$[0] = t0;
|
|
313
|
+
} else t0 = $[0];
|
|
314
|
+
return t0;
|
|
315
|
+
}
|
|
316
|
+
function _temp$25(t0) {
|
|
317
|
+
const { col, row } = t0;
|
|
318
|
+
return /* @__PURE__ */ jsxs(Alert, {
|
|
319
|
+
variant: row,
|
|
320
|
+
action: col === "action" && /* @__PURE__ */ jsx(Button, {
|
|
321
|
+
color: "primary",
|
|
322
|
+
children: "Accept"
|
|
323
|
+
}),
|
|
324
|
+
severity: col === "title" || col === "action" || col === "showCloseButton" ? void 0 : col,
|
|
325
|
+
showCloseButton: col === "showCloseButton",
|
|
326
|
+
children: [col === "title" && /* @__PURE__ */ jsx(AlertTitle, { children: "Notice" }), "Terms may apply."]
|
|
151
327
|
});
|
|
152
328
|
}
|
|
153
329
|
//#endregion
|
|
154
330
|
//#region src/sections/ButtonGroupSection.tsx
|
|
155
331
|
function ButtonGroupSection() {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
332
|
+
const $ = c(1);
|
|
333
|
+
let t0;
|
|
334
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
335
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
336
|
+
title: "Button group",
|
|
337
|
+
docsPage: "ostack-ui-layout-button-group",
|
|
338
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
339
|
+
cols: {
|
|
340
|
+
Neutral: "neutral",
|
|
341
|
+
Primary: "primary",
|
|
342
|
+
Success: "success",
|
|
343
|
+
Danger: "danger",
|
|
344
|
+
Warning: "warning"
|
|
345
|
+
},
|
|
346
|
+
rows: {
|
|
347
|
+
Solid: "solid",
|
|
348
|
+
Subtle: "subtle",
|
|
349
|
+
Outlined: "outlined",
|
|
350
|
+
Ghost: "ghost"
|
|
351
|
+
},
|
|
352
|
+
renderItem: _temp$24
|
|
353
|
+
})
|
|
354
|
+
});
|
|
355
|
+
$[0] = t0;
|
|
356
|
+
} else t0 = $[0];
|
|
357
|
+
return t0;
|
|
358
|
+
}
|
|
359
|
+
function _temp$24(t0) {
|
|
360
|
+
const { col, row } = t0;
|
|
361
|
+
return /* @__PURE__ */ jsxs(ButtonGroup, { children: [
|
|
362
|
+
/* @__PURE__ */ jsx(Button, {
|
|
363
|
+
icon: faFolderOpen,
|
|
364
|
+
variant: row,
|
|
365
|
+
color: col,
|
|
366
|
+
children: "Load"
|
|
367
|
+
}),
|
|
368
|
+
/* @__PURE__ */ jsx(Button, {
|
|
369
|
+
icon: faSave,
|
|
370
|
+
variant: row,
|
|
371
|
+
color: col,
|
|
372
|
+
children: "Save"
|
|
373
|
+
}),
|
|
374
|
+
/* @__PURE__ */ jsx(IconButton, {
|
|
375
|
+
icon: faTrashCan,
|
|
376
|
+
label: "Delete",
|
|
377
|
+
variant: row,
|
|
378
|
+
color: col
|
|
193
379
|
})
|
|
194
|
-
});
|
|
380
|
+
] });
|
|
195
381
|
}
|
|
196
382
|
//#endregion
|
|
197
383
|
//#region src/sections/ButtonSection.tsx
|
|
198
384
|
function ButtonSection() {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
disabled: col === "disabled",
|
|
225
|
-
loading: col === "loading",
|
|
226
|
-
loadingContent: col === "loading" ? "Zapping…" : void 0,
|
|
227
|
-
keybinds: col === "keybinds" ? "Alt+Shift+Z" : void 0,
|
|
228
|
-
vertical: col === "vertical",
|
|
229
|
-
children: "Zap"
|
|
385
|
+
const $ = c(1);
|
|
386
|
+
let t0;
|
|
387
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
388
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
389
|
+
title: "Button",
|
|
390
|
+
docsPage: "ostack-ui-forms-button",
|
|
391
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
392
|
+
cols: {
|
|
393
|
+
Neutral: "neutral",
|
|
394
|
+
Primary: "primary",
|
|
395
|
+
Success: "success",
|
|
396
|
+
Danger: "danger",
|
|
397
|
+
Warning: "warning",
|
|
398
|
+
Disabled: "disabled",
|
|
399
|
+
Loading: "loading",
|
|
400
|
+
Keybinds: "keybinds",
|
|
401
|
+
Vertical: "vertical"
|
|
402
|
+
},
|
|
403
|
+
rows: {
|
|
404
|
+
Solid: "solid",
|
|
405
|
+
Subtle: "subtle",
|
|
406
|
+
Outlined: "outlined",
|
|
407
|
+
Ghost: "ghost"
|
|
408
|
+
},
|
|
409
|
+
renderItem: _temp$23
|
|
230
410
|
})
|
|
231
|
-
})
|
|
411
|
+
});
|
|
412
|
+
$[0] = t0;
|
|
413
|
+
} else t0 = $[0];
|
|
414
|
+
return t0;
|
|
415
|
+
}
|
|
416
|
+
function _temp$23(t0) {
|
|
417
|
+
const { col, row } = t0;
|
|
418
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
419
|
+
icon: faBolt,
|
|
420
|
+
variant: row,
|
|
421
|
+
color: col === "disabled" || col === "loading" || col === "keybinds" || col === "vertical" ? void 0 : col,
|
|
422
|
+
disabled: col === "disabled",
|
|
423
|
+
loading: col === "loading",
|
|
424
|
+
loadingContent: col === "loading" ? "Zapping…" : void 0,
|
|
425
|
+
keybinds: col === "keybinds" ? "Alt+Shift+Z" : void 0,
|
|
426
|
+
vertical: col === "vertical",
|
|
427
|
+
children: "Zap"
|
|
232
428
|
});
|
|
233
429
|
}
|
|
234
430
|
//#endregion
|
|
235
431
|
//#region src/sections/CalendarSection.tsx
|
|
236
432
|
function CalendarSection() {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
433
|
+
const $ = c(1);
|
|
434
|
+
let t0;
|
|
435
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
436
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
437
|
+
title: "Calendar",
|
|
438
|
+
docsPage: "ostack-ui-data-display-calendar",
|
|
439
|
+
children: /* @__PURE__ */ jsx(Calendar, {})
|
|
440
|
+
});
|
|
441
|
+
$[0] = t0;
|
|
442
|
+
} else t0 = $[0];
|
|
443
|
+
return t0;
|
|
242
444
|
}
|
|
243
445
|
//#endregion
|
|
244
446
|
//#region src/sections/CheckboxGroupSection.tsx
|
|
245
447
|
function CheckboxGroupSection() {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}),
|
|
294
|
-
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
295
|
-
type: "success",
|
|
296
|
-
children: "Available."
|
|
448
|
+
const $ = c(1);
|
|
449
|
+
let t0;
|
|
450
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
451
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
452
|
+
title: "Checkbox group",
|
|
453
|
+
docsPage: "ostack-ui-forms-checkbox-group",
|
|
454
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
455
|
+
cols: {
|
|
456
|
+
Basic: "",
|
|
457
|
+
"Helper text": "helperText",
|
|
458
|
+
Required: "required",
|
|
459
|
+
Disabled: "disabled",
|
|
460
|
+
"Read-only": "readOnly",
|
|
461
|
+
Loading: "loading",
|
|
462
|
+
Code: "code",
|
|
463
|
+
"All codes": "allCodes"
|
|
464
|
+
},
|
|
465
|
+
rows: {
|
|
466
|
+
"No status": void 0,
|
|
467
|
+
Valid: "valid",
|
|
468
|
+
Invalid: "invalid",
|
|
469
|
+
Warned: "warned"
|
|
470
|
+
},
|
|
471
|
+
renderItem: _temp$22
|
|
472
|
+
})
|
|
473
|
+
});
|
|
474
|
+
$[0] = t0;
|
|
475
|
+
} else t0 = $[0];
|
|
476
|
+
return t0;
|
|
477
|
+
}
|
|
478
|
+
function _temp$22(t0) {
|
|
479
|
+
const { col, row } = t0;
|
|
480
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
481
|
+
/* @__PURE__ */ jsx(Label, { children: "Toppings" }),
|
|
482
|
+
/* @__PURE__ */ jsxs(CheckboxGroup, {
|
|
483
|
+
defaultValue: ["caramel"],
|
|
484
|
+
status: row,
|
|
485
|
+
required: col === "required",
|
|
486
|
+
disabled: col === "disabled",
|
|
487
|
+
readOnly: col === "readOnly",
|
|
488
|
+
loading: col === "loading",
|
|
489
|
+
code: col === "code" || col === "allCodes" ? "3.2" : void 0,
|
|
490
|
+
children: [
|
|
491
|
+
/* @__PURE__ */ jsx(Checkbox, {
|
|
492
|
+
value: "caramel",
|
|
493
|
+
code: col === "allCodes" ? "a" : void 0,
|
|
494
|
+
children: "Caramel"
|
|
297
495
|
}),
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
496
|
+
/* @__PURE__ */ jsx(Checkbox, {
|
|
497
|
+
value: "chocolate",
|
|
498
|
+
code: col === "allCodes" ? "b" : void 0,
|
|
499
|
+
children: "Chocolate"
|
|
301
500
|
}),
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
501
|
+
/* @__PURE__ */ jsx(Checkbox, {
|
|
502
|
+
value: "strawberry",
|
|
503
|
+
code: col === "allCodes" ? "c" : void 0,
|
|
504
|
+
children: "Strawberry"
|
|
505
|
+
})
|
|
506
|
+
]
|
|
507
|
+
}),
|
|
508
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
509
|
+
type: "success",
|
|
510
|
+
children: "Available."
|
|
511
|
+
}),
|
|
512
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
513
|
+
type: "warning",
|
|
514
|
+
children: "Maybe unavailable."
|
|
515
|
+
}),
|
|
516
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Unavailable." }),
|
|
517
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "Select all wanted." })
|
|
518
|
+
] });
|
|
307
519
|
}
|
|
308
520
|
//#endregion
|
|
309
521
|
//#region src/sections/CheckboxSection.tsx
|
|
310
522
|
function CheckboxSection() {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
})
|
|
354
|
-
|
|
523
|
+
const $ = c(1);
|
|
524
|
+
let t0;
|
|
525
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
526
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
527
|
+
title: "Checkbox",
|
|
528
|
+
docsPage: "ostack-ui-forms-checkbox",
|
|
529
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
530
|
+
cols: {
|
|
531
|
+
Basic: "",
|
|
532
|
+
Indeterminate: "indeterminate",
|
|
533
|
+
"Helper text": "helperText",
|
|
534
|
+
Required: "required",
|
|
535
|
+
Disabled: "disabled",
|
|
536
|
+
"Read-only": "readOnly",
|
|
537
|
+
Loading: "loading",
|
|
538
|
+
Code: "code"
|
|
539
|
+
},
|
|
540
|
+
rows: {
|
|
541
|
+
"No status": void 0,
|
|
542
|
+
Valid: "valid",
|
|
543
|
+
Invalid: "invalid",
|
|
544
|
+
Warned: "warned"
|
|
545
|
+
},
|
|
546
|
+
renderItem: _temp$21
|
|
547
|
+
})
|
|
548
|
+
});
|
|
549
|
+
$[0] = t0;
|
|
550
|
+
} else t0 = $[0];
|
|
551
|
+
return t0;
|
|
552
|
+
}
|
|
553
|
+
function _temp$21(t0) {
|
|
554
|
+
const { col, row } = t0;
|
|
555
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
556
|
+
/* @__PURE__ */ jsx(Checkbox, {
|
|
557
|
+
status: row,
|
|
558
|
+
defaultChecked: col === "indeterminate" ? "indeterminate" : true,
|
|
559
|
+
required: col === "required",
|
|
560
|
+
disabled: col === "disabled",
|
|
561
|
+
readOnly: col === "readOnly",
|
|
562
|
+
loading: col === "loading",
|
|
563
|
+
code: col === "code" ? "1.5" : void 0,
|
|
564
|
+
children: "I accept"
|
|
565
|
+
}),
|
|
566
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
567
|
+
type: "success",
|
|
568
|
+
children: "Accepted."
|
|
569
|
+
}),
|
|
570
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
571
|
+
type: "warning",
|
|
572
|
+
children: "Are you sure?"
|
|
573
|
+
}),
|
|
574
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Must accept." }),
|
|
575
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "Please indicate." })
|
|
576
|
+
] });
|
|
355
577
|
}
|
|
356
578
|
//#endregion
|
|
357
579
|
//#region src/sections/CodeSection.tsx
|
|
358
580
|
function CodeSection() {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
581
|
+
const $ = c(1);
|
|
582
|
+
let t0;
|
|
583
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
584
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
585
|
+
title: "Code",
|
|
586
|
+
docsPage: "ostack-ui-typography-code",
|
|
587
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
588
|
+
cols: {
|
|
589
|
+
Neutral: "neutral",
|
|
590
|
+
Primary: "primary",
|
|
591
|
+
Success: "success",
|
|
592
|
+
Danger: "danger",
|
|
593
|
+
Warning: "warning"
|
|
594
|
+
},
|
|
595
|
+
renderItem: _temp$20
|
|
373
596
|
})
|
|
374
|
-
})
|
|
597
|
+
});
|
|
598
|
+
$[0] = t0;
|
|
599
|
+
} else t0 = $[0];
|
|
600
|
+
return t0;
|
|
601
|
+
}
|
|
602
|
+
function _temp$20(t0) {
|
|
603
|
+
const { col } = t0;
|
|
604
|
+
return /* @__PURE__ */ jsx(Code, {
|
|
605
|
+
color: col,
|
|
606
|
+
children: "Math.sin(1)"
|
|
375
607
|
});
|
|
376
608
|
}
|
|
377
609
|
//#endregion
|
|
378
610
|
//#region src/sections/CollapsibleSection.tsx
|
|
379
611
|
function CollapsibleSection() {
|
|
612
|
+
const $ = c(9);
|
|
380
613
|
const spacing = useSpacing();
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
614
|
+
let t0;
|
|
615
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
616
|
+
t0 = /* @__PURE__ */ jsx(CollapsibleTrigger, { children: _temp$19 });
|
|
617
|
+
$[0] = t0;
|
|
618
|
+
} else t0 = $[0];
|
|
619
|
+
let t1;
|
|
620
|
+
if ($[1] !== spacing) {
|
|
621
|
+
t1 = spacing(4);
|
|
622
|
+
$[1] = spacing;
|
|
623
|
+
$[2] = t1;
|
|
624
|
+
} else t1 = $[2];
|
|
625
|
+
let t2;
|
|
626
|
+
if ($[3] !== t1) {
|
|
627
|
+
t2 = { marginTop: t1 };
|
|
628
|
+
$[3] = t1;
|
|
629
|
+
$[4] = t2;
|
|
630
|
+
} else t2 = $[4];
|
|
631
|
+
let t3;
|
|
632
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
633
|
+
t3 = /* @__PURE__ */ jsx("p", { children: "\"The sun had not yet risen. The sea was indistinguishable from the sky, except that the sea was slightly creased as if a cloth had wrinkles in it. Gradually as the sky whitened a dark line lay on the horizon dividing the sea from the sky and the grey cloth became barred with thick strokes moving, one after another, beneath the surface, following each other, pursuing each other, perpetually.\"" });
|
|
634
|
+
$[5] = t3;
|
|
635
|
+
} else t3 = $[5];
|
|
636
|
+
let t4;
|
|
637
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
638
|
+
t4 = /* @__PURE__ */ jsxs("p", { children: ["—Virginia Woolf, ", /* @__PURE__ */ jsx("cite", { children: "The Waves" })] });
|
|
639
|
+
$[6] = t4;
|
|
640
|
+
} else t4 = $[6];
|
|
641
|
+
let t5;
|
|
642
|
+
if ($[7] !== t2) {
|
|
643
|
+
t5 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
644
|
+
title: "Collapsible",
|
|
645
|
+
docsPage: "ostack-ui-disclosure-collapsible",
|
|
646
|
+
children: /* @__PURE__ */ jsxs(Collapsible, { children: [t0, /* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsxs("blockquote", {
|
|
647
|
+
cite: "https://gutenberg.net.au/ebooks02/0201091h.html",
|
|
648
|
+
style: t2,
|
|
649
|
+
children: [t3, t4]
|
|
650
|
+
}) })] })
|
|
651
|
+
});
|
|
652
|
+
$[7] = t2;
|
|
653
|
+
$[8] = t5;
|
|
654
|
+
} else t5 = $[8];
|
|
655
|
+
return t5;
|
|
656
|
+
}
|
|
657
|
+
function _temp$19(open) {
|
|
658
|
+
return /* @__PURE__ */ jsxs(Button, {
|
|
659
|
+
icon: open ? faCaretUp : faCaretDown,
|
|
660
|
+
iconPlacement: "end",
|
|
661
|
+
children: [open ? "Hide" : "Show", " quote"]
|
|
393
662
|
});
|
|
394
663
|
}
|
|
395
664
|
//#endregion
|
|
396
665
|
//#region src/sections/CommandMenuSection.tsx
|
|
397
666
|
function CommandMenuSection() {
|
|
667
|
+
const $ = c(17);
|
|
398
668
|
const [open, setOpen] = useState(false);
|
|
399
669
|
const { cssVar } = useCssVars();
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
670
|
+
let t0;
|
|
671
|
+
let t1;
|
|
672
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
673
|
+
t0 = () => setOpen(true);
|
|
674
|
+
t1 = { preventDefault: true };
|
|
675
|
+
$[0] = t0;
|
|
676
|
+
$[1] = t1;
|
|
677
|
+
} else {
|
|
678
|
+
t0 = $[0];
|
|
679
|
+
t1 = $[1];
|
|
680
|
+
}
|
|
681
|
+
useKeyboardShortcut("$mod+K", t0, t1);
|
|
682
|
+
let t2;
|
|
683
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
684
|
+
t2 = () => setOpen(false);
|
|
685
|
+
$[2] = t2;
|
|
686
|
+
} else t2 = $[2];
|
|
687
|
+
const handleSelect = t2;
|
|
688
|
+
let t3;
|
|
689
|
+
if ($[3] !== cssVar) {
|
|
690
|
+
t3 = cssVar("neutral-11");
|
|
691
|
+
$[3] = cssVar;
|
|
692
|
+
$[4] = t3;
|
|
693
|
+
} else t3 = $[4];
|
|
694
|
+
let t4;
|
|
695
|
+
if ($[5] !== t3) {
|
|
696
|
+
t4 = { color: t3 };
|
|
697
|
+
$[5] = t3;
|
|
698
|
+
$[6] = t4;
|
|
699
|
+
} else t4 = $[6];
|
|
700
|
+
let t5;
|
|
701
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
702
|
+
t5 = /* @__PURE__ */ jsx(Keybinds, { keybinds: "$mod+K" });
|
|
703
|
+
$[7] = t5;
|
|
704
|
+
} else t5 = $[7];
|
|
705
|
+
let t6;
|
|
706
|
+
if ($[8] !== t4) {
|
|
707
|
+
t6 = /* @__PURE__ */ jsxs("span", {
|
|
708
|
+
style: t4,
|
|
408
709
|
children: [
|
|
409
710
|
"Press ",
|
|
410
|
-
|
|
711
|
+
t5,
|
|
411
712
|
" to open the command menu."
|
|
412
713
|
]
|
|
413
|
-
})
|
|
714
|
+
});
|
|
715
|
+
$[8] = t4;
|
|
716
|
+
$[9] = t6;
|
|
717
|
+
} else t6 = $[9];
|
|
718
|
+
let t7;
|
|
719
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
720
|
+
t7 = /* @__PURE__ */ jsxs(CommandMenuGroup, {
|
|
721
|
+
label: "Actions",
|
|
722
|
+
children: [
|
|
723
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
724
|
+
onSelect: handleSelect,
|
|
725
|
+
children: "Find"
|
|
726
|
+
}),
|
|
727
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
728
|
+
onSelect: handleSelect,
|
|
729
|
+
children: "Replace"
|
|
730
|
+
}),
|
|
731
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
732
|
+
onSelect: handleSelect,
|
|
733
|
+
children: "Analyse"
|
|
734
|
+
}),
|
|
735
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
736
|
+
onSelect: handleSelect,
|
|
737
|
+
children: "Inspect"
|
|
738
|
+
})
|
|
739
|
+
]
|
|
740
|
+
});
|
|
741
|
+
$[10] = t7;
|
|
742
|
+
} else t7 = $[10];
|
|
743
|
+
let t8;
|
|
744
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
745
|
+
t8 = /* @__PURE__ */ jsxs(CommandMenu, { children: [t7, /* @__PURE__ */ jsxs(CommandMenuGroup, {
|
|
746
|
+
label: "Languages",
|
|
747
|
+
children: [
|
|
748
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
749
|
+
onSelect: handleSelect,
|
|
750
|
+
children: "C"
|
|
751
|
+
}),
|
|
752
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
753
|
+
onSelect: handleSelect,
|
|
754
|
+
children: "C++"
|
|
755
|
+
}),
|
|
756
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
757
|
+
onSelect: handleSelect,
|
|
758
|
+
children: "Java"
|
|
759
|
+
}),
|
|
760
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
761
|
+
onSelect: handleSelect,
|
|
762
|
+
children: "JavaScript"
|
|
763
|
+
}),
|
|
764
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
765
|
+
onSelect: handleSelect,
|
|
766
|
+
children: "Python"
|
|
767
|
+
}),
|
|
768
|
+
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
769
|
+
onSelect: handleSelect,
|
|
770
|
+
children: "Rust"
|
|
771
|
+
})
|
|
772
|
+
]
|
|
773
|
+
})] });
|
|
774
|
+
$[11] = t8;
|
|
775
|
+
} else t8 = $[11];
|
|
776
|
+
let t9;
|
|
777
|
+
if ($[12] !== open) {
|
|
778
|
+
t9 = /* @__PURE__ */ jsx(CommandMenuDialog, {
|
|
414
779
|
open,
|
|
415
780
|
onOpenChange: setOpen,
|
|
416
|
-
children:
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
children: "Inspect"
|
|
434
|
-
})
|
|
435
|
-
]
|
|
436
|
-
}), /* @__PURE__ */ jsxs(CommandMenuGroup, {
|
|
437
|
-
label: "Languages",
|
|
438
|
-
children: [
|
|
439
|
-
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
440
|
-
onSelect: handleSelect,
|
|
441
|
-
children: "C"
|
|
442
|
-
}),
|
|
443
|
-
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
444
|
-
onSelect: handleSelect,
|
|
445
|
-
children: "C++"
|
|
446
|
-
}),
|
|
447
|
-
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
448
|
-
onSelect: handleSelect,
|
|
449
|
-
children: "Java"
|
|
450
|
-
}),
|
|
451
|
-
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
452
|
-
onSelect: handleSelect,
|
|
453
|
-
children: "JavaScript"
|
|
454
|
-
}),
|
|
455
|
-
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
456
|
-
onSelect: handleSelect,
|
|
457
|
-
children: "Python"
|
|
458
|
-
}),
|
|
459
|
-
/* @__PURE__ */ jsx(CommandMenuItem, {
|
|
460
|
-
onSelect: handleSelect,
|
|
461
|
-
children: "Rust"
|
|
462
|
-
})
|
|
463
|
-
]
|
|
464
|
-
})] })
|
|
465
|
-
})]
|
|
466
|
-
});
|
|
781
|
+
children: t8
|
|
782
|
+
});
|
|
783
|
+
$[12] = open;
|
|
784
|
+
$[13] = t9;
|
|
785
|
+
} else t9 = $[13];
|
|
786
|
+
let t10;
|
|
787
|
+
if ($[14] !== t6 || $[15] !== t9) {
|
|
788
|
+
t10 = /* @__PURE__ */ jsxs(ExhibitSection, {
|
|
789
|
+
title: "Command menu",
|
|
790
|
+
docsPage: "ostack-ui-overlay-command-menu",
|
|
791
|
+
children: [t6, t9]
|
|
792
|
+
});
|
|
793
|
+
$[14] = t6;
|
|
794
|
+
$[15] = t9;
|
|
795
|
+
$[16] = t10;
|
|
796
|
+
} else t10 = $[16];
|
|
797
|
+
return t10;
|
|
467
798
|
}
|
|
468
799
|
//#endregion
|
|
469
800
|
//#region src/sections/DataTableSection.tsx
|
|
@@ -1120,260 +1451,331 @@ var ROWS$1 = [
|
|
|
1120
1451
|
}
|
|
1121
1452
|
];
|
|
1122
1453
|
function DataTableSection() {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
student: {
|
|
1138
|
-
label: "Student",
|
|
1139
|
-
header: true,
|
|
1140
|
-
sortable: true,
|
|
1141
|
-
filterable: true
|
|
1142
|
-
},
|
|
1143
|
-
grade: {
|
|
1144
|
-
label: "Grade",
|
|
1145
|
-
align: "right",
|
|
1146
|
-
sortable: true,
|
|
1147
|
-
filterable: true,
|
|
1148
|
-
format: ({ value }) => value.toFixed(1)
|
|
1149
|
-
}
|
|
1150
|
-
},
|
|
1151
|
-
rows: ROWS$1,
|
|
1152
|
-
rowKey: "id",
|
|
1153
|
-
displayMode: col === "scrolled" ? col : void 0,
|
|
1154
|
-
showSelectionColumn: col === "showSelectionColumn",
|
|
1155
|
-
defaultLimit: 5,
|
|
1156
|
-
children: [
|
|
1157
|
-
/* @__PURE__ */ jsx(Label, { children: "Exam grades" }),
|
|
1158
|
-
/* @__PURE__ */ jsx(DataTableFilter, {}),
|
|
1159
|
-
/* @__PURE__ */ jsx(DataTableContent, { variant: col === "default" || col === "control" ? col : void 0 }),
|
|
1160
|
-
/* @__PURE__ */ jsx(DataTableRowsPerPage, { limitOptions: [
|
|
1161
|
-
5,
|
|
1162
|
-
10,
|
|
1163
|
-
25,
|
|
1164
|
-
50,
|
|
1165
|
-
100
|
|
1166
|
-
] }),
|
|
1167
|
-
/* @__PURE__ */ jsx(DataTablePagination, {})
|
|
1168
|
-
]
|
|
1169
|
-
})
|
|
1454
|
+
const $ = c(1);
|
|
1455
|
+
let t0;
|
|
1456
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1457
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
1458
|
+
title: "Data table",
|
|
1459
|
+
docsPage: "ostack-ui-data-display-data-table",
|
|
1460
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
1461
|
+
cols: {
|
|
1462
|
+
Default: "default",
|
|
1463
|
+
Control: "control",
|
|
1464
|
+
Scrolled: "scrolled",
|
|
1465
|
+
Selectable: "showSelectionColumn"
|
|
1466
|
+
},
|
|
1467
|
+
renderItem: _temp2$1
|
|
1170
1468
|
})
|
|
1469
|
+
});
|
|
1470
|
+
$[0] = t0;
|
|
1471
|
+
} else t0 = $[0];
|
|
1472
|
+
return t0;
|
|
1473
|
+
}
|
|
1474
|
+
function _temp2$1(t0) {
|
|
1475
|
+
const { col } = t0;
|
|
1476
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
1477
|
+
style: { width: 450 },
|
|
1478
|
+
children: /* @__PURE__ */ jsxs(DataTable, {
|
|
1479
|
+
columns: {
|
|
1480
|
+
student: {
|
|
1481
|
+
label: "Student",
|
|
1482
|
+
header: true,
|
|
1483
|
+
sortable: true,
|
|
1484
|
+
filterable: true
|
|
1485
|
+
},
|
|
1486
|
+
grade: {
|
|
1487
|
+
label: "Grade",
|
|
1488
|
+
align: "right",
|
|
1489
|
+
sortable: true,
|
|
1490
|
+
filterable: true,
|
|
1491
|
+
format: _temp$18
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
rows: ROWS$1,
|
|
1495
|
+
rowKey: "id",
|
|
1496
|
+
displayMode: col === "scrolled" ? col : void 0,
|
|
1497
|
+
showSelectionColumn: col === "showSelectionColumn",
|
|
1498
|
+
defaultLimit: 5,
|
|
1499
|
+
children: [
|
|
1500
|
+
/* @__PURE__ */ jsx(Label, { children: "Exam grades" }),
|
|
1501
|
+
/* @__PURE__ */ jsx(DataTableFilter, {}),
|
|
1502
|
+
/* @__PURE__ */ jsx(DataTableContent, { variant: col === "default" || col === "control" ? col : void 0 }),
|
|
1503
|
+
/* @__PURE__ */ jsx(DataTableRowsPerPage, { limitOptions: [
|
|
1504
|
+
5,
|
|
1505
|
+
10,
|
|
1506
|
+
25,
|
|
1507
|
+
50,
|
|
1508
|
+
100
|
|
1509
|
+
] }),
|
|
1510
|
+
/* @__PURE__ */ jsx(DataTablePagination, {})
|
|
1511
|
+
]
|
|
1171
1512
|
})
|
|
1172
1513
|
});
|
|
1173
1514
|
}
|
|
1515
|
+
function _temp$18(t0) {
|
|
1516
|
+
const { value } = t0;
|
|
1517
|
+
return value.toFixed(1);
|
|
1518
|
+
}
|
|
1174
1519
|
//#endregion
|
|
1175
1520
|
//#region src/sections/DateInputSection.tsx
|
|
1176
1521
|
function DateInputSection() {
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
})
|
|
1220
|
-
|
|
1522
|
+
const $ = c(1);
|
|
1523
|
+
let t0;
|
|
1524
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1525
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
1526
|
+
title: "Date input",
|
|
1527
|
+
docsPage: "ostack-ui-forms-date-input",
|
|
1528
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
1529
|
+
cols: {
|
|
1530
|
+
Basic: "",
|
|
1531
|
+
"Helper text": "helperText",
|
|
1532
|
+
Required: "required",
|
|
1533
|
+
Disabled: "disabled",
|
|
1534
|
+
"Read-only": "readOnly",
|
|
1535
|
+
Loading: "loading",
|
|
1536
|
+
Code: "code"
|
|
1537
|
+
},
|
|
1538
|
+
rows: {
|
|
1539
|
+
"No status": void 0,
|
|
1540
|
+
Valid: "valid",
|
|
1541
|
+
Invalid: "invalid",
|
|
1542
|
+
Warned: "warned"
|
|
1543
|
+
},
|
|
1544
|
+
renderItem: _temp$17
|
|
1545
|
+
})
|
|
1546
|
+
});
|
|
1547
|
+
$[0] = t0;
|
|
1548
|
+
} else t0 = $[0];
|
|
1549
|
+
return t0;
|
|
1550
|
+
}
|
|
1551
|
+
function _temp$17(t0) {
|
|
1552
|
+
const { col, row } = t0;
|
|
1553
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
1554
|
+
/* @__PURE__ */ jsx(Label, { children: "Birthday" }),
|
|
1555
|
+
/* @__PURE__ */ jsx(DateInput, {
|
|
1556
|
+
containerProps: { style: { width: 145 } },
|
|
1557
|
+
defaultValue: new Date(1990, 3, 10),
|
|
1558
|
+
status: row,
|
|
1559
|
+
required: col === "required",
|
|
1560
|
+
disabled: col === "disabled",
|
|
1561
|
+
readOnly: col === "readOnly",
|
|
1562
|
+
loading: col === "loading",
|
|
1563
|
+
code: col === "code" ? "7.2" : void 0
|
|
1564
|
+
}),
|
|
1565
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
1566
|
+
type: "success",
|
|
1567
|
+
children: "Confirmed."
|
|
1568
|
+
}),
|
|
1569
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
1570
|
+
type: "warning",
|
|
1571
|
+
children: "Awaiting confirmation…"
|
|
1572
|
+
}),
|
|
1573
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Unable to confirm." }),
|
|
1574
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "For legal purposes." })
|
|
1575
|
+
] });
|
|
1221
1576
|
}
|
|
1222
1577
|
//#endregion
|
|
1223
1578
|
//#region src/sections/DateRangeInputSection.tsx
|
|
1224
1579
|
function DateRangeInputSection() {
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1580
|
+
const $ = c(1);
|
|
1581
|
+
let t0;
|
|
1582
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1583
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
1584
|
+
title: "Date-range input",
|
|
1585
|
+
docsPage: "ostack-ui-forms-date-range-input",
|
|
1586
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
1587
|
+
cols: {
|
|
1588
|
+
Basic: "",
|
|
1589
|
+
"Helper text": "helperText",
|
|
1590
|
+
Required: "required",
|
|
1591
|
+
Disabled: "disabled",
|
|
1592
|
+
"Read-only": "readOnly",
|
|
1593
|
+
Loading: "loading",
|
|
1594
|
+
Code: "code"
|
|
1595
|
+
},
|
|
1596
|
+
rows: {
|
|
1597
|
+
"No status": void 0,
|
|
1598
|
+
Valid: "valid",
|
|
1599
|
+
Invalid: "invalid",
|
|
1600
|
+
Warned: "warned"
|
|
1601
|
+
},
|
|
1602
|
+
renderItem: _temp$16
|
|
1603
|
+
})
|
|
1604
|
+
});
|
|
1605
|
+
$[0] = t0;
|
|
1606
|
+
} else t0 = $[0];
|
|
1607
|
+
return t0;
|
|
1608
|
+
}
|
|
1609
|
+
function _temp$16(t0) {
|
|
1610
|
+
const { col, row } = t0;
|
|
1611
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
1612
|
+
/* @__PURE__ */ jsx(Label, { children: "Time off" }),
|
|
1613
|
+
/* @__PURE__ */ jsx(DateRangeInput, {
|
|
1614
|
+
popoverAnchorProps: { style: { width: 280 } },
|
|
1615
|
+
defaultValue: {
|
|
1616
|
+
start: new Date(2026, 2, 10),
|
|
1617
|
+
end: new Date(2026, 2, 24)
|
|
1243
1618
|
},
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
}),
|
|
1263
|
-
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
1264
|
-
type: "warning",
|
|
1265
|
-
children: "Processing…"
|
|
1266
|
-
}),
|
|
1267
|
-
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Not accepted." }),
|
|
1268
|
-
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "Reserve your paid time off." })
|
|
1269
|
-
] })
|
|
1270
|
-
})
|
|
1271
|
-
});
|
|
1619
|
+
status: row,
|
|
1620
|
+
required: col === "required",
|
|
1621
|
+
disabled: col === "disabled",
|
|
1622
|
+
readOnly: col === "readOnly",
|
|
1623
|
+
loading: col === "loading",
|
|
1624
|
+
code: col === "code" ? "1.6" : void 0
|
|
1625
|
+
}),
|
|
1626
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
1627
|
+
type: "success",
|
|
1628
|
+
children: "Accepted."
|
|
1629
|
+
}),
|
|
1630
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
1631
|
+
type: "warning",
|
|
1632
|
+
children: "Processing…"
|
|
1633
|
+
}),
|
|
1634
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Not accepted." }),
|
|
1635
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "Reserve your paid time off." })
|
|
1636
|
+
] });
|
|
1272
1637
|
}
|
|
1273
1638
|
//#endregion
|
|
1274
1639
|
//#region src/sections/DescriptionListSection.tsx
|
|
1275
1640
|
function DescriptionListSection() {
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
term: "Public IPv4",
|
|
1301
|
-
xs: 6,
|
|
1302
|
-
md: 4,
|
|
1303
|
-
lg: 3,
|
|
1304
|
-
xl: 2,
|
|
1305
|
-
children: /* @__PURE__ */ jsx(Link, {
|
|
1306
|
-
href: "http://203.0.113.88",
|
|
1307
|
-
external: true,
|
|
1308
|
-
children: "203.0.113.88"
|
|
1309
|
-
})
|
|
1310
|
-
}),
|
|
1311
|
-
/* @__PURE__ */ jsx(DescriptionListItem, {
|
|
1312
|
-
term: "Storage",
|
|
1313
|
-
xs: 6,
|
|
1314
|
-
md: 4,
|
|
1315
|
-
lg: 3,
|
|
1316
|
-
xl: 2,
|
|
1317
|
-
children: "20 GB (SSD)"
|
|
1318
|
-
}),
|
|
1319
|
-
/* @__PURE__ */ jsx(DescriptionListItem, {
|
|
1320
|
-
term: "Availability Zone",
|
|
1321
|
-
xs: 6,
|
|
1322
|
-
md: 4,
|
|
1323
|
-
lg: 3,
|
|
1324
|
-
xl: 2,
|
|
1325
|
-
children: /* @__PURE__ */ jsx(Code, { children: "us-east-1a" })
|
|
1326
|
-
}),
|
|
1327
|
-
/* @__PURE__ */ jsx(DescriptionListItem, {
|
|
1328
|
-
term: "Launch Time",
|
|
1329
|
-
xs: 6,
|
|
1330
|
-
md: 4,
|
|
1331
|
-
lg: 3,
|
|
1332
|
-
xl: 2,
|
|
1333
|
-
children: "2026-02-12 14:30 UTC"
|
|
1641
|
+
const $ = c(5);
|
|
1642
|
+
let t0;
|
|
1643
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1644
|
+
t0 = /* @__PURE__ */ jsx(DescriptionListItem, {
|
|
1645
|
+
term: "Instance ID",
|
|
1646
|
+
xs: 6,
|
|
1647
|
+
md: 4,
|
|
1648
|
+
lg: 3,
|
|
1649
|
+
xl: 2,
|
|
1650
|
+
children: /* @__PURE__ */ jsx(Code, { children: "i-04f29a87bca612" })
|
|
1651
|
+
});
|
|
1652
|
+
$[0] = t0;
|
|
1653
|
+
} else t0 = $[0];
|
|
1654
|
+
let t1;
|
|
1655
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1656
|
+
t1 = /* @__PURE__ */ jsx(DescriptionListItem, {
|
|
1657
|
+
term: "Status",
|
|
1658
|
+
xs: 6,
|
|
1659
|
+
md: 4,
|
|
1660
|
+
lg: 3,
|
|
1661
|
+
xl: 2,
|
|
1662
|
+
children: /* @__PURE__ */ jsx(Tag, {
|
|
1663
|
+
color: "success",
|
|
1664
|
+
children: "Running"
|
|
1334
1665
|
})
|
|
1335
|
-
|
|
1336
|
-
|
|
1666
|
+
});
|
|
1667
|
+
$[1] = t1;
|
|
1668
|
+
} else t1 = $[1];
|
|
1669
|
+
let t2;
|
|
1670
|
+
let t3;
|
|
1671
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1672
|
+
t2 = /* @__PURE__ */ jsx(DescriptionListItem, {
|
|
1673
|
+
term: "Public IPv4",
|
|
1674
|
+
xs: 6,
|
|
1675
|
+
md: 4,
|
|
1676
|
+
lg: 3,
|
|
1677
|
+
xl: 2,
|
|
1678
|
+
children: /* @__PURE__ */ jsx(Link, {
|
|
1679
|
+
href: "http://203.0.113.88",
|
|
1680
|
+
external: true,
|
|
1681
|
+
children: "203.0.113.88"
|
|
1682
|
+
})
|
|
1683
|
+
});
|
|
1684
|
+
t3 = /* @__PURE__ */ jsx(DescriptionListItem, {
|
|
1685
|
+
term: "Storage",
|
|
1686
|
+
xs: 6,
|
|
1687
|
+
md: 4,
|
|
1688
|
+
lg: 3,
|
|
1689
|
+
xl: 2,
|
|
1690
|
+
children: "20 GB (SSD)"
|
|
1691
|
+
});
|
|
1692
|
+
$[2] = t2;
|
|
1693
|
+
$[3] = t3;
|
|
1694
|
+
} else {
|
|
1695
|
+
t2 = $[2];
|
|
1696
|
+
t3 = $[3];
|
|
1697
|
+
}
|
|
1698
|
+
let t4;
|
|
1699
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1700
|
+
t4 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
1701
|
+
title: "Description list",
|
|
1702
|
+
docsPage: "ostack-ui-data-display-description-list",
|
|
1703
|
+
children: /* @__PURE__ */ jsxs(DescriptionList, { children: [
|
|
1704
|
+
t0,
|
|
1705
|
+
t1,
|
|
1706
|
+
t2,
|
|
1707
|
+
t3,
|
|
1708
|
+
/* @__PURE__ */ jsx(DescriptionListItem, {
|
|
1709
|
+
term: "Availability Zone",
|
|
1710
|
+
xs: 6,
|
|
1711
|
+
md: 4,
|
|
1712
|
+
lg: 3,
|
|
1713
|
+
xl: 2,
|
|
1714
|
+
children: /* @__PURE__ */ jsx(Code, { children: "us-east-1a" })
|
|
1715
|
+
}),
|
|
1716
|
+
/* @__PURE__ */ jsx(DescriptionListItem, {
|
|
1717
|
+
term: "Launch Time",
|
|
1718
|
+
xs: 6,
|
|
1719
|
+
md: 4,
|
|
1720
|
+
lg: 3,
|
|
1721
|
+
xl: 2,
|
|
1722
|
+
children: "2026-02-12 14:30 UTC"
|
|
1723
|
+
})
|
|
1724
|
+
] })
|
|
1725
|
+
});
|
|
1726
|
+
$[4] = t4;
|
|
1727
|
+
} else t4 = $[4];
|
|
1728
|
+
return t4;
|
|
1337
1729
|
}
|
|
1338
1730
|
//#endregion
|
|
1339
1731
|
//#region src/sections/DialogSection.tsx
|
|
1340
1732
|
function DialogSection() {
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
})
|
|
1363
|
-
|
|
1733
|
+
const $ = c(1);
|
|
1734
|
+
let t0;
|
|
1735
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1736
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
1737
|
+
title: "Dialog",
|
|
1738
|
+
docsPage: "ostack-ui-overlay-dialog",
|
|
1739
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
1740
|
+
cols: {
|
|
1741
|
+
Neutral: "neutral",
|
|
1742
|
+
Primary: "primary",
|
|
1743
|
+
Success: "success",
|
|
1744
|
+
Danger: "danger",
|
|
1745
|
+
Warning: "warning"
|
|
1746
|
+
},
|
|
1747
|
+
rows: {
|
|
1748
|
+
Solid: "solid",
|
|
1749
|
+
Subtle: "subtle",
|
|
1750
|
+
Outlined: "outlined",
|
|
1751
|
+
Ghost: "ghost"
|
|
1752
|
+
},
|
|
1753
|
+
renderItem: _temp$15
|
|
1754
|
+
})
|
|
1755
|
+
});
|
|
1756
|
+
$[0] = t0;
|
|
1757
|
+
} else t0 = $[0];
|
|
1758
|
+
return t0;
|
|
1759
|
+
}
|
|
1760
|
+
function _temp$15(t0) {
|
|
1761
|
+
const { col, row } = t0;
|
|
1762
|
+
return /* @__PURE__ */ jsxs(Dialog, { children: [/* @__PURE__ */ jsx(DialogTrigger, { children: /* @__PURE__ */ jsx(Button, {
|
|
1763
|
+
variant: row,
|
|
1764
|
+
color: col,
|
|
1765
|
+
children: "Edit"
|
|
1766
|
+
}) }), /* @__PURE__ */ jsx(DialogContent, {
|
|
1767
|
+
variant: row,
|
|
1768
|
+
color: col,
|
|
1769
|
+
asChild: true,
|
|
1770
|
+
children: /* @__PURE__ */ jsxs("form", { children: [
|
|
1771
|
+
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Edit user information" }) }),
|
|
1772
|
+
/* @__PURE__ */ jsxs(DialogBody, { children: [/* @__PURE__ */ jsx(DialogDescription, { children: "Edit user information below, changes are saved automatically." }), /* @__PURE__ */ jsxs(Stack, { children: [/* @__PURE__ */ jsxs(Field, { children: [/* @__PURE__ */ jsx(Label, { children: "Name" }), /* @__PURE__ */ jsx(Input, { defaultValue: "Charles McClain" })] }), /* @__PURE__ */ jsxs(Field, { children: [/* @__PURE__ */ jsx(Label, { children: "Date of birth" }), /* @__PURE__ */ jsx(DateInput, { defaultValue: new Date(1993, 4, 4) })] })] })] }),
|
|
1773
|
+
/* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(DialogClose, { children: /* @__PURE__ */ jsx(Button, {
|
|
1364
1774
|
color: col,
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
/* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(DialogClose, { children: /* @__PURE__ */ jsx(Button, {
|
|
1370
|
-
color: col,
|
|
1371
|
-
children: "Close"
|
|
1372
|
-
}) }) })
|
|
1373
|
-
] })
|
|
1374
|
-
})] })
|
|
1375
|
-
})
|
|
1376
|
-
});
|
|
1775
|
+
children: "Close"
|
|
1776
|
+
}) }) })
|
|
1777
|
+
] })
|
|
1778
|
+
})] });
|
|
1377
1779
|
}
|
|
1378
1780
|
//#endregion
|
|
1379
1781
|
//#region ../../node_modules/@fortawesome/free-brands-svg-icons/index.mjs
|
|
@@ -1418,640 +1820,927 @@ var faWikipediaW = {
|
|
|
1418
1820
|
//#endregion
|
|
1419
1821
|
//#region src/sections/DropdownMenuSection.tsx
|
|
1420
1822
|
function DropdownMenuSection() {
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1823
|
+
const $ = c(9);
|
|
1824
|
+
let t0;
|
|
1825
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1826
|
+
t0 = /* @__PURE__ */ jsx(DropdownMenuTrigger, { children: /* @__PURE__ */ jsx(Button, {
|
|
1425
1827
|
icon: faGear,
|
|
1426
1828
|
children: "Settings"
|
|
1427
|
-
}) })
|
|
1428
|
-
|
|
1829
|
+
}) });
|
|
1830
|
+
$[0] = t0;
|
|
1831
|
+
} else t0 = $[0];
|
|
1832
|
+
let t1;
|
|
1833
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1834
|
+
t1 = { minWidth: 200 };
|
|
1835
|
+
$[1] = t1;
|
|
1836
|
+
} else t1 = $[1];
|
|
1837
|
+
let t2;
|
|
1838
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1839
|
+
t2 = /* @__PURE__ */ jsxs(DropdownMenuGroup, {
|
|
1840
|
+
label: "Connectivity",
|
|
1429
1841
|
children: [
|
|
1430
|
-
/* @__PURE__ */
|
|
1431
|
-
|
|
1432
|
-
children:
|
|
1433
|
-
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1434
|
-
icon: faWifi,
|
|
1435
|
-
children: "Wi-Fi"
|
|
1436
|
-
}),
|
|
1437
|
-
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1438
|
-
icon: faNetworkWired,
|
|
1439
|
-
children: "Network"
|
|
1440
|
-
}),
|
|
1441
|
-
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1442
|
-
icon: faBluetooth,
|
|
1443
|
-
children: "Bluetooth"
|
|
1444
|
-
})
|
|
1445
|
-
]
|
|
1842
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1843
|
+
icon: faWifi,
|
|
1844
|
+
children: "Wi-Fi"
|
|
1446
1845
|
}),
|
|
1447
|
-
/* @__PURE__ */
|
|
1448
|
-
|
|
1449
|
-
children:
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1846
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1847
|
+
icon: faNetworkWired,
|
|
1848
|
+
children: "Network"
|
|
1849
|
+
}),
|
|
1850
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1851
|
+
icon: faBluetooth,
|
|
1852
|
+
children: "Bluetooth"
|
|
1853
|
+
})
|
|
1854
|
+
]
|
|
1855
|
+
});
|
|
1856
|
+
$[2] = t2;
|
|
1857
|
+
} else t2 = $[2];
|
|
1858
|
+
let t3;
|
|
1859
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1860
|
+
t3 = /* @__PURE__ */ jsxs(DropdownMenuGroup, {
|
|
1861
|
+
label: "Devices",
|
|
1862
|
+
children: [
|
|
1863
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1864
|
+
icon: faDisplay,
|
|
1865
|
+
children: "Displays"
|
|
1866
|
+
}),
|
|
1867
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1868
|
+
icon: faVolumeHigh,
|
|
1869
|
+
children: "Sound"
|
|
1870
|
+
}),
|
|
1871
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1872
|
+
icon: faKeyboard,
|
|
1873
|
+
children: "Input"
|
|
1467
1874
|
}),
|
|
1468
|
-
/* @__PURE__ */
|
|
1469
|
-
|
|
1875
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1876
|
+
icon: faPrint,
|
|
1877
|
+
children: "Printers"
|
|
1878
|
+
})
|
|
1879
|
+
]
|
|
1880
|
+
});
|
|
1881
|
+
$[3] = t3;
|
|
1882
|
+
} else t3 = $[3];
|
|
1883
|
+
let t4;
|
|
1884
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1885
|
+
t4 = /* @__PURE__ */ jsxs(DropdownMenuRadioGroup, {
|
|
1886
|
+
label: "Language",
|
|
1887
|
+
value: "en",
|
|
1888
|
+
children: [
|
|
1889
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
1470
1890
|
value: "en",
|
|
1471
|
-
children:
|
|
1472
|
-
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
1473
|
-
value: "en",
|
|
1474
|
-
children: "English"
|
|
1475
|
-
}),
|
|
1476
|
-
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
1477
|
-
value: "pt",
|
|
1478
|
-
children: "Portuguese"
|
|
1479
|
-
}),
|
|
1480
|
-
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
1481
|
-
value: "es",
|
|
1482
|
-
disabled: true,
|
|
1483
|
-
children: "Spanish"
|
|
1484
|
-
})
|
|
1485
|
-
]
|
|
1891
|
+
children: "English"
|
|
1486
1892
|
}),
|
|
1487
|
-
/* @__PURE__ */
|
|
1488
|
-
|
|
1489
|
-
children:
|
|
1490
|
-
checked: true,
|
|
1491
|
-
children: "Weather"
|
|
1492
|
-
})]
|
|
1893
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
1894
|
+
value: "pt",
|
|
1895
|
+
children: "Portuguese"
|
|
1493
1896
|
}),
|
|
1494
|
-
/* @__PURE__ */ jsx(
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
children: "Users"
|
|
1500
|
-
})] }), /* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1501
|
-
icon: faCircleXmark,
|
|
1502
|
-
color: "danger",
|
|
1503
|
-
children: "Factory reset"
|
|
1504
|
-
}) })] })] }) })
|
|
1897
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioItem, {
|
|
1898
|
+
value: "es",
|
|
1899
|
+
disabled: true,
|
|
1900
|
+
children: "Spanish"
|
|
1901
|
+
})
|
|
1505
1902
|
]
|
|
1506
|
-
})
|
|
1507
|
-
|
|
1903
|
+
});
|
|
1904
|
+
$[4] = t4;
|
|
1905
|
+
} else t4 = $[4];
|
|
1906
|
+
let t5;
|
|
1907
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1908
|
+
t5 = /* @__PURE__ */ jsxs(DropdownMenuGroup, {
|
|
1909
|
+
label: "Notifications",
|
|
1910
|
+
children: [/* @__PURE__ */ jsx(DropdownMenuCheckboxItem, { children: "Calendar" }), /* @__PURE__ */ jsx(DropdownMenuCheckboxItem, {
|
|
1911
|
+
checked: true,
|
|
1912
|
+
children: "Weather"
|
|
1913
|
+
})]
|
|
1914
|
+
});
|
|
1915
|
+
$[5] = t5;
|
|
1916
|
+
} else t5 = $[5];
|
|
1917
|
+
let t6;
|
|
1918
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1919
|
+
t6 = /* @__PURE__ */ jsx(DropdownMenuSubTrigger, { children: "System" });
|
|
1920
|
+
$[6] = t6;
|
|
1921
|
+
} else t6 = $[6];
|
|
1922
|
+
let t7;
|
|
1923
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1924
|
+
t7 = /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [/* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1925
|
+
icon: faClock,
|
|
1926
|
+
children: "Date & Time"
|
|
1927
|
+
}), /* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1928
|
+
icon: faUser,
|
|
1929
|
+
children: "Users"
|
|
1930
|
+
})] });
|
|
1931
|
+
$[7] = t7;
|
|
1932
|
+
} else t7 = $[7];
|
|
1933
|
+
let t8;
|
|
1934
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1935
|
+
t8 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
1936
|
+
title: "Dropdown menu",
|
|
1937
|
+
docsPage: "ostack-ui-overlay-dropdown-menu",
|
|
1938
|
+
children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [t0, /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
1939
|
+
style: t1,
|
|
1940
|
+
children: [
|
|
1941
|
+
t2,
|
|
1942
|
+
t3,
|
|
1943
|
+
t4,
|
|
1944
|
+
t5,
|
|
1945
|
+
/* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsxs(DropdownMenuSub, { children: [t6, /* @__PURE__ */ jsxs(DropdownMenuSubContent, { children: [t7, /* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
1946
|
+
icon: faCircleXmark,
|
|
1947
|
+
color: "danger",
|
|
1948
|
+
children: "Factory reset"
|
|
1949
|
+
}) })] })] }) })
|
|
1950
|
+
]
|
|
1951
|
+
})] })
|
|
1952
|
+
});
|
|
1953
|
+
$[8] = t8;
|
|
1954
|
+
} else t8 = $[8];
|
|
1955
|
+
return t8;
|
|
1508
1956
|
}
|
|
1509
1957
|
//#endregion
|
|
1510
1958
|
//#region src/sections/FieldGroupSection.tsx
|
|
1511
1959
|
function FieldGroupSection() {
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1960
|
+
const $ = c(1);
|
|
1961
|
+
let t0;
|
|
1962
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1963
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
1964
|
+
title: "Field group",
|
|
1965
|
+
docsPage: "ostack-ui-forms-field-group",
|
|
1966
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
1967
|
+
cols: {
|
|
1968
|
+
Basic: "basic",
|
|
1969
|
+
Code: "code"
|
|
1970
|
+
},
|
|
1971
|
+
renderItem: _temp$14
|
|
1972
|
+
})
|
|
1973
|
+
});
|
|
1974
|
+
$[0] = t0;
|
|
1975
|
+
} else t0 = $[0];
|
|
1976
|
+
return t0;
|
|
1977
|
+
}
|
|
1978
|
+
function _temp$14(t0) {
|
|
1979
|
+
const { col } = t0;
|
|
1980
|
+
return /* @__PURE__ */ jsxs(FieldGroup, { children: [/* @__PURE__ */ jsx(FieldGroupHeader, {
|
|
1981
|
+
code: col === "code" ? "1" : void 0,
|
|
1982
|
+
children: /* @__PURE__ */ jsx(FieldGroupTitle, { children: "Identification" })
|
|
1983
|
+
}), /* @__PURE__ */ jsx(FieldGroupBody, { children: /* @__PURE__ */ jsxs(Stack, {
|
|
1984
|
+
gap: 3,
|
|
1985
|
+
children: [/* @__PURE__ */ jsxs(Field, { children: [/* @__PURE__ */ jsx(Label, { children: "Full name" }), /* @__PURE__ */ jsx(Input, { code: col === "code" ? "1.1" : void 0 })] }), /* @__PURE__ */ jsxs(Field, { children: [/* @__PURE__ */ jsx(Label, { children: "Passport number" }), /* @__PURE__ */ jsx(Input, { code: col === "code" ? "1.2" : void 0 })] })]
|
|
1986
|
+
}) })] });
|
|
1529
1987
|
}
|
|
1530
1988
|
//#endregion
|
|
1531
1989
|
//#region src/sections/IconButtonSection.tsx
|
|
1532
1990
|
function IconButtonSection() {
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
color: col === "disabled" || col === "loading" || col === "keybinds" ? void 0 : col,
|
|
1558
|
-
disabled: col === "disabled",
|
|
1559
|
-
loading: col === "loading",
|
|
1560
|
-
loadingLabel: col === "loading" ? "Blooming…" : void 0,
|
|
1561
|
-
keybinds: col === "keybinds" ? "Alt+Shift+B" : void 0
|
|
1991
|
+
const $ = c(1);
|
|
1992
|
+
let t0;
|
|
1993
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1994
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
1995
|
+
title: "Icon button",
|
|
1996
|
+
docsPage: "ostack-ui-forms-icon-button",
|
|
1997
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
1998
|
+
cols: {
|
|
1999
|
+
Neutral: "neutral",
|
|
2000
|
+
Primary: "primary",
|
|
2001
|
+
Success: "success",
|
|
2002
|
+
Danger: "danger",
|
|
2003
|
+
Warning: "warning",
|
|
2004
|
+
Disabled: "disabled",
|
|
2005
|
+
Loading: "loading",
|
|
2006
|
+
Keybinds: "keybinds"
|
|
2007
|
+
},
|
|
2008
|
+
rows: {
|
|
2009
|
+
Solid: "solid",
|
|
2010
|
+
Subtle: "subtle",
|
|
2011
|
+
Outlined: "outlined",
|
|
2012
|
+
Ghost: "ghost"
|
|
2013
|
+
},
|
|
2014
|
+
renderItem: _temp$13
|
|
1562
2015
|
})
|
|
1563
|
-
})
|
|
2016
|
+
});
|
|
2017
|
+
$[0] = t0;
|
|
2018
|
+
} else t0 = $[0];
|
|
2019
|
+
return t0;
|
|
2020
|
+
}
|
|
2021
|
+
function _temp$13(t0) {
|
|
2022
|
+
const { col, row } = t0;
|
|
2023
|
+
return /* @__PURE__ */ jsx(IconButton, {
|
|
2024
|
+
label: "Bloom",
|
|
2025
|
+
icon: faSeedling,
|
|
2026
|
+
variant: row,
|
|
2027
|
+
color: col === "disabled" || col === "loading" || col === "keybinds" ? void 0 : col,
|
|
2028
|
+
disabled: col === "disabled",
|
|
2029
|
+
loading: col === "loading",
|
|
2030
|
+
loadingLabel: col === "loading" ? "Blooming…" : void 0,
|
|
2031
|
+
keybinds: col === "keybinds" ? "Alt+Shift+B" : void 0
|
|
1564
2032
|
});
|
|
1565
2033
|
}
|
|
1566
2034
|
//#endregion
|
|
1567
2035
|
//#region src/sections/InputSection.tsx
|
|
1568
2036
|
function InputSection() {
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
})
|
|
1618
|
-
|
|
2037
|
+
const $ = c(1);
|
|
2038
|
+
let t0;
|
|
2039
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2040
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2041
|
+
title: "Input",
|
|
2042
|
+
docsPage: "ostack-ui-forms-input",
|
|
2043
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2044
|
+
cols: {
|
|
2045
|
+
Basic: "",
|
|
2046
|
+
"Helper text": "helperText",
|
|
2047
|
+
Required: "required",
|
|
2048
|
+
"Label help": "labelHelp",
|
|
2049
|
+
Disabled: "disabled",
|
|
2050
|
+
"Read-only": "readOnly",
|
|
2051
|
+
Loading: "loading",
|
|
2052
|
+
Code: "code",
|
|
2053
|
+
"Clear button": "showClearButton"
|
|
2054
|
+
},
|
|
2055
|
+
rows: {
|
|
2056
|
+
"No status": void 0,
|
|
2057
|
+
Valid: "valid",
|
|
2058
|
+
Invalid: "invalid",
|
|
2059
|
+
Warned: "warned"
|
|
2060
|
+
},
|
|
2061
|
+
renderItem: _temp$12
|
|
2062
|
+
})
|
|
2063
|
+
});
|
|
2064
|
+
$[0] = t0;
|
|
2065
|
+
} else t0 = $[0];
|
|
2066
|
+
return t0;
|
|
2067
|
+
}
|
|
2068
|
+
function _temp$12(t0) {
|
|
2069
|
+
const { col, row } = t0;
|
|
2070
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
2071
|
+
/* @__PURE__ */ jsx(Label, {
|
|
2072
|
+
helperText: col === "labelHelp" ? "Used to sign in." : void 0,
|
|
2073
|
+
children: "Username"
|
|
2074
|
+
}),
|
|
2075
|
+
/* @__PURE__ */ jsx(Input, {
|
|
2076
|
+
containerProps: { style: { width: 110 } },
|
|
2077
|
+
defaultValue: "j_smith",
|
|
2078
|
+
status: row,
|
|
2079
|
+
required: col === "required",
|
|
2080
|
+
disabled: col === "disabled",
|
|
2081
|
+
readOnly: col === "readOnly",
|
|
2082
|
+
loading: col === "loading",
|
|
2083
|
+
code: col === "code" ? "1.1" : void 0,
|
|
2084
|
+
showClearButton: col === "showClearButton" ? "auto" : void 0
|
|
2085
|
+
}),
|
|
2086
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
2087
|
+
type: "success",
|
|
2088
|
+
children: "Available."
|
|
2089
|
+
}),
|
|
2090
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
2091
|
+
type: "warning",
|
|
2092
|
+
children: "Already taken."
|
|
2093
|
+
}),
|
|
2094
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Invalid format." }),
|
|
2095
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "Used to sign in." })
|
|
2096
|
+
] });
|
|
1619
2097
|
}
|
|
1620
2098
|
//#endregion
|
|
1621
2099
|
//#region src/sections/KeyboardSection.tsx
|
|
1622
2100
|
function KeyboardSection() {
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
children:
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
2101
|
+
const $ = c(2);
|
|
2102
|
+
let t0;
|
|
2103
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2104
|
+
t0 = /* @__PURE__ */ jsx(Keyboard, { children: "Ctrl" });
|
|
2105
|
+
$[0] = t0;
|
|
2106
|
+
} else t0 = $[0];
|
|
2107
|
+
let t1;
|
|
2108
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2109
|
+
t1 = /* @__PURE__ */ jsxs(ExhibitSection, {
|
|
2110
|
+
title: "Keyboard",
|
|
2111
|
+
docsPage: "ostack-ui-typography-keyboard",
|
|
2112
|
+
children: [
|
|
2113
|
+
"Press ",
|
|
2114
|
+
t0,
|
|
2115
|
+
" + ",
|
|
2116
|
+
/* @__PURE__ */ jsx(Keyboard, { children: "P" }),
|
|
2117
|
+
" to print."
|
|
2118
|
+
]
|
|
2119
|
+
});
|
|
2120
|
+
$[1] = t1;
|
|
2121
|
+
} else t1 = $[1];
|
|
2122
|
+
return t1;
|
|
1634
2123
|
}
|
|
1635
2124
|
//#endregion
|
|
1636
2125
|
//#region src/sections/LinkSection.tsx
|
|
1637
2126
|
function LinkSection() {
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
children: col === "external" ? "Wikipedia" : "Go to top"
|
|
2127
|
+
const $ = c(1);
|
|
2128
|
+
let t0;
|
|
2129
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2130
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2131
|
+
title: "Link",
|
|
2132
|
+
docsPage: "ostack-ui-typography-link",
|
|
2133
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2134
|
+
cols: {
|
|
2135
|
+
Neutral: "neutral",
|
|
2136
|
+
Primary: "primary",
|
|
2137
|
+
Success: "success",
|
|
2138
|
+
Danger: "danger",
|
|
2139
|
+
Warning: "warning",
|
|
2140
|
+
External: "external"
|
|
2141
|
+
},
|
|
2142
|
+
renderItem: _temp$11
|
|
1655
2143
|
})
|
|
1656
|
-
})
|
|
2144
|
+
});
|
|
2145
|
+
$[0] = t0;
|
|
2146
|
+
} else t0 = $[0];
|
|
2147
|
+
return t0;
|
|
2148
|
+
}
|
|
2149
|
+
function _temp$11(t0) {
|
|
2150
|
+
const { col } = t0;
|
|
2151
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
2152
|
+
href: col === "external" ? "https://www.wikipedia.org/" : "#",
|
|
2153
|
+
color: col === "external" ? void 0 : col,
|
|
2154
|
+
external: col === "external",
|
|
2155
|
+
children: col === "external" ? "Wikipedia" : "Go to top"
|
|
1657
2156
|
});
|
|
1658
2157
|
}
|
|
1659
2158
|
//#endregion
|
|
1660
2159
|
//#region src/sections/MarkSection.tsx
|
|
1661
2160
|
function MarkSection() {
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
2161
|
+
const $ = c(1);
|
|
2162
|
+
let t0;
|
|
2163
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2164
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2165
|
+
title: "Mark",
|
|
2166
|
+
docsPage: "ostack-ui-typography-mark",
|
|
2167
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2168
|
+
cols: {
|
|
2169
|
+
Neutral: "neutral",
|
|
2170
|
+
Primary: "primary",
|
|
2171
|
+
Success: "success",
|
|
2172
|
+
Danger: "danger",
|
|
2173
|
+
Warning: "warning"
|
|
2174
|
+
},
|
|
2175
|
+
renderItem: _temp$10
|
|
2176
|
+
})
|
|
2177
|
+
});
|
|
2178
|
+
$[0] = t0;
|
|
2179
|
+
} else t0 = $[0];
|
|
2180
|
+
return t0;
|
|
2181
|
+
}
|
|
2182
|
+
function _temp$10(t0) {
|
|
2183
|
+
const { col } = t0;
|
|
2184
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2185
|
+
"The deadline is ",
|
|
2186
|
+
/* @__PURE__ */ jsx(Mark, {
|
|
2187
|
+
color: col,
|
|
2188
|
+
children: "Friday"
|
|
2189
|
+
}),
|
|
2190
|
+
"."
|
|
2191
|
+
] });
|
|
1683
2192
|
}
|
|
1684
2193
|
//#endregion
|
|
1685
2194
|
//#region src/sections/MenuListSection.tsx
|
|
1686
2195
|
function MenuListSection() {
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
label: "Actions",
|
|
1700
|
-
children: [
|
|
1701
|
-
/* @__PURE__ */ jsx(MenuListItem, {
|
|
1702
|
-
icon: faEye,
|
|
1703
|
-
selected: true,
|
|
1704
|
-
children: "View"
|
|
1705
|
-
}),
|
|
1706
|
-
/* @__PURE__ */ jsx(MenuListItem, {
|
|
1707
|
-
icon: faPencil,
|
|
1708
|
-
children: "Edit"
|
|
1709
|
-
}),
|
|
1710
|
-
/* @__PURE__ */ jsx(MenuListItem, {
|
|
1711
|
-
icon: faTrashCan,
|
|
1712
|
-
color: "danger",
|
|
1713
|
-
children: "Delete"
|
|
1714
|
-
})
|
|
1715
|
-
]
|
|
1716
|
-
}), /* @__PURE__ */ jsxs(MenuListGroup, {
|
|
1717
|
-
label: "Links",
|
|
1718
|
-
children: [/* @__PURE__ */ jsx(MenuListItem, {
|
|
1719
|
-
type: "link",
|
|
1720
|
-
href: "https://www.wikipedia.org/",
|
|
1721
|
-
icon: faWikipediaW,
|
|
1722
|
-
target: "_blank",
|
|
1723
|
-
rel: "noopener noreferrer",
|
|
1724
|
-
children: "Wikipedia"
|
|
1725
|
-
}), /* @__PURE__ */ jsx(MenuListItem, {
|
|
1726
|
-
type: "link",
|
|
1727
|
-
href: "https://react.dev",
|
|
1728
|
-
icon: faReact,
|
|
1729
|
-
target: "_blank",
|
|
1730
|
-
rel: "noopener noreferrer",
|
|
1731
|
-
children: "React"
|
|
1732
|
-
})]
|
|
1733
|
-
})]
|
|
2196
|
+
const $ = c(1);
|
|
2197
|
+
let t0;
|
|
2198
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2199
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2200
|
+
title: "Menu list",
|
|
2201
|
+
docsPage: "ostack-ui-overlay-dropdown-menu",
|
|
2202
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2203
|
+
cols: {
|
|
2204
|
+
Subtle: "subtle",
|
|
2205
|
+
Solid: "solid"
|
|
2206
|
+
},
|
|
2207
|
+
renderItem: _temp$9
|
|
1734
2208
|
})
|
|
1735
|
-
})
|
|
2209
|
+
});
|
|
2210
|
+
$[0] = t0;
|
|
2211
|
+
} else t0 = $[0];
|
|
2212
|
+
return t0;
|
|
2213
|
+
}
|
|
2214
|
+
function _temp$9(t0) {
|
|
2215
|
+
const { col } = t0;
|
|
2216
|
+
return /* @__PURE__ */ jsxs(MenuList, {
|
|
2217
|
+
variant: col,
|
|
2218
|
+
style: { width: 250 },
|
|
2219
|
+
children: [/* @__PURE__ */ jsxs(MenuListGroup, {
|
|
2220
|
+
label: "Actions",
|
|
2221
|
+
children: [
|
|
2222
|
+
/* @__PURE__ */ jsx(MenuListItem, {
|
|
2223
|
+
icon: faEye,
|
|
2224
|
+
selected: true,
|
|
2225
|
+
children: "View"
|
|
2226
|
+
}),
|
|
2227
|
+
/* @__PURE__ */ jsx(MenuListItem, {
|
|
2228
|
+
icon: faPencil,
|
|
2229
|
+
children: "Edit"
|
|
2230
|
+
}),
|
|
2231
|
+
/* @__PURE__ */ jsx(MenuListItem, {
|
|
2232
|
+
icon: faTrashCan,
|
|
2233
|
+
color: "danger",
|
|
2234
|
+
children: "Delete"
|
|
2235
|
+
})
|
|
2236
|
+
]
|
|
2237
|
+
}), /* @__PURE__ */ jsxs(MenuListGroup, {
|
|
2238
|
+
label: "Links",
|
|
2239
|
+
children: [/* @__PURE__ */ jsx(MenuListItem, {
|
|
2240
|
+
type: "link",
|
|
2241
|
+
href: "https://www.wikipedia.org/",
|
|
2242
|
+
icon: faWikipediaW,
|
|
2243
|
+
target: "_blank",
|
|
2244
|
+
rel: "noopener noreferrer",
|
|
2245
|
+
children: "Wikipedia"
|
|
2246
|
+
}), /* @__PURE__ */ jsx(MenuListItem, {
|
|
2247
|
+
type: "link",
|
|
2248
|
+
href: "https://react.dev",
|
|
2249
|
+
icon: faReact,
|
|
2250
|
+
target: "_blank",
|
|
2251
|
+
rel: "noopener noreferrer",
|
|
2252
|
+
children: "React"
|
|
2253
|
+
})]
|
|
2254
|
+
})]
|
|
1736
2255
|
});
|
|
1737
2256
|
}
|
|
1738
2257
|
//#endregion
|
|
1739
2258
|
//#region src/sections/NumericInputSection.tsx
|
|
1740
2259
|
function NumericInputSection() {
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
})
|
|
1791
|
-
|
|
2260
|
+
const $ = c(1);
|
|
2261
|
+
let t0;
|
|
2262
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2263
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2264
|
+
title: "Numeric input",
|
|
2265
|
+
docsPage: "ostack-ui-forms-numeric-input",
|
|
2266
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2267
|
+
cols: {
|
|
2268
|
+
Basic: "",
|
|
2269
|
+
"Helper text": "helperText",
|
|
2270
|
+
Required: "required",
|
|
2271
|
+
Disabled: "disabled",
|
|
2272
|
+
"Read-only": "readOnly",
|
|
2273
|
+
Loading: "loading",
|
|
2274
|
+
Code: "code",
|
|
2275
|
+
"Clear button": "showClearButton"
|
|
2276
|
+
},
|
|
2277
|
+
rows: {
|
|
2278
|
+
"No status": void 0,
|
|
2279
|
+
Valid: "valid",
|
|
2280
|
+
Invalid: "invalid",
|
|
2281
|
+
Warned: "warned"
|
|
2282
|
+
},
|
|
2283
|
+
renderItem: _temp$8
|
|
2284
|
+
})
|
|
2285
|
+
});
|
|
2286
|
+
$[0] = t0;
|
|
2287
|
+
} else t0 = $[0];
|
|
2288
|
+
return t0;
|
|
2289
|
+
}
|
|
2290
|
+
function _temp$8(t0) {
|
|
2291
|
+
const { col, row } = t0;
|
|
2292
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
2293
|
+
/* @__PURE__ */ jsx(Label, { children: "Income" }),
|
|
2294
|
+
/* @__PURE__ */ jsx(NumericInput, {
|
|
2295
|
+
containerProps: { style: { width: 120 } },
|
|
2296
|
+
defaultValue: 42000.9,
|
|
2297
|
+
precision: 11,
|
|
2298
|
+
scale: 2,
|
|
2299
|
+
groupDigits: true,
|
|
2300
|
+
min: 0,
|
|
2301
|
+
endAdornment: /* @__PURE__ */ jsx(ControlAddon, { children: "€" }),
|
|
2302
|
+
status: row,
|
|
2303
|
+
required: col === "required",
|
|
2304
|
+
disabled: col === "disabled",
|
|
2305
|
+
readOnly: col === "readOnly",
|
|
2306
|
+
loading: col === "loading",
|
|
2307
|
+
code: col === "code" ? "3.9" : void 0,
|
|
2308
|
+
showClearButton: col === "showClearButton" ? "auto" : void 0
|
|
2309
|
+
}),
|
|
2310
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
2311
|
+
type: "success",
|
|
2312
|
+
children: "Confirmed."
|
|
2313
|
+
}),
|
|
2314
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
2315
|
+
type: "warning",
|
|
2316
|
+
children: "Processing…"
|
|
2317
|
+
}),
|
|
2318
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Insufficient." }),
|
|
2319
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "For tax purposes." })
|
|
2320
|
+
] });
|
|
1792
2321
|
}
|
|
1793
2322
|
//#endregion
|
|
1794
2323
|
//#region src/sections/OutputSection.tsx
|
|
1795
2324
|
function OutputSection() {
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
})
|
|
1833
|
-
|
|
2325
|
+
const $ = c(1);
|
|
2326
|
+
let t0;
|
|
2327
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2328
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2329
|
+
title: "Output",
|
|
2330
|
+
docsPage: "ostack-ui-forms-output",
|
|
2331
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2332
|
+
cols: {
|
|
2333
|
+
Basic: "",
|
|
2334
|
+
"Helper text": "helperText",
|
|
2335
|
+
Pending: "pending",
|
|
2336
|
+
Code: "code"
|
|
2337
|
+
},
|
|
2338
|
+
rows: {
|
|
2339
|
+
"No status": void 0,
|
|
2340
|
+
Valid: "valid",
|
|
2341
|
+
Invalid: "invalid",
|
|
2342
|
+
Warned: "warned"
|
|
2343
|
+
},
|
|
2344
|
+
renderItem: _temp$7
|
|
2345
|
+
})
|
|
2346
|
+
});
|
|
2347
|
+
$[0] = t0;
|
|
2348
|
+
} else t0 = $[0];
|
|
2349
|
+
return t0;
|
|
2350
|
+
}
|
|
2351
|
+
function _temp$7(t0) {
|
|
2352
|
+
const { col, row } = t0;
|
|
2353
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
2354
|
+
/* @__PURE__ */ jsx(Label, { children: "Total" }),
|
|
2355
|
+
/* @__PURE__ */ jsx(Output, {
|
|
2356
|
+
containerProps: { style: { width: 150 } },
|
|
2357
|
+
status: row,
|
|
2358
|
+
pending: col === "pending",
|
|
2359
|
+
code: col === "code" ? "6.2" : void 0,
|
|
2360
|
+
children: "$30,000"
|
|
2361
|
+
}),
|
|
2362
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
2363
|
+
type: "success",
|
|
2364
|
+
children: "Funds available."
|
|
2365
|
+
}),
|
|
2366
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
2367
|
+
type: "warning",
|
|
2368
|
+
children: "Funds unavailable."
|
|
2369
|
+
}),
|
|
2370
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Incorrect amount." }),
|
|
2371
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "A + B + C + D - E" })
|
|
2372
|
+
] });
|
|
1834
2373
|
}
|
|
1835
2374
|
//#endregion
|
|
1836
2375
|
//#region src/sections/PopoverSection.tsx
|
|
1837
2376
|
function PopoverSection() {
|
|
2377
|
+
const $ = c(9);
|
|
1838
2378
|
const spacing = useSpacing();
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
children: /* @__PURE__ */ jsxs(Popover, { children: [/* @__PURE__ */ jsx(PopoverTrigger, { children: /* @__PURE__ */ jsx(Button, {
|
|
2379
|
+
let t0;
|
|
2380
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2381
|
+
t0 = /* @__PURE__ */ jsx(PopoverTrigger, { children: /* @__PURE__ */ jsx(Button, {
|
|
1843
2382
|
icon: faComment,
|
|
1844
2383
|
children: "Comment"
|
|
1845
|
-
}) })
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
2384
|
+
}) });
|
|
2385
|
+
$[0] = t0;
|
|
2386
|
+
} else t0 = $[0];
|
|
2387
|
+
let t1;
|
|
2388
|
+
if ($[1] !== spacing) {
|
|
2389
|
+
t1 = spacing(2);
|
|
2390
|
+
$[1] = spacing;
|
|
2391
|
+
$[2] = t1;
|
|
2392
|
+
} else t1 = $[2];
|
|
2393
|
+
let t2;
|
|
2394
|
+
if ($[3] !== t1) {
|
|
2395
|
+
t2 = { padding: t1 };
|
|
2396
|
+
$[3] = t1;
|
|
2397
|
+
$[4] = t2;
|
|
2398
|
+
} else t2 = $[4];
|
|
2399
|
+
let t3;
|
|
2400
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2401
|
+
t3 = /* @__PURE__ */ jsx(Label, { children: "Leave a comment" });
|
|
2402
|
+
$[5] = t3;
|
|
2403
|
+
} else t3 = $[5];
|
|
2404
|
+
let t4;
|
|
2405
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2406
|
+
t4 = /* @__PURE__ */ jsx(Stack, {
|
|
2407
|
+
asChild: true,
|
|
2408
|
+
gap: 2,
|
|
2409
|
+
alignItems: "flex-end",
|
|
2410
|
+
children: /* @__PURE__ */ jsxs("form", { children: [/* @__PURE__ */ jsxs(Field, { children: [t3, /* @__PURE__ */ jsx(TextArea, {
|
|
2411
|
+
rows: 6,
|
|
2412
|
+
style: { width: 300 }
|
|
2413
|
+
})] }), /* @__PURE__ */ jsx(Button, {
|
|
2414
|
+
color: "primary",
|
|
2415
|
+
type: "submit",
|
|
2416
|
+
onClick: _temp$6,
|
|
2417
|
+
children: "Submit"
|
|
2418
|
+
})] })
|
|
2419
|
+
});
|
|
2420
|
+
$[6] = t4;
|
|
2421
|
+
} else t4 = $[6];
|
|
2422
|
+
let t5;
|
|
2423
|
+
if ($[7] !== t2) {
|
|
2424
|
+
t5 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2425
|
+
title: "Popover",
|
|
2426
|
+
docsPage: "ostack-ui-overlay-popover",
|
|
2427
|
+
children: /* @__PURE__ */ jsxs(Popover, { children: [t0, /* @__PURE__ */ jsx(PopoverContent, {
|
|
2428
|
+
style: t2,
|
|
2429
|
+
children: t4
|
|
2430
|
+
})] })
|
|
2431
|
+
});
|
|
2432
|
+
$[7] = t2;
|
|
2433
|
+
$[8] = t5;
|
|
2434
|
+
} else t5 = $[8];
|
|
2435
|
+
return t5;
|
|
2436
|
+
}
|
|
2437
|
+
function _temp$6(evt) {
|
|
2438
|
+
return evt.preventDefault();
|
|
1863
2439
|
}
|
|
1864
2440
|
//#endregion
|
|
1865
2441
|
//#region src/sections/RadioGroupSection.tsx
|
|
1866
2442
|
function RadioGroupSection() {
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
}),
|
|
1917
|
-
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
1918
|
-
type: "success",
|
|
1919
|
-
children: "Available."
|
|
2443
|
+
const $ = c(1);
|
|
2444
|
+
let t0;
|
|
2445
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2446
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2447
|
+
title: "Radio group",
|
|
2448
|
+
docsPage: "ostack-ui-forms-radio-group",
|
|
2449
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2450
|
+
cols: {
|
|
2451
|
+
Basic: "",
|
|
2452
|
+
"Helper text": "helperText",
|
|
2453
|
+
Required: "required",
|
|
2454
|
+
Disabled: "disabled",
|
|
2455
|
+
"Read-only": "readOnly",
|
|
2456
|
+
Loading: "loading",
|
|
2457
|
+
Code: "code",
|
|
2458
|
+
"All codes": "allCodes",
|
|
2459
|
+
"Clear button": "clearButton"
|
|
2460
|
+
},
|
|
2461
|
+
rows: {
|
|
2462
|
+
"No status": void 0,
|
|
2463
|
+
Valid: "valid",
|
|
2464
|
+
Invalid: "invalid",
|
|
2465
|
+
Warned: "warned"
|
|
2466
|
+
},
|
|
2467
|
+
renderItem: _temp$5
|
|
2468
|
+
})
|
|
2469
|
+
});
|
|
2470
|
+
$[0] = t0;
|
|
2471
|
+
} else t0 = $[0];
|
|
2472
|
+
return t0;
|
|
2473
|
+
}
|
|
2474
|
+
function _temp$5(t0) {
|
|
2475
|
+
const { col, row } = t0;
|
|
2476
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
2477
|
+
/* @__PURE__ */ jsx(Label, { children: "Preferred make" }),
|
|
2478
|
+
/* @__PURE__ */ jsxs(RadioGroup, {
|
|
2479
|
+
status: row,
|
|
2480
|
+
defaultValue: "fiat",
|
|
2481
|
+
required: col === "required",
|
|
2482
|
+
disabled: col === "disabled",
|
|
2483
|
+
readOnly: col === "readOnly",
|
|
2484
|
+
loading: col === "loading",
|
|
2485
|
+
code: col === "code" || col === "allCodes" ? "1.7" : void 0,
|
|
2486
|
+
showClearButton: col === "clearButton" ? "auto" : void 0,
|
|
2487
|
+
children: [
|
|
2488
|
+
/* @__PURE__ */ jsx(Radio, {
|
|
2489
|
+
value: "fiat",
|
|
2490
|
+
code: col === "allCodes" ? "a" : void 0,
|
|
2491
|
+
children: "Fiat"
|
|
1920
2492
|
}),
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
2493
|
+
/* @__PURE__ */ jsx(Radio, {
|
|
2494
|
+
value: "renault",
|
|
2495
|
+
code: col === "allCodes" ? "b" : void 0,
|
|
2496
|
+
children: "Renault"
|
|
1924
2497
|
}),
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
2498
|
+
/* @__PURE__ */ jsx(Radio, {
|
|
2499
|
+
value: "toyota",
|
|
2500
|
+
code: col === "allCodes" ? "c" : void 0,
|
|
2501
|
+
children: "Toyota"
|
|
2502
|
+
})
|
|
2503
|
+
]
|
|
2504
|
+
}),
|
|
2505
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
2506
|
+
type: "success",
|
|
2507
|
+
children: "Available."
|
|
2508
|
+
}),
|
|
2509
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
2510
|
+
type: "warning",
|
|
2511
|
+
children: "Maybe unavailable."
|
|
2512
|
+
}),
|
|
2513
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Unavailable." }),
|
|
2514
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "All with low mileage." })
|
|
2515
|
+
] });
|
|
1930
2516
|
}
|
|
1931
2517
|
//#endregion
|
|
1932
2518
|
//#region src/sections/SelectSection.tsx
|
|
1933
2519
|
function SelectSection() {
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
type: "success",
|
|
1983
|
-
children: "Available."
|
|
2520
|
+
const $ = c(1);
|
|
2521
|
+
let t0;
|
|
2522
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2523
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2524
|
+
title: "Select",
|
|
2525
|
+
docsPage: "ostack-ui-forms-select",
|
|
2526
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2527
|
+
cols: {
|
|
2528
|
+
Single: "",
|
|
2529
|
+
Multiple: "multiple",
|
|
2530
|
+
"Helper text": "helperText",
|
|
2531
|
+
Required: "required",
|
|
2532
|
+
Disabled: "disabled",
|
|
2533
|
+
"Read-only": "readOnly",
|
|
2534
|
+
Loading: "loading",
|
|
2535
|
+
Code: "code"
|
|
2536
|
+
},
|
|
2537
|
+
rows: {
|
|
2538
|
+
"No status": void 0,
|
|
2539
|
+
Valid: "valid",
|
|
2540
|
+
Invalid: "invalid",
|
|
2541
|
+
Warned: "warned"
|
|
2542
|
+
},
|
|
2543
|
+
renderItem: _temp$4
|
|
2544
|
+
})
|
|
2545
|
+
});
|
|
2546
|
+
$[0] = t0;
|
|
2547
|
+
} else t0 = $[0];
|
|
2548
|
+
return t0;
|
|
2549
|
+
}
|
|
2550
|
+
function _temp$4(t0) {
|
|
2551
|
+
const { col, row } = t0;
|
|
2552
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
2553
|
+
/* @__PURE__ */ jsxs(Label, { children: ["Pick your fruit", col === "multiple" && "s"] }),
|
|
2554
|
+
/* @__PURE__ */ jsxs(Select, {
|
|
2555
|
+
containerProps: { style: { width: 120 } },
|
|
2556
|
+
multiple: col === "multiple",
|
|
2557
|
+
defaultValue: col === "multiple" ? ["apple", "kiwi"] : "apple",
|
|
2558
|
+
status: row,
|
|
2559
|
+
required: col === "required",
|
|
2560
|
+
disabled: col === "disabled",
|
|
2561
|
+
readOnly: col === "readOnly",
|
|
2562
|
+
loading: col === "loading",
|
|
2563
|
+
code: col === "code" ? "2.1" : void 0,
|
|
2564
|
+
children: [
|
|
2565
|
+
/* @__PURE__ */ jsx(Option, {
|
|
2566
|
+
value: "apple",
|
|
2567
|
+
children: "Apple"
|
|
1984
2568
|
}),
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
children: "
|
|
2569
|
+
/* @__PURE__ */ jsx(Option, {
|
|
2570
|
+
value: "kiwi",
|
|
2571
|
+
children: "Kiwi"
|
|
1988
2572
|
}),
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
2573
|
+
/* @__PURE__ */ jsx(Option, {
|
|
2574
|
+
value: "pear",
|
|
2575
|
+
children: "Pear"
|
|
2576
|
+
})
|
|
2577
|
+
]
|
|
2578
|
+
}),
|
|
2579
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
2580
|
+
type: "success",
|
|
2581
|
+
children: "Available."
|
|
2582
|
+
}),
|
|
2583
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
2584
|
+
type: "warning",
|
|
2585
|
+
children: "Maybe unavailable."
|
|
2586
|
+
}),
|
|
2587
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Unavailable." }),
|
|
2588
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "For breakfast." })
|
|
2589
|
+
] });
|
|
1994
2590
|
}
|
|
1995
2591
|
//#endregion
|
|
1996
2592
|
//#region src/sections/SpinnerSection.tsx
|
|
1997
2593
|
function SpinnerSection() {
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2594
|
+
const $ = c(1);
|
|
2595
|
+
let t0;
|
|
2596
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2597
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2598
|
+
title: "Spinner",
|
|
2599
|
+
docsPage: "ostack-ui-feedback-spinner",
|
|
2600
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2601
|
+
cols: {
|
|
2602
|
+
Neutral: "neutral",
|
|
2603
|
+
Primary: "primary",
|
|
2604
|
+
Success: "success",
|
|
2605
|
+
Danger: "danger",
|
|
2606
|
+
Warning: "warning",
|
|
2607
|
+
Labelled: "label"
|
|
2608
|
+
},
|
|
2609
|
+
renderItem: _temp$3
|
|
2013
2610
|
})
|
|
2014
|
-
})
|
|
2611
|
+
});
|
|
2612
|
+
$[0] = t0;
|
|
2613
|
+
} else t0 = $[0];
|
|
2614
|
+
return t0;
|
|
2615
|
+
}
|
|
2616
|
+
function _temp$3(t0) {
|
|
2617
|
+
const { col } = t0;
|
|
2618
|
+
return /* @__PURE__ */ jsx(Spinner, {
|
|
2619
|
+
color: col === "label" ? void 0 : col,
|
|
2620
|
+
label: col === "label" ? "Loading…" : void 0
|
|
2015
2621
|
});
|
|
2016
2622
|
}
|
|
2017
2623
|
//#endregion
|
|
2018
2624
|
//#region src/sections/StepperSection.tsx
|
|
2019
2625
|
function StepperSection() {
|
|
2626
|
+
const $ = c(26);
|
|
2020
2627
|
const spacing = useSpacing();
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2628
|
+
let t0;
|
|
2629
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2630
|
+
t0 = { maxWidth: 600 };
|
|
2631
|
+
$[0] = t0;
|
|
2632
|
+
} else t0 = $[0];
|
|
2633
|
+
let t1;
|
|
2634
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2635
|
+
t1 = /* @__PURE__ */ jsxs(StepList, { children: [
|
|
2636
|
+
/* @__PURE__ */ jsx(Step, { children: "Account Details" }),
|
|
2637
|
+
/* @__PURE__ */ jsx(Step, { children: "Shipping Address" }),
|
|
2638
|
+
/* @__PURE__ */ jsx(Step, { children: "Payment Method" }),
|
|
2639
|
+
/* @__PURE__ */ jsx(Step, { children: "Review & Confirm" })
|
|
2640
|
+
] });
|
|
2641
|
+
$[1] = t1;
|
|
2642
|
+
} else t1 = $[1];
|
|
2643
|
+
let t2;
|
|
2644
|
+
if ($[2] !== spacing) {
|
|
2645
|
+
t2 = spacing(2);
|
|
2646
|
+
$[2] = spacing;
|
|
2647
|
+
$[3] = t2;
|
|
2648
|
+
} else t2 = $[3];
|
|
2649
|
+
let t3;
|
|
2650
|
+
if ($[4] !== t2) {
|
|
2651
|
+
t3 = /* @__PURE__ */ jsx(StepContent, {
|
|
2652
|
+
style: { marginBlock: t2 },
|
|
2653
|
+
children: "Enter your contact information…"
|
|
2654
|
+
});
|
|
2655
|
+
$[4] = t2;
|
|
2656
|
+
$[5] = t3;
|
|
2657
|
+
} else t3 = $[5];
|
|
2658
|
+
let t4;
|
|
2659
|
+
if ($[6] !== spacing) {
|
|
2660
|
+
t4 = spacing(2);
|
|
2661
|
+
$[6] = spacing;
|
|
2662
|
+
$[7] = t4;
|
|
2663
|
+
} else t4 = $[7];
|
|
2664
|
+
let t5;
|
|
2665
|
+
if ($[8] !== t4) {
|
|
2666
|
+
t5 = /* @__PURE__ */ jsx(StepContent, {
|
|
2667
|
+
style: { marginBlock: t4 },
|
|
2668
|
+
children: "Select your shipping address…"
|
|
2669
|
+
});
|
|
2670
|
+
$[8] = t4;
|
|
2671
|
+
$[9] = t5;
|
|
2672
|
+
} else t5 = $[9];
|
|
2673
|
+
let t6;
|
|
2674
|
+
if ($[10] !== spacing) {
|
|
2675
|
+
t6 = spacing(2);
|
|
2676
|
+
$[10] = spacing;
|
|
2677
|
+
$[11] = t6;
|
|
2678
|
+
} else t6 = $[11];
|
|
2679
|
+
let t7;
|
|
2680
|
+
if ($[12] !== t6) {
|
|
2681
|
+
t7 = /* @__PURE__ */ jsx(StepContent, {
|
|
2682
|
+
style: { marginBlock: t6 },
|
|
2683
|
+
children: "Select your payment method…"
|
|
2684
|
+
});
|
|
2685
|
+
$[12] = t6;
|
|
2686
|
+
$[13] = t7;
|
|
2687
|
+
} else t7 = $[13];
|
|
2688
|
+
let t8;
|
|
2689
|
+
if ($[14] !== spacing) {
|
|
2690
|
+
t8 = spacing(2);
|
|
2691
|
+
$[14] = spacing;
|
|
2692
|
+
$[15] = t8;
|
|
2693
|
+
} else t8 = $[15];
|
|
2694
|
+
let t9;
|
|
2695
|
+
if ($[16] !== t8) {
|
|
2696
|
+
t9 = /* @__PURE__ */ jsx(StepContent, {
|
|
2697
|
+
style: { marginBlock: t8 },
|
|
2698
|
+
children: "Double-check your order…"
|
|
2699
|
+
});
|
|
2700
|
+
$[16] = t8;
|
|
2701
|
+
$[17] = t9;
|
|
2702
|
+
} else t9 = $[17];
|
|
2703
|
+
let t10;
|
|
2704
|
+
let t11;
|
|
2705
|
+
let t12;
|
|
2706
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2707
|
+
t10 = /* @__PURE__ */ jsx(StepperPreviousTrigger, {});
|
|
2708
|
+
t11 = /* @__PURE__ */ jsx(StepperNextTrigger, {});
|
|
2709
|
+
t12 = /* @__PURE__ */ jsx(StepperFinishTrigger, {});
|
|
2710
|
+
$[18] = t10;
|
|
2711
|
+
$[19] = t11;
|
|
2712
|
+
$[20] = t12;
|
|
2713
|
+
} else {
|
|
2714
|
+
t10 = $[18];
|
|
2715
|
+
t11 = $[19];
|
|
2716
|
+
t12 = $[20];
|
|
2717
|
+
}
|
|
2718
|
+
let t13;
|
|
2719
|
+
if ($[21] !== t3 || $[22] !== t5 || $[23] !== t7 || $[24] !== t9) {
|
|
2720
|
+
t13 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2721
|
+
title: "Stepper",
|
|
2722
|
+
docsPage: "ostack-ui-data-disclosure-stepper",
|
|
2723
|
+
children: /* @__PURE__ */ jsxs(Stepper, {
|
|
2724
|
+
style: t0,
|
|
2725
|
+
children: [
|
|
2726
|
+
t1,
|
|
2727
|
+
t3,
|
|
2728
|
+
t5,
|
|
2729
|
+
t7,
|
|
2730
|
+
t9,
|
|
2731
|
+
t10,
|
|
2732
|
+
t11,
|
|
2733
|
+
t12
|
|
2734
|
+
]
|
|
2735
|
+
})
|
|
2736
|
+
});
|
|
2737
|
+
$[21] = t3;
|
|
2738
|
+
$[22] = t5;
|
|
2739
|
+
$[23] = t7;
|
|
2740
|
+
$[24] = t9;
|
|
2741
|
+
$[25] = t13;
|
|
2742
|
+
} else t13 = $[25];
|
|
2743
|
+
return t13;
|
|
2055
2744
|
}
|
|
2056
2745
|
//#endregion
|
|
2057
2746
|
//#region src/sections/TableSection.tsx
|
|
@@ -2075,312 +2764,441 @@ var ROWS = [
|
|
|
2075
2764
|
];
|
|
2076
2765
|
var AVG_GRADE = ROWS.reduce((total, { grade }) => total + grade, 0) / ROWS.length;
|
|
2077
2766
|
function TableSection() {
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
children: [
|
|
2091
|
-
/* @__PURE__ */ jsxs(TableHead, { children: [/* @__PURE__ */ jsx(TableColumn, {
|
|
2092
|
-
header: true,
|
|
2093
|
-
label: "Student"
|
|
2094
|
-
}), /* @__PURE__ */ jsx(TableColumn, {
|
|
2095
|
-
label: "Grade",
|
|
2096
|
-
align: "right"
|
|
2097
|
-
})] }),
|
|
2098
|
-
/* @__PURE__ */ jsx(TableBody, { children: ROWS.map(({ student, grade }, i) => /* @__PURE__ */ jsxs(TableRow, { children: [/* @__PURE__ */ jsx(TableCell, { children: student }), /* @__PURE__ */ jsx(TableCell, { children: grade.toFixed(1) })] }, i)) }),
|
|
2099
|
-
/* @__PURE__ */ jsx(TableFoot, { children: /* @__PURE__ */ jsxs(TableRow, { children: [/* @__PURE__ */ jsx(TableCell, { children: "Average" }), /* @__PURE__ */ jsx(TableCell, { children: AVG_GRADE.toFixed(1) })] }) })
|
|
2100
|
-
]
|
|
2767
|
+
const $ = c(1);
|
|
2768
|
+
let t0;
|
|
2769
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2770
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2771
|
+
title: "Table",
|
|
2772
|
+
docsPage: "ostack-ui-data-data-display-table",
|
|
2773
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2774
|
+
cols: {
|
|
2775
|
+
Default: "default",
|
|
2776
|
+
Annexes: "control"
|
|
2777
|
+
},
|
|
2778
|
+
renderItem: _temp2
|
|
2101
2779
|
})
|
|
2102
|
-
})
|
|
2780
|
+
});
|
|
2781
|
+
$[0] = t0;
|
|
2782
|
+
} else t0 = $[0];
|
|
2783
|
+
return t0;
|
|
2784
|
+
}
|
|
2785
|
+
function _temp2(t0) {
|
|
2786
|
+
const { col } = t0;
|
|
2787
|
+
return /* @__PURE__ */ jsxs(Table, {
|
|
2788
|
+
caption: "Exam grades",
|
|
2789
|
+
variant: col,
|
|
2790
|
+
style: { width: 250 },
|
|
2791
|
+
children: [
|
|
2792
|
+
/* @__PURE__ */ jsxs(TableHead, { children: [/* @__PURE__ */ jsx(TableColumn, {
|
|
2793
|
+
header: true,
|
|
2794
|
+
label: "Student"
|
|
2795
|
+
}), /* @__PURE__ */ jsx(TableColumn, {
|
|
2796
|
+
label: "Grade",
|
|
2797
|
+
align: "right"
|
|
2798
|
+
})] }),
|
|
2799
|
+
/* @__PURE__ */ jsx(TableBody, { children: ROWS.map(_temp$2) }),
|
|
2800
|
+
/* @__PURE__ */ jsx(TableFoot, { children: /* @__PURE__ */ jsxs(TableRow, { children: [/* @__PURE__ */ jsx(TableCell, { children: "Average" }), /* @__PURE__ */ jsx(TableCell, { children: AVG_GRADE.toFixed(1) })] }) })
|
|
2801
|
+
]
|
|
2103
2802
|
});
|
|
2104
2803
|
}
|
|
2804
|
+
function _temp$2(t0, i) {
|
|
2805
|
+
const { student, grade } = t0;
|
|
2806
|
+
return /* @__PURE__ */ jsxs(TableRow, { children: [/* @__PURE__ */ jsx(TableCell, { children: student }), /* @__PURE__ */ jsx(TableCell, { children: grade.toFixed(1) })] }, i);
|
|
2807
|
+
}
|
|
2105
2808
|
//#endregion
|
|
2106
2809
|
//#region src/sections/TabsSection.tsx
|
|
2107
2810
|
function TabsSection() {
|
|
2811
|
+
const $ = c(3);
|
|
2108
2812
|
const spacing = useSpacing();
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2813
|
+
let t0;
|
|
2814
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2815
|
+
t0 = {
|
|
2816
|
+
Default: "default",
|
|
2817
|
+
Annexes: "annexes"
|
|
2818
|
+
};
|
|
2819
|
+
$[0] = t0;
|
|
2820
|
+
} else t0 = $[0];
|
|
2821
|
+
let t1;
|
|
2822
|
+
if ($[1] !== spacing) {
|
|
2823
|
+
t1 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2824
|
+
title: "Tabs",
|
|
2825
|
+
docsPage: "ostack-ui-data-disclosure-tabs",
|
|
2826
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2827
|
+
cols: t0,
|
|
2828
|
+
renderItem: (t2) => {
|
|
2829
|
+
const { col } = t2;
|
|
2830
|
+
return /* @__PURE__ */ jsxs(Tabs, {
|
|
2831
|
+
variant: col,
|
|
2832
|
+
defaultValue: "accessibility",
|
|
2833
|
+
children: [
|
|
2834
|
+
/* @__PURE__ */ jsxs(TabList, { children: [
|
|
2835
|
+
/* @__PURE__ */ jsx(Tab, {
|
|
2836
|
+
value: "accessibility",
|
|
2837
|
+
children: "Accessibility"
|
|
2838
|
+
}),
|
|
2839
|
+
/* @__PURE__ */ jsx(Tab, {
|
|
2840
|
+
value: "privacy",
|
|
2841
|
+
children: "Privacy & Security"
|
|
2842
|
+
}),
|
|
2843
|
+
/* @__PURE__ */ jsx(Tab, {
|
|
2844
|
+
value: "system",
|
|
2845
|
+
children: "System"
|
|
2846
|
+
})
|
|
2847
|
+
] }),
|
|
2848
|
+
/* @__PURE__ */ jsx(TabContent, {
|
|
2849
|
+
value: "accessibility",
|
|
2850
|
+
style: { marginTop: spacing(2) },
|
|
2851
|
+
children: "Accessibility options…"
|
|
2852
|
+
}),
|
|
2853
|
+
/* @__PURE__ */ jsx(TabContent, {
|
|
2854
|
+
value: "privacy",
|
|
2855
|
+
style: { marginTop: spacing(2) },
|
|
2856
|
+
children: "Privacy & Security settings…"
|
|
2857
|
+
}),
|
|
2858
|
+
/* @__PURE__ */ jsx(TabContent, {
|
|
2859
|
+
value: "system",
|
|
2860
|
+
style: { marginTop: spacing(2) },
|
|
2861
|
+
children: "System configuration…"
|
|
2862
|
+
})
|
|
2863
|
+
]
|
|
2864
|
+
});
|
|
2865
|
+
}
|
|
2151
2866
|
})
|
|
2152
|
-
})
|
|
2153
|
-
|
|
2867
|
+
});
|
|
2868
|
+
$[1] = spacing;
|
|
2869
|
+
$[2] = t1;
|
|
2870
|
+
} else t1 = $[2];
|
|
2871
|
+
return t1;
|
|
2154
2872
|
}
|
|
2155
2873
|
//#endregion
|
|
2156
2874
|
//#region src/sections/TagSection.tsx
|
|
2157
2875
|
function TagSection() {
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
icon: col === "icon" ? faStar : void 0,
|
|
2182
|
-
showCloseButton: col === "showCloseButton",
|
|
2183
|
-
children: "New"
|
|
2876
|
+
const $ = c(1);
|
|
2877
|
+
let t0;
|
|
2878
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2879
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2880
|
+
title: "Tag",
|
|
2881
|
+
docsPage: "ostack-ui-data-display-tag",
|
|
2882
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2883
|
+
cols: {
|
|
2884
|
+
Neutral: "neutral",
|
|
2885
|
+
Primary: "primary",
|
|
2886
|
+
Success: "success",
|
|
2887
|
+
Danger: "danger",
|
|
2888
|
+
Warning: "warning",
|
|
2889
|
+
Pill: "pill",
|
|
2890
|
+
Icon: "icon",
|
|
2891
|
+
"Close button": "showCloseButton"
|
|
2892
|
+
},
|
|
2893
|
+
rows: {
|
|
2894
|
+
Solid: "solid",
|
|
2895
|
+
Subtle: "subtle",
|
|
2896
|
+
Outlined: "outlined"
|
|
2897
|
+
},
|
|
2898
|
+
renderItem: _temp$1
|
|
2184
2899
|
})
|
|
2185
|
-
})
|
|
2900
|
+
});
|
|
2901
|
+
$[0] = t0;
|
|
2902
|
+
} else t0 = $[0];
|
|
2903
|
+
return t0;
|
|
2904
|
+
}
|
|
2905
|
+
function _temp$1(t0) {
|
|
2906
|
+
const { col, row } = t0;
|
|
2907
|
+
return /* @__PURE__ */ jsx(Tag, {
|
|
2908
|
+
variant: row,
|
|
2909
|
+
color: col === "pill" || col === "icon" || col === "showCloseButton" ? "neutral" : col,
|
|
2910
|
+
pill: col === "pill",
|
|
2911
|
+
icon: col === "icon" ? faStar : void 0,
|
|
2912
|
+
showCloseButton: col === "showCloseButton",
|
|
2913
|
+
children: "New"
|
|
2186
2914
|
});
|
|
2187
2915
|
}
|
|
2188
2916
|
//#endregion
|
|
2189
2917
|
//#region src/sections/TextAreaSection.tsx
|
|
2190
2918
|
function TextAreaSection() {
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
})
|
|
2236
|
-
|
|
2919
|
+
const $ = c(1);
|
|
2920
|
+
let t0;
|
|
2921
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2922
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
2923
|
+
title: "Text area",
|
|
2924
|
+
docsPage: "ostack-ui-forms-text-area",
|
|
2925
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
2926
|
+
cols: {
|
|
2927
|
+
Basic: "",
|
|
2928
|
+
"Helper text": "helperText",
|
|
2929
|
+
Required: "required",
|
|
2930
|
+
Disabled: "disabled",
|
|
2931
|
+
"Read-only": "readOnly",
|
|
2932
|
+
Loading: "loading",
|
|
2933
|
+
Code: "code",
|
|
2934
|
+
"Clear button": "showClearButton"
|
|
2935
|
+
},
|
|
2936
|
+
rows: {
|
|
2937
|
+
"No status": void 0,
|
|
2938
|
+
Valid: "valid",
|
|
2939
|
+
Invalid: "invalid",
|
|
2940
|
+
Warned: "warned"
|
|
2941
|
+
},
|
|
2942
|
+
renderItem: _temp
|
|
2943
|
+
})
|
|
2944
|
+
});
|
|
2945
|
+
$[0] = t0;
|
|
2946
|
+
} else t0 = $[0];
|
|
2947
|
+
return t0;
|
|
2948
|
+
}
|
|
2949
|
+
function _temp(t0) {
|
|
2950
|
+
const { col, row } = t0;
|
|
2951
|
+
return /* @__PURE__ */ jsxs(Field, { children: [
|
|
2952
|
+
/* @__PURE__ */ jsx(Label, { children: "Additional requests" }),
|
|
2953
|
+
/* @__PURE__ */ jsx(TextArea, {
|
|
2954
|
+
containerProps: { style: { width: 130 } },
|
|
2955
|
+
defaultValue: "Please provide two extra towels.",
|
|
2956
|
+
status: row,
|
|
2957
|
+
required: col === "required",
|
|
2958
|
+
disabled: col === "disabled",
|
|
2959
|
+
readOnly: col === "readOnly",
|
|
2960
|
+
loading: col === "loading",
|
|
2961
|
+
code: col === "code" ? "4.1" : void 0,
|
|
2962
|
+
showClearButton: col === "showClearButton" ? "auto" : void 0
|
|
2963
|
+
}),
|
|
2964
|
+
row === "valid" && /* @__PURE__ */ jsx(Feedback, {
|
|
2965
|
+
type: "success",
|
|
2966
|
+
children: "Accepted."
|
|
2967
|
+
}),
|
|
2968
|
+
row === "warned" && /* @__PURE__ */ jsx(Feedback, {
|
|
2969
|
+
type: "warning",
|
|
2970
|
+
children: "Unable to process."
|
|
2971
|
+
}),
|
|
2972
|
+
row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Invalid request." }),
|
|
2973
|
+
col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "We will attempt to honour them." })
|
|
2974
|
+
] });
|
|
2237
2975
|
}
|
|
2238
2976
|
//#endregion
|
|
2239
2977
|
//#region src/sections/ToastSection.tsx
|
|
2240
2978
|
function ToastSection() {
|
|
2979
|
+
const $ = c(4);
|
|
2241
2980
|
const { addToast } = useToastManager();
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2981
|
+
let t0;
|
|
2982
|
+
let t1;
|
|
2983
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2984
|
+
t0 = {
|
|
2985
|
+
Neutral: "neutral",
|
|
2986
|
+
Info: "info",
|
|
2987
|
+
Success: "success",
|
|
2988
|
+
Danger: "danger",
|
|
2989
|
+
Warning: "warning",
|
|
2990
|
+
Title: "title",
|
|
2991
|
+
Action: "action"
|
|
2992
|
+
};
|
|
2993
|
+
t1 = {
|
|
2994
|
+
Solid: "solid",
|
|
2995
|
+
Subtle: "subtle",
|
|
2996
|
+
Outlined: "outlined"
|
|
2997
|
+
};
|
|
2998
|
+
$[0] = t0;
|
|
2999
|
+
$[1] = t1;
|
|
3000
|
+
} else {
|
|
3001
|
+
t0 = $[0];
|
|
3002
|
+
t1 = $[1];
|
|
3003
|
+
}
|
|
3004
|
+
let t2;
|
|
3005
|
+
if ($[2] !== addToast) {
|
|
3006
|
+
t2 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
3007
|
+
title: "Toast",
|
|
3008
|
+
docsPage: "ostack-ui-feedback-toast",
|
|
3009
|
+
children: /* @__PURE__ */ jsx(ExhibitGrid, {
|
|
3010
|
+
cols: t0,
|
|
3011
|
+
rows: t1,
|
|
3012
|
+
renderItem: (t3) => {
|
|
3013
|
+
const { col, row } = t3;
|
|
3014
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
3015
|
+
icon: faBookmark,
|
|
3016
|
+
color: col === "info" || col === "title" || col === "action" ? "primary" : col,
|
|
2267
3017
|
variant: row,
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
3018
|
+
onClick: () => {
|
|
3019
|
+
addToast("Item has been bookmarked.", {
|
|
3020
|
+
title: col === "title" ? "Bookmarked" : void 0,
|
|
3021
|
+
variant: row,
|
|
3022
|
+
severity: col === "title" || col === "action" ? void 0 : col,
|
|
3023
|
+
action: col === "action" && /* @__PURE__ */ jsx(Button, {
|
|
3024
|
+
keybinds: "$mod+Z",
|
|
3025
|
+
color: "primary",
|
|
3026
|
+
children: "Undo"
|
|
3027
|
+
}),
|
|
3028
|
+
actionAltText: "Undo (Ctrl+Z)"
|
|
3029
|
+
});
|
|
3030
|
+
},
|
|
3031
|
+
children: "Bookmark"
|
|
2275
3032
|
});
|
|
2276
|
-
}
|
|
2277
|
-
children: "Bookmark"
|
|
3033
|
+
}
|
|
2278
3034
|
})
|
|
2279
|
-
})
|
|
2280
|
-
|
|
3035
|
+
});
|
|
3036
|
+
$[2] = addToast;
|
|
3037
|
+
$[3] = t2;
|
|
3038
|
+
} else t2 = $[3];
|
|
3039
|
+
return t2;
|
|
2281
3040
|
}
|
|
2282
3041
|
//#endregion
|
|
2283
3042
|
//#region src/sections/TooltipSection.tsx
|
|
2284
3043
|
function TooltipSection() {
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
3044
|
+
const $ = c(1);
|
|
3045
|
+
let t0;
|
|
3046
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3047
|
+
t0 = /* @__PURE__ */ jsx(ExhibitSection, {
|
|
3048
|
+
title: "Tooltip",
|
|
3049
|
+
docsPage: "ostack-ui-overlay-tooltip",
|
|
3050
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
3051
|
+
content: "Press to reload all content",
|
|
3052
|
+
children: /* @__PURE__ */ jsx(Button, { children: "Refresh" })
|
|
3053
|
+
})
|
|
3054
|
+
});
|
|
3055
|
+
$[0] = t0;
|
|
3056
|
+
} else t0 = $[0];
|
|
3057
|
+
return t0;
|
|
2293
3058
|
}
|
|
2294
3059
|
//#endregion
|
|
2295
3060
|
//#region src/ExhibitApp.tsx
|
|
2296
3061
|
var DEFAULT_DOCS_URL = DEV ? "http://localhost:6006/" : "https://ui.ostack.tech/";
|
|
2297
|
-
function ExhibitApp(
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
3062
|
+
function ExhibitApp(t0) {
|
|
3063
|
+
const $ = c(17);
|
|
3064
|
+
const { docsUrl: t1, title: t2, prefix, actions } = t0;
|
|
3065
|
+
const docsUrl = t1 === void 0 ? DEFAULT_DOCS_URL : t1;
|
|
3066
|
+
const title = t2 === void 0 ? document.title : t2;
|
|
3067
|
+
let t3;
|
|
3068
|
+
if ($[0] !== docsUrl) {
|
|
3069
|
+
t3 = { docsUrl };
|
|
3070
|
+
$[0] = docsUrl;
|
|
3071
|
+
$[1] = t3;
|
|
3072
|
+
} else t3 = $[1];
|
|
3073
|
+
let t4;
|
|
3074
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3075
|
+
t4 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
3076
|
+
focusable: true,
|
|
3077
|
+
asChild: true,
|
|
3078
|
+
children: /* @__PURE__ */ jsx(Link, {
|
|
3079
|
+
href: "#exhibit-main",
|
|
3080
|
+
style: {
|
|
3081
|
+
top: 6,
|
|
3082
|
+
left: 6
|
|
3083
|
+
},
|
|
3084
|
+
children: "Skip to main content"
|
|
3085
|
+
})
|
|
3086
|
+
});
|
|
3087
|
+
$[2] = t4;
|
|
3088
|
+
} else t4 = $[2];
|
|
3089
|
+
let t5;
|
|
3090
|
+
if ($[3] !== title) {
|
|
3091
|
+
t5 = /* @__PURE__ */ jsx(Heading, {
|
|
3092
|
+
level: 1,
|
|
3093
|
+
id: "exhibit-title",
|
|
3094
|
+
children: title
|
|
3095
|
+
});
|
|
3096
|
+
$[3] = title;
|
|
3097
|
+
$[4] = t5;
|
|
3098
|
+
} else t5 = $[4];
|
|
3099
|
+
let t6;
|
|
3100
|
+
if ($[5] !== actions) {
|
|
3101
|
+
t6 = actions && /* @__PURE__ */ jsx(Stack, {
|
|
3102
|
+
id: "exhibit-actions",
|
|
3103
|
+
direction: "row",
|
|
3104
|
+
gap: 2,
|
|
3105
|
+
children: actions
|
|
3106
|
+
});
|
|
3107
|
+
$[5] = actions;
|
|
3108
|
+
$[6] = t6;
|
|
3109
|
+
} else t6 = $[6];
|
|
3110
|
+
let t7;
|
|
3111
|
+
if ($[7] !== t5 || $[8] !== t6) {
|
|
3112
|
+
t7 = /* @__PURE__ */ jsx(Container, {
|
|
3113
|
+
asChild: true,
|
|
3114
|
+
children: /* @__PURE__ */ jsxs("header", {
|
|
3115
|
+
id: "exhibit-header",
|
|
3116
|
+
children: [t5, t6]
|
|
3117
|
+
})
|
|
3118
|
+
});
|
|
3119
|
+
$[7] = t5;
|
|
3120
|
+
$[8] = t6;
|
|
3121
|
+
$[9] = t7;
|
|
3122
|
+
} else t7 = $[9];
|
|
3123
|
+
let t8;
|
|
3124
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3125
|
+
t8 = /* @__PURE__ */ jsx(Stack, {
|
|
3126
|
+
asChild: true,
|
|
3127
|
+
gap: 15,
|
|
3128
|
+
children: /* @__PURE__ */ jsx(Container, {
|
|
3129
|
+
asChild: true,
|
|
3130
|
+
children: /* @__PURE__ */ jsxs("main", {
|
|
3131
|
+
id: "exhibit-main",
|
|
3132
|
+
tabIndex: -1,
|
|
3133
|
+
children: [
|
|
3134
|
+
/* @__PURE__ */ jsx(AlertSection, {}),
|
|
3135
|
+
/* @__PURE__ */ jsx(AlertDialogSection, {}),
|
|
3136
|
+
/* @__PURE__ */ jsx(ButtonSection, {}),
|
|
3137
|
+
/* @__PURE__ */ jsx(ButtonGroupSection, {}),
|
|
3138
|
+
/* @__PURE__ */ jsx(CalendarSection, {}),
|
|
3139
|
+
/* @__PURE__ */ jsx(CheckboxSection, {}),
|
|
3140
|
+
/* @__PURE__ */ jsx(CheckboxGroupSection, {}),
|
|
3141
|
+
/* @__PURE__ */ jsx(CodeSection, {}),
|
|
3142
|
+
/* @__PURE__ */ jsx(CollapsibleSection, {}),
|
|
3143
|
+
/* @__PURE__ */ jsx(CommandMenuSection, {}),
|
|
3144
|
+
/* @__PURE__ */ jsx(DataTableSection, {}),
|
|
3145
|
+
/* @__PURE__ */ jsx(DateInputSection, {}),
|
|
3146
|
+
/* @__PURE__ */ jsx(DateRangeInputSection, {}),
|
|
3147
|
+
/* @__PURE__ */ jsx(DescriptionListSection, {}),
|
|
3148
|
+
/* @__PURE__ */ jsx(DialogSection, {}),
|
|
3149
|
+
/* @__PURE__ */ jsx(DropdownMenuSection, {}),
|
|
3150
|
+
/* @__PURE__ */ jsx(FieldGroupSection, {}),
|
|
3151
|
+
/* @__PURE__ */ jsx(IconButtonSection, {}),
|
|
3152
|
+
/* @__PURE__ */ jsx(InputSection, {}),
|
|
3153
|
+
/* @__PURE__ */ jsx(LinkSection, {}),
|
|
3154
|
+
/* @__PURE__ */ jsx(MarkSection, {}),
|
|
3155
|
+
/* @__PURE__ */ jsx(MenuListSection, {}),
|
|
3156
|
+
/* @__PURE__ */ jsx(NumericInputSection, {}),
|
|
3157
|
+
/* @__PURE__ */ jsx(OutputSection, {}),
|
|
3158
|
+
/* @__PURE__ */ jsx(PopoverSection, {}),
|
|
3159
|
+
/* @__PURE__ */ jsx(RadioGroupSection, {}),
|
|
3160
|
+
/* @__PURE__ */ jsx(SelectSection, {}),
|
|
3161
|
+
/* @__PURE__ */ jsx(SpinnerSection, {}),
|
|
3162
|
+
/* @__PURE__ */ jsx(StepperSection, {}),
|
|
3163
|
+
/* @__PURE__ */ jsx(TableSection, {}),
|
|
3164
|
+
/* @__PURE__ */ jsx(TabsSection, {}),
|
|
3165
|
+
/* @__PURE__ */ jsx(TagSection, {}),
|
|
3166
|
+
/* @__PURE__ */ jsx(ToastSection, {}),
|
|
3167
|
+
/* @__PURE__ */ jsx(TextAreaSection, {}),
|
|
3168
|
+
/* @__PURE__ */ jsx(TooltipSection, {}),
|
|
3169
|
+
/* @__PURE__ */ jsx(KeyboardSection, {})
|
|
3170
|
+
]
|
|
3171
|
+
})
|
|
3172
|
+
})
|
|
3173
|
+
});
|
|
3174
|
+
$[10] = t8;
|
|
3175
|
+
} else t8 = $[10];
|
|
3176
|
+
let t9;
|
|
3177
|
+
if ($[11] !== prefix || $[12] !== t7) {
|
|
3178
|
+
t9 = /* @__PURE__ */ jsxs(Root, {
|
|
2301
3179
|
prefix,
|
|
2302
3180
|
locale: enGB,
|
|
2303
3181
|
children: [
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
children: /* @__PURE__ */ jsx(Link, {
|
|
2308
|
-
href: "#exhibit-main",
|
|
2309
|
-
style: {
|
|
2310
|
-
top: 6,
|
|
2311
|
-
left: 6
|
|
2312
|
-
},
|
|
2313
|
-
children: "Skip to main content"
|
|
2314
|
-
})
|
|
2315
|
-
}),
|
|
2316
|
-
/* @__PURE__ */ jsx(Container, {
|
|
2317
|
-
asChild: true,
|
|
2318
|
-
children: /* @__PURE__ */ jsxs("header", {
|
|
2319
|
-
id: "exhibit-header",
|
|
2320
|
-
children: [/* @__PURE__ */ jsx(Heading, {
|
|
2321
|
-
level: 1,
|
|
2322
|
-
id: "exhibit-title",
|
|
2323
|
-
children: title
|
|
2324
|
-
}), actions && /* @__PURE__ */ jsx(Stack, {
|
|
2325
|
-
id: "exhibit-actions",
|
|
2326
|
-
direction: "row",
|
|
2327
|
-
gap: 2,
|
|
2328
|
-
children: actions
|
|
2329
|
-
})]
|
|
2330
|
-
})
|
|
2331
|
-
}),
|
|
2332
|
-
/* @__PURE__ */ jsx(Stack, {
|
|
2333
|
-
asChild: true,
|
|
2334
|
-
gap: 15,
|
|
2335
|
-
children: /* @__PURE__ */ jsx(Container, {
|
|
2336
|
-
asChild: true,
|
|
2337
|
-
children: /* @__PURE__ */ jsxs("main", {
|
|
2338
|
-
id: "exhibit-main",
|
|
2339
|
-
tabIndex: -1,
|
|
2340
|
-
children: [
|
|
2341
|
-
/* @__PURE__ */ jsx(AlertSection, {}),
|
|
2342
|
-
/* @__PURE__ */ jsx(AlertDialogSection, {}),
|
|
2343
|
-
/* @__PURE__ */ jsx(ButtonSection, {}),
|
|
2344
|
-
/* @__PURE__ */ jsx(ButtonGroupSection, {}),
|
|
2345
|
-
/* @__PURE__ */ jsx(CalendarSection, {}),
|
|
2346
|
-
/* @__PURE__ */ jsx(CheckboxSection, {}),
|
|
2347
|
-
/* @__PURE__ */ jsx(CheckboxGroupSection, {}),
|
|
2348
|
-
/* @__PURE__ */ jsx(CodeSection, {}),
|
|
2349
|
-
/* @__PURE__ */ jsx(CollapsibleSection, {}),
|
|
2350
|
-
/* @__PURE__ */ jsx(CommandMenuSection, {}),
|
|
2351
|
-
/* @__PURE__ */ jsx(DataTableSection, {}),
|
|
2352
|
-
/* @__PURE__ */ jsx(DateInputSection, {}),
|
|
2353
|
-
/* @__PURE__ */ jsx(DateRangeInputSection, {}),
|
|
2354
|
-
/* @__PURE__ */ jsx(DescriptionListSection, {}),
|
|
2355
|
-
/* @__PURE__ */ jsx(DialogSection, {}),
|
|
2356
|
-
/* @__PURE__ */ jsx(DropdownMenuSection, {}),
|
|
2357
|
-
/* @__PURE__ */ jsx(FieldGroupSection, {}),
|
|
2358
|
-
/* @__PURE__ */ jsx(IconButtonSection, {}),
|
|
2359
|
-
/* @__PURE__ */ jsx(InputSection, {}),
|
|
2360
|
-
/* @__PURE__ */ jsx(LinkSection, {}),
|
|
2361
|
-
/* @__PURE__ */ jsx(MarkSection, {}),
|
|
2362
|
-
/* @__PURE__ */ jsx(MenuListSection, {}),
|
|
2363
|
-
/* @__PURE__ */ jsx(NumericInputSection, {}),
|
|
2364
|
-
/* @__PURE__ */ jsx(OutputSection, {}),
|
|
2365
|
-
/* @__PURE__ */ jsx(PopoverSection, {}),
|
|
2366
|
-
/* @__PURE__ */ jsx(RadioGroupSection, {}),
|
|
2367
|
-
/* @__PURE__ */ jsx(SelectSection, {}),
|
|
2368
|
-
/* @__PURE__ */ jsx(SpinnerSection, {}),
|
|
2369
|
-
/* @__PURE__ */ jsx(StepperSection, {}),
|
|
2370
|
-
/* @__PURE__ */ jsx(TableSection, {}),
|
|
2371
|
-
/* @__PURE__ */ jsx(TabsSection, {}),
|
|
2372
|
-
/* @__PURE__ */ jsx(TagSection, {}),
|
|
2373
|
-
/* @__PURE__ */ jsx(ToastSection, {}),
|
|
2374
|
-
/* @__PURE__ */ jsx(TextAreaSection, {}),
|
|
2375
|
-
/* @__PURE__ */ jsx(TooltipSection, {}),
|
|
2376
|
-
/* @__PURE__ */ jsx(KeyboardSection, {})
|
|
2377
|
-
]
|
|
2378
|
-
})
|
|
2379
|
-
})
|
|
2380
|
-
})
|
|
3182
|
+
t4,
|
|
3183
|
+
t7,
|
|
3184
|
+
t8
|
|
2381
3185
|
]
|
|
2382
|
-
})
|
|
2383
|
-
|
|
3186
|
+
});
|
|
3187
|
+
$[11] = prefix;
|
|
3188
|
+
$[12] = t7;
|
|
3189
|
+
$[13] = t9;
|
|
3190
|
+
} else t9 = $[13];
|
|
3191
|
+
let t10;
|
|
3192
|
+
if ($[14] !== t3 || $[15] !== t9) {
|
|
3193
|
+
t10 = /* @__PURE__ */ jsx(ExhibitContext, {
|
|
3194
|
+
value: t3,
|
|
3195
|
+
children: t9
|
|
3196
|
+
});
|
|
3197
|
+
$[14] = t3;
|
|
3198
|
+
$[15] = t9;
|
|
3199
|
+
$[16] = t10;
|
|
3200
|
+
} else t10 = $[16];
|
|
3201
|
+
return t10;
|
|
2384
3202
|
}
|
|
2385
3203
|
//#endregion
|
|
2386
3204
|
export { ExhibitApp };
|