@konstructio/ui 0.1.2-alpha.112 → 0.1.2-alpha.113

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 (292) hide show
  1. package/dist/{AdditionalOptions-D3SZ2WFJ.js → AdditionalOptions-ClcR_Kf7.js} +1 -1
  2. package/dist/{AlertDialogTrigger-Cdw3C2Tv.js → AlertDialogTrigger-C9xoCZrZ.js} +33 -33
  3. package/dist/Checkbox-DRdyrKjk.js +252 -0
  4. package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
  5. package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
  6. package/dist/Counter-DMkXIsOO.js +229 -0
  7. package/dist/DropdownButton-JilCRLJY.js +92 -0
  8. package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
  9. package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
  10. package/dist/Modal-CysTe3zL.js +83 -0
  11. package/dist/Spinner-CTonkSzG.js +47 -0
  12. package/dist/Switch-5cdUxbhX.js +215 -0
  13. package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
  14. package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
  15. package/dist/components/Alert/Alert.js +45 -41
  16. package/dist/components/AlertDialog/AlertDialog.js +42 -42
  17. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  18. package/dist/components/AlertDialog/components/index.js +1 -1
  19. package/dist/components/Avatar/Avatar.js +37 -0
  20. package/dist/components/Avatar/Avatar.variants.js +25 -0
  21. package/dist/components/Avatar/hooks/index.js +5 -0
  22. package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
  23. package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
  24. package/dist/components/Badge/Badge.js +1 -1
  25. package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
  26. package/dist/components/BadgeGroup/hooks/index.js +4 -0
  27. package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
  28. package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
  29. package/dist/components/Breadcrumb/components/index.js +6 -4
  30. package/dist/components/Button/Button.js +25 -19
  31. package/dist/components/Button/Button.variants.js +4 -1
  32. package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
  33. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
  34. package/dist/components/Checkbox/Checkbox.js +1 -1
  35. package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
  36. package/dist/components/Collapse/Collapse.js +63 -0
  37. package/dist/components/Command/Command.js +5 -5
  38. package/dist/components/Command/components/Command.js +1 -1
  39. package/dist/components/Command/components/CommandEmpty.js +1 -1
  40. package/dist/components/Command/components/CommandGroup.js +1 -1
  41. package/dist/components/Command/components/CommandInput.js +1 -1
  42. package/dist/components/Command/components/CommandItem.js +1 -1
  43. package/dist/components/Command/components/CommandList.js +1 -1
  44. package/dist/components/Command/components/CommandSeparator.js +1 -1
  45. package/dist/components/Command/components/DialogContent.js +1 -1
  46. package/dist/components/Command/components/DialogOverlay.js +1 -1
  47. package/dist/components/Command/components/index.js +1 -1
  48. package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
  49. package/dist/components/CopyButton/CopyButton.js +29 -29
  50. package/dist/components/Counter/Counter.js +1 -1
  51. package/dist/components/Counter/Counter.variants.js +73 -16
  52. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
  53. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
  54. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
  55. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
  56. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
  57. package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
  58. package/dist/components/Datepicker/DatePicker.js +14 -49
  59. package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
  60. package/dist/components/Drawer/Drawer.js +18 -18
  61. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  62. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  63. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
  64. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
  65. package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
  66. package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
  67. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
  68. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
  69. package/dist/components/Filter/hooks/index.js +3 -1
  70. package/dist/components/Filter/hooks/useLocale.js +16 -0
  71. package/dist/components/Filter/utils/index.js +6 -2
  72. package/dist/components/LineChart/LineChart.js +18 -125
  73. package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
  74. package/dist/components/Modal/Modal.js +1 -1
  75. package/dist/components/Modal/components/Body/Body.js +1 -1
  76. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  77. package/dist/components/Modal/components/Header/Header.js +1 -1
  78. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  79. package/dist/components/Modal/components/index.js +1 -1
  80. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  81. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +22 -3
  82. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  83. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  84. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  85. package/dist/components/OtpInput/OtpInput.js +103 -0
  86. package/dist/components/PasswordRules/PasswordRules.js +51 -0
  87. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
  88. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  89. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
  90. package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
  91. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
  92. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  93. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  94. package/dist/components/PhoneNumberInput/contexts/index.js +4 -4
  95. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  96. package/dist/components/PieChart/PieChart.js +10 -53
  97. package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
  98. package/dist/components/ProgressBar/ProgressBar.js +10 -10
  99. package/dist/components/RadioCard/RadioCard.js +36 -18
  100. package/dist/components/RadioCard/RadioCard.variants.js +9 -3
  101. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  102. package/dist/components/Range/Range.js +1 -1
  103. package/dist/components/Select/Select.js +2 -2
  104. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
  105. package/dist/components/Select/components/List/List.js +10 -10
  106. package/dist/components/Select/components/Wrapper.js +1 -1
  107. package/dist/components/Select/components/index.js +2 -2
  108. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +15 -15
  109. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  110. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
  111. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
  112. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
  113. package/dist/components/Sidebar/components/index.js +1 -1
  114. package/dist/components/Skeleton/Skeleton.js +18 -0
  115. package/dist/components/Skeleton/Skeleton.variants.js +25 -0
  116. package/dist/components/Slider/Slider.js +1 -1
  117. package/dist/components/Spinner/Spinner.js +1 -1
  118. package/dist/components/Stepper/Stepper.js +38 -29
  119. package/dist/components/Stepper/Stepper.variants.js +55 -19
  120. package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
  121. package/dist/components/Switch/Switch.js +1 -1
  122. package/dist/components/Tabs/Tabs.js +52 -24
  123. package/dist/components/Tabs/Tabs.variants.js +15 -6
  124. package/dist/components/Tabs/components/Content.js +6 -6
  125. package/dist/components/Tabs/components/List.js +10 -10
  126. package/dist/components/Tabs/components/Trigger.js +11 -10
  127. package/dist/components/Tag/Tag.js +1 -1
  128. package/dist/components/TagsInput/TagsInput.js +159 -0
  129. package/dist/components/Toast/Toast.js +68 -2
  130. package/dist/components/Toast/components/ToastCard/ToastCard.js +32 -32
  131. package/dist/components/Tooltip/Tooltip.js +32 -16
  132. package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
  133. package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
  134. package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
  135. package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
  136. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
  137. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
  138. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
  139. package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
  140. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
  141. package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
  142. package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
  143. package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
  144. package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
  145. package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
  146. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
  147. package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
  148. package/dist/components/VirtualizedTable/components/index.js +18 -12
  149. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  150. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  151. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  152. package/dist/components/VirtualizedTable/utils/index.js +4 -4
  153. package/dist/components/index.js +180 -154
  154. package/dist/components-B_SWqhCL.js +147 -0
  155. package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
  156. package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
  157. package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
  158. package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
  159. package/dist/dist-BCoDIdCt.js +429 -0
  160. package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
  161. package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
  162. package/dist/dist-Bh7M0KDN.js +367 -0
  163. package/dist/dist-BqDJX7m1.js +209 -0
  164. package/dist/dist-C0OhTLFV.js +31 -0
  165. package/dist/dist-C1a-68Kb.js +120 -0
  166. package/dist/dist-CK8FUUUn.js +125 -0
  167. package/dist/dist-CQSCPpFc.js +196 -0
  168. package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
  169. package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
  170. package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
  171. package/dist/dist-fPYIsxyx.js +465 -0
  172. package/dist/dist-rsFD9q_X.js +484 -0
  173. package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
  174. package/dist/dist-vDSmnSS_.js +41 -0
  175. package/dist/dist-vUCyiTQy.js +365 -0
  176. package/dist/es2015-ChhQTsb4.js +74 -0
  177. package/dist/index.js +194 -168
  178. package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
  179. package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
  180. package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
  181. package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
  182. package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
  183. package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
  184. package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
  185. package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
  186. package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
  187. package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
  188. package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
  189. package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
  190. package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
  191. package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
  192. package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
  193. package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
  194. package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
  195. package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
  196. package/dist/lib/components/Button/Button.variants.d.ts +1 -1
  197. package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
  198. package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
  199. package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
  200. package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
  201. package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
  202. package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
  203. package/dist/lib/components/Counter/Counter.d.ts +7 -4
  204. package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
  205. package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
  206. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
  207. package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
  208. package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
  209. package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
  210. package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
  211. package/dist/lib/components/Filter/utils/index.d.ts +1 -0
  212. package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
  213. package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
  214. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
  215. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
  216. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
  217. package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
  218. package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
  219. package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
  220. package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
  221. package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
  222. package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
  223. package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
  224. package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
  225. package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
  226. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
  227. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
  228. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
  229. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
  230. package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
  231. package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
  232. package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
  233. package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
  234. package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
  235. package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
  236. package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
  237. package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
  238. package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
  239. package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
  240. package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
  241. package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
  242. package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
  243. package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
  244. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
  245. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
  246. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
  247. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
  248. package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
  249. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
  250. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
  251. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
  252. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
  253. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
  254. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
  255. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
  256. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
  257. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
  258. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
  259. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
  260. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
  261. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
  262. package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
  263. package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
  264. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
  265. package/dist/lib/components/index.d.ts +10 -0
  266. package/dist/package.json +31 -30
  267. package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
  268. package/dist/styles.css +1 -1
  269. package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
  270. package/package.json +31 -30
  271. package/dist/AnimatePresence-BsUYG9bm.js +0 -186
  272. package/dist/Checkbox-CrNxsm3G.js +0 -247
  273. package/dist/Counter-DN50BVq6.js +0 -194
  274. package/dist/DropdownButton-Blhkj-Oi.js +0 -490
  275. package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
  276. package/dist/Modal-Bk1I_NCC.js +0 -81
  277. package/dist/Spinner-smR3esbL.js +0 -47
  278. package/dist/Switch-CPE8v6Zh.js +0 -199
  279. package/dist/Toast-CRPLONv9.js +0 -77
  280. package/dist/components-z-LYRWfq.js +0 -124
  281. package/dist/dist-CNui_Egg.js +0 -451
  282. package/dist/dist-CR3FMRzF.js +0 -118
  283. package/dist/dist-D5Q2IYuC.js +0 -358
  284. package/dist/dist-D70ZJkHf.js +0 -29
  285. package/dist/dist-DZ_SU77k.js +0 -437
  286. package/dist/dist-LRkZdylX.js +0 -174
  287. package/dist/dist-f8EwfITY.js +0 -194
  288. package/dist/dist-pWlMx4Fi.js +0 -36
  289. package/dist/dist-uerXivvM.js +0 -178
  290. package/dist/dist-xCbHbMLA.js +0 -116
  291. package/dist/es2015-Hhb87ipX.js +0 -231
  292. package/dist/react-C685EsYG.js +0 -4730
