@customafk/lunas-ui 0.0.10 → 0.0.12

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 (285) hide show
  1. package/dist/{alert-dialog-0KwdjY-6.js → alert-dialog-CQa0TLlF.js} +1 -1
  2. package/dist/{alert-dialog-0KwdjY-6.js.map → alert-dialog-CQa0TLlF.js.map} +1 -1
  3. package/dist/{alert-dialog-BQv-ZvW9.cjs → alert-dialog-D1DFrl-0.cjs} +1 -1
  4. package/dist/{alert-dialog-BQv-ZvW9.cjs.map → alert-dialog-D1DFrl-0.cjs.map} +1 -1
  5. package/dist/{badge-DfSj5nwV.cjs → badge-DYEZ71Xn.cjs} +1 -1
  6. package/dist/{badge-DfSj5nwV.cjs.map → badge-DYEZ71Xn.cjs.map} +1 -1
  7. package/dist/{badge-D_qEoSL8.js → badge-DzKUgC8v.js} +1 -1
  8. package/dist/{badge-D_qEoSL8.js.map → badge-DzKUgC8v.js.map} +1 -1
  9. package/dist/{button-Blg2XhHo.d.ts → button-BAqUUT0m.d.cts} +4 -4
  10. package/dist/{button-DThtZ8g0.d.cts → button-O7LPNFsW.d.ts} +5 -5
  11. package/dist/{calendar-5D53vIAn.js → calendar-DaYVxwJx.js} +1 -1
  12. package/dist/{calendar-5D53vIAn.js.map → calendar-DaYVxwJx.js.map} +1 -1
  13. package/dist/{calendar-CPFb8F_s.cjs → calendar-DzAxQqFI.cjs} +1 -1
  14. package/dist/{calendar-CPFb8F_s.cjs.map → calendar-DzAxQqFI.cjs.map} +1 -1
  15. package/dist/cards/simple-card.d.ts +2 -2
  16. package/dist/{command-D8k85t1c.cjs → command-BaCe_FWz.cjs} +2 -2
  17. package/dist/{command-D8k85t1c.cjs.map → command-BaCe_FWz.cjs.map} +1 -1
  18. package/dist/{command-DXhsKiMq.d.ts → command-CzvzZ5v7.d.ts} +12 -12
  19. package/dist/{command-DieInaEN.js → command-DCJja1nB.js} +2 -2
  20. package/dist/{command-DieInaEN.js.map → command-DCJja1nB.js.map} +1 -1
  21. package/dist/{command-ByvjNMyq.d.cts → command-DrdWHvOO.d.cts} +12 -12
  22. package/dist/data-display/date-tooltip.cjs +2 -0
  23. package/dist/data-display/date-tooltip.cjs.map +1 -0
  24. package/dist/data-display/date-tooltip.d.cts +8 -0
  25. package/dist/data-display/date-tooltip.d.ts +8 -0
  26. package/dist/data-display/date-tooltip.js +2 -0
  27. package/dist/data-display/date-tooltip.js.map +1 -0
  28. package/dist/data-display/empty.d.ts +2 -2
  29. package/dist/data-display/name.cjs +1 -1
  30. package/dist/data-display/name.js +1 -1
  31. package/dist/data-display/phone-number.cjs +1 -1
  32. package/dist/data-display/phone-number.js +1 -1
  33. package/dist/data-display/role-badge.cjs +1 -1
  34. package/dist/data-display/role-badge.js +1 -1
  35. package/dist/data-display/statistic.d.cts +2 -2
  36. package/dist/data-display/statistic.d.ts +2 -2
  37. package/dist/{dialog-C4hf-Puw.js → dialog-C0AcPpDH.js} +2 -2
  38. package/dist/{dialog-C4hf-Puw.js.map → dialog-C0AcPpDH.js.map} +1 -1
  39. package/dist/{dialog-Cn8cFeu-.cjs → dialog-CH0Dihp0.cjs} +2 -2
  40. package/dist/{dialog-Cn8cFeu-.cjs.map → dialog-CH0Dihp0.cjs.map} +1 -1
  41. package/dist/{dialog-Dlozd6qY.d.ts → dialog-Ch71L6oE.d.ts} +12 -12
  42. package/dist/{dialog-B3V9xxdD.d.cts → dialog-DQY1Cjay.d.cts} +12 -12
  43. package/dist/dialogs/confirm-dialog.cjs +1 -1
  44. package/dist/dialogs/confirm-dialog.js +1 -1
  45. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  46. package/dist/dialogs/detail-dialog/index.js +1 -1
  47. package/dist/dialogs/error-dialog.cjs +1 -1
  48. package/dist/dialogs/error-dialog.js +1 -1
  49. package/dist/dialogs/form-dialog.cjs +1 -1
  50. package/dist/dialogs/form-dialog.d.cts +2 -2
  51. package/dist/dialogs/form-dialog.d.ts +2 -2
  52. package/dist/dialogs/form-dialog.js +1 -1
  53. package/dist/dialogs/loading-dialog.cjs +1 -1
  54. package/dist/dialogs/loading-dialog.js +1 -1
  55. package/dist/{dropdown-menu-DTFOCPH_.js → dropdown-menu-CMHZTUhT.js} +2 -2
  56. package/dist/{dropdown-menu-DTFOCPH_.js.map → dropdown-menu-CMHZTUhT.js.map} +1 -1
  57. package/dist/{dropdown-menu-D2Kh77uw.cjs → dropdown-menu-QdmFgxxq.cjs} +2 -2
  58. package/dist/{dropdown-menu-D2Kh77uw.cjs.map → dropdown-menu-QdmFgxxq.cjs.map} +1 -1
  59. package/dist/{error-dialog-DO0Bb-pi.cjs → error-dialog-BTjeT7x-.cjs} +2 -2
  60. package/dist/{error-dialog-DO0Bb-pi.cjs.map → error-dialog-BTjeT7x-.cjs.map} +1 -1
  61. package/dist/{error-dialog-D_4WL-Hj.js → error-dialog-DlhosP10.js} +2 -2
  62. package/dist/{error-dialog-D_4WL-Hj.js.map → error-dialog-DlhosP10.js.map} +1 -1
  63. package/dist/{form-wrapper-FYiHHas7.cjs → form-wrapper-CCqogufb.cjs} +2 -2
  64. package/dist/{form-wrapper-FYiHHas7.cjs.map → form-wrapper-CCqogufb.cjs.map} +1 -1
  65. package/dist/{form-wrapper-D-2Uz518.js → form-wrapper-YPIbD8rh.js} +2 -2
  66. package/dist/{form-wrapper-D-2Uz518.js.map → form-wrapper-YPIbD8rh.js.map} +1 -1
  67. package/dist/forms/combobox-field.cjs +2 -2
  68. package/dist/forms/combobox-field.d.cts +2 -2
  69. package/dist/forms/combobox-field.d.ts +2 -2
  70. package/dist/forms/combobox-field.js +2 -2
  71. package/dist/forms/date-field.cjs +1 -1
  72. package/dist/forms/date-field.d.cts +2 -2
  73. package/dist/forms/date-field.d.ts +2 -2
  74. package/dist/forms/date-field.js +1 -1
  75. package/dist/forms/form-wrapper.cjs +1 -1
  76. package/dist/forms/form-wrapper.d.cts +2 -2
  77. package/dist/forms/form-wrapper.d.ts +2 -2
  78. package/dist/forms/form-wrapper.js +1 -1
  79. package/dist/forms/multi-select-field.cjs +1 -1
  80. package/dist/forms/multi-select-field.cjs.map +1 -1
  81. package/dist/forms/multi-select-field.d.cts +2 -2
  82. package/dist/forms/multi-select-field.d.ts +2 -2
  83. package/dist/forms/multi-select-field.js +1 -1
  84. package/dist/forms/number-field.d.cts +2 -2
  85. package/dist/forms/number-field.d.ts +2 -2
  86. package/dist/forms/password-field.d.cts +2 -2
  87. package/dist/forms/password-field.d.ts +2 -2
  88. package/dist/forms/select-field.cjs +1 -1
  89. package/dist/forms/select-field.d.cts +2 -2
  90. package/dist/forms/select-field.d.ts +2 -2
  91. package/dist/forms/select-field.js +1 -1
  92. package/dist/forms/switch-field.d.cts +2 -2
  93. package/dist/forms/switch-field.d.ts +2 -2
  94. package/dist/forms/text-field.d.cts +2 -2
  95. package/dist/forms/text-field.d.ts +2 -2
  96. package/dist/forms/textarea-field.d.cts +2 -2
  97. package/dist/forms/textarea-field.d.ts +2 -2
  98. package/dist/{input-yduNlg8y.d.ts → input-DhLxB8V-.d.cts} +3 -3
  99. package/dist/{input-DlRU8OGl.d.cts → input-cj6Jc1Zj.d.ts} +3 -3
  100. package/dist/layouts/flex.d.cts +4 -4
  101. package/dist/layouts/flex.d.ts +8 -8
  102. package/dist/layouts/main/index.cjs +1 -1
  103. package/dist/layouts/main/index.js +1 -1
  104. package/dist/{multi-select-EqlnkO5V.cjs → multi-select-C-r_XSFy.cjs} +2 -2
  105. package/dist/{multi-select-EqlnkO5V.cjs.map → multi-select-C-r_XSFy.cjs.map} +1 -1
  106. package/dist/{multi-select-Bbv0Z0TP.js → multi-select-p5ihXgWH.js} +2 -2
  107. package/dist/{multi-select-Bbv0Z0TP.js.map → multi-select-p5ihXgWH.js.map} +1 -1
  108. package/dist/{popover-CAokgoc_.cjs → popover-Ce0OTSQL.cjs} +1 -1
  109. package/dist/{popover-CAokgoc_.cjs.map → popover-Ce0OTSQL.cjs.map} +1 -1
  110. package/dist/{popover-B8j86VQv.js → popover-tDri6Ded.js} +1 -1
  111. package/dist/{popover-B8j86VQv.js.map → popover-tDri6Ded.js.map} +1 -1
  112. package/dist/{select-4IO3vAjO.js → select-Cly99ppn.js} +2 -2
  113. package/dist/{select-4IO3vAjO.js.map → select-Cly99ppn.js.map} +1 -1
  114. package/dist/{select-UsiicIRo.cjs → select-sfw-dJW8.cjs} +2 -2
  115. package/dist/{select-UsiicIRo.cjs.map → select-sfw-dJW8.cjs.map} +1 -1
  116. package/dist/{separator-C4XPc_2Y.d.cts → separator-BsnCT8LX.d.cts} +3 -3
  117. package/dist/{separator-o7tKOtGF.d.ts → separator-D1cml8sE.d.ts} +3 -3
  118. package/dist/{sheet-2JqHfdYi.js → sheet-DeJpnbAR.js} +2 -2
  119. package/dist/{sheet-2JqHfdYi.js.map → sheet-DeJpnbAR.js.map} +1 -1
  120. package/dist/{sheet-Dr-a3-o2.cjs → sheet-sg-NUPt_.cjs} +2 -2
  121. package/dist/{sheet-Dr-a3-o2.cjs.map → sheet-sg-NUPt_.cjs.map} +1 -1
  122. package/dist/{sidebar-COBzB7S8.js → sidebar-BDATBAxY.js} +2 -2
  123. package/dist/{sidebar-COBzB7S8.js.map → sidebar-BDATBAxY.js.map} +1 -1
  124. package/dist/{sidebar-gXuaHBie.cjs → sidebar-cprcAORD.cjs} +2 -2
  125. package/dist/{sidebar-gXuaHBie.cjs.map → sidebar-cprcAORD.cjs.map} +1 -1
  126. package/dist/table/index.cjs +1 -1
  127. package/dist/table/index.d.ts +2 -2
  128. package/dist/table/index.js +1 -1
  129. package/dist/{toggle-BCSHdzP0.d.cts → toggle-CxXbGIf5.d.ts} +4 -4
  130. package/dist/{toggle-D42pqCTD.d.ts → toggle-DfC247hI.d.cts} +5 -5
  131. package/dist/{tooltip-MgToVOzy.cjs → tooltip-BFeC0iub.cjs} +1 -1
  132. package/dist/{tooltip-MgToVOzy.cjs.map → tooltip-BFeC0iub.cjs.map} +1 -1
  133. package/dist/{tooltip-Dn8AOhc4.d.cts → tooltip-CA4xH6Zd.d.cts} +6 -6
  134. package/dist/{tooltip-Dzyf5smh.js → tooltip-mqfVQzkp.js} +1 -1
  135. package/dist/{tooltip-Dzyf5smh.js.map → tooltip-mqfVQzkp.js.map} +1 -1
  136. package/dist/typography/paragraph.d.cts +2 -2
  137. package/dist/typography/paragraph.d.ts +2 -2
  138. package/dist/typography/title.d.cts +2 -2
  139. package/dist/typography/title.d.ts +2 -2
  140. package/dist/ui/alert-dialog.cjs +1 -1
  141. package/dist/ui/alert-dialog.d.cts +12 -12
  142. package/dist/ui/alert-dialog.d.ts +12 -12
  143. package/dist/ui/alert-dialog.js +1 -1
  144. package/dist/ui/alert.d.cts +4 -4
  145. package/dist/ui/alert.d.ts +6 -6
  146. package/dist/ui/aspect-ratio.d.cts +2 -2
  147. package/dist/ui/aspect-ratio.d.ts +2 -2
  148. package/dist/ui/avatar.d.cts +4 -4
  149. package/dist/ui/avatar.d.ts +4 -4
  150. package/dist/ui/badge.cjs +1 -1
  151. package/dist/ui/badge.d.cts +3 -3
  152. package/dist/ui/badge.d.ts +5 -5
  153. package/dist/ui/badge.js +1 -1
  154. package/dist/ui/breadcrumb.cjs +1 -1
  155. package/dist/ui/breadcrumb.d.cts +8 -8
  156. package/dist/ui/breadcrumb.d.ts +8 -8
  157. package/dist/ui/breadcrumb.js +1 -1
  158. package/dist/ui/button.d.cts +1 -1
  159. package/dist/ui/button.d.ts +1 -1
  160. package/dist/ui/buttons/edit.cjs +2 -0
  161. package/dist/ui/buttons/edit.cjs.map +1 -0
  162. package/dist/ui/buttons/edit.d.cts +8 -0
  163. package/dist/ui/buttons/edit.d.ts +8 -0
  164. package/dist/ui/buttons/edit.js +2 -0
  165. package/dist/ui/buttons/edit.js.map +1 -0
  166. package/dist/ui/buttons/trash.cjs +2 -0
  167. package/dist/ui/buttons/trash.cjs.map +1 -0
  168. package/dist/ui/buttons/trash.d.cts +8 -0
  169. package/dist/ui/buttons/trash.d.ts +8 -0
  170. package/dist/ui/buttons/trash.js +2 -0
  171. package/dist/ui/buttons/trash.js.map +1 -0
  172. package/dist/ui/buttons/upload-image.cjs +2 -0
  173. package/dist/ui/buttons/upload-image.cjs.map +1 -0
  174. package/dist/ui/buttons/upload-image.d.cts +11 -0
  175. package/dist/ui/buttons/upload-image.d.ts +11 -0
  176. package/dist/ui/buttons/upload-image.js +2 -0
  177. package/dist/ui/buttons/upload-image.js.map +1 -0
  178. package/dist/ui/calendar.cjs +1 -1
  179. package/dist/ui/calendar.d.cts +4 -4
  180. package/dist/ui/calendar.d.ts +4 -4
  181. package/dist/ui/calendar.js +1 -1
  182. package/dist/ui/card.d.cts +8 -8
  183. package/dist/ui/card.d.ts +8 -8
  184. package/dist/ui/carousel.d.cts +7 -7
  185. package/dist/ui/carousel.d.ts +7 -7
  186. package/dist/ui/collapsible.d.cts +4 -4
  187. package/dist/ui/collapsible.d.ts +4 -4
  188. package/dist/ui/command.cjs +1 -1
  189. package/dist/ui/command.d.cts +2 -2
  190. package/dist/ui/command.d.ts +2 -2
  191. package/dist/ui/command.js +1 -1
  192. package/dist/ui/context-menu.cjs +1 -1
  193. package/dist/ui/context-menu.d.cts +16 -16
  194. package/dist/ui/context-menu.d.ts +16 -16
  195. package/dist/ui/context-menu.js +1 -1
  196. package/dist/ui/dialog.cjs +1 -1
  197. package/dist/ui/dialog.d.cts +1 -1
  198. package/dist/ui/dialog.d.ts +1 -1
  199. package/dist/ui/dialog.js +1 -1
  200. package/dist/ui/dropdown-menu.cjs +1 -1
  201. package/dist/ui/dropdown-menu.d.cts +16 -16
  202. package/dist/ui/dropdown-menu.d.ts +16 -16
  203. package/dist/ui/dropdown-menu.js +1 -1
  204. package/dist/ui/file-uploader.d.cts +2 -2
  205. package/dist/ui/file-uploader.d.ts +2 -2
  206. package/dist/ui/form.d.cts +7 -7
  207. package/dist/ui/form.d.ts +7 -7
  208. package/dist/ui/hover-card.d.cts +4 -4
  209. package/dist/ui/hover-card.d.ts +4 -4
  210. package/dist/ui/input-otp.d.cts +5 -5
  211. package/dist/ui/input-otp.d.ts +5 -5
  212. package/dist/ui/input.d.cts +1 -1
  213. package/dist/ui/input.d.ts +1 -1
  214. package/dist/ui/inputs/search-input.d.cts +3 -3
  215. package/dist/ui/inputs/search-input.d.ts +3 -3
  216. package/dist/ui/label.d.cts +2 -2
  217. package/dist/ui/label.d.ts +2 -2
  218. package/dist/ui/menubar.cjs +1 -1
  219. package/dist/ui/menubar.d.cts +17 -17
  220. package/dist/ui/menubar.d.ts +17 -17
  221. package/dist/ui/menubar.js +1 -1
  222. package/dist/ui/multi-select.cjs +1 -1
  223. package/dist/ui/multi-select.d.cts +2 -2
  224. package/dist/ui/multi-select.d.ts +2 -2
  225. package/dist/ui/multi-select.js +1 -1
  226. package/dist/ui/navigation-menu.cjs +1 -1
  227. package/dist/ui/navigation-menu.d.cts +11 -11
  228. package/dist/ui/navigation-menu.d.ts +11 -11
  229. package/dist/ui/navigation-menu.js +1 -1
  230. package/dist/ui/pagination.d.cts +9 -9
  231. package/dist/ui/pagination.d.ts +9 -9
  232. package/dist/ui/popover.cjs +1 -1
  233. package/dist/ui/popover.d.cts +5 -5
  234. package/dist/ui/popover.d.ts +5 -5
  235. package/dist/ui/popover.js +1 -1
  236. package/dist/ui/progress.d.cts +2 -2
  237. package/dist/ui/progress.d.ts +2 -2
  238. package/dist/ui/radio-group.cjs +1 -1
  239. package/dist/ui/radio-group.d.cts +3 -3
  240. package/dist/ui/radio-group.d.ts +3 -3
  241. package/dist/ui/radio-group.js +1 -1
  242. package/dist/ui/resizable.d.cts +4 -4
  243. package/dist/ui/resizable.d.ts +4 -4
  244. package/dist/ui/scroll-area.d.cts +3 -3
  245. package/dist/ui/scroll-area.d.ts +3 -3
  246. package/dist/ui/select.cjs +1 -1
  247. package/dist/ui/select.d.cts +11 -11
  248. package/dist/ui/select.d.ts +11 -11
  249. package/dist/ui/select.js +1 -1
  250. package/dist/ui/separator.d.cts +1 -1
  251. package/dist/ui/separator.d.ts +1 -1
  252. package/dist/ui/sheet.cjs +1 -1
  253. package/dist/ui/sheet.d.cts +9 -9
  254. package/dist/ui/sheet.d.ts +9 -9
  255. package/dist/ui/sheet.js +1 -1
  256. package/dist/ui/sidebar.cjs +1 -1
  257. package/dist/ui/sidebar.d.cts +30 -30
  258. package/dist/ui/sidebar.d.ts +29 -29
  259. package/dist/ui/sidebar.js +1 -1
  260. package/dist/ui/skeleton.d.cts +2 -2
  261. package/dist/ui/skeleton.d.ts +2 -2
  262. package/dist/ui/slider.d.cts +2 -2
  263. package/dist/ui/slider.d.ts +2 -2
  264. package/dist/ui/sonner.d.cts +2 -2
  265. package/dist/ui/sonner.d.ts +2 -2
  266. package/dist/ui/switch.d.cts +2 -2
  267. package/dist/ui/switch.d.ts +2 -2
  268. package/dist/ui/table.d.cts +9 -9
  269. package/dist/ui/table.d.ts +9 -9
  270. package/dist/ui/tabs.d.cts +5 -5
  271. package/dist/ui/tabs.d.ts +5 -5
  272. package/dist/ui/textarea.d.cts +2 -2
  273. package/dist/ui/textarea.d.ts +2 -2
  274. package/dist/ui/toggle-group.d.cts +4 -4
  275. package/dist/ui/toggle-group.d.ts +4 -4
  276. package/dist/ui/toggle.d.cts +1 -1
  277. package/dist/ui/toggle.d.ts +1 -1
  278. package/dist/ui/tooltip.cjs +1 -1
  279. package/dist/ui/tooltip.d.cts +1 -1
  280. package/dist/ui/tooltip.js +1 -1
  281. package/package.json +17 -1
  282. package/packages/components/data-display/date-tooltip.tsx +37 -0
  283. package/packages/components/ui/buttons/edit.tsx +20 -0
  284. package/packages/components/ui/buttons/trash.tsx +20 -0
  285. package/packages/components/ui/buttons/upload-image.tsx +28 -0
