@cloudwick/astral-ui 3.0.7 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/README.md +90 -6
  2. package/dist/components/accordion/accordion.js +62 -0
  3. package/dist/components/accordion/accordion.js.map +1 -0
  4. package/dist/components/accordion/accordionVariants.js +52 -0
  5. package/dist/components/accordion/accordionVariants.js.map +1 -0
  6. package/dist/components/accordion/index.js +3 -0
  7. package/dist/components/accordion/index.js.map +1 -0
  8. package/dist/components/adpIcon/adpIcon.js +39 -0
  9. package/dist/components/adpIcon/adpIcon.js.map +1 -0
  10. package/dist/components/adpIcon/adpIconVariants.js +35 -0
  11. package/dist/components/adpIcon/adpIconVariants.js.map +1 -0
  12. package/dist/components/adpIcon/index.js +3 -0
  13. package/dist/components/adpIcon/index.js.map +1 -0
  14. package/dist/components/adpIcon/svgObjects.js +1525 -0
  15. package/dist/components/adpIcon/svgObjects.js.map +1 -0
  16. package/dist/components/avatar/avatar.js +39 -0
  17. package/dist/components/avatar/avatar.js.map +1 -0
  18. package/dist/components/avatar/avatarVariants.js +20 -0
  19. package/dist/components/avatar/avatarVariants.js.map +1 -0
  20. package/dist/components/avatar/index.js +3 -0
  21. package/dist/components/avatar/index.js.map +1 -0
  22. package/dist/components/avatarGroup/avatarGroup.js +66 -0
  23. package/dist/components/avatarGroup/avatarGroup.js.map +1 -0
  24. package/dist/components/avatarGroup/avatarGroupVariants.js +13 -0
  25. package/dist/components/avatarGroup/avatarGroupVariants.js.map +1 -0
  26. package/dist/components/avatarGroup/index.js +3 -0
  27. package/dist/components/avatarGroup/index.js.map +1 -0
  28. package/dist/components/badge/badge.js +24 -0
  29. package/dist/components/badge/badge.js.map +1 -0
  30. package/dist/components/badge/badgeVariants.js +136 -0
  31. package/dist/components/badge/badgeVariants.js.map +1 -0
  32. package/dist/components/badge/index.js +3 -0
  33. package/dist/components/badge/index.js.map +1 -0
  34. package/dist/components/breadcrumbs/breadcrumbItem.js +26 -0
  35. package/dist/components/breadcrumbs/breadcrumbItem.js.map +1 -0
  36. package/dist/components/breadcrumbs/breadcrumbs.js +72 -0
  37. package/dist/components/breadcrumbs/breadcrumbs.js.map +1 -0
  38. package/dist/components/breadcrumbs/breadcrumbsVariants.js +40 -0
  39. package/dist/components/breadcrumbs/breadcrumbsVariants.js.map +1 -0
  40. package/dist/components/breadcrumbs/index.js +5 -0
  41. package/dist/components/breadcrumbs/index.js.map +1 -0
  42. package/dist/components/button/button.js +69 -0
  43. package/dist/components/button/button.js.map +1 -0
  44. package/dist/components/button/buttonVariants.js +138 -0
  45. package/dist/components/button/buttonVariants.js.map +1 -0
  46. package/dist/components/button/index.js +3 -0
  47. package/dist/components/button/index.js.map +1 -0
  48. package/dist/components/card/card.js +79 -0
  49. package/dist/components/card/card.js.map +1 -0
  50. package/dist/components/card/cardVariants.js +18 -0
  51. package/dist/components/card/cardVariants.js.map +1 -0
  52. package/dist/components/card/index.js +3 -0
  53. package/dist/components/card/index.js.map +1 -0
  54. package/dist/components/checkbox/checkbox.js +29 -0
  55. package/dist/components/checkbox/checkbox.js.map +1 -0
  56. package/dist/components/checkbox/checkboxVariants.js +96 -0
  57. package/dist/components/checkbox/checkboxVariants.js.map +1 -0
  58. package/dist/components/checkbox/index.js +3 -0
  59. package/dist/components/checkbox/index.js.map +1 -0
  60. package/dist/components/checkboxGroup/checkboxGroup.js +51 -0
  61. package/dist/components/checkboxGroup/checkboxGroup.js.map +1 -0
  62. package/dist/components/checkboxGroup/checkboxGroupVariants.js +31 -0
  63. package/dist/components/checkboxGroup/checkboxGroupVariants.js.map +1 -0
  64. package/dist/components/checkboxGroup/index.js +3 -0
  65. package/dist/components/checkboxGroup/index.js.map +1 -0
  66. package/dist/components/ctaGroup/ctaGroup.js +51 -0
  67. package/dist/components/ctaGroup/ctaGroup.js.map +1 -0
  68. package/dist/components/ctaGroup/ctaGroupVariants.js +9 -0
  69. package/dist/components/ctaGroup/ctaGroupVariants.js.map +1 -0
  70. package/dist/components/ctaGroup/index.js +3 -0
  71. package/dist/components/ctaGroup/index.js.map +1 -0
  72. package/dist/components/dataTable/DataTableColumnSettings.js +98 -0
  73. package/dist/components/dataTable/DataTableColumnSettings.js.map +1 -0
  74. package/dist/components/dataTable/advancedFilters.js +102 -0
  75. package/dist/components/dataTable/advancedFilters.js.map +1 -0
  76. package/dist/components/dataTable/dataTable.js +236 -0
  77. package/dist/components/dataTable/dataTable.js.map +1 -0
  78. package/dist/components/dataTable/dataTableStoryHelpers.js +1967 -0
  79. package/dist/components/dataTable/dataTableStoryHelpers.js.map +1 -0
  80. package/dist/components/dataTable/dataTableVariants.js +51 -0
  81. package/dist/components/dataTable/dataTableVariants.js.map +1 -0
  82. package/dist/components/dataTable/index.js +8 -0
  83. package/dist/components/dataTable/index.js.map +1 -0
  84. package/dist/components/dataTable/pageSizeModal.js +25 -0
  85. package/dist/components/dataTable/pageSizeModal.js.map +1 -0
  86. package/dist/components/dataTable/selectedFilterList.js +39 -0
  87. package/dist/components/dataTable/selectedFilterList.js.map +1 -0
  88. package/dist/components/dataTable/table.js +108 -0
  89. package/dist/components/dataTable/table.js.map +1 -0
  90. package/dist/components/datePicker/datePicker.js +271 -0
  91. package/dist/components/datePicker/datePicker.js.map +1 -0
  92. package/dist/components/datePicker/datePickerVariants.js +80 -0
  93. package/dist/components/datePicker/datePickerVariants.js.map +1 -0
  94. package/dist/components/datePicker/index.js +4 -0
  95. package/dist/components/datePicker/index.js.map +1 -0
  96. package/dist/components/dropdown/dropdown.js +94 -0
  97. package/dist/components/dropdown/dropdown.js.map +1 -0
  98. package/dist/components/dropdown/dropdownItem.js +54 -0
  99. package/dist/components/dropdown/dropdownItem.js.map +1 -0
  100. package/dist/components/dropdown/dropdownToggle.js +20 -0
  101. package/dist/components/dropdown/dropdownToggle.js.map +1 -0
  102. package/dist/components/dropdown/dropdownVariants.js +48 -0
  103. package/dist/components/dropdown/dropdownVariants.js.map +1 -0
  104. package/dist/components/dropdown/index.js +8 -0
  105. package/dist/components/dropdown/index.js.map +1 -0
  106. package/dist/components/emptyState/emptyState.js +61 -0
  107. package/dist/components/emptyState/emptyState.js.map +1 -0
  108. package/dist/components/emptyState/emptyStateContent.js +25 -0
  109. package/dist/components/emptyState/emptyStateContent.js.map +1 -0
  110. package/dist/components/emptyState/emptyStateCta.js +25 -0
  111. package/dist/components/emptyState/emptyStateCta.js.map +1 -0
  112. package/dist/components/emptyState/emptyStateVariants.js +7 -0
  113. package/dist/components/emptyState/emptyStateVariants.js.map +1 -0
  114. package/dist/components/emptyState/index.js +5 -0
  115. package/dist/components/emptyState/index.js.map +1 -0
  116. package/dist/components/fileUpload/fileUpload.js +150 -0
  117. package/dist/components/fileUpload/fileUpload.js.map +1 -0
  118. package/dist/components/fileUpload/fileUploadVariants.js +21 -0
  119. package/dist/components/fileUpload/fileUploadVariants.js.map +1 -0
  120. package/dist/components/fileUpload/index.js +3 -0
  121. package/dist/components/fileUpload/index.js.map +1 -0
  122. package/dist/components/fileUpload/statusCard.js +80 -0
  123. package/dist/components/fileUpload/statusCard.js.map +1 -0
  124. package/dist/components/fileUpload/statusCardVariants.js +19 -0
  125. package/dist/components/fileUpload/statusCardVariants.js.map +1 -0
  126. package/dist/components/fileUpload/storyUtil.js +51 -0
  127. package/dist/components/fileUpload/storyUtil.js.map +1 -0
  128. package/dist/components/loader/index.js +3 -0
  129. package/dist/components/loader/index.js.map +1 -0
  130. package/dist/components/loader/loader.js +39 -0
  131. package/dist/components/loader/loader.js.map +1 -0
  132. package/dist/components/loader/loaderVariants.js +31 -0
  133. package/dist/components/loader/loaderVariants.js.map +1 -0
  134. package/dist/components/modal/index.js +3 -0
  135. package/dist/components/modal/index.js.map +1 -0
  136. package/dist/components/modal/modal.js +89 -0
  137. package/dist/components/modal/modal.js.map +1 -0
  138. package/dist/components/modal/modalVariants.js +14 -0
  139. package/dist/components/modal/modalVariants.js.map +1 -0
  140. package/dist/components/otp/index.js +3 -0
  141. package/dist/components/otp/index.js.map +1 -0
  142. package/dist/components/otp/input.js +18 -0
  143. package/dist/components/otp/input.js.map +1 -0
  144. package/dist/components/otp/otp.js +142 -0
  145. package/dist/components/otp/otp.js.map +1 -0
  146. package/dist/components/otp/otpVariants.js +13 -0
  147. package/dist/components/otp/otpVariants.js.map +1 -0
  148. package/dist/components/pagination/index.js +5 -0
  149. package/dist/components/pagination/index.js.map +1 -0
  150. package/dist/components/pagination/pagination.js +82 -0
  151. package/dist/components/pagination/pagination.js.map +1 -0
  152. package/dist/components/pagination/paginationVariants.js +44 -0
  153. package/dist/components/pagination/paginationVariants.js.map +1 -0
  154. package/dist/components/panel/index.js +11 -0
  155. package/dist/components/panel/index.js.map +1 -0
  156. package/dist/components/panel/panel.js +83 -0
  157. package/dist/components/panel/panel.js.map +1 -0
  158. package/dist/components/panel/panelBody.js +21 -0
  159. package/dist/components/panel/panelBody.js.map +1 -0
  160. package/dist/components/panel/panelFooter.js +21 -0
  161. package/dist/components/panel/panelFooter.js.map +1 -0
  162. package/dist/components/panel/panelHeader.js +25 -0
  163. package/dist/components/panel/panelHeader.js.map +1 -0
  164. package/dist/components/panel/panelVariants.js +122 -0
  165. package/dist/components/panel/panelVariants.js.map +1 -0
  166. package/dist/components/panelGroup/index.js +3 -0
  167. package/dist/components/panelGroup/index.js.map +1 -0
  168. package/dist/components/panelGroup/panelGroup.js +38 -0
  169. package/dist/components/panelGroup/panelGroup.js.map +1 -0
  170. package/dist/components/panelGroup/panelGroupVariants.js +34 -0
  171. package/dist/components/panelGroup/panelGroupVariants.js.map +1 -0
  172. package/dist/components/passwordField/index.js +2 -0
  173. package/dist/components/passwordField/index.js.map +1 -0
  174. package/dist/components/passwordField/passwordField.js +28 -0
  175. package/dist/components/passwordField/passwordField.js.map +1 -0
  176. package/dist/components/progress/index.js +3 -0
  177. package/dist/components/progress/index.js.map +1 -0
  178. package/dist/components/progress/progress.js +62 -0
  179. package/dist/components/progress/progress.js.map +1 -0
  180. package/dist/components/progress/progressVariants.js +100 -0
  181. package/dist/components/progress/progressVariants.js.map +1 -0
  182. package/dist/components/radio/index.js +3 -0
  183. package/dist/components/radio/index.js.map +1 -0
  184. package/dist/components/radio/radio.js +25 -0
  185. package/dist/components/radio/radio.js.map +1 -0
  186. package/dist/components/radio/radioVariants.js +46 -0
  187. package/dist/components/radio/radioVariants.js.map +1 -0
  188. package/dist/components/radioGroup/index.js +3 -0
  189. package/dist/components/radioGroup/index.js.map +1 -0
  190. package/dist/components/radioGroup/radioGroup.js +47 -0
  191. package/dist/components/radioGroup/radioGroup.js.map +1 -0
  192. package/dist/components/radioGroup/radioGroupVariants.js +53 -0
  193. package/dist/components/radioGroup/radioGroupVariants.js.map +1 -0
  194. package/dist/components/scrollbar/index.js +3 -0
  195. package/dist/components/scrollbar/index.js.map +1 -0
  196. package/dist/components/scrollbar/scrollbar.js +360 -0
  197. package/dist/components/scrollbar/scrollbar.js.map +1 -0
  198. package/dist/components/scrollbar/scrollbarVariants.js +100 -0
  199. package/dist/components/scrollbar/scrollbarVariants.js.map +1 -0
  200. package/dist/components/scrollbar/utils.js +50 -0
  201. package/dist/components/scrollbar/utils.js.map +1 -0
  202. package/dist/components/select/index.js +3 -0
  203. package/dist/components/select/index.js.map +1 -0
  204. package/dist/components/select/select.js +139 -0
  205. package/dist/components/select/select.js.map +1 -0
  206. package/dist/components/select/selectVariants.js +35 -0
  207. package/dist/components/select/selectVariants.js.map +1 -0
  208. package/dist/components/select/utils.js +116 -0
  209. package/dist/components/select/utils.js.map +1 -0
  210. package/dist/components/tabs/index.js +3 -0
  211. package/dist/components/tabs/index.js.map +1 -0
  212. package/dist/components/tabs/tabs.js +140 -0
  213. package/dist/components/tabs/tabs.js.map +1 -0
  214. package/dist/components/tabs/tabsVariants.js +138 -0
  215. package/dist/components/tabs/tabsVariants.js.map +1 -0
  216. package/dist/components/textCopy/index.js +3 -0
  217. package/dist/components/textCopy/index.js.map +1 -0
  218. package/dist/components/textCopy/textCopy.js +36 -0
  219. package/dist/components/textCopy/textCopy.js.map +1 -0
  220. package/dist/components/textCopy/textCopyVariants.js +12 -0
  221. package/dist/components/textCopy/textCopyVariants.js.map +1 -0
  222. package/dist/components/textField/index.js +3 -0
  223. package/dist/components/textField/index.js.map +1 -0
  224. package/dist/components/textField/textField.js +36 -0
  225. package/dist/components/textField/textField.js.map +1 -0
  226. package/dist/components/textField/textFieldVariants.js +84 -0
  227. package/dist/components/textField/textFieldVariants.js.map +1 -0
  228. package/dist/components/textarea/index.js +3 -0
  229. package/dist/components/textarea/index.js.map +1 -0
  230. package/dist/components/textarea/textarea.js +28 -0
  231. package/dist/components/textarea/textarea.js.map +1 -0
  232. package/dist/components/textarea/textareaVariants.js +37 -0
  233. package/dist/components/textarea/textareaVariants.js.map +1 -0
  234. package/dist/components/toast/index.js +3 -0
  235. package/dist/components/toast/index.js.map +1 -0
  236. package/dist/components/toast/toast.js +52 -0
  237. package/dist/components/toast/toast.js.map +1 -0
  238. package/dist/components/toast/toastVariants.js +45 -0
  239. package/dist/components/toast/toastVariants.js.map +1 -0
  240. package/dist/components/toggle/index.js +3 -0
  241. package/dist/components/toggle/index.js.map +1 -0
  242. package/dist/components/toggle/toggle.js +33 -0
  243. package/dist/components/toggle/toggle.js.map +1 -0
  244. package/dist/components/toggle/toggleVariants.js +40 -0
  245. package/dist/components/toggle/toggleVariants.js.map +1 -0
  246. package/dist/components/tooltip/index.js +3 -0
  247. package/dist/components/tooltip/index.js.map +1 -0
  248. package/dist/components/tooltip/tooltip.js +100 -0
  249. package/dist/components/tooltip/tooltip.js.map +1 -0
  250. package/dist/components/tooltip/tooltipVariants.js +13 -0
  251. package/dist/components/tooltip/tooltipVariants.js.map +1 -0
  252. package/dist/components/truncate/index.js +3 -0
  253. package/dist/components/truncate/index.js.map +1 -0
  254. package/dist/components/truncate/truncate.js +36 -0
  255. package/dist/components/truncate/truncate.js.map +1 -0
  256. package/dist/components/truncate/truncateVariants.js +13 -0
  257. package/dist/components/truncate/truncateVariants.js.map +1 -0
  258. package/dist/css/index.min.css +1 -1
  259. package/dist/index.cjs.js +4 -4
  260. package/dist/index.esm.js +4 -14
  261. package/dist/index.js +39 -0
  262. package/dist/index.js.map +1 -0
  263. package/dist/tailwindThemeConfig.js +155 -0
  264. package/dist/tailwindThemeConfig.js.map +1 -0
  265. package/dist/utils/cn.js +13 -0
  266. package/dist/utils/cn.js.map +1 -0
  267. package/dist/utils/debounce.js +30 -0
  268. package/dist/utils/debounce.js.map +1 -0
  269. package/dist/utils/findParentAttribute.js +23 -0
  270. package/dist/utils/findParentAttribute.js.map +1 -0
  271. package/dist/utils/getElementType.js +32 -0
  272. package/dist/utils/getElementType.js.map +1 -0
  273. package/dist/utils/index.js +8 -0
  274. package/dist/utils/index.js.map +1 -0
  275. package/dist/utils/numberUtils/index.js +41 -0
  276. package/dist/utils/numberUtils/index.js.map +1 -0
  277. package/dist/utils/stringUtils/fileSize.js +13 -0
  278. package/dist/utils/stringUtils/fileSize.js.map +1 -0
  279. package/dist/utils/stringUtils/getInitials.js +19 -0
  280. package/dist/utils/stringUtils/getInitials.js.map +1 -0
  281. package/dist/utils/stringUtils/index.js +5 -0
  282. package/dist/utils/stringUtils/index.js.map +1 -0
  283. package/dist/utils/stringUtils/placeholderText.js +75 -0
  284. package/dist/utils/stringUtils/placeholderText.js.map +1 -0
  285. package/dist/utils/stringUtils/regexSearch.js +25 -0
  286. package/dist/utils/stringUtils/regexSearch.js.map +1 -0
  287. package/dist/utils/useOnScreen.js +16 -0
  288. package/dist/utils/useOnScreen.js.map +1 -0
  289. package/dist/utils/useWindowSize.js +25 -0
  290. package/dist/utils/useWindowSize.js.map +1 -0
  291. package/package.json +37 -15
  292. package/CONTRIBUTING.md +0 -57
  293. package/dist/components/accordion/accordionBody.d.ts +0 -9
  294. package/dist/components/accordion/accordionHeader.d.ts +0 -9
  295. package/dist/components/accordion/index.d.ts +0 -37
  296. package/dist/components/adpIcon/index.d.ts +0 -61
  297. package/dist/components/adpIcon/svgObjects.d.ts +0 -267
  298. package/dist/components/avatar/index.d.ts +0 -27
  299. package/dist/components/avatarGroup/index.d.ts +0 -32
  300. package/dist/components/badge/index.d.ts +0 -46
  301. package/dist/components/breadcrumbs/breadcrumbItem.d.ts +0 -28
  302. package/dist/components/breadcrumbs/index.d.ts +0 -27
  303. package/dist/components/button/index.d.ts +0 -86
  304. package/dist/components/card/cardBody.d.ts +0 -13
  305. package/dist/components/card/cardFooter.d.ts +0 -13
  306. package/dist/components/card/cardHeader.d.ts +0 -22
  307. package/dist/components/card/index.d.ts +0 -23
  308. package/dist/components/checkbox/index.d.ts +0 -19
  309. package/dist/components/checkboxGroup/index.d.ts +0 -43
  310. package/dist/components/ctaGroup/index.d.ts +0 -46
  311. package/dist/components/dataTable/advancedFilters.d.ts +0 -10
  312. package/dist/components/dataTable/dataTableStoryHelpers.d.ts +0 -1101
  313. package/dist/components/dataTable/index.d.ts +0 -193
  314. package/dist/components/dataTable/pageSizeModal.d.ts +0 -10
  315. package/dist/components/dataTable/selectedFilterList.d.ts +0 -20
  316. package/dist/components/dataTable/settings.d.ts +0 -6
  317. package/dist/components/dataTable/table.d.ts +0 -41
  318. package/dist/components/dataTable/utils.d.ts +0 -3
  319. package/dist/components/datePicker/index.d.ts +0 -10
  320. package/dist/components/dropdown/dropdownItem.d.ts +0 -11
  321. package/dist/components/dropdown/dropdownToggle.d.ts +0 -9
  322. package/dist/components/dropdown/index.d.ts +0 -35
  323. package/dist/components/emptyState/emptyStateContent.d.ts +0 -11
  324. package/dist/components/emptyState/emptyStateCta.d.ts +0 -11
  325. package/dist/components/emptyState/index.d.ts +0 -34
  326. package/dist/components/fileUpload/index.d.ts +0 -58
  327. package/dist/components/fileUpload/statusCard.d.ts +0 -18
  328. package/dist/components/fileUpload/storyUtil.d.ts +0 -1
  329. package/dist/components/loader/index.d.ts +0 -28
  330. package/dist/components/modal/index.d.ts +0 -49
  331. package/dist/components/modal/modalBody.d.ts +0 -13
  332. package/dist/components/modal/modalHeader.d.ts +0 -13
  333. package/dist/components/otp/index.d.ts +0 -41
  334. package/dist/components/otp/input.d.ts +0 -12
  335. package/dist/components/pagination/index.d.ts +0 -32
  336. package/dist/components/panel/index.d.ts +0 -47
  337. package/dist/components/panel/panelBody.d.ts +0 -13
  338. package/dist/components/panel/panelFooter.d.ts +0 -13
  339. package/dist/components/panel/panelHeader.d.ts +0 -39
  340. package/dist/components/panel/panelStoryHelpers.d.ts +0 -7
  341. package/dist/components/panelGroup/index.d.ts +0 -22
  342. package/dist/components/passwordField/index.d.ts +0 -4
  343. package/dist/components/progress/index.d.ts +0 -61
  344. package/dist/components/radio/index.d.ts +0 -15
  345. package/dist/components/radioGroup/index.d.ts +0 -48
  346. package/dist/components/scrollbar/index.d.ts +0 -34
  347. package/dist/components/scrollbar/storyUtils.d.ts +0 -8
  348. package/dist/components/select/index.d.ts +0 -99
  349. package/dist/components/select/utils.d.ts +0 -3
  350. package/dist/components/tabs/index.d.ts +0 -69
  351. package/dist/components/tabs/tab.d.ts +0 -53
  352. package/dist/components/textCopy/index.d.ts +0 -29
  353. package/dist/components/textField/index.d.ts +0 -47
  354. package/dist/components/textarea/index.d.ts +0 -24
  355. package/dist/components/toast/index.d.ts +0 -43
  356. package/dist/components/toggle/index.d.ts +0 -39
  357. package/dist/components/tooltip/index.d.ts +0 -59
  358. package/dist/components/truncate/index.d.ts +0 -22
  359. package/dist/index.d.ts +0 -38
