@cloudwick/astral-ui 5.2.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 (391) 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 +2 -4
  6. package/dist/components/adpIcon/adpIconVariants.d.ts +15 -0
  7. package/dist/components/adpIcon/index.d.ts +3 -0
  8. package/dist/components/avatar/avatar.d.ts +20 -0
  9. package/dist/components/avatar/avatarVariants.d.ts +5 -0
  10. package/dist/components/avatar/{index.js → index.d.ts} +1 -2
  11. package/dist/components/avatarGroup/avatarGroup.d.ts +33 -0
  12. package/dist/components/avatarGroup/avatarGroupVariants.d.ts +3 -0
  13. package/dist/components/avatarGroup/index.d.ts +2 -0
  14. package/dist/components/badge/badge.d.ts +22 -0
  15. package/dist/components/badge/badgeVariants.d.ts +1 -1
  16. package/dist/components/badge/index.d.ts +2 -0
  17. package/dist/components/breadcrumbs/breadcrumbItem.d.ts +26 -0
  18. package/dist/components/breadcrumbs/breadcrumbs.d.ts +31 -0
  19. package/dist/components/breadcrumbs/breadcrumbsVariants.d.ts +10 -0
  20. package/dist/components/breadcrumbs/{index.js → index.d.ts} +3 -3
  21. package/dist/components/button/button.d.ts +80 -0
  22. package/dist/components/button/buttonVariants.d.ts +1 -1
  23. package/dist/components/button/{index.js → index.d.ts} +1 -2
  24. package/dist/components/card/card.d.ts +74 -0
  25. package/dist/components/card/cardVariants.d.ts +4 -0
  26. package/dist/components/card/{index.js → index.d.ts} +1 -2
  27. package/dist/components/checkbox/checkboxVariants.d.ts +9 -0
  28. package/dist/components/checkbox/{index.js → index.d.ts} +1 -2
  29. package/dist/components/checkboxGroup/checkboxGroupVariants.d.ts +7 -0
  30. package/dist/components/checkboxGroup/{index.js → index.d.ts} +1 -2
  31. package/dist/components/ctaGroup/{index.js → index.d.ts} +1 -2
  32. package/dist/components/dataTable/DataTableColumnSettings.d.ts +7 -0
  33. package/dist/components/dataTable/advancedFilters.d.ts +10 -0
  34. package/dist/components/dataTable/dataTable.d.ts +3 -3
  35. package/dist/components/dataTable/dataTableVariants.d.ts +22 -0
  36. package/dist/components/dataTable/{index.js → index.d.ts} +2 -5
  37. package/dist/components/dataTable/pageSizeModal.d.ts +9 -0
  38. package/dist/components/dataTable/selectedFilterList.d.ts +17 -0
  39. package/dist/components/dataTable/table.d.ts +41 -0
  40. package/dist/components/dataTable/types.d.ts +60 -0
  41. package/dist/components/datePicker/datePicker.d.ts +1 -1
  42. package/dist/components/datePicker/datePickerVariants.d.ts +43 -0
  43. package/dist/components/datePicker/{index.js → index.d.ts} +1 -2
  44. package/dist/components/distributionSlider/distributionSlider.d.ts +81 -0
  45. package/dist/components/distributionSlider/distributionSliderVariants.d.ts +27 -0
  46. package/dist/components/distributionSlider/index.d.ts +2 -0
  47. package/dist/components/dropdown/dropdown.d.ts +50 -0
  48. package/dist/components/dropdown/dropdownItem.d.ts +40 -0
  49. package/dist/components/dropdown/dropdownToggle.d.ts +12 -0
  50. package/dist/components/dropdown/dropdownVariants.d.ts +11 -0
  51. package/dist/components/dropdown/index.d.ts +10 -0
  52. package/dist/components/emptyState/emptyState.d.ts +43 -0
  53. package/dist/components/emptyState/emptyStateContent.d.ts +11 -0
  54. package/dist/components/emptyState/emptyStateCta.d.ts +9 -0
  55. package/dist/components/emptyState/emptyStateVariants.d.ts +5 -0
  56. package/dist/components/emptyState/index.d.ts +4 -0
  57. package/dist/components/fileUpload/fileUpload.d.ts +33 -0
  58. package/dist/components/fileUpload/fileUploadVariants.d.ts +4 -0
  59. package/dist/components/fileUpload/index.d.ts +2 -0
  60. package/dist/components/fileUpload/statusCard.d.ts +18 -0
  61. package/dist/components/fileUpload/statusCardVariants.d.ts +1 -1
  62. package/dist/components/loader/index.d.ts +2 -0
  63. package/dist/components/loader/loader.d.ts +24 -0
  64. package/dist/components/loader/loaderVariants.d.ts +7 -0
  65. package/dist/components/modal/index.d.ts +2 -0
  66. package/dist/components/modal/modal.d.ts +98 -0
  67. package/dist/components/modal/modalVariants.d.ts +4 -0
  68. package/dist/components/otp/{index.js → index.d.ts} +0 -1
  69. package/dist/components/otp/input.d.ts +36 -0
  70. package/dist/components/otp/otp.d.ts +58 -0
  71. package/dist/components/otp/otpVariants.d.ts +3 -0
  72. package/dist/components/pagination/{index.js → index.d.ts} +1 -3
  73. package/dist/components/pagination/paginationVariants.d.ts +10 -0
  74. package/dist/components/panel/index.d.ts +13 -0
  75. package/dist/components/panel/panel.d.ts +10 -3
  76. package/dist/components/panel/panelBody.d.ts +12 -0
  77. package/dist/components/panel/panelFooter.d.ts +12 -0
  78. package/dist/components/panel/panelVariants.d.ts +50 -0
  79. package/dist/components/panelGroup/{index.js → index.d.ts} +0 -1
  80. package/dist/components/panelGroup/panelGroup.d.ts +22 -0
  81. package/dist/components/panelGroup/panelGroupVariants.d.ts +8 -0
  82. package/dist/components/passwordField/index.d.ts +1 -0
  83. package/dist/components/passwordField/passwordField.d.ts +10 -0
  84. package/dist/components/progress/{index.js → index.d.ts} +1 -2
  85. package/dist/components/progress/progressVariants.d.ts +4 -4
  86. package/dist/components/radio/{index.js → index.d.ts} +1 -2
  87. package/dist/components/radio/radioVariants.d.ts +7 -0
  88. package/dist/components/radioGroup/{index.js → index.d.ts} +1 -2
  89. package/dist/components/radioGroup/radioGroupVariants.d.ts +12 -0
  90. package/dist/components/scrollbar/{index.js → index.d.ts} +1 -2
  91. package/dist/components/scrollbar/scrollbar.d.ts +2 -2
  92. package/dist/components/scrollbar/scrollbarVariants.d.ts +26 -0
  93. package/dist/components/scrollbar/utils.d.ts +16 -0
  94. package/dist/components/select/index.d.ts +3 -0
  95. package/dist/components/select/select.d.ts +48 -0
  96. package/dist/components/select/selectVariants.d.ts +9 -0
  97. package/dist/components/select/types.d.ts +20 -0
  98. package/dist/components/select/utils.d.ts +3 -0
  99. package/dist/components/tabs/{index.js → index.d.ts} +1 -2
  100. package/dist/components/textCopy/{index.js → index.d.ts} +1 -1
  101. package/dist/components/textCopy/textCopy.d.ts +31 -0
  102. package/dist/components/textCopy/textCopyVariants.d.ts +3 -0
  103. package/dist/components/textField/index.d.ts +2 -0
  104. package/dist/components/textField/textFieldVariants.d.ts +15 -0
  105. package/dist/components/textarea/{index.js → index.d.ts} +1 -2
  106. package/dist/components/textarea/textareaVariants.d.ts +2 -2
  107. package/dist/components/toast/{index.js → index.d.ts} +1 -1
  108. package/dist/components/toast/toast.d.ts +42 -0
  109. package/dist/components/toast/toastVariants.d.ts +2 -2
  110. package/dist/components/toggle/{index.js → index.d.ts} +1 -2
  111. package/dist/components/toggle/toggleVariants.d.ts +12 -0
  112. package/dist/components/tooltip/index.d.ts +2 -0
  113. package/dist/components/tooltip/tooltip.d.ts +31 -0
  114. package/dist/components/tooltip/tooltipVariants.d.ts +3 -0
  115. package/dist/components/truncate/index.d.ts +2 -0
  116. package/dist/components/truncate/truncate.d.ts +33 -0
  117. package/dist/components/truncate/truncateVariants.d.ts +3 -0
  118. package/dist/css/index.min.css +1 -1
  119. package/dist/hooks/index.d.ts +1 -0
  120. package/dist/hooks/useWindowSize.d.ts +6 -0
  121. package/dist/index.cjs.js +7 -5
  122. package/dist/{index.js → index.d.ts} +1 -1
  123. package/dist/index.esm.js +7 -5
  124. package/dist/utils/{cn.js → cn.d.ts} +2 -6
  125. package/dist/utils/debounce.d.ts +15 -0
  126. package/dist/utils/findParentAttribute.d.ts +9 -0
  127. package/dist/utils/{index.js → index.d.ts} +0 -2
  128. package/dist/utils/numberUtils/index.d.ts +12 -0
  129. package/dist/utils/stringUtils/{fileSize.js → fileSize.d.ts} +1 -5
  130. package/dist/utils/stringUtils/{index.js → index.d.ts} +1 -2
  131. package/dist/utils/stringUtils/isRegexSafe.d.ts +13 -0
  132. package/dist/utils/stringUtils/placeholderText.d.ts +10 -0
  133. package/package.json +5 -4
  134. package/tsconfig.eslint.json +3 -2
  135. package/tsconfig.test.json +2 -1
  136. package/dist/components/accordion/accordion.js +0 -63
  137. package/dist/components/accordion/accordion.js.map +0 -1
  138. package/dist/components/accordion/accordionVariants.js +0 -52
  139. package/dist/components/accordion/accordionVariants.js.map +0 -1
  140. package/dist/components/accordion/index.js +0 -3
  141. package/dist/components/accordion/index.js.map +0 -1
  142. package/dist/components/adpIcon/adpIcon.js +0 -39
  143. package/dist/components/adpIcon/adpIcon.js.map +0 -1
  144. package/dist/components/adpIcon/adpIconVariants.js +0 -35
  145. package/dist/components/adpIcon/adpIconVariants.js.map +0 -1
  146. package/dist/components/adpIcon/index.js +0 -3
  147. package/dist/components/adpIcon/index.js.map +0 -1
  148. package/dist/components/adpIcon/svgObjects.js +0 -1534
  149. package/dist/components/adpIcon/svgObjects.js.map +0 -1
  150. package/dist/components/avatar/avatar.js +0 -39
  151. package/dist/components/avatar/avatar.js.map +0 -1
  152. package/dist/components/avatar/avatarVariants.js +0 -20
  153. package/dist/components/avatar/avatarVariants.js.map +0 -1
  154. package/dist/components/avatar/index.js.map +0 -1
  155. package/dist/components/avatarGroup/avatarGroup.js +0 -57
  156. package/dist/components/avatarGroup/avatarGroup.js.map +0 -1
  157. package/dist/components/avatarGroup/avatarGroupVariants.js +0 -13
  158. package/dist/components/avatarGroup/avatarGroupVariants.js.map +0 -1
  159. package/dist/components/avatarGroup/index.js +0 -3
  160. package/dist/components/avatarGroup/index.js.map +0 -1
  161. package/dist/components/badge/badge.js +0 -24
  162. package/dist/components/badge/badge.js.map +0 -1
  163. package/dist/components/badge/badgeVariants.js +0 -136
  164. package/dist/components/badge/badgeVariants.js.map +0 -1
  165. package/dist/components/badge/index.js +0 -3
  166. package/dist/components/badge/index.js.map +0 -1
  167. package/dist/components/breadcrumbs/breadcrumbItem.js +0 -26
  168. package/dist/components/breadcrumbs/breadcrumbItem.js.map +0 -1
  169. package/dist/components/breadcrumbs/breadcrumbs.js +0 -74
  170. package/dist/components/breadcrumbs/breadcrumbs.js.map +0 -1
  171. package/dist/components/breadcrumbs/breadcrumbsVariants.js +0 -40
  172. package/dist/components/breadcrumbs/breadcrumbsVariants.js.map +0 -1
  173. package/dist/components/breadcrumbs/index.js.map +0 -1
  174. package/dist/components/button/button.js +0 -69
  175. package/dist/components/button/button.js.map +0 -1
  176. package/dist/components/button/buttonVariants.js +0 -288
  177. package/dist/components/button/buttonVariants.js.map +0 -1
  178. package/dist/components/button/index.js.map +0 -1
  179. package/dist/components/card/card.js +0 -86
  180. package/dist/components/card/card.js.map +0 -1
  181. package/dist/components/card/cardVariants.js +0 -18
  182. package/dist/components/card/cardVariants.js.map +0 -1
  183. package/dist/components/card/index.js.map +0 -1
  184. package/dist/components/checkbox/checkbox.js +0 -30
  185. package/dist/components/checkbox/checkbox.js.map +0 -1
  186. package/dist/components/checkbox/checkboxVariants.js +0 -96
  187. package/dist/components/checkbox/checkboxVariants.js.map +0 -1
  188. package/dist/components/checkbox/index.js.map +0 -1
  189. package/dist/components/checkboxGroup/checkboxGroup.js +0 -52
  190. package/dist/components/checkboxGroup/checkboxGroup.js.map +0 -1
  191. package/dist/components/checkboxGroup/checkboxGroupVariants.js +0 -31
  192. package/dist/components/checkboxGroup/checkboxGroupVariants.js.map +0 -1
  193. package/dist/components/checkboxGroup/index.js.map +0 -1
  194. package/dist/components/ctaGroup/ctaGroup.js +0 -51
  195. package/dist/components/ctaGroup/ctaGroup.js.map +0 -1
  196. package/dist/components/ctaGroup/ctaGroupVariants.js +0 -26
  197. package/dist/components/ctaGroup/ctaGroupVariants.js.map +0 -1
  198. package/dist/components/ctaGroup/index.js.map +0 -1
  199. package/dist/components/dataTable/DataTableColumnSettings.js +0 -99
  200. package/dist/components/dataTable/DataTableColumnSettings.js.map +0 -1
  201. package/dist/components/dataTable/advancedFilters.js +0 -102
  202. package/dist/components/dataTable/advancedFilters.js.map +0 -1
  203. package/dist/components/dataTable/dataTable.js +0 -216
  204. package/dist/components/dataTable/dataTable.js.map +0 -1
  205. package/dist/components/dataTable/dataTableStoryHelpers.js +0 -2075
  206. package/dist/components/dataTable/dataTableStoryHelpers.js.map +0 -1
  207. package/dist/components/dataTable/dataTableVariants.js +0 -51
  208. package/dist/components/dataTable/dataTableVariants.js.map +0 -1
  209. package/dist/components/dataTable/index.js.map +0 -1
  210. package/dist/components/dataTable/pageSizeModal.js +0 -26
  211. package/dist/components/dataTable/pageSizeModal.js.map +0 -1
  212. package/dist/components/dataTable/selectedFilterList.js +0 -40
  213. package/dist/components/dataTable/selectedFilterList.js.map +0 -1
  214. package/dist/components/dataTable/table.js +0 -108
  215. package/dist/components/dataTable/table.js.map +0 -1
  216. package/dist/components/dataTable/types.js +0 -2
  217. package/dist/components/dataTable/types.js.map +0 -1
  218. package/dist/components/datePicker/datePicker.js +0 -274
  219. package/dist/components/datePicker/datePicker.js.map +0 -1
  220. package/dist/components/datePicker/datePickerVariants.js +0 -80
  221. package/dist/components/datePicker/datePickerVariants.js.map +0 -1
  222. package/dist/components/datePicker/index.js.map +0 -1
  223. package/dist/components/dropdown/dropdown.js +0 -95
  224. package/dist/components/dropdown/dropdown.js.map +0 -1
  225. package/dist/components/dropdown/dropdownItem.js +0 -53
  226. package/dist/components/dropdown/dropdownItem.js.map +0 -1
  227. package/dist/components/dropdown/dropdownToggle.js +0 -20
  228. package/dist/components/dropdown/dropdownToggle.js.map +0 -1
  229. package/dist/components/dropdown/dropdownVariants.js +0 -48
  230. package/dist/components/dropdown/dropdownVariants.js.map +0 -1
  231. package/dist/components/dropdown/index.js +0 -8
  232. package/dist/components/dropdown/index.js.map +0 -1
  233. package/dist/components/emptyState/emptyState.js +0 -119
  234. package/dist/components/emptyState/emptyState.js.map +0 -1
  235. package/dist/components/emptyState/emptyStateContent.js +0 -25
  236. package/dist/components/emptyState/emptyStateContent.js.map +0 -1
  237. package/dist/components/emptyState/emptyStateCta.js +0 -25
  238. package/dist/components/emptyState/emptyStateCta.js.map +0 -1
  239. package/dist/components/emptyState/emptyStateVariants.js +0 -7
  240. package/dist/components/emptyState/emptyStateVariants.js.map +0 -1
  241. package/dist/components/emptyState/index.js +0 -5
  242. package/dist/components/emptyState/index.js.map +0 -1
  243. package/dist/components/fileUpload/fileUpload.js +0 -150
  244. package/dist/components/fileUpload/fileUpload.js.map +0 -1
  245. package/dist/components/fileUpload/fileUploadVariants.js +0 -21
  246. package/dist/components/fileUpload/fileUploadVariants.js.map +0 -1
  247. package/dist/components/fileUpload/index.js +0 -3
  248. package/dist/components/fileUpload/index.js.map +0 -1
  249. package/dist/components/fileUpload/statusCard.js +0 -80
  250. package/dist/components/fileUpload/statusCard.js.map +0 -1
  251. package/dist/components/fileUpload/statusCardVariants.js +0 -19
  252. package/dist/components/fileUpload/statusCardVariants.js.map +0 -1
  253. package/dist/components/fileUpload/storyUtil.js +0 -52
  254. package/dist/components/fileUpload/storyUtil.js.map +0 -1
  255. package/dist/components/loader/index.js +0 -3
  256. package/dist/components/loader/index.js.map +0 -1
  257. package/dist/components/loader/loader.js +0 -39
  258. package/dist/components/loader/loader.js.map +0 -1
  259. package/dist/components/loader/loaderVariants.js +0 -31
  260. package/dist/components/loader/loaderVariants.js.map +0 -1
  261. package/dist/components/modal/index.js +0 -3
  262. package/dist/components/modal/index.js.map +0 -1
  263. package/dist/components/modal/modal.js +0 -95
  264. package/dist/components/modal/modal.js.map +0 -1
  265. package/dist/components/modal/modalVariants.js +0 -14
  266. package/dist/components/modal/modalVariants.js.map +0 -1
  267. package/dist/components/otp/index.js.map +0 -1
  268. package/dist/components/otp/input.js +0 -18
  269. package/dist/components/otp/input.js.map +0 -1
  270. package/dist/components/otp/otp.js +0 -131
  271. package/dist/components/otp/otp.js.map +0 -1
  272. package/dist/components/otp/otpVariants.js +0 -13
  273. package/dist/components/otp/otpVariants.js.map +0 -1
  274. package/dist/components/pagination/index.js.map +0 -1
  275. package/dist/components/pagination/pagination.js +0 -83
  276. package/dist/components/pagination/pagination.js.map +0 -1
  277. package/dist/components/pagination/paginationVariants.js +0 -44
  278. package/dist/components/pagination/paginationVariants.js.map +0 -1
  279. package/dist/components/panel/index.js +0 -11
  280. package/dist/components/panel/index.js.map +0 -1
  281. package/dist/components/panel/panel.js +0 -82
  282. package/dist/components/panel/panel.js.map +0 -1
  283. package/dist/components/panel/panelBody.js +0 -21
  284. package/dist/components/panel/panelBody.js.map +0 -1
  285. package/dist/components/panel/panelFooter.js +0 -21
  286. package/dist/components/panel/panelFooter.js.map +0 -1
  287. package/dist/components/panel/panelHeader.js +0 -24
  288. package/dist/components/panel/panelHeader.js.map +0 -1
  289. package/dist/components/panel/panelVariants.js +0 -122
  290. package/dist/components/panel/panelVariants.js.map +0 -1
  291. package/dist/components/panelGroup/index.js.map +0 -1
  292. package/dist/components/panelGroup/panelGroup.js +0 -38
  293. package/dist/components/panelGroup/panelGroup.js.map +0 -1
  294. package/dist/components/panelGroup/panelGroupVariants.js +0 -34
  295. package/dist/components/panelGroup/panelGroupVariants.js.map +0 -1
  296. package/dist/components/passwordField/index.js +0 -2
  297. package/dist/components/passwordField/index.js.map +0 -1
  298. package/dist/components/passwordField/passwordField.js +0 -29
  299. package/dist/components/passwordField/passwordField.js.map +0 -1
  300. package/dist/components/progress/index.js.map +0 -1
  301. package/dist/components/progress/progress.js +0 -62
  302. package/dist/components/progress/progress.js.map +0 -1
  303. package/dist/components/progress/progressVariants.js +0 -103
  304. package/dist/components/progress/progressVariants.js.map +0 -1
  305. package/dist/components/radio/index.js.map +0 -1
  306. package/dist/components/radio/radio.js +0 -26
  307. package/dist/components/radio/radio.js.map +0 -1
  308. package/dist/components/radio/radioVariants.js +0 -46
  309. package/dist/components/radio/radioVariants.js.map +0 -1
  310. package/dist/components/radioGroup/index.js.map +0 -1
  311. package/dist/components/radioGroup/radioGroup.js +0 -48
  312. package/dist/components/radioGroup/radioGroup.js.map +0 -1
  313. package/dist/components/radioGroup/radioGroupVariants.js +0 -53
  314. package/dist/components/radioGroup/radioGroupVariants.js.map +0 -1
  315. package/dist/components/scrollbar/index.js.map +0 -1
  316. package/dist/components/scrollbar/scrollbar.js +0 -361
  317. package/dist/components/scrollbar/scrollbar.js.map +0 -1
  318. package/dist/components/scrollbar/scrollbarVariants.js +0 -100
  319. package/dist/components/scrollbar/scrollbarVariants.js.map +0 -1
  320. package/dist/components/scrollbar/utils.js +0 -28
  321. package/dist/components/scrollbar/utils.js.map +0 -1
  322. package/dist/components/select/index.js +0 -3
  323. package/dist/components/select/index.js.map +0 -1
  324. package/dist/components/select/select.js +0 -134
  325. package/dist/components/select/select.js.map +0 -1
  326. package/dist/components/select/selectVariants.js +0 -35
  327. package/dist/components/select/selectVariants.js.map +0 -1
  328. package/dist/components/select/types.js +0 -9
  329. package/dist/components/select/types.js.map +0 -1
  330. package/dist/components/select/utils.js +0 -118
  331. package/dist/components/select/utils.js.map +0 -1
  332. package/dist/components/tabs/index.js.map +0 -1
  333. package/dist/components/tabs/tabs.js +0 -141
  334. package/dist/components/tabs/tabs.js.map +0 -1
  335. package/dist/components/tabs/tabsVariants.js +0 -183
  336. package/dist/components/tabs/tabsVariants.js.map +0 -1
  337. package/dist/components/textCopy/index.js.map +0 -1
  338. package/dist/components/textCopy/textCopy.js +0 -36
  339. package/dist/components/textCopy/textCopy.js.map +0 -1
  340. package/dist/components/textCopy/textCopyVariants.js +0 -12
  341. package/dist/components/textCopy/textCopyVariants.js.map +0 -1
  342. package/dist/components/textField/index.js +0 -3
  343. package/dist/components/textField/index.js.map +0 -1
  344. package/dist/components/textField/textField.js +0 -37
  345. package/dist/components/textField/textField.js.map +0 -1
  346. package/dist/components/textField/textFieldVariants.js +0 -84
  347. package/dist/components/textField/textFieldVariants.js.map +0 -1
  348. package/dist/components/textarea/index.js.map +0 -1
  349. package/dist/components/textarea/textarea.js +0 -29
  350. package/dist/components/textarea/textarea.js.map +0 -1
  351. package/dist/components/textarea/textareaVariants.js +0 -37
  352. package/dist/components/textarea/textareaVariants.js.map +0 -1
  353. package/dist/components/toast/index.js.map +0 -1
  354. package/dist/components/toast/toast.js +0 -51
  355. package/dist/components/toast/toast.js.map +0 -1
  356. package/dist/components/toast/toastVariants.js +0 -45
  357. package/dist/components/toast/toastVariants.js.map +0 -1
  358. package/dist/components/toggle/index.js.map +0 -1
  359. package/dist/components/toggle/toggle.js +0 -34
  360. package/dist/components/toggle/toggle.js.map +0 -1
  361. package/dist/components/toggle/toggleVariants.js +0 -40
  362. package/dist/components/toggle/toggleVariants.js.map +0 -1
  363. package/dist/components/tooltip/index.js +0 -3
  364. package/dist/components/tooltip/index.js.map +0 -1
  365. package/dist/components/tooltip/tooltip.js +0 -100
  366. package/dist/components/tooltip/tooltip.js.map +0 -1
  367. package/dist/components/tooltip/tooltipVariants.js +0 -13
  368. package/dist/components/tooltip/tooltipVariants.js.map +0 -1
  369. package/dist/components/truncate/index.js +0 -3
  370. package/dist/components/truncate/index.js.map +0 -1
  371. package/dist/components/truncate/truncate.js +0 -36
  372. package/dist/components/truncate/truncate.js.map +0 -1
  373. package/dist/components/truncate/truncateVariants.js +0 -13
  374. package/dist/components/truncate/truncateVariants.js.map +0 -1
  375. package/dist/index.js.map +0 -1
  376. package/dist/tailwindThemeConfig.js +0 -194
  377. package/dist/tailwindThemeConfig.js.map +0 -1
  378. package/dist/utils/cn.js.map +0 -1
  379. package/dist/utils/debounce.js +0 -30
  380. package/dist/utils/debounce.js.map +0 -1
  381. package/dist/utils/findParentAttribute.js +0 -23
  382. package/dist/utils/findParentAttribute.js.map +0 -1
  383. package/dist/utils/index.js.map +0 -1
  384. package/dist/utils/numberUtils/index.js +0 -41
  385. package/dist/utils/numberUtils/index.js.map +0 -1
  386. package/dist/utils/stringUtils/fileSize.js.map +0 -1
  387. package/dist/utils/stringUtils/index.js.map +0 -1
  388. package/dist/utils/stringUtils/placeholderText.js +0 -77
  389. package/dist/utils/stringUtils/placeholderText.js.map +0 -1
  390. package/dist/utils/useWindowSize.js +0 -25
  391. package/dist/utils/useWindowSize.js.map +0 -1
