@cloudwick/astral-ui 5.1.0 → 6.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 (406) 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 +10 -0
  4. package/dist/components/accordion/index.d.ts +2 -0
  5. package/dist/components/adpIcon/adpIcon.d.ts +62 -0
  6. package/dist/components/adpIcon/adpIconVariants.d.ts +15 -0
  7. package/dist/components/adpIcon/index.d.ts +3 -0
  8. package/dist/components/adpIcon/svgObjects.d.ts +268 -0
  9. package/dist/components/avatar/avatar.d.ts +20 -0
  10. package/dist/components/avatar/avatarVariants.d.ts +5 -0
  11. package/dist/components/avatar/{index.js → index.d.ts} +1 -2
  12. package/dist/components/avatarGroup/avatarGroup.d.ts +33 -0
  13. package/dist/components/avatarGroup/avatarGroupVariants.d.ts +3 -0
  14. package/dist/components/avatarGroup/index.d.ts +2 -0
  15. package/dist/components/badge/badge.d.ts +22 -0
  16. package/dist/components/badge/badgeVariants.d.ts +5 -0
  17. package/dist/components/badge/index.d.ts +2 -0
  18. package/dist/components/breadcrumbs/breadcrumbItem.d.ts +26 -0
  19. package/dist/components/breadcrumbs/breadcrumbs.d.ts +31 -0
  20. package/dist/components/breadcrumbs/breadcrumbsVariants.d.ts +10 -0
  21. package/dist/components/breadcrumbs/{index.js → index.d.ts} +3 -3
  22. package/dist/components/button/button.d.ts +80 -0
  23. package/dist/components/button/buttonVariants.d.ts +6 -0
  24. package/dist/components/button/{index.js → index.d.ts} +1 -2
  25. package/dist/components/card/card.d.ts +74 -0
  26. package/dist/components/card/cardVariants.d.ts +4 -0
  27. package/dist/components/card/{index.js → index.d.ts} +1 -2
  28. package/dist/components/checkbox/checkbox.d.ts +29 -0
  29. package/dist/components/checkbox/checkboxVariants.d.ts +9 -0
  30. package/dist/components/checkbox/{index.js → index.d.ts} +1 -2
  31. package/dist/components/checkboxGroup/checkboxGroup.d.ts +47 -0
  32. package/dist/components/checkboxGroup/checkboxGroupVariants.d.ts +7 -0
  33. package/dist/components/checkboxGroup/{index.js → index.d.ts} +1 -2
  34. package/dist/components/ctaGroup/ctaGroup.d.ts +32 -0
  35. package/dist/components/ctaGroup/ctaGroupVariants.d.ts +5 -0
  36. package/dist/components/ctaGroup/{index.js → index.d.ts} +1 -2
  37. package/dist/components/dataTable/DataTableColumnSettings.d.ts +7 -0
  38. package/dist/components/dataTable/advancedFilters.d.ts +10 -0
  39. package/dist/components/dataTable/dataTable.d.ts +143 -0
  40. package/dist/components/dataTable/dataTableVariants.d.ts +22 -0
  41. package/dist/components/dataTable/{index.js → index.d.ts} +2 -5
  42. package/dist/components/dataTable/pageSizeModal.d.ts +9 -0
  43. package/dist/components/dataTable/selectedFilterList.d.ts +17 -0
  44. package/dist/components/dataTable/table.d.ts +41 -0
  45. package/dist/components/dataTable/types.d.ts +60 -0
  46. package/dist/components/datePicker/datePicker.d.ts +39 -0
  47. package/dist/components/datePicker/datePickerVariants.d.ts +43 -0
  48. package/dist/components/datePicker/{index.js → index.d.ts} +1 -2
  49. package/dist/components/distributionSlider/distributionSlider.d.ts +81 -0
  50. package/dist/components/distributionSlider/distributionSliderVariants.d.ts +27 -0
  51. package/dist/components/distributionSlider/index.d.ts +2 -0
  52. package/dist/components/dropdown/dropdown.d.ts +50 -0
  53. package/dist/components/dropdown/dropdownItem.d.ts +40 -0
  54. package/dist/components/dropdown/dropdownToggle.d.ts +12 -0
  55. package/dist/components/dropdown/dropdownVariants.d.ts +11 -0
  56. package/dist/components/dropdown/index.d.ts +10 -0
  57. package/dist/components/emptyState/emptyState.d.ts +43 -0
  58. package/dist/components/emptyState/emptyStateContent.d.ts +11 -0
  59. package/dist/components/emptyState/emptyStateCta.d.ts +9 -0
  60. package/dist/components/emptyState/emptyStateVariants.d.ts +5 -0
  61. package/dist/components/emptyState/index.d.ts +4 -0
  62. package/dist/components/fileUpload/fileUpload.d.ts +33 -0
  63. package/dist/components/fileUpload/fileUploadVariants.d.ts +4 -0
  64. package/dist/components/fileUpload/index.d.ts +2 -0
  65. package/dist/components/fileUpload/statusCard.d.ts +18 -0
  66. package/dist/components/fileUpload/statusCardVariants.d.ts +3 -0
  67. package/dist/components/loader/index.d.ts +2 -0
  68. package/dist/components/loader/loader.d.ts +24 -0
  69. package/dist/components/loader/loaderVariants.d.ts +7 -0
  70. package/dist/components/modal/index.d.ts +2 -0
  71. package/dist/components/modal/modal.d.ts +98 -0
  72. package/dist/components/modal/modalVariants.d.ts +4 -0
  73. package/dist/components/otp/{index.js → index.d.ts} +0 -1
  74. package/dist/components/otp/input.d.ts +36 -0
  75. package/dist/components/otp/otp.d.ts +58 -0
  76. package/dist/components/otp/otpVariants.d.ts +3 -0
  77. package/dist/components/pagination/{index.js → index.d.ts} +1 -3
  78. package/dist/components/pagination/pagination.d.ts +42 -0
  79. package/dist/components/pagination/paginationVariants.d.ts +10 -0
  80. package/dist/components/panel/index.d.ts +13 -0
  81. package/dist/components/panel/panel.d.ts +61 -0
  82. package/dist/components/panel/panelBody.d.ts +12 -0
  83. package/dist/components/panel/panelFooter.d.ts +12 -0
  84. package/dist/components/panel/panelHeader.d.ts +38 -0
  85. package/dist/components/panel/panelVariants.d.ts +50 -0
  86. package/dist/components/panelGroup/{index.js → index.d.ts} +0 -1
  87. package/dist/components/panelGroup/panelGroup.d.ts +22 -0
  88. package/dist/components/panelGroup/panelGroupVariants.d.ts +8 -0
  89. package/dist/components/passwordField/index.d.ts +1 -0
  90. package/dist/components/passwordField/passwordField.d.ts +10 -0
  91. package/dist/components/progress/{index.js → index.d.ts} +1 -2
  92. package/dist/components/progress/progress.d.ts +67 -0
  93. package/dist/components/progress/progressVariants.d.ts +24 -0
  94. package/dist/components/radio/{index.js → index.d.ts} +1 -2
  95. package/dist/components/radio/radio.d.ts +19 -0
  96. package/dist/components/radio/radioVariants.d.ts +7 -0
  97. package/dist/components/radioGroup/{index.js → index.d.ts} +1 -2
  98. package/dist/components/radioGroup/radioGroup.d.ts +53 -0
  99. package/dist/components/radioGroup/radioGroupVariants.d.ts +12 -0
  100. package/dist/components/scrollbar/{index.js → index.d.ts} +1 -2
  101. package/dist/components/scrollbar/scrollbar.d.ts +43 -0
  102. package/dist/components/scrollbar/scrollbarVariants.d.ts +26 -0
  103. package/dist/components/scrollbar/utils.d.ts +16 -0
  104. package/dist/components/select/index.d.ts +3 -0
  105. package/dist/components/select/select.d.ts +48 -0
  106. package/dist/components/select/selectVariants.d.ts +9 -0
  107. package/dist/components/select/types.d.ts +20 -0
  108. package/dist/components/select/utils.d.ts +3 -0
  109. package/dist/components/tabs/{index.js → index.d.ts} +1 -2
  110. package/dist/components/tabs/tabs.d.ts +119 -0
  111. package/dist/components/tabs/tabsVariants.d.ts +12 -0
  112. package/dist/components/textCopy/{index.js → index.d.ts} +1 -1
  113. package/dist/components/textCopy/textCopy.d.ts +31 -0
  114. package/dist/components/textCopy/textCopyVariants.d.ts +3 -0
  115. package/dist/components/textField/index.d.ts +2 -0
  116. package/dist/components/textField/textField.d.ts +48 -0
  117. package/dist/components/textField/textFieldVariants.d.ts +15 -0
  118. package/dist/components/textarea/{index.js → index.d.ts} +1 -2
  119. package/dist/components/textarea/textarea.d.ts +30 -0
  120. package/dist/components/textarea/textareaVariants.d.ts +9 -0
  121. package/dist/components/toast/{index.js → index.d.ts} +1 -1
  122. package/dist/components/toast/toast.d.ts +42 -0
  123. package/dist/components/toast/toastVariants.d.ts +10 -0
  124. package/dist/components/toggle/{index.js → index.d.ts} +1 -2
  125. package/dist/components/toggle/toggle.d.ts +46 -0
  126. package/dist/components/toggle/toggleVariants.d.ts +12 -0
  127. package/dist/components/tooltip/index.d.ts +2 -0
  128. package/dist/components/tooltip/tooltip.d.ts +31 -0
  129. package/dist/components/tooltip/tooltipVariants.d.ts +3 -0
  130. package/dist/components/truncate/index.d.ts +2 -0
  131. package/dist/components/truncate/truncate.d.ts +33 -0
  132. package/dist/components/truncate/truncateVariants.d.ts +3 -0
  133. package/dist/css/index.min.css +1 -1
  134. package/dist/hooks/index.d.ts +1 -0
  135. package/dist/hooks/useWindowSize.d.ts +6 -0
  136. package/dist/index.cjs.js +7 -5
  137. package/dist/{index.js → index.d.ts} +1 -1
  138. package/dist/index.esm.js +7 -5
  139. package/dist/utils/{cn.js → cn.d.ts} +2 -6
  140. package/dist/utils/debounce.d.ts +15 -0
  141. package/dist/utils/findParentAttribute.d.ts +9 -0
  142. package/dist/utils/{index.js → index.d.ts} +0 -2
  143. package/dist/utils/numberUtils/index.d.ts +12 -0
  144. package/dist/utils/stringUtils/{fileSize.js → fileSize.d.ts} +1 -5
  145. package/dist/utils/stringUtils/{index.js → index.d.ts} +1 -2
  146. package/dist/utils/stringUtils/isRegexSafe.d.ts +13 -0
  147. package/dist/utils/stringUtils/placeholderText.d.ts +10 -0
  148. package/package.json +5 -4
  149. package/tsconfig.eslint.json +3 -2
  150. package/tsconfig.test.json +2 -1
  151. package/dist/components/accordion/accordion.js +0 -63
  152. package/dist/components/accordion/accordion.js.map +0 -1
  153. package/dist/components/accordion/accordionVariants.js +0 -52
  154. package/dist/components/accordion/accordionVariants.js.map +0 -1
  155. package/dist/components/accordion/index.js +0 -3
  156. package/dist/components/accordion/index.js.map +0 -1
  157. package/dist/components/adpIcon/adpIcon.js +0 -39
  158. package/dist/components/adpIcon/adpIcon.js.map +0 -1
  159. package/dist/components/adpIcon/adpIconVariants.js +0 -35
  160. package/dist/components/adpIcon/adpIconVariants.js.map +0 -1
  161. package/dist/components/adpIcon/index.js +0 -3
  162. package/dist/components/adpIcon/index.js.map +0 -1
  163. package/dist/components/adpIcon/svgObjects.js +0 -1528
  164. package/dist/components/adpIcon/svgObjects.js.map +0 -1
  165. package/dist/components/avatar/avatar.js +0 -39
  166. package/dist/components/avatar/avatar.js.map +0 -1
  167. package/dist/components/avatar/avatarVariants.js +0 -20
  168. package/dist/components/avatar/avatarVariants.js.map +0 -1
  169. package/dist/components/avatar/index.js.map +0 -1
  170. package/dist/components/avatarGroup/avatarGroup.js +0 -57
  171. package/dist/components/avatarGroup/avatarGroup.js.map +0 -1
  172. package/dist/components/avatarGroup/avatarGroupVariants.js +0 -13
  173. package/dist/components/avatarGroup/avatarGroupVariants.js.map +0 -1
  174. package/dist/components/avatarGroup/index.js +0 -3
  175. package/dist/components/avatarGroup/index.js.map +0 -1
  176. package/dist/components/badge/badge.js +0 -24
  177. package/dist/components/badge/badge.js.map +0 -1
  178. package/dist/components/badge/badgeVariants.js +0 -136
  179. package/dist/components/badge/badgeVariants.js.map +0 -1
  180. package/dist/components/badge/index.js +0 -3
  181. package/dist/components/badge/index.js.map +0 -1
  182. package/dist/components/breadcrumbs/breadcrumbItem.js +0 -26
  183. package/dist/components/breadcrumbs/breadcrumbItem.js.map +0 -1
  184. package/dist/components/breadcrumbs/breadcrumbs.js +0 -74
  185. package/dist/components/breadcrumbs/breadcrumbs.js.map +0 -1
  186. package/dist/components/breadcrumbs/breadcrumbsVariants.js +0 -40
  187. package/dist/components/breadcrumbs/breadcrumbsVariants.js.map +0 -1
  188. package/dist/components/breadcrumbs/index.js.map +0 -1
  189. package/dist/components/button/button.js +0 -69
  190. package/dist/components/button/button.js.map +0 -1
  191. package/dist/components/button/buttonVariants.js +0 -288
  192. package/dist/components/button/buttonVariants.js.map +0 -1
  193. package/dist/components/button/index.js.map +0 -1
  194. package/dist/components/card/card.js +0 -86
  195. package/dist/components/card/card.js.map +0 -1
  196. package/dist/components/card/cardVariants.js +0 -18
  197. package/dist/components/card/cardVariants.js.map +0 -1
  198. package/dist/components/card/index.js.map +0 -1
  199. package/dist/components/checkbox/checkbox.js +0 -30
  200. package/dist/components/checkbox/checkbox.js.map +0 -1
  201. package/dist/components/checkbox/checkboxVariants.js +0 -96
  202. package/dist/components/checkbox/checkboxVariants.js.map +0 -1
  203. package/dist/components/checkbox/index.js.map +0 -1
  204. package/dist/components/checkboxGroup/checkboxGroup.js +0 -52
  205. package/dist/components/checkboxGroup/checkboxGroup.js.map +0 -1
  206. package/dist/components/checkboxGroup/checkboxGroupVariants.js +0 -31
  207. package/dist/components/checkboxGroup/checkboxGroupVariants.js.map +0 -1
  208. package/dist/components/checkboxGroup/index.js.map +0 -1
  209. package/dist/components/ctaGroup/ctaGroup.js +0 -51
  210. package/dist/components/ctaGroup/ctaGroup.js.map +0 -1
  211. package/dist/components/ctaGroup/ctaGroupVariants.js +0 -9
  212. package/dist/components/ctaGroup/ctaGroupVariants.js.map +0 -1
  213. package/dist/components/ctaGroup/index.js.map +0 -1
  214. package/dist/components/dataTable/DataTableColumnSettings.js +0 -99
  215. package/dist/components/dataTable/DataTableColumnSettings.js.map +0 -1
  216. package/dist/components/dataTable/advancedFilters.js +0 -102
  217. package/dist/components/dataTable/advancedFilters.js.map +0 -1
  218. package/dist/components/dataTable/dataTable.js +0 -216
  219. package/dist/components/dataTable/dataTable.js.map +0 -1
  220. package/dist/components/dataTable/dataTableStoryHelpers.js +0 -2075
  221. package/dist/components/dataTable/dataTableStoryHelpers.js.map +0 -1
  222. package/dist/components/dataTable/dataTableVariants.js +0 -51
  223. package/dist/components/dataTable/dataTableVariants.js.map +0 -1
  224. package/dist/components/dataTable/index.js.map +0 -1
  225. package/dist/components/dataTable/pageSizeModal.js +0 -26
  226. package/dist/components/dataTable/pageSizeModal.js.map +0 -1
  227. package/dist/components/dataTable/selectedFilterList.js +0 -40
  228. package/dist/components/dataTable/selectedFilterList.js.map +0 -1
  229. package/dist/components/dataTable/table.js +0 -108
  230. package/dist/components/dataTable/table.js.map +0 -1
  231. package/dist/components/dataTable/types.js +0 -2
  232. package/dist/components/dataTable/types.js.map +0 -1
  233. package/dist/components/datePicker/datePicker.js +0 -274
  234. package/dist/components/datePicker/datePicker.js.map +0 -1
  235. package/dist/components/datePicker/datePickerVariants.js +0 -80
  236. package/dist/components/datePicker/datePickerVariants.js.map +0 -1
  237. package/dist/components/datePicker/index.js.map +0 -1
  238. package/dist/components/dropdown/dropdown.js +0 -95
  239. package/dist/components/dropdown/dropdown.js.map +0 -1
  240. package/dist/components/dropdown/dropdownItem.js +0 -53
  241. package/dist/components/dropdown/dropdownItem.js.map +0 -1
  242. package/dist/components/dropdown/dropdownToggle.js +0 -20
  243. package/dist/components/dropdown/dropdownToggle.js.map +0 -1
  244. package/dist/components/dropdown/dropdownVariants.js +0 -48
  245. package/dist/components/dropdown/dropdownVariants.js.map +0 -1
  246. package/dist/components/dropdown/index.js +0 -8
  247. package/dist/components/dropdown/index.js.map +0 -1
  248. package/dist/components/emptyState/emptyState.js +0 -119
  249. package/dist/components/emptyState/emptyState.js.map +0 -1
  250. package/dist/components/emptyState/emptyStateContent.js +0 -25
  251. package/dist/components/emptyState/emptyStateContent.js.map +0 -1
  252. package/dist/components/emptyState/emptyStateCta.js +0 -25
  253. package/dist/components/emptyState/emptyStateCta.js.map +0 -1
  254. package/dist/components/emptyState/emptyStateVariants.js +0 -7
  255. package/dist/components/emptyState/emptyStateVariants.js.map +0 -1
  256. package/dist/components/emptyState/index.js +0 -5
  257. package/dist/components/emptyState/index.js.map +0 -1
  258. package/dist/components/fileUpload/fileUpload.js +0 -150
  259. package/dist/components/fileUpload/fileUpload.js.map +0 -1
  260. package/dist/components/fileUpload/fileUploadVariants.js +0 -21
  261. package/dist/components/fileUpload/fileUploadVariants.js.map +0 -1
  262. package/dist/components/fileUpload/index.js +0 -3
  263. package/dist/components/fileUpload/index.js.map +0 -1
  264. package/dist/components/fileUpload/statusCard.js +0 -80
  265. package/dist/components/fileUpload/statusCard.js.map +0 -1
  266. package/dist/components/fileUpload/statusCardVariants.js +0 -19
  267. package/dist/components/fileUpload/statusCardVariants.js.map +0 -1
  268. package/dist/components/fileUpload/storyUtil.js +0 -52
  269. package/dist/components/fileUpload/storyUtil.js.map +0 -1
  270. package/dist/components/loader/index.js +0 -3
  271. package/dist/components/loader/index.js.map +0 -1
  272. package/dist/components/loader/loader.js +0 -39
  273. package/dist/components/loader/loader.js.map +0 -1
  274. package/dist/components/loader/loaderVariants.js +0 -31
  275. package/dist/components/loader/loaderVariants.js.map +0 -1
  276. package/dist/components/modal/index.js +0 -3
  277. package/dist/components/modal/index.js.map +0 -1
  278. package/dist/components/modal/modal.js +0 -95
  279. package/dist/components/modal/modal.js.map +0 -1
  280. package/dist/components/modal/modalVariants.js +0 -14
  281. package/dist/components/modal/modalVariants.js.map +0 -1
  282. package/dist/components/otp/index.js.map +0 -1
  283. package/dist/components/otp/input.js +0 -18
  284. package/dist/components/otp/input.js.map +0 -1
  285. package/dist/components/otp/otp.js +0 -131
  286. package/dist/components/otp/otp.js.map +0 -1
  287. package/dist/components/otp/otpVariants.js +0 -13
  288. package/dist/components/otp/otpVariants.js.map +0 -1
  289. package/dist/components/pagination/index.js.map +0 -1
  290. package/dist/components/pagination/pagination.js +0 -83
  291. package/dist/components/pagination/pagination.js.map +0 -1
  292. package/dist/components/pagination/paginationVariants.js +0 -44
  293. package/dist/components/pagination/paginationVariants.js.map +0 -1
  294. package/dist/components/panel/index.js +0 -11
  295. package/dist/components/panel/index.js.map +0 -1
  296. package/dist/components/panel/panel.js +0 -82
  297. package/dist/components/panel/panel.js.map +0 -1
  298. package/dist/components/panel/panelBody.js +0 -21
  299. package/dist/components/panel/panelBody.js.map +0 -1
  300. package/dist/components/panel/panelFooter.js +0 -21
  301. package/dist/components/panel/panelFooter.js.map +0 -1
  302. package/dist/components/panel/panelHeader.js +0 -24
  303. package/dist/components/panel/panelHeader.js.map +0 -1
  304. package/dist/components/panel/panelVariants.js +0 -122
  305. package/dist/components/panel/panelVariants.js.map +0 -1
  306. package/dist/components/panelGroup/index.js.map +0 -1
  307. package/dist/components/panelGroup/panelGroup.js +0 -38
  308. package/dist/components/panelGroup/panelGroup.js.map +0 -1
  309. package/dist/components/panelGroup/panelGroupVariants.js +0 -34
  310. package/dist/components/panelGroup/panelGroupVariants.js.map +0 -1
  311. package/dist/components/passwordField/index.js +0 -2
  312. package/dist/components/passwordField/index.js.map +0 -1
  313. package/dist/components/passwordField/passwordField.js +0 -29
  314. package/dist/components/passwordField/passwordField.js.map +0 -1
  315. package/dist/components/progress/index.js.map +0 -1
  316. package/dist/components/progress/progress.js +0 -62
  317. package/dist/components/progress/progress.js.map +0 -1
  318. package/dist/components/progress/progressVariants.js +0 -103
  319. package/dist/components/progress/progressVariants.js.map +0 -1
  320. package/dist/components/radio/index.js.map +0 -1
  321. package/dist/components/radio/radio.js +0 -26
  322. package/dist/components/radio/radio.js.map +0 -1
  323. package/dist/components/radio/radioVariants.js +0 -46
  324. package/dist/components/radio/radioVariants.js.map +0 -1
  325. package/dist/components/radioGroup/index.js.map +0 -1
  326. package/dist/components/radioGroup/radioGroup.js +0 -48
  327. package/dist/components/radioGroup/radioGroup.js.map +0 -1
  328. package/dist/components/radioGroup/radioGroupVariants.js +0 -53
  329. package/dist/components/radioGroup/radioGroupVariants.js.map +0 -1
  330. package/dist/components/scrollbar/index.js.map +0 -1
  331. package/dist/components/scrollbar/scrollbar.js +0 -361
  332. package/dist/components/scrollbar/scrollbar.js.map +0 -1
  333. package/dist/components/scrollbar/scrollbarVariants.js +0 -100
  334. package/dist/components/scrollbar/scrollbarVariants.js.map +0 -1
  335. package/dist/components/scrollbar/utils.js +0 -28
  336. package/dist/components/scrollbar/utils.js.map +0 -1
  337. package/dist/components/select/index.js +0 -3
  338. package/dist/components/select/index.js.map +0 -1
  339. package/dist/components/select/select.js +0 -134
  340. package/dist/components/select/select.js.map +0 -1
  341. package/dist/components/select/selectVariants.js +0 -35
  342. package/dist/components/select/selectVariants.js.map +0 -1
  343. package/dist/components/select/types.js +0 -9
  344. package/dist/components/select/types.js.map +0 -1
  345. package/dist/components/select/utils.js +0 -118
  346. package/dist/components/select/utils.js.map +0 -1
  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 -138
  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.map +0 -1
  364. package/dist/components/textarea/textarea.js +0 -29
  365. package/dist/components/textarea/textarea.js.map +0 -1
  366. package/dist/components/textarea/textareaVariants.js +0 -37
  367. package/dist/components/textarea/textareaVariants.js.map +0 -1
  368. package/dist/components/toast/index.js.map +0 -1
  369. package/dist/components/toast/toast.js +0 -51
  370. package/dist/components/toast/toast.js.map +0 -1
  371. package/dist/components/toast/toastVariants.js +0 -45
  372. package/dist/components/toast/toastVariants.js.map +0 -1
  373. package/dist/components/toggle/index.js.map +0 -1
  374. package/dist/components/toggle/toggle.js +0 -34
  375. package/dist/components/toggle/toggle.js.map +0 -1
  376. package/dist/components/toggle/toggleVariants.js +0 -40
  377. package/dist/components/toggle/toggleVariants.js.map +0 -1
  378. package/dist/components/tooltip/index.js +0 -3
  379. package/dist/components/tooltip/index.js.map +0 -1
  380. package/dist/components/tooltip/tooltip.js +0 -100
  381. package/dist/components/tooltip/tooltip.js.map +0 -1
  382. package/dist/components/tooltip/tooltipVariants.js +0 -13
  383. package/dist/components/tooltip/tooltipVariants.js.map +0 -1
  384. package/dist/components/truncate/index.js +0 -3
  385. package/dist/components/truncate/index.js.map +0 -1
  386. package/dist/components/truncate/truncate.js +0 -36
  387. package/dist/components/truncate/truncate.js.map +0 -1
  388. package/dist/components/truncate/truncateVariants.js +0 -13
  389. package/dist/components/truncate/truncateVariants.js.map +0 -1
  390. package/dist/index.js.map +0 -1
  391. package/dist/tailwindThemeConfig.js +0 -194
  392. package/dist/tailwindThemeConfig.js.map +0 -1
  393. package/dist/utils/cn.js.map +0 -1
  394. package/dist/utils/debounce.js +0 -30
  395. package/dist/utils/debounce.js.map +0 -1
  396. package/dist/utils/findParentAttribute.js +0 -23
  397. package/dist/utils/findParentAttribute.js.map +0 -1
  398. package/dist/utils/index.js.map +0 -1
  399. package/dist/utils/numberUtils/index.js +0 -41
  400. package/dist/utils/numberUtils/index.js.map +0 -1
  401. package/dist/utils/stringUtils/fileSize.js.map +0 -1
  402. package/dist/utils/stringUtils/index.js.map +0 -1
  403. package/dist/utils/stringUtils/placeholderText.js +0 -77
  404. package/dist/utils/stringUtils/placeholderText.js.map +0 -1
  405. package/dist/utils/useWindowSize.js +0 -25
  406. package/dist/utils/useWindowSize.js.map +0 -1