@@ -1,5 +1,5 @@
1
- import { Dialog } from "./dialog-B3V9xxdD.cjs";
2
- import * as react_jsx_runtime50 from "react/jsx-runtime";
1
+ import { Dialog } from "./dialog-DQY1Cjay.cjs";
2
+ import * as react_jsx_runtime62 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import { Command } from "cmdk";
5
5
 
@@ -7,7 +7,7 @@ import { Command } from "cmdk";
7
7
  declare function Command$1({
8
8
  className,
9
9
  ...props
10
- }: React.ComponentProps<typeof Command>): react_jsx_runtime50.JSX.Element;
10
+ }: React.ComponentProps<typeof Command>): react_jsx_runtime62.JSX.Element;
11
11
  declare function CommandDialog({
12
12
  title,
13
13
  description,
@@ -20,34 +20,34 @@ declare function CommandDialog({
20
20
  description?: string;
21
21
  className?: string;
22
22
  showCloseButton?: boolean;
23
- }): react_jsx_runtime50.JSX.Element;
23
+ }): react_jsx_runtime62.JSX.Element;
24
24
  declare function CommandInput({
25
25
  className,
26
26
  ...props
27
- }: React.ComponentProps<typeof Command.Input>): react_jsx_runtime50.JSX.Element;
27
+ }: React.ComponentProps<typeof Command.Input>): react_jsx_runtime62.JSX.Element;
28
28
  declare function CommandList({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof Command.List>): react_jsx_runtime50.JSX.Element;
31
+ }: React.ComponentProps<typeof Command.List>): react_jsx_runtime62.JSX.Element;
32
32
  declare function CommandEmpty({
33
33
  ...props
34
- }: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime50.JSX.Element;
34
+ }: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime62.JSX.Element;
35
35
  declare function CommandGroup({
36
36
  className,
37
37
  ...props
38
- }: React.ComponentProps<typeof Command.Group>): react_jsx_runtime50.JSX.Element;
38
+ }: React.ComponentProps<typeof Command.Group>): react_jsx_runtime62.JSX.Element;
39
39
  declare function CommandSeparator({
40
40
  className,
41
41
  ...props
42
- }: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime50.JSX.Element;
42
+ }: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime62.JSX.Element;
43
43
  declare function CommandItem({
44
44
  className,
45
45
  ...props
46
- }: React.ComponentProps<typeof Command.Item>): react_jsx_runtime50.JSX.Element;
46
+ }: React.ComponentProps<typeof Command.Item>): react_jsx_runtime62.JSX.Element;
47
47
  declare function CommandShortcut({
48
48
  className,
49
49
  ...props
50
- }: React.ComponentProps<"span">): react_jsx_runtime50.JSX.Element;
50
+ }: React.ComponentProps<"span">): react_jsx_runtime62.JSX.Element;
51
51
  //#endregion