@@ -1,6 +1,6 @@
1
1
  export declare const buttonVariants: (props?: ({
2
2
  variant?: "link" | "danger" | "primary" | "secondary" | "tertiary" | null | undefined;
3
- shape?: "circle" | null | undefined;
3
+ shape?: "circle" | "pill" | null | undefined;
4
4
  version?: "default" | "alternate" | null | undefined;
5
5
  disabled?: boolean | null | undefined;
6
6
  size?: "medium" | "large" | null | undefined;
@@ -0,0 +1,20 @@
1
+ import { FC } from 'react';
2
+ import { Props } from './CheckboxCard.types';
3
+ /**
4
+ * A card-style checkbox for multi-select options with a title and a description.
5
+ * The whole card is clickable and reflects the checked state on its border.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * <CheckboxCard
10
+ * name="events"
11
+ * value="instance.created"
12
+ * label="Instance created"
13
+ * description="Sent when a new instance finishes provisioning"
14
+ * checked={events.includes('instance.created')}
15
+ * onChange={(checked) => toggle('instance.created', checked)}
16
+ * />
17
+ * ```
18
+ */
19
+ declare const CheckboxCard: FC<Props>;
20
+ export { CheckboxCard };
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { Props as CheckboxProps } from '../Checkbox/Checkbox.types';
3
+ export type Props = Pick<CheckboxProps, 'checked' | 'className' | 'defaultChecked' | 'disabled' | 'id' | 'name' | 'theme' | 'value' | 'onChange'> & {
4
+ /** Additional CSS classes for the text column */
5
+ contentClassName?: string;
6
+ /** Secondary text displayed below the label */
7
+ description?: ReactNode;
8
+ /** Primary text of the option */
9
+ label: ReactNode;
10
+ /** Additional CSS classes for the card */
11
+ wrapperClassName?: string;
12
+ };
13
+ export type CheckboxCardProps = Props;
@@ -0,0 +1,19 @@
1
+ import { FC } from 'react';
2
+ import { Props } from './Collapse.types';
3
+ /**
4
+ * Animates its children between a collapsed and an expanded height,
5
+ * respecting `prefers-reduced-motion`. Overflow is only clipped while the
6
+ * animation runs, so dropdowns or tooltips inside the content are never cut.
7
+ *
8
+ * @example
9
+ * ```tsx
10
+ * <Button aria-expanded={isOpen} aria-controls="advanced" onClick={toggle}>
11
+ * Advanced options
12
+ * </Button>
13
+ * <Collapse id="advanced" isOpen={isOpen} keepMounted>
14
+ * <AdvancedOptions />
15
+ * </Collapse>
16
+ * ```
17
+ */
18
+ declare const Collapse: FC<Props>;
19
+ export { Collapse };
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ export type Props = {
3
+ children: ReactNode;
4
+ /** Additional CSS classes for the animated wrapper */
5
+ className?: string;
6
+ /** Margin applied while collapsed, so the closed state does not leave a gap */
7
+ collapsedMarginTop?: number | string;
8
+ /** Id of the animated region, to reference it from `aria-controls` */
9
+ id?: string;
10
+ /** Whether the content is expanded */
11
+ isOpen: boolean;
12
+ /** Keep the children mounted while collapsed (hidden and inert) instead of unmounting them */
13
+ keepMounted?: boolean;
14
+ /** Fired once the collapse animation has finished and the children are unmounted */
15
+ onExitComplete?: () => void;
16
+ };
17
+ export type CollapseProps = Props;
@@ -0,0 +1,23 @@
1
+ import { FC } from 'react';
2
+ import { Props } from './ConfirmDialog.types';
3
+ /**
4
+ * A confirmation dialog for destructive or important actions, optionally
5
+ * gated behind typing a confirmation text (usually the resource name).
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * <ConfirmDialog
10
+ * isOpen={isOpen}
11
+ * title={`Delete ${cluster.name}?`}
12
+ * description="This cannot be undone. All node pools will be removed."
13
+ * confirmationText={cluster.name}
14
+ * confirmLabel="Yes, delete"
15
+ * pendingLabel="Deleting…"
16
+ * isPending={isDeleting}
17
+ * onClose={() => setIsOpen(false)}
18
+ * onConfirm={deleteCluster}
19
+ * />
20
+ * ```
21
+ */
22
+ declare const ConfirmDialog: FC<Props>;
23
+ export { ConfirmDialog };
@@ -0,0 +1,46 @@
1
+ import { ReactNode } from 'react';
2
+ import { Theme } from '../../domain/theme';
3
+ import { Props as ButtonProps } from '../Button/Button.types';
4
+ export type Props = {
5
+ /** Label of the cancel button */
6
+ cancelLabel?: ReactNode;
7
+ /** Extra content rendered below the description, e.g. an Alert */
8
+ children?: ReactNode;
9
+ /** Additional CSS classes for the dialog panel */
10
+ className?: string;
11
+ /** Additional CSS classes for the input the user types the confirmation into */
12
+ confirmationInputClassName?: string;
13
+ /** Accessible name of the confirmation input; defaults to "Type <text> to confirm" */
14
+ confirmationInputLabel?: string;
15
+ /** Custom prompt rendered above the input; defaults to "Type <text> to confirm" with a copyable chip */
16
+ confirmationPrompt?: ReactNode;
17
+ /** When set, the confirm button stays disabled until the user types this exact text */
18
+ confirmationText?: string;
19
+ /** Label of the confirm button */
20
+ confirmLabel?: ReactNode;
21
+ /** Additional CSS classes for the overlay container, e.g. to raise its z-index */
22
+ containerClassName?: string;
23
+ /** Accessible name of the copy button next to the confirmation text */
24
+ copyLabel?: string;
25
+ /** Secondary text below the title */
26
+ description?: ReactNode;
27
+ /** Icon rendered next to the title; defaults to a warning icon coloured by `variant` */
28
+ icon?: ReactNode;
29
+ /** Whether the dialog is open */
30
+ isOpen: boolean;
31
+ /** Disables both buttons and swaps the confirm label for `pendingLabel` */
32
+ isPending?: boolean;
33
+ /** Label of the confirm button while `isPending` */
34
+ pendingLabel?: ReactNode;
35
+ /** Theme override for this component */
36
+ theme?: Theme;
37
+ /** Title of the dialog */
38
+ title: ReactNode;
39
+ /** Variant of the confirm button; also colours the default icon */
40
+ variant?: Extract<ButtonProps['variant'], 'danger' | 'primary'>;
41
+ /** Called when the user cancels, presses Escape or clicks the overlay */
42
+ onClose: () => void;
43
+ /** Called when the user confirms */
44
+ onConfirm: () => void;
45
+ };
46
+ export type ConfirmDialogProps = Props;
@@ -22,11 +22,14 @@ import { Props } from './Counter.types';
22
22
  * onChange={({ target }) => setNodes(target.value)}
23
23
  * />
24
24
  *
25
- * // Disabled increment/decrement
25
+ * // Stepping by 500 GB with a unit, price and helper text
26
26
  * <Counter
27
- * value={5}
28
- * canIncrement={value < max}
29
- * canDecrement={value > min}
27
+ * label="Size"
28
+ * value={size}
29
+ * step={500}
30
+ * unit="GB"
31
+ * labelAction={<span>$12.00/mo</span>}
32
+ * helperText="Increments of 500 GB"
30
33
  * onChange={handleChange}
31
34
  * />
32
35
  * ```
@@ -1,4 +1,5 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
+ import { ReactNode } from 'react';
2
3
  import { Theme } from '../../domain/theme';
3
4
  import { counterVariants } from './Counter.variants';
4
5
  /**
@@ -24,16 +25,34 @@ export interface Props extends VariantProps<typeof counterVariants> {
24
25
  className?: string;
25
26
  /** CSS classes for decrement button */
26
27
  decrementButtonClassName?: string;
28
+ /** Accessible label of the decrement button */
29
+ decrementLabel?: string;
30
+ /** Disable the whole control */
31
+ disabled?: boolean;
27
32
  /** Allow typing values directly into the input. Defaults to false (read-only) */
28
33
  editable?: boolean;
34
+ /** Error message displayed below the control */
35
+ error?: string;
36
+ /** Additional CSS classes for the error message */
37
+ errorClassName?: string;
38
+ /** Stretch the control to the width of its container */
39
+ fullWidth?: boolean;
40
+ /** Helper text displayed below the control when there is no error */
41
+ helperText?: string;
42
+ /** Additional CSS classes for the helper text */
43
+ helperTextClassName?: string;
29
44
  /** CSS classes for increment button */
30
45
  incrementButtonClassName?: string;
46
+ /** Accessible label of the increment button */
47
+ incrementLabel?: string;
31
48
  /** Initial value (deprecated, use value) */
32
49
  init?: number;
33
50
  /** Show required indicator */
34
51
  isRequired?: boolean;
35
52
  /** Label displayed above the counter */
36
53
  label?: string;
54
+ /** Content displayed at the right end of the label row */
55
+ labelAction?: ReactNode;
37
56
  /** Additional CSS classes for the label wrapper */
38
57
  labelWrapperClassName?: string;
39
58
  /** Maximum allowed value */
@@ -42,8 +61,12 @@ export interface Props extends VariantProps<typeof counterVariants> {
42
61
  min?: number;
43
62
  /** Form field name */
44
63
  name?: string;
64
+ /** Amount added or subtracted by the buttons. Defaults to 1 */
65
+ step?: number;
45
66
  /** Theme override for this component */
46
67
  theme?: Theme;
68
+ /** Unit displayed inside the field, after the value */
69
+ unit?: ReactNode;
47
70
  /** Current numeric value */
48
71
  value?: number;
49
72
  /** Callback when value changes */
@@ -1,6 +1,15 @@
1
- export declare const counterVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
1
+ export declare const fieldVariants: (props?: ({
2
+ fullWidth?: boolean | null | undefined;
3
+ hasError?: boolean | null | undefined;
4
+ disabled?: boolean | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export declare const counterVariants: (props?: ({
7
+ fullWidth?: boolean | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ export declare const unitVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
2
10
  export declare const buttonVariants: (props?: ({
3
11
  button?: "left" | "rigth" | null | undefined;
12
+ hasError?: boolean | null | undefined;
4
13
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
14
  export declare const labelVariants: (props?: ({
6
15
  variant?: "default" | null | undefined;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { Props } from '../../CalendarMonth.types';
3
+ export declare const CalendarMonthContent: FC<Props>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { Props } from '../../DatePicker.types';
3
+ export declare const DatePickerContent: FC<Props>;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { Props as ButtonProps } from '../Button/Button.types';
2
3
  /**
3
4
  * Configuration for a dropdown menu option.
4
5
  */
@@ -23,10 +24,16 @@ export type Option = {
23
24
  * ```
24
25
  */
25
26
  export type Props = {
27
+ /** Appearance of the trigger button */
28
+ appearance?: ButtonProps['appearance'];
26
29
  /** Additional CSS classes for the trigger button */
27
30
  buttonClassName?: string;
28
31
  /** Additional CSS classes for the wrapper container */
29
32
  className?: string;
33
+ /** Disable the trigger and keep the menu closed */
34
+ disabled?: boolean;
35
+ /** Show a spinner in place of the chevron and disable the trigger */
36
+ isLoading?: boolean;
30
37
  /** Additional CSS classes for each dropdown item */
31
38
  itemClassName?: string;
32
39
  /** Content of the trigger button */
@@ -35,4 +42,8 @@ export type Props = {
35
42
  listClassName?: string;
36
43
  /** Array of options to display in the dropdown */
37
44
  options: Option[];
45
+ /** Variant of the trigger button */
46
+ variant?: ButtonProps['variant'];
47
+ /** Version of the trigger button */
48
+ version?: ButtonProps['version'];
38
49
  };
@@ -1 +1,2 @@
1
1
  export * from './useFilterDropdownSync';
2
+ export * from './useLocale';
@@ -0,0 +1 @@
1
+ export declare const useLocale: (countryCode?: string) => string;
@@ -1 +1,2 @@
1
+ export declare const loadLocaleMap: () => Promise<void>;
1
2
  export declare const getLocale: (countryCode?: string) => string;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { Props } from '../../LineChart.types';
3
+ export declare const LineChartContent: FC<Props>;
@@ -19,6 +19,8 @@ import { modalVariants } from './components/Wrapper/Wrapper.variants';
19
19
  */
20
20
  export type Props = PropsWithChildren & VariantProps<typeof modalVariants> & {
21
21
  /** CSS classes for the close button */
22
+ ariaLabel?: string;
23
+ ariaLabelledBy?: string;
22
24
  buttonCloseClassName?: string;
23
25
  /** Additional CSS classes for the modal */
24
26
  className?: string;
@@ -4,6 +4,8 @@ import { PropsWithChildren } from 'react';
4
4
  import { Theme } from '../../../../domain/theme';
5
5
  import { modalVariants } from './Wrapper.variants';
6
6
  export type Props = PropsWithChildren & VariantProps<typeof modalVariants> & {
7
+ ariaLabel?: string;
8
+ ariaLabelledBy?: string;
7
9
  buttonCloseClassName?: string;
8
10
  className?: string;
9
11
  containerClassName?: string;
@@ -44,6 +44,16 @@ type OnBlurFn = (event: {
44
44
  * ```
45
45
  */
46
46
  export interface Props extends VariantProps<typeof multiSelectDropdownVariants>, Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'onBlur'> {
47
+ /** Disable opening the list and removing selections */
48
+ disabled?: boolean;
49
+ /** Error message displayed below the dropdown */
50
+ error?: string;
51
+ /** Additional CSS classes for the error message */
52
+ errorClassName?: string;
53
+ /** Helper text displayed below the dropdown when there is no error */
54
+ helperText?: string;
55
+ /** Additional CSS classes for the helper text */
56
+ helperTextClassName?: string;
47
57
  /** Whether the dropdown is in a loading state */
48
58
  isLoading?: boolean;
49
59
  /** Whether the field is required */
@@ -1,3 +1,6 @@
1
1
  export declare const wrapperVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
2
2
  export declare const labelVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
3
- export declare const multiSelectDropdownVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
3
+ export declare const multiSelectDropdownVariants: (props?: ({
4
+ hasError?: boolean | null | undefined;
5
+ disabled?: boolean | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,19 @@
1
+ import { FC } from 'react';
2
+ import { Props } from './OtpInput.types';
3
+ /**
4
+ * One-time code input split into one box per digit. The first box opts into
5
+ * SMS autofill (`autocomplete="one-time-code"`) and spreads a pasted or
6
+ * autofilled code across the boxes; Backspace, ArrowLeft and ArrowRight move
7
+ * between them.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * <OtpInput
12
+ * label="Verification code"
13
+ * error={verifyError}
14
+ * onComplete={(code) => verify(code)}
15
+ * />
16
+ * ```
17
+ */
18
+ declare const OtpInput: FC<Props>;
19
+ export { OtpInput };
@@ -0,0 +1,32 @@
1
+ import { Theme } from '../../domain/theme';
2
+ export type Props = {
3
+ /** Focus the first empty digit on mount */
4
+ autoFocus?: boolean;
5
+ /** Additional CSS classes for the fieldset */
6
+ className?: string;
7
+ /** Initial code for uncontrolled usage */
8
+ defaultValue?: string;
9
+ /** Accessible name of each digit input; receives the 1-based position */
10
+ digitLabel?: (position: number) => string;
11
+ /** Disable every digit input */
12
+ disabled?: boolean;
13
+ /** Error message announced below the inputs */
14
+ error?: string;
15
+ /** Additional CSS classes for each digit input */
16
+ inputClassName?: string;
17
+ /** Accessible name of the whole code field */
18
+ label: string;
19
+ /** Number of digits */
20
+ length?: number;
21
+ /** Form field name for the hidden input that carries the full code */
22
+ name?: string;
23
+ /** Theme override for this component */
24
+ theme?: Theme;
25
+ /** Controlled code */
26
+ value?: string;
27
+ /** Fired with the current code on every change */
28
+ onChange?: (code: string) => void;
29
+ /** Fired once every digit is filled */
30
+ onComplete?: (code: string) => void;
31
+ };
32
+ export type OtpInputProps = Props;
@@ -0,0 +1,20 @@
1
+ import { FC } from 'react';
2
+ import { Props } from './PasswordRules.types';
3
+ /**
4
+ * Lists password requirements and marks each one as met while the user types.
5
+ * The list is a live region and every rule carries a screen-reader status.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * <PasswordRules
10
+ * value={password}
11
+ * title="Your password must contain at least:"
12
+ * rules={[
13
+ * { id: 'length', label: '8 characters', test: (value) => value.length >= 8 },
14
+ * { id: 'number', label: 'one number', test: (value) => /\d/.test(value) },
15
+ * ]}
16
+ * />
17
+ * ```
18
+ */
19
+ declare const PasswordRules: FC<Props>;
20
+ export { PasswordRules };
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ import { Theme } from '../../domain/theme';
3
+ export type PasswordRule = {
4
+ id: string;
5
+ label: ReactNode;
6
+ test: (value: string) => boolean;
7
+ };
8
+ export type Props = {
9
+ /** Additional CSS classes for the list wrapper */
10
+ className?: string;
11
+ /** Screen-reader status appended to a satisfied rule */
12
+ metLabel?: string;
13
+ /** Screen-reader status appended to an unsatisfied rule */
14
+ pendingLabel?: string;
15
+ /** Rules to evaluate against `value` */
16
+ rules: PasswordRule[];
17
+ /** Theme override for this component */
18
+ theme?: Theme;
19
+ /** Heading rendered above the rules */
20
+ title?: ReactNode;
21
+ /** Current password */
22
+ value: string;
23
+ };
24
+ export type PasswordRulesProps = Props;
@@ -0,0 +1,18 @@
1
+ export declare const PhoneNumberInputContent: import('react').ForwardRefExoticComponent<import('react').InputHTMLAttributes<HTMLInputElement> & {
2
+ defaultCountryCode?: libphonenumber.RegionCode;
3
+ disabled?: boolean;
4
+ error?: string;
5
+ helperText?: string;
6
+ helperTextClassName?: string;
7
+ isRequired?: boolean;
8
+ label?: string;
9
+ labelClassName?: string;
10
+ labelWrapperClassName?: string;
11
+ name?: string;
12
+ placeholder?: string;
13
+ showFlagOnSearch?: boolean;
14
+ showInputFilter?: boolean;
15
+ showNameOnSearch?: boolean;
16
+ showPlaceHolder?: boolean;
17
+ wrapperClassName?: string;
18
+ } & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { Props } from '../../PieChart.types';
3
+ export declare const PieChartContent: FC<Props>;
@@ -14,6 +14,17 @@ import { Props } from './RadioCard.types';
14
14
  * checked={tier === 'enterprise'}
15
15
  * onChange={(value) => setTier(value)}
16
16
  * />
17
+ *
18
+ * <RadioCard
19
+ * name="network"
20
+ * value="existing"
21
+ * label="Existing network"
22
+ * tag="Recommended"
23
+ * hideIndicator
24
+ * checked={network === 'existing'}
25
+ * content={(checked) => checked && <Select options={networks} />}
26
+ * onChange={setNetwork}
27
+ * />
17
28
  * ```
18
29
  *
19
30
  * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-radiocard--docs Storybook}
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import { Theme } from '../../domain/theme';
2
3
  import { Props as CardProps } from '../Card/Card.types';
3
4
  import { Props as RadioProps } from '../Radio/Radio.types';
@@ -17,8 +18,16 @@ import { Props as RadioProps } from '../Radio/Radio.types';
17
18
  * />
18
19
  * ```
19
20
  */
20
- export type Props = Omit<CardProps, 'canHover' | 'isActive'> & Pick<RadioProps, 'name' | 'value' | 'checked' | 'onChange' | 'label' | 'disabled' | 'defaultChecked' | 'labelTextClassName' | 'description' | 'descriptionClassName'> & {
21
+ export type Props = Omit<CardProps, 'canHover' | 'isActive' | 'content' | 'onChange'> & Pick<RadioProps, 'name' | 'value' | 'checked' | 'onChange' | 'label' | 'disabled' | 'defaultChecked' | 'labelTextClassName' | 'description' | 'descriptionClassName'> & {
22
+ /** Interactive content rendered below the label, outside the selectable area; receives the checked state */
23
+ content?: ReactNode | ((checked: boolean) => ReactNode);
24
+ /** Additional CSS classes for the content wrapper */
25
+ contentClassName?: string;
26
+ /** Hide the radio indicator and let the card itself communicate the selection */
27
+ hideIndicator?: boolean;
21
28
  labelWrapperClassName?: string;
29
+ /** Short badge displayed next to the label */
30
+ tag?: string;
22
31
  theme?: Theme;
23
32
  };
24
33
  /** @deprecated Use Props instead */
@@ -1 +1,3 @@
1
- export declare const radioCardVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
1
+ export declare const radioCardVariants: (props?: ({
2
+ hasContent?: boolean | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -2,6 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import { CSSProperties, FC, PropsWithChildren } from 'react';
3
3
  import { ClassNames as DrawerClassNames } from '../Drawer/Drawer.types';
4
4
  import { Theme } from '../../domain/theme';
5
+ import { SidebarMode } from './contexts';
5
6
  import { SidebarModeProp } from './hooks/useSidebarMode';
6
7
  import { wrapperSiderbarVariants } from './Sidebar.variants';
7
8
  import { CollapseTriggerProps, FooterProps, LabelProps, LogoProps, NavigationGroupProps, NavigationOptionProps, NavigationProps, NavigationSeparatorProps } from './components';
@@ -114,7 +115,10 @@ export interface Props extends Omit<VariantProps<typeof wrapperSiderbarVariants>
114
115
  * micro-frontends.
115
116
  */
116
117
  style?: CSSProperties;
118
+ /** Fired when the effective mode changes, because the user toggled it or the viewport crossed a breakpoint */
119
+ onModeChange?: (mode: SidebarMode, source: SidebarModeChangeSource) => void;
117
120
  }
121
+ export type SidebarModeChangeSource = 'user' | 'viewport';
118
122
  /** @deprecated Use Props instead */
119
123
  export type SidebarProps = Props;
120
124
  /**
@@ -1,4 +1,6 @@
1
1
  export interface Props {
2
2
  className?: string;
3
+ /** Fired after the sidebar toggles, with the mode it switched to */
4
+ onToggle?: (mode: 'collapsed' | 'expanded') => void;
3
5
  }
4
6
  export type CollapseTriggerProps = Props;
@@ -2,9 +2,15 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import { ReactNode } from 'react';
3
3
  import { navigationOptionVariants } from './NavigationOption.variants';
4
4
  type NavigationOption = VariantProps<typeof navigationOptionVariants> & {
5
+ /** Content rendered at the end of the option in expanded mode, e.g. a Badge */
6
+ badge?: ReactNode;
5
7
  className?: string;
8
+ /** Delay in ms before `onIntent` fires on hover. Defaults to 80 */
9
+ intentDelay?: number;
6
10
  isVisible?: boolean;
7
11
  isActive?: boolean;
12
+ /** Fired when the user shows intent to navigate: hover (debounced), focus, pointer down or touch start. Useful for prefetching */
13
+ onIntent?: () => void;
8
14
  /**
9
15
  * Whether clicking this option should close the drawer when the Sidebar
10
16
  * is in `drawer` mode. Defaults to `true`. Has no effect in `expanded` or
@@ -1,3 +1,4 @@
1
1
  export declare const navigationOptionVariants: (props?: ({
2
2
  isActive?: boolean | null | undefined;
3
+ hasBadge?: boolean | null | undefined;
3
4
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ import { Props } from './Skeleton.types';
3
+ /**
4
+ * Pulsing placeholder blocks shown while content loads.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <Skeleton shape="text" count={3} label="Loading activity" />
9
+ * <Skeleton shape="circle" />
10
+ * <Skeleton className="h-8 w-40" />
11
+ * ```
12
+ */
13
+ declare const Skeleton: FC<Props>;
14
+ export { Skeleton };
@@ -0,0 +1,16 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Theme } from '../../domain/theme';
3
+ import { skeletonVariants } from './Skeleton.variants';
4
+ export interface Props extends VariantProps<typeof skeletonVariants> {
5
+ /** Additional CSS classes for each placeholder block, e.g. a width or height */
6
+ className?: string;
7
+ /** Number of placeholder blocks to render */
8
+ count?: number;
9
+ /** Accessible name announced while the content loads */
10
+ label?: string;
11
+ /** Theme override for this component */
12
+ theme?: Theme;
13
+ /** Additional CSS classes for the wrapper */
14
+ wrapperClassName?: string;
15
+ }
16
+ export type SkeletonProps = Props;
@@ -0,0 +1,3 @@
1
+ export declare const skeletonVariants: (props?: ({
2
+ shape?: "text" | "rect" | "circle" | null | undefined;
3
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -56,6 +56,8 @@ export type Props = VariantProps<typeof stepperVariants> & {
56
56
  clickable?: boolean;
57
57
  /** Index of the current active step (0-based). When provided, step statuses are auto-calculated. */
58
58
  currentStep?: number;
59
+ /** Stretch the stepper to its container, distributing horizontal steps evenly */
60
+ fullWidth?: boolean;
59
61
  /** Custom icons for step statuses */
60
62
  icons?: StepperIcons;
61
63
  /** Show connector lines between steps */