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

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 (297) 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/Breadcrumb-CpXRb08J.js +93 -0
  4. package/dist/Checkbox-DRdyrKjk.js +252 -0
  5. package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
  6. package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
  7. package/dist/Counter-DMkXIsOO.js +229 -0
  8. package/dist/DropdownButton-JilCRLJY.js +92 -0
  9. package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
  10. package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
  11. package/dist/Modal-CysTe3zL.js +83 -0
  12. package/dist/Spinner-CTonkSzG.js +47 -0
  13. package/dist/Switch-5cdUxbhX.js +215 -0
  14. package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
  15. package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
  16. package/dist/components/Alert/Alert.js +45 -41
  17. package/dist/components/AlertDialog/AlertDialog.js +42 -42
  18. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  19. package/dist/components/AlertDialog/components/index.js +1 -1
  20. package/dist/components/Avatar/Avatar.js +37 -0
  21. package/dist/components/Avatar/Avatar.variants.js +25 -0
  22. package/dist/components/Avatar/hooks/index.js +5 -0
  23. package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
  24. package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
  25. package/dist/components/Badge/Badge.js +1 -1
  26. package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
  27. package/dist/components/BadgeGroup/hooks/index.js +4 -0
  28. package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
  29. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  30. package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
  31. package/dist/components/Breadcrumb/components/index.js +6 -4
  32. package/dist/components/Button/Button.js +25 -19
  33. package/dist/components/Button/Button.variants.js +4 -1
  34. package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
  35. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
  36. package/dist/components/Checkbox/Checkbox.js +1 -1
  37. package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
  38. package/dist/components/Collapse/Collapse.js +63 -0
  39. package/dist/components/Command/Command.js +5 -5
  40. package/dist/components/Command/components/Command.js +1 -1
  41. package/dist/components/Command/components/CommandEmpty.js +1 -1
  42. package/dist/components/Command/components/CommandGroup.js +1 -1
  43. package/dist/components/Command/components/CommandInput.js +1 -1
  44. package/dist/components/Command/components/CommandItem.js +1 -1
  45. package/dist/components/Command/components/CommandList.js +1 -1
  46. package/dist/components/Command/components/CommandSeparator.js +1 -1
  47. package/dist/components/Command/components/DialogContent.js +1 -1
  48. package/dist/components/Command/components/DialogOverlay.js +1 -1
  49. package/dist/components/Command/components/index.js +1 -1
  50. package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
  51. package/dist/components/CopyButton/CopyButton.js +29 -29
  52. package/dist/components/Counter/Counter.js +1 -1
  53. package/dist/components/Counter/Counter.variants.js +73 -16
  54. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
  55. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
  56. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
  57. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
  58. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
  59. package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
  60. package/dist/components/Datepicker/DatePicker.js +14 -49
  61. package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
  62. package/dist/components/Drawer/Drawer.js +18 -18
  63. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  64. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  65. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
  66. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
  67. package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
  68. package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
  69. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
  70. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
  71. package/dist/components/Filter/hooks/index.js +3 -1
  72. package/dist/components/Filter/hooks/useLocale.js +16 -0
  73. package/dist/components/Filter/utils/index.js +6 -2
  74. package/dist/components/LineChart/LineChart.js +18 -125
  75. package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
  76. package/dist/components/Modal/Modal.js +1 -1
  77. package/dist/components/Modal/components/Body/Body.js +1 -1
  78. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  79. package/dist/components/Modal/components/Header/Header.js +1 -1
  80. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  81. package/dist/components/Modal/components/index.js +1 -1
  82. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  83. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +22 -3
  84. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  85. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  86. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  87. package/dist/components/OtpInput/OtpInput.js +103 -0
  88. package/dist/components/PasswordRules/PasswordRules.js +51 -0
  89. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
  90. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  91. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
  92. package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
  93. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
  94. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  95. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  96. package/dist/components/PhoneNumberInput/contexts/index.js +4 -4
  97. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  98. package/dist/components/PieChart/PieChart.js +10 -53
  99. package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
  100. package/dist/components/ProgressBar/ProgressBar.js +10 -10
  101. package/dist/components/Radio/Radio.js +16 -16
  102. package/dist/components/Radio/Radio.variants.js +4 -1
  103. package/dist/components/RadioCard/RadioCard.js +36 -18
  104. package/dist/components/RadioCard/RadioCard.variants.js +9 -3
  105. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  106. package/dist/components/Range/Range.js +1 -1
  107. package/dist/components/Select/Select.js +2 -2
  108. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
  109. package/dist/components/Select/components/List/List.js +10 -10
  110. package/dist/components/Select/components/Wrapper.js +1 -1
  111. package/dist/components/Select/components/index.js +2 -2
  112. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +15 -15
  113. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  114. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
  115. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
  116. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
  117. package/dist/components/Sidebar/components/index.js +1 -1
  118. package/dist/components/Skeleton/Skeleton.js +18 -0
  119. package/dist/components/Skeleton/Skeleton.variants.js +25 -0
  120. package/dist/components/Slider/Slider.js +1 -1
  121. package/dist/components/Spinner/Spinner.js +1 -1
  122. package/dist/components/Stepper/Stepper.js +38 -29
  123. package/dist/components/Stepper/Stepper.variants.js +55 -19
  124. package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
  125. package/dist/components/Switch/Switch.js +1 -1
  126. package/dist/components/Tabs/Tabs.js +52 -24
  127. package/dist/components/Tabs/Tabs.variants.js +15 -6
  128. package/dist/components/Tabs/components/Content.js +6 -6
  129. package/dist/components/Tabs/components/List.js +10 -10
  130. package/dist/components/Tabs/components/Trigger.js +11 -10
  131. package/dist/components/Tag/Tag.js +1 -1
  132. package/dist/components/TagsInput/TagsInput.js +159 -0
  133. package/dist/components/Toast/Toast.js +68 -2
  134. package/dist/components/Toast/components/ToastCard/ToastCard.js +32 -32
  135. package/dist/components/Tooltip/Tooltip.js +32 -16
  136. package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
  137. package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
  138. package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
  139. package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
  140. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
  141. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
  142. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
  143. package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
  144. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
  145. package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
  146. package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
  147. package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
  148. package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
  149. package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
  150. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
  151. package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
  152. package/dist/components/VirtualizedTable/components/index.js +18 -12
  153. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  154. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  155. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  156. package/dist/components/VirtualizedTable/utils/index.js +4 -4
  157. package/dist/components/index.js +181 -155
  158. package/dist/components-B_SWqhCL.js +147 -0
  159. package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
  160. package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
  161. package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
  162. package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
  163. package/dist/dist-BCoDIdCt.js +429 -0
  164. package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
  165. package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
  166. package/dist/dist-Bh7M0KDN.js +367 -0
  167. package/dist/dist-BqDJX7m1.js +209 -0
  168. package/dist/dist-C0OhTLFV.js +31 -0
  169. package/dist/dist-C1a-68Kb.js +120 -0
  170. package/dist/dist-CK8FUUUn.js +125 -0
  171. package/dist/dist-CQSCPpFc.js +196 -0
  172. package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
  173. package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
  174. package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
  175. package/dist/dist-fPYIsxyx.js +465 -0
  176. package/dist/dist-rsFD9q_X.js +484 -0
  177. package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
  178. package/dist/dist-vDSmnSS_.js +41 -0
  179. package/dist/dist-vUCyiTQy.js +365 -0
  180. package/dist/es2015-ChhQTsb4.js +74 -0
  181. package/dist/index.js +194 -168
  182. package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
  183. package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
  184. package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
  185. package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
  186. package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
  187. package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
  188. package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
  189. package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
  190. package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
  191. package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
  192. package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
  193. package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
  194. package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
  195. package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
  196. package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
  197. package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
  198. package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
  199. package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
  200. package/dist/lib/components/Button/Button.variants.d.ts +1 -1
  201. package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
  202. package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
  203. package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
  204. package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
  205. package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
  206. package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
  207. package/dist/lib/components/Counter/Counter.d.ts +7 -4
  208. package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
  209. package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
  210. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
  211. package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
  212. package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
  213. package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
  214. package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
  215. package/dist/lib/components/Filter/utils/index.d.ts +1 -0
  216. package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
  217. package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
  218. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
  219. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
  220. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
  221. package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
  222. package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
  223. package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
  224. package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
  225. package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
  226. package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
  227. package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
  228. package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
  229. package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
  230. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
  231. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
  232. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
  233. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
  234. package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
  235. package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
  236. package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
  237. package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
  238. package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
  239. package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
  240. package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
  241. package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
  242. package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
  243. package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
  244. package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
  245. package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
  246. package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
  247. package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
  248. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
  249. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
  250. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
  251. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
  252. package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
  253. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
  254. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
  255. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
  256. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
  257. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
  258. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
  259. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
  260. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
  261. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
  262. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
  263. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
  264. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
  265. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
  266. package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
  267. package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
  268. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
  269. package/dist/lib/components/index.d.ts +10 -0
  270. package/dist/package.json +31 -30
  271. package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
  272. package/dist/styles.css +1 -1
  273. package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
  274. package/package.json +31 -30
  275. package/dist/AnimatePresence-BsUYG9bm.js +0 -186
  276. package/dist/Breadcrumb-CHi5-wVa.js +0 -81
  277. package/dist/Checkbox-CrNxsm3G.js +0 -247
  278. package/dist/Counter-DN50BVq6.js +0 -194
  279. package/dist/DropdownButton-Blhkj-Oi.js +0 -490
  280. package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
  281. package/dist/Modal-Bk1I_NCC.js +0 -81
  282. package/dist/Spinner-smR3esbL.js +0 -47
  283. package/dist/Switch-CPE8v6Zh.js +0 -199
  284. package/dist/Toast-CRPLONv9.js +0 -77
  285. package/dist/components-z-LYRWfq.js +0 -124
  286. package/dist/dist-CNui_Egg.js +0 -451
  287. package/dist/dist-CR3FMRzF.js +0 -118
  288. package/dist/dist-D5Q2IYuC.js +0 -358
  289. package/dist/dist-D70ZJkHf.js +0 -29
  290. package/dist/dist-DZ_SU77k.js +0 -437
  291. package/dist/dist-LRkZdylX.js +0 -174
  292. package/dist/dist-f8EwfITY.js +0 -194
  293. package/dist/dist-pWlMx4Fi.js +0 -36
  294. package/dist/dist-uerXivvM.js +0 -178
  295. package/dist/dist-xCbHbMLA.js +0 -116
  296. package/dist/es2015-Hhb87ipX.js +0 -231
  297. package/dist/react-C685EsYG.js +0 -4730
