@konstructio/ui 0.1.2-alpha.52 → 0.1.2-alpha.53

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 (624) hide show
  1. package/dist/CalendarPanel.css +1 -0
  2. package/dist/DayPicker-PUEUVAST.js +2793 -0
  3. package/dist/assets/icons/components/Accounts.d.ts +3 -0
  4. package/dist/assets/icons/components/Accounts.js +37 -0
  5. package/dist/assets/icons/components/AddChart.d.ts +3 -0
  6. package/dist/assets/icons/components/AddChart.js +28 -0
  7. package/dist/assets/icons/components/AppRepo.d.ts +3 -0
  8. package/dist/assets/icons/components/AppRepo.js +28 -0
  9. package/dist/assets/icons/components/Apps.d.ts +3 -0
  10. package/dist/assets/icons/components/Apps.js +28 -0
  11. package/dist/assets/icons/components/Archives.d.ts +3 -0
  12. package/dist/assets/icons/components/Archives.js +28 -0
  13. package/dist/assets/icons/components/ArrowDown.d.ts +3 -0
  14. package/dist/assets/icons/components/ArrowDown.js +28 -0
  15. package/dist/assets/icons/components/ArrowLeft.d.ts +3 -0
  16. package/dist/assets/icons/components/ArrowLeft.js +28 -0
  17. package/dist/assets/icons/components/ArrowRight.d.ts +3 -0
  18. package/dist/assets/icons/components/ArrowRight.js +28 -0
  19. package/dist/assets/icons/components/ArrowUp.d.ts +3 -0
  20. package/dist/assets/icons/components/ArrowUp.js +28 -0
  21. package/dist/assets/icons/components/BarChart.d.ts +3 -0
  22. package/dist/assets/icons/components/BarChart.js +38 -0
  23. package/dist/assets/icons/components/CalendarMonth.d.ts +3 -0
  24. package/dist/assets/icons/components/CalendarMonth.js +28 -0
  25. package/dist/assets/icons/components/Check.d.ts +3 -0
  26. package/dist/assets/icons/components/Check.js +28 -0
  27. package/dist/assets/icons/components/CheckCircle.d.ts +3 -0
  28. package/dist/assets/icons/components/CheckCircle.js +28 -0
  29. package/dist/assets/icons/components/ClockAlert.d.ts +3 -0
  30. package/dist/assets/icons/components/ClockAlert.js +28 -0
  31. package/dist/assets/icons/components/ClockOutline.d.ts +3 -0
  32. package/dist/assets/icons/components/ClockOutline.js +28 -0
  33. package/dist/assets/icons/components/Close.d.ts +3 -0
  34. package/dist/assets/icons/components/Close.js +28 -0
  35. package/dist/assets/icons/components/Cloud.d.ts +3 -0
  36. package/dist/assets/icons/components/Cloud.js +22 -0
  37. package/dist/assets/icons/components/Clusters.d.ts +3 -0
  38. package/dist/assets/icons/components/Clusters.js +44 -0
  39. package/dist/assets/icons/components/CogOutline.d.ts +3 -0
  40. package/dist/assets/icons/components/CogOutline.js +28 -0
  41. package/dist/assets/icons/components/Copy.d.ts +3 -0
  42. package/dist/assets/icons/components/Copy.js +28 -0
  43. package/dist/assets/icons/components/Cpu.d.ts +3 -0
  44. package/dist/assets/icons/components/Cpu.js +41 -0
  45. package/dist/assets/icons/components/Cube.d.ts +3 -0
  46. package/dist/assets/icons/components/Cube.js +28 -0
  47. package/dist/assets/icons/components/Datacenter.d.ts +3 -0
  48. package/dist/assets/icons/components/Datacenter.js +28 -0
  49. package/dist/assets/icons/components/Delete.d.ts +3 -0
  50. package/dist/assets/icons/components/Delete.js +28 -0
  51. package/dist/assets/icons/components/Download.d.ts +3 -0
  52. package/dist/assets/icons/components/Download.js +28 -0
  53. package/dist/assets/icons/components/Edit.d.ts +3 -0
  54. package/dist/assets/icons/components/Edit.js +28 -0
  55. package/dist/assets/icons/components/Ellipses.d.ts +3 -0
  56. package/dist/assets/icons/components/Ellipses.js +28 -0
  57. package/dist/assets/icons/components/Environments.d.ts +3 -0
  58. package/dist/assets/icons/components/Environments.js +30 -0
  59. package/dist/assets/icons/components/Error.d.ts +3 -0
  60. package/dist/assets/icons/components/Error.js +28 -0
  61. package/dist/assets/icons/components/ErrorOutline.d.ts +3 -0
  62. package/dist/assets/icons/components/ErrorOutline.js +28 -0
  63. package/dist/assets/icons/components/Exclamation.d.ts +3 -0
  64. package/dist/assets/icons/components/Exclamation.js +28 -0
  65. package/dist/assets/icons/components/Git.d.ts +3 -0
  66. package/dist/assets/icons/components/Git.js +28 -0
  67. package/dist/assets/icons/components/GitOpsCatalog.d.ts +3 -0
  68. package/dist/assets/icons/components/GitOpsCatalog.js +41 -0
  69. package/dist/assets/icons/components/GridView.d.ts +3 -0
  70. package/dist/assets/icons/components/GridView.js +22 -0
  71. package/dist/assets/icons/components/Help.d.ts +3 -0
  72. package/dist/assets/icons/components/Help.js +25 -0
  73. package/dist/assets/icons/components/HideOutline.d.ts +3 -0
  74. package/dist/assets/icons/components/HideOutline.js +37 -0
  75. package/dist/assets/icons/components/Home.d.ts +3 -0
  76. package/dist/assets/icons/components/Home.js +28 -0
  77. package/dist/assets/icons/components/Id.d.ts +3 -0
  78. package/dist/assets/icons/components/Id.js +28 -0
  79. package/dist/assets/icons/components/InformationOutline.d.ts +3 -0
  80. package/dist/assets/icons/components/InformationOutline.js +28 -0
  81. package/dist/assets/icons/components/InvoiceList.d.ts +3 -0
  82. package/dist/assets/icons/components/InvoiceList.js +28 -0
  83. package/dist/assets/icons/components/Key.d.ts +3 -0
  84. package/dist/assets/icons/components/Key.js +28 -0
  85. package/dist/assets/icons/components/Loader.d.ts +3 -0
  86. package/dist/assets/icons/components/Loader.js +28 -0
  87. package/dist/assets/icons/components/Network.d.ts +3 -0
  88. package/dist/assets/icons/components/Network.js +28 -0
  89. package/dist/assets/icons/components/PagesStack.d.ts +3 -0
  90. package/dist/assets/icons/components/PagesStack.js +25 -0
  91. package/dist/assets/icons/components/Pageview.d.ts +3 -0
  92. package/dist/assets/icons/components/Pageview.js +28 -0
  93. package/dist/assets/icons/components/People.d.ts +3 -0
  94. package/dist/assets/icons/components/People.js +28 -0
  95. package/dist/assets/icons/components/PhotoLibrary.d.ts +3 -0
  96. package/dist/assets/icons/components/PhotoLibrary.js +28 -0
  97. package/dist/assets/icons/components/Pipeline.d.ts +3 -0
  98. package/dist/assets/icons/components/Pipeline.js +30 -0
  99. package/dist/assets/icons/components/Plus.d.ts +3 -0
  100. package/dist/assets/icons/components/Plus.js +28 -0
  101. package/dist/assets/icons/components/PowerSettings.d.ts +3 -0
  102. package/dist/assets/icons/components/PowerSettings.js +28 -0
  103. package/dist/assets/icons/components/Preview.d.ts +3 -0
  104. package/dist/assets/icons/components/Preview.js +28 -0
  105. package/dist/assets/icons/components/ReceiptLong.d.ts +3 -0
  106. package/dist/assets/icons/components/ReceiptLong.js +22 -0
  107. package/dist/assets/icons/components/Refresh.d.ts +3 -0
  108. package/dist/assets/icons/components/Refresh.js +28 -0
  109. package/dist/assets/icons/components/ScatterPlot.d.ts +3 -0
  110. package/dist/assets/icons/components/ScatterPlot.js +22 -0
  111. package/dist/assets/icons/components/Search.d.ts +3 -0
  112. package/dist/assets/icons/components/Search.js +29 -23
  113. package/dist/assets/icons/components/Server.d.ts +3 -0
  114. package/dist/assets/icons/components/Server.js +28 -0
  115. package/dist/assets/icons/components/Start.d.ts +3 -0
  116. package/dist/assets/icons/components/Start.js +28 -0
  117. package/dist/assets/icons/components/TabNew.d.ts +3 -0
  118. package/dist/assets/icons/components/TabNew.js +50 -0
  119. package/dist/assets/icons/components/Teams.d.ts +3 -0
  120. package/dist/assets/icons/components/Teams.js +28 -0
  121. package/dist/assets/icons/components/Warning.d.ts +3 -0
  122. package/dist/assets/icons/components/Warning.js +24 -18
  123. package/dist/assets/icons/components/X.d.ts +3 -0
  124. package/dist/assets/icons/components/X.js +28 -0
  125. package/dist/assets/icons/components/index.d.ts +62 -0
  126. package/dist/assets/icons/components/index.js +122 -4
  127. package/dist/assets/icons/components/types.d.ts +5 -0
  128. package/dist/assets/icons/components/types.js +0 -0
  129. package/dist/assets/icons/index.d.ts +1 -0
  130. package/dist/assets/icons/index.js +122 -5
  131. package/dist/{chevron-down-DgT-uSF9.js → chevron-down-BBFYYzZq.js} +1 -1
  132. package/dist/{chevron-right-DYvXLeql.js → chevron-right-SUh6si0f.js} +1 -1
  133. package/dist/{chevron-up-DrQr2Fwd.js → chevron-up-IlDPxR7j.js} +1 -1
  134. package/dist/components/Alert/Alert.d.ts +32 -0
  135. package/dist/components/Alert/Alert.types.d.ts +26 -0
  136. package/dist/components/Alert/Alert.variants.d.ts +7 -0
  137. package/dist/components/AlertDialog/AlertDialog.d.ts +32 -0
  138. package/dist/components/AlertDialog/AlertDialog.types.d.ts +58 -0
  139. package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +2 -0
  140. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +10 -0
  141. package/dist/components/AlertDialog/components/index.d.ts +1 -0
  142. package/dist/components/AlertDialog/hooks/index.d.ts +1 -0
  143. package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +7 -0
  144. package/dist/components/Autocomplete/Autocomplete.d.ts +31 -0
  145. package/dist/components/Autocomplete/Autocomplete.types.d.ts +48 -0
  146. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +2 -0
  147. package/dist/components/Autocomplete/components/List/List.d.ts +3 -0
  148. package/dist/components/Autocomplete/components/List/List.types.d.ts +13 -0
  149. package/dist/components/Autocomplete/components/List/List.variants.d.ts +4 -0
  150. package/dist/components/Autocomplete/components/index.d.ts +1 -0
  151. package/dist/components/Autocomplete/hooks/index.d.ts +2 -0
  152. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +17 -0
  153. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +10 -0
  154. package/dist/components/Badge/Badge.d.ts +34 -0
  155. package/dist/components/Badge/Badge.js +26 -20
  156. package/dist/components/Badge/Badge.types.d.ts +34 -0
  157. package/dist/components/Badge/Badge.variants.d.ts +8 -0
  158. package/dist/components/Breadcrumb/Breadcrumb.d.ts +29 -0
  159. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +41 -0
  160. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +2 -0
  161. package/dist/components/Breadcrumb/components/Item/Item.d.ts +3 -0
  162. package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
  163. package/dist/components/Breadcrumb/components/Item/Item.types.d.ts +6 -0
  164. package/dist/components/Breadcrumb/components/Item/Item.variants.d.ts +6 -0
  165. package/dist/components/Breadcrumb/components/index.d.ts +1 -0
  166. package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +3 -0
  167. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  168. package/dist/components/Button/Button.d.ts +33 -0
  169. package/dist/components/Button/Button.types.d.ts +24 -0
  170. package/dist/components/Button/Button.variants.d.ts +8 -0
  171. package/dist/components/Card/Card.d.ts +28 -0
  172. package/dist/components/Card/Card.types.d.ts +24 -0
  173. package/dist/components/Card/Card.variants.d.ts +8 -0
  174. package/dist/components/Checkbox/Checkbox.d.ts +26 -0
  175. package/dist/components/Checkbox/Checkbox.types.d.ts +36 -0
  176. package/dist/components/Checkbox/Checkbox.variants.d.ts +5 -0
  177. package/dist/components/Command/Command.d.ts +27 -0
  178. package/dist/components/Command/Command.types.d.ts +31 -0
  179. package/dist/components/Command/Command.variants.d.ts +3 -0
  180. package/dist/components/Command/components/Command.d.ts +18 -0
  181. package/dist/components/Command/components/CommandEmpty.d.ts +8 -0
  182. package/dist/components/Command/components/CommandGroup.d.ts +12 -0
  183. package/dist/components/Command/components/CommandInput.d.ts +9 -0
  184. package/dist/components/Command/components/CommandItem.d.ts +14 -0
  185. package/dist/components/Command/components/CommandList.d.ts +10 -0
  186. package/dist/components/Command/components/CommandSeparator.d.ts +8 -0
  187. package/dist/components/Command/components/CommandShortcut.d.ts +6 -0
  188. package/dist/components/Command/components/DialogContent.d.ts +2 -0
  189. package/dist/components/Command/components/DialogOverlay.d.ts +2 -0
  190. package/dist/components/Command/components/index.d.ts +9 -0
  191. package/dist/components/Command/contexts/Command.context.d.ts +2 -0
  192. package/dist/components/Command/contexts/Command.provider.d.ts +2 -0
  193. package/dist/components/Command/contexts/Command.types.d.ts +5 -0
  194. package/dist/components/Command/contexts/index.d.ts +3 -0
  195. package/dist/components/Counter/Counter.d.ts +36 -0
  196. package/dist/components/Counter/Counter.types.d.ts +51 -0
  197. package/dist/components/Counter/Counter.variants.d.ts +7 -0
  198. package/dist/components/DateRangePicker/DateRangePicker.d.ts +31 -0
  199. package/dist/components/DateRangePicker/DateRangePicker.js +163 -0
  200. package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +123 -0
  201. package/dist/components/DateRangePicker/DateRangePicker.variants.d.ts +2 -0
  202. package/dist/components/DateRangePicker/DateRangePicker.variants.js +25 -0
  203. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.d.ts +3 -0
  204. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +120 -0
  205. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.types.d.ts +79 -0
  206. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.d.ts +8 -0
  207. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +56 -0
  208. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.d.ts +3 -0
  209. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +22 -0
  210. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.types.d.ts +3 -0
  211. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.d.ts +3 -0
  212. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +60 -0
  213. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.types.d.ts +17 -0
  214. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.d.ts +3 -0
  215. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +308 -0
  216. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.types.d.ts +34 -0
  217. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.d.ts +3 -0
  218. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +40 -0
  219. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.types.d.ts +12 -0
  220. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.d.ts +3 -0
  221. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +136 -0
  222. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.types.d.ts +26 -0
  223. package/dist/components/DateRangePicker/components/CalendarPanel/components/index.d.ts +5 -0
  224. package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +12 -0
  225. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.d.ts +22 -0
  226. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +5 -0
  227. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.d.ts +8 -0
  228. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +149 -0
  229. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.d.ts +4 -0
  230. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +21 -0
  231. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.d.ts +24 -0
  232. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +142 -0
  233. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.d.ts +22 -0
  234. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +93 -0
  235. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.d.ts +16 -0
  236. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +11 -0
  237. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.d.ts +3 -0
  238. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +107 -0
  239. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.types.d.ts +37 -0
  240. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.d.ts +5 -0
  241. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +30 -0
  242. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.d.ts +3 -0
  243. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +92 -0
  244. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +23 -0
  245. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.d.ts +3 -0
  246. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +92 -0
  247. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +23 -0
  248. package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.d.ts +2 -0
  249. package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +6 -0
  250. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.d.ts +1 -0
  251. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +4 -0
  252. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +29 -0
  253. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +186 -0
  254. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.d.ts +3 -0
  255. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +71 -0
  256. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.types.d.ts +31 -0
  257. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.d.ts +2 -0
  258. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +24 -0
  259. package/dist/components/DateRangePicker/components/index.d.ts +3 -0
  260. package/dist/components/DateRangePicker/components/index.js +8 -0
  261. package/dist/components/DateRangePicker/constants/index.d.ts +1 -0
  262. package/dist/components/DateRangePicker/constants/index.js +4 -0
  263. package/dist/components/DateRangePicker/constants/presets.d.ts +6 -0
  264. package/dist/components/DateRangePicker/constants/presets.js +10 -0
  265. package/dist/components/DateRangePicker/contexts/date-range-picker.context.d.ts +81 -0
  266. package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +5 -0
  267. package/dist/components/DateRangePicker/contexts/date-range-picker.hook.d.ts +1 -0
  268. package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +13 -0
  269. package/dist/components/DateRangePicker/contexts/date-range-picker.provider.d.ts +24 -0
  270. package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +176 -0
  271. package/dist/components/DateRangePicker/contexts/index.d.ts +4 -0
  272. package/dist/components/DateRangePicker/contexts/index.js +8 -0
  273. package/dist/components/DateRangePicker/utils/disabled-dates.d.ts +26 -0
  274. package/dist/components/DateRangePicker/utils/disabled-dates.js +47 -0
  275. package/dist/components/DateRangePicker/utils/index.d.ts +6 -0
  276. package/dist/components/DateRangePicker/utils/index.js +22 -0
  277. package/dist/components/DateRangePicker/utils/presets.d.ts +5 -0
  278. package/dist/components/DateRangePicker/utils/presets.js +36 -0
  279. package/dist/components/DateRangePicker/utils/validation.d.ts +43 -0
  280. package/dist/components/DateRangePicker/utils/validation.js +79 -0
  281. package/dist/components/Datepicker/DatePicker.d.ts +26 -0
  282. package/dist/components/Datepicker/DatePicker.js +42 -2829
  283. package/dist/components/Datepicker/DatePicker.types.d.ts +29 -0
  284. package/dist/components/Datepicker/DatePicker.variants.d.ts +1 -0
  285. package/dist/components/Divider/Divider.d.ts +17 -0
  286. package/dist/components/Divider/Divider.variants.d.ts +3 -0
  287. package/dist/components/DropdownButton/DropdownButton.d.ts +20 -0
  288. package/dist/components/DropdownButton/DropdownButton.types.d.ts +36 -0
  289. package/dist/components/Filter/Filter.d.ts +26 -0
  290. package/dist/components/Filter/Filter.js +5 -2
  291. package/dist/components/Filter/Filter.types.d.ts +53 -0
  292. package/dist/components/Filter/Filter.variants.d.ts +3 -0
  293. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.d.ts +3 -0
  294. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +12 -0
  295. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  296. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.types.d.ts +11 -0
  297. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.d.ts +3 -0
  298. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +12 -0
  299. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +30 -28
  300. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +27 -26
  301. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.types.d.ts +7 -0
  302. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.d.ts +3 -0
  303. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +13 -0
  304. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +84 -0
  305. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +121 -0
  306. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +25 -0
  307. package/dist/components/Filter/components/ResetButton/ResetButton.d.ts +3 -0
  308. package/dist/components/Filter/components/ResetButton/ResetButton.types.d.ts +5 -0
  309. package/dist/components/Filter/components/index.d.ts +8 -0
  310. package/dist/components/Filter/components/index.js +6 -4
  311. package/dist/components/Filter/events/index.d.ts +6 -0
  312. package/dist/components/Filter/utils/index.d.ts +1 -0
  313. package/dist/components/Filter/utils/index.js +2437 -0
  314. package/dist/components/ImageUpload/ImageUpload.d.ts +25 -0
  315. package/dist/components/ImageUpload/ImageUpload.js +66 -65
  316. package/dist/components/ImageUpload/ImageUpload.types.d.ts +67 -0
  317. package/dist/components/ImageUpload/ImageUpload.variants.d.ts +13 -0
  318. package/dist/components/Input/Input.d.ts +35 -0
  319. package/dist/components/Input/Input.js +4 -4
  320. package/dist/components/Input/Input.types.d.ts +32 -0
  321. package/dist/components/Input/Input.variants.d.ts +3 -0
  322. package/dist/components/Loading/Loading.d.ts +24 -0
  323. package/dist/components/Loading/Loading.js +1 -1
  324. package/dist/components/Loading/Loading.types.d.ts +17 -0
  325. package/dist/components/Loading/Loading.variants.d.ts +1 -0
  326. package/dist/components/Modal/Modal.d.ts +34 -0
  327. package/dist/components/Modal/Modal.types.d.ts +45 -0
  328. package/dist/components/Modal/components/Body/Body.d.ts +3 -0
  329. package/dist/components/Modal/components/Body/Body.types.d.ts +5 -0
  330. package/dist/components/Modal/components/Footer/Footer.d.ts +3 -0
  331. package/dist/components/Modal/components/Footer/Footer.types.d.ts +5 -0
  332. package/dist/components/Modal/components/Header/Header.d.ts +3 -0
  333. package/dist/components/Modal/components/Header/Header.types.d.ts +5 -0
  334. package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +3 -0
  335. package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +11 -0
  336. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -0
  337. package/dist/components/Modal/components/index.d.ts +4 -0
  338. package/dist/components/Modal/contexts/Modal.context.d.ts +2 -0
  339. package/dist/components/Modal/contexts/Modal.provider.d.ts +4 -0
  340. package/dist/components/Modal/contexts/Modal.types.d.ts +9 -0
  341. package/dist/components/Modal/contexts/index.d.ts +1 -0
  342. package/dist/components/Modal/hooks/index.d.ts +1 -0
  343. package/dist/components/Modal/hooks/useModal.d.ts +9 -0
  344. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +23 -0
  345. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +74 -0
  346. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +3 -0
  347. package/dist/components/MultiSelectDropdown/components/Item/Item.d.ts +3 -0
  348. package/dist/components/MultiSelectDropdown/components/Item/Item.types.d.ts +8 -0
  349. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.d.ts +3 -0
  350. package/dist/components/MultiSelectDropdown/components/List/List.d.ts +3 -0
  351. package/dist/components/MultiSelectDropdown/components/List/List.types.d.ts +4 -0
  352. package/dist/components/MultiSelectDropdown/components/List/List.variants.d.ts +1 -0
  353. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.d.ts +3 -0
  354. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +31 -25
  355. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +7 -0
  356. package/dist/components/MultiSelectDropdown/components/index.d.ts +3 -0
  357. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.d.ts +2 -0
  358. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.d.ts +1 -0
  359. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.d.ts +3 -0
  360. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +31 -0
  361. package/dist/components/MultiSelectDropdown/contexts/index.d.ts +2 -0
  362. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.d.ts +4 -0
  363. package/dist/components/PhoneNumberInput/PhoneNumberInput.d.ts +21 -0
  364. package/dist/components/PhoneNumberInput/PhoneNumberInput.types.d.ts +49 -0
  365. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.d.ts +4 -0
  366. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.d.ts +2 -0
  367. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +1 -1
  368. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.d.ts +3 -0
  369. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.types.d.ts +5 -0
  370. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.d.ts +3 -0
  371. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.types.d.ts +8 -0
  372. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.d.ts +3 -0
  373. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  374. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.types.d.ts +4 -0
  375. package/dist/components/PhoneNumberInput/components/Wrapper.d.ts +3 -0
  376. package/dist/components/PhoneNumberInput/components/index.d.ts +2 -0
  377. package/dist/components/PhoneNumberInput/contexts/index.d.ts +3 -0
  378. package/dist/components/PhoneNumberInput/contexts/phone-number.context.d.ts +20 -0
  379. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.d.ts +2 -0
  380. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.d.ts +6 -0
  381. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1527 -1661
  382. package/dist/components/PhoneNumberInput/utils/index.d.ts +2 -0
  383. package/dist/components/PhoneNumberInput/utils/index.js +1 -1
  384. package/dist/components/PieChart/PieChart.d.ts +20 -0
  385. package/dist/components/PieChart/PieChart.types.d.ts +90 -0
  386. package/dist/components/ProgressBar/ProgressBar.d.ts +20 -0
  387. package/dist/components/ProgressBar/ProgressBar.types.d.ts +36 -0
  388. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +4 -0
  389. package/dist/components/Radio/Radio.d.ts +22 -0
  390. package/dist/components/Radio/Radio.types.d.ts +44 -0
  391. package/dist/components/Radio/Radio.variants.d.ts +8 -0
  392. package/dist/components/RadioCard/RadioCard.d.ts +22 -0
  393. package/dist/components/RadioCard/RadioCard.types.d.ts +23 -0
  394. package/dist/components/RadioCard/RadioCard.variants.d.ts +1 -0
  395. package/dist/components/RadioCardGroup/RadioCardGroup.d.ts +23 -0
  396. package/dist/components/RadioCardGroup/RadioCardGroup.types.d.ts +30 -0
  397. package/dist/components/RadioCardGroup/RadioCardGroup.variants.d.ts +3 -0
  398. package/dist/components/RadioGroup/RadioGroup.d.ts +34 -0
  399. package/dist/components/RadioGroup/RadioGroup.types.d.ts +42 -0
  400. package/dist/components/RadioGroup/RadioGroup.variants.d.ts +3 -0
  401. package/dist/components/Range/Range.d.ts +21 -0
  402. package/dist/components/Range/Range.types.d.ts +40 -0
  403. package/dist/components/Range/Range.variants.d.ts +8 -0
  404. package/dist/components/Select/Select.d.ts +36 -0
  405. package/dist/components/Select/Select.types.d.ts +119 -0
  406. package/dist/components/Select/Select.variants.d.ts +6 -0
  407. package/dist/components/Select/components/EmptyList.d.ts +2 -0
  408. package/dist/components/Select/components/List/List.d.ts +3 -0
  409. package/dist/components/Select/components/List/List.js +1 -1
  410. package/dist/components/Select/components/List/List.types.d.ts +14 -0
  411. package/dist/components/Select/components/List/List.variants.d.ts +1 -0
  412. package/dist/components/Select/components/ListItem/ListItem.d.ts +3 -0
  413. package/dist/components/Select/components/ListItem/ListItem.types.d.ts +9 -0
  414. package/dist/components/Select/components/ListItem/ListItem.variants.d.ts +1 -0
  415. package/dist/components/Select/components/Wrapper.d.ts +3 -0
  416. package/dist/components/Select/components/Wrapper.js +44 -38
  417. package/dist/components/Select/components/index.d.ts +3 -0
  418. package/dist/components/Select/constants/index.d.ts +1 -0
  419. package/dist/components/Select/constants/pagination.d.ts +1 -0
  420. package/dist/components/Select/contexts/index.d.ts +2 -0
  421. package/dist/components/Select/contexts/select.context.d.ts +21 -0
  422. package/dist/components/Select/contexts/select.hook.d.ts +2 -0
  423. package/dist/components/Select/contexts/select.provider.d.ts +10 -0
  424. package/dist/components/Select/hooks/useNavigationList.d.ts +11 -0
  425. package/dist/components/Select/hooks/useSelect.d.ts +15 -0
  426. package/dist/components/Sidebar/Sidebar.d.ts +28 -0
  427. package/dist/components/Sidebar/Sidebar.types.d.ts +54 -0
  428. package/dist/components/Sidebar/Sidebar.variants.d.ts +2 -0
  429. package/dist/components/Sidebar/components/Footer/Footer.d.ts +4 -0
  430. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +6 -0
  431. package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +1 -0
  432. package/dist/components/Sidebar/components/Logo/Logo.d.ts +4 -0
  433. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +6 -0
  434. package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +1 -0
  435. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +4 -0
  436. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +16 -0
  437. package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +1 -0
  438. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +4 -0
  439. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +8 -0
  440. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +1 -0
  441. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +4 -0
  442. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +17 -0
  443. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +3 -0
  444. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +4 -0
  445. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +5 -0
  446. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +1 -0
  447. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +4 -0
  448. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +8 -0
  449. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +1 -0
  450. package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +4 -0
  451. package/dist/components/Sidebar/components/index.d.ts +15 -0
  452. package/dist/components/Slider/Slider.d.ts +21 -0
  453. package/dist/components/Slider/Slider.types.d.ts +40 -0
  454. package/dist/components/Slider/Slider.variants.d.ts +7 -0
  455. package/dist/components/Stepper/Stepper.d.ts +51 -0
  456. package/dist/components/Stepper/Stepper.js +71 -0
  457. package/dist/components/Stepper/Stepper.types.d.ts +73 -0
  458. package/dist/components/Stepper/Stepper.variants.d.ts +40 -0
  459. package/dist/components/Stepper/Stepper.variants.js +278 -0
  460. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.d.ts +3 -0
  461. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +195 -0
  462. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.types.d.ts +1 -0
  463. package/dist/components/Stepper/components/StepConnector/StepConnector.d.ts +3 -0
  464. package/dist/components/Stepper/components/StepConnector/StepConnector.js +28 -0
  465. package/dist/components/Stepper/components/StepConnector/StepConnector.types.d.ts +13 -0
  466. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.d.ts +3 -0
  467. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +29 -0
  468. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.types.d.ts +13 -0
  469. package/dist/components/Stepper/components/StepItem/StepItem.d.ts +3 -0
  470. package/dist/components/Stepper/components/StepItem/StepItem.js +7 -0
  471. package/dist/components/Stepper/components/StepItem/StepItem.types.d.ts +32 -0
  472. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.d.ts +3 -0
  473. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +109 -0
  474. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.types.d.ts +1 -0
  475. package/dist/components/Switch/Switch.d.ts +29 -0
  476. package/dist/components/Switch/Switch.types.d.ts +41 -0
  477. package/dist/components/Switch/Switch.variants.d.ts +2 -0
  478. package/dist/components/Table/Table.d.ts +38 -0
  479. package/dist/components/Table/Table.types.d.ts +57 -0
  480. package/dist/components/Table/Table.variants.d.ts +6 -0
  481. package/dist/components/Table/components/Body.d.ts +3 -0
  482. package/dist/components/Table/components/Filter.d.ts +3 -0
  483. package/dist/components/Table/components/Head.d.ts +3 -0
  484. package/dist/components/Table/components/Row.d.ts +3 -0
  485. package/dist/components/Table/components/index.d.ts +4 -0
  486. package/dist/components/Tabs/Tabs.d.ts +37 -0
  487. package/dist/components/Tabs/Tabs.types.d.ts +42 -0
  488. package/dist/components/Tabs/Tabs.variants.d.ts +12 -0
  489. package/dist/components/Tabs/components/Content.d.ts +4 -0
  490. package/dist/components/Tabs/components/List.d.ts +4 -0
  491. package/dist/components/Tabs/components/Trigger.d.ts +4 -0
  492. package/dist/components/Tabs/components/index.d.ts +3 -0
  493. package/dist/components/Tag/Tag.d.ts +16 -0
  494. package/dist/components/Tag/Tag.types.d.ts +33 -0
  495. package/dist/components/Tag/Tag.variants.d.ts +3 -0
  496. package/dist/components/TagSelect/TagSelect.d.ts +23 -0
  497. package/dist/components/TagSelect/TagSelect.types.d.ts +37 -0
  498. package/dist/components/TagSelect/TagSelect.variants.d.ts +3 -0
  499. package/dist/components/TagSelect/components/Item/Item.d.ts +3 -0
  500. package/dist/components/TagSelect/components/Item/Item.types.d.ts +6 -0
  501. package/dist/components/TagSelect/components/Item/Item.variants.d.ts +3 -0
  502. package/dist/components/TagSelect/components/List/List.d.ts +3 -0
  503. package/dist/components/TagSelect/components/List/List.types.d.ts +4 -0
  504. package/dist/components/TagSelect/components/List/List.variants.d.ts +1 -0
  505. package/dist/components/TagSelect/components/Wrapper/Wrapper.d.ts +3 -0
  506. package/dist/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +7 -0
  507. package/dist/components/TagSelect/components/index.d.ts +3 -0
  508. package/dist/components/TagSelect/contexts/TagSelect.context.d.ts +2 -0
  509. package/dist/components/TagSelect/contexts/TagSelect.hook.d.ts +1 -0
  510. package/dist/components/TagSelect/contexts/TagSelect.provider.d.ts +3 -0
  511. package/dist/components/TagSelect/contexts/TagSelect.types.d.ts +15 -0
  512. package/dist/components/TagSelect/contexts/index.d.ts +2 -0
  513. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +4 -0
  514. package/dist/components/TextArea/TextArea.d.ts +24 -0
  515. package/dist/components/TextArea/TextArea.types.d.ts +26 -0
  516. package/dist/components/TextArea/TextArea.variants.d.ts +1 -0
  517. package/dist/components/TimePicker/TimePicker.d.ts +21 -0
  518. package/dist/components/TimePicker/TimePicker.js +12 -5
  519. package/dist/components/TimePicker/TimePicker.types.d.ts +53 -0
  520. package/dist/components/TimePicker/TimePicker.variants.d.ts +4 -0
  521. package/dist/components/TimePicker/TimePicker.variants.js +18 -20
  522. package/dist/components/TimePicker/components/HoursList/HoursList.d.ts +4 -0
  523. package/dist/components/TimePicker/components/HoursList/HoursList.js +104 -67
  524. package/dist/components/TimePicker/components/HoursList/HoursList.types.d.ts +8 -0
  525. package/dist/components/TimePicker/components/MeridianList/MeridianList.d.ts +4 -0
  526. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +43 -29
  527. package/dist/components/TimePicker/components/MeridianList/MeridianList.types.d.ts +7 -0
  528. package/dist/components/TimePicker/components/MinutesList/MinutesList.d.ts +4 -0
  529. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +82 -39
  530. package/dist/components/TimePicker/components/MinutesList/MinutesList.types.d.ts +9 -0
  531. package/dist/components/TimePicker/components/Wrapper/Wrapper.d.ts +3 -0
  532. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +180 -62
  533. package/dist/components/TimePicker/components/Wrapper/Wrapper.types.d.ts +6 -0
  534. package/dist/components/TimePicker/components/WrapperList/WrapperList.d.ts +3 -0
  535. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +42 -23
  536. package/dist/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +9 -0
  537. package/dist/components/TimePicker/components/index.d.ts +1 -0
  538. package/dist/components/TimePicker/contexts/index.d.ts +3 -0
  539. package/dist/components/TimePicker/contexts/time-picker.context.d.ts +15 -0
  540. package/dist/components/TimePicker/contexts/time-picker.context.js +8 -1
  541. package/dist/components/TimePicker/contexts/time-picker.hook.d.ts +2 -0
  542. package/dist/components/TimePicker/contexts/time-picker.provider.d.ts +7 -0
  543. package/dist/components/TimePicker/contexts/time-picker.provider.js +51 -36
  544. package/dist/components/TimePicker/utils/index.d.ts +8 -0
  545. package/dist/components/TimePicker/utils/index.js +29 -4
  546. package/dist/components/Toast/Toast.d.ts +25 -0
  547. package/dist/components/Toast/Toast.types.d.ts +46 -0
  548. package/dist/components/Toast/Toast.variants.d.ts +5 -0
  549. package/dist/components/Tooltip/Tooltip.d.ts +27 -0
  550. package/dist/components/Tooltip/Tooltip.types.d.ts +28 -0
  551. package/dist/components/Tooltip/Tooltip.variants.d.ts +6 -0
  552. package/dist/components/Tooltip/hooks/useTooltip.d.ts +4 -0
  553. package/dist/components/Typography/Typography.d.ts +18 -0
  554. package/dist/components/Typography/Typography.types.d.ts +29 -0
  555. package/dist/components/Typography/Typography.variants.d.ts +3 -0
  556. package/dist/components/Typography/Typography.variants.js +6 -1
  557. package/dist/components/VirtualizedTable/VirtualizedTable.d.ts +11 -0
  558. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +108 -0
  559. package/dist/components/VirtualizedTable/VirtualizedTable.variants.d.ts +1 -0
  560. package/dist/components/VirtualizedTable/assets/chevron-down.d.ts +6 -0
  561. package/dist/components/VirtualizedTable/assets/chevron-up.d.ts +6 -0
  562. package/dist/components/VirtualizedTable/assets/index.d.ts +3 -0
  563. package/dist/components/VirtualizedTable/components/Actions/Actions.d.ts +3 -0
  564. package/dist/components/VirtualizedTable/components/Actions/Actions.js +1 -1
  565. package/dist/components/VirtualizedTable/components/Actions/Actions.types.d.ts +24 -0
  566. package/dist/components/VirtualizedTable/components/Body/Body.d.ts +3 -0
  567. package/dist/components/VirtualizedTable/components/Body/Body.types.d.ts +5 -0
  568. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.d.ts +1 -0
  569. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +1 -1
  570. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.d.ts +3 -0
  571. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +3 -0
  572. package/dist/components/VirtualizedTable/components/Filter/Filter.d.ts +3 -0
  573. package/dist/components/VirtualizedTable/components/Filter/Filter.js +1 -1
  574. package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +16 -0
  575. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.d.ts +1 -0
  576. package/dist/components/VirtualizedTable/components/Header/Header.d.ts +3 -0
  577. package/dist/components/VirtualizedTable/components/Header/Header.types.d.ts +5 -0
  578. package/dist/components/VirtualizedTable/components/Pagination/Pagination.d.ts +3 -0
  579. package/dist/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +9 -0
  580. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.d.ts +2 -0
  581. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
  582. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.types.d.ts +5 -0
  583. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -0
  584. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  585. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +5 -0
  586. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.d.ts +3 -0
  587. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.types.d.ts +6 -0
  588. package/dist/components/VirtualizedTable/components/index.d.ts +7 -0
  589. package/dist/components/VirtualizedTable/constants/index.d.ts +1 -0
  590. package/dist/components/VirtualizedTable/constants/pagination.d.ts +2 -0
  591. package/dist/components/VirtualizedTable/contexts/index.d.ts +3 -0
  592. package/dist/components/VirtualizedTable/contexts/table.context.d.ts +22 -0
  593. package/dist/components/VirtualizedTable/contexts/table.hook.d.ts +3 -0
  594. package/dist/components/VirtualizedTable/contexts/table.provider.d.ts +17 -0
  595. package/dist/components/index.d.ts +48 -0
  596. package/dist/components/index.js +113 -96
  597. package/dist/contexts/index.d.ts +3 -0
  598. package/dist/contexts/theme.context.d.ts +6 -0
  599. package/dist/contexts/theme.hook.d.ts +7 -0
  600. package/dist/contexts/theme.provider.d.ts +38 -0
  601. package/dist/{createLucideIcon-D4r5Phnh.js → createLucideIcon-CP-mMPfa.js} +15 -10
  602. package/dist/debounce-DJveWHr_.js +114 -0
  603. package/dist/domain/theme.d.ts +1 -0
  604. package/dist/{ellipsis-vertical-BVPtjl5f.js → ellipsis-vertical-Cl3yNtOy.js} +1 -1
  605. package/dist/hooks/index.d.ts +1 -0
  606. package/dist/hooks/useToggle.d.ts +1 -0
  607. package/dist/icons.d.ts +1 -0
  608. package/dist/icons.js +24 -0
  609. package/dist/index.d.ts +4 -2995
  610. package/dist/index.js +131 -114
  611. package/dist/isObject-9XxUefZH.js +97 -0
  612. package/dist/{libphonenumber-FTwQ9nyV.js → libphonenumber-C9G59k5J.js} +721 -689
  613. package/dist/package.json +33 -16
  614. package/dist/proxy-Drz23HDt.js +4800 -0
  615. package/dist/styles.css +1 -1
  616. package/dist/styles.d.ts +0 -0
  617. package/dist/useBreadcrumb-vSs0pRo3.js +1412 -0
  618. package/dist/utils/index.d.ts +4 -0
  619. package/dist/{x-BXShoIAM.js → x-B9bYxG31.js} +1 -1
  620. package/package.json +33 -16
  621. package/dist/debounce-BFejQm9P.js +0 -200
  622. package/dist/loader-juvMSJ9L.js +0 -5
  623. package/dist/useBreadcrumb-BAHbGQ_O.js +0 -1263
  624. /package/dist/{DatePicker.css → style.css} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,2995 +1,4 @@
