tembro 2.1.8 → 2.1.9

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.
Files changed (189) hide show
  1. package/dist/components/form/form-date-range-input.cjs +1 -1
  2. package/dist/components/form/form-date-range-input.d.ts +1 -1
  3. package/dist/components/form/form-date-range-input.js +1 -1
  4. package/dist/components/form/form-input.cjs +1 -1
  5. package/dist/components/form/form-input.d.ts +7 -7
  6. package/dist/components/form/form-input.js +11 -11
  7. package/dist/components/inputs/index.cjs +1 -1
  8. package/dist/components/inputs/index.d.ts +0 -14
  9. package/dist/components/inputs/index.js +9 -23
  10. package/dist/components/inputs/public.cjs +1 -1
  11. package/dist/components/inputs/public.d.ts +0 -14
  12. package/dist/components/inputs/public.js +9 -23
  13. package/dist/components/ui/input/chrome.cjs +1 -0
  14. package/dist/components/{inputs/input-chrome.js → ui/input/chrome.js} +2 -2
  15. package/dist/components/ui/input/clearable.cjs +1 -0
  16. package/dist/components/{inputs/clearable-input.d.ts → ui/input/clearable.d.ts} +1 -1
  17. package/dist/components/{inputs/clearable-input.js → ui/input/clearable.js} +4 -4
  18. package/dist/components/{inputs/date-range-input.cjs → ui/input/date-range.cjs} +1 -1
  19. package/dist/components/{inputs/date-range-input.d.ts → ui/input/date-range.d.ts} +1 -1
  20. package/dist/components/{inputs/date-range-input.js → ui/input/date-range.js} +3 -3
  21. package/dist/components/ui/input/date.cjs +1 -0
  22. package/dist/components/{inputs/date-input.d.ts → ui/input/date.d.ts} +1 -1
  23. package/dist/components/{inputs/date-input.js → ui/input/date.js} +3 -3
  24. package/dist/components/ui/input/decorator.cjs +1 -0
  25. package/dist/components/{inputs/input-decorator.js → ui/input/decorator.js} +3 -3
  26. package/dist/components/ui/input/index.cjs +1 -1
  27. package/dist/components/ui/input/index.d.ts +10 -10
  28. package/dist/components/ui/input/index.js +13 -13
  29. package/dist/components/ui/input/masked.cjs +1 -0
  30. package/dist/components/{inputs/masked-input.d.ts → ui/input/masked.d.ts} +1 -1
  31. package/dist/components/{inputs/masked-input.js → ui/input/masked.js} +3 -3
  32. package/dist/components/ui/input/money.cjs +1 -0
  33. package/dist/components/{inputs/money-input.js → ui/input/money.js} +5 -5
  34. package/dist/components/ui/input/number.cjs +1 -0
  35. package/dist/components/{inputs/number-input.d.ts → ui/input/number.d.ts} +1 -1
  36. package/dist/components/{inputs/number-input.js → ui/input/number.js} +3 -3
  37. package/dist/components/{inputs → ui/input}/numeric-value.js +1 -1
  38. package/dist/components/ui/input/password.cjs +1 -0
  39. package/dist/components/{inputs/password-input.d.ts → ui/input/password.d.ts} +1 -1
  40. package/dist/components/{inputs/password-input.js → ui/input/password.js} +2 -2
  41. package/dist/components/ui/input/phone.cjs +1 -0
  42. package/dist/components/{inputs/phone-input.d.ts → ui/input/phone.d.ts} +1 -1
  43. package/dist/components/{inputs/phone-input.js → ui/input/phone.js} +2 -2
  44. package/dist/components/ui/input/quantity.cjs +1 -0
  45. package/dist/components/{inputs/quantity-input.js → ui/input/quantity.js} +6 -6
  46. package/dist/components/ui/input/search.cjs +1 -0
  47. package/dist/components/{inputs/search-input.d.ts → ui/input/search.d.ts} +1 -1
  48. package/dist/components/{inputs/search-input.js → ui/input/search.js} +2 -2
  49. package/dist/components/{inputs/input-value.js → ui/input/value.js} +1 -1
  50. package/dist/index.cjs +1 -1
  51. package/dist/index.js +124 -138
  52. package/dist/public-component-surface.cjs +1 -1
  53. package/dist/public-component-surface.js +0 -5
  54. package/dist/showcase/fallback.cjs +3 -3
  55. package/dist/showcase/fallback.js +119 -118
  56. package/dist/showcase/premium/combobox/mock.cjs +4 -3
  57. package/dist/showcase/premium/combobox/mock.js +2 -2
  58. package/dist/showcase/premium/combobox/showcase.cjs +1 -1
  59. package/dist/showcase/premium/combobox/showcase.js +2 -2
  60. package/dist/showcase/premium/date-input/mock.cjs +4 -3
  61. package/dist/showcase/premium/date-input/mock.js +2 -2
  62. package/dist/showcase/premium/date-input/showcase.cjs +1 -1
  63. package/dist/showcase/premium/date-input/showcase.js +2 -1
  64. package/dist/showcase/premium/date-range-input/mock.cjs +4 -3
  65. package/dist/showcase/premium/date-range-input/mock.js +2 -2
  66. package/dist/showcase/premium/date-range-input/showcase.cjs +1 -1
  67. package/dist/showcase/premium/date-range-input/showcase.js +2 -1
  68. package/dist/showcase/premium/masked-input/mock.cjs +4 -3
  69. package/dist/showcase/premium/masked-input/mock.js +2 -2
  70. package/dist/showcase/premium/masked-input/showcase.cjs +1 -1
  71. package/dist/showcase/premium/masked-input/showcase.js +2 -1
  72. package/dist/showcase/premium/money-input/mock.cjs +4 -3
  73. package/dist/showcase/premium/money-input/mock.js +2 -2
  74. package/dist/showcase/premium/money-input/showcase.cjs +1 -1
  75. package/dist/showcase/premium/money-input/showcase.js +2 -1
  76. package/dist/showcase/premium/number-input/mock.cjs +5 -7
  77. package/dist/showcase/premium/number-input/mock.js +2 -2
  78. package/dist/showcase/premium/number-input/showcase.cjs +1 -1
  79. package/dist/showcase/premium/number-input/showcase.js +2 -1
  80. package/dist/showcase/premium/password-input/mock.cjs +3 -2
  81. package/dist/showcase/premium/password-input/mock.js +1 -1
  82. package/dist/showcase/premium/password-input/showcase.cjs +1 -1
  83. package/dist/showcase/premium/password-input/showcase.js +2 -1
  84. package/dist/showcase/premium/phone-input/mock.cjs +5 -4
  85. package/dist/showcase/premium/phone-input/mock.js +2 -2
  86. package/dist/showcase/premium/phone-input/showcase.cjs +1 -1
  87. package/dist/showcase/premium/phone-input/showcase.js +2 -1
  88. package/dist/showcase/premium/quantity-input/mock.cjs +4 -3
  89. package/dist/showcase/premium/quantity-input/mock.js +2 -2
  90. package/dist/showcase/premium/quantity-input/showcase.cjs +1 -1
  91. package/dist/showcase/premium/quantity-input/showcase.js +2 -1
  92. package/dist/showcase/premium/search-input/mock.cjs +3 -2
  93. package/dist/showcase/premium/search-input/mock.js +1 -1
  94. package/dist/showcase/premium/search-input/showcase.cjs +1 -1
  95. package/dist/showcase/premium/search-input/showcase.js +2 -1
  96. package/dist/showcase/premium/simple-select/mock.cjs +3 -3
  97. package/dist/showcase/premium/simple-select/mock.js +2 -2
  98. package/dist/showcase/premium/simple-select/showcase.cjs +1 -1
  99. package/dist/showcase/premium/simple-select/showcase.js +1 -1
  100. package/dist/showcase/registry-specific.cjs +1 -1
  101. package/dist/showcase/registry-specific.js +92 -92
  102. package/dist/showcase/render-registry-preview.cjs +1 -1
  103. package/dist/showcase/render-registry-preview.js +214 -215
  104. package/dist/showcase/tembro-registry.json.cjs +1 -1
  105. package/dist/showcase/tembro-registry.json.js +2 -3
  106. package/package.json +1 -1
  107. package/packages/cli/dist/index.cjs +18 -18
  108. package/packages/cli/vendor/src/components/form/form-date-range-input.tsx +5 -5
  109. package/packages/cli/vendor/src/components/form/form-input.tsx +7 -7
  110. package/packages/cli/vendor/src/components/inputs/index.ts +0 -14
  111. package/packages/cli/vendor/src/components/inputs/public.ts +0 -19
  112. package/packages/cli/vendor/src/components/{inputs/clearable-input.tsx → ui/input/clearable.tsx} +2 -2
  113. package/packages/cli/vendor/src/components/{inputs/date-range-input.tsx → ui/input/date-range.tsx} +1 -1
  114. package/packages/cli/vendor/src/components/{inputs/date-input.tsx → ui/input/date.tsx} +2 -2
  115. package/packages/cli/vendor/src/components/ui/input/index.tsx +11 -11
  116. package/packages/cli/vendor/src/components/{inputs/masked-input.tsx → ui/input/masked.tsx} +2 -2
  117. package/packages/cli/vendor/src/components/{inputs/money-input.tsx → ui/input/money.tsx} +3 -3
  118. package/packages/cli/vendor/src/components/{inputs/number-input.tsx → ui/input/number.tsx} +3 -3
  119. package/packages/cli/vendor/src/components/{inputs/password-input.tsx → ui/input/password.tsx} +1 -1
  120. package/packages/cli/vendor/src/components/{inputs/phone-input.tsx → ui/input/phone.tsx} +1 -1
  121. package/packages/cli/vendor/src/components/{inputs/quantity-input.tsx → ui/input/quantity.tsx} +3 -3
  122. package/packages/cli/vendor/src/components/{inputs/search-input.tsx → ui/input/search.tsx} +1 -1
  123. package/packages/cli/vendor/src/public-component-surface.ts +0 -1
  124. package/packages/cli/vendor/src/showcase/fallback.tsx +4 -6
  125. package/packages/cli/vendor/src/showcase/premium/combobox/mock.ts +4 -3
  126. package/packages/cli/vendor/src/showcase/premium/combobox/showcase.tsx +3 -3
  127. package/packages/cli/vendor/src/showcase/premium/date-input/mock.ts +4 -3
  128. package/packages/cli/vendor/src/showcase/premium/date-input/showcase.tsx +3 -2
  129. package/packages/cli/vendor/src/showcase/premium/date-range-input/mock.ts +4 -3
  130. package/packages/cli/vendor/src/showcase/premium/date-range-input/showcase.tsx +3 -2
  131. package/packages/cli/vendor/src/showcase/premium/masked-input/mock.ts +4 -3
  132. package/packages/cli/vendor/src/showcase/premium/masked-input/showcase.tsx +3 -2
  133. package/packages/cli/vendor/src/showcase/premium/money-input/mock.ts +4 -3
  134. package/packages/cli/vendor/src/showcase/premium/money-input/showcase.tsx +3 -2
  135. package/packages/cli/vendor/src/showcase/premium/number-input/mock.ts +5 -7
  136. package/packages/cli/vendor/src/showcase/premium/number-input/showcase.tsx +2 -2
  137. package/packages/cli/vendor/src/showcase/premium/password-input/mock.ts +3 -2
  138. package/packages/cli/vendor/src/showcase/premium/password-input/showcase.tsx +3 -2
  139. package/packages/cli/vendor/src/showcase/premium/phone-input/mock.ts +5 -4
  140. package/packages/cli/vendor/src/showcase/premium/phone-input/showcase.tsx +4 -3
  141. package/packages/cli/vendor/src/showcase/premium/quantity-input/mock.ts +4 -3
  142. package/packages/cli/vendor/src/showcase/premium/quantity-input/showcase.tsx +3 -2
  143. package/packages/cli/vendor/src/showcase/premium/search-input/mock.ts +3 -2
  144. package/packages/cli/vendor/src/showcase/premium/search-input/showcase.tsx +3 -2
  145. package/packages/cli/vendor/src/showcase/premium/simple-select/mock.ts +3 -3
  146. package/packages/cli/vendor/src/showcase/premium/simple-select/showcase.tsx +3 -3
  147. package/packages/cli/vendor/src/showcase/registry-specific.tsx +1 -2
  148. package/packages/cli/vendor/src/showcase/render-registry-preview.tsx +2 -4
  149. package/packages/cli/vendor/src/showcase/tembro-registry.json +1 -3
  150. package/registry.json +1 -3
  151. package/dist/components/inputs/clearable-input.cjs +0 -1
  152. package/dist/components/inputs/color-input.cjs +0 -1
  153. package/dist/components/inputs/color-input.d.ts +0 -11
  154. package/dist/components/inputs/color-input.js +0 -42
  155. package/dist/components/inputs/combobox.cjs +0 -1
  156. package/dist/components/inputs/combobox.d.ts +0 -29
  157. package/dist/components/inputs/combobox.js +0 -113
  158. package/dist/components/inputs/date-input.cjs +0 -1
  159. package/dist/components/inputs/input-chrome.cjs +0 -1
  160. package/dist/components/inputs/input-decorator.cjs +0 -1
  161. package/dist/components/inputs/masked-input.cjs +0 -1
  162. package/dist/components/inputs/money-input.cjs +0 -1
  163. package/dist/components/inputs/number-input.cjs +0 -1
  164. package/dist/components/inputs/password-input.cjs +0 -1
  165. package/dist/components/inputs/phone-input.cjs +0 -1
  166. package/dist/components/inputs/quantity-input.cjs +0 -1
  167. package/dist/components/inputs/quantity-stepper.cjs +0 -1
  168. package/dist/components/inputs/quantity-stepper.d.ts +0 -12
  169. package/dist/components/inputs/quantity-stepper.js +0 -52
  170. package/dist/components/inputs/search-input.cjs +0 -1
  171. package/dist/components/inputs/simple-select.cjs +0 -1
  172. package/dist/components/inputs/simple-select.d.ts +0 -13
  173. package/dist/components/inputs/simple-select.js +0 -8
  174. package/packages/cli/vendor/src/components/inputs/color-input.tsx +0 -49
  175. package/packages/cli/vendor/src/components/inputs/combobox.tsx +0 -180
  176. package/packages/cli/vendor/src/components/inputs/quantity-stepper.tsx +0 -51
  177. package/packages/cli/vendor/src/components/inputs/simple-select.tsx +0 -23
  178. /package/dist/components/{inputs/input-chrome.d.ts → ui/input/chrome.d.ts} +0 -0
  179. /package/dist/components/{inputs/input-decorator.d.ts → ui/input/decorator.d.ts} +0 -0
  180. /package/dist/components/{inputs/money-input.d.ts → ui/input/money.d.ts} +0 -0
  181. /package/dist/components/{inputs → ui/input}/numeric-value.cjs +0 -0
  182. /package/dist/components/{inputs → ui/input}/numeric-value.d.ts +0 -0
  183. /package/dist/components/{inputs/quantity-input.d.ts → ui/input/quantity.d.ts} +0 -0
  184. /package/dist/components/{inputs/input-value.cjs → ui/input/value.cjs} +0 -0
  185. /package/dist/components/{inputs/input-value.d.ts → ui/input/value.d.ts} +0 -0
  186. /package/packages/cli/vendor/src/components/{inputs/input-chrome.tsx → ui/input/chrome.tsx} +0 -0
  187. /package/packages/cli/vendor/src/components/{inputs/input-decorator.tsx → ui/input/decorator.tsx} +0 -0
  188. /package/packages/cli/vendor/src/components/{inputs → ui/input}/numeric-value.ts +0 -0
  189. /package/packages/cli/vendor/src/components/{inputs/input-value.ts → ui/input/value.ts} +0 -0
