@campxdev/react-blueprint 3.0.0-alpha.5 → 3.0.0-alpha.7

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 (263) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/types/src/components/Assets/ErrorPages/ComingSoon.d.ts +24 -0
  3. package/dist/cjs/types/src/components/Assets/ErrorPages/InternalServerError.d.ts +20 -0
  4. package/dist/cjs/types/src/components/Assets/ErrorPages/NoInternetConnection.d.ts +20 -0
  5. package/dist/cjs/types/src/components/Assets/ErrorPages/NoItemFound.d.ts +28 -0
  6. package/dist/cjs/types/src/components/Assets/ErrorPages/PageNotFound.d.ts +21 -0
  7. package/dist/cjs/types/src/components/Assets/ErrorPages/ResourceNotFound.d.ts +21 -0
  8. package/dist/cjs/types/src/components/Assets/ErrorPages/UnAuthorized.d.ts +31 -0
  9. package/dist/cjs/types/src/components/Assets/Icons/Icons.d.ts +54 -0
  10. package/dist/cjs/types/src/components/Charts/BarChart/BarChart.d.ts +38 -0
  11. package/dist/cjs/types/src/components/Charts/BarChart/HorizontalBarChart.d.ts +93 -0
  12. package/dist/cjs/types/src/components/Charts/BarChart/VerticalBarChart.d.ts +110 -0
  13. package/dist/cjs/types/src/components/Charts/LineChart/LineChart.d.ts +89 -0
  14. package/dist/cjs/types/src/components/Charts/PieChart/PieChart.d.ts +86 -0
  15. package/dist/cjs/types/src/components/Charts/TreeMap/TreeMap.d.ts +74 -0
  16. package/dist/cjs/types/src/components/DataDisplay/Accordion/Accordion.d.ts +54 -0
  17. package/dist/cjs/types/src/components/DataDisplay/ActivityLogView/ActivityLogFilter.d.ts +35 -0
  18. package/dist/cjs/types/src/components/DataDisplay/ActivityLogView/ActivityLogView.d.ts +78 -0
  19. package/dist/cjs/types/src/components/DataDisplay/Avatar/Avatar.d.ts +40 -0
  20. package/dist/cjs/types/src/components/DataDisplay/Chip/Chip.d.ts +28 -0
  21. package/dist/cjs/types/src/components/DataDisplay/Chips/Chips.d.ts +55 -0
  22. package/dist/cjs/types/src/components/DataDisplay/DataTable/DataTable.d.ts +96 -1
  23. package/dist/cjs/types/src/components/DataDisplay/DataTable/components/CardsView.d.ts +14 -2
  24. package/dist/cjs/types/src/components/DataDisplay/DataTable/components/TablePagination.d.ts +35 -0
  25. package/dist/cjs/types/src/components/DataDisplay/EmptyIllustration/EmptyIllustration.d.ts +30 -0
  26. package/dist/cjs/types/src/components/DataDisplay/ReactJoyride/ReactJoyride.d.ts +64 -0
  27. package/dist/cjs/types/src/components/DataDisplay/Separator/Separator.d.ts +30 -0
  28. package/dist/cjs/types/src/components/DataDisplay/Skeleton/Skeleton.d.ts +20 -0
  29. package/dist/cjs/types/src/components/DataDisplay/StatusCard/StatusCard.d.ts +36 -0
  30. package/dist/cjs/types/src/components/DataDisplay/Timeline/Timeline.d.ts +58 -0
  31. package/dist/cjs/types/src/components/DataDisplay/Typography/Typography.d.ts +25 -0
  32. package/dist/cjs/types/src/components/Feedback/Alert/Alert.d.ts +31 -0
  33. package/dist/cjs/types/src/components/Feedback/Snackbar/Snackbar.d.ts +54 -0
  34. package/dist/cjs/types/src/components/Feedback/Spinner/Spinner.d.ts +15 -0
  35. package/dist/cjs/types/src/components/Feedback/Tooltip/Tooltip.d.ts +54 -0
  36. package/dist/cjs/types/src/components/Input/Button/Button.d.ts +26 -0
  37. package/dist/cjs/types/src/components/Input/DatePicker/DatePicker.d.ts +41 -0
  38. package/dist/cjs/types/src/components/Input/DateTimePicker/DateTimePicker.d.ts +42 -0
  39. package/dist/cjs/types/src/components/Input/FileUpload/FileUpload.d.ts +41 -0
  40. package/dist/cjs/types/src/components/Input/FormActions/FormActions.d.ts +37 -0
  41. package/dist/cjs/types/src/components/Input/FormControlWrapper/FormControlWrapper.d.ts +31 -0
  42. package/dist/cjs/types/src/components/Input/FormWrapper/FormWrapper.d.ts +20 -0
  43. package/dist/cjs/types/src/components/Input/HelpButton/HelpButton.d.ts +14 -0
  44. package/dist/cjs/types/src/components/Input/IconButtons/IconButtons/DeleteButton.d.ts +16 -0
  45. package/dist/cjs/types/src/components/Input/IconButtons/IconButtons/EditButton.d.ts +16 -0
  46. package/dist/cjs/types/src/components/Input/IconButtons/IconButtons/RedirectButton.d.ts +16 -0
  47. package/dist/cjs/types/src/components/Input/IconButtons/IconButtons/ViewButton.d.ts +16 -0
  48. package/dist/cjs/types/src/components/Input/IconButtons/IconButtons.d.ts +18 -0
  49. package/dist/cjs/types/src/components/Input/LabelWrapper/LabelWrapper.d.ts +26 -0
  50. package/dist/cjs/types/src/components/Input/MultiCheckBox/MultiCheckBox.d.ts +34 -0
  51. package/dist/cjs/types/src/components/Input/MultiSelect/MultiSelect.d.ts +40 -0
  52. package/dist/cjs/types/src/components/Input/OtpInput/OtpInput.d.ts +29 -0
  53. package/dist/cjs/types/src/components/Input/PasswordField/PasswordField.d.ts +34 -0
  54. package/dist/cjs/types/src/components/Input/RadioGroup/RadioGroup.d.ts +38 -0
  55. package/dist/cjs/types/src/components/Input/SearchBar/SearchBar.d.ts +26 -0
  56. package/dist/cjs/types/src/components/Input/Select/Select.d.ts +32 -0
  57. package/dist/cjs/types/src/components/Input/SingleCheckBox/SingleCheckBox.d.ts +29 -0
  58. package/dist/cjs/types/src/components/Input/SingleSelect/SingleSelect.d.ts +40 -0
  59. package/dist/cjs/types/src/components/Input/Switch/Switch.d.ts +23 -0
  60. package/dist/cjs/types/src/components/Input/Tags/Tags.d.ts +26 -0
  61. package/dist/cjs/types/src/components/Input/TextField/TextField.d.ts +35 -0
  62. package/dist/cjs/types/src/components/Input/Textarea/Textarea.d.ts +36 -0
  63. package/dist/cjs/types/src/components/Layout/AppLayout/AppLayout.d.ts +32 -0
  64. package/dist/cjs/types/src/components/Layout/AppLayout/components/MenuToggleButton.d.ts +16 -0
  65. package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/MenuBar.d.ts +26 -0
  66. package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/MenuItem.d.ts +37 -0
  67. package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/Sidebar.d.ts +30 -1
  68. package/dist/cjs/types/src/components/Layout/AppLayout/components/Sidebar/StyledComponents.d.ts +139 -0
  69. package/dist/cjs/types/src/components/Layout/AppLayout/components/UserProfilePopup.d.ts +34 -0
  70. package/dist/cjs/types/src/components/Layout/AppLayout/context/SidebarContext.d.ts +48 -0
  71. package/dist/cjs/types/src/components/Layout/AppLayout/types.d.ts +1 -1
  72. package/dist/cjs/types/src/components/Layout/PageContent/PageContent.d.ts +21 -1
  73. package/dist/cjs/types/src/components/Layout/PageHeader/PageHeader.d.ts +46 -0
  74. package/dist/cjs/types/src/components/Layout/PageHeader/components/SearchBar.d.ts +22 -0
  75. package/dist/cjs/types/src/components/Layout/UserBox/UserBox.d.ts +40 -0
  76. package/dist/cjs/types/src/components/Navigation/Breadcrumbs/Breadcrumbs.d.ts +33 -0
  77. package/dist/cjs/types/src/components/Navigation/Calendar/Calendar.d.ts +63 -0
  78. package/dist/cjs/types/src/components/Navigation/ConfirmDialog/ConfirmDialog.d.ts +64 -0
  79. package/dist/cjs/types/src/components/Navigation/Dialog/Dialog.d.ts +55 -0
  80. package/dist/cjs/types/src/components/Navigation/DialogButton/DialogButton.d.ts +64 -0
  81. package/dist/cjs/types/src/components/Navigation/DropDownMenu/DropDownMenu.d.ts +73 -0
  82. package/dist/cjs/types/src/components/Navigation/PreviewFiles/PreviewFiles.d.ts +54 -0
  83. package/dist/cjs/types/src/components/Navigation/Stepper/Stepper.d.ts +55 -10
  84. package/dist/cjs/types/src/components/Navigation/TabsContainer/TabsContainer.d.ts +85 -1
  85. package/dist/cjs/types/src/components/Navigation/UploadDialog/UploadDialog.d.ts +64 -0
  86. package/dist/cjs/types/src/shadcn-components/Input/Button/Button.d.ts +1 -1
  87. package/dist/esm/index.js +2 -2
  88. package/dist/esm/types/src/components/Assets/ErrorPages/ComingSoon.d.ts +24 -0
  89. package/dist/esm/types/src/components/Assets/ErrorPages/InternalServerError.d.ts +20 -0
  90. package/dist/esm/types/src/components/Assets/ErrorPages/NoInternetConnection.d.ts +20 -0
  91. package/dist/esm/types/src/components/Assets/ErrorPages/NoItemFound.d.ts +28 -0
  92. package/dist/esm/types/src/components/Assets/ErrorPages/PageNotFound.d.ts +21 -0
  93. package/dist/esm/types/src/components/Assets/ErrorPages/ResourceNotFound.d.ts +21 -0
  94. package/dist/esm/types/src/components/Assets/ErrorPages/UnAuthorized.d.ts +31 -0
  95. package/dist/esm/types/src/components/Assets/Icons/Icons.d.ts +54 -0
  96. package/dist/esm/types/src/components/Charts/BarChart/BarChart.d.ts +38 -0
  97. package/dist/esm/types/src/components/Charts/BarChart/HorizontalBarChart.d.ts +93 -0
  98. package/dist/esm/types/src/components/Charts/BarChart/VerticalBarChart.d.ts +110 -0
  99. package/dist/esm/types/src/components/Charts/LineChart/LineChart.d.ts +89 -0
  100. package/dist/esm/types/src/components/Charts/PieChart/PieChart.d.ts +86 -0
  101. package/dist/esm/types/src/components/Charts/TreeMap/TreeMap.d.ts +74 -0
  102. package/dist/esm/types/src/components/DataDisplay/Accordion/Accordion.d.ts +54 -0
  103. package/dist/esm/types/src/components/DataDisplay/ActivityLogView/ActivityLogFilter.d.ts +35 -0
  104. package/dist/esm/types/src/components/DataDisplay/ActivityLogView/ActivityLogView.d.ts +78 -0
  105. package/dist/esm/types/src/components/DataDisplay/Avatar/Avatar.d.ts +40 -0
  106. package/dist/esm/types/src/components/DataDisplay/Chip/Chip.d.ts +28 -0
  107. package/dist/esm/types/src/components/DataDisplay/Chips/Chips.d.ts +55 -0
  108. package/dist/esm/types/src/components/DataDisplay/DataTable/DataTable.d.ts +96 -1
  109. package/dist/esm/types/src/components/DataDisplay/DataTable/components/CardsView.d.ts +14 -2
  110. package/dist/esm/types/src/components/DataDisplay/DataTable/components/TablePagination.d.ts +35 -0
  111. package/dist/esm/types/src/components/DataDisplay/EmptyIllustration/EmptyIllustration.d.ts +30 -0
  112. package/dist/esm/types/src/components/DataDisplay/ReactJoyride/ReactJoyride.d.ts +64 -0
  113. package/dist/esm/types/src/components/DataDisplay/Separator/Separator.d.ts +30 -0
  114. package/dist/esm/types/src/components/DataDisplay/Skeleton/Skeleton.d.ts +20 -0
  115. package/dist/esm/types/src/components/DataDisplay/StatusCard/StatusCard.d.ts +36 -0
  116. package/dist/esm/types/src/components/DataDisplay/Timeline/Timeline.d.ts +58 -0
  117. package/dist/esm/types/src/components/DataDisplay/Typography/Typography.d.ts +25 -0
  118. package/dist/esm/types/src/components/Feedback/Alert/Alert.d.ts +31 -0
  119. package/dist/esm/types/src/components/Feedback/Snackbar/Snackbar.d.ts +54 -0
  120. package/dist/esm/types/src/components/Feedback/Spinner/Spinner.d.ts +15 -0
  121. package/dist/esm/types/src/components/Feedback/Tooltip/Tooltip.d.ts +54 -0
  122. package/dist/esm/types/src/components/Input/Button/Button.d.ts +26 -0
  123. package/dist/esm/types/src/components/Input/DatePicker/DatePicker.d.ts +41 -0
  124. package/dist/esm/types/src/components/Input/DateTimePicker/DateTimePicker.d.ts +42 -0
  125. package/dist/esm/types/src/components/Input/FileUpload/FileUpload.d.ts +41 -0
  126. package/dist/esm/types/src/components/Input/FormActions/FormActions.d.ts +37 -0
  127. package/dist/esm/types/src/components/Input/FormControlWrapper/FormControlWrapper.d.ts +31 -0
  128. package/dist/esm/types/src/components/Input/FormWrapper/FormWrapper.d.ts +20 -0
  129. package/dist/esm/types/src/components/Input/HelpButton/HelpButton.d.ts +14 -0
  130. package/dist/esm/types/src/components/Input/IconButtons/IconButtons/DeleteButton.d.ts +16 -0
  131. package/dist/esm/types/src/components/Input/IconButtons/IconButtons/EditButton.d.ts +16 -0
  132. package/dist/esm/types/src/components/Input/IconButtons/IconButtons/RedirectButton.d.ts +16 -0
  133. package/dist/esm/types/src/components/Input/IconButtons/IconButtons/ViewButton.d.ts +16 -0
  134. package/dist/esm/types/src/components/Input/IconButtons/IconButtons.d.ts +18 -0
  135. package/dist/esm/types/src/components/Input/LabelWrapper/LabelWrapper.d.ts +26 -0
  136. package/dist/esm/types/src/components/Input/MultiCheckBox/MultiCheckBox.d.ts +34 -0
  137. package/dist/esm/types/src/components/Input/MultiSelect/MultiSelect.d.ts +40 -0
  138. package/dist/esm/types/src/components/Input/OtpInput/OtpInput.d.ts +29 -0
  139. package/dist/esm/types/src/components/Input/PasswordField/PasswordField.d.ts +34 -0
  140. package/dist/esm/types/src/components/Input/RadioGroup/RadioGroup.d.ts +38 -0
  141. package/dist/esm/types/src/components/Input/SearchBar/SearchBar.d.ts +26 -0
  142. package/dist/esm/types/src/components/Input/Select/Select.d.ts +32 -0
  143. package/dist/esm/types/src/components/Input/SingleCheckBox/SingleCheckBox.d.ts +29 -0
  144. package/dist/esm/types/src/components/Input/SingleSelect/SingleSelect.d.ts +40 -0
  145. package/dist/esm/types/src/components/Input/Switch/Switch.d.ts +23 -0
  146. package/dist/esm/types/src/components/Input/Tags/Tags.d.ts +26 -0
  147. package/dist/esm/types/src/components/Input/TextField/TextField.d.ts +35 -0
  148. package/dist/esm/types/src/components/Input/Textarea/Textarea.d.ts +36 -0
  149. package/dist/esm/types/src/components/Layout/AppLayout/AppLayout.d.ts +32 -0
  150. package/dist/esm/types/src/components/Layout/AppLayout/components/MenuToggleButton.d.ts +16 -0
  151. package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/MenuBar.d.ts +26 -0
  152. package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/MenuItem.d.ts +37 -0
  153. package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/Sidebar.d.ts +30 -1
  154. package/dist/esm/types/src/components/Layout/AppLayout/components/Sidebar/StyledComponents.d.ts +139 -0
  155. package/dist/esm/types/src/components/Layout/AppLayout/components/UserProfilePopup.d.ts +34 -0
  156. package/dist/esm/types/src/components/Layout/AppLayout/context/SidebarContext.d.ts +48 -0
  157. package/dist/esm/types/src/components/Layout/AppLayout/types.d.ts +1 -1
  158. package/dist/esm/types/src/components/Layout/PageContent/PageContent.d.ts +21 -1
  159. package/dist/esm/types/src/components/Layout/PageHeader/PageHeader.d.ts +46 -0
  160. package/dist/esm/types/src/components/Layout/PageHeader/components/SearchBar.d.ts +22 -0
  161. package/dist/esm/types/src/components/Layout/UserBox/UserBox.d.ts +40 -0
  162. package/dist/esm/types/src/components/Navigation/Breadcrumbs/Breadcrumbs.d.ts +33 -0
  163. package/dist/esm/types/src/components/Navigation/Calendar/Calendar.d.ts +63 -0
  164. package/dist/esm/types/src/components/Navigation/ConfirmDialog/ConfirmDialog.d.ts +64 -0
  165. package/dist/esm/types/src/components/Navigation/Dialog/Dialog.d.ts +55 -0
  166. package/dist/esm/types/src/components/Navigation/DialogButton/DialogButton.d.ts +64 -0
  167. package/dist/esm/types/src/components/Navigation/DropDownMenu/DropDownMenu.d.ts +73 -0
  168. package/dist/esm/types/src/components/Navigation/PreviewFiles/PreviewFiles.d.ts +54 -0
  169. package/dist/esm/types/src/components/Navigation/Stepper/Stepper.d.ts +55 -10
  170. package/dist/esm/types/src/components/Navigation/TabsContainer/TabsContainer.d.ts +85 -1
  171. package/dist/esm/types/src/components/Navigation/UploadDialog/UploadDialog.d.ts +64 -0
  172. package/dist/esm/types/src/shadcn-components/Input/Button/Button.d.ts +1 -1
  173. package/dist/index.d.ts +2961 -16
  174. package/dist/styles.css +30 -81
  175. package/package.json +1 -1
  176. package/src/components/Assets/ErrorPages/ComingSoon.tsx +24 -0
  177. package/src/components/Assets/ErrorPages/InternalServerError.tsx +20 -0
  178. package/src/components/Assets/ErrorPages/NoInternetConnection.tsx +20 -0
  179. package/src/components/Assets/ErrorPages/NoItemFound.tsx +28 -0
  180. package/src/components/Assets/ErrorPages/PageNotFound.tsx +21 -0
  181. package/src/components/Assets/ErrorPages/ResourceNotFound.tsx +21 -0
  182. package/src/components/Assets/ErrorPages/UnAuthorized.tsx +31 -0
  183. package/src/components/Assets/Icons/Icons.tsx +55 -1
  184. package/src/components/Charts/BarChart/BarChart.tsx +38 -0
  185. package/src/components/Charts/BarChart/HorizontalBarChart.tsx +93 -0
  186. package/src/components/Charts/BarChart/VerticalBarChart.tsx +110 -0
  187. package/src/components/Charts/LineChart/LineChart.tsx +89 -0
  188. package/src/components/Charts/PieChart/PieChart.tsx +86 -0
  189. package/src/components/Charts/TreeMap/TreeMap.tsx +90 -0
  190. package/src/components/DataDisplay/Accordion/Accordion.tsx +54 -0
  191. package/src/components/DataDisplay/ActivityLogView/ActivityLogFilter.tsx +35 -0
  192. package/src/components/DataDisplay/ActivityLogView/ActivityLogView.tsx +84 -0
  193. package/src/components/DataDisplay/Avatar/Avatar.tsx +40 -0
  194. package/src/components/DataDisplay/Chip/Chip.tsx +28 -0
  195. package/src/components/DataDisplay/Chips/Chips.tsx +56 -0
  196. package/src/components/DataDisplay/DataTable/DataTable.tsx +109 -2
  197. package/src/components/DataDisplay/DataTable/components/CardsView.tsx +28 -13
  198. package/src/components/DataDisplay/DataTable/components/ColumnSelector/ColumnSelector.tsx +22 -4
  199. package/src/components/DataDisplay/DataTable/components/TableHeaders/TableActionHeader.tsx +9 -4
  200. package/src/components/DataDisplay/DataTable/components/TablePagination.tsx +35 -0
  201. package/src/components/DataDisplay/DataTable/components/TableView.tsx +5 -1
  202. package/src/components/DataDisplay/EmptyIllustration/EmptyIllustration.tsx +31 -0
  203. package/src/components/DataDisplay/ReactJoyride/ReactJoyride.tsx +64 -0
  204. package/src/components/DataDisplay/Separator/Separator.tsx +32 -0
  205. package/src/components/DataDisplay/Skeleton/Skeleton.tsx +20 -0
  206. package/src/components/DataDisplay/StatusCard/StatusCard.tsx +36 -0
  207. package/src/components/DataDisplay/Timeline/Timeline.tsx +58 -0
  208. package/src/components/DataDisplay/Typography/Typography.tsx +25 -0
  209. package/src/components/Feedback/Alert/Alert.tsx +38 -0
  210. package/src/components/Feedback/Snackbar/Snackbar.tsx +54 -0
  211. package/src/components/Feedback/Spinner/Spinner.tsx +15 -0
  212. package/src/components/Feedback/Tooltip/Tooltip.tsx +54 -0
  213. package/src/components/Input/Button/Button.tsx +26 -0
  214. package/src/components/Input/DatePicker/DatePicker.tsx +41 -0
  215. package/src/components/Input/DateTimePicker/DateTimePicker.tsx +42 -0
  216. package/src/components/Input/FileUpload/FileUpload.tsx +41 -0
  217. package/src/components/Input/FormActions/FormActions.tsx +37 -0
  218. package/src/components/Input/FormControlWrapper/FormControlWrapper.tsx +31 -0
  219. package/src/components/Input/FormWrapper/FormWrapper.tsx +20 -0
  220. package/src/components/Input/HelpButton/HelpButton.tsx +14 -0
  221. package/src/components/Input/IconButtons/IconButtons/DeleteButton.tsx +16 -0
  222. package/src/components/Input/IconButtons/IconButtons/EditButton.tsx +16 -0
  223. package/src/components/Input/IconButtons/IconButtons/RedirectButton.tsx +16 -0
  224. package/src/components/Input/IconButtons/IconButtons/ViewButton.tsx +16 -0
  225. package/src/components/Input/IconButtons/IconButtons.tsx +18 -0
  226. package/src/components/Input/LabelWrapper/LabelWrapper.tsx +26 -0
  227. package/src/components/Input/MultiCheckBox/MultiCheckBox.tsx +34 -0
  228. package/src/components/Input/MultiSelect/MultiSelect.tsx +40 -0
  229. package/src/components/Input/OtpInput/OtpInput.tsx +29 -0
  230. package/src/components/Input/PasswordField/PasswordField.tsx +34 -0
  231. package/src/components/Input/RadioGroup/RadioGroup.tsx +38 -0
  232. package/src/components/Input/SearchBar/SearchBar.tsx +26 -0
  233. package/src/components/Input/Select/Select.tsx +41 -0
  234. package/src/components/Input/SingleCheckBox/SingleCheckBox.tsx +29 -0
  235. package/src/components/Input/SingleSelect/SingleSelect.tsx +40 -0
  236. package/src/components/Input/Switch/Switch.tsx +23 -0
  237. package/src/components/Input/Tags/Tags.tsx +26 -0
  238. package/src/components/Input/TextField/TextField.tsx +35 -0
  239. package/src/components/Input/Textarea/Textarea.tsx +36 -0
  240. package/src/components/Layout/AppLayout/AppLayout.tsx +34 -11
  241. package/src/components/Layout/AppLayout/components/MenuToggleButton.tsx +16 -0
  242. package/src/components/Layout/AppLayout/components/Sidebar/MenuBar.tsx +26 -0
  243. package/src/components/Layout/AppLayout/components/Sidebar/MenuItem.tsx +51 -1
  244. package/src/components/Layout/AppLayout/components/Sidebar/Sidebar.tsx +173 -104
  245. package/src/components/Layout/AppLayout/components/Sidebar/StyledComponents.tsx +139 -9
  246. package/src/components/Layout/AppLayout/components/UserProfilePopup.tsx +35 -1
  247. package/src/components/Layout/AppLayout/context/SidebarContext.tsx +48 -0
  248. package/src/components/Layout/AppLayout/types.ts +1 -1
  249. package/src/components/Layout/PageContent/PageContent.tsx +23 -3
  250. package/src/components/Layout/PageHeader/PageHeader.tsx +68 -7
  251. package/src/components/Layout/PageHeader/components/SearchBar.tsx +22 -0
  252. package/src/components/Layout/UserBox/UserBox.tsx +40 -0
  253. package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +53 -4
  254. package/src/components/Navigation/Calendar/Calendar.tsx +63 -0
  255. package/src/components/Navigation/ConfirmDialog/ConfirmDialog.tsx +64 -0
  256. package/src/components/Navigation/Dialog/Dialog.tsx +62 -2
  257. package/src/components/Navigation/DialogButton/DialogButton.tsx +64 -0
  258. package/src/components/Navigation/DropDownMenu/DropDownMenu.tsx +73 -0
  259. package/src/components/Navigation/PreviewFiles/PreviewFiles.tsx +93 -0
  260. package/src/components/Navigation/Stepper/Stepper.tsx +56 -10
  261. package/src/components/Navigation/TabsContainer/TabsContainer.tsx +86 -1
  262. package/src/components/Navigation/UploadDialog/UploadDialog.tsx +64 -0
  263. package/src/shadcn-components/Layout/Sheet/Sheet.tsx +2 -2
