@customafk/lunas-ui 0.0.72 → 0.0.73

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 (357) hide show
  1. package/dist/{add-new-C7ZMHWcR.cjs → add-new-BaA0yy6U.cjs} +2 -2
  2. package/dist/{add-new-C7ZMHWcR.cjs.map → add-new-BaA0yy6U.cjs.map} +1 -1
  3. package/dist/{add-new-Czl4AL65.js → add-new-_5opEbrI.js} +2 -2
  4. package/dist/{add-new-Czl4AL65.js.map → add-new-_5opEbrI.js.map} +1 -1
  5. package/dist/{alert-dialog-BGXInZ89.js → alert-dialog-DcQKEgVC.js} +1 -1
  6. package/dist/{alert-dialog-BGXInZ89.js.map → alert-dialog-DcQKEgVC.js.map} +1 -1
  7. package/dist/{alert-dialog-DO5oai_F.cjs → alert-dialog-brXudt77.cjs} +1 -1
  8. package/dist/{alert-dialog-DO5oai_F.cjs.map → alert-dialog-brXudt77.cjs.map} +1 -1
  9. package/dist/{avatar-Do65Vzm-.cjs → avatar-B4pklWJt.cjs} +1 -1
  10. package/dist/{avatar-Do65Vzm-.cjs.map → avatar-B4pklWJt.cjs.map} +1 -1
  11. package/dist/{avatar-BDeoLWSP.js → avatar-iX5Jhj8E.js} +1 -1
  12. package/dist/{avatar-BDeoLWSP.js.map → avatar-iX5Jhj8E.js.map} +1 -1
  13. package/dist/{badge-i1kDdcPx.cjs → badge-CsA-JCDX.cjs} +1 -1
  14. package/dist/{badge-i1kDdcPx.cjs.map → badge-CsA-JCDX.cjs.map} +1 -1
  15. package/dist/{badge-BsaF-oBX.js → badge-tjlLdDGl.js} +1 -1
  16. package/dist/{badge-BsaF-oBX.js.map → badge-tjlLdDGl.js.map} +1 -1
  17. package/dist/{button-CcW3s4Yg.d.ts → button-DikL7zwS.d.ts} +3 -3
  18. package/dist/{button-CXKXt24w.d.cts → button-DoAx4aaD.d.cts} +3 -3
  19. package/dist/{calendar-CaZB4tkk.cjs → calendar-DGqBIV7n.cjs} +1 -1
  20. package/dist/{calendar-CaZB4tkk.cjs.map → calendar-DGqBIV7n.cjs.map} +1 -1
  21. package/dist/{calendar-BHFsJa4w.js → calendar-DdIUj5Dk.js} +1 -1
  22. package/dist/{calendar-BHFsJa4w.js.map → calendar-DdIUj5Dk.js.map} +1 -1
  23. package/dist/cards/simple-card.d.ts +2 -2
  24. package/dist/{command-DYwws5ny.d.ts → command-BUBPlGK4.d.ts} +12 -12
  25. package/dist/{command-55V9WeIE.cjs → command-BaW_SRkQ.cjs} +2 -2
  26. package/dist/{command-55V9WeIE.cjs.map → command-BaW_SRkQ.cjs.map} +1 -1
  27. package/dist/{command-BvHe__3s.js → command-CRNFM6Sb.js} +2 -2
  28. package/dist/{command-BvHe__3s.js.map → command-CRNFM6Sb.js.map} +1 -1
  29. package/dist/{command-CbW3sxOZ.d.cts → command-rxs0v832.d.cts} +12 -12
  30. package/dist/data-display/country.cjs +1 -1
  31. package/dist/data-display/country.js +1 -1
  32. package/dist/data-display/data-list.cjs +1 -1
  33. package/dist/data-display/data-list.js +1 -1
  34. package/dist/data-display/date-tooltip.cjs +1 -1
  35. package/dist/data-display/date-tooltip.js +1 -1
  36. package/dist/data-display/date.cjs +1 -1
  37. package/dist/data-display/date.js +1 -1
  38. package/dist/data-display/empty.cjs +1 -1
  39. package/dist/data-display/empty.d.cts +2 -2
  40. package/dist/data-display/empty.d.ts +2 -2
  41. package/dist/data-display/empty.js +1 -1
  42. package/dist/data-display/name.cjs +1 -1
  43. package/dist/data-display/name.js +1 -1
  44. package/dist/data-display/phone-number.cjs +1 -1
  45. package/dist/data-display/phone-number.js +1 -1
  46. package/dist/data-display/role-badge.cjs +1 -1
  47. package/dist/data-display/role-badge.js +1 -1
  48. package/dist/data-display/statistic.cjs +1 -1
  49. package/dist/data-display/statistic.d.cts +2 -2
  50. package/dist/data-display/statistic.d.ts +2 -2
  51. package/dist/data-display/statistic.js +1 -1
  52. package/dist/data-display/user.cjs +1 -1
  53. package/dist/data-display/user.js +1 -1
  54. package/dist/{date-BeXyaUes.cjs → date-2wue8L-1.cjs} +1 -1
  55. package/dist/{date-BeXyaUes.cjs.map → date-2wue8L-1.cjs.map} +1 -1
  56. package/dist/{date-B4Sx6C5P.js → date-BuPl--Fc.js} +1 -1
  57. package/dist/{date-B4Sx6C5P.js.map → date-BuPl--Fc.js.map} +1 -1
  58. package/dist/{dialog-MCM90IpD.d.cts → dialog-BBDmpwtY.d.cts} +12 -12
  59. package/dist/{dialog-YRbIPpUZ.cjs → dialog-DGbWt3A4.cjs} +1 -1
  60. package/dist/{dialog-YRbIPpUZ.cjs.map → dialog-DGbWt3A4.cjs.map} +1 -1
  61. package/dist/{dialog-umfxj9v3.d.ts → dialog-DUEQa9I5.d.ts} +12 -12
  62. package/dist/{dialog-OTHc6G5i.js → dialog-SbX5GvMK.js} +1 -1
  63. package/dist/{dialog-OTHc6G5i.js.map → dialog-SbX5GvMK.js.map} +1 -1
  64. package/dist/dialogs/confirm-dialog.cjs +1 -1
  65. package/dist/dialogs/confirm-dialog.js +1 -1
  66. package/dist/dialogs/detail-dialog/component/sidebar.cjs +1 -1
  67. package/dist/dialogs/detail-dialog/component/sidebar.d.cts +28 -28
  68. package/dist/dialogs/detail-dialog/component/sidebar.d.ts +3 -3
  69. package/dist/dialogs/detail-dialog/component/sidebar.js +1 -1
  70. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  71. package/dist/dialogs/detail-dialog/index.js +1 -1
  72. package/dist/dialogs/error-dialog.cjs +1 -1
  73. package/dist/dialogs/error-dialog.js +1 -1
  74. package/dist/dialogs/form-dialog.cjs +1 -1
  75. package/dist/dialogs/form-dialog.d.cts +2 -2
  76. package/dist/dialogs/form-dialog.d.ts +2 -2
  77. package/dist/dialogs/form-dialog.js +1 -1
  78. package/dist/dialogs/loading-dialog.cjs +1 -1
  79. package/dist/dialogs/loading-dialog.js +1 -1
  80. package/dist/{drawer-CY1b-uAY.cjs → drawer-CaX-sUvZ.cjs} +1 -1
  81. package/dist/{drawer-CY1b-uAY.cjs.map → drawer-CaX-sUvZ.cjs.map} +1 -1
  82. package/dist/{drawer-DRC3X2-U.js → drawer-hi51Beoq.js} +1 -1
  83. package/dist/{drawer-DRC3X2-U.js.map → drawer-hi51Beoq.js.map} +1 -1
  84. package/dist/{error-dialog-C-QmLnGd.js → error-dialog-BeYJOtSH.js} +2 -2
  85. package/dist/{error-dialog-C-QmLnGd.js.map → error-dialog-BeYJOtSH.js.map} +1 -1
  86. package/dist/{error-dialog-CKAUvqn7.cjs → error-dialog-DMbJhWyk.cjs} +2 -2
  87. package/dist/{error-dialog-CKAUvqn7.cjs.map → error-dialog-DMbJhWyk.cjs.map} +1 -1
  88. package/dist/{flex-Dngi9Umy.js → flex-D6XrXRQW.js} +1 -1
  89. package/dist/{flex-Dngi9Umy.js.map → flex-D6XrXRQW.js.map} +1 -1
  90. package/dist/{flex-tfa5B9qc.cjs → flex-DS4mxjtf.cjs} +1 -1
  91. package/dist/{flex-tfa5B9qc.cjs.map → flex-DS4mxjtf.cjs.map} +1 -1
  92. package/dist/{form-nFp50GQa.js → form-BT1TbgK6.js} +2 -2
  93. package/dist/{form-nFp50GQa.js.map → form-BT1TbgK6.js.map} +1 -1
  94. package/dist/{form-LlBR5CH6.cjs → form-DyH5iWq7.cjs} +2 -2
  95. package/dist/{form-LlBR5CH6.cjs.map → form-DyH5iWq7.cjs.map} +1 -1
  96. package/dist/{form-wrapper-DIsYQSTr.js → form-wrapper-CFcpJdfv.js} +2 -2
  97. package/dist/{form-wrapper-DIsYQSTr.js.map → form-wrapper-CFcpJdfv.js.map} +1 -1
  98. package/dist/{form-wrapper-BEPDnGJT.cjs → form-wrapper-bC0IEtWT.cjs} +2 -2
  99. package/dist/{form-wrapper-BEPDnGJT.cjs.map → form-wrapper-bC0IEtWT.cjs.map} +1 -1
  100. package/dist/forms/combobox-field.cjs +1 -1
  101. package/dist/forms/combobox-field.d.cts +2 -2
  102. package/dist/forms/combobox-field.js +1 -1
  103. package/dist/forms/date-field.cjs +1 -1
  104. package/dist/forms/date-field.d.cts +2 -2
  105. package/dist/forms/date-field.d.ts +2 -2
  106. package/dist/forms/date-field.js +1 -1
  107. package/dist/forms/form-wrapper.cjs +1 -1
  108. package/dist/forms/form-wrapper.d.cts +2 -2
  109. package/dist/forms/form-wrapper.d.ts +2 -2
  110. package/dist/forms/form-wrapper.js +1 -1
  111. package/dist/forms/multi-select-field.cjs +1 -1
  112. package/dist/forms/multi-select-field.cjs.map +1 -1
  113. package/dist/forms/multi-select-field.d.cts +2 -2
  114. package/dist/forms/multi-select-field.d.ts +2 -2
  115. package/dist/forms/multi-select-field.js +1 -1
  116. package/dist/forms/number-field.cjs +1 -1
  117. package/dist/forms/number-field.d.cts +2 -2
  118. package/dist/forms/number-field.d.ts +2 -2
  119. package/dist/forms/number-field.js +1 -1
  120. package/dist/forms/password-field.cjs +1 -1
  121. package/dist/forms/password-field.d.cts +2 -2
  122. package/dist/forms/password-field.d.ts +2 -2
  123. package/dist/forms/password-field.js +1 -1
  124. package/dist/forms/select-field.cjs +1 -1
  125. package/dist/forms/select-field.d.cts +2 -2
  126. package/dist/forms/select-field.d.ts +2 -2
  127. package/dist/forms/select-field.js +1 -1
  128. package/dist/forms/switch-field.cjs +1 -1
  129. package/dist/forms/switch-field.d.cts +2 -2
  130. package/dist/forms/switch-field.d.ts +2 -2
  131. package/dist/forms/switch-field.js +1 -1
  132. package/dist/forms/text-field.cjs +1 -1
  133. package/dist/forms/text-field.d.cts +2 -2
  134. package/dist/forms/text-field.d.ts +2 -2
  135. package/dist/forms/text-field.js +1 -1
  136. package/dist/forms/textarea-field.cjs +1 -1
  137. package/dist/forms/textarea-field.d.cts +2 -2
  138. package/dist/forms/textarea-field.d.ts +2 -2
  139. package/dist/forms/textarea-field.js +1 -1
  140. package/dist/{input-C5NrcQAm.d.cts → input-DomGaN2h.d.ts} +3 -3
  141. package/dist/{input-DkiBw_X9.d.ts → input-DvX75CSu.d.cts} +3 -3
  142. package/dist/{input-jNmC92mW.cjs → input-GHXBt6hz.cjs} +1 -1
  143. package/dist/{input-jNmC92mW.cjs.map → input-GHXBt6hz.cjs.map} +1 -1
  144. package/dist/{input-CBsg9Cmq.js → input-ZyZ1HKHN.js} +1 -1
  145. package/dist/{input-CBsg9Cmq.js.map → input-ZyZ1HKHN.js.map} +1 -1
  146. package/dist/{label-BR3QQSIp.cjs → label-CHNSlaoz.cjs} +1 -1
  147. package/dist/{label-BR3QQSIp.cjs.map → label-CHNSlaoz.cjs.map} +1 -1
  148. package/dist/{label-CRhvNQY4.js → label-CdrxlBJ8.js} +1 -1
  149. package/dist/{label-CRhvNQY4.js.map → label-CdrxlBJ8.js.map} +1 -1
  150. package/dist/layouts/app-layout/index.cjs +1 -1
  151. package/dist/layouts/app-layout/index.d.cts +28 -28
  152. package/dist/layouts/app-layout/index.d.ts +2 -2
  153. package/dist/layouts/app-layout/index.js +1 -1
  154. package/dist/layouts/flex.cjs +1 -1
  155. package/dist/layouts/flex.d.cts +2 -2
  156. package/dist/layouts/flex.d.ts +2 -2
  157. package/dist/layouts/flex.js +1 -1
  158. package/dist/layouts/service-layout/index.cjs +1 -1
  159. package/dist/layouts/service-layout/index.d.cts +15 -15
  160. package/dist/layouts/service-layout/index.d.ts +2 -2
  161. package/dist/layouts/service-layout/index.js +1 -1
  162. package/dist/layouts/service-layout/index.js.map +1 -1
  163. package/dist/{multi-select-C-ZC1KVO.cjs → multi-select-DIZCHmU4.cjs} +2 -2
  164. package/dist/{multi-select-C-ZC1KVO.cjs.map → multi-select-DIZCHmU4.cjs.map} +1 -1
  165. package/dist/{multi-select-s7a7w_UG.js → multi-select-DzKtuSER.js} +2 -2
  166. package/dist/{multi-select-s7a7w_UG.js.map → multi-select-DzKtuSER.js.map} +1 -1
  167. package/dist/{paragraph-CaBn7ADD.js → paragraph-B9fp9JaI.js} +1 -1
  168. package/dist/{paragraph-CaBn7ADD.js.map → paragraph-B9fp9JaI.js.map} +1 -1
  169. package/dist/{paragraph-DHasUGpR.cjs → paragraph-BLvW7xdo.cjs} +1 -1
  170. package/dist/{paragraph-DHasUGpR.cjs.map → paragraph-BLvW7xdo.cjs.map} +1 -1
  171. package/dist/{popover-DTO7qZcM.cjs → popover-DLbTz02b.cjs} +1 -1
  172. package/dist/{popover-DTO7qZcM.cjs.map → popover-DLbTz02b.cjs.map} +1 -1
  173. package/dist/{popover-C_4MwCJv.js → popover-DvXi2pyH.js} +1 -1
  174. package/dist/{popover-C_4MwCJv.js.map → popover-DvXi2pyH.js.map} +1 -1
  175. package/dist/{refresh-DTTjph2a.js → refresh-BHjc0ETv.js} +2 -2
  176. package/dist/{refresh-DTTjph2a.js.map → refresh-BHjc0ETv.js.map} +1 -1
  177. package/dist/{refresh-N_fOqhT5.cjs → refresh-Bt9GEyuC.cjs} +2 -2
  178. package/dist/{refresh-N_fOqhT5.cjs.map → refresh-Bt9GEyuC.cjs.map} +1 -1
  179. package/dist/scroll-area-BKJYk4zH.js +2 -0
  180. package/dist/scroll-area-BKJYk4zH.js.map +1 -0
  181. package/dist/scroll-area-bTF4NokG.cjs +2 -0
  182. package/dist/scroll-area-bTF4NokG.cjs.map +1 -0
  183. package/dist/{search-input-DP1Cjt6h.cjs → search-input-DFgHJyOp.cjs} +2 -2
  184. package/dist/{search-input-DP1Cjt6h.cjs.map → search-input-DFgHJyOp.cjs.map} +1 -1
  185. package/dist/{search-input-BZfmsfdx.js → search-input-DM9ePMxA.js} +2 -2
  186. package/dist/{search-input-BZfmsfdx.js.map → search-input-DM9ePMxA.js.map} +1 -1
  187. package/dist/{select-D1_qKCK7.js → select---jN6Yy0.js} +1 -1
  188. package/dist/{select-D1_qKCK7.js.map → select---jN6Yy0.js.map} +1 -1
  189. package/dist/{select-CmbH9nni.cjs → select-CvPIAeWb.cjs} +1 -1
  190. package/dist/{select-CmbH9nni.cjs.map → select-CvPIAeWb.cjs.map} +1 -1
  191. package/dist/{separator-B3UjKJ91.d.cts → separator-B0ekl2cm.d.cts} +3 -3
  192. package/dist/{sidebar-jB4Qk0gk.cjs → sidebar-BF_5REY5.cjs} +2 -2
  193. package/dist/{sidebar-jB4Qk0gk.cjs.map → sidebar-BF_5REY5.cjs.map} +1 -1
  194. package/dist/{sidebar-D4pxYfhY.js → sidebar-BgOz0zZh.js} +2 -2
  195. package/dist/{sidebar-D4pxYfhY.js.map → sidebar-BgOz0zZh.js.map} +1 -1
  196. package/dist/{switch-ClwAKGC0.cjs → switch-BLfDkOOl.cjs} +1 -1
  197. package/dist/{switch-ClwAKGC0.cjs.map → switch-BLfDkOOl.cjs.map} +1 -1
  198. package/dist/{switch-BWRzY3i2.js → switch-C8OMYLfj.js} +1 -1
  199. package/dist/{switch-BWRzY3i2.js.map → switch-C8OMYLfj.js.map} +1 -1
  200. package/dist/table/index.cjs +1 -1
  201. package/dist/table/index.cjs.map +1 -1
  202. package/dist/table/index.d.cts +2 -0
  203. package/dist/table/index.d.ts +4 -2
  204. package/dist/table/index.js +1 -1
  205. package/dist/table/index.js.map +1 -1
  206. package/dist/{textarea-Rob6xodm.js → textarea-Br_DX1wm.js} +1 -1
  207. package/dist/{textarea-Rob6xodm.js.map → textarea-Br_DX1wm.js.map} +1 -1
  208. package/dist/{textarea-B0agR4V-.cjs → textarea-jrCmozqt.cjs} +1 -1
  209. package/dist/{textarea-B0agR4V-.cjs.map → textarea-jrCmozqt.cjs.map} +1 -1
  210. package/dist/{toggle-BuzXQXHg.d.cts → toggle-C2H0HKpd.d.cts} +5 -5
  211. package/dist/{toggle-Cs4NAdZh.d.ts → toggle-vH-BH18X.d.ts} +5 -5
  212. package/dist/{tooltip-B6P3IKFE.js → tooltip-BTrjCwd8.js} +1 -1
  213. package/dist/{tooltip-B6P3IKFE.js.map → tooltip-BTrjCwd8.js.map} +1 -1
  214. package/dist/{tooltip-BxTaXvVn.d.cts → tooltip-BhypOt39.d.cts} +6 -6
  215. package/dist/{tooltip-B6BWVv0X.cjs → tooltip-DXvcPsvM.cjs} +1 -1
  216. package/dist/{tooltip-B6BWVv0X.cjs.map → tooltip-DXvcPsvM.cjs.map} +1 -1
  217. package/dist/{tooltip-Bi4jcrSu.d.ts → tooltip-Dibm3gcf.d.ts} +6 -6
  218. package/dist/{types-BjbTiGi6.js → types-BiiGENwa.js} +1 -1
  219. package/dist/{types-BjbTiGi6.js.map → types-BiiGENwa.js.map} +1 -1
  220. package/dist/{types-D4UBBo-V.cjs → types-D32qXHff.cjs} +1 -1
  221. package/dist/{types-D4UBBo-V.cjs.map → types-D32qXHff.cjs.map} +1 -1
  222. package/dist/typography/paragraph.cjs +1 -1
  223. package/dist/typography/paragraph.d.cts +2 -2
  224. package/dist/typography/paragraph.d.ts +2 -2
  225. package/dist/typography/paragraph.js +1 -1
  226. package/dist/typography/title.d.cts +2 -2
  227. package/dist/typography/title.d.ts +2 -2
  228. package/dist/ui/alert-dialog.cjs +1 -1
  229. package/dist/ui/alert-dialog.d.cts +12 -12
  230. package/dist/ui/alert-dialog.d.ts +12 -12
  231. package/dist/ui/alert-dialog.js +1 -1
  232. package/dist/ui/alert.d.cts +4 -4
  233. package/dist/ui/alert.d.ts +4 -4
  234. package/dist/ui/aspect-ratio.d.cts +2 -2
  235. package/dist/ui/aspect-ratio.d.ts +2 -2
  236. package/dist/ui/avatar.cjs +1 -1
  237. package/dist/ui/avatar.d.cts +4 -4
  238. package/dist/ui/avatar.d.ts +4 -4
  239. package/dist/ui/avatar.js +1 -1
  240. package/dist/ui/badge.cjs +1 -1
  241. package/dist/ui/badge.d.cts +2 -2
  242. package/dist/ui/badge.d.ts +2 -2
  243. package/dist/ui/badge.js +1 -1
  244. package/dist/ui/breadcrumb.d.cts +8 -8
  245. package/dist/ui/button.d.cts +1 -1
  246. package/dist/ui/button.d.ts +1 -1
  247. package/dist/ui/buttons/add-new.cjs +1 -1
  248. package/dist/ui/buttons/add-new.js +1 -1
  249. package/dist/ui/buttons/refresh.cjs +1 -1
  250. package/dist/ui/buttons/refresh.js +1 -1
  251. package/dist/ui/calendar.cjs +1 -1
  252. package/dist/ui/calendar.d.cts +4 -4
  253. package/dist/ui/calendar.d.ts +4 -4
  254. package/dist/ui/calendar.js +1 -1
  255. package/dist/ui/card.d.cts +8 -8
  256. package/dist/ui/card.d.ts +8 -8
  257. package/dist/ui/carousel.d.cts +7 -7
  258. package/dist/ui/carousel.d.ts +7 -7
  259. package/dist/ui/collapsible.d.cts +4 -4
  260. package/dist/ui/collapsible.d.ts +4 -4
  261. package/dist/ui/command.cjs +1 -1
  262. package/dist/ui/command.d.cts +2 -2
  263. package/dist/ui/command.d.ts +2 -2
  264. package/dist/ui/command.js +1 -1
  265. package/dist/ui/context-menu.d.cts +16 -16
  266. package/dist/ui/context-menu.d.ts +16 -16
  267. package/dist/ui/dialog.cjs +1 -1
  268. package/dist/ui/dialog.d.cts +1 -1
  269. package/dist/ui/dialog.d.ts +1 -1
  270. package/dist/ui/dialog.js +1 -1
  271. package/dist/ui/dropdown-menu.d.cts +16 -16
  272. package/dist/ui/dropdown-menu.d.ts +16 -16
  273. package/dist/ui/file-uploader.d.cts +2 -2
  274. package/dist/ui/file-uploader.d.ts +2 -2
  275. package/dist/ui/form.cjs +1 -1
  276. package/dist/ui/form.d.cts +7 -7
  277. package/dist/ui/form.d.ts +7 -7
  278. package/dist/ui/form.js +1 -1
  279. package/dist/ui/hover-card.d.cts +4 -4
  280. package/dist/ui/hover-card.d.ts +4 -4
  281. package/dist/ui/input-otp.d.cts +5 -5
  282. package/dist/ui/input-otp.d.ts +5 -5
  283. package/dist/ui/input.cjs +1 -1
  284. package/dist/ui/input.d.cts +1 -1
  285. package/dist/ui/input.d.ts +1 -1
  286. package/dist/ui/input.js +1 -1
  287. package/dist/ui/inputs/search-input.cjs +1 -1
  288. package/dist/ui/inputs/search-input.d.cts +3 -3
  289. package/dist/ui/inputs/search-input.d.ts +1 -1
  290. package/dist/ui/inputs/search-input.js +1 -1
  291. package/dist/ui/label.cjs +1 -1
  292. package/dist/ui/label.d.cts +2 -2
  293. package/dist/ui/label.d.ts +2 -2
  294. package/dist/ui/label.js +1 -1
  295. package/dist/ui/menubar.d.cts +17 -17
  296. package/dist/ui/menubar.d.ts +17 -17
  297. package/dist/ui/multi-select.cjs +1 -1
  298. package/dist/ui/multi-select.d.cts +2 -2
  299. package/dist/ui/multi-select.d.ts +2 -2
  300. package/dist/ui/multi-select.js +1 -1
  301. package/dist/ui/navigation-menu.d.cts +11 -11
  302. package/dist/ui/navigation-menu.d.ts +9 -9
  303. package/dist/ui/pagination.d.cts +9 -9
  304. package/dist/ui/pagination.d.ts +9 -9
  305. package/dist/ui/popover.cjs +1 -1
  306. package/dist/ui/popover.d.cts +5 -5
  307. package/dist/ui/popover.d.ts +5 -5
  308. package/dist/ui/popover.js +1 -1
  309. package/dist/ui/progress.d.cts +2 -2
  310. package/dist/ui/progress.d.ts +2 -2
  311. package/dist/ui/radio-group.d.cts +3 -3
  312. package/dist/ui/radio-group.d.ts +3 -3
  313. package/dist/ui/resizable.d.cts +4 -4
  314. package/dist/ui/resizable.d.ts +4 -4
  315. package/dist/ui/scroll-area.cjs +1 -1
  316. package/dist/ui/scroll-area.d.cts +4 -3
  317. package/dist/ui/scroll-area.d.ts +4 -3
  318. package/dist/ui/scroll-area.js +1 -1
  319. package/dist/ui/select.cjs +1 -1
  320. package/dist/ui/select.d.cts +11 -11
  321. package/dist/ui/select.js +1 -1
  322. package/dist/ui/separator.d.cts +1 -1
  323. package/dist/ui/sheet.d.cts +9 -9
  324. package/dist/ui/sidebar.cjs +1 -1
  325. package/dist/ui/sidebar.d.cts +28 -28
  326. package/dist/ui/sidebar.d.ts +29 -29
  327. package/dist/ui/sidebar.js +1 -1
  328. package/dist/ui/skeleton.d.cts +2 -2
  329. package/dist/ui/skeleton.d.ts +2 -2
  330. package/dist/ui/slider.d.cts +2 -2
  331. package/dist/ui/slider.d.ts +2 -2
  332. package/dist/ui/sonner.d.cts +2 -2
  333. package/dist/ui/switch.cjs +1 -1
  334. package/dist/ui/switch.d.cts +2 -2
  335. package/dist/ui/switch.d.ts +2 -2
  336. package/dist/ui/switch.js +1 -1
  337. package/dist/ui/table.d.cts +9 -9
  338. package/dist/ui/table.d.ts +9 -9
  339. package/dist/ui/tabs.d.cts +5 -5
  340. package/dist/ui/tabs.d.ts +5 -5
  341. package/dist/ui/textarea.cjs +1 -1
  342. package/dist/ui/textarea.d.cts +2 -2
  343. package/dist/ui/textarea.d.ts +2 -2
  344. package/dist/ui/textarea.js +1 -1
  345. package/dist/ui/toggle-group.d.cts +4 -4
  346. package/dist/ui/toggle-group.d.ts +4 -4
  347. package/dist/ui/toggle.d.cts +1 -1
  348. package/dist/ui/toggle.d.ts +1 -1
  349. package/dist/ui/tooltip.cjs +1 -1
  350. package/dist/ui/tooltip.d.cts +1 -1
  351. package/dist/ui/tooltip.d.ts +1 -1
  352. package/dist/ui/tooltip.js +1 -1
  353. package/package.json +1 -1
  354. package/dist/scroll-area-BFGH4GB0.cjs +0 -2
  355. package/dist/scroll-area-BFGH4GB0.cjs.map +0 -1
  356. package/dist/scroll-area-Dx6r4DRY.js +0 -2
  357. package/dist/scroll-area-Dx6r4DRY.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use client";import"../label-CRhvNQY4.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-nFp50GQa.js";import{Input as o}from"../input-CBsg9Cmq.js";import{EyeIcon as s,EyeOffIcon as c}from"lucide-react";import{cn as l}from"@customafk/react-toolkit/utils";import{useCallback as u,useId as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";const h=({className:e,...t})=>{let n=d(),[r,i]=f(!1),a=u(()=>i(e=>!e),[]);return m(`div`,{className:`relative`,children:[p(o,{...t,id:n,placeholder:`Password`,type:r?`text`:`password`,className:l(`pe-9`,e)}),p(`button`,{className:`text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:a,"aria-label":r?`Hide password`:`Show password`,"aria-pressed":r,"aria-controls":`password`,children:p(r?c:s,{size:16,"aria-hidden":`true`})})]})},g=({name:o,label:s=`Text Field`,placeholder:c=`Enter text here`,isShowErrorMsg:l=!1,description:u,onValueChange:d})=>p(n,{name:o,render:({field:n})=>m(r,{className:`w-full`,children:[p(i,{children:s}),p(e,{children:p(h,{placeholder:c,...n,onValueChange:d})}),!!u&&p(t,{children:u}),l&&p(a,{})]})});export{g as PasswordField};
1
+ "use client";import"../label-CdrxlBJ8.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-BT1TbgK6.js";import{Input as o}from"../input-ZyZ1HKHN.js";import{EyeIcon as s,EyeOffIcon as c}from"lucide-react";import{cn as l}from"@customafk/react-toolkit/utils";import{useCallback as u,useId as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";const h=({className:e,...t})=>{let n=d(),[r,i]=f(!1),a=u(()=>i(e=>!e),[]);return m(`div`,{className:`relative`,children:[p(o,{...t,id:n,placeholder:`Password`,type:r?`text`:`password`,className:l(`pe-9`,e)}),p(`button`,{className:`text-muted-foreground/80 hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute inset-y-0 end-0 flex h-full w-9 items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,type:`button`,onClick:a,"aria-label":r?`Hide password`:`Show password`,"aria-pressed":r,"aria-controls":`password`,children:p(r?c:s,{size:16,"aria-hidden":`true`})})]})},g=({name:o,label:s=`Text Field`,placeholder:c=`Enter text here`,isShowErrorMsg:l=!1,description:u,onValueChange:d})=>p(n,{name:o,render:({field:n})=>m(r,{className:`w-full`,children:[p(i,{children:s}),p(e,{children:p(h,{placeholder:c,...n,onValueChange:d})}),!!u&&p(t,{children:u}),l&&p(a,{})]})});export{g as PasswordField};
2
2
  //# sourceMappingURL=password-field.js.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BR3QQSIp.cjs`);const t=require(`../form-LlBR5CH6.cjs`),n=require(`../select-CmbH9nni.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e,label:a=`Select Field`,placeholder:o=`Select an option`,disabledValues:s=[],options:c=[],isShowLabel:l=!0,isShowErrorMsg:u=!1,description:d=``,className:f=``})=>(0,i.jsx)(t.FormField,{name:e,render:({field:e})=>(0,i.jsxs)(t.FormItem,{className:(0,r.cn)(`w-full`,f),children:[l&&(0,i.jsx)(t.FormLabel,{children:a}),(0,i.jsxs)(n.Select,{defaultValue:e.value,onValueChange:e.onChange,children:[(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(n.SelectTrigger,{className:`w-full`,children:(0,i.jsx)(n.SelectValue,{placeholder:o})})}),(0,i.jsx)(n.SelectContent,{children:c.map(e=>(0,i.jsx)(n.SelectItem,{disabled:s.includes(e.value),value:e.value,children:e.label},e.value))})]}),!!d&&(0,i.jsx)(t.FormDescription,{children:d}),u&&(0,i.jsx)(t.FormMessage,{})]})});exports.SelectField=a;
