@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
@@ -0,0 +1,484 @@
1
+ import { a as V, n as U } from "./dist-CK8FUUUn.js";
2
+ import { i as X, n as te } from "./dist-DbeY0Pzx.js";
3
+ import * as l from "react";
4
+ import { jsx as S } from "react/jsx-runtime";
5
+ var ne = Object.defineProperty, u = (r, e) => ne(r, "name", {
6
+ value: e,
7
+ configurable: !0
8
+ });
9
+ // @__NO_SIDE_EFFECTS__
10
+ function oe(r) {
11
+ const e = r + "CollectionProvider", [t, o] = X(e), [n, i] = t(e, {
12
+ collectionRef: { current: null },
13
+ itemMap: /* @__PURE__ */ new Map()
14
+ }), c = /* @__PURE__ */ u((v) => {
15
+ const { scope: m, children: x } = v, C = l.useRef(null), O = l.useRef(/* @__PURE__ */ new Map()).current;
16
+ return /* @__PURE__ */ S(n, {
17
+ scope: m,
18
+ itemMap: O,
19
+ collectionRef: C,
20
+ children: x
21
+ });
22
+ }, "CollectionProvider");
23
+ c.displayName = e;
24
+ const h = r + "CollectionSlot", N = U(h), w = l.forwardRef((v, m) => {
25
+ const { scope: x, children: C } = v, O = i(h, x), I = V(m, O.collectionRef);
26
+ return /* @__PURE__ */ S(N, {
27
+ ref: I,
28
+ children: C
29
+ });
30
+ });
31
+ w.displayName = h;
32
+ const p = r + "CollectionItemSlot", D = "data-radix-collection-item", W = U(p), k = l.forwardRef((v, m) => {
33
+ const { scope: x, children: C, ...O } = v, I = l.useRef(null), d = V(m, I), f = i(p, x);
34
+ return l.useEffect(() => (f.itemMap.set(I, {
35
+ ref: I,
36
+ ...O
37
+ }), () => {
38
+ f.itemMap.delete(I);
39
+ })), /* @__PURE__ */ S(W, {
40
+ [D]: "",
41
+ ref: d,
42
+ children: C
43
+ });
44
+ });
45
+ k.displayName = p;
46
+ function A(v) {
47
+ const m = i(r + "CollectionConsumer", v);
48
+ return l.useCallback(() => {
49
+ const x = m.collectionRef.current;
50
+ if (!x) return [];
51
+ const C = Array.from(x.querySelectorAll(`[${D}]`));
52
+ return Array.from(m.itemMap.values()).sort((O, I) => C.indexOf(O.ref.current) - C.indexOf(I.ref.current));
53
+ }, [m.collectionRef, m.itemMap]);
54
+ }
55
+ return u(A, "useCollection"), [
56
+ {
57
+ Provider: c,
58
+ Slot: w,
59
+ ItemSlot: k
60
+ },
61
+ A,
62
+ o
63
+ ];
64
+ }
65
+ u(oe, "createCollection");
66
+ var Q = /* @__PURE__ */ new WeakMap(), B = class P extends Map {
67
+ static {
68
+ u(this, "OrderedDict");
69
+ }
70
+ #e;
71
+ constructor(e) {
72
+ super(e), this.#e = [...super.keys()], Q.set(this, !0);
73
+ }
74
+ set(e, t) {
75
+ return Q.get(this) && !this.has(e) && this.#e.push(e), super.set(e, t), this;
76
+ }
77
+ insert(e, t, o) {
78
+ const n = this.has(t), i = n ? this.size : this.size + 1, c = J(e), h = c >= 0 ? Math.min(c, i - 1) : Math.max(i + c, 0);
79
+ if (n ? this.#e.indexOf(t) === h : h === this.size)
80
+ return this.set(t, o), this;
81
+ const N = this.#e.filter((p) => p !== t);
82
+ N.splice(h, 0, t);
83
+ const w = N.map((p) => [p, p === t ? o : this.get(p)]);
84
+ this.clear();
85
+ for (const [p, D] of w) this.set(p, D);
86
+ return this;
87
+ }
88
+ with(e, t, o) {
89
+ const n = new P(this);
90
+ return n.insert(e, t, o), n;
91
+ }
92
+ before(e) {
93
+ const t = this.#e.indexOf(e) - 1;
94
+ if (!(t < 0))
95
+ return this.entryAt(t);
96
+ }
97
+ setBefore(e, t, o) {
98
+ const n = this.#e.indexOf(e);
99
+ if (n === -1) return this;
100
+ const i = this.#e.indexOf(t), c = i !== -1 && i < n ? n - 1 : n;
101
+ return this.insert(c, t, o);
102
+ }
103
+ after(e) {
104
+ let t = this.#e.indexOf(e);
105
+ if (t = t === -1 || t === this.size - 1 ? -1 : t + 1, t !== -1)
106
+ return this.entryAt(t);
107
+ }
108
+ setAfter(e, t, o) {
109
+ const n = this.#e.indexOf(e);
110
+ if (n === -1) return this;
111
+ const i = this.#e.indexOf(t), c = i !== -1 && i <= n ? n : n + 1;
112
+ return this.insert(c, t, o);
113
+ }
114
+ first() {
115
+ return this.entryAt(0);
116
+ }
117
+ last() {
118
+ return this.entryAt(-1);
119
+ }
120
+ clear() {
121
+ return this.#e = [], super.clear();
122
+ }
123
+ delete(e) {
124
+ const t = super.delete(e);
125
+ return t && this.#e.splice(this.#e.indexOf(e), 1), t;
126
+ }
127
+ deleteAt(e) {
128
+ const t = this.keyAt(e);
129
+ return t !== void 0 ? this.delete(t) : !1;
130
+ }
131
+ at(e) {
132
+ const t = G(this.#e, e);
133
+ if (t !== void 0) return this.get(t);
134
+ }
135
+ entryAt(e) {
136
+ const t = G(this.#e, e);
137
+ if (t !== void 0) return [t, this.get(t)];
138
+ }
139
+ indexOf(e) {
140
+ return this.#e.indexOf(e);
141
+ }
142
+ keyAt(e) {
143
+ return G(this.#e, e);
144
+ }
145
+ from(e, t) {
146
+ const o = this.indexOf(e);
147
+ if (o === -1) return;
148
+ let n = o + t;
149
+ return n < 0 && (n = 0), n >= this.size && (n = this.size - 1), this.at(n);
150
+ }
151
+ keyFrom(e, t) {
152
+ const o = this.indexOf(e);
153
+ if (o === -1) return;
154
+ let n = o + t;
155
+ return n < 0 && (n = 0), n >= this.size && (n = this.size - 1), this.keyAt(n);
156
+ }
157
+ find(e, t) {
158
+ let o = 0;
159
+ for (const n of this) {
160
+ if (Reflect.apply(e, t, [
161
+ n,
162
+ o,
163
+ this
164
+ ])) return n;
165
+ o++;
166
+ }
167
+ }
168
+ findIndex(e, t) {
169
+ let o = 0;
170
+ for (const n of this) {
171
+ if (Reflect.apply(e, t, [
172
+ n,
173
+ o,
174
+ this
175
+ ])) return o;
176
+ o++;
177
+ }
178
+ return -1;
179
+ }
180
+ filter(e, t) {
181
+ const o = [];
182
+ let n = 0;
183
+ for (const i of this)
184
+ Reflect.apply(e, t, [
185
+ i,
186
+ n,
187
+ this
188
+ ]) && o.push(i), n++;
189
+ return new P(o);
190
+ }
191
+ map(e, t) {
192
+ const o = [];
193
+ let n = 0;
194
+ for (const i of this)
195
+ o.push([i[0], Reflect.apply(e, t, [
196
+ i,
197
+ n,
198
+ this
199
+ ])]), n++;
200
+ return new P(o);
201
+ }
202
+ reduce(...e) {
203
+ const [t, o] = e, n = e.length > 1;
204
+ if (!n && this.size === 0) throw new TypeError("Reduce of empty OrderedDict with no initial value");
205
+ let i = 0, c = o;
206
+ for (const h of this)
207
+ i === 0 && !n ? c = h : c = Reflect.apply(t, this, [
208
+ c,
209
+ h,
210
+ i,
211
+ this
212
+ ]), i++;
213
+ return c;
214
+ }
215
+ reduceRight(...e) {
216
+ const [t, o] = e, n = e.length > 1;
217
+ if (!n && this.size === 0) throw new TypeError("Reduce of empty OrderedDict with no initial value");
218
+ let i = o;
219
+ for (let c = this.size - 1; c >= 0; c--) {
220
+ const h = this.entryAt(c);
221
+ c === this.size - 1 && !n ? i = h : i = Reflect.apply(t, this, [
222
+ i,
223
+ h,
224
+ c,
225
+ this
226
+ ]);
227
+ }
228
+ return i;
229
+ }
230
+ sort(e) {
231
+ if (typeof e != "function") throw new TypeError("OrderedDict.sort requires a compare function");
232
+ const t = [...this.entries()].sort(e);
233
+ this.clear();
234
+ for (const [o, n] of t) this.set(o, n);
235
+ return this;
236
+ }
237
+ toSorted(e) {
238
+ if (typeof e != "function") throw new TypeError("OrderedDict.toSorted requires a compare function");
239
+ const t = [...this.entries()].sort(e);
240
+ return new P(t);
241
+ }
242
+ toReversed() {
243
+ const e = new P();
244
+ for (let t = this.size - 1; t >= 0; t--) {
245
+ const o = this.keyAt(t), n = this.get(o);
246
+ e.set(o, n);
247
+ }
248
+ return e;
249
+ }
250
+ toSpliced(...e) {
251
+ const t = [...this.entries()];
252
+ return t.splice(...e), new P(t);
253
+ }
254
+ slice(e, t) {
255
+ const o = new P();
256
+ for (const n of this.#e.slice(e, t)) o.set(n, this.get(n));
257
+ return o;
258
+ }
259
+ every(e, t) {
260
+ let o = 0;
261
+ for (const n of this) {
262
+ if (!Reflect.apply(e, t, [
263
+ n,
264
+ o,
265
+ this
266
+ ])) return !1;
267
+ o++;
268
+ }
269
+ return !0;
270
+ }
271
+ some(e, t) {
272
+ let o = 0;
273
+ for (const n of this) {
274
+ if (Reflect.apply(e, t, [
275
+ n,
276
+ o,
277
+ this
278
+ ])) return !0;
279
+ o++;
280
+ }
281
+ return !1;
282
+ }
283
+ };
284
+ function G(r, e) {
285
+ if ("at" in Array.prototype) return Array.prototype.at.call(r, e);
286
+ const t = Y(r, e);
287
+ return t === -1 ? void 0 : r[t];
288
+ }
289
+ u(G, "at");
290
+ function Y(r, e) {
291
+ const t = r.length, o = J(e), n = o >= 0 ? o : t + o;
292
+ return n < 0 || n >= t ? -1 : n;
293
+ }
294
+ u(Y, "toSafeIndex");
295
+ function J(r) {
296
+ return r !== r || r === 0 ? 0 : Math.trunc(r);
297
+ }
298
+ u(J, "toSafeInteger");
299
+ // @__NO_SIDE_EFFECTS__
300
+ function re(r) {
301
+ const e = r + "CollectionProvider", [t, o] = X(e), [n, i] = t(e);
302
+ n.displayName = r + "CollectionStableContextProvider";
303
+ const [c, h] = t(e);
304
+ c.displayName = r + "CollectionStatefulContextProvider";
305
+ const N = /* @__PURE__ */ u(({ state: d, ...f }) => d ? /* @__PURE__ */ S(p, {
306
+ ...f,
307
+ state: d
308
+ }) : /* @__PURE__ */ S(w, { ...f }), "CollectionProvider");
309
+ N.displayName = e;
310
+ const w = /* @__PURE__ */ u((d) => {
311
+ const f = C();
312
+ return /* @__PURE__ */ S(p, {
313
+ ...d,
314
+ state: f
315
+ });
316
+ }, "CollectionInit");
317
+ w.displayName = r + "CollectionInit";
318
+ const p = /* @__PURE__ */ u((d) => {
319
+ const { scope: f, children: b, state: L } = d, g = l.useRef(null), [y, z] = l.useState(null), T = V(g, z), [M, E] = L, q = l.useRef(new B()), H = l.useCallback(() => {
320
+ const R = q.current;
321
+ return K(R) || R.sort($), R;
322
+ }, []);
323
+ return l.useEffect(() => {
324
+ if (!y) return;
325
+ const R = ee(() => {
326
+ E((s) => {
327
+ const a = s.toSorted($);
328
+ return a.some(([_], j) => s.keyAt(j) !== _) ? a : s;
329
+ });
330
+ });
331
+ return R.observe(y, {
332
+ childList: !0,
333
+ subtree: !0
334
+ }), () => {
335
+ R.disconnect();
336
+ };
337
+ }, [y, E]), /* @__PURE__ */ S(n, {
338
+ scope: f,
339
+ collectionElementRef: T,
340
+ collectionElementRefObject: g,
341
+ getCollection: H,
342
+ setCollection: E,
343
+ registryRef: q,
344
+ children: /* @__PURE__ */ S(c, {
345
+ scope: f,
346
+ collectionElement: y,
347
+ collection: M,
348
+ children: b
349
+ })
350
+ });
351
+ }, "CollectionProviderImpl");
352
+ p.displayName = r + "CollectionProviderImpl";
353
+ const D = r + "CollectionSlot", W = U(D), k = l.forwardRef((d, f) => {
354
+ const { scope: b, children: L } = d, g = i(D, b), y = V(f, g.collectionElementRef);
355
+ return /* @__PURE__ */ S(W, {
356
+ ref: y,
357
+ children: L
358
+ });
359
+ });
360
+ k.displayName = D;
361
+ const A = r + "CollectionItemSlot", v = "data-radix-collection-item", m = U(A), x = l.forwardRef((d, f) => {
362
+ const { scope: b, children: L, ...g } = d, y = l.useRef(null), { setCollection: z, registryRef: T } = i(A, b), M = l.useRef(g);
363
+ Z(M.current, g) || (M.current = g);
364
+ const E = M.current, q = l.useCallback((s) => {
365
+ const a = T.current;
366
+ s ? a.set(s, {
367
+ ...M.current,
368
+ element: s
369
+ }) : y.current && a.delete(y.current);
370
+ }, [T]), H = V(f, q, y);
371
+ te(() => {
372
+ const s = y.current, a = T.current;
373
+ s && a.has(s) && a.set(s, {
374
+ ...E,
375
+ element: s
376
+ });
377
+ }, [E, T]);
378
+ const R = l.useRef(null);
379
+ return l.useEffect(() => {
380
+ const s = y.current, a = R.current;
381
+ (a?.element ?? null) === s && (!s || a?.itemData === E) || (R.current = s ? {
382
+ element: s,
383
+ itemData: E
384
+ } : null, z((_) => {
385
+ const j = new B(_);
386
+ return a && a.element !== s && j.delete(a.element), s && j.set(s, {
387
+ ...E,
388
+ element: s
389
+ }), j.sort($);
390
+ }));
391
+ }), l.useEffect(() => () => {
392
+ const s = R.current;
393
+ R.current = null, s && z((a) => {
394
+ if (!a.has(s.element)) return a;
395
+ const _ = new B(a);
396
+ return _.delete(s.element), _;
397
+ });
398
+ }, [z]), /* @__PURE__ */ S(m, {
399
+ [v]: "",
400
+ ref: H,
401
+ children: L
402
+ });
403
+ });
404
+ x.displayName = A;
405
+ function C() {
406
+ return l.useState(new B());
407
+ }
408
+ u(C, "useInitCollection");
409
+ function O(d) {
410
+ const { collection: f } = h(r + "CollectionConsumer", d);
411
+ return f;
412
+ }
413
+ u(O, "useCollection");
414
+ function I(d) {
415
+ const { getCollection: f } = i(r + "CollectionConsumer", d);
416
+ return f;
417
+ }
418
+ return u(I, "useGetCollection"), [{
419
+ Provider: N,
420
+ Slot: k,
421
+ ItemSlot: x
422
+ }, {
423
+ createCollectionScope: o,
424
+ useCollection: O,
425
+ useGetCollection: I,
426
+ useInitCollection: C
427
+ }];
428
+ }
429
+ u(re, "createCollection");
430
+ function Z(r, e) {
431
+ if (r === e) return !0;
432
+ if (typeof r != "object" || typeof e != "object" || r == null || e == null) return !1;
433
+ const t = Object.keys(r), o = Object.keys(e);
434
+ if (t.length !== o.length) return !1;
435
+ for (const n of t)
436
+ if (!Object.prototype.hasOwnProperty.call(e, n) || r[n] !== e[n]) return !1;
437
+ return !0;
438
+ }
439
+ u(Z, "shallowEqual");
440
+ function F(r, e) {
441
+ return !!(e.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_PRECEDING);
442
+ }
443
+ u(F, "isElementPreceding");
444
+ function K(r) {
445
+ let e;
446
+ for (const t of r.keys()) {
447
+ if (e) {
448
+ const o = e.compareDocumentPosition(t);
449
+ if (!(o & Node.DOCUMENT_POSITION_DISCONNECTED) && o & Node.DOCUMENT_POSITION_PRECEDING) return !1;
450
+ }
451
+ e = t;
452
+ }
453
+ return !0;
454
+ }
455
+ u(K, "isInDocumentOrder");
456
+ function $(r, e) {
457
+ return !r[1].element || !e[1].element ? 0 : F(r[1].element, e[1].element) ? -1 : 1;
458
+ }
459
+ u($, "sortByDocumentPosition");
460
+ function ee(r) {
461
+ return new MutationObserver((e) => {
462
+ for (const t of e) if (t.type === "childList") {
463
+ r();
464
+ return;
465
+ }
466
+ });
467
+ }
468
+ u(ee, "getChildListObserver");
469
+ var ie = Object.defineProperty, se = (r, e) => ie(r, "name", {
470
+ value: e,
471
+ configurable: !0
472
+ }), ce = {
473
+ LTR: "ltr",
474
+ RTL: "rtl"
475
+ }, le = l.createContext(void 0);
476
+ function ue(r) {
477
+ const e = l.useContext(le);
478
+ return r || e || ce.LTR;
479
+ }
480
+ se(ue, "useDirection");
481
+ export {
482
+ oe as n,
483
+ ue as t
484
+ };
@@ -1,4 +1,4 @@
1
- import { n as y } from "./dist-D-yS0HN8.js";
1
+ import { n as y } from "./dist-DbeY0Pzx.js";
2
2
  import * as o from "react";
3
3
  var P = Object.defineProperty, f = (n, e) => P(n, "name", {
4
4
  value: e,
@@ -0,0 +1,41 @@
1
+ import { n as b } from "./dist-DbeY0Pzx.js";
2
+ import * as u from "react";
3
+ var z = Object.defineProperty, h = (e, r) => z(e, "name", {
4
+ value: r,
5
+ configurable: !0
6
+ });
7
+ function S(e) {
8
+ const [r, i] = u.useState(void 0);
9
+ return b(() => {
10
+ if (e) {
11
+ i({
12
+ width: e.offsetWidth,
13
+ height: e.offsetHeight
14
+ });
15
+ let o = 0;
16
+ const f = new ResizeObserver((t) => {
17
+ if (!Array.isArray(t) || !t.length) return;
18
+ const d = t[0];
19
+ window.cancelAnimationFrame(o), o = window.requestAnimationFrame(() => {
20
+ let s, n;
21
+ if ("borderBoxSize" in d) {
22
+ const a = d.borderBoxSize, c = Array.isArray(a) ? a[0] : a;
23
+ s = c.inlineSize, n = c.blockSize;
24
+ } else
25
+ s = e.offsetWidth, n = e.offsetHeight;
26
+ i({
27
+ width: s,
28
+ height: n
29
+ });
30
+ });
31
+ });
32
+ return f.observe(e, { box: "border-box" }), () => {
33
+ window.cancelAnimationFrame(o), f.unobserve(e);
34
+ };
35
+ } else i(void 0);
36
+ }, [e]), r;
37
+ }
38
+ h(S, "useSize");
39
+ export {
40
+ S as t
41
+ };