@@ -33,5 +33,47 @@ export type DateTimePickerProps = {
33
33
  type?: 'input' | 'filter';
34
34
  [key: string]: any;
35
35
  };
36
+ /**
37
+ * DateTimePicker component for date and time selection
38
+ *
39
+ * A comprehensive date and time picker component supporting both input and filter modes,
40
+ * with flexible date/time formats, time unit selection, and date restrictions.
41
+ *
42
+ * @component
43
+ * @param {DateTimePickerProps} props - The date time picker properties
44
+ * @param {React.ReactNode | string} [props.label] - Label for the picker
45
+ * @param {string} [props.name] - Name attribute for the input
46
+ * @param {Date} [props.value] - Currently selected date and time
47
+ * @param {(date: Date | undefined) => void} [props.onChange] - Callback fired when date/time changes
48
+ * @param {DateTimeFormat} [props.format] - Date and time format for display
49
+ * @param {DateTimePickerViews[]} [props.views] - Which time units to display (year, month, day, hours, minutes, seconds)
50
+ * @param {string} [props.placeholder] - Placeholder text
51
+ * @param {string} [props.helperText] - Helper text below the input
52
+ * @param {boolean} [props.required] - Whether the field is required
53
+ * @param {boolean} [props.disabled] - Whether the picker is disabled
54
+ * @param {Date} [props.minDate] - Minimum selectable date/time
55
+ * @param {Date} [props.maxDate] - Maximum selectable date/time
56
+ * @param {boolean} [props.disablePast] - Whether past dates/times are disabled
57
+ * @param {boolean} [props.disableFuture] - Whether future dates/times are disabled
58
+ * @param {(date: Date) => boolean} [props.shouldDisableDate] - Custom date disable logic
59
+ * @param {(date: Date) => boolean} [props.shouldDisableMonth] - Custom month disable logic
60
+ * @param {(date: Date) => boolean} [props.shouldDisableYear] - Custom year disable logic
61
+ * @param {boolean} [props.fullWidth] - Whether the picker takes full width
62
+ * @param {'input' | 'filter'} [props.type='input'] - Display type of the picker
63
+ * @param {() => void} [props.onOpen] - Callback when picker opens
64
+ * @param {() => void} [props.onClose] - Callback when picker closes
65
+ * @returns {React.ReactElement} The rendered date time picker component
66
+ *
67
+ * @example
68
+ * ```tsx
69
+ * <DateTimePicker
70
+ * label="Select Date & Time"
71
+ * value={dateTime}
72
+ * onChange={setDateTime}
73
+ * format="dd/MM/yyyy hh:mm a"
74
+ * views={['year', 'month', 'day', 'hours', 'minutes']}
75
+ * />
76
+ * ```
77
+ */
36
78
  export declare const DateTimePicker: ({ type, ...props }: DateTimePickerProps) => import("react/jsx-runtime").JSX.Element;