1
+ "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-CHNSlaoz.cjs`);const t=require(`../form-DyH5iWq7.cjs`),n=require(`../select-CvPIAeWb.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e,label:a=`Select Field`,placeholder:o=`Select an option`,disabledValues:s=[],options:c=[],isShowLabel:l=!0,isShowErrorMsg:u=!1,description:d=``,className:f=``})=>(0,i.jsx)(t.FormField,{name:e,render:({field:e})=>(0,i.jsxs)(t.FormItem,{className:(0,r.cn)(`w-full`,f),children:[l&&(0,i.jsx)(t.FormLabel,{children:a}),(0,i.jsxs)(n.Select,{defaultValue:e.value,onValueChange:e.onChange,children:[(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(n.SelectTrigger,{className:`w-full`,children:(0,i.jsx)(n.SelectValue,{placeholder:o})})}),(0,i.jsx)(n.SelectContent,{children:c.map(e=>(0,i.jsx)(n.SelectItem,{disabled:s.includes(e.value),value:e.value,children:e.label},e.value))})]}),!!d&&(0,i.jsx)(t.FormDescription,{children:d}),u&&(0,i.jsx)(t.FormMessage,{})]})});exports.SelectField=a;
2
2
  //# sourceMappingURL=select-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime9 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/select-field.d.ts
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
27
27
  isShowErrorMsg,
