@cloudwick/astral-ui 5.2.0 → 7.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 (410) hide show
  1. package/README.md +6 -3
  2. package/dist/components/accordion/accordion.d.ts +45 -0
  3. package/dist/components/accordion/accordionVariants.d.ts +97 -0
  4. package/dist/components/accordion/index.d.ts +2 -0
  5. package/dist/components/adpIcon/adpIcon.d.ts +2 -4
  6. package/dist/components/adpIcon/adpIconVariants.d.ts +49 -0
  7. package/dist/components/adpIcon/index.d.ts +3 -0
  8. package/dist/components/avatar/avatar.d.ts +20 -0
  9. package/dist/components/avatar/avatarVariants.d.ts +58 -0
  10. package/dist/components/avatar/index.d.ts +2 -0
  11. package/dist/components/avatarGroup/avatarGroup.d.ts +33 -0
  12. package/dist/components/avatarGroup/avatarGroupVariants.d.ts +16 -0
  13. package/dist/components/avatarGroup/index.d.ts +2 -0
  14. package/dist/components/badge/badge.d.ts +22 -0
  15. package/dist/components/badge/badgeVariants.d.ts +58 -5
  16. package/dist/components/badge/index.d.ts +2 -0
  17. package/dist/components/breadcrumbs/breadcrumbItem.d.ts +26 -0
  18. package/dist/components/breadcrumbs/breadcrumbs.d.ts +31 -0
  19. package/dist/components/breadcrumbs/breadcrumbsVariants.d.ts +55 -0
  20. package/dist/components/breadcrumbs/index.d.ts +3 -0
  21. package/dist/components/button/button.d.ts +80 -0
  22. package/dist/components/button/buttonVariants.d.ts +73 -6
  23. package/dist/components/button/{index.js → index.d.ts} +1 -2
  24. package/dist/components/card/card.d.ts +74 -0
  25. package/dist/components/card/cardVariants.d.ts +43 -0
  26. package/dist/components/card/index.d.ts +2 -0
  27. package/dist/components/checkbox/checkbox.d.ts +1 -0
  28. package/dist/components/checkbox/checkboxVariants.d.ts +112 -0
  29. package/dist/components/checkbox/index.d.ts +2 -0
  30. package/dist/components/checkboxGroup/checkboxGroupVariants.d.ts +79 -0
  31. package/dist/components/checkboxGroup/index.d.ts +2 -0
  32. package/dist/components/ctaGroup/ctaGroupVariants.d.ts +40 -5
  33. package/dist/components/ctaGroup/index.d.ts +2 -0
  34. package/dist/components/dataTable/DataTableColumnSettings.d.ts +7 -0
  35. package/dist/components/dataTable/advancedFilters.d.ts +10 -0
  36. package/dist/components/dataTable/dataTable.d.ts +3 -3
  37. package/dist/components/dataTable/dataTableVariants.d.ts +103 -0
  38. package/dist/components/dataTable/index.d.ts +6 -0
  39. package/dist/components/dataTable/pageSizeModal.d.ts +9 -0
  40. package/dist/components/dataTable/selectedFilterList.d.ts +17 -0
  41. package/dist/components/dataTable/table.d.ts +41 -0
  42. package/dist/components/dataTable/types.d.ts +60 -0
  43. package/dist/components/datePicker/datePicker.d.ts +2 -2
  44. package/dist/components/datePicker/index.d.ts +2 -0
  45. package/dist/components/distributionSlider/distributionSlider.d.ts +81 -0
  46. package/dist/components/distributionSlider/distributionSliderVariants.d.ts +166 -0
  47. package/dist/components/distributionSlider/index.d.ts +2 -0
  48. package/dist/components/dropdown/dropdown.d.ts +50 -0
  49. package/dist/components/dropdown/dropdownItem.d.ts +40 -0
  50. package/dist/components/dropdown/dropdownToggle.d.ts +12 -0
  51. package/dist/components/dropdown/dropdownVariants.d.ts +109 -0
  52. package/dist/components/dropdown/index.d.ts +10 -0
  53. package/dist/components/emptyState/emptyState.d.ts +43 -0
  54. package/dist/components/emptyState/emptyStateContent.d.ts +11 -0
  55. package/dist/components/emptyState/emptyStateCta.d.ts +9 -0
  56. package/dist/components/emptyState/emptyStateVariants.d.ts +49 -0
  57. package/dist/components/emptyState/index.d.ts +4 -0
  58. package/dist/components/fileUpload/fileUpload.d.ts +33 -0
  59. package/dist/components/fileUpload/fileUploadVariants.d.ts +106 -0
  60. package/dist/components/fileUpload/index.d.ts +2 -0
  61. package/dist/components/fileUpload/statusCard.d.ts +18 -0
  62. package/dist/components/fileUpload/statusCardVariants.d.ts +127 -3
  63. package/dist/components/loader/index.d.ts +2 -0
  64. package/dist/components/loader/loader.d.ts +24 -0
  65. package/dist/components/loader/loaderVariants.d.ts +67 -0
  66. package/dist/components/modal/index.d.ts +2 -0
  67. package/dist/components/modal/modal.d.ts +98 -0
  68. package/dist/components/modal/modalVariants.d.ts +28 -0
  69. package/dist/components/otp/{index.js → index.d.ts} +0 -1
  70. package/dist/components/otp/input.d.ts +36 -0
  71. package/dist/components/otp/otp.d.ts +58 -0
  72. package/dist/components/otp/otpVariants.d.ts +16 -0
  73. package/dist/components/pagination/index.d.ts +3 -0
  74. package/dist/components/pagination/paginationVariants.d.ts +61 -0
  75. package/dist/components/panel/index.d.ts +13 -0
  76. package/dist/components/panel/panel.d.ts +10 -3
  77. package/dist/components/panel/panelBody.d.ts +12 -0
  78. package/dist/components/panel/panelFooter.d.ts +12 -0
  79. package/dist/components/panel/panelVariants.d.ts +248 -0
  80. package/dist/components/panelGroup/{index.js → index.d.ts} +0 -1
  81. package/dist/components/panelGroup/panelGroup.d.ts +22 -0
  82. package/dist/components/panelGroup/panelGroupVariants.d.ts +109 -0
  83. package/dist/components/passwordField/index.d.ts +1 -0
  84. package/dist/components/passwordField/passwordField.d.ts +10 -0
  85. package/dist/components/progress/index.d.ts +2 -0
  86. package/dist/components/progress/progressVariants.d.ts +220 -24
  87. package/dist/components/radio/index.d.ts +2 -0
  88. package/dist/components/radio/radioVariants.d.ts +70 -0
  89. package/dist/components/radioGroup/index.d.ts +2 -0
  90. package/dist/components/radioGroup/radioGroupVariants.d.ts +112 -0
  91. package/dist/components/scrollbar/index.d.ts +2 -0
  92. package/dist/components/scrollbar/scrollbar.d.ts +2 -2
  93. package/dist/components/scrollbar/scrollbarVariants.d.ts +100 -0
  94. package/dist/components/scrollbar/utils.d.ts +16 -0
  95. package/dist/components/select/index.d.ts +3 -0
  96. package/dist/components/select/select.d.ts +48 -0
  97. package/dist/components/select/selectVariants.d.ts +40 -0
  98. package/dist/components/select/types.d.ts +20 -0
  99. package/dist/components/select/utils.d.ts +3 -0
  100. package/dist/components/tabs/index.d.ts +2 -0
  101. package/dist/components/tabs/tabsVariants.d.ts +133 -12
  102. package/dist/components/textCopy/{index.js → index.d.ts} +1 -1
  103. package/dist/components/textCopy/textCopy.d.ts +31 -0
  104. package/dist/components/textCopy/textCopyVariants.d.ts +13 -0
  105. package/dist/components/textField/index.d.ts +2 -0
  106. package/dist/components/textField/textFieldVariants.d.ts +121 -0
  107. package/dist/components/textarea/index.d.ts +2 -0
  108. package/dist/components/textarea/textareaVariants.d.ts +67 -9
  109. package/dist/components/toast/index.d.ts +3 -0
  110. package/dist/components/toast/toast.d.ts +42 -0
  111. package/dist/components/toast/toastVariants.d.ts +94 -10
  112. package/dist/components/toggle/index.d.ts +2 -0
  113. package/dist/components/toggle/toggleVariants.d.ts +103 -0
  114. package/dist/components/tooltip/index.d.ts +2 -0
  115. package/dist/components/tooltip/tooltip.d.ts +31 -0
  116. package/dist/components/tooltip/tooltipVariants.d.ts +73 -0
  117. package/dist/components/truncate/index.d.ts +2 -0
  118. package/dist/components/truncate/truncate.d.ts +33 -0
  119. package/dist/components/truncate/truncateVariants.d.ts +16 -0
  120. package/dist/css/index.min.css +1 -1
  121. package/dist/hooks/index.d.ts +1 -0
  122. package/dist/hooks/useWindowSize.d.ts +6 -0
  123. package/dist/index.cjs.js +7 -5
  124. package/dist/{index.js → index.d.ts} +1 -1
  125. package/dist/index.esm.js +7 -5
  126. package/dist/utils/debounce.d.ts +15 -0
  127. package/dist/utils/findParentAttribute.d.ts +9 -0
  128. package/dist/utils/{index.js → index.d.ts} +0 -3
  129. package/dist/utils/numberUtils/index.d.ts +12 -0
  130. package/dist/utils/stringUtils/{fileSize.js → fileSize.d.ts} +1 -5
  131. package/dist/utils/stringUtils/{index.js → index.d.ts} +1 -2
  132. package/dist/utils/stringUtils/isRegexSafe.d.ts +13 -0
  133. package/dist/utils/stringUtils/placeholderText.d.ts +10 -0
  134. package/package.json +7 -7
  135. package/tsconfig.eslint.json +6 -3
  136. package/tsconfig.test.json +2 -1
  137. package/dist/components/accordion/accordion.js +0 -63
  138. package/dist/components/accordion/accordion.js.map +0 -1
  139. package/dist/components/accordion/accordionVariants.js +0 -52
  140. package/dist/components/accordion/accordionVariants.js.map +0 -1
  141. package/dist/components/accordion/index.js +0 -3
  142. package/dist/components/accordion/index.js.map +0 -1
  143. package/dist/components/adpIcon/adpIcon.js +0 -39
  144. package/dist/components/adpIcon/adpIcon.js.map +0 -1
  145. package/dist/components/adpIcon/adpIconVariants.js +0 -35
  146. package/dist/components/adpIcon/adpIconVariants.js.map +0 -1
  147. package/dist/components/adpIcon/index.js +0 -3
  148. package/dist/components/adpIcon/index.js.map +0 -1
  149. package/dist/components/adpIcon/svgObjects.js +0 -1534
  150. package/dist/components/adpIcon/svgObjects.js.map +0 -1
  151. package/dist/components/avatar/avatar.js +0 -39
  152. package/dist/components/avatar/avatar.js.map +0 -1
  153. package/dist/components/avatar/avatarVariants.js +0 -20
  154. package/dist/components/avatar/avatarVariants.js.map +0 -1
  155. package/dist/components/avatar/index.js +0 -3
  156. package/dist/components/avatar/index.js.map +0 -1
  157. package/dist/components/avatarGroup/avatarGroup.js +0 -57
  158. package/dist/components/avatarGroup/avatarGroup.js.map +0 -1
  159. package/dist/components/avatarGroup/avatarGroupVariants.js +0 -13
  160. package/dist/components/avatarGroup/avatarGroupVariants.js.map +0 -1
  161. package/dist/components/avatarGroup/index.js +0 -3
  162. package/dist/components/avatarGroup/index.js.map +0 -1
  163. package/dist/components/badge/badge.js +0 -24
  164. package/dist/components/badge/badge.js.map +0 -1
  165. package/dist/components/badge/badgeVariants.js +0 -136
  166. package/dist/components/badge/badgeVariants.js.map +0 -1
  167. package/dist/components/badge/index.js +0 -3
  168. package/dist/components/badge/index.js.map +0 -1
  169. package/dist/components/breadcrumbs/breadcrumbItem.js +0 -26
  170. package/dist/components/breadcrumbs/breadcrumbItem.js.map +0 -1
  171. package/dist/components/breadcrumbs/breadcrumbs.js +0 -74
  172. package/dist/components/breadcrumbs/breadcrumbs.js.map +0 -1
  173. package/dist/components/breadcrumbs/breadcrumbsVariants.js +0 -40
  174. package/dist/components/breadcrumbs/breadcrumbsVariants.js.map +0 -1
  175. package/dist/components/breadcrumbs/index.js +0 -5
  176. package/dist/components/breadcrumbs/index.js.map +0 -1
  177. package/dist/components/button/button.js +0 -69
  178. package/dist/components/button/button.js.map +0 -1
  179. package/dist/components/button/buttonVariants.js +0 -288
  180. package/dist/components/button/buttonVariants.js.map +0 -1
  181. package/dist/components/button/index.js.map +0 -1
  182. package/dist/components/card/card.js +0 -86
  183. package/dist/components/card/card.js.map +0 -1
  184. package/dist/components/card/cardVariants.js +0 -18
  185. package/dist/components/card/cardVariants.js.map +0 -1
  186. package/dist/components/card/index.js +0 -3
  187. package/dist/components/card/index.js.map +0 -1
  188. package/dist/components/checkbox/checkbox.js +0 -30
  189. package/dist/components/checkbox/checkbox.js.map +0 -1
  190. package/dist/components/checkbox/checkboxVariants.js +0 -96
  191. package/dist/components/checkbox/checkboxVariants.js.map +0 -1
  192. package/dist/components/checkbox/index.js +0 -3
  193. package/dist/components/checkbox/index.js.map +0 -1
  194. package/dist/components/checkboxGroup/checkboxGroup.js +0 -52
  195. package/dist/components/checkboxGroup/checkboxGroup.js.map +0 -1
  196. package/dist/components/checkboxGroup/checkboxGroupVariants.js +0 -31
  197. package/dist/components/checkboxGroup/checkboxGroupVariants.js.map +0 -1
  198. package/dist/components/checkboxGroup/index.js +0 -3
  199. package/dist/components/checkboxGroup/index.js.map +0 -1
  200. package/dist/components/ctaGroup/ctaGroup.js +0 -51
  201. package/dist/components/ctaGroup/ctaGroup.js.map +0 -1
  202. package/dist/components/ctaGroup/ctaGroupVariants.js +0 -26
  203. package/dist/components/ctaGroup/ctaGroupVariants.js.map +0 -1
  204. package/dist/components/ctaGroup/index.js +0 -3
  205. package/dist/components/ctaGroup/index.js.map +0 -1
  206. package/dist/components/dataTable/DataTableColumnSettings.js +0 -99
  207. package/dist/components/dataTable/DataTableColumnSettings.js.map +0 -1
  208. package/dist/components/dataTable/advancedFilters.js +0 -102
  209. package/dist/components/dataTable/advancedFilters.js.map +0 -1
  210. package/dist/components/dataTable/dataTable.js +0 -216
  211. package/dist/components/dataTable/dataTable.js.map +0 -1
  212. package/dist/components/dataTable/dataTableStoryHelpers.js +0 -2075
  213. package/dist/components/dataTable/dataTableStoryHelpers.js.map +0 -1
  214. package/dist/components/dataTable/dataTableVariants.js +0 -51
  215. package/dist/components/dataTable/dataTableVariants.js.map +0 -1
  216. package/dist/components/dataTable/index.js +0 -9
  217. package/dist/components/dataTable/index.js.map +0 -1
  218. package/dist/components/dataTable/pageSizeModal.js +0 -26
  219. package/dist/components/dataTable/pageSizeModal.js.map +0 -1
  220. package/dist/components/dataTable/selectedFilterList.js +0 -40
  221. package/dist/components/dataTable/selectedFilterList.js.map +0 -1
  222. package/dist/components/dataTable/table.js +0 -108
  223. package/dist/components/dataTable/table.js.map +0 -1
  224. package/dist/components/dataTable/types.js +0 -2
  225. package/dist/components/dataTable/types.js.map +0 -1
  226. package/dist/components/datePicker/datePicker.js +0 -274
  227. package/dist/components/datePicker/datePicker.js.map +0 -1
  228. package/dist/components/datePicker/datePickerVariants.js +0 -80
  229. package/dist/components/datePicker/datePickerVariants.js.map +0 -1
  230. package/dist/components/datePicker/index.js +0 -4
  231. package/dist/components/datePicker/index.js.map +0 -1
  232. package/dist/components/dropdown/dropdown.js +0 -95
  233. package/dist/components/dropdown/dropdown.js.map +0 -1
  234. package/dist/components/dropdown/dropdownItem.js +0 -53
  235. package/dist/components/dropdown/dropdownItem.js.map +0 -1
  236. package/dist/components/dropdown/dropdownToggle.js +0 -20
  237. package/dist/components/dropdown/dropdownToggle.js.map +0 -1
  238. package/dist/components/dropdown/dropdownVariants.js +0 -48
  239. package/dist/components/dropdown/dropdownVariants.js.map +0 -1
  240. package/dist/components/dropdown/index.js +0 -8
  241. package/dist/components/dropdown/index.js.map +0 -1
  242. package/dist/components/emptyState/emptyState.js +0 -119
  243. package/dist/components/emptyState/emptyState.js.map +0 -1
  244. package/dist/components/emptyState/emptyStateContent.js +0 -25
  245. package/dist/components/emptyState/emptyStateContent.js.map +0 -1
  246. package/dist/components/emptyState/emptyStateCta.js +0 -25
  247. package/dist/components/emptyState/emptyStateCta.js.map +0 -1
  248. package/dist/components/emptyState/emptyStateVariants.js +0 -7
  249. package/dist/components/emptyState/emptyStateVariants.js.map +0 -1
  250. package/dist/components/emptyState/index.js +0 -5
  251. package/dist/components/emptyState/index.js.map +0 -1
  252. package/dist/components/fileUpload/fileUpload.js +0 -150
  253. package/dist/components/fileUpload/fileUpload.js.map +0 -1
  254. package/dist/components/fileUpload/fileUploadVariants.js +0 -21
  255. package/dist/components/fileUpload/fileUploadVariants.js.map +0 -1
  256. package/dist/components/fileUpload/index.js +0 -3
  257. package/dist/components/fileUpload/index.js.map +0 -1
  258. package/dist/components/fileUpload/statusCard.js +0 -80
  259. package/dist/components/fileUpload/statusCard.js.map +0 -1
  260. package/dist/components/fileUpload/statusCardVariants.js +0 -19
  261. package/dist/components/fileUpload/statusCardVariants.js.map +0 -1
  262. package/dist/components/fileUpload/storyUtil.js +0 -52
  263. package/dist/components/fileUpload/storyUtil.js.map +0 -1
  264. package/dist/components/loader/index.js +0 -3
  265. package/dist/components/loader/index.js.map +0 -1
  266. package/dist/components/loader/loader.js +0 -39
  267. package/dist/components/loader/loader.js.map +0 -1
  268. package/dist/components/loader/loaderVariants.js +0 -31
  269. package/dist/components/loader/loaderVariants.js.map +0 -1
  270. package/dist/components/modal/index.js +0 -3
  271. package/dist/components/modal/index.js.map +0 -1
  272. package/dist/components/modal/modal.js +0 -95
  273. package/dist/components/modal/modal.js.map +0 -1
  274. package/dist/components/modal/modalVariants.js +0 -14
  275. package/dist/components/modal/modalVariants.js.map +0 -1
  276. package/dist/components/otp/index.js.map +0 -1
  277. package/dist/components/otp/input.js +0 -18
  278. package/dist/components/otp/input.js.map +0 -1
  279. package/dist/components/otp/otp.js +0 -131
  280. package/dist/components/otp/otp.js.map +0 -1
  281. package/dist/components/otp/otpVariants.js +0 -13
  282. package/dist/components/otp/otpVariants.js.map +0 -1
  283. package/dist/components/pagination/index.js +0 -5
  284. package/dist/components/pagination/index.js.map +0 -1
  285. package/dist/components/pagination/pagination.js +0 -83
  286. package/dist/components/pagination/pagination.js.map +0 -1
  287. package/dist/components/pagination/paginationVariants.js +0 -44
  288. package/dist/components/pagination/paginationVariants.js.map +0 -1
  289. package/dist/components/panel/index.js +0 -11
  290. package/dist/components/panel/index.js.map +0 -1
  291. package/dist/components/panel/panel.js +0 -82
  292. package/dist/components/panel/panel.js.map +0 -1
  293. package/dist/components/panel/panelBody.js +0 -21
  294. package/dist/components/panel/panelBody.js.map +0 -1
  295. package/dist/components/panel/panelFooter.js +0 -21
  296. package/dist/components/panel/panelFooter.js.map +0 -1
  297. package/dist/components/panel/panelHeader.js +0 -24
  298. package/dist/components/panel/panelHeader.js.map +0 -1
  299. package/dist/components/panel/panelVariants.js +0 -122
  300. package/dist/components/panel/panelVariants.js.map +0 -1
  301. package/dist/components/panelGroup/index.js.map +0 -1
  302. package/dist/components/panelGroup/panelGroup.js +0 -38
  303. package/dist/components/panelGroup/panelGroup.js.map +0 -1
  304. package/dist/components/panelGroup/panelGroupVariants.js +0 -34
  305. package/dist/components/panelGroup/panelGroupVariants.js.map +0 -1
  306. package/dist/components/passwordField/index.js +0 -2
  307. package/dist/components/passwordField/index.js.map +0 -1
  308. package/dist/components/passwordField/passwordField.js +0 -29
  309. package/dist/components/passwordField/passwordField.js.map +0 -1
  310. package/dist/components/progress/index.js +0 -3
  311. package/dist/components/progress/index.js.map +0 -1
  312. package/dist/components/progress/progress.js +0 -62
  313. package/dist/components/progress/progress.js.map +0 -1
  314. package/dist/components/progress/progressVariants.js +0 -103
  315. package/dist/components/progress/progressVariants.js.map +0 -1
  316. package/dist/components/radio/index.js +0 -3
  317. package/dist/components/radio/index.js.map +0 -1
  318. package/dist/components/radio/radio.js +0 -26
  319. package/dist/components/radio/radio.js.map +0 -1
  320. package/dist/components/radio/radioVariants.js +0 -46
  321. package/dist/components/radio/radioVariants.js.map +0 -1
  322. package/dist/components/radioGroup/index.js +0 -3
  323. package/dist/components/radioGroup/index.js.map +0 -1
  324. package/dist/components/radioGroup/radioGroup.js +0 -48
  325. package/dist/components/radioGroup/radioGroup.js.map +0 -1
  326. package/dist/components/radioGroup/radioGroupVariants.js +0 -53
  327. package/dist/components/radioGroup/radioGroupVariants.js.map +0 -1
  328. package/dist/components/scrollbar/index.js +0 -3
  329. package/dist/components/scrollbar/index.js.map +0 -1
  330. package/dist/components/scrollbar/scrollbar.js +0 -361
  331. package/dist/components/scrollbar/scrollbar.js.map +0 -1
  332. package/dist/components/scrollbar/scrollbarVariants.js +0 -100
  333. package/dist/components/scrollbar/scrollbarVariants.js.map +0 -1
  334. package/dist/components/scrollbar/utils.js +0 -28
  335. package/dist/components/scrollbar/utils.js.map +0 -1
  336. package/dist/components/select/index.js +0 -3
  337. package/dist/components/select/index.js.map +0 -1
  338. package/dist/components/select/select.js +0 -134
  339. package/dist/components/select/select.js.map +0 -1
  340. package/dist/components/select/selectVariants.js +0 -35
  341. package/dist/components/select/selectVariants.js.map +0 -1
  342. package/dist/components/select/types.js +0 -9
  343. package/dist/components/select/types.js.map +0 -1
  344. package/dist/components/select/utils.js +0 -118
  345. package/dist/components/select/utils.js.map +0 -1
  346. package/dist/components/tabs/index.js +0 -3
  347. package/dist/components/tabs/index.js.map +0 -1
  348. package/dist/components/tabs/tabs.js +0 -141
  349. package/dist/components/tabs/tabs.js.map +0 -1
  350. package/dist/components/tabs/tabsVariants.js +0 -183
  351. package/dist/components/tabs/tabsVariants.js.map +0 -1
  352. package/dist/components/textCopy/index.js.map +0 -1
  353. package/dist/components/textCopy/textCopy.js +0 -36
  354. package/dist/components/textCopy/textCopy.js.map +0 -1
  355. package/dist/components/textCopy/textCopyVariants.js +0 -12
  356. package/dist/components/textCopy/textCopyVariants.js.map +0 -1
  357. package/dist/components/textField/index.js +0 -3
  358. package/dist/components/textField/index.js.map +0 -1
  359. package/dist/components/textField/textField.js +0 -37
  360. package/dist/components/textField/textField.js.map +0 -1
  361. package/dist/components/textField/textFieldVariants.js +0 -84
  362. package/dist/components/textField/textFieldVariants.js.map +0 -1
  363. package/dist/components/textarea/index.js +0 -3
  364. package/dist/components/textarea/index.js.map +0 -1
  365. package/dist/components/textarea/textarea.js +0 -29
  366. package/dist/components/textarea/textarea.js.map +0 -1
  367. package/dist/components/textarea/textareaVariants.js +0 -37
  368. package/dist/components/textarea/textareaVariants.js.map +0 -1
  369. package/dist/components/toast/index.js +0 -3
  370. package/dist/components/toast/index.js.map +0 -1
  371. package/dist/components/toast/toast.js +0 -51
  372. package/dist/components/toast/toast.js.map +0 -1
  373. package/dist/components/toast/toastVariants.js +0 -45
  374. package/dist/components/toast/toastVariants.js.map +0 -1
  375. package/dist/components/toggle/index.js +0 -3
  376. package/dist/components/toggle/index.js.map +0 -1
  377. package/dist/components/toggle/toggle.js +0 -34
  378. package/dist/components/toggle/toggle.js.map +0 -1
  379. package/dist/components/toggle/toggleVariants.js +0 -40
  380. package/dist/components/toggle/toggleVariants.js.map +0 -1
  381. package/dist/components/tooltip/index.js +0 -3
  382. package/dist/components/tooltip/index.js.map +0 -1
  383. package/dist/components/tooltip/tooltip.js +0 -100
  384. package/dist/components/tooltip/tooltip.js.map +0 -1
  385. package/dist/components/tooltip/tooltipVariants.js +0 -13
  386. package/dist/components/tooltip/tooltipVariants.js.map +0 -1
  387. package/dist/components/truncate/index.js +0 -3
  388. package/dist/components/truncate/index.js.map +0 -1
  389. package/dist/components/truncate/truncate.js +0 -36
  390. package/dist/components/truncate/truncate.js.map +0 -1
  391. package/dist/components/truncate/truncateVariants.js +0 -13
  392. package/dist/components/truncate/truncateVariants.js.map +0 -1
  393. package/dist/index.js.map +0 -1
  394. package/dist/tailwindThemeConfig.js +0 -194
  395. package/dist/tailwindThemeConfig.js.map +0 -1
  396. package/dist/utils/cn.js +0 -13
  397. package/dist/utils/cn.js.map +0 -1
  398. package/dist/utils/debounce.js +0 -30
  399. package/dist/utils/debounce.js.map +0 -1
  400. package/dist/utils/findParentAttribute.js +0 -23
  401. package/dist/utils/findParentAttribute.js.map +0 -1
  402. package/dist/utils/index.js.map +0 -1
  403. package/dist/utils/numberUtils/index.js +0 -41
  404. package/dist/utils/numberUtils/index.js.map +0 -1
  405. package/dist/utils/stringUtils/fileSize.js.map +0 -1
  406. package/dist/utils/stringUtils/index.js.map +0 -1
  407. package/dist/utils/stringUtils/placeholderText.js +0 -77
  408. package/dist/utils/stringUtils/placeholderText.js.map +0 -1
  409. package/dist/utils/useWindowSize.js +0 -25
  410. package/dist/utils/useWindowSize.js.map +0 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  UI Library for Cloudwick