@@ -0,0 +1,98 @@
1
+ import * as React from "react";
2
+ export interface IModalProps {
3
+ /**
4
+ * Control modal's visibility
5
+ */
6
+ showModal: boolean;
7
+ /**
8
+ * Modal content
9
+ */
10
+ children: React.ReactElement<IModalHeaderProps> | [React.ReactElement<IModalHeaderProps>, React.ReactElement<IModalBodyProps>];
11
+ /**
12
+ * Overwrite the Modal styles by passing space separated class names
13
+ */
14
+ className?: string;
15
+ /**
16
+ * Sets the modal content to right-to-left
17
+ */
18
+ rtl?: boolean;
19
+ /**
20
+ * Hide the modal on esc key press
21
+ * @default true
22
+ */
23
+ escKeyClose?: boolean;
24
+ /**
25
+ * Show/hide the close button within the modal
26
+ * @default true
27
+ */
28
+ closeButton?: boolean;
29
+ /**
30
+ * Pass a reference to the element where the Modal needs to be rendered
31
+ * @default document.body
32
+ */
33
+ portalTarget?: HTMLElement;
34
+ /**
35
+ * A list of Refs to be considered as a part of the Lock. The html elements in the list will be accessible while the Modal is open.
36
+ */
37
+ shards?: (HTMLElement | React.RefObject<any>)[];
38
+ /**
39
+ * Callback function for onHide
40
+ */
41
+ onHide?: () => void;
42
+ }
43
+ export interface IModalHeaderProps {
44
+ /**
45
+ * Header of the Modal
46
+ */
47
+ children?: React.ReactNode;
48
+ /**
49
+ * Dynamically updates the classes applied to the component
50
+ */
51
+ className?: string;
52
+ }
53
+ export interface IModalBodyProps {
54
+ /**
55
+ * Modal Body
56
+ */
57
+ children?: React.ReactNode;
58
+ /**
59
+ * Dynamically updates the classes applied to the component
60
+ */
61
+ className?: string;
62
+ }
63
+ /**
64
+ * Modal component for displaying content in an overlay with optional header and close button.
65
+ *
66
+ * @example
67
+ * ```tsx
68
+ * <Modal showModal={modalVisible} onHide={() => setModalVisible(false)}>
69
+ * <Modal.Header>Modal Title</Modal.Header>
70
+ * <Modal.Body>Modal content goes here</Modal.Body>
71
+ * </Modal>
72
+ * ```
73
+ */
74
+ declare const ModalComponent: React.ForwardRefExoticComponent<IModalProps & React.RefAttributes<HTMLDivElement>>;
75
+ /**
76
+ * Modal header component for rendering the title in the Modal.
77
+ *
78
+ * @example
79
+ * ```tsx
80
+ * <Modal.Header>Modal Title</Modal.Header>
81
+ * ```
82
+ */
83
+ declare const ModalHeader: React.ForwardRefExoticComponent<IModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
84
+ /**
85
+ * Modal body component for rendering content inside the Modal.
86
+ *
87
+ * @example
88
+ * ```tsx
89
+ * <Modal.Body>Modal content goes here</Modal.Body>
90
+ * ```
91
+ */
92
+ declare const ModalBody: React.ForwardRefExoticComponent<IModalBodyProps & React.RefAttributes<HTMLDivElement>>;
93
+ type TModalCompoundComponent = typeof ModalComponent & {
94
+ Header: typeof ModalHeader;
95
+ Body: typeof ModalBody;
96
+ };
97
+ declare const Modal: TModalCompoundComponent;
98
+ export { Modal, ModalHeader, ModalBody };
@@ -0,0 +1,4 @@
1
+ export declare const modalContainerVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
2
+ export declare const modalVariants: (props?: ({
3
+ headerless?: boolean | null | undefined;
4
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,3 +1,2 @@
1
1
  export * from "./otp";
2
2
  export { otpTextVariants } from "./otpVariants";
3
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,36 @@
1
+ import * as React from "react";
2
+ interface IInputProps {
3
+ /**
4
+ * The value of the input
5
+ */
6
+ value: string;
7
+ /**
8
+ * Handler for input changes
9
+ */
10
+ handleChange: React.ChangeEventHandler<HTMLInputElement>;
11
+ /**
12
+ * Handler for keyboard events
13
+ */
14
+ handleKeyDown: React.KeyboardEventHandler<HTMLInputElement>;
15
+ /**
16
+ * Whether the input is focused
17
+ */
18
+ focused: boolean;
19
+ /**
20
+ * The index of the input
21
+ */
22
+ index: number;
23
+ /**
24
+ * The ID of the input
25
+ */
26
+ id: string;
27
+ /**
28
+ * Whether the input is in an error state
29
+ */
30
+ error: boolean;
31
+ }
32
+ /**
33
+ * Input component for OTP field
34
+ */
35
+ export declare const Input: React.FC<IInputProps>;
36
+ export {};
@@ -0,0 +1,58 @@
1
+ import * as React from "react";
2
+ import { type ReactNode } from "react";
3
+ /**
4
+ * OTP component for one-time password input with multiple fields
5
+ */
6
+ export interface IOtpProps extends Omit<React.HTMLAttributes<HTMLFieldSetElement>, "onFocus" | "onBlur" | "onChange"> {
7
+ /**
8
+ * Value of the OTP input.
9
+ */
10
+ initialValue?: string;
11
+ /**
12
+ * Pass a regex to restrict what can be entered in the OTP input.
13
+ */
14
+ regexValidation?: string;
15
+ /**
16
+ * Callback triggered when the OTP input value changes.
17
+ */
18
+ onChange?: (val: string) => void;
19
+ /**
20
+ * Callback triggered when the OTP input loses focus.
21
+ */
22
+ onBlur?: React.FocusEventHandler<HTMLDivElement>;
23
+ /**
24
+ * Callback triggered when the OTP input gains focus.
25
+ */
26
+ onFocus?: React.FocusEventHandler<HTMLDivElement>;
27
+ /**
28
+ * Regular static label.
29
+ */
30
+ label?: ReactNode;
31
+ /**
32
+ * Pass OTP length.
33
+ * @default 6
34
+ */
35
+ otpLength?: number;
36
+ /**
37
+ * Overwrite the style by passing space separated class names.
38
+ */
39
+ className?: string;
40
+ /**
41
+ * Additional information or guidance displayed below the OTP input.
42
+ */
43
+ helperText?: ReactNode;
44
+ /**
45
+ * Pass a boolean value to indicate if the OTP input is in an error state.
46
+ * @default false
47
+ */
48
+ error?: boolean;
49
+ /**
50
+ * Whether the OTP input is disabled.
51
+ * @default false
52
+ */
53
+ disabled?: boolean;
54
+ }
55
+ /**
56
+ * OTP input component for one-time password entry
57
+ */
58
+ export declare const OtpInput: React.ForwardRefExoticComponent<IOtpProps & React.RefAttributes<HTMLFieldSetElement>>;
@@ -0,0 +1,3 @@
1
+ export declare const otpTextVariants: (props?: ({
2
+ error?: boolean | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,5 +1,3 @@
1
- // Export component and type
2
1
  export { Pagination } from "./pagination";
3
- // Export variants
2
+ export type { IPaginationProps } from "./pagination";
4
3
  export { paginationVariants, paginationPageContainerVariants, paginationPageButtonVariants, paginationEllipsisVariants, paginationTextVariants } from "./paginationVariants";
5
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ export declare const paginationVariants: (props?: ({
2
+ layout?: "detailed" | "basic" | "minimal" | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
4
+ export declare const paginationPageContainerVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
5
+ export declare const paginationPageButtonVariants: (props?: ({
6
+ variant?: "filled" | "outline" | null | undefined;
7
+ isActive?: boolean | null | undefined;
8
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
+ export declare const paginationEllipsisVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
+ export declare const paginationTextVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1,13 @@
1
+ import { Panel as PanelComponent, type IPanelProps } from "./panel";
2
+ import { PanelHeader, type IPanelHeaderProps } from "./panelHeader";
3
+ import { PanelBody, type IPanelBodyProps } from "./panelBody";
4
+ import { PanelFooter, type IPanelFooterProps } from "./panelFooter";
5
+ import { panelVariants, panelHeaderVariants, panelBodyVariants, panelFooterVariants, panelOverlayVariants, panelContainerVariants } from "./panelVariants";
6
+ type TPanelCompoundComponent = typeof PanelComponent & {
7
+ Header: typeof PanelHeader;
8
+ Body: typeof PanelBody;
9
+ Footer: typeof PanelFooter;
10
+ };
11
+ declare const Panel: TPanelCompoundComponent;
12
+ export { Panel, PanelHeader, PanelBody, PanelFooter, panelVariants, panelHeaderVariants, panelBodyVariants, panelFooterVariants, panelOverlayVariants, panelContainerVariants };
13
+ export type { IPanelProps, IPanelHeaderProps, IPanelBodyProps, IPanelFooterProps };
@@ -27,7 +27,14 @@ export interface IPanelProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
27
27
  */
28
28
  children: React.ReactNode;
29
29
  /**
30
- * If set to true, the panel will open from left and sets dir="rtl"
30
+ * Direction from which the panel slides in
31
+ * @default "right"
32
+ */
33
+ slideDirection?: "left" | "right";
34
+ /**
35
+ * If true, indicates that the app is in RTL (right-to-left) mode
36
+ * When true in RTL mode, slideDirection="left" will make panel open from right
37
+ * @default false
31
38
  */
32
39
  rtl?: boolean;
33
40
  /**
@@ -38,11 +45,11 @@ export interface IPanelProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
38
45
  /**
39
46
  * A list of Refs to be considered as a part of the Lock. The html elements in the list will be accessible while the Panel is open.
40
47
  */
41
- shards?: (HTMLElement | React.RefObject<any>)[];
48
+ shards?: (HTMLElement | React.RefObject<HTMLElement>)[];
42
49
  /**
43
50
  * Optional callback function to call when panel is closed
44
51
  */
45
- onClose?: () => void;
52
+ onClose?: (e: React.MouseEvent<HTMLDivElement> | KeyboardEvent) => void;
46
53
  }
47
54
  declare const PanelComponent: React.ForwardRefExoticComponent<IPanelProps & React.RefAttributes<HTMLDivElement>>;
48
55
  type TPanelCompoundComponent = typeof PanelComponent & {
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ export interface IPanelBodyProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Panel Body
5
+ */
6
+ children?: React.ReactNode;
7
+ /**
8
+ * Overwrite the Panel body styles by passing space separated class names
9
+ */
10
+ className?: string;
11
+ }
12
+ export declare const PanelBody: React.ForwardRefExoticComponent<IPanelBodyProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ export interface IPanelFooterProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Panel Footer
5
+ */
6
+ children?: React.ReactNode;
7
+ /**
8
+ * Overwrite the Panel footer styles by passing space separated class names
9
+ */
10
+ className?: string;
11
+ }
12
+ export declare const PanelFooter: React.ForwardRefExoticComponent<IPanelFooterProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,50 @@
1
+ export declare const panelAnimations: {
2
+ appear: string;
3
+ disappear: string;
4
+ slideIn: string;
5
+ slideInRtl: string;
6
+ slideOut: string;
7
+ slideOutRtl: string;
8
+ };
9
+ export declare const panelVariants: (props?: ({
10
+ variant?: "compact" | "extended" | null | undefined;
11
+ animation?: "none" | "slideInRight" | "slideOutRight" | "slideInLeft" | "slideOutLeft" | null | undefined;
12
+ visibility?: "hidden" | "visible" | null | undefined;
13
+ direction?: "right" | "left" | null | undefined;
14
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
15
+ export declare const panelOverlayVariants: (props?: ({
16
+ animation?: "none" | "appear" | "disappear" | null | undefined;
17
+ visibility?: "hidden" | "visible" | null | undefined;
18
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
19
+ export declare const panelContainerVariants: (props?: ({
20
+ toggleVisibility?: boolean | null | undefined;
21
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
22
+ export declare const panelHeaderVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
23
+ export declare const panelBodyVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
24
+ export declare const panelFooterVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
25
+ export declare const cssVisibilityVariants: {
26
+ container: string;
27
+ panel: {
28
+ base: {
29
+ right: string;
30
+ left: string;
31
+ };
32
+ compact: string;
33
+ extended: string;
34
+ extendedLeft: string;
35
+ show: {
36
+ right: {
37
+ extended: string;
38
+ compact: string;
39
+ };
40
+ left: {
41
+ extended: string;
42
+ compact: string;
43
+ };
44
+ };
45
+ };
46
+ overlay: {
47
+ base: string;
48
+ show: string;
49
+ };
50
+ };
@@ -1,3 +1,2 @@
1
1
  export * from "./panelGroup";
2
2
  export * from "./panelGroupVariants";
3
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ export interface IPanelGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Overwrite the styles for PanelGroup by passing space separated class names
5
+ */
6
+ className?: string;
7
+ /**
8
+ * Pass one or more Panels as the children
9
+ */
10
+ children?: React.ReactNode;
11
+ /**
12
+ * Use the prop to set the active panel index. The value for the active index needs to start from 0.
13
+ * @default 0
14
+ */
15
+ activeIndex?: number;
16
+ /**
17
+ * Control PanelGroup's visibility
18
+ * @default false
19
+ */
20
+ showPanels?: boolean;
21
+ }
22
+ export declare const PanelGroup: React.ForwardRefExoticComponent<IPanelGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ export declare const panelGroupVariants: (props?: ({
2
+ visibility?: "hidden" | "visible" | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
4
+ export declare const panelGroupItemVariants: (props?: ({
5
+ position?: "previous" | "current" | "subsequent" | null | undefined;
6
+ animation?: "slideIn" | null | undefined;
7
+ spacing?: "default" | "withMargin" | null | undefined;
8
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { PasswordField, type TPasswordFieldProps } from "./passwordField";
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { type ITextFieldProps } from "../textField";
3
+ /**
4
+ * PasswordField component with show/hide password toggle functionality.
5
+ */
6
+ export type TPasswordFieldProps = Omit<ITextFieldProps, "type">;
7
+ /**
8
+ * PasswordField component with show/hide password toggle functionality.
9
+ */
10
+ export declare const PasswordField: React.ForwardRefExoticComponent<Omit<TPasswordFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,3 +1,2 @@
1
- export { Progress, EColors, EValuePositions } from "./progress";
1
+ export { Progress, EColors, EValuePositions, type IProgressProps, type TColorType, type TValuePositionType } from "./progress";
2
2
  export { progressTrackVariants, progressBarVariants, progressTextVariants, progressValueTextVariants, progressCircularVariants, progressCircularTrackVariants, progressCircularProgressVariants, progressCircularTextVariants } from "./progressVariants";
3
- //# sourceMappingURL=index.js.map
@@ -1,23 +1,23 @@
1
1
  export declare const progressContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
2
2
  export declare const progressTrackVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
3
3
  export declare const progressBarVariants: (props?: ({
4
- color?: "error" | "primary" | "secondary" | "success" | "warning" | null | undefined;
4
+ color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
5
5
  striped?: boolean | null | undefined;
6
6
  animate?: boolean | null | undefined;
7
7
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
8
  export declare const progressTextVariants: (props?: ({
9
9
  position?: "inline" | "top" | "right" | "bottom" | null | undefined;
10
- color?: "error" | "primary" | "secondary" | "success" | "warning" | null | undefined;
10
+ color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  export declare const progressValueTextVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
13
13
  export declare const progressCircularVariants: (props?: ({
14
14
  size?: "md" | "lg" | null | undefined;
15
15
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
16
16
  export declare const progressCircularTrackVariants: (props?: ({
17
- color?: "error" | "primary" | "secondary" | "success" | "warning" | null | undefined;
17
+ color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
18
18
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
19
19
  export declare const progressCircularProgressVariants: (props?: ({
20
- color?: "error" | "primary" | "secondary" | "success" | "warning" | null | undefined;
20
+ color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
21
21
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
22
22
  export declare const progressCircularTextVariants: (props?: ({
23
23
  size?: "md" | "lg" | null | undefined;
@@ -1,3 +1,2 @@
1
- export { Radio } from "./radio";
1
+ export { Radio, type IRadioProps } from "./radio";
2
2
  export { radioVariants, radioLabelVariants } from "./radioVariants";
3
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ export declare const radioVariants: (props?: ({
2
+ size?: "sm" | "md" | "lg" | null | undefined;
3
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
4
+ export declare const radioLabelVariants: (props?: ({
5
+ size?: "sm" | "md" | "lg" | null | undefined;
6
+ disabled?: boolean | null | undefined;
7
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1,3 +1,2 @@
1
- export { RadioGroup } from "./radioGroup";
1
+ export { RadioGroup, type IRadioGroupProps, type TRadioGroupSize } from "./radioGroup";
2
2
  export { radioGroupVariants, radioGroupItemVariants, radioGroupItemLabelVariants } from "./radioGroupVariants";
3
- //# sourceMappingURL=index.js.map
@@ -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
@@ -3,7 +3,7 @@ type TVoidElements = "area" | "base" | "br" | "col" | "embed" | "hr" | "img" | "
3
3
  /**
4
4
  * Props for the Scrollbar component
5
5
  */
6
- export interface IScrollbarProps {
6
+ export interface IScrollbarProps extends Omit<React.HTMLAttributes<HTMLElement>, "as"> {
7
7
  /**
8
8
  * children to render inside the scroll container
9
9
  */
@@ -14,7 +14,7 @@ export interface IScrollbarProps {
14
14
  */
15
15
  as?: keyof Omit<JSX.IntrinsicElements, TVoidElements>;
16
16
  /**
17
- * Overwrite the scrollbar container styles by passing space separated class names.
17
+ * Overwrite the children container styles by passing space separated class names.
18
18
  * @optional
19
19
  */
20
20
  className?: string;
@@ -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