@@ -6,7 +6,7 @@ var a = r([
6
6
  "w-full",
7
7
  "relative",
8
8
  "cursor-pointer"
9
- ]), t = r(["cursor-pointer", "select-none"]), o = r([
9
+ ]), t = r(["cursor-pointer", "select-none"]), l = r([
10
10
  "min-h-9",
11
11
  "border",
12
12
  "cursor-pointer",
@@ -23,9 +23,28 @@ var a = r([
23
23
  "border-gray-200",
24
24
  "dark:border-metal-700",
25
25
  "dark:bg-metal-800"
26
- ]);
26
+ ], {
27
+ variants: {
28
+ hasError: {
29
+ true: ["border-red-600", "dark:border-red-500"],
30
+ false: []
31
+ },
32
+ disabled: {
33
+ true: [
34
+ "cursor-default",
35
+ "bg-gray-100",
36
+ "dark:bg-metal-700/80"
37
+ ],
38
+ false: []
39
+ }
40
+ },
41
+ defaultVariants: {
42
+ hasError: !1,
43
+ disabled: !1
44
+ }
45
+ });
27
46
  export {
28
47
  t as labelVariants,
29
- o as multiSelectDropdownVariants,
48
+ l as multiSelectDropdownVariants,
30
49
  a as wrapperVariants
31
50
  };
