tembro 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data-table/data-table-pagination.cjs +1 -1
- package/dist/components/data-table/data-table-pagination.js +4 -4
- package/dist/components/data-table/data-table.cjs +1 -1
- package/dist/components/data-table/data-table.d.ts +2 -2
- package/dist/components/data-table/data-table.js +2 -1
- package/dist/components/display/carousel.cjs +1 -1
- package/dist/components/display/carousel.d.ts +7 -1
- package/dist/components/display/carousel.js +44 -44
- package/dist/components/display/smart-card.d.ts +1 -1
- package/dist/components/display/status-legend.d.ts +1 -1
- package/dist/components/form/form-input.cjs +1 -1
- package/dist/components/form/form-input.d.ts +3 -4
- package/dist/components/form/form-input.js +257 -257
- package/dist/components/form/form-select.cjs +1 -1
- package/dist/components/form/form-select.d.ts +2 -2
- package/dist/components/form/form-select.js +6 -6
- package/dist/components/inputs/async-select.d.ts +3 -0
- package/dist/components/inputs/search-input.d.ts +3 -0
- package/dist/components/inputs/simple-select.cjs +1 -1
- package/dist/components/inputs/simple-select.d.ts +10 -32
- package/dist/components/inputs/simple-select.js +5 -101
- package/dist/components/ui/card/index.cjs +1 -1
- package/dist/components/ui/card/index.d.ts +13 -2
- package/dist/components/ui/card/index.js +74 -49
- package/dist/components/ui/input/index.cjs +1 -1
- package/dist/components/ui/input/index.d.ts +8 -0
- package/dist/components/ui/input/index.js +63 -30
- package/dist/components/ui/select/index.cjs +1 -1
- package/dist/components/ui/select/index.d.ts +33 -1
- package/dist/components/ui/select/index.js +154 -48
- package/dist/showcase/create-demo.cjs +5 -4
- package/dist/showcase/create-demo.js +2 -2
- package/dist/showcase/premium/data-table/showcase.cjs +1 -1
- package/dist/showcase/premium/data-table/showcase.js +1 -1
- package/dist/showcase/premium/data-table-parts/showcase.cjs +1 -1
- package/dist/showcase/premium/data-table-parts/showcase.js +3 -1
- package/dist/showcase/premium/select/mock.cjs +8 -9
- package/dist/showcase/premium/select/mock.js +1 -1
- package/dist/showcase/premium/select/showcase.cjs +1 -1
- package/dist/showcase/premium/select/showcase.js +76 -86
- package/dist/showcase/registry-specific.cjs +1 -1
- package/dist/showcase/registry-specific.js +78 -74
- package/dist/showcase/render-registry-preview.cjs +1 -1
- package/dist/showcase/render-registry-preview.js +91 -87
- package/dist/showcase/tembro-registry.json.cjs +1 -1
- package/dist/showcase/tembro-registry.json.js +1 -1
- package/package.json +1 -1
- package/packages/cli/dist/index.cjs +1 -1
- package/packages/cli/vendor/src/components/data-table/data-table-pagination.tsx +7 -7
- package/packages/cli/vendor/src/components/data-table/data-table.tsx +21 -20
- package/packages/cli/vendor/src/components/display/carousel.tsx +18 -6
- package/packages/cli/vendor/src/components/display/smart-card.tsx +1 -1
- package/packages/cli/vendor/src/components/display/status-legend.tsx +1 -1
- package/packages/cli/vendor/src/components/form/form-input.tsx +9 -12
- package/packages/cli/vendor/src/components/form/form-select.tsx +4 -4
- package/packages/cli/vendor/src/components/inputs/async-select.tsx +11 -8
- package/packages/cli/vendor/src/components/inputs/search-input.tsx +5 -2
- package/packages/cli/vendor/src/components/inputs/simple-select.tsx +20 -190
- package/packages/cli/vendor/src/components/ui/card/index.tsx +95 -25
- package/packages/cli/vendor/src/components/ui/input/index.tsx +98 -0
- package/packages/cli/vendor/src/components/ui/select/index.tsx +227 -34
- package/packages/cli/vendor/src/showcase/create-demo.tsx +16 -15
- package/packages/cli/vendor/src/showcase/premium/data-table/showcase.tsx +3 -3
- package/packages/cli/vendor/src/showcase/premium/data-table-parts/showcase.tsx +3 -3
- package/packages/cli/vendor/src/showcase/premium/select/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/select/showcase.tsx +13 -21
- package/packages/cli/vendor/src/showcase/registry-specific.tsx +7 -8
- package/packages/cli/vendor/src/showcase/render-registry-preview.tsx +5 -6
- package/packages/cli/vendor/src/showcase/tembro-registry.json +1 -1
- package/registry.json +1 -1
|
@@ -2,27 +2,26 @@ import { Button as e } from "../components/ui/button/index.js";
|
|
|
2
2
|
import { ActionMenu as t } from "../components/actions/action-menu.js";
|
|
3
3
|
import { ButtonGroup as n } from "../components/actions/button-group.js";
|
|
4
4
|
import { PasswordInput as r } from "../components/inputs/password-input.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Input as i } from "../components/ui/input/index.js";
|
|
6
|
+
import { Badge as a } from "../components/ui/badge/index.js";
|
|
7
|
+
import { Select as o } from "../components/ui/select/index.js";
|
|
8
8
|
import { QuickActionGrid as s } from "../components/actions/quick-action-grid.js";
|
|
9
9
|
import { SectionHeader as c } from "../components/layout/section-header.js";
|
|
10
10
|
import { NavTabs as l } from "../components/navigation/nav-tabs.js";
|
|
11
|
-
import { PageTabs as
|
|
12
|
-
import { Pagination as
|
|
13
|
-
import { StepperTabs as
|
|
14
|
-
import { FilterBar as
|
|
15
|
-
import { SavedFilterSelect as
|
|
16
|
-
import { AlertDialog as
|
|
17
|
-
import { Drawer as
|
|
18
|
-
import { AsyncSelect as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { PageState as ae } from "../components/feedback/page-state.js";
|
|
11
|
+
import { PageTabs as ee } from "../components/navigation/page-tabs.js";
|
|
12
|
+
import { Pagination as u } from "../components/navigation/pagination.js";
|
|
13
|
+
import { StepperTabs as d } from "../components/navigation/stepper-tabs.js";
|
|
14
|
+
import { FilterBar as f } from "../components/filters/filter-bar.js";
|
|
15
|
+
import { SavedFilterSelect as p } from "../components/filters/saved-filter-select.js";
|
|
16
|
+
import { AlertDialog as m } from "../components/overlay/alert-dialog.js";
|
|
17
|
+
import { Drawer as h } from "../components/overlay/drawer.js";
|
|
18
|
+
import { AsyncSelect as g } from "../components/inputs/async-select.js";
|
|
19
|
+
import { OtpInput as te } from "../components/inputs/otp-input.js";
|
|
20
|
+
import { Rating as _ } from "../components/inputs/rating.js";
|
|
21
|
+
import { RangeSlider as v, Slider as y } from "../components/inputs/slider.js";
|
|
22
|
+
import { TagInput as ne } from "../components/inputs/tag-input.js";
|
|
23
|
+
import { Alert as re } from "../components/feedback/alert.js";
|
|
24
|
+
import { PageState as ie } from "../components/feedback/page-state.js";
|
|
26
25
|
import { DescriptionList as b } from "../components/display/description-list.js";
|
|
27
26
|
import { List as x } from "../components/display/list.js";
|
|
28
27
|
import { Progress as S } from "../components/display/progress.js";
|
|
@@ -46,7 +45,7 @@ import "react";
|
|
|
46
45
|
import { ArchiveIcon as B, BellIcon as V, ChevronRightIcon as H, DownloadIcon as U, FilterIcon as W, LayoutDashboardIcon as G, MoreHorizontalIcon as K, UploadCloudIcon as q } from "lucide-react";
|
|
47
46
|
import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
48
47
|
//#region src/showcase/registry-specific.tsx
|
|
49
|
-
var
|
|
48
|
+
var ae = [
|
|
50
49
|
Z("alert-dialog", "AlertDialog", "overlay", "Destructive confirmation dialog with loading-ready action states."),
|
|
51
50
|
Z("drawer", "Drawer", "overlay", "Side panel for contextual details without leaving the page."),
|
|
52
51
|
Z("pagination", "Pagination", "navigation", "Controlled page navigation with edge buttons and active state."),
|
|
@@ -86,15 +85,15 @@ var oe = [
|
|
|
86
85
|
Z("wizard", "Wizard", "wizard", "Stepper, content and footer controls combined into one workflow."),
|
|
87
86
|
Z("resource-page", "ResourcePage", "patterns", "Full resource index page shell for admin dashboards."),
|
|
88
87
|
Z("resource-detail-page", "ResourceDetailPage", "patterns", "Detail page shell with title, metadata and sections.")
|
|
89
|
-
],
|
|
90
|
-
mock:
|
|
91
|
-
Showcase: (t) => /* @__PURE__ */ Y(
|
|
88
|
+
], oe = Object.fromEntries(ae.map((e) => [e.slug, {
|
|
89
|
+
mock: se(e),
|
|
90
|
+
Showcase: (t) => /* @__PURE__ */ Y(le, {
|
|
92
91
|
definition: e,
|
|
93
92
|
...t
|
|
94
93
|
})
|
|
95
94
|
}]));
|
|
96
95
|
function Z(e, t, n, r, i = t) {
|
|
97
|
-
let a =
|
|
96
|
+
let a = Ce(e);
|
|
98
97
|
return {
|
|
99
98
|
slug: e,
|
|
100
99
|
title: a,
|
|
@@ -116,20 +115,20 @@ function Z(e, t, n, r, i = t) {
|
|
|
116
115
|
}]
|
|
117
116
|
};
|
|
118
117
|
}
|
|
119
|
-
function
|
|
118
|
+
function se(e) {
|
|
120
119
|
return {
|
|
121
120
|
cliCommand: `npx tembro add ${e.slug}`,
|
|
122
|
-
code:
|
|
121
|
+
code: ce(e),
|
|
123
122
|
highlights: e.highlights,
|
|
124
123
|
scenarios: e.scenarios,
|
|
125
124
|
capabilityNotes: [`Add ${e.slug} into your local source with the CLI.`, "Import the public component surface from `tembro` in app code."]
|
|
126
125
|
};
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function ce(e) {
|
|
129
128
|
let t = e.importName ?? e.component;
|
|
130
129
|
return `import { ${t} } from "tembro"\n\nexport function Demo() {\n return <${t} />\n}`;
|
|
131
130
|
}
|
|
132
|
-
function
|
|
131
|
+
function le({ definition: e, state: t, setState: n }) {
|
|
133
132
|
return /* @__PURE__ */ X("div", {
|
|
134
133
|
className: "space-y-5",
|
|
135
134
|
children: [/* @__PURE__ */ X("header", {
|
|
@@ -146,28 +145,29 @@ function ue({ definition: e, state: t, setState: n }) {
|
|
|
146
145
|
})] })]
|
|
147
146
|
}), /* @__PURE__ */ Y("div", {
|
|
148
147
|
className: "rounded-2xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg-alt)] p-4 sm:p-5",
|
|
149
|
-
children:
|
|
148
|
+
children: ue(e, t, n)
|
|
150
149
|
})]
|
|
151
150
|
});
|
|
152
151
|
}
|
|
153
|
-
function
|
|
154
|
-
return e.kind === "inputs" ? /* @__PURE__ */ Y(
|
|
152
|
+
function ue(e, t, n) {
|
|
153
|
+
return e.kind === "inputs" ? /* @__PURE__ */ Y(de, {
|
|
155
154
|
slug: e.slug,
|
|
156
155
|
state: t,
|
|
157
156
|
setState: n
|
|
158
|
-
}) : e.kind === "form" ? /* @__PURE__ */ Y(
|
|
157
|
+
}) : e.kind === "form" ? /* @__PURE__ */ Y(fe, {
|
|
159
158
|
state: t,
|
|
160
159
|
setState: n
|
|
161
|
-
}) : e.kind === "overlay" ? /* @__PURE__ */ Y(
|
|
160
|
+
}) : e.kind === "overlay" ? /* @__PURE__ */ Y(pe, { slug: e.slug }) : e.kind === "navigation" ? /* @__PURE__ */ Y(me, { slug: e.slug }) : e.kind === "feedback" ? /* @__PURE__ */ Y(Q, { slug: e.slug }) : e.kind === "display" ? /* @__PURE__ */ Y(he, { slug: e.slug }) : e.kind === "actions" ? /* @__PURE__ */ Y(ge, {
|
|
162
161
|
slug: e.slug,
|
|
163
162
|
state: t,
|
|
164
163
|
setState: n
|
|
165
|
-
}) : e.kind === "layout" ? /* @__PURE__ */ Y(
|
|
164
|
+
}) : e.kind === "layout" ? /* @__PURE__ */ Y(_e, { slug: e.slug }) : e.kind === "data-table" ? /* @__PURE__ */ Y(ve, { slug: e.slug }) : e.kind === "calendar" ? /* @__PURE__ */ Y(ye, {}) : e.kind === "upload" ? /* @__PURE__ */ Y(be, { slug: e.slug }) : e.kind === "wizard" ? /* @__PURE__ */ Y(xe, { slug: e.slug }) : e.kind === "patterns" ? /* @__PURE__ */ Y(Se, { slug: e.slug }) : null;
|
|
166
165
|
}
|
|
167
|
-
function
|
|
168
|
-
let
|
|
166
|
+
function de({ slug: e, state: t, setState: n }) {
|
|
167
|
+
let a = t.textValue, s = (e) => n({ textValue: e });
|
|
169
168
|
if (e === "search-input") return /* @__PURE__ */ Y(i, {
|
|
170
|
-
|
|
169
|
+
type: "search",
|
|
170
|
+
value: a,
|
|
171
171
|
onValueChange: s,
|
|
172
172
|
resultCount: 12,
|
|
173
173
|
shortcut: "Ctrl K",
|
|
@@ -178,27 +178,27 @@ function fe({ slug: e, state: t, setState: n }) {
|
|
|
178
178
|
onValueChange: s,
|
|
179
179
|
placeholder: "Password"
|
|
180
180
|
});
|
|
181
|
-
if (e === "slider") return /* @__PURE__ */ Y(
|
|
181
|
+
if (e === "slider") return /* @__PURE__ */ Y(y, {
|
|
182
182
|
label: "Density",
|
|
183
183
|
description: "Tune content density.",
|
|
184
184
|
defaultValue: 64,
|
|
185
185
|
showValue: !0
|
|
186
186
|
});
|
|
187
|
-
if (e === "range-slider") return /* @__PURE__ */ Y(
|
|
187
|
+
if (e === "range-slider") return /* @__PURE__ */ Y(v, {
|
|
188
188
|
label: "Revenue range",
|
|
189
189
|
description: "Filter between two values.",
|
|
190
190
|
defaultValue: [20, 80],
|
|
191
191
|
showValue: !0
|
|
192
192
|
});
|
|
193
|
-
if (e === "rating") return /* @__PURE__ */ Y(
|
|
193
|
+
if (e === "rating") return /* @__PURE__ */ Y(_, {
|
|
194
194
|
defaultValue: 4,
|
|
195
195
|
labels: { clear: "Reset" }
|
|
196
196
|
});
|
|
197
|
-
if (e === "otp-input") return /* @__PURE__ */ Y(
|
|
198
|
-
value:
|
|
197
|
+
if (e === "otp-input") return /* @__PURE__ */ Y(te, {
|
|
198
|
+
value: a.replace(/\D/g, "").slice(0, 6),
|
|
199
199
|
onValueChange: s
|
|
200
200
|
});
|
|
201
|
-
if (e === "tag-input") return /* @__PURE__ */ Y(
|
|
201
|
+
if (e === "tag-input") return /* @__PURE__ */ Y(ne, {
|
|
202
202
|
defaultValue: [
|
|
203
203
|
"dashboard",
|
|
204
204
|
"beta",
|
|
@@ -208,7 +208,7 @@ function fe({ slug: e, state: t, setState: n }) {
|
|
|
208
208
|
});
|
|
209
209
|
if (e === "simple-select") return /* @__PURE__ */ X("div", {
|
|
210
210
|
className: "grid gap-4",
|
|
211
|
-
children: [/* @__PURE__ */ Y(
|
|
211
|
+
children: [/* @__PURE__ */ Y(o, {
|
|
212
212
|
value: "private",
|
|
213
213
|
onValueChange: () => void 0,
|
|
214
214
|
options: [
|
|
@@ -275,7 +275,7 @@ function fe({ slug: e, state: t, setState: n }) {
|
|
|
275
275
|
];
|
|
276
276
|
return /* @__PURE__ */ X("div", {
|
|
277
277
|
className: "grid gap-4",
|
|
278
|
-
children: [/* @__PURE__ */ Y(
|
|
278
|
+
children: [/* @__PURE__ */ Y(g, {
|
|
279
279
|
value: "north",
|
|
280
280
|
onValueChange: () => void 0,
|
|
281
281
|
loadOptions: async (t) => {
|
|
@@ -304,13 +304,13 @@ function fe({ slug: e, state: t, setState: n }) {
|
|
|
304
304
|
})]
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
return /* @__PURE__ */ Y(
|
|
308
|
-
value:
|
|
307
|
+
return /* @__PURE__ */ Y(i, {
|
|
308
|
+
value: a,
|
|
309
309
|
onChange: (e) => n({ textValue: e.currentTarget.value }),
|
|
310
310
|
placeholder: "Unified input"
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function fe({ state: e, setState: t }) {
|
|
314
314
|
return /* @__PURE__ */ X("div", {
|
|
315
315
|
className: "grid gap-4 md:grid-cols-2",
|
|
316
316
|
children: [/* @__PURE__ */ X("label", {
|
|
@@ -320,7 +320,7 @@ function pe({ state: e, setState: t }) {
|
|
|
320
320
|
className: "text-sm font-medium aui-text-strong",
|
|
321
321
|
children: "Email address"
|
|
322
322
|
}),
|
|
323
|
-
/* @__PURE__ */ Y(
|
|
323
|
+
/* @__PURE__ */ Y(i, {
|
|
324
324
|
value: e.textValue,
|
|
325
325
|
onChange: (e) => t({ textValue: e.currentTarget.value })
|
|
326
326
|
}),
|
|
@@ -337,6 +337,7 @@ function pe({ state: e, setState: t }) {
|
|
|
337
337
|
children: "Status"
|
|
338
338
|
}),
|
|
339
339
|
/* @__PURE__ */ Y(i, {
|
|
340
|
+
type: "search",
|
|
340
341
|
value: "Active customers",
|
|
341
342
|
resultCount: 7,
|
|
342
343
|
readOnly: !0
|
|
@@ -349,8 +350,8 @@ function pe({ state: e, setState: t }) {
|
|
|
349
350
|
})]
|
|
350
351
|
});
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
-
return t === "alert-dialog" ? /* @__PURE__ */ Y(
|
|
353
|
+
function pe({ slug: t }) {
|
|
354
|
+
return t === "alert-dialog" ? /* @__PURE__ */ Y(m, {
|
|
354
355
|
open: !1,
|
|
355
356
|
title: "Archive invoice?",
|
|
356
357
|
description: "This keeps the invoice readable but removes it from active queues.",
|
|
@@ -358,7 +359,7 @@ function me({ slug: t }) {
|
|
|
358
359
|
variant: "destructive",
|
|
359
360
|
children: "Open alert"
|
|
360
361
|
})
|
|
361
|
-
}) : t === "drawer" ? /* @__PURE__ */ Y(
|
|
362
|
+
}) : t === "drawer" ? /* @__PURE__ */ Y(h, {
|
|
362
363
|
open: !1,
|
|
363
364
|
trigger: /* @__PURE__ */ Y(e, {
|
|
364
365
|
variant: "outline",
|
|
@@ -390,12 +391,12 @@ function me({ slug: t }) {
|
|
|
390
391
|
]
|
|
391
392
|
});
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
-
return e === "pagination" ? /* @__PURE__ */ Y(
|
|
394
|
+
function me({ slug: e }) {
|
|
395
|
+
return e === "pagination" ? /* @__PURE__ */ Y(u, {
|
|
395
396
|
page: 3,
|
|
396
397
|
pageCount: 9,
|
|
397
398
|
onPageChange: () => void 0
|
|
398
|
-
}) : e === "page-tabs" ? /* @__PURE__ */ Y(
|
|
399
|
+
}) : e === "page-tabs" ? /* @__PURE__ */ Y(ee, {
|
|
399
400
|
value: "overview",
|
|
400
401
|
variant: "pills",
|
|
401
402
|
items: [
|
|
@@ -413,7 +414,7 @@ function Q({ slug: e }) {
|
|
|
413
414
|
badge: "3"
|
|
414
415
|
}
|
|
415
416
|
]
|
|
416
|
-
}) : e === "stepper-tabs" ? /* @__PURE__ */ Y(
|
|
417
|
+
}) : e === "stepper-tabs" ? /* @__PURE__ */ Y(d, {
|
|
417
418
|
value: "billing",
|
|
418
419
|
items: [
|
|
419
420
|
{
|
|
@@ -451,8 +452,8 @@ function Q({ slug: e }) {
|
|
|
451
452
|
]
|
|
452
453
|
});
|
|
453
454
|
}
|
|
454
|
-
function
|
|
455
|
-
return t === "alert" ? /* @__PURE__ */ Y(
|
|
455
|
+
function Q({ slug: t }) {
|
|
456
|
+
return t === "alert" ? /* @__PURE__ */ Y(re, {
|
|
456
457
|
tone: "warning",
|
|
457
458
|
title: "Review needed",
|
|
458
459
|
description: "Billing rules changed and one approval is pending.",
|
|
@@ -460,7 +461,7 @@ function he({ slug: t }) {
|
|
|
460
461
|
size: "sm",
|
|
461
462
|
children: "Open"
|
|
462
463
|
})
|
|
463
|
-
}) : t === "page-state" ? /* @__PURE__ */ Y(
|
|
464
|
+
}) : t === "page-state" ? /* @__PURE__ */ Y(ie, {
|
|
464
465
|
title: "Workspace connected",
|
|
465
466
|
description: "The route is ready to accept live data and team actions.",
|
|
466
467
|
tone: "success",
|
|
@@ -490,7 +491,7 @@ function he({ slug: t }) {
|
|
|
490
491
|
]
|
|
491
492
|
});
|
|
492
493
|
}
|
|
493
|
-
function
|
|
494
|
+
function he({ slug: t }) {
|
|
494
495
|
return t === "progress" ? /* @__PURE__ */ Y(S, {
|
|
495
496
|
label: "Migration progress",
|
|
496
497
|
description: "Production rollout",
|
|
@@ -669,9 +670,10 @@ function ge({ slug: t }) {
|
|
|
669
670
|
})
|
|
670
671
|
});
|
|
671
672
|
}
|
|
672
|
-
function
|
|
673
|
-
return r === "filter-bar" ? /* @__PURE__ */ Y(
|
|
673
|
+
function ge({ slug: r, state: a, setState: o }) {
|
|
674
|
+
return r === "filter-bar" ? /* @__PURE__ */ Y(f, {
|
|
674
675
|
search: /* @__PURE__ */ Y(i, {
|
|
676
|
+
type: "search",
|
|
675
677
|
value: a.textValue,
|
|
676
678
|
onValueChange: (e) => o({ textValue: e }),
|
|
677
679
|
placeholder: "Search invoices..."
|
|
@@ -724,7 +726,7 @@ function _e({ slug: r, state: a, setState: o }) {
|
|
|
724
726
|
]
|
|
725
727
|
}) : r === "saved-filter-select" ? /* @__PURE__ */ X("div", {
|
|
726
728
|
className: "grid gap-4",
|
|
727
|
-
children: [/* @__PURE__ */ Y(
|
|
729
|
+
children: [/* @__PURE__ */ Y(p, {
|
|
728
730
|
value: "billing",
|
|
729
731
|
onValueChange: () => void 0,
|
|
730
732
|
onSave: () => void 0,
|
|
@@ -800,14 +802,14 @@ function _e({ slug: r, state: a, setState: o }) {
|
|
|
800
802
|
})]
|
|
801
803
|
});
|
|
802
804
|
}
|
|
803
|
-
function
|
|
805
|
+
function _e({ slug: t }) {
|
|
804
806
|
return t === "app-header" ? /* @__PURE__ */ Y(I, {
|
|
805
807
|
sticky: !1,
|
|
806
808
|
left: /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(G, { className: "size-4" }), /* @__PURE__ */ Y("span", {
|
|
807
809
|
className: "font-medium",
|
|
808
810
|
children: "Dashboard"
|
|
809
811
|
})] }),
|
|
810
|
-
center: /* @__PURE__ */ Y(
|
|
812
|
+
center: /* @__PURE__ */ Y(a, {
|
|
811
813
|
variant: "secondary",
|
|
812
814
|
children: "Preview"
|
|
813
815
|
}),
|
|
@@ -840,13 +842,14 @@ function ve({ slug: t }) {
|
|
|
840
842
|
helperText: "StatCard keeps KPI, helper text and trend in one compact tile."
|
|
841
843
|
});
|
|
842
844
|
}
|
|
843
|
-
function
|
|
845
|
+
function ve({ slug: t }) {
|
|
844
846
|
return /* @__PURE__ */ X("div", {
|
|
845
847
|
className: "overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]",
|
|
846
848
|
children: [
|
|
847
849
|
/* @__PURE__ */ X("div", {
|
|
848
850
|
className: "flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3",
|
|
849
851
|
children: [/* @__PURE__ */ Y(i, {
|
|
852
|
+
type: "search",
|
|
850
853
|
value: "",
|
|
851
854
|
placeholder: "Search rows...",
|
|
852
855
|
className: "max-w-xs",
|
|
@@ -910,7 +913,7 @@ function ye({ slug: t }) {
|
|
|
910
913
|
"data-table-sortable-header": "Sortable header",
|
|
911
914
|
"data-table-bulk-actions": "Bulk action bar",
|
|
912
915
|
"data-table-view-presets": "Saved view presets"
|
|
913
|
-
}[t] ?? "DataTable part", " preview"] }), /* @__PURE__ */ Y(
|
|
916
|
+
}[t] ?? "DataTable part", " preview"] }), /* @__PURE__ */ Y(u, {
|
|
914
917
|
page: 1,
|
|
915
918
|
pageCount: 4,
|
|
916
919
|
onPageChange: () => void 0,
|
|
@@ -920,14 +923,14 @@ function ye({ slug: t }) {
|
|
|
920
923
|
]
|
|
921
924
|
});
|
|
922
925
|
}
|
|
923
|
-
function
|
|
926
|
+
function ye() {
|
|
924
927
|
return /* @__PURE__ */ Y(A, {
|
|
925
928
|
value: "2026-06-18",
|
|
926
929
|
defaultMonth: "2026-06-01",
|
|
927
930
|
onValueChange: () => void 0
|
|
928
931
|
});
|
|
929
932
|
}
|
|
930
|
-
function
|
|
933
|
+
function be({ slug: e }) {
|
|
931
934
|
return e === "file-dropzone" ? /* @__PURE__ */ Y(N, {
|
|
932
935
|
label: "Drop contract files",
|
|
933
936
|
description: "PDF, PNG or CSV up to 10MB."
|
|
@@ -989,7 +992,7 @@ function xe({ slug: e }) {
|
|
|
989
992
|
})]
|
|
990
993
|
});
|
|
991
994
|
}
|
|
992
|
-
function
|
|
995
|
+
function xe({ slug: e }) {
|
|
993
996
|
let t = [
|
|
994
997
|
{
|
|
995
998
|
id: "profile",
|
|
@@ -1030,7 +1033,7 @@ function Se({ slug: e }) {
|
|
|
1030
1033
|
})
|
|
1031
1034
|
});
|
|
1032
1035
|
}
|
|
1033
|
-
function
|
|
1036
|
+
function Se({ slug: t }) {
|
|
1034
1037
|
return t === "resource-detail-page" ? /* @__PURE__ */ Y(L, {
|
|
1035
1038
|
title: "Customer profile",
|
|
1036
1039
|
description: "ResourceDetailPage organizes detail screens.",
|
|
@@ -1075,8 +1078,9 @@ function Ce({ slug: t }) {
|
|
|
1075
1078
|
}
|
|
1076
1079
|
})]
|
|
1077
1080
|
}),
|
|
1078
|
-
filters: /* @__PURE__ */ Y(
|
|
1081
|
+
filters: /* @__PURE__ */ Y(f, {
|
|
1079
1082
|
search: /* @__PURE__ */ Y(i, {
|
|
1083
|
+
type: "search",
|
|
1080
1084
|
value: "",
|
|
1081
1085
|
placeholder: "Search...",
|
|
1082
1086
|
readOnly: !0
|
|
@@ -1099,11 +1103,11 @@ function Ce({ slug: t }) {
|
|
|
1099
1103
|
})
|
|
1100
1104
|
});
|
|
1101
1105
|
}
|
|
1102
|
-
function
|
|
1106
|
+
function Ce(e) {
|
|
1103
1107
|
return e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
1104
1108
|
}
|
|
1105
1109
|
function $({ tone: e, children: t }) {
|
|
1106
|
-
return /* @__PURE__ */ Y(
|
|
1110
|
+
return /* @__PURE__ */ Y(a, {
|
|
1107
1111
|
variant: {
|
|
1108
1112
|
success: "secondary",
|
|
1109
1113
|
warning: "outline",
|
|
@@ -1114,4 +1118,4 @@ function $({ tone: e, children: t }) {
|
|
|
1114
1118
|
});
|
|
1115
1119
|
}
|
|
1116
1120
|
//#endregion
|
|
1117
|
-
export {
|
|
1121
|
+
export { oe as registrySpecificDemoRegistry };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_virtual/_rolldown/runtime.cjs"),t=require("../components/ui/button/index.cjs"),n=require("../components/actions/action-menu.cjs"),r=require("../components/actions/button-group.cjs"),i=require("../components/inputs/password-input.cjs"),a=require("../components/inputs/search-input.cjs"),o=require("../components/ui/input/index.cjs"),s=require("../components/ui/badge/index.cjs"),c=require("../components/actions/quick-action-grid.cjs"),l=require("../components/layout/section-header.cjs"),u=require("../components/navigation/anchor-nav.cjs"),d=require("../components/navigation/nav-tabs.cjs"),f=require("../components/navigation/page-tabs.cjs"),p=require("../components/navigation/pagination.cjs"),m=require("../components/navigation/stepper-tabs.cjs"),h=require("../components/filters/filter-bar.cjs"),g=require("../components/overlay/alert-dialog.cjs"),_=require("../components/overlay/dialog-actions.cjs"),v=require("../components/overlay/drawer.cjs"),y=require("../components/inputs/color-input.cjs"),b=require("../components/inputs/otp-input.cjs"),x=require("../components/inputs/rating.cjs"),S=require("../components/inputs/slider.cjs"),C=require("../components/inputs/tag-input.cjs"),w=require("../components/feedback/alert.cjs"),T=require("../components/feedback/page-state.cjs"),E=require("../components/display/description-list.cjs"),D=require("../components/display/list.cjs"),O=require("../components/display/progress.cjs"),k=require("../components/display/progress-circle.cjs"),A=require("../components/display/status-dot.cjs"),j=require("../components/display/status-legend.cjs"),M=require("../components/display/timeline.cjs"),N=require("../components/display/user-card.cjs"),P=require("../components/layout/stat-card.cjs"),F=require("../components/command/command-palette.cjs"),I=require("../components/calendar/calendar.cjs"),L=require("../components/upload/file-upload.cjs"),R=require("../components/upload/file-dropzone.cjs"),z=require("../components/wizard/stepper.cjs"),ee=require("../components/wizard/wizard.cjs"),B=require("../components/layout/app-header.cjs"),V=require("../components/patterns/resource-detail-page.cjs"),H=require("../components/patterns/resource-page.cjs");let U=require("react");U=e.__toESM(U,1);let W=require("lucide-react"),G=require("react/jsx-runtime");function K(e,t,n){return e.kind===`inputs`?(0,G.jsx)(J,{slug:e.slug,state:t,setState:n}):e.kind===`form`?(0,G.jsx)(Y,{state:t,setState:n}):e.kind===`overlay`?(0,G.jsx)(X,{slug:e.slug}):e.kind===`navigation`?(0,G.jsx)(Z,{slug:e.slug}):e.kind===`feedback`?(0,G.jsx)(Q,{slug:e.slug}):e.kind===`display`?(0,G.jsx)($,{slug:e.slug}):e.kind===`actions`?(0,G.jsx)(te,{slug:e.slug,state:t,setState:n}):e.kind===`layout`?(0,G.jsx)(ne,{slug:e.slug}):e.kind===`data-table`?(0,G.jsx)(re,{slug:e.slug}):e.kind===`calendar`?(0,G.jsx)(ie,{}):e.kind===`upload`?(0,G.jsx)(ae,{slug:e.slug}):e.kind===`wizard`?(0,G.jsx)(oe,{slug:e.slug}):e.kind===`patterns`?(0,G.jsx)(se,{slug:e.slug}):null}function q({tone:e,children:t}){return(0,G.jsx)(s.Badge,{variant:e===`danger`?`destructive`:e===`warning`?`outline`:`secondary`,children:t})}function J({slug:e,state:t,setState:n}){let r=t.textValue,s=e=>n({textValue:e});return e===`search-input`?(0,G.jsx)(a.SearchInput,{value:r,onValueChange:s,resultCount:12,shortcut:`Ctrl K`,placeholder:`Search customers...`}):e===`password-input`?(0,G.jsx)(i.PasswordInput,{value:`secret-token`,onValueChange:s,placeholder:`Password`}):e===`clearable-input`?(0,G.jsx)(o.Input,{value:r,onValueChange:s,placeholder:`Clearable input`,clearable:!0}):e===`slider`?(0,G.jsx)(S.Slider,{label:`Density`,description:`Tune content density.`,defaultValue:64,showValue:!0}):e===`range-slider`?(0,G.jsx)(S.RangeSlider,{label:`Revenue range`,description:`Filter between two values.`,defaultValue:[20,80],showValue:!0}):e===`rating`?(0,G.jsx)(x.Rating,{defaultValue:4,labels:{clear:`Reset`}}):e===`otp-input`?(0,G.jsx)(b.OtpInput,{value:r.replace(/\D/g,``).slice(0,6),onValueChange:s}):e===`color-input`?(0,G.jsx)(y.ColorInput,{defaultValue:`#22c55e`,label:`Accent color`,description:`Theme token preview.`}):e===`tag-input`?(0,G.jsx)(C.TagInput,{defaultValue:[`dashboard`,`beta`,`ops`],placeholder:`Add label`}):(0,G.jsx)(o.Input,{value:r,onChange:e=>n({textValue:e.currentTarget.value}),placeholder:`Unified input`})}function Y({state:e,setState:t}){return(0,G.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,G.jsxs)(`label`,{className:`grid gap-2`,children:[(0,G.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Email address`}),(0,G.jsx)(o.Input,{value:e.textValue,onChange:e=>t({textValue:e.currentTarget.value})}),(0,G.jsx)(`span`,{className:`text-xs text-[color:var(--aui-page-muted)]`,children:`Form wrappers keep label, hint and error spacing consistent.`})]}),(0,G.jsxs)(`label`,{className:`grid gap-2`,children:[(0,G.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Status`}),(0,G.jsx)(a.SearchInput,{value:`Active customers`,resultCount:7,readOnly:!0}),(0,G.jsx)(`span`,{className:`text-xs text-emerald-500`,children:`Ready to submit`})]})]})}function X({slug:e}){return e===`dialog-actions`?(0,G.jsx)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:(0,G.jsxs)(_.DialogActions,{align:`end`,children:[(0,G.jsx)(_.DialogActionButton,{variant:`ghost`,children:`Cancel`}),(0,G.jsx)(_.DialogActionButton,{variant:`outline`,children:`Save draft`}),(0,G.jsx)(_.DialogActionButton,{children:`Publish`})]})}):e===`alert-dialog`?(0,G.jsx)(g.AlertDialog,{open:!1,title:`Archive invoice?`,description:`This keeps the invoice readable but removes it from active queues.`,children:(0,G.jsx)(t.Button,{variant:`destructive`,children:`Open alert`})}):e===`drawer`?(0,G.jsx)(v.Drawer,{open:!1,trigger:(0,G.jsx)(t.Button,{variant:`outline`,children:`Open drawer`}),title:`Customer details`,description:`Side panel for fast inspection.`,children:(0,G.jsx)(E.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Azamat UI`}]})}):(0,G.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2 rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,G.jsx)(t.Button,{variant:`ghost`,children:`Cancel`}),(0,G.jsx)(t.Button,{variant:`outline`,children:`Save draft`}),(0,G.jsx)(t.Button,{children:`Publish`})]})}function Z({slug:e}){return e===`pagination`?(0,G.jsx)(p.Pagination,{page:3,pageCount:9,onPageChange:()=>void 0}):e===`anchor-nav`?(0,G.jsx)(u.AnchorNav,{orientation:`horizontal`,title:`Sections`,items:[{key:`overview`,label:`Overview`,href:`#overview`,active:!0},{key:`usage`,label:`Usage`,href:`#usage`},{key:`api`,label:`API`,href:`#api`}]}):e===`page-tabs`?(0,G.jsx)(f.PageTabs,{value:`overview`,variant:`pills`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`,badge:`3`}]}):e===`stepper-tabs`?(0,G.jsx)(m.StepperTabs,{value:`billing`,items:[{value:`profile`,label:`Profile`,description:`Team and owner details`,completed:!0},{value:`billing`,label:`Billing`,description:`Payment and invoices`},{value:`review`,label:`Review`,description:`Confirm release`}]}):(0,G.jsx)(d.NavTabs,{value:`overview`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`}]})}function Q({slug:e}){return e===`alert`?(0,G.jsx)(w.Alert,{tone:`warning`,title:`Review needed`,description:`Billing rules changed and one approval is pending.`,action:(0,G.jsx)(t.Button,{size:`sm`,children:`Open`})}):e===`page-state`?(0,G.jsx)(T.PageState,{title:`Workspace connected`,description:`The route is ready to accept live data and team actions.`,tone:`success`,action:(0,G.jsx)(t.Button,{size:`sm`,children:`Continue`})}):(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(q,{tone:`success`,children:`Live`}),(0,G.jsx)(q,{tone:`warning`,children:`Needs review`}),(0,G.jsx)(q,{tone:`danger`,children:`Blocked`}),(0,G.jsx)(q,{tone:`info`,children:`Queued`})]})}function $({slug:e}){return e===`description-list`?(0,G.jsx)(E.DescriptionList,{title:`Invoice details`,description:`Structured facts with responsive columns.`,items:[{key:`id`,label:`Invoice`,value:`#4821`},{key:`amount`,label:`Amount`,value:`$12,420`},{key:`status`,label:`Status`,value:(0,G.jsx)(q,{tone:`success`,children:`Paid`})},{key:`owner`,label:`Owner`,value:`Finance team`}]}):e===`progress`?(0,G.jsx)(O.Progress,{label:`Migration progress`,description:`Production rollout`,value:68,tone:`success`,showValue:!0}):e===`progress-circle`?(0,G.jsx)(k.ProgressCircle,{value:72,label:`Profile completed`}):e===`timeline`?(0,G.jsx)(M.Timeline,{items:[{key:`created`,title:`Created`,description:`Invoice generated`,time:`09:20`,tone:`success`},{key:`review`,title:`Review`,description:`Finance team assigned`,time:`10:05`,tone:`info`},{key:`approve`,title:`Approval`,description:`Waiting for manager`,time:`Now`,tone:`warning`}],pending:!0,pendingLabel:`Paid`}):e===`metric-card`||e===`stat-card`?(0,G.jsx)(P.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,G.jsx)(W.LayoutDashboardIcon,{})}):e===`status-dot`?(0,G.jsxs)(`div`,{className:`grid gap-3`,children:[(0,G.jsx)(A.StatusDot,{tone:`success`,pulse:!0,label:`API healthy`}),(0,G.jsx)(A.StatusDot,{tone:`warning`,label:`Sync delayed`}),(0,G.jsx)(A.StatusDot,{tone:`danger`,label:`Webhook failed`})]}):e===`delta-badge`?(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(s.Badge,{variant:`secondary`,children:`+12.4%`}),(0,G.jsx)(s.Badge,{variant:`outline`,children:`-3.1%`}),(0,G.jsx)(s.Badge,{variant:`destructive`,children:`Risk`})]}):e===`notification-center`?(0,G.jsx)(D.List,{items:[{key:`1`,title:`Build completed`,description:`Dashboard docs deployment is live.`,extra:`Now`},{key:`2`,title:`New comment`,description:`Review requested on DataTable API.`,extra:`8m`},{key:`3`,title:`Publish reminder`,description:`Package version is ready for release.`,extra:`1h`}]}):e===`data-list`?(0,G.jsx)(D.List,{items:[{key:`1`,title:`Enterprise plan`,description:`Priority support and SSO`,extra:`$499`},{key:`2`,title:`Growth plan`,description:`Most used by product teams`,extra:`$199`},{key:`3`,title:`Starter plan`,description:`Lightweight team setup`,extra:`$49`}]}):e===`status-legend`?(0,G.jsx)(j.StatusLegend,{title:`Delivery states`,description:`Explain what each state means and how often it appears.`,orientation:`grid`,items:[{key:`live`,label:`Live`,description:`Healthy production routes`,tone:`success`,count:18},{key:`review`,label:`Review`,description:`Waiting for QA approval`,tone:`warning`,count:4},{key:`blocked`,label:`Blocked`,description:`Needs engineering action`,tone:`danger`,count:1}]}):e===`trend-card`||e===`comparison-card`?(0,G.jsx)(P.StatCard,{title:e===`trend-card`?`Weekly revenue`:`Current vs previous`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,G.jsx)(W.LayoutDashboardIcon,{})}):(0,G.jsx)(N.UserCard,{name:`Azamat Jurayev`,description:`Product designer and maintainer`,meta:`Admin workspace`,actions:(0,G.jsx)(t.Button,{size:`sm`,children:`Invite`})})}function te({slug:e,state:i,setState:o}){return e===`filter-bar`?(0,G.jsx)(h.FilterBar,{search:(0,G.jsx)(a.SearchInput,{value:i.textValue,onValueChange:e=>o({textValue:e}),placeholder:`Search invoices...`}),onReset:()=>o({textValue:``}),chips:[{key:`status`,label:`Status`,value:`Active`,tone:`success`},{key:`owner`,label:`Owner`,value:`Azamat`,tone:`default`}],onRemoveChip:()=>void 0,filters:(0,G.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,G.jsx)(W.FilterIcon,{"data-icon":`inline-start`}),`Status`]}),actions:(0,G.jsx)(t.Button,{size:`sm`,children:`Export`})}):e===`command-palette`?(0,G.jsxs)(`div`,{className:`grid gap-3`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2 rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] px-3 py-2`,children:[(0,G.jsx)(W.SearchIcon,{className:`size-4 text-[color:var(--aui-page-muted)]`}),(0,G.jsx)(`span`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Command palette preview: search routes, components and actions.`})]}),(0,G.jsx)(F.CommandPalette,{open:!1,onOpenChange:()=>void 0,groups:[{id:`navigation`,label:`Navigation`,items:[{id:`docs`,label:`Open docs`,icon:(0,G.jsx)(W.SearchIcon,{className:`size-4`})},{id:`components`,label:`Browse components`,icon:(0,G.jsx)(W.LayoutDashboardIcon,{className:`size-4`})}]}]})]}):e===`button-group`?(0,G.jsx)(r.ButtonGroup,{items:[{key:`day`,label:`Day`},{key:`week`,label:`Week`},{key:`month`,label:`Month`}]}):e===`quick-action-grid`?(0,G.jsx)(c.QuickActionGrid,{columns:3,items:[{key:`new`,label:`New invoice`,description:`Create a fresh billing row.`,badge:`N`},{key:`import`,label:`Import CSV`,description:`Bring finance data into the table.`,badge:`I`},{key:`share`,label:`Share workspace`,description:`Invite team members to the route.`,badge:`S`}]}):e===`data-table-saved-filters`?(0,G.jsxs)(`div`,{className:`grid gap-3`,children:[(0,G.jsx)(h.FilterBar,{chips:[{key:`status`,label:`Status`,value:`Active`,tone:`success`},{key:`owner`,label:`Owner`,value:`Azamat`,tone:`default`},{key:`region`,label:`Region`,value:`APAC`,tone:`info`}],onRemoveChip:()=>void 0,onReset:()=>void 0}),(0,G.jsx)(r.ButtonGroup,{attached:!1,items:[{key:`default`,label:`Default`,variant:`secondary`},{key:`billing`,label:`Billing`},{key:`ops`,label:`Operations`}]})]}):(0,G.jsxs)(`div`,{className:`flex items-center justify-between rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Invoice #4821`}),(0,G.jsx)(`p`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Pending approval`})]}),(0,G.jsx)(n.ActionMenu,{label:`Actions`,actions:[{key:`open`,label:`Open`,icon:(0,G.jsx)(W.ChevronRightIcon,{className:`size-4`})},{key:`download`,label:`Download`,icon:(0,G.jsx)(W.DownloadIcon,{className:`size-4`})},{key:`archive`,label:`Archive`,icon:(0,G.jsx)(W.ArchiveIcon,{className:`size-4`}),destructive:!0}],trigger:(0,G.jsx)(t.Button,{variant:`outline`,size:`icon-sm`,"aria-label":`Open actions`,children:(0,G.jsx)(W.MoreHorizontalIcon,{})})})]})}function ne({slug:e}){return e===`app-header`?(0,G.jsx)(B.AppHeader,{sticky:!1,left:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(W.LayoutDashboardIcon,{className:`size-4`}),(0,G.jsx)(`span`,{className:`font-medium`,children:`Dashboard`})]}),center:(0,G.jsx)(s.Badge,{variant:`secondary`,children:`Preview`}),right:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Notifications`,children:(0,G.jsx)(W.BellIcon,{})}),(0,G.jsx)(t.Button,{size:`sm`,children:`Deploy`})]}),className:`rounded-xl border border-[color:var(--aui-divider)]`}):e===`section-header`?(0,G.jsx)(l.SectionHeader,{eyebrow:`Components`,title:`Production-ready surfaces`,description:`SectionHeader keeps copy, metadata and actions aligned.`,actions:(0,G.jsx)(t.Button,{size:`sm`,children:`Add component`})}):(0,G.jsx)(P.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},helperText:`StatCard keeps KPI, helper text and trend in one compact tile.`})}function re({slug:e}){return(0,G.jsxs)(`div`,{className:`overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:[(0,G.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3`,children:[(0,G.jsx)(a.SearchInput,{value:``,placeholder:`Search rows...`,className:`max-w-xs`,readOnly:!0}),(0,G.jsxs)(`div`,{className:`flex gap-2`,children:[(0,G.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,G.jsx)(W.FilterIcon,{"data-icon":`inline-start`}),`Filters`]}),(0,G.jsx)(t.Button,{size:`sm`,children:`Create`})]})]}),(0,G.jsxs)(`div`,{className:`grid grid-cols-[40px_1fr_120px_72px] border-b border-[color:var(--aui-divider)] px-3 py-2 text-xs font-semibold uppercase tracking-[0.18em] text-[color:var(--aui-page-muted)]`,children:[(0,G.jsx)(`span`,{children:(0,G.jsx)(`input`,{type:`checkbox`,"aria-label":`Select rows`})}),(0,G.jsx)(`span`,{children:`Name`}),(0,G.jsx)(`span`,{children:`Status`}),(0,G.jsx)(`span`,{children:`Actions`})]}),[`Azamat UI`,`Registry`,`Dashboard`].map((e,n)=>(0,G.jsxs)(`div`,{className:`grid grid-cols-[40px_1fr_120px_72px] items-center border-b border-[color:var(--aui-divider)] px-3 py-3 last:border-b-0`,children:[(0,G.jsx)(`span`,{children:(0,G.jsx)(`input`,{type:`checkbox`,"aria-label":`Select ${e}`,defaultChecked:n===0})}),(0,G.jsx)(`span`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:e}),(0,G.jsx)(`span`,{children:(0,G.jsx)(q,{tone:n===2?`warning`:`success`,children:n===2?`Review`:`Live`})}),(0,G.jsx)(`span`,{children:(0,G.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Row actions`,children:(0,G.jsx)(W.MoreHorizontalIcon,{})})})]},e)),(0,G.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-t border-[color:var(--aui-divider)] p-3 text-sm text-[color:var(--aui-page-muted)]`,children:[(0,G.jsxs)(`span`,{children:[{"data-table-pagination":`Pagination footer`,"data-table-toolbar":`Search and filter toolbar`,"data-table-column-visibility-menu":`Column visibility`,"data-table-select-column":`Row selection`,"data-table-sortable-header":`Sortable header`,"data-table-row-actions":`Row actions`,"data-table-actions-column":`Actions column`,"data-table-bulk-actions":`Bulk action bar`,"data-table-view-presets":`Saved view presets`}[e]??`DataTable part`,` preview`]}),(0,G.jsx)(p.Pagination,{page:1,pageCount:4,onPageChange:()=>void 0,showEdges:!1})]})]})}function ie(){return(0,G.jsx)(I.Calendar,{value:`2026-06-18`,defaultMonth:`2026-06-01`,onValueChange:()=>void 0})}function ae({slug:e}){return e===`file-dropzone`?(0,G.jsx)(R.FileDropzone,{label:`Drop contract files`,description:`PDF, PNG or CSV up to 10MB.`}):e===`file-upload`?(0,G.jsx)(L.FileUpload,{dropzoneLabel:`Upload documents`,dropzoneDescription:`Drag files here or choose from your device.`,buttonLabel:`Choose files`,helperText:`Supports PDF, CSV and images.`}):(0,G.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[160px_1fr] md:items-center`,children:[(0,G.jsx)(`div`,{className:`flex aspect-square items-center justify-center rounded-2xl border border-dashed border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:(0,G.jsx)(W.UploadCloudIcon,{className:`size-8 text-[color:var(--aui-page-muted)]`})}),(0,G.jsx)(R.FileDropzone,{label:`Upload product image`,description:`Shows the image-upload flow without custom CSS.`,accept:`image/*`})]})}function oe({slug:e}){let t=[{id:`profile`,title:`Profile`,description:`Account details`,completed:!0},{id:`billing`,title:`Billing`,description:`Payment setup`},{id:`review`,title:`Review`,description:`Confirm data`}];return e===`stepper`?(0,G.jsx)(z.Stepper,{steps:t,currentStep:`billing`,onStepChange:()=>void 0}):(0,G.jsx)(ee.Wizard,{steps:t,currentStep:`billing`,onNext:()=>void 0,onPrevious:()=>void 0,onFinish:()=>void 0,children:(0,G.jsxs)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,G.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Billing setup`}),(0,G.jsx)(`p`,{className:`mt-1 text-sm text-[color:var(--aui-page-muted)]`,children:`Wizard combines steps, content and footer controls.`})]})})}function se({slug:e}){return e===`resource-detail-page`?(0,G.jsx)(V.ResourceDetailPage,{title:`Customer profile`,description:`ResourceDetailPage organizes detail screens.`,actions:(0,G.jsx)(t.Button,{size:`sm`,children:`Edit`}),children:(0,G.jsx)(H.ResourcePageSection,{title:`Account`,children:(0,G.jsx)(E.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Design team`}]})})}):(0,G.jsx)(H.ResourcePage,{title:`Customers`,description:`ResourcePage combines header, stats, filters and sections.`,actions:(0,G.jsx)(t.Button,{size:`sm`,children:`New customer`}),stats:(0,G.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,G.jsx)(P.StatCard,{title:`Active`,value:`2,418`,trend:{value:`+8%`,tone:`success`}}),(0,G.jsx)(P.StatCard,{title:`Health`,value:`94%`,trend:{value:`Stable`,tone:`default`}})]}),filters:(0,G.jsx)(h.FilterBar,{search:(0,G.jsx)(a.SearchInput,{value:``,placeholder:`Search...`,readOnly:!0}),activeCount:1}),children:(0,G.jsx)(H.ResourcePageSection,{title:`Recent activity`,children:(0,G.jsx)(M.Timeline,{items:[{key:`a`,title:`Customer added`,description:`Acme workspace`,tone:`success`},{key:`b`,title:`Plan updated`,description:`Scale plan enabled`,tone:`info`}]})})})}exports.renderShowcasePreview=K;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_virtual/_rolldown/runtime.cjs"),t=require("../components/ui/button/index.cjs"),n=require("../components/actions/action-menu.cjs"),r=require("../components/actions/button-group.cjs"),i=require("../components/inputs/password-input.cjs"),a=require("../components/ui/input/index.cjs"),o=require("../components/ui/badge/index.cjs"),s=require("../components/actions/quick-action-grid.cjs"),c=require("../components/layout/section-header.cjs"),l=require("../components/navigation/anchor-nav.cjs"),u=require("../components/navigation/nav-tabs.cjs"),d=require("../components/navigation/page-tabs.cjs"),f=require("../components/navigation/pagination.cjs"),p=require("../components/navigation/stepper-tabs.cjs"),m=require("../components/filters/filter-bar.cjs"),h=require("../components/overlay/alert-dialog.cjs"),g=require("../components/overlay/dialog-actions.cjs"),_=require("../components/overlay/drawer.cjs"),v=require("../components/inputs/color-input.cjs"),y=require("../components/inputs/otp-input.cjs"),b=require("../components/inputs/rating.cjs"),x=require("../components/inputs/slider.cjs"),S=require("../components/inputs/tag-input.cjs"),C=require("../components/feedback/alert.cjs"),w=require("../components/feedback/page-state.cjs"),T=require("../components/display/description-list.cjs"),E=require("../components/display/list.cjs"),D=require("../components/display/progress.cjs"),O=require("../components/display/progress-circle.cjs"),k=require("../components/display/status-dot.cjs"),A=require("../components/display/status-legend.cjs"),j=require("../components/display/timeline.cjs"),M=require("../components/display/user-card.cjs"),N=require("../components/layout/stat-card.cjs"),P=require("../components/command/command-palette.cjs"),F=require("../components/calendar/calendar.cjs"),I=require("../components/upload/file-upload.cjs"),L=require("../components/upload/file-dropzone.cjs"),R=require("../components/wizard/stepper.cjs"),ee=require("../components/wizard/wizard.cjs"),z=require("../components/layout/app-header.cjs"),B=require("../components/patterns/resource-detail-page.cjs"),V=require("../components/patterns/resource-page.cjs");let H=require("react");H=e.__toESM(H,1);let U=require("lucide-react"),W=require("react/jsx-runtime");function G(e,t,n){return e.kind===`inputs`?(0,W.jsx)(q,{slug:e.slug,state:t,setState:n}):e.kind===`form`?(0,W.jsx)(J,{state:t,setState:n}):e.kind===`overlay`?(0,W.jsx)(Y,{slug:e.slug}):e.kind===`navigation`?(0,W.jsx)(X,{slug:e.slug}):e.kind===`feedback`?(0,W.jsx)(Z,{slug:e.slug}):e.kind===`display`?(0,W.jsx)(Q,{slug:e.slug}):e.kind===`actions`?(0,W.jsx)($,{slug:e.slug,state:t,setState:n}):e.kind===`layout`?(0,W.jsx)(te,{slug:e.slug}):e.kind===`data-table`?(0,W.jsx)(ne,{slug:e.slug}):e.kind===`calendar`?(0,W.jsx)(re,{}):e.kind===`upload`?(0,W.jsx)(ie,{slug:e.slug}):e.kind===`wizard`?(0,W.jsx)(ae,{slug:e.slug}):e.kind===`patterns`?(0,W.jsx)(oe,{slug:e.slug}):null}function K({tone:e,children:t}){return(0,W.jsx)(o.Badge,{variant:e===`danger`?`destructive`:e===`warning`?`outline`:`secondary`,children:t})}function q({slug:e,state:t,setState:n}){let r=t.textValue,o=e=>n({textValue:e});return e===`search-input`?(0,W.jsx)(a.Input,{type:`search`,value:r,onValueChange:o,resultCount:12,shortcut:`Ctrl K`,placeholder:`Search customers...`}):e===`password-input`?(0,W.jsx)(i.PasswordInput,{value:`secret-token`,onValueChange:o,placeholder:`Password`}):e===`clearable-input`?(0,W.jsx)(a.Input,{value:r,onValueChange:o,placeholder:`Clearable input`,clearable:!0}):e===`slider`?(0,W.jsx)(x.Slider,{label:`Density`,description:`Tune content density.`,defaultValue:64,showValue:!0}):e===`range-slider`?(0,W.jsx)(x.RangeSlider,{label:`Revenue range`,description:`Filter between two values.`,defaultValue:[20,80],showValue:!0}):e===`rating`?(0,W.jsx)(b.Rating,{defaultValue:4,labels:{clear:`Reset`}}):e===`otp-input`?(0,W.jsx)(y.OtpInput,{value:r.replace(/\D/g,``).slice(0,6),onValueChange:o}):e===`color-input`?(0,W.jsx)(v.ColorInput,{defaultValue:`#22c55e`,label:`Accent color`,description:`Theme token preview.`}):e===`tag-input`?(0,W.jsx)(S.TagInput,{defaultValue:[`dashboard`,`beta`,`ops`],placeholder:`Add label`}):(0,W.jsx)(a.Input,{value:r,onChange:e=>n({textValue:e.currentTarget.value}),placeholder:`Unified input`})}function J({state:e,setState:t}){return(0,W.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,W.jsxs)(`label`,{className:`grid gap-2`,children:[(0,W.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Email address`}),(0,W.jsx)(a.Input,{value:e.textValue,onChange:e=>t({textValue:e.currentTarget.value})}),(0,W.jsx)(`span`,{className:`text-xs text-[color:var(--aui-page-muted)]`,children:`Form wrappers keep label, hint and error spacing consistent.`})]}),(0,W.jsxs)(`label`,{className:`grid gap-2`,children:[(0,W.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Status`}),(0,W.jsx)(a.Input,{type:`search`,value:`Active customers`,resultCount:7,readOnly:!0}),(0,W.jsx)(`span`,{className:`text-xs text-emerald-500`,children:`Ready to submit`})]})]})}function Y({slug:e}){return e===`dialog-actions`?(0,W.jsx)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:(0,W.jsxs)(g.DialogActions,{align:`end`,children:[(0,W.jsx)(g.DialogActionButton,{variant:`ghost`,children:`Cancel`}),(0,W.jsx)(g.DialogActionButton,{variant:`outline`,children:`Save draft`}),(0,W.jsx)(g.DialogActionButton,{children:`Publish`})]})}):e===`alert-dialog`?(0,W.jsx)(h.AlertDialog,{open:!1,title:`Archive invoice?`,description:`This keeps the invoice readable but removes it from active queues.`,children:(0,W.jsx)(t.Button,{variant:`destructive`,children:`Open alert`})}):e===`drawer`?(0,W.jsx)(_.Drawer,{open:!1,trigger:(0,W.jsx)(t.Button,{variant:`outline`,children:`Open drawer`}),title:`Customer details`,description:`Side panel for fast inspection.`,children:(0,W.jsx)(T.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Azamat UI`}]})}):(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2 rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,W.jsx)(t.Button,{variant:`ghost`,children:`Cancel`}),(0,W.jsx)(t.Button,{variant:`outline`,children:`Save draft`}),(0,W.jsx)(t.Button,{children:`Publish`})]})}function X({slug:e}){return e===`pagination`?(0,W.jsx)(f.Pagination,{page:3,pageCount:9,onPageChange:()=>void 0}):e===`anchor-nav`?(0,W.jsx)(l.AnchorNav,{orientation:`horizontal`,title:`Sections`,items:[{key:`overview`,label:`Overview`,href:`#overview`,active:!0},{key:`usage`,label:`Usage`,href:`#usage`},{key:`api`,label:`API`,href:`#api`}]}):e===`page-tabs`?(0,W.jsx)(d.PageTabs,{value:`overview`,variant:`pills`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`,badge:`3`}]}):e===`stepper-tabs`?(0,W.jsx)(p.StepperTabs,{value:`billing`,items:[{value:`profile`,label:`Profile`,description:`Team and owner details`,completed:!0},{value:`billing`,label:`Billing`,description:`Payment and invoices`},{value:`review`,label:`Review`,description:`Confirm release`}]}):(0,W.jsx)(u.NavTabs,{value:`overview`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`}]})}function Z({slug:e}){return e===`alert`?(0,W.jsx)(C.Alert,{tone:`warning`,title:`Review needed`,description:`Billing rules changed and one approval is pending.`,action:(0,W.jsx)(t.Button,{size:`sm`,children:`Open`})}):e===`page-state`?(0,W.jsx)(w.PageState,{title:`Workspace connected`,description:`The route is ready to accept live data and team actions.`,tone:`success`,action:(0,W.jsx)(t.Button,{size:`sm`,children:`Continue`})}):(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(K,{tone:`success`,children:`Live`}),(0,W.jsx)(K,{tone:`warning`,children:`Needs review`}),(0,W.jsx)(K,{tone:`danger`,children:`Blocked`}),(0,W.jsx)(K,{tone:`info`,children:`Queued`})]})}function Q({slug:e}){return e===`description-list`?(0,W.jsx)(T.DescriptionList,{title:`Invoice details`,description:`Structured facts with responsive columns.`,items:[{key:`id`,label:`Invoice`,value:`#4821`},{key:`amount`,label:`Amount`,value:`$12,420`},{key:`status`,label:`Status`,value:(0,W.jsx)(K,{tone:`success`,children:`Paid`})},{key:`owner`,label:`Owner`,value:`Finance team`}]}):e===`progress`?(0,W.jsx)(D.Progress,{label:`Migration progress`,description:`Production rollout`,value:68,tone:`success`,showValue:!0}):e===`progress-circle`?(0,W.jsx)(O.ProgressCircle,{value:72,label:`Profile completed`}):e===`timeline`?(0,W.jsx)(j.Timeline,{items:[{key:`created`,title:`Created`,description:`Invoice generated`,time:`09:20`,tone:`success`},{key:`review`,title:`Review`,description:`Finance team assigned`,time:`10:05`,tone:`info`},{key:`approve`,title:`Approval`,description:`Waiting for manager`,time:`Now`,tone:`warning`}],pending:!0,pendingLabel:`Paid`}):e===`metric-card`||e===`stat-card`?(0,W.jsx)(N.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,W.jsx)(U.LayoutDashboardIcon,{})}):e===`status-dot`?(0,W.jsxs)(`div`,{className:`grid gap-3`,children:[(0,W.jsx)(k.StatusDot,{tone:`success`,pulse:!0,label:`API healthy`}),(0,W.jsx)(k.StatusDot,{tone:`warning`,label:`Sync delayed`}),(0,W.jsx)(k.StatusDot,{tone:`danger`,label:`Webhook failed`})]}):e===`delta-badge`?(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(o.Badge,{variant:`secondary`,children:`+12.4%`}),(0,W.jsx)(o.Badge,{variant:`outline`,children:`-3.1%`}),(0,W.jsx)(o.Badge,{variant:`destructive`,children:`Risk`})]}):e===`notification-center`?(0,W.jsx)(E.List,{items:[{key:`1`,title:`Build completed`,description:`Dashboard docs deployment is live.`,extra:`Now`},{key:`2`,title:`New comment`,description:`Review requested on DataTable API.`,extra:`8m`},{key:`3`,title:`Publish reminder`,description:`Package version is ready for release.`,extra:`1h`}]}):e===`data-list`?(0,W.jsx)(E.List,{items:[{key:`1`,title:`Enterprise plan`,description:`Priority support and SSO`,extra:`$499`},{key:`2`,title:`Growth plan`,description:`Most used by product teams`,extra:`$199`},{key:`3`,title:`Starter plan`,description:`Lightweight team setup`,extra:`$49`}]}):e===`status-legend`?(0,W.jsx)(A.StatusLegend,{title:`Delivery states`,description:`Explain what each state means and how often it appears.`,orientation:`grid`,items:[{key:`live`,label:`Live`,description:`Healthy production routes`,tone:`success`,count:18},{key:`review`,label:`Review`,description:`Waiting for QA approval`,tone:`warning`,count:4},{key:`blocked`,label:`Blocked`,description:`Needs engineering action`,tone:`danger`,count:1}]}):e===`trend-card`||e===`comparison-card`?(0,W.jsx)(N.StatCard,{title:e===`trend-card`?`Weekly revenue`:`Current vs previous`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,W.jsx)(U.LayoutDashboardIcon,{})}):(0,W.jsx)(M.UserCard,{name:`Azamat Jurayev`,description:`Product designer and maintainer`,meta:`Admin workspace`,actions:(0,W.jsx)(t.Button,{size:`sm`,children:`Invite`})})}function $({slug:e,state:i,setState:o}){return e===`filter-bar`?(0,W.jsx)(m.FilterBar,{search:(0,W.jsx)(a.Input,{type:`search`,value:i.textValue,onValueChange:e=>o({textValue:e}),placeholder:`Search invoices...`}),onReset:()=>o({textValue:``}),chips:[{key:`status`,label:`Status`,value:`Active`,tone:`success`},{key:`owner`,label:`Owner`,value:`Azamat`,tone:`default`}],onRemoveChip:()=>void 0,filters:(0,W.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,W.jsx)(U.FilterIcon,{"data-icon":`inline-start`}),`Status`]}),actions:(0,W.jsx)(t.Button,{size:`sm`,children:`Export`})}):e===`command-palette`?(0,W.jsxs)(`div`,{className:`grid gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2 rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] px-3 py-2`,children:[(0,W.jsx)(U.SearchIcon,{className:`size-4 text-[color:var(--aui-page-muted)]`}),(0,W.jsx)(`span`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Command palette preview: search routes, components and actions.`})]}),(0,W.jsx)(P.CommandPalette,{open:!1,onOpenChange:()=>void 0,groups:[{id:`navigation`,label:`Navigation`,items:[{id:`docs`,label:`Open docs`,icon:(0,W.jsx)(U.SearchIcon,{className:`size-4`})},{id:`components`,label:`Browse components`,icon:(0,W.jsx)(U.LayoutDashboardIcon,{className:`size-4`})}]}]})]}):e===`button-group`?(0,W.jsx)(r.ButtonGroup,{items:[{key:`day`,label:`Day`},{key:`week`,label:`Week`},{key:`month`,label:`Month`}]}):e===`quick-action-grid`?(0,W.jsx)(s.QuickActionGrid,{columns:3,items:[{key:`new`,label:`New invoice`,description:`Create a fresh billing row.`,badge:`N`},{key:`import`,label:`Import CSV`,description:`Bring finance data into the table.`,badge:`I`},{key:`share`,label:`Share workspace`,description:`Invite team members to the route.`,badge:`S`}]}):e===`data-table-saved-filters`?(0,W.jsxs)(`div`,{className:`grid gap-3`,children:[(0,W.jsx)(m.FilterBar,{chips:[{key:`status`,label:`Status`,value:`Active`,tone:`success`},{key:`owner`,label:`Owner`,value:`Azamat`,tone:`default`},{key:`region`,label:`Region`,value:`APAC`,tone:`info`}],onRemoveChip:()=>void 0,onReset:()=>void 0}),(0,W.jsx)(r.ButtonGroup,{attached:!1,items:[{key:`default`,label:`Default`,variant:`secondary`},{key:`billing`,label:`Billing`},{key:`ops`,label:`Operations`}]})]}):(0,W.jsxs)(`div`,{className:`flex items-center justify-between rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Invoice #4821`}),(0,W.jsx)(`p`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Pending approval`})]}),(0,W.jsx)(n.ActionMenu,{label:`Actions`,actions:[{key:`open`,label:`Open`,icon:(0,W.jsx)(U.ChevronRightIcon,{className:`size-4`})},{key:`download`,label:`Download`,icon:(0,W.jsx)(U.DownloadIcon,{className:`size-4`})},{key:`archive`,label:`Archive`,icon:(0,W.jsx)(U.ArchiveIcon,{className:`size-4`}),destructive:!0}],trigger:(0,W.jsx)(t.Button,{variant:`outline`,size:`icon-sm`,"aria-label":`Open actions`,children:(0,W.jsx)(U.MoreHorizontalIcon,{})})})]})}function te({slug:e}){return e===`app-header`?(0,W.jsx)(z.AppHeader,{sticky:!1,left:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(U.LayoutDashboardIcon,{className:`size-4`}),(0,W.jsx)(`span`,{className:`font-medium`,children:`Dashboard`})]}),center:(0,W.jsx)(o.Badge,{variant:`secondary`,children:`Preview`}),right:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Notifications`,children:(0,W.jsx)(U.BellIcon,{})}),(0,W.jsx)(t.Button,{size:`sm`,children:`Deploy`})]}),className:`rounded-xl border border-[color:var(--aui-divider)]`}):e===`section-header`?(0,W.jsx)(c.SectionHeader,{eyebrow:`Components`,title:`Production-ready surfaces`,description:`SectionHeader keeps copy, metadata and actions aligned.`,actions:(0,W.jsx)(t.Button,{size:`sm`,children:`Add component`})}):(0,W.jsx)(N.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},helperText:`StatCard keeps KPI, helper text and trend in one compact tile.`})}function ne({slug:e}){return(0,W.jsxs)(`div`,{className:`overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3`,children:[(0,W.jsx)(a.Input,{type:`search`,value:``,placeholder:`Search rows...`,className:`max-w-xs`,readOnly:!0}),(0,W.jsxs)(`div`,{className:`flex gap-2`,children:[(0,W.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,W.jsx)(U.FilterIcon,{"data-icon":`inline-start`}),`Filters`]}),(0,W.jsx)(t.Button,{size:`sm`,children:`Create`})]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-[40px_1fr_120px_72px] border-b border-[color:var(--aui-divider)] px-3 py-2 text-xs font-semibold uppercase tracking-[0.18em] text-[color:var(--aui-page-muted)]`,children:[(0,W.jsx)(`span`,{children:(0,W.jsx)(`input`,{type:`checkbox`,"aria-label":`Select rows`})}),(0,W.jsx)(`span`,{children:`Name`}),(0,W.jsx)(`span`,{children:`Status`}),(0,W.jsx)(`span`,{children:`Actions`})]}),[`Azamat UI`,`Registry`,`Dashboard`].map((e,n)=>(0,W.jsxs)(`div`,{className:`grid grid-cols-[40px_1fr_120px_72px] items-center border-b border-[color:var(--aui-divider)] px-3 py-3 last:border-b-0`,children:[(0,W.jsx)(`span`,{children:(0,W.jsx)(`input`,{type:`checkbox`,"aria-label":`Select ${e}`,defaultChecked:n===0})}),(0,W.jsx)(`span`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:e}),(0,W.jsx)(`span`,{children:(0,W.jsx)(K,{tone:n===2?`warning`:`success`,children:n===2?`Review`:`Live`})}),(0,W.jsx)(`span`,{children:(0,W.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Row actions`,children:(0,W.jsx)(U.MoreHorizontalIcon,{})})})]},e)),(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-t border-[color:var(--aui-divider)] p-3 text-sm text-[color:var(--aui-page-muted)]`,children:[(0,W.jsxs)(`span`,{children:[{"data-table-pagination":`Pagination footer`,"data-table-toolbar":`Search and filter toolbar`,"data-table-column-visibility-menu":`Column visibility`,"data-table-select-column":`Row selection`,"data-table-sortable-header":`Sortable header`,"data-table-row-actions":`Row actions`,"data-table-actions-column":`Actions column`,"data-table-bulk-actions":`Bulk action bar`,"data-table-view-presets":`Saved view presets`}[e]??`DataTable part`,` preview`]}),(0,W.jsx)(f.Pagination,{page:1,pageCount:4,onPageChange:()=>void 0,showEdges:!1})]})]})}function re(){return(0,W.jsx)(F.Calendar,{value:`2026-06-18`,defaultMonth:`2026-06-01`,onValueChange:()=>void 0})}function ie({slug:e}){return e===`file-dropzone`?(0,W.jsx)(L.FileDropzone,{label:`Drop contract files`,description:`PDF, PNG or CSV up to 10MB.`}):e===`file-upload`?(0,W.jsx)(I.FileUpload,{dropzoneLabel:`Upload documents`,dropzoneDescription:`Drag files here or choose from your device.`,buttonLabel:`Choose files`,helperText:`Supports PDF, CSV and images.`}):(0,W.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[160px_1fr] md:items-center`,children:[(0,W.jsx)(`div`,{className:`flex aspect-square items-center justify-center rounded-2xl border border-dashed border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:(0,W.jsx)(U.UploadCloudIcon,{className:`size-8 text-[color:var(--aui-page-muted)]`})}),(0,W.jsx)(L.FileDropzone,{label:`Upload product image`,description:`Shows the image-upload flow without custom CSS.`,accept:`image/*`})]})}function ae({slug:e}){let t=[{id:`profile`,title:`Profile`,description:`Account details`,completed:!0},{id:`billing`,title:`Billing`,description:`Payment setup`},{id:`review`,title:`Review`,description:`Confirm data`}];return e===`stepper`?(0,W.jsx)(R.Stepper,{steps:t,currentStep:`billing`,onStepChange:()=>void 0}):(0,W.jsx)(ee.Wizard,{steps:t,currentStep:`billing`,onNext:()=>void 0,onPrevious:()=>void 0,onFinish:()=>void 0,children:(0,W.jsxs)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,W.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Billing setup`}),(0,W.jsx)(`p`,{className:`mt-1 text-sm text-[color:var(--aui-page-muted)]`,children:`Wizard combines steps, content and footer controls.`})]})})}function oe({slug:e}){return e===`resource-detail-page`?(0,W.jsx)(B.ResourceDetailPage,{title:`Customer profile`,description:`ResourceDetailPage organizes detail screens.`,actions:(0,W.jsx)(t.Button,{size:`sm`,children:`Edit`}),children:(0,W.jsx)(V.ResourcePageSection,{title:`Account`,children:(0,W.jsx)(T.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Design team`}]})})}):(0,W.jsx)(V.ResourcePage,{title:`Customers`,description:`ResourcePage combines header, stats, filters and sections.`,actions:(0,W.jsx)(t.Button,{size:`sm`,children:`New customer`}),stats:(0,W.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,W.jsx)(N.StatCard,{title:`Active`,value:`2,418`,trend:{value:`+8%`,tone:`success`}}),(0,W.jsx)(N.StatCard,{title:`Health`,value:`94%`,trend:{value:`Stable`,tone:`default`}})]}),filters:(0,W.jsx)(m.FilterBar,{search:(0,W.jsx)(a.Input,{type:`search`,value:``,placeholder:`Search...`,readOnly:!0}),activeCount:1}),children:(0,W.jsx)(V.ResourcePageSection,{title:`Recent activity`,children:(0,W.jsx)(j.Timeline,{items:[{key:`a`,title:`Customer added`,description:`Acme workspace`,tone:`success`},{key:`b`,title:`Plan updated`,description:`Scale plan enabled`,tone:`info`}]})})})}exports.renderShowcasePreview=G;
|