@@ -1,27 +1,26 @@
1
1
  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
- import { PasswordInput as r } from "../components/inputs/password-input.js";
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
- import { QuickActionGrid as s } from "../components/actions/quick-action-grid.js";
9
- import { SectionHeader as c } from "../components/layout/section-header.js";
10
- import { NavTabs as l } from "../components/navigation/nav-tabs.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";
4
+ import { Input as r } from "../components/ui/input/index.js";
5
+ import { Badge as i } from "../components/ui/badge/index.js";
6
+ import { Select as a } from "../components/ui/select/index.js";
7
+ import { QuickActionGrid as o } from "../components/actions/quick-action-grid.js";
8
+ import { SectionHeader as s } from "../components/layout/section-header.js";
9
+ import { NavTabs as ee } from "../components/navigation/nav-tabs.js";
10
+ import { PageTabs as c } from "../components/navigation/page-tabs.js";
11
+ import { Pagination as l } from "../components/navigation/pagination.js";
12
+ import { StepperTabs as te } from "../components/navigation/stepper-tabs.js";
13
+ import { FilterBar as u } from "../components/filters/filter-bar.js";
14
+ import { SavedFilterSelect as d } from "../components/filters/saved-filter-select.js";
15
+ import { AlertDialog as f } from "../components/overlay/alert-dialog.js";
16
+ import { Drawer as p } from "../components/overlay/drawer.js";
17
+ import { AsyncSelect as m } from "../components/inputs/async-select.js";
18
+ import { OtpInput as h } from "../components/inputs/otp-input.js";
19
+ import { Rating as g } from "../components/inputs/rating.js";
20
+ import { RangeSlider as ne, Slider as _ } from "../components/inputs/slider.js";
21
+ import { TagInput as v } from "../components/inputs/tag-input.js";
22
+ import { Alert as y } from "../components/feedback/alert.js";
23
+ import { PageState as re } from "../components/feedback/page-state.js";
25
24
  import { DescriptionList as b } from "../components/display/description-list.js";
26
25
  import { List as x } from "../components/display/list.js";
27
26
  import { Progress as S } from "../components/display/progress.js";
@@ -45,7 +44,7 @@ import "react";
45
44
  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";
46
45
  import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
47
46
  //#region src/showcase/registry-specific.tsx