@@ -1,4 +1,4 @@
1
- import { r as o } from "../../../../components-z-LYRWfq.js";
1
+ import { r as o } from "../../../../components-B_SWqhCL.js";
2
2
  export {
3
3
  o as List
4
4
  };
@@ -1,4 +1,4 @@
1
- import { n as p } from "../../../../components-z-LYRWfq.js";
1
+ import { n as p } from "../../../../components-B_SWqhCL.js";
2
2
  export {
3
3
  p as Wrapper
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { Item as m } from "./Item/Item.js";
2
- import { n as p, r as t } from "../../../components-z-LYRWfq.js";
2
+ import { n as p, r as t } from "../../../components-B_SWqhCL.js";
3
3
  export {
4
4
  m as Item,
5
5
  t as List,
@@ -0,0 +1,103 @@
1
+ import { t as I } from "../../utils-DnIJruo0.js";
2
+ import { Typography as $ } from "../Typography/Typography.js";
3
+ import { useEffect as z, useId as B, useRef as S, useState as T } from "react";
4
+ import { jsx as f, jsxs as w } from "react/jsx-runtime";
5
+ var x = (c, u) => Array.from({ length: u }, (y, p) => c?.[p] ?? ""), _ = ({ autoFocus: c = !1, className: u, defaultValue: y, digitLabel: p = (l) => `Digit ${l}`, disabled: h = !1, error: m, inputClassName: N, label: j, length: a = 6, name: v, theme: A, value: D, onChange: C, onComplete: E }) => {
6
+ const l = `${B()}-error`, g = S([]), [K, M] = T(() => x(y, a)), o = D !== void 0 ? x(D, a) : K, s = typeof m == "string" && m.length > 0;
7
+ z(() => {
8
+ if (c) {
9
+ const e = o.findIndex((t) => t === "");
10
+ g.current[e === -1 ? a - 1 : e]?.focus();
11
+ }
12
+ }, [c]);
13
+ const n = (e) => {
14
+ const t = g.current[Math.min(Math.max(e, 0), a - 1)];
15
+ t?.focus(), t?.select();
16
+ }, b = (e) => {
17
+ M(e);
18
+ const t = e.join("");
19
+ C?.(t), e.every((r) => r !== "") && E?.(t);
20
+ }, k = (e, t) => {
21
+ const r = e.replace(/\D/g, "");
22
+ if (!r) return;
23
+ const i = [...o];
24
+ let d = t;
25
+ for (const P of r) {
26
+ if (d >= a) break;
27
+ i[d] = P, d += 1;
28
+ }
29
+ b(i), n(d);
30
+ }, R = (e, t) => {
31
+ const r = t.target.value.replace(/\D/g, "");
32
+ if (r.length > 1) {
33
+ k(r, e);
34
+ return;
35
+ }
36
+ const i = [...o];
37
+ i[e] = r, b(i), r && e < a - 1 && n(e + 1);
38
+ }, L = (e, t) => {
39
+ if (t.key === "Backspace" && !o[e] && e > 0) {
40
+ t.preventDefault();
41
+ const r = [...o];
42
+ r[e - 1] = "", b(r), n(e - 1);
43
+ return;
44
+ }
45
+ if (t.key === "ArrowLeft") {
46
+ t.preventDefault(), n(e - 1);
47
+ return;
48
+ }
49
+ t.key === "ArrowRight" && (t.preventDefault(), n(e + 1));
50
+ }, O = (e, t) => {
51
+ const r = t.clipboardData.getData("text");
52
+ r && (t.preventDefault(), k(r, e));
53
+ };
54
+ return /* @__PURE__ */ w("div", {
55
+ className: "flex flex-col gap-2",
56
+ "data-theme": A,
57
+ children: [/* @__PURE__ */ w("fieldset", {
58
+ className: I("flex gap-3 border-0 p-0", u),
59
+ "aria-describedby": s ? l : void 0,
60
+ "aria-invalid": s || void 0,
61
+ disabled: h,
62
+ children: [
63
+ /* @__PURE__ */ f("legend", {
64
+ className: "sr-only",
65
+ children: j
66
+ }),
67
+ o.map((e, t) => /* @__PURE__ */ f("input", {
68
+ ref: (r) => {
69
+ g.current[t] = r;
70
+ },
71
+ type: "text",
72
+ inputMode: "numeric",
73
+ autoComplete: t === 0 ? "one-time-code" : "off",
74
+ maxLength: t === 0 ? a : 1,
75
+ value: e,
76
+ disabled: h,
77
+ "aria-label": p(t + 1),
78
+ "aria-invalid": s || void 0,
79
+ className: I("size-10 rounded border bg-white text-center text-base text-slate-800 transition-all", "focus-visible:border-transparent focus-visible:outline-none focus-visible:ring-1", "disabled:cursor-not-allowed disabled:bg-gray-100", "dark:bg-metal-800 dark:text-metal-50 dark:disabled:bg-metal-900", s ? "border-red-600 focus-visible:ring-red-600 dark:border-red-500" : "border-gray-200 focus-visible:ring-aurora-500 dark:border-metal-700", N),
80
+ onChange: (r) => R(t, r),
81
+ onKeyDown: (r) => L(t, r),
82
+ onPaste: (r) => O(t, r),
83
+ onFocus: (r) => r.target.select()
84
+ }, t)),
85
+ v ? /* @__PURE__ */ f("input", {
86
+ type: "hidden",
87
+ name: v,
88
+ value: o.join("")
89
+ }) : null
90
+ ]
91
+ }), s ? /* @__PURE__ */ f($, {
92
+ component: "span",
93
+ id: l,
94
+ role: "alert",
95
+ className: "text-xs tracking-normal text-red-700 dark:text-red-400",
96
+ children: m
97
+ }) : null]
98
+ });
99
+ };
100
+ _.displayName = "KonstructOtpInput";
101
+ export {
102
+ _ as OtpInput
103
+ };
@@ -0,0 +1,51 @@
1
+ import { t as s } from "../../utils-DnIJruo0.js";
2
+ import { CheckAltIcon as x } from "../../assets/icons/components/CheckAlt.js";
3
+ import { Typography as i } from "../Typography/Typography.js";
4
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
5
+ var u = ({ className: r, metLabel: c = "met", pendingLabel: o = "pending", rules: m, theme: d, title: n, value: p }) => /* @__PURE__ */ l("div", {
6
+ "aria-live": "polite",
7
+ "data-theme": d,
8
+ className: s("flex flex-col gap-1", r),
9
+ children: [n ? /* @__PURE__ */ e(i, {
10
+ variant: "body3",
11
+ component: "p",
12
+ className: "text-slate-700 dark:text-metal-200",
13
+ children: n
14
+ }) : null, /* @__PURE__ */ e("ul", {
15
+ className: "m-0 flex list-none flex-col gap-1 p-0",
16
+ children: m.map((t) => {
17
+ const a = t.test(p);
18
+ return /* @__PURE__ */ l("li", {
19
+ "data-met": a,
20
+ className: "flex items-center gap-3",
21
+ children: [
22
+ /* @__PURE__ */ l("span", {
23
+ className: "relative inline-flex size-4 items-center justify-center",
24
+ children: [/* @__PURE__ */ e("span", {
25
+ "aria-hidden": "true",
26
+ className: s("absolute inset-0 inline-flex items-center justify-center leading-none text-slate-500 transition-all duration-200 ease-out dark:text-metal-400", a ? "scale-75 opacity-0" : "scale-100 opacity-100"),
27
+ children: "•"
28
+ }), /* @__PURE__ */ e(x, {
29
+ "aria-hidden": "true",
30
+ className: s("absolute inset-0 size-4 text-green-600 transition-all duration-200 ease-out dark:text-green-400", a ? "scale-100 opacity-100" : "scale-75 opacity-0")
31
+ })]
32
+ }),
33
+ /* @__PURE__ */ e(i, {
34
+ variant: "body3",
35
+ component: "span",
36
+ className: "text-slate-700 dark:text-metal-200",
37
+ children: t.label
38
+ }),
39
+ /* @__PURE__ */ e("span", {
40
+ className: "sr-only",
41
+ children: a ? c : o
42
+ })
43
+ ]
44
+ }, t.id);
45
+ })
46
+ })]
47
+ });
48
+ u.displayName = "KonstructPasswordRules";
49
+ export {
50
+ u as PasswordRules
51
+ };
@@ -1,14 +1,43 @@
1
- import { t as p } from "../../phone-number.provider-BASl9fGG.js";
2
- import { t } from "../../Wrapper-BxfB3BDa.js";
3
- import { forwardRef as f } from "react";
4
- import { jsx as r } from "react/jsx-runtime";
5
- var h = f(({ defaultCountryCode: o = "US", ...m }, e) => /* @__PURE__ */ r(p, {
6
- defaultCountryCode: o,
7
- children: /* @__PURE__ */ r(t, {
8
- ref: e,
9
- ...m
1
+ import { t as c } from "../../utils-DnIJruo0.js";
2
+ import { Typography as t } from "../Typography/Typography.js";
3
+ import { labelVariants as p, phoneNumberInputVariants as d } from "./PhoneNumberInput.variants.js";
4
+ import { Suspense as u, forwardRef as h, lazy as f } from "react";
5
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
6
+ var N = f(() => import("./components/PhoneNumberInputContent.js").then((a) => ({ default: a.PhoneNumberInputContent }))), v = ({ error: a, isRequired: r, label: n, labelClassName: s, labelWrapperClassName: m, wrapperClassName: o }) => {
7
+ const i = typeof a == "string" && a.length > 0;
8
+ return /* @__PURE__ */ l("div", {
9
+ className: "w-full flex flex-col gap-2",
10
+ "aria-busy": "true",
11
+ children: [n ? /* @__PURE__ */ e("div", {
12
+ className: c(m),
13
+ children: /* @__PURE__ */ l(t, {
14
+ component: "span",
15
+ className: p({ className: s }),
16
+ children: [n, r && /* @__PURE__ */ e(t, {
17
+ component: "span",
18
+ "aria-hidden": "true",
19
+ className: "text-red-600 dark:text-red-500 ml-1",
20
+ children: "*"
21
+ })]
22
+ })
23
+ }) : null, /* @__PURE__ */ e("div", {
24
+ className: d({
25
+ className: o,
26
+ variant: i ? "error" : "default"
27
+ }),
28
+ children: /* @__PURE__ */ e("div", {
29
+ className: "p-2 flex items-center gap-2.5",
30
+ children: /* @__PURE__ */ e("div", { className: "h-6 w-full" })
31
+ })
32
+ })]
33
+ });
34
+ }, P = h((a, r) => /* @__PURE__ */ e(u, {
35
+ fallback: /* @__PURE__ */ e(v, { ...a }),
36
+ children: /* @__PURE__ */ e(N, {
37
+ ref: r,
38
+ ...a
10
39
  })
11
40
  }));
12
41
  export {
13
- h as PhoneNumberInput
42
+ P as PhoneNumberInput
14
43
  };
@@ -1,4 +1,4 @@
1
- import { t as o } from "../../../../FlagSelectorList-ClKGwDpS.js";
1
+ import { t as o } from "../../../../FlagSelectorList-iZ3gUVpf.js";
2
2
  export {
3
3
  o as FlagSelectorList
4
4
  };
@@ -1,10 +1,10 @@
1
1
  import { t as i } from "../../../../Input-2M2I_H60.js";
2
2
  import { t as c } from "../../../../utils-DnIJruo0.js";
3
- import { t as d } from "../../../../FlagSelectorList-ClKGwDpS.js";
4
- import { usePhoneNumberContext as p } from "../../contexts/phone-number.hook.js";
3
+ import { usePhoneNumberContext as d } from "../../contexts/phone-number.hook.js";
4
+ import { t as p } from "../../../../FlagSelectorList-iZ3gUVpf.js";
5
5
  import { jsx as r, jsxs as h } from "react/jsx-runtime";
6
6
  var v = ({ placeholder: e = "Search", showFlagOnSearch: a, showInputFilter: o, showNameOnSearch: t, showPlaceHolder: m = !0 }) => {
7
- const { onChangeTermOfSearch: l } = p(), n = (s) => {
7
+ const { onChangeTermOfSearch: l } = d(), n = (s) => {
8
8
  l(s.target.value);
9
9
  };
10
10
  return /* @__PURE__ */ h("div", {
@@ -17,7 +17,7 @@ var v = ({ placeholder: e = "Search", showFlagOnSearch: a, showInputFilter: o, s
17
17
  placeholder: m ? e : void 0,
18
18
  onChange: n
19
19
  })
20
- }), /* @__PURE__ */ r(d, {
20
+ }), /* @__PURE__ */ r(p, {
21
21
  showFlagOnSearch: a,
22
22
  showNameOnSearch: t
23
23
  })]
@@ -0,0 +1,15 @@
1
+ import { t as m } from "../../../phone-number.provider-DnuL-yYF.js";
2
+ import { t as n } from "../../../Wrapper-ThpRi_Gg.js";
3
+ import { forwardRef as p } from "react";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ var a = p(({ defaultCountryCode: o = "US", ...e }, t) => /* @__PURE__ */ r(m, {
6
+ defaultCountryCode: o,
7
+ children: /* @__PURE__ */ r(n, {
8
+ ref: t,
9
+ ...e
10
+ })
11
+ }));
12
+ a.displayName = "PhoneNumberInputContent";
13
+ export {
14
+ a as PhoneNumberInputContent
15
+ };
@@ -1,31 +1,31 @@
1
1
  import { o as f } from "../../../../rolldown-runtime-Dw9YIBcH.js";
2
- import { a as u, i as b, n as m, o as p } from "../../../../dist-D5Q2IYuC.js";
3
- import { t as h } from "../../../../debounce-BdyZeJQk.js";
4
- import { useCallback as w, useEffect as i, useRef as g, useState as v } from "react";
2
+ import { a as u, o as b, r as m, t as p } from "../../../../dist-vUCyiTQy.js";
3
+ import { t as h } from "../../../../debounce-dMRJxNsT.js";
4
+ import { useCallback as T, useEffect as i, useRef as w, useState as g } from "react";
5
5
  import { jsx as s, jsxs as a } from "react/jsx-runtime";
6
- var k = /* @__PURE__ */ f(h(), 1), N = ({ text: r, prefix: n }) => {
7
- const o = g(null), [c, d] = v(!1), t = w(() => {
8
- const e = o.current;
6
+ var v = /* @__PURE__ */ f(h(), 1), R = ({ text: r, prefix: o }) => {
7
+ const n = w(null), [c, d] = g(!1), t = T(() => {
8
+ const e = n.current;
9
9
  e && d(e.scrollWidth > e.clientWidth);
10
10
  }, []);
11
11
  return i(() => {
12
- const e = new AbortController(), l = (0, k.default)(t, 300);
12
+ const e = new AbortController(), l = (0, v.default)(t, 300);
13
13
  return window.addEventListener("resize", l, { signal: e.signal }), () => {
14
14
  e.abort(), l.cancel();
15
15
  };
16
16
  }, [t]), i(() => {
17
17
  t();
18
- }, [r, t]), c ? /* @__PURE__ */ s(b, {
18
+ }, [r, t]), c ? /* @__PURE__ */ s(u, {
19
19
  delayDuration: 0,
20
- children: /* @__PURE__ */ a(u, { children: [/* @__PURE__ */ s(p, {
20
+ children: /* @__PURE__ */ a(p, { children: [/* @__PURE__ */ s(b, {
21
21
  asChild: !0,
22
22
  children: /* @__PURE__ */ a("span", {
23
- ref: o,
23
+ ref: n,
24
24
  className: "w-full truncate cursor-pointer",
25
25
  children: [
26
26
  r,
27
27
  " ",
28
- n
28
+ o
29
29
  ]
30
30
  })
31
31
  }), /* @__PURE__ */ a(m, {
@@ -35,18 +35,18 @@ var k = /* @__PURE__ */ f(h(), 1), N = ({ text: r, prefix: n }) => {
35
35
  children: [
36
36
  r,
37
37
  " ",
38
- n
38
+ o
39
39
  ]
40
40
  })] })
41
41
  }) : /* @__PURE__ */ a("span", {
42
- ref: o,
42
+ ref: n,
43
43
  className: "w-full truncate",
44
44
  children: [r, /* @__PURE__ */ s("span", {
45
45
  className: "text-slate-500",
46
- children: n
46
+ children: o
47
47
  })]
48
48
  });
49
49
  };
50
50
  export {
51
- N as TruncateText
51
+ R as TruncateText
52
52
  };
@@ -1,4 +1,4 @@
1
- import { t as p } from "../../../Wrapper-BxfB3BDa.js";
1
+ import { t as p } from "../../../Wrapper-ThpRi_Gg.js";
2
2
  export {
3
3
  p as Wrapper
4
4
  };
@@ -1,5 +1,5 @@
1
- import { t } from "../../../FlagSelectorList-ClKGwDpS.js";
2
- import { t as p } from "../../../Wrapper-BxfB3BDa.js";
1
+ import { t } from "../../../FlagSelectorList-iZ3gUVpf.js";
2
+ import { t as p } from "../../../Wrapper-ThpRi_Gg.js";
3
3
  export {
4
4
  t as FlagSelectorList,
5
5
  p as Wrapper
@@ -1,8 +1,8 @@
1
- import { PhoneNumberContext as r } from "./phone-number.context.js";
2
- import { t as m } from "../../../phone-number.provider-BASl9fGG.js";
1
+ import { t as r } from "../../../phone-number.provider-DnuL-yYF.js";
2
+ import { PhoneNumberContext as m } from "./phone-number.context.js";
3
3
  import { usePhoneNumberContext as n } from "./phone-number.hook.js";
4
4
  export {
5
- r as PhoneNumberContext,
6
- m as PhoneNumberProvider,
5
+ m as PhoneNumberContext,
6
+ r as PhoneNumberProvider,
7
7
  n as usePhoneNumberContext
8
8
  };
@@ -1,4 +1,4 @@
1
- import { t as o } from "../../../phone-number.provider-BASl9fGG.js";
1
+ import { t as o } from "../../../phone-number.provider-DnuL-yYF.js";
2
2
  export {
3
3
  o as PhoneNumberProvider
4
4
  };
@@ -1,55 +1,12 @@
1
- import { a as e } from "../../utils-DnIJruo0.js";
2
- import { a as A, r as T, t as j } from "../../dist-Dg3vyTx9.js";
3
- import { useMemo as i } from "react";
4
- import { jsx as k } from "react/jsx-runtime";
5
- A.register(T);
6
- var G = ({ values: d, colors: m = [e("--color-neutral-600"), e("--color-emerald-400")], borderColors: p = [e("--color-white"), e("--color-white")], borderWidth: h = 0, cutoutPercentage: x = 80, title: n, subtitle: s, titleFontSize: a = 16, subtitleFontSize: t = 14, titleColor: g = e("--color-gray-900"), subtitleColor: w = e("--color-gray-500"), titleFontWeight: u = "bold", subtitleFontWeight: y = "normal", redraw: $ = !0 }) => {
7
- const v = i(() => ({ datasets: [{
8
- data: d,
9
- backgroundColor: m,
10
- borderWidth: h,
11
- borderColor: p
12
- }] }), [
13
- p,
14
- h,
15
- m,
16
- d
17
- ]), C = i(() => ({
18
- plugins: { legend: { display: !1 } },
19
- cutout: `${x}%`,
20
- hover: { mode: null }
21
- }), [x]), D = i(() => {
22
- const l = [];
23
- return n && l.push({
24
- id: "titleCenter",
25
- beforeDraw(o) {
26
- const r = o.ctx, c = o.width, f = o.height;
27
- r.restore(), r.font = `${u} ${a}px sans-serif`, r.fillStyle = g, r.textAlign = "center", r.textBaseline = "middle", r.fillText(n, c / 2, f / 2 - (s ? a / 2 : 0)), r.save();
28
- }
29
- }), s && l.push({
30
- id: "subtitleCenter",
31
- beforeDraw(o) {
32
- const r = o.ctx, c = o.width, f = o.height;
33
- r.restore(), r.font = `${y} ${t}px sans-serif`, r.fillStyle = w, r.fillText(s, c / 2, f / 2 + t / 2), r.save();
34
- }
35
- }), l;
36
- }, [
37
- s,
38
- w,
39
- t,
40
- y,
41
- n,
42
- g,
43
- a,
44
- u
45
- ]);
46
- return /* @__PURE__ */ k(j, {
47
- data: v,
48
- options: C,
49
- plugins: D,
50
- redraw: $
51
- });
52
- };
1
+ import { Suspense as a, lazy as e } from "react";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ var l = e(() => import("./components/PieChartContent/PieChartContent.js").then((r) => ({ default: r.PieChartContent }))), n = (r) => /* @__PURE__ */ t(a, {
4
+ fallback: /* @__PURE__ */ t("div", {
5
+ className: "w-full h-full",
6
+ "aria-busy": "true"
7
+ }),
8
+ children: /* @__PURE__ */ t(l, { ...r })
9
+ });
53
10
  export {
54
- G as PieChart
11
+ n as PieChart
55
12
  };
@@ -0,0 +1,56 @@
1
+ import { a as e } from "../../../../utils-DnIJruo0.js";
2
+ import { a as j, r as A, t as B } from "../../../../dist-Dg3vyTx9.js";
3
+ import { useMemo as i } from "react";
4
+ import { jsx as T } from "react/jsx-runtime";
5
+ j.register(A);
6
+ var q = ({ values: d, colors: h = [e("--color-neutral-600"), e("--color-emerald-400")], borderColors: m = [e("--color-white"), e("--color-white")], borderWidth: p = 0, cutoutPercentage: x = 80, title: a, subtitle: n, titleFontSize: s = 16, subtitleFontSize: l = 14, titleColor: g = e("--color-gray-900"), subtitleColor: w = e("--color-gray-500"), titleFontWeight: u = "bold", subtitleFontWeight: y = "normal", redraw: C = !0 }) => {
7
+ const $ = i(() => ({ datasets: [{
8
+ data: d,
9
+ backgroundColor: h,
10
+ borderWidth: p,
11
+ borderColor: m
12
+ }] }), [
13
+ m,
14
+ p,
15
+ h,
16
+ d
17
+ ]), v = i(() => ({
18
+ plugins: { legend: { display: !1 } },
19
+ cutout: `${x}%`,
20
+ hover: { mode: null }
21
+ }), [x]), D = i(() => {
22
+ const t = [];
23
+ return a && t.push({
24
+ id: "titleCenter",
25
+ beforeDraw(o) {
26
+ const r = o.ctx, c = o.width, f = o.height;
27
+ r.restore(), r.font = `${u} ${s}px sans-serif`, r.fillStyle = g, r.textAlign = "center", r.textBaseline = "middle", r.fillText(a, c / 2, f / 2 - (n ? s / 2 : 0)), r.save();
28
+ }
29
+ }), n && t.push({
30
+ id: "subtitleCenter",
31
+ beforeDraw(o) {
32
+ const r = o.ctx, c = o.width, f = o.height;
33
+ r.restore(), r.font = `${y} ${l}px sans-serif`, r.fillStyle = w, r.fillText(n, c / 2, f / 2 + l / 2), r.save();
34
+ }
35
+ }), t;
36
+ }, [
37
+ n,
38
+ w,
39
+ l,
40
+ y,
41
+ a,
42
+ g,
43
+ s,
44
+ u
45
+ ]);
46
+ return /* @__PURE__ */ T(B, {
47
+ "aria-label": a ? [a, n].filter(Boolean).join(" ") : "Pie chart",
48
+ data: $,
49
+ options: v,
50
+ plugins: D,
51
+ redraw: C
52
+ });
53
+ };
54
+ export {
55
+ q as PieChartContent
56
+ };
@@ -1,23 +1,23 @@
1
- import { t as p } from "../../dist-DX0sBG3Q.js";
1
+ import { t as p } from "../../dist-C_jtUTU9.js";
2
2
  import { t as v } from "../../utils-DnIJruo0.js";
3
3
  import { progressBarFillVariants as x, progressBarTrackVariants as f } from "./ProgressBar.variants.js";
4
4
  import { jsx as a, jsxs as i } from "react/jsx-runtime";
5
- var b = ({ ariaLabel: m, className: o, fillClassName: l, leftContent: r, percent: d, rightContent: e, status: s, theme: t, trackClassName: n }) => {
6
- const c = Math.min(Math.max(d, 0), 100), h = r || e;
5
+ var b = ({ ariaLabel: m, className: d, fillClassName: l, leftContent: e, percent: o, rightContent: r, status: s, theme: n, trackClassName: t }) => {
6
+ const c = Math.min(Math.max(o, 0), 100), h = e || r;
7
7
  return /* @__PURE__ */ i("div", {
8
- className: v("flex flex-col gap-1 w-full", o),
9
- "data-theme": t,
8
+ className: v("flex flex-col gap-1 w-full", d),
9
+ "data-theme": n,
10
10
  children: [h && /* @__PURE__ */ i("div", {
11
11
  className: "flex items-center justify-between",
12
- children: [r && /* @__PURE__ */ a("div", {
12
+ children: [e && /* @__PURE__ */ a("div", {
13
13
  className: "overflow-hidden text-ellipsis whitespace-nowrap",
14
- children: r
15
- }), e && /* @__PURE__ */ a("div", {
16
- className: "text-right shrink-0",
17
14
  children: e
15
+ }), r && /* @__PURE__ */ a("div", {
16
+ className: "text-right shrink-0",
17
+ children: r
18
18
  })]
19
19
  }), /* @__PURE__ */ i("div", {
20
- className: f({ className: n }),
20
+ className: f({ className: t }),
21
21
  role: "progressbar",
22
22
  "aria-label": m,
23
23
  "aria-valuenow": c,
@@ -1,46 +1,46 @@
1
1
  import { t as a } from "../../utils-DnIJruo0.js";
2
- import { Typography as t } from "../Typography/Typography.js";
2
+ import { Typography as i } from "../Typography/Typography.js";
3
3
  import { labelRadioVariants as p, radioVariants as V, wrapperRadioVariants as b } from "./Radio.variants.js";
4
4
  import { forwardRef as j, useId as w } from "react";
5
5
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
- var F = j(({ checked: o = !1, className: d, defaultChecked: l, disabled: e, label: f, labelTextClassName: N, description: r, descriptionClassName: h, name: m, theme: x, value: i, wrapperClassName: R, onChange: y, onClick: g }, u) => {
7
- const n = `${w()}-${m}`;
6
+ var F = j(({ checked: o = !1, className: d, defaultChecked: l, disabled: r, label: f, labelTextClassName: N, description: e, descriptionClassName: h, name: m, theme: x, value: n, wrapperClassName: y, onChange: R, onClick: g }, u) => {
7
+ const t = `${w()}-${m}`;
8
8
  return /* @__PURE__ */ c("label", {
9
- htmlFor: n,
9
+ htmlFor: t,
10
10
  className: a(b({
11
- className: R,
12
- disabled: e || !1
11
+ className: y,
12
+ disabled: r || !1
13
13
  })),
14
14
  "data-theme": x,
15
15
  children: [
16
16
  /* @__PURE__ */ s("input", {
17
17
  ref: u,
18
- id: n,
18
+ id: t,
19
19
  type: "radio",
20
20
  name: m,
21
- value: i,
21
+ value: n,
22
22
  checked: o,
23
23
  defaultChecked: l,
24
- className: "hidden peer",
25
- onChange: () => y?.(i),
24
+ className: "sr-only peer",
25
+ onChange: () => R?.(n),
26
26
  onClick: g,
27
- disabled: e
27
+ disabled: r
28
28
  }),
29
29
  /* @__PURE__ */ s("span", { className: a(V({
30
30
  className: d,
31
- disabled: e || !1,
31
+ disabled: r || !1,
32
32
  checked: o || l || !1
33
33
  })) }),
34
34
  /* @__PURE__ */ c("div", {
35
- className: a(r && "flex flex-col gap-1"),
36
- children: [/* @__PURE__ */ s(t, {
35
+ className: a(e && "flex flex-col gap-1"),
36
+ children: [/* @__PURE__ */ s(i, {
37
37
  component: "span",
38
38
  className: a(p({ className: N })),
39
39
  children: f
40
- }), r && /* @__PURE__ */ s(t, {
40
+ }), e && /* @__PURE__ */ s(i, {
41
41
  component: "span",
42
42
  className: a(p({ className: h })),
43
- children: r
43
+ children: e
44
44
  })]
45
45
  })
46
46
  ]
@@ -32,7 +32,10 @@ var a = e([
32
32
  "h-4",
33
33
  "w-4",
34
34
  "peer-checked:before:h-[70%]",
35
- "peer-checked:before:w-[70%]"
35
+ "peer-checked:before:w-[70%]",
36
+ "peer-focus-visible:outline-2",
37
+ "peer-focus-visible:outline-offset-2",
38
+ "peer-focus-visible:outline-aurora-500"
36
39
  ], {
37
40
  variants: {
38
41
  disabled: {