28
28
  description,
29
29
  className
30
- }: Props<TFieldValues>) => react_jsx_runtime9.JSX.Element;
30
+ }: Props<TFieldValues>) => react_jsx_runtime2.JSX.Element;
31
31
  //#endregion
32
32
  export { SelectField };
33
33
  //# sourceMappingURL=select-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/select-field.d.ts
@@ -27,7 +27,7 @@ declare const SelectField: <TFieldValues extends FieldValues = FieldValues>({
27
27
  isShowErrorMsg,
28
28
  description,
29
29
  className
30
- }: Props<TFieldValues>) => react_jsx_runtime0.JSX.Element;
30
+ }: Props<TFieldValues>) => react_jsx_runtime3.JSX.Element;
31
31
  //#endregion
32
32
  export { SelectField };
33
33
  //# sourceMappingURL=select-field.d.ts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../label-CRhvNQY4.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-nFp50GQa.js";import{Select as o,SelectContent as s,SelectItem as c,SelectTrigger as l,SelectValue as u}from"../select-D1_qKCK7.js";import{cn as d}from"@customafk/react-toolkit/utils";import{jsx as f,jsxs as p}from"react/jsx-runtime";const m=({name:m,label:h=`Select Field`,placeholder:g=`Select an option`,disabledValues:_=[],options:v=[],isShowLabel:y=!0,isShowErrorMsg:b=!1,description:x=``,className:S=``})=>f(n,{name:m,render:({field:n})=>p(r,{className:d(`w-full`,S),children:[y&&f(i,{children:h}),p(o,{defaultValue:n.value,onValueChange:n.onChange,children:[f(e,{children:f(l,{className:`w-full`,children:f(u,{placeholder:g})})}),f(s,{children:v.map(e=>f(c,{disabled:_.includes(e.value),value:e.value,children:e.label},e.value))})]}),!!x&&f(t,{children:x}),b&&f(a,{})]})});export{m as SelectField};
1
+ "use client";import"../label-CdrxlBJ8.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-BT1TbgK6.js";import{Select as o,SelectContent as s,SelectItem as c,SelectTrigger as l,SelectValue as u}from"../select---jN6Yy0.js";import{cn as d}from"@customafk/react-toolkit/utils";import{jsx as f,jsxs as p}from"react/jsx-runtime";const m=({name:m,label:h=`Select Field`,placeholder:g=`Select an option`,disabledValues:_=[],options:v=[],isShowLabel:y=!0,isShowErrorMsg:b=!1,description:x=``,className:S=``})=>f(n,{name:m,render:({field:n})=>p(r,{className:d(`w-full`,S),children:[y&&f(i,{children:h}),p(o,{defaultValue:n.value,onValueChange:n.onChange,children:[f(e,{children:f(l,{className:`w-full`,children:f(u,{placeholder:g})})}),f(s,{children:v.map(e=>f(c,{disabled:_.includes(e.value),value:e.value,children:e.label},e.value))})]}),!!x&&f(t,{children:x}),b&&f(a,{})]})});export{m as SelectField};
2
2
  //# sourceMappingURL=select-field.js.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BR3QQSIp.cjs`);const t=require(`../form-LlBR5CH6.cjs`),n=require(`../switch-ClwAKGC0.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e,label:a=`Switch Field`,description:o,isShowErrorMsg:s=!1})=>(0,i.jsx)(t.FormField,{name:e,render:({field:e})=>(0,i.jsxs)(`div`,{className:`spage-y-1`,children:[(0,i.jsxs)(t.FormItem,{className:(0,r.cn)(`border-border-weak flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs`),children:[(0,i.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,i.jsx)(t.FormLabel,{className:`cursor-pointer text-sm`,children:a}),o&&(0,i.jsx)(t.FormDescription,{className:`text-xs`,children:o})]}),(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(n.Switch,{checked:e.value,onCheckedChange:e.onChange})})]}),s&&(0,i.jsx)(t.FormMessage,{})]})});exports.SwitchField=a;
