react-start-kit-shared 1.0.0

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 (401) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +236 -0
  3. package/dist/chunks/Actions-2AYZB2tr.es.js +34 -0
  4. package/dist/chunks/Actions-2AYZB2tr.es.js.map +1 -0
  5. package/dist/chunks/Actions-CZS1OCgc.cjs.js +2 -0
  6. package/dist/chunks/Actions-CZS1OCgc.cjs.js.map +1 -0
  7. package/dist/chunks/DateRangePicker-BTWpQRRq.es.js +178 -0
  8. package/dist/chunks/DateRangePicker-BTWpQRRq.es.js.map +1 -0
  9. package/dist/chunks/DateRangePicker-D6Q3vFLO.cjs.js +2 -0
  10. package/dist/chunks/DateRangePicker-D6Q3vFLO.cjs.js.map +1 -0
  11. package/dist/chunks/Empty-BiJ2b9JP.cjs.js +2 -0
  12. package/dist/chunks/Empty-BiJ2b9JP.cjs.js.map +1 -0
  13. package/dist/chunks/Empty-CP4yXr6G.es.js +25 -0
  14. package/dist/chunks/Empty-CP4yXr6G.es.js.map +1 -0
  15. package/dist/chunks/ExportData-Cf-cs_pE.es.js +36 -0
  16. package/dist/chunks/ExportData-Cf-cs_pE.es.js.map +1 -0
  17. package/dist/chunks/ExportData-Yp3Tm5Lv.cjs.js +2 -0
  18. package/dist/chunks/ExportData-Yp3Tm5Lv.cjs.js.map +1 -0
  19. package/dist/chunks/Keyboard-CJVAJWdO.es.js +5 -0
  20. package/dist/chunks/Keyboard-CJVAJWdO.es.js.map +1 -0
  21. package/dist/chunks/Keyboard-kyPAAQWP.cjs.js +2 -0
  22. package/dist/chunks/Keyboard-kyPAAQWP.cjs.js.map +1 -0
  23. package/dist/chunks/Loader-B51uJ48y.cjs.js +2 -0
  24. package/dist/chunks/Loader-B51uJ48y.cjs.js.map +1 -0
  25. package/dist/chunks/Loader-JIMPYfiR.es.js +14 -0
  26. package/dist/chunks/Loader-JIMPYfiR.es.js.map +1 -0
  27. package/dist/chunks/MyInput-BbLCYCkb.es.js +280 -0
  28. package/dist/chunks/MyInput-BbLCYCkb.es.js.map +1 -0
  29. package/dist/chunks/MyInput-CIgmb5kZ.cjs.js +2 -0
  30. package/dist/chunks/MyInput-CIgmb5kZ.cjs.js.map +1 -0
  31. package/dist/chunks/MyPagination-DYYM6ks6.cjs.js +2 -0
  32. package/dist/chunks/MyPagination-DYYM6ks6.cjs.js.map +1 -0
  33. package/dist/chunks/MyPagination-Dtx70bK6.es.js +142 -0
  34. package/dist/chunks/MyPagination-Dtx70bK6.es.js.map +1 -0
  35. package/dist/chunks/MySelect-DWTZ-FuO.es.js +58 -0
  36. package/dist/chunks/MySelect-DWTZ-FuO.es.js.map +1 -0
  37. package/dist/chunks/MySelect-DoX-Qy5y.cjs.js +2 -0
  38. package/dist/chunks/MySelect-DoX-Qy5y.cjs.js.map +1 -0
  39. package/dist/chunks/PasswordConfirm-DGVigQbo.cjs.js +2 -0
  40. package/dist/chunks/PasswordConfirm-DGVigQbo.cjs.js.map +1 -0
  41. package/dist/chunks/PasswordConfirm-DYTMNa33.es.js +3270 -0
  42. package/dist/chunks/PasswordConfirm-DYTMNa33.es.js.map +1 -0
  43. package/dist/chunks/Search-BQKw3els.cjs.js +2 -0
  44. package/dist/chunks/Search-BQKw3els.cjs.js.map +1 -0
  45. package/dist/chunks/Search-DqbIV61m.es.js +147 -0
  46. package/dist/chunks/Search-DqbIV61m.es.js.map +1 -0
  47. package/dist/chunks/SortOrder-81BrXp3i.cjs.js +2 -0
  48. package/dist/chunks/SortOrder-81BrXp3i.cjs.js.map +1 -0
  49. package/dist/chunks/SortOrder-CwuehjY1.es.js +5 -0
  50. package/dist/chunks/SortOrder-CwuehjY1.es.js.map +1 -0
  51. package/dist/chunks/Spin-CCtUPIlI.cjs.js +2 -0
  52. package/dist/chunks/Spin-CCtUPIlI.cjs.js.map +1 -0
  53. package/dist/chunks/Spin-DSBxxpPG.es.js +37 -0
  54. package/dist/chunks/Spin-DSBxxpPG.es.js.map +1 -0
  55. package/dist/chunks/ThemeMode-BO6tit_Z.cjs.js +2 -0
  56. package/dist/chunks/ThemeMode-BO6tit_Z.cjs.js.map +1 -0
  57. package/dist/chunks/ThemeMode-CqURAYDL.es.js +5 -0
  58. package/dist/chunks/ThemeMode-CqURAYDL.es.js.map +1 -0
  59. package/dist/chunks/ThemeProviderContext-CDiIvEe7.es.js +10 -0
  60. package/dist/chunks/ThemeProviderContext-CDiIvEe7.es.js.map +1 -0
  61. package/dist/chunks/ThemeProviderContext-rq2okb30.cjs.js +2 -0
  62. package/dist/chunks/ThemeProviderContext-rq2okb30.cjs.js.map +1 -0
  63. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js +2 -0
  64. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js.map +1 -0
  65. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js +9 -0
  66. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js.map +1 -0
  67. package/dist/chunks/index-ClQFzqcq.cjs.js +2 -0
  68. package/dist/chunks/index-ClQFzqcq.cjs.js.map +1 -0
  69. package/dist/chunks/index-E1NtSoNr.es.js +10 -0
  70. package/dist/chunks/index-E1NtSoNr.es.js.map +1 -0
  71. package/dist/chunks/useColumnsStore-C5UCQBGh.es.js +181 -0
  72. package/dist/chunks/useColumnsStore-C5UCQBGh.es.js.map +1 -0
  73. package/dist/chunks/useColumnsStore-ChRhCpCd.cjs.js +2 -0
  74. package/dist/chunks/useColumnsStore-ChRhCpCd.cjs.js.map +1 -0
  75. package/dist/chunks/useFilter-D93ncAmn.cjs.js +2 -0
  76. package/dist/chunks/useFilter-D93ncAmn.cjs.js.map +1 -0
  77. package/dist/chunks/useFilter-DpCwY1KO.es.js +17 -0
  78. package/dist/chunks/useFilter-DpCwY1KO.es.js.map +1 -0
  79. package/dist/chunks/useSortable-B8xGLknV.cjs.js +2 -0
  80. package/dist/chunks/useSortable-B8xGLknV.cjs.js.map +1 -0
  81. package/dist/chunks/useSortable-DD1y7f_o.es.js +256 -0
  82. package/dist/chunks/useSortable-DD1y7f_o.es.js.map +1 -0
  83. package/dist/chunks/useTheme-hjEZ-FC3.cjs.js +2 -0
  84. package/dist/chunks/useTheme-hjEZ-FC3.cjs.js.map +1 -0
  85. package/dist/chunks/useTheme-iKF3BEvj.es.js +12 -0
  86. package/dist/chunks/useTheme-iKF3BEvj.es.js.map +1 -0
  87. package/dist/components/actions/index.cjs.js +2 -0
  88. package/dist/components/actions/index.cjs.js.map +1 -0
  89. package/dist/components/actions/index.es.js +5 -0
  90. package/dist/components/actions/index.es.js.map +1 -0
  91. package/dist/components/confirm/index.cjs.js +2 -0
  92. package/dist/components/confirm/index.cjs.js.map +1 -0
  93. package/dist/components/confirm/index.es.js +7 -0
  94. package/dist/components/confirm/index.es.js.map +1 -0
  95. package/dist/components/datatable/index.cjs.js +2 -0
  96. package/dist/components/datatable/index.cjs.js.map +1 -0
  97. package/dist/components/datatable/index.es.js +404 -0
  98. package/dist/components/datatable/index.es.js.map +1 -0
  99. package/dist/components/datepicker/index.cjs.js +2 -0
  100. package/dist/components/datepicker/index.cjs.js.map +1 -0
  101. package/dist/components/datepicker/index.es.js +5 -0
  102. package/dist/components/datepicker/index.es.js.map +1 -0
  103. package/dist/components/empty/index.cjs.js +2 -0
  104. package/dist/components/empty/index.cjs.js.map +1 -0
  105. package/dist/components/empty/index.es.js +5 -0
  106. package/dist/components/empty/index.es.js.map +1 -0
  107. package/dist/components/export/index.cjs.js +2 -0
  108. package/dist/components/export/index.cjs.js.map +1 -0
  109. package/dist/components/export/index.es.js +5 -0
  110. package/dist/components/export/index.es.js.map +1 -0
  111. package/dist/components/filters/index.cjs.js +2 -0
  112. package/dist/components/filters/index.cjs.js.map +1 -0
  113. package/dist/components/filters/index.es.js +48 -0
  114. package/dist/components/filters/index.es.js.map +1 -0
  115. package/dist/components/form/index.cjs.js +2 -0
  116. package/dist/components/form/index.cjs.js.map +1 -0
  117. package/dist/components/form/index.es.js +450 -0
  118. package/dist/components/form/index.es.js.map +1 -0
  119. package/dist/components/gallery/index.cjs.js +2 -0
  120. package/dist/components/gallery/index.cjs.js.map +1 -0
  121. package/dist/components/gallery/index.es.js +308 -0
  122. package/dist/components/gallery/index.es.js.map +1 -0
  123. package/dist/components/loader/index.cjs.js +2 -0
  124. package/dist/components/loader/index.cjs.js.map +1 -0
  125. package/dist/components/loader/index.es.js +7 -0
  126. package/dist/components/loader/index.es.js.map +1 -0
  127. package/dist/components/modal/index.cjs.js +2 -0
  128. package/dist/components/modal/index.cjs.js.map +1 -0
  129. package/dist/components/modal/index.es.js +46 -0
  130. package/dist/components/modal/index.es.js.map +1 -0
  131. package/dist/components/pagination/index.cjs.js +2 -0
  132. package/dist/components/pagination/index.cjs.js.map +1 -0
  133. package/dist/components/pagination/index.es.js +6 -0
  134. package/dist/components/pagination/index.es.js.map +1 -0
  135. package/dist/components/scroll/index.cjs.js +2 -0
  136. package/dist/components/scroll/index.cjs.js.map +1 -0
  137. package/dist/components/scroll/index.es.js +16 -0
  138. package/dist/components/scroll/index.es.js.map +1 -0
  139. package/dist/components/theme/index.cjs.js +2 -0
  140. package/dist/components/theme/index.cjs.js.map +1 -0
  141. package/dist/components/theme/index.es.js +26 -0
  142. package/dist/components/theme/index.es.js.map +1 -0
  143. package/dist/components/tooltip/index.cjs.js +2 -0
  144. package/dist/components/tooltip/index.cjs.js.map +1 -0
  145. package/dist/components/tooltip/index.es.js +18 -0
  146. package/dist/components/tooltip/index.es.js.map +1 -0
  147. package/dist/enums/index.cjs.js +2 -0
  148. package/dist/enums/index.cjs.js.map +1 -0
  149. package/dist/enums/index.es.js +9 -0
  150. package/dist/enums/index.es.js.map +1 -0
  151. package/dist/hooks/index.cjs.js +21 -0
  152. package/dist/hooks/index.cjs.js.map +1 -0
  153. package/dist/hooks/index.es.js +1015 -0
  154. package/dist/hooks/index.es.js.map +1 -0
  155. package/dist/index.cjs.js +2 -0
  156. package/dist/index.cjs.js.map +1 -0
  157. package/dist/index.es.js +2 -0
  158. package/dist/index.es.js.map +1 -0
  159. package/dist/providers/index.cjs.js +2 -0
  160. package/dist/providers/index.cjs.js.map +1 -0
  161. package/dist/providers/index.es.js +32 -0
  162. package/dist/providers/index.es.js.map +1 -0
  163. package/dist/stores/index.cjs.js +2 -0
  164. package/dist/stores/index.cjs.js.map +1 -0
  165. package/dist/stores/index.es.js +21 -0
  166. package/dist/stores/index.es.js.map +1 -0
  167. package/dist/styles.css +1 -0
  168. package/dist/types/App.d.ts +3 -0
  169. package/dist/types/App.d.ts.map +1 -0
  170. package/dist/types/components/actions/Actions.d.ts +32 -0
  171. package/dist/types/components/actions/Actions.d.ts.map +1 -0
  172. package/dist/types/components/actions/index.d.ts +2 -0
  173. package/dist/types/components/actions/index.d.ts.map +1 -0
  174. package/dist/types/components/confirm/Confirm.d.ts +27 -0
  175. package/dist/types/components/confirm/Confirm.d.ts.map +1 -0
  176. package/dist/types/components/confirm/PasswordConfirm.d.ts +22 -0
  177. package/dist/types/components/confirm/PasswordConfirm.d.ts.map +1 -0
  178. package/dist/types/components/confirm/index.d.ts +4 -0
  179. package/dist/types/components/confirm/index.d.ts.map +1 -0
  180. package/dist/types/components/datatable/DataTable.d.ts +196 -0
  181. package/dist/types/components/datatable/DataTable.d.ts.map +1 -0
  182. package/dist/types/components/datatable/MyTable.d.ts +56 -0
  183. package/dist/types/components/datatable/MyTable.d.ts.map +1 -0
  184. package/dist/types/components/datatable/index.d.ts +3 -0
  185. package/dist/types/components/datatable/index.d.ts.map +1 -0
  186. package/dist/types/components/datepicker/DateRangePicker.d.ts +50 -0
  187. package/dist/types/components/datepicker/DateRangePicker.d.ts.map +1 -0
  188. package/dist/types/components/datepicker/index.d.ts +2 -0
  189. package/dist/types/components/datepicker/index.d.ts.map +1 -0
  190. package/dist/types/components/empty/Empty.d.ts +19 -0
  191. package/dist/types/components/empty/Empty.d.ts.map +1 -0
  192. package/dist/types/components/empty/index.d.ts +2 -0
  193. package/dist/types/components/empty/index.d.ts.map +1 -0
  194. package/dist/types/components/export/ExportData.d.ts +52 -0
  195. package/dist/types/components/export/ExportData.d.ts.map +1 -0
  196. package/dist/types/components/export/index.d.ts +2 -0
  197. package/dist/types/components/export/index.d.ts.map +1 -0
  198. package/dist/types/components/filters/AppliedFilters.d.ts +24 -0
  199. package/dist/types/components/filters/AppliedFilters.d.ts.map +1 -0
  200. package/dist/types/components/filters/FilterWrapper.d.ts +58 -0
  201. package/dist/types/components/filters/FilterWrapper.d.ts.map +1 -0
  202. package/dist/types/components/filters/Search.d.ts +28 -0
  203. package/dist/types/components/filters/Search.d.ts.map +1 -0
  204. package/dist/types/components/filters/SearchWithCtrl.d.ts +25 -0
  205. package/dist/types/components/filters/SearchWithCtrl.d.ts.map +1 -0
  206. package/dist/types/components/filters/index.d.ts +4 -0
  207. package/dist/types/components/filters/index.d.ts.map +1 -0
  208. package/dist/types/components/form/MyCheckbox.d.ts +20 -0
  209. package/dist/types/components/form/MyCheckbox.d.ts.map +1 -0
  210. package/dist/types/components/form/MyDatePicker.d.ts +43 -0
  211. package/dist/types/components/form/MyDatePicker.d.ts.map +1 -0
  212. package/dist/types/components/form/MyDateRangePicker.d.ts +26 -0
  213. package/dist/types/components/form/MyDateRangePicker.d.ts.map +1 -0
  214. package/dist/types/components/form/MyHtmlEditor.d.ts +26 -0
  215. package/dist/types/components/form/MyHtmlEditor.d.ts.map +1 -0
  216. package/dist/types/components/form/MyInput.d.ts +24 -0
  217. package/dist/types/components/form/MyInput.d.ts.map +1 -0
  218. package/dist/types/components/form/MyMaskInput.d.ts +28 -0
  219. package/dist/types/components/form/MyMaskInput.d.ts.map +1 -0
  220. package/dist/types/components/form/MyRadio.d.ts +25 -0
  221. package/dist/types/components/form/MyRadio.d.ts.map +1 -0
  222. package/dist/types/components/form/MySelect.d.ts +29 -0
  223. package/dist/types/components/form/MySelect.d.ts.map +1 -0
  224. package/dist/types/components/form/MyShadcnSelect.d.ts +39 -0
  225. package/dist/types/components/form/MyShadcnSelect.d.ts.map +1 -0
  226. package/dist/types/components/form/MySwitch.d.ts +20 -0
  227. package/dist/types/components/form/MySwitch.d.ts.map +1 -0
  228. package/dist/types/components/form/MyTextarea.d.ts +24 -0
  229. package/dist/types/components/form/MyTextarea.d.ts.map +1 -0
  230. package/dist/types/components/form/MyTimePicker.d.ts +29 -0
  231. package/dist/types/components/form/MyTimePicker.d.ts.map +1 -0
  232. package/dist/types/components/form/index.d.ts +14 -0
  233. package/dist/types/components/form/index.d.ts.map +1 -0
  234. package/dist/types/components/gallery/MyGallery.d.ts +62 -0
  235. package/dist/types/components/gallery/MyGallery.d.ts.map +1 -0
  236. package/dist/types/components/gallery/index.d.ts +2 -0
  237. package/dist/types/components/gallery/index.d.ts.map +1 -0
  238. package/dist/types/components/index.d.ts +15 -0
  239. package/dist/types/components/index.d.ts.map +1 -0
  240. package/dist/types/components/loader/Loader.d.ts +10 -0
  241. package/dist/types/components/loader/Loader.d.ts.map +1 -0
  242. package/dist/types/components/loader/Spin.d.ts +14 -0
  243. package/dist/types/components/loader/Spin.d.ts.map +1 -0
  244. package/dist/types/components/loader/index.d.ts +4 -0
  245. package/dist/types/components/loader/index.d.ts.map +1 -0
  246. package/dist/types/components/modal/MyModal.d.ts +51 -0
  247. package/dist/types/components/modal/MyModal.d.ts.map +1 -0
  248. package/dist/types/components/modal/index.d.ts +2 -0
  249. package/dist/types/components/modal/index.d.ts.map +1 -0
  250. package/dist/types/components/pagination/MyLimitSelect.d.ts +27 -0
  251. package/dist/types/components/pagination/MyLimitSelect.d.ts.map +1 -0
  252. package/dist/types/components/pagination/MyPagination.d.ts +39 -0
  253. package/dist/types/components/pagination/MyPagination.d.ts.map +1 -0
  254. package/dist/types/components/pagination/index.d.ts +4 -0
  255. package/dist/types/components/pagination/index.d.ts.map +1 -0
  256. package/dist/types/components/scroll/ScrollArea.d.ts +10 -0
  257. package/dist/types/components/scroll/ScrollArea.d.ts.map +1 -0
  258. package/dist/types/components/scroll/index.d.ts +2 -0
  259. package/dist/types/components/scroll/index.d.ts.map +1 -0
  260. package/dist/types/components/theme/index.d.ts +2 -0
  261. package/dist/types/components/theme/index.d.ts.map +1 -0
  262. package/dist/types/components/theme/theme-toggle.d.ts +15 -0
  263. package/dist/types/components/theme/theme-toggle.d.ts.map +1 -0
  264. package/dist/types/components/tooltip/MyTooltip.d.ts +25 -0
  265. package/dist/types/components/tooltip/MyTooltip.d.ts.map +1 -0
  266. package/dist/types/components/tooltip/index.d.ts +3 -0
  267. package/dist/types/components/tooltip/index.d.ts.map +1 -0
  268. package/dist/types/contexts/ThemeProviderContext.d.ts +18 -0
  269. package/dist/types/contexts/ThemeProviderContext.d.ts.map +1 -0
  270. package/dist/types/contexts/index.d.ts +2 -0
  271. package/dist/types/contexts/index.d.ts.map +1 -0
  272. package/dist/types/enums/Keyboard.d.ts +8 -0
  273. package/dist/types/enums/Keyboard.d.ts.map +1 -0
  274. package/dist/types/enums/SortOrder.d.ts +10 -0
  275. package/dist/types/enums/SortOrder.d.ts.map +1 -0
  276. package/dist/types/enums/ThemeMode.d.ts +12 -0
  277. package/dist/types/enums/ThemeMode.d.ts.map +1 -0
  278. package/dist/types/enums/index.d.ts +4 -0
  279. package/dist/types/enums/index.d.ts.map +1 -0
  280. package/dist/types/hooks/index.d.ts +9 -0
  281. package/dist/types/hooks/index.d.ts.map +1 -0
  282. package/dist/types/hooks/useColumns.d.ts +31 -0
  283. package/dist/types/hooks/useColumns.d.ts.map +1 -0
  284. package/dist/types/hooks/useConfirm.d.ts +21 -0
  285. package/dist/types/hooks/useConfirm.d.ts.map +1 -0
  286. package/dist/types/hooks/useDataTable.d.ts +33 -0
  287. package/dist/types/hooks/useDataTable.d.ts.map +1 -0
  288. package/dist/types/hooks/useDocumentTitle.d.ts +9 -0
  289. package/dist/types/hooks/useDocumentTitle.d.ts.map +1 -0
  290. package/dist/types/hooks/useFilter.d.ts +29 -0
  291. package/dist/types/hooks/useFilter.d.ts.map +1 -0
  292. package/dist/types/hooks/useMediaQuerySizes.d.ts +22 -0
  293. package/dist/types/hooks/useMediaQuerySizes.d.ts.map +1 -0
  294. package/dist/types/hooks/useSortable.d.ts +29 -0
  295. package/dist/types/hooks/useSortable.d.ts.map +1 -0
  296. package/dist/types/hooks/useTheme.d.ts +14 -0
  297. package/dist/types/hooks/useTheme.d.ts.map +1 -0
  298. package/dist/types/index.cjs.js +2 -0
  299. package/dist/types/index.cjs.js.map +1 -0
  300. package/dist/types/index.d.ts +1 -0
  301. package/dist/types/index.d.ts.map +1 -0
  302. package/dist/types/index.es.js +2 -0
  303. package/dist/types/index.es.js.map +1 -0
  304. package/dist/types/main.d.ts +1 -0
  305. package/dist/types/main.d.ts.map +1 -0
  306. package/dist/types/providers/ThemeProvider.d.ts +24 -0
  307. package/dist/types/providers/ThemeProvider.d.ts.map +1 -0
  308. package/dist/types/providers/index.d.ts +2 -0
  309. package/dist/types/providers/index.d.ts.map +1 -0
  310. package/dist/types/schemas/createConfirmPasswordSchema.d.ts +20 -0
  311. package/dist/types/schemas/createConfirmPasswordSchema.d.ts.map +1 -0
  312. package/dist/types/schemas/index.d.ts +2 -0
  313. package/dist/types/schemas/index.d.ts.map +1 -0
  314. package/dist/types/stores/index.d.ts +3 -0
  315. package/dist/types/stores/index.d.ts.map +1 -0
  316. package/dist/types/stores/useColumnsStore.d.ts +26 -0
  317. package/dist/types/stores/useColumnsStore.d.ts.map +1 -0
  318. package/dist/types/stores/useDateRangeStore.d.ts +27 -0
  319. package/dist/types/stores/useDateRangeStore.d.ts.map +1 -0
  320. package/dist/types/stories/Actions.stories.d.ts +8 -0
  321. package/dist/types/stories/Actions.stories.d.ts.map +1 -0
  322. package/dist/types/stories/AppliedFilters.stories.d.ts +10 -0
  323. package/dist/types/stories/AppliedFilters.stories.d.ts.map +1 -0
  324. package/dist/types/stories/Confirm.stories.d.ts +8 -0
  325. package/dist/types/stories/Confirm.stories.d.ts.map +1 -0
  326. package/dist/types/stories/DataTable.stories.d.ts +19 -0
  327. package/dist/types/stories/DataTable.stories.d.ts.map +1 -0
  328. package/dist/types/stories/DateRangePicker.stories.d.ts +10 -0
  329. package/dist/types/stories/DateRangePicker.stories.d.ts.map +1 -0
  330. package/dist/types/stories/Empty.stories.d.ts +9 -0
  331. package/dist/types/stories/Empty.stories.d.ts.map +1 -0
  332. package/dist/types/stories/ExportData.stories.d.ts +9 -0
  333. package/dist/types/stories/ExportData.stories.d.ts.map +1 -0
  334. package/dist/types/stories/FilterWrapper.stories.d.ts +9 -0
  335. package/dist/types/stories/FilterWrapper.stories.d.ts.map +1 -0
  336. package/dist/types/stories/Loader.stories.d.ts +7 -0
  337. package/dist/types/stories/Loader.stories.d.ts.map +1 -0
  338. package/dist/types/stories/MyCheckbox.stories.d.ts +8 -0
  339. package/dist/types/stories/MyCheckbox.stories.d.ts.map +1 -0
  340. package/dist/types/stories/MyDatePicker.stories.d.ts +10 -0
  341. package/dist/types/stories/MyDatePicker.stories.d.ts.map +1 -0
  342. package/dist/types/stories/MyDateRangePicker.stories.d.ts +8 -0
  343. package/dist/types/stories/MyDateRangePicker.stories.d.ts.map +1 -0
  344. package/dist/types/stories/MyGallery.stories.d.ts +9 -0
  345. package/dist/types/stories/MyGallery.stories.d.ts.map +1 -0
  346. package/dist/types/stories/MyHtmlEditor.stories.d.ts +8 -0
  347. package/dist/types/stories/MyHtmlEditor.stories.d.ts.map +1 -0
  348. package/dist/types/stories/MyInput.stories.d.ts +10 -0
  349. package/dist/types/stories/MyInput.stories.d.ts.map +1 -0
  350. package/dist/types/stories/MyLimitSelect.stories.d.ts +9 -0
  351. package/dist/types/stories/MyLimitSelect.stories.d.ts.map +1 -0
  352. package/dist/types/stories/MyMaskInput.stories.d.ts +9 -0
  353. package/dist/types/stories/MyMaskInput.stories.d.ts.map +1 -0
  354. package/dist/types/stories/MyModal.stories.d.ts +10 -0
  355. package/dist/types/stories/MyModal.stories.d.ts.map +1 -0
  356. package/dist/types/stories/MyPagination.stories.d.ts +10 -0
  357. package/dist/types/stories/MyPagination.stories.d.ts.map +1 -0
  358. package/dist/types/stories/MyRadio.stories.d.ts +7 -0
  359. package/dist/types/stories/MyRadio.stories.d.ts.map +1 -0
  360. package/dist/types/stories/MySelect.stories.d.ts +10 -0
  361. package/dist/types/stories/MySelect.stories.d.ts.map +1 -0
  362. package/dist/types/stories/MyShadcnSelect.stories.d.ts +9 -0
  363. package/dist/types/stories/MyShadcnSelect.stories.d.ts.map +1 -0
  364. package/dist/types/stories/MySwitch.stories.d.ts +8 -0
  365. package/dist/types/stories/MySwitch.stories.d.ts.map +1 -0
  366. package/dist/types/stories/MyTable.stories.d.ts +19 -0
  367. package/dist/types/stories/MyTable.stories.d.ts.map +1 -0
  368. package/dist/types/stories/MyTextarea.stories.d.ts +9 -0
  369. package/dist/types/stories/MyTextarea.stories.d.ts.map +1 -0
  370. package/dist/types/stories/MyTimePicker.stories.d.ts +9 -0
  371. package/dist/types/stories/MyTimePicker.stories.d.ts.map +1 -0
  372. package/dist/types/stories/MyTooltip.stories.d.ts +10 -0
  373. package/dist/types/stories/MyTooltip.stories.d.ts.map +1 -0
  374. package/dist/types/stories/PasswordConfirm.stories.d.ts +8 -0
  375. package/dist/types/stories/PasswordConfirm.stories.d.ts.map +1 -0
  376. package/dist/types/stories/ScrollArea.stories.d.ts +8 -0
  377. package/dist/types/stories/ScrollArea.stories.d.ts.map +1 -0
  378. package/dist/types/stories/Search.stories.d.ts +8 -0
  379. package/dist/types/stories/Search.stories.d.ts.map +1 -0
  380. package/dist/types/stories/SearchWithCtrl.stories.d.ts +8 -0
  381. package/dist/types/stories/SearchWithCtrl.stories.d.ts.map +1 -0
  382. package/dist/types/stories/Spin.stories.d.ts +8 -0
  383. package/dist/types/stories/Spin.stories.d.ts.map +1 -0
  384. package/dist/types/stories/ThemeToggle.stories.d.ts +8 -0
  385. package/dist/types/stories/ThemeToggle.stories.d.ts.map +1 -0
  386. package/dist/types/types/column.type.d.ts +31 -0
  387. package/dist/types/types/column.type.d.ts.map +1 -0
  388. package/dist/types/types/index.d.ts +3 -0
  389. package/dist/types/types/index.d.ts.map +1 -0
  390. package/dist/types/types/translation-args.type.d.ts +17 -0
  391. package/dist/types/types/translation-args.type.d.ts.map +1 -0
  392. package/dist/types/utils/index.d.ts +2 -0
  393. package/dist/types/utils/index.d.ts.map +1 -0
  394. package/dist/types/utils/utils.d.ts +8 -0
  395. package/dist/types/utils/utils.d.ts.map +1 -0
  396. package/dist/types/vite-env.d.ts +1 -0
  397. package/dist/utils/index.cjs.js +2 -0
  398. package/dist/utils/index.cjs.js.map +1 -0
  399. package/dist/utils/index.es.js +7 -0
  400. package/dist/utils/index.es.js.map +1 -0
  401. package/package.json +265 -0