@@ -0,0 +1,60 @@
1
+ import type { ReactNode } from "react";
2
+ import type { CellContext, SortingFnOption } from "@tanstack/react-table";
3
+ import type { TIconType } from "../adpIcon";
4
+ import type { IOption } from "../select";
5
+ /**
6
+ * Column configuration for DataTable
7
+ */
8
+ export type TColumn = {
9
+ id?: string;
10
+ key: string;
11
+ header?: any;
12
+ cell?: (row: CellContext<any, any>) => ReactNode;
13
+ /** Cannot be reordered or hidden in preferences */
14
+ fixed?: boolean;
15
+ /** Visibility state of the column */
16
+ selected?: boolean;
17
+ /** Enable sorting */
18
+ enableSorting?: boolean;
19
+ /** Enable resizing */
20
+ enableResizing?: boolean;
21
+ /** Custom sorting function */
22
+ sortingFn?: SortingFnOption<any>;
23
+ /** Column width */
24
+ size?: number;
25
+ /** Hide from column preference panel */
26
+ hideColPreference?: boolean;
27
+ };
28
+ /**
29
+ * Basic filter item for DataTable
30
+ */
31
+ export type TFilterItem = {
32
+ id?: string;
33
+ selectedValue?: any;
34
+ icon?: TIconType;
35
+ title: string;
36
+ placeholder?: string;
37
+ onChange?: () => void;
38
+ options: IOption[];
39
+ [key: string]: any;
40
+ };
41
+ /**
42
+ * Advanced filter item for DataTable
43
+ */
44
+ export type TAdvancedFilterItem = {
45
+ id: string;
46
+ title: string;
47
+ subTitle?: string;
48
+ selectedValue?: any;
49
+ setSelectedValue?: (value: any) => void;
50
+ filterComponent?: ReactNode;
51
+ icon?: TIconType;
52
+ isMulti?: boolean;
53
+ options?: IOption[];
54
+ render?: ReactNode | (() => ReactNode);
55
+ onChange?: () => void;
56
+ };
57
+ /**
58
+ * Filters record type
59
+ */
60
+ export type TFilters = Record<string, any>;
@@ -0,0 +1,39 @@
1
+ import * as React from "react";
2
+ import { type DatePickerProps } from "react-datepicker";
3
+ import "react-datepicker/dist/react-datepicker.css";
4
+ import { type ITextFieldProps } from "../textField";
5
+ import "./datePicker.styles.css";
6
+ export type TDatePickerCombinedProps = (DatePickerProps & {
7
+ inline?: false;
8
+ textFieldProps?: Omit<ITextFieldProps, "ref" | "onBlur" | "onFocus" | "disabled">;
9
+ }) | (DatePickerProps & {
10
+ inline?: true;
11
+ textFieldProps?: never;
12
+ });
13
+ /**
14
+ * DatePicker component that wraps react-datepicker with custom styling and text field integration
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * // Basic usage
19
+ * <DatePicker
20
+ * selected={date}
21
+ * onChange={(date) => setDate(date)}
22
+ * />
23
+ *
24
+ * // With time selection
25
+ * <DatePicker
26
+ * selected={date}
27
+ * onChange={(date) => setDate(date)}
28
+ * showTimeSelect
29
+ * />
30
+ *
31
+ * // Inline calendar
32
+ * <DatePicker
33
+ * selected={date}
34
+ * onChange={(date) => setDate(date)}
35
+ * inline
36
+ * />
37
+ * ```
38
+ */
39
+ export declare const DatePicker: React.ForwardRefExoticComponent<TDatePickerCombinedProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,43 @@
1
+ export declare const datePickerVariants: (props?: ({
2
+ variant?: "default" | null | undefined;
3
+ size?: "sm" | "md" | "lg" | null | undefined;
4
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ export declare const datePickerCalendarVariants: (props?: ({
6
+ variant?: "default" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ export declare const calendarStyles: {
9
+ calendar: string;
10
+ header: string;
11
+ timeHeader: string;
12
+ currentMonth: string;
13
+ navigationIcon: string;
14
+ navigationPrevious: string;
15
+ navigationNext: string;
16
+ navigationNextWithTime: string;
17
+ month: string;
18
+ monthWrapper: string;
19
+ monthContainer: string;
20
+ monthText: string;
21
+ monthTextKeyboardSelected: string;
22
+ monthTextSelected: string;
23
+ week: string;
24
+ day: string;
25
+ dayNames: string;
26
+ dayName: string;
27
+ daySelected: string;
28
+ dayInRange: string;
29
+ dayRangeStartEnd: string;
30
+ dayOutsideMonth: string;
31
+ dayDisabled: string;
32
+ year: string;
33
+ yearWrapper: string;
34
+ yearText: string;
35
+ yearTextSelected: string;
36
+ yearTextKeyboardSelected: string;
37
+ yearHeader: string;
38
+ time: string;
39
+ timeList: string;
40
+ timeContainer: string;
41
+ timeListItem: string;
42
+ timeListItemSelected: string;
43
+ };
@@ -1,4 +1,3 @@
1
- // Export component
2
1
  export { DatePicker } from "./datePicker";
2
+ export type { TDatePickerCombinedProps } from "./datePicker";
3
3
  export { datePickerVariants, datePickerCalendarVariants, calendarStyles } from "./datePickerVariants";
4
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,81 @@
1
+ import * as React from "react";
2
+ import { type ReactNode } from "react";
3
+ export interface IDistributionSegment {
4
+ name: string;
5
+ value: number;
6
+ color?: string;
7
+ }
8
+ export interface IDistributionSliderProps {
9
+ /**
10
+ * Label for the distribution slider
11
+ */
12
+ label?: string | ReactNode;
13
+ /**
14
+ * Array of segments with names and values
15
+ */
16
+ segments: IDistributionSegment[];
17
+ /**
18
+ * Callback function called when segments change
19
+ */
20
+ onChange?: (segments: IDistributionSegment[]) => void;
21
+ /**
22
+ * Mode of the distribution slider
23
+ * - 'percentage': Values sum to 100, displayed as percentages (e.g., 33%)
24
+ * - 'absolute': Values sum to targetTotal, displayed as raw numbers (e.g., 40)
25
+ * @default 'percentage'
26
+ */
27
+ mode?: "percentage" | "absolute";
28
+ /**
29
+ * Target total value for absolute mode (ignored in percentage mode)
30
+ * @default 100
31
+ */
32
+ targetTotal?: number;
33
+ /**
34
+ * Prefix to display before values in absolute mode
35
+ * Ignored in percentage mode
36
+ */
37
+ valuePrefix?: ReactNode;
38
+ /**
39
+ * Additional information or guidance displayed below the slider
40
+ */
41
+ helperText?: ReactNode;
42
+ /**
43
+ * Pass a boolean value to indicate if the component is in an error state
44
+ */
45
+ error?: boolean;
46
+ /**
47
+ * Whether the component is disabled
48
+ */
49
+ disabled?: boolean;
50
+ /**
51
+ * Pass space separated class names to override the DistributionSlider styles
52
+ */
53
+ className?: string;
54
+ /**
55
+ * Size of the slider
56
+ * @default 'md'
57
+ */
58
+ size?: "md" | "lg";
59
+ /**
60
+ * Step size for keyboard navigation (percentage of target total)
61
+ * @default 1
62
+ */
63
+ keyboardStep?: number;
64
+ }
65
+ export declare const DEFAULT_SEGMENT_COLORS: readonly ["rgb(6 118 215)", "rgb(61 180 115)", "rgb(245 154 32)", "rgb(231 73 58)", "rgb(89 100 121)", "rgb(152 162 179)"];
66
+ /**
67
+ * DistributionSlider component for adjusting proportional values across multiple segments.
68
+ * Supports drag-and-drop interaction and keyboard navigation to redistribute values while maintaining total.
69
+ *
70
+ * @example
71
+ * // Basic usage with level distribution
72
+ * <DistributionSlider
73
+ * segments={[
74
+ * {name: 'Easy', value: 33},
75
+ * {name: 'Medium', value: 34},
76
+ * {name: 'Hard', value: 33}
77
+ * ]}
78
+ * onChange={setSegments}
79
+ * />
80
+ */
81
+ export declare const DistributionSlider: React.ForwardRefExoticComponent<IDistributionSliderProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,27 @@
1
+ export declare const distributionContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
+ export declare const distributionLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
3
+ export declare const sliderWrapperVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
4
+ export declare const segmentLabelsVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
5
+ export declare const segmentLabelVariants: (props?: ({
6
+ size?: "md" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ export declare const segmentNameVariants: (props?: ({
9
+ size?: "md" | "lg" | null | undefined;
10
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
+ export declare const segmentValueVariants: (props?: ({
12
+ size?: "md" | "lg" | null | undefined;
13
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
+ export declare const sliderTrackVariants: (props?: ({
15
+ size?: "md" | "lg" | null | undefined;
16
+ disabled?: boolean | null | undefined;
17
+ error?: boolean | null | undefined;
18
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
19
+ export declare const segmentBackgroundVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
20
+ export declare const segmentDividerVariants: (props?: ({
21
+ dragging?: boolean | null | undefined;
22
+ focused?: boolean | null | undefined;
23
+ disabled?: boolean | null | undefined;
24
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
25
+ export declare const distributionHelperTextVariants: (props?: ({
26
+ error?: boolean | null | undefined;
27
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { DistributionSlider, DEFAULT_SEGMENT_COLORS, type IDistributionSliderProps, type IDistributionSegment } from "./distributionSlider";
2
+ export { distributionContainerVariants, distributionLabelVariants, sliderWrapperVariants, segmentLabelsVariants, segmentLabelVariants, segmentNameVariants, segmentValueVariants, sliderTrackVariants, segmentBackgroundVariants, segmentDividerVariants, distributionHelperTextVariants } from "./distributionSliderVariants";
@@ -0,0 +1,50 @@
1
+ import React from "react";
2
+ export interface IDropdownProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Size of the dropdown.
5
+ * @default md
6
+ */
7
+ size?: "md" | "lg";
8
+ /**
9
+ * Use to show the title or header
10
+ */
11
+ header?: React.ReactNode | string;
12
+ /**
13
+ * Child elements of the dropdown (typically DropdownItem components)
14
+ */
15
+ children?: React.ReactNode;
16
+ /**
17
+ * JSX to be rendered inside of dropdown button
18
+ */
19
+ ctaContent?: React.ReactNode;
20
+ /**
21
+ * Pass a reference to the element where the dropdown needs to be rendered
22
+ */
23
+ portalTarget?: Element;
24
+ /**
25
+ * Pass space separated class names to style the CTA
26
+ */
27
+ ctaClassName?: string;
28
+ /**
29
+ * Determines whether the CTA should be disabled or not
30
+ */
31
+ disabled?: boolean;
32
+ /**
33
+ * Controls whether the dropdown should close when an item is clicked
34
+ * @default true
35
+ */
36
+ shouldCloseOnItemClick?: boolean;
37
+ /**
38
+ * Controls the open state of the dropdown (controlled component)
39
+ */
40
+ open?: boolean;
41
+ /**
42
+ * Callback function called when the dropdown should be closed
43
+ */
44
+ onClose?: () => void;
45
+ /**
46
+ * Callback function called when the dropdown toggle (CTA) is clicked (used in controlled mode)
47
+ */
48
+ onToggle?: () => void;
49
+ }
50
+ export declare const Dropdown: React.ForwardRefExoticComponent<IDropdownProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,40 @@
1
+ import * as React from "react";
2
+ export interface IDropdownItemProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The content of the dropdown item
5
+ */
6
+ children?: React.ReactNode;
7
+ /**
8
+ * Whether the dropdown is currently shown
9
+ */
10
+ dropdownShow?: boolean;
11
+ /**
12
+ * The index of the item in the dropdown
13
+ */
14
+ index?: number;
15
+ /**
16
+ * Whether the dropdown item is disabled
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Function to set the dropdown's visibility
21
+ */
22
+ setShowDropdown?: React.Dispatch<React.SetStateAction<boolean>>;
23
+ /**
24
+ * Handler function when the dropdown item is clicked
25
+ */
26
+ onClickHandler?: (e?: React.SyntheticEvent) => void;
27
+ /**
28
+ * The size of the dropdown item
29
+ */
30
+ size?: "md" | "lg";
31
+ /**
32
+ * The position of the item in the dropdown (for styling first/last items)
33
+ */
34
+ position?: "first" | "middle" | "last";
35
+ /**
36
+ * Controls whether the dropdown should close when this item is clicked
37
+ */
38
+ shouldCloseOnItemClick?: boolean;
39
+ }
40
+ export declare const DropdownItem: React.ForwardRefExoticComponent<IDropdownItemProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ export interface IDropdownToggleProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ /**
4
+ * The content of the toggle button
5
+ */
6
+ children?: React.ReactNode;
7
+ /**
8
+ * Additional class name for the toggle button
9
+ */
10
+ ctaClassName?: string;
11
+ }
12
+ export declare const DropdownToggle: React.ForwardRefExoticComponent<IDropdownToggleProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,11 @@
1
+ export declare const dropdownVariants: (props?: ({
2
+ size?: "md" | "lg" | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
4
+ export declare const dropdownHeaderVariants: (props?: ({
5
+ type?: "text" | "custom" | null | undefined;
6
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
+ export declare const dropdownItemVariants: (props?: ({
8
+ size?: "md" | "lg" | null | undefined;
9
+ disabled?: boolean | null | undefined;
10
+ position?: "middle" | "first" | "last" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,10 @@
1
+ import { Dropdown as DropdownComponent, type IDropdownProps } from "./dropdown";
2
+ import { DropdownItem, type IDropdownItemProps } from "./dropdownItem";
3
+ import { DropdownToggle, type IDropdownToggleProps } from "./dropdownToggle";
4
+ import { dropdownVariants, dropdownHeaderVariants, dropdownItemVariants } from "./dropdownVariants";
5
+ type TDropdownCompoundComponent = typeof DropdownComponent & {
6
+ Item: typeof DropdownItem;
7
+ };
8
+ declare const Dropdown: TDropdownCompoundComponent;
9
+ export { Dropdown, DropdownItem, DropdownToggle, dropdownVariants, dropdownHeaderVariants, dropdownItemVariants };
10
+ export type { IDropdownProps, IDropdownItemProps, IDropdownToggleProps };
@@ -0,0 +1,43 @@
1
+ import * as React from "react";
2
+ import { EmptyStateContent, type IEmptyStateContentProps } from "./emptyStateContent";
3
+ import { EmptyStateCTA, type IEmptyStateCTAProps } from "./emptyStateCta";
4
+ declare const lightSvgs: {
5
+ analytics: string;
6
+ dashboard: string;
7
+ "data-upload": string;
8
+ workspaces: string;
9
+ waiting: string;
10
+ otp: string;
11
+ searching: string;
12
+ notification: string;
13
+ "no-files": string;
14
+ "no-access": string;
15
+ "no-connections": string;
16
+ "forgot-password": string;
17
+ favorite: string;
18
+ login: string;
19
+ "file-upload": string;
20
+ "empty-data": string;
21
+ "empty-data-2": string;
22
+ "empty-data-3": string;
23
+ "empty-data-4": string;
24
+ datapipeline: string;
25
+ };
26
+ export interface IEmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
27
+ /** Set a supported Empty State image variant */
28
+ imageVariant?: keyof typeof lightSvgs;
29
+ /** Alt text for the image (used only when there is no content) */
30
+ imageAltText?: string;
31
+ /** Custom image element, if provided it will override the variant images */
32
+ customImage?: React.ReactElement<HTMLImageElement>;
33
+ /** Override container styles */
34
+ className?: string;
35
+ /** Provide content and/or CTA children */
36
+ children?: React.ReactElement<IEmptyStateContentProps> | React.ReactElement<IEmptyStateCTAProps> | [React.ReactElement<IEmptyStateContentProps>, React.ReactElement<IEmptyStateCTAProps>];
37
+ }
38
+ type TEmptyStateComponent = React.ForwardRefExoticComponent<IEmptyStateProps & React.RefAttributes<HTMLDivElement>> & {
39
+ Content: typeof EmptyStateContent;
40
+ CTA: typeof EmptyStateCTA;
41
+ };
42
+ export declare const EmptyState: TEmptyStateComponent;
43
+ export {};
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ export interface IEmptyStateContentProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** Provide custom classes for the component */
4
+ className?: string;
5
+ /** Content title */
6
+ title?: string;
7
+ /** Content children */
8
+ children?: React.ReactNode;
9
+ }
10
+ export declare const EmptyStateContent: React.ForwardRefExoticComponent<IEmptyStateContentProps & React.RefAttributes<HTMLDivElement>>;
11
+ export default EmptyStateContent;
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ export interface IEmptyStateCTAProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** Provide custom classes for the component */
4
+ className?: string;
5
+ /** CTA children (e.g., buttons) */
6
+ children?: React.ReactNode;
7
+ }
8
+ export declare const EmptyStateCTA: React.ForwardRefExoticComponent<IEmptyStateCTAProps & React.RefAttributes<HTMLDivElement>>;
9
+ export default EmptyStateCTA;
@@ -0,0 +1,5 @@
1
+ export declare const emptyStateVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
+ export declare const contentWrapperVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
3
+ export declare const contentVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
4
+ export declare const titleVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
5
+ export declare const emptyStateCtaVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
@@ -0,0 +1,4 @@
1
+ export { EmptyState, type IEmptyStateProps } from "./emptyState";
2
+ export { EmptyStateContent, type IEmptyStateContentProps } from "./emptyStateContent";
3
+ export { EmptyStateCTA, type IEmptyStateCTAProps } from "./emptyStateCta";
4
+ export { emptyStateVariants, contentWrapperVariants, contentVariants, titleVariants, emptyStateCtaVariants } from "./emptyStateVariants";
@@ -0,0 +1,33 @@
1
+ import * as React from "react";
2
+ /**
3
+ * FileUpload component allows drag & drop or click-to-upload files with custom handling
4
+ * and displays upload progress and errors.
5
+ */
6
+ export interface IFileUploadProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ /** Array of accepted file extensions */
8
+ acceptedExtensions: string[];
9
+ /** Custom message displayed in the drop area */
10
+ dropAreaCustomMessage?: React.ReactNode;
11
+ /** State tracking the upload progress and error messages for each file */
12
+ uploadState: Record<string, {
13
+ error: boolean;
14
+ helperText?: React.ReactNode;
15
+ progress: number;
16
+ uploading: boolean;
17
+ }> | null;
18
+ /** Determines if multiple file uploads are allowed */
19
+ multiple?: boolean;
20
+ /** Disables the upload functionality */
21
+ disabled?: boolean;
22
+ /** Additional informational text to display about file requirements or upload instructions */
23
+ infoText?: React.ReactNode;
24
+ /** Maximum allowed file size in bytes */
25
+ maxFileSize?: number;
26
+ /** Function to retry uploading files that failed */
27
+ retryFailedUpload?: () => void;
28
+ /** Function to reset the upload state */
29
+ resetUploadState: () => void;
30
+ /** Function triggered after file validation to handle the upload logic */
31
+ handleUpload: (file: File | File[]) => void;
32
+ }
33
+ export declare const FileUpload: React.ForwardRefExoticComponent<IFileUploadProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,4 @@
1
+ export declare const fileUploadVariants: (props?: ({
2
+ dragging?: boolean | null | undefined;
3
+ disabled?: boolean | null | undefined;
4
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { FileUpload, type IFileUploadProps } from "./fileUpload";
2
+ export { fileUploadVariants } from "./fileUploadVariants";
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ export interface IStatusCardProps {
3
+ fileEntry: {
4
+ file: File;
5
+ state: string;
6
+ };
7
+ uploadState: Record<string, {
8
+ error: boolean;
9
+ helperText?: React.ReactNode;
10
+ progress: number;
11
+ uploading: boolean;
12
+ }> | null;
13
+ maxFileSize?: number;
14
+ disabled: boolean;
15
+ acceptedExtensions: string[];
16
+ removeFile: (fileName: string) => void;
17
+ }
18
+ export declare const StatusCard: React.ForwardRefExoticComponent<IStatusCardProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const statusCardVariants: (props?: ({
2
+ state?: "default" | "success" | "warning" | "error" | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { Loader, type ILoaderProps } from "./loader";
2
+ export { loaderVariants, labelVariants } from "./loaderVariants";
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Loader component for showing loading states.
4
+ */
5
+ export interface ILoaderProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Variant of the Loader.
8
+ * @default filled
9
+ */
10
+ variant?: "filled" | "stroked";
11
+ /**
12
+ * Size of the Loader.
13
+ * @default md
14
+ */
15
+ size?: "sm" | "md" | "lg";
16
+ /**
17
+ * Regular static label.
18
+ */
19
+ label?: React.ReactNode;
20
+ }
21
+ /**
22
+ * Loader component for showing loading states.
23
+ */
24
+ export declare const Loader: React.ForwardRefExoticComponent<ILoaderProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,7 @@
1
+ export declare const loaderVariants: (props?: ({
2
+ variant?: "filled" | "stroked" | null | undefined;
3
+ size?: "sm" | "md" | "lg" | null | undefined;
4
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ export declare const labelVariants: (props?: ({
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { Modal, ModalHeader, ModalBody, type IModalProps, type IModalHeaderProps, type IModalBodyProps } from "./modal";
2
+ export { modalContainerVariants, modalVariants } from "./modalVariants";