@bzync/rui 0.0.5 → 0.0.8

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 (240) hide show
  1. package/README.md +5 -0
  2. package/dist/autocomplete-D6z5B-WU.cjs +1 -0
  3. package/dist/{autocomplete-BgKbj6M4.js → autocomplete-bgySuP8X.js} +149 -142
  4. package/dist/calendar-CQumLNgS.cjs +1 -0
  5. package/dist/{calendar-j2_zvum1.js → calendar-nkYCMEy3.js} +9 -9
  6. package/dist/charts-Cot5lCgC.cjs +1 -0
  7. package/dist/{charts-CxEy2c3M.js → charts-Dscl6UC3.js} +122 -145
  8. package/dist/cn-B6R3HKzx.cjs +1 -0
  9. package/dist/{cn-DpgY2leY.js → cn-BJyZJP-y.js} +389 -389
  10. package/dist/{component-styles-Bgy44fc8.js → component-styles-C2CbHEEA.js} +2 -2
  11. package/dist/component-styles-DY4wigiq.cjs +1 -0
  12. package/dist/components/accordion.cjs +1 -1
  13. package/dist/components/accordion.js +2 -2
  14. package/dist/components/alert.cjs +1 -1
  15. package/dist/components/alert.js +3 -3
  16. package/dist/components/aspect-ratio.cjs +1 -1
  17. package/dist/components/aspect-ratio.js +1 -1
  18. package/dist/components/auth-backdrop.cjs +1 -1
  19. package/dist/components/auth-backdrop.d.ts +4 -1
  20. package/dist/components/auth-backdrop.js +12 -8
  21. package/dist/components/autocomplete/dropdown.d.ts +4 -1
  22. package/dist/components/autocomplete/multi-trigger.d.ts +3 -1
  23. package/dist/components/autocomplete/single-trigger.d.ts +3 -1
  24. package/dist/components/autocomplete/types.d.ts +15 -0
  25. package/dist/components/autocomplete.cjs +1 -1
  26. package/dist/components/autocomplete.js +1 -1
  27. package/dist/components/avatar-group.cjs +1 -1
  28. package/dist/components/avatar-group.js +1 -1
  29. package/dist/components/avatar.cjs +1 -1
  30. package/dist/components/avatar.js +2 -2
  31. package/dist/components/badge.cjs +1 -1
  32. package/dist/components/badge.js +1 -1
  33. package/dist/components/billing-interval-toggle.cjs +1 -1
  34. package/dist/components/billing-interval-toggle.d.ts +4 -6
  35. package/dist/components/billing-interval-toggle.js +26 -19
  36. package/dist/components/blockquote.cjs +1 -1
  37. package/dist/components/blockquote.js +3 -3
  38. package/dist/components/breadcrumb.cjs +1 -1
  39. package/dist/components/breadcrumb.js +2 -2
  40. package/dist/components/button-group.cjs +1 -1
  41. package/dist/components/button-group.js +1 -1
  42. package/dist/components/button.cjs +1 -1
  43. package/dist/components/button.d.ts +2 -0
  44. package/dist/components/button.js +79 -36
  45. package/dist/components/calendar.cjs +1 -1
  46. package/dist/components/calendar.js +1 -1
  47. package/dist/components/callout.cjs +1 -1
  48. package/dist/components/callout.js +14 -14
  49. package/dist/components/card.cjs +1 -1
  50. package/dist/components/card.js +1 -1
  51. package/dist/components/charts/shared.d.ts +15 -0
  52. package/dist/components/charts.cjs +1 -1
  53. package/dist/components/charts.js +1 -1
  54. package/dist/components/checkbox.cjs +1 -1
  55. package/dist/components/checkbox.js +3 -3
  56. package/dist/components/code.cjs +3 -3
  57. package/dist/components/code.js +4 -4
  58. package/dist/components/command.cjs +1 -1
  59. package/dist/components/command.d.ts +8 -1
  60. package/dist/components/command.js +84 -83
  61. package/dist/components/confirm-dialog.cjs +1 -1
  62. package/dist/components/confirm-dialog.d.ts +8 -1
  63. package/dist/components/confirm-dialog.js +37 -31
  64. package/dist/components/copy-button.cjs +1 -1
  65. package/dist/components/copy-button.js +3 -2
  66. package/dist/components/currency.cjs +1 -1
  67. package/dist/components/currency.js +1 -1
  68. package/dist/components/datatable/types.d.ts +4 -0
  69. package/dist/components/datatable.cjs +1 -1
  70. package/dist/components/datatable.d.ts +1 -5
  71. package/dist/components/datatable.js +1 -1
  72. package/dist/components/datepicker.cjs +1 -1
  73. package/dist/components/datepicker.d.ts +3 -3
  74. package/dist/components/datepicker.js +234 -105
  75. package/dist/components/description-list.cjs +1 -1
  76. package/dist/components/description-list.js +1 -1
  77. package/dist/components/divider.cjs +1 -1
  78. package/dist/components/divider.js +1 -1
  79. package/dist/components/drawer.cjs +1 -1
  80. package/dist/components/drawer.d.ts +6 -1
  81. package/dist/components/drawer.js +128 -2
  82. package/dist/components/dropdown-menu-panel.cjs +1 -0
  83. package/dist/components/dropdown-menu-panel.d.ts +24 -0
  84. package/dist/components/dropdown-menu-panel.js +84 -0
  85. package/dist/components/dropdown-menu.cjs +1 -1
  86. package/dist/components/dropdown-menu.d.ts +5 -1
  87. package/dist/components/dropdown-menu.js +38 -93
  88. package/dist/components/empty-state.cjs +1 -1
  89. package/dist/components/empty-state.d.ts +5 -1
  90. package/dist/components/empty-state.js +9 -9
  91. package/dist/components/error-state.cjs +1 -1
  92. package/dist/components/error-state.js +2 -2
  93. package/dist/components/file-upload.cjs +1 -1
  94. package/dist/components/file-upload.js +4 -4
  95. package/dist/components/form-field.cjs +1 -1
  96. package/dist/components/form-field.d.ts +9 -0
  97. package/dist/components/form-field.js +49 -14
  98. package/dist/components/info-button.cjs +1 -1
  99. package/dist/components/info-button.d.ts +5 -3
  100. package/dist/components/info-button.js +33 -29
  101. package/dist/components/input.cjs +1 -1
  102. package/dist/components/input.js +3 -3
  103. package/dist/components/kbd.cjs +1 -1
  104. package/dist/components/kbd.js +1 -1
  105. package/dist/components/label.cjs +1 -1
  106. package/dist/components/label.js +2 -2
  107. package/dist/components/layout.cjs +1 -1
  108. package/dist/components/layout.js +1 -1
  109. package/dist/components/link.cjs +1 -1
  110. package/dist/components/link.js +1 -1
  111. package/dist/components/list.cjs +1 -1
  112. package/dist/components/list.js +1 -1
  113. package/dist/components/modal.cjs +1 -1
  114. package/dist/components/modal.d.ts +8 -1
  115. package/dist/components/modal.js +74 -120
  116. package/dist/components/navigation.cjs +1 -1
  117. package/dist/components/navigation.js +2 -2
  118. package/dist/components/number-input.cjs +1 -1
  119. package/dist/components/number-input.js +3 -3
  120. package/dist/components/otp-input.cjs +1 -1
  121. package/dist/components/otp-input.js +2 -2
  122. package/dist/components/overlay.cjs +1 -0
  123. package/dist/components/overlay.d.ts +52 -0
  124. package/dist/components/overlay.js +87 -0
  125. package/dist/components/pagination.cjs +1 -1
  126. package/dist/components/pagination.js +2 -2
  127. package/dist/components/popover.cjs +1 -1
  128. package/dist/components/popover.d.ts +2 -1
  129. package/dist/components/popover.js +41 -40
  130. package/dist/components/progressbar.cjs +1 -1
  131. package/dist/components/progressbar.js +1 -1
  132. package/dist/components/radio.cjs +1 -1
  133. package/dist/components/radio.js +3 -3
  134. package/dist/components/rating.cjs +1 -1
  135. package/dist/components/rating.js +3 -3
  136. package/dist/components/richtext.cjs +1 -1
  137. package/dist/components/richtext.js +2 -2
  138. package/dist/components/scroll-area.cjs +1 -1
  139. package/dist/components/scroll-area.js +3 -3
  140. package/dist/components/select/option-list.d.ts +3 -1
  141. package/dist/components/select/types.d.ts +4 -0
  142. package/dist/components/select.cjs +1 -1
  143. package/dist/components/select.js +1 -1
  144. package/dist/components/seo.cjs +1 -1
  145. package/dist/components/seo.js +1 -1
  146. package/dist/components/separator.cjs +1 -1
  147. package/dist/components/separator.js +1 -1
  148. package/dist/components/skeleton.cjs +1 -1
  149. package/dist/components/skeleton.d.ts +14 -1
  150. package/dist/components/skeleton.js +56 -4
  151. package/dist/components/slider.cjs +1 -1
  152. package/dist/components/slider.js +2 -2
  153. package/dist/components/slot.cjs +1 -0
  154. package/dist/components/slot.d.ts +12 -0
  155. package/dist/components/slot.js +16 -0
  156. package/dist/components/snackbar-viewport.cjs +1 -0
  157. package/dist/components/snackbar-viewport.d.ts +27 -0
  158. package/dist/components/snackbar-viewport.js +181 -0
  159. package/dist/components/snackbar.cjs +1 -1
  160. package/dist/components/snackbar.d.ts +5 -1
  161. package/dist/components/snackbar.js +36 -200
  162. package/dist/components/spinner.cjs +1 -1
  163. package/dist/components/spinner.js +1 -1
  164. package/dist/components/stat.cjs +1 -1
  165. package/dist/components/stat.js +1 -1
  166. package/dist/components/status-dot.cjs +1 -1
  167. package/dist/components/status-dot.js +1 -1
  168. package/dist/components/stepper.cjs +1 -1
  169. package/dist/components/stepper.js +5 -5
  170. package/dist/components/switch.cjs +1 -1
  171. package/dist/components/switch.js +37 -43
  172. package/dist/components/table.cjs +1 -1
  173. package/dist/components/table.js +1 -1
  174. package/dist/components/tabs.cjs +1 -1
  175. package/dist/components/tabs.d.ts +6 -4
  176. package/dist/components/tabs.js +51 -81
  177. package/dist/components/tag.cjs +1 -1
  178. package/dist/components/tag.js +1 -1
  179. package/dist/components/terminal.cjs +1 -1
  180. package/dist/components/terminal.js +1 -1
  181. package/dist/components/textarea.cjs +1 -1
  182. package/dist/components/textarea.js +3 -3
  183. package/dist/components/theme-provider.cjs +1 -1
  184. package/dist/components/theme-provider.js +1 -1
  185. package/dist/components/theme-toggle.cjs +1 -1
  186. package/dist/components/theme-toggle.js +27 -3
  187. package/dist/components/time-picker.cjs +1 -1
  188. package/dist/components/time-picker.d.ts +2 -0
  189. package/dist/components/time-picker.js +206 -148
  190. package/dist/components/timeline.cjs +1 -1
  191. package/dist/components/timeline.js +1 -1
  192. package/dist/components/toggle.cjs +1 -1
  193. package/dist/components/toggle.js +2 -2
  194. package/dist/components/tooltip.cjs +1 -1
  195. package/dist/components/tooltip.d.ts +2 -1
  196. package/dist/components/tooltip.js +37 -36
  197. package/dist/components/tree.cjs +1 -1
  198. package/dist/components/tree.js +1 -1
  199. package/dist/components/typography.cjs +1 -1
  200. package/dist/components/typography.d.ts +2 -3
  201. package/dist/components/typography.js +37 -24
  202. package/dist/components/visually-hidden.cjs +1 -0
  203. package/dist/components/visually-hidden.d.ts +16 -0
  204. package/dist/components/visually-hidden.js +13 -0
  205. package/dist/{datatable-yBN4M3UV.js → datatable-BJoZMrKI.js} +6 -6
  206. package/dist/datatable-t0U7t_xh.cjs +1 -0
  207. package/dist/icons-Dfetr1L2.cjs +1 -0
  208. package/dist/icons-Dk7VZ4Ph.js +51 -0
  209. package/dist/index.cjs +1 -1
  210. package/dist/index.d.ts +4 -0
  211. package/dist/index.js +126 -99
  212. package/dist/lib/cn.d.ts +13 -1
  213. package/dist/lib/component-styles.d.ts +14 -2
  214. package/dist/lib/icons.d.ts +12 -0
  215. package/dist/lib/motion.d.ts +58 -0
  216. package/dist/motion-B2shivEB.cjs +1 -0
  217. package/dist/motion-gnRzFS5f.js +62 -0
  218. package/dist/select-ByjnuEcE.cjs +1 -0
  219. package/dist/{select-ClWrcj3R.js → select-CiMzLhUK.js} +128 -122
  220. package/dist/styles.css +1 -1
  221. package/dist/{terminal-CpraMs50.cjs → terminal-1U0ftG3i.cjs} +2 -2
  222. package/dist/{terminal-BOR2cFi1.js → terminal-VXdxVoAv.js} +4 -4
  223. package/dist/use-focus-trap-CPLT49gN.cjs +1 -0
  224. package/dist/use-focus-trap-CS6BXJAB.js +77 -0
  225. package/dist/{utils-CQ8pvCtk.js → utils-DEw5mQrH.js} +1 -1
  226. package/dist/{utils-DOFJTw8o.cjs → utils-MnnCTelh.cjs} +1 -1
  227. package/package.json +56 -9
  228. package/dist/autocomplete-Bk4pRQ2R.cjs +0 -1
  229. package/dist/calendar-CUXpVrVE.cjs +0 -1
  230. package/dist/charts-UDqS1BH1.cjs +0 -1
  231. package/dist/cn-BdjraxxU.cjs +0 -1
  232. package/dist/component-styles-DOUctc8_.cjs +0 -1
  233. package/dist/createLucideIcon-DDY8HuQR.js +0 -42
  234. package/dist/createLucideIcon-b_X_3fj-.cjs +0 -1
  235. package/dist/datatable-rzDgQ3r6.cjs +0 -1
  236. package/dist/drawer-CTeBsYrO.cjs +0 -1
  237. package/dist/drawer-ixuzyLVS.js +0 -189
  238. package/dist/select-BFwx--uK.cjs +0 -1
  239. package/dist/theme-toggle-Bb0BYo51.js +0 -71
  240. package/dist/theme-toggle-Cld8tktJ.cjs +0 -1