@@ -0,0 +1,43 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { CalendarProps } from 'react-start-kit/calendar';
3
+ import { FormItemProps, InputProps } from 'react-start-kit/form';
4
+ /**
5
+ * Props for the MyDatePicker component.
6
+ * @template TFieldValues - The type of the form values.
7
+ */
8
+ export type MyDatePickerProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & Omit<CalendarProps, 'mode' | 'disabled' | 'required'> & {
9
+ /** Date format string for display. */
10
+ format?: string;
11
+ /** Props passed to the underlying Input component. */
12
+ inputProps?: Omit<InputProps, 'onSelect'>;
13
+ /** Placeholder text when no date is selected. */
14
+ placeholder?: string;
15
+ /** Whether the date picker is disabled. */
16
+ disabled?: boolean;
17
+ /** When true, shows a TimePicker below the calendar for time selection. */
18
+ showTime?: true;
19
+ required?: true;
20
+ };
21
+ /**
22
+ * MyDatePicker shows a calendar popover to pick a single date, integrated with react-hook-form.
23
+ * Can also be used standalone when no control/name are provided.
24
+ *
25
+ * @template TFieldValues - Form values type used by react-hook-form.
26
+ * @param control - The `react-hook-form` control object.
27
+ * @param name - The name of the field in `react-hook-form`.
28
+ * @param label - The label to display for the date picker.
29
+ * @param required - Whether the field is required.
30
+ * @param rules - The `react-hook-form` validation rules.
31
+ * @param format - The date format for display.
32
+ * @param placeholder - The placeholder text when no date selected.
33
+ * @param floatingError - Whether to show the error message in a floating container.
34
+ * @param register - The `react-hook-form` register function.
35
+ * @param disabled - Whether the date picker is disabled.
36
+ * @param className - Additional CSS classes.
37
+ * @param showTime - When true, shows a TimePicker below the calendar for time selection.
38
+ * @param inputProps - Props passed to the underlying Input component.
39
+ * @param props - Calendar, button and form item props.
40
+ * @returns {JSX.Element | null} A date picker component integrated with react-hook-form, or null if name/control are missing.
41
+ */
42
+ export declare const MyDatePicker: <TFieldValues extends FieldValues>({ control, name, label, required, rules, format, floatingError, placeholder, disabled, register, className, showTime, inputProps, ...props }: MyDatePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | null;
43
+ //# sourceMappingURL=MyDatePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyDatePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MyDatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAEL,KAAK,aAAa,EAGnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAIL,KAAK,aAAa,EAIlB,KAAK,UAAU,EAChB,MAAM,sBAAsB,CAAC;AAQ9B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,YAAY,SAAS,WAAW,IAC5D,aAAa,CAAC,YAAY,CAAC,GACzB,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC,GAAG;IACtD,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC1C,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,IAAI,CAAC;IAEhB,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB,CAAC;AAEN;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,GAAI,YAAY,SAAS,WAAW,EAAE,8IAe5D,iBAAiB,CAAC,YAAY,CAAC,mDAiFjC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormItemProps } from 'react-start-kit/form';
3
+ import { DateRangePickerProps } from '../datepicker';
4
+ /**
5
+ * Props for the MyDateRangePicker component.
6
+ * @template TFieldValues - The type of the form values.
7
+ */
8
+ export type MyDateRangePickerProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & Omit<DateRangePickerProps, 'required'> & {
9
+ required?: true;
10
+ };
11
+ /**
12
+ * MyDateRangePicker renders a date range selector integrated with react-hook-form.
13
+ *
14
+ * @template TFieldValues - Form values type used by react-hook-form.
15
+ * @param control - The `react-hook-form` control object.
16
+ * @param name - The name of the field in `react-hook-form`.
17
+ * @param label - The label to display for the date range picker.
18
+ * @param required - Whether the field is required.
19
+ * @param rules - The `react-hook-form` validation rules.
20
+ * @param format - The date format for display.
21
+ * @param placeholder - The placeholder text when no date is selected.
22
+ * @param props - DateRangePicker props and form item props.
23
+ * @returns {JSX.Element | null} A date range picker integrated with react-hook-form, or null if name/control are missing
24
+ */
25
+ export declare const MyDateRangePicker: <TFieldValues extends FieldValues>({ control, name, label, required, rules, placeholder, floatingError, ...props }: MyDateRangePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | null;
26
+ //# sourceMappingURL=MyDateRangePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyDateRangePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MyDateRangePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAIL,KAAK,aAAa,EAGnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE3E;;;GAGG;AACH,MAAM,MAAM,sBAAsB,CAAC,YAAY,SAAS,WAAW,IACjE,aAAa,CAAC,YAAY,CAAC,GACzB,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,GAAG;IACvC,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB,CAAC;AAEN;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,SAAS,WAAW,EAAE,iFASjE,sBAAsB,CAAC,YAAY,CAAC,mDAkCtC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormItemProps, HtmlEditorProps } from 'react-start-kit/form';
3
+ /**
4
+ * Props for the MyHtmlEditor component.
5
+ * @template TFieldValues - The type of the form values.
6
+ */
7
+ export type MyHtmlEditorProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & HtmlEditorProps & {
8
+ /** Whether the field is required. */
9
+ required?: boolean;
10
+ };
11
+ /**
12
+ * MyHtmlEditor is a rich-text HTML editor with optional react-hook-form integration.
13
+ * Works in both controlled (with control/name) and uncontrolled modes.
14
+ *
15
+ * @template TFieldValues - Form values type used by react-hook-form.
16
+ * @param control - The `react-hook-form` control object.
17
+ * @param name - The name of the field in `react-hook-form`.
18
+ * @param label - The label to display for the HTML editor.
19
+ * @param rules - The `react-hook-form` validation rules.
20
+ * @param required - Whether the field is required.
21
+ * @param floatingError - Whether to show the error message in a floating container.
22
+ * @param props - HtmlEditor and form item props.
23
+ * @returns {JSX.Element | null} An HtmlEditor component with label, helper text, and validation message, or null if name/control are missing
24
+ */
25
+ export declare const MyHtmlEditor: <TFieldValues extends FieldValues>({ control, name, label, rules, required, floatingError, ...props }: MyHtmlEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | null;
26
+ //# sourceMappingURL=MyHtmlEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyHtmlEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MyHtmlEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAIL,KAAK,aAAa,EAIlB,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAG9B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,YAAY,SAAS,WAAW,IAC5D,aAAa,CAAC,YAAY,CAAC,GACzB,eAAe,GAAG;IAChB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEN;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,GAAI,YAAY,SAAS,WAAW,EAAE,oEAQ5D,iBAAiB,CAAC,YAAY,CAAC,mDA4BjC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormItemProps, InputProps } from 'react-start-kit/form';
3
+ /**
4
+ * Props for the MyInput component.
5
+ * @template TFieldValues - The type of the form values.
6
+ */
7
+ export type MyInputProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & InputProps;
8
+ /**
9
+ * MyInput is a form-aware input field that integrates with react-hook-form.
10
+ * Works in both controlled (with control/name) and uncontrolled modes.
11
+ *
12
+ * @template TFieldValues - Form values type used by react-hook-form.
13
+ * @param control - The `react-hook-form` control object.
14
+ * @param name - The name of the field in `react-hook-form`.
15
+ * @param label - The label to display for the input.
16
+ * @param required - Whether the field is required.
17
+ * @param className - Custom CSS class name.
18
+ * @param rules - The `react-hook-form` validation rules.
19
+ * @param floatingError - Whether to show the error message in a floating container.
20
+ * @param props - Input and form item props.
21
+ * @returns {JSX.Element | null} An input field with form integration and validation, or null if name/control are missing
22
+ */
23
+ export declare const MyInput: <TFieldValues extends FieldValues>({ control, name, label, required, className, rules, floatingError, ...props }: MyInputProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | null;
24
+ //# sourceMappingURL=MyInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyInput.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MyInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAIL,KAAK,aAAa,EAIlB,KAAK,UAAU,EAChB,MAAM,sBAAsB,CAAC;AAG9B;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,YAAY,SAAS,WAAW,IACvD,aAAa,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;AAE3C;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,OAAO,GAAI,YAAY,SAAS,WAAW,EAAE,+EASvD,YAAY,CAAC,YAAY,CAAC,mDA6C5B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormItemProps, MaskInputProps } from 'react-start-kit/form';
3
+ /**
4
+ * Props for the MyMaskInput component.
5
+ * @template TFieldValues - The type of the form values.
6
+ */
7
+ export type MyMaskInputProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & MaskInputProps & {
8
+ /** Whether the field is required. */
9
+ required?: boolean;
10
+ };
11
+ /**
12
+ * MyMaskInput is an input component with masking support and optional react-hook-form integration.
13
+ * Works in both controlled (with control/name) and uncontrolled modes. By default it uses a space as
14
+ * thousands separator, underscores as placeholder characters, lazy formatting disabled, and returns
15
+ * unmasked value on change.
16
+ *
17
+ * @template TFieldValues - Form values type used by react-hook-form.
18
+ * @param control - The `react-hook-form` control object.
19
+ * @param name - The name of the field in `react-hook-form`.
20
+ * @param label - The label to display for the mask input.
21
+ * @param rules - The `react-hook-form` validation rules.
22
+ * @param required - Whether the field is required.
23
+ * @param floatingError - Whether to show the error message in a floating container.
24
+ * @param props - MaskInput and form item props.
25
+ * @returns {JSX.Element | null} A masked input with label, helper text, and validation message, or null if name/control are missing
26
+ */
27
+ export declare const MyMaskInput: <TFieldValues extends FieldValues>({ control, name, label, rules, required, floatingError, ...props }: MyMaskInputProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | null;
28
+ //# sourceMappingURL=MyMaskInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyMaskInput.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MyMaskInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAIL,KAAK,aAAa,EAIlB,KAAK,cAAc,EACpB,MAAM,sBAAsB,CAAC;AAG9B;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,YAAY,SAAS,WAAW,IAC3D,aAAa,CAAC,YAAY,CAAC,GACzB,cAAc,GAAG;IACf,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEN;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,GAAI,YAAY,SAAS,WAAW,EAAE,oEAQ3D,gBAAgB,CAAC,YAAY,CAAC,mDAyChC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ import { FieldValues } from 'react-hook-form';
3
+ import { FormItemProps, RadioGroupItem } from 'react-start-kit/form';
4
+ type RadioItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupItem>;
5
+ /**
6
+ * Props for the MyRadio component.
7
+ * @template TFieldValues - The type of the form values.
8
+ */
9
+ export type MyRadioProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & RadioItemProps;
10
+ /**
11
+ * MyRadio is a radio input that can integrate with react-hook-form when control and name are provided.
12
+ * Falls back to an uncontrolled radio item when not used inside a form.
13
+ *
14
+ * @template TFieldValues - Form values type used by react-hook-form.
15
+ * @param control - The `react-hook-form` control object.
16
+ * @param name - The name of the field in `react-hook-form`.
17
+ * @param label - The label to display for the radio input.
18
+ * @param rules - The `react-hook-form` validation rules.
19
+ * @param value - The value of the radio input.
20
+ * @param props - Radio item and form item props.
21
+ * @returns {JSX.Element | null} A radio button item with form integration, or null if name/control are missing
22
+ */
23
+ declare const MyRadio: <TFieldValues extends FieldValues>({ control, name, label, rules, value, ...props }: MyRadioProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | null;
24
+ export { MyRadio };
25
+ //# sourceMappingURL=MyRadio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyRadio.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MyRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAIL,KAAK,aAAa,EAElB,cAAc,EACf,MAAM,sBAAsB,CAAC;AAE9B,KAAK,cAAc,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5E;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,YAAY,SAAS,WAAW,IACvD,aAAa,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC;AAE/C;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,OAAO,GAAI,YAAY,SAAS,WAAW,EAAE,kDAOhD,YAAY,CAAC,YAAY,CAAC,mDAgC5B,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormItemProps, ReactSelectProps } from 'react-start-kit/form';
3
+ /**
4
+ * Props for the MySelect component.
5
+ * @template TFieldValues - The type of the form values.
6
+ */
7
+ export type MySelectProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & ReactSelectProps & {
8
+ /** Optional callback for change events. */
9
+ onChange?: (value: unknown) => void;
10
+ };
11
+ /**
12
+ * MySelect wraps a ReactSelect with react-hook-form support.
13
+ * Can also be used standalone when no control/name are provided.
14
+ *
15
+ * @template TFieldValues - Form values type used by react-hook-form.
16
+ * @param control - The `react-hook-form` control object.
17
+ * @param name - The name of the field in `react-hook-form`.
18
+ * @param label - The label to display for the select.
19
+ * @param required - Whether the field is required.
20
+ * @param className - Custom CSS class name.
21
+ * @param rules - The `react-hook-form` validation rules.
22
+ * @param options - The options to display in the select.
23
+ * @param onChange - Optional callback for change events.
24
+ * @param floatingError - Whether to show the error message in a floating container.
25
+ * @param props - Select and form item props.
26
+ * @returns {JSX.Element | null} A select component integrated with react-hook-form, or null if name/control are missing
27
+ */
28
+ export declare const MySelect: <TFieldValues extends FieldValues>({ control, name, label, required, className, rules, options, onChange, floatingError, ...props }: MySelectProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | null;
29
+ //# sourceMappingURL=MySelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MySelect.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MySelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAIL,KAAK,aAAa,EAIlB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAG9B;;;GAGG;AACH,MAAM,MAAM,aAAa,CAAC,YAAY,SAAS,WAAW,IACxD,aAAa,CAAC,YAAY,CAAC,GACzB,gBAAgB,GAAG;IACjB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACrC,CAAC;AAEN;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,GAAI,YAAY,SAAS,WAAW,EAAE,kGAWxD,aAAa,CAAC,YAAY,CAAC,mDA6C7B,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormItemProps, Option } from 'react-start-kit/form';
3
+ /**
4
+ * Props for the MyShadcnSelect component.
5
+ * @template TFieldValues - The type of the form values.
6
+ */
7
+ export type MyShadcnSelectProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & {
8
+ /** Array of options to display in the select dropdown. */
9
+ options?: Option[];
10
+ /** Placeholder text when no option is selected. */
11
+ placeholder?: string;
12
+ /** Additional CSS classes. */
13
+ className?: string;
14
+ /** Whether the select is disabled. */
15
+ disabled?: boolean;
16
+ /** Callback fired when the selected value changes. */
17
+ onChange?: (value: string | number) => void;
18
+ /** Whether the field is required. */
19
+ required?: boolean;
20
+ };
21
+ /**
22
+ * MyShadcnSelect is a native Shadcn select component integrated with react-hook-form.
23
+ * Renders a dropdown select with customizable options and validation support.
24
+ *
25
+ * @template TFieldValues - Form values type used by react-hook-form.
26
+ * @param control - The `react-hook-form` control object.
27
+ * @param name - The name of the field in `react-hook-form`.
28
+ * @param label - The label to display for the select.
29
+ * @param required - Whether the field is required.
30
+ * @param className - Additional CSS classes.
31
+ * @param rules - The `react-hook-form` validation rules.
32
+ * @param options - Array of options to display in the select dropdown.
33
+ * @param placeholder - Placeholder text when no option is selected.
34
+ * @param disabled - Whether the select is disabled.
35
+ * @param onChange - Callback fired when the selected value changes.
36
+ * @returns {JSX.Element | false} A select component integrated with react-hook-form, or false if name/control are missing
37
+ */
38
+ export declare const MyShadcnSelect: <TFieldValues extends FieldValues>({ control, name, label, required, className, rules, options, placeholder, disabled, onChange, }: MyShadcnSelectProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | undefined;
39
+ //# sourceMappingURL=MyShadcnSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyShadcnSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MyShadcnSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAWL,KAAK,aAAa,EAClB,KAAK,MAAM,EACZ,MAAM,sBAAsB,CAAC;AAG9B;;;GAGG;AACH,MAAM,MAAM,mBAAmB,CAAC,YAAY,SAAS,WAAW,IAC9D,aAAa,CAAC,YAAY,CAAC,GAAG;IAC5B,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC5C,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEJ;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc,GAAI,YAAY,SAAS,WAAW,EAAE,iGAW9D,mBAAmB,CAAC,YAAY,CAAC,wDA6DnC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormItemProps, SwitchProps } from 'react-start-kit/form';
3
+ /**
4
+ * Props for the MySwitch component.
5
+ * @template TFieldValues - The type of the form values.
6
+ */
7
+ export type MySwitchProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & SwitchProps;
8
+ /**
9
+ * MySwitch is a toggle switch with optional react-hook-form integration.
10
+ *
11
+ * @template TFieldValues - Form values type used by react-hook-form.
12
+ * @param control - The `react-hook-form` control object.
13
+ * @param name - The name of the field in `react-hook-form`.
14
+ * @param label - The label to display for the switch.
15
+ * @param rules - The `react-hook-form` validation rules.
16
+ * @param props - Switch and form item props.
17
+ * @returns A toggle switch component, or null if name or control are missing.
18
+ */
19
+ export declare const MySwitch: <TFieldValues extends FieldValues>({ control, name, label, rules, ...props }: MySwitchProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | null;
20
+ //# sourceMappingURL=MySwitch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MySwitch.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MySwitch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAIL,KAAK,aAAa,EAGlB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,MAAM,MAAM,aAAa,CAAC,YAAY,SAAS,WAAW,IACxD,aAAa,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,GAAI,YAAY,SAAS,WAAW,EAAE,2CAMxD,aAAa,CAAC,YAAY,CAAC,mDA4B7B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormItemProps, TextareaProps } from 'react-start-kit/form';
3
+ /**
4
+ * Props for the MyTextarea component.
5
+ * @template TFieldValues - The type of the form values.
6
+ */
7
+ export type MyTextareaProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & TextareaProps;
8
+ /**
9
+ * MyTextarea is a textarea component with optional react-hook-form integration.
10
+ * Supports floating error message styling.
11
+ *
12
+ * @template TFieldValues - Form values type used by react-hook-form.
13
+ * @param control - The `react-hook-form` control object.
14
+ * @param name - The name of the field in `react-hook-form`.
15
+ * @param label - The label to display for the textarea.
16
+ * @param required - Whether the field is required.
17
+ * @param rules - The `react-hook-form` validation rules.
18
+ * @param className - Custom CSS class name.
19
+ * @param floatingError - Whether to show the error message in a floating container.
20
+ * @param props - Textarea and form item props.
21
+ * @returns {JSX.Element | null} A textarea component integrated with react-hook-form, or null if name/control are missing
22
+ */
23
+ export declare const MyTextarea: <TFieldValues extends FieldValues>({ control, name, label, required, rules, className, floatingError, ...props }: MyTextareaProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element | null;
24
+ //# sourceMappingURL=MyTextarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyTextarea.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MyTextarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAIL,KAAK,aAAa,EAIlB,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAG9B;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,YAAY,SAAS,WAAW,IAC1D,aAAa,CAAC,YAAY,CAAC,GAAG,aAAa,CAAC;AAE9C;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,GAAI,YAAY,SAAS,WAAW,EAAE,+EAS1D,eAAe,CAAC,YAAY,CAAC,mDAqC/B,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { TimePickerProps } from 'react-start-kit/calendar';
3
+ import { FormItemProps } from 'react-start-kit/form';
4
+ /**
5
+ * Props for the MyTimePicker component.
6
+ * @template TFieldValues - The type of the form values.
7
+ */
8
+ export type MyTimePickerProps<TFieldValues extends FieldValues> = FormItemProps<TFieldValues> & TimePickerProps & {
9
+ /** Whether the field is required. */
10
+ required?: boolean;
11
+ /** Custom CSS class name. */
12
+ className?: string;
13
+ };
14
+ /**
15
+ * MyTimePicker is a time selection input with optional react-hook-form integration.
16
+ *
17
+ * @template TFieldValues - Form values type used by react-hook-form.
18
+ * @param control - The `react-hook-form` control object.
19
+ * @param name - The name of the field in `react-hook-form`.
20
+ * @param label - The label to display for the time picker.
21
+ * @param required - Whether the field is required.
22
+ * @param className - Custom CSS class name.
23
+ * @param rules - The `react-hook-form` validation rules.
24
+ * @param floatingError - Whether to show the error message in a floating container.
25
+ * @param props - TimePicker and form item props.
26
+ * @returns {JSX.Element} A time picker component integrated with react-hook-form, or standalone TimePicker if no form integration
27
+ */
28
+ export declare const MyTimePicker: <TFieldValues extends FieldValues>({ control, name, label, required, className, rules, floatingError, ...props }: MyTimePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
29
+ //# sourceMappingURL=MyTimePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyTimePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/form/MyTimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAIL,KAAK,aAAa,EAGnB,MAAM,sBAAsB,CAAC;AAG9B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,YAAY,SAAS,WAAW,IAC5D,aAAa,CAAC,YAAY,CAAC,GACzB,eAAe,GAAG;IAChB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEN;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,GAAI,YAAY,SAAS,WAAW,EAAE,+EAS5D,iBAAiB,CAAC,YAAY,CAAC,4CA2BjC,CAAC"}
@@ -0,0 +1,14 @@
1
+ export * from 'react-start-kit/form';
2
+ export * from './MyCheckbox';
3
+ export * from './MyDatePicker';
4
+ export * from './MyDateRangePicker';
5
+ export * from './MyHtmlEditor';
6
+ export * from './MyInput';
7
+ export * from './MyMaskInput';
8
+ export * from './MyRadio';
9
+ export * from './MySelect';
10
+ export * from './MyShadcnSelect';
11
+ export * from './MySwitch';
12
+ export * from './MyTextarea';
13
+ export * from './MyTimePicker';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ /**
3
+ * Interface representing an image item in the gallery.
4
+ */
5
+ export interface GalleryItem {
6
+ /** Unique identifier for the image. */
7
+ id: string;
8
+ /** URL of the full-resolution image. */
9
+ src: string;
10
+ /** URL of the thumbnail image. */
11
+ thumbnail: string;
12
+ /** Alt text for the image. */
13
+ alt: string;
14
+ /** Optional title or description for the image. */
15
+ title?: string;
16
+ }
17
+ /**
18
+ * Props for the Thumbnail component.
19
+ */
20
+ export interface ThumbnailProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
21
+ /** The gallery item to display as a thumbnail. */
22
+ image: GalleryItem;
23
+ /** The index of the item in the gallery. */
24
+ index: number;
25
+ /** Callback executed when the thumbnail is clicked. */
26
+ onClick: (index: number) => void;
27
+ /** URL used when the thumbnail image fails to load. */
28
+ fallbackImage?: string;
29
+ }
30
+ /**
31
+ * Interface representing a custom action button in the fullscreen view.
32
+ */
33
+ export interface GalleryActionButton {
34
+ /** Icon to display on the button. */
35
+ icon: ReactNode;
36
+ /** Label for the button (used as title/tooltip). */
37
+ label: string;
38
+ /** Callback executed when the button is clicked. */
39
+ onClick: (image: GalleryItem) => void;
40
+ /** Custom CSS class name for the button. */
41
+ className?: string;
42
+ }
43
+ /**
44
+ * Props for the MyGallery component.
45
+ */
46
+ export type MyGalleryProps = HTMLAttributes<HTMLDivElement> & {
47
+ /** Array of gallery items to display. */
48
+ images: GalleryItem[];
49
+ /** Additional props to pass to each thumbnail component. */
50
+ thumbnailProps?: ThumbnailProps;
51
+ /** URL used when an image fails to load. */
52
+ fallbackImage?: string;
53
+ /** Custom action buttons rendered in fullscreen. */
54
+ actionButtons?: GalleryActionButton[];
55
+ /** Whether to show image title overlay on thumbnails. */
56
+ hasInfo?: true;
57
+ };
58
+ /**
59
+ * Memoized MyGallery component.
60
+ */
61
+ export declare const MyGallery: import('react').MemoExoticComponent<({ images, thumbnailProps, actionButtons, fallbackImage, className, hasInfo, ...props }: MyGalleryProps) => import("react/jsx-runtime").JSX.Element>;
62
+ //# sourceMappingURL=MyGallery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyGallery.d.ts","sourceRoot":"","sources":["../../../../src/components/gallery/MyGallery.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAGf;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,cAAc,CAAC,cAAc,CAAC,EAC9B,SAAS,CACV;IACC,kDAAkD;IAClD,KAAK,EAAE,WAAW,CAAC;IACnB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,IAAI,EAAE,SAAS,CAAC;IAChB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC5D,yCAAyC;IACzC,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,yDAAyD;IACzD,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB,CAAC;AAwVF;;GAEG;AACH,eAAO,MAAM,SAAS,+HAvOnB,cAAc,6CAuOgC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './MyGallery';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/gallery/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,15 @@
1
+ export * from 'react-toastify';
2
+ export * from './actions';
3
+ export * from './confirm';
4
+ export * from './datatable';
5
+ export * from './datepicker';
6
+ export * from './empty';
7
+ export * from './filters';
8
+ export * from './form';
9
+ export * from './loader';
10
+ export * from './modal';
11
+ export * from './pagination';
12
+ export * from './scroll';
13
+ export * from './theme';
14
+ export * from './tooltip';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from 'react';
2
+ /**
3
+ * Loader shows a centered spinning indicator inside a container.
4
+ *
5
+ * @param props - Optional div HTML attributes.
6
+ * @returns {JSX.Element} A loader component with a spinning indicator.
7
+ */
8
+ declare const Loader: (props?: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
9
+ export default Loader;
10
+ //# sourceMappingURL=Loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../src/components/loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C;;;;;GAKG;AACH,QAAA,MAAM,MAAM,GAAI,QAAQ,cAAc,CAAC,cAAc,CAAC,4CASrD,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'react';
2
+ /**
3
+ * Props for the Spin component.
4
+ */
5
+ export type SpinProps = HTMLAttributes<HTMLOrSVGElement>;
6
+ /**
7
+ * Spin renders a simple SVG spinner. You can override className to change size/color.
8
+ *
9
+ * @param props - Optional HTML/SVG attributes applied to the svg element.
10
+ * @returns {JSX.Element} An SVG spinner element.
11
+ */
12
+ declare const Spin: (props?: SpinProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default Spin;
14
+ //# sourceMappingURL=Spin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spin.d.ts","sourceRoot":"","sources":["../../../../src/components/loader/Spin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,QAAA,MAAM,IAAI,GAAI,QAAQ,SAAS,4CAwB9B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { default as Loader } from './Loader';
2
+ import { default as Spin } from './Spin';
3
+ export { Loader, Spin };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { DialogProps } from '@radix-ui/react-dialog';
2
+ import { ReactNode } from 'react';
3
+ import { DialogContainerProps } from 'react-start-kit/dialog';
4
+ /**
5
+ * Props for the MyModal component.
6
+ * Extends Radix UI's DialogProps.
7
+ *
8
+ * @typedef {Object} MyModalProps
9
+ * @property {ReactNode} [header] - The content to be displayed in the modal header.
10
+ * @property {ReactNode} [trigger] - The element that triggers the modal when clicked.
11
+ * @property {ReactNode} [children] - The main content of the modal.
12
+ * @property {ReactNode} [footer] - The content to be displayed in the modal footer.
13
+ * @property {string} [className] - Additional CSS classes for the modal content.
14
+ * @property {'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full'} [size='lg'] - The maximum width size of the modal.
15
+ * @property {DialogContainerProps['triggerProps']} [triggerProps] - Props passed to the DialogTrigger component.
16
+ * @property {DialogContainerProps['contentProps']} [contentProps] - Props passed to the DialogContent component.
17
+ */
18
+ export type MyModalProps = DialogProps & DialogContainerProps & {
19
+ header?: ReactNode;
20
+ trigger?: ReactNode;
21
+ children?: ReactNode;
22
+ footer?: ReactNode;
23
+ className?: string;
24
+ size?: 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full';
25
+ };
26
+ /**
27
+ * A reusable modal component that wraps the Dialog component from react-start-kit.
28
+ * It provides a structured layout with a header, scrollable content area, and optional footer.
29
+ *
30
+ * @component
31
+ * @param {ReactNode} props.header - The content to be displayed in the modal header
32
+ * @param {ReactNode} props.footer - The content to be displayed in the modal footer
33
+ * @param {ReactNode} props.trigger - The element that triggers the modal when clicked
34
+ * @param {ReactNode} props.children - The main content of the modal
35
+ * @param {'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | 'full'} props.size - The maximum width size of the modal (default: 'lg')
36
+ * @param {string} props.className - Additional CSS classes for the modal content
37
+ * @param {DialogContainerProps['triggerProps']} props.triggerProps - Props passed to the DialogTrigger component
38
+ * @param {DialogContainerProps['contentProps']} props.contentProps - Props passed to the DialogContent component
39
+ * @returns {JSX.Element} A modal dialog component
40
+ *
41
+ * @example
42
+ * <MyModal
43
+ * header="User Settings"
44
+ * trigger={<button>Open Settings</button>}
45
+ * footer={<button onClick={save}>Save</button>}
46
+ * >
47
+ * <p>Settings content goes here...</p>
48
+ * </MyModal>
49
+ */
50
+ export declare const MyModal: ({ header, footer, trigger, children, size, className, triggerProps, contentProps, ...props }: MyModalProps) => import("react/jsx-runtime").JSX.Element;
51
+ //# sourceMappingURL=MyModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyModal.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/MyModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,KAAK,oBAAoB,EAO1B,MAAM,wBAAwB,CAAC;AAGhC;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GACpC,oBAAoB,GAAG;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;CAC7E,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,OAAO,GAAI,8FAUrB,YAAY,4CAgCd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './MyModal';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}