ikoncomponents 1.5.7 → 1.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/README.md +36 -36
  2. package/bin.js +2 -0
  3. package/dist/commands/init.js +63 -0
  4. package/dist/index.js +14 -116
  5. package/dist/utlis/copyDir.js +7 -0
  6. package/package.json +17 -91
  7. package/templates/default/hooks/use-mobile.ts +19 -0
  8. package/templates/default/ikonS/accordion.tsx +66 -0
  9. package/templates/default/ikonS/alert-dialog.tsx +179 -0
  10. package/templates/default/ikonS/alert.tsx +66 -0
  11. package/templates/default/ikonS/aspect-ratio.tsx +11 -0
  12. package/templates/default/ikonS/avatar.tsx +53 -0
  13. package/templates/default/ikonS/badge.tsx +49 -0
  14. package/templates/default/ikonS/breadcrumb.tsx +109 -0
  15. package/templates/default/ikonS/button.tsx +64 -0
  16. package/templates/default/ikonS/calendar.tsx +227 -0
  17. package/templates/default/ikonS/card.tsx +92 -0
  18. package/templates/default/ikonS/checkbox.tsx +33 -0
  19. package/templates/default/ikonS/collapsible.tsx +33 -0
  20. package/templates/default/ikonS/command.tsx +184 -0
  21. package/templates/default/ikonS/date-input.tsx +259 -0
  22. package/templates/default/ikonS/date-range-picker.tsx +103 -0
  23. package/templates/default/ikonS/dialog.tsx +143 -0
  24. package/templates/default/ikonS/drawer.tsx +134 -0
  25. package/templates/default/ikonS/dropdown-menu.tsx +259 -0
  26. package/templates/default/ikonS/form.tsx +166 -0
  27. package/templates/default/ikonS/hover-card.tsx +44 -0
  28. package/templates/default/ikonS/input-otp.tsx +71 -0
  29. package/templates/default/ikonS/input.tsx +22 -0
  30. package/templates/default/ikonS/label.tsx +24 -0
  31. package/templates/default/ikonS/navigation-menu.tsx +195 -0
  32. package/templates/default/ikonS/popover.tsx +48 -0
  33. package/templates/default/ikonS/progress.tsx +40 -0
  34. package/templates/default/ikonS/radio-group.tsx +45 -0
  35. package/templates/default/ikonS/scroll-area.tsx +58 -0
  36. package/templates/default/ikonS/select.tsx +184 -0
  37. package/templates/default/ikonS/separator.tsx +28 -0
  38. package/templates/default/ikonS/sheet.tsx +139 -0
  39. package/templates/default/ikonS/sidebar.tsx +726 -0
  40. package/templates/default/ikonS/skeleton.tsx +15 -0
  41. package/templates/default/ikonS/slider.tsx +64 -0
  42. package/templates/default/ikonS/sonner.tsx +25 -0
  43. package/templates/default/ikonS/switch.tsx +31 -0
  44. package/templates/default/ikonS/table.tsx +116 -0
  45. package/templates/default/ikonS/tabs.tsx +67 -0
  46. package/templates/default/ikonS/textarea.tsx +18 -0
  47. package/templates/default/ikonS/toggle-group.tsx +83 -0
  48. package/templates/default/ikonS/toggle.tsx +47 -0
  49. package/templates/default/ikonS/tooltip.tsx +65 -0
  50. package/templates/default/ikonS/workflow.tsx +119 -0
  51. package/templates/default/ikoncomponents/action-menu/index.tsx +108 -0
  52. package/templates/default/ikoncomponents/action-menu/type.ts +18 -0
  53. package/templates/default/ikoncomponents/activity-sheet/index.tsx +63 -0
  54. package/templates/default/ikoncomponents/alert-dialog/dialog-context.tsx +65 -0
  55. package/templates/default/ikoncomponents/alert-dialog/index.tsx +80 -0
  56. package/templates/default/ikoncomponents/app-breadcrumb/BreadcrumbProvider.tsx +68 -0
  57. package/templates/default/ikoncomponents/app-breadcrumb/index.tsx +222 -0
  58. package/templates/default/ikoncomponents/big-calendar/big-calender-event/index.tsx +38 -0
  59. package/templates/default/ikoncomponents/big-calendar/big-calender-toolbar/index.tsx +81 -0
  60. package/templates/default/ikoncomponents/big-calendar/index.css +879 -0
  61. package/templates/default/ikoncomponents/big-calendar/index.tsx +59 -0
  62. package/templates/default/ikoncomponents/big-calendar/type.ts +37 -0
  63. package/templates/default/ikoncomponents/buttons/index.tsx +127 -0
  64. package/templates/default/ikoncomponents/combobox-input/index.tsx +75 -0
  65. package/templates/default/ikoncomponents/combobox-input/type.ts +14 -0
  66. package/templates/default/ikoncomponents/custom-combo-dropdown/index.tsx +242 -0
  67. package/templates/default/ikoncomponents/data-table/datatable-column-filter/index.tsx +80 -0
  68. package/templates/default/ikoncomponents/data-table/datatable-faceted-filter/index.tsx +149 -0
  69. package/templates/default/ikoncomponents/data-table/datatable-filter-menu/index.tsx +98 -0
  70. package/templates/default/ikoncomponents/data-table/datatable-pagination/index.tsx +119 -0
  71. package/templates/default/ikoncomponents/data-table/datatable-toolbar/index.tsx +45 -0
  72. package/templates/default/ikoncomponents/data-table/function.ts +7 -0
  73. package/templates/default/ikoncomponents/data-table/index.tsx +549 -0
  74. package/templates/default/ikoncomponents/data-table/type.ts +75 -0
  75. package/templates/default/ikoncomponents/e-chart/index.tsx +183 -0
  76. package/templates/default/ikoncomponents/file-input/index.tsx +27 -0
  77. package/templates/default/ikoncomponents/fileUpload/index.tsx +121 -0
  78. package/templates/default/ikoncomponents/form-fields/combobox-input/index.tsx +111 -0
  79. package/templates/default/ikoncomponents/form-fields/combobox-input-value/index.tsx +121 -0
  80. package/templates/default/ikoncomponents/form-fields/date-input/index.tsx +80 -0
  81. package/templates/default/ikoncomponents/form-fields/file-input/index.tsx +9 -0
  82. package/templates/default/ikoncomponents/form-fields/input/index.tsx +27 -0
  83. package/{dist/ikoncomponents/form-fields/multi-combobox-input/index.js → templates/default/ikoncomponents/form-fields/multi-combobox-input/index.tsx} +574 -381
  84. package/templates/default/ikoncomponents/form-fields/otp-input/index.tsx +39 -0
  85. package/templates/default/ikoncomponents/form-fields/password-input/index.tsx +52 -0
  86. package/templates/default/ikoncomponents/form-fields/phone-input/index.tsx +7 -0
  87. package/templates/default/ikoncomponents/form-fields/textarea/index.tsx +28 -0
  88. package/templates/default/ikoncomponents/form-fields/types/index.ts +46 -0
  89. package/templates/default/ikoncomponents/glowing-effect/index.tsx +171 -0
  90. package/templates/default/ikoncomponents/icon/index.tsx +22 -0
  91. package/templates/default/ikoncomponents/image-cropper-upload/components/cropperImg.css +19 -0
  92. package/{dist/ikoncomponents/image-cropper-upload/components/newCropper.js → templates/default/ikoncomponents/image-cropper-upload/components/newCropper.tsx} +117 -85
  93. package/templates/default/ikoncomponents/image-cropper-upload/components/newImageUploadForm.tsx +352 -0
  94. package/templates/default/ikoncomponents/image-cropper-upload/cropper-form/index.tsx +250 -0
  95. package/templates/default/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.tsx +32 -0
  96. package/{dist/ikoncomponents/image-cropper-upload/image-cropper/index.js → templates/default/ikoncomponents/image-cropper-upload/image-cropper/index.tsx} +119 -87
  97. package/templates/default/ikoncomponents/image-cropper-upload/index.tsx +95 -0
  98. package/templates/default/ikoncomponents/image-cropper-upload/utils/index.ts +117 -0
  99. package/templates/default/ikoncomponents/loading-spinner/index.tsx +43 -0
  100. package/templates/default/ikoncomponents/main-layout/RefreshContext.tsx +30 -0
  101. package/templates/default/ikoncomponents/main-layout/SidebarNavContext.tsx +103 -0
  102. package/templates/default/ikoncomponents/main-layout/app-sidebar.tsx +36 -0
  103. package/templates/default/ikoncomponents/main-layout/footer.tsx +21 -0
  104. package/templates/default/ikoncomponents/main-layout/header.tsx +53 -0
  105. package/templates/default/ikoncomponents/main-layout/index.tsx +38 -0
  106. package/templates/default/ikoncomponents/main-layout/main-sidebar.tsx +389 -0
  107. package/templates/default/ikoncomponents/main-layout/nav-main.tsx +103 -0
  108. package/templates/default/ikoncomponents/multi-combobox/index.tsx +345 -0
  109. package/templates/default/ikoncomponents/no-data/index.tsx +11 -0
  110. package/templates/default/ikoncomponents/page-wrapper/index.tsx +30 -0
  111. package/templates/default/ikoncomponents/password-strength-meter/index.tsx +49 -0
  112. package/templates/default/ikoncomponents/phone-input/index.tsx +72 -0
  113. package/templates/default/ikoncomponents/provider-wrapper/index.tsx +32 -0
  114. package/templates/default/ikoncomponents/search-input/index.tsx +18 -0
  115. package/templates/default/ikoncomponents/sheet/index.tsx +34 -0
  116. package/templates/default/ikoncomponents/simple-widget/index.tsx +54 -0
  117. package/templates/default/ikoncomponents/skeleton-loader/skeleton-table.tsx +34 -0
  118. package/templates/default/ikoncomponents/skeleton-loader/skeleton-widget.tsx +13 -0
  119. package/templates/default/ikoncomponents/tabs/index.tsx +139 -0
  120. package/{dist/ikoncomponents/tabs/type.d.ts → templates/default/ikoncomponents/tabs/type.ts} +20 -19
  121. package/{dist/ikoncomponents/theme-toggle-btn/index.js → templates/default/ikoncomponents/theme-toggle-btn/index.tsx} +189 -118
  122. package/templates/default/ikoncomponents/title-progress/index.tsx +41 -0
  123. package/templates/default/ikoncomponents/tooltip/index.tsx +17 -0
  124. package/templates/default/ikoncomponents/twolevel-dropdown/convertToDropdownNodes.tsx +33 -0
  125. package/templates/default/ikoncomponents/twolevel-dropdown/index.tsx +279 -0
  126. package/templates/default/ikoncomponents/upload-tab/index.tsx +237 -0
  127. package/templates/default/ikoncomponents/widgets/index.tsx +81 -0
  128. package/templates/default/ikoncomponents/widgets/type.ts +11 -0
  129. package/templates/default/ikoncomponents/work-in-progress/index.tsx +16 -0
  130. package/templates/default/styles.css +1159 -0
  131. package/templates/default/utils/actions/account/index.ts +33 -0
  132. package/templates/default/utils/actions/account/type.ts +4 -0
  133. package/{dist/utils/actions/auth/index.js → templates/default/utils/actions/auth/index.ts} +69 -58
  134. package/templates/default/utils/actions/common/revalidate.ts +18 -0
  135. package/templates/default/utils/actions/common/type.ts +4 -0
  136. package/{dist/utils/actions/common/utils.js → templates/default/utils/actions/common/utils.ts} +28 -25
  137. package/templates/default/utils/actions/software/index.ts +106 -0
  138. package/templates/default/utils/api/accountService/index.ts +103 -0
  139. package/templates/default/utils/api/accountService/type.ts +4 -0
  140. package/templates/default/utils/api/file-upload/index.ts +103 -0
  141. package/templates/default/utils/api/file-upload/type.ts +8 -0
  142. package/{dist/utils/api/ikonBaseApi.js → templates/default/utils/api/ikonBaseApi.ts} +132 -104
  143. package/templates/default/utils/api/loginService/index.ts +106 -0
  144. package/{dist/utils/api/loginService/type.d.ts → templates/default/utils/api/loginService/type.ts} +35 -31
  145. package/templates/default/utils/api/softwareService/index.ts +356 -0
  146. package/templates/default/utils/api/softwareService/type.ts +62 -0
  147. package/{dist/utils/border-radius-provider.js → templates/default/utils/border-radius-provider.tsx} +59 -35
  148. package/templates/default/utils/cn.ts +6 -0
  149. package/{dist/utils/font-provider.js → templates/default/utils/font-provider.tsx} +61 -37
  150. package/templates/default/utils/session/cookieSession.ts +49 -0
  151. package/templates/default/utils/theme-provider/index.tsx +11 -0
  152. package/templates/default/utils/token-management/index.ts +115 -0
  153. package/templates/default/utils/token-management/types.ts +6 -0
  154. package/dist/hooks/use-mobile.d.ts +0 -1
  155. package/dist/hooks/use-mobile.js +0 -15
  156. package/dist/ikoncomponents/action-menu/index.d.ts +0 -5
  157. package/dist/ikoncomponents/action-menu/index.js +0 -42
  158. package/dist/ikoncomponents/action-menu/type.d.ts +0 -14
  159. package/dist/ikoncomponents/action-menu/type.js +0 -1
  160. package/dist/ikoncomponents/activity-sheet/index.d.ts +0 -11
  161. package/dist/ikoncomponents/activity-sheet/index.js +0 -23
  162. package/dist/ikoncomponents/alert-dialog/dialog-context.d.ts +0 -21
  163. package/dist/ikoncomponents/alert-dialog/dialog-context.js +0 -30
  164. package/dist/ikoncomponents/alert-dialog/index.d.ts +0 -14
  165. package/dist/ikoncomponents/alert-dialog/index.js +0 -20
  166. package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.d.ts +0 -18
  167. package/dist/ikoncomponents/app-breadcrumb/BreadcrumbProvider.js +0 -43
  168. package/dist/ikoncomponents/app-breadcrumb/index.d.ts +0 -5
  169. package/dist/ikoncomponents/app-breadcrumb/index.js +0 -57
  170. package/dist/ikoncomponents/big-calendar/big-calender-event/index.d.ts +0 -5
  171. package/dist/ikoncomponents/big-calendar/big-calender-event/index.js +0 -16
  172. package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.d.ts +0 -2
  173. package/dist/ikoncomponents/big-calendar/big-calender-toolbar/index.js +0 -39
  174. package/dist/ikoncomponents/big-calendar/index.d.ts +0 -3
  175. package/dist/ikoncomponents/big-calendar/index.js +0 -35
  176. package/dist/ikoncomponents/big-calendar/type.d.ts +0 -31
  177. package/dist/ikoncomponents/big-calendar/type.js +0 -1
  178. package/dist/ikoncomponents/buttons/index.d.ts +0 -18
  179. package/dist/ikoncomponents/buttons/index.js +0 -38
  180. package/dist/ikoncomponents/combobox-input/index.d.ts +0 -2
  181. package/dist/ikoncomponents/combobox-input/index.js +0 -18
  182. package/dist/ikoncomponents/combobox-input/type.d.ts +0 -13
  183. package/dist/ikoncomponents/combobox-input/type.js +0 -1
  184. package/dist/ikoncomponents/custom-combo-dropdown/index.d.ts +0 -21
  185. package/dist/ikoncomponents/custom-combo-dropdown/index.js +0 -85
  186. package/dist/ikoncomponents/data-table/datatable-column-filter/index.d.ts +0 -2
  187. package/dist/ikoncomponents/data-table/datatable-column-filter/index.js +0 -22
  188. package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.d.ts +0 -2
  189. package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.js +0 -35
  190. package/dist/ikoncomponents/data-table/datatable-filter-menu/index.d.ts +0 -2
  191. package/dist/ikoncomponents/data-table/datatable-filter-menu/index.js +0 -38
  192. package/dist/ikoncomponents/data-table/datatable-pagination/index.d.ts +0 -2
  193. package/dist/ikoncomponents/data-table/datatable-pagination/index.js +0 -13
  194. package/dist/ikoncomponents/data-table/datatable-toolbar/index.d.ts +0 -2
  195. package/dist/ikoncomponents/data-table/datatable-toolbar/index.js +0 -18
  196. package/dist/ikoncomponents/data-table/function.d.ts +0 -1
  197. package/dist/ikoncomponents/data-table/function.js +0 -6
  198. package/dist/ikoncomponents/data-table/index.d.ts +0 -2
  199. package/dist/ikoncomponents/data-table/index.js +0 -223
  200. package/dist/ikoncomponents/data-table/type.d.ts +0 -60
  201. package/dist/ikoncomponents/data-table/type.js +0 -1
  202. package/dist/ikoncomponents/e-chart/index.d.ts +0 -15
  203. package/dist/ikoncomponents/e-chart/index.js +0 -115
  204. package/dist/ikoncomponents/file-input/index.d.ts +0 -1
  205. package/dist/ikoncomponents/file-input/index.js +0 -21
  206. package/dist/ikoncomponents/fileUpload/index.d.ts +0 -15
  207. package/dist/ikoncomponents/fileUpload/index.js +0 -69
  208. package/dist/ikoncomponents/form-fields/combobox-input/index.d.ts +0 -2
  209. package/dist/ikoncomponents/form-fields/combobox-input/index.js +0 -21
  210. package/dist/ikoncomponents/form-fields/combobox-input-value/index.d.ts +0 -18
  211. package/dist/ikoncomponents/form-fields/combobox-input-value/index.js +0 -26
  212. package/dist/ikoncomponents/form-fields/date-input/index.d.ts +0 -2
  213. package/dist/ikoncomponents/form-fields/date-input/index.js +0 -15
  214. package/dist/ikoncomponents/form-fields/file-input/index.d.ts +0 -1
  215. package/dist/ikoncomponents/form-fields/file-input/index.js +0 -4
  216. package/dist/ikoncomponents/form-fields/input/index.d.ts +0 -2
  217. package/dist/ikoncomponents/form-fields/input/index.js +0 -18
  218. package/dist/ikoncomponents/form-fields/multi-combobox-input/index.d.ts +0 -6
  219. package/dist/ikoncomponents/form-fields/otp-input/index.d.ts +0 -2
  220. package/dist/ikoncomponents/form-fields/otp-input/index.js +0 -18
  221. package/dist/ikoncomponents/form-fields/phone-input/index.d.ts +0 -1
  222. package/dist/ikoncomponents/form-fields/phone-input/index.js +0 -4
  223. package/dist/ikoncomponents/form-fields/textarea/index.d.ts +0 -2
  224. package/dist/ikoncomponents/form-fields/textarea/index.js +0 -18
  225. package/dist/ikoncomponents/form-fields/types/index.d.ts +0 -36
  226. package/dist/ikoncomponents/form-fields/types/index.js +0 -1
  227. package/dist/ikoncomponents/glowing-effect/index.d.ts +0 -14
  228. package/dist/ikoncomponents/glowing-effect/index.js +0 -84
  229. package/dist/ikoncomponents/icon/index.d.ts +0 -8
  230. package/dist/ikoncomponents/icon/index.js +0 -23
  231. package/dist/ikoncomponents/image-cropper-upload/components/newCropper.d.ts +0 -15
  232. package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.d.ts +0 -7
  233. package/dist/ikoncomponents/image-cropper-upload/components/newImageUploadForm.js +0 -145
  234. package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.d.ts +0 -6
  235. package/dist/ikoncomponents/image-cropper-upload/cropper-form/index.js +0 -92
  236. package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.d.ts +0 -6
  237. package/dist/ikoncomponents/image-cropper-upload/cropper-form-with-modal/index.js +0 -14
  238. package/dist/ikoncomponents/image-cropper-upload/image-cropper/index.d.ts +0 -14
  239. package/dist/ikoncomponents/image-cropper-upload/index.d.ts +0 -27
  240. package/dist/ikoncomponents/image-cropper-upload/index.js +0 -49
  241. package/dist/ikoncomponents/image-cropper-upload/utils/index.d.ts +0 -16
  242. package/dist/ikoncomponents/image-cropper-upload/utils/index.js +0 -73
  243. package/dist/ikoncomponents/loading-spinner/index.d.ts +0 -9
  244. package/dist/ikoncomponents/loading-spinner/index.js +0 -19
  245. package/dist/ikoncomponents/main-layout/RefreshContext.d.ts +0 -10
  246. package/dist/ikoncomponents/main-layout/RefreshContext.js +0 -17
  247. package/dist/ikoncomponents/main-layout/SidebarNavContext.d.ts +0 -33
  248. package/dist/ikoncomponents/main-layout/SidebarNavContext.js +0 -52
  249. package/dist/ikoncomponents/main-layout/app-sidebar.d.ts +0 -3
  250. package/dist/ikoncomponents/main-layout/app-sidebar.js +0 -24
  251. package/dist/ikoncomponents/main-layout/footer.d.ts +0 -1
  252. package/dist/ikoncomponents/main-layout/footer.js +0 -5
  253. package/dist/ikoncomponents/main-layout/header.d.ts +0 -3
  254. package/dist/ikoncomponents/main-layout/header.js +0 -15
  255. package/dist/ikoncomponents/main-layout/index.d.ts +0 -6
  256. package/dist/ikoncomponents/main-layout/index.js +0 -11
  257. package/dist/ikoncomponents/main-layout/main-sidebar.d.ts +0 -60
  258. package/dist/ikoncomponents/main-layout/main-sidebar.js +0 -119
  259. package/dist/ikoncomponents/main-layout/nav-main.d.ts +0 -11
  260. package/dist/ikoncomponents/main-layout/nav-main.js +0 -33
  261. package/dist/ikoncomponents/multi-combobox/index.d.ts +0 -13
  262. package/dist/ikoncomponents/multi-combobox/index.js +0 -202
  263. package/dist/ikoncomponents/no-data/index.d.ts +0 -3
  264. package/dist/ikoncomponents/no-data/index.js +0 -5
  265. package/dist/ikoncomponents/page-wrapper/index.d.ts +0 -9
  266. package/dist/ikoncomponents/page-wrapper/index.js +0 -7
  267. package/dist/ikoncomponents/password-strength-meter/index.d.ts +0 -3
  268. package/dist/ikoncomponents/password-strength-meter/index.js +0 -40
  269. package/dist/ikoncomponents/phone-input/index.d.ts +0 -1
  270. package/dist/ikoncomponents/phone-input/index.js +0 -41
  271. package/dist/ikoncomponents/provider-wrapper/index.d.ts +0 -6
  272. package/dist/ikoncomponents/provider-wrapper/index.js +0 -11
  273. package/dist/ikoncomponents/search-input/index.d.ts +0 -1
  274. package/dist/ikoncomponents/search-input/index.js +0 -19
  275. package/dist/ikoncomponents/sheet/index.d.ts +0 -10
  276. package/dist/ikoncomponents/sheet/index.js +0 -6
  277. package/dist/ikoncomponents/simple-widget/index.d.ts +0 -14
  278. package/dist/ikoncomponents/simple-widget/index.js +0 -14
  279. package/dist/ikoncomponents/skeleton-loader/skeleton-table.d.ts +0 -5
  280. package/dist/ikoncomponents/skeleton-loader/skeleton-table.js +0 -6
  281. package/dist/ikoncomponents/skeleton-loader/skeleton-widget.d.ts +0 -3
  282. package/dist/ikoncomponents/skeleton-loader/skeleton-widget.js +0 -5
  283. package/dist/ikoncomponents/tabs/index.d.ts +0 -2
  284. package/dist/ikoncomponents/tabs/index.js +0 -50
  285. package/dist/ikoncomponents/tabs/type.js +0 -2
  286. package/dist/ikoncomponents/theme-toggle-btn/index.d.ts +0 -1
  287. package/dist/ikoncomponents/title-progress/index.d.ts +0 -12
  288. package/dist/ikoncomponents/title-progress/index.js +0 -10
  289. package/dist/ikoncomponents/tooltip/index.d.ts +0 -5
  290. package/dist/ikoncomponents/tooltip/index.js +0 -5
  291. package/dist/ikoncomponents/twolevel-dropdown/index.d.ts +0 -31
  292. package/dist/ikoncomponents/twolevel-dropdown/index.js +0 -143
  293. package/dist/ikoncomponents/upload-tab/index.d.ts +0 -1
  294. package/dist/ikoncomponents/upload-tab/index.js +0 -92
  295. package/dist/ikoncomponents/widgets/index.d.ts +0 -2
  296. package/dist/ikoncomponents/widgets/index.js +0 -14
  297. package/dist/ikoncomponents/widgets/type.d.ts +0 -10
  298. package/dist/ikoncomponents/widgets/type.js +0 -2
  299. package/dist/ikoncomponents/work-in-progress/index.d.ts +0 -1
  300. package/dist/ikoncomponents/work-in-progress/index.js +0 -4
  301. package/dist/index.d.ts +0 -138
  302. package/dist/shadcn/accordion.d.ts +0 -7
  303. package/dist/shadcn/accordion.js +0 -33
  304. package/dist/shadcn/alert-dialog.d.ts +0 -20
  305. package/dist/shadcn/alert-dialog.js +0 -83
  306. package/dist/shadcn/alert.d.ts +0 -9
  307. package/dist/shadcn/alert.js +0 -38
  308. package/dist/shadcn/aspect-ratio.d.ts +0 -3
  309. package/dist/shadcn/aspect-ratio.js +0 -19
  310. package/dist/shadcn/avatar.d.ts +0 -6
  311. package/dist/shadcn/avatar.js +0 -28
  312. package/dist/shadcn/badge.d.ts +0 -9
  313. package/dist/shadcn/badge.js +0 -35
  314. package/dist/shadcn/breadcrumb.d.ts +0 -11
  315. package/dist/shadcn/breadcrumb.js +0 -45
  316. package/dist/shadcn/button.d.ts +0 -10
  317. package/dist/shadcn/button.js +0 -47
  318. package/dist/shadcn/calendar.d.ts +0 -8
  319. package/dist/shadcn/calendar.js +0 -61
  320. package/dist/shadcn/card.d.ts +0 -9
  321. package/dist/shadcn/card.js +0 -42
  322. package/dist/shadcn/checkbox.d.ts +0 -4
  323. package/dist/shadcn/checkbox.js +0 -21
  324. package/dist/shadcn/collapsible.d.ts +0 -5
  325. package/dist/shadcn/collapsible.js +0 -27
  326. package/dist/shadcn/command.d.ts +0 -18
  327. package/dist/shadcn/command.js +0 -54
  328. package/dist/shadcn/date-input.d.ts +0 -7
  329. package/dist/shadcn/date-input.js +0 -179
  330. package/dist/shadcn/date-range-picker.d.ts +0 -24
  331. package/dist/shadcn/date-range-picker.js +0 -45
  332. package/dist/shadcn/dialog.d.ts +0 -15
  333. package/dist/shadcn/dialog.js +0 -57
  334. package/dist/shadcn/drawer.d.ts +0 -13
  335. package/dist/shadcn/drawer.js +0 -56
  336. package/dist/shadcn/dropdown-menu.d.ts +0 -25
  337. package/dist/shadcn/dropdown-menu.js +0 -77
  338. package/dist/shadcn/form.d.ts +0 -24
  339. package/dist/shadcn/form.js +0 -70
  340. package/dist/shadcn/hover-card.d.ts +0 -6
  341. package/dist/shadcn/hover-card.js +0 -28
  342. package/dist/shadcn/input-otp.d.ts +0 -34
  343. package/dist/shadcn/input-otp.js +0 -40
  344. package/dist/shadcn/input.d.ts +0 -3
  345. package/dist/shadcn/input.js +0 -18
  346. package/dist/shadcn/label.d.ts +0 -4
  347. package/dist/shadcn/label.js +0 -20
  348. package/dist/shadcn/navigation-menu.d.ts +0 -16
  349. package/dist/shadcn/navigation-menu.js +0 -74
  350. package/dist/shadcn/popover.d.ts +0 -7
  351. package/dist/shadcn/popover.js +0 -32
  352. package/dist/shadcn/progress.d.ts +0 -8
  353. package/dist/shadcn/progress.js +0 -23
  354. package/dist/shadcn/radio-group.d.ts +0 -5
  355. package/dist/shadcn/radio-group.js +0 -25
  356. package/dist/shadcn/scroll-area.d.ts +0 -5
  357. package/dist/shadcn/scroll-area.js +0 -26
  358. package/dist/shadcn/select.d.ts +0 -15
  359. package/dist/shadcn/select.js +0 -59
  360. package/dist/shadcn/separator.d.ts +0 -4
  361. package/dist/shadcn/separator.js +0 -20
  362. package/dist/shadcn/sheet.d.ts +0 -13
  363. package/dist/shadcn/sheet.js +0 -61
  364. package/dist/shadcn/sidebar.d.ts +0 -69
  365. package/dist/shadcn/sidebar.js +0 -242
  366. package/dist/shadcn/skeleton.d.ts +0 -3
  367. package/dist/shadcn/skeleton.js +0 -18
  368. package/dist/shadcn/slider.d.ts +0 -4
  369. package/dist/shadcn/slider.js +0 -26
  370. package/dist/shadcn/sonner.d.ts +0 -3
  371. package/dist/shadcn/sonner.js +0 -25
  372. package/dist/shadcn/switch.d.ts +0 -4
  373. package/dist/shadcn/switch.js +0 -20
  374. package/dist/shadcn/table.d.ts +0 -10
  375. package/dist/shadcn/table.js +0 -47
  376. package/dist/shadcn/tabs.d.ts +0 -7
  377. package/dist/shadcn/tabs.js +0 -32
  378. package/dist/shadcn/textarea.d.ts +0 -3
  379. package/dist/shadcn/textarea.js +0 -18
  380. package/dist/shadcn/toggle-group.d.ts +0 -9
  381. package/dist/shadcn/toggle-group.js +0 -35
  382. package/dist/shadcn/toggle.d.ts +0 -9
  383. package/dist/shadcn/toggle.js +0 -38
  384. package/dist/shadcn/tooltip.d.ts +0 -7
  385. package/dist/shadcn/tooltip.js +0 -32
  386. package/dist/shadcn/workflow.d.ts +0 -20
  387. package/dist/shadcn/workflow.js +0 -20
  388. package/dist/styles.css +0 -6163
  389. package/dist/utils/actions/account/index.d.ts +0 -5
  390. package/dist/utils/actions/account/index.js +0 -28
  391. package/dist/utils/actions/account/type.d.ts +0 -4
  392. package/dist/utils/actions/account/type.js +0 -1
  393. package/dist/utils/actions/auth/index.d.ts +0 -7
  394. package/dist/utils/actions/common/utils.d.ts +0 -5
  395. package/dist/utils/actions/software/index.d.ts +0 -11
  396. package/dist/utils/actions/software/index.js +0 -75
  397. package/dist/utils/api/accountService/index.d.ts +0 -23
  398. package/dist/utils/api/accountService/index.js +0 -64
  399. package/dist/utils/api/accountService/type.d.ts +0 -4
  400. package/dist/utils/api/accountService/type.js +0 -1
  401. package/dist/utils/api/file-upload/index.d.ts +0 -5
  402. package/dist/utils/api/file-upload/index.js +0 -80
  403. package/dist/utils/api/file-upload/type.d.ts +0 -6
  404. package/dist/utils/api/file-upload/type.js +0 -1
  405. package/dist/utils/api/ikonBaseApi.d.ts +0 -12
  406. package/dist/utils/api/loginService/index.d.ts +0 -12
  407. package/dist/utils/api/loginService/index.js +0 -72
  408. package/dist/utils/api/loginService/type.js +0 -1
  409. package/dist/utils/api/softwareService/index.d.ts +0 -64
  410. package/dist/utils/api/softwareService/index.js +0 -212
  411. package/dist/utils/api/softwareService/type.d.ts +0 -54
  412. package/dist/utils/api/softwareService/type.js +0 -1
  413. package/dist/utils/border-radius-provider.d.ts +0 -11
  414. package/dist/utils/cn.d.ts +0 -2
  415. package/dist/utils/cn.js +0 -5
  416. package/dist/utils/font-provider.d.ts +0 -11
  417. package/dist/utils/session/cookieSession.d.ts +0 -8
  418. package/dist/utils/session/cookieSession.js +0 -33
  419. package/dist/utils/theme-provider/index.d.ts +0 -3
  420. package/dist/utils/theme-provider/index.js +0 -18
  421. package/dist/utils/token-management/index.d.ts +0 -10
  422. package/dist/utils/token-management/index.js +0 -69
  423. package/dist/utils/token-management/types.d.ts +0 -6
  424. package/dist/utils/token-management/types.js +0 -1