52
52
  export { Command$1 as Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
53
- //# sourceMappingURL=command-ByvjNMyq.d.cts.map
53
+ //# sourceMappingURL=command-DrdWHvOO.d.cts.map
@@ -0,0 +1,2 @@
1
+ const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`);const t=require(`../date-ByLOGsKl.cjs`),n=require(`../badge-DYEZ71Xn.cjs`),r=require(`../tooltip-BFeC0iub.cjs`),i=e.__toESM(require(`react/jsx-runtime`)),a=({date:e})=>(0,i.jsx)(r.TooltipProvider,{children:(0,i.jsxs)(r.Tooltip,{children:[(0,i.jsx)(r.TooltipTrigger,{asChild:!0,children:(0,i.jsx)(n.Badge,{children:(0,i.jsx)(t.DateDisplay,{date:e,format:`medium`,className:`font-normal text-white`})})}),(0,i.jsx)(r.TooltipContent,{children:(0,i.jsx)(t.DateDisplay,{date:e,format:`full`,showTime:!0,className:`text-secondary !font-[Inter] font-medium`})})]})});exports.DateTooltip=a;
2
+ //# sourceMappingURL=date-tooltip.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-tooltip.cjs","names":["DateTooltip: React.FC<Props>","TooltipProvider","Tooltip","TooltipTrigger","Badge","DateDisplay","TooltipContent"],"sources":["../../packages/components/data-display/date-tooltip.tsx"],"sourcesContent":["import { DateDisplay } from \"./date\";\nimport { Badge } from \"../ui/badge\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../ui/tooltip\";\n\ntype Props = {\n date: Date | string | number;\n};\nexport const DateTooltip: React.FC<Props> = ({ date }) => {\n return (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger asChild>\n <Badge>\n <DateDisplay\n date={date}\n format=\"medium\"\n className=\"font-normal text-white\"\n />\n </Badge>\n </TooltipTrigger>\n <TooltipContent>\n <DateDisplay\n date={date}\n format=\"full\"\n showTime\n className=\"text-secondary !font-[Inter] font-medium\"\n />\n </TooltipContent>\n </Tooltip>\n </TooltipProvider>\n );\n};\n"],"mappings":"oOAYaA,GAAgC,CAAE,WAE3C,EAAA,EAAA,KAACC,EAAAA,gBAAAA,CAAAA,UACC,EAAA,EAAA,MAACC,EAAAA,QAAAA,CAAAA,SAAAA,EACC,EAAA,EAAA,KAACC,EAAAA,eAAAA,CAAe,QAAA,aACd,EAAA,EAAA,KAACC,EAAAA,MAAAA,CAAAA,UACC,EAAA,EAAA,KAACC,EAAAA,YAAAA,CACO,OACN,OAAO,SACP,UAAU,gCAIhB,EAAA,EAAA,KAACC,EAAAA,eAAAA,CAAAA,UACC,EAAA,EAAA,KAACD,EAAAA,YAAAA,CACO,OACN,OAAO,OACP,SAAA,GACA,UAAU"}
@@ -0,0 +1,8 @@
1
+ //#region packages/components/data-display/date-tooltip.d.ts
2
+ type Props = {
3
+ date: Date | string | number;
4
+ };
5
+ declare const DateTooltip: React.FC<Props>;
6
+ //#endregion
7
+ export { DateTooltip };
8
+ //# sourceMappingURL=date-tooltip.d.cts.map
@@ -0,0 +1,8 @@
1
+ //#region packages/components/data-display/date-tooltip.d.ts
2
+ type Props = {
3
+ date: Date | string | number;
4
+ };
5
+ declare const DateTooltip: React.FC<Props>;
6
+ //#endregion
7
+ export { DateTooltip };
8
+ //# sourceMappingURL=date-tooltip.d.ts.map
@@ -0,0 +1,2 @@
1
+ import"../utils-D9AH0PUV.js";import{DateDisplay as e}from"../date-BMq_DNsv.js";import{Badge as t}from"../badge-DzKUgC8v.js";import{Tooltip as n,TooltipContent as r,TooltipProvider as i,TooltipTrigger as a}from"../tooltip-mqfVQzkp.js";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=({date:c})=>o(i,{children:s(n,{children:[o(a,{asChild:!0,children:o(t,{children:o(e,{date:c,format:`medium`,className:`font-normal text-white`})})}),o(r,{children:o(e,{date:c,format:`full`,showTime:!0,className:`text-secondary !font-[Inter] font-medium`})})]})});export{c as DateTooltip};
2
+ //# sourceMappingURL=date-tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-tooltip.js","names":["DateTooltip: React.FC<Props>"],"sources":["../../packages/components/data-display/date-tooltip.tsx"],"sourcesContent":["import { DateDisplay } from \"./date\";\nimport { Badge } from \"../ui/badge\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../ui/tooltip\";\n\ntype Props = {\n date: Date | string | number;\n};\nexport const DateTooltip: React.FC<Props> = ({ date }) => {\n return (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger asChild>\n <Badge>\n <DateDisplay\n date={date}\n format=\"medium\"\n className=\"font-normal text-white\"\n />\n </Badge>\n </TooltipTrigger>\n <TooltipContent>\n <DateDisplay\n date={date}\n format=\"full\"\n showTime\n className=\"text-secondary !font-[Inter] font-medium\"\n />\n </TooltipContent>\n </Tooltip>\n </TooltipProvider>\n );\n};\n"],"mappings":"4RAYA,MAAaA,GAAgC,CAAE,UAE3C,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAA,SAAA,CACC,EAAC,EAAA,CAAe,QAAA,YACd,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CACO,OACN,OAAO,SACP,UAAU,+BAIhB,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CACO,OACN,OAAO,OACP,SAAA,GACA,UAAU"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime1 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/data-display/empty.d.ts
4
- declare const EmptyDisplay: () => react_jsx_runtime1.JSX.Element;
4
+ declare const EmptyDisplay: () => react_jsx_runtime0.JSX.Element;
5
5
  //#endregion
6
6
  export { EmptyDisplay };
7
7
  //# sourceMappingURL=empty.d.ts.map
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`);const t=require(`../paragraph-DWQ0PZt_.cjs`),n=require(`../tooltip-MgToVOzy.cjs`),r=e.__toESM(require(`react`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e})=>(0,i.jsxs)(n.Tooltip,{children:[(0,i.jsx)(n.TooltipTrigger,{children:(0,i.jsx)(t.Paragraph,{variant:`sm`,className:`line-clamp-2 cursor-help`,children:e})}),(0,i.jsx)(n.TooltipContent,{className:`max-w-80 text-wrap break-keep whitespace-pre-line`,children:e})]});exports.NameDisplay=a;
1
+ const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`);const t=require(`../paragraph-DWQ0PZt_.cjs`),n=require(`../tooltip-BFeC0iub.cjs`),r=e.__toESM(require(`react`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e})=>(0,i.jsxs)(n.Tooltip,{children:[(0,i.jsx)(n.TooltipTrigger,{children:(0,i.jsx)(t.Paragraph,{variant:`sm`,className:`line-clamp-2 cursor-help`,children:e})}),(0,i.jsx)(n.TooltipContent,{className:`max-w-80 text-wrap break-keep whitespace-pre-line`,children:e})]});exports.NameDisplay=a;
2
2
  //# sourceMappingURL=name.cjs.map
@@ -1,2 +1,2 @@
1
- import"../utils-D9AH0PUV.js";import{Paragraph as e}from"../paragraph-Bey03JkA.js";import{Tooltip as t,TooltipContent as n,TooltipTrigger as r}from"../tooltip-Dzyf5smh.js";import i from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";const s=({name:i})=>o(t,{children:[a(r,{children:a(e,{variant:`sm`,className:`line-clamp-2 cursor-help`,children:i})}),a(n,{className:`max-w-80 text-wrap break-keep whitespace-pre-line`,children:i})]});export{s as NameDisplay};
1
+ import"../utils-D9AH0PUV.js";import{Paragraph as e}from"../paragraph-Bey03JkA.js";import{Tooltip as t,TooltipContent as n,TooltipTrigger as r}from"../tooltip-mqfVQzkp.js";import i from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";const s=({name:i})=>o(t,{children:[a(r,{children:a(e,{variant:`sm`,className:`line-clamp-2 cursor-help`,children:i})}),a(n,{className:`max-w-80 text-wrap break-keep whitespace-pre-line`,children:i})]});export{s as NameDisplay};
2
2
  //# sourceMappingURL=name.js.map
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`);const t=require(`../tooltip-MgToVOzy.cjs`),n=e.__toESM(require(`react/jsx-runtime`)),r=({value:e})=>(0,n.jsxs)(t.Tooltip,{children:[(0,n.jsx)(t.TooltipTrigger,{asChild:!0,children:(0,n.jsx)(`p`,{className:`font-number text-secondary-foreground text-sm`,children:e.replace(/(\d{3})(\d{3})(\d{4})/,`($1) $2-$3`)})}),(0,n.jsx)(t.TooltipContent,{children:(0,n.jsx)(`p`,{children:e.slice(1).replace(/(\d{2})(\d{3})(\d{4})/,`(00) (+84) ($1) $2-$3`)})})]});exports.PhoneNumberDisplay=r;
1
+ const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`);const t=require(`../tooltip-BFeC0iub.cjs`),n=e.__toESM(require(`react/jsx-runtime`)),r=({value:e})=>(0,n.jsxs)(t.Tooltip,{children:[(0,n.jsx)(t.TooltipTrigger,{asChild:!0,children:(0,n.jsx)(`p`,{className:`font-number text-secondary-foreground text-sm`,children:e.replace(/(\d{3})(\d{3})(\d{4})/,`($1) $2-$3`)})}),(0,n.jsx)(t.TooltipContent,{children:(0,n.jsx)(`p`,{children:e.slice(1).replace(/(\d{2})(\d{3})(\d{4})/,`(00) (+84) ($1) $2-$3`)})})]});exports.PhoneNumberDisplay=r;
2
2
  //# sourceMappingURL=phone-number.cjs.map
@@ -1,2 +1,2 @@
1
- import"../utils-D9AH0PUV.js";import{Tooltip as e,TooltipContent as t,TooltipTrigger as n}from"../tooltip-Dzyf5smh.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=({value:a})=>i(e,{children:[r(n,{asChild:!0,children:r(`p`,{className:`font-number text-secondary-foreground text-sm`,children:a.replace(/(\d{3})(\d{3})(\d{4})/,`($1) $2-$3`)})}),r(t,{children:r(`p`,{children:a.slice(1).replace(/(\d{2})(\d{3})(\d{4})/,`(00) (+84) ($1) $2-$3`)})})]});export{a as PhoneNumberDisplay};
1
+ import"../utils-D9AH0PUV.js";import{Tooltip as e,TooltipContent as t,TooltipTrigger as n}from"../tooltip-mqfVQzkp.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=({value:a})=>i(e,{children:[r(n,{asChild:!0,children:r(`p`,{className:`font-number text-secondary-foreground text-sm`,children:a.replace(/(\d{3})(\d{3})(\d{4})/,`($1) $2-$3`)})}),r(t,{children:r(`p`,{children:a.slice(1).replace(/(\d{2})(\d{3})(\d{4})/,`(00) (+84) ($1) $2-$3`)})})]});export{a as PhoneNumberDisplay};
2
2
  //# sourceMappingURL=phone-number.js.map
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`);const t=require(`../types-CrbWxjnp.cjs`),n=require(`../badge-DfSj5nwV.cjs`),r=e.__toESM(require(`react`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({status:e})=>{let a=r.default.useMemo(()=>({[t.ERole.ADMIN]:`red`,[t.ERole.SUPER_ADMIN]:`purple`,[t.ERole.MODERATOR]:`indigo`,[t.ERole.STAFF]:`green`,[t.ERole.USER]:`blue`}),[]);return(0,i.jsxs)(n.Badge,{color:a[e],className:`min-w-24 justify-center`,children:[e===t.ERole.SUPER_ADMIN&&`Super Admin`,e===t.ERole.ADMIN&&`Admin`,e===t.ERole.MODERATOR&&`Moderator`,e===t.ERole.STAFF&&`Staff`,e===t.ERole.USER&&`User`]})};exports.RoleBadge=a;
1
+ const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`);const t=require(`../types-CrbWxjnp.cjs`),n=require(`../badge-DYEZ71Xn.cjs`),r=e.__toESM(require(`react`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({status:e})=>{let a=r.default.useMemo(()=>({[t.ERole.ADMIN]:`red`,[t.ERole.SUPER_ADMIN]:`purple`,[t.ERole.MODERATOR]:`indigo`,[t.ERole.STAFF]:`green`,[t.ERole.USER]:`blue`}),[]);return(0,i.jsxs)(n.Badge,{color:a[e],className:`min-w-24 justify-center`,children:[e===t.ERole.SUPER_ADMIN&&`Super Admin`,e===t.ERole.ADMIN&&`Admin`,e===t.ERole.MODERATOR&&`Moderator`,e===t.ERole.STAFF&&`Staff`,e===t.ERole.USER&&`User`]})};exports.RoleBadge=a;
2
2
  //# sourceMappingURL=role-badge.cjs.map
@@ -1,2 +1,2 @@
1
- import"../utils-D9AH0PUV.js";import{ERole as e}from"../types-DaIHddx7.js";import{Badge as t}from"../badge-D_qEoSL8.js";import n from"react";import{jsxs as r}from"react/jsx-runtime";const i=({status:i})=>{let a=n.useMemo(()=>({[e.ADMIN]:`red`,[e.SUPER_ADMIN]:`purple`,[e.MODERATOR]:`indigo`,[e.STAFF]:`green`,[e.USER]:`blue`}),[]);return r(t,{color:a[i],className:`min-w-24 justify-center`,children:[i===e.SUPER_ADMIN&&`Super Admin`,i===e.ADMIN&&`Admin`,i===e.MODERATOR&&`Moderator`,i===e.STAFF&&`Staff`,i===e.USER&&`User`]})};export{i as RoleBadge};
1
+ import"../utils-D9AH0PUV.js";import{ERole as e}from"../types-DaIHddx7.js";import{Badge as t}from"../badge-DzKUgC8v.js";import n from"react";import{jsxs as r}from"react/jsx-runtime";const i=({status:i})=>{let a=n.useMemo(()=>({[e.ADMIN]:`red`,[e.SUPER_ADMIN]:`purple`,[e.MODERATOR]:`indigo`,[e.STAFF]:`green`,[e.USER]:`blue`}),[]);return r(t,{color:a[i],className:`min-w-24 justify-center`,children:[i===e.SUPER_ADMIN&&`Super Admin`,i===e.ADMIN&&`Admin`,i===e.MODERATOR&&`Moderator`,i===e.STAFF&&`Staff`,i===e.USER&&`User`]})};export{i as RoleBadge};
2
2
  //# sourceMappingURL=role-badge.js.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime1 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region packages/components/data-display/statistic.d.ts
@@ -23,7 +23,7 @@ declare const Statistic: React.MemoExoticComponent<({
23
23
  showTrailingZeros,
24
24
  size,
25
25
  value
26
- }: Props) => react_jsx_runtime1.JSX.Element>;
26
+ }: Props) => react_jsx_runtime6.JSX.Element>;
27
27
  //#endregion
28
28
  export { Statistic };
29
29
  //# sourceMappingURL=statistic.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime15 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/data-display/statistic.d.ts
5
5
  type Props = {
@@ -23,7 +23,7 @@ declare const Statistic: React.MemoExoticComponent<({
23
23
  showTrailingZeros,
24
24
  size,
25
25
  value
26
- }: Props) => react_jsx_runtime15.JSX.Element>;
26
+ }: Props) => react_jsx_runtime1.JSX.Element>;
27
27
  //#endregion
28
28
  export { Statistic };
29
29
  //# sourceMappingURL=statistic.d.ts.map
@@ -1,2 +1,2 @@
1
- import{cn as e}from"./utils-D9AH0PUV.js";import t from"react";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{XIcon as i}from"lucide-react";import{Dialog as a}from"radix-ui";function o({...e}){return n(a.Root,{"data-slot":`dialog`,...e})}function s({...e}){return n(a.Trigger,{"data-slot":`dialog-trigger`,...e})}function c({...e}){return n(a.Portal,{"data-slot":`dialog-portal`,...e})}function l({...e}){return n(a.Close,{"data-slot":`dialog-close`,...e})}function u({className:t,...r}){return n(a.Overlay,{"data-slot":`dialog-overlay`,className:e(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,t),...r})}function d({className:t,children:o,showCloseButton:s=!0,...l}){return r(c,{"data-slot":`dialog-portal`,children:[n(u,{}),n(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:r(a.Content,{"data-slot":`dialog-content`,className:e(`bg-background relative dark:border`,`z-50 grid max-h-[85svh] w-full max-w-[calc(100%-2rem)]`,`gap-4 rounded-2xl p-6 shadow-lg duration-200 sm:max-w-lg`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=open]:zoom-in-80`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=closed]:zoom-out-80`,t),...l,children:[o,s&&r(a.Close,{"data-slot":`dialog-close`,tabIndex:-1,className:e(`btnClose`,`absolute top-3 right-3 rounded-full p-2 opacity-70`,`cursor-pointer transition-all`,`outline-0`,`focus:ring-2`,`focus:ring-border`,`hover:opacity-100`,`hover:bg-accent`,`data-[state=open]:bg-accent`,`data-[state=open]:text-muted-foreground`,`disabled:pointer-events-none`,`[&_svg]:text-accent-foreground/60`,`[&_svg]:hover:text-accent-foreground`,`[&_svg]:pointer-events-none`,`[&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-5`),children:[n(i,{}),n(`span`,{className:`sr-only`,children:`Close`})]})]})})]})}function f({className:t,...r}){return n(`div`,{"data-slot":`dialog-header`,className:e(`flex flex-col gap-2 text-center sm:text-left`,t),...r})}function p({className:t,...r}){return n(`div`,{"data-slot":`dialog-footer`,className:e(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,t),...r})}function m({className:t,...r}){return n(a.Title,{"data-slot":`dialog-title`,className:e(`text-lg leading-none font-semibold`,t),...r})}function h({className:t,...r}){return n(a.Description,{"data-slot":`dialog-description`,className:e(`text-muted-foreground text-sm`,t),...r})}export{o as Dialog,l as DialogClose,d as DialogContent,h as DialogDescription,p as DialogFooter,f as DialogHeader,u as DialogOverlay,c as DialogPortal,m as DialogTitle,s as DialogTrigger};
2
- //# sourceMappingURL=dialog-C4hf-Puw.js.map
1
+ import{cn as e}from"./utils-D9AH0PUV.js";import t from"react";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{Dialog as i}from"radix-ui";import{XIcon as a}from"lucide-react";function o({...e}){return n(i.Root,{"data-slot":`dialog`,...e})}function s({...e}){return n(i.Trigger,{"data-slot":`dialog-trigger`,...e})}function c({...e}){return n(i.Portal,{"data-slot":`dialog-portal`,...e})}function l({...e}){return n(i.Close,{"data-slot":`dialog-close`,...e})}function u({className:t,...r}){return n(i.Overlay,{"data-slot":`dialog-overlay`,className:e(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,t),...r})}function d({className:t,children:o,showCloseButton:s=!0,...l}){return r(c,{"data-slot":`dialog-portal`,children:[n(u,{}),n(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:r(i.Content,{"data-slot":`dialog-content`,className:e(`bg-background relative dark:border`,`z-50 grid max-h-[85svh] w-full max-w-[calc(100%-2rem)]`,`gap-4 rounded-2xl p-6 shadow-lg duration-200 sm:max-w-lg`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=open]:zoom-in-80`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=closed]:zoom-out-80`,t),...l,children:[o,s&&r(i.Close,{"data-slot":`dialog-close`,tabIndex:-1,className:e(`btnClose`,`absolute top-3 right-3 rounded-full p-2 opacity-70`,`cursor-pointer transition-all`,`outline-0`,`focus:ring-2`,`focus:ring-border`,`hover:opacity-100`,`hover:bg-accent`,`data-[state=open]:bg-accent`,`data-[state=open]:text-muted-foreground`,`disabled:pointer-events-none`,`[&_svg]:text-accent-foreground/60`,`[&_svg]:hover:text-accent-foreground`,`[&_svg]:pointer-events-none`,`[&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-5`),children:[n(a,{}),n(`span`,{className:`sr-only`,children:`Close`})]})]})})]})}function f({className:t,...r}){return n(`div`,{"data-slot":`dialog-header`,className:e(`flex flex-col gap-2 text-center sm:text-left`,t),...r})}function p({className:t,...r}){return n(`div`,{"data-slot":`dialog-footer`,className:e(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,t),...r})}function m({className:t,...r}){return n(i.Title,{"data-slot":`dialog-title`,className:e(`text-lg leading-none font-semibold`,t),...r})}function h({className:t,...r}){return n(i.Description,{"data-slot":`dialog-description`,className:e(`text-muted-foreground text-sm`,t),...r})}export{o as Dialog,l as DialogClose,d as DialogContent,h as DialogDescription,p as DialogFooter,f as DialogHeader,u as DialogOverlay,c as DialogPortal,m as DialogTitle,s as DialogTrigger};
2
+ //# sourceMappingURL=dialog-C0AcPpDH.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-C4hf-Puw.js","names":["Dialog","DialogPrimitive"],"sources":["../packages/components/ui/dialog.tsx"],"sourcesContent":["\"use client\";\nimport React from \"react\";\nimport { Dialog as DialogPrimitive } from \"radix-ui\";\nimport { XIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"fixed inset-0 z-50 bg-black/50\",\n \"data-[state=open]:animate-in\",\n \"data-[state=open]:fade-in-0\",\n \"data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <div className=\"fixed inset-0 z-50 flex items-center justify-center\">\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"bg-background relative dark:border\",\n \"z-50 grid max-h-[85svh] w-full max-w-[calc(100%-2rem)]\",\n \"gap-4 rounded-2xl p-6 shadow-lg duration-200 sm:max-w-lg\",\n \"data-[state=open]:animate-in\",\n \"data-[state=open]:fade-in-0\",\n \"data-[state=open]:zoom-in-80\",\n \"data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0\",\n \"data-[state=closed]:zoom-out-80\",\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n tabIndex={-1}\n className={cn(\n \"btnClose\",\n \"absolute top-3 right-3 rounded-full p-2 opacity-70\",\n \"cursor-pointer transition-all\",\n \"outline-0\",\n \"focus:ring-2\",\n \"focus:ring-border\",\n \"hover:opacity-100\",\n \"hover:bg-accent\",\n \"data-[state=open]:bg-accent\",\n \"data-[state=open]:text-muted-foreground\",\n \"disabled:pointer-events-none\",\n \"[&_svg]:text-accent-foreground/60\",\n \"[&_svg]:hover:text-accent-foreground\",\n \"[&_svg]:pointer-events-none\",\n \"[&_svg]:shrink-0\",\n \"[&_svg:not([class*='size-'])]:size-5\",\n )}\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </div>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg leading-none font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":"uLAOA,SAASA,EAAO,CACd,GAAG,GACiD,CACpD,OAAO,EAACC,EAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,IAGtD,SAAS,EAAc,CACrB,GAAG,GACoD,CACvD,OAAO,EAACA,EAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,IAGjE,SAAS,EAAa,CACpB,GAAG,GACmD,CACtD,OAAO,EAACA,EAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,IAG/D,SAAS,EAAY,CACnB,GAAG,GACkD,CACrD,OAAO,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,IAG7D,SAAS,EAAc,CACrB,YACA,GAAG,GACoD,CACvD,OACE,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,iCACA,+BACA,8BACA,kCACA,iCACA,GAEF,GAAI,IAKV,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAGF,CACD,OACE,EAAC,EAAA,CAAa,YAAU,0BACtB,EAAC,EAAA,IACD,EAAC,MAAA,CAAI,UAAU,+DACb,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,qCACA,yDACA,2DACA,+BACA,8BACA,+BACA,kCACA,iCACA,kCACA,GAEF,GAAI,YAEH,EACA,GACC,EAACA,EAAgB,MAAA,CACf,YAAU,eACV,SAAU,GACV,UAAW,EACT,WACA,qDACA,gCACA,YACA,eACA,oBACA,oBACA,kBACA,8BACA,0CACA,+BACA,oCACA,uCACA,8BACA,mBACA,kDAGF,EAAC,EAAA,IACD,EAAC,OAAA,CAAK,UAAU,mBAAU,qBASxC,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAC,MAAA,CACC,YAAU,gBACV,UAAW,EAAG,+CAAgD,GAC9D,GAAI,IAKV,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAC,MAAA,CACC,YAAU,gBACV,UAAW,EACT,yDACA,GAEF,GAAI,IAKV,SAAS,EAAY,CACnB,YACA,GAAG,GACkD,CACrD,OACE,EAACA,EAAgB,MAAA,CACf,YAAU,eACV,UAAW,EAAG,qCAAsC,GACpD,GAAI,IAKV,SAAS,EAAkB,CACzB,YACA,GAAG,GACwD,CAC3D,OACE,EAACA,EAAgB,YAAA,CACf,YAAU,qBACV,UAAW,EAAG,gCAAiC,GAC/C,GAAI"}
1
+ {"version":3,"file":"dialog-C0AcPpDH.js","names":["Dialog","DialogPrimitive"],"sources":["../packages/components/ui/dialog.tsx"],"sourcesContent":["\"use client\";\nimport React from \"react\";\nimport { Dialog as DialogPrimitive } from \"radix-ui\";\nimport { XIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"fixed inset-0 z-50 bg-black/50\",\n \"data-[state=open]:animate-in\",\n \"data-[state=open]:fade-in-0\",\n \"data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <div className=\"fixed inset-0 z-50 flex items-center justify-center\">\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"bg-background relative dark:border\",\n \"z-50 grid max-h-[85svh] w-full max-w-[calc(100%-2rem)]\",\n \"gap-4 rounded-2xl p-6 shadow-lg duration-200 sm:max-w-lg\",\n \"data-[state=open]:animate-in\",\n \"data-[state=open]:fade-in-0\",\n \"data-[state=open]:zoom-in-80\",\n \"data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0\",\n \"data-[state=closed]:zoom-out-80\",\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n tabIndex={-1}\n className={cn(\n \"btnClose\",\n \"absolute top-3 right-3 rounded-full p-2 opacity-70\",\n \"cursor-pointer transition-all\",\n \"outline-0\",\n \"focus:ring-2\",\n \"focus:ring-border\",\n \"hover:opacity-100\",\n \"hover:bg-accent\",\n \"data-[state=open]:bg-accent\",\n \"data-[state=open]:text-muted-foreground\",\n \"disabled:pointer-events-none\",\n \"[&_svg]:text-accent-foreground/60\",\n \"[&_svg]:hover:text-accent-foreground\",\n \"[&_svg]:pointer-events-none\",\n \"[&_svg]:shrink-0\",\n \"[&_svg:not([class*='size-'])]:size-5\",\n )}\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </div>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg leading-none font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":"uLAOA,SAASA,EAAO,CACd,GAAG,GACiD,CACpD,OAAO,EAACC,EAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,IAGtD,SAAS,EAAc,CACrB,GAAG,GACoD,CACvD,OAAO,EAACA,EAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,IAGjE,SAAS,EAAa,CACpB,GAAG,GACmD,CACtD,OAAO,EAACA,EAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,IAG/D,SAAS,EAAY,CACnB,GAAG,GACkD,CACrD,OAAO,EAACA,EAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,IAG7D,SAAS,EAAc,CACrB,YACA,GAAG,GACoD,CACvD,OACE,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,iCACA,+BACA,8BACA,kCACA,iCACA,GAEF,GAAI,IAKV,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAGF,CACD,OACE,EAAC,EAAA,CAAa,YAAU,0BACtB,EAAC,EAAA,IACD,EAAC,MAAA,CAAI,UAAU,+DACb,EAACA,EAAgB,QAAA,CACf,YAAU,iBACV,UAAW,EACT,qCACA,yDACA,2DACA,+BACA,8BACA,+BACA,kCACA,iCACA,kCACA,GAEF,GAAI,YAEH,EACA,GACC,EAACA,EAAgB,MAAA,CACf,YAAU,eACV,SAAU,GACV,UAAW,EACT,WACA,qDACA,gCACA,YACA,eACA,oBACA,oBACA,kBACA,8BACA,0CACA,+BACA,oCACA,uCACA,8BACA,mBACA,kDAGF,EAAC,EAAA,IACD,EAAC,OAAA,CAAK,UAAU,mBAAU,qBASxC,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAC,MAAA,CACC,YAAU,gBACV,UAAW,EAAG,+CAAgD,GAC9D,GAAI,IAKV,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAC,MAAA,CACC,YAAU,gBACV,UAAW,EACT,yDACA,GAEF,GAAI,IAKV,SAAS,EAAY,CACnB,YACA,GAAG,GACkD,CACrD,OACE,EAACA,EAAgB,MAAA,CACf,YAAU,eACV,UAAW,EAAG,qCAAsC,GACpD,GAAI,IAKV,SAAS,EAAkB,CACzB,YACA,GAAG,GACwD,CAC3D,OACE,EAACA,EAAgB,YAAA,CACf,YAAU,qBACV,UAAW,EAAG,gCAAiC,GAC/C,GAAI"}
@@ -1,2 +1,2 @@
1
- const e=require(`./chunk-hhQzssFb.cjs`),t=require(`./utils-DaJ1XZgX.cjs`),n=e.__toESM(require(`react`)),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`lucide-react`)),a=e.__toESM(require(`radix-ui`));function o({...e}){return(0,r.jsx)(a.Dialog.Root,{"data-slot":`dialog`,...e})}function s({...e}){return(0,r.jsx)(a.Dialog.Trigger,{"data-slot":`dialog-trigger`,...e})}function c({...e}){return(0,r.jsx)(a.Dialog.Portal,{"data-slot":`dialog-portal`,...e})}function l({...e}){return(0,r.jsx)(a.Dialog.Close,{"data-slot":`dialog-close`,...e})}function u({className:e,...n}){return(0,r.jsx)(a.Dialog.Overlay,{"data-slot":`dialog-overlay`,className:t.cn(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,e),...n})}function d({className:e,children:n,showCloseButton:o=!0,...s}){return(0,r.jsxs)(c,{"data-slot":`dialog-portal`,children:[(0,r.jsx)(u,{}),(0,r.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:(0,r.jsxs)(a.Dialog.Content,{"data-slot":`dialog-content`,className:t.cn(`bg-background relative dark:border`,`z-50 grid max-h-[85svh] w-full max-w-[calc(100%-2rem)]`,`gap-4 rounded-2xl p-6 shadow-lg duration-200 sm:max-w-lg`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=open]:zoom-in-80`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=closed]:zoom-out-80`,e),...s,children:[n,o&&(0,r.jsxs)(a.Dialog.Close,{"data-slot":`dialog-close`,tabIndex:-1,className:t.cn(`btnClose`,`absolute top-3 right-3 rounded-full p-2 opacity-70`,`cursor-pointer transition-all`,`outline-0`,`focus:ring-2`,`focus:ring-border`,`hover:opacity-100`,`hover:bg-accent`,`data-[state=open]:bg-accent`,`data-[state=open]:text-muted-foreground`,`disabled:pointer-events-none`,`[&_svg]:text-accent-foreground/60`,`[&_svg]:hover:text-accent-foreground`,`[&_svg]:pointer-events-none`,`[&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-5`),children:[(0,r.jsx)(i.XIcon,{}),(0,r.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})})]})}function f({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`dialog-header`,className:t.cn(`flex flex-col gap-2 text-center sm:text-left`,e),...n})}function p({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`dialog-footer`,className:t.cn(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...n})}function m({className:e,...n}){return(0,r.jsx)(a.Dialog.Title,{"data-slot":`dialog-title`,className:t.cn(`text-lg leading-none font-semibold`,e),...n})}function h({className:e,...n}){return(0,r.jsx)(a.Dialog.Description,{"data-slot":`dialog-description`,className:t.cn(`text-muted-foreground text-sm`,e),...n})}Object.defineProperty(exports,`Dialog`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`DialogClose`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`DialogContent`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`DialogDescription`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`DialogFooter`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`DialogHeader`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`DialogOverlay`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`DialogPortal`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`DialogTitle`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`DialogTrigger`,{enumerable:!0,get:function(){return s}});
2
- //# sourceMappingURL=dialog-Cn8cFeu-.cjs.map
1
+ const e=require(`./chunk-hhQzssFb.cjs`),t=require(`./utils-DaJ1XZgX.cjs`),n=e.__toESM(require(`react`)),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`radix-ui`)),a=e.__toESM(require(`lucide-react`));function o({...e}){return(0,r.jsx)(i.Dialog.Root,{"data-slot":`dialog`,...e})}function s({...e}){return(0,r.jsx)(i.Dialog.Trigger,{"data-slot":`dialog-trigger`,...e})}function c({...e}){return(0,r.jsx)(i.Dialog.Portal,{"data-slot":`dialog-portal`,...e})}function l({...e}){return(0,r.jsx)(i.Dialog.Close,{"data-slot":`dialog-close`,...e})}function u({className:e,...n}){return(0,r.jsx)(i.Dialog.Overlay,{"data-slot":`dialog-overlay`,className:t.cn(`fixed inset-0 z-50 bg-black/50`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,e),...n})}function d({className:e,children:n,showCloseButton:o=!0,...s}){return(0,r.jsxs)(c,{"data-slot":`dialog-portal`,children:[(0,r.jsx)(u,{}),(0,r.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:(0,r.jsxs)(i.Dialog.Content,{"data-slot":`dialog-content`,className:t.cn(`bg-background relative dark:border`,`z-50 grid max-h-[85svh] w-full max-w-[calc(100%-2rem)]`,`gap-4 rounded-2xl p-6 shadow-lg duration-200 sm:max-w-lg`,`data-[state=open]:animate-in`,`data-[state=open]:fade-in-0`,`data-[state=open]:zoom-in-80`,`data-[state=closed]:animate-out`,`data-[state=closed]:fade-out-0`,`data-[state=closed]:zoom-out-80`,e),...s,children:[n,o&&(0,r.jsxs)(i.Dialog.Close,{"data-slot":`dialog-close`,tabIndex:-1,className:t.cn(`btnClose`,`absolute top-3 right-3 rounded-full p-2 opacity-70`,`cursor-pointer transition-all`,`outline-0`,`focus:ring-2`,`focus:ring-border`,`hover:opacity-100`,`hover:bg-accent`,`data-[state=open]:bg-accent`,`data-[state=open]:text-muted-foreground`,`disabled:pointer-events-none`,`[&_svg]:text-accent-foreground/60`,`[&_svg]:hover:text-accent-foreground`,`[&_svg]:pointer-events-none`,`[&_svg]:shrink-0`,`[&_svg:not([class*='size-'])]:size-5`),children:[(0,r.jsx)(a.XIcon,{}),(0,r.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})})]})}function f({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`dialog-header`,className:t.cn(`flex flex-col gap-2 text-center sm:text-left`,e),...n})}function p({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`dialog-footer`,className:t.cn(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...n})}function m({className:e,...n}){return(0,r.jsx)(i.Dialog.Title,{"data-slot":`dialog-title`,className:t.cn(`text-lg leading-none font-semibold`,e),...n})}function h({className:e,...n}){return(0,r.jsx)(i.Dialog.Description,{"data-slot":`dialog-description`,className:t.cn(`text-muted-foreground text-sm`,e),...n})}Object.defineProperty(exports,`Dialog`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`DialogClose`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`DialogContent`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`DialogDescription`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`DialogFooter`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`DialogHeader`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`DialogOverlay`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`DialogPortal`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`DialogTitle`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`DialogTrigger`,{enumerable:!0,get:function(){return s}});
2
+ //# sourceMappingURL=dialog-CH0Dihp0.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-Cn8cFeu-.cjs","names":["DialogPrimitive","cn","XIcon"],"sources":["../packages/components/ui/dialog.tsx"],"sourcesContent":["\"use client\";\nimport React from \"react\";\nimport { Dialog as DialogPrimitive } from \"radix-ui\";\nimport { XIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"fixed inset-0 z-50 bg-black/50\",\n \"data-[state=open]:animate-in\",\n \"data-[state=open]:fade-in-0\",\n \"data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <div className=\"fixed inset-0 z-50 flex items-center justify-center\">\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"bg-background relative dark:border\",\n \"z-50 grid max-h-[85svh] w-full max-w-[calc(100%-2rem)]\",\n \"gap-4 rounded-2xl p-6 shadow-lg duration-200 sm:max-w-lg\",\n \"data-[state=open]:animate-in\",\n \"data-[state=open]:fade-in-0\",\n \"data-[state=open]:zoom-in-80\",\n \"data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0\",\n \"data-[state=closed]:zoom-out-80\",\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n tabIndex={-1}\n className={cn(\n \"btnClose\",\n \"absolute top-3 right-3 rounded-full p-2 opacity-70\",\n \"cursor-pointer transition-all\",\n \"outline-0\",\n \"focus:ring-2\",\n \"focus:ring-border\",\n \"hover:opacity-100\",\n \"hover:bg-accent\",\n \"data-[state=open]:bg-accent\",\n \"data-[state=open]:text-muted-foreground\",\n \"disabled:pointer-events-none\",\n \"[&_svg]:text-accent-foreground/60\",\n \"[&_svg]:hover:text-accent-foreground\",\n \"[&_svg]:pointer-events-none\",\n \"[&_svg]:shrink-0\",\n \"[&_svg:not([class*='size-'])]:size-5\",\n )}\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </div>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg leading-none font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":"wNAOA,SAAS,EAAO,CACd,GAAG,GACiD,CACpD,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,IAGtD,SAAS,EAAc,CACrB,GAAG,GACoD,CACvD,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,IAGjE,SAAS,EAAa,CACpB,GAAG,GACmD,CACtD,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,IAG/D,SAAS,EAAY,CACnB,GAAG,GACkD,CACrD,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,IAG7D,SAAS,EAAc,CACrB,YACA,GAAG,GACoD,CACvD,OACE,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,UAAWC,EAAAA,GACT,iCACA,+BACA,8BACA,kCACA,iCACA,GAEF,GAAI,IAKV,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAGF,CACD,OACE,EAAA,EAAA,MAAC,EAAA,CAAa,YAAU,2BACtB,EAAA,EAAA,KAAC,EAAA,KACD,EAAA,EAAA,KAAC,MAAA,CAAI,UAAU,gEACb,EAAA,EAAA,MAACD,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,UAAWC,EAAAA,GACT,qCACA,yDACA,2DACA,+BACA,8BACA,+BACA,kCACA,iCACA,kCACA,GAEF,GAAI,YAEH,EACA,IACC,EAAA,EAAA,MAACD,EAAAA,OAAgB,MAAA,CACf,YAAU,eACV,SAAU,GACV,UAAWC,EAAAA,GACT,WACA,qDACA,gCACA,YACA,eACA,oBACA,oBACA,kBACA,8BACA,0CACA,+BACA,oCACA,uCACA,8BACA,mBACA,mDAGF,EAAA,EAAA,KAACC,EAAAA,MAAAA,KACD,EAAA,EAAA,KAAC,OAAA,CAAK,UAAU,mBAAU,qBASxC,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAA,EAAA,KAAC,MAAA,CACC,YAAU,gBACV,UAAWD,EAAAA,GAAG,+CAAgD,GAC9D,GAAI,IAKV,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAA,EAAA,KAAC,MAAA,CACC,YAAU,gBACV,UAAWA,EAAAA,GACT,yDACA,GAEF,GAAI,IAKV,SAAS,EAAY,CACnB,YACA,GAAG,GACkD,CACrD,OACE,EAAA,EAAA,KAACD,EAAAA,OAAgB,MAAA,CACf,YAAU,eACV,UAAWC,EAAAA,GAAG,qCAAsC,GACpD,GAAI,IAKV,SAAS,EAAkB,CACzB,YACA,GAAG,GACwD,CAC3D,OACE,EAAA,EAAA,KAACD,EAAAA,OAAgB,YAAA,CACf,YAAU,qBACV,UAAWC,EAAAA,GAAG,gCAAiC,GAC/C,GAAI"}
1
+ {"version":3,"file":"dialog-CH0Dihp0.cjs","names":["DialogPrimitive","cn","XIcon"],"sources":["../packages/components/ui/dialog.tsx"],"sourcesContent":["\"use client\";\nimport React from \"react\";\nimport { Dialog as DialogPrimitive } from \"radix-ui\";\nimport { XIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />;\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />;\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"fixed inset-0 z-50 bg-black/50\",\n \"data-[state=open]:animate-in\",\n \"data-[state=open]:fade-in-0\",\n \"data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean;\n}) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <div className=\"fixed inset-0 z-50 flex items-center justify-center\">\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"bg-background relative dark:border\",\n \"z-50 grid max-h-[85svh] w-full max-w-[calc(100%-2rem)]\",\n \"gap-4 rounded-2xl p-6 shadow-lg duration-200 sm:max-w-lg\",\n \"data-[state=open]:animate-in\",\n \"data-[state=open]:fade-in-0\",\n \"data-[state=open]:zoom-in-80\",\n \"data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0\",\n \"data-[state=closed]:zoom-out-80\",\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n tabIndex={-1}\n className={cn(\n \"btnClose\",\n \"absolute top-3 right-3 rounded-full p-2 opacity-70\",\n \"cursor-pointer transition-all\",\n \"outline-0\",\n \"focus:ring-2\",\n \"focus:ring-border\",\n \"hover:opacity-100\",\n \"hover:bg-accent\",\n \"data-[state=open]:bg-accent\",\n \"data-[state=open]:text-muted-foreground\",\n \"disabled:pointer-events-none\",\n \"[&_svg]:text-accent-foreground/60\",\n \"[&_svg]:hover:text-accent-foreground\",\n \"[&_svg]:pointer-events-none\",\n \"[&_svg]:shrink-0\",\n \"[&_svg:not([class*='size-'])]:size-5\",\n )}\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </div>\n </DialogPortal>\n );\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg leading-none font-semibold\", className)}\n {...props}\n />\n );\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"mappings":"wNAOA,SAAS,EAAO,CACd,GAAG,GACiD,CACpD,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,KAAA,CAAK,YAAU,SAAS,GAAI,IAGtD,SAAS,EAAc,CACrB,GAAG,GACoD,CACvD,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CAAQ,YAAU,iBAAiB,GAAI,IAGjE,SAAS,EAAa,CACpB,GAAG,GACmD,CACtD,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,OAAA,CAAO,YAAU,gBAAgB,GAAI,IAG/D,SAAS,EAAY,CACnB,GAAG,GACkD,CACrD,OAAO,EAAA,EAAA,KAACA,EAAAA,OAAgB,MAAA,CAAM,YAAU,eAAe,GAAI,IAG7D,SAAS,EAAc,CACrB,YACA,GAAG,GACoD,CACvD,OACE,EAAA,EAAA,KAACA,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,UAAWC,EAAAA,GACT,iCACA,+BACA,8BACA,kCACA,iCACA,GAEF,GAAI,IAKV,SAAS,EAAc,CACrB,YACA,WACA,kBAAkB,GAClB,GAAG,GAGF,CACD,OACE,EAAA,EAAA,MAAC,EAAA,CAAa,YAAU,2BACtB,EAAA,EAAA,KAAC,EAAA,KACD,EAAA,EAAA,KAAC,MAAA,CAAI,UAAU,gEACb,EAAA,EAAA,MAACD,EAAAA,OAAgB,QAAA,CACf,YAAU,iBACV,UAAWC,EAAAA,GACT,qCACA,yDACA,2DACA,+BACA,8BACA,+BACA,kCACA,iCACA,kCACA,GAEF,GAAI,YAEH,EACA,IACC,EAAA,EAAA,MAACD,EAAAA,OAAgB,MAAA,CACf,YAAU,eACV,SAAU,GACV,UAAWC,EAAAA,GACT,WACA,qDACA,gCACA,YACA,eACA,oBACA,oBACA,kBACA,8BACA,0CACA,+BACA,oCACA,uCACA,8BACA,mBACA,mDAGF,EAAA,EAAA,KAACC,EAAAA,MAAAA,KACD,EAAA,EAAA,KAAC,OAAA,CAAK,UAAU,mBAAU,qBASxC,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAA,EAAA,KAAC,MAAA,CACC,YAAU,gBACV,UAAWD,EAAAA,GAAG,+CAAgD,GAC9D,GAAI,IAKV,SAAS,EAAa,CAAE,YAAW,GAAG,GAAsC,CAC1E,OACE,EAAA,EAAA,KAAC,MAAA,CACC,YAAU,gBACV,UAAWA,EAAAA,GACT,yDACA,GAEF,GAAI,IAKV,SAAS,EAAY,CACnB,YACA,GAAG,GACkD,CACrD,OACE,EAAA,EAAA,KAACD,EAAAA,OAAgB,MAAA,CACf,YAAU,eACV,UAAWC,EAAAA,GAAG,qCAAsC,GACpD,GAAI,IAKV,SAAS,EAAkB,CACzB,YACA,GAAG,GACwD,CAC3D,OACE,EAAA,EAAA,KAACD,EAAAA,OAAgB,YAAA,CACf,YAAU,qBACV,UAAWC,EAAAA,GAAG,gCAAiC,GAC/C,GAAI"}
@@ -1,24 +1,24 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime60 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime197 from "react/jsx-runtime";
3
3
  import { Dialog } from "radix-ui";
4
4
 
5
5
  //#region packages/components/ui/dialog.d.ts
6
6
  declare function Dialog$1({
7
7
  ...props
8
- }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime60.JSX.Element;
8
+ }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime197.JSX.Element;
9
9
  declare function DialogTrigger({
10
10
  ...props
11
- }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime60.JSX.Element;
11
+ }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime197.JSX.Element;
12
12
  declare function DialogPortal({
13
13
  ...props
14
- }: React.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime60.JSX.Element;
14
+ }: React.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime197.JSX.Element;
15
15
  declare function DialogClose({
16
16
  ...props
17
- }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime60.JSX.Element;
17
+ }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime197.JSX.Element;
18
18
  declare function DialogOverlay({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof Dialog.Overlay>): react_jsx_runtime60.JSX.Element;
21
+ }: React.ComponentProps<typeof Dialog.Overlay>): react_jsx_runtime197.JSX.Element;
22
22
  declare function DialogContent({
23
23
  className,
24
24
  children,
@@ -26,23 +26,23 @@ declare function DialogContent({
26
26
  ...props
27
27
  }: React.ComponentProps<typeof Dialog.Content> & {
28
28
  showCloseButton?: boolean;
29
- }): react_jsx_runtime60.JSX.Element;
29
+ }): react_jsx_runtime197.JSX.Element;
30
30
  declare function DialogHeader({
31
31
  className,
32
32
  ...props
33
- }: React.ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
33
+ }: React.ComponentProps<"div">): react_jsx_runtime197.JSX.Element;
34
34
  declare function DialogFooter({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<"div">): react_jsx_runtime60.JSX.Element;
37
+ }: React.ComponentProps<"div">): react_jsx_runtime197.JSX.Element;
38
38
  declare function DialogTitle({
39
39
  className,
40
40
  ...props
41
- }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime60.JSX.Element;
41
+ }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime197.JSX.Element;
42
42
  declare function DialogDescription({
43
43
  className,
44
44
  ...props
45
- }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime60.JSX.Element;
45
+ }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime197.JSX.Element;
46
46
  //#endregion
47
47
  export { Dialog$1 as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
48
- //# sourceMappingURL=dialog-Dlozd6qY.d.ts.map
48
+ //# sourceMappingURL=dialog-Ch71L6oE.d.ts.map
@@ -1,24 +1,24 @@
1
- import * as react_jsx_runtime69 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime71 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { Dialog } from "radix-ui";
4
4
 
5
5
  //#region packages/components/ui/dialog.d.ts
6
6
  declare function Dialog$1({
7
7
  ...props
8
- }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime69.JSX.Element;
8
+ }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime71.JSX.Element;
9
9
  declare function DialogTrigger({
10
10
  ...props
11
- }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime69.JSX.Element;
11
+ }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime71.JSX.Element;
12
12
  declare function DialogPortal({
13
13
  ...props
14
- }: React.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime69.JSX.Element;
14
+ }: React.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime71.JSX.Element;
15
15
  declare function DialogClose({
16
16
  ...props
17
- }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime69.JSX.Element;
17
+ }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime71.JSX.Element;
18
18
  declare function DialogOverlay({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof Dialog.Overlay>): react_jsx_runtime69.JSX.Element;
21
+ }: React.ComponentProps<typeof Dialog.Overlay>): react_jsx_runtime71.JSX.Element;
22
22
  declare function DialogContent({
23
23
  className,
24
24
  children,
@@ -26,23 +26,23 @@ declare function DialogContent({
26
26
  ...props
27
27
  }: React.ComponentProps<typeof Dialog.Content> & {
28
28
  showCloseButton?: boolean;
29
- }): react_jsx_runtime69.JSX.Element;
29
+ }): react_jsx_runtime71.JSX.Element;
30
30
  declare function DialogHeader({
31
31
  className,
32
32
  ...props
33
- }: React.ComponentProps<"div">): react_jsx_runtime69.JSX.Element;
33
+ }: React.ComponentProps<"div">): react_jsx_runtime71.JSX.Element;
34
34
  declare function DialogFooter({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<"div">): react_jsx_runtime69.JSX.Element;
37
+ }: React.ComponentProps<"div">): react_jsx_runtime71.JSX.Element;
38
38
  declare function DialogTitle({
39
39
  className,
40
40
  ...props
41
- }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime69.JSX.Element;
41
+ }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime71.JSX.Element;
42
42
  declare function DialogDescription({
43
43
  className,
44
44
  ...props
45
- }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime69.JSX.Element;
45
+ }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime71.JSX.Element;
46
46
  //#endregion
47
47
  export { Dialog$1 as Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
48
- //# sourceMappingURL=dialog-B3V9xxdD.d.cts.map
48
+ //# sourceMappingURL=dialog-DQY1Cjay.d.cts.map
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`),require(`../button-CycE0WzB.cjs`);const t=require(`../alert-dialog-BQv-ZvW9.cjs`),n=e.__toESM(require(`react/jsx-runtime`)),r=({open:e,isLoading:r=!1,title:i,description:a,onOpenChange:o,onConfirm:s})=>(0,n.jsx)(t.AlertDialog,{open:e,onOpenChange:o,children:(0,n.jsxs)(t.AlertDialogContent,{children:[(0,n.jsxs)(t.AlertDialogHeader,{className:`gap-0`,children:[(0,n.jsx)(t.AlertDialogTitle,{children:i}),(0,n.jsx)(t.AlertDialogDescription,{children:a})]}),(0,n.jsxs)(t.AlertDialogFooter,{children:[(0,n.jsx)(t.AlertDialogCancel,{children:`Cancel`}),(0,n.jsx)(t.AlertDialogAction,{className:`w-24`,onClick:s,children:r?(0,n.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,n.jsx)(`div`,{className:`loader-spinner text-muted-foreground`})}):`Confirm`})]})]})});exports.ConfirmDialog=r;
1
+ const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`),require(`../button-CycE0WzB.cjs`);const t=require(`../alert-dialog-D1DFrl-0.cjs`),n=e.__toESM(require(`react/jsx-runtime`)),r=({open:e,isLoading:r=!1,title:i,description:a,onOpenChange:o,onConfirm:s})=>(0,n.jsx)(t.AlertDialog,{open:e,onOpenChange:o,children:(0,n.jsxs)(t.AlertDialogContent,{children:[(0,n.jsxs)(t.AlertDialogHeader,{className:`gap-0`,children:[(0,n.jsx)(t.AlertDialogTitle,{children:i}),(0,n.jsx)(t.AlertDialogDescription,{children:a})]}),(0,n.jsxs)(t.AlertDialogFooter,{children:[(0,n.jsx)(t.AlertDialogCancel,{children:`Cancel`}),(0,n.jsx)(t.AlertDialogAction,{className:`w-24`,onClick:s,children:r?(0,n.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,n.jsx)(`div`,{className:`loader-spinner text-muted-foreground`})}):`Confirm`})]})]})});exports.ConfirmDialog=r;
2
2
  //# sourceMappingURL=confirm-dialog.cjs.map
@@ -1,2 +1,2 @@
1
- import"../utils-D9AH0PUV.js";import"../button-Bku3bKv9.js";import{AlertDialog as e,AlertDialogAction as t,AlertDialogCancel as n,AlertDialogContent as r,AlertDialogDescription as i,AlertDialogFooter as a,AlertDialogHeader as o,AlertDialogTitle as s}from"../alert-dialog-0KwdjY-6.js";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=({open:u,isLoading:d=!1,title:f,description:p,onOpenChange:m,onConfirm:h})=>c(e,{open:u,onOpenChange:m,children:l(r,{children:[l(o,{className:`gap-0`,children:[c(s,{children:f}),c(i,{children:p})]}),l(a,{children:[c(n,{children:`Cancel`}),c(t,{className:`w-24`,onClick:h,children:d?c(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:c(`div`,{className:`loader-spinner text-muted-foreground`})}):`Confirm`})]})]})});export{u as ConfirmDialog};
1
+ import"../utils-D9AH0PUV.js";import"../button-Bku3bKv9.js";import{AlertDialog as e,AlertDialogAction as t,AlertDialogCancel as n,AlertDialogContent as r,AlertDialogDescription as i,AlertDialogFooter as a,AlertDialogHeader as o,AlertDialogTitle as s}from"../alert-dialog-CQa0TLlF.js";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=({open:u,isLoading:d=!1,title:f,description:p,onOpenChange:m,onConfirm:h})=>c(e,{open:u,onOpenChange:m,children:l(r,{children:[l(o,{className:`gap-0`,children:[c(s,{children:f}),c(i,{children:p})]}),l(a,{children:[c(n,{children:`Cancel`}),c(t,{className:`w-24`,onClick:h,children:d?c(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:c(`div`,{className:`loader-spinner text-muted-foreground`})}):`Confirm`})]})]})});export{u as ConfirmDialog};
2
2
  //# sourceMappingURL=confirm-dialog.js.map
@@ -1,2 +1,2 @@
1
- const e=require(`../../chunk-hhQzssFb.cjs`),t=require(`../../utils-DaJ1XZgX.cjs`),n=require(`../../flex-yTyoLpgH.cjs`),r=require(`../../date-ByLOGsKl.cjs`),i=require(`../../tooltip-MgToVOzy.cjs`),a=require(`../../button-CycE0WzB.cjs`),o=require(`../../dialog-Cn8cFeu-.cjs`);require(`../../input-C8Sebaue.cjs`);const s=require(`../../title-CIQdEGOd.cjs`);require(`../../separator-D4iTmsID.cjs`),require(`../../skeleton-BTQm_mtV.cjs`);const c=e.__toESM(require(`react`)),l=e.__toESM(require(`react/jsx-runtime`)),u=e.__toESM(require(`class-variance-authority`)),d=e.__toESM(require(`lucide-react`)),f=e.__toESM(require(`radix-ui`)),p=()=>(0,l.jsxs)(o.DialogHeader,{className:`sr-only`,children:[(0,l.jsx)(o.DialogTitle,{className:`sr-only`}),(0,l.jsx)(o.DialogDescription,{className:`sr-only`})]}),m=`detai_dialog_sidebar_state`,h=3600*24*7,g=`16rem`,_=`3rem`,v=`p`,y=c.default.createContext(null);function b(){let e=c.default.useContext(y);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function x({defaultOpen:e=!0,open:n,onOpenChange:r,className:a,style:o,children:s,...u}){let[d,f]=c.default.useState(!1),[p,m]=c.default.useState(e),h=n??p,g=c.default.useCallback(e=>{let t=typeof e==`function`?e(h):e;r?r(t):m(t),document.cookie=`detai_dialog_sidebar_state=${t}; path=/; max-age=604800`},[r,h]),_=c.default.useCallback(()=>g(e=>!e),[g]);c.default.useEffect(()=>{let e=e=>{e.key===`p`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),_())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[_]);let v=h?`expanded`:`collapsed`,b=c.default.useMemo(()=>({state:v,open:h,setOpen:g,openMobile:d,setOpenMobile:f,toggleSidebar:_}),[v,h,g,d,f,_]);return(0,l.jsx)(y.Provider,{value:b,children:(0,l.jsx)(i.TooltipProvider,{delayDuration:0,children:(0,l.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...o},className:t.cn(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex min-h-svh w-full`,a),...u,children:s})})})}function S({side:e=`left`,variant:n=`sidebar`,collapsible:r=`offcanvas`,className:i,children:a,...o}){let{state:s}=b();return r===`none`?(0,l.jsx)(`div`,{"data-slot":`sidebar`,className:t.cn(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,i),...o,children:a}):(0,l.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?r:``,"data-variant":n,"data-side":e,"data-slot":`sidebar`,children:[(0,l.jsx)(`div`,{"data-slot":`sidebar-gap`,className:t.cn(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,l.jsx)(`div`,{"data-slot":`sidebar-container`,className:t.cn(`absolute inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,i),...o,children:(0,l.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:t.cn(`flex h-full w-full flex-col`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:shadow-sm`),children:a})})]})}function C({className:e,onClick:n,...r}){let{toggleSidebar:i}=b();return(0,l.jsxs)(a.Button,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:t.cn(`size-10 rounded-full [&_svg]:!size-6`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,l.jsx)(d.MenuIcon,{}),(0,l.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function w({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:t.cn(`flex flex-col gap-2 p-2`,e),...n})}function T({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:t.cn(`flex flex-col gap-2 p-2`,e),...n})}function E({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:t.cn(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,`group-data-[collapsible=icon]:overflow-hidden`,e),...n})}function D({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:t.cn(`relative flex w-full min-w-0 flex-col p-2`,e),...n})}function O({className:e,...n}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:t.cn(`flex w-full min-w-0 flex-col gap-1`,e),...n})}function k({className:e,...n}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:t.cn(`group/menu-item relative`,e),...n})}const A=(0,u.cva)(`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background border shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function j({asChild:e=!1,isActive:n=!1,variant:r=`default`,size:a=`default`,tooltip:o,className:s,...c}){let u=e?f.Slot.Slot:`button`,{state:d}=b(),p=(0,l.jsx)(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":a,"data-active":n,className:t.cn(A({variant:r,size:a}),s),...c});return o?(typeof o==`string`&&(o={children:o}),(0,l.jsxs)(i.Tooltip,{children:[(0,l.jsx)(i.TooltipTrigger,{asChild:!0,children:p}),(0,l.jsx)(i.TooltipContent,{side:`right`,align:`center`,hidden:d!==`collapsed`,...o})]})):p}const M=({children:e})=>(0,l.jsx)(`main`,{className:`relative flex h-full flex-1 flex-col`,children:(0,l.jsx)(`div`,{className:`absolute inset-0 flex size-full flex-col`,children:e})}),N=({title:e,createdAt:t})=>(0,l.jsxs)(`header`,{className:`relative flex items-start gap-x-2.5 border-b px-2 py-2.5`,children:[(0,l.jsx)(C,{}),(0,l.jsxs)(n.Flex,{vertical:!0,align:`start`,padding:`none`,className:`flex-1`,children:[(0,l.jsx)(s.Title,{level:5,children:e||`Detail Dialog`}),(0,l.jsxs)(n.Flex,{padding:`none`,className:`text-muted-foreground`,children:[(0,l.jsx)(d.CalendarIcon,{size:12}),!!t&&(0,l.jsx)(r.DateDisplay,{showTime:!0,showHoliday:!0,date:t,format:`full`})]})]})]}),P=({children:e})=>(0,l.jsx)(o.DialogContent,{className:`relative h-full max-h-[90svh] overflow-hidden rounded-lg border-none p-0 sm:max-w-[calc(100svw-2rem)]`,onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:e}),F=({title:e,sidebarFooter:t,children:n})=>(0,l.jsxs)(S,{collapsible:`icon`,className:`hidden border-r md:flex`,children:[(0,l.jsx)(w,{children:(0,l.jsx)(O,{children:(0,l.jsx)(k,{children:(0,l.jsxs)(j,{size:`lg`,tabIndex:-1,children:[(0,l.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,l.jsx)(d.CatIcon,{size:16})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:e||`Detail Dialog`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Lunas Enterprise`})]})]})})})}),(0,l.jsx)(E,{children:(0,l.jsx)(D,{children:n})}),t&&(0,l.jsx)(T,{children:t})]}),I=({open:e,isLoading:t=!1,sidebarTitle:r,sidebar:i,sidebarFooter:a,title:s,createdAt:c,onOpenChange:u,children:d})=>(0,l.jsx)(o.Dialog,{open:e,onOpenChange:u,children:(0,l.jsxs)(P,{children:[(0,l.jsx)(p,{}),(0,l.jsxs)(x,{className:`h-full min-h-[85svh] items-start`,children:[(0,l.jsx)(F,{title:r,sidebarFooter:a,children:i}),(0,l.jsxs)(M,{children:[(0,l.jsx)(N,{title:s,createdAt:c}),t?(0,l.jsx)(n.Flex,{justify:`center`,className:`bg-muted/50 size-full`,children:(0,l.jsx)(`div`,{className:`loader`})}):(0,l.jsx)(`section`,{className:`bg-muted/50 relative flex-1 overflow-y-auto inset-shadow-sm`,children:d})]})]})]})});exports.DetailDialog=I;
1
+ const e=require(`../../chunk-hhQzssFb.cjs`),t=require(`../../utils-DaJ1XZgX.cjs`),n=require(`../../flex-yTyoLpgH.cjs`),r=require(`../../date-ByLOGsKl.cjs`),i=require(`../../tooltip-BFeC0iub.cjs`),a=require(`../../button-CycE0WzB.cjs`),o=require(`../../dialog-CH0Dihp0.cjs`);require(`../../input-C8Sebaue.cjs`);const s=require(`../../title-CIQdEGOd.cjs`);require(`../../separator-D4iTmsID.cjs`),require(`../../skeleton-BTQm_mtV.cjs`);const c=e.__toESM(require(`react`)),l=e.__toESM(require(`react/jsx-runtime`)),u=e.__toESM(require(`class-variance-authority`)),d=e.__toESM(require(`radix-ui`)),f=e.__toESM(require(`lucide-react`)),p=()=>(0,l.jsxs)(o.DialogHeader,{className:`sr-only`,children:[(0,l.jsx)(o.DialogTitle,{className:`sr-only`}),(0,l.jsx)(o.DialogDescription,{className:`sr-only`})]}),m=`detai_dialog_sidebar_state`,h=3600*24*7,g=`16rem`,_=`3rem`,v=`p`,y=c.default.createContext(null);function b(){let e=c.default.useContext(y);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function x({defaultOpen:e=!0,open:n,onOpenChange:r,className:a,style:o,children:s,...u}){let[d,f]=c.default.useState(!1),[p,m]=c.default.useState(e),h=n??p,g=c.default.useCallback(e=>{let t=typeof e==`function`?e(h):e;r?r(t):m(t),document.cookie=`detai_dialog_sidebar_state=${t}; path=/; max-age=604800`},[r,h]),_=c.default.useCallback(()=>g(e=>!e),[g]);c.default.useEffect(()=>{let e=e=>{e.key===`p`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),_())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[_]);let v=h?`expanded`:`collapsed`,b=c.default.useMemo(()=>({state:v,open:h,setOpen:g,openMobile:d,setOpenMobile:f,toggleSidebar:_}),[v,h,g,d,f,_]);return(0,l.jsx)(y.Provider,{value:b,children:(0,l.jsx)(i.TooltipProvider,{delayDuration:0,children:(0,l.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...o},className:t.cn(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex min-h-svh w-full`,a),...u,children:s})})})}function S({side:e=`left`,variant:n=`sidebar`,collapsible:r=`offcanvas`,className:i,children:a,...o}){let{state:s}=b();return r===`none`?(0,l.jsx)(`div`,{"data-slot":`sidebar`,className:t.cn(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,i),...o,children:a}):(0,l.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?r:``,"data-variant":n,"data-side":e,"data-slot":`sidebar`,children:[(0,l.jsx)(`div`,{"data-slot":`sidebar-gap`,className:t.cn(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,l.jsx)(`div`,{"data-slot":`sidebar-container`,className:t.cn(`absolute inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,i),...o,children:(0,l.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:t.cn(`flex h-full w-full flex-col`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:shadow-sm`),children:a})})]})}function C({className:e,onClick:n,...r}){let{toggleSidebar:i}=b();return(0,l.jsxs)(a.Button,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:t.cn(`size-10 rounded-full [&_svg]:!size-6`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,l.jsx)(f.MenuIcon,{}),(0,l.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function w({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:t.cn(`flex flex-col gap-2 p-2`,e),...n})}function T({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:t.cn(`flex flex-col gap-2 p-2`,e),...n})}function E({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:t.cn(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,`group-data-[collapsible=icon]:overflow-hidden`,e),...n})}function D({className:e,...n}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:t.cn(`relative flex w-full min-w-0 flex-col p-2`,e),...n})}function O({className:e,...n}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:t.cn(`flex w-full min-w-0 flex-col gap-1`,e),...n})}function k({className:e,...n}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:t.cn(`group/menu-item relative`,e),...n})}const A=(0,u.cva)(`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background border shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function j({asChild:e=!1,isActive:n=!1,variant:r=`default`,size:a=`default`,tooltip:o,className:s,...c}){let u=e?d.Slot.Slot:`button`,{state:f}=b(),p=(0,l.jsx)(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":a,"data-active":n,className:t.cn(A({variant:r,size:a}),s),...c});return o?(typeof o==`string`&&(o={children:o}),(0,l.jsxs)(i.Tooltip,{children:[(0,l.jsx)(i.TooltipTrigger,{asChild:!0,children:p}),(0,l.jsx)(i.TooltipContent,{side:`right`,align:`center`,hidden:f!==`collapsed`,...o})]})):p}const M=({children:e})=>(0,l.jsx)(`main`,{className:`relative flex h-full flex-1 flex-col`,children:(0,l.jsx)(`div`,{className:`absolute inset-0 flex size-full flex-col`,children:e})}),N=({title:e,createdAt:t})=>(0,l.jsxs)(`header`,{className:`relative flex items-start gap-x-2.5 border-b px-2 py-2.5`,children:[(0,l.jsx)(C,{}),(0,l.jsxs)(n.Flex,{vertical:!0,align:`start`,padding:`none`,className:`flex-1`,children:[(0,l.jsx)(s.Title,{level:5,children:e||`Detail Dialog`}),(0,l.jsxs)(n.Flex,{padding:`none`,className:`text-muted-foreground`,children:[(0,l.jsx)(f.CalendarIcon,{size:12}),!!t&&(0,l.jsx)(r.DateDisplay,{showTime:!0,showHoliday:!0,date:t,format:`full`})]})]})]}),P=({children:e})=>(0,l.jsx)(o.DialogContent,{className:`relative h-full max-h-[90svh] overflow-hidden rounded-lg border-none p-0 sm:max-w-[calc(100svw-2rem)]`,onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:e}),F=({title:e,sidebarFooter:t,children:n})=>(0,l.jsxs)(S,{collapsible:`icon`,className:`hidden border-r md:flex`,children:[(0,l.jsx)(w,{children:(0,l.jsx)(O,{children:(0,l.jsx)(k,{children:(0,l.jsxs)(j,{size:`lg`,tabIndex:-1,children:[(0,l.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,l.jsx)(f.CatIcon,{size:16})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:e||`Detail Dialog`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Lunas Enterprise`})]})]})})})}),(0,l.jsx)(E,{children:(0,l.jsx)(D,{children:n})}),t&&(0,l.jsx)(T,{children:t})]}),I=({open:e,isLoading:t=!1,sidebarTitle:r,sidebar:i,sidebarFooter:a,title:s,createdAt:c,onOpenChange:u,children:d})=>(0,l.jsx)(o.Dialog,{open:e,onOpenChange:u,children:(0,l.jsxs)(P,{children:[(0,l.jsx)(p,{}),(0,l.jsxs)(x,{className:`h-full min-h-[85svh] items-start`,children:[(0,l.jsx)(F,{title:r,sidebarFooter:a,children:i}),(0,l.jsxs)(M,{children:[(0,l.jsx)(N,{title:s,createdAt:c}),t?(0,l.jsx)(n.Flex,{justify:`center`,className:`bg-muted/50 size-full`,children:(0,l.jsx)(`div`,{className:`loader`})}):(0,l.jsx)(`section`,{className:`bg-muted/50 relative flex-1 overflow-y-auto inset-shadow-sm`,children:d})]})]})]})});exports.DetailDialog=I;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- import{cn as e}from"../../utils-D9AH0PUV.js";import{Flex as t}from"../../flex-ILvQrYMJ.js";import{DateDisplay as n}from"../../date-BMq_DNsv.js";import{Tooltip as r,TooltipContent as i,TooltipProvider as a,TooltipTrigger as o}from"../../tooltip-Dzyf5smh.js";import{Button as s}from"../../button-Bku3bKv9.js";import{Dialog as c,DialogContent as l,DialogDescription as u,DialogHeader as d,DialogTitle as f}from"../../dialog-C4hf-Puw.js";import"../../input-Dmaq3fzf.js";import{Title as p}from"../../title-CA6PvqiD.js";import"../../separator-DMdqEz29.js";import"../../skeleton-D1_Brnl9.js";import m from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{cva as _}from"class-variance-authority";import{CalendarIcon as v,CatIcon as y,MenuIcon as b}from"lucide-react";import{Slot as x}from"radix-ui";const S=()=>g(d,{className:`sr-only`,children:[h(f,{className:`sr-only`}),h(u,{className:`sr-only`})]}),C=m.createContext(null);function w(){let e=m.useContext(C);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function T({defaultOpen:t=!0,open:n,onOpenChange:r,className:i,style:o,children:s,...c}){let[l,u]=m.useState(!1),[d,f]=m.useState(t),p=n??d,g=m.useCallback(e=>{let t=typeof e==`function`?e(p):e;r?r(t):f(t),document.cookie=`detai_dialog_sidebar_state=${t}; path=/; max-age=604800`},[r,p]),_=m.useCallback(()=>g(e=>!e),[g]);m.useEffect(()=>{let e=e=>{e.key===`p`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),_())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[_]);let v=p?`expanded`:`collapsed`,y=m.useMemo(()=>({state:v,open:p,setOpen:g,openMobile:l,setOpenMobile:u,toggleSidebar:_}),[v,p,g,l,u,_]);return h(C.Provider,{value:y,children:h(a,{delayDuration:0,children:h(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...o},className:e(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex min-h-svh w-full`,i),...c,children:s})})})}function E({side:t=`left`,variant:n=`sidebar`,collapsible:r=`offcanvas`,className:i,children:a,...o}){let{state:s}=w();return r===`none`?h(`div`,{"data-slot":`sidebar`,className:e(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,i),...o,children:a}):g(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?r:``,"data-variant":n,"data-side":t,"data-slot":`sidebar`,children:[h(`div`,{"data-slot":`sidebar-gap`,className:e(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),h(`div`,{"data-slot":`sidebar-container`,className:e(`absolute inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,t===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,i),...o,children:h(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:e(`flex h-full w-full flex-col`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:shadow-sm`),children:a})})]})}function D({className:t,onClick:n,...r}){let{toggleSidebar:i}=w();return g(s,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:e(`size-10 rounded-full [&_svg]:!size-6`,t),onClick:e=>{n?.(e),i()},...r,children:[h(b,{}),h(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function O({className:t,...n}){return h(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:e(`flex flex-col gap-2 p-2`,t),...n})}function k({className:t,...n}){return h(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:e(`flex flex-col gap-2 p-2`,t),...n})}function A({className:t,...n}){return h(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:e(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,`group-data-[collapsible=icon]:overflow-hidden`,t),...n})}function j({className:t,...n}){return h(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:e(`relative flex w-full min-w-0 flex-col p-2`,t),...n})}function M({className:t,...n}){return h(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:e(`flex w-full min-w-0 flex-col gap-1`,t),...n})}function N({className:t,...n}){return h(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:e(`group/menu-item relative`,t),...n})}const P=_(`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background border shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function F({asChild:t=!1,isActive:n=!1,variant:a=`default`,size:s=`default`,tooltip:c,className:l,...u}){let d=t?x.Slot:`button`,{state:f}=w(),p=h(d,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":s,"data-active":n,className:e(P({variant:a,size:s}),l),...u});return c?(typeof c==`string`&&(c={children:c}),g(r,{children:[h(o,{asChild:!0,children:p}),h(i,{side:`right`,align:`center`,hidden:f!==`collapsed`,...c})]})):p}const I=({children:e})=>h(`main`,{className:`relative flex h-full flex-1 flex-col`,children:h(`div`,{className:`absolute inset-0 flex size-full flex-col`,children:e})}),L=({title:e,createdAt:r})=>g(`header`,{className:`relative flex items-start gap-x-2.5 border-b px-2 py-2.5`,children:[h(D,{}),g(t,{vertical:!0,align:`start`,padding:`none`,className:`flex-1`,children:[h(p,{level:5,children:e||`Detail Dialog`}),g(t,{padding:`none`,className:`text-muted-foreground`,children:[h(v,{size:12}),!!r&&h(n,{showTime:!0,showHoliday:!0,date:r,format:`full`})]})]})]}),R=({children:e})=>h(l,{className:`relative h-full max-h-[90svh] overflow-hidden rounded-lg border-none p-0 sm:max-w-[calc(100svw-2rem)]`,onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:e}),z=({title:e,sidebarFooter:t,children:n})=>g(E,{collapsible:`icon`,className:`hidden border-r md:flex`,children:[h(O,{children:h(M,{children:h(N,{children:g(F,{size:`lg`,tabIndex:-1,children:[h(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:h(y,{size:16})}),g(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[h(`span`,{className:`truncate font-medium`,children:e||`Detail Dialog`}),h(`span`,{className:`truncate text-xs`,children:`Lunas Enterprise`})]})]})})})}),h(A,{children:h(j,{children:n})}),t&&h(k,{children:t})]}),B=({open:e,isLoading:n=!1,sidebarTitle:r,sidebar:i,sidebarFooter:a,title:o,createdAt:s,onOpenChange:l,children:u})=>h(c,{open:e,onOpenChange:l,children:g(R,{children:[h(S,{}),g(T,{className:`h-full min-h-[85svh] items-start`,children:[h(z,{title:r,sidebarFooter:a,children:i}),g(I,{children:[h(L,{title:o,createdAt:s}),n?h(t,{justify:`center`,className:`bg-muted/50 size-full`,children:h(`div`,{className:`loader`})}):h(`section`,{className:`bg-muted/50 relative flex-1 overflow-y-auto inset-shadow-sm`,children:u})]})]})]})});export{B as DetailDialog};
1
+ import{cn as e}from"../../utils-D9AH0PUV.js";import{Flex as t}from"../../flex-ILvQrYMJ.js";import{DateDisplay as n}from"../../date-BMq_DNsv.js";import{Tooltip as r,TooltipContent as i,TooltipProvider as a,TooltipTrigger as o}from"../../tooltip-mqfVQzkp.js";import{Button as s}from"../../button-Bku3bKv9.js";import{Dialog as c,DialogContent as l,DialogDescription as u,DialogHeader as d,DialogTitle as f}from"../../dialog-C0AcPpDH.js";import"../../input-Dmaq3fzf.js";import{Title as p}from"../../title-CA6PvqiD.js";import"../../separator-DMdqEz29.js";import"../../skeleton-D1_Brnl9.js";import m from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{cva as _}from"class-variance-authority";import{Slot as v}from"radix-ui";import{CalendarIcon as y,CatIcon as b,MenuIcon as x}from"lucide-react";const S=()=>g(d,{className:`sr-only`,children:[h(f,{className:`sr-only`}),h(u,{className:`sr-only`})]}),C=m.createContext(null);function w(){let e=m.useContext(C);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function T({defaultOpen:t=!0,open:n,onOpenChange:r,className:i,style:o,children:s,...c}){let[l,u]=m.useState(!1),[d,f]=m.useState(t),p=n??d,g=m.useCallback(e=>{let t=typeof e==`function`?e(p):e;r?r(t):f(t),document.cookie=`detai_dialog_sidebar_state=${t}; path=/; max-age=604800`},[r,p]),_=m.useCallback(()=>g(e=>!e),[g]);m.useEffect(()=>{let e=e=>{e.key===`p`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),_())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[_]);let v=p?`expanded`:`collapsed`,y=m.useMemo(()=>({state:v,open:p,setOpen:g,openMobile:l,setOpenMobile:u,toggleSidebar:_}),[v,p,g,l,u,_]);return h(C.Provider,{value:y,children:h(a,{delayDuration:0,children:h(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...o},className:e(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex min-h-svh w-full`,i),...c,children:s})})})}function E({side:t=`left`,variant:n=`sidebar`,collapsible:r=`offcanvas`,className:i,children:a,...o}){let{state:s}=w();return r===`none`?h(`div`,{"data-slot":`sidebar`,className:e(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,i),...o,children:a}):g(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?r:``,"data-variant":n,"data-side":t,"data-slot":`sidebar`,children:[h(`div`,{"data-slot":`sidebar-gap`,className:e(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),h(`div`,{"data-slot":`sidebar-container`,className:e(`absolute inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,t===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,i),...o,children:h(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:e(`flex h-full w-full flex-col`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:shadow-sm`),children:a})})]})}function D({className:t,onClick:n,...r}){let{toggleSidebar:i}=w();return g(s,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:e(`size-10 rounded-full [&_svg]:!size-6`,t),onClick:e=>{n?.(e),i()},...r,children:[h(x,{}),h(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function O({className:t,...n}){return h(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:e(`flex flex-col gap-2 p-2`,t),...n})}function k({className:t,...n}){return h(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:e(`flex flex-col gap-2 p-2`,t),...n})}function A({className:t,...n}){return h(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:e(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto`,`group-data-[collapsible=icon]:overflow-hidden`,t),...n})}function j({className:t,...n}){return h(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:e(`relative flex w-full min-w-0 flex-col p-2`,t),...n})}function M({className:t,...n}){return h(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:e(`flex w-full min-w-0 flex-col gap-1`,t),...n})}function N({className:t,...n}){return h(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:e(`group/menu-item relative`,t),...n})}const P=_(`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background border shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function F({asChild:t=!1,isActive:n=!1,variant:a=`default`,size:s=`default`,tooltip:c,className:l,...u}){let d=t?v.Slot:`button`,{state:f}=w(),p=h(d,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":s,"data-active":n,className:e(P({variant:a,size:s}),l),...u});return c?(typeof c==`string`&&(c={children:c}),g(r,{children:[h(o,{asChild:!0,children:p}),h(i,{side:`right`,align:`center`,hidden:f!==`collapsed`,...c})]})):p}const I=({children:e})=>h(`main`,{className:`relative flex h-full flex-1 flex-col`,children:h(`div`,{className:`absolute inset-0 flex size-full flex-col`,children:e})}),L=({title:e,createdAt:r})=>g(`header`,{className:`relative flex items-start gap-x-2.5 border-b px-2 py-2.5`,children:[h(D,{}),g(t,{vertical:!0,align:`start`,padding:`none`,className:`flex-1`,children:[h(p,{level:5,children:e||`Detail Dialog`}),g(t,{padding:`none`,className:`text-muted-foreground`,children:[h(y,{size:12}),!!r&&h(n,{showTime:!0,showHoliday:!0,date:r,format:`full`})]})]})]}),R=({children:e})=>h(l,{className:`relative h-full max-h-[90svh] overflow-hidden rounded-lg border-none p-0 sm:max-w-[calc(100svw-2rem)]`,onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:e}),z=({title:e,sidebarFooter:t,children:n})=>g(E,{collapsible:`icon`,className:`hidden border-r md:flex`,children:[h(O,{children:h(M,{children:h(N,{children:g(F,{size:`lg`,tabIndex:-1,children:[h(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:h(b,{size:16})}),g(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[h(`span`,{className:`truncate font-medium`,children:e||`Detail Dialog`}),h(`span`,{className:`truncate text-xs`,children:`Lunas Enterprise`})]})]})})})}),h(A,{children:h(j,{children:n})}),t&&h(k,{children:t})]}),B=({open:e,isLoading:n=!1,sidebarTitle:r,sidebar:i,sidebarFooter:a,title:o,createdAt:s,onOpenChange:l,children:u})=>h(c,{open:e,onOpenChange:l,children:g(R,{children:[h(S,{}),g(T,{className:`h-full min-h-[85svh] items-start`,children:[h(z,{title:r,sidebarFooter:a,children:i}),g(I,{children:[h(L,{title:o,createdAt:s}),n?h(t,{justify:`center`,className:`bg-muted/50 size-full`,children:h(`div`,{className:`loader`})}):h(`section`,{className:`bg-muted/50 relative flex-1 overflow-y-auto inset-shadow-sm`,children:u})]})]})]})});export{B as DetailDialog};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`),require(`../button-CycE0WzB.cjs`),require(`../alert-dialog-BQv-ZvW9.cjs`);const t=require(`../error-dialog-DO0Bb-pi.cjs`);exports.ErrorDialog=t.ErrorDialog;
1
+ const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`),require(`../button-CycE0WzB.cjs`),require(`../alert-dialog-D1DFrl-0.cjs`);const t=require(`../error-dialog-BTjeT7x-.cjs`);exports.ErrorDialog=t.ErrorDialog;
@@ -1 +1 @@
1
- import"../utils-D9AH0PUV.js";import"../button-Bku3bKv9.js";import"../alert-dialog-0KwdjY-6.js";import{ErrorDialog as e}from"../error-dialog-D_4WL-Hj.js";export{e as ErrorDialog};
1
+ import"../utils-D9AH0PUV.js";import"../button-Bku3bKv9.js";import"../alert-dialog-CQa0TLlF.js";import{ErrorDialog as e}from"../error-dialog-DlhosP10.js";export{e as ErrorDialog};
@@ -1,2 +1,2 @@
1
- const e=require(`../chunk-hhQzssFb.cjs`),t=require(`../utils-DaJ1XZgX.cjs`),n=require(`../button-CycE0WzB.cjs`);require(`../alert-dialog-BQv-ZvW9.cjs`),require(`../error-dialog-DO0Bb-pi.cjs`),require(`../label-i858Jr98.cjs`),require(`../form-C_PCHrpx.cjs`);const r=require(`../form-wrapper-FYiHHas7.cjs`),i=require(`../dialog-Cn8cFeu-.cjs`),a=e.__toESM(require(`react/jsx-runtime`)),o=({form:e,open:o,isSubmitting:s=!1,isResetAfterSubmit:c=!0,disableSubmit:l=!1,title:u,description:d,className:f,onOpenChange:p,onSubmit:m,onError:h,onReset:g,children:_})=>(0,a.jsx)(i.Dialog,{open:o,onOpenChange:p,children:(0,a.jsxs)(i.DialogContent,{className:t.cn(`flex flex-col gap-0 border-none p-0`,f),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[(0,a.jsxs)(i.DialogHeader,{className:`flex-0 gap-2 border-b px-6 pt-6 pb-4`,children:[(0,a.jsx)(i.DialogTitle,{children:u||`Form Dialog`}),(0,a.jsx)(i.DialogDescription,{children:d||`This is a form dialog where you can add your form elements.`})]}),(0,a.jsxs)(r.FormWrapper,{form:e,isResetAfterSubmit:c,className:`flex flex-1 flex-col overflow-y-auto pt-4`,onSubmit:m,onError:h,children:[(0,a.jsx)(`main`,{className:`flex-1 overflow-y-auto px-6`,children:_}),(0,a.jsxs)(i.DialogFooter,{className:`border-t px-6 pt-4 pb-6`,children:[(0,a.jsx)(n.Button,{tabIndex:-1,type:`button`,variant:`outline`,className:`w-30 rounded-full`,onClick:g,children:`Reset`}),(0,a.jsx)(n.Button,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:s,disabled:l,className:`w-30 rounded-full`,children:`Xác nhận`})]})]})]})});exports.FormDialog=o;
1
+ const e=require(`../chunk-hhQzssFb.cjs`),t=require(`../utils-DaJ1XZgX.cjs`),n=require(`../button-CycE0WzB.cjs`),r=require(`../dialog-CH0Dihp0.cjs`);require(`../label-i858Jr98.cjs`),require(`../form-C_PCHrpx.cjs`),require(`../alert-dialog-D1DFrl-0.cjs`),require(`../error-dialog-BTjeT7x-.cjs`);const i=require(`../form-wrapper-CCqogufb.cjs`),a=e.__toESM(require(`react/jsx-runtime`)),o=({form:e,open:o,isSubmitting:s=!1,isResetAfterSubmit:c=!0,disableSubmit:l=!1,title:u,description:d,className:f,onOpenChange:p,onSubmit:m,onError:h,onReset:g,children:_})=>(0,a.jsx)(r.Dialog,{open:o,onOpenChange:p,children:(0,a.jsxs)(r.DialogContent,{className:t.cn(`flex flex-col gap-0 border-none p-0`,f),onInteractOutside:e=>{e.preventDefault(),e.stopPropagation()},children:[(0,a.jsxs)(r.DialogHeader,{className:`flex-0 gap-2 border-b px-6 pt-6 pb-4`,children:[(0,a.jsx)(r.DialogTitle,{children:u||`Form Dialog`}),(0,a.jsx)(r.DialogDescription,{children:d||`This is a form dialog where you can add your form elements.`})]}),(0,a.jsxs)(i.FormWrapper,{form:e,isResetAfterSubmit:c,className:`flex flex-1 flex-col overflow-y-auto pt-4`,onSubmit:m,onError:h,children:[(0,a.jsx)(`main`,{className:`flex-1 overflow-y-auto px-6`,children:_}),(0,a.jsxs)(r.DialogFooter,{className:`border-t px-6 pt-4 pb-6`,children:[(0,a.jsx)(n.Button,{tabIndex:-1,type:`button`,variant:`outline`,className:`w-30 rounded-full`,onClick:g,children:`Reset`}),(0,a.jsx)(n.Button,{autoFocus:!0,tabIndex:0,type:`submit`,isLoading:s,disabled:l,className:`w-30 rounded-full`,children:`Xác nhận`})]})]})]})});exports.FormDialog=o;
2
2
  //# sourceMappingURL=form-dialog.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime2 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
2
2
  import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/dialogs/form-dialog.d.ts
@@ -30,7 +30,7 @@ declare const FormDialog: <TFieldValues extends FieldValues = FieldValues>({
30
30
  onError,
31
31
  onReset,
32
32
  children
33
- }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime2.JSX.Element;
33
+ }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime12.JSX.Element;
34
34
  //#endregion
35
35
  export { FormDialog };
36
36
  //# sourceMappingURL=form-dialog.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime36 from "react/jsx-runtime";
2
2
  import { FieldValues, FormState, SubmitErrorHandler, UseFormProps } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/dialogs/form-dialog.d.ts
@@ -30,7 +30,7 @@ declare const FormDialog: <TFieldValues extends FieldValues = FieldValues>({
30
30
  onError,
31
31
  onReset,
32
32
  children
33
- }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime5.JSX.Element;
33
+ }: React.PropsWithChildren<Props<TFieldValues>>) => react_jsx_runtime36.JSX.Element;
34
34
  //#endregion
35
35
  export { FormDialog };
36
36
  //# sourceMappingURL=form-dialog.d.ts.map