@@ -1,36 +1,71 @@
1
- import { t as e } from "../cn-DpgY2leY.js";
2
- import { o as t } from "../component-styles-Bgy44fc8.js";
3
- import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
1
+ import { t as e } from "../cn-BJyZJP-y.js";
2
+ import { a as t, i as n, o as r, r as i } from "../component-styles-C2CbHEEA.js";
3
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
4
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),
5
+ function c({ label: t, hint: n, error: i, required: c, htmlFor: l, className: u, children: d, ...f }) {
6
+ return /* @__PURE__ */ s("div", {
7
+ className: e(r, u),
8
8
  ...f,
9
9
  children: [
10
- a && /* @__PURE__ */ i("label", {
10
+ t && /* @__PURE__ */ s("label", {
11
11
  htmlFor: l,
12
12
  className: e("flex items-center gap-1", "text-xs font-semibold leading-5 text-foreground"),
13
- children: [a, c && /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("span", {
13
+ children: [t, c && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("span", {
14
14
  "aria-hidden": "true",
15
15
  className: "text-destructive",
16
16
  children: "*"
17
- }), /* @__PURE__ */ r("span", {
17
+ }), /* @__PURE__ */ o("span", {
18
18
  className: "sr-only",
19
19
  children: " (required)"
20
20
  })] })]
21
21
  }),
22
22
  d,
23
- s && /* @__PURE__ */ r("p", {
23
+ i && /* @__PURE__ */ o("p", {
24
24
  "aria-live": "polite",
25
25
  className: "text-xs leading-5 text-destructive",
26
- children: s
26
+ children: i
27
27
  }),
28
- o && !s && /* @__PURE__ */ r("p", {
28
+ n && !i && /* @__PURE__ */ o("p", {
29
29
  className: "text-xs leading-5 text-muted-foreground",
30
- children: o
30
+ children: n
31
31
  })
32
32
  ]
33
33
  });
34
34
  }
35
+ var l = c;
36
+ function u({ className: n, children: r, required: i, htmlFor: c, ...l }) {
37
+ return /* @__PURE__ */ s("label", {
38
+ htmlFor: c,
39
+ className: e("flex items-center gap-1", t, n),
40
+ ...l,
41
+ children: [r, i && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("span", {
42
+ "aria-hidden": "true",
43
+ className: "text-destructive",
44
+ children: " *"
45
+ }), /* @__PURE__ */ o("span", {
46
+ className: "sr-only",
47
+ children: " (required)"
48
+ })] })]
49
+ });
50
+ }
51
+ function d({ className: t, ...n }) {
52
+ return /* @__PURE__ */ o("p", {
53
+ className: e(i, t),
54
+ ...n
55
+ });
56
+ }
57
+ function f({ className: t, ...r }) {
58
+ return /* @__PURE__ */ o("p", {
59
+ "aria-live": "polite",
60
+ className: e(n, t),
61
+ ...r
62
+ });
63
+ }
64
+ function p({ className: t, ...n }) {
65
+ return /* @__PURE__ */ o("div", {
66
+ className: e("flex flex-col gap-1.5", t),
67
+ ...n
68
+ });
69
+ }
35
70
  //#endregion
36
- export { a as FormField };
71
+ export { l as Field, p as FieldContent, d as FieldDescription, f as FieldError, u as FieldLabel, c as FormField };
@@ -1 +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;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs"),t=require("../component-styles-DY4wigiq.cjs");let n=require("react"),r=require("react/jsx-runtime");var i=(0,n.forwardRef)(({label:n,className:i,type:a=`button`,...o},s)=>(0,r.jsx)(`button`,{ref:s,type:a,className:e.t(t.c,i),"aria-label":n,...o,children:(0,r.jsxs)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,r.jsx)(`path`,{d:`M12 16v-4`}),(0,r.jsx)(`path`,{d:`M12 8h.01`})]})}));i.displayName=`InfoButton`,exports.InfoButton=i;
@@ -1,4 +1,6 @@
1
- export declare function InfoButton({ onClick, label }: {
2
- onClick: () => void;
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ export interface InfoButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "aria-label"> {
3
+ /** Describes the information that opens; used as the accessible button name. */
3
4
  label: string;
4
- }): import("react").JSX.Element;
5
+ }
6
+ export declare const InfoButton: import('react').ForwardRefExoticComponent<InfoButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -1,32 +1,36 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import { t as e } from "../cn-BJyZJP-y.js";
3
+ import { c as t } from "../component-styles-C2CbHEEA.js";
4
+ import { forwardRef as n } from "react";
5
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
6
  //#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
- }
7
+ var a = n(({ label: n, className: a, type: o = "button", ...s }, c) => /* @__PURE__ */ r("button", {
8
+ ref: c,
9
+ type: o,
10
+ className: e(t, a),
11
+ "aria-label": n,
12
+ ...s,
13
+ children: /* @__PURE__ */ i("svg", {
14
+ width: "15",
15
+ height: "15",
16
+ viewBox: "0 0 24 24",
17
+ fill: "none",
18
+ stroke: "currentColor",
19
+ strokeWidth: "2",
20
+ strokeLinecap: "round",
21
+ strokeLinejoin: "round",
22
+ "aria-hidden": "true",
23
+ children: [
24
+ /* @__PURE__ */ r("circle", {
25
+ cx: "12",
26
+ cy: "12",
27
+ r: "10"
28
+ }),
29
+ /* @__PURE__ */ r("path", { d: "M12 16v-4" }),
30
+ /* @__PURE__ */ r("path", { d: "M12 8h.01" })
31
+ ]
32
+ })
33
+ }));
34
+ a.displayName = "InfoButton";
31
35
  //#endregion
32
- export { n as InfoButton };
36
+ export { a as InfoButton };
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs"),t=require("../component-styles-DOUctc8_.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-xs font-semibold 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-xs font-semibold 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;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs"),t=require("../component-styles-DY4wigiq.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-xs font-semibold 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-xs font-semibold 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/25`),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;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as e } from "../cn-DpgY2leY.js";
3
- import { o as t, t as n } from "../component-styles-Bgy44fc8.js";
2
+ import { t as e } from "../cn-BJyZJP-y.js";
3
+ import { o as t, t as n } from "../component-styles-C2CbHEEA.js";
4
4
  import { forwardRef as r, useId as i } from "react";
5
5
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
6
6
  //#region src/components/input.tsx
@@ -75,7 +75,7 @@ var c = {
75
75
  })] })]
76
76
  }),
77
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"),
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/25"),
79
79
  children: [
80
80
  v && /* @__PURE__ */ o("span", {
81
81
  className: e("text-slate-400 dark:text-slate-500 shrink-0", A.text),
@@ -1 +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;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.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;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../cn-DpgY2leY.js";
1
+ import { t as e } from "../cn-BJyZJP-y.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  //#region src/components/kbd.tsx
4
4
  function n({ keys: n, size: r = "sm", className: i, ...a }) {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs"),t=require("../component-styles-DOUctc8_.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;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs"),t=require("../component-styles-DY4wigiq.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;
@@ -1,5 +1,5 @@
1
- import { t as e } from "../cn-DpgY2leY.js";
2
- import { a as t } from "../component-styles-Bgy44fc8.js";
1
+ import { t as e } from "../cn-BJyZJP-y.js";
2
+ import { a as t } from "../component-styles-C2CbHEEA.js";
3
3
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  //#region src/components/label.tsx
5
5
  function a({ className: a, children: o, required: s, hint: c, ...l }) {
@@ -1 +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;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.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;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../cn-DpgY2leY.js";
1
+ import { t as e } from "../cn-BJyZJP-y.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  //#region src/components/layout.tsx
4
4
  function r({ fixed: n = !1, className: r, children: i, ...a }) {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs");let t=require("react/jsx-runtime");var n={default:`text-accent-400 hover:text-accent-300`,muted:`text-slate-500 hover:text-slate-700 dark:hover:text-slate-200`,underline:`text-slate-700 dark:text-slate-200 underline underline-offset-2 decoration-black/25 dark:decoration-white/25 hover:decoration-black/50 dark:hover:decoration-white/50`};function r({children:r,className:i,external:a,icon:o,variant:s=`default`,externalRel:c,...l}){return(0,t.jsxs)(`a`,{target:a?`_blank`:void 0,rel:a?c??`noopener noreferrer`:void 0,referrerPolicy:a?`strict-origin-when-cross-origin`:void 0,className:e.t(`inline-flex items-center gap-1 transition-colors cursor-pointer`,n[s],i),...l,children:[r,o&&(0,t.jsx)(`span`,{className:`shrink-0`,"aria-hidden":`true`,children:o}),a&&!o&&(0,t.jsxs)(`svg`,{"aria-hidden":`true`,width:`11`,height:`11`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,t.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),(0,t.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,t.jsx)(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})]})]})}exports.Link=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs");let t=require("react/jsx-runtime");var n={default:`text-accent-400 hover:text-accent-300`,muted:`text-slate-500 hover:text-slate-700 dark:hover:text-slate-200`,underline:`text-slate-700 dark:text-slate-200 underline underline-offset-2 decoration-black/25 dark:decoration-white/25 hover:decoration-black/50 dark:hover:decoration-white/50`};function r({children:r,className:i,external:a,icon:o,variant:s=`default`,externalRel:c,...l}){return(0,t.jsxs)(`a`,{target:a?`_blank`:void 0,rel:a?c??`noopener noreferrer`:void 0,referrerPolicy:a?`strict-origin-when-cross-origin`:void 0,className:e.t(`inline-flex items-center gap-1 transition-colors cursor-pointer`,n[s],i),...l,children:[r,o&&(0,t.jsx)(`span`,{className:`shrink-0`,"aria-hidden":`true`,children:o}),a&&!o&&(0,t.jsxs)(`svg`,{"aria-hidden":`true`,width:`11`,height:`11`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,t.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),(0,t.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,t.jsx)(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})]})]})}exports.Link=r;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../cn-DpgY2leY.js";
1
+ import { t as e } from "../cn-BJyZJP-y.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  //#region src/components/link.tsx
4
4
  var r = {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs");let t=require("react/jsx-runtime");function n({divided:n=!0,className:r,children:i,...a}){return(0,t.jsx)(`ul`,{className:e.t(n&&`divide-y divide-black/8 dark:divide-white/8`,r),...a,children:i})}function r({icon:n,trailing:r,description:i,href:a,active:o,className:s,children:c,onClick:l,...u}){let d=(0,t.jsxs)(`div`,{className:e.t(`flex items-center gap-3 px-3 py-2.5 transition-colors rounded-lg`,(!!a||!!l)&&`cursor-pointer hover:bg-black/4 dark:hover:bg-white/4`,o&&`bg-accent-500/8 text-accent-400`),children:[n&&(0,t.jsx)(`span`,{className:`shrink-0 text-slate-500 dark:text-slate-400`,children:n}),(0,t.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,t.jsx)(`p`,{className:e.t(`text-sm font-medium truncate`,o?`text-accent-400`:`text-slate-700 dark:text-slate-200`),children:c}),i&&(0,t.jsx)(`p`,{className:`text-xs text-slate-500 mt-0.5 truncate`,children:i})]}),r&&(0,t.jsx)(`span`,{className:`shrink-0 text-slate-500`,children:r})]});return(0,t.jsx)(`li`,{className:e.t(s),onClick:l,...u,children:a?(0,t.jsx)(`a`,{href:a,children:d}):d})}exports.List=n,exports.ListItem=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs");let t=require("react/jsx-runtime");function n({divided:n=!0,className:r,children:i,...a}){return(0,t.jsx)(`ul`,{className:e.t(n&&`divide-y divide-black/8 dark:divide-white/8`,r),...a,children:i})}function r({icon:n,trailing:r,description:i,href:a,active:o,className:s,children:c,onClick:l,...u}){let d=(0,t.jsxs)(`div`,{className:e.t(`flex items-center gap-3 px-3 py-2.5 transition-colors rounded-lg`,(!!a||!!l)&&`cursor-pointer hover:bg-black/4 dark:hover:bg-white/4`,o&&`bg-accent-500/8 text-accent-400`),children:[n&&(0,t.jsx)(`span`,{className:`shrink-0 text-slate-500 dark:text-slate-400`,children:n}),(0,t.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,t.jsx)(`p`,{className:e.t(`text-sm font-medium truncate`,o?`text-accent-400`:`text-slate-700 dark:text-slate-200`),children:c}),i&&(0,t.jsx)(`p`,{className:`text-xs text-slate-500 mt-0.5 truncate`,children:i})]}),r&&(0,t.jsx)(`span`,{className:`shrink-0 text-slate-500`,children:r})]});return(0,t.jsx)(`li`,{className:e.t(s),onClick:l,...u,children:a?(0,t.jsx)(`a`,{href:a,children:d}):d})}exports.List=n,exports.ListItem=r;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../cn-DpgY2leY.js";
1
+ import { t as e } from "../cn-BJyZJP-y.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  //#region src/components/list.tsx
4
4
  function r({ divided: n = !0, className: r, children: i, ...a }) {
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-BdjraxxU.cjs"),t=require("../component-styles-DOUctc8_.cjs"),n=require("../use-event-callback-Du9_9eAi.cjs"),r=require("../focus-DmG6Ge7X.cjs");let i=require("framer-motion"),a=require("react"),o=require("react/jsx-runtime");var s={sm:`max-w-[380px]`,md:`max-w-[480px]`,lg:`max-w-[560px]`,xl:`max-w-[640px]`,"2xl":`max-w-[720px]`,"7xl":`max-w-3xl`,full:`max-w-[calc(100vw-2rem)]`};function c({open:c,onClose:l,children:u,className:d,overlayClassName:f,panelClassName:p,size:m=`md`,title:h,description:g,icon:_,showCloseButton:v=!0,closeAriaLabel:y=`Close dialog`,scrollable:b=!1,unstyled:x=!1,ariaLabel:S=`Dialog`,closeOnEscape:C=!0,closeOnOverlayClick:w=!0}){let T=(0,a.useRef)(null),E=(0,a.useRef)(null),D=(0,a.useRef)(c),O=(0,a.useId)(),k=(0,a.useId)(),A=n.t(l);return c&&!D.current&&typeof document<`u`&&document.activeElement instanceof HTMLElement&&(E.current=document.activeElement),D.current=c,(0,a.useEffect)(()=>{if(c)return;let e=e=>{e.target instanceof HTMLElement&&(E.current=e.target)};return!E.current&&document.activeElement instanceof HTMLElement&&(E.current=document.activeElement),document.addEventListener(`focusin`,e),()=>document.removeEventListener(`focusin`,e)},[c]),(0,a.useEffect)(()=>{if(!c)return;!E.current&&document.activeElement instanceof HTMLElement&&(E.current=document.activeElement);let e=document.body.style.overflow,t=e=>{if(e.key===`Escape`&&C){e.preventDefault(),A();return}if(e.key!==`Tab`||!T.current)return;let t=r.t(T.current);if(t.length===0){e.preventDefault(),T.current.focus();return}let n=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),i.focus()):!e.shiftKey&&document.activeElement===i&&(e.preventDefault(),n.focus())};document.addEventListener(`keydown`,t),document.body.style.overflow=`hidden`;let n=()=>{(T.current?.querySelector(`[data-autofocus]`)??T.current?.querySelector(`[data-modal-content] a[href],[data-modal-content] button:not([disabled]),[data-modal-content] input:not([disabled]),[data-modal-content] select:not([disabled]),[data-modal-content] textarea:not([disabled]),[data-modal-content] [tabindex]:not([tabindex="-1"])`)??T.current?.querySelector(`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`)??T.current)?.focus()};n();let i=window.setTimeout(n,0);return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,t),document.body.style.overflow=e}},[C,c,A]),(0,a.useEffect)(()=>{if(c||!E.current)return;let e=E.current,t=window.setTimeout(()=>e.focus(),240);return()=>window.clearTimeout(t)},[c]),x?c?(0,o.jsx)(`div`,{ref:T,role:`dialog`,"aria-modal":`true`,className:e.t(d,p),children:u}):null:(0,o.jsx)(i.AnimatePresence,{onExitComplete:()=>{let e=E.current;E.current=null,window.setTimeout(()=>e?.focus(),0)},children:c&&(0,o.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6`,children:[(0,o.jsx)(i.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:e.t(`absolute inset-0 bg-overlay`,f),onClick:w?A:void 0}),(0,o.jsxs)(i.motion.div,{ref:T,initial:{opacity:0,scale:.98,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:10},transition:{duration:.22,ease:[.16,1,.3,1]},role:`dialog`,"aria-modal":`true`,"aria-labelledby":h?O:void 0,"aria-describedby":g?k:void 0,"aria-label":h?void 0:S,tabIndex:-1,className:e.t(`relative w-full overflow-hidden flex flex-col`,`rounded-[var(--radius-xl)] border border-border bg-surface-raised shadow-overlay`,`max-h-[min(90dvh,720px)]`,s[m],p,d),children:[h&&(0,o.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-b border-border px-5 pb-3 pt-4 sm:px-6 shrink-0`,children:[(0,o.jsxs)(`div`,{className:`flex gap-3.5 min-w-0 flex-1`,children:[_&&(0,o.jsx)(`div`,{className:`mt-0.5 shrink-0 text-muted-foreground [&_svg]:size-5`,"aria-hidden":`true`,children:_}),(0,o.jsxs)(`div`,{className:`min-w-0 flex-1 pt-0.5`,children:[(0,o.jsx)(`h2`,{id:O,className:`text-base font-semibold leading-6 text-foreground`,children:h}),g&&(0,o.jsx)(`p`,{id:k,className:`mt-1 text-sm leading-5 text-muted-foreground`,children:g})]})]}),v&&(0,o.jsx)(`button`,{type:`button`,"data-modal-close":!0,"aria-label":y,onClick:A,className:t.c,children:(0,o.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,o.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]}),!h&&v&&(0,o.jsx)(`button`,{type:`button`,"data-modal-close":!0,"aria-label":y,onClick:A,className:e.t(`absolute right-4 top-4 z-10`,t.c),children:(0,o.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,o.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})}),(0,o.jsx)(`div`,{"data-modal-content":!0,className:e.t(`px-5 py-4 sm:px-6 flex-1`,b?`overflow-y-auto overscroll-contain`:`overflow-y-auto`),children:u})]})]})})}function l({className:t,children:n,...r}){return(0,o.jsx)(`div`,{className:e.t(`px-5 pt-4 pb-3 sm:px-6 border-b border-border shrink-0`,t),...r,children:n})}function u({as:t=`h2`,className:n,children:r,...i}){return(0,o.jsx)(t,{className:e.t(`text-base font-semibold leading-6 text-foreground`,n),...i,children:r})}function d({className:t,children:n,...r}){return(0,o.jsx)(`p`,{className:e.t(`mt-1 text-sm leading-5 text-muted-foreground`,t),...r,children:n})}function f({className:t,scrollable:n=!1,children:r,...i}){return(0,o.jsx)(`div`,{"data-modal-content":!0,className:e.t(`px-5 py-4 sm:px-6`,n&&`overflow-y-auto flex-1 overscroll-contain`,t),...i,children:r})}function p({className:t,children:n,...r}){return(0,o.jsx)(`div`,{className:e.t(`flex flex-wrap items-center justify-end gap-2 border-t border-border px-5 pb-4 pt-3 sm:px-6 max-sm:flex-col-reverse max-sm:items-stretch`,t),...r,children:n})}exports.Modal=c,exports.ModalBody=f,exports.ModalDescription=d,exports.ModalFooter=p,exports.ModalHeader=l,exports.ModalTitle=u;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cn-B6R3HKzx.cjs"),t=require("../component-styles-DY4wigiq.cjs"),n=require("../use-event-callback-Du9_9eAi.cjs"),r=require("../motion-B2shivEB.cjs"),i=require("../use-focus-trap-CPLT49gN.cjs");let a=require("framer-motion"),o=require("react"),s=require("react/jsx-runtime");var c={sm:`max-w-[380px]`,md:`max-w-[480px]`,lg:`max-w-[560px]`,xl:`max-w-[640px]`,"2xl":`max-w-[720px]`,"7xl":`max-w-3xl`,full:`max-w-[calc(100vw-2rem)]`};function l({open:l,onClose:u,children:d,className:f,overlayClassName:p,panelClassName:m,containerClassName:h,headerClassName:g,iconClassName:_,titleClassName:v,descriptionClassName:y,closeButtonClassName:b,contentClassName:x,size:S=`md`,title:C,description:w,icon:T,showCloseButton:E=!0,closeAriaLabel:D=`Close dialog`,scrollable:O=!1,unstyled:k=!1,ariaLabel:A=`Dialog`,closeOnEscape:j=!0,closeOnOverlayClick:M=!0}){let N=(0,o.useRef)(null),P=(0,o.useId)(),F=(0,o.useId)(),I=n.t(u),{previouslyFocusedRef:L,restoreNow:R}=i.n(l);return i.t(N,{active:l,onEscape:I,closeOnEscape:j}),k?l?(0,s.jsx)(`div`,{ref:N,role:`dialog`,"aria-modal":`true`,className:e.t(f,m),children:d}):null:(0,s.jsx)(a.AnimatePresence,{onExitComplete:R,children:l&&(0,s.jsxs)(`div`,{className:e.t(`fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6`,h),children:[(0,s.jsx)(a.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:r.n.overlay,className:e.t(`absolute inset-0 bg-overlay`,p),onClick:M?I:void 0}),(0,s.jsxs)(a.motion.div,{ref:N,initial:{opacity:0,scale:.98,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:10},transition:r.n.panelEnter,role:`dialog`,"aria-modal":`true`,"aria-labelledby":C?P:void 0,"aria-describedby":w?F:void 0,"aria-label":C?void 0:A,tabIndex:-1,className:e.t(`relative w-full overflow-hidden flex flex-col`,`rounded-[var(--radius-xl)] border border-border bg-surface-raised shadow-overlay`,`max-h-[min(90dvh,720px)]`,c[S],m,f),children:[C&&(0,s.jsxs)(`div`,{className:e.t(`flex items-start justify-between gap-4 border-b border-border px-5 pb-3 pt-4 sm:px-6 shrink-0`,g),children:[(0,s.jsxs)(`div`,{className:`flex gap-3.5 min-w-0 flex-1`,children:[T&&(0,s.jsx)(`div`,{className:e.t(`mt-0.5 shrink-0 text-muted-foreground [&_svg]:size-5`,_),"aria-hidden":`true`,children:T}),(0,s.jsxs)(`div`,{className:`min-w-0 flex-1 pt-0.5`,children:[(0,s.jsx)(`h2`,{id:P,className:e.t(`text-base font-semibold leading-6 text-foreground`,v),children:C}),w&&(0,s.jsx)(`p`,{id:F,className:e.t(`mt-1 text-sm leading-5 text-muted-foreground`,y),children:w})]})]}),E&&(0,s.jsx)(`button`,{type:`button`,"data-modal-close":!0,"aria-label":D,onClick:I,className:e.t(t.c,b),children:(0,s.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,s.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})})]}),!C&&E&&(0,s.jsx)(`button`,{type:`button`,"data-modal-close":!0,"aria-label":D,onClick:I,className:e.t(`absolute right-4 top-4 z-10`,t.c,b),children:(0,s.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,s.jsx)(`path`,{d:`M18 6 6 18M6 6l12 12`})})}),(0,s.jsx)(`div`,{"data-modal-content":!0,className:e.t(`px-5 py-4 sm:px-6 flex-1`,O?`overflow-y-auto overscroll-contain`:`overflow-y-auto`,x),children:d})]})]})})}function u({className:t,children:n,...r}){return(0,s.jsx)(`div`,{className:e.t(`px-5 pt-4 pb-3 sm:px-6 border-b border-border shrink-0`,t),...r,children:n})}function d({as:t=`h2`,className:n,children:r,...i}){return(0,s.jsx)(t,{className:e.t(`text-base font-semibold leading-6 text-foreground`,n),...i,children:r})}function f({className:t,children:n,...r}){return(0,s.jsx)(`p`,{className:e.t(`mt-1 text-sm leading-5 text-muted-foreground`,t),...r,children:n})}function p({className:t,scrollable:n=!1,children:r,...i}){return(0,s.jsx)(`div`,{"data-modal-content":!0,className:e.t(`px-5 py-4 sm:px-6`,n&&`overflow-y-auto flex-1 overscroll-contain`,t),...i,children:r})}function m({className:t,children:n,...r}){return(0,s.jsx)(`div`,{className:e.t(`flex flex-wrap items-center justify-end gap-2 border-t border-border px-5 pb-4 pt-3 sm:px-6 max-sm:flex-col-reverse max-sm:items-stretch`,t),...r,children:n})}exports.Modal=l,exports.ModalBody=p,exports.ModalDescription=f,exports.ModalFooter=m,exports.ModalHeader=u,exports.ModalTitle=d;
@@ -6,6 +6,13 @@ export interface ModalProps {
6
6
  className?: string;
7
7
  overlayClassName?: string;
8
8
  panelClassName?: string;
9
+ containerClassName?: string;
10
+ headerClassName?: string;
11
+ iconClassName?: string;
12
+ titleClassName?: string;
13
+ descriptionClassName?: string;
14
+ closeButtonClassName?: string;
15
+ contentClassName?: string;
9
16
  size?: "sm" | "md" | "lg" | "xl" | "2xl" | "7xl" | "full";
10
17
  title?: string;
11
18
  description?: string;
@@ -18,7 +25,7 @@ export interface ModalProps {
18
25
  closeOnEscape?: boolean;
19
26
  closeOnOverlayClick?: boolean;
20
27
  }
21
- export declare function Modal({ open, onClose, children, className, overlayClassName, panelClassName, size, title, description, icon, showCloseButton, closeAriaLabel, scrollable, unstyled, ariaLabel, closeOnEscape, closeOnOverlayClick, }: ModalProps): import("react").JSX.Element | null;
28
+ export declare function Modal({ open, onClose, children, className, overlayClassName, panelClassName, containerClassName, headerClassName, iconClassName, titleClassName, descriptionClassName, closeButtonClassName, contentClassName, size, title, description, icon, showCloseButton, closeAriaLabel, scrollable, unstyled, ariaLabel, closeOnEscape, closeOnOverlayClick, }: ModalProps): import("react").JSX.Element | null;
22
29
  export declare function ModalHeader({ className, children, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
23
30
  export declare function ModalTitle({ as: Tag, className, children, ...props }: HTMLAttributes<HTMLHeadingElement> & {
24
31
  as?: "h1" | "h2" | "h3" | "div";