4
4
 
5
- Version - 5.2.0
5
+ Version - 7.0.0
6
6
 
7
7
  ## Installation
8
8
 
@@ -39,6 +39,7 @@ Astral UI provides the following components:
39
39
  - CTAGroup
40
40
  - DataTable
41
41
  - DatePicker
42
+ - DistributionSlider
42
43
  - Dropdown
43
44
  - EmptyState
44
45
  - FileUpload
@@ -74,8 +75,10 @@ import { tailwindThemeConfig } from '@cloudwick/astral-ui';
74
75
  export default {
75
76
  // Your existing config
76
77
  theme: {
77
- // Add Astral UI theme
78
- ...tailwindThemeConfig
78
+ extend: {
79
+ // Add Astral UI theme
80
+ ...tailwindThemeConfig
81
+ }
79
82
  }
80
83
  }
81
84
  ```
@@ -0,0 +1,45 @@
1
+ import * as React from "react";
2
+ import { type ReactElement } from "react";
3
+ export type TAccordionSize = "xs" | "sm" | "md" | "lg" | "xl";
4
+ export interface IAccordionHeaderProps {
5
+ children: React.ReactNode;
6
+ /**
7
+ * Overwrite the styles for AccordionHeader by passing space separated class names
8
+ */
9
+ className?: string;
10
+ }
11
+ declare const AccordionHeader: React.ForwardRefExoticComponent<IAccordionHeaderProps & React.RefAttributes<HTMLSpanElement>>;
12
+ export interface IAccordionBodyProps {
13
+ children: React.ReactNode | React.ReactElement;
14
+ /**
15
+ * Overwrite the styles for AccordionBody by passing space separated class names
16
+ */
17
+ className?: string;
18
+ }
19
+ declare const AccordionBody: React.ForwardRefExoticComponent<IAccordionBodyProps & React.RefAttributes<HTMLDivElement>>;
20
+ export interface IAccordionProps extends React.HTMLAttributes<HTMLDivElement> {
21
+ children?: Array<ReactElement<IAccordionBodyProps | IAccordionHeaderProps>>;
22
+ /**
23
+ * Expand or collapse the Accordion
24
+ */
25
+ expand?: boolean;
26
+ /**
27
+ * Set it to false if you want the Accordion to Expand or Collapse only on click of the arrow
28
+ */
29
+ clickableHeader?: boolean;
30
+ /**
31
+ * Size of the Accordion Header (Text and Spacing)
32
+ * @default sm
33
+ */
34
+ size?: TAccordionSize;
35
+ /**
36
+ * Overwrite the styles for Accordion by passing space separated class names
37
+ */
38
+ className?: string;
39
+ }
40
+ export interface IAccordionType extends React.ForwardRefExoticComponent<IAccordionProps & React.RefAttributes<HTMLDivElement>> {
41
+ Header: typeof AccordionHeader;
42
+ Body: typeof AccordionBody;
43
+ }
44
+ export declare const Accordion: IAccordionType;
45
+ export {};
@@ -0,0 +1,97 @@
1
+ export declare const accordionVariants: import("tailwind-variants").TVReturnType<{
2
+ size: {
3
+ xs: {
4
+ header: string;
5
+ content: string;
6
+ };
7
+ sm: {
8
+ header: string;
9
+ content: string;
10
+ };
11
+ md: {
12
+ header: string;
13
+ content: string;
14
+ };
15
+ lg: {
16
+ header: string;
17
+ content: string;
18
+ };
19
+ xl: {
20
+ header: string;
21
+ content: string;
22
+ };
23
+ };
24
+ expanded: {
25
+ true: {
26
+ content: string;
27
+ };
28
+ };
29
+ }, {
30
+ base: string[];
31
+ header: string;
32
+ content: string;
33
+ }, undefined, {
34
+ size: {
35
+ xs: {
36
+ header: string;
37
+ content: string;
38
+ };
39
+ sm: {
40
+ header: string;
41
+ content: string;
42
+ };
43
+ md: {
44
+ header: string;
45
+ content: string;
46
+ };
47
+ lg: {
48
+ header: string;
49
+ content: string;
50
+ };
51
+ xl: {
52
+ header: string;
53
+ content: string;
54
+ };
55
+ };
56
+ expanded: {
57
+ true: {
58
+ content: string;
59
+ };
60
+ };
61
+ }, {
62
+ base: string[];
63
+ header: string;
64
+ content: string;
65
+ }, import("tailwind-variants").TVReturnType<{
66
+ size: {
67
+ xs: {
68
+ header: string;
69
+ content: string;
70
+ };
71
+ sm: {
72
+ header: string;
73
+ content: string;
74
+ };
75
+ md: {
76
+ header: string;
77
+ content: string;
78
+ };
79
+ lg: {
80
+ header: string;
81
+ content: string;
82
+ };
83
+ xl: {
84
+ header: string;
85
+ content: string;
86
+ };
87
+ };
88
+ expanded: {
89
+ true: {
90
+ content: string;
91
+ };
92
+ };
93
+ }, {
94
+ base: string[];
95
+ header: string;
96
+ content: string;
97
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,2 @@
1
+ export { Accordion, type IAccordionProps, type IAccordionHeaderProps, type IAccordionBodyProps, type TAccordionSize, type IAccordionType } from "./accordion";
2
+ export { accordionVariants } from "./accordionVariants";
@@ -12,10 +12,9 @@ export { iconList };
12
12
  export interface IADPIconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "size"> {
13
13
  /**
14
14
  * Icon name from the list of available icons
15
- * use "custom-icon" to pass a custom SVG object
16
- * @default "custom-icon"
15
+ * @default undefined
17
16
  */
18
- icon: TIconType;
17
+ icon?: TIconType;
19
18
  /**
20
19
  * Size of the icon. The size is proportional to the initial size of the icon.
21
20
  * @default "sm"
@@ -45,7 +44,6 @@ export interface IADPIconProps extends Omit<React.SVGAttributes<SVGSVGElement>,
45
44
  fixedWidth?: boolean;
46
45
  /**
47
46
  * Custom SVG object to be used instead of one of the default icons.
48
- * Use "custom-icon" as the icon prop to bypass the required icon prop.
49
47
  * The custom SVG object should have the following properties:
50
48
  * - SVGPath: ReactElement (required) (SVG path element)
51
49
  * - xOffset: number (optional)
@@ -0,0 +1,49 @@
1
+ export declare const adpIconVariants: import("tailwind-variants").TVReturnType<{
2
+ variant: {
3
+ default: string;
4
+ };
5
+ fixedWidth: {
6
+ true: string;
7
+ };
8
+ padded: {
9
+ true: string;
10
+ };
11
+ spin: {
12
+ true: string;
13
+ };
14
+ }, undefined, "fill-current", {
15
+ variant: {
16
+ default: string;
17
+ };
18
+ fixedWidth: {
19
+ true: string;
20
+ };
21
+ padded: {
22
+ true: string;
23
+ };
24
+ spin: {
25
+ true: string;
26
+ };
27
+ }, undefined, import("tailwind-variants").TVReturnType<{
28
+ variant: {
29
+ default: string;
30
+ };
31
+ fixedWidth: {
32
+ true: string;
33
+ };
34
+ padded: {
35
+ true: string;
36
+ };
37
+ spin: {
38
+ true: string;
39
+ };
40
+ }, undefined, "fill-current", unknown, unknown, undefined>>;
41
+ export declare const iconSizeProportions: {
42
+ xxs: number;
43
+ xs: number;
44
+ sm: number;
45
+ md: number;
46
+ lg: number;
47
+ xl: number;
48
+ "2xl": number;
49
+ };
@@ -0,0 +1,3 @@
1
+ export { ADPIcon, iconList, type IADPIconProps } from "./adpIcon";
2
+ export { adpIconVariants, iconSizeProportions } from "./adpIconVariants";
3
+ export type { TIconType } from "./svgObjects";
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Avatar component for displaying user profile images with fallback support
4
+ */
5
+ export interface IAvatarProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /** The image source URL */
7
+ img?: string;
8
+ /** The label/name to display as fallback */
9
+ label?: string;
10
+ /** The size of the avatar */
11
+ size?: "sm" | "md" | "lg" | "xl";
12
+ /** Alt text for the avatar image */
13
+ alt?: string;
14
+ /** If true, the label will be abbreviated to its initials */
15
+ abbreviate?: boolean;
16
+ }
17
+ /**
18
+ * Avatar component for displaying user profile images with fallback support
19
+ */
20
+ export declare const Avatar: React.ForwardRefExoticComponent<IAvatarProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,58 @@
1
+ export declare const avatarVariants: import("tailwind-variants").TVReturnType<{
2
+ size: {
3
+ sm: {
4
+ base: string;
5
+ };
6
+ md: {
7
+ base: string;
8
+ };
9
+ lg: {
10
+ base: string;
11
+ };
12
+ xl: {
13
+ base: string;
14
+ };
15
+ };
16
+ }, {
17
+ base: string[];
18
+ image: string;
19
+ fallback: string;
20
+ }, undefined, {
21
+ size: {
22
+ sm: {
23
+ base: string;
24
+ };
25
+ md: {
26
+ base: string;
27
+ };
28
+ lg: {
29
+ base: string;
30
+ };
31
+ xl: {
32
+ base: string;
33
+ };
34
+ };
35
+ }, {
36
+ base: string[];
37
+ image: string;
38
+ fallback: string;
39
+ }, import("tailwind-variants").TVReturnType<{
40
+ size: {
41
+ sm: {
42
+ base: string;
43
+ };
44
+ md: {
45
+ base: string;
46
+ };
47
+ lg: {
48
+ base: string;
49
+ };
50
+ xl: {
51
+ base: string;
52
+ };
53
+ };
54
+ }, {
55
+ base: string[];
56
+ image: string;
57
+ fallback: string;
58
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,2 @@
1
+ export { Avatar, type IAvatarProps } from "./avatar";
2
+ export { avatarVariants } from "./avatarVariants";
@@ -0,0 +1,33 @@
1
+ import * as React from "react";
2
+ import { type IAvatarProps } from "../avatar";
3
+ /**
4
+ * AvatarGroup component for displaying a group of avatars with overflow handling
5
+ */
6
+ export interface IAvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ /**
8
+ * Accept children
9
+ */
10
+ children: React.ReactElement<IAvatarProps> | Array<React.ReactElement<IAvatarProps>>;
11
+ /**
12
+ * Callback to be called when the AvatarGroup is clicked
13
+ */
14
+ onClick?: () => void;
15
+ /**
16
+ * Maximum items to display in the group before the custom avatar is shown
17
+ * @default 4
18
+ */
19
+ maxItems?: number;
20
+ /**
21
+ * Size of the Avatars
22
+ * @default md
23
+ */
24
+ size?: IAvatarProps["size"];
25
+ /**
26
+ * Overwrite the styles for the AvatarGroup by passing space separated class names
27
+ */
28
+ className?: string;
29
+ }
30
+ /**
31
+ * AvatarGroup component for displaying a group of avatars with overflow handling
32
+ */
33
+ export declare const AvatarGroup: React.ForwardRefExoticComponent<IAvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,16 @@
1
+ export declare const avatarGroupVariants: import("tailwind-variants").TVReturnType<{
2
+ clickable: {
3
+ true: string;
4
+ false: string;
5
+ };
6
+ }, undefined, "inline-flex items-center flex-wrap -space-x-3", {
7
+ clickable: {
8
+ true: string;
9
+ false: string;
10
+ };
11
+ }, undefined, import("tailwind-variants").TVReturnType<{
12
+ clickable: {
13
+ true: string;
14
+ false: string;
15
+ };
16
+ }, undefined, "inline-flex items-center flex-wrap -space-x-3", unknown, unknown, undefined>>;
@@ -0,0 +1,2 @@
1
+ export { AvatarGroup, type IAvatarGroupProps } from "./avatarGroup";
2
+ export { avatarGroupVariants } from "./avatarGroupVariants";
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Badge component for displaying small counts, labels, or statuses
4
+ */
5
+ export interface IBadgeProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /** Text to be displayed inside the badge */
7
+ label?: string;
8
+ /** Icon to be displayed before the label */
9
+ prefixIcon?: React.ReactNode;
10
+ /** Icon to be displayed after the label */
11
+ suffixIcon?: React.ReactNode;
12
+ /** Badge appearance style */
13
+ variant?: "filled" | "ghost" | "outline" | "text";
14
+ /** Badge size */
15
+ size?: "sm" | "md" | "lg";
16
+ /** Badge color scheme */
17
+ color?: "primary" | "secondary" | "success" | "warning" | "error";
18
+ }
19
+ /**
20
+ * Badge component for displaying small counts, labels, or statuses
21
+ */
22
+ export declare const Badge: React.ForwardRefExoticComponent<IBadgeProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,58 @@
1
- export declare const badgeVariants: (props?: ({
2
- variant?: "text" | "filled" | "outline" | "ghost" | null | undefined;
3
- size?: "sm" | "md" | "lg" | null | undefined;
4
- color?: "error" | "primary" | "secondary" | "success" | "warning" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
1
+ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
2
+ variant: {
3
+ filled: string;
4
+ ghost: string;
5
+ outline: string;
6
+ text: string;
7
+ };
8
+ size: {
9
+ sm: string;
10
+ md: string;
11
+ lg: string;
12
+ };
13
+ color: {
14
+ primary: string;
15
+ secondary: string;
16
+ success: string;
17
+ warning: string;
18
+ error: string;
19
+ };
20
+ }, undefined, "inline-flex justify-center items-center gap-1 rounded-full font-medium ease-in-out duration-300 bg-transparent", {
21
+ variant: {
22
+ filled: string;
23
+ ghost: string;
24
+ outline: string;
25
+ text: string;
26
+ };
27
+ size: {
28
+ sm: string;
29
+ md: string;
30
+ lg: string;
31
+ };
32
+ color: {
33
+ primary: string;
34
+ secondary: string;
35
+ success: string;
36
+ warning: string;
37
+ error: string;
38
+ };
39
+ }, undefined, import("tailwind-variants").TVReturnType<{
40
+ variant: {
41
+ filled: string;
42
+ ghost: string;
43
+ outline: string;
44
+ text: string;
45
+ };
46
+ size: {
47
+ sm: string;
48
+ md: string;
49
+ lg: string;
50
+ };
51
+ color: {
52
+ primary: string;
53
+ secondary: string;
54
+ success: string;
55
+ warning: string;
56
+ error: string;
57
+ };
58
+ }, undefined, "inline-flex justify-center items-center gap-1 rounded-full font-medium ease-in-out duration-300 bg-transparent", unknown, unknown, undefined>>;
@@ -0,0 +1,2 @@
1
+ export { Badge, type IBadgeProps } from "./badge";
2
+ export { badgeVariants } from "./badgeVariants";
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Props for the BreadcrumbItem component
4
+ */
5
+ export interface IBreadcrumbItemProps extends React.HTMLAttributes<HTMLLIElement> {
6
+ /**
7
+ * Location href for the breadcrumbs item anchor element
8
+ */
9
+ href?: string;
10
+ /**
11
+ * Target property for the breadcrumbs item anchor element.
12
+ */
13
+ target?: "_blank" | "_self";
14
+ /**
15
+ * When set to true the user can pass any custom link component as children instead of using the default <a> tag.
16
+ */
17
+ customLink?: boolean;
18
+ /**
19
+ * Make the current breadcrumbs item as active
20
+ */
21
+ active?: boolean;
22
+ }
23
+ /**
24
+ * Individual item in a breadcrumb trail
25
+ */
26
+ export declare const BreadcrumbItem: React.ForwardRefExoticComponent<IBreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ import { BreadcrumbItem, type IBreadcrumbItemProps } from "./breadcrumbItem";
3
+ /**
4
+ * Props for the Breadcrumbs component
5
+ */
6
+ export interface IBreadcrumbsProps extends React.HTMLAttributes<HTMLElement> {
7
+ /**
8
+ * The maximum number of items to display in the breadcrumbs
9
+ * @default 10
10
+ * @range 2 - maxItems
11
+ */
12
+ maxItems?: number;
13
+ /**
14
+ * Accepts Breadcrumbs.Item[]
15
+ */
16
+ children?: React.ReactElement<IBreadcrumbItemProps> | Array<React.ReactElement<IBreadcrumbItemProps>>;
17
+ /**
18
+ * Determines the separator type: "arrow" for ">", "dot" for "."
19
+ * @default "arrow"
20
+ */
21
+ separatorType?: "arrow" | "dot";
22
+ }
23
+ /**
24
+ * Breadcrumbs component for navigation
25
+ */
26
+ declare const BreadcrumbsComponent: React.ForwardRefExoticComponent<IBreadcrumbsProps & React.RefAttributes<HTMLElement>>;
27
+ type TBreadcrumbsCompoundComponent = typeof BreadcrumbsComponent & {
28
+ Item: typeof BreadcrumbItem;
29
+ };
30
+ declare const Breadcrumbs: TBreadcrumbsCompoundComponent;
31
+ export { Breadcrumbs, BreadcrumbItem };
@@ -0,0 +1,55 @@
1
+ export declare const breadcrumbsVariants: import("tailwind-variants").TVReturnType<{
2
+ separatorType: {
3
+ arrow: {};
4
+ dot: {};
5
+ };
6
+ active: {
7
+ true: {
8
+ item: string;
9
+ };
10
+ false: {};
11
+ };
12
+ }, {
13
+ root: string;
14
+ list: string;
15
+ separator: string;
16
+ svgIcon: string;
17
+ dotSeparator: string;
18
+ item: string;
19
+ }, undefined, {
20
+ separatorType: {
21
+ arrow: {};
22
+ dot: {};
23
+ };
24
+ active: {
25
+ true: {
26
+ item: string;
27
+ };
28
+ false: {};
29
+ };
30
+ }, {
31
+ root: string;
32
+ list: string;
33
+ separator: string;
34
+ svgIcon: string;
35
+ dotSeparator: string;
36
+ item: string;
37
+ }, import("tailwind-variants").TVReturnType<{
38
+ separatorType: {
39
+ arrow: {};
40
+ dot: {};
41
+ };
42
+ active: {
43
+ true: {
44
+ item: string;
45
+ };
46
+ false: {};
47
+ };
48
+ }, {
49
+ root: string;
50
+ list: string;
51
+ separator: string;
52
+ svgIcon: string;
53
+ dotSeparator: string;
54
+ item: string;
55
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,3 @@
1
+ export { Breadcrumbs, type IBreadcrumbsProps } from "./breadcrumbs";
2
+ export { BreadcrumbItem, type IBreadcrumbItemProps } from "./breadcrumbItem";
3
+ export { breadcrumbsVariants } from "./breadcrumbsVariants";
@@ -0,0 +1,80 @@
1
+ import * as React from "react";
2
+ import type { Placement } from "@floating-ui/react";
3
+ import { type TIconType } from "../adpIcon";
4
+ export declare const colors: readonly ["primary", "secondary", "success", "warning", "error"];
5
+ export declare const variants: readonly ["filled", "outline", "shade", "text"];
6
+ export declare enum ESizes {
7
+ XS = "xs",
8
+ SM = "sm",
9
+ MD = "md",
10
+ LG = "lg",
11
+ XL = "xl"
12
+ }
13
+ export type TColor = (typeof colors)[number];
14
+ export type TVariant = (typeof variants)[number];
15
+ export type TSize = `${ESizes}`;
16
+ /**
17
+ * Button component from Astral UI
18
+ */
19
+ export interface IButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "css"> {
20
+ /**
21
+ * Size of the button.
22
+ * @default md
23
+ */
24
+ size?: TSize;
25
+ /**
26
+ * Color of the button.
27
+ * @default primary
28
+ */
29
+ color?: TColor;
30
+ /**
31
+ * Variant of the button.
32
+ * @default filled
33
+ */
34
+ variant?: TVariant;
35
+ /**
36
+ * Shows loading animation instead of the button content
37
+ */
38
+ loading?: boolean;
39
+ /**
40
+ * Icon to be displayed before the button's content.
41
+ * @description
42
+ * This prop accepts either an IconType (string) or a ReactNode.
43
+ * - If an IconType is provided, it will render an ADPIcon component.
44
+ * - If a ReactNode is provided, it will be rendered as-is.
45
+ */
46
+ prefixIcon?: TIconType | React.ReactNode;
47
+ /**
48
+ * Icon to be displayed after the button's content.
49
+ * @description
50
+ * This prop accepts either an IconType (string) or a ReactNode.
51
+ * - If an IconType is provided, it will render an ADPIcon component.
52
+ * - If a ReactNode is provided, it will be rendered as-is.
53
+ */
54
+ suffixIcon?: TIconType | React.ReactNode;
55
+ /**
56
+ * Tooltip to be displayed on hover of the button.
57
+ * @description
58
+ * This prop accepts a ReactNode, if this is passed then the button will render
59
+ * tooltip on hover of the button.
60
+ * This tooltip is only on hover and not on click.
61
+ */
62
+ tooltip?: React.ReactNode;
63
+ /**
64
+ * Placement of the tooltip
65
+ * @default "bottom-end"
66
+ */
67
+ tooltipPlacement?: Placement;
68
+ }
69
+ export declare const ButtonSizeToSpinnerMap: Record<TSize, "xxs" | "xs" | "sm" | "md" | "lg" | "xl">;
70
+ /**
71
+ * Button component with multiple variants, colors, and sizes.
72
+ *
73
+ * @example
74
+ * ```tsx
75
+ * <Button variant="filled" color="primary" size="md">
76
+ * Click me
77
+ * </Button>
78
+ * ```
79
+ */
80
+ export declare const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>>;