package/README.md CHANGED
@@ -1,36 +1,36 @@
1
- This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2
-
3
- ## Getting Started
4
-
5
- First, run the development server:
6
-
7
- ```bash
8
- npm run dev
9
- # or
10
- yarn dev
11
- # or
12
- pnpm dev
13
- # or
14
- bun dev
15
- ```
16
-
17
- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
-
19
- You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20
-
21
- This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22
-
23
- ## Learn More
24
-
25
- To learn more about Next.js, take a look at the following resources:
26
-
27
- - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
- - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29
-
30
- You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31
-
32
- ## Deploy on Vercel
33
-
34
- The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
-
36
- Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
1
+ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2
+
3
+ ## Getting Started
4
+
5
+ First, run the development server:
6
+
7
+ ```bash
8
+ npm run dev
9
+ # or
10
+ yarn dev
11
+ # or
12
+ pnpm dev
13
+ # or
14
+ bun dev
15
+ ```
16
+
17
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
+
19
+ You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20
+
21
+ This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22
+
23
+ ## Learn More
24
+
25
+ To learn more about Next.js, take a look at the following resources:
26
+
27
+ - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
+ - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29
+
30
+ You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31
+
32
+ ## Deploy on Vercel
33
+
34
+ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
+
36
+ Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
package/bin.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import "./dist/index.js";
@@ -0,0 +1,63 @@
1
+ import path from "path";
2
+ import process from "process";
3
+ import { fileURLToPath } from "url";
4
+ import { execa } from "execa";
5
+ import kleur from "kleur";
6
+ import { copyDir } from "../utlis/copyDir.js";
7
+ export async function init() {
8
+ const cwd = process.cwd();
9
+ console.log(kleur.cyan("\n🚀 Installing ikoncomponents...\n"));
10
+ // ✅ FIX FOR WINDOWS + ESM
11
+ const __filename = fileURLToPath(import.meta.url);
12
+ const __dirname = path.dirname(__filename);
13
+ // templates/default inside the package
14
+ const templateDir = path.resolve(__dirname, "../../templates/default");
15
+ // 1️⃣ COPY templates/default → user src/
16
+ await copyDir(templateDir, path.join(cwd, "src"));
17
+ console.log(kleur.green("✔ Components copied"));
18
+ // 2️⃣ INSTALL ALL DEPENDENCIES
19
+ const dependencies = [
20
+ // radix
21
+ "@radix-ui/react-accordion",
22
+ "@radix-ui/react-alert-dialog",
23
+ "@radix-ui/react-avatar",
24
+ "@radix-ui/react-checkbox",
25
+ "@radix-ui/react-dialog",
26
+ "@radix-ui/react-dropdown-menu",
27
+ "@radix-ui/react-hover-card",
28
+ "@radix-ui/react-icons",
29
+ "@radix-ui/react-label",
30
+ "@radix-ui/react-navigation-menu",
31
+ "@radix-ui/react-popover",
32
+ "@radix-ui/react-progress",
33
+ "@radix-ui/react-radio-group",
34
+ "@radix-ui/react-scroll-area",
35
+ "@radix-ui/react-select",
36
+ "@radix-ui/react-separator",
37
+ "@radix-ui/react-slider",
38
+ "@radix-ui/react-slot",
39
+ "@radix-ui/react-switch",
40
+ "@radix-ui/react-tabs",
41
+ "@radix-ui/react-toggle",
42
+ "@radix-ui/react-toggle-group",
43
+ "@radix-ui/react-tooltip",
44
+ // utils
45
+ "class-variance-authority",
46
+ "clsx",
47
+ "tailwind-merge",
48
+ "lucide-react",
49
+ "framer-motion",
50
+ "sonner",
51
+ "vaul",
52
+ "cmdk",
53
+ "uuid",
54
+ "date-fns",
55
+ "axios"
56
+ ];
57
+ console.log(kleur.yellow("\n📦 Installing dependencies...\n"));
58
+ await execa("npm", ["install", ...dependencies], {
59
+ cwd,
60
+ stdio: "inherit"
61
+ });
62
+ console.log(kleur.green("\n✔ ikoncomponents installed successfully\n"));
63
+ }
package/dist/index.js CHANGED
@@ -1,116 +1,14 @@
1
- import "./styles.css"; // just imports, no processing
2
- export * from "./shadcn/accordion";
3
- export * from "./shadcn/alert-dialog";
4
- export * from "./shadcn/alert";
5
- export * from "./shadcn/avatar";
6
- export * from "./shadcn/badge";
7
- export * from "./shadcn/button";
8
- export * from "./shadcn/calendar";
9
- export * from "./shadcn/card";
10
- export * from "./shadcn/checkbox";
11
- export * from "./shadcn/command";
12
- export * from "./shadcn/date-input";
13
- export * from "./shadcn/date-range-picker";
14
- export * from "./shadcn/dialog";
15
- export * from "./shadcn/dropdown-menu";
16
- export * from "./shadcn/hover-card";
17
- export * from "./shadcn/input";
18
- export * from "./shadcn/label";
19
- export * from "./shadcn/navigation-menu";
20
- export * from "./shadcn/popover";
21
- export * from "./shadcn/progress";
22
- export * from "./shadcn/radio-group";
23
- export * from "./shadcn/scroll-area";
24
- export * from "./shadcn/select";
25
- export * from "./shadcn/separator";
26
- export * from "./shadcn/sheet";
27
- export * from "./shadcn/sidebar";
28
- export * from "./shadcn/skeleton";
29
- export * from "./shadcn/slider";
30
- export * from "./shadcn/sonner";
31
- export * from "./shadcn/switch";
32
- export * from "./shadcn/table";
33
- export * from "./shadcn/tabs";
34
- export * from "./shadcn/textarea";
35
- export * from "./shadcn/tooltip";
36
- export * from "./shadcn/workflow";
37
- export * from "./shadcn/aspect-ratio";
38
- export * from "./shadcn/breadcrumb";
39
- export * from "./shadcn/collapsible";
40
- export * from "./shadcn/drawer";
41
- export * from "./shadcn/form";
42
- export * from "./shadcn/input-otp";
43
- export * from "./shadcn/toggle-group";
44
- export * from "./shadcn/toggle";
45
- export { ActionMenu } from "./ikoncomponents/action-menu";
46
- export { CustomAlertDialog } from "./ikoncomponents/alert-dialog";
47
- export { useDialog, DialogProvider, } from "./ikoncomponents/alert-dialog/dialog-context";
48
- export { TextButton, TextButtonWithTooltip, IconTextButton, IconTextButtonWithTooltip, IconButton, IconButtonWithTooltip, } from "./ikoncomponents/buttons";
49
- export { ComboboxInput } from "./ikoncomponents/combobox-input";
50
- export { DataTableColumnFilter } from "./ikoncomponents/data-table/datatable-column-filter";
51
- export { DataTableFacetedFilter } from "./ikoncomponents/data-table/datatable-faceted-filter";
52
- export { DataTableFilterMenu } from "./ikoncomponents/data-table/datatable-filter-menu";
53
- export { convertFileToObject, FileUploader, getImageFromObject, } from "./ikoncomponents/fileUpload";
54
- export { DataTablePagination } from "./ikoncomponents/data-table/datatable-pagination";
55
- export { DataTableToolbar } from "./ikoncomponents/data-table/datatable-toolbar";
56
- export { getDataTableColumnTitle } from "./ikoncomponents/data-table/function";
57
- export { DataTable } from "./ikoncomponents/data-table";
58
- export { EChart } from "./ikoncomponents/e-chart";
59
- export { FileInput } from "./ikoncomponents/file-input";
60
- export { GlowingEffect } from "./ikoncomponents/glowing-effect";
61
- export { Icon } from "./ikoncomponents/icon";
62
- export { LoadingSpinner } from "./ikoncomponents/loading-spinner";
63
- export { MultiCombobox } from "./ikoncomponents/multi-combobox";
64
- export { NoDataComponent } from "./ikoncomponents/no-data";
65
- export { PageWrapper } from "./ikoncomponents/page-wrapper";
66
- export { PasswordStrengthMeter } from "./ikoncomponents/password-strength-meter";
67
- export { PhoneInput } from "./ikoncomponents/phone-input";
68
- export { SearchInput } from "./ikoncomponents/search-input";
69
- export { SheetComponent } from "./ikoncomponents/sheet";
70
- export { SimpleWidget } from "./ikoncomponents/simple-widget";
71
- export { CustomTabs } from "./ikoncomponents/tabs";
72
- export { ThemeToggleBtn } from "./ikoncomponents/theme-toggle-btn";
73
- export { TitleProgress } from "./ikoncomponents/title-progress";
74
- export { TooltipComponent } from "./ikoncomponents/tooltip";
75
- export { FrameworkItemDropdown } from "./ikoncomponents/twolevel-dropdown";
76
- export { Widgets } from "./ikoncomponents/widgets";
77
- export { BigCalendar } from "./ikoncomponents/big-calendar";
78
- export { BreadcrumbProvider, useBreadcrumb, } from "./ikoncomponents/app-breadcrumb/BreadcrumbProvider";
79
- export { AppBreadcrumb, RenderAppBreadcrumb, } from "./ikoncomponents/app-breadcrumb";
80
- export { FormComboboxInput } from "./ikoncomponents/form-fields/combobox-input";
81
- export { FormComboboxInputWithValue } from "./ikoncomponents/form-fields/combobox-input-value";
82
- export { FormDateInput } from "./ikoncomponents/form-fields/date-input";
83
- export { FormFileInput } from "./ikoncomponents/form-fields/file-input";
84
- export { FormInput } from "./ikoncomponents/form-fields/input";
85
- export { FormMultiComboboxInput } from "./ikoncomponents/form-fields/multi-combobox-input";
86
- export { FormOtpInput } from "./ikoncomponents/form-fields/otp-input";
87
- export { FormPhoneInput } from "./ikoncomponents/form-fields/phone-input";
88
- export { FormTextarea } from "./ikoncomponents/form-fields/textarea";
89
- export { GradeTableLoader } from "./ikoncomponents/skeleton-loader/skeleton-table";
90
- export { SkeletonWidget } from "./ikoncomponents/skeleton-loader/skeleton-widget";
91
- export { UploadTab } from "./ikoncomponents/upload-tab";
92
- export { AppSidebar } from "./ikoncomponents/main-layout/app-sidebar";
93
- export { Footer } from "./ikoncomponents/main-layout/footer";
94
- export { Header } from "./ikoncomponents/main-layout/header";
95
- export { MainSidebar } from "./ikoncomponents/main-layout/main-sidebar";
96
- export { NavMain } from "./ikoncomponents/main-layout/nav-main";
97
- export { SidebarNavProvider, useSidebarNav, } from "./ikoncomponents/main-layout/SidebarNavContext";
98
- export { MainLayout } from "./ikoncomponents/main-layout";
99
- export { ProviderWrapper } from "./ikoncomponents/provider-wrapper";
100
- export { ActivitySheet } from "./ikoncomponents/activity-sheet";
101
- export { ImageCropperProvider, useImageCropper, } from "./ikoncomponents/image-cropper-upload";
102
- export { ImageCropper } from "./ikoncomponents/image-cropper-upload/image-cropper";
103
- export { CropperFormWithModal } from "./ikoncomponents/image-cropper-upload/cropper-form-with-modal";
104
- export { CropperForm } from "./ikoncomponents/image-cropper-upload/cropper-form";
105
- export { NewCropperImg } from "./ikoncomponents/image-cropper-upload/components/newCropper";
106
- export { NewImageForm } from "./ikoncomponents/image-cropper-upload/components/newImageUploadForm";
107
- export { WorkInProgress } from "./ikoncomponents/work-in-progress";
108
- export { CustomComboboxInput } from "./ikoncomponents/custom-combo-dropdown";
109
- export { ThemeProvider } from "./utils/theme-provider";
110
- export { RadiusProvider, useRadius } from "./utils/border-radius-provider";
111
- export { FontProvider, useFont } from "./utils/font-provider";
112
- export { cn } from "./utils/cn";
113
- export { setCookieSession, getCookieSession, clearCookieSession, clearAllCookieSession, } from "./utils/session/cookieSession";
114
- export { getValidAccessToken, refreshAccessToken, decodeAccessToken, logOut } from "./utils/token-management";
115
- export { useIsMobile } from "./hooks/use-mobile";
116
- export { useRefresh } from "./ikoncomponents/main-layout/RefreshContext";
1
+ #!/usr/bin/env node
2
+ import { init } from "./commands/init.js";
3
+ const args = process.argv.slice(2);
4
+ if (args[0] === "init") {
5
+ init();
6
+ }
7
+ else {
8
+ console.log(`
9
+ ikoncomponents CLI
10
+
11
+ Usage:
12
+ npx ikoncomponents init
13
+ `);
14
+ }
@@ -0,0 +1,7 @@
1
+ import fs from "fs-extra";
2
+ export async function copyDir(from, to) {
3
+ await fs.copy(from, to, {
4
+ overwrite: false,
5
+ errorOnExist: false
6
+ });
7
+ }
package/package.json CHANGED
@@ -1,103 +1,29 @@
1
1
  {
2
2
  "name": "ikoncomponents",
3
- "version": "1.5.7",
4
- "main": "dist/index.js",
5
- "types": "dist/index.d.ts",
6
- "css": "dist/styles.css",
3
+ "version": "1.5.8",
4
+ "type": "module",
5
+ "bin": {
6
+ "ikoncomponents": "./bin.js"
7
+ },
8
+ "exports": {
9
+ ".": "./dist/index.js"
10
+ },
7
11
  "files": [
8
- "dist"
12
+ "dist",
13
+ "templates",
14
+ "bin.js"
9
15
  ],
10
16
  "scripts": {
11
- "build": "npm run build:js && npm run build:css",
12
- "build:js": "tsc -p tsconfig.json",
13
- "build:css": "postcss src/styles.css -o dist/styles.css --config postcss.config.mjs --minify",
14
- "clean": "rimraf dist",
17
+ "build": "tsc",
15
18
  "prepublishOnly": "npm run build"
16
19
  },
17
20
  "dependencies": {
18
- "@radix-ui/react-accordion": "^1.2.12",
19
- "@radix-ui/react-alert-dialog": "^1.1.15",
20
- "@radix-ui/react-aspect-ratio": "^1.1.7",
21
- "@radix-ui/react-avatar": "^1.1.10",
22
- "@radix-ui/react-checkbox": "^1.3.3",
23
- "@radix-ui/react-dialog": "^1.1.15",
24
- "@radix-ui/react-dropdown-menu": "^2.1.16",
25
- "@radix-ui/react-hover-card": "^1.1.15",
26
- "@radix-ui/react-icons": "^1.3.0",
27
- "@radix-ui/react-label": "^2.1.7",
28
- "@radix-ui/react-navigation-menu": "^1.2.14",
29
- "@radix-ui/react-popover": "^1.1.15",
30
- "@radix-ui/react-progress": "^1.1.7",
31
- "@radix-ui/react-radio-group": "^1.3.8",
32
- "@radix-ui/react-scroll-area": "^1.2.10",
33
- "@radix-ui/react-select": "^2.2.6",
34
- "@radix-ui/react-separator": "^1.1.7",
35
- "@radix-ui/react-slider": "^1.3.6",
36
- "@radix-ui/react-slot": "^1.2.3",
37
- "@radix-ui/react-switch": "^1.2.6",
38
- "@radix-ui/react-tabs": "^1.1.13",
39
- "@radix-ui/react-toggle": "^1.1.10",
40
- "@radix-ui/react-toggle-group": "^1.1.11",
41
- "@radix-ui/react-tooltip": "^1.2.8",
42
- "@tanstack/react-table": "^8.21.3",
43
- "axios": "^1.13.1",
44
- "class-variance-authority": "^0.7.1",
45
- "clsx": "^2.1.1",
46
- "cmdk": "^1.1.1",
47
- "countries-list": "^3.1.1",
48
- "country-flag-icons": "^1.5.21",
49
- "crypto-js": "^4.2.0",
50
- "date-fns": "^4.1.0",
51
- "echarts": "^6.0.0",
52
- "eslint": "^9",
53
- "framer-motion": "^12.23.22",
54
- "input-otp": "^1.4.2",
55
- "jwt-decode": "^4.0.0",
56
- "lucide-react": "^0.552.0",
57
- "motion": "^12.23.22",
58
- "next": "16.0.0",
59
- "next-themes": "^0.4.6",
60
- "react": "^18.2.0",
61
- "react-big-calendar": "^1.19.4",
62
- "react-cropper": "^2.3.3",
63
- "react-day-picker": "^9.9.0",
64
- "react-dom": "^18.2.0",
65
- "react-hook-form": "^7.64.0",
66
- "shadcn": "^3.5.0",
67
- "sonner": "^2.0.7",
68
- "tailwind-merge": "^3.3.1",
69
- "tailwindcss-animate": "^1.0.7",
70
- "uuid": "^13.0.0",
71
- "vaul": "^1.1.2",
72
- "zxcvbn": "^4.4.2"
21
+ "execa": "^9.6.0",
22
+ "fs-extra": "^11.3.0",
23
+ "kleur": "^4.1.5"
73
24
  },
74
25
  "devDependencies": {
75
- "@tailwindcss/postcss": "^4",
76
- "@types/crypto-js": "^4.2.2",
77
- "@types/node": "^20",
78
- "@types/react": "^19",
79
- "@types/react-big-calendar": "^1.16.3",
80
- "@types/react-dom": "^19",
81
- "@types/zxcvbn": "^4.4.5",
82
- "autoprefixer": "^10.4.21",
83
- "eslint": "^9",
84
- "eslint-config-next": "16.0.0",
85
- "next": "^14.0.0",
86
- "postcss": "^8.5.6",
87
- "postcss-cli": "^11.0.1",
88
- "postcss-import": "^16.1.1",
89
- "postcss-preset-env": "^10.4.0",
90
- "rimraf": "^6.0.1",
91
- "tailwindcss": "^4",
92
- "tw-animate-css": "^1.4.0",
93
- "typescript": "^5"
94
- },
95
- "peerDependencies": {
96
- "clsx": "^2.1.1",
97
- "next": "16.0.0",
98
- "next-themes": "^0.4.6",
99
- "react": "^18.2.0",
100
- "react-dom": "^18.2.0",
101
- "tailwind-merge": "^3.3.1"
26
+ "@types/fs-extra": "^11.0.4",
27
+ "typescript": "^5.9.3"
102
28
  }
103
29
  }