1
+ "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-CHNSlaoz.cjs`);const t=require(`../form-DyH5iWq7.cjs`),n=require(`../switch-BLfDkOOl.cjs`),r=e.__toESM(require(`@customafk/react-toolkit/utils`)),i=e.__toESM(require(`react/jsx-runtime`)),a=({name:e,label:a=`Switch Field`,description:o,isShowErrorMsg:s=!1})=>(0,i.jsx)(t.FormField,{name:e,render:({field:e})=>(0,i.jsxs)(`div`,{className:`spage-y-1`,children:[(0,i.jsxs)(t.FormItem,{className:(0,r.cn)(`border-border-weak flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs`),children:[(0,i.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,i.jsx)(t.FormLabel,{className:`cursor-pointer text-sm`,children:a}),o&&(0,i.jsx)(t.FormDescription,{className:`text-xs`,children:o})]}),(0,i.jsx)(t.FormControl,{children:(0,i.jsx)(n.Switch,{checked:e.value,onCheckedChange:e.onChange})})]}),s&&(0,i.jsx)(t.FormMessage,{})]})});exports.SwitchField=a;
2
2
  //# sourceMappingURL=switch-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/switch-field.d.ts
@@ -13,7 +13,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
13
13
  label,
14
14
  description,
15
15
  isShowErrorMsg
16
- }: Props<TFieldValues>) => react_jsx_runtime11.JSX.Element;
16
+ }: Props<TFieldValues>) => react_jsx_runtime15.JSX.Element;
17
17
  //#endregion
18
18
  export { SwitchField };
19
19
  //# sourceMappingURL=switch-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime6 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/switch-field.d.ts
@@ -13,7 +13,7 @@ declare const SwitchField: <TFieldValues extends FieldValues = FieldValues>({
13
13
  label,
14
14
  description,
15
15
  isShowErrorMsg
16
- }: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
16
+ }: Props<TFieldValues>) => react_jsx_runtime11.JSX.Element;
17
17
  //#endregion
18
18
  export { SwitchField };
19
19
  //# sourceMappingURL=switch-field.d.ts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../label-CRhvNQY4.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-nFp50GQa.js";import{Switch as o}from"../switch-BWRzY3i2.js";import{cn as s}from"@customafk/react-toolkit/utils";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=({name:u,label:d=`Switch Field`,description:f,isShowErrorMsg:p=!1})=>c(n,{name:u,render:({field:n})=>l(`div`,{className:`spage-y-1`,children:[l(r,{className:s(`border-border-weak flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs`),children:[l(`div`,{className:`space-y-0.5`,children:[c(i,{className:`cursor-pointer text-sm`,children:d}),f&&c(t,{className:`text-xs`,children:f})]}),c(e,{children:c(o,{checked:n.value,onCheckedChange:n.onChange})})]}),p&&c(a,{})]})});export{u as SwitchField};
1
+ "use client";import"../label-CdrxlBJ8.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-BT1TbgK6.js";import{Switch as o}from"../switch-C8OMYLfj.js";import{cn as s}from"@customafk/react-toolkit/utils";import{jsx as c,jsxs as l}from"react/jsx-runtime";const u=({name:u,label:d=`Switch Field`,description:f,isShowErrorMsg:p=!1})=>c(n,{name:u,render:({field:n})=>l(`div`,{className:`spage-y-1`,children:[l(r,{className:s(`border-border-weak flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs`),children:[l(`div`,{className:`space-y-0.5`,children:[c(i,{className:`cursor-pointer text-sm`,children:d}),f&&c(t,{className:`text-xs`,children:f})]}),c(e,{children:c(o,{checked:n.value,onCheckedChange:n.onChange})})]}),p&&c(a,{})]})});export{u as SwitchField};
2
2
  //# sourceMappingURL=switch-field.js.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BR3QQSIp.cjs`);const t=require(`../form-LlBR5CH6.cjs`),n=require(`../input-jNmC92mW.cjs`),r=require(`../flex-tfa5B9qc.cjs`),i=e.__toESM(require(`lucide-react`)),a=e.__toESM(require(`@customafk/react-toolkit/utils`)),o=e.__toESM(require(`react`)),s=e.__toESM(require(`react/jsx-runtime`)),c=e.__toESM(require(`react-hook-form`)),l=({name:e,label:l=`Text Field`,placeholder:u=`Enter text here`,isShowLabel:d=!0,isShowClearButton:f=!1,isShowErrorMsg:p=!1,isShowCount:m=!1,description:h,className:g=``,onValueChange:_})=>{let{resetField:v}=t.useFormField(),y=(0,c.useWatch)({name:e}),b=(0,o.useCallback)(()=>{v(e)},[v,e]);return(0,s.jsx)(t.FormField,{name:e,render:({field:e})=>(0,s.jsxs)(t.FormItem,{className:(0,a.cn)(`w-full gap-0`,m||!!h&&`space-y-1`,g),children:[d&&(0,s.jsx)(t.FormLabel,{children:l}),(0,s.jsxs)(`div`,{className:`relative`,children:[(0,s.jsx)(t.FormControl,{children:(0,s.jsx)(n.Input,{...e,placeholder:u,className:(0,a.cn)(`w-full`,f&&`pr-9`),onValueChange:_})}),f&&y&&(0,s.jsx)(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:b,children:(0,s.jsx)(i.XIcon,{size:14,"aria-hidden":`true`})})]}),(0,s.jsxs)(r.Flex,{width:`full`,padding:`none`,justify:`end`,children:[p&&(0,s.jsx)(t.FormMessage,{className:`grow`}),m&&(0,s.jsxs)(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[y?.length??0,` characters`]})]}),!!h&&(0,s.jsx)(t.FormDescription,{children:h})]})})};exports.TextField=l;
1
+ "use client";const e=require(`../chunk-CUT6urMc.cjs`),t=require(`../flex-DS4mxjtf.cjs`);require(`../label-CHNSlaoz.cjs`);const n=require(`../form-DyH5iWq7.cjs`),r=require(`../input-GHXBt6hz.cjs`),i=e.__toESM(require(`lucide-react`)),a=e.__toESM(require(`@customafk/react-toolkit/utils`)),o=e.__toESM(require(`react`)),s=e.__toESM(require(`react/jsx-runtime`)),c=e.__toESM(require(`react-hook-form`)),l=({name:e,label:l=`Text Field`,placeholder:u=`Enter text here`,isShowLabel:d=!0,isShowClearButton:f=!1,isShowErrorMsg:p=!1,isShowCount:m=!1,description:h,className:g=``,onValueChange:_})=>{let{resetField:v}=n.useFormField(),y=(0,c.useWatch)({name:e}),b=(0,o.useCallback)(()=>{v(e)},[v,e]);return(0,s.jsx)(n.FormField,{name:e,render:({field:e})=>(0,s.jsxs)(n.FormItem,{className:(0,a.cn)(`w-full gap-0`,m||!!h&&`space-y-1`,g),children:[d&&(0,s.jsx)(n.FormLabel,{children:l}),(0,s.jsxs)(`div`,{className:`relative`,children:[(0,s.jsx)(n.FormControl,{children:(0,s.jsx)(r.Input,{...e,placeholder:u,className:(0,a.cn)(`w-full`,f&&`pr-9`),onValueChange:_})}),f&&y&&(0,s.jsx)(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:b,children:(0,s.jsx)(i.XIcon,{size:14,"aria-hidden":`true`})})]}),(0,s.jsxs)(t.Flex,{width:`full`,padding:`none`,justify:`end`,children:[p&&(0,s.jsx)(n.FormMessage,{className:`grow`}),m&&(0,s.jsxs)(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[y?.length??0,` characters`]})]}),!!h&&(0,s.jsx)(n.FormDescription,{children:h})]})})};exports.TextField=l;
2
2
  //# sourceMappingURL=text-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime13 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/text-field.d.ts
@@ -25,7 +25,7 @@ declare const TextField: <TFieldValues extends FieldValues = FieldValues>({
25
25
  description,
26
26
  className,
27
27
  onValueChange
28
- }: Props<TFieldValues>) => react_jsx_runtime13.JSX.Element;
28
+ }: Props<TFieldValues>) => react_jsx_runtime17.JSX.Element;
29
29
  //#endregion
30
30
  export { TextField };
31
31
  //# sourceMappingURL=text-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/text-field.d.ts
@@ -25,7 +25,7 @@ declare const TextField: <TFieldValues extends FieldValues = FieldValues>({
25
25
  description,
26
26
  className,
27
27
  onValueChange
28
- }: Props<TFieldValues>) => react_jsx_runtime5.JSX.Element;
28
+ }: Props<TFieldValues>) => react_jsx_runtime6.JSX.Element;
29
29
  //#endregion
30
30
  export { TextField };
31
31
  //# sourceMappingURL=text-field.d.ts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../label-CRhvNQY4.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a,useFormField as o}from"../form-nFp50GQa.js";import{Input as s}from"../input-CBsg9Cmq.js";import{Flex as c}from"../flex-Dngi9Umy.js";import{XIcon as l}from"lucide-react";import{cn as u}from"@customafk/react-toolkit/utils";import{useCallback as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{useWatch as m}from"react-hook-form";const h=({name:h,label:g=`Text Field`,placeholder:_=`Enter text here`,isShowLabel:v=!0,isShowClearButton:y=!1,isShowErrorMsg:b=!1,isShowCount:x=!1,description:S,className:C=``,onValueChange:w})=>{let{resetField:T}=o(),E=m({name:h}),D=d(()=>{T(h)},[T,h]);return f(n,{name:h,render:({field:n})=>p(r,{className:u(`w-full gap-0`,x||!!S&&`space-y-1`,C),children:[v&&f(i,{children:g}),p(`div`,{className:`relative`,children:[f(e,{children:f(s,{...n,placeholder:_,className:u(`w-full`,y&&`pr-9`),onValueChange:w})}),y&&E&&f(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:D,children:f(l,{size:14,"aria-hidden":`true`})})]}),p(c,{width:`full`,padding:`none`,justify:`end`,children:[b&&f(a,{className:`grow`}),x&&p(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[E?.length??0,` characters`]})]}),!!S&&f(t,{children:S})]})})};export{h as TextField};