1
- import { AlertDialogProps as AlertDialogProps_2 } from '@radix-ui/react-alert-dialog';
2
- import { ButtonHTMLAttributes } from 'react';
3
- import { CellContext } from '@tanstack/react-table';
4
- import { ChangeEvent } from 'react';
5
- import { CheckboxProps as CheckboxProps_2 } from '@radix-ui/react-checkbox';
6
- import { ClassProp } from 'class-variance-authority/types';
7
- import { ClassValue } from 'clsx';
8
- import { ColumnDef as ColumnDef_2 } from '@tanstack/react-table';
9
- import { ComponentRef } from 'react';
10
- import { Context } from 'react';
11
- import { DayPickerProps } from 'react-day-picker';
12
- import { FC } from 'react';
13
- import { ForwardRefExoticComponent } from 'react';
14
- import { getAllTimezones } from 'countries-and-timezones';
15
- import { HTMLAttributes } from 'react';
16
- import { HtmlHTMLAttributes } from 'react';
17
- import { InputHTMLAttributes } from 'react';
18
- import { JSX } from 'react/jsx-runtime';
19
- import { JSX as JSX_2 } from 'react';
20
- import { PropsWithChildren } from 'react';
21
- import { ReactNode } from 'react';
22
- import * as ReactTabs from '@radix-ui/react-tabs';
23
- import { Ref } from 'react';
24
- import { RefAttributes } from 'react';
25
- import { RegionCode } from 'google-libphonenumber';
26
- import { RowData as RowData_2 } from '@tanstack/react-table';
27
- import { SliderProps } from '@radix-ui/react-slider';
28
- import { TabsContentProps } from '@radix-ui/react-tabs';
29
- import { UseQueryOptions } from '@tanstack/react-query';
30
- import { VariantProps } from 'class-variance-authority';
31
-
32
- declare type Action<TData> = {
33
- className?: string;
34
- id?: string;
35
- onClick: (rowData: TData) => void;
36
- } & ({
37
- component: FC;
38
- label?: string | ReactNode;
39
- componentProps?: Record<string, unknown>;
40
- } | {
41
- component?: undefined;
42
- label: string | ReactNode;
43
- componentProps?: never;
44
- });
45
-
46
- /**
47
- * An alert component for displaying feedback messages.
48
- * Supports success, error, warning, and info variants with optional dismiss button.
49
- *
50
- * @example
51
- * ```tsx
52
- * // Success alert
53
- * <Alert type="success" content="Changes saved successfully!" />
54
- *
55
- * // Error alert with close button
56
- * <Alert
57
- * type="error"
58
- * content="Failed to save changes. Please try again."
59
- * showCloseButton
60
- * />
61
- *
62
- * // Warning alert with custom content
63
- * <Alert
64
- * type="warning"
65
- * content={
66
- * <div>
67
- * <strong>Warning:</strong> This action cannot be undone.
68
- * </div>
69
- * }
70
- * />
71
- * ```
72
- *
73
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-alert--docs Storybook}
74
- */
75
- export declare const Alert: FC<AlertProps>;
76
-
77
- /**
78
- * A confirmation dialog component built on Radix UI AlertDialog.
79
- * Includes a trigger button that opens a modal with title, description, and action buttons.
80
- *
81
- * @example
82
- * ```tsx
83
- * // Basic confirmation dialog
84
- * <AlertDialog
85
- * buttonTriggerText="Delete Item"
86
- * title="Confirm Deletion"
87
- * description="This action cannot be undone."
88
- * onConfirm={() => deleteItem()}
89
- * />
90
- *
91
- * // Danger variant with custom button text
92
- * <AlertDialog
93
- * buttonTriggerText="Remove"
94
- * buttonTriggerVariant="danger"
95
- * title="Remove User"
96
- * description="Are you sure you want to remove this user?"
97
- * buttonConfirm={{ text: "Yes, Remove" }}
98
- * buttonCancel={{ text: "No, Keep" }}
99
- * onConfirm={() => removeUser()}
100
- * />
101
- * ```
102
- *
103
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-alertdialog--docs Storybook}
104
- */
105
- export declare const AlertDialog: FC<AlertDialogProps>;
106
-
107
- /**
108
- * Props for the AlertDialog component.
109
- *
110
- * @example
111
- * ```tsx
112
- * <AlertDialog
113
- * buttonTriggerText="Delete"
114
- * buttonTriggerVariant="danger"
115
- * title="Confirm Deletion"
116
- * description="Are you sure you want to delete this item?"
117
- * onConfirm={() => handleDelete()}
118
- * />
119
- * ```
120
- */
121
- declare interface AlertDialogProps extends PropsWithChildren, AlertDialogProps_2 {
122
- /** Cancel button props (className, text, etc.) */
123
- buttonCancel?: ButtonCancelProps;
124
- /** Confirm button props (className, text, etc.) */
125
- buttonConfirm?: ButtonConfirmProps;
126
- /** Text for the trigger button */
127
- buttonTriggerText?: string;
128
- /** CSS classes for the trigger button */
129
- buttonTriggerClassName?: string;
130
- /** Variant for the trigger button */
131
- buttonTriggerVariant?: ButtonProps['variant'];
132
- /** Additional CSS classes */
133
- className?: string;
134
- /** Description text shown in the dialog */
135
- description?: string | ReactNode;
136
- isDescriptionChild?: boolean;
137
- /** Whether to show the cancel button (default: true) */
138
- showCancelButton?: boolean;
139
- /** Theme override for this component */
140
- theme?: Theme;
141
- /** Title text shown in the dialog */
142
- title?: string | ReactNode;
143
- isTitleChild?: boolean;
144
- /** CSS classes for the dialog wrapper */
145
- wrapperClassName?: string;
146
- /** Callback when confirm button is clicked */
147
- onConfirm?: VoidFunction;
148
- /** Callback when the button is clicked */
149
- onClick?: VoidFunction;
150
- }
151
-
152
- /**
153
- * Props for the Alert component.
154
- *
155
- * @example
156
- * ```tsx
157
- * <Alert type="success" content="Operation completed successfully!" />
158
- * <Alert type="error" content="Something went wrong" showCloseButton />
159
- * <Alert type="warning" content={<span>Warning: <strong>Action required</strong></span>} />
160
- * ```
161
- */
162
- declare interface AlertProps extends VariantProps<typeof alertVariants> {
163
- /** Whether the alert can be dismissed (deprecated, use showCloseButton) */
164
- dismissible?: boolean;
165
- /** Alert message content (string or ReactNode) */
166
- content: string | ReactNode;
167
- /** Whether the alert is visible */
168
- isVisible?: boolean;
169
- /** Show close button to dismiss alert */
170
- showCloseButton?: boolean;
171
- /** Theme override for this component */
172
- theme?: Theme;
173
- }
174
-
175
- declare const alertVariants: (props?: ({
176
- type?: "sucess" | "info" | "warning" | "danger" | null | undefined;
177
- isVisible?: boolean | null | undefined;
178
- } & ClassProp) | undefined) => string;
179
-
180
- /**
181
- * An autocomplete/typeahead input component that suggests options as you type.
182
- *
183
- * @example
184
- * ```tsx
185
- * // Basic autocomplete
186
- * <Autocomplete
187
- * label="Programming Language"
188
- * options={[
189
- * { value: 'JavaScript' },
190
- * { value: 'TypeScript' },
191
- * { value: 'Python' },
192
- * ]}
193
- * placeholder="Type to search..."
194
- * onChange={(value) => setLanguage(value)}
195
- * />
196
- *
197
- * // With custom empty state
198
- * <Autocomplete
199
- * options={users}
200
- * placeholder="Search users..."
201
- * placeHolderEmptyValues="No users found"
202
- * onChange={handleUserSelect}
203
- * />
204
- * ```
205
- *
206
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-autocomplete--docs Storybook}
207
- */
208
- export declare const Autocomplete: ForwardRefExoticComponent<AutocompleteProps & RefAttributes<HTMLInputElement>>;
209
-
210
- /**
211
- * Props for the Autocomplete component.
212
- *
213
- * @example
214
- * ```tsx
215
- * <Autocomplete
216
- * label="Search"
217
- * options={[{ value: 'React' }, { value: 'Vue' }, { value: 'Angular' }]}
218
- * placeholder="Search frameworks..."
219
- * onChange={(value) => console.log(value)}
220
- * />
221
- * ```
222
- */
223
- declare interface AutocompleteProps extends VariantProps<typeof autocompleteVariants> {
224
- /** Disable browser autocomplete (default: 'off') */
225
- autoComplete?: 'off';
226
- /** Additional CSS classes */
227
- className?: string;
228
- /** Label displayed above the input */
229
- label?: string;
230
- /** CSS classes for the label */
231
- labelClassName?: string;
232
- /** Form field name */
233
- name?: string;
234
- /** Array of options to suggest */
235
- options: Option_3[];
236
- /** Placeholder text */
237
- placeholder?: string;
238
- /** Text shown when no options match */
239
- placeHolderEmptyValues?: string | ReactNode;
240
- /** CSS classes for empty state text */
241
- placeHolderEmptyValuesClassName?: string;
242
- /** Theme override for this component */
243
- theme?: Theme;
244
- /** Callback when a value is selected */
245
- onChange(value: string): void;
246
- }
247
-
248
- declare const autocompleteVariants: (props?: ClassProp | undefined) => string;
249
-
250
- /**
251
- * A badge/tag component for status indicators and labels.
252
- * Supports multiple variants, icons, loading state, and dismissible mode.
253
- *
254
- * @example
255
- * ```tsx
256
- * // Basic badge
257
- * <Badge label="Active" variant="success" />
258
- *
259
- * // Badge with icon
260
- * <Badge label="Settings" leftIcon={<SettingsIcon />} />
261
- *
262
- * // Dismissible badge
263
- * <Badge
264
- * label="Tag"
265
- * dismissible
266
- * onDismiss={() => removeTag()}
267
- * />
268
- *
269
- * // Clickable badge
270
- * <Badge
271
- * label="Filter"
272
- * onClick={() => applyFilter()}
273
- * />
274
- *
275
- * // Loading badge
276
- * <Badge label="Processing" loading />
277
- * ```
278
- *
279
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-badge--docs Storybook}
280
- */
281
- export declare const Badge: FC<BadgeProps>;
282
-
283
- export declare const BadgeMultiSelect: FC<BadgeMultiSelectProps>;
284
-
285
- declare type BadgeMultiSelectProps = {
286
- label: string;
287
- options: Option_5[];
288
- position?: 'left' | 'right';
289
- onApply?: (selectedOptions: Option_5[]) => void;
290
- };
291
-
292
- /**
293
- * Props for the Badge component.
294
- *
295
- * @example
296
- * ```tsx
297
- * <Badge label="New" variant="success" />
298
- * <Badge label="Pending" variant="warning" />
299
- * <Badge label="Error" variant="error" dismissible onDismiss={() => {}} />
300
- * <Badge label="With Icon" leftIcon={<Icon />} />
301
- * ```
302
- */
303
- declare type BadgeProps = VariantProps<typeof badgeVariants> & {
304
- /** Additional CSS classes */
305
- className?: string;
306
- /** Show dismiss button */
307
- dismissible?: true;
308
- /** Allow text selection (default: true) */
309
- isSelectable?: boolean;
310
- /** Badge text content */
311
- label: string;
312
- /** Icon displayed on the left */
313
- leftIcon?: ReactNode;
314
- /** Show loading spinner */
315
- loading?: boolean;
316
- /** Icon displayed on the right (when not dismissible) */
317
- rightIcon?: ReactNode;
318
- /** Click handler (makes badge interactive) */
319
- onClick?: VoidFunction;
320
- /** Callback when dismiss button clicked */
321
- onDismiss?: VoidFunction;
322
- };
323
-
324
- declare const badgeVariants: (props?: ({
325
- variant?: "info" | "warning" | "danger" | "default" | "success" | "violet" | "orange" | null | undefined;
326
- size?: "default" | null | undefined;
327
- } & ClassProp) | undefined) => string;
328
-
329
- /**
330
- * Props for Table.Body component.
331
- */
332
- declare interface BodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, PropsWithChildren, VariantProps<typeof bodyVariants> {
333
- }
334
-
335
- declare const bodyVariants: (props?: ClassProp | undefined) => string;
336
-
337
- /**
338
- * A breadcrumb navigation component showing the current location in a hierarchy.
339
- *
340
- * @example
341
- * ```tsx
342
- * // Basic breadcrumb
343
- * <Breadcrumb
344
- * steps={[
345
- * { label: 'Home', to: '/' },
346
- * { label: 'Settings', to: '/settings' },
347
- * { label: 'Profile', isActive: true },
348
- * ]}
349
- * />
350
- *
351
- * // With custom Link component (e.g., react-router)
352
- * <Breadcrumb
353
- * steps={[
354
- * { label: 'Dashboard', to: '/dashboard', component: Link },
355
- * { label: 'Users', to: '/users', component: Link },
356
- * { label: 'Edit User', isActive: true },
357
- * ]}
358
- * />
359
- * ```
360
- *
361
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-breadcrumb--docs Storybook}
362
- */
363
- export declare const Breadcrumb: FC<BreadcrumbProps>;
364
-
365
- /**
366
- * Props for the Breadcrumb component.
367
- *
368
- * @example
369
- * ```tsx
370
- * <Breadcrumb
371
- * steps={[
372
- * { label: 'Home', to: '/' },
373
- * { label: 'Products', to: '/products' },
374
- * { label: 'Current Page', isActive: true },
375
- * ]}
376
- * />
377
- * ```
378
- */
379
- declare interface BreadcrumbProps extends VariantProps<typeof breadcrumbVariants>, HTMLAttributes<HTMLOListElement> {
380
- /** Array of breadcrumb steps */
381
- steps: Step[];
382
- /** CSS classes for the nav wrapper */
383
- wrapperClassName?: string;
384
- /** Theme override for this component */
385
- theme?: Theme;
386
- }
387
-
388
- declare const breadcrumbVariants: (props?: ClassProp | undefined) => string;
389
-
390
- /**
391
- * A customizable button component with multiple variants and styles.
392
- *
393
- * @example
394
- * ```tsx
395
- * // Primary button (default)
396
- * <Button>Click me</Button>
397
- *
398
- * // Secondary button
399
- * <Button variant="secondary">Secondary</Button>
400
- *
401
- * // Danger button
402
- * <Button variant="danger">Delete</Button>
403
- *
404
- * // Link style button
405
- * <Button variant="link">Learn more</Button>
406
- *
407
- * // Circle icon button
408
- * <Button shape="circle" size="large"><Icon /></Button>
409
- *
410
- * // Compact button
411
- * <Button appearance="compact">Compact</Button>
412
- *
413
- * // As child (renders child element with button styles)
414
- * <Button asChild><a href="/page">Link</a></Button>
415
- * ```
416
- *
417
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-button--docs Storybook}
418
- */
419
- export declare const Button: FC<ButtonProps>;
420
-
421
- declare type ButtonBaseProps = Partial<ButtonProps> & {
422
- className?: string;
423
- text?: string;
424
- };
425
-
426
- declare type ButtonCancelProps = ButtonBaseProps;
427
-
428
- declare type ButtonConfirmProps = ButtonBaseProps;
429
-
430
- /**
431
- * Props for the Button component.
432
- *
433
- * @example
434
- * ```tsx
435
- * <Button variant="primary">Click me</Button>
436
- * <Button variant="secondary" disabled>Disabled</Button>
437
- * <Button variant="danger" shape="circle"><TrashIcon /></Button>
438
- * ```
439
- */
440
- declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'>, VariantProps<typeof buttonVariants> {
441
- /** Ref to the underlying button element */
442
- ref?: Ref<HTMLButtonElement>;
443
- /** Merge props onto child element instead of rendering a button */
444
- asChild?: boolean;
445
- /** Whether the button is disabled */
446
- disabled?: boolean;
447
- /** Theme override for this component */
448
- theme?: Theme;
449
- }
450
-
451
- declare const buttonVariants: (props?: ({
452
- variant?: "danger" | "link" | "primary" | "secondary" | "tertiary" | null | undefined;
453
- shape?: "circle" | null | undefined;
454
- version?: "default" | "alternate" | null | undefined;
455
- disabled?: boolean | null | undefined;
456
- size?: "medium" | "large" | null | undefined;
457
- appearance?: "compact" | null | undefined;
458
- } & ClassProp) | undefined) => string;
459
-
460
- /**
461
- * A container card component with optional hover and active states.
462
- *
463
- * @example
464
- * ```tsx
465
- * // Basic card
466
- * <Card>
467
- * <h3>Card Title</h3>
468
- * <p>Card content goes here</p>
469
- * </Card>
470
- *
471
- * // Hoverable card
472
- * <Card canHover onClick={handleClick}>
473
- * Hover to see effect
474
- * </Card>
475
- *
476
- * // Active/selected card
477
- * <Card isActive>
478
- * This card is selected
479
- * </Card>
480
- * ```
481
- *
482
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-card--docs Storybook}
483
- */
484
- export declare const Card: FC<CardProps>;
485
-
486
- /**
487
- * Props for the Card component.
488
- *
489
- * @example
490
- * ```tsx
491
- * <Card>Basic card content</Card>
492
- * <Card canHover>Hoverable card</Card>
493
- * <Card isActive>Active/selected card</Card>
494
- * ```
495
- */
496
- declare interface CardProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants>, PropsWithChildren {
497
- /** Enable hover effect */
498
- canHover?: boolean;
499
- /** Show active/selected state */
500
- isActive?: boolean;
501
- /** Theme override for this component */
502
- theme?: Theme;
503
- /** CSS classes for the outer wrapper */
504
- wrapperClassName?: string;
505
- }
506
-
507
- declare const cardVariants: (props?: ({
508
- isActive?: boolean | null | undefined;
509
- canHover?: boolean | null | undefined;
510
- } & ClassProp) | undefined) => string;
511
-
512
- /**
513
- * A checkbox component built on Radix UI primitives.
514
- * Supports controlled and uncontrolled modes with label support.
515
- *
516
- * @example
517
- * ```tsx
518
- * // Basic checkbox with label
519
- * <Checkbox label="Accept terms and conditions" />
520
- *
521
- * // Controlled checkbox
522
- * <Checkbox
523
- * label="Subscribe to newsletter"
524
- * defaultChecked={subscribed}
525
- * onChange={(checked) => setSubscribed(checked)}
526
- * />
527
- *
528
- * // Disabled checkbox
529
- * <Checkbox label="Premium feature" disabled />
530
- * ```
531
- *
532
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-checkbox--docs Storybook}
533
- */
534
- export declare const Checkbox: FC<CheckboxProps>;
535
-
536
- /**
537
- * Props for the Checkbox component.
538
- *
539
- * @example
540
- * ```tsx
541
- * <Checkbox label="Accept terms" onChange={(checked) => setAccepted(checked)} />
542
- * <Checkbox label="Remember me" defaultChecked />
543
- * <Checkbox label="Disabled option" disabled />
544
- * ```
545
- */
546
- declare interface CheckboxProps extends Omit<CheckboxProps_2, 'onChange'>, Omit<VariantProps<typeof checkboxVariants>, 'checked'> {
547
- /** ID of element that labels the checkbox for accessibility */
548
- ariaLabelledBy?: string;
549
- /** Additional CSS classes */
550
- className?: string;
551
- /** Initial checked state */
552
- defaultChecked?: boolean;
553
- /** Whether the checkbox is disabled */
554
- disabled?: boolean;
555
- /** HTML id attribute */
556
- id?: string;
557
- /** Label text displayed next to checkbox */
558
- label?: string;
559
- /** CSS classes for the label */
560
- labelClassName?: string;
561
- /** Form field name */
562
- name?: string;
563
- /** Theme override for this component */
564
- theme?: Theme;
565
- /** Callback when checked state changes */
566
- onChange?: (checked: boolean) => void;
567
- }
568
-
569
- declare const checkboxVariants: (props?: ({
570
- variant?: "default" | null | undefined;
571
- checked?: boolean | null | undefined;
572
- } & ClassProp) | undefined) => string;
573
-
574
- export declare const cn: (...inputs: ClassValue[]) => string;
575
-
576
- export declare type ColumnDef<TData extends RowData> = ColumnDef_2<TData, string>;
577
-
578
- export declare const Content: FC<TabsContentProps>;
579
-
580
- /**
581
- * A numeric input component with increment/decrement buttons.
582
- * Also exported as `NumberInput` for convenience.
583
- *
584
- * @example
585
- * ```tsx
586
- * // Basic counter
587
- * <Counter
588
- * label="Quantity"
589
- * value={count}
590
- * onChange={({ target }) => setCount(target.value)}
591
- * />
592
- *
593
- * // With min/max limits
594
- * <Counter
595
- * label="Number of nodes"
596
- * value={nodes}
597
- * min={1}
598
- * max={10}
599
- * onChange={({ target }) => setNodes(target.value)}
600
- * />
601
- *
602
- * // Disabled increment/decrement
603
- * <Counter
604
- * value={5}
605
- * canIncrement={value < max}
606
- * canDecrement={value > min}
607
- * onChange={handleChange}
608
- * />
609
- * ```
610
- *
611
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-counter--docs Storybook}
612
- */
613
- declare const Counter: FC<CounterProps>;
614
- export { Counter }
615
- export { Counter as NumberInput }
616
-
617
- /**
618
- * Props for the Counter (NumberInput) component.
619
- *
620
- * @example
621
- * ```tsx
622
- * <Counter
623
- * label="Quantity"
624
- * value={quantity}
625
- * min={1}
626
- * max={10}
627
- * onChange={({ target }) => setQuantity(target.value)}
628
- * />
629
- * ```
630
- */
631
- declare interface CounterProps extends VariantProps<typeof counterVariants> {
632
- /** Allow decrement button to be clicked */
633
- canDecrement?: boolean;
634
- /** Allow increment button to be clicked */
635
- canIncrement?: boolean;
636
- /** Additional CSS classes */
637
- className?: string;
638
- /** CSS classes for decrement button */
639
- decrementButtonClassName?: string;
640
- /** CSS classes for increment button */
641
- incrementButtonClassName?: string;
642
- /** Initial value (deprecated, use value) */
643
- init?: number;
644
- /** Show required indicator */
645
- isRequired?: boolean;
646
- /** Label displayed above the counter */
647
- label?: string;
648
- /** Maximum allowed value */
649
- max?: number;
650
- /** Minimum allowed value */
651
- min?: number;
652
- /** Form field name */
653
- name?: string;
654
- /** Theme override for this component */
655
- theme?: Theme;
656
- /** Current numeric value */
657
- value?: number;
658
- /** Callback when value changes */
659
- onChange?: ({ target: { value } }: {
660
- target: {
661
- value: number;
662
- };
663
- }) => void;
664
- }
665
-
666
- declare const counterVariants: (props?: ClassProp | undefined) => string;
667
-
668
- declare type CSSColor = `var(--${string})` | `rgb(${number}, ${number}, ${number})` | `rgba(${number}, ${number}, ${number}, ${number})` | `hsl(${number}, ${number}%, ${number}%)` | `hsla(${number}, ${number}%, ${number}%, ${number})`;
669
-
670
- export declare const DateFilterDropdown: FC<DateFilterDropdownProps>;
671
-
672
- declare type DateFilterDropdownProps = {
673
- label: string;
674
- position?: 'left' | 'right';
675
- onApply?: (date?: Date) => void;
676
- };
677
-
678
- /**
679
- * A date picker component built on react-day-picker.
680
- * Allows single date selection with calendar navigation.
681
- *
682
- * @example
683
- * ```tsx
684
- * // Basic date picker
685
- * <DatePicker
686
- * defaultSelected={new Date()}
687
- * onSelect={(date) => console.log(date)}
688
- * />
689
- *
690
- * // With custom styling
691
- * <DatePicker
692
- * defaultSelected={startDate}
693
- * onSelect={setStartDate}
694
- * monthsClassName="custom-months"
695
- * />
696
- * ```
697
- *
698
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-datepicker--docs Storybook}
699
- */
700
- export declare const DatePicker: FC<DatePickerProps>;
701
-
702
- /**
703
- * Props for the DatePicker component.
704
- *
705
- * @example
706
- * ```tsx
707
- * <DatePicker
708
- * defaultSelected={new Date()}
709
- * onSelect={(date) => setSelectedDate(date)}
710
- * />
711
- * ```
712
- */
713
- declare type DatePickerProps = Omit<DayPickerProps, 'mode'> & VariantProps<typeof datePickerVariants> & {
714
- /** CSS classes for the navigation arrows */
715
- arrowClassName?: string;
716
- /** CSS classes for the months container */
717
- monthsClassName?: string;
718
- /** Timezone for date display */
719
- timeZone?: TimeZone;
720
- /** Initial selected date */
721
- defaultSelected?: Date;
722
- /** Callback when a date is selected */
723
- onSelect?: (date: Date) => void;
724
- };
725
-
726
- declare const datePickerVariants: (props?: ClassProp | undefined) => string;
727
-
728
- /**
729
- * A horizontal divider/separator line.
730
- *
731
- * @example
732
- * ```tsx
733
- * <div>
734
- * <p>Section 1</p>
735
- * <Divider />
736
- * <p>Section 2</p>
737
- * </div>
738
- * ```
739
- *
740
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-divider--docs Storybook}
741
- */
742
- export declare const Divider: FC<HTMLAttributes<HTMLDivElement>>;
743
-
744
- /**
745
- * A button with an attached dropdown menu for selecting actions.
746
- * Closes automatically on outside click, Escape key, or tab visibility change.
747
- *
748
- * @example
749
- * ```tsx
750
- * <DropdownButton
751
- * options={[
752
- * { label: 'Download PDF', onClick: handlePdf },
753
- * { label: 'Download CSV', onClick: handleCsv },
754
- * ]}
755
- * buttonClassName="w-64"
756
- * />
757
- * ```
758
- *
759
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-dropdownbutton--docs Storybook}
760
- */
761
- export declare const DropdownButton: FC<Props>;
762
-
763
- /**
764
- * A compound component for building filter interfaces.
765
- * Includes sub-components for badge multi-select, date filtering, and reset actions.
766
- *
767
- * @example
768
- * ```tsx
769
- * <Filter theme="civo">
770
- * <Filter.BadgeMultiSelect
771
- * label="Status"
772
- * options={[
773
- * { id: 'active', label: 'Active', variant: 'success' },
774
- * { id: 'pending', label: 'Pending', variant: 'warning' },
775
- * ]}
776
- * selectedValues={selected}
777
- * onChange={setSelected}
778
- * />
779
- * <Filter.ResetButton onClick={() => setSelected([])} />
780
- * </Filter>
781
- * ```
782
- *
783
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-filter--docs Storybook}
784
- */
785
- export declare const Filter: FilterComponentProps;
786
-
787
- declare type FilterAction = {
788
- label: string;
789
- onClick: () => void;
790
- variant?: ButtonProps['variant'];
791
- };
792
-
793
- /**
794
- * Filter compound component type with sub-components.
795
- */
796
- declare type FilterComponentProps = FC<FilterProps> & {
797
- BadgeMultiSelect: FC<BadgeMultiSelectProps>;
798
- DateFilterDropdown: FC<DateFilterDropdownProps>;
799
- ResetButton: FC<ResetButtonProps>;
800
- };
801
-
802
- /**
803
- * Props for the Filter component.
804
- * A compound component for building filter interfaces.
805
- *
806
- * @example
807
- * ```tsx
808
- * <Filter theme="civo">
809
- * <Filter.BadgeMultiSelect
810
- * label="Status"
811
- * options={statusOptions}
812
- * selectedValues={selectedStatuses}
813
- * onChange={setSelectedStatuses}
814
- * />
815
- * <Filter.DateFilterDropdown
816
- * label="Date"
817
- * onDateChange={setDateRange}
818
- * />
819
- * <Filter.ResetButton onClick={resetFilters} />
820
- * </Filter>
821
- * ```
822
- */
823
- declare type FilterProps = VariantProps<typeof filterVariants> & PropsWithChildren & {
824
- /** Additional CSS classes for the filter wrapper */
825
- className?: string;
826
- /** Theme override for this component */
827
- theme?: Theme;
828
- };
829
-
830
- /**
831
- * Props for Table.Filter component.
832
- */
833
- declare interface FilterProps_2 extends React.InputHTMLAttributes<HTMLInputElement>, PropsWithChildren {
834
- /** Placeholder text for the filter input */
835
- placeholder?: string;
836
- }
837
-
838
- declare const filterVariants: (props?: ClassProp | undefined) => string;
839
-
840
- export declare const Footer: FC<FooterProps>;
841
-
842
- declare interface FooterProps extends PropsWithChildren, VariantProps<typeof footerVariants> {
843
- className?: string;
844
- }
845
-
846
- declare const footerVariants: (props?: ClassProp | undefined) => string;
847
-
848
- /** Valid HTML heading tags */
849
- declare type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
850
-
851
- /**
852
- * Props for Table.Head component.
853
- */
854
- declare interface HeadProps extends React.HTMLAttributes<HTMLTableSectionElement>, PropsWithChildren, VariantProps<typeof headVariants> {
855
- }
856
-
857
- declare const headVariants: (props?: ClassProp | undefined) => string;
858
-
859
- declare type HexColor = `#${string}`;
860
-
861
- /**
862
- * A file input component for uploading images with preview and validation.
863
- * Supports drag states, file type validation, size limits, and upload progress.
864
- *
865
- * @example
866
- * ```tsx
867
- * <ImageUpload
868
- * label="Profile Picture"
869
- * name="avatar"
870
- * accept="image/png,image/jpeg"
871
- * maxSize={5 * 1024 * 1024}
872
- * uploadButtonText="Choose image"
873
- * onChange={(e) => console.log(e.target.files?.[0])}
874
- * onRemove={() => setAvatar(null)}
875
- * />
876
- * ```
877
- *
878
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-imageupload--docs Storybook}
879
- */
880
- export declare const ImageUpload: {
881
- ({ className, error, fileName, fileSize, fileUrl, helperText, isRequired, label, labelClassName, name, onChange, onRemove, status, theme, uploadButtonText, accept, maxSize, }: ImageUploadProps): JSX.Element;
882
- displayName: string;
883
- };
884
-
885
- /**
886
- * Props for the ImageUpload component.
887
- * A file input for uploading images with preview, validation, and status states.
888
- *
889
- * @example
890
- * ```tsx
891
- * <ImageUpload
892
- * label="Logo"
893
- * name="logo"
894
- * accept="image/png,image/svg+xml"
895
- * maxSize={2 * 1024 * 1024}
896
- * onChange={(e) => handleUpload(e.target.files?.[0])}
897
- * onRemove={() => setLogo(null)}
898
- * isRequired
899
- * />
900
- * ```
901
- */
902
- declare interface ImageUploadProps extends Omit<VariantProps<typeof imageUploadVariants>, 'status'> {
903
- /** Additional CSS classes */
904
- className?: string;
905
- /** Error message to display */
906
- error?: string;
907
- /** Name of the uploaded file */
908
- fileName?: string;
909
- /** Formatted size of the uploaded file */
910
- fileSize?: string;
911
- /** URL or data URL of the uploaded file for preview */
912
- fileUrl?: string;
913
- /** Helper text displayed below the input */
914
- helperText?: string;
915
- /** Whether the field is required */
916
- isRequired?: boolean;
917
- /** Label displayed above the input */
918
- label?: string | ReactNode;
919
- /** Additional CSS classes for the label */
920
- labelClassName?: string;
921
- /** Form field name */
922
- name?: string;
923
- /** Callback fired when a file is selected */
924
- onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
925
- /** Callback fired when the uploaded file is removed */
926
- onRemove?: () => void;
927
- /** Current upload status */
928
- status?: ImageUploadStatusType;
929
- /** Theme override for this component */
930
- theme?: Theme;
931
- /** Text displayed on the upload button */
932
- uploadButtonText?: string;
933
- /** Accepted file MIME types (comma-separated) */
934
- accept?: string;
935
- /** Maximum file size in bytes */
936
- maxSize?: number;
937
- }
938
-
939
- /**
940
- * Upload status states for the ImageUpload component.
941
- */
942
- declare enum ImageUploadStatus {
943
- Default = "default",
944
- Uploading = "uploading",
945
- Complete = "complete",
946
- Error = "error"
947
- }
948
-
949
- declare type ImageUploadStatusType = ImageUploadStatus;
950
-
951
- declare const imageUploadVariants: (props?: ({
952
- status?: "error" | "default" | "uploading" | "complete" | null | undefined;
953
- } & ClassProp) | undefined) => string;
954
-
955
- /**
956
- * A text input component with label, error handling, and helper text support.
957
- * Includes built-in password visibility toggle and search icon variant.
958
- *
959
- * @example
960
- * ```tsx
961
- * // Basic input with label
962
- * <Input label="Email" placeholder="Enter your email" />
963
- *
964
- * // Required input with helper text
965
- * <Input
966
- * label="Username"
967
- * isRequired
968
- * helperText="Choose a unique username"
969
- * />
970
- *
971
- * // Input with error state
972
- * <Input
973
- * label="Email"
974
- * value={email}
975
- * error="Please enter a valid email address"
976
- * />
977
- *
978
- * // Password input (auto show/hide toggle)
979
- * <Input label="Password" type="password" />
980
- *
981
- * // Search input with icon
982
- * <Input placeholder="Search..." isSearch />
983
- * ```
984
- *
985
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-input--docs Storybook}
986
- */
987
- export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
988
-
989
- /**
990
- * Props for the Input component.
991
- *
992
- * @example
993
- * ```tsx
994
- * <Input label="Email" placeholder="Enter email" />
995
- * <Input label="Password" type="password" isRequired />
996
- * <Input error="Invalid email" helperText="We'll never share your email" />
997
- * ```
998
- */
999
- declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
1000
- /** Error message to display below the input */
1001
- error?: string;
1002
- /** Helper text displayed below the input when no error */
1003
- helperText?: string;
1004
- /** Additional CSS classes for the helper text */
1005
- helperTextClassName?: string;
1006
- /** Show required indicator (*) next to label */
1007
- isRequired?: boolean;
1008
- /** Show search icon inside the input */
1009
- isSearch?: boolean;
1010
- /** Label text or element displayed above the input */
1011
- label?: string | ReactNode;
1012
- /** Additional CSS classes for the label */
1013
- labelClassName?: string;
1014
- /** Theme override for this component */
1015
- theme?: Theme;
1016
- }
1017
-
1018
- declare const inputVariants: (props?: ({
1019
- variant?: "error" | "default" | null | undefined;
1020
- } & ClassProp) | undefined) => string;
1021
-
1022
- export declare const List: FC<ListProps>;
1023
-
1024
- /**
1025
- * Props for Tabs.List component.
1026
- */
1027
- declare interface ListProps extends React.HTMLAttributes<HTMLDivElement>, PropsWithChildren {
1028
- /** Tab list orientation */
1029
- orientation: 'horizontal' | 'vertical';
1030
- }
1031
-
1032
- /**
1033
- * A spinning loading indicator.
1034
- *
1035
- * @example
1036
- * ```tsx
1037
- * // Default loading spinner
1038
- * <Loading />
1039
- *
1040
- * // Custom size
1041
- * <Loading className="w-8 h-8" />
1042
- *
1043
- * // In a button
1044
- * <Button disabled>
1045
- * <Loading className="w-4 h-4 mr-2" />
1046
- * Loading...
1047
- * </Button>
1048
- * ```
1049
- *
1050
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-loading--docs Storybook}
1051
- */
1052
- export declare const Loading: FC<LoadingProps>;
1053
-
1054
- /**
1055
- * Props for the Loading component.
1056
- *
1057
- * @example
1058
- * ```tsx
1059
- * <Loading />
1060
- * <Loading className="w-8 h-8" />
1061
- * ```
1062
- */
1063
- declare type LoadingProps = InputHTMLAttributes<SVGSVGElement> & VariantProps<typeof loadingVariants> & {
1064
- /** Theme override for this component */
1065
- theme?: Theme;
1066
- };
1067
-
1068
- declare const loadingVariants: (props?: ClassProp | undefined) => string;
1069
-
1070
- export declare const Logo: FC<LogoProps>;
1071
-
1072
- declare interface LogoProps extends PropsWithChildren, VariantProps<typeof logoVariants> {
1073
- className?: string;
1074
- }
1075
-
1076
- declare const logoVariants: (props?: ClassProp | undefined) => string;
1077
-
1078
- /**
1079
- * A modal dialog component with Header, Body, and Footer sub-components.
1080
- * Supports keyboard navigation (Escape to close) and portals to document.body.
1081
- *
1082
- * @example
1083
- * ```tsx
1084
- * const [isOpen, setIsOpen] = useState(false);
1085
- *
1086
- * <Button onClick={() => setIsOpen(true)}>Open Modal</Button>
1087
- *
1088
- * <Modal isOpen={isOpen} onClose={() => setIsOpen(false)}>
1089
- * <Modal.Header>Confirm Action</Modal.Header>
1090
- * <Modal.Body>
1091
- * Are you sure you want to proceed?
1092
- * </Modal.Body>
1093
- * <Modal.Footer>
1094
- * <Button variant="secondary" onClick={() => setIsOpen(false)}>
1095
- * Cancel
1096
- * </Button>
1097
- * <Button onClick={handleConfirm}>Confirm</Button>
1098
- * </Modal.Footer>
1099
- * </Modal>
1100
- * ```
1101
- *
1102
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-modal--docs Storybook}
1103
- */
1104
- export declare const Modal: FC<ModalProps> & {
1105
- Header: FC<ModalChildProps>;
1106
- Body: FC<ModalChildProps>;
1107
- Footer: FC<ModalChildProps>;
1108
- };
1109
-
1110
- /**
1111
- * Props for Modal sub-components (Header, Body, Footer).
1112
- */
1113
- declare type ModalChildProps = {
1114
- /** Content of the modal section */
1115
- children: ReactNode;
1116
- /** Additional CSS classes */
1117
- className?: string;
1118
- /** Merge props onto child element */
1119
- asChild?: boolean;
1120
- };
1121
-
1122
- /**
1123
- * Props for the Modal component.
1124
- *
1125
- * @example
1126
- * ```tsx
1127
- * <Modal isOpen={isOpen} onClose={() => setIsOpen(false)}>
1128
- * <Modal.Header>Title</Modal.Header>
1129
- * <Modal.Body>Content</Modal.Body>
1130
- * <Modal.Footer>
1131
- * <Button onClick={() => setIsOpen(false)}>Close</Button>
1132
- * </Modal.Footer>
1133
- * </Modal>
1134
- * ```
1135
- */
1136
- declare interface ModalProps extends PropsWithChildren, VariantProps<typeof modalVariants> {
1137
- /** CSS classes for the close button */
1138
- buttonCloseClassName?: string;
1139
- /** Additional CSS classes for the modal */
1140
- className?: string;
1141
- /** DOM element to portal the modal into (defaults to document.body) */
1142
- container?: Element | DocumentFragment;
1143
- /** Whether the modal is open */
1144
- isOpen?: boolean;
1145
- /** Show the X close button in the corner */
1146
- showCloseButton?: boolean;
1147
- /** Theme override for this component */
1148
- theme?: Theme;
1149
- /** Callback when modal is closed (Escape key or close button) */
1150
- onClose?: () => void;
1151
- }
1152
-
1153
- declare const modalVariants: (props?: ClassProp | undefined) => string;
1154
-
1155
- /**
1156
- * A dropdown component for selecting one or multiple options with search functionality.
1157
- * Displays selected items as badges and supports loading states.
1158
- *
1159
- * @example
1160
- * ```tsx
1161
- * const [selected, setSelected] = useState<MultiSelectDropdownOption[]>([]);
1162
- *
1163
- * <MultiSelectDropdown
1164
- * label="Assign team members"
1165
- * placeholder="Search members..."
1166
- * options={teamMembers}
1167
- * value={selected}
1168
- * onChange={(e) => setSelected(e.target.value)}
1169
- * multiselect
1170
- * />
1171
- * ```
1172
- *
1173
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-multiselectdropdown--docs Storybook}
1174
- */
1175
- export declare const MultiSelectDropdown: FC<MultiSelectDropdownProps>;
1176
-
1177
- /**
1178
- * Configuration for a multi-select dropdown option.
1179
- */
1180
- declare type MultiSelectDropdownOption = {
1181
- /** Unique identifier for the option */
1182
- id: string | number;
1183
- /** Display label for the option */
1184
- label: string;
1185
- /** Optional badge text displayed next to the label */
1186
- badge?: string;
1187
- /** Optional value (defaults to label if not provided) */
1188
- value?: string;
1189
- };
1190
-
1191
- /**
1192
- * Props for the MultiSelectDropdown component.
1193
- * A dropdown that allows selecting one or multiple options with search.
1194
- *
1195
- * @example
1196
- * ```tsx
1197
- * <MultiSelectDropdown
1198
- * label="Select users"
1199
- * placeholder="Search users..."
1200
- * options={[
1201
- * { id: 1, label: 'John Doe', badge: 'Admin' },
1202
- * { id: 2, label: 'Jane Smith', badge: 'User' },
1203
- * ]}
1204
- * value={selectedUsers}
1205
- * onChange={(e) => setSelectedUsers(e.target.value)}
1206
- * multiselect
1207
- * />
1208
- * ```
1209
- */
1210
- declare interface MultiSelectDropdownProps extends VariantProps<typeof multiSelectDropdownVariants>, Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'onBlur'> {
1211
- /** Whether the dropdown is in a loading state */
1212
- isLoading?: boolean;
1213
- /** Whether the field is required */
1214
- isRequired?: boolean;
1215
- /** Label displayed above the dropdown */
1216
- label?: string;
1217
- /** Additional CSS classes for the label */
1218
- labelClassName?: string;
1219
- /** Whether multiple options can be selected */
1220
- multiselect?: boolean;
1221
- /** Form field name */
1222
- name?: string;
1223
- /** Text shown when no options match the search */
1224
- noOptionsText?: string;
1225
- /** Available options to select from */
1226
- options: MultiSelectDropdownOption[];
1227
- /** Placeholder text when no selection */
1228
- placeholder?: string;
1229
- /** Currently selected options */
1230
- value?: MultiSelectDropdownOption[];
1231
- /** Additional CSS classes for the wrapper */
1232
- wrapperClassName?: string;
1233
- /** Callback fired when selection changes */
1234
- onChange?: OnChangeFn_2;
1235
- /** Callback fired when the input loses focus */
1236
- onBlur?: OnBlurFn;
1237
- }
1238
-
1239
- declare const multiSelectDropdownVariants: (props?: ClassProp | undefined) => string;
1240
-
1241
- /**
1242
- * Configuration for a multi-select filter in the table.
1243
- */
1244
- declare type MultiSelectFilter = {
1245
- /** Unique key for the filter */
1246
- key: string;
1247
- /** Display label for the filter */
1248
- label: string;
1249
- /** Position of the filter dropdown */
1250
- position?: 'right' | 'left';
1251
- /** Available filter options */
1252
- options: Option_5[];
1253
- };
1254
-
1255
- export declare const Navigation: FC<NavigationProps> & NavigationChildrenProps;
1256
-
1257
- declare type NavigationChildrenProps = {
1258
- NavigationGroup: FC<NavigationGroupProps>;
1259
- NavigationOption: FC<NavigationOptionProps>;
1260
- NavigationSeparator: FC<NavigationSeparatorProps>;
1261
- NavigationTitle: FC<NavigationTitleProps>;
1262
- };
1263
-
1264
- export declare const NavigationGroup: FC<NavigationGroupProps>;
1265
-
1266
- declare interface NavigationGroupProps extends PropsWithChildren, VariantProps<typeof navigationGroupsVariants>, Pick<HtmlHTMLAttributes<HTMLDivElement>, 'className' | 'style'> {
1267
- title?: string;
1268
- titleClassName?: string;
1269
- isVisible?: boolean;
1270
- }
1271
-
1272
- declare const navigationGroupsVariants: (props?: ClassProp | undefined) => string;
1273
-
1274
- export declare const NavigationOption: FC<NavigationOptionProps>;
1275
-
1276
- declare type NavigationOption_2 = VariantProps<typeof navigationOptionVariants> & {
1277
- className?: string;
1278
- isVisible?: boolean;
1279
- isActive?: boolean;
1280
- };
1281
-
1282
- declare type NavigationOptionProps = NavigationOption_2 & ({
1283
- role: 'button';
1284
- children: ReactNode;
1285
- onClick: VoidFunction;
1286
- } | {
1287
- role?: never;
1288
- children: ReactNode;
1289
- });
1290
-
1291
- declare const navigationOptionVariants: (props?: ({
1292
- isActive?: boolean | null | undefined;
1293
- } & ClassProp) | undefined) => string;
1294
-
1295
- declare interface NavigationProps extends PropsWithChildren, VariantProps<typeof navigationVariants> {
1296
- className?: string;
1297
- }
1298
-
1299
- export declare const NavigationSeparator: FC<NavigationSeparatorProps>;
1300
-
1301
- declare interface NavigationSeparatorProps extends Pick<HTMLAttributes<HTMLDivElement>, 'className' | 'style'>, VariantProps<typeof navigationSeparatorVariant> {
1302
- }
1303
-
1304
- declare const navigationSeparatorVariant: (props?: ClassProp | undefined) => string;
1305
-
1306
- declare interface NavigationTitleProps extends VariantProps<typeof navigationTitleVariants>, Pick<HtmlHTMLAttributes<HTMLHeadingElement>, 'className'> {
1307
- title: string;
1308
- className?: string;
1309
- isVisible?: boolean;
1310
- }
1311
-
1312
- declare const navigationTitleVariants: (props?: ClassProp | undefined) => string;
1313
-
1314
- declare const navigationVariants: (props?: ClassProp | undefined) => string;
1315
-
1316
- declare type OnBlurFn = (event: {
1317
- target: HTMLInputElement | null;
1318
- type?: string;
1319
- }) => void;
1320
-
1321
- declare type OnChangeFn = (params: {
1322
- target: {
1323
- value: string;
1324
- name: string;
1325
- };
1326
- }) => void;
1327
-
1328
- declare type OnChangeFn_2 = (params: {
1329
- target: {
1330
- value: MultiSelectDropdownOption[];
1331
- name: string;
1332
- };
1333
- }) => void;
1334
-
1335
- /**
1336
- * Option type for Select dropdown items.
1337
- *
1338
- * @example
1339
- * ```tsx
1340
- * const options: Option[] = [
1341
- * { value: 'us', label: 'United States', leftIcon: <FlagUS /> },
1342
- * { value: 'uk', label: 'United Kingdom', subLabel: 'Europe' },
1343
- * ];
1344
- * ```
1345
- */
1346
- declare type Option_2 = {
1347
- /** Display text for the option */
1348
- label: string;
1349
- /** Secondary text displayed below the label */
1350
- subLabel?: string | ReactNode;
1351
- /** Icon displayed on the left side of the option */
1352
- leftIcon?: ReactNode | string;
1353
- /** CSS classes for the left icon */
1354
- leftIconClassName?: string;
1355
- /** Show right component when this option is selected */
1356
- showRightComponentOnselectedValue?: boolean;
1357
- /** Component displayed on the right side of the option */
1358
- rightComponent?: ReactNode | string;
1359
- /** CSS classes for the right component */
1360
- rightComponentClassName?: string;
1361
- /** CSS classes for wrapper when this option is selected */
1362
- wrapperClassNameOnSelectedValue?: string;
1363
- /** Unique value for the option */
1364
- value: string;
1365
- };
1366
-
1367
- /**
1368
- * Option type for Autocomplete suggestions.
1369
- */
1370
- declare type Option_3 = {
1371
- /** The value to display and select */
1372
- value: string;
1373
- };
1374
-
1375
- /**
1376
- * Configuration for a dropdown menu option.
1377
- */
1378
- declare type Option_4 = {
1379
- /** The text or element displayed for this option */
1380
- label: string | ReactNode;
1381
- /** Callback fired when this option is selected */
1382
- onClick?: VoidFunction;
1383
- };
1384
-
1385
- /**
1386
- * Configuration for a filter option.
1387
- */
1388
- declare type Option_5 = {
1389
- /** Unique identifier for the option */
1390
- id: string;
1391
- /** Display label for the option */
1392
- label: string;
1393
- /** Visual variant for the badge */
1394
- variant?: BadgeProps['variant'];
1395
- };
1396
-
1397
- /**
1398
- * A phone number input with country code selector and automatic formatting.
1399
- * Uses google-libphonenumber for validation and formatting.
1400
- *
1401
- * @example
1402
- * ```tsx
1403
- * <PhoneNumberInput
1404
- * label="Contact Number"
1405
- * name="contactPhone"
1406
- * defaultCountryCode="US"
1407
- * showFlagOnSearch
1408
- * showInputFilter
1409
- * isRequired
1410
- * />
1411
- * ```
1412
- *
1413
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-phonenumberinput--docs Storybook}
1414
- */
1415
- export declare const PhoneNumberInput: FC<Props_2>;
1416
-
1417
- /**
1418
- * A doughnut/pie chart component for data visualization.
1419
- * Built on Chart.js with support for center text labels.
1420
- *
1421
- * @example
1422
- * ```tsx
1423
- * <PieChart
1424
- * values={[25, 75]}
1425
- * colors={['#94a3b8', '#22c55e']}
1426
- * title="75%"
1427
- * subtitle="Progress"
1428
- * cutoutPercentage={80}
1429
- * />
1430
- * ```
1431
- *
1432
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-piechart--docs Storybook}
1433
- */
1434
- export declare const PieChart: FC<Props_3>;
1435
-
1436
- /**
1437
- * A progress bar component showing completion percentage.
1438
- *
1439
- * @example
1440
- * ```tsx
1441
- * // Basic progress bar
1442
- * <ProgressBar percent={50} />
1443
- *
1444
- * // With label
1445
- * <ProgressBar percent={75} label="Upload Progress" />
1446
- *
1447
- * // Completed state
1448
- * <ProgressBar percent={100} status="success" label="Complete" />
1449
- * ```
1450
- *
1451
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-progressbar--docs Storybook}
1452
- */
1453
- export declare const ProgressBar: FC<ProgressBarProps>;
1454
-
1455
- /**
1456
- * Props for the ProgressBar component.
1457
- *
1458
- * @example
1459
- * ```tsx
1460
- * <ProgressBar percent={75} label="Progress" />
1461
- * <ProgressBar percent={100} status="success" />
1462
- * ```
1463
- */
1464
- declare interface ProgressBarProps extends VariantProps<typeof progressBarVariants> {
1465
- /** CSS classes for the background bar */
1466
- backgroundBarClassName?: string;
1467
- /** Additional CSS classes */
1468
- className?: string;
1469
- /** Label text displayed above the progress bar */
1470
- label?: string;
1471
- /** CSS classes for the label */
1472
- labelClassName?: string;
1473
- /** CSS classes for the label wrapper */
1474
- labelWrapperClassName?: string;
1475
- /** Progress percentage (0-100) */
1476
- percent: number;
1477
- /** CSS classes for the percent text */
1478
- percentClassName?: string;
1479
- /** CSS classes for the progress bar fill */
1480
- progressBarClassName?: string;
1481
- /** Visual status of the progress bar */
1482
- status?: 'success' | 'progress';
1483
- /** Theme override for this component */
1484
- theme?: Theme;
1485
- /** CSS classes for the outer wrapper */
1486
- wrapperClassName?: string;
1487
- }
1488
-
1489
- declare const progressBarVariants: (props?: ClassProp | undefined) => string;
1490
-
1491
- /**
1492
- * Props for the DropdownButton component.
1493
- *
1494
- * @example
1495
- * ```tsx
1496
- * <DropdownButton
1497
- * options={[
1498
- * { label: 'PDF', onClick: () => downloadPdf() },
1499
- * { label: 'CSV', onClick: () => downloadCsv() },
1500
- * { label: 'Excel', onClick: () => downloadExcel() },
1501
- * ]}
1502
- * />
1503
- * ```
1504
- */
1505
- declare type Props = {
1506
- /** Additional CSS classes for the trigger button */
1507
- buttonClassName?: string;
1508
- /** Additional CSS classes for the wrapper container */
1509
- className?: string;
1510
- /** Additional CSS classes for each dropdown item */
1511
- itemClassName?: string;
1512
- /** Additional CSS classes for the dropdown list */
1513
- listClassName?: string;
1514
- /** Array of options to display in the dropdown */
1515
- options: Option_4[];
1516
- };
1517
-
1518
- /**
1519
- * Props for the PhoneNumberInput component.
1520
- * An input with country code selector and phone number formatting.
1521
- *
1522
- * @example
1523
- * ```tsx
1524
- * <PhoneNumberInput
1525
- * label="Phone Number"
1526
- * name="phone"
1527
- * defaultCountryCode="US"
1528
- * placeholder="Enter phone number"
1529
- * showFlagOnSearch
1530
- * />
1531
- * ```
1532
- */
1533
- declare type Props_2 = InputHTMLAttributes<HTMLInputElement> & {
1534
- /** Default country code for the selector (e.g., 'US', 'GB') */
1535
- defaultCountryCode?: RegionCode;
1536
- /** Whether the input is disabled */
1537
- disabled?: boolean;
1538
- /** Error message to display */
1539
- error?: string;
1540
- /** Helper text displayed below the input */
1541
- helperText?: string;
1542
- /** Additional CSS classes for the helper text */
1543
- helperTextClassName?: string;
1544
- /** Whether the field is required */
1545
- isRequired?: boolean;
1546
- /** Label displayed above the input */
1547
- label?: string;
1548
- /** Additional CSS classes for the label */
1549
- labelClassName?: string;
1550
- /** Form field name */
1551
- name?: string;
1552
- /** Placeholder text for the input */
1553
- placeholder?: string;
1554
- /** Whether to show country flags in the search dropdown */
1555
- showFlagOnSearch?: boolean;
1556
- /** Whether to show the country filter input */
1557
- showInputFilter?: boolean;
1558
- /** Whether to show country names in the search dropdown */
1559
- showNameOnSearch?: boolean;
1560
- /** Whether to show the placeholder text */
1561
- showPlaceHolder?: boolean;
1562
- /** Additional CSS classes for the wrapper */
1563
- wrapperClassName?: string;
1564
- };
1565
-
1566
- /**
1567
- * Props for the PieChart component.
1568
- * A doughnut/pie chart built on Chart.js for data visualization.
1569
- *
1570
- * @example
1571
- * ```tsx
1572
- * <PieChart
1573
- * values={[30, 70]}
1574
- * colors={['#ef4444', '#22c55e']}
1575
- * title="70%"
1576
- * subtitle="Complete"
1577
- * cutoutPercentage={75}
1578
- * />
1579
- * ```
1580
- */
1581
- declare type Props_3 = {
1582
- /**
1583
- * Array of hexadecimal colors for the borders of the pie chart segments
1584
- * @default ['#FFFFFF', '#FFFFFF']
1585
- */
1586
- borderColors?: HexColor[] | CSSColor[] | (HexColor | CSSColor)[];
1587
- /**
1588
- * Width of the border for pie chart segments in pixels
1589
- * @default 0
1590
- */
1591
- borderWidth?: number;
1592
- /**
1593
- * Array of hexadecimal colors for filling the pie chart segments
1594
- * @default ['#525252', '#00D492']
1595
- */
1596
- colors?: HexColor[] | CSSColor[] | (HexColor | CSSColor)[];
1597
- /**
1598
- * Percentage of the pie chart's center that should be cut out, creating a donut chart effect
1599
- * @default 80
1600
- */
1601
- cutoutPercentage?: number;
1602
- /**
1603
- * Whether to redraw the entire chart when props change
1604
- * @default true
1605
- */
1606
- redraw?: boolean;
1607
- /**
1608
- * Hexadecimal color for the subtitle text
1609
- * @default '#6B7280'
1610
- */
1611
- subtitleColor?: HexColor;
1612
- /**
1613
- * Font size for the subtitle in pixels
1614
- * @default 14
1615
- */
1616
- subtitleFontSize?: number;
1617
- /**
1618
- * Font weight for the subtitle
1619
- * @default 'normal'
1620
- */
1621
- subtitleFontWeight?: 'bold' | 'normal';
1622
- /**
1623
- * Hexadecimal color for the title text
1624
- * @default '#111827'
1625
- */
1626
- titleColor?: HexColor;
1627
- /**
1628
- * Font size for the title in pixels
1629
- * @default 16
1630
- */
1631
- titleFontSize?: number;
1632
- /**
1633
- * Font weight for the title
1634
- * @default 'bold'
1635
- */
1636
- titleFontWeight?: 'bold' | 'normal';
1637
- /**
1638
- * Array of numeric values representing data for each segment of the pie chart
1639
- * @required
1640
- */
1641
- values: number[];
1642
- } /**
1643
- * Union type that enforces either:
1644
- * - No title and no subtitle
1645
- * - Title with optional subtitle
1646
- */ & ({
1647
- title?: undefined;
1648
- subtitle?: never;
1649
- } | {
1650
- title: string;
1651
- subtitle?: string;
1652
- });
1653
-
1654
- declare type Props_4<TData extends RowData> = CellContext<TData, string> & {
1655
- value?: string;
1656
- };
1657
-
1658
- /**
1659
- * Props for the VirtualizedTable component.
1660
- * A feature-rich data table with filtering, pagination, and sorting.
1661
- *
1662
- * @example
1663
- * ```tsx
1664
- * <VirtualizedTable
1665
- * id="users-table"
1666
- * ariaLabel="Users list"
1667
- * columns={[
1668
- * { accessorKey: 'name', header: 'Name' },
1669
- * { accessorKey: 'email', header: 'Email' },
1670
- * ]}
1671
- * data={users}
1672
- * totalItems={totalUsers}
1673
- * showPagination
1674
- * showFilter
1675
- * showFilterInput
1676
- * filterSearchPlaceholder="Search users..."
1677
- * />
1678
- * ```
1679
- */
1680
- declare type Props_5<TData extends RowData_2> = VariantProps<typeof virtualizeTableVariants> & {
1681
- id: string | string[];
1682
- ariaLabel?: string;
1683
- columns: ColumnDef_2<TData, string>[];
1684
- data: TData[];
1685
- className?: string;
1686
- classNameHeaderActiveArrows?: string;
1687
- classNameHeaderArrows?: string;
1688
- classNameHeaderTable?: string;
1689
- classNameTable?: string;
1690
- classNameWrapperTable?: string;
1691
- queryOptions?: Omit<UseQueryOptions<any, any, any, any>, 'queryKey' | 'queryFn'>;
1692
- isLoading?: boolean;
1693
- fetchData?: (params: Record<string, string | number | string[] | number[] | undefined>) => Promise<{
1694
- data: TData[];
1695
- totalItemsCount?: number;
1696
- }>;
1697
- } & ({
1698
- showPagination: true;
1699
- showTotalItems?: boolean;
1700
- showDropdownPagination?: boolean;
1701
- showDotPagination?: boolean;
1702
- showFormPagination?: boolean;
1703
- pageSizes?: number[] | string[];
1704
- totalItems: number;
1705
- } | {
1706
- showPagination?: false | undefined;
1707
- showTotalItems?: never;
1708
- showDropdownPagination?: never;
1709
- showDotPagination?: never;
1710
- showFormPagination?: never;
1711
- pageSizes?: never;
1712
- totalItems?: never;
1713
- }) & ({
1714
- filterSearchPlaceholder?: string;
1715
- multiSelectFilter?: MultiSelectFilter[];
1716
- showFilter: true;
1717
- showFilterInput?: boolean;
1718
- filterActions?: FilterAction[];
1719
- showResetButton?: boolean;
1720
- resetButtonClassName?: string;
1721
- } | {
1722
- filterSearchPlaceholder?: never;
1723
- multiSelectFilter?: never;
1724
- showFilter?: false | undefined;
1725
- showFilterInput?: never;
1726
- filterActions?: FilterAction[];
1727
- showResetButton?: never;
1728
- resetButtonClassName?: never;
1729
- });
1730
-
1731
- declare type Props_6<TData extends RowData> = CellContext<TData, unknown> & {
1732
- actions: Action<TData>[];
1733
- iconTriggerButtonClassName?: string;
1734
- triggerButtonClassName?: string;
1735
- wrapperActionsClassName?: string;
1736
- wrapperClassName?: string;
1737
- wrapperContentActionsClassName?: string;
1738
- };
1739
-
1740
- /**
1741
- * A radio button component with label and optional description.
1742
- * Use RadioGroup to manage a group of radio buttons.
1743
- *
1744
- * @example
1745
- * ```tsx
1746
- * <Radio
1747
- * name="plan"
1748
- * value="basic"
1749
- * label="Basic Plan"
1750
- * description="Free forever"
1751
- * checked={plan === 'basic'}
1752
- * onChange={(value) => setPlan(value)}
1753
- * />
1754
- * ```
1755
- *
1756
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-radio--docs Storybook}
1757
- */
1758
- export declare const Radio: FC<RadioProps>;
1759
-
1760
- /**
1761
- * A card-style radio button for visually prominent selection options.
1762
- * Use RadioCardGroup to manage a group of radio cards.
1763
- *
1764
- * @example
1765
- * ```tsx
1766
- * <RadioCard
1767
- * name="tier"
1768
- * value="enterprise"
1769
- * label="Enterprise"
1770
- * description="Custom pricing"
1771
- * checked={tier === 'enterprise'}
1772
- * onChange={(value) => setTier(value)}
1773
- * />
1774
- * ```
1775
- *
1776
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-radiocard--docs Storybook}
1777
- */
1778
- export declare const RadioCard: FC<RadioCardProps>;
1779
-
1780
- /**
1781
- * A group of card-style radio buttons with shared state management.
1782
- *
1783
- * @example
1784
- * ```tsx
1785
- * <RadioCardGroup
1786
- * name="plan"
1787
- * direction="row"
1788
- * options={[
1789
- * { value: 'starter', label: 'Starter', description: 'For individuals' },
1790
- * { value: 'team', label: 'Team', description: 'For small teams' },
1791
- * { value: 'business', label: 'Business', description: 'For organizations' },
1792
- * ]}
1793
- * defaultChecked="team"
1794
- * onValueChange={(value) => console.log(value)}
1795
- * />
1796
- * ```
1797
- *
1798
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-radiocardgroup--docs Storybook}
1799
- */
1800
- export declare const RadioCardGroup: FC<RadioCardGroupProps>;
1801
-
1802
- /**
1803
- * Props for the RadioCardGroup component.
1804
- *
1805
- * @example
1806
- * ```tsx
1807
- * <RadioCardGroup
1808
- * name="pricing"
1809
- * options={[
1810
- * { value: 'basic', label: 'Basic', description: '$9/mo' },
1811
- * { value: 'pro', label: 'Pro', description: '$29/mo' },
1812
- * { value: 'enterprise', label: 'Enterprise', description: 'Custom' },
1813
- * ]}
1814
- * defaultChecked="pro"
1815
- * onValueChange={(value) => setTier(value)}
1816
- * />
1817
- * ```
1818
- */
1819
- declare type RadioCardGroupProps = {
1820
- asChild?: boolean;
1821
- className?: string;
1822
- defaultChecked?: string;
1823
- direction?: 'row' | 'col';
1824
- name: string;
1825
- options: Omit<RadioCardProps, 'name' | 'checked' | 'defaultChecked'>[];
1826
- theme?: Theme;
1827
- wrapperClassName?: string;
1828
- onValueChange?: (value: string) => void;
1829
- };
1830
-
1831
- /**
1832
- * Props for the RadioCard component.
1833
- * Combines Card styling with Radio functionality.
1834
- *
1835
- * @example
1836
- * ```tsx
1837
- * <RadioCard
1838
- * name="plan"
1839
- * value="pro"
1840
- * label="Pro Plan"
1841
- * description="$29/month"
1842
- * checked={selected === 'pro'}
1843
- * onChange={(value) => setSelected(value)}
1844
- * />
1845
- * ```
1846
- */
1847
- declare type RadioCardProps = Omit<CardProps, 'canHover' | 'isActive'> & Pick<RadioProps, 'name' | 'value' | 'checked' | 'onChange' | 'label' | 'disabled' | 'defaultChecked' | 'labelTextClassName' | 'description' | 'descriptionClassName'> & {
1848
- labelWrapperClassName?: string;
1849
- theme?: Theme;
1850
- };
1851
-
1852
- /**
1853
- * A group of radio buttons with shared state management.
1854
- *
1855
- * @example
1856
- * ```tsx
1857
- * // Vertical layout (default)
1858
- * <RadioGroup
1859
- * name="subscription"
1860
- * options={[
1861
- * { value: 'monthly', label: 'Monthly', description: '$10/mo' },
1862
- * { value: 'yearly', label: 'Yearly', description: '$100/yr' },
1863
- * ]}
1864
- * defaultChecked="monthly"
1865
- * onValueChange={(value) => setSubscription(value)}
1866
- * />
1867
- *
1868
- * // Horizontal layout
1869
- * <RadioGroup
1870
- * name="size"
1871
- * direction="row"
1872
- * options={[
1873
- * { value: 'sm', label: 'Small' },
1874
- * { value: 'md', label: 'Medium' },
1875
- * { value: 'lg', label: 'Large' },
1876
- * ]}
1877
- * onValueChange={setSize}
1878
- * />
1879
- * ```
1880
- *
1881
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-radiogroup--docs Storybook}
1882
- */
1883
- export declare const RadioGroup: FC<RadioGroupProps>;
1884
-
1885
- /**
1886
- * Props for the RadioGroup component.
1887
- *
1888
- * @example
1889
- * ```tsx
1890
- * <RadioGroup
1891
- * name="plan"
1892
- * options={[
1893
- * { value: 'basic', label: 'Basic' },
1894
- * { value: 'pro', label: 'Pro' },
1895
- * { value: 'enterprise', label: 'Enterprise' },
1896
- * ]}
1897
- * defaultChecked="basic"
1898
- * onValueChange={(value) => setPlan(value)}
1899
- * />
1900
- * ```
1901
- */
1902
- declare interface RadioGroupProps {
1903
- /** Merge props onto child element */
1904
- asChild?: boolean;
1905
- /** CSS classes for each radio option */
1906
- className?: RadioProps['className'];
1907
- /** Initially selected value */
1908
- defaultChecked?: string;
1909
- /** Layout direction (row or col) */
1910
- direction?: 'row' | 'col';
1911
- /** Label for the group */
1912
- label?: string | ReactNode;
1913
- /** Form field name (shared by all radios) */
1914
- name: string;
1915
- /** Array of radio options */
1916
- options: Omit<RadioProps, 'name' | 'checked' | 'defaultChecked'>[];
1917
- /** Theme override for this component */
1918
- theme?: Theme;
1919
- /** CSS classes for the wrapper */
1920
- wrapperClassName?: string;
1921
- /** Callback when selection changes */
1922
- onValueChange?: (value: string) => void;
1923
- }
1924
-
1925
- /**
1926
- * Props for the Radio component.
1927
- *
1928
- * @example
1929
- * ```tsx
1930
- * <Radio
1931
- * name="plan"
1932
- * value="basic"
1933
- * label="Basic Plan"
1934
- * checked={selected === 'basic'}
1935
- * onChange={(value) => setSelected(value)}
1936
- * />
1937
- * ```
1938
- */
1939
- declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'disabled'>, VariantProps<typeof radioVariants> {
1940
- /** Whether the radio is checked */
1941
- checked?: boolean;
1942
- /** Initial checked state (uncontrolled) */
1943
- defaultChecked?: boolean;
1944
- /** Whether the radio is disabled */
1945
- disabled?: boolean;
1946
- /** Label text or element */
1947
- label?: string | ReactNode;
1948
- /** CSS classes for the label text */
1949
- labelTextClassName?: string;
1950
- /** Form field name (groups radios together) */
1951
- name: string;
1952
- /** Description text below the label */
1953
- description?: string | ReactNode;
1954
- /** CSS classes for the description */
1955
- descriptionClassName?: string;
1956
- /** Value submitted when selected */
1957
- value: string;
1958
- /** CSS classes for the wrapper */
1959
- wrapperClassName?: string;
1960
- /** Theme override for this component */
1961
- theme?: Theme;
1962
- /** Callback when selected */
1963
- onChange?: (value: string) => void;
1964
- }
1965
-
1966
- declare const radioVariants: (props?: ({
1967
- disabled?: boolean | null | undefined;
1968
- checked?: boolean | null | undefined;
1969
- } & ClassProp) | undefined) => string;
1970
-
1971
- /**
1972
- * A dual-thumb slider component for selecting a value range.
1973
- * Built on Radix UI Slider for accessibility.
1974
- *
1975
- * @example
1976
- * ```tsx
1977
- * <Range
1978
- * label="Budget"
1979
- * min={0}
1980
- * max={10000}
1981
- * defaultValue={[2000, 8000]}
1982
- * showValue
1983
- * name="budget"
1984
- * />
1985
- * ```
1986
- *
1987
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-range--docs Storybook}
1988
- */
1989
- declare const Range_2: FC<RangeProps>;
1990
- export { Range_2 as Range }
1991
-
1992
- /**
1993
- * Props for the Range component.
1994
- * A dual-thumb slider for selecting a value range.
1995
- *
1996
- * @example
1997
- * ```tsx
1998
- * <Range
1999
- * label="Price Range"
2000
- * min={0}
2001
- * max={1000}
2002
- * defaultValue={[100, 500]}
2003
- * showValue
2004
- * size="md"
2005
- * />
2006
- * ```
2007
- */
2008
- declare interface RangeProps extends VariantProps<typeof rangeVariants> {
2009
- /** Additional CSS classes */
2010
- className?: string;
2011
- /** Initial range values [min, max] */
2012
- defaultValue?: SliderProps['defaultValue'];
2013
- /** Label displayed above the range slider */
2014
- label?: string;
2015
- /** Maximum value for the range */
2016
- max?: SliderProps['max'];
2017
- /** Minimum value for the range */
2018
- min?: SliderProps['min'];
2019
- /** Form field name for the hidden input */
2020
- name?: string;
2021
- /** Whether to display the current range values */
2022
- showValue?: boolean;
2023
- /** Size of the slider track and thumbs */
2024
- size?: 'sm' | 'md' | 'lg';
2025
- /** Theme override for this component */
2026
- theme?: Theme;
2027
- }
2028
-
2029
- declare const rangeVariants: (props?: ClassProp | undefined) => string;
2030
-
2031
- declare type ResetButtonProps = ButtonProps & {
2032
- disabled?: boolean;
2033
- onClick?: VoidFunction;
2034
- };
2035
-
2036
- /** Base row data type from TanStack Table */
2037
- export declare type RowData = RowData_2;
2038
-
2039
- /**
2040
- * Props for Table.Row component.
2041
- */
2042
- declare interface RowProps extends React.HTMLAttributes<HTMLTableRowElement>, PropsWithChildren, VariantProps<typeof rowVariants> {
2043
- /** Width of the row */
2044
- width?: string;
2045
- /** Whether the row is selected */
2046
- isSelected?: boolean;
2047
- /** Callback when row is selected */
2048
- onSelect?: () => void;
2049
- }
2050
-
2051
- declare const rowVariants: (props?: ({
2052
- isSelected?: boolean | null | undefined;
2053
- } & ClassProp) | undefined) => string;
2054
-
2055
- /**
2056
- * A dropdown select component with search, icons, and infinite scroll support.
2057
- * Also exported as `Dropdown` for convenience.
2058
- *
2059
- * @example
2060
- * ```tsx
2061
- * // Basic usage
2062
- * <Select
2063
- * label="Country"
2064
- * options={[
2065
- * { value: 'us', label: 'United States' },
2066
- * { value: 'uk', label: 'United Kingdom' },
2067
- * ]}
2068
- * value={selected}
2069
- * onChange={(e) => setSelected(e.target.value)}
2070
- * />
2071
- *
2072
- * // Searchable with custom icons
2073
- * <Select
2074
- * label="Select region"
2075
- * options={regions.map(r => ({
2076
- * value: r.id,
2077
- * label: r.name,
2078
- * leftIcon: <RegionIcon />,
2079
- * subLabel: r.description,
2080
- * }))}
2081
- * searchable
2082
- * highlightSearch
2083
- * />
2084
- * ```
2085
- *
2086
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-select--docs Storybook}
2087
- */
2088
- declare const Select: FC<SelectProps>;
2089
- export { Select as Dropdown }
2090
- export { Select }
2091
-
2092
- /**
2093
- * Props for the Select (Dropdown) component.
2094
- *
2095
- * @example
2096
- * ```tsx
2097
- * // Basic select
2098
- * <Select
2099
- * label="Country"
2100
- * options={[
2101
- * { value: 'us', label: 'United States' },
2102
- * { value: 'uk', label: 'United Kingdom' },
2103
- * ]}
2104
- * value={country}
2105
- * onChange={(e) => setCountry(e.target.value)}
2106
- * />
2107
- *
2108
- * // Searchable select
2109
- * <Select
2110
- * label="Search countries"
2111
- * options={countries}
2112
- * searchable
2113
- * highlightSearch
2114
- * />
2115
- *
2116
- * // With infinite scroll
2117
- * <Select
2118
- * options={options}
2119
- * isInfiniteScrollEnabled
2120
- * onFetchMoreOptions={async ({ page }) => fetchMore(page)}
2121
- * />
2122
- * ```
2123
- *
2124
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-select--docs Storybook}
2125
- */
2126
- declare type SelectProps = VariantProps<typeof selectVariants> & Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> & {
2127
- additionalOptions?: ReactNode[] | string[];
2128
- className?: string;
2129
- disabled?: boolean;
2130
- error?: string;
2131
- errorClassName?: string;
2132
- helperText?: string;
2133
- helperTextClassName?: string;
2134
- highlightSearch?: boolean;
2135
- iconClassName?: string;
2136
- inputClassName?: string;
2137
- isLoading?: boolean;
2138
- isRequired?: boolean;
2139
- label?: string;
2140
- labelClassName?: string;
2141
- listClassName?: string;
2142
- listItemClassName?: string;
2143
- listItemSecondRowClassName?: string;
2144
- mainWrapperClassName?: string;
2145
- noOptionsText?: string;
2146
- options: Option_2[];
2147
- searchable?: boolean;
2148
- showSearchIcon?: boolean;
2149
- theme?: Theme;
2150
- value?: string;
2151
- wrapperClassName?: string;
2152
- onBlur?: VoidFunction;
2153
- onChange?: OnChangeFn;
2154
- onSearchChange?: (searchTerm: string) => void;
2155
- } & ({
2156
- isInfiniteScrollEnabled: true;
2157
- onFetchMoreOptions: (params: {
2158
- page: number;
2159
- pageSize: number;
2160
- termOfSearch?: string;
2161
- }) => Promise<{
2162
- data: Option_2[];
2163
- hasMore: boolean;
2164
- }>;
2165
- } | {
2166
- isInfiniteScrollEnabled?: false | undefined;
2167
- onFetchMoreOptions?: never;
2168
- });
2169
-
2170
- declare const selectVariants: (props?: ({
2171
- hasError?: boolean | null | undefined;
2172
- disabled?: boolean | null | undefined;
2173
- } & ClassProp) | undefined) => string;
2174
-
2175
- /**
2176
- * A compound component for building application sidebars.
2177
- * Includes sub-components for logo, navigation, groups, options, and footer.
2178
- *
2179
- * @example
2180
- * ```tsx
2181
- * <Sidebar canResize minWith={200} maxWith={400} theme="dark">
2182
- * <Sidebar.Logo>
2183
- * <img src="/logo.svg" alt="Logo" />
2184
- * </Sidebar.Logo>
2185
- * <Sidebar.Navigation>
2186
- * <Sidebar.NavigationGroup label="Menu">
2187
- * <Sidebar.NavigationOption href="/" icon={<Home />}>
2188
- * Home
2189
- * </Sidebar.NavigationOption>
2190
- * </Sidebar.NavigationGroup>
2191
- * </Sidebar.Navigation>
2192
- * <Sidebar.Footer>Version 1.0</Sidebar.Footer>
2193
- * </Sidebar>
2194
- * ```
2195
- *
2196
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-sidebar--docs Storybook}
2197
- */
2198
- export declare const Sidebar: FC<SidebarProps> & SidebarChildrenProps;
2199
-
2200
- /**
2201
- * Sidebar compound component type with sub-components.
2202
- */
2203
- declare type SidebarChildrenProps = {
2204
- Footer: FC<FooterProps>;
2205
- Logo: FC<LogoProps>;
2206
- Navigation: FC<NavigationProps>;
2207
- NavigationGroup: FC<NavigationGroupProps>;
2208
- NavigationOption: FC<NavigationOptionProps>;
2209
- NavigationSeparator: FC<NavigationSeparatorProps>;
2210
- };
2211
-
2212
- /**
2213
- * Props for the Sidebar component.
2214
- * A compound component for building application sidebars with navigation.
2215
- *
2216
- * @example
2217
- * ```tsx
2218
- * <Sidebar canResize minWith={200} maxWith={400}>
2219
- * <Sidebar.Logo>
2220
- * <img src="/logo.svg" alt="Logo" />
2221
- * </Sidebar.Logo>
2222
- * <Sidebar.Navigation>
2223
- * <Sidebar.NavigationGroup label="Main">
2224
- * <Sidebar.NavigationOption href="/dashboard" icon={<Home />}>
2225
- * Dashboard
2226
- * </Sidebar.NavigationOption>
2227
- * <Sidebar.NavigationOption href="/settings" icon={<Settings />}>
2228
- * Settings
2229
- * </Sidebar.NavigationOption>
2230
- * </Sidebar.NavigationGroup>
2231
- * </Sidebar.Navigation>
2232
- * <Sidebar.Footer>v1.0.0</Sidebar.Footer>
2233
- * </Sidebar>
2234
- * ```
2235
- */
2236
- declare interface SidebarProps extends VariantProps<typeof wrapperSiderbarVariants>, PropsWithChildren {
2237
- /** Whether the sidebar can be resized by dragging */
2238
- canResize?: boolean;
2239
- /** Additional CSS classes for the divider */
2240
- dividerClassName?: string;
2241
- /** Maximum width when resizing (in pixels) */
2242
- maxWith?: number;
2243
- /** Minimum width when resizing (in pixels) */
2244
- minWith?: number;
2245
- /** Theme override for this component */
2246
- theme?: Theme;
2247
- /** Additional CSS classes for the wrapper */
2248
- wrapperClassName?: string;
2249
- }
2250
-
2251
- /**
2252
- * A single-thumb slider component for selecting a value.
2253
- * Built on Radix UI Slider for accessibility.
2254
- *
2255
- * @example
2256
- * ```tsx
2257
- * <Slider
2258
- * label="Brightness"
2259
- * min={0}
2260
- * max={100}
2261
- * defaultValue={[75]}
2262
- * showValue
2263
- * name="brightness"
2264
- * />
2265
- * ```
2266
- *
2267
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-slider--docs Storybook}
2268
- */
2269
- export declare const Slider: FC<SliderProps_2>;
2270
-
2271
- /**
2272
- * Props for the Slider component.
2273
- * A single-thumb slider for selecting a single value.
2274
- *
2275
- * @example
2276
- * ```tsx
2277
- * <Slider
2278
- * label="Volume"
2279
- * min={0}
2280
- * max={100}
2281
- * defaultValue={[50]}
2282
- * showValue
2283
- * size="md"
2284
- * />
2285
- * ```
2286
- */
2287
- declare interface SliderProps_2 extends VariantProps<typeof sliderVariants> {
2288
- /** Additional CSS classes */
2289
- className?: string;
2290
- /** Initial value as single-element array */
2291
- defaultValue?: SliderProps['defaultValue'];
2292
- /** Label displayed above the slider */
2293
- label?: string;
2294
- /** Maximum value for the slider */
2295
- max?: SliderProps['max'];
2296
- /** Minimum value for the slider */
2297
- min?: SliderProps['min'];
2298
- /** Form field name for the hidden input */
2299
- name?: string;
2300
- /** Whether to display the current value */
2301
- showValue?: boolean;
2302
- /** Size of the slider track and thumb */
2303
- size?: 'sm' | 'md' | 'lg';
2304
- /** Theme override for this component */
2305
- theme?: Theme;
2306
- }
2307
-
2308
- declare const sliderVariants: (props?: ClassProp | undefined) => string;
2309
-
2310
- /**
2311
- * A single step in the breadcrumb navigation.
2312
- */
2313
- declare type Step = {
2314
- /** Display text for the breadcrumb item */
2315
- label: string;
2316
- /** URL to navigate to when clicked */
2317
- to?: string;
2318
- /** Link target (_self or _blank) */
2319
- target?: '_self' | '_blank';
2320
- /** Whether this step is the current/active page */
2321
- isActive?: boolean;
2322
- /** Custom component to render (e.g., Link from react-router) */
2323
- component?: FC<any>;
2324
- };
2325
-
2326
- /**
2327
- * A toggle switch component built on Radix UI primitives.
2328
- * Supports horizontal and vertical layouts with label and helper text.
2329
- *
2330
- * @example
2331
- * ```tsx
2332
- * // Basic switch
2333
- * <Switch label="Enable feature" />
2334
- *
2335
- * // Controlled switch
2336
- * <Switch
2337
- * label="Dark mode"
2338
- * value={isDarkMode}
2339
- * onChange={(enabled) => setIsDarkMode(enabled)}
2340
- * />
2341
- *
2342
- * // Vertical layout with helper text
2343
- * <Switch
2344
- * label="Notifications"
2345
- * helperText="Receive email notifications"
2346
- * alignment="vertical"
2347
- * />
2348
- * ```
2349
- *
2350
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-switch--docs Storybook}
2351
- */
2352
- export declare const Switch: FC<SwitchProps>;
2353
-
2354
- /**
2355
- * Props for the Switch component.
2356
- *
2357
- * @example
2358
- * ```tsx
2359
- * <Switch label="Enable notifications" onChange={(enabled) => setEnabled(enabled)} />
2360
- * <Switch label="Dark mode" value={isDark} onChange={setIsDark} />
2361
- * <Switch label="Feature" helperText="Enable experimental features" alignment="vertical" />
2362
- * ```
2363
- */
2364
- declare interface SwitchProps extends VariantProps<typeof switchVariants> {
2365
- /** Layout direction: horizontal (default) or vertical */
2366
- alignment?: 'horizontal' | 'vertical';
2367
- /** Additional CSS classes */
2368
- className?: string;
2369
- /** Initial checked state */
2370
- defaultChecked?: boolean;
2371
- /** Whether the switch is disabled */
2372
- disabled?: boolean;
2373
- /** Helper text displayed below the label */
2374
- helperText?: string;
2375
- /** CSS classes for helper text */
2376
- helperTextClassName?: string;
2377
- /** Label text displayed next to switch */
2378
- label?: string;
2379
- /** CSS classes for the label */
2380
- labelClassName?: string;
2381
- /** Form field name */
2382
- name?: string;
2383
- /** Theme override for this component */
2384
- theme?: Theme;
2385
- /** CSS classes for the thumb element */
2386
- thumbClassName?: string;
2387
- /** Controlled checked state */
2388
- value?: boolean;
2389
- /** Callback when checked state changes */
2390
- onChange?: (e: boolean) => void;
2391
- }
2392
-
2393
- declare const switchVariants: (props?: ClassProp | undefined) => string;
2394
-
2395
- /**
2396
- * A composable table component with Head, Body, Row, and Filter sub-components.
2397
- * For large datasets, consider using VirtualizedTable instead.
2398
- *
2399
- * @example
2400
- * ```tsx
2401
- * <Table>
2402
- * <Table.Filter placeholder="Search..." />
2403
- * <Table.Head>
2404
- * <Table.Row>
2405
- * <th>Name</th>
2406
- * <th>Email</th>
2407
- * <th>Role</th>
2408
- * </Table.Row>
2409
- * </Table.Head>
2410
- * <Table.Body>
2411
- * {users.map((user) => (
2412
- * <Table.Row key={user.id}>
2413
- * <td>{user.name}</td>
2414
- * <td>{user.email}</td>
2415
- * <td>{user.role}</td>
2416
- * </Table.Row>
2417
- * ))}
2418
- * </Table.Body>
2419
- * </Table>
2420
- * ```
2421
- *
2422
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-table--docs Storybook}
2423
- */
2424
- export declare const Table: FC<TableProps> & {
2425
- Head: FC<HeadProps>;
2426
- Row: FC<RowProps>;
2427
- Filter: FC<FilterProps_2>;
2428
- Body: FC<BodyProps>;
2429
- };
2430
-
2431
- /**
2432
- * Props for the Table component.
2433
- *
2434
- * @example
2435
- * ```tsx
2436
- * <Table>
2437
- * <Table.Head>
2438
- * <Table.Row>
2439
- * <th>Name</th>
2440
- * <th>Email</th>
2441
- * </Table.Row>
2442
- * </Table.Head>
2443
- * <Table.Body>
2444
- * <Table.Row>
2445
- * <td>John Doe</td>
2446
- * <td>john@example.com</td>
2447
- * </Table.Row>
2448
- * </Table.Body>
2449
- * </Table>
2450
- * ```
2451
- */
2452
- declare interface TableProps extends React.HTMLAttributes<HTMLTableElement>, PropsWithChildren, VariantProps<typeof tableVariants> {
2453
- /** Theme override for this component */
2454
- theme?: Theme;
2455
- }
2456
-
2457
- declare const tableVariants: (props?: ClassProp | undefined) => string;
2458
-
2459
- /**
2460
- * A tabs component built on Radix UI primitives.
2461
- * Supports horizontal and vertical orientations with List, Trigger, and Content sub-components.
2462
- *
2463
- * @example
2464
- * ```tsx
2465
- * <Tabs defaultValue="overview">
2466
- * <Tabs.List orientation="horizontal">
2467
- * <Tabs.Trigger tab="overview" label="Overview" isActive />
2468
- * <Tabs.Trigger tab="settings" label="Settings" isActive={false} />
2469
- * <Tabs.Trigger tab="billing" label="Billing" isActive={false} />
2470
- * </Tabs.List>
2471
- *
2472
- * <Tabs.Content value="overview">
2473
- * Overview content here
2474
- * </Tabs.Content>
2475
- * <Tabs.Content value="settings">
2476
- * Settings content here
2477
- * </Tabs.Content>
2478
- * <Tabs.Content value="billing">
2479
- * Billing content here
2480
- * </Tabs.Content>
2481
- * </Tabs>
2482
- * ```
2483
- *
2484
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-tabs--docs Storybook}
2485
- */
2486
- export declare const Tabs: FC<TabsProps> & {
2487
- List: FC<ListProps>;
2488
- Trigger: FC<TriggerProps>;
2489
- Content: FC<ReactTabs.TabsContentProps>;
2490
- };
2491
-
2492
- /**
2493
- * Props for the Tabs component.
2494
- *
2495
- * @example
2496
- * ```tsx
2497
- * <Tabs defaultValue="tab1">
2498
- * <Tabs.List orientation="horizontal">
2499
- * <Tabs.Trigger tab="tab1" label="Tab 1" isActive />
2500
- * <Tabs.Trigger tab="tab2" label="Tab 2" isActive={false} />
2501
- * </Tabs.List>
2502
- * <Tabs.Content value="tab1">Content 1</Tabs.Content>
2503
- * <Tabs.Content value="tab2">Content 2</Tabs.Content>
2504
- * </Tabs>
2505
- * ```
2506
- */
2507
- declare interface TabsProps extends ReactTabs.TabsProps, PropsWithChildren {
2508
- /** Theme override for this component */
2509
- theme?: Theme;
2510
- }
2511
-
2512
- /**
2513
- * A small label component for categorization, status display, or filtering.
2514
- * Supports multiple color variants and optional icons.
2515
- *
2516
- * @example
2517
- * ```tsx
2518
- * <Tag id="1" label="New" color="green" />
2519
- * <Tag id="2" label="Pending" color="gold" leftIcon={<Clock />} />
2520
- * <Tag id="3" label="Error" color="pink" rightIcon={<X />} />
2521
- * ```
2522
- *
2523
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-tag--docs Storybook}
2524
- */
2525
- export declare const Tag: FC<TagProps>;
2526
-
2527
- /**
2528
- * Props for the Tag component.
2529
- * A small label component for categorization or status display.
2530
- *
2531
- * @example
2532
- * ```tsx
2533
- * <Tag
2534
- * id="status-active"
2535
- * label="Active"
2536
- * color="green"
2537
- * leftIcon={<CheckIcon />}
2538
- * />
2539
- * ```
2540
- */
2541
- declare type TagProps = {
2542
- /** Color variant for the tag */
2543
- color?: 'gray' | 'gray-800' | 'cyan' | 'gold' | 'green' | 'light blue' | 'lime' | 'pink' | 'purple' | 'emerald' | 'fuscia' | 'indigo' | 'light-orange' | 'dark-sky-blue' | 'mistery';
2544
- /** Unique identifier for the tag */
2545
- id: string | number;
2546
- /** Text displayed in the tag */
2547
- label: string;
2548
- /** Icon displayed after the label */
2549
- rightIcon?: ReactNode;
2550
- /** Icon displayed before the label */
2551
- leftIcon?: ReactNode;
2552
- /** Additional CSS classes */
2553
- className?: string;
2554
- /** Data attribute for the tag value */
2555
- 'data-value'?: string;
2556
- /** Whether the tag is in a selected state */
2557
- isSelected?: boolean;
2558
- };
2559
-
2560
- /**
2561
- * An input component for selecting from a list of tag options.
2562
- * Supports single and multi-selection modes.
2563
- *
2564
- * @example
2565
- * ```tsx
2566
- * <TagSelect
2567
- * label="Skills"
2568
- * placeholder="Select skills..."
2569
- * options={[
2570
- * { label: 'React', color: 'blue' },
2571
- * { label: 'TypeScript', color: 'purple' },
2572
- * { label: 'Node.js', color: 'green' },
2573
- * ]}
2574
- * multiselect
2575
- * />
2576
- * ```
2577
- *
2578
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-tagselect--docs Storybook}
2579
- */
2580
- export declare const TagSelect: FC<TagSelectProps>;
2581
-
2582
- /**
2583
- * Props for the TagSelect component.
2584
- * An input that allows selecting from a list of tags.
2585
- *
2586
- * @example
2587
- * ```tsx
2588
- * <TagSelect
2589
- * label="Categories"
2590
- * placeholder="Select categories..."
2591
- * options={[
2592
- * { label: 'Frontend', color: 'blue' },
2593
- * { label: 'Backend', color: 'green' },
2594
- * { label: 'DevOps', color: 'purple' },
2595
- * ]}
2596
- * multiselect
2597
- * />
2598
- * ```
2599
- */
2600
- declare interface TagSelectProps extends VariantProps<typeof tagSelectVariants> {
2601
- /** Label displayed above the input */
2602
- label?: string;
2603
- /** Available tag options to select from */
2604
- options: TagProps[];
2605
- /** Form field name for the input */
2606
- name?: string;
2607
- /** Placeholder text when no selection */
2608
- placeholder?: string;
2609
- /** Additional CSS classes for the label */
2610
- labelClassName?: string;
2611
- /** Additional CSS classes for the wrapper */
2612
- wrapperClassName?: string;
2613
- /** Whether multiple tags can be selected */
2614
- multiselect?: boolean;
2615
- }
2616
-
2617
- declare const tagSelectVariants: (props?: ClassProp | undefined) => string;
2618
-
2619
- /**
2620
- * A multiline text input component with optional label.
2621
- *
2622
- * @example
2623
- * ```tsx
2624
- * // Basic textarea
2625
- * <TextArea label="Description" placeholder="Enter description..." />
2626
- *
2627
- * // Textarea with more rows
2628
- * <TextArea label="Notes" rows={5} />
2629
- *
2630
- * // Controlled textarea
2631
- * <TextArea
2632
- * label="Comments"
2633
- * value={comments}
2634
- * onChange={(e) => setComments(e.target.value)}
2635
- * />
2636
- * ```
2637
- *
2638
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-textarea--docs Storybook}
2639
- */
2640
- export declare const TextArea: FC<TextAreaProps>;
2641
-
2642
- /**
2643
- * Props for the TextArea component.
2644
- *
2645
- * @example
2646
- * ```tsx
2647
- * <TextArea label="Description" placeholder="Enter description..." />
2648
- * <TextArea label="Notes" rows={5} />
2649
- * <TextArea name="bio" initialValue="Default text" />
2650
- * ```
2651
- */
2652
- declare interface TextAreaProps extends InputHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
2653
- /** Number of visible text rows (default: 3) */
2654
- rows?: number;
2655
- /** Label displayed above the textarea */
2656
- label?: string | ReactNode;
2657
- /** Form field name */
2658
- name?: string;
2659
- /** Initial/default value */
2660
- initialValue?: string;
2661
- /** Theme override for this component */
2662
- theme?: Theme;
2663
- }
2664
-
2665
- declare const textAreaVariants: (props?: ClassProp | undefined) => string;
2666
-
2667
- declare type Theme = 'kubefirst' | 'light' | 'kubefirst-dark' | 'dark' | undefined;
2668
-
2669
- export declare const ThemeContext: Context<ThemeContextType>;
2670
-
2671
- /**
2672
- * Props for the ThemeProvider component.
2673
- */
2674
- export declare type ThemeContextProps = PropsWithChildren & {
2675
- /** Initial theme to use */
2676
- theme?: ThemeContextType['theme'];
2677
- };
2678
-
2679
- export declare type ThemeContextType = {
2680
- theme: Theme;
2681
- setTheme: (theme: Theme) => void;
2682
- };
2683
-
2684
- declare type ThemeProps = {
2685
- theme?: Theme;
2686
- setTheme?: (theme: Theme) => void;
2687
- };
2688
-
2689
- /**
2690
- * Theme provider component that wraps your app to enable theming.
2691
- * Sets the `data-theme` attribute on the body element and persists theme choice in cookies.
2692
- *
2693
- * @example
2694
- * ```tsx
2695
- * // Wrap your app with ThemeProvider
2696
- * import { ThemeProvider } from '@konstructio/ui';
2697
- *
2698
- * function App() {
2699
- * return (
2700
- * <ThemeProvider theme="kubefirst">
2701
- * <YourApp />
2702
- * </ThemeProvider>
2703
- * );
2704
- * }
2705
- *
2706
- * // Access theme in components
2707
- * import { useTheme } from '@konstructio/ui';
2708
- *
2709
- * function MyComponent() {
2710
- * const { theme, setTheme } = useTheme();
2711
- * return <button onClick={() => setTheme('dark')}>Dark Mode</button>;
2712
- * }
2713
- * ```
2714
- *
2715
- * Available themes: 'kubefirst' | 'light' | 'kubefirst-dark' | 'dark'
2716
- */
2717
- export declare const ThemeProvider: FC<ThemeContextProps>;
2718
-
2719
- /**
2720
- * A scrollable time picker component with 12 or 24 hour format support.
2721
- * Features smooth scroll navigation through hours, minutes, and AM/PM options.
2722
- *
2723
- * @example
2724
- * ```tsx
2725
- * <TimePicker
2726
- * label="Start Time"
2727
- * name="startTime"
2728
- * format="12"
2729
- * time={selectedTime}
2730
- * scrollBehavior="smooth"
2731
- * />
2732
- * ```
2733
- *
2734
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-timepicker--docs Storybook}
2735
- */
2736
- export declare const TimePicker: FC<TimePickerProps>;
2737
-
2738
- /**
2739
- * Props for the TimePicker component.
2740
- * A scrollable time picker with support for 12 and 24 hour formats.
2741
- *
2742
- * @example
2743
- * ```tsx
2744
- * <TimePicker
2745
- * label="Meeting Time"
2746
- * name="meetingTime"
2747
- * format="12"
2748
- * time={new Date()}
2749
- * isRequired
2750
- * />
2751
- * ```
2752
- */
2753
- declare type TimePickerProps = VariantProps<typeof timePickerVariants> & {
2754
- /** Time format: '12' for AM/PM or '24' for military time */
2755
- format?: '12' | '24';
2756
- /** Scroll behavior when navigating times */
2757
- scrollBehavior?: 'smooth' | 'auto';
2758
- /** Currently selected time */
2759
- time?: Date;
2760
- /** Form field name */
2761
- name?: string;
2762
- /** Label displayed above the picker */
2763
- label?: string;
2764
- /** Whether the field is required */
2765
- isRequired?: boolean;
2766
- /** Additional CSS classes for the wrapper */
2767
- className?: string;
2768
- /** Additional CSS classes for the scrollable list */
2769
- listClassName?: string;
2770
- /** Additional CSS classes for list items */
2771
- listItemClassName?: string;
2772
- /** Additional CSS classes for list item buttons */
2773
- listItemButtonClassName?: string;
2774
- };
2775
-
2776
- declare const timePickerVariants: (props?: ClassProp | undefined) => string;
2777
-
2778
- declare type TimeZone = keyof ReturnType<typeof getAllTimezones>;
2779
-
2780
- /**
2781
- * A toast notification component built on Radix UI primitives.
2782
- * Wraps a trigger element and shows a toast when clicked.
2783
- *
2784
- * @example
2785
- * ```tsx
2786
- * const [open, setOpen] = useState(false);
2787
- *
2788
- * <Toast
2789
- * open={open}
2790
- * setOpen={setOpen}
2791
- * title="Saved"
2792
- * description="Your changes have been saved successfully"
2793
- * variant="success"
2794
- * duration={3000}
2795
- * >
2796
- * <Button>Save Changes</Button>
2797
- * </Toast>
2798
- * ```
2799
- *
2800
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-toast--docs Storybook}
2801
- */
2802
- export declare const Toast: FC<ToastProps>;
2803
-
2804
- /**
2805
- * Props for the Toast component.
2806
- *
2807
- * @example
2808
- * ```tsx
2809
- * const [open, setOpen] = useState(false);
2810
- *
2811
- * <Toast
2812
- * open={open}
2813
- * setOpen={setOpen}
2814
- * title="Success"
2815
- * description="Your changes have been saved"
2816
- * variant="success"
2817
- * >
2818
- * <Button onClick={() => setOpen(true)}>Show Toast</Button>
2819
- * </Toast>
2820
- * ```
2821
- */
2822
- declare interface ToastProps extends PropsWithChildren, VariantProps<typeof toastVariants> {
2823
- /** Additional CSS classes for the toast */
2824
- className?: string;
2825
- /** CSS classes for the close button */
2826
- closeButtonClassName?: string;
2827
- /** Description text or element */
2828
- description: string | ReactNode;
2829
- /** CSS classes for the description */
2830
- descriptionClassName?: string;
2831
- /** Auto-dismiss duration in ms (default: 5000) */
2832
- duration?: number;
2833
- /** Controlled open state */
2834
- open: boolean;
2835
- /** Show close button (default: true) */
2836
- showCloseButton?: boolean;
2837
- /** Theme override for this component */
2838
- theme?: Theme;
2839
- /** Title text or element */
2840
- title: string | ReactNode;
2841
- /** CSS classes for the title */
2842
- titleClassName?: string;
2843
- /** Callback to update open state */
2844
- setOpen: (open: boolean) => void;
2845
- }
2846
-
2847
- declare const toastVariants: (props?: ({
2848
- variant?: "warning" | "error" | "success" | null | undefined;
2849
- } & ClassProp) | undefined) => string;
2850
-
2851
- /**
2852
- * A tooltip component that shows on hover.
2853
- * Wraps any element and displays content on mouse enter.
2854
- *
2855
- * @example
2856
- * ```tsx
2857
- * // Basic tooltip
2858
- * <Tooltip content="Click to save">
2859
- * <Button>Save</Button>
2860
- * </Tooltip>
2861
- *
2862
- * // Tooltip with position
2863
- * <Tooltip content="More information" position="bottom">
2864
- * <InfoIcon />
2865
- * </Tooltip>
2866
- *
2867
- * // Tooltip on text
2868
- * <Tooltip content="This is a helpful tip">
2869
- * <span>Hover me</span>
2870
- * </Tooltip>
2871
- * ```
2872
- *
2873
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-tooltip--docs Storybook}
2874
- */
2875
- export declare const Tooltip: FC<TooltipProps>;
2876
-
2877
- /**
2878
- * Props for the Tooltip component.
2879
- *
2880
- * @example
2881
- * ```tsx
2882
- * <Tooltip content="Click to edit">
2883
- * <Button>Edit</Button>
2884
- * </Tooltip>
2885
- *
2886
- * <Tooltip content="More info here" position="bottom">
2887
- * <InfoIcon />
2888
- * </Tooltip>
2889
- * ```
2890
- */
2891
- declare interface TooltipProps extends PropsWithChildren, VariantProps<typeof tooltipVariants> {
2892
- /** Tooltip text or content */
2893
- content: ReactNode | string;
2894
- /** CSS classes for the trigger element */
2895
- className?: string;
2896
- /** CSS classes for the tooltip wrapper */
2897
- wrapperClassName?: string;
2898
- /** Theme override for this component */
2899
- theme?: Theme;
2900
- }
2901
-
2902
- declare const tooltipVariants: (props?: ({
2903
- position?: "left" | "right" | "top" | "bottom" | null | undefined;
2904
- } & ClassProp) | undefined) => string;
2905
-
2906
- export declare const Trigger: FC<TriggerProps>;
2907
-
2908
- /**
2909
- * Props for Tabs.Trigger component.
2910
- */
2911
- declare interface TriggerProps extends VariantProps<typeof triggerVariants>, React.HTMLAttributes<HTMLDivElement> {
2912
- /** Tab value identifier */
2913
- tab: string;
2914
- /** Display label for the tab */
2915
- label: string;
2916
- /** Whether this tab is active */
2917
- isActive: boolean;
2918
- }
2919
-
2920
- declare const triggerVariants: (props?: ({
2921
- variant?: "default" | "active" | "inactive" | null | undefined;
2922
- } & ClassProp) | undefined) => string;
2923
-
2924
- export declare const TruncateText: <TData>({ getValue, value }: Props_4<TData>) => JSX.Element;
2925
-
2926
- /**
2927
- * A flexible typography component for consistent text styling.
2928
- * Automatically selects semantic HTML elements based on variant.
2929
- *
2930
- * @example
2931
- * ```tsx
2932
- * <Typography variant="h1">Main Heading</Typography>
2933
- * <Typography variant="body1">Paragraph text</Typography>
2934
- * <Typography variant="subtitle1" component="span">Inline text</Typography>
2935
- * <Typography variant="h3" component="label" htmlFor="input">Label</Typography>
2936
- * ```
2937
- *
2938
- * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-typography--docs Storybook}
2939
- */
2940
- export declare const Typography: ForwardRefExoticComponent<Omit<TypographyProps, 'ref'> & RefAttributes<HTMLParagraphElement & HTMLHeadingElement & HTMLLabelElement>>;
2941
-
2942
- /**
2943
- * Props for the Typography component.
2944
- * A flexible text component with semantic variants and theming.
2945
- *
2946
- * @example
2947
- * ```tsx
2948
- * <Typography variant="h1">Page Title</Typography>
2949
- * <Typography variant="body1">Body text content</Typography>
2950
- * <Typography variant="h2" component="p">Styled as h2 but renders as p</Typography>
2951
- * ```
2952
- */
2953
- declare interface TypographyProps extends HTMLAttributes<ComponentRef<HeadingTag | 'p' | 'span'>>, VariantProps<typeof typographyVariants> {
2954
- /** Ref to the underlying DOM element */
2955
- ref?: Ref<HTMLHeadingElement | HTMLParagraphElement | HTMLSpanElement>;
2956
- /** Text content to display */
2957
- children: ReactNode;
2958
- /** Override the rendered HTML element */
2959
- component?: HeadingTag | 'p' | 'span' | 'label';
2960
- /** Theme override for this component */
2961
- theme?: Theme;
2962
- /** For use with label component to associate with form input */
2963
- htmlFor?: string;
2964
- }
2965
-
2966
- declare const typographyVariants: (props?: ({
2967
- variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "tooltip" | "subtitle1" | "subtitle2" | "subtitle3" | "labelLarge" | "labelMedium" | "labelSmall" | "buttonSmall" | "body1" | "body2" | "body3" | null | undefined;
2968
- } & ClassProp) | undefined) => string;
2969
-
2970
- export declare const useTheme: () => ThemeProps;
2971
-
2972
- export declare const useToggle: (initialState?: boolean) => [boolean, (value?: boolean) => void];
2973
-
2974
- export declare const VirtualizedTable: VirtualizedTableCompound;
2975
-
2976
- declare type VirtualizedTableCompound = (<TData extends RowData>(props: Props_5<TData>) => JSX_2.Element) & {
2977
- TruncateText: typeof TruncateText;
2978
- Actions: <TData extends RowData>(props: Props_6<TData>) => JSX_2.Element | null;
2979
- displayName?: string;
2980
- };
2981
-
2982
- declare const virtualizeTableVariants: (props?: ClassProp | undefined) => string;
2983
-
2984
- declare const wrapperSiderbarVariants: (props?: ClassProp | undefined) => string;
2985
-
2986
- export { }
2987
-
2988
-
2989
- declare module '@tanstack/react-table' {
2990
- interface ColumnMeta<TData extends RowData, TValue> {
2991
- className?: string | ((row: TData) => string);
2992
- attributes?: Record<string, string | number | boolean>;
2993
- headerClassName?: string;
2994
- }
2995
- }
1
+ export * from './components';
2
+ export * from './contexts';
3
+ export * from './hooks';
4
+ export { cn } from './utils';