37
79
  export {};
@@ -18,4 +18,45 @@ export type FileUploadProps = {
18
18
  previewClassName?: string;
19
19
  required?: boolean;
20
20
  };
21
+ /**
22
+ * FileUpload component for file selection and management
23
+ *
24
+ * A comprehensive file upload component with drag-and-drop support, file validation,
25
+ * preview capabilities, and file management features.
26
+ *
27
+ * @component
28
+ * @param {FileUploadProps} props - The file upload properties
29
+ * @param {string} props.label - Label text for the upload field
30
+ * @param {string} props.name - Name attribute for the input element
31
+ * @param {File[]} [props.files=[]] - Array of currently selected files
32
+ * @param {(files: File[]) => void} [props.onChange] - Callback fired when files are selected
33
+ * @param {(index: number) => void} [props.handleRemove] - Callback to remove a file by index
34
+ * @param {'image/*' | '.pdf' | '.docx' | '.txt' | '*'} [props.accept='*'] - File type filter
35
+ * @param {(file: File) => void} [props.onInvalidFile] - Callback fired when an invalid file is selected
36
+ * @param {string} [props.inputText] - Custom text for the upload prompt
37
+ * @param {boolean} [props.multiple=true] - Whether multiple files can be selected
38
+ * @param {boolean} [props.disabled=false] - Whether the upload is disabled
39
+ * @param {boolean} [props.hideDeleteButton=false] - Whether to hide delete buttons on files
40
+ * @param {boolean} [props.hideInput=false] - Whether to hide the file input area
41
+ * @param {string} [props.errorText] - Error message to display
42
+ * @param {string} [props.className] - Additional CSS classes for the upload area
43
+ * @param {string} [props.containerClassName] - Additional CSS classes for the container
44
+ * @param {boolean} [props.showImage] - Whether to show image previews instead of file list
45
+ * @param {string} [props.previewClassName] - Additional CSS classes for previews
46
+ * @param {boolean} [props.required] - Whether the field is required
47
+ * @returns {React.ReactElement} The rendered file upload component
48
+ *
49
+ * @example
50
+ * ```tsx
51
+ * <FileUpload
52
+ * label="Upload Documents"
53
+ * name="documents"
54
+ * files={files}
55
+ * onChange={setFiles}
56
+ * accept=".pdf,.docx"
57
+ * multiple
58
+ * required
59
+ * />
60
+ * ```
61
+ */
21
62
  export declare const FileUpload: ({ label, name, disabled, onChange, handleRemove, files, accept, inputText, onInvalidFile, hideDeleteButton, hideInput, multiple, errorText, showImage, previewClassName, className, containerClassName, required, }: FileUploadProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,4 +10,41 @@ export interface FormActionsProps {
10
10
  className?: string;
11
11
  showTopBorder?: boolean;
12
12
  }
13
+ /**
14
+ * FormActions component for form submission and cancellation
15
+ *
16
+ * A component that renders submit and cancel buttons with customizable configurations
17
+ * and visibility options. Typically used at the bottom of forms.
18
+ *
19
+ * @component
20
+ * @param {FormActionsProps} props - The form actions properties
21
+ * @param {ButtonConfig} [props.submitButtonProps] - Configuration for the submit button
22
+ * @param {ButtonConfig} [props.submitButtonProps.show=true] - Whether to show the submit button
23
+ * @param {string} [props.submitButtonProps.title='Submit'] - Submit button label
24
+ * @param {() => void} [props.submitButtonProps.onClick] - Callback when submit is clicked
25
+ * @param {ButtonConfig} [props.cancelButtonProps] - Configuration for the cancel button
26
+ * @param {ButtonConfig} [props.cancelButtonProps.show=true] - Whether to show the cancel button
27
+ * @param {string} [props.cancelButtonProps.title='Cancel'] - Cancel button label
28
+ * @param {() => void} [props.cancelButtonProps.onClick] - Callback when cancel is clicked
29
+ * @param {string} [props.className] - Additional CSS classes to apply
30
+ * @param {boolean} [props.showTopBorder=false] - Whether to show a top border
31
+ * @returns {React.ReactElement} The rendered form actions component
32
+ *
33
+ * @example
34
+ * ```tsx
35
+ * <FormActions
36
+ * submitButtonProps={{
37
+ * title: 'Save Changes',
38
+ * onClick: handleSubmit,
39
+ * variant: 'default'
40
+ * }}
41
+ * cancelButtonProps={{
42
+ * title: 'Discard',
43
+ * onClick: handleCancel,
44
+ * variant: 'ghost'
45
+ * }}
46
+ * showTopBorder
47
+ * />
48
+ * ```
49
+ */
13
50
  export declare const FormActions: ({ submitButtonProps, cancelButtonProps, className, showTopBorder, }: FormActionsProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,5 +8,36 @@ interface FormControlWrapperProps<T extends FieldValues = FieldValues> {
8
8
  formActionProps?: FormActionsProps;
9
9
  disabled?: boolean;
10
10
  }
11
+ /**
12
+ * FormControlWrapper component for react-hook-form integration
13
+ *
14
+ * A wrapper component that integrates react-hook-form's Controller with form elements,
15
+ * automatically handling field registration, validation, and error display.
16
+ *
17
+ * @component
18
+ * @template T - The form values type from react-hook-form
19
+ * @param {FormControlWrapperProps<T>} props - The wrapper properties
20
+ * @param {Control<T>} props.control - React Hook Form control instance from useForm()
21
+ * @param {ReactNode} props.children - Child form elements to be controlled
22
+ * @param {string} [props.containerClassName] - Additional CSS classes for the container
23
+ * @param {FormActionsProps} [props.formActionProps] - Properties for form submit/cancel buttons
24
+ * @param {boolean} [props.disabled=false] - Whether all controlled fields are disabled
25
+ * @returns {React.ReactElement} The rendered wrapper with controlled form elements
26
+ *
27
+ * @example
28
+ * ```tsx
29
+ * const { control, handleSubmit } = useForm();
30
+ *
31
+ * <FormControlWrapper
32
+ * control={control}
33
+ * formActionProps={{
34
+ * submitButtonProps: { onClick: handleSubmit(onSubmit) }
35
+ * }}
36
+ * >
37
+ * <TextField name="email" label="Email" />
38
+ * <PasswordField name="password" label="Password" />
39
+ * </FormControlWrapper>
40
+ * ```
41
+ */
11
42
  export declare function FormControlWrapper<T extends FieldValues = FieldValues>({ control, children, containerClassName, formActionProps, disabled, }: FormControlWrapperProps<T>): import("react/jsx-runtime").JSX.Element;
12
43
  export {};
@@ -3,5 +3,25 @@ type FormWrapperProps = {
3
3
  children: ReactNode;
4
4
  className?: string;
5
5
  };
6
+ /**
7
+ * FormWrapper component for layout styling
8
+ *
9
+ * A simple wrapper component that provides default styling and spacing for form elements.
10
+ * Used to maintain consistent form layout and spacing throughout the application.
11
+ *
12
+ * @component
13
+ * @param {FormWrapperProps} props - The wrapper properties
14
+ * @param {ReactNode} props.children - Child form elements
15
+ * @param {string} [props.className] - Additional CSS classes to apply
16
+ * @returns {React.ReactElement} The styled form wrapper container
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * <FormWrapper>
21
+ * <TextField label="Name" name="name" />
22
+ * <TextField label="Email" name="email" />
23
+ * </FormWrapper>
24
+ * ```
25
+ */
6
26
  export declare const FormWrapper: ({ children, className }: FormWrapperProps) => import("react/jsx-runtime").JSX.Element;
7
27
  export {};
@@ -1,2 +1,16 @@
1
+ /**
2
+ * HelpButton component for documentation access
3
+ *
4
+ * A button component that opens the help/documentation page in a new window
5
+ * when clicked. Features a question mark icon.
6
+ *
7
+ * @component
8
+ * @returns {React.ReactElement} The rendered help button
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <HelpButton />
13
+ * ```
14
+ */
1
15
  declare const HelpButton: () => import("react/jsx-runtime").JSX.Element;
2
16
  export default HelpButton;
@@ -1,2 +1,18 @@
1
1
  import { ButtonProps } from '../../Button/Button';
2
+ /**
3
+ * DeleteButton component for delete actions
4
+ *
5
+ * An icon button with a trash icon for triggering delete/remove actions.
6
+ * Minimal styling suitable for use in tables and lists.
7
+ *
8
+ * @component
9
+ * @param {ButtonProps} props - Button properties
10
+ * @param {boolean} [props.disabled] - Whether the button is disabled
11
+ * @returns {React.ReactElement} The rendered delete button
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <DeleteButton onClick={handleDelete} />
16
+ * ```
17
+ */
2
18
  export declare function DeleteButton({ disabled, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,18 @@
1
1
  import { ButtonProps } from '../../Button/Button';
2
+ /**
3
+ * EditButton component for edit actions
4
+ *
5
+ * An icon button with a pencil icon for triggering edit/modify actions.
6
+ * Minimal styling suitable for use in tables and lists.
7
+ *
8
+ * @component
9
+ * @param {ButtonProps} props - Button properties
10
+ * @param {boolean} [props.disabled] - Whether the button is disabled
11
+ * @returns {React.ReactElement} The rendered edit button
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <EditButton onClick={handleEdit} />
16
+ * ```
17
+ */
2
18
  export declare function EditButton({ disabled, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,18 @@
1
1
  import { ButtonProps } from '../../Button/Button';
2
+ /**
3
+ * RedirectButton component for navigation/external link actions
4
+ *
5
+ * An icon button with an external link arrow icon for redirecting users
6
+ * to other pages or external URLs. Minimal styling suitable for use in tables and lists.
7
+ *
8
+ * @component
9
+ * @param {ButtonProps} props - Button properties
10
+ * @param {boolean} [props.disabled] - Whether the button is disabled
11
+ * @returns {React.ReactElement} The rendered redirect button
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <RedirectButton onClick={() => window.open(url)} />
16
+ * ```
17
+ */
2
18
  export declare function RedirectButton({ disabled, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,18 @@
1
1
  import { ButtonProps } from '../../Button/Button';
2
+ /**
3
+ * ViewButton component for view/preview actions
4
+ *
5
+ * An icon button with an eye icon for triggering view/preview actions.
6
+ * Minimal styling suitable for use in tables and lists.
7
+ *
8
+ * @component
9
+ * @param {ButtonProps} props - Button properties
10
+ * @param {boolean} [props.disabled] - Whether the button is disabled
11
+ * @returns {React.ReactElement} The rendered view button
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <ViewButton onClick={handleView} />
16
+ * ```
17
+ */
2
18
  export declare function ViewButton({ disabled, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,24 @@ import { DeleteButton } from './IconButtons/DeleteButton';
2
2
  import { EditButton } from './IconButtons/EditButton';
3
3
  import { RedirectButton } from './IconButtons/RedirectButton';
4
4
  import { ViewButton } from './IconButtons/ViewButton';
5
+ /**
6
+ * IconButtons object namespace
7
+ *
8
+ * A collection of common action icon buttons for use in tables and lists.
9
+ * All buttons are minimal icon-only buttons with consistent styling.
10
+ *
11
+ * @namespace IconButtons
12
+ * @property {typeof DeleteButton} DeleteButton - Button with trash icon for delete actions
13
+ * @property {typeof EditButton} EditButton - Button with pencil icon for edit actions
14
+ * @property {typeof ViewButton} ViewButton - Button with eye icon for view/preview actions
15
+ * @property {typeof RedirectButton} RedirectButton - Button with external link icon for navigation
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * <IconButtons.DeleteButton onClick={handleDelete} />
20
+ * <IconButtons.EditButton onClick={handleEdit} />
21
+ * ```
22
+ */
5
23
  export declare const IconButtons: {
6
24
  DeleteButton: typeof DeleteButton;
7
25
  EditButton: typeof EditButton;
@@ -6,4 +6,30 @@ export interface LabelWrapperProps {
6
6
  children: ReactNode;
7
7
  containerProps?: React.HTMLAttributes<HTMLDivElement>;
8
8
  }
9
+ /**
10
+ * LabelWrapper component for form field labeling
11
+ *
12
+ * A wrapper component that provides consistent label styling and required field indicators.
13
+ * Automatically handles string labels and custom label elements.
14
+ *
15
+ * @component
16
+ * @param {LabelWrapperProps} props - The wrapper properties
17
+ * @param {boolean} props.required - Whether the field is required (adds asterisk indicator)
18
+ * @param {string} [props.name] - Name attribute for the associated label
19
+ * @param {ReactNode | string} [props.label] - The label text or element
20
+ * @param {ReactNode} props.children - The form element to be labeled
21
+ * @param {React.HTMLAttributes<HTMLDivElement>} [props.containerProps] - Additional container attributes
22
+ * @returns {React.ReactElement} The label and children wrapped in a container
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <LabelWrapper
27
+ * label="Email Address"
28
+ * name="email"
29
+ * required
30
+ * >
31
+ * <Input type="email" />
32
+ * </LabelWrapper>
33
+ * ```
34
+ */
9
35
  export declare const LabelWrapper: ({ required, name, children, containerProps, label, }: LabelWrapperProps) => import("react/jsx-runtime").JSX.Element;
@@ -13,4 +13,38 @@ export type MultiCheckboxProps = {
13
13
  name: string;
14
14
  className?: string;
15
15
  };
16
+ /**
17
+ * MultiCheckBox component for multi-value checkbox selection
18
+ *
19
+ * A component that renders multiple checkboxes in a row or column layout,
20
+ * allowing users to select multiple values from a set of options.
21
+ *
22
+ * @component
23
+ * @param {MultiCheckboxProps} props - The checkbox group properties
24
+ * @param {string} props.label - Group label text
25
+ * @param {Array<{label: ReactNode, value: any}>} props.options - Available checkbox options
26
+ * @param {any[]} props.values - Currently selected values
27
+ * @param {(values: any[]) => void} props.onChange - Callback when selection changes
28
+ * @param {string} props.name - Name attribute for the checkbox group
29
+ * @param {boolean} props.required - Whether the field is required
30
+ * @param {'row' | 'column'} [props.direction='column'] - Layout direction for checkboxes
31
+ * @param {string} [props.className] - Additional CSS classes for the options container
32
+ * @param {React.HTMLAttributes<HTMLDivElement>} [props.containerProps] - Additional container attributes
33
+ * @returns {React.ReactElement} The rendered checkbox group
34
+ *
35
+ * @example
36
+ * ```tsx
37
+ * <MultiCheckBox
38
+ * label="Select Features"
39
+ * name="features"
40
+ * values={selectedFeatures}
41
+ * onChange={setSelectedFeatures}
42
+ * required
43
+ * options={[
44
+ * { label: 'Feature A', value: 'a' },
45
+ * { label: 'Feature B', value: 'b' }
46
+ * ]}
47
+ * />
48
+ * ```
49
+ */
16
50
  export declare const MultiCheckBox: ({ name, options, required, containerProps, label, direction, values, onChange, className, ...rest }: MultiCheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -38,5 +38,45 @@ export type MultiSelectProps = {
38
38
  disabled?: boolean;
39
39
  loading?: boolean;
40
40
  };
41
+ /**
42
+ * MultiSelect component for multi-value selection
43
+ *
44
+ * A feature-rich multi-select component supporting both local and API-driven options,
45
+ * with search, pagination, filtering, and flexible display modes.
46
+ *
47
+ * @component
48
+ * @param {MultiSelectProps} props - The select properties
49
+ * @param {Array<{label: string, subLabel?: string, value: any, icon?: ReactNode}>} [props.options] - Static options array
50
+ * @param {string} [props.optionsApiEndPoint] - API endpoint for dynamic options loading
51
+ * @param {any} [props.optionsApiEndpointParams] - Additional parameters for API requests
52
+ * @param {AxiosInstance} [props.externalAxios] - Custom axios instance for API calls
53
+ * @param {any[]} [props.value] - Currently selected values
54
+ * @param {(values: any[]) => void} [props.onChange] - Callback fired when selection changes
55
+ * @param {(option: any) => any} [props.getValue] - Function to extract value from option object
56
+ * @param {{valueKey: string, isObjectId?: boolean, isInt?: boolean, isFloat?: boolean}} [props.dbValueProps] - Database value mapping properties
57
+ * @param {{labelKey: string, subLabelKey?: string, useLabelStartCase?: boolean, useSubLabelStartCase?: boolean}} [props.dbLabelProps] - Database label mapping properties
58
+ * @param {string} [props.label] - Label for the select
59
+ * @param {string} [props.name] - Name attribute
60
+ * @param {boolean} [props.required] - Whether the field is required
61
+ * @param {boolean} [props.disabled] - Whether the select is disabled
62
+ * @param {boolean} [props.loading] - Whether options are loading
63
+ * @param {boolean} [props.disableClear] - Whether to hide the clear button
64
+ * @param {boolean} [props.fullWidth] - Whether the select takes full width
65
+ * @param {'input' | 'filter'} [props.type='input'] - Display type
66
+ * @param {(event: SyntheticEvent) => void} [props.onOpen] - Callback when menu opens
67
+ * @param {(event: SyntheticEvent, reason: string) => void} [props.onClose] - Callback when menu closes
68
+ * @returns {React.ReactElement} The rendered multi-select component
69
+ *
70
+ * @example
71
+ * ```tsx
72
+ * <MultiSelect
73
+ * label="Select Users"
74
+ * value={selectedUsers}
75
+ * onChange={setSelectedUsers}
76
+ * options={users}
77
+ * required
78
+ * />
79
+ * ```
80
+ */
41
81
  export declare const MultiSelect: ({ options, optionsApiEndPoint, optionsApiEndpointParams, externalAxios, getValue, value, onChange, dbValueProps, dbLabelProps, onOpen, onClose, type, ...restProps }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
42
82
  export default MultiSelect;
@@ -9,5 +9,34 @@ interface OtpInputProps {
9
9
  error?: boolean;
10
10
  helperText?: string;
11
11
  }
12
+ /**
13
+ * OtpInput component for one-time password entry
14
+ *
15
+ * A component that renders a sequence of single-digit input fields for OTP entry,
16
+ * with auto-focus, paste support, and keyboard navigation.
17
+ *
18
+ * @component
19
+ * @param {OtpInputProps} props - The OTP input properties
20
+ * @param {number} props.length - Number of OTP digits
21
+ * @param {(otp: string) => void} props.onChangeOtp - Callback fired when OTP changes
22
+ * @param {string} [props.label] - Optional label for the OTP input group
23
+ * @param {string} [props.name] - Name attribute for the inputs
24
+ * @param {boolean} [props.required] - Whether the field is required
25
+ * @param {boolean} [props.error=false] - Whether there's a validation error
26
+ * @param {string} [props.helperText] - Helper or error text to display
27
+ * @param {string} [props.containerClassName] - Additional CSS classes for the input container
28
+ * @param {string} [props.inputClassName] - Additional CSS classes for individual inputs
29
+ * @returns {React.ReactElement} The rendered OTP input component
30
+ *
31
+ * @example
32
+ * ```tsx
33
+ * <OtpInput
34
+ * length={6}
35
+ * onChangeOtp={setOtp}
36
+ * label="Enter Verification Code"
37
+ * required
38
+ * />
39
+ * ```
40
+ */
12
41
  export declare const OtpInput: ({ length, onChangeOtp, containerClassName, inputClassName, label, name, required, error, helperText, }: OtpInputProps) => import("react/jsx-runtime").JSX.Element;
13
42
  export type { OtpInputProps };
@@ -13,4 +13,38 @@ export type PasswordFieldProps = {
13
13
  className?: string;
14
14
  fullWidth?: boolean;
15
15
  } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'>;
16
+ /**
17
+ * PasswordField component for password input
18
+ *
19
+ * A text input field specialized for password entry with visibility toggle,
20
+ * error states, and helper text support.
21
+ *
22
+ * @component
23
+ * @param {PasswordFieldProps} props - The password field properties
24
+ * @param {string} [props.label] - Label for the field
25
+ * @param {string} [props.name] - Name attribute for the input
26
+ * @param {string} [props.value] - Current input value
27
+ * @param {(e: React.ChangeEvent<HTMLInputElement>) => void} [props.onChange] - Callback when value changes
28
+ * @param {string} [props.placeholder='Enter password'] - Placeholder text
29
+ * @param {boolean} [props.required] - Whether the field is required
30
+ * @param {boolean} [props.disabled] - Whether the field is disabled
31
+ * @param {boolean} [props.error] - Whether there's a validation error
32
+ * @param {string} [props.helperText] - Helper or error text
33
+ * @param {string} [props.description] - Additional description text
34
+ * @param {boolean} [props.fullWidth] - Whether the field takes full width
35
+ * @param {string} [props.className] - Additional CSS classes
36
+ * @param {React.HTMLAttributes<HTMLDivElement>} [props.containerProps] - Container attributes
37
+ * @returns {React.ReactElement} The rendered password field component
38
+ *
39
+ * @example
40
+ * ```tsx
41
+ * <PasswordField
42
+ * label="Password"
43
+ * name="password"
44
+ * value={password}
45
+ * onChange={(e) => setPassword(e.target.value)}
46
+ * required
47
+ * />
48
+ * ```
49
+ */
16
50
  export declare const PasswordField: ({ name, label, value, onChange, required, containerProps, description, placeholder, disabled, error, helperText, className, fullWidth, ...rest }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -19,4 +19,42 @@ export type RadioGroupProps = {
19
19
  error?: boolean;
20
20
  helperText?: ReactNode;
21
21
  };
22
+ /**
23
+ * RadioGroup component for exclusive single-value selection
24
+ *
25
+ * A component that renders a group of radio buttons allowing users to select
26
+ * exactly one value from a set of options, with row or column layout.
27
+ *
28
+ * @component
29
+ * @param {RadioGroupProps} props - The radio group properties
30
+ * @param {string} props.name - Name attribute for the radio group
31
+ * @param {Array<{label: ReactNode, value: any, disabled?: boolean}>} props.options - Available radio options
32
+ * @param {string} [props.label] - Group label text
33
+ * @param {any} [props.value] - Currently selected value (controlled)
34
+ * @param {any} [props.defaultValue] - Default selected value (uncontrolled)
35
+ * @param {(value: any) => void} [props.onChange] - Callback when selection changes
36
+ * @param {(value: string) => void} [props.onValueChange] - Alternative callback when selection changes
37
+ * @param {boolean} [props.required] - Whether the field is required
38
+ * @param {boolean} [props.disabled] - Whether all options are disabled
39
+ * @param {'row' | 'column'} [props.direction='column'] - Layout direction for radio buttons
40
+ * @param {boolean} [props.error] - Whether there's a validation error
41
+ * @param {ReactNode} [props.helperText] - Helper or error text
42
+ * @param {string} [props.className] - Additional CSS classes for the radio container
43
+ * @param {React.HTMLAttributes<HTMLDivElement>} [props.containerProps] - Container attributes
44
+ * @returns {React.ReactElement} The rendered radio group component
45
+ *
46
+ * @example
47
+ * ```tsx
48
+ * <RadioGroup
49
+ * name="status"
50
+ * label="Select Status"
51
+ * value={status}
52
+ * onChange={setStatus}
53
+ * options={[
54
+ * { label: 'Active', value: 'active' },
55
+ * { label: 'Inactive', value: 'inactive' }
56
+ * ]}
57
+ * />
58
+ * ```
59
+ */
22
60
  export declare const RadioGroup: ({ label, required, options, name, containerProps, disabled, onChange, onValueChange, direction, className, error, helperText, ...rest }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,4 +8,30 @@ export type SearchBarProps = {
8
8
  containerClassName?: string;
9
9
  inputClassName?: string;
10
10
  } & Omit<React.ComponentProps<'input'>, 'onChange' | 'value'>;
11
+ /**
12
+ * SearchBar component for search input
13
+ *
14
+ * A search input component with built-in debouncing for efficient search operations,
15
+ * featuring a search icon and customizable styling.
16
+ *
17
+ * @component
18
+ * @param {SearchBarProps} props - The search bar properties
19
+ * @param {string} [props.placeholder='Search by Name'] - Placeholder text
20
+ * @param {string | ReactNode} [props.label] - Optional label above the search input
21
+ * @param {string} [props.value=''] - Current search value
22
+ * @param {(value: string) => void} [props.onSearch] - Callback fired when search value changes (debounced)
23
+ * @param {string} [props.className] - Additional CSS classes for the input wrapper
24
+ * @param {string} [props.containerClassName] - Additional CSS classes for the container
25
+ * @param {string} [props.inputClassName] - Additional CSS classes for the input element
26
+ * @returns {React.ReactElement} The rendered search bar component
27
+ *
28
+ * @example
29
+ * ```tsx
30
+ * <SearchBar
31
+ * label="Search Users"
32
+ * placeholder="Enter username..."
33
+ * onSearch={handleSearch}
34
+ * />
35
+ * ```
36
+ */
11
37
  export declare const SearchBar: ({ placeholder, label, value, onSearch, className, containerClassName, inputClassName, ...rest }: SearchBarProps) => import("react/jsx-runtime").JSX.Element;
@@ -14,4 +14,36 @@ export type SelectProps = {
14
14
  fullWidth?: boolean;
15
15
  loading?: boolean;
16
16
  };
17
+ /**
18
+ * Select component for single-value selection
19
+ *
20
+ * A select dropdown component with support for colors, loading states, and flexible sizing.
21
+ * Built on shadcn's Select component with additional enhancements.
22
+ *
23
+ * @component
24
+ * @param {SelectProps} props - The select properties
25
+ * @param {Array<{label: React.ReactNode, value: string | number, color?: string}>} props.options - Available select options
26
+ * @param {(value: string) => void} [props.onChange] - Callback fired when selection changes
27
+ * @param {string | number} [props.value] - Currently selected value (controlled)
28
+ * @param {string | number} [props.defaultValue] - Default selected value (uncontrolled)
29
+ * @param {string} [props.placeholder='Select an option...'] - Placeholder text when no value selected
30
+ * @param {boolean} [props.disabled] - Whether the select is disabled
31
+ * @param {boolean} [props.loading] - Whether options are loading
32
+ * @param {boolean} [props.fullWidth] - Whether the select takes full width
33
+ * @param {string} [props.className] - Additional CSS classes
34
+ * @returns {React.ReactElement} The rendered select component
35
+ *
36
+ * @example
37
+ * ```tsx
38
+ * <Select
39
+ * options={[
40
+ * { label: 'Option 1', value: 'opt1', color: 'blue' },
41
+ * { label: 'Option 2', value: 'opt2', color: 'green' }
42
+ * ]}
43
+ * value={selected}
44
+ * onChange={setSelected}
45
+ * placeholder="Choose an option"
46
+ * />
47
+ * ```
48
+ */
17
49
  export declare const Select: ({ options, onChange, value, placeholder, className, defaultValue, disabled, fullWidth, loading, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -11,4 +11,33 @@ export type CheckboxProps = {
11
11
  disabled?: boolean;
12
12
  name?: string;
13
13
  } & Omit<React.ComponentProps<typeof CheckboxPrimitive.Root>, 'checked' | 'onChange' | 'onCheckedChange'>;
14
+ /**
15
+ * SingleCheckBox component for single checkbox selection
16
+ *
17
+ * A checkbox component with label support, validation states, and required field indicators.
18
+ * Built on Radix UI's checkbox primitive.
19
+ *
20
+ * @component
21
+ * @param {CheckboxProps} props - The checkbox properties
22
+ * @param {ReactNode} props.label - Label text for the checkbox
23
+ * @param {boolean} [props.checked] - Whether the checkbox is checked (controlled)
24
+ * @param {(checked: boolean) => void} [props.onChange] - Callback when checked state changes
25
+ * @param {string} [props.name] - Name attribute for the checkbox
26
+ * @param {boolean} [props.required] - Whether the field is required
27
+ * @param {boolean} [props.disabled] - Whether the checkbox is disabled
28
+ * @param {string} [props.className] - Additional CSS classes for the checkbox
29
+ * @param {string} [props.labelClassName] - Additional CSS classes for the label
30
+ * @param {string} [props.containerClassName='flex items-center space-x-2'] - Additional CSS classes for the container
31
+ * @returns {React.ReactElement} The rendered checkbox component
32
+ *
33
+ * @example
34
+ * ```tsx
35
+ * <SingleCheckBox
36
+ * label="I agree to the terms"
37
+ * checked={agreed}
38
+ * onChange={setAgreed}
39
+ * required
40
+ * />
41
+ * ```
42
+ */
14
43
  export declare const SingleCheckBox: ({ checked, label, onChange, required, className, labelClassName, containerClassName, disabled, name, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;