1
+ "use client";import{Flex as e}from"../flex-D6XrXRQW.js";import"../label-CdrxlBJ8.js";import{FormControl as t,FormDescription as n,FormField as r,FormItem as i,FormLabel as a,FormMessage as o,useFormField as s}from"../form-BT1TbgK6.js";import{Input as c}from"../input-ZyZ1HKHN.js";import{XIcon as l}from"lucide-react";import{cn as u}from"@customafk/react-toolkit/utils";import{useCallback as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{useWatch as m}from"react-hook-form";const h=({name:h,label:g=`Text Field`,placeholder:_=`Enter text here`,isShowLabel:v=!0,isShowClearButton:y=!1,isShowErrorMsg:b=!1,isShowCount:x=!1,description:S,className:C=``,onValueChange:w})=>{let{resetField:T}=s(),E=m({name:h}),D=d(()=>{T(h)},[T,h]);return f(r,{name:h,render:({field:r})=>p(i,{className:u(`w-full gap-0`,x||!!S&&`space-y-1`,C),children:[v&&f(a,{children:g}),p(`div`,{className:`relative`,children:[f(t,{children:f(c,{...r,placeholder:_,className:u(`w-full`,y&&`pr-9`),onValueChange:w})}),y&&E&&f(`button`,{type:`button`,className:`text-text-positive-weak hover:text-text-positive focus-visible:ring-border absolute inset-y-0 end-0 flex h-full w-8 cursor-pointer items-center justify-center rounded-e-md transition-[color,box-shadow] outline-none focus:z-10 focus-visible:ring-2`,"aria-label":`Clear input`,onClick:D,children:f(l,{size:14,"aria-hidden":`true`})})]}),p(e,{width:`full`,padding:`none`,justify:`end`,children:[b&&f(o,{className:`grow`}),x&&p(`div`,{className:`text-text-positive-weak text-end text-xs`,children:[E?.length??0,` characters`]})]}),!!S&&f(n,{children:S})]})})};export{h as TextField};
2
2
  //# sourceMappingURL=text-field.js.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-BR3QQSIp.cjs`);const t=require(`../form-LlBR5CH6.cjs`),n=require(`../textarea-B0agR4V-.cjs`),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`react-hook-form`)),a=({name:e,label:a=`Textarea Field`,placeholder:o=`Enter text here`,isShowErrorMsg:s=!1,isShowCount:c=!1,description:l,rows:u=3,onValueChange:d})=>{let f=(0,i.useWatch)({name:e});return(0,r.jsx)(t.FormField,{name:e,render:({field:e})=>(0,r.jsxs)(t.FormItem,{className:`w-full`,children:[(0,r.jsx)(t.FormLabel,{children:a}),(0,r.jsx)(t.FormControl,{children:(0,r.jsx)(n.Textarea,{...e,placeholder:o,className:`w-full`,rows:u,onValueChange:d})}),c&&(0,r.jsxs)(`div`,{className:`text-muted-foreground text-end text-xs`,children:[f?.length??0,` characters`]}),!!l&&(0,r.jsx)(t.FormDescription,{children:l}),s&&(0,r.jsx)(t.FormMessage,{})]})})};exports.TextareaField=a;
1
+ "use client";const e=require(`../chunk-CUT6urMc.cjs`);require(`../label-CHNSlaoz.cjs`);const t=require(`../form-DyH5iWq7.cjs`),n=require(`../textarea-jrCmozqt.cjs`),r=e.__toESM(require(`react/jsx-runtime`)),i=e.__toESM(require(`react-hook-form`)),a=({name:e,label:a=`Textarea Field`,placeholder:o=`Enter text here`,isShowErrorMsg:s=!1,isShowCount:c=!1,description:l,rows:u=3,onValueChange:d})=>{let f=(0,i.useWatch)({name:e});return(0,r.jsx)(t.FormField,{name:e,render:({field:e})=>(0,r.jsxs)(t.FormItem,{className:`w-full`,children:[(0,r.jsx)(t.FormLabel,{children:a}),(0,r.jsx)(t.FormControl,{children:(0,r.jsx)(n.Textarea,{...e,placeholder:o,className:`w-full`,rows:u,onValueChange:d})}),c&&(0,r.jsxs)(`div`,{className:`text-muted-foreground text-end text-xs`,children:[f?.length??0,` characters`]}),!!l&&(0,r.jsx)(t.FormDescription,{children:l}),s&&(0,r.jsx)(t.FormMessage,{})]})})};exports.TextareaField=a;
2
2
  //# sourceMappingURL=textarea-field.cjs.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime144 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/textarea-field.d.ts
@@ -21,7 +21,7 @@ declare const TextareaField: <TFieldValues extends FieldValues = FieldValues>({
21
21
  description,
22
22
  rows,
23
23
  onValueChange
24
- }: Props<TFieldValues>) => react_jsx_runtime8.JSX.Element;
24
+ }: Props<TFieldValues>) => react_jsx_runtime144.JSX.Element;
25
25
  //#endregion
26
26
  export { TextareaField };
27
27
  //# sourceMappingURL=textarea-field.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime2 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
2
2
  import { FieldPath, FieldValues } from "react-hook-form";
3
3
 
4
4
  //#region packages/components/forms/textarea-field.d.ts
@@ -21,7 +21,7 @@ declare const TextareaField: <TFieldValues extends FieldValues = FieldValues>({
21
21
  description,
22
22
  rows,
23
23
  onValueChange
24
- }: Props<TFieldValues>) => react_jsx_runtime2.JSX.Element;
24
+ }: Props<TFieldValues>) => react_jsx_runtime7.JSX.Element;
25
25
  //#endregion
26
26
  export { TextareaField };
27
27
  //# sourceMappingURL=textarea-field.d.ts.map
@@ -1,2 +1,2 @@
1
- "use client";import"../label-CRhvNQY4.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-nFp50GQa.js";import{Textarea as o}from"../textarea-Rob6xodm.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{useWatch as l}from"react-hook-form";const u=({name:u,label:d=`Textarea Field`,placeholder:f=`Enter text here`,isShowErrorMsg:p=!1,isShowCount:m=!1,description:h,rows:g=3,onValueChange:_})=>{let v=l({name:u});return s(n,{name:u,render:({field:n})=>c(r,{className:`w-full`,children:[s(i,{children:d}),s(e,{children:s(o,{...n,placeholder:f,className:`w-full`,rows:g,onValueChange:_})}),m&&c(`div`,{className:`text-muted-foreground text-end text-xs`,children:[v?.length??0,` characters`]}),!!h&&s(t,{children:h}),p&&s(a,{})]})})};export{u as TextareaField};
1
+ "use client";import"../label-CdrxlBJ8.js";import{FormControl as e,FormDescription as t,FormField as n,FormItem as r,FormLabel as i,FormMessage as a}from"../form-BT1TbgK6.js";import{Textarea as o}from"../textarea-Br_DX1wm.js";import{jsx as s,jsxs as c}from"react/jsx-runtime";import{useWatch as l}from"react-hook-form";const u=({name:u,label:d=`Textarea Field`,placeholder:f=`Enter text here`,isShowErrorMsg:p=!1,isShowCount:m=!1,description:h,rows:g=3,onValueChange:_})=>{let v=l({name:u});return s(n,{name:u,render:({field:n})=>c(r,{className:`w-full`,children:[s(i,{children:d}),s(e,{children:s(o,{...n,placeholder:f,className:`w-full`,rows:g,onValueChange:_})}),m&&c(`div`,{className:`text-muted-foreground text-end text-xs`,children:[v?.length??0,` characters`]}),!!h&&s(t,{children:h}),p&&s(a,{})]})})};export{u as TextareaField};
2
2
  //# sourceMappingURL=textarea-field.js.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime140 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime123 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/ui/input.d.ts
4
4
  declare function Input({
@@ -8,7 +8,7 @@ declare function Input({
8
8
  ...props
9
9
  }: React.ComponentProps<'input'> & {
10
10
  onValueChange?: (value: string) => void;
11
- }): react_jsx_runtime140.JSX.Element;
11
+ }): react_jsx_runtime123.JSX.Element;
12
12
  //#endregion
13
13
  export { Input };
14
- //# sourceMappingURL=input-C5NrcQAm.d.cts.map
14
+ //# sourceMappingURL=input-DomGaN2h.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime88 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime31 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/ui/input.d.ts
4
4
  declare function Input({
@@ -8,7 +8,7 @@ declare function Input({
8
8
  ...props
9
9
  }: React.ComponentProps<'input'> & {
10
10
  onValueChange?: (value: string) => void;
11
- }): react_jsx_runtime88.JSX.Element;
11
+ }): react_jsx_runtime31.JSX.Element;
12
12
  //#endregion
13
13
  export { Input };
14
- //# sourceMappingURL=input-DkiBw_X9.d.ts.map
14
+ //# sourceMappingURL=input-DvX75CSu.d.cts.map
@@ -1,2 +1,2 @@
1
1
  const e=require(`./chunk-CUT6urMc.cjs`),t=e.__toESM(require(`@customafk/react-toolkit/utils`)),n=e.__toESM(require(`react`)),r=e.__toESM(require(`react/jsx-runtime`));function i({className:e,onChange:i,onValueChange:a,...o}){let s=(0,n.useCallback)(e=>{i?.(e),a?.(e.target.value)},[i,a]);return(0,r.jsx)(`input`,{"data-slot":`input`,className:(0,t.cn)(`flex h-9 w-full px-3 py-2`,`rounded-md border transition-all duration-200`,`text-text-positive-strong bg-transparent text-sm`,`border-border-weak shadow-input`,`caret-primary outline-none`,`placeholder:text-text-positive-muted`,`hover:border-border hover:shadow-input`,`focus:border-primary-strong focus:shadow-none`,`focus-visible:ring-primary-muted focus-visible:ring-4`,`aria-invalid:border-danger aria-invalid:ring-danger-muted`,`aria-invalid:hover:border-danger-strong`,`disabled:cursor-not-allowed disabled:opacity-50`,`disabled:pointer-events-none`,`disabled:border-border-weak/50 disabled:bg-secondary-muted/10`,e),...o,onChange:s})}Object.defineProperty(exports,`Input`,{enumerable:!0,get:function(){return i}});
2
- //# sourceMappingURL=input-jNmC92mW.cjs.map
2
+ //# sourceMappingURL=input-GHXBt6hz.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-jNmC92mW.cjs","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e)\n onValueChange?.(e.target.value)\n },\n [onChange, onValueChange],\n )\n return (\n <input\n data-slot=\"input\"\n className={cn(\n // Base styles\n 'flex h-9 w-full px-3 py-2',\n 'rounded-md border transition-all duration-200',\n 'text-text-positive-strong bg-transparent text-sm',\n\n // Border and shadow styles\n 'border-border-weak shadow-input',\n 'caret-primary outline-none',\n\n // Placeholder styling\n 'placeholder:text-text-positive-muted',\n\n // State styles\n 'hover:border-border hover:shadow-input',\n 'focus:border-primary-strong focus:shadow-none',\n 'focus-visible:ring-primary-muted focus-visible:ring-4',\n\n // Invalid state\n 'aria-invalid:border-danger aria-invalid:ring-danger-muted',\n 'aria-invalid:hover:border-danger-strong',\n\n // Disabled state\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'disabled:pointer-events-none',\n 'disabled:border-border-weak/50 disabled:bg-secondary-muted/10',\n\n // Additional custom styling\n className,\n )}\n {...props}\n onChange={handleChange}\n />\n )\n}\n\nexport { Input }\n"],"mappings":"uKAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,GAAA,EAAA,EAAA,aACH,GAA2C,CAC1C,IAAW,GACX,IAAgB,EAAE,OAAO,QAE3B,CAAC,EAAU,IAEb,OACE,EAAA,EAAA,KAAC,QAAA,CACC,YAAU,QACV,WAAA,EAAA,EAAA,IAEE,4BACA,gDACA,mDAGA,kCACA,6BAGA,uCAGA,yCACA,gDACA,wDAGA,4DACA,0CAGA,kDACA,+BACA,gEAGA,GAEF,GAAI,EACJ,SAAU"}
1
+ {"version":3,"file":"input-GHXBt6hz.cjs","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e)\n onValueChange?.(e.target.value)\n },\n [onChange, onValueChange],\n )\n return (\n <input\n data-slot=\"input\"\n className={cn(\n // Base styles\n 'flex h-9 w-full px-3 py-2',\n 'rounded-md border transition-all duration-200',\n 'text-text-positive-strong bg-transparent text-sm',\n\n // Border and shadow styles\n 'border-border-weak shadow-input',\n 'caret-primary outline-none',\n\n // Placeholder styling\n 'placeholder:text-text-positive-muted',\n\n // State styles\n 'hover:border-border hover:shadow-input',\n 'focus:border-primary-strong focus:shadow-none',\n 'focus-visible:ring-primary-muted focus-visible:ring-4',\n\n // Invalid state\n 'aria-invalid:border-danger aria-invalid:ring-danger-muted',\n 'aria-invalid:hover:border-danger-strong',\n\n // Disabled state\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'disabled:pointer-events-none',\n 'disabled:border-border-weak/50 disabled:bg-secondary-muted/10',\n\n // Additional custom styling\n className,\n )}\n {...props}\n onChange={handleChange}\n />\n )\n}\n\nexport { Input }\n"],"mappings":"uKAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,GAAA,EAAA,EAAA,aACH,GAA2C,CAC1C,IAAW,GACX,IAAgB,EAAE,OAAO,QAE3B,CAAC,EAAU,IAEb,OACE,EAAA,EAAA,KAAC,QAAA,CACC,YAAU,QACV,WAAA,EAAA,EAAA,IAEE,4BACA,gDACA,mDAGA,kCACA,6BAGA,uCAGA,yCACA,gDACA,wDAGA,4DACA,0CAGA,kDACA,+BACA,gEAGA,GAEF,GAAI,EACJ,SAAU"}
@@ -1,2 +1,2 @@
1
1
  import{cn as e}from"@customafk/react-toolkit/utils";import{useCallback as t}from"react";import{jsx as n}from"react/jsx-runtime";function r({className:r,onChange:i,onValueChange:a,...o}){let s=t(e=>{i?.(e),a?.(e.target.value)},[i,a]);return n(`input`,{"data-slot":`input`,className:e(`flex h-9 w-full px-3 py-2`,`rounded-md border transition-all duration-200`,`text-text-positive-strong bg-transparent text-sm`,`border-border-weak shadow-input`,`caret-primary outline-none`,`placeholder:text-text-positive-muted`,`hover:border-border hover:shadow-input`,`focus:border-primary-strong focus:shadow-none`,`focus-visible:ring-primary-muted focus-visible:ring-4`,`aria-invalid:border-danger aria-invalid:ring-danger-muted`,`aria-invalid:hover:border-danger-strong`,`disabled:cursor-not-allowed disabled:opacity-50`,`disabled:pointer-events-none`,`disabled:border-border-weak/50 disabled:bg-secondary-muted/10`,r),...o,onChange:s})}export{r as Input};
