@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
@@ -54,6 +54,46 @@ export type SingleSelectProps = {
54
54
  loading?: boolean;
55
55
  };
56
56
 
57
+ /**
58
+ * SingleSelect component for single-value selection
59
+ *
60
+ * A feature-rich single-select component supporting both local and API-driven options,
61
+ * with search, pagination, filtering, and flexible display modes.
62
+ *
63
+ * @component
64
+ * @param {SingleSelectProps} props - The select properties
65
+ * @param {Array<{label: string, subLabel?: string, value: any, icon?: ReactNode}>} [props.options] - Static options array
66
+ * @param {string} [props.optionsApiEndPoint] - API endpoint for dynamic options loading
67
+ * @param {any} [props.optionsApiEndpointParams] - Additional parameters for API requests
68
+ * @param {AxiosInstance} [props.externalAxios] - Custom axios instance for API calls
69
+ * @param {any} [props.value] - Currently selected value
70
+ * @param {(value: any) => void} [props.onChange] - Callback fired when selection changes
71
+ * @param {(option: any) => any} [props.getValue] - Function to extract value from option object
72
+ * @param {{valueKey: string, isObjectId?: boolean, isInt?: boolean, isFloat?: boolean}} [props.dbValueProps] - Database value mapping properties
73
+ * @param {{labelKey: string, subLabelKey?: string, useLabelStartCase?: boolean, useSubLabelStartCase?: boolean}} [props.dbLabelProps] - Database label mapping properties
74
+ * @param {string} [props.label] - Label for the select
75
+ * @param {string} [props.name] - Name attribute
76
+ * @param {boolean} [props.required] - Whether the field is required
77
+ * @param {boolean} [props.disabled] - Whether the select is disabled
78
+ * @param {boolean} [props.loading] - Whether options are loading
79
+ * @param {boolean} [props.disableClear] - Whether to hide the clear button
80
+ * @param {boolean} [props.fullWidth] - Whether the select takes full width
81
+ * @param {'input' | 'filter'} [props.type='input'] - Display type
82
+ * @param {(event: SyntheticEvent) => void} [props.onOpen] - Callback when menu opens
83
+ * @param {(event: SyntheticEvent, reason: string) => void} [props.onClose] - Callback when menu closes
84
+ * @returns {React.ReactElement} The rendered single-select component
85
+ *
86
+ * @example
87
+ * ```tsx
88
+ * <SingleSelect
89
+ * label="Select User"
90
+ * value={selectedUser}
91
+ * onChange={setSelectedUser}
92
+ * options={users}
93
+ * required
94
+ * />
95
+ * ```
96
+ */
57
97
  export const SingleSelect = ({
58
98
  options,
59
99
  optionsApiEndPoint,
@@ -7,6 +7,29 @@ export interface SwitchProps
7
7
  label?: string;
8
8
  }
9
9
 
10
+ /**
11
+ * Switch component for boolean toggle input
12
+ *
13
+ * A toggle switch component with optional label support, built on shadcn's Switch.
14
+ * Renders a label beside the switch if provided.
15
+ *
16
+ * @component
17
+ * @param {SwitchProps} props - The switch properties
18
+ * @param {string} [props.label] - Optional label text to display next to the switch
19
+ * @param {boolean} [props.checked] - Whether the switch is checked
20
+ * @param {(checked: boolean) => void} [props.onCheckedChange] - Callback when switch state changes
21
+ * @param {boolean} [props.disabled] - Whether the switch is disabled
22
+ * @returns {React.ReactElement} The rendered switch component
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <Switch
27
+ * label="Enable notifications"
28
+ * checked={enabled}
29
+ * onCheckedChange={setEnabled}
30
+ * />
31
+ * ```
32
+ */
10
33
  export const Switch = React.forwardRef<
11
34
  React.ElementRef<typeof ShadcnSwitch>,
12
35
  SwitchProps
@@ -9,6 +9,32 @@ export type TagsProps = {
9
9
  className?: string;
10
10
  };
11
11
 
12
+ /**
13
+ * Tags component for displaying and managing tag badges
14
+ *
15
+ * A component that renders a collection of tags/badges with optional delete functionality.
16
+ * Useful for displaying categories, labels, or removable items.
17
+ *
18
+ * @component
19
+ * @param {TagsProps} props - The tags properties
20
+ * @param {Array<{label: string, value: any}>} props.tags - Array of tags to display
21
+ * @param {(deletedChip: any) => void} [props.onDelete] - Callback fired when a tag is deleted
22
+ * @param {'default' | 'secondary' | 'destructive' | 'outline'} [props.variant='secondary'] - Badge variant style
23
+ * @param {string} [props.className] - Additional CSS classes for the container
24
+ * @returns {React.ReactElement} The rendered tags component
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * <Tags
29
+ * tags={[
30
+ * { label: 'React', value: 'react' },
31
+ * { label: 'TypeScript', value: 'ts' }
32
+ * ]}
33
+ * onDelete={handleTagDelete}
34
+ * variant="secondary"
35
+ * />
36
+ * ```
37
+ */
12
38
  export const Tags = ({
13
39
  tags,
14
40
  onDelete,
@@ -14,6 +14,41 @@ export type TextFieldProps = {
14
14
  helperText?: React.ReactNode;
15
15
  } & React.ComponentProps<typeof Input>;
16
16
 
17
+ /**
18
+ * TextField component for text input
19
+ *
20
+ * A general-purpose text input field with label support, validation states,
21
+ * helper/error text, and optional description.
22
+ *
23
+ * @component
24
+ * @param {TextFieldProps} props - The text field properties
25
+ * @param {React.ReactNode | string} [props.label] - Label for the field
26
+ * @param {string} [props.name] - Name attribute for the input
27
+ * @param {string} [props.value] - Current input value
28
+ * @param {(e: React.ChangeEvent<HTMLInputElement>) => void} [props.onChange] - Callback when value changes
29
+ * @param {string} [props.placeholder] - Placeholder text
30
+ * @param {boolean} [props.required] - Whether the field is required
31
+ * @param {boolean} [props.disabled] - Whether the field is disabled
32
+ * @param {boolean} [props.error] - Whether there's a validation error
33
+ * @param {React.ReactNode} [props.helperText] - Helper or error text
34
+ * @param {string} [props.description] - Additional description text
35
+ * @param {boolean} [props.fullWidth] - Whether the field takes full width
36
+ * @param {string} [props.className] - Additional CSS classes
37
+ * @param {React.HTMLAttributes<HTMLDivElement>} [props.containerProps] - Container attributes
38
+ * @returns {React.ReactElement} The rendered text field component
39
+ *
40
+ * @example
41
+ * ```tsx
42
+ * <TextField
43
+ * label="Username"
44
+ * name="username"
45
+ * value={username}
46
+ * onChange={(e) => setUsername(e.target.value)}
47
+ * placeholder="Enter your username"
48
+ * required
49
+ * />
50
+ * ```
51
+ */
17
52
  export const TextField = ({
18
53
  name,
19
54
  label,
@@ -14,6 +14,42 @@ export type TextareaProps = {
14
14
  helperText?: React.ReactNode;
15
15
  } & React.ComponentProps<typeof ShadcnTextarea>;
16
16
 
17
+ /**
18
+ * Textarea component for multi-line text input
19
+ *
20
+ * A multi-line text input field with label support, validation states,
21
+ * helper/error text, and optional description.
22
+ *
23
+ * @component
24
+ * @param {TextareaProps} props - The textarea properties
25
+ * @param {React.ReactNode | string} [props.label] - Label for the field
26
+ * @param {string} [props.name] - Name attribute for the textarea
27
+ * @param {string} [props.value] - Current input value
28
+ * @param {(e: React.ChangeEvent<HTMLTextAreaElement>) => void} [props.onChange] - Callback when value changes
29
+ * @param {string} [props.placeholder] - Placeholder text
30
+ * @param {number} [props.rows] - Number of visible rows
31
+ * @param {boolean} [props.required] - Whether the field is required
32
+ * @param {boolean} [props.disabled] - Whether the field is disabled
33
+ * @param {boolean} [props.error] - Whether there's a validation error
34
+ * @param {React.ReactNode} [props.helperText] - Helper or error text
35
+ * @param {string} [props.description] - Additional description text
36
+ * @param {boolean} [props.fullWidth] - Whether the field takes full width
37
+ * @param {string} [props.className] - Additional CSS classes
38
+ * @param {React.HTMLAttributes<HTMLDivElement>} [props.containerProps] - Container attributes
39
+ * @returns {React.ReactElement} The rendered textarea component
40
+ *
41
+ * @example
42
+ * ```tsx
43
+ * <Textarea
44
+ * label="Comments"
45
+ * name="comments"
46
+ * value={comments}
47
+ * onChange={(e) => setComments(e.target.value)}
48
+ * placeholder="Enter your comments..."
49
+ * rows={4}
50
+ * />
51
+ * ```
52
+ */
17
53
  export const Textarea = ({
18
54
  name,
19
55
  label,
@@ -1,11 +1,41 @@
1
- import { FileText } from 'lucide-react';
2
1
  import React from 'react';
3
2
  import { useMediaQuery } from '../../../hooks/useMediaQuery';
4
- import { Button } from '../../Input/Button/Button';
5
3
  import { Sidebar } from './components/Sidebar/Sidebar';
6
4
  import { SidebarProvider, useSidebar } from './context/SidebarContext';
7
5
  import { AppLayoutProps } from './types';
8
6
 
7
+ /**
8
+ * AppLayout Component
9
+ *
10
+ * Main layout component that provides a persistent sidebar navigation structure with responsive behavior.
11
+ * Automatically collapses on small screens and wraps content in a SidebarProvider for state management.
12
+ * Includes a floating help docs button in the bottom-right corner.
13
+ *
14
+ * @param {React.ReactNode} children - Main content to render inside the layout
15
+ * @param {SideMenuItemProps[]} menu - Navigation menu items for the sidebar
16
+ * @param {ReactNode | ((params: { collapsed: boolean }) => ReactNode)} [actions] - Optional action elements or function that receives collapsed state
17
+ * @param {string} [mainContainerClassName=''] - Additional CSS classes for the main content container
18
+ * @param {HelpDocsConfig} [helpDocsConfig] - Configuration for context-based help documentation
19
+ * @param {boolean} [initialCollapsed] - Initial state of sidebar collapse (auto-determined on small screens)
20
+ * @param {UserProfilePopupProps} [userProfileParams] - Configuration for user profile popup/menu
21
+ *
22
+ * @returns {React.ReactElement} The complete app layout with sidebar and main content area
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <AppLayout
27
+ * menu={menuItems}
28
+ * userProfileParams={{
29
+ * userFullName: "John Doe",
30
+ * email: "john@example.com",
31
+ * onLogout: handleLogout
32
+ * }}
33
+ * actions={<ActionButtons />}
34
+ * >
35
+ * <YourContent />
36
+ * </AppLayout>
37
+ * ```
38
+ */
9
39
  export const AppLayout: React.FC<AppLayoutProps> = ({
10
40
  children,
11
41
  menu,
@@ -58,22 +88,15 @@ const AppLayoutContent: React.FC<AppLayoutProps> = ({
58
88
  }
59
89
  />
60
90
 
61
- <Button
62
- className="bg-gradient-to-r from-[#573DAB] to-[#846AD6] rounded-[32px] fixed bottom-4 right-4 z-[999] p-2"
63
- onClick={() => window.open('https://docs.campx.in/', '_blank')}
64
- >
65
- <FileText className="w-8 h-8 text-white" />
66
- </Button>
67
-
68
91
  {/* Main Content */}
69
92
  <div
70
93
  style={{
71
94
  height: '100vh',
72
- overflow: 'hidden',
95
+ overflow: 'auto',
73
96
  display: 'flex',
74
97
  flexDirection: 'column',
75
98
  }}
76
- className={`w-full p-0 ${mainContainerClassName}`}
99
+ className={`w-full p-0 bg-background ${mainContainerClassName}`}
77
100
  >
78
101
  {children}
79
102
  </div>
@@ -9,6 +9,22 @@ interface MenuToggleButtonProps {
9
9
  className?: string;
10
10
  }
11
11
 
12
+ /**
13
+ * MenuToggleButton Component
14
+ *
15
+ * Mobile-only button that toggles the sidebar visibility. This button is hidden on desktop screens
16
+ * (above 768px width) using the Tailwind media query. Useful for including in page headers
17
+ * on mobile devices to control sidebar drawer visibility.
18
+ *
19
+ * @param {string} [className=''] - Additional CSS classes to apply to the button
20
+ *
21
+ * @returns {React.ReactElement} A menu toggle button (empty fragment on desktop)
22
+ *
23
+ * @example
24
+ * ```tsx
25
+ * <MenuToggleButton className="ml-4" />
26
+ * ```
27
+ */
12
28
  export const MenuToggleButton: React.FC<MenuToggleButtonProps> = ({
13
29
  className = '',
14
30
  }) => {
@@ -17,6 +17,32 @@ const containerVariants = {
17
17
  },
18
18
  };
19
19
 
20
+ /**
21
+ * MenuBar Component
22
+ *
23
+ * Container component that renders the current menu level with optional back navigation.
24
+ * Displays a header with "Back" button when viewing nested menus and animates menu item
25
+ * appearance using staggered animations. Supports both collapsed and expanded sidebar states.
26
+ *
27
+ * @param {MenuState} currentMenuState - Current menu level state with menu items, title, and path
28
+ * @param {(params: InternalMenuClickHandlerProps) => void} internalMenuClickHandler - Callback to navigate into nested menus
29
+ * @param {() => void} previousMenuClickHandler - Callback to navigate back to previous menu level
30
+ * @param {() => void} [onClose] - Optional callback to close the mobile drawer
31
+ * @param {boolean} [collapsed] - Whether the sidebar is collapsed
32
+ * @param {(collapsed: boolean) => void} [setCollapsed] - Function to update sidebar collapse state
33
+ *
34
+ * @returns {React.ReactElement} Animated menu container with menu items and optional back button
35
+ *
36
+ * @example
37
+ * ```tsx
38
+ * <MenuBar
39
+ * currentMenuState={menuState}
40
+ * internalMenuClickHandler={handleInternalClick}
41
+ * previousMenuClickHandler={handleBack}
42
+ * collapsed={false}
43
+ * />
44
+ * ```
45
+ */
20
46
  export const MenuBar: React.FC<MenuBarProps> = ({
21
47
  currentMenuState,
22
48
  internalMenuClickHandler,
@@ -17,6 +17,43 @@ import {
17
17
  SubMenuItemContainer,
18
18
  } from './StyledComponents';
19
19
 
20
+ /**
21
+ * MenuItem Component
22
+ *
23
+ * Renders a single menu item that can be one of three types:
24
+ * 1. **Internal Menu Item** (has nested menu): Shows a back arrow on hover, opens nested menu on click
25
+ * 2. **Sub Menu Item** (has expandable sub-items): Shows chevron icon, expands/collapses sub-items below
26
+ * 3. **Regular Link Item** (direct navigation): Direct link to a route
27
+ *
28
+ * Automatically shows tooltips when collapsed and handles drawer closing logic for mobile.
29
+ * Supports route matching to highlight the active menu item based on current URL.
30
+ *
31
+ * @param {number} index - Unique index of the menu item in the list
32
+ * @param {SideMenuItemProps} menuItem - Menu item configuration with name, path, icon, and optional menu/subMenu
33
+ * @param {string | null} currentMenuPath - Current path prefix for building full paths (for nested menus)
34
+ * @param {(params: InternalMenuClickHandlerProps) => void} internalMenuClickHandler - Callback when opening a nested/internal menu
35
+ * @param {() => void} [onClose] - Optional callback to close the mobile drawer after navigation
36
+ * @param {boolean} [collapsed] - Whether the sidebar is in collapsed state
37
+ * @param {(collapsed: boolean) => void} [setCollapsed] - Function to update sidebar collapse state
38
+ *
39
+ * @returns {React.ReactElement} Animated menu item with appropriate interactive elements
40
+ *
41
+ * @example
42
+ * ```tsx
43
+ * <MenuItem
44
+ * index={0}
45
+ * menuItem={{
46
+ * name: "Dashboard",
47
+ * path: "/dashboard",
48
+ * icon: <DashboardIcon />,
49
+ * menu: subMenuItems // For nested menus
50
+ * }}
51
+ * currentMenuPath="/admin"
52
+ * internalMenuClickHandler={handleMenuClick}
53
+ * collapsed={false}
54
+ * />
55
+ * ```
56
+ */
20
57
  export const MenuItem: React.FC<MenuItemProps> = ({
21
58
  index,
22
59
  menuItem,
@@ -230,7 +267,20 @@ export const MenuItem: React.FC<MenuItemProps> = ({
230
267
  );
231
268
  };
232
269
 
233
- // Sub menu item component
270
+ /**
271
+ * SubMenuItem Component
272
+ *
273
+ * Internal component that renders an individual sub-menu item (child item within an expandable menu).
274
+ * These are leaf nodes that directly navigate to routes. Automatically closes the mobile drawer
275
+ * on navigation since they are terminal menu items.
276
+ *
277
+ * @param {number} index - Unique index of the sub-menu item
278
+ * @param {{ name: string; path: string }} subMenuItem - Sub-menu item data with name and path
279
+ * @param {string} subMenuButtonPath - Parent menu's path prefix for building full navigation path
280
+ * @param {() => void} [onClose] - Optional callback to close the mobile drawer after navigation
281
+ *
282
+ * @returns {React.ReactElement} A navigation link for the sub-menu item
283
+ */
234
284
  const SubMenuItem: React.FC<{
235
285
  index: number;
236
286
  subMenuItem: { name: string; path: string };