@@ -0,0 +1,19 @@
1
+ import * as React from "react"
2
+
3
+ const MOBILE_BREAKPOINT = 768
4
+
5
+ export function useIsMobile() {
6
+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)
7
+
8
+ React.useEffect(() => {
9
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
10
+ const onChange = () => {
11
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
12
+ }
13
+ mql.addEventListener("change", onChange)
14
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
15
+ return () => mql.removeEventListener("change", onChange)
16
+ }, [])
17
+
18
+ return !!isMobile
19
+ }
@@ -0,0 +1,66 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import * as AccordionPrimitive from "@radix-ui/react-accordion"
5
+ import { ChevronDownIcon } from "lucide-react"
6
+
7
+ import { cn } from "../utils/cn"
8
+
9
+ function Accordion({
10
+ ...props
11
+ }: React.ComponentProps<typeof AccordionPrimitive.Root>) {
12
+ return <AccordionPrimitive.Root data-slot="accordion" {...props} />
13
+ }
14
+
15
+ function AccordionItem({
16
+ className,
17
+ ...props
18
+ }: React.ComponentProps<typeof AccordionPrimitive.Item>) {
19
+ return (
20
+ <AccordionPrimitive.Item
21
+ data-slot="accordion-item"
22
+ className={cn("border-b last:border-b-0", className)}
23
+ {...props}
24
+ />
25
+ )
26
+ }
27
+
28
+ function AccordionTrigger({
29
+ className,
30
+ children,
31
+ ...props
32
+ }: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {
33
+ return (
34
+ <AccordionPrimitive.Header className="flex">
35
+ <AccordionPrimitive.Trigger
36
+ data-slot="accordion-trigger"
37
+ className={cn(
38
+ "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
39
+ className
40
+ )}
41
+ {...props}
42
+ >
43
+ {children}
44
+ <ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" />
45
+ </AccordionPrimitive.Trigger>
46
+ </AccordionPrimitive.Header>
47
+ )
48
+ }
49
+
50
+ function AccordionContent({
51
+ className,
52
+ children,
53
+ ...props
54
+ }: React.ComponentProps<typeof AccordionPrimitive.Content>) {
55
+ return (
56
+ <AccordionPrimitive.Content
57
+ data-slot="accordion-content"
58
+ className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
59
+ {...props}
60
+ >
61
+ <div className={cn("pt-0 pb-4", className)}>{children}</div>
62
+ </AccordionPrimitive.Content>
63
+ )
64
+ }
65
+
66
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }
@@ -0,0 +1,179 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
5
+ import { cn } from "../utils/cn"
6
+ import { buttonVariants } from "./button"
7
+
8
+ // ✅ Root (NO ref here!)
9
+ const AlertDialog = (
10
+ props: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Root>
11
+ ) => <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
12
+ AlertDialog.displayName = "AlertDialog"
13
+
14
+ // ✅ Trigger
15
+ const AlertDialogTrigger = React.forwardRef<
16
+ React.ElementRef<typeof AlertDialogPrimitive.Trigger>,
17
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>
18
+ >((props, ref) => (
19
+ <AlertDialogPrimitive.Trigger
20
+ data-slot="alert-dialog-trigger"
21
+ ref={ref}
22
+ {...props}
23
+ />
24
+ ))
25
+ AlertDialogTrigger.displayName = "AlertDialogTrigger"
26
+
27
+ // ✅ Portal (NO ref here!)
28
+ const AlertDialogPortal = (
29
+ props: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Portal>
30
+ ) => <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
31
+ AlertDialogPortal.displayName = "AlertDialogPortal"
32
+
33
+ // ✅ Overlay
34
+ const AlertDialogOverlay = React.forwardRef<
35
+ React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
36
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
37
+ >(({ className, ...props }, ref) => (
38
+ <AlertDialogPrimitive.Overlay
39
+ ref={ref}
40
+ data-slot="alert-dialog-overlay"
41
+ className={cn(
42
+ "data-[state=open]:animate-in data-[state=closed]:animate-out " +
43
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
44
+ "fixed inset-0 z-50 bg-black/50",
45
+ className
46
+ )}
47
+ {...props}
48
+ />
49
+ ))
50
+ AlertDialogOverlay.displayName = "AlertDialogOverlay"
51
+
52
+ // ✅ Content
53
+ const AlertDialogContent = React.forwardRef<
54
+ React.ElementRef<typeof AlertDialogPrimitive.Content>,
55
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
56
+ >(({ className, ...props }, ref) => (
57
+ <AlertDialogPortal>
58
+ <AlertDialogOverlay />
59
+ <AlertDialogPrimitive.Content
60
+ ref={ref}
61
+ data-slot="alert-dialog-content"
62
+ className={cn(
63
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out " +
64
+ "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
65
+ "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 " +
66
+ "fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] " +
67
+ "translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 " +
68
+ "shadow-lg duration-200 sm:max-w-lg",
69
+ className
70
+ )}
71
+ {...props}
72
+ />
73
+ </AlertDialogPortal>
74
+ ))
75
+ AlertDialogContent.displayName = "AlertDialogContent"
76
+
77
+ // ✅ Header
78
+ const AlertDialogHeader = React.forwardRef<
79
+ HTMLDivElement,
80
+ React.ComponentPropsWithoutRef<"div">
81
+ >(({ className, ...props }, ref) => (
82
+ <div
83
+ ref={ref}
84
+ data-slot="alert-dialog-header"
85
+ className={cn("flex flex-col gap-2 text-center sm:text-left", className)}
86
+ {...props}
87
+ />
88
+ ))
89
+ AlertDialogHeader.displayName = "AlertDialogHeader"
90
+
91
+ // ✅ Footer
92
+ const AlertDialogFooter = React.forwardRef<
93
+ HTMLDivElement,
94
+ React.ComponentPropsWithoutRef<"div">
95
+ >(({ className, ...props }, ref) => (
96
+ <div
97
+ ref={ref}
98
+ data-slot="alert-dialog-footer"
99
+ className={cn(
100
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
101
+ className
102
+ )}
103
+ {...props}
104
+ />
105
+ ))
106
+ AlertDialogFooter.displayName = "AlertDialogFooter"
107
+
108
+ // ✅ Title
109
+ const AlertDialogTitle = React.forwardRef<
110
+ React.ElementRef<typeof AlertDialogPrimitive.Title>,
111
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
112
+ >(({ className, ...props }, ref) => (
113
+ <AlertDialogPrimitive.Title
114
+ ref={ref}
115
+ data-slot="alert-dialog-title"
116
+ className={cn("text-lg font-semibold bg-background", className)}
117
+ {...props}
118
+ />
119
+ ))
120
+ AlertDialogTitle.displayName = "AlertDialogTitle"
121
+
122
+ // ✅ Description
123
+ const AlertDialogDescription = React.forwardRef<
124
+ React.ElementRef<typeof AlertDialogPrimitive.Description>,
125
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
126
+ >(({ className, ...props }, ref) => (
127
+ <AlertDialogPrimitive.Description
128
+ ref={ref}
129
+ data-slot="alert-dialog-description"
130
+ className={cn("text-muted-foreground text-sm bg-background", className)}
131
+ {...props}
132
+ />
133
+ ))
134
+ AlertDialogDescription.displayName = "AlertDialogDescription"
135
+
136
+ // ✅ Action
137
+ const AlertDialogAction = React.forwardRef<
138
+ React.ElementRef<typeof AlertDialogPrimitive.Action>,
139
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>
140
+ >(({ className, ...props }, ref) => (
141
+ <AlertDialogPrimitive.Action
142
+ ref={ref}
143
+ className={cn(buttonVariants(), className)}
144
+ {...props}
145
+ />
146
+ ))
147
+ AlertDialogAction.displayName = "AlertDialogAction"
148
+
149
+ // ✅ Cancel
150
+ const AlertDialogCancel = React.forwardRef<
151
+ React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
152
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
153
+ >(({ className, ...props }, ref) => (
154
+ <AlertDialogPrimitive.Cancel
155
+ ref={ref}
156
+ className={cn(
157
+ buttonVariants({ variant: "outline" }),
158
+ "bg-background",
159
+ className
160
+ )}
161
+ {...props}
162
+ />
163
+ ))
164
+ AlertDialogCancel.displayName = "AlertDialogCancel"
165
+
166
+ // ✅ Exports
167
+ export {
168
+ AlertDialog,
169
+ AlertDialogTrigger,
170
+ AlertDialogPortal,
171
+ AlertDialogOverlay,
172
+ AlertDialogContent,
173
+ AlertDialogHeader,
174
+ AlertDialogFooter,
175
+ AlertDialogTitle,
176
+ AlertDialogDescription,
177
+ AlertDialogAction,
178
+ AlertDialogCancel,
179
+ }