2
- //# sourceMappingURL=input-CBsg9Cmq.js.map
2
+ //# sourceMappingURL=input-ZyZ1HKHN.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-CBsg9Cmq.js","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e)\n onValueChange?.(e.target.value)\n },\n [onChange, onValueChange],\n )\n return (\n <input\n data-slot=\"input\"\n className={cn(\n // Base styles\n 'flex h-9 w-full px-3 py-2',\n 'rounded-md border transition-all duration-200',\n 'text-text-positive-strong bg-transparent text-sm',\n\n // Border and shadow styles\n 'border-border-weak shadow-input',\n 'caret-primary outline-none',\n\n // Placeholder styling\n 'placeholder:text-text-positive-muted',\n\n // State styles\n 'hover:border-border hover:shadow-input',\n 'focus:border-primary-strong focus:shadow-none',\n 'focus-visible:ring-primary-muted focus-visible:ring-4',\n\n // Invalid state\n 'aria-invalid:border-danger aria-invalid:ring-danger-muted',\n 'aria-invalid:hover:border-danger-strong',\n\n // Disabled state\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'disabled:pointer-events-none',\n 'disabled:border-border-weak/50 disabled:bg-secondary-muted/10',\n\n // Additional custom styling\n className,\n )}\n {...props}\n onChange={handleChange}\n />\n )\n}\n\nexport { Input }\n"],"mappings":"gIAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,EAAe,EAClB,GAA2C,CAC1C,IAAW,GACX,IAAgB,EAAE,OAAO,QAE3B,CAAC,EAAU,IAEb,OACE,EAAC,QAAA,CACC,YAAU,QACV,UAAW,EAET,4BACA,gDACA,mDAGA,kCACA,6BAGA,uCAGA,yCACA,gDACA,wDAGA,4DACA,0CAGA,kDACA,+BACA,gEAGA,GAEF,GAAI,EACJ,SAAU"}
1
+ {"version":3,"file":"input-ZyZ1HKHN.js","names":[],"sources":["../packages/components/ui/input.tsx"],"sourcesContent":["'use client'\nimport { useCallback } from 'react'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nfunction Input({\n className,\n onChange,\n onValueChange,\n ...props\n}: React.ComponentProps<'input'> & {\n onValueChange?: (value: string) => void\n}) {\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(e)\n onValueChange?.(e.target.value)\n },\n [onChange, onValueChange],\n )\n return (\n <input\n data-slot=\"input\"\n className={cn(\n // Base styles\n 'flex h-9 w-full px-3 py-2',\n 'rounded-md border transition-all duration-200',\n 'text-text-positive-strong bg-transparent text-sm',\n\n // Border and shadow styles\n 'border-border-weak shadow-input',\n 'caret-primary outline-none',\n\n // Placeholder styling\n 'placeholder:text-text-positive-muted',\n\n // State styles\n 'hover:border-border hover:shadow-input',\n 'focus:border-primary-strong focus:shadow-none',\n 'focus-visible:ring-primary-muted focus-visible:ring-4',\n\n // Invalid state\n 'aria-invalid:border-danger aria-invalid:ring-danger-muted',\n 'aria-invalid:hover:border-danger-strong',\n\n // Disabled state\n 'disabled:cursor-not-allowed disabled:opacity-50',\n 'disabled:pointer-events-none',\n 'disabled:border-border-weak/50 disabled:bg-secondary-muted/10',\n\n // Additional custom styling\n className,\n )}\n {...props}\n onChange={handleChange}\n />\n )\n}\n\nexport { Input }\n"],"mappings":"gIAIA,SAAS,EAAM,CACb,YACA,WACA,gBACA,GAAG,GAGF,CACD,IAAM,EAAe,EAClB,GAA2C,CAC1C,IAAW,GACX,IAAgB,EAAE,OAAO,QAE3B,CAAC,EAAU,IAEb,OACE,EAAC,QAAA,CACC,YAAU,QACV,UAAW,EAET,4BACA,gDACA,mDAGA,kCACA,6BAGA,uCAGA,yCACA,gDACA,wDAGA,4DACA,0CAGA,kDACA,+BACA,gEAGA,GAEF,GAAI,EACJ,SAAU"}
@@ -1,2 +1,2 @@
1
1
  const e=require(`./chunk-CUT6urMc.cjs`),t=e.__toESM(require(`@customafk/react-toolkit/utils`)),n=e.__toESM(require(`react/jsx-runtime`)),r=e.__toESM(require(`radix-ui`));function i({className:e,...i}){return(0,n.jsx)(r.Label.Root,{"data-slot":`label`,className:(0,t.cn)(`text-text-positive`,`flex items-center gap-2`,`text-sm leading-none font-medium select-none`,`group-data-[disabled=true]:pointer-events-none`,`group-data-[disabled=true]:opacity-50`,`peer-disabled:cursor-not-allowed`,`peer-disabled:opacity-50`,e),...i})}Object.defineProperty(exports,`Label`,{enumerable:!0,get:function(){return i}});
2
- //# sourceMappingURL=label-BR3QQSIp.cjs.map
2
+ //# sourceMappingURL=label-CHNSlaoz.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"label-BR3QQSIp.cjs","names":["LabelPrimitive"],"sources":["../packages/components/ui/label.tsx"],"sourcesContent":["'use client'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { Label as LabelPrimitive } from 'radix-ui'\n\nfunction Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'text-text-positive',\n 'flex items-center gap-2',\n 'text-sm leading-none font-medium select-none',\n 'group-data-[disabled=true]:pointer-events-none',\n 'group-data-[disabled=true]:opacity-50',\n 'peer-disabled:cursor-not-allowed',\n 'peer-disabled:opacity-50',\n className,\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n"],"mappings":"0KAKA,SAAS,EAAM,CAAE,YAAW,GAAG,GAA2D,CACxF,OACE,EAAA,EAAA,KAACA,EAAAA,MAAe,KAAA,CACd,YAAU,QACV,WAAA,EAAA,EAAA,IACE,qBACA,0BACA,+CACA,iDACA,wCACA,mCACA,2BACA,GAEF,GAAI"}
1
+ {"version":3,"file":"label-CHNSlaoz.cjs","names":["LabelPrimitive"],"sources":["../packages/components/ui/label.tsx"],"sourcesContent":["'use client'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { Label as LabelPrimitive } from 'radix-ui'\n\nfunction Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'text-text-positive',\n 'flex items-center gap-2',\n 'text-sm leading-none font-medium select-none',\n 'group-data-[disabled=true]:pointer-events-none',\n 'group-data-[disabled=true]:opacity-50',\n 'peer-disabled:cursor-not-allowed',\n 'peer-disabled:opacity-50',\n className,\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n"],"mappings":"0KAKA,SAAS,EAAM,CAAE,YAAW,GAAG,GAA2D,CACxF,OACE,EAAA,EAAA,KAACA,EAAAA,MAAe,KAAA,CACd,YAAU,QACV,WAAA,EAAA,EAAA,IACE,qBACA,0BACA,+CACA,iDACA,wCACA,mCACA,2BACA,GAEF,GAAI"}
@@ -1,2 +1,2 @@
1
1
  import{cn as e}from"@customafk/react-toolkit/utils";import{jsx as t}from"react/jsx-runtime";import{Label as n}from"radix-ui";function r({className:r,...i}){return t(n.Root,{"data-slot":`label`,className:e(`text-text-positive`,`flex items-center gap-2`,`text-sm leading-none font-medium select-none`,`group-data-[disabled=true]:pointer-events-none`,`group-data-[disabled=true]:opacity-50`,`peer-disabled:cursor-not-allowed`,`peer-disabled:opacity-50`,r),...i})}export{r as Label};
