@bzync/rui 0.0.3

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 (263) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +115 -0
  3. package/dist/autocomplete-CaysJRpk.cjs +1 -0
  4. package/dist/autocomplete-CfbfpcO4.js +453 -0
  5. package/dist/calendar-Bnld4G59.cjs +1 -0
  6. package/dist/calendar-CdICOROs.js +573 -0
  7. package/dist/charts-CxEy2c3M.js +1248 -0
  8. package/dist/charts-UDqS1BH1.cjs +1 -0
  9. package/dist/cn-BdjraxxU.cjs +1 -0
  10. package/dist/cn-DpgY2leY.js +1736 -0
  11. package/dist/component-styles-Ce56hn9T.js +16 -0
  12. package/dist/component-styles-TkZ7v6Ef.cjs +1 -0
  13. package/dist/components/accordion.cjs +1 -0
  14. package/dist/components/accordion.d.ts +22 -0
  15. package/dist/components/accordion.js +122 -0
  16. package/dist/components/alert.cjs +1 -0
  17. package/dist/components/alert.d.ts +13 -0
  18. package/dist/components/alert.js +165 -0
  19. package/dist/components/auth-backdrop.cjs +1 -0
  20. package/dist/components/auth-backdrop.d.ts +7 -0
  21. package/dist/components/auth-backdrop.js +10 -0
  22. package/dist/components/autocomplete/dropdown.d.ts +21 -0
  23. package/dist/components/autocomplete/icons.d.ts +8 -0
  24. package/dist/components/autocomplete/multi-trigger.d.ts +25 -0
  25. package/dist/components/autocomplete/single-trigger.d.ts +21 -0
  26. package/dist/components/autocomplete/types.d.ts +34 -0
  27. package/dist/components/autocomplete.cjs +1 -0
  28. package/dist/components/autocomplete.d.ts +5 -0
  29. package/dist/components/autocomplete.js +3 -0
  30. package/dist/components/avatar.cjs +1 -0
  31. package/dist/components/avatar.d.ts +17 -0
  32. package/dist/components/avatar.js +56 -0
  33. package/dist/components/badge.cjs +1 -0
  34. package/dist/components/badge.d.ts +12 -0
  35. package/dist/components/badge.js +32 -0
  36. package/dist/components/billing-interval-toggle.cjs +1 -0
  37. package/dist/components/billing-interval-toggle.d.ts +18 -0
  38. package/dist/components/billing-interval-toggle.js +39 -0
  39. package/dist/components/breadcrumb.cjs +1 -0
  40. package/dist/components/breadcrumb.d.ts +11 -0
  41. package/dist/components/breadcrumb.js +52 -0
  42. package/dist/components/button.cjs +1 -0
  43. package/dist/components/button.d.ts +17 -0
  44. package/dist/components/button.js +90 -0
  45. package/dist/components/calendar/month-view.d.ts +17 -0
  46. package/dist/components/calendar/types.d.ts +54 -0
  47. package/dist/components/calendar/week-view.d.ts +17 -0
  48. package/dist/components/calendar.cjs +1 -0
  49. package/dist/components/calendar.d.ts +3 -0
  50. package/dist/components/calendar.js +3 -0
  51. package/dist/components/callout.cjs +1 -0
  52. package/dist/components/callout.d.ts +9 -0
  53. package/dist/components/callout.js +131 -0
  54. package/dist/components/card.cjs +1 -0
  55. package/dist/components/card.d.ts +17 -0
  56. package/dist/components/card.js +59 -0
  57. package/dist/components/charts/bar-chart.d.ts +16 -0
  58. package/dist/components/charts/donut-chart.d.ts +10 -0
  59. package/dist/components/charts/funnel-chart.d.ts +8 -0
  60. package/dist/components/charts/gantt-chart.d.ts +15 -0
  61. package/dist/components/charts/heatmap-chart.d.ts +10 -0
  62. package/dist/components/charts/index.d.ts +11 -0
  63. package/dist/components/charts/line-chart.d.ts +16 -0
  64. package/dist/components/charts/multi-line-chart.d.ts +18 -0
  65. package/dist/components/charts/radar-chart.d.ts +13 -0
  66. package/dist/components/charts/scatter-chart.d.ts +24 -0
  67. package/dist/components/charts/shared.d.ts +15 -0
  68. package/dist/components/charts/waterfall-chart.d.ts +14 -0
  69. package/dist/components/charts.cjs +1 -0
  70. package/dist/components/charts.d.ts +2 -0
  71. package/dist/components/charts.js +2 -0
  72. package/dist/components/checkbox.cjs +1 -0
  73. package/dist/components/checkbox.d.ts +9 -0
  74. package/dist/components/checkbox.js +135 -0
  75. package/dist/components/code.cjs +7 -0
  76. package/dist/components/code.d.ts +23 -0
  77. package/dist/components/code.js +276 -0
  78. package/dist/components/command.cjs +1 -0
  79. package/dist/components/command.d.ts +29 -0
  80. package/dist/components/command.js +208 -0
  81. package/dist/components/confirm-dialog.cjs +1 -0
  82. package/dist/components/confirm-dialog.d.ts +14 -0
  83. package/dist/components/confirm-dialog.js +69 -0
  84. package/dist/components/copy-button.cjs +1 -0
  85. package/dist/components/copy-button.d.ts +8 -0
  86. package/dist/components/copy-button.js +87 -0
  87. package/dist/components/datatable/pagination-footer.d.ts +10 -0
  88. package/dist/components/datatable/rows-dropdown.d.ts +5 -0
  89. package/dist/components/datatable/skeleton-row.d.ts +3 -0
  90. package/dist/components/datatable/sort-icon.d.ts +4 -0
  91. package/dist/components/datatable/types.d.ts +30 -0
  92. package/dist/components/datatable.cjs +1 -0
  93. package/dist/components/datatable.d.ts +9 -0
  94. package/dist/components/datatable.js +3 -0
  95. package/dist/components/datepicker.cjs +1 -0
  96. package/dist/components/datepicker.d.ts +14 -0
  97. package/dist/components/datepicker.js +267 -0
  98. package/dist/components/drawer.cjs +1 -0
  99. package/dist/components/drawer.d.ts +18 -0
  100. package/dist/components/drawer.js +3 -0
  101. package/dist/components/dropdown-menu.cjs +1 -0
  102. package/dist/components/dropdown-menu.d.ts +26 -0
  103. package/dist/components/dropdown-menu.js +122 -0
  104. package/dist/components/empty-state.cjs +1 -0
  105. package/dist/components/empty-state.d.ts +10 -0
  106. package/dist/components/empty-state.js +68 -0
  107. package/dist/components/error-state.cjs +1 -0
  108. package/dist/components/error-state.d.ts +10 -0
  109. package/dist/components/error-state.js +80 -0
  110. package/dist/components/file-upload.cjs +1 -0
  111. package/dist/components/file-upload.d.ts +10 -0
  112. package/dist/components/file-upload.js +173 -0
  113. package/dist/components/form-field.cjs +1 -0
  114. package/dist/components/form-field.d.ts +10 -0
  115. package/dist/components/form-field.js +36 -0
  116. package/dist/components/info-button.cjs +1 -0
  117. package/dist/components/info-button.d.ts +4 -0
  118. package/dist/components/info-button.js +32 -0
  119. package/dist/components/input.cjs +1 -0
  120. package/dist/components/input.d.ts +19 -0
  121. package/dist/components/input.js +117 -0
  122. package/dist/components/kbd.cjs +1 -0
  123. package/dist/components/kbd.d.ts +6 -0
  124. package/dist/components/kbd.js +16 -0
  125. package/dist/components/label.cjs +1 -0
  126. package/dist/components/label.d.ts +6 -0
  127. package/dist/components/label.js +31 -0
  128. package/dist/components/layout.cjs +1 -0
  129. package/dist/components/layout.d.ts +51 -0
  130. package/dist/components/layout.js +117 -0
  131. package/dist/components/link.cjs +1 -0
  132. package/dist/components/link.d.ts +9 -0
  133. package/dist/components/link.js +48 -0
  134. package/dist/components/list.cjs +1 -0
  135. package/dist/components/list.d.ts +13 -0
  136. package/dist/components/list.js +46 -0
  137. package/dist/components/modal.cjs +1 -0
  138. package/dist/components/modal.d.ts +31 -0
  139. package/dist/components/modal.js +219 -0
  140. package/dist/components/navigation.cjs +1 -0
  141. package/dist/components/navigation.d.ts +42 -0
  142. package/dist/components/navigation.js +127 -0
  143. package/dist/components/number-input.cjs +1 -0
  144. package/dist/components/number-input.d.ts +16 -0
  145. package/dist/components/number-input.js +142 -0
  146. package/dist/components/otp-input.cjs +1 -0
  147. package/dist/components/otp-input.d.ts +13 -0
  148. package/dist/components/otp-input.js +71 -0
  149. package/dist/components/pagination.cjs +1 -0
  150. package/dist/components/pagination.d.ts +8 -0
  151. package/dist/components/pagination.js +77 -0
  152. package/dist/components/popover.cjs +1 -0
  153. package/dist/components/popover.d.ts +16 -0
  154. package/dist/components/popover.js +115 -0
  155. package/dist/components/progressbar.cjs +1 -0
  156. package/dist/components/progressbar.d.ts +15 -0
  157. package/dist/components/progressbar.js +108 -0
  158. package/dist/components/radio.cjs +1 -0
  159. package/dist/components/radio.d.ts +22 -0
  160. package/dist/components/radio.js +96 -0
  161. package/dist/components/richtext.cjs +1 -0
  162. package/dist/components/richtext.d.ts +10 -0
  163. package/dist/components/richtext.js +370 -0
  164. package/dist/components/select/option-list.d.ts +16 -0
  165. package/dist/components/select/select-multi.d.ts +2 -0
  166. package/dist/components/select/select-single.d.ts +2 -0
  167. package/dist/components/select/types.d.ts +54 -0
  168. package/dist/components/select/utils.d.ts +10 -0
  169. package/dist/components/select.cjs +1 -0
  170. package/dist/components/select.d.ts +3 -0
  171. package/dist/components/select.js +2 -0
  172. package/dist/components/seo.cjs +1 -0
  173. package/dist/components/seo.d.ts +45 -0
  174. package/dist/components/seo.js +64 -0
  175. package/dist/components/separator.cjs +1 -0
  176. package/dist/components/separator.d.ts +6 -0
  177. package/dist/components/separator.js +25 -0
  178. package/dist/components/skeleton.cjs +1 -0
  179. package/dist/components/skeleton.d.ts +37 -0
  180. package/dist/components/skeleton.js +146 -0
  181. package/dist/components/slider.cjs +1 -0
  182. package/dist/components/slider.d.ts +12 -0
  183. package/dist/components/slider.js +72 -0
  184. package/dist/components/snackbar.cjs +1 -0
  185. package/dist/components/snackbar.d.ts +35 -0
  186. package/dist/components/snackbar.js +220 -0
  187. package/dist/components/spinner.cjs +1 -0
  188. package/dist/components/spinner.d.ts +7 -0
  189. package/dist/components/spinner.js +31 -0
  190. package/dist/components/stat.cjs +1 -0
  191. package/dist/components/stat.d.ts +18 -0
  192. package/dist/components/stat.js +90 -0
  193. package/dist/components/status-dot.cjs +1 -0
  194. package/dist/components/status-dot.d.ts +10 -0
  195. package/dist/components/status-dot.js +29 -0
  196. package/dist/components/stepper.cjs +1 -0
  197. package/dist/components/stepper.d.ts +11 -0
  198. package/dist/components/stepper.js +67 -0
  199. package/dist/components/switch.cjs +1 -0
  200. package/dist/components/switch.d.ts +8 -0
  201. package/dist/components/switch.js +79 -0
  202. package/dist/components/table.cjs +1 -0
  203. package/dist/components/table.d.ts +12 -0
  204. package/dist/components/table.js +54 -0
  205. package/dist/components/tabs.cjs +1 -0
  206. package/dist/components/tabs.d.ts +22 -0
  207. package/dist/components/tabs.js +120 -0
  208. package/dist/components/tag.cjs +1 -0
  209. package/dist/components/tag.d.ts +12 -0
  210. package/dist/components/tag.js +58 -0
  211. package/dist/components/terminal/fs.d.ts +10 -0
  212. package/dist/components/terminal/shell-commands-sim.d.ts +5 -0
  213. package/dist/components/terminal/shell-commands.d.ts +16 -0
  214. package/dist/components/terminal/shell-run.d.ts +11 -0
  215. package/dist/components/terminal/terminal-block.d.ts +13 -0
  216. package/dist/components/terminal/terminal-emulator.d.ts +10 -0
  217. package/dist/components/terminal/types.d.ts +35 -0
  218. package/dist/components/terminal.cjs +1 -0
  219. package/dist/components/terminal.d.ts +2 -0
  220. package/dist/components/terminal.js +2 -0
  221. package/dist/components/textarea.cjs +1 -0
  222. package/dist/components/textarea.d.ts +13 -0
  223. package/dist/components/textarea.js +54 -0
  224. package/dist/components/theme-provider.cjs +1 -0
  225. package/dist/components/theme-provider.d.ts +89 -0
  226. package/dist/components/theme-provider.js +93 -0
  227. package/dist/components/theme-toggle.cjs +1 -0
  228. package/dist/components/theme-toggle.d.ts +9 -0
  229. package/dist/components/theme-toggle.js +4 -0
  230. package/dist/components/timeline.cjs +1 -0
  231. package/dist/components/timeline.d.ts +14 -0
  232. package/dist/components/timeline.js +54 -0
  233. package/dist/components/tooltip.cjs +1 -0
  234. package/dist/components/tooltip.d.ts +11 -0
  235. package/dist/components/tooltip.js +84 -0
  236. package/dist/components/tree.cjs +1 -0
  237. package/dist/components/tree.d.ts +16 -0
  238. package/dist/components/tree.js +92 -0
  239. package/dist/createLucideIcon-DDY8HuQR.js +42 -0
  240. package/dist/createLucideIcon-b_X_3fj-.cjs +1 -0
  241. package/dist/datatable-BB3v__r5.cjs +1 -0
  242. package/dist/datatable-DlBhUhuO.js +316 -0
  243. package/dist/drawer-Cbuh6qdL.cjs +1 -0
  244. package/dist/drawer-CqkVZT9Y.js +189 -0
  245. package/dist/focus-Dk1YWVPN.js +42 -0
  246. package/dist/focus-DmG6Ge7X.cjs +1 -0
  247. package/dist/index.cjs +1 -0
  248. package/dist/index.d.ts +70 -0
  249. package/dist/index.js +215 -0
  250. package/dist/lib/cn.d.ts +2 -0
  251. package/dist/lib/component-styles.d.ts +10 -0
  252. package/dist/select-Ch5fp1GT.js +461 -0
  253. package/dist/select-q0YCMhBP.cjs +1 -0
  254. package/dist/styles.css +3 -0
  255. package/dist/terminal-BOR2cFi1.js +1060 -0
  256. package/dist/terminal-CpraMs50.cjs +77 -0
  257. package/dist/theme-toggle-CnoiorKV.js +71 -0
  258. package/dist/theme-toggle-Dp1-24zH.cjs +1 -0
  259. package/dist/use-event-callback-DGkfO_uu.js +10 -0
  260. package/dist/use-event-callback-Du9_9eAi.cjs +1 -0
  261. package/dist/utils-CQ8pvCtk.js +72 -0
  262. package/dist/utils-DOFJTw8o.cjs +1 -0
  263. package/package.json +88 -0