48
- var ae = [
47
+ var ie = [
49
48
  Z("alert-dialog", "AlertDialog", "overlay", "Destructive confirmation dialog with loading-ready action states."),
50
49
  Z("drawer", "Drawer", "overlay", "Side panel for contextual details without leaving the page."),
51
50
  Z("pagination", "Pagination", "navigation", "Controlled page navigation with edge buttons and active state."),
@@ -85,15 +84,15 @@ var ae = [
85
84
  Z("wizard", "Wizard", "wizard", "Stepper, content and footer controls combined into one workflow."),
86
85
  Z("resource-page", "ResourcePage", "patterns", "Full resource index page shell for admin dashboards."),
87
86
  Z("resource-detail-page", "ResourceDetailPage", "patterns", "Detail page shell with title, metadata and sections.")
88
- ], oe = Object.fromEntries(ae.map((e) => [e.slug, {
89
- mock: se(e),
90
- Showcase: (t) => /* @__PURE__ */ Y(le, {
87
+ ], ae = Object.fromEntries(ie.map((e) => [e.slug, {
88
+ mock: oe(e),
89
+ Showcase: (t) => /* @__PURE__ */ Y(ce, {
91
90
  definition: e,
92
91
  ...t
93
92
  })
94
93
  }]));
95
94
  function Z(e, t, n, r, i = t) {
96
- let a = Ce(e);
95
+ let a = Se(e);
97
96
  return {
98
97
  slug: e,
99
98
  title: a,
@@ -115,20 +114,20 @@ function Z(e, t, n, r, i = t) {
115
114
  }]
116
115
  };
117
116
  }
118
- function se(e) {
117
+ function oe(e) {
119
118
  return {
120
119
  cliCommand: `npx tembro add ${e.slug}`,
121
- code: ce(e),
120
+ code: se(e),
122
121
  highlights: e.highlights,
123
122
  scenarios: e.scenarios,
124
123
  capabilityNotes: [`Add ${e.slug} into your local source with the CLI.`, "Import the public component surface from `tembro` in app code."]
125
124
  };
126
125
  }
127
- function ce(e) {
126
+ function se(e) {
128
127
  let t = e.importName ?? e.component;
129
128
  return `import { ${t} } from "tembro"\n\nexport function Demo() {\n return <${t} />\n}`;
130
129
  }
131
- function le({ definition: e, state: t, setState: n }) {
130
+ function ce({ definition: e, state: t, setState: n }) {
132
131
  return /* @__PURE__ */ X("div", {
133
132
  className: "space-y-5",
134
133
  children: [/* @__PURE__ */ X("header", {
@@ -145,60 +144,61 @@ function le({ definition: e, state: t, setState: n }) {
145
144
  })] })]
146
145
  }), /* @__PURE__ */ Y("div", {
147
146
  className: "rounded-2xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg-alt)] p-4 sm:p-5",
148
- children: ue(e, t, n)
147
+ children: le(e, t, n)
149
148
  })]
150
149
  });
151
150
  }
152
- function ue(e, t, n) {
153
- return e.kind === "inputs" ? /* @__PURE__ */ Y(de, {
151
+ function le(e, t, n) {
152
+ return e.kind === "inputs" ? /* @__PURE__ */ Y(ue, {
154
153
  slug: e.slug,
155
154
  state: t,
156
155
  setState: n
157
- }) : e.kind === "form" ? /* @__PURE__ */ Y(fe, {
156
+ }) : e.kind === "form" ? /* @__PURE__ */ Y(de, {
158
157
  state: t,
159
158
  setState: n
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, {
159
+ }) : e.kind === "overlay" ? /* @__PURE__ */ Y(fe, { slug: e.slug }) : e.kind === "navigation" ? /* @__PURE__ */ Y(pe, { slug: e.slug }) : e.kind === "feedback" ? /* @__PURE__ */ Y(me, { slug: e.slug }) : e.kind === "display" ? /* @__PURE__ */ Y(Q, { slug: e.slug }) : e.kind === "actions" ? /* @__PURE__ */ Y(he, {
161
160
  slug: e.slug,
162
161
  state: t,
163
162
  setState: n
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;
163
+ }) : e.kind === "layout" ? /* @__PURE__ */ Y(ge, { slug: e.slug }) : e.kind === "data-table" ? /* @__PURE__ */ Y(_e, { slug: e.slug }) : e.kind === "calendar" ? /* @__PURE__ */ Y(ve, {}) : e.kind === "upload" ? /* @__PURE__ */ Y(ye, { slug: e.slug }) : e.kind === "wizard" ? /* @__PURE__ */ Y(be, { slug: e.slug }) : e.kind === "patterns" ? /* @__PURE__ */ Y(xe, { slug: e.slug }) : null;
165
164
  }
166
- function de({ slug: e, state: t, setState: n }) {
167
- let a = t.textValue, s = (e) => n({ textValue: e });
168
- if (e === "search-input") return /* @__PURE__ */ Y(i, {
165
+ function ue({ slug: e, state: t, setState: n }) {
166
+ let i = t.textValue, o = (e) => n({ textValue: e });
167
+ if (e === "search-input") return /* @__PURE__ */ Y(r, {
169
168
  type: "search",
170
- value: a,
171
- onValueChange: s,
169
+ value: i,
170
+ onValueChange: o,
172
171
  resultCount: 12,
173
172
  shortcut: "Ctrl K",
174
173
  placeholder: "Search customers..."
175
174
  });
176
175
  if (e === "password-input") return /* @__PURE__ */ Y(r, {
176
+ kind: "password",
177
177
  value: "secret-token",
178
- onValueChange: s,
178
+ onValueChange: o,
179
179
  placeholder: "Password"
180
180
  });
181
- if (e === "slider") return /* @__PURE__ */ Y(y, {
181
+ if (e === "slider") return /* @__PURE__ */ 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(v, {
187
+ if (e === "range-slider") return /* @__PURE__ */ Y(ne, {
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(g, {
194
194
  defaultValue: 4,
195
195
  labels: { clear: "Reset" }
196
196
  });
197
- if (e === "otp-input") return /* @__PURE__ */ Y(te, {
198
- value: a.replace(/\D/g, "").slice(0, 6),
199
- onValueChange: s
197
+ if (e === "otp-input") return /* @__PURE__ */ Y(h, {
198
+ value: i.replace(/\D/g, "").slice(0, 6),
199
+ onValueChange: o
200
200
  });
201
- if (e === "tag-input") return /* @__PURE__ */ Y(ne, {
201
+ if (e === "tag-input") return /* @__PURE__ */ Y(v, {
202
202
  defaultValue: [
203
203
  "dashboard",
204
204
  "beta",
@@ -208,7 +208,7 @@ function de({ 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(o, {
211
+ children: [/* @__PURE__ */ Y(a, {
212
212
  value: "private",
213
213
  onValueChange: () => void 0,
214
214
  options: [
@@ -275,7 +275,7 @@ function de({ slug: e, state: t, setState: n }) {
275
275
  ];
276
276
  return /* @__PURE__ */ X("div", {
277
277
  className: "grid gap-4",
278
- children: [/* @__PURE__ */ Y(g, {
278
+ children: [/* @__PURE__ */ Y(m, {
279
279
  value: "north",
280
280
  onValueChange: () => void 0,
281
281
  loadOptions: async (t) => {
@@ -304,13 +304,13 @@ function de({ slug: e, state: t, setState: n }) {
304
304
  })]
305
305
  });
306
306
  }
307
- return /* @__PURE__ */ Y(i, {
308
- value: a,
307
+ return /* @__PURE__ */ Y(r, {
308
+ value: i,
309
309
  onChange: (e) => n({ textValue: e.currentTarget.value }),
310
310
  placeholder: "Unified input"
311
311
  });
312
312
  }
313
- function fe({ state: e, setState: t }) {
313
+ function de({ 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 fe({ state: e, setState: t }) {
320
320
  className: "text-sm font-medium aui-text-strong",
321
321
  children: "Email address"
322
322
  }),
323
- /* @__PURE__ */ Y(i, {
323
+ /* @__PURE__ */ Y(r, {
324
324
  value: e.textValue,
325
325
  onChange: (e) => t({ textValue: e.currentTarget.value })
326
326
  }),
@@ -336,7 +336,7 @@ function fe({ state: e, setState: t }) {
336
336
  className: "text-sm font-medium aui-text-strong",
337
337
  children: "Status"
338
338
  }),
339
- /* @__PURE__ */ Y(i, {
339
+ /* @__PURE__ */ Y(r, {
340
340
  type: "search",
341
341
  value: "Active customers",
342
342
  resultCount: 7,
@@ -350,8 +350,8 @@ function fe({ state: e, setState: t }) {
350
350
  })]
351
351
  });
352
352
  }
353
- function pe({ slug: t }) {
354
- return t === "alert-dialog" ? /* @__PURE__ */ Y(m, {
353
+ function fe({ slug: t }) {
354
+ return t === "alert-dialog" ? /* @__PURE__ */ Y(f, {
355
355
  open: !1,
356
356
  title: "Archive invoice?",
357
357
  description: "This keeps the invoice readable but removes it from active queues.",
@@ -359,7 +359,7 @@ function pe({ slug: t }) {
359
359
  variant: "destructive",
360
360
  children: "Open alert"
361
361
  })
362
- }) : t === "drawer" ? /* @__PURE__ */ Y(h, {
362
+ }) : t === "drawer" ? /* @__PURE__ */ Y(p, {
363
363
  open: !1,
364
364
  trigger: /* @__PURE__ */ Y(e, {
365
365
  variant: "outline",
@@ -391,12 +391,12 @@ function pe({ slug: t }) {
391
391
  ]
392
392
  });
393
393
  }
394
- function me({ slug: e }) {
395
- return e === "pagination" ? /* @__PURE__ */ Y(u, {
394
+ function pe({ slug: e }) {
395
+ return e === "pagination" ? /* @__PURE__ */ Y(l, {
396
396
  page: 3,
397
397
  pageCount: 9,
398
398
  onPageChange: () => void 0
399
- }) : e === "page-tabs" ? /* @__PURE__ */ Y(ee, {
399
+ }) : e === "page-tabs" ? /* @__PURE__ */ Y(c, {
400
400
  value: "overview",
401
401
  variant: "pills",
402
402
  items: [
@@ -414,7 +414,7 @@ function me({ slug: e }) {
414
414
  badge: "3"
415
415
  }
416
416
  ]
417
- }) : e === "stepper-tabs" ? /* @__PURE__ */ Y(d, {
417
+ }) : e === "stepper-tabs" ? /* @__PURE__ */ Y(te, {
418
418
  value: "billing",
419
419
  items: [
420
420
  {
@@ -434,7 +434,7 @@ function me({ slug: e }) {
434
434
  description: "Confirm release"
435
435
  }
436
436
  ]
437
- }) : /* @__PURE__ */ Y(l, {
437
+ }) : /* @__PURE__ */ Y(ee, {
438
438
  value: "overview",
439
439
  items: [
440
440
  {
@@ -452,8 +452,8 @@ function me({ slug: e }) {
452
452
  ]
453
453
  });
454
454
  }
455
- function Q({ slug: t }) {
456
- return t === "alert" ? /* @__PURE__ */ Y(re, {
455
+ function me({ slug: t }) {
456
+ return t === "alert" ? /* @__PURE__ */ Y(y, {
457
457
  tone: "warning",
458
458
  title: "Review needed",
459
459
  description: "Billing rules changed and one approval is pending.",
@@ -461,7 +461,7 @@ function Q({ slug: t }) {
461
461
  size: "sm",
462
462
  children: "Open"
463
463
  })
464
- }) : t === "page-state" ? /* @__PURE__ */ Y(ie, {
464
+ }) : t === "page-state" ? /* @__PURE__ */ Y(re, {
465
465
  title: "Workspace connected",
466
466
  description: "The route is ready to accept live data and team actions.",
467
467
  tone: "success",
@@ -491,7 +491,7 @@ function Q({ slug: t }) {
491
491
  ]
492
492
  });
493
493
  }
494
- function he({ slug: t }) {
494
+ function Q({ slug: t }) {
495
495
  return t === "progress" ? /* @__PURE__ */ Y(S, {
496
496
  label: "Migration progress",
497
497
  description: "Production rollout",
@@ -670,16 +670,16 @@ function he({ slug: t }) {
670
670
  })
671
671
  });
672
672
  }
673
- function ge({ slug: r, state: a, setState: o }) {
674
- return r === "filter-bar" ? /* @__PURE__ */ Y(f, {
675
- search: /* @__PURE__ */ Y(i, {
673
+ function he({ slug: i, state: a, setState: s }) {
674
+ return i === "filter-bar" ? /* @__PURE__ */ Y(u, {
675
+ search: /* @__PURE__ */ Y(r, {
676
676
  type: "search",
677
677
  value: a.textValue,
678
- onValueChange: (e) => o({ textValue: e }),
678
+ onValueChange: (e) => s({ textValue: e }),
679
679
  placeholder: "Search invoices..."
680
680
  }),
681
681
  activeCount: 2,
682
- onReset: () => o({ textValue: "" }),
682
+ onReset: () => s({ textValue: "" }),
683
683
  filters: /* @__PURE__ */ X(e, {
684
684
  variant: "outline",
685
685
  size: "sm",
@@ -689,7 +689,7 @@ function ge({ slug: r, state: a, setState: o }) {
689
689
  size: "sm",
690
690
  children: "Export"
691
691
  })
692
- }) : r === "button-group" ? /* @__PURE__ */ Y(n, { items: [
692
+ }) : i === "button-group" ? /* @__PURE__ */ Y(n, { items: [
693
693
  {
694
694
  key: "day",
695
695
  label: "Day"
@@ -702,7 +702,7 @@ function ge({ slug: r, state: a, setState: o }) {
702
702
  key: "month",
703
703
  label: "Month"
704
704
  }
705
- ] }) : r === "quick-action-grid" ? /* @__PURE__ */ Y(s, {
705
+ ] }) : i === "quick-action-grid" ? /* @__PURE__ */ Y(o, {
706
706
  columns: 3,
707
707
  items: [
708
708
  {
@@ -724,9 +724,9 @@ function ge({ slug: r, state: a, setState: o }) {
724
724
  badge: "S"
725
725
  }
726
726
  ]
727
- }) : r === "saved-filter-select" ? /* @__PURE__ */ X("div", {
727
+ }) : i === "saved-filter-select" ? /* @__PURE__ */ X("div", {
728
728
  className: "grid gap-4",
729
- children: [/* @__PURE__ */ Y(p, {
729
+ children: [/* @__PURE__ */ Y(d, {
730
730
  value: "billing",
731
731
  onValueChange: () => void 0,
732
732
  onSave: () => void 0,
@@ -802,14 +802,14 @@ function ge({ slug: r, state: a, setState: o }) {
802
802
  })]
803
803
  });
804
804
  }
805
- function _e({ slug: t }) {
805
+ function ge({ slug: t }) {
806
806
  return t === "app-header" ? /* @__PURE__ */ Y(I, {
807
807
  sticky: !1,
808
808
  left: /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(G, { className: "size-4" }), /* @__PURE__ */ Y("span", {
809
809
  className: "font-medium",
810
810
  children: "Dashboard"
811
811
  })] }),
812
- center: /* @__PURE__ */ Y(a, {
812
+ center: /* @__PURE__ */ Y(i, {
813
813
  variant: "secondary",
814
814
  children: "Preview"
815
815
  }),
@@ -823,7 +823,7 @@ function _e({ slug: t }) {
823
823
  children: "Deploy"
824
824
  })] }),
825
825
  className: "rounded-xl border border-[color:var(--aui-divider)]"
826
- }) : t === "section-header" ? /* @__PURE__ */ Y(c, {
826
+ }) : t === "section-header" ? /* @__PURE__ */ Y(s, {
827
827
  eyebrow: "Components",
828
828
  title: "Production-ready surfaces",
829
829
  description: "SectionHeader keeps copy, metadata and actions aligned.",
@@ -842,13 +842,13 @@ function _e({ slug: t }) {
842
842
  helperText: "StatCard keeps KPI, helper text and trend in one compact tile."
843
843
  });
844
844
  }
845
- function ve({ slug: t }) {
845
+ function _e({ slug: t }) {
846
846
  return /* @__PURE__ */ X("div", {
847
847
  className: "overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]",
848
848
  children: [
849
849
  /* @__PURE__ */ X("div", {
850
850
  className: "flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3",
851
- children: [/* @__PURE__ */ Y(i, {
851
+ children: [/* @__PURE__ */ Y(r, {
852
852
  type: "search",
853
853
  value: "",
854
854
  placeholder: "Search rows...",
@@ -913,7 +913,7 @@ function ve({ slug: t }) {
913
913
  "data-table-sortable-header": "Sortable header",
914
914
  "data-table-bulk-actions": "Bulk action bar",
915
915
  "data-table-view-presets": "Saved view presets"
916
- }[t] ?? "DataTable part", " preview"] }), /* @__PURE__ */ Y(u, {
916
+ }[t] ?? "DataTable part", " preview"] }), /* @__PURE__ */ Y(l, {
917
917
  page: 1,
918
918
  pageCount: 4,
919
919
  onPageChange: () => void 0,
@@ -923,14 +923,14 @@ function ve({ slug: t }) {
923
923
  ]
924
924
  });
925
925
  }
926
- function ye() {
926
+ function ve() {
927
927
  return /* @__PURE__ */ Y(A, {
928
928
  value: "2026-06-18",
929
929
  defaultMonth: "2026-06-01",
930
930
  onValueChange: () => void 0
931
931
  });
932
932
  }
933
- function be({ slug: e }) {
933
+ function ye({ slug: e }) {
934
934
  return e === "file-dropzone" ? /* @__PURE__ */ Y(N, {
935
935
  label: "Drop contract files",
936
936
  description: "PDF, PNG or CSV up to 10MB."
@@ -992,7 +992,7 @@ function be({ slug: e }) {
992
992
  })]
993
993
  });
994
994
  }
995
- function xe({ slug: e }) {
995
+ function be({ slug: e }) {
996
996
  let t = [
997
997
  {
998
998
  id: "profile",
@@ -1033,7 +1033,7 @@ function xe({ slug: e }) {
1033
1033
  })
1034
1034
  });
1035
1035
  }
1036
- function Se({ slug: t }) {
1036
+ function xe({ slug: t }) {
1037
1037
  return t === "resource-detail-page" ? /* @__PURE__ */ Y(L, {
1038
1038
  title: "Customer profile",
1039
1039
  description: "ResourceDetailPage organizes detail screens.",
@@ -1078,8 +1078,8 @@ function Se({ slug: t }) {
1078
1078
  }
1079
1079
  })]
1080
1080
  }),
1081
- filters: /* @__PURE__ */ Y(f, {
1082
- search: /* @__PURE__ */ Y(i, {
1081
+ filters: /* @__PURE__ */ Y(u, {
1082
+ search: /* @__PURE__ */ Y(r, {
1083
1083
  type: "search",
1084
1084
  value: "",
1085
1085
  placeholder: "Search...",
@@ -1103,11 +1103,11 @@ function Se({ slug: t }) {
1103
1103
  })
1104
1104
  });
1105
1105
  }
1106
- function Ce(e) {
1106
+ function Se(e) {
1107
1107
  return e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
1108
1108
  }
1109
1109
  function $({ tone: e, children: t }) {
1110
- return /* @__PURE__ */ Y(a, {
1110
+ return /* @__PURE__ */ Y(i, {
1111
1111
  variant: {
1112
1112
  success: "secondary",
1113
1113
  warning: "outline",
@@ -1118,4 +1118,4 @@ function $({ tone: e, children: t }) {
1118
1118
  });
1119
1119
  }
1120
1120
  //#endregion
1121
- export { oe as registrySpecificDemoRegistry };
1121
+ export { ae 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/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/nav-tabs.cjs"),u=require("../components/navigation/page-tabs.cjs"),d=require("../components/navigation/pagination.cjs"),f=require("../components/navigation/stepper-tabs.cjs"),p=require("../components/filters/filter-bar.cjs"),m=require("../components/overlay/alert-dialog.cjs"),h=require("../components/overlay/dialog-actions.cjs"),g=require("../components/overlay/drawer.cjs"),_=require("../components/inputs/color-input.cjs"),v=require("../components/inputs/otp-input.cjs"),y=require("../components/inputs/rating.cjs"),b=require("../components/inputs/slider.cjs"),x=require("../components/inputs/tag-input.cjs"),S=require("../components/feedback/alert.cjs"),C=require("../components/feedback/page-state.cjs"),w=require("../components/display/description-list.cjs"),T=require("../components/display/list.cjs"),E=require("../components/display/progress.cjs"),D=require("../components/display/progress-circle.cjs"),O=require("../components/display/status-dot.cjs"),k=require("../components/display/status-legend.cjs"),A=require("../components/display/timeline.cjs"),j=require("../components/display/user-card.cjs"),M=require("../components/layout/stat-card.cjs"),N=require("../components/command/command-palette.cjs"),P=require("../components/calendar/calendar.cjs"),F=require("../components/upload/file-upload.cjs"),I=require("../components/upload/file-dropzone.cjs"),L=require("../components/wizard/stepper.cjs"),R=require("../components/wizard/wizard.cjs"),ee=require("../components/layout/app-header.cjs"),z=require("../components/patterns/resource-detail-page.cjs"),B=require("../components/patterns/resource-page.cjs");let V=require("react");V=e.__toESM(V,1);let H=require("lucide-react"),U=require("react/jsx-runtime");function W(e,t,n){return e.kind===`inputs`?(0,U.jsx)(K,{slug:e.slug,state:t,setState:n}):e.kind===`form`?(0,U.jsx)(q,{state:t,setState:n}):e.kind===`overlay`?(0,U.jsx)(J,{slug:e.slug}):e.kind===`navigation`?(0,U.jsx)(Y,{slug:e.slug}):e.kind===`feedback`?(0,U.jsx)(X,{slug:e.slug}):e.kind===`display`?(0,U.jsx)(Z,{slug:e.slug}):e.kind===`actions`?(0,U.jsx)(Q,{slug:e.slug,state:t,setState:n}):e.kind===`layout`?(0,U.jsx)($,{slug:e.slug}):e.kind===`data-table`?(0,U.jsx)(te,{slug:e.slug}):e.kind===`calendar`?(0,U.jsx)(ne,{}):e.kind===`upload`?(0,U.jsx)(re,{slug:e.slug}):e.kind===`wizard`?(0,U.jsx)(ie,{slug:e.slug}):e.kind===`patterns`?(0,U.jsx)(ae,{slug:e.slug}):null}function G({tone:e,children:t}){return(0,U.jsx)(o.Badge,{variant:e===`danger`?`destructive`:e===`warning`?`outline`:`secondary`,children:t})}function K({slug:e,state:t,setState:n}){let r=t.textValue,o=e=>n({textValue:e});return e===`search-input`?(0,U.jsx)(a.Input,{type:`search`,value:r,onValueChange:o,resultCount:12,shortcut:`Ctrl K`,placeholder:`Search customers...`}):e===`password-input`?(0,U.jsx)(i.PasswordInput,{value:`secret-token`,onValueChange:o,placeholder:`Password`}):e===`clearable-input`?(0,U.jsx)(a.Input,{value:r,onValueChange:o,placeholder:`Clearable input`,clearable:!0}):e===`slider`?(0,U.jsx)(b.Slider,{label:`Density`,description:`Tune content density.`,defaultValue:64,showValue:!0}):e===`range-slider`?(0,U.jsx)(b.RangeSlider,{label:`Revenue range`,description:`Filter between two values.`,defaultValue:[20,80],showValue:!0}):e===`rating`?(0,U.jsx)(y.Rating,{defaultValue:4,labels:{clear:`Reset`}}):e===`otp-input`?(0,U.jsx)(v.OtpInput,{value:r.replace(/\D/g,``).slice(0,6),onValueChange:o}):e===`color-input`?(0,U.jsx)(_.ColorInput,{defaultValue:`#22c55e`,label:`Accent color`,description:`Theme token preview.`}):e===`tag-input`?(0,U.jsx)(x.TagInput,{defaultValue:[`dashboard`,`beta`,`ops`],placeholder:`Add label`}):(0,U.jsx)(a.Input,{value:r,onChange:e=>n({textValue:e.currentTarget.value}),placeholder:`Unified input`})}function q({state:e,setState:t}){return(0,U.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,U.jsxs)(`label`,{className:`grid gap-2`,children:[(0,U.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Email address`}),(0,U.jsx)(a.Input,{value:e.textValue,onChange:e=>t({textValue:e.currentTarget.value})}),(0,U.jsx)(`span`,{className:`text-xs text-[color:var(--aui-page-muted)]`,children:`Form wrappers keep label, hint and error spacing consistent.`})]}),(0,U.jsxs)(`label`,{className:`grid gap-2`,children:[(0,U.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Status`}),(0,U.jsx)(a.Input,{type:`search`,value:`Active customers`,resultCount:7,readOnly:!0}),(0,U.jsx)(`span`,{className:`text-xs text-emerald-500`,children:`Ready to submit`})]})]})}function J({slug:e}){return e===`dialog-actions`?(0,U.jsx)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:(0,U.jsxs)(h.DialogActions,{align:`end`,children:[(0,U.jsx)(h.DialogActionButton,{variant:`ghost`,children:`Cancel`}),(0,U.jsx)(h.DialogActionButton,{variant:`outline`,children:`Save draft`}),(0,U.jsx)(h.DialogActionButton,{children:`Publish`})]})}):e===`alert-dialog`?(0,U.jsx)(m.AlertDialog,{open:!1,title:`Archive invoice?`,description:`This keeps the invoice readable but removes it from active queues.`,children:(0,U.jsx)(t.Button,{variant:`destructive`,children:`Open alert`})}):e===`drawer`?(0,U.jsx)(g.Drawer,{open:!1,trigger:(0,U.jsx)(t.Button,{variant:`outline`,children:`Open drawer`}),title:`Customer details`,description:`Side panel for fast inspection.`,children:(0,U.jsx)(w.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Azamat UI`}]})}):(0,U.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,U.jsx)(t.Button,{variant:`ghost`,children:`Cancel`}),(0,U.jsx)(t.Button,{variant:`outline`,children:`Save draft`}),(0,U.jsx)(t.Button,{children:`Publish`})]})}function Y({slug:e}){return e===`pagination`?(0,U.jsx)(d.Pagination,{page:3,pageCount:9,onPageChange:()=>void 0}):e===`page-tabs`?(0,U.jsx)(u.PageTabs,{value:`overview`,variant:`pills`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`,badge:`3`}]}):e===`stepper-tabs`?(0,U.jsx)(f.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,U.jsx)(l.NavTabs,{value:`overview`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`}]})}function X({slug:e}){return e===`alert`?(0,U.jsx)(S.Alert,{tone:`warning`,title:`Review needed`,description:`Billing rules changed and one approval is pending.`,action:(0,U.jsx)(t.Button,{size:`sm`,children:`Open`})}):e===`page-state`?(0,U.jsx)(C.PageState,{title:`Workspace connected`,description:`The route is ready to accept live data and team actions.`,tone:`success`,action:(0,U.jsx)(t.Button,{size:`sm`,children:`Continue`})}):(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,U.jsx)(G,{tone:`success`,children:`Live`}),(0,U.jsx)(G,{tone:`warning`,children:`Needs review`}),(0,U.jsx)(G,{tone:`danger`,children:`Blocked`}),(0,U.jsx)(G,{tone:`info`,children:`Queued`})]})}function Z({slug:e}){return e===`description-list`?(0,U.jsx)(w.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,U.jsx)(G,{tone:`success`,children:`Paid`})},{key:`owner`,label:`Owner`,value:`Finance team`}]}):e===`progress`?(0,U.jsx)(E.Progress,{label:`Migration progress`,description:`Production rollout`,value:68,tone:`success`,showValue:!0}):e===`progress-circle`?(0,U.jsx)(D.ProgressCircle,{value:72,label:`Profile completed`}):e===`timeline`?(0,U.jsx)(A.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,U.jsx)(M.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,U.jsx)(H.LayoutDashboardIcon,{})}):e===`status-dot`?(0,U.jsxs)(`div`,{className:`grid gap-3`,children:[(0,U.jsx)(O.StatusDot,{tone:`success`,pulse:!0,label:`API healthy`}),(0,U.jsx)(O.StatusDot,{tone:`warning`,label:`Sync delayed`}),(0,U.jsx)(O.StatusDot,{tone:`danger`,label:`Webhook failed`})]}):e===`delta-badge`?(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,U.jsx)(o.Badge,{variant:`secondary`,children:`+12.4%`}),(0,U.jsx)(o.Badge,{variant:`outline`,children:`-3.1%`}),(0,U.jsx)(o.Badge,{variant:`destructive`,children:`Risk`})]}):e===`notification-center`?(0,U.jsx)(T.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,U.jsx)(T.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,U.jsx)(k.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,U.jsx)(M.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,U.jsx)(H.LayoutDashboardIcon,{})}):(0,U.jsx)(j.UserCard,{name:`Azamat Jurayev`,description:`Product designer and maintainer`,meta:`Admin workspace`,actions:(0,U.jsx)(t.Button,{size:`sm`,children:`Invite`})})}function Q({slug:e,state:i,setState:o}){return e===`filter-bar`?(0,U.jsx)(p.FilterBar,{search:(0,U.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,U.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,U.jsx)(H.FilterIcon,{"data-icon":`inline-start`}),`Status`]}),actions:(0,U.jsx)(t.Button,{size:`sm`,children:`Export`})}):e===`command-palette`?(0,U.jsxs)(`div`,{className:`grid gap-3`,children:[(0,U.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,U.jsx)(H.SearchIcon,{className:`size-4 text-[color:var(--aui-page-muted)]`}),(0,U.jsx)(`span`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Command palette preview: search routes, components and actions.`})]}),(0,U.jsx)(N.CommandPalette,{open:!1,onOpenChange:()=>void 0,groups:[{id:`navigation`,label:`Navigation`,items:[{id:`docs`,label:`Open docs`,icon:(0,U.jsx)(H.SearchIcon,{className:`size-4`})},{id:`components`,label:`Browse components`,icon:(0,U.jsx)(H.LayoutDashboardIcon,{className:`size-4`})}]}]})]}):e===`button-group`?(0,U.jsx)(r.ButtonGroup,{items:[{key:`day`,label:`Day`},{key:`week`,label:`Week`},{key:`month`,label:`Month`}]}):e===`quick-action-grid`?(0,U.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,U.jsxs)(`div`,{className:`grid gap-3`,children:[(0,U.jsx)(p.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,U.jsx)(r.ButtonGroup,{attached:!1,items:[{key:`default`,label:`Default`,variant:`secondary`},{key:`billing`,label:`Billing`},{key:`ops`,label:`Operations`}]})]}):(0,U.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,U.jsxs)(`div`,{children:[(0,U.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Invoice #4821`}),(0,U.jsx)(`p`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Pending approval`})]}),(0,U.jsx)(n.ActionMenu,{label:`Actions`,actions:[{key:`open`,label:`Open`,icon:(0,U.jsx)(H.ChevronRightIcon,{className:`size-4`})},{key:`download`,label:`Download`,icon:(0,U.jsx)(H.DownloadIcon,{className:`size-4`})},{key:`archive`,label:`Archive`,icon:(0,U.jsx)(H.ArchiveIcon,{className:`size-4`}),destructive:!0}],trigger:(0,U.jsx)(t.Button,{variant:`outline`,size:`icon-sm`,"aria-label":`Open actions`,children:(0,U.jsx)(H.MoreHorizontalIcon,{})})})]})}function $({slug:e}){return e===`app-header`?(0,U.jsx)(ee.AppHeader,{sticky:!1,left:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(H.LayoutDashboardIcon,{className:`size-4`}),(0,U.jsx)(`span`,{className:`font-medium`,children:`Dashboard`})]}),center:(0,U.jsx)(o.Badge,{variant:`secondary`,children:`Preview`}),right:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Notifications`,children:(0,U.jsx)(H.BellIcon,{})}),(0,U.jsx)(t.Button,{size:`sm`,children:`Deploy`})]}),className:`rounded-xl border border-[color:var(--aui-divider)]`}):e===`section-header`?(0,U.jsx)(c.SectionHeader,{eyebrow:`Components`,title:`Production-ready surfaces`,description:`SectionHeader keeps copy, metadata and actions aligned.`,actions:(0,U.jsx)(t.Button,{size:`sm`,children:`Add component`})}):(0,U.jsx)(M.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 te({slug:e}){return(0,U.jsxs)(`div`,{className:`overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3`,children:[(0,U.jsx)(a.Input,{type:`search`,value:``,placeholder:`Search rows...`,className:`max-w-xs`,readOnly:!0}),(0,U.jsxs)(`div`,{className:`flex gap-2`,children:[(0,U.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,U.jsx)(H.FilterIcon,{"data-icon":`inline-start`}),`Filters`]}),(0,U.jsx)(t.Button,{size:`sm`,children:`Create`})]})]}),(0,U.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,U.jsx)(`span`,{children:(0,U.jsx)(`input`,{type:`checkbox`,"aria-label":`Select rows`})}),(0,U.jsx)(`span`,{children:`Name`}),(0,U.jsx)(`span`,{children:`Status`}),(0,U.jsx)(`span`,{children:`Actions`})]}),[`Azamat UI`,`Registry`,`Dashboard`].map((e,n)=>(0,U.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,U.jsx)(`span`,{children:(0,U.jsx)(`input`,{type:`checkbox`,"aria-label":`Select ${e}`,defaultChecked:n===0})}),(0,U.jsx)(`span`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:e}),(0,U.jsx)(`span`,{children:(0,U.jsx)(G,{tone:n===2?`warning`:`success`,children:n===2?`Review`:`Live`})}),(0,U.jsx)(`span`,{children:(0,U.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Row actions`,children:(0,U.jsx)(H.MoreHorizontalIcon,{})})})]},e)),(0,U.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,U.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,U.jsx)(d.Pagination,{page:1,pageCount:4,onPageChange:()=>void 0,showEdges:!1})]})]})}function ne(){return(0,U.jsx)(P.Calendar,{value:`2026-06-18`,defaultMonth:`2026-06-01`,onValueChange:()=>void 0})}function re({slug:e}){return e===`file-dropzone`?(0,U.jsx)(I.FileDropzone,{label:`Drop contract files`,description:`PDF, PNG or CSV up to 10MB.`}):e===`file-upload`?(0,U.jsx)(F.FileUpload,{dropzoneLabel:`Upload documents`,dropzoneDescription:`Drag files here or choose from your device.`,buttonLabel:`Choose files`,helperText:`Supports PDF, CSV and images.`}):(0,U.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[160px_1fr] md:items-center`,children:[(0,U.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,U.jsx)(H.UploadCloudIcon,{className:`size-8 text-[color:var(--aui-page-muted)]`})}),(0,U.jsx)(I.FileDropzone,{label:`Upload product image`,description:`Shows the image-upload flow without custom CSS.`,accept:`image/*`})]})}function ie({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,U.jsx)(L.Stepper,{steps:t,currentStep:`billing`,onStepChange:()=>void 0}):(0,U.jsx)(R.Wizard,{steps:t,currentStep:`billing`,onNext:()=>void 0,onPrevious:()=>void 0,onFinish:()=>void 0,children:(0,U.jsxs)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,U.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Billing setup`}),(0,U.jsx)(`p`,{className:`mt-1 text-sm text-[color:var(--aui-page-muted)]`,children:`Wizard combines steps, content and footer controls.`})]})})}function ae({slug:e}){return e===`resource-detail-page`?(0,U.jsx)(z.ResourceDetailPage,{title:`Customer profile`,description:`ResourceDetailPage organizes detail screens.`,actions:(0,U.jsx)(t.Button,{size:`sm`,children:`Edit`}),children:(0,U.jsx)(B.ResourcePageSection,{title:`Account`,children:(0,U.jsx)(w.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Design team`}]})})}):(0,U.jsx)(B.ResourcePage,{title:`Customers`,description:`ResourcePage combines header, stats, filters and sections.`,actions:(0,U.jsx)(t.Button,{size:`sm`,children:`New customer`}),stats:(0,U.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,U.jsx)(M.StatCard,{title:`Active`,value:`2,418`,trend:{value:`+8%`,tone:`success`}}),(0,U.jsx)(M.StatCard,{title:`Health`,value:`94%`,trend:{value:`Stable`,tone:`default`}})]}),filters:(0,U.jsx)(p.FilterBar,{search:(0,U.jsx)(a.Input,{type:`search`,value:``,placeholder:`Search...`,readOnly:!0}),activeCount:1}),children:(0,U.jsx)(B.ResourcePageSection,{title:`Recent activity`,children:(0,U.jsx)(A.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=W;
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/ui/input/index.cjs"),a=require("../components/ui/badge/index.cjs"),o=require("../components/actions/quick-action-grid.cjs"),s=require("../components/layout/section-header.cjs"),c=require("../components/navigation/nav-tabs.cjs"),l=require("../components/navigation/page-tabs.cjs"),u=require("../components/navigation/pagination.cjs"),d=require("../components/navigation/stepper-tabs.cjs"),f=require("../components/filters/filter-bar.cjs"),ee=require("../components/overlay/alert-dialog.cjs"),p=require("../components/overlay/dialog-actions.cjs"),m=require("../components/overlay/drawer.cjs"),h=require("../components/inputs/otp-input.cjs"),g=require("../components/inputs/rating.cjs"),_=require("../components/inputs/slider.cjs"),v=require("../components/inputs/tag-input.cjs"),y=require("../components/feedback/alert.cjs"),b=require("../components/feedback/page-state.cjs"),x=require("../components/display/description-list.cjs"),S=require("../components/display/list.cjs"),C=require("../components/display/progress.cjs"),w=require("../components/display/progress-circle.cjs"),T=require("../components/display/status-dot.cjs"),E=require("../components/display/status-legend.cjs"),D=require("../components/display/timeline.cjs"),O=require("../components/display/user-card.cjs"),k=require("../components/layout/stat-card.cjs"),A=require("../components/command/command-palette.cjs"),j=require("../components/calendar/calendar.cjs"),M=require("../components/upload/file-upload.cjs"),N=require("../components/upload/file-dropzone.cjs"),P=require("../components/wizard/stepper.cjs"),F=require("../components/wizard/wizard.cjs"),I=require("../components/layout/app-header.cjs"),L=require("../components/patterns/resource-detail-page.cjs"),R=require("../components/patterns/resource-page.cjs");let z=require("react");z=e.__toESM(z,1);let B=require("lucide-react"),V=require("react/jsx-runtime");function H(e,t,n){return e.kind===`inputs`?(0,V.jsx)(W,{slug:e.slug,state:t,setState:n}):e.kind===`form`?(0,V.jsx)(G,{state:t,setState:n}):e.kind===`overlay`?(0,V.jsx)(K,{slug:e.slug}):e.kind===`navigation`?(0,V.jsx)(q,{slug:e.slug}):e.kind===`feedback`?(0,V.jsx)(J,{slug:e.slug}):e.kind===`display`?(0,V.jsx)(Y,{slug:e.slug}):e.kind===`actions`?(0,V.jsx)(X,{slug:e.slug,state:t,setState:n}):e.kind===`layout`?(0,V.jsx)(Z,{slug:e.slug}):e.kind===`data-table`?(0,V.jsx)(Q,{slug:e.slug}):e.kind===`calendar`?(0,V.jsx)($,{}):e.kind===`upload`?(0,V.jsx)(te,{slug:e.slug}):e.kind===`wizard`?(0,V.jsx)(ne,{slug:e.slug}):e.kind===`patterns`?(0,V.jsx)(re,{slug:e.slug}):null}function U({tone:e,children:t}){return(0,V.jsx)(a.Badge,{variant:e===`danger`?`destructive`:e===`warning`?`outline`:`secondary`,children:t})}function W({slug:e,state:t,setState:n}){let r=t.textValue,a=e=>n({textValue:e});return e===`search-input`?(0,V.jsx)(i.Input,{type:`search`,value:r,onValueChange:a,resultCount:12,shortcut:`Ctrl K`,placeholder:`Search customers...`}):e===`password-input`?(0,V.jsx)(i.Input,{kind:`password`,value:`secret-token`,onValueChange:a,placeholder:`Password`}):e===`clearable-input`?(0,V.jsx)(i.Input,{value:r,onValueChange:a,placeholder:`Clearable input`,clearable:!0}):e===`slider`?(0,V.jsx)(_.Slider,{label:`Density`,description:`Tune content density.`,defaultValue:64,showValue:!0}):e===`range-slider`?(0,V.jsx)(_.RangeSlider,{label:`Revenue range`,description:`Filter between two values.`,defaultValue:[20,80],showValue:!0}):e===`rating`?(0,V.jsx)(g.Rating,{defaultValue:4,labels:{clear:`Reset`}}):e===`otp-input`?(0,V.jsx)(h.OtpInput,{value:r.replace(/\D/g,``).slice(0,6),onValueChange:a}):e===`color-input`?(0,V.jsx)(i.Input,{type:`color`,defaultValue:`#22c55e`,"aria-label":`Accent color`}):e===`tag-input`?(0,V.jsx)(v.TagInput,{defaultValue:[`dashboard`,`beta`,`ops`],placeholder:`Add label`}):(0,V.jsx)(i.Input,{value:r,onChange:e=>n({textValue:e.currentTarget.value}),placeholder:`Unified input`})}function G({state:e,setState:t}){return(0,V.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,V.jsxs)(`label`,{className:`grid gap-2`,children:[(0,V.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Email address`}),(0,V.jsx)(i.Input,{value:e.textValue,onChange:e=>t({textValue:e.currentTarget.value})}),(0,V.jsx)(`span`,{className:`text-xs text-[color:var(--aui-page-muted)]`,children:`Form wrappers keep label, hint and error spacing consistent.`})]}),(0,V.jsxs)(`label`,{className:`grid gap-2`,children:[(0,V.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Status`}),(0,V.jsx)(i.Input,{type:`search`,value:`Active customers`,resultCount:7,readOnly:!0}),(0,V.jsx)(`span`,{className:`text-xs text-emerald-500`,children:`Ready to submit`})]})]})}function K({slug:e}){return e===`dialog-actions`?(0,V.jsx)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:(0,V.jsxs)(p.DialogActions,{align:`end`,children:[(0,V.jsx)(p.DialogActionButton,{variant:`ghost`,children:`Cancel`}),(0,V.jsx)(p.DialogActionButton,{variant:`outline`,children:`Save draft`}),(0,V.jsx)(p.DialogActionButton,{children:`Publish`})]})}):e===`alert-dialog`?(0,V.jsx)(ee.AlertDialog,{open:!1,title:`Archive invoice?`,description:`This keeps the invoice readable but removes it from active queues.`,children:(0,V.jsx)(t.Button,{variant:`destructive`,children:`Open alert`})}):e===`drawer`?(0,V.jsx)(m.Drawer,{open:!1,trigger:(0,V.jsx)(t.Button,{variant:`outline`,children:`Open drawer`}),title:`Customer details`,description:`Side panel for fast inspection.`,children:(0,V.jsx)(x.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Azamat UI`}]})}):(0,V.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,V.jsx)(t.Button,{variant:`ghost`,children:`Cancel`}),(0,V.jsx)(t.Button,{variant:`outline`,children:`Save draft`}),(0,V.jsx)(t.Button,{children:`Publish`})]})}function q({slug:e}){return e===`pagination`?(0,V.jsx)(u.Pagination,{page:3,pageCount:9,onPageChange:()=>void 0}):e===`page-tabs`?(0,V.jsx)(l.PageTabs,{value:`overview`,variant:`pills`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`,badge:`3`}]}):e===`stepper-tabs`?(0,V.jsx)(d.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,V.jsx)(c.NavTabs,{value:`overview`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`}]})}function J({slug:e}){return e===`alert`?(0,V.jsx)(y.Alert,{tone:`warning`,title:`Review needed`,description:`Billing rules changed and one approval is pending.`,action:(0,V.jsx)(t.Button,{size:`sm`,children:`Open`})}):e===`page-state`?(0,V.jsx)(b.PageState,{title:`Workspace connected`,description:`The route is ready to accept live data and team actions.`,tone:`success`,action:(0,V.jsx)(t.Button,{size:`sm`,children:`Continue`})}):(0,V.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,V.jsx)(U,{tone:`success`,children:`Live`}),(0,V.jsx)(U,{tone:`warning`,children:`Needs review`}),(0,V.jsx)(U,{tone:`danger`,children:`Blocked`}),(0,V.jsx)(U,{tone:`info`,children:`Queued`})]})}function Y({slug:e}){return e===`description-list`?(0,V.jsx)(x.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,V.jsx)(U,{tone:`success`,children:`Paid`})},{key:`owner`,label:`Owner`,value:`Finance team`}]}):e===`progress`?(0,V.jsx)(C.Progress,{label:`Migration progress`,description:`Production rollout`,value:68,tone:`success`,showValue:!0}):e===`progress-circle`?(0,V.jsx)(w.ProgressCircle,{value:72,label:`Profile completed`}):e===`timeline`?(0,V.jsx)(D.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,V.jsx)(k.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,V.jsx)(B.LayoutDashboardIcon,{})}):e===`status-dot`?(0,V.jsxs)(`div`,{className:`grid gap-3`,children:[(0,V.jsx)(T.StatusDot,{tone:`success`,pulse:!0,label:`API healthy`}),(0,V.jsx)(T.StatusDot,{tone:`warning`,label:`Sync delayed`}),(0,V.jsx)(T.StatusDot,{tone:`danger`,label:`Webhook failed`})]}):e===`delta-badge`?(0,V.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,V.jsx)(a.Badge,{variant:`secondary`,children:`+12.4%`}),(0,V.jsx)(a.Badge,{variant:`outline`,children:`-3.1%`}),(0,V.jsx)(a.Badge,{variant:`destructive`,children:`Risk`})]}):e===`notification-center`?(0,V.jsx)(S.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,V.jsx)(S.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,V.jsx)(E.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,V.jsx)(k.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,V.jsx)(B.LayoutDashboardIcon,{})}):(0,V.jsx)(O.UserCard,{name:`Azamat Jurayev`,description:`Product designer and maintainer`,meta:`Admin workspace`,actions:(0,V.jsx)(t.Button,{size:`sm`,children:`Invite`})})}function X({slug:e,state:a,setState:s}){return e===`filter-bar`?(0,V.jsx)(f.FilterBar,{search:(0,V.jsx)(i.Input,{type:`search`,value:a.textValue,onValueChange:e=>s({textValue:e}),placeholder:`Search invoices...`}),onReset:()=>s({textValue:``}),chips:[{key:`status`,label:`Status`,value:`Active`,tone:`success`},{key:`owner`,label:`Owner`,value:`Azamat`,tone:`default`}],onRemoveChip:()=>void 0,filters:(0,V.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,V.jsx)(B.FilterIcon,{"data-icon":`inline-start`}),`Status`]}),actions:(0,V.jsx)(t.Button,{size:`sm`,children:`Export`})}):e===`command-palette`?(0,V.jsxs)(`div`,{className:`grid gap-3`,children:[(0,V.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,V.jsx)(B.SearchIcon,{className:`size-4 text-[color:var(--aui-page-muted)]`}),(0,V.jsx)(`span`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Command palette preview: search routes, components and actions.`})]}),(0,V.jsx)(A.CommandPalette,{open:!1,onOpenChange:()=>void 0,groups:[{id:`navigation`,label:`Navigation`,items:[{id:`docs`,label:`Open docs`,icon:(0,V.jsx)(B.SearchIcon,{className:`size-4`})},{id:`components`,label:`Browse components`,icon:(0,V.jsx)(B.LayoutDashboardIcon,{className:`size-4`})}]}]})]}):e===`button-group`?(0,V.jsx)(r.ButtonGroup,{items:[{key:`day`,label:`Day`},{key:`week`,label:`Week`},{key:`month`,label:`Month`}]}):e===`quick-action-grid`?(0,V.jsx)(o.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,V.jsxs)(`div`,{className:`grid gap-3`,children:[(0,V.jsx)(f.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,V.jsx)(r.ButtonGroup,{attached:!1,items:[{key:`default`,label:`Default`,variant:`secondary`},{key:`billing`,label:`Billing`},{key:`ops`,label:`Operations`}]})]}):(0,V.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,V.jsxs)(`div`,{children:[(0,V.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Invoice #4821`}),(0,V.jsx)(`p`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Pending approval`})]}),(0,V.jsx)(n.ActionMenu,{label:`Actions`,actions:[{key:`open`,label:`Open`,icon:(0,V.jsx)(B.ChevronRightIcon,{className:`size-4`})},{key:`download`,label:`Download`,icon:(0,V.jsx)(B.DownloadIcon,{className:`size-4`})},{key:`archive`,label:`Archive`,icon:(0,V.jsx)(B.ArchiveIcon,{className:`size-4`}),destructive:!0}],trigger:(0,V.jsx)(t.Button,{variant:`outline`,size:`icon-sm`,"aria-label":`Open actions`,children:(0,V.jsx)(B.MoreHorizontalIcon,{})})})]})}function Z({slug:e}){return e===`app-header`?(0,V.jsx)(I.AppHeader,{sticky:!1,left:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(B.LayoutDashboardIcon,{className:`size-4`}),(0,V.jsx)(`span`,{className:`font-medium`,children:`Dashboard`})]}),center:(0,V.jsx)(a.Badge,{variant:`secondary`,children:`Preview`}),right:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Notifications`,children:(0,V.jsx)(B.BellIcon,{})}),(0,V.jsx)(t.Button,{size:`sm`,children:`Deploy`})]}),className:`rounded-xl border border-[color:var(--aui-divider)]`}):e===`section-header`?(0,V.jsx)(s.SectionHeader,{eyebrow:`Components`,title:`Production-ready surfaces`,description:`SectionHeader keeps copy, metadata and actions aligned.`,actions:(0,V.jsx)(t.Button,{size:`sm`,children:`Add component`})}):(0,V.jsx)(k.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 Q({slug:e}){return(0,V.jsxs)(`div`,{className:`overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3`,children:[(0,V.jsx)(i.Input,{type:`search`,value:``,placeholder:`Search rows...`,className:`max-w-xs`,readOnly:!0}),(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,V.jsx)(B.FilterIcon,{"data-icon":`inline-start`}),`Filters`]}),(0,V.jsx)(t.Button,{size:`sm`,children:`Create`})]})]}),(0,V.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,V.jsx)(`span`,{children:(0,V.jsx)(`input`,{type:`checkbox`,"aria-label":`Select rows`})}),(0,V.jsx)(`span`,{children:`Name`}),(0,V.jsx)(`span`,{children:`Status`}),(0,V.jsx)(`span`,{children:`Actions`})]}),[`Azamat UI`,`Registry`,`Dashboard`].map((e,n)=>(0,V.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,V.jsx)(`span`,{children:(0,V.jsx)(`input`,{type:`checkbox`,"aria-label":`Select ${e}`,defaultChecked:n===0})}),(0,V.jsx)(`span`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:e}),(0,V.jsx)(`span`,{children:(0,V.jsx)(U,{tone:n===2?`warning`:`success`,children:n===2?`Review`:`Live`})}),(0,V.jsx)(`span`,{children:(0,V.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Row actions`,children:(0,V.jsx)(B.MoreHorizontalIcon,{})})})]},e)),(0,V.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,V.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,V.jsx)(u.Pagination,{page:1,pageCount:4,onPageChange:()=>void 0,showEdges:!1})]})]})}function $(){return(0,V.jsx)(j.Calendar,{value:`2026-06-18`,defaultMonth:`2026-06-01`,onValueChange:()=>void 0})}function te({slug:e}){return e===`file-dropzone`?(0,V.jsx)(N.FileDropzone,{label:`Drop contract files`,description:`PDF, PNG or CSV up to 10MB.`}):e===`file-upload`?(0,V.jsx)(M.FileUpload,{dropzoneLabel:`Upload documents`,dropzoneDescription:`Drag files here or choose from your device.`,buttonLabel:`Choose files`,helperText:`Supports PDF, CSV and images.`}):(0,V.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[160px_1fr] md:items-center`,children:[(0,V.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,V.jsx)(B.UploadCloudIcon,{className:`size-8 text-[color:var(--aui-page-muted)]`})}),(0,V.jsx)(N.FileDropzone,{label:`Upload product image`,description:`Shows the image-upload flow without custom CSS.`,accept:`image/*`})]})}function ne({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,V.jsx)(P.Stepper,{steps:t,currentStep:`billing`,onStepChange:()=>void 0}):(0,V.jsx)(F.Wizard,{steps:t,currentStep:`billing`,onNext:()=>void 0,onPrevious:()=>void 0,onFinish:()=>void 0,children:(0,V.jsxs)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,V.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Billing setup`}),(0,V.jsx)(`p`,{className:`mt-1 text-sm text-[color:var(--aui-page-muted)]`,children:`Wizard combines steps, content and footer controls.`})]})})}function re({slug:e}){return e===`resource-detail-page`?(0,V.jsx)(L.ResourceDetailPage,{title:`Customer profile`,description:`ResourceDetailPage organizes detail screens.`,actions:(0,V.jsx)(t.Button,{size:`sm`,children:`Edit`}),children:(0,V.jsx)(R.ResourcePageSection,{title:`Account`,children:(0,V.jsx)(x.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Design team`}]})})}):(0,V.jsx)(R.ResourcePage,{title:`Customers`,description:`ResourcePage combines header, stats, filters and sections.`,actions:(0,V.jsx)(t.Button,{size:`sm`,children:`New customer`}),stats:(0,V.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,V.jsx)(k.StatCard,{title:`Active`,value:`2,418`,trend:{value:`+8%`,tone:`success`}}),(0,V.jsx)(k.StatCard,{title:`Health`,value:`94%`,trend:{value:`Stable`,tone:`default`}})]}),filters:(0,V.jsx)(f.FilterBar,{search:(0,V.jsx)(i.Input,{type:`search`,value:``,placeholder:`Search...`,readOnly:!0}),activeCount:1}),children:(0,V.jsx)(R.ResourcePageSection,{title:`Recent activity`,children:(0,V.jsx)(D.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=H;