2
- //# sourceMappingURL=label-CRhvNQY4.js.map
2
+ //# sourceMappingURL=label-CdrxlBJ8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"label-CRhvNQY4.js","names":["Label","LabelPrimitive"],"sources":["../packages/components/ui/label.tsx"],"sourcesContent":["'use client'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { Label as LabelPrimitive } from 'radix-ui'\n\nfunction Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'text-text-positive',\n 'flex items-center gap-2',\n 'text-sm leading-none font-medium select-none',\n 'group-data-[disabled=true]:pointer-events-none',\n 'group-data-[disabled=true]:opacity-50',\n 'peer-disabled:cursor-not-allowed',\n 'peer-disabled:opacity-50',\n className,\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n"],"mappings":"6HAKA,SAASA,EAAM,CAAE,YAAW,GAAG,GAA2D,CACxF,OACE,EAACC,EAAe,KAAA,CACd,YAAU,QACV,UAAW,EACT,qBACA,0BACA,+CACA,iDACA,wCACA,mCACA,2BACA,GAEF,GAAI"}
1
+ {"version":3,"file":"label-CdrxlBJ8.js","names":["Label","LabelPrimitive"],"sources":["../packages/components/ui/label.tsx"],"sourcesContent":["'use client'\nimport { cn } from '@customafk/react-toolkit/utils'\n\nimport { Label as LabelPrimitive } from 'radix-ui'\n\nfunction Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'text-text-positive',\n 'flex items-center gap-2',\n 'text-sm leading-none font-medium select-none',\n 'group-data-[disabled=true]:pointer-events-none',\n 'group-data-[disabled=true]:opacity-50',\n 'peer-disabled:cursor-not-allowed',\n 'peer-disabled:opacity-50',\n className,\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n"],"mappings":"6HAKA,SAASA,EAAM,CAAE,YAAW,GAAG,GAA2D,CACxF,OACE,EAACC,EAAe,KAAA,CACd,YAAU,QACV,UAAW,EACT,qBACA,0BACA,+CACA,iDACA,wCACA,mCACA,2BACA,GAEF,GAAI"}
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../../chunk-CUT6urMc.cjs`);require(`../../dist-D0uO1qIz.cjs`),require(`../../button-variants-CCiseNSC.cjs`);const t=require(`../../button-CuV2l4ge.cjs`),n=require(`../../skeleton-BA-3d3bn.cjs`),r=require(`../../tooltip-B6BWVv0X.cjs`),i=require(`../../separator-WF5zTNGS.cjs`),a=require(`../../sheet-cjXJAfUE.cjs`),o=e.__toESM(require(`lucide-react`)),s=e.__toESM(require(`@customafk/react-toolkit/utils`)),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(`@customafk/react-toolkit/hooks/useMobile`)),p=`sidebar_state`,m=3600*24*7,h=`16rem`,g=`16rem`,_=`3rem`,v=`b`,y=(0,c.createContext)(null);function b(){let e=(0,c.useContext)(y);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function x({defaultOpen:e=!0,open:t,onOpenChange:n,className:i,style:a,children:o,...u}){let d=(0,f.useIsMobile)(),[p,m]=(0,c.useState)(!1),[h,g]=(0,c.useState)(e),_=t??h,v=(0,c.useCallback)(e=>{let t=typeof e==`function`?e(_):e;n?n(t):g(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,_]),b=(0,c.useCallback)(()=>d?m(e=>!e):v(e=>!e),[d,v,m]);(0,c.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b]);let x=_?`expanded`:`collapsed`,S=(0,c.useMemo)(()=>({state:x,isMobile:d,toggleSidebar:b,open:_,setOpen:v,openMobile:p,setOpenMobile:m}),[x,_,v,d,p,m,b]);return(0,l.jsx)(y.Provider,{value:S,children:(0,l.jsx)(r.TooltipProvider,{delayDuration:0,children:(0,l.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,s.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,i),...u,children:o})})})}function S({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...c}){let{isMobile:u,state:d,openMobile:f,setOpenMobile:p}=b();return n===`none`?(0,l.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,s.cn)(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,r),...c,children:i}):u?(0,l.jsx)(a.Sheet,{open:f,onOpenChange:p,...c,children:(0,l.jsxs)(a.SheetContent,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`16rem`},side:e,children:[(0,l.jsxs)(a.SheetHeader,{className:`sr-only`,children:[(0,l.jsx)(a.SheetTitle,{children:`Sidebar`}),(0,l.jsx)(a.SheetDescription,{children:`Displays the mobile sidebar.`})]}),(0,l.jsxs)(`div`,{className:`flex size-full flex-col`,children:[(0,l.jsxs)(`div`,{className:`border-border-weak flex items-center gap-x-2 border-b p-2 pr-4`,children:[(0,l.jsx)(C,{}),(0,l.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground ml-2 flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,l.jsx)(o.ShoppingCartIcon,{size:20})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),i]})]})}):(0,l.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":d,"data-collapsible":d===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,l.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,s.cn)(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-(--header-height) w-(--sidebar-width)`,`sm:h-[calc(var(--header-height) + 0.5rem)]`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`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:(0,s.cn)(`hidden md:flex`,`shadow-nav fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...c,children:(0,l.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,s.cn)(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function C({className:e,onClick:n,...r}){let{toggleSidebar:i}=b();return(0,l.jsxs)(t.Button,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:(0,s.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,l.jsx)(o.MenuIcon,{className:`!size-6`}),(0,l.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function w({className:e,...t}){let{toggleSidebar:n}=b();return(0,l.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:(0,s.cn)(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute after:inset-y-0 after:left-1/2 after:w-[2px]`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function T({className:e,children:t,...n}){return(0,l.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,s.cn)(`relative flex w-full flex-1 flex-col`,e),...n,children:[(0,l.jsx)(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)_+_0.5rem)]`}),(0,l.jsx)(`div`,{className:(0,s.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function E({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function D({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function O({className:e,...t}){return(0,l.jsx)(i.Separator,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:(0,s.cn)(`bg-sidebar-border mx-2 w-auto`,e),...t})}function k({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,s.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function A({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,s.cn)(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function j({className:e,asChild:t=!1,...n}){let r=t?d.Slot.Slot:`div`;return(0,l.jsx)(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,s.cn)(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2`,`text-sidebar-foreground/70`,`ring-sidebar-ring`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function M({className:e,asChild:t=!1,...n}){let r=t?d.Slot.Slot:`button`;return(0,l.jsx)(r,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function N({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,s.cn)(`w-full text-sm`,e),...t})}function P({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,s.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function F({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,s.cn)(`group/menu-item relative`,e),...t})}const I=(0,u.cva)([`peer/menu-button`,`cursor-pointer`,`flex w-full items-center gap-2`,`overflow-hidden rounded-md p-2 outline-hidden`,`text-left truncate`,`transition-[color,width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`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-primary-muted`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-primary`,`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!`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>span:last-child]:truncate`],{variants:{variant:{default:`hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground/80`,outline:`bg-background 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 L({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:i=`default`,tooltip:a,className:o,...c}){let u=e?d.Slot.Slot:`button`,{isMobile:f,state:p}=b(),m=(0,l.jsx)(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":i,"data-active":t,className:(0,s.cn)(I({variant:n,size:i}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,l.jsxs)(r.Tooltip,{children:[(0,l.jsx)(r.TooltipTrigger,{asChild:!0,children:m}),(0,l.jsx)(r.TooltipContent,{side:`right`,align:`center`,hidden:p!==`collapsed`||f,...a})]})):m}function R({className:e,asChild:t=!1,showOnHover:n=!1,...r}){let i=t?d.Slot.Slot:`button`;return(0,l.jsx)(i,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function z({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:(0,s.cn)(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function B({className:e,showIcon:t=!1,...r}){let i=(0,c.useMemo)(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,l.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:(0,s.cn)(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[t&&(0,l.jsx)(n.Skeleton,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,l.jsx)(n.Skeleton,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function V({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:(0,s.cn)(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function H({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:(0,s.cn)(`group/menu-sub-item relative`,e),...t})}function U({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?d.Slot.Slot:`a`;return(0,l.jsx)(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:(0,s.cn)(`text-sidebar-foreground`,`ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`[&>span:last-child]:truncate`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}const W=({children:e})=>(0,l.jsx)(x,{children:e}),G=({children:e})=>(0,l.jsxs)(`header`,{className:(0,s.cn)(`bg-card`,`h-(--header-height)`,`sm:h-[calc(var(--header-height)_+_0.5rem)]`,`sm:px-4 sm:pr-6`,`absolute inset-x-0 top-0 z-20 gap-2 px-2 pr-4.5`,`shadow-nav flex items-center`,`transition-[width,height] ease-linear`,`group-has-data-[collapsible=icon]/sidebar-wrapper:h-(--header-height)`,`sm:group-has-data-[collapsible=icon]/sidebar-wrapper:h-[calc(var(--header-height)_+_0.5rem)]`),children:[(0,l.jsx)(C,{}),(0,l.jsxs)(`div`,{className:`flex gap-x-2 sm:ml-2.5`,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)(o.ShoppingCartIcon,{size:20})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),(0,l.jsx)(`div`,{className:`flex flex-1 items-center justify-end`,children:e})]}),K=({children:e,...t})=>(0,l.jsx)(S,{variant:`inset`,collapsible:`icon`,...t,children:e}),q=({children:e})=>(0,l.jsx)(T,{children:(0,l.jsx)(`section`,{className:`relative size-full`,children:(0,l.jsx)(`div`,{className:`absolute inset-0 flex flex-col`,children:e})})}),J=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-header`,className:(0,s.cn)(`flex-0 snap-start`,e),children:t}),Y=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-content`,className:(0,s.cn)(`flex w-full flex-1 snap-y flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),X=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-footer`,className:(0,s.cn)(`border-border-weak hidden w-full flex-0 border-t pt-2 sm:flex`,e),children:t}),Z=({children:e,className:t})=>(0,l.jsx)(`div`,{"data-slot":`main-group`,className:(0,s.cn)(`flex size-full flex-col gap-4`,t),children:e}),Q=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-group-content`,className:(0,s.cn)(`bg-card shadow-card size-full max-w-5xl flex-1 snap-start snap-always scroll-mt-4 rounded-md p-4`,e),children:t});exports.AppLayoutHeader=G,exports.AppLayoutMain=q,exports.AppLayoutMainContent=Y,exports.AppLayoutMainFooter=X,exports.AppLayoutMainGroup=Z,exports.AppLayoutMainGroupContent=Q,exports.AppLayoutMainHeader=J,exports.AppLayoutSidebar=K,exports.AppLayoutSidebarContent=k,exports.AppLayoutSidebarFooter=D,exports.AppLayoutSidebarGroup=A,exports.AppLayoutSidebarGroupAction=M,exports.AppLayoutSidebarGroupContent=N,exports.AppLayoutSidebarGroupLabel=j,exports.AppLayoutSidebarHeader=E,exports.AppLayoutSidebarInset=T,exports.AppLayoutSidebarMenu=P,exports.AppLayoutSidebarMenuAction=R,exports.AppLayoutSidebarMenuBadge=z,exports.AppLayoutSidebarMenuButton=L,exports.AppLayoutSidebarMenuItem=F,exports.AppLayoutSidebarMenuSkeleton=B,exports.AppLayoutSidebarMenuSub=V,exports.AppLayoutSidebarMenuSubButton=U,exports.AppLayoutSidebarMenuSubItem=H,exports.AppLayoutSidebarRail=w,exports.AppLayoutSidebarSeparator=O,exports.AppLayoutSidebarTrigger=C,exports.AppLayoutWrapper=W,exports.Sidebar=S,exports.SidebarProvider=x,exports.useSidebar=b;
1
+ "use client";const e=require(`../../chunk-CUT6urMc.cjs`);require(`../../dist-D0uO1qIz.cjs`),require(`../../button-variants-CCiseNSC.cjs`);const t=require(`../../button-CuV2l4ge.cjs`),n=require(`../../skeleton-BA-3d3bn.cjs`),r=require(`../../tooltip-DXvcPsvM.cjs`),i=require(`../../separator-WF5zTNGS.cjs`),a=require(`../../sheet-cjXJAfUE.cjs`),o=e.__toESM(require(`lucide-react`)),s=e.__toESM(require(`@customafk/react-toolkit/utils`)),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(`@customafk/react-toolkit/hooks/useMobile`)),p=`sidebar_state`,m=3600*24*7,h=`16rem`,g=`16rem`,_=`3rem`,v=`b`,y=(0,c.createContext)(null);function b(){let e=(0,c.useContext)(y);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function x({defaultOpen:e=!0,open:t,onOpenChange:n,className:i,style:a,children:o,...u}){let d=(0,f.useIsMobile)(),[p,m]=(0,c.useState)(!1),[h,g]=(0,c.useState)(e),_=t??h,v=(0,c.useCallback)(e=>{let t=typeof e==`function`?e(_):e;n?n(t):g(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,_]),b=(0,c.useCallback)(()=>d?m(e=>!e):v(e=>!e),[d,v,m]);(0,c.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b]);let x=_?`expanded`:`collapsed`,S=(0,c.useMemo)(()=>({state:x,isMobile:d,toggleSidebar:b,open:_,setOpen:v,openMobile:p,setOpenMobile:m}),[x,_,v,d,p,m,b]);return(0,l.jsx)(y.Provider,{value:S,children:(0,l.jsx)(r.TooltipProvider,{delayDuration:0,children:(0,l.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,s.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,i),...u,children:o})})})}function S({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...c}){let{isMobile:u,state:d,openMobile:f,setOpenMobile:p}=b();return n===`none`?(0,l.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,s.cn)(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,r),...c,children:i}):u?(0,l.jsx)(a.Sheet,{open:f,onOpenChange:p,...c,children:(0,l.jsxs)(a.SheetContent,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`16rem`},side:e,children:[(0,l.jsxs)(a.SheetHeader,{className:`sr-only`,children:[(0,l.jsx)(a.SheetTitle,{children:`Sidebar`}),(0,l.jsx)(a.SheetDescription,{children:`Displays the mobile sidebar.`})]}),(0,l.jsxs)(`div`,{className:`flex size-full flex-col`,children:[(0,l.jsxs)(`div`,{className:`border-border-weak flex items-center gap-x-2 border-b p-2 pr-4`,children:[(0,l.jsx)(C,{}),(0,l.jsx)(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground ml-2 flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,l.jsx)(o.ShoppingCartIcon,{size:20})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),i]})]})}):(0,l.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":d,"data-collapsible":d===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,l.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,s.cn)(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-(--header-height) w-(--sidebar-width)`,`sm:h-[calc(var(--header-height) + 0.5rem)]`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`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:(0,s.cn)(`hidden md:flex`,`shadow-nav fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...c,children:(0,l.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,s.cn)(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function C({className:e,onClick:n,...r}){let{toggleSidebar:i}=b();return(0,l.jsxs)(t.Button,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:(0,s.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,l.jsx)(o.MenuIcon,{className:`!size-6`}),(0,l.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function w({className:e,...t}){let{toggleSidebar:n}=b();return(0,l.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:(0,s.cn)(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute after:inset-y-0 after:left-1/2 after:w-[2px]`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function T({className:e,children:t,...n}){return(0,l.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,s.cn)(`relative flex w-full flex-1 flex-col`,e),...n,children:[(0,l.jsx)(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)_+_0.5rem)]`}),(0,l.jsx)(`div`,{className:(0,s.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function E({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function D({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function O({className:e,...t}){return(0,l.jsx)(i.Separator,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:(0,s.cn)(`bg-sidebar-border mx-2 w-auto`,e),...t})}function k({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,s.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function A({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,s.cn)(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function j({className:e,asChild:t=!1,...n}){let r=t?d.Slot.Slot:`div`;return(0,l.jsx)(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,s.cn)(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2`,`text-sidebar-foreground/70`,`ring-sidebar-ring`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function M({className:e,asChild:t=!1,...n}){let r=t?d.Slot.Slot:`button`;return(0,l.jsx)(r,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function N({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,s.cn)(`w-full text-sm`,e),...t})}function P({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,s.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function F({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,s.cn)(`group/menu-item relative`,e),...t})}const I=(0,u.cva)([`peer/menu-button`,`cursor-pointer`,`flex w-full items-center gap-2`,`overflow-hidden rounded-md p-2 outline-hidden`,`text-left truncate`,`transition-[color,width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`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-primary-muted`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-primary`,`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!`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>span:last-child]:truncate`],{variants:{variant:{default:`hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground/80`,outline:`bg-background 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 L({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:i=`default`,tooltip:a,className:o,...c}){let u=e?d.Slot.Slot:`button`,{isMobile:f,state:p}=b(),m=(0,l.jsx)(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":i,"data-active":t,className:(0,s.cn)(I({variant:n,size:i}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,l.jsxs)(r.Tooltip,{children:[(0,l.jsx)(r.TooltipTrigger,{asChild:!0,children:m}),(0,l.jsx)(r.TooltipContent,{side:`right`,align:`center`,hidden:p!==`collapsed`||f,...a})]})):m}function R({className:e,asChild:t=!1,showOnHover:n=!1,...r}){let i=t?d.Slot.Slot:`button`;return(0,l.jsx)(i,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function z({className:e,...t}){return(0,l.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:(0,s.cn)(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function B({className:e,showIcon:t=!1,...r}){let i=(0,c.useMemo)(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,l.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:(0,s.cn)(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[t&&(0,l.jsx)(n.Skeleton,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,l.jsx)(n.Skeleton,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function V({className:e,...t}){return(0,l.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:(0,s.cn)(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function H({className:e,...t}){return(0,l.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:(0,s.cn)(`group/menu-sub-item relative`,e),...t})}function U({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?d.Slot.Slot:`a`;return(0,l.jsx)(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:(0,s.cn)(`text-sidebar-foreground`,`ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`[&>span:last-child]:truncate`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}const W=({children:e})=>(0,l.jsx)(x,{children:e}),G=({children:e})=>(0,l.jsxs)(`header`,{className:(0,s.cn)(`bg-card`,`h-(--header-height)`,`sm:h-[calc(var(--header-height)_+_0.5rem)]`,`sm:px-4 sm:pr-6`,`absolute inset-x-0 top-0 z-20 gap-2 px-2 pr-4.5`,`shadow-nav flex items-center`,`transition-[width,height] ease-linear`,`group-has-data-[collapsible=icon]/sidebar-wrapper:h-(--header-height)`,`sm:group-has-data-[collapsible=icon]/sidebar-wrapper:h-[calc(var(--header-height)_+_0.5rem)]`),children:[(0,l.jsx)(C,{}),(0,l.jsxs)(`div`,{className:`flex gap-x-2 sm:ml-2.5`,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)(o.ShoppingCartIcon,{size:20})}),(0,l.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,l.jsx)(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),(0,l.jsx)(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),(0,l.jsx)(`div`,{className:`flex flex-1 items-center justify-end`,children:e})]}),K=({children:e,...t})=>(0,l.jsx)(S,{variant:`inset`,collapsible:`icon`,...t,children:e}),q=({children:e})=>(0,l.jsx)(T,{children:(0,l.jsx)(`section`,{className:`relative size-full`,children:(0,l.jsx)(`div`,{className:`absolute inset-0 flex flex-col`,children:e})})}),J=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-header`,className:(0,s.cn)(`flex-0 snap-start`,e),children:t}),Y=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-content`,className:(0,s.cn)(`flex w-full flex-1 snap-y flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),X=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-footer`,className:(0,s.cn)(`border-border-weak hidden w-full flex-0 border-t pt-2 sm:flex`,e),children:t}),Z=({children:e,className:t})=>(0,l.jsx)(`div`,{"data-slot":`main-group`,className:(0,s.cn)(`flex size-full flex-col gap-4`,t),children:e}),Q=({className:e,children:t})=>(0,l.jsx)(`div`,{"data-slot":`main-group-content`,className:(0,s.cn)(`bg-card shadow-card size-full max-w-5xl flex-1 snap-start snap-always scroll-mt-4 rounded-md p-4`,e),children:t});exports.AppLayoutHeader=G,exports.AppLayoutMain=q,exports.AppLayoutMainContent=Y,exports.AppLayoutMainFooter=X,exports.AppLayoutMainGroup=Z,exports.AppLayoutMainGroupContent=Q,exports.AppLayoutMainHeader=J,exports.AppLayoutSidebar=K,exports.AppLayoutSidebarContent=k,exports.AppLayoutSidebarFooter=D,exports.AppLayoutSidebarGroup=A,exports.AppLayoutSidebarGroupAction=M,exports.AppLayoutSidebarGroupContent=N,exports.AppLayoutSidebarGroupLabel=j,exports.AppLayoutSidebarHeader=E,exports.AppLayoutSidebarInset=T,exports.AppLayoutSidebarMenu=P,exports.AppLayoutSidebarMenuAction=R,exports.AppLayoutSidebarMenuBadge=z,exports.AppLayoutSidebarMenuButton=L,exports.AppLayoutSidebarMenuItem=F,exports.AppLayoutSidebarMenuSkeleton=B,exports.AppLayoutSidebarMenuSub=V,exports.AppLayoutSidebarMenuSubButton=U,exports.AppLayoutSidebarMenuSubItem=H,exports.AppLayoutSidebarRail=w,exports.AppLayoutSidebarSeparator=O,exports.AppLayoutSidebarTrigger=C,exports.AppLayoutWrapper=W,exports.Sidebar=S,exports.SidebarProvider=x,exports.useSidebar=b;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,8 +1,8 @@
1
- import { Button } from "../../button-CXKXt24w.cjs";
2
- import { Separator } from "../../separator-B3UjKJ91.cjs";
3
- import { TooltipContent } from "../../tooltip-BxTaXvVn.cjs";
4
- import * as react_jsx_runtime281 from "react/jsx-runtime";
5
- import * as class_variance_authority_types8 from "class-variance-authority/types";
1
+ import { Button } from "../../button-DoAx4aaD.cjs";
2
+ import { Separator } from "../../separator-B0ekl2cm.cjs";
3
+ import { TooltipContent } from "../../tooltip-BhypOt39.cjs";
4
+ import * as react_jsx_runtime259 from "react/jsx-runtime";
5
+ import * as class_variance_authority_types7 from "class-variance-authority/types";
6
6
  import { VariantProps } from "class-variance-authority";
7
7
 
8
8
  //#region packages/components/layouts/app-layout/sidebar.d.ts
@@ -28,7 +28,7 @@ declare function SidebarProvider({
28
28
  defaultOpen?: boolean;
29
29
  open?: boolean;
30
30
  onOpenChange?: (open: boolean) => void;
31
- }): react_jsx_runtime281.JSX.Element;
31
+ }): react_jsx_runtime259.JSX.Element;
32
32
  declare function Sidebar({
33
33
  side,
34
34
  variant,
@@ -40,71 +40,71 @@ declare function Sidebar({
40
40
  side?: 'left' | 'right';
41
41
  variant?: 'sidebar' | 'floating' | 'inset';
42
42
  collapsible?: 'offcanvas' | 'icon' | 'none';
43
- }): react_jsx_runtime281.JSX.Element;
43
+ }): react_jsx_runtime259.JSX.Element;
44
44
  declare function AppLayoutSidebarTrigger({
45
45
  className,
46
46
  onClick,
47
47
  ...props
48
- }: React.ComponentProps<typeof Button>): react_jsx_runtime281.JSX.Element;
48
+ }: React.ComponentProps<typeof Button>): react_jsx_runtime259.JSX.Element;
49
49
  declare function AppLayoutSidebarRail({
50
50
  className,
51
51
  ...props
52
- }: React.ComponentProps<'button'>): react_jsx_runtime281.JSX.Element;
52
+ }: React.ComponentProps<'button'>): react_jsx_runtime259.JSX.Element;
53
53
  declare function AppLayoutSidebarInset({
54
54
  className,
55
55
  children,
56
56
  ...props
57
- }: React.ComponentProps<'main'>): react_jsx_runtime281.JSX.Element;
57
+ }: React.ComponentProps<'main'>): react_jsx_runtime259.JSX.Element;
58
58
  declare function AppLayoutSidebarHeader({
59
59
  className,
60
60
  ...props
61
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
61
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
62
62
  declare function AppLayoutSidebarFooter({
63
63
  className,
64
64
  ...props
65
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
65
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
66
66
  declare function AppLayoutSidebarSeparator({
67
67
  className,
68
68
  ...props
69
- }: React.ComponentProps<typeof Separator>): react_jsx_runtime281.JSX.Element;
69
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime259.JSX.Element;
70
70
  declare function AppLayoutSidebarContent({
71
71
  className,
72
72
  ...props
73
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
73
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
74
74
  declare function AppLayoutSidebarGroup({
75
75
  className,
76
76
  ...props
77
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
77
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
78
78
  declare function AppLayoutSidebarGroupLabel({
79
79
  className,
80
80
  asChild,
81
81
  ...props
82
82
  }: React.ComponentProps<'div'> & {
83
83
  asChild?: boolean;
84
- }): react_jsx_runtime281.JSX.Element;
84
+ }): react_jsx_runtime259.JSX.Element;
85
85
  declare function AppLayoutSidebarGroupAction({
86
86
  className,
87
87
  asChild,
88
88
  ...props
89
89
  }: React.ComponentProps<'button'> & {
90
90
  asChild?: boolean;
91
- }): react_jsx_runtime281.JSX.Element;
91
+ }): react_jsx_runtime259.JSX.Element;
92
92
  declare function AppLayoutSidebarGroupContent({
93
93
  className,
94
94
  ...props
95
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
95
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
96
96
  declare function AppLayoutSidebarMenu({
97
97
  className,
98
98
  ...props
99
- }: React.ComponentProps<'ul'>): react_jsx_runtime281.JSX.Element;
99
+ }: React.ComponentProps<'ul'>): react_jsx_runtime259.JSX.Element;
100
100
  declare function AppLayoutSidebarMenuItem({
101
101
  className,
102
102
  ...props
103
- }: React.ComponentProps<'li'>): react_jsx_runtime281.JSX.Element;
103
+ }: React.ComponentProps<'li'>): react_jsx_runtime259.JSX.Element;
104
104
  declare const sidebarMenuButtonVariants: (props?: ({
105
105
  variant?: "default" | "outline" | null | undefined;
106
106
  size?: "sm" | "lg" | "default" | null | undefined;
107
- } & class_variance_authority_types8.ClassProp) | undefined) => string;
107
+ } & class_variance_authority_types7.ClassProp) | undefined) => string;
108
108
  declare function AppLayoutSidebarMenuButton({
109
109
  asChild,
110
110
  isActive,
@@ -117,7 +117,7 @@ declare function AppLayoutSidebarMenuButton({
117
117
  asChild?: boolean;
118
118
  isActive?: boolean;
119
119
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
120
- } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime281.JSX.Element;
120
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime259.JSX.Element;
121
121
  declare function AppLayoutSidebarMenuAction({
122
122
  className,
123
123
  asChild,
@@ -126,26 +126,26 @@ declare function AppLayoutSidebarMenuAction({
126
126
  }: React.ComponentProps<'button'> & {
127
127
  asChild?: boolean;
128
128
  showOnHover?: boolean;
129
- }): react_jsx_runtime281.JSX.Element;
129
+ }): react_jsx_runtime259.JSX.Element;
130
130
  declare function AppLayoutSidebarMenuBadge({
131
131
  className,
132
132
  ...props
133
- }: React.ComponentProps<'div'>): react_jsx_runtime281.JSX.Element;
133
+ }: React.ComponentProps<'div'>): react_jsx_runtime259.JSX.Element;
134
134
  declare function AppLayoutSidebarMenuSkeleton({
135
135
  className,
136
136
  showIcon,
137
137
  ...props
138
138
  }: React.ComponentProps<'div'> & {
139
139
  showIcon?: boolean;
140
- }): react_jsx_runtime281.JSX.Element;
140
+ }): react_jsx_runtime259.JSX.Element;
141
141
  declare function AppLayoutSidebarMenuSub({
142
142
  className,
143
143
  ...props
144
- }: React.ComponentProps<'ul'>): react_jsx_runtime281.JSX.Element;
144
+ }: React.ComponentProps<'ul'>): react_jsx_runtime259.JSX.Element;
145
145
  declare function AppLayoutSidebarMenuSubItem({
146
146
  className,
147
147
  ...props
148
- }: React.ComponentProps<'li'>): react_jsx_runtime281.JSX.Element;
148
+ }: React.ComponentProps<'li'>): react_jsx_runtime259.JSX.Element;
149
149
  declare function AppLayoutSidebarMenuSubButton({
150
150
  asChild,
151
151
  size,
@@ -156,7 +156,7 @@ declare function AppLayoutSidebarMenuSubButton({
156
156
  asChild?: boolean;
157
157
  size?: 'sm' | 'md';
158
158
  isActive?: boolean;
159
- }): react_jsx_runtime281.JSX.Element;
159
+ }): react_jsx_runtime259.JSX.Element;
160
160
  //#endregion
161
161
  //#region packages/components/layouts/app-layout/index.d.ts
162
162
  declare const AppLayoutWrapper: React.FC<React.PropsWithChildren>;
@@ -1,6 +1,6 @@
1
- import { Button } from "../../button-CcW3s4Yg.js";
1
+ import { Button } from "../../button-DikL7zwS.js";
2
2
  import { Separator } from "../../separator-CkPhyUEI.js";
3
- import { TooltipContent } from "../../tooltip-Bi4jcrSu.js";
3
+ import { TooltipContent } from "../../tooltip-Dibm3gcf.js";
4
4
  import * as react_jsx_runtime259 from "react/jsx-runtime";
5
5
  import { VariantProps } from "class-variance-authority";
6
6
  import * as class_variance_authority_types7 from "class-variance-authority/types";