@@ -1,32 +0,0 @@
1
- import React from "react";
2
- export interface Props {
3
- /**
4
- * The total number of pages.
5
- */
6
- totalPages?: number;
7
- /**
8
- * Use the prop to set the active page number. The value for activePageNo needs to start from 1.
9
- */
10
- activePageNo?: number;
11
- /**
12
- * Layout of the pagination.
13
- * @default detailed
14
- */
15
- layout?: "detailed" | "basic" | "minimal";
16
- /**
17
- * Pagination variant.
18
- * @default filled
19
- */
20
- variant?: "filled" | "outline";
21
- /**
22
- * Use the prop to hide the labels “Next“ & “Previous“
23
- * @default true
24
- */
25
- showLabels?: boolean;
26
- /**
27
- * Callback function triggered when the active page changes.
28
- * @param activePageNo - The new page number that was selected
29
- */
30
- onPageChange?: (activePageNo: number) => void;
31
- }
32
- export declare const Pagination: ({ totalPages, activePageNo, layout, variant, showLabels, onPageChange }: Props) => React.ReactElement;
@@ -1,47 +0,0 @@
1
- import React, { RefObject } from "react";
2
- export interface Props {
3
- /**
4
- * Variant of the Panel
5
- * @default compact
6
- */
7
- variant?: "extended" | "compact";
8
- /**
9
- * Prop to control the panel display
10
- * @default false
11
- */
12
- showPanel?: boolean;
13
- /**
14
- * Toggle the visibility of the Panel without unmounting it
15
- * @default false
16
- */
17
- toggleVisibilityUsingCss?: boolean;
18
- /**
19
- * Overwrite the Panel styles by passing space separated class names
20
- */
21
- className?: string;
22
- /**
23
- * Accepts children of ReactNode type
24
- */
25
- children: React.ReactNode;
26
- /** If set to true, the panel will open from left and sets dir="rtl" */
27
- rtl?: boolean;
28
- /**
29
- * Pass a reference to the element where the Panel needs to be rendered
30
- * @default document.body
31
- */
32
- portalTarget?: HTMLElement;
33
- /**
34
- * A list of Refs to be considered as a part of the Lock. The html elements in the list will be accessible while the Panel is open.
35
- */
36
- shards?: (HTMLElement | RefObject<any>)[];
37
- /**
38
- * Optional callback function to call when panel is closed
39
- */
40
- onClose?: () => void;
41
- }
42
- export declare function Panel({ variant, showPanel, toggleVisibilityUsingCss, className, children, rtl, portalTarget, shards, onClose }: Props): React.ReactElement | null;
43
- export declare namespace Panel {
44
- var Header: ({ className, showBackButton, onBackHandler, showCloseButton, onCloseHandler, customCTA, header, subHeader }: import("./panelHeader").PanelHeaderProps) => React.ReactElement | null;
45
- var Body: ({ className, children }: import("./panelBody").PanelBodyProps) => React.ReactElement | null;
46
- var Footer: ({ className, children }: import("./panelFooter").PanelFooterProps) => React.ReactElement | null;
47
- }
@@ -1,13 +0,0 @@
1
- import React, { ReactElement } from "react";
2
- export interface PanelBodyProps {
3
- /**
4
- * Panel Body
5
- */
6
- children?: React.ReactNode;
7
- /**
8
- * Overwrite the Panel body styles by passing space separated class names
9
- */
10
- className?: string;
11
- }
12
- export declare const PanelBody: ({ className, children }: PanelBodyProps) => ReactElement | null;
13
- export default PanelBody;
@@ -1,13 +0,0 @@
1
- import React, { ReactElement } from "react";
2
- export interface PanelFooterProps {
3
- /**
4
- * Panel Footer
5
- */
6
- children?: React.ReactNode;
7
- /**
8
- * Overwrite the Panel footer styles by passing space separated class names
9
- */
10
- className?: string;
11
- }
12
- declare const PanelFooter: ({ className, children }: PanelFooterProps) => ReactElement | null;
13
- export default PanelFooter;
@@ -1,39 +0,0 @@
1
- import { ReactElement, ReactNode } from "react";
2
- export interface PanelHeaderProps {
3
- /**
4
- * Overwrite the Panel Header styles by passing space separated class names
5
- */
6
- className?: string;
7
- /**
8
- * Control panel's back button visibility
9
- * @default false
10
- */
11
- showBackButton?: boolean;
12
- /**
13
- * Callback function for back button
14
- */
15
- onBackHandler?: () => void;
16
- /**
17
- * Control panel's close button visibility
18
- * @default false
19
- */
20
- showCloseButton?: boolean;
21
- /**
22
- * Callback function for close button
23
- */
24
- onCloseHandler?: () => void;
25
- /**
26
- * Header of Panel
27
- */
28
- header?: string;
29
- /**
30
- * Sub header of Panel
31
- */
32
- subHeader?: string;
33
- /**
34
- * Pass custom CTA that will appear close to header
35
- */
36
- customCTA?: ReactNode;
37
- }
38
- export declare const PanelHeader: ({ className, showBackButton, onBackHandler, showCloseButton, onCloseHandler, customCTA, header, subHeader }: PanelHeaderProps) => ReactElement | null;
39
- export default PanelHeader;
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface PanelFooterProps {
3
- onClick?: () => void;
4
- }
5
- export declare const CustomCTA: () => import("react/jsx-runtime").JSX.Element;
6
- export declare const PanelFooter: ({ onClick }: PanelFooterProps) => React.ReactElement;
7
- export {};
@@ -1,22 +0,0 @@
1
- import { ReactElement, ReactNode } from "react";
2
- export interface Props {
3
- /**
4
- * Overwrite the styles for PanelGroup by passing space separated class names
5
- */
6
- className?: string;
7
- /**
8
- * Pass one or more Panels as the children
9
- */
10
- children?: ReactNode;
11
- /**
12
- * Use the prop to set the active panel index. The value for the active index needs to start from 0.
13
- * @default 0
14
- */
15
- activeIndex?: number;
16
- /**
17
- * Control PanelGroup's visibility
18
- * @default false
19
- */
20
- showPanels?: boolean;
21
- }
22
- export declare function PanelGroup({ children, className, activeIndex, showPanels }: Props): ReactElement | null;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { type Props as TextFieldProps } from "../textField";
3
- export type PasswordFieldProps = Omit<TextFieldProps, "type">;
4
- export declare const PasswordField: React.ForwardRefExoticComponent<Omit<PasswordFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,61 +0,0 @@
1
- import { ReactElement } from "react";
2
- export declare enum Colors {
3
- PRIMARY = "primary",
4
- SECONDARY = "secondary",
5
- SUCCESS = "success",
6
- WARNING = "warning",
7
- ERROR = "error"
8
- }
9
- export declare enum ValuePositions {
10
- TOP = "top",
11
- RIGHT = "right",
12
- BOTTOM = "bottom",
13
- INLINE = "inline"
14
- }
15
- export type ColorType = `${Colors}`;
16
- export type valuePositionType = `${ValuePositions}`;
17
- export interface Props {
18
- /**
19
- * Controls the colors of Progress
20
- * Only For linear progress
21
- * @default primary
22
- */
23
- color?: ColorType;
24
- /**
25
- * Variant of the Progress
26
- * @default linear
27
- */
28
- variant?: "linear" | "circular";
29
- /**
30
- * Use the prop to change the size of the Circular Progress
31
- * @default "md"
32
- */
33
- size?: "md" | "lg";
34
- /**
35
- * Value is used to display the percentage of the progress
36
- * @default 0
37
- * @range 0 to 100
38
- */
39
- value: number;
40
- /**
41
- * Prop controlling the position of the value of the Progress
42
- * @default inline
43
- */
44
- valuePosition?: valuePositionType;
45
- /**
46
- * Set to true to display the percentage of progress.
47
- * @default false
48
- */
49
- showPercentage?: boolean;
50
- /**
51
- * Prop to set striped background
52
- * @default false
53
- */
54
- striped?: boolean;
55
- /**
56
- * Prop to set animated background, use in conjunction with striped property
57
- * @default false
58
- */
59
- animate?: boolean;
60
- }
61
- export declare const Progress: ({ color, variant, size, value, valuePosition, showPercentage, striped, animate }: Props) => ReactElement | null;
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- type RadioSize = "sm" | "md" | "lg";
3
- export interface RadioProps extends Omit<React.HTMLProps<HTMLInputElement>, "label" | "size"> {
4
- /**
5
- * Size of the Radio button
6
- * @default sm
7
- */
8
- size?: RadioSize;
9
- /**
10
- * Label for the Radio button
11
- */
12
- label?: React.ReactNode;
13
- }
14
- export declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
15
- export {};
@@ -1,48 +0,0 @@
1
- import React, { ReactElement } from "react";
2
- import { type RadioProps } from "../radio";
3
- export declare enum RadioGroupSizes {
4
- SM = "sm",
5
- MD = "md",
6
- LG = "lg"
7
- }
8
- export type RadioGroupSize = `${RadioGroupSizes}`;
9
- export interface Props extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
10
- /**
11
- * Size of the Radio group.
12
- * @default md
13
- */
14
- size?: RadioGroupSize;
15
- /**
16
- * Pass space separated class names to override the RadioGroup styling
17
- */
18
- className?: string;
19
- /**
20
- * Pass boolean value to disable the component.
21
- * @default false
22
- */
23
- disabled?: boolean;
24
- /**
25
- * Selected value
26
- */
27
- selectedValue?: string;
28
- /**
29
- * An array of objects of radio props type
30
- */
31
- options: RadioProps[];
32
- /**
33
- * Callback function that is called when the radio group selection changes.
34
- * A selected value is passed as an argument to the function.
35
- */
36
- onChange?: (arg: string) => void;
37
- /**
38
- * Placement of the radio
39
- * @default "start"
40
- */
41
- radioPlacement?: "start" | "end";
42
- /**
43
- * Variant of the RadioGroup
44
- * @default outline
45
- */
46
- variant?: "outline" | "text";
47
- }
48
- export declare const RadioGroup: ({ size, options, onChange, className, selectedValue, disabled, radioPlacement, variant }: Props) => ReactElement;
@@ -1,34 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- import type { TVoidElements } from "../../types/custom";
3
- import "./scrollbar.styles.css";
4
- export interface IScrollbarProps {
5
- /**
6
- * children to render inside the scroll container
7
- */
8
- children: ReactNode;
9
- /**
10
- * The type of tag to render for the scroll container, the default value is "div".
11
- * @default div
12
- */
13
- as?: keyof Omit<JSX.IntrinsicElements, TVoidElements>;
14
- /**
15
- * Overwrite the scrollbar container styles by passing space separated class names.
16
- * @optional
17
- */
18
- className?: string;
19
- /**
20
- * Pass a boolean value to set the visibility of the scroller, by default the scrollbar will be visible on content hover.
21
- * @optional
22
- * @default false
23
- */
24
- alwaysVisible?: boolean;
25
- /**
26
- * Set it to true if you want to directly scroll to the click position,
27
- * by default the scroller will move in the direction of the click
28
- * @default false
29
- */
30
- scrollToClickPosition?: boolean;
31
- id?: string;
32
- }
33
- export declare const Scrollbar: React.ForwardRefExoticComponent<IScrollbarProps & React.RefAttributes<HTMLElement>>;
34
- export default Scrollbar;
@@ -1,8 +0,0 @@
1
- import React, { FunctionComponent } from "react";
2
- export declare const Table: FunctionComponent<{
3
- width?: number;
4
- height?: number;
5
- }>;
6
- export declare const NewspaperArticle: FunctionComponent;
7
- export declare const WideContent: FunctionComponent;
8
- export declare const NestedScrollbars: () => React.JSX.Element;
@@ -1,99 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { Props as SelectProps, type GroupBase } from "react-select";
3
- import { IconType } from "../adpIcon";
4
- export declare enum SelectSizes {
5
- MD = "md",
6
- LG = "lg"
7
- }
8
- export type SelectSize = `${SelectSizes}`;
9
- export type Option = {
10
- label: ReactNode;
11
- value: any;
12
- isFixed?: boolean;
13
- };
14
- export interface Props {
15
- /**
16
- * Accepts id for the select
17
- */
18
- id?: string;
19
- /**
20
- * Overwrite the style by passing space separated class names
21
- */
22
- className?: string;
23
- /**
24
- * Sets the Label for the select field
25
- */
26
- label?: ReactNode;
27
- /**
28
- * Size of the Select field.
29
- * @default md
30
- */
31
- size?: SelectSize;
32
- /**
33
- * Selection option for the select field
34
- */
35
- options?: readonly (Option | {
36
- label: ReactNode;
37
- options: Option[];
38
- })[];
39
- /**
40
- * Set the selected values of the field
41
- */
42
- value?: {
43
- label: ReactNode | string;
44
- value: string;
45
- isFixed?: boolean;
46
- } | readonly {
47
- label: ReactNode | string;
48
- value: string;
49
- isFixed?: boolean;
50
- }[] | null;
51
- /**
52
- * Additional information or guidance displayed below the text field.
53
- */
54
- helperText?: ReactNode;
55
- /**
56
- * Error state for showing error message.
57
- */
58
- error?: boolean;
59
- /**
60
- * Disable.
61
- */
62
- disabled?: boolean;
63
- /**
64
- * Enables users to create new options along with choosing existing options.
65
- */
66
- creatable?: boolean;
67
- touched?: boolean;
68
- /**
69
- * @description When multi-select is enabled, this prop sets the maximum number of selected values that will be shown in the value container.
70
- * @default 3
71
- */
72
- maxVisibleValues?: number;
73
- /**
74
- * A custom message that can be shown instead of the message '+[count] more' when the number of selected values is more than 'maxVisibleValues'.
75
- * The message will be appended after '+[count]'
76
- */
77
- maxVisibleValuesMsg?: string;
78
- /**
79
- * Custom content to be displayed at the bottom of the dropdown menu.
80
- */
81
- menuFooter?: ReactNode;
82
- /**
83
- * Icon to be displayed before the value container.
84
- * @description
85
- * This prop accepts either an IconType (string) or a ReactNode.
86
- * - If an IconType is provided, it will render an ADPIcon component.
87
- * - If a ReactNode is provided, it will be rendered as-is.
88
- */
89
- prefixIcon?: IconType | ReactNode;
90
- /**
91
- * Icon to be displayed after the value container.
92
- * @description
93
- * This prop accepts either an IconType (string) or a ReactNode.
94
- * - If an IconType is provided, it will render an ADPIcon component.
95
- * - If a ReactNode is provided, it will be rendered as-is.
96
- */
97
- suffixIcon?: IconType | ReactNode;
98
- }
99
- export declare function Select<IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(selectProps: SelectProps<Option, IsMulti, Group> & Props): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { StylesConfig, GroupBase } from "react-select";
2
- import { SelectSize, type Option } from "./index";
3
- export declare const reactSelectCustomStyles: <IsMulti extends boolean, Group extends GroupBase<Option>>(error: boolean, size: SelectSize, multiSelect: boolean) => StylesConfig<Option, IsMulti, Group>;
@@ -1,69 +0,0 @@
1
- import React, { ReactElement } from "react";
2
- import { TabProps } from "./tab";
3
- export declare enum TabSizes {
4
- XS = "xs",
5
- SM = "sm",
6
- MD = "md",
7
- LG = "lg"
8
- }
9
- export type TabSize = `${TabSizes}`;
10
- /**
11
- * Props for the Tabs component.
12
- */
13
- export interface TabsProps {
14
- /**
15
- * Active tab index. Tab index starts from 0.
16
- */
17
- activeIndex?: number;
18
- /**
19
- * Default active tab index, to be used with the uncontrolled version of the Tabs component.
20
- * @default 0
21
- */
22
- defaultActiveIndex?: number;
23
- /**
24
- * Dynamically updates the className applied to the component.
25
- */
26
- className?: string;
27
- /**
28
- * Renders all the tabs at once and switches between them using CSS.
29
- * @default false
30
- */
31
- switchUsingCss?: boolean;
32
- /**
33
- * Called on click of a tab header.
34
- * @param selectedTabId {number} Selected tab id.
35
- */
36
- onSelect?: (selectedTabId: number) => void;
37
- /**
38
- * Array of items to be displayed in the Tabs,
39
- * each item should be wrapped in Tabs.Tab component
40
- * @required
41
- * @example
42
- * ```tsx
43
- * <Tabs>
44
- * <Tabs.Tab title="Tab 1">
45
- * Content of Tab 1
46
- * </Tabs.Tab>
47
- * </Tabs>
48
- * ```
49
- */
50
- children: ReactElement<TabProps> | Array<ReactElement<TabProps> | boolean> | boolean;
51
- /**
52
- * Size of the tab.
53
- * @default md
54
- */
55
- size?: TabSize;
56
- /**
57
- * Variant of the tab.
58
- * @default filled
59
- */
60
- variant?: "filled" | "text";
61
- /**
62
- * Color of the tab. Only applicable for filled variant.
63
- */
64
- color?: "primary" | "secondary";
65
- }
66
- export declare const Tabs: {
67
- ({ className, children, activeIndex, defaultActiveIndex, switchUsingCss, onSelect, size, variant, color }: TabsProps): ReactElement | null;
68
- Tab: ({ children, className }: TabProps) => React.ReactElement;
69
- };
@@ -1,53 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- import { IconType } from "../adpIcon";
3
- /**
4
- * Props for the Tab component.
5
- */
6
- export interface TabProps {
7
- /**
8
- * Id of the tab.
9
- */
10
- id?: string;
11
- /**
12
- * Name of the tab.
13
- */
14
- title: React.ReactNode;
15
- /**
16
- * Function to call when the tab is displayed.
17
- */
18
- onEnter?: () => void;
19
- /**
20
- * Function to call when the tab is exited.
21
- */
22
- onExit?: () => void;
23
- /**
24
- * Dynamically updates the className applied to the component.
25
- */
26
- className?: string;
27
- /**
28
- * Content to be displayed within the tab.
29
- */
30
- children: React.ReactNode;
31
- /**
32
- * Indicates whether the tab is disabled.
33
- */
34
- disabled?: boolean;
35
- /**
36
- * Icon to be displayed before the title of the Tab.
37
- * @description
38
- * This prop accepts either an IconType (string) or a ReactNode.
39
- * - If an IconType is provided, it will render an ADPIcon component.
40
- * - If a ReactNode is provided, it will be rendered as-is.
41
- */
42
- prefixIcon?: IconType | ReactNode;
43
- /**
44
- * Icon to be displayed after the title of the Tab.
45
- * @description
46
- * This prop accepts either an IconType (string) or a ReactNode.
47
- * - If an IconType is provided, it will render an ADPIcon component.
48
- * - If a ReactNode is provided, it will be rendered as-is.
49
- */
50
- suffixIcon?: IconType | ReactNode;
51
- }
52
- export declare const Tab: ({ children, className }: TabProps) => React.ReactElement;
53
- export default Tab;
@@ -1,29 +0,0 @@
1
- import React from "react";
2
- export interface ITextCopyProps {
3
- /**
4
- * Pass the text prop if you want to copy something other than children string
5
- */
6
- text?: string;
7
- /**
8
- * Pass comma separated classes to style the textCopy component
9
- */
10
- className?: string;
11
- /**
12
- * Pass the children to display the text or element to be copied.
13
- * When passing children as non-string, make sure to pass text prop as well
14
- */
15
- children?: React.ReactElement | string;
16
- /**
17
- * To display icon on hover of the text
18
- */
19
- displayOnHover?: boolean;
20
- /**
21
- * Title for the copy button
22
- */
23
- copyButtonTitle?: string;
24
- /**
25
- * Confirmation message to be shown after the text gets copied
26
- */
27
- confirmationMessage?: string;
28
- }
29
- export declare const TextCopy: ({ text, className, children, displayOnHover, copyButtonTitle, confirmationMessage }: ITextCopyProps) => JSX.Element;
@@ -1,47 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- import { type IconType } from "../adpIcon";
3
- export declare enum sizes {
4
- MD = "md",
5
- LG = "lg"
6
- }
7
- export type Size = `${sizes}`;
8
- export interface Props extends Omit<React.ComponentPropsWithoutRef<"input">, "css" | "size"> {
9
- /**
10
- * Regular static label.
11
- */
12
- label?: string | ReactNode;
13
- /**
14
- * Size of the Textfield.
15
- * @default md
16
- */
17
- size?: Size;
18
- /**
19
- * Pass a ref to the inner input element
20
- */
21
- ref?: React.Ref<HTMLInputElement>;
22
- /**
23
- * Additional information or guidance displayed below the text field.
24
- */
25
- helperText?: ReactNode;
26
- /**
27
- * Pass a boolean value to indicate if the text field is in an error state.
28
- */
29
- error?: boolean;
30
- /**
31
- * Icon to be displayed before the input.
32
- * @description
33
- * This prop accepts either an IconType (string) or a ReactNode.
34
- * - If an IconType is provided, it will render an ADPIcon component.
35
- * - If a ReactNode is provided, it will be rendered as-is.
36
- */
37
- prefixIcon?: IconType | ReactNode;
38
- /**
39
- * Icon to be displayed after the input.
40
- * @description
41
- * This prop accepts either an IconType (string) or a ReactNode.
42
- * - If an IconType is provided, it will render an ADPIcon component.
43
- * - If a ReactNode is provided, it will be rendered as-is.
44
- */
45
- suffixIcon?: IconType | ReactNode;
46
- }
47
- export declare const TextField: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;