@@ -0,0 +1,173 @@
1
+ "use client";
2
+ import { t as e } from "../cn-DpgY2leY.js";
3
+ import { o as t } from "../component-styles-Ce56hn9T.js";
4
+ import { AnimatePresence as n, motion as r } from "framer-motion";
5
+ import { forwardRef as i, useId as a, useRef as o, useState as s } from "react";
6
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ //#region src/components/file-upload.tsx
8
+ var u = i(({ className: i, label: u, hint: d, error: f, accept: p, maxSizeMB: m, onFilesChange: h, disabled: g, multiple: _, id: v, ...y }, b) => {
9
+ let [x, S] = s(!1), [C, w] = s([]), [T, E] = s(""), D = o(null), O = a(), k = v ?? O, A = `${k}-message`, j = m && (m >= 1024 ? `${m / 1024}GB` : `${m}MB`);
10
+ function M(e) {
11
+ if (!e) return;
12
+ let t = Array.from(e);
13
+ if (m) {
14
+ let e = t.find((e) => e.size > m * 1024 * 1024);
15
+ if (e) {
16
+ E(`${e.name} exceeds ${j}`);
17
+ return;
18
+ }
19
+ }
20
+ E("");
21
+ let n = _ ? [...C, ...t] : t;
22
+ w(n), h?.(n);
23
+ }
24
+ function N(e) {
25
+ let t = C.filter((t, n) => n !== e);
26
+ w(t), h?.(t);
27
+ }
28
+ function P(e) {
29
+ e.preventDefault(), S(!1), !g && M(e.dataTransfer.files);
30
+ }
31
+ let F = f ?? T;
32
+ return /* @__PURE__ */ l("div", {
33
+ className: e(t, i),
34
+ children: [
35
+ u && /* @__PURE__ */ c("label", {
36
+ htmlFor: k,
37
+ className: "text-sm font-medium leading-5 text-foreground",
38
+ children: u
39
+ }),
40
+ /* @__PURE__ */ l("label", {
41
+ htmlFor: k,
42
+ onDragOver: (e) => {
43
+ e.preventDefault(), g || S(!0);
44
+ },
45
+ onDragLeave: () => S(!1),
46
+ onDrop: P,
47
+ className: e("relative flex flex-col items-center justify-center gap-2 rounded-[var(--radius-lg)] border border-dashed px-4 py-7 text-center cursor-pointer transition-colors focus-within:ring-2 focus-within:ring-focus-ring/25", x ? "border-accent-500/60 bg-accent-500/6" : F ? "border-red-500/40 bg-red-500/4" : "border-border-strong bg-surface-muted/50 hover:border-accent-500/60 hover:bg-muted", g && "opacity-50 cursor-not-allowed pointer-events-none"),
48
+ children: [
49
+ /* @__PURE__ */ c("input", {
50
+ ref: (e) => {
51
+ D.current = e, typeof b == "function" ? b(e) : b && (b.current = e);
52
+ },
53
+ type: "file",
54
+ id: k,
55
+ accept: p,
56
+ multiple: _,
57
+ disabled: g,
58
+ "aria-invalid": F ? !0 : void 0,
59
+ "aria-describedby": F || d ? A : void 0,
60
+ className: "sr-only",
61
+ onChange: (e) => M(e.target.files),
62
+ ...y
63
+ }),
64
+ /* @__PURE__ */ l("svg", {
65
+ width: "24",
66
+ height: "24",
67
+ viewBox: "0 0 24 24",
68
+ fill: "none",
69
+ stroke: "currentColor",
70
+ strokeWidth: "1.5",
71
+ strokeLinecap: "round",
72
+ strokeLinejoin: "round",
73
+ className: "text-muted-foreground",
74
+ children: [
75
+ /* @__PURE__ */ c("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
76
+ /* @__PURE__ */ c("polyline", { points: "17 8 12 3 7 8" }),
77
+ /* @__PURE__ */ c("line", {
78
+ x1: "12",
79
+ y1: "3",
80
+ x2: "12",
81
+ y2: "15"
82
+ })
83
+ ]
84
+ }),
85
+ /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("p", {
86
+ className: "text-sm font-medium text-foreground",
87
+ children: ["Drop files here or ", /* @__PURE__ */ c("span", {
88
+ className: "text-accent-700 dark:text-accent-300",
89
+ children: "browse"
90
+ })]
91
+ }), (p || m) && /* @__PURE__ */ c("p", {
92
+ className: "mt-0.5 text-xs text-muted-foreground",
93
+ children: [p && `Accepts ${p}`, j && `Max ${j}`].filter(Boolean).join(" · ")
94
+ })] })
95
+ ]
96
+ }),
97
+ /* @__PURE__ */ c(n, {
98
+ initial: !1,
99
+ children: C.length > 0 && /* @__PURE__ */ c(r.ul, {
100
+ initial: {
101
+ opacity: 0,
102
+ height: 0
103
+ },
104
+ animate: {
105
+ opacity: 1,
106
+ height: "auto"
107
+ },
108
+ exit: {
109
+ opacity: 0,
110
+ height: 0
111
+ },
112
+ className: "flex flex-col gap-1 overflow-hidden",
113
+ children: C.map((t, n) => /* @__PURE__ */ l("li", {
114
+ className: "flex items-center gap-2 rounded-[var(--radius-md)] border border-border bg-surface-muted px-3 py-2",
115
+ children: [
116
+ /* @__PURE__ */ l("svg", {
117
+ width: "14",
118
+ height: "14",
119
+ viewBox: "0 0 24 24",
120
+ fill: "none",
121
+ stroke: "currentColor",
122
+ strokeWidth: "2",
123
+ strokeLinecap: "round",
124
+ strokeLinejoin: "round",
125
+ className: "text-slate-400 shrink-0",
126
+ children: [/* @__PURE__ */ c("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }), /* @__PURE__ */ c("polyline", { points: "14 2 14 8 20 8" })]
127
+ }),
128
+ /* @__PURE__ */ c("span", {
129
+ className: "min-w-0 flex-1 truncate text-xs text-foreground",
130
+ children: t.name
131
+ }),
132
+ /* @__PURE__ */ l("span", {
133
+ className: "shrink-0 text-[10px] text-muted-foreground",
134
+ children: [(t.size / 1024).toFixed(0), "KB"]
135
+ }),
136
+ /* @__PURE__ */ c("button", {
137
+ type: "button",
138
+ onClick: () => N(n),
139
+ "aria-label": `Remove ${t.name}`,
140
+ className: e("shrink-0 rounded-sm text-muted-foreground hover:text-destructive transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring/35 focus-visible:ring-offset-2 focus-visible:ring-offset-bg"),
141
+ children: /* @__PURE__ */ c("svg", {
142
+ width: "12",
143
+ height: "12",
144
+ viewBox: "0 0 24 24",
145
+ fill: "none",
146
+ stroke: "currentColor",
147
+ strokeWidth: "2.5",
148
+ strokeLinecap: "round",
149
+ strokeLinejoin: "round",
150
+ children: /* @__PURE__ */ c("path", { d: "M18 6 6 18M6 6l12 12" })
151
+ })
152
+ })
153
+ ]
154
+ }, `${t.name}-${n}`))
155
+ })
156
+ }),
157
+ F && /* @__PURE__ */ c("p", {
158
+ id: A,
159
+ "aria-live": "polite",
160
+ className: "text-xs leading-5 text-destructive",
161
+ children: F
162
+ }),
163
+ d && !F && /* @__PURE__ */ c("p", {
164
+ id: A,
165
+ className: "text-xs leading-5 text-muted-foreground",
166
+ children: d
167
+ })
168
+ ]
169
+ });
170
+ });
171
+ u.displayName = "FileUpload";
172
+ //#endregion
173
+ export { u as FileUpload };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs"),t=require("../component-styles-TkZ7v6Ef.cjs");let n=require("react/jsx-runtime");function r({label:r,hint:i,error:a,required:o,htmlFor:s,className:c,children:l,...u}){return(0,n.jsxs)(`div`,{className:e.t(t.o,c),...u,children:[r&&(0,n.jsxs)(`label`,{htmlFor:s,className:e.t(`flex items-center gap-1`,`text-sm font-medium leading-5 text-foreground`),children:[r,o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{"aria-hidden":`true`,className:`text-destructive`,children:`*`}),(0,n.jsx)(`span`,{className:`sr-only`,children:` (required)`})]})]}),l,a&&(0,n.jsx)(`p`,{"aria-live":`polite`,className:`text-xs leading-5 text-destructive`,children:a}),i&&!a&&(0,n.jsx)(`p`,{className:`text-xs leading-5 text-muted-foreground`,children:i})]})}exports.FormField=r;
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
3
+ label?: ReactNode;
4
+ hint?: ReactNode;
5
+ error?: string;
6
+ required?: boolean;
7
+ htmlFor?: string;
8
+ children: ReactNode;
9
+ }
10
+ export declare function FormField({ label, hint, error, required, htmlFor, className, children, ...props }: FormFieldProps): import("react").JSX.Element;
@@ -0,0 +1,36 @@
1
+ import { t as e } from "../cn-DpgY2leY.js";
2
+ import { o as t } from "../component-styles-Ce56hn9T.js";
3
+ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region src/components/form-field.tsx
5
+ function a({ label: a, hint: o, error: s, required: c, htmlFor: l, className: u, children: d, ...f }) {
6
+ return /* @__PURE__ */ i("div", {
7
+ className: e(t, u),
8
+ ...f,
9
+ children: [
10
+ a && /* @__PURE__ */ i("label", {
11
+ htmlFor: l,
12
+ className: e("flex items-center gap-1", "text-sm font-medium leading-5 text-foreground"),
13
+ children: [a, c && /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("span", {
14
+ "aria-hidden": "true",
15
+ className: "text-destructive",
16
+ children: "*"
17
+ }), /* @__PURE__ */ r("span", {
18
+ className: "sr-only",
19
+ children: " (required)"
20
+ })] })]
21
+ }),
22
+ d,
23
+ s && /* @__PURE__ */ r("p", {
24
+ "aria-live": "polite",
25
+ className: "text-xs leading-5 text-destructive",
26
+ children: s
27
+ }),
28
+ o && !s && /* @__PURE__ */ r("p", {
29
+ className: "text-xs leading-5 text-muted-foreground",
30
+ children: o
31
+ })
32
+ ]
33
+ });
34
+ }
35
+ //#endregion
36
+ export { a as FormField };
@@ -0,0 +1 @@
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react/jsx-runtime");function t({onClick:t,label:n}){return(0,e.jsx)(`button`,{type:`button`,onClick:t,className:`text-slate-400 hover:text-slate-600 dark:hover:text-slate-300 transition-colors`,"aria-label":n,children:(0,e.jsxs)(`svg`,{width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,e.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,e.jsx)(`path`,{d:`M12 16v-4`}),(0,e.jsx)(`path`,{d:`M12 8h.01`})]})})}exports.InfoButton=t;
@@ -0,0 +1,4 @@
1
+ export declare function InfoButton({ onClick, label }: {
2
+ onClick: () => void;
3
+ label: string;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
+ //#region src/components/info-button.tsx
4
+ function n({ onClick: n, label: r }) {
5
+ return /* @__PURE__ */ e("button", {
6
+ type: "button",
7
+ onClick: n,
8
+ className: "text-slate-400 hover:text-slate-600 dark:hover:text-slate-300 transition-colors",
9
+ "aria-label": r,
10
+ children: /* @__PURE__ */ t("svg", {
11
+ width: "13",
12
+ height: "13",
13
+ viewBox: "0 0 24 24",
14
+ fill: "none",
15
+ stroke: "currentColor",
16
+ strokeWidth: "2",
17
+ strokeLinecap: "round",
18
+ strokeLinejoin: "round",
19
+ children: [
20
+ /* @__PURE__ */ e("circle", {
21
+ cx: "12",
22
+ cy: "12",
23
+ r: "10"
24
+ }),
25
+ /* @__PURE__ */ e("path", { d: "M12 16v-4" }),
26
+ /* @__PURE__ */ e("path", { d: "M12 8h.01" })
27
+ ]
28
+ })
29
+ });
30
+ }
31
+ //#endregion
32
+ export { n as InfoButton };
@@ -0,0 +1 @@
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs"),t=require("../component-styles-TkZ7v6Ef.cjs");let n=require("react"),r=require("react/jsx-runtime");var i={sm:{wrap:`h-7 px-2 gap-1.5`,text:`text-xs`},md:{wrap:`h-9 px-3 gap-2`,text:`text-sm`},lg:{wrap:`h-10 px-3.5 gap-2.5`,text:`text-sm`}},a=(0,n.forwardRef)(({className:a,wrapperClassName:o,wrapperStyle:s,inputClassName:c,labelClassName:l,hintClassName:u,unstyled:d=!1,label:f,hint:p,error:m,prefix:h,suffix:g,size:_=`md`,id:v,autoComplete:y=`on`,style:b,required:x,...S},C)=>{let w=(0,n.useId)(),T=v??w,E=`${T}-message`,D=i[_];return d?(0,r.jsxs)(`div`,{className:e.t(t.o,o),style:s,children:[f&&(0,r.jsxs)(`label`,{htmlFor:T,className:e.t(`text-sm font-medium leading-5 text-foreground`,l),children:[f,x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`span`,{"aria-hidden":`true`,className:`ml-1 text-destructive`,children:`*`}),(0,r.jsx)(`span`,{className:`sr-only`,children:` (required)`})]})]}),(0,r.jsx)(`input`,{ref:C,id:T,required:x,"aria-invalid":m?!0:void 0,"aria-describedby":m||p?E:void 0,autoComplete:y,className:e.t(c,a),style:b,...S}),m&&(0,r.jsx)(`p`,{id:E,"aria-live":`polite`,className:e.t(`text-xs leading-5 text-destructive`,u),children:m}),p&&!m&&(0,r.jsx)(`p`,{id:E,className:e.t(`text-xs leading-5 text-muted-foreground`,u),children:p})]}):(0,r.jsxs)(`div`,{className:e.t(t.o,o),style:s,children:[f&&(0,r.jsxs)(`label`,{htmlFor:T,className:e.t(`text-sm font-medium leading-5 text-foreground`,l),children:[f,x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`span`,{"aria-hidden":`true`,className:`ml-1 text-destructive`,children:`*`}),(0,r.jsx)(`span`,{className:`sr-only`,children:` (required)`})]})]}),(0,r.jsxs)(`div`,{className:e.t(`flex items-center rounded-[var(--radius-md)]`,D.wrap,t.t,m&&`border-destructive/60 hover:border-destructive/70 focus-within:border-destructive focus-within:ring-destructive/20`),children:[h&&(0,r.jsx)(`span`,{className:e.t(`text-slate-400 dark:text-slate-500 shrink-0`,D.text),children:h}),(0,r.jsx)(`input`,{ref:C,id:T,required:x,"aria-invalid":m?!0:void 0,"aria-describedby":m||p?E:void 0,autoComplete:y,className:e.t(`flex-1 min-w-0 bg-transparent outline-none`,`text-foreground placeholder:text-muted-foreground`,`disabled:cursor-not-allowed disabled:opacity-50`,D.text,c,a),style:b,...S}),g&&(0,r.jsx)(`span`,{className:e.t(`text-slate-400 dark:text-slate-500 shrink-0`,D.text),children:g})]}),m&&(0,r.jsx)(`p`,{id:E,"aria-live":`polite`,className:e.t(`text-xs leading-5 text-destructive`,u),children:m}),p&&!m&&(0,r.jsx)(`p`,{id:E,className:e.t(`text-xs leading-5 text-muted-foreground`,u),children:p})]})});a.displayName=`Input`,exports.Input=a;
@@ -0,0 +1,19 @@
1
+ import { InputHTMLAttributes, ReactNode, CSSProperties } from 'react';
2
+ type InputSize = "sm" | "md" | "lg";
3
+ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "suffix" | "size"> {
4
+ label?: string;
5
+ hint?: string;
6
+ error?: string;
7
+ prefix?: ReactNode;
8
+ suffix?: ReactNode;
9
+ size?: InputSize;
10
+ /** Slot customization — end-to-end */
11
+ wrapperClassName?: string;
12
+ wrapperStyle?: CSSProperties;
13
+ inputClassName?: string;
14
+ labelClassName?: string;
15
+ hintClassName?: string;
16
+ unstyled?: boolean;
17
+ }
18
+ export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
19
+ export {};
@@ -0,0 +1,117 @@
1
+ "use client";
2
+ import { t as e } from "../cn-DpgY2leY.js";
3
+ import { o as t, t as n } from "../component-styles-Ce56hn9T.js";
4
+ import { forwardRef as r, useId as i } from "react";
5
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ //#region src/components/input.tsx
7
+ var c = {
8
+ sm: {
9
+ wrap: "h-7 px-2 gap-1.5",
10
+ text: "text-xs"
11
+ },
12
+ md: {
13
+ wrap: "h-9 px-3 gap-2",
14
+ text: "text-sm"
15
+ },
16
+ lg: {
17
+ wrap: "h-10 px-3.5 gap-2.5",
18
+ text: "text-sm"
19
+ }
20
+ }, l = r(({ className: r, wrapperClassName: l, wrapperStyle: u, inputClassName: d, labelClassName: f, hintClassName: p, unstyled: m = !1, label: h, hint: g, error: _, prefix: v, suffix: y, size: b = "md", id: x, autoComplete: S = "on", style: C, required: w, ...T }, E) => {
21
+ let D = i(), O = x ?? D, k = `${O}-message`, A = c[b];
22
+ return m ? /* @__PURE__ */ s("div", {
23
+ className: e(t, l),
24
+ style: u,
25
+ children: [
26
+ h && /* @__PURE__ */ s("label", {
27
+ htmlFor: O,
28
+ className: e("text-sm font-medium leading-5 text-foreground", f),
29
+ children: [h, w && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("span", {
30
+ "aria-hidden": "true",
31
+ className: "ml-1 text-destructive",
32
+ children: "*"
33
+ }), /* @__PURE__ */ o("span", {
34
+ className: "sr-only",
35
+ children: " (required)"
36
+ })] })]
37
+ }),
38
+ /* @__PURE__ */ o("input", {
39
+ ref: E,
40
+ id: O,
41
+ required: w,
42
+ "aria-invalid": _ ? !0 : void 0,
43
+ "aria-describedby": _ || g ? k : void 0,
44
+ autoComplete: S,
45
+ className: e(d, r),
46
+ style: C,
47
+ ...T
48
+ }),
49
+ _ && /* @__PURE__ */ o("p", {
50
+ id: k,
51
+ "aria-live": "polite",
52
+ className: e("text-xs leading-5 text-destructive", p),
53
+ children: _
54
+ }),
55
+ g && !_ && /* @__PURE__ */ o("p", {
56
+ id: k,
57
+ className: e("text-xs leading-5 text-muted-foreground", p),
58
+ children: g
59
+ })
60
+ ]
61
+ }) : /* @__PURE__ */ s("div", {
62
+ className: e(t, l),
63
+ style: u,
64
+ children: [
65
+ h && /* @__PURE__ */ s("label", {
66
+ htmlFor: O,
67
+ className: e("text-sm font-medium leading-5 text-foreground", f),
68
+ children: [h, w && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("span", {
69
+ "aria-hidden": "true",
70
+ className: "ml-1 text-destructive",
71
+ children: "*"
72
+ }), /* @__PURE__ */ o("span", {
73
+ className: "sr-only",
74
+ children: " (required)"
75
+ })] })]
76
+ }),
77
+ /* @__PURE__ */ s("div", {
78
+ className: e("flex items-center rounded-[var(--radius-md)]", A.wrap, n, _ && "border-destructive/60 hover:border-destructive/70 focus-within:border-destructive focus-within:ring-destructive/20"),
79
+ children: [
80
+ v && /* @__PURE__ */ o("span", {
81
+ className: e("text-slate-400 dark:text-slate-500 shrink-0", A.text),
82
+ children: v
83
+ }),
84
+ /* @__PURE__ */ o("input", {
85
+ ref: E,
86
+ id: O,
87
+ required: w,
88
+ "aria-invalid": _ ? !0 : void 0,
89
+ "aria-describedby": _ || g ? k : void 0,
90
+ autoComplete: S,
91
+ className: e("flex-1 min-w-0 bg-transparent outline-none", "text-foreground placeholder:text-muted-foreground", "disabled:cursor-not-allowed disabled:opacity-50", A.text, d, r),
92
+ style: C,
93
+ ...T
94
+ }),
95
+ y && /* @__PURE__ */ o("span", {
96
+ className: e("text-slate-400 dark:text-slate-500 shrink-0", A.text),
97
+ children: y
98
+ })
99
+ ]
100
+ }),
101
+ _ && /* @__PURE__ */ o("p", {
102
+ id: k,
103
+ "aria-live": "polite",
104
+ className: e("text-xs leading-5 text-destructive", p),
105
+ children: _
106
+ }),
107
+ g && !_ && /* @__PURE__ */ o("p", {
108
+ id: k,
109
+ className: e("text-xs leading-5 text-muted-foreground", p),
110
+ children: g
111
+ })
112
+ ]
113
+ });
114
+ });
115
+ l.displayName = "Input";
116
+ //#endregion
117
+ export { l as Input };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs");let t=require("react/jsx-runtime");function n({keys:n,size:r=`sm`,className:i,...a}){let o=Array.isArray(n)?n:[n];return(0,t.jsx)(`span`,{className:e.t(`inline-flex items-center gap-0.5`,i),...a,children:o.map((n,i)=>(0,t.jsx)(`kbd`,{className:e.t(`inline-flex items-center justify-center font-mono font-medium rounded border`,`bg-black/6 dark:bg-white/6 border-black/15 dark:border-white/15`,`text-slate-600 dark:text-slate-400`,r===`sm`?`px-1.5 py-0.5 text-[10px] min-w-[18px] h-[18px]`:`px-2 py-1 text-xs min-w-[22px] h-[22px]`),children:n},i))})}exports.Kbd=n;
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface KbdProps extends HTMLAttributes<HTMLElement> {
3
+ keys: string | string[];
4
+ size?: "sm" | "md";
5
+ }
6
+ export declare function Kbd({ keys, size, className, ...props }: KbdProps): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { t as e } from "../cn-DpgY2leY.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ //#region src/components/kbd.tsx
4
+ function n({ keys: n, size: r = "sm", className: i, ...a }) {
5
+ let o = Array.isArray(n) ? n : [n];
6
+ return /* @__PURE__ */ t("span", {
7
+ className: e("inline-flex items-center gap-0.5", i),
8
+ ...a,
9
+ children: o.map((n, i) => /* @__PURE__ */ t("kbd", {
10
+ className: e("inline-flex items-center justify-center font-mono font-medium rounded border", "bg-black/6 dark:bg-white/6 border-black/15 dark:border-white/15", "text-slate-600 dark:text-slate-400", r === "sm" ? "px-1.5 py-0.5 text-[10px] min-w-[18px] h-[18px]" : "px-2 py-1 text-xs min-w-[22px] h-[22px]"),
11
+ children: n
12
+ }, i))
13
+ });
14
+ }
15
+ //#endregion
16
+ export { n as Kbd };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs"),t=require("../component-styles-TkZ7v6Ef.cjs");let n=require("react/jsx-runtime");function r({className:r,children:i,required:a,hint:o,...s}){return(0,n.jsxs)(`label`,{className:e.t(`flex items-center gap-1.5 select-none`,t.a,r),...s,children:[(0,n.jsx)(`span`,{children:i}),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{"aria-hidden":`true`,className:`text-destructive leading-none`,children:`*`}),(0,n.jsx)(`span`,{className:`sr-only`,children:` (required)`})]}),o&&(0,n.jsxs)(`span`,{className:`font-normal text-muted-foreground`,children:[`(`,o,`)`]})]})}exports.Label=r;
@@ -0,0 +1,6 @@
1
+ import { LabelHTMLAttributes } from 'react';
2
+ export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
3
+ required?: boolean;
4
+ hint?: string;
5
+ }
6
+ export declare function Label({ className, children, required, hint, ...props }: LabelProps): import("react").JSX.Element;
@@ -0,0 +1,31 @@
1
+ import { t as e } from "../cn-DpgY2leY.js";
2
+ import { a as t } from "../component-styles-Ce56hn9T.js";
3
+ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region src/components/label.tsx
5
+ function a({ className: a, children: o, required: s, hint: c, ...l }) {
6
+ return /* @__PURE__ */ i("label", {
7
+ className: e("flex items-center gap-1.5 select-none", t, a),
8
+ ...l,
9
+ children: [
10
+ /* @__PURE__ */ r("span", { children: o }),
11
+ s && /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("span", {
12
+ "aria-hidden": "true",
13
+ className: "text-destructive leading-none",
14
+ children: "*"
15
+ }), /* @__PURE__ */ r("span", {
16
+ className: "sr-only",
17
+ children: " (required)"
18
+ })] }),
19
+ c && /* @__PURE__ */ i("span", {
20
+ className: "font-normal text-muted-foreground",
21
+ children: [
22
+ "(",
23
+ c,
24
+ ")"
25
+ ]
26
+ })
27
+ ]
28
+ });
29
+ }
30
+ //#endregion
31
+ export { a as Label };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs");let t=require("react/jsx-runtime");function n({fixed:n=!1,className:r,children:i,...a}){return(0,t.jsx)(`div`,{className:e.t(`portal-shell flex min-h-dvh w-full bg-bg text-foreground`,n&&`h-dvh min-h-0 overflow-hidden`,r),...a,children:i})}function r({className:n,children:r,...i}){return(0,t.jsx)(`div`,{className:e.t(`flex min-w-0 flex-1 flex-col`,n),...i,children:r})}function i({scrollable:n=!1,className:r,children:i,...a}){return(0,t.jsx)(`main`,{className:e.t(`min-w-0 flex-1`,n&&`overflow-y-auto`,r),...a,children:i})}function a({sticky:n=!1,className:r,children:i,...a}){return(0,t.jsx)(`header`,{className:e.t(`z-30 shrink-0`,n&&`sticky top-0`,r),...a,children:i})}function o({sticky:n=!1,className:r,children:i,...a}){return(0,t.jsx)(`footer`,{className:e.t(`shrink-0 border-t border-border bg-bg/95 px-4 py-4 text-sm text-muted-foreground`,n&&`sticky bottom-0 z-30`,r),...a,children:i})}var s={sm:`max-w-3xl`,md:`max-w-5xl`,lg:`max-w-7xl`,xl:`max-w-screen-2xl`,full:`max-w-none`};function c({size:n=`lg`,gutter:r=!0,className:i,children:a,...o}){return(0,t.jsx)(`div`,{className:e.t(`mx-auto w-full`,s[n],r&&`px-4 sm:px-6 lg:px-8`,i),...o,children:a})}function l({title:n,description:r,eyebrow:i,breadcrumbs:a,actions:o,as:s=`h1`,className:c,...l}){return(0,t.jsxs)(`div`,{className:e.t(`flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between`,c),...l,children:[(0,t.jsxs)(`div`,{className:`min-w-0`,children:[a&&(0,t.jsx)(`div`,{className:`mb-3`,children:a}),i&&(0,t.jsx)(`div`,{className:`mb-1 text-xs font-semibold uppercase tracking-wider text-accent-600 dark:text-accent-400`,children:i}),(0,t.jsx)(s,{className:`text-2xl font-semibold tracking-[-0.02em] text-foreground`,children:n}),r&&(0,t.jsx)(`div`,{className:`mt-1.5 max-w-3xl text-sm leading-6 text-muted-foreground`,children:r})]}),o&&(0,t.jsx)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2`,children:o})]})}var u={none:`gap-0`,xs:`gap-1`,sm:`gap-2`,md:`gap-4`,lg:`gap-6`,xl:`gap-8`};function d({gap:n=`md`,className:r,children:i,...a}){return(0,t.jsx)(`div`,{className:e.t(`flex flex-col`,u[n],r),...a,children:i})}var f={start:`items-start`,center:`items-center`,end:`items-end`,stretch:`items-stretch`},p={start:`justify-start`,center:`justify-center`,end:`justify-end`,between:`justify-between`};function m({gap:n=`md`,wrap:r=!0,align:i=`center`,justify:a=`start`,className:o,children:s,...c}){return(0,t.jsx)(`div`,{className:e.t(`flex`,u[n],r&&`flex-wrap`,f[i],p[a],o),...c,children:s})}exports.AppShell=n,exports.AppShellBody=r,exports.AppShellHeader=a,exports.AppShellMain=i,exports.Container=c,exports.Footer=o,exports.Inline=m,exports.PageHeader=l,exports.Stack=d;
@@ -0,0 +1,51 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface AppShellProps extends HTMLAttributes<HTMLDivElement> {
3
+ /** Prevent the shell itself from scrolling and let AppShellMain own overflow. */
4
+ fixed?: boolean;
5
+ }
6
+ /** Root frame for application layouts. Compose it with Sidebar and AppShellBody. */
7
+ export declare function AppShell({ fixed, className, children, ...props }: AppShellProps): import("react").JSX.Element;
8
+ /** Vertical region beside a sidebar. Usually contains a topbar, main, and footer. */
9
+ export declare function AppShellBody({ className, children, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
10
+ export interface AppShellMainProps extends HTMLAttributes<HTMLElement> {
11
+ scrollable?: boolean;
12
+ }
13
+ export declare function AppShellMain({ scrollable, className, children, ...props }: AppShellMainProps): import("react").JSX.Element;
14
+ export interface LayoutBarProps extends HTMLAttributes<HTMLElement> {
15
+ sticky?: boolean;
16
+ }
17
+ /** General-purpose application header; Topbar can be used inside it for navigation controls. */
18
+ export declare function AppShellHeader({ sticky, className, children, ...props }: LayoutBarProps): import("react").JSX.Element;
19
+ /** Page or application footer with safe-area padding. */
20
+ export declare function Footer({ sticky, className, children, ...props }: LayoutBarProps): import("react").JSX.Element;
21
+ type ContainerSize = "sm" | "md" | "lg" | "xl" | "full";
22
+ export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
23
+ size?: ContainerSize;
24
+ gutter?: boolean;
25
+ }
26
+ /** Centers content and provides consistent responsive page gutters. */
27
+ export declare function Container({ size, gutter, className, children, ...props }: ContainerProps): import("react").JSX.Element;
28
+ export interface PageHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
29
+ title: ReactNode;
30
+ /** Heading level for SEO hierarchy; defaults to h1 (one per page) */
31
+ as?: "h1" | "h2" | "h3" | "div";
32
+ description?: ReactNode;
33
+ eyebrow?: ReactNode;
34
+ breadcrumbs?: ReactNode;
35
+ actions?: ReactNode;
36
+ }
37
+ /** Standard page heading with optional breadcrumbs, supporting copy, and actions. */
38
+ export declare function PageHeader({ title, description, eyebrow, breadcrumbs, actions, as: Tag, className, ...props }: PageHeaderProps): import("react").JSX.Element;
39
+ export interface StackProps extends HTMLAttributes<HTMLDivElement> {
40
+ gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
41
+ }
42
+ /** Vertical spacing primitive for page sections and forms. */
43
+ export declare function Stack({ gap, className, children, ...props }: StackProps): import("react").JSX.Element;
44
+ export interface InlineProps extends StackProps {
45
+ wrap?: boolean;
46
+ align?: "start" | "center" | "end" | "stretch";
47
+ justify?: "start" | "center" | "end" | "between";
48
+ }
49
+ /** Horizontal spacing primitive for toolbars, actions, and metadata. */
50
+ export declare function Inline({ gap, wrap, align, justify, className, children, ...props }: InlineProps): import("react").JSX.Element;
51
+ export {};
@@ -0,0 +1,117 @@
1
+ import { t as e } from "../cn-DpgY2leY.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ //#region src/components/layout.tsx
4
+ function r({ fixed: n = !1, className: r, children: i, ...a }) {
5
+ return /* @__PURE__ */ t("div", {
6
+ className: e("portal-shell flex min-h-dvh w-full bg-bg text-foreground", n && "h-dvh min-h-0 overflow-hidden", r),
7
+ ...a,
8
+ children: i
9
+ });
10
+ }
11
+ function i({ className: n, children: r, ...i }) {
12
+ return /* @__PURE__ */ t("div", {
13
+ className: e("flex min-w-0 flex-1 flex-col", n),
14
+ ...i,
15
+ children: r
16
+ });
17
+ }
18
+ function a({ scrollable: n = !1, className: r, children: i, ...a }) {
19
+ return /* @__PURE__ */ t("main", {
20
+ className: e("min-w-0 flex-1", n && "overflow-y-auto", r),
21
+ ...a,
22
+ children: i
23
+ });
24
+ }
25
+ function o({ sticky: n = !1, className: r, children: i, ...a }) {
26
+ return /* @__PURE__ */ t("header", {
27
+ className: e("z-30 shrink-0", n && "sticky top-0", r),
28
+ ...a,
29
+ children: i
30
+ });
31
+ }
32
+ function s({ sticky: n = !1, className: r, children: i, ...a }) {
33
+ return /* @__PURE__ */ t("footer", {
34
+ className: e("shrink-0 border-t border-border bg-bg/95 px-4 py-4 text-sm text-muted-foreground", n && "sticky bottom-0 z-30", r),
35
+ ...a,
36
+ children: i
37
+ });
38
+ }
39
+ var c = {
40
+ sm: "max-w-3xl",
41
+ md: "max-w-5xl",
42
+ lg: "max-w-7xl",
43
+ xl: "max-w-screen-2xl",
44
+ full: "max-w-none"
45
+ };
46
+ function l({ size: n = "lg", gutter: r = !0, className: i, children: a, ...o }) {
47
+ return /* @__PURE__ */ t("div", {
48
+ className: e("mx-auto w-full", c[n], r && "px-4 sm:px-6 lg:px-8", i),
49
+ ...o,
50
+ children: a
51
+ });
52
+ }
53
+ function u({ title: r, description: i, eyebrow: a, breadcrumbs: o, actions: s, as: c = "h1", className: l, ...u }) {
54
+ return /* @__PURE__ */ n("div", {
55
+ className: e("flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between", l),
56
+ ...u,
57
+ children: [/* @__PURE__ */ n("div", {
58
+ className: "min-w-0",
59
+ children: [
60
+ o && /* @__PURE__ */ t("div", {
61
+ className: "mb-3",
62
+ children: o
63
+ }),
64
+ a && /* @__PURE__ */ t("div", {
65
+ className: "mb-1 text-xs font-semibold uppercase tracking-wider text-accent-600 dark:text-accent-400",
66
+ children: a
67
+ }),
68
+ /* @__PURE__ */ t(c, {
69
+ className: "text-2xl font-semibold tracking-[-0.02em] text-foreground",
70
+ children: r
71
+ }),
72
+ i && /* @__PURE__ */ t("div", {
73
+ className: "mt-1.5 max-w-3xl text-sm leading-6 text-muted-foreground",
74
+ children: i
75
+ })
76
+ ]
77
+ }), s && /* @__PURE__ */ t("div", {
78
+ className: "flex shrink-0 flex-wrap items-center gap-2",
79
+ children: s
80
+ })]
81
+ });
82
+ }
83
+ var d = {
84
+ none: "gap-0",
85
+ xs: "gap-1",
86
+ sm: "gap-2",
87
+ md: "gap-4",
88
+ lg: "gap-6",
89
+ xl: "gap-8"
90
+ };
91
+ function f({ gap: n = "md", className: r, children: i, ...a }) {
92
+ return /* @__PURE__ */ t("div", {
93
+ className: e("flex flex-col", d[n], r),
94
+ ...a,
95
+ children: i
96
+ });
97
+ }
98
+ var p = {
99
+ start: "items-start",
100
+ center: "items-center",
101
+ end: "items-end",
102
+ stretch: "items-stretch"
103
+ }, m = {
104
+ start: "justify-start",
105
+ center: "justify-center",
106
+ end: "justify-end",
107
+ between: "justify-between"
108
+ };
109
+ function h({ gap: n = "md", wrap: r = !0, align: i = "center", justify: a = "start", className: o, children: s, ...c }) {
110
+ return /* @__PURE__ */ t("div", {
111
+ className: e("flex", d[n], r && "flex-wrap", p[i], m[a], o),
112
+ ...c,
113
+ children: s
114
+ });
115
+ }
116
+ //#endregion
117
+ export { r as AppShell, i as AppShellBody, o as AppShellHeader, a as AppShellMain, l as Container, s as Footer, h as Inline, u as PageHeader, f as Stack };