@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,53 @@
1
+ import * as React from "react";
2
+ import { type ReactElement } from "react";
3
+ import { type IRadioProps } from "../radio";
4
+ export type TRadioGroupSize = "sm" | "md" | "lg";
5
+ /**
6
+ * RadioGroup component props
7
+ */
8
+ export interface IRadioGroupProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
9
+ /**
10
+ * Size of the Radio group.
11
+ * @default md
12
+ */
13
+ size?: TRadioGroupSize;
14
+ /**
15
+ * Pass space separated class names to override the RadioGroup styling
16
+ */
17
+ className?: string;
18
+ /**
19
+ * Pass boolean value to disable the component.
20
+ * @default false
21
+ */
22
+ disabled?: boolean;
23
+ /**
24
+ * Selected value
25
+ */
26
+ selectedValue?: string;
27
+ /**
28
+ * An array of objects of radio props type
29
+ */
30
+ options: IRadioProps[];
31
+ /**
32
+ * Callback function that is called when the radio group selection changes.
33
+ * A selected value is passed as an argument to the function.
34
+ */
35
+ onChange?: (arg: string) => void;
36
+ /**
37
+ * Placement of the radio
38
+ * @default "start"
39
+ */
40
+ radioPlacement?: "start" | "end";
41
+ /**
42
+ * Variant of the RadioGroup
43
+ * @default outline
44
+ */
45
+ variant?: "outline" | "text";
46
+ }
47
+ /**
48
+ * RadioGroup component for grouping radio button options
49
+ */
50
+ export declare const RadioGroup: {
51
+ ({ size, options, onChange, className, selectedValue, disabled, radioPlacement, variant }: IRadioGroupProps): ReactElement;
52
+ displayName: string;
53
+ };
@@ -0,0 +1,12 @@
1
+ export declare const radioGroupVariants: (props?: ({
2
+ variant?: "text" | "outline" | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
4
+ export declare const radioGroupItemVariants: (props?: ({
5
+ variant?: "text" | "outline" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ checked?: boolean | null | undefined;
8
+ disabled?: boolean | null | undefined;
9
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
+ export declare const radioGroupItemLabelVariants: (props?: ({
11
+ disabled?: boolean | null | undefined;
12
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,3 +1,2 @@
1
- export { Scrollbar } from "./scrollbar";
1
+ export { Scrollbar, type IScrollbarProps } from "./scrollbar";
2
2
  export { scrollbarVariants, scrollbarContentVariants, scrollbarYContainerVariants, scrollbarTrackYVariants, scrollbarThumbYVariants, scrollbarXContainerVariants, scrollbarTrackXVariants, scrollbarThumbXVariants } from "./scrollbarVariants";
3
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,43 @@
1
+ import * as React from "react";
2
+ type TVoidElements = "area" | "base" | "br" | "col" | "embed" | "hr" | "img" | "input" | "link" | "meta" | "param" | "source" | "track" | "wbr" | "audio" | "video" | "canvas" | "iframe" | "embed" | "object" | "param" | "picture" | "portal" | "svg" | "math" | "svg";
3
+ /**
4
+ * Props for the Scrollbar component
5
+ */
6
+ export interface IScrollbarProps extends Omit<React.HTMLAttributes<HTMLElement>, "as"> {
7
+ /**
8
+ * children to render inside the scroll container
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * The type of tag to render for the scroll container, the default value is "div".
13
+ * @default div
14
+ */
15
+ as?: keyof Omit<JSX.IntrinsicElements, TVoidElements>;
16
+ /**
17
+ * Overwrite the children container styles by passing space separated class names.
18
+ * @optional
19
+ */
20
+ className?: string;
21
+ /**
22
+ * Pass a boolean value to set the visibility of the scroller, by default the scrollbar will be visible on content hover.
23
+ * @optional
24
+ * @default false
25
+ */
26
+ alwaysVisible?: boolean;
27
+ /**
28
+ * Set it to true if you want to directly scroll to the click position,
29
+ * by default the scroller will move in the direction of the click
30
+ * @default false
31
+ */
32
+ scrollToClickPosition?: boolean;
33
+ /**
34
+ * Optional ID for the scrollbar container
35
+ */
36
+ id?: string;
37
+ }
38
+ /**
39
+ * Scrollbar component provides a custom scrollbar with support for both vertical and horizontal scrolling.
40
+ * It includes features like custom styling, touch support, RTL support, and keyboard navigation.
41
+ */
42
+ export declare const Scrollbar: React.ForwardRefExoticComponent<IScrollbarProps & React.RefAttributes<HTMLElement>>;
43
+ export {};
@@ -0,0 +1,26 @@
1
+ export declare const scrollbarVariants: (props?: ({
2
+ visibility?: "default" | "alwaysVisible" | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
4
+ export declare const scrollbarContentVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
5
+ export declare const scrollbarYContainerVariants: (props?: ({
6
+ visibility?: "default" | "alwaysVisible" | null | undefined;
7
+ active?: boolean | null | undefined;
8
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
+ export declare const scrollbarTrackYVariants: (props?: ({
10
+ visibility?: "default" | "alwaysVisible" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
+ export declare const scrollbarThumbYVariants: (props?: ({
13
+ visibility?: "default" | "alwaysVisible" | null | undefined;
14
+ active?: boolean | null | undefined;
15
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
16
+ export declare const scrollbarXContainerVariants: (props?: ({
17
+ visibility?: "default" | "alwaysVisible" | null | undefined;
18
+ active?: boolean | null | undefined;
19
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
20
+ export declare const scrollbarTrackXVariants: (props?: ({
21
+ visibility?: "default" | "alwaysVisible" | null | undefined;
22
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
23
+ export declare const scrollbarThumbXVariants: (props?: ({
24
+ visibility?: "default" | "alwaysVisible" | null | undefined;
25
+ active?: boolean | null | undefined;
26
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Updates the cursor style to grabbing and disables text selection
3
+ */
4
+ export declare const updateCursor: () => void;
5
+ /**
6
+ * Resets the cursor style and text selection
7
+ */
8
+ export declare const resetCursor: () => void;
9
+ /**
10
+ * Scrolls an HTML element smoothly to a specified offset along the top or left axis.
11
+ *
12
+ * @param element - The HTML element to scroll.
13
+ * @param scrollToOffset - The offset to scroll to along the specified axis.
14
+ * @param scrollProp - The axis to scroll along, either "top" or "left".
15
+ */
16
+ export declare const handleScrollToHelper: (element: HTMLDivElement, scrollToOffset: number, scrollProp: "top" | "left") => void;
@@ -0,0 +1,3 @@
1
+ export { Select, type ISelectProps } from "./select";
2
+ export { selectVariants } from "./selectVariants";
3
+ export type { IOption } from "./types";
@@ -0,0 +1,48 @@
1
+ import { type ReactNode, type ReactElement } from "react";
2
+ import { type Props as ReactSelectProps, type GroupBase } from "react-select";
3
+ import { type TIconType } from "../adpIcon";
4
+ import { type TSelectSize, type IOption } from "./types";
5
+ /**
6
+ * Props for the Select component
7
+ */
8
+ export interface ISelectProps<IsMulti extends boolean = false, Group extends GroupBase<IOption> = GroupBase<IOption>> extends Omit<ReactSelectProps<IOption, IsMulti, Group>, "options" | "value" | "className"> {
9
+ /** Unique id for the select input */
10
+ id?: string;
11
+ /** Custom className for wrapper */
12
+ className?: string;
13
+ /** Label displayed above select */
14
+ label?: ReactNode;
15
+ /** Select size variant */
16
+ size?: TSelectSize;
17
+ /** Options or groups to render */
18
+ options?: ReactSelectProps<IOption, IsMulti, Group>["options"];
19
+ /** Current value of the select */
20
+ value?: ReactSelectProps<IOption, IsMulti, Group>["value"];
21
+ /** Helper text displayed below */
22
+ helperText?: ReactNode;
23
+ /** Display error styling */
24
+ error?: boolean;
25
+ /** Disable the select */
26
+ disabled?: boolean;
27
+ /** Enable creatable select */
28
+ creatable?: boolean;
29
+ /** Field touched state */
30
+ touched?: boolean;
31
+ /** Max number of visible values in multi */
32
+ maxVisibleValues?: number;
33
+ /** Label for truncated values */
34
+ maxVisibleValuesMsg?: string;
35
+ /** Custom footer in menu */
36
+ menuFooter?: ReactNode;
37
+ /** Prefix icon for the control */
38
+ prefixIcon?: TIconType | ReactNode;
39
+ /** Suffix icon for the control */
40
+ suffixIcon?: TIconType | ReactNode;
41
+ }
42
+ /**
43
+ * Select component for single or multi selection
44
+ */
45
+ export declare function Select<IsMulti extends boolean = false, Group extends GroupBase<IOption> = GroupBase<IOption>>(selectProps: ISelectProps<IsMulti, Group>): ReactElement;
46
+ export declare namespace Select {
47
+ var displayName: string;
48
+ }
@@ -0,0 +1,9 @@
1
+ export declare const selectVariants: (props?: ({
2
+ size?: "md" | "lg" | null | undefined;
3
+ error?: boolean | null | undefined;
4
+ disabled?: boolean | null | undefined;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ export declare const selectLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
7
+ export declare const selectHelperTextVariants: (props?: ({
8
+ error?: boolean | null | undefined;
9
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,20 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * Available sizes for the Select component
4
+ */
5
+ export declare enum ESelectSizes {
6
+ MD = "md",
7
+ LG = "lg"
8
+ }
9
+ /**
10
+ * Size type derived from available sizes
11
+ */
12
+ export type TSelectSize = `${ESelectSizes}`;
13
+ /**
14
+ * Option type for Select component
15
+ */
16
+ export interface IOption {
17
+ label: ReactNode;
18
+ value: any;
19
+ isFixed?: boolean;
20
+ }
@@ -0,0 +1,3 @@
1
+ import { type StylesConfig, type GroupBase } from "react-select";
2
+ import { type TSelectSize, type IOption } from "./types";
3
+ export declare const reactSelectCustomStyles: <IsMulti extends boolean, Group extends GroupBase<IOption>>(error: boolean, size: TSelectSize, multiSelect: boolean) => StylesConfig<IOption, IsMulti, Group>;
@@ -1,3 +1,2 @@
1
- export { Tabs, Tab } from "./tabs";
1
+ export { Tabs, type ITabsProps, Tab, type ITabProps } from "./tabs";
2
2
  export { tabsVariants, tabsListVariants, tabsListItemVariants, tabsContentVariants } from "./tabsVariants";
3
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,119 @@
1
+ import * as React from "react";
2
+ import { type ReactElement } from "react";
3
+ export declare enum ETabSizes {
4
+ XS = "xs",
5
+ SM = "sm",
6
+ MD = "md",
7
+ LG = "lg"
8
+ }
9
+ export type TTabSize = `${ETabSizes}`;
10
+ /**
11
+ * Props for the Tab component.
12
+ */
13
+ export interface ITabProps {
14
+ /**
15
+ * Id of the tab.
16
+ */
17
+ id?: string;
18
+ /**
19
+ * Name of the tab.
20
+ */
21
+ title: React.ReactNode;
22
+ /**
23
+ * Function to call when the tab is displayed.
24
+ */
25
+ onEnter?: () => void;
26
+ /**
27
+ * Function to call when the tab is exited.
28
+ */
29
+ onExit?: () => void;
30
+ /**
31
+ * Dynamically updates the className applied to the component.
32
+ */
33
+ className?: string;
34
+ /**
35
+ * Content to be displayed within the tab.
36
+ */
37
+ children: React.ReactNode;
38
+ /**
39
+ * Indicates whether the tab is disabled.
40
+ */
41
+ disabled?: boolean;
42
+ /**
43
+ * Icon to be displayed before the title of the Tab.
44
+ * @description
45
+ * This prop accepts either an IconType (string) or a ReactNode.
46
+ * - If an IconType is provided, it will be rendered as-is.
47
+ * - If a ReactNode is provided, it will be rendered as-is.
48
+ */
49
+ prefixIcon?: React.ReactNode;
50
+ /**
51
+ * Icon to be displayed after the title of the Tab.
52
+ * @description
53
+ * This prop accepts either an IconType (string) or a ReactNode.
54
+ * - If an IconType is provided, it will be rendered as-is.
55
+ * - If a ReactNode is provided, it will be rendered as-is.
56
+ */
57
+ suffixIcon?: React.ReactNode;
58
+ }
59
+ export declare const Tab: React.ForwardRefExoticComponent<ITabProps & React.RefAttributes<HTMLDivElement>>;
60
+ /**
61
+ * Props for the Tabs component.
62
+ */
63
+ export interface ITabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> {
64
+ /**
65
+ * Active tab index. Tab index starts from 0.
66
+ */
67
+ activeIndex?: number;
68
+ /**
69
+ * Default active tab index, to be used with the uncontrolled version of the Tabs component.
70
+ * @default 0
71
+ */
72
+ defaultActiveIndex?: number;
73
+ /**
74
+ * Dynamically updates the className applied to the component.
75
+ */
76
+ className?: string;
77
+ /**
78
+ * Renders all the tabs at once and switches between them using CSS.
79
+ * @default false
80
+ */
81
+ switchUsingCss?: boolean;
82
+ /**
83
+ * Called on click of a tab header.
84
+ * @param selectedTabIndex {number} Selected tab index.
85
+ */
86
+ onSelect?: (selectedTabIndex: number) => void;
87
+ /**
88
+ * Array of items to be displayed in the Tabs,
89
+ * each item should be wrapped in Tabs.Tab component
90
+ * @required
91
+ * @example
92
+ * ```tsx
93
+ * <Tabs>
94
+ * <Tabs.Tab title="Tab 1">Content of Tab 1</Tabs.Tab>
95
+ * </Tabs>
96
+ * ```
97
+ */
98
+ children: ReactElement<ITabProps> | Array<ReactElement<ITabProps> | boolean> | boolean;
99
+ /**
100
+ * Size of the tab.
101
+ * @default md
102
+ */
103
+ size?: TTabSize;
104
+ /**
105
+ * Variant of the tab.
106
+ * @default text
107
+ */
108
+ variant?: "filled" | "text" | "brick";
109
+ /**
110
+ * Color of the tab. Only applicable for filled variant.
111
+ */
112
+ color?: "primary" | "secondary";
113
+ }
114
+ declare const TabsComponent: React.ForwardRefExoticComponent<ITabsProps & React.RefAttributes<HTMLDivElement>>;
115
+ type TTabsType = typeof TabsComponent & {
116
+ Tab: typeof Tab;
117
+ };
118
+ declare const Tabs: TTabsType;
119
+ export { Tabs };
@@ -0,0 +1,12 @@
1
+ export declare const tabsVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
+ export declare const tabsListVariants: (props?: ({
3
+ variant?: "text" | "filled" | "brick" | null | undefined;
4
+ color?: "primary" | "secondary" | null | undefined;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ export declare const tabsListItemVariants: (props?: ({
7
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
8
+ variant?: "text" | "filled" | "brick" | null | undefined;
9
+ color?: "primary" | "secondary" | null | undefined;
10
+ active?: boolean | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
+ export declare const tabsContentVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
@@ -1,3 +1,3 @@
1
1
  export { TextCopy } from "./textCopy";
2
+ export type { ITextCopyProps } from "./textCopy";
2
3
  export { textCopyVariants } from "./textCopyVariants";
3
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ /**
3
+ * TextCopy component for copying text to clipboard
4
+ */
5
+ export interface ITextCopyProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Pass the text prop if you want to copy something other than children string
8
+ */
9
+ text?: string;
10
+ /**
11
+ * Pass the children to display the text or element to be copied.
12
+ * When passing children as non-string, make sure to pass text prop as well
13
+ */
14
+ children?: React.ReactElement | string;
15
+ /**
16
+ * To display icon on hover of the text
17
+ */
18
+ displayOnHover?: boolean;
19
+ /**
20
+ * Title for the copy button
21
+ */
22
+ copyButtonTitle?: string;
23
+ /**
24
+ * Confirmation message to be shown after the text gets copied
25
+ */
26
+ confirmationMessage?: string;
27
+ }
28
+ /**
29
+ * TextCopy component for copying text to clipboard with visual confirmation
30
+ */
31
+ export declare const TextCopy: React.ForwardRefExoticComponent<ITextCopyProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const textCopyVariants: (props?: ({
2
+ displayOnHover?: boolean | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,2 @@
1
+ export { TextField, type ITextFieldProps } from "./textField";
2
+ export { textFieldVariants } from "./textFieldVariants";
@@ -0,0 +1,48 @@
1
+ import * as React from "react";
2
+ import { type ReactNode } from "react";
3
+ import { type TIconType } from "../adpIcon";
4
+ type TSize = "md" | "lg";
5
+ export interface ITextFieldProps extends Omit<React.ComponentPropsWithoutRef<"input">, "css" | "size"> {
6
+ /**
7
+ * Regular static label.
8
+ */
9
+ label?: string | ReactNode;
10
+ /**
11
+ * Size of the Textfield.
12
+ * @default md
13
+ */
14
+ size?: TSize;
15
+ /**
16
+ * Pass a ref to the inner input element
17
+ */
18
+ ref?: React.Ref<HTMLInputElement>;
19
+ /**
20
+ * Additional information or guidance displayed below the text field.
21
+ */
22
+ helperText?: ReactNode;
23
+ /**
24
+ * Pass a boolean value to indicate if the text field is in an error state.
25
+ */
26
+ error?: boolean;
27
+ /**
28
+ * Icon to be displayed before the input.
29
+ * @description
30
+ * This prop accepts either an IconType (string) or a ReactNode.
31
+ * - If an IconType is provided, it will render an ADPIcon component.
32
+ * - If a ReactNode is provided, it will be rendered as-is.
33
+ */
34
+ prefixIcon?: TIconType | ReactNode;
35
+ /**
36
+ * Icon to be displayed after the input.
37
+ * @description
38
+ * This prop accepts either an IconType (string) or a ReactNode.
39
+ * - If an IconType is provided, it will render an ADPIcon component.
40
+ * - If a ReactNode is provided, it will be rendered as-is.
41
+ */
42
+ suffixIcon?: TIconType | ReactNode;
43
+ }
44
+ /**
45
+ * TextField component for collecting text input from users.
46
+ */
47
+ export declare const TextField: React.ForwardRefExoticComponent<Omit<ITextFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
48
+ export {};
@@ -0,0 +1,15 @@
1
+ export declare const textFieldContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
+ export declare const textFieldLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
3
+ export declare const textFieldVariants: (props?: ({
4
+ size?: "md" | "lg" | null | undefined;
5
+ error?: boolean | null | undefined;
6
+ withPrefix?: boolean | null | undefined;
7
+ withSuffix?: boolean | null | undefined;
8
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
+ export declare const textFieldIconVariants: (props?: ({
10
+ size?: "md" | "lg" | null | undefined;
11
+ position?: "prefix" | "suffix" | null | undefined;
12
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
+ export declare const textFieldHelperTextVariants: (props?: ({
14
+ error?: boolean | null | undefined;
15
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,3 +1,2 @@
1
- export { Textarea } from "./textarea";
1
+ export { Textarea, type ITextareaProps } from "./textarea";
2
2
  export { textareaVariants, containerVariants, helperTextVariants } from "./textareaVariants";
3
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,30 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Textarea component for multiline text input fields.
4
+ */
5
+ export interface ITextareaProps extends Omit<React.ComponentPropsWithoutRef<"textarea">, "label"> {
6
+ /**
7
+ * Regular static label.
8
+ */
9
+ label?: React.ReactNode;
10
+ /**
11
+ * Pass a ref to the inner input element
12
+ */
13
+ ref?: React.Ref<HTMLTextAreaElement>;
14
+ /**
15
+ * Additional information or guidance displayed below the textarea.
16
+ */
17
+ helperText?: React.ReactNode;
18
+ /**
19
+ * Additional information shown inside the textarea.
20
+ */
21
+ infoText?: string;
22
+ /**
23
+ * Pass a boolean value to indicate if the textarea is in an error state.
24
+ */
25
+ error?: boolean;
26
+ }
27
+ /**
28
+ * Textarea component for multiline text input fields.
29
+ */
30
+ export declare const Textarea: React.ForwardRefExoticComponent<Omit<ITextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1,9 @@
1
+ export declare const textareaVariants: (props?: ({
2
+ state?: "default" | "disabled" | "error" | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
4
+ export declare const containerVariants: (props?: ({
5
+ state?: "default" | "disabled" | "error" | null | undefined;
6
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
+ export declare const helperTextVariants: (props?: ({
8
+ state?: "default" | "error" | null | undefined;
9
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,3 +1,3 @@
1
1
  export { Toast } from "./toast";
2
+ export type { IToastProps } from "./toast";
2
3
  export { toastVariants, toastIconVariants, toastContentWrapperVariants, toastContentVariants, toastCloseButtonVariants } from "./toastVariants";
3
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,42 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Toast component for displaying notifications or alerts.
4
+ */
5
+ export interface IToastProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Accepts a variant value
8
+ * @default info
9
+ */
10
+ variant?: "success" | "info" | "warning" | "error";
11
+ /**
12
+ * Show/hide the toast component
13
+ * @default true
14
+ */
15
+ display?: boolean;
16
+ /**
17
+ * Accepts children of ReactNode type
18
+ */
19
+ children?: React.ReactNode;
20
+ /**
21
+ * Hide the Toast components automatically in x milliseconds
22
+ */
23
+ autoHideDelay?: number;
24
+ /**
25
+ * Hide the close button on the toast
26
+ * @default false
27
+ */
28
+ hideCloseButton?: boolean;
29
+ /**
30
+ * A callback that is fired once the Toast closes
31
+ */
32
+ onClose?: () => void;
33
+ /**
34
+ * Show a condensed form of the Toast
35
+ * @default true
36
+ */
37
+ condensed?: boolean;
38
+ }
39
+ /**
40
+ * Toast component for displaying notifications or alerts.
41
+ */
42
+ export declare const Toast: React.ForwardRefExoticComponent<IToastProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,10 @@
1
+ export declare const toastVariants: (props?: ({
2
+ variant?: "info" | "success" | "warning" | "error" | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
4
+ export declare const toastIconVariants: (props?: ({
5
+ variant?: "info" | "success" | "warning" | "error" | null | undefined;
6
+ condensed?: boolean | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
+ export declare const toastContentWrapperVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
+ export declare const toastContentVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
+ export declare const toastCloseButtonVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,3 +1,2 @@
1
- export { Toggle } from "./toggle";
1
+ export { Toggle, type IToggleProps } from "./toggle";
2
2
  export { toggleWrapperVariants, toggleContainerVariants, toggleButtonVariants, toggleIconVariants, toggleLabelVariants } from "./toggleVariants";
3
- //# sourceMappingURL=index.js.map