@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.
@@ -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({ rows, cols, renderItem }) {
15
- return /* @__PURE__ */ jsxs("div", {
16
- className: "exhibit-grid",
17
- style: { "--exhibit-grid-cols": Object.keys(cols).length + (rows ? 1 : 0) },
18
- tabIndex: 0,
19
- children: [
20
- rows && /* @__PURE__ */ jsx("div", {}),
21
- Object.keys(cols).map((colLabel) => /* @__PURE__ */ jsx("div", {
22
- className: "exhibit-grid-col-label",
23
- children: colLabel
24
- }, colLabel)),
25
- Object.entries(rows ?? { "": void 0 }).map(([rowLabel, row]) => /* @__PURE__ */ jsxs(Fragment, { children: [rowLabel && /* @__PURE__ */ jsx("div", {
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(([colLabel, col]) => /* @__PURE__ */ jsx("div", {
29
- className: "exhibit-grid-item",
30
- children: renderItem({
31
- row,
32
- col
33
- })
34
- }, colLabel))] }, rowLabel))
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({ title, docsPage, children }) {
95
+ function ExhibitSection(t0) {
96
+ const $ = c(35);
97
+ const { title, docsPage, children } = t0;
41
98
  const { cssVar } = useCssVars();
42
- const headingId = title.toLowerCase().replace(/[^a-z0-9]/g, "-");
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
- return /* @__PURE__ */ jsx(Stack, {
46
- asChild: true,
47
- children: /* @__PURE__ */ jsxs("section", {
48
- className: "exhibit-section",
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: [/* @__PURE__ */ jsx(Stack, {
51
- asChild: true,
52
- direction: "row",
53
- gap: 4,
54
- alignItems: "baseline",
55
- children: /* @__PURE__ */ jsxs("header", { children: [/* @__PURE__ */ jsx(Heading, {
56
- id: headingId,
57
- children: /* @__PURE__ */ jsx(Link, {
58
- href: `#${headingId}`,
59
- color: "neutral",
60
- style: { color: cssVar("neutral-a12") },
61
- children: title
62
- })
63
- }), /* @__PURE__ */ jsxs(Link, {
64
- className: "exhibit-section-docs-link",
65
- href: docsUrl.toString(),
66
- external: true,
67
- children: ["View docs", /* @__PURE__ */ jsxs(VisuallyHidden, { children: [" of ", title] })]
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
80
- title: "Alert dialog",
81
- docsPage: "ostack-ui-overlay-alert-dialog",
82
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
83
- cols: {
84
- Neutral: "neutral",
85
- Primary: "primary",
86
- Success: "success",
87
- Danger: "danger",
88
- Warning: "warning"
89
- },
90
- rows: {
91
- Solid: "solid",
92
- Subtle: "subtle",
93
- Outlined: "outlined",
94
- Ghost: "ghost"
95
- },
96
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(AlertDialog, { children: [/* @__PURE__ */ jsx(AlertDialogTrigger, { children: /* @__PURE__ */ jsx(Button, {
97
- variant: row,
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
- }) }), /* @__PURE__ */ jsxs(AlertDialogContent, {
101
- variant: row,
102
- color: col,
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
122
- title: "Alert",
123
- docsPage: "ostack-ui-feedback-alert",
124
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
125
- cols: {
126
- Neutral: "neutral",
127
- Info: "info",
128
- Success: "success",
129
- Danger: "danger",
130
- Warning: "warning",
131
- Title: "title",
132
- Action: "action",
133
- "Close button": "showCloseButton"
134
- },
135
- rows: {
136
- Solid: "solid",
137
- Subtle: "subtle",
138
- Outlined: "outlined"
139
- },
140
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Alert, {
141
- variant: row,
142
- action: col === "action" && /* @__PURE__ */ jsx(Button, {
143
- color: "primary",
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
157
- title: "Button group",
158
- docsPage: "ostack-ui-layout-button-group",
159
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
160
- cols: {
161
- Neutral: "neutral",
162
- Primary: "primary",
163
- Success: "success",
164
- Danger: "danger",
165
- Warning: "warning"
166
- },
167
- rows: {
168
- Solid: "solid",
169
- Subtle: "subtle",
170
- Outlined: "outlined",
171
- Ghost: "ghost"
172
- },
173
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(ButtonGroup, { children: [
174
- /* @__PURE__ */ jsx(Button, {
175
- icon: faFolderOpen,
176
- variant: row,
177
- color: col,
178
- children: "Load"
179
- }),
180
- /* @__PURE__ */ jsx(Button, {
181
- icon: faSave,
182
- variant: row,
183
- color: col,
184
- children: "Save"
185
- }),
186
- /* @__PURE__ */ jsx(IconButton, {
187
- icon: faTrashCan,
188
- label: "Delete",
189
- variant: row,
190
- color: col
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
200
- title: "Button",
201
- docsPage: "ostack-ui-forms-button",
202
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
203
- cols: {
204
- Neutral: "neutral",
205
- Primary: "primary",
206
- Success: "success",
207
- Danger: "danger",
208
- Warning: "warning",
209
- Disabled: "disabled",
210
- Loading: "loading",
211
- Keybinds: "keybinds",
212
- Vertical: "vertical"
213
- },
214
- rows: {
215
- Solid: "solid",
216
- Subtle: "subtle",
217
- Outlined: "outlined",
218
- Ghost: "ghost"
219
- },
220
- renderItem: ({ col, row }) => /* @__PURE__ */ jsx(Button, {
221
- icon: faBolt,
222
- variant: row,
223
- color: col === "disabled" || col === "loading" || col === "keybinds" || col === "vertical" ? void 0 : col,
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
238
- title: "Calendar",
239
- docsPage: "ostack-ui-data-display-calendar",
240
- children: /* @__PURE__ */ jsx(Calendar, {})
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
247
- title: "Checkbox group",
248
- docsPage: "ostack-ui-forms-checkbox-group",
249
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
250
- cols: {
251
- Basic: "",
252
- "Helper text": "helperText",
253
- Required: "required",
254
- Disabled: "disabled",
255
- "Read-only": "readOnly",
256
- Loading: "loading",
257
- Code: "code",
258
- "All codes": "allCodes"
259
- },
260
- rows: {
261
- "No status": void 0,
262
- Valid: "valid",
263
- Invalid: "invalid",
264
- Warned: "warned"
265
- },
266
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
267
- /* @__PURE__ */ jsx(Label, { children: "Toppings" }),
268
- /* @__PURE__ */ jsxs(CheckboxGroup, {
269
- defaultValue: ["caramel"],
270
- status: row,
271
- required: col === "required",
272
- disabled: col === "disabled",
273
- readOnly: col === "readOnly",
274
- loading: col === "loading",
275
- code: col === "code" || col === "allCodes" ? "3.2" : void 0,
276
- children: [
277
- /* @__PURE__ */ jsx(Checkbox, {
278
- value: "caramel",
279
- code: col === "allCodes" ? "a" : void 0,
280
- children: "Caramel"
281
- }),
282
- /* @__PURE__ */ jsx(Checkbox, {
283
- value: "chocolate",
284
- code: col === "allCodes" ? "b" : void 0,
285
- children: "Chocolate"
286
- }),
287
- /* @__PURE__ */ jsx(Checkbox, {
288
- value: "strawberry",
289
- code: col === "allCodes" ? "c" : void 0,
290
- children: "Strawberry"
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
- row === "warned" && /* @__PURE__ */ jsx(Feedback, {
299
- type: "warning",
300
- children: "Maybe unavailable."
496
+ /* @__PURE__ */ jsx(Checkbox, {
497
+ value: "chocolate",
498
+ code: col === "allCodes" ? "b" : void 0,
499
+ children: "Chocolate"
301
500
  }),
302
- row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Unavailable." }),
303
- col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "Select all wanted." })
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
312
- title: "Checkbox",
313
- docsPage: "ostack-ui-forms-checkbox",
314
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
315
- cols: {
316
- Basic: "",
317
- Indeterminate: "indeterminate",
318
- "Helper text": "helperText",
319
- Required: "required",
320
- Disabled: "disabled",
321
- "Read-only": "readOnly",
322
- Loading: "loading",
323
- Code: "code"
324
- },
325
- rows: {
326
- "No status": void 0,
327
- Valid: "valid",
328
- Invalid: "invalid",
329
- Warned: "warned"
330
- },
331
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
332
- /* @__PURE__ */ jsx(Checkbox, {
333
- status: row,
334
- defaultChecked: col === "indeterminate" ? "indeterminate" : true,
335
- required: col === "required",
336
- disabled: col === "disabled",
337
- readOnly: col === "readOnly",
338
- loading: col === "loading",
339
- code: col === "code" ? "1.5" : void 0,
340
- children: "I accept"
341
- }),
342
- row === "valid" && /* @__PURE__ */ jsx(Feedback, {
343
- type: "success",
344
- children: "Accepted."
345
- }),
346
- row === "warned" && /* @__PURE__ */ jsx(Feedback, {
347
- type: "warning",
348
- children: "Are you sure?"
349
- }),
350
- row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Must accept." }),
351
- col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "Please indicate." })
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
360
- title: "Code",
361
- docsPage: "ostack-ui-typography-code",
362
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
363
- cols: {
364
- Neutral: "neutral",
365
- Primary: "primary",
366
- Success: "success",
367
- Danger: "danger",
368
- Warning: "warning"
369
- },
370
- renderItem: ({ col }) => /* @__PURE__ */ jsx(Code, {
371
- color: col,
372
- children: "Math.sin(1)"
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
382
- title: "Collapsible",
383
- docsPage: "ostack-ui-disclosure-collapsible",
384
- children: /* @__PURE__ */ jsxs(Collapsible, { children: [/* @__PURE__ */ jsx(CollapsibleTrigger, { children: (open) => /* @__PURE__ */ jsxs(Button, {
385
- icon: open ? faCaretUp : faCaretDown,
386
- iconPlacement: "end",
387
- children: [open ? "Hide" : "Show", " quote"]
388
- }) }), /* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsxs("blockquote", {
389
- cite: "https://gutenberg.net.au/ebooks02/0201091h.html",
390
- style: { marginTop: spacing(4) },
391
- children: [/* @__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.\"" }), /* @__PURE__ */ jsxs("p", { children: ["—Virginia Woolf, ", /* @__PURE__ */ jsx("cite", { children: "The Waves" })] })]
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
- const keybind = "$mod+K";
401
- useKeyboardShortcut(keybind, () => setOpen(true), { preventDefault: true });
402
- const handleSelect = () => setOpen(false);
403
- return /* @__PURE__ */ jsxs(ExhibitSection, {
404
- title: "Command menu",
405
- docsPage: "ostack-ui-overlay-command-menu",
406
- children: [/* @__PURE__ */ jsxs("span", {
407
- style: { color: cssVar("neutral-11") },
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
- /* @__PURE__ */ jsx(Keybinds, { keybinds: keybind }),
711
+ t5,
411
712
  " to open the command menu."
412
713
  ]
413
- }), /* @__PURE__ */ jsx(CommandMenuDialog, {
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: /* @__PURE__ */ jsxs(CommandMenu, { children: [/* @__PURE__ */ jsxs(CommandMenuGroup, {
417
- label: "Actions",
418
- children: [
419
- /* @__PURE__ */ jsx(CommandMenuItem, {
420
- onSelect: handleSelect,
421
- children: "Find"
422
- }),
423
- /* @__PURE__ */ jsx(CommandMenuItem, {
424
- onSelect: handleSelect,
425
- children: "Replace"
426
- }),
427
- /* @__PURE__ */ jsx(CommandMenuItem, {
428
- onSelect: handleSelect,
429
- children: "Analyse"
430
- }),
431
- /* @__PURE__ */ jsx(CommandMenuItem, {
432
- onSelect: handleSelect,
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1124
- title: "Data table",
1125
- docsPage: "ostack-ui-data-display-data-table",
1126
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1127
- cols: {
1128
- Default: "default",
1129
- Control: "control",
1130
- Scrolled: "scrolled",
1131
- Selectable: "showSelectionColumn"
1132
- },
1133
- renderItem: ({ col }) => /* @__PURE__ */ jsx(Field, {
1134
- style: { width: 450 },
1135
- children: /* @__PURE__ */ jsxs(DataTable, {
1136
- columns: {
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1178
- title: "Date input",
1179
- docsPage: "ostack-ui-forms-date-input",
1180
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1181
- cols: {
1182
- Basic: "",
1183
- "Helper text": "helperText",
1184
- Required: "required",
1185
- Disabled: "disabled",
1186
- "Read-only": "readOnly",
1187
- Loading: "loading",
1188
- Code: "code"
1189
- },
1190
- rows: {
1191
- "No status": void 0,
1192
- Valid: "valid",
1193
- Invalid: "invalid",
1194
- Warned: "warned"
1195
- },
1196
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
1197
- /* @__PURE__ */ jsx(Label, { children: "Birthday" }),
1198
- /* @__PURE__ */ jsx(DateInput, {
1199
- containerProps: { style: { width: 145 } },
1200
- defaultValue: new Date(1990, 3, 10),
1201
- status: row,
1202
- required: col === "required",
1203
- disabled: col === "disabled",
1204
- readOnly: col === "readOnly",
1205
- loading: col === "loading",
1206
- code: col === "code" ? "7.2" : void 0
1207
- }),
1208
- row === "valid" && /* @__PURE__ */ jsx(Feedback, {
1209
- type: "success",
1210
- children: "Confirmed."
1211
- }),
1212
- row === "warned" && /* @__PURE__ */ jsx(Feedback, {
1213
- type: "warning",
1214
- children: "Awaiting confirmation…"
1215
- }),
1216
- row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Unable to confirm." }),
1217
- col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "For legal purposes." })
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1226
- title: "Date-range input",
1227
- docsPage: "ostack-ui-forms-date-range-input",
1228
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1229
- cols: {
1230
- Basic: "",
1231
- "Helper text": "helperText",
1232
- Required: "required",
1233
- Disabled: "disabled",
1234
- "Read-only": "readOnly",
1235
- Loading: "loading",
1236
- Code: "code"
1237
- },
1238
- rows: {
1239
- "No status": void 0,
1240
- Valid: "valid",
1241
- Invalid: "invalid",
1242
- Warned: "warned"
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
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
1245
- /* @__PURE__ */ jsx(Label, { children: "Time off" }),
1246
- /* @__PURE__ */ jsx(DateRangeInput, {
1247
- popoverAnchorProps: { style: { width: 280 } },
1248
- defaultValue: {
1249
- start: new Date(2026, 2, 10),
1250
- end: new Date(2026, 2, 24)
1251
- },
1252
- status: row,
1253
- required: col === "required",
1254
- disabled: col === "disabled",
1255
- readOnly: col === "readOnly",
1256
- loading: col === "loading",
1257
- code: col === "code" ? "1.6" : void 0
1258
- }),
1259
- row === "valid" && /* @__PURE__ */ jsx(Feedback, {
1260
- type: "success",
1261
- children: "Accepted."
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1277
- title: "Description list",
1278
- docsPage: "ostack-ui-data-display-description-list",
1279
- children: /* @__PURE__ */ jsxs(DescriptionList, { children: [
1280
- /* @__PURE__ */ jsx(DescriptionListItem, {
1281
- term: "Instance ID",
1282
- xs: 6,
1283
- md: 4,
1284
- lg: 3,
1285
- xl: 2,
1286
- children: /* @__PURE__ */ jsx(Code, { children: "i-04f29a87bca612" })
1287
- }),
1288
- /* @__PURE__ */ jsx(DescriptionListItem, {
1289
- term: "Status",
1290
- xs: 6,
1291
- md: 4,
1292
- lg: 3,
1293
- xl: 2,
1294
- children: /* @__PURE__ */ jsx(Tag, {
1295
- color: "success",
1296
- children: "Running"
1297
- })
1298
- }),
1299
- /* @__PURE__ */ jsx(DescriptionListItem, {
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1342
- title: "Dialog",
1343
- docsPage: "ostack-ui-overlay-dialog",
1344
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1345
- cols: {
1346
- Neutral: "neutral",
1347
- Primary: "primary",
1348
- Success: "success",
1349
- Danger: "danger",
1350
- Warning: "warning"
1351
- },
1352
- rows: {
1353
- Solid: "solid",
1354
- Subtle: "subtle",
1355
- Outlined: "outlined",
1356
- Ghost: "ghost"
1357
- },
1358
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Dialog, { children: [/* @__PURE__ */ jsx(DialogTrigger, { children: /* @__PURE__ */ jsx(Button, {
1359
- variant: row,
1360
- color: col,
1361
- children: "Edit"
1362
- }) }), /* @__PURE__ */ jsx(DialogContent, {
1363
- variant: row,
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
- asChild: true,
1366
- children: /* @__PURE__ */ jsxs("form", { children: [
1367
- /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "Edit user information" }) }),
1368
- /* @__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) })] })] })] }),
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1422
- title: "Dropdown menu",
1423
- docsPage: "ostack-ui-overlay-dropdown-menu",
1424
- children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, { children: /* @__PURE__ */ jsx(Button, {
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
- }) }), /* @__PURE__ */ jsxs(DropdownMenuContent, {
1428
- style: { minWidth: 200 },
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__ */ jsxs(DropdownMenuGroup, {
1431
- label: "Connectivity",
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__ */ jsxs(DropdownMenuGroup, {
1448
- label: "Devices",
1449
- children: [
1450
- /* @__PURE__ */ jsx(DropdownMenuItem, {
1451
- icon: faDisplay,
1452
- children: "Displays"
1453
- }),
1454
- /* @__PURE__ */ jsx(DropdownMenuItem, {
1455
- icon: faVolumeHigh,
1456
- children: "Sound"
1457
- }),
1458
- /* @__PURE__ */ jsx(DropdownMenuItem, {
1459
- icon: faKeyboard,
1460
- children: "Input"
1461
- }),
1462
- /* @__PURE__ */ jsx(DropdownMenuItem, {
1463
- icon: faPrint,
1464
- children: "Printers"
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__ */ jsxs(DropdownMenuRadioGroup, {
1469
- label: "Language",
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__ */ jsxs(DropdownMenuGroup, {
1488
- label: "Notifications",
1489
- children: [/* @__PURE__ */ jsx(DropdownMenuCheckboxItem, { children: "Calendar" }), /* @__PURE__ */ jsx(DropdownMenuCheckboxItem, {
1490
- checked: true,
1491
- children: "Weather"
1492
- })]
1893
+ /* @__PURE__ */ jsx(DropdownMenuRadioItem, {
1894
+ value: "pt",
1895
+ children: "Portuguese"
1493
1896
  }),
1494
- /* @__PURE__ */ jsx(DropdownMenuGroup, { children: /* @__PURE__ */ jsxs(DropdownMenuSub, { children: [/* @__PURE__ */ jsx(DropdownMenuSubTrigger, { children: "System" }), /* @__PURE__ */ jsxs(DropdownMenuSubContent, { children: [/* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [/* @__PURE__ */ jsx(DropdownMenuItem, {
1495
- icon: faClock,
1496
- children: "Date & Time"
1497
- }), /* @__PURE__ */ jsx(DropdownMenuItem, {
1498
- icon: faUser,
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1513
- title: "Field group",
1514
- docsPage: "ostack-ui-forms-field-group",
1515
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1516
- cols: {
1517
- Basic: "basic",
1518
- Code: "code"
1519
- },
1520
- renderItem: ({ col }) => /* @__PURE__ */ jsxs(FieldGroup, { children: [/* @__PURE__ */ jsx(FieldGroupHeader, {
1521
- code: col === "code" ? "1" : void 0,
1522
- children: /* @__PURE__ */ jsx(FieldGroupTitle, { children: "Identification" })
1523
- }), /* @__PURE__ */ jsx(FieldGroupBody, { children: /* @__PURE__ */ jsxs(Stack, {
1524
- gap: 3,
1525
- 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 })] })]
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1534
- title: "Icon button",
1535
- docsPage: "ostack-ui-forms-icon-button",
1536
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1537
- cols: {
1538
- Neutral: "neutral",
1539
- Primary: "primary",
1540
- Success: "success",
1541
- Danger: "danger",
1542
- Warning: "warning",
1543
- Disabled: "disabled",
1544
- Loading: "loading",
1545
- Keybinds: "keybinds"
1546
- },
1547
- rows: {
1548
- Solid: "solid",
1549
- Subtle: "subtle",
1550
- Outlined: "outlined",
1551
- Ghost: "ghost"
1552
- },
1553
- renderItem: ({ col, row }) => /* @__PURE__ */ jsx(IconButton, {
1554
- label: "Bloom",
1555
- icon: faSeedling,
1556
- variant: row,
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1570
- title: "Input",
1571
- docsPage: "ostack-ui-forms-input",
1572
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1573
- cols: {
1574
- Basic: "",
1575
- "Helper text": "helperText",
1576
- Required: "required",
1577
- "Label help": "labelHelp",
1578
- Disabled: "disabled",
1579
- "Read-only": "readOnly",
1580
- Loading: "loading",
1581
- Code: "code",
1582
- "Clear button": "showClearButton"
1583
- },
1584
- rows: {
1585
- "No status": void 0,
1586
- Valid: "valid",
1587
- Invalid: "invalid",
1588
- Warned: "warned"
1589
- },
1590
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
1591
- /* @__PURE__ */ jsx(Label, {
1592
- helperText: col === "labelHelp" ? "Used to sign in." : void 0,
1593
- children: "Username"
1594
- }),
1595
- /* @__PURE__ */ jsx(Input, {
1596
- containerProps: { style: { width: 110 } },
1597
- defaultValue: "j_smith",
1598
- status: row,
1599
- required: col === "required",
1600
- disabled: col === "disabled",
1601
- readOnly: col === "readOnly",
1602
- loading: col === "loading",
1603
- code: col === "code" ? "1.1" : void 0,
1604
- showClearButton: col === "showClearButton" ? "auto" : void 0
1605
- }),
1606
- row === "valid" && /* @__PURE__ */ jsx(Feedback, {
1607
- type: "success",
1608
- children: "Available."
1609
- }),
1610
- row === "warned" && /* @__PURE__ */ jsx(Feedback, {
1611
- type: "warning",
1612
- children: "Already taken."
1613
- }),
1614
- row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Invalid format." }),
1615
- col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "Used to sign in." })
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
- return /* @__PURE__ */ jsxs(ExhibitSection, {
1624
- title: "Keyboard",
1625
- docsPage: "ostack-ui-typography-keyboard",
1626
- children: [
1627
- "Press ",
1628
- /* @__PURE__ */ jsx(Keyboard, { children: "Ctrl" }),
1629
- " + ",
1630
- /* @__PURE__ */ jsx(Keyboard, { children: "P" }),
1631
- " to print."
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1639
- title: "Link",
1640
- docsPage: "ostack-ui-typography-link",
1641
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1642
- cols: {
1643
- Neutral: "neutral",
1644
- Primary: "primary",
1645
- Success: "success",
1646
- Danger: "danger",
1647
- Warning: "warning",
1648
- External: "external"
1649
- },
1650
- renderItem: ({ col }) => /* @__PURE__ */ jsx(Link, {
1651
- href: col === "external" ? "https://www.wikipedia.org/" : "#",
1652
- color: col === "external" ? void 0 : col,
1653
- external: col === "external",
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1663
- title: "Mark",
1664
- docsPage: "ostack-ui-typography-mark",
1665
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1666
- cols: {
1667
- Neutral: "neutral",
1668
- Primary: "primary",
1669
- Success: "success",
1670
- Danger: "danger",
1671
- Warning: "warning"
1672
- },
1673
- renderItem: ({ col }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
1674
- "The deadline is ",
1675
- /* @__PURE__ */ jsx(Mark, {
1676
- color: col,
1677
- children: "Friday"
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1688
- title: "Menu list",
1689
- docsPage: "ostack-ui-overlay-dropdown-menu",
1690
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1691
- cols: {
1692
- Subtle: "subtle",
1693
- Solid: "solid"
1694
- },
1695
- renderItem: ({ col }) => /* @__PURE__ */ jsxs(MenuList, {
1696
- variant: col,
1697
- style: { width: 250 },
1698
- children: [/* @__PURE__ */ jsxs(MenuListGroup, {
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1742
- title: "Numeric input",
1743
- docsPage: "ostack-ui-forms-numeric-input",
1744
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1745
- cols: {
1746
- Basic: "",
1747
- "Helper text": "helperText",
1748
- Required: "required",
1749
- Disabled: "disabled",
1750
- "Read-only": "readOnly",
1751
- Loading: "loading",
1752
- Code: "code",
1753
- "Clear button": "showClearButton"
1754
- },
1755
- rows: {
1756
- "No status": void 0,
1757
- Valid: "valid",
1758
- Invalid: "invalid",
1759
- Warned: "warned"
1760
- },
1761
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
1762
- /* @__PURE__ */ jsx(Label, { children: "Income" }),
1763
- /* @__PURE__ */ jsx(NumericInput, {
1764
- containerProps: { style: { width: 120 } },
1765
- defaultValue: 42000.9,
1766
- precision: 11,
1767
- scale: 2,
1768
- groupDigits: true,
1769
- min: 0,
1770
- endAdornment: /* @__PURE__ */ jsx(ControlAddon, { children: "€" }),
1771
- status: row,
1772
- required: col === "required",
1773
- disabled: col === "disabled",
1774
- readOnly: col === "readOnly",
1775
- loading: col === "loading",
1776
- code: col === "code" ? "3.9" : void 0,
1777
- showClearButton: col === "showClearButton" ? "auto" : void 0
1778
- }),
1779
- row === "valid" && /* @__PURE__ */ jsx(Feedback, {
1780
- type: "success",
1781
- children: "Confirmed."
1782
- }),
1783
- row === "warned" && /* @__PURE__ */ jsx(Feedback, {
1784
- type: "warning",
1785
- children: "Processing…"
1786
- }),
1787
- row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Insufficient." }),
1788
- col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "For tax purposes." })
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1797
- title: "Output",
1798
- docsPage: "ostack-ui-forms-output",
1799
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1800
- cols: {
1801
- Basic: "",
1802
- "Helper text": "helperText",
1803
- Pending: "pending",
1804
- Code: "code"
1805
- },
1806
- rows: {
1807
- "No status": void 0,
1808
- Valid: "valid",
1809
- Invalid: "invalid",
1810
- Warned: "warned"
1811
- },
1812
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
1813
- /* @__PURE__ */ jsx(Label, { children: "Total" }),
1814
- /* @__PURE__ */ jsx(Output, {
1815
- containerProps: { style: { width: 150 } },
1816
- status: row,
1817
- pending: col === "pending",
1818
- code: col === "code" ? "6.2" : void 0,
1819
- children: "$30,000"
1820
- }),
1821
- row === "valid" && /* @__PURE__ */ jsx(Feedback, {
1822
- type: "success",
1823
- children: "Funds available."
1824
- }),
1825
- row === "warned" && /* @__PURE__ */ jsx(Feedback, {
1826
- type: "warning",
1827
- children: "Funds unavailable."
1828
- }),
1829
- row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Incorrect amount." }),
1830
- col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "A + B + C + D - E" })
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1840
- title: "Popover",
1841
- docsPage: "ostack-ui-overlay-popover",
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
- }) }), /* @__PURE__ */ jsx(PopoverContent, {
1846
- style: { padding: spacing(2) },
1847
- children: /* @__PURE__ */ jsx(Stack, {
1848
- asChild: true,
1849
- gap: 2,
1850
- alignItems: "flex-end",
1851
- children: /* @__PURE__ */ jsxs("form", { children: [/* @__PURE__ */ jsxs(Field, { children: [/* @__PURE__ */ jsx(Label, { children: "Leave a comment" }), /* @__PURE__ */ jsx(TextArea, {
1852
- rows: 6,
1853
- style: { width: 300 }
1854
- })] }), /* @__PURE__ */ jsx(Button, {
1855
- color: "primary",
1856
- type: "submit",
1857
- onClick: (evt) => evt.preventDefault(),
1858
- children: "Submit"
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1868
- title: "Radio group",
1869
- docsPage: "ostack-ui-forms-radio-group",
1870
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1871
- cols: {
1872
- Basic: "",
1873
- "Helper text": "helperText",
1874
- Required: "required",
1875
- Disabled: "disabled",
1876
- "Read-only": "readOnly",
1877
- Loading: "loading",
1878
- Code: "code",
1879
- "All codes": "allCodes",
1880
- "Clear button": "clearButton"
1881
- },
1882
- rows: {
1883
- "No status": void 0,
1884
- Valid: "valid",
1885
- Invalid: "invalid",
1886
- Warned: "warned"
1887
- },
1888
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
1889
- /* @__PURE__ */ jsx(Label, { children: "Preferred make" }),
1890
- /* @__PURE__ */ jsxs(RadioGroup, {
1891
- status: row,
1892
- defaultValue: "fiat",
1893
- required: col === "required",
1894
- disabled: col === "disabled",
1895
- readOnly: col === "readOnly",
1896
- loading: col === "loading",
1897
- code: col === "code" || col === "allCodes" ? "1.7" : void 0,
1898
- showClearButton: col === "clearButton" ? "auto" : void 0,
1899
- children: [
1900
- /* @__PURE__ */ jsx(Radio, {
1901
- value: "fiat",
1902
- code: col === "allCodes" ? "a" : void 0,
1903
- children: "Fiat"
1904
- }),
1905
- /* @__PURE__ */ jsx(Radio, {
1906
- value: "renault",
1907
- code: col === "allCodes" ? "b" : void 0,
1908
- children: "Renault"
1909
- }),
1910
- /* @__PURE__ */ jsx(Radio, {
1911
- value: "toyota",
1912
- code: col === "allCodes" ? "c" : void 0,
1913
- children: "Toyota"
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
- row === "warned" && /* @__PURE__ */ jsx(Feedback, {
1922
- type: "warning",
1923
- children: "Maybe unavailable."
2493
+ /* @__PURE__ */ jsx(Radio, {
2494
+ value: "renault",
2495
+ code: col === "allCodes" ? "b" : void 0,
2496
+ children: "Renault"
1924
2497
  }),
1925
- row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Unavailable." }),
1926
- col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "All with low mileage." })
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1935
- title: "Select",
1936
- docsPage: "ostack-ui-forms-select",
1937
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
1938
- cols: {
1939
- Single: "",
1940
- Multiple: "multiple",
1941
- "Helper text": "helperText",
1942
- Required: "required",
1943
- Disabled: "disabled",
1944
- "Read-only": "readOnly",
1945
- Loading: "loading",
1946
- Code: "code"
1947
- },
1948
- rows: {
1949
- "No status": void 0,
1950
- Valid: "valid",
1951
- Invalid: "invalid",
1952
- Warned: "warned"
1953
- },
1954
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
1955
- /* @__PURE__ */ jsxs(Label, { children: ["Pick your fruit", col === "multiple" && "s"] }),
1956
- /* @__PURE__ */ jsxs(Select, {
1957
- containerProps: { style: { width: 120 } },
1958
- multiple: col === "multiple",
1959
- defaultValue: col === "multiple" ? ["apple", "kiwi"] : "apple",
1960
- status: row,
1961
- required: col === "required",
1962
- disabled: col === "disabled",
1963
- readOnly: col === "readOnly",
1964
- loading: col === "loading",
1965
- code: col === "code" ? "2.1" : void 0,
1966
- children: [
1967
- /* @__PURE__ */ jsx(Option, {
1968
- value: "apple",
1969
- children: "Apple"
1970
- }),
1971
- /* @__PURE__ */ jsx(Option, {
1972
- value: "kiwi",
1973
- children: "Kiwi"
1974
- }),
1975
- /* @__PURE__ */ jsx(Option, {
1976
- value: "pear",
1977
- children: "Pear"
1978
- })
1979
- ]
1980
- }),
1981
- row === "valid" && /* @__PURE__ */ jsx(Feedback, {
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
- row === "warned" && /* @__PURE__ */ jsx(Feedback, {
1986
- type: "warning",
1987
- children: "Maybe unavailable."
2569
+ /* @__PURE__ */ jsx(Option, {
2570
+ value: "kiwi",
2571
+ children: "Kiwi"
1988
2572
  }),
1989
- row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Unavailable." }),
1990
- col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "For breakfast." })
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
1999
- title: "Spinner",
2000
- docsPage: "ostack-ui-feedback-spinner",
2001
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
2002
- cols: {
2003
- Neutral: "neutral",
2004
- Primary: "primary",
2005
- Success: "success",
2006
- Danger: "danger",
2007
- Warning: "warning",
2008
- Labelled: "label"
2009
- },
2010
- renderItem: ({ col }) => /* @__PURE__ */ jsx(Spinner, {
2011
- color: col === "label" ? void 0 : col,
2012
- label: col === "label" ? "Loading…" : void 0
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
2022
- title: "Stepper",
2023
- docsPage: "ostack-ui-data-disclosure-stepper",
2024
- children: /* @__PURE__ */ jsxs(Stepper, {
2025
- style: { maxWidth: 600 },
2026
- children: [
2027
- /* @__PURE__ */ jsxs(StepList, { children: [
2028
- /* @__PURE__ */ jsx(Step, { children: "Account Details" }),
2029
- /* @__PURE__ */ jsx(Step, { children: "Shipping Address" }),
2030
- /* @__PURE__ */ jsx(Step, { children: "Payment Method" }),
2031
- /* @__PURE__ */ jsx(Step, { children: "Review & Confirm" })
2032
- ] }),
2033
- /* @__PURE__ */ jsx(StepContent, {
2034
- style: { marginBlock: spacing(2) },
2035
- children: "Enter your contact information…"
2036
- }),
2037
- /* @__PURE__ */ jsx(StepContent, {
2038
- style: { marginBlock: spacing(2) },
2039
- children: "Select your shipping address…"
2040
- }),
2041
- /* @__PURE__ */ jsx(StepContent, {
2042
- style: { marginBlock: spacing(2) },
2043
- children: "Select your payment method…"
2044
- }),
2045
- /* @__PURE__ */ jsx(StepContent, {
2046
- style: { marginBlock: spacing(2) },
2047
- children: "Double-check your order…"
2048
- }),
2049
- /* @__PURE__ */ jsx(StepperPreviousTrigger, {}),
2050
- /* @__PURE__ */ jsx(StepperNextTrigger, {}),
2051
- /* @__PURE__ */ jsx(StepperFinishTrigger, {})
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
2079
- title: "Table",
2080
- docsPage: "ostack-ui-data-data-display-table",
2081
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
2082
- cols: {
2083
- Default: "default",
2084
- Annexes: "control"
2085
- },
2086
- renderItem: ({ col }) => /* @__PURE__ */ jsxs(Table, {
2087
- caption: "Exam grades",
2088
- variant: col,
2089
- style: { width: 250 },
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
2110
- title: "Tabs",
2111
- docsPage: "ostack-ui-data-disclosure-tabs",
2112
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
2113
- cols: {
2114
- Default: "default",
2115
- Annexes: "annexes"
2116
- },
2117
- renderItem: ({ col }) => /* @__PURE__ */ jsxs(Tabs, {
2118
- variant: col,
2119
- defaultValue: "accessibility",
2120
- children: [
2121
- /* @__PURE__ */ jsxs(TabList, { children: [
2122
- /* @__PURE__ */ jsx(Tab, {
2123
- value: "accessibility",
2124
- children: "Accessibility"
2125
- }),
2126
- /* @__PURE__ */ jsx(Tab, {
2127
- value: "privacy",
2128
- children: "Privacy & Security"
2129
- }),
2130
- /* @__PURE__ */ jsx(Tab, {
2131
- value: "system",
2132
- children: "System"
2133
- })
2134
- ] }),
2135
- /* @__PURE__ */ jsx(TabContent, {
2136
- value: "accessibility",
2137
- style: { marginTop: spacing(2) },
2138
- children: "Accessibility options…"
2139
- }),
2140
- /* @__PURE__ */ jsx(TabContent, {
2141
- value: "privacy",
2142
- style: { marginTop: spacing(2) },
2143
- children: "Privacy & Security settings…"
2144
- }),
2145
- /* @__PURE__ */ jsx(TabContent, {
2146
- value: "system",
2147
- style: { marginTop: spacing(2) },
2148
- children: "System configuration…"
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
2159
- title: "Tag",
2160
- docsPage: "ostack-ui-data-display-tag",
2161
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
2162
- cols: {
2163
- Neutral: "neutral",
2164
- Primary: "primary",
2165
- Success: "success",
2166
- Danger: "danger",
2167
- Warning: "warning",
2168
- Pill: "pill",
2169
- Icon: "icon",
2170
- "Close button": "showCloseButton"
2171
- },
2172
- rows: {
2173
- Solid: "solid",
2174
- Subtle: "subtle",
2175
- Outlined: "outlined"
2176
- },
2177
- renderItem: ({ col, row }) => /* @__PURE__ */ jsx(Tag, {
2178
- variant: row,
2179
- color: col === "pill" || col === "icon" || col === "showCloseButton" ? "neutral" : col,
2180
- pill: col === "pill",
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
2192
- title: "Text area",
2193
- docsPage: "ostack-ui-forms-text-area",
2194
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
2195
- cols: {
2196
- Basic: "",
2197
- "Helper text": "helperText",
2198
- Required: "required",
2199
- Disabled: "disabled",
2200
- "Read-only": "readOnly",
2201
- Loading: "loading",
2202
- Code: "code",
2203
- "Clear button": "showClearButton"
2204
- },
2205
- rows: {
2206
- "No status": void 0,
2207
- Valid: "valid",
2208
- Invalid: "invalid",
2209
- Warned: "warned"
2210
- },
2211
- renderItem: ({ col, row }) => /* @__PURE__ */ jsxs(Field, { children: [
2212
- /* @__PURE__ */ jsx(Label, { children: "Additional requests" }),
2213
- /* @__PURE__ */ jsx(TextArea, {
2214
- containerProps: { style: { width: 130 } },
2215
- defaultValue: "Please provide two extra towels.",
2216
- status: row,
2217
- required: col === "required",
2218
- disabled: col === "disabled",
2219
- readOnly: col === "readOnly",
2220
- loading: col === "loading",
2221
- code: col === "code" ? "4.1" : void 0,
2222
- showClearButton: col === "showClearButton" ? "auto" : void 0
2223
- }),
2224
- row === "valid" && /* @__PURE__ */ jsx(Feedback, {
2225
- type: "success",
2226
- children: "Accepted."
2227
- }),
2228
- row === "warned" && /* @__PURE__ */ jsx(Feedback, {
2229
- type: "warning",
2230
- children: "Unable to process."
2231
- }),
2232
- row === "invalid" && /* @__PURE__ */ jsx(Feedback, { children: "Invalid request." }),
2233
- col === "helperText" && /* @__PURE__ */ jsx(HelperText, { children: "We will attempt to honour them." })
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
2243
- title: "Toast",
2244
- docsPage: "ostack-ui-feedback-toast",
2245
- children: /* @__PURE__ */ jsx(ExhibitGrid, {
2246
- cols: {
2247
- Neutral: "neutral",
2248
- Info: "info",
2249
- Success: "success",
2250
- Danger: "danger",
2251
- Warning: "warning",
2252
- Title: "title",
2253
- Action: "action"
2254
- },
2255
- rows: {
2256
- Solid: "solid",
2257
- Subtle: "subtle",
2258
- Outlined: "outlined"
2259
- },
2260
- renderItem: ({ col, row }) => /* @__PURE__ */ jsx(Button, {
2261
- icon: faBookmark,
2262
- color: col === "info" || col === "title" || col === "action" ? "primary" : col,
2263
- variant: row,
2264
- onClick: () => {
2265
- addToast("Item has been bookmarked.", {
2266
- title: col === "title" ? "Bookmarked" : void 0,
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
- severity: col === "title" || col === "action" ? void 0 : col,
2269
- action: col === "action" && /* @__PURE__ */ jsx(Button, {
2270
- keybinds: "$mod+Z",
2271
- color: "primary",
2272
- children: "Undo"
2273
- }),
2274
- actionAltText: "Undo (Ctrl+Z)"
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
- return /* @__PURE__ */ jsx(ExhibitSection, {
2286
- title: "Tooltip",
2287
- docsPage: "ostack-ui-overlay-tooltip",
2288
- children: /* @__PURE__ */ jsx(Tooltip, {
2289
- content: "Press to reload all content",
2290
- children: /* @__PURE__ */ jsx(Button, { children: "Refresh" })
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({ docsUrl = DEFAULT_DOCS_URL, title = document.title, prefix, actions }) {
2298
- return /* @__PURE__ */ jsx(ExhibitContext.Provider, {
2299
- value: { docsUrl },
2300
- children: /* @__PURE__ */ jsxs(Root, {
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
- /* @__PURE__ */ jsx(VisuallyHidden, {
2305
- focusable: true,
2306
- asChild: true,
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 };