@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,11 +1,11 @@
1
- import { n as Tt } from "./dist-DX0sBG3Q.js";
1
+ import { t as Tt } from "./dist-C_jtUTU9.js";
2
2
  import { t as J } from "./utils-DnIJruo0.js";
3
3
  import { t as Bt } from "./chevron-right-D4OkgIIT.js";
4
4
  import "./components/VirtualizedTable/constants/pagination.js";
5
5
  import { TableContext as qt } from "./components/VirtualizedTable/contexts/table.context.js";
6
- import { getTableId as Je } from "./components/VirtualizedTable/utils/get-table-id.js";
7
6
  import { t as fe } from "./events.types-BG1Uh8i6.js";
8
- import * as Le from "react";
7
+ import { getTableId as Pe } from "./components/VirtualizedTable/utils/get-table-id.js";
8
+ import * as De from "react";
9
9
  import { useCallback as z, useEffect as k, useMemo as U, useRef as b, useState as I } from "react";
10
10
  import { jsx as ce } from "react/jsx-runtime";
11
11
  import { useQuery as Nt } from "@tanstack/react-query";
@@ -358,12 +358,12 @@ var ut = (e, o, t) => e.getValue(o) === t;
358
358
  ut.autoRemove = (e) => A(e);
359
359
  var at = (e, o, t) => e.getValue(o) == t;
360
360
  at.autoRemove = (e) => A(e);
361
- var Te = (e, o, t) => {
361
+ var Be = (e, o, t) => {
362
362
  let [n, r] = t;
363
363
  const i = e.getValue(o);
364
364
  return i >= n && i <= r;
365
365
  };
366
- Te.resolveFilterValue = (e) => {
366
+ Be.resolveFilterValue = (e) => {
367
367
  let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
368
368
  if (i > l) {
369
369
  const s = i;
@@ -371,7 +371,7 @@ Te.resolveFilterValue = (e) => {
371
371
  }
372
372
  return [i, l];
373
373
  };
374
- Te.autoRemove = (e) => A(e) || A(e[0]) && A(e[1]);
374
+ Be.autoRemove = (e) => A(e) || A(e[0]) && A(e[1]);
375
375
  var H = {
376
376
  includesString: nt,
377
377
  includesStringSensitive: ot,
@@ -381,7 +381,7 @@ var H = {
381
381
  arrIncludesSome: st,
382
382
  equals: ut,
383
383
  weakEquals: at,
384
- inNumberRange: Te
384
+ inNumberRange: Be
385
385
  };
386
386
  function A(e) {
387
387
  return e == null || e === "";
@@ -488,7 +488,7 @@ var Zt = (e, o, t) => t.reduce((n, r) => {
488
488
  if (t.length === 1) return t[0];
489
489
  const n = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
490
490
  return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
491
- }, on = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), rn = (e, o) => new Set(o.map((t) => t.getValue(e))).size, ln = (e, o) => o.length, Pe = {
491
+ }, on = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), rn = (e, o) => new Set(o.map((t) => t.getValue(e))).size, ln = (e, o) => o.length, Ie = {
492
492
  sum: Zt,
493
493
  min: Jt,
494
494
  max: bt,
@@ -533,12 +533,12 @@ var Zt = (e, o, t) => t.reduce((n, r) => {
533
533
  };
534
534
  }, e.getAutoAggregationFn = () => {
535
535
  const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
536
- if (typeof n == "number") return Pe.sum;
537
- if (Object.prototype.toString.call(n) === "[object Date]") return Pe.extent;
536
+ if (typeof n == "number") return Ie.sum;
537
+ if (Object.prototype.toString.call(n) === "[object Date]") return Ie.extent;
538
538
  }, e.getAggregationFn = () => {
539
539
  var t, n;
540
540
  if (!e) throw new Error();
541
- return Ce(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : Pe[e.columnDef.aggregationFn];
541
+ return Ce(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : Ie[e.columnDef.aggregationFn];
542
542
  };
543
543
  },
544
544
  createTable: (e) => {
@@ -604,12 +604,12 @@ var an = {
604
604
  return un(i, t, n);
605
605
  }, C(e.options, "debugTable", "_getOrderColumnsFn"));
606
606
  }
607
- }, Ie = () => ({
607
+ }, Ve = () => ({
608
608
  left: [],
609
609
  right: []
610
610
  }), gn = {
611
611
  getInitialState: (e) => ({
612
- columnPinning: Ie(),
612
+ columnPinning: Ve(),
613
613
  ...e
614
614
  }),
615
615
  getDefaultOptions: (e) => ({ onColumnPinningChange: x("columnPinning", e) }),
@@ -668,7 +668,7 @@ var an = {
668
668
  createTable: (e) => {
669
669
  e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
670
670
  var t, n;
671
- return e.setColumnPinning(o ? Ie() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : Ie());
671
+ return e.setColumnPinning(o ? Ve() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : Ve());
672
672
  }, e.getIsSomeColumnsPinned = (o) => {
673
673
  var t;
674
674
  const n = e.getState().columnPinning;
@@ -694,7 +694,7 @@ var Se = {
694
694
  size: 150,
695
695
  minSize: 20,
696
696
  maxSize: Number.MAX_SAFE_INTEGER
697
- }, Ve = () => ({
697
+ }, xe = () => ({
698
698
  startOffset: null,
699
699
  startSize: null,
700
700
  deltaOffset: null,
@@ -705,7 +705,7 @@ var Se = {
705
705
  getDefaultColumnDef: () => Se,
706
706
  getInitialState: (e) => ({
707
707
  columnSizing: {},
708
- columnSizingInfo: Ve(),
708
+ columnSizingInfo: xe(),
709
709
  ...e
710
710
  }),
711
711
  getDefaultOptions: (e) => ({
@@ -757,9 +757,9 @@ var Se = {
757
757
  }, e.getResizeHandler = (t) => {
758
758
  const n = o.getColumn(e.column.id), r = n?.getCanResize();
759
759
  return (i) => {
760
- if (!n || !r || (i.persist == null || i.persist(), xe(i) && i.touches && i.touches.length > 1))
760
+ if (!n || !r || (i.persist == null || i.persist(), ye(i) && i.touches && i.touches.length > 1))
761
761
  return;
762
- const l = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], u = xe(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, d = (h, w) => {
762
+ const l = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], u = ye(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, d = (h, w) => {
763
763
  typeof w == "number" && (o.setColumnSizingInfo((_) => {
764
764
  var L, P;
765
765
  const V = o.options.columnResizeDirection === "rtl" ? -1 : 1, K = (w - ((L = _?.startOffset) != null ? L : 0)) * V, X = Math.max(K / ((P = _?.startSize) != null ? P : 0), -0.999999);
@@ -797,7 +797,7 @@ var Se = {
797
797
  c?.removeEventListener("touchmove", v.moveHandler), c?.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), f((w = h.touches[0]) == null ? void 0 : w.clientX);
798
798
  }
799
799
  }, $ = cn() ? { passive: !1 } : !1;
800
- xe(i) ? (c?.addEventListener("touchmove", v.moveHandler, $), c?.addEventListener("touchend", v.upHandler, $)) : (c?.addEventListener("mousemove", p.moveHandler, $), c?.addEventListener("mouseup", p.upHandler, $)), o.setColumnSizingInfo((h) => ({
800
+ ye(i) ? (c?.addEventListener("touchmove", v.moveHandler, $), c?.addEventListener("touchend", v.upHandler, $)) : (c?.addEventListener("mousemove", p.moveHandler, $), c?.addEventListener("mouseup", p.upHandler, $)), o.setColumnSizingInfo((h) => ({
801
801
  ...h,
802
802
  startOffset: u,
803
803
  startSize: l,
@@ -815,7 +815,7 @@ var Se = {
815
815
  e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
816
816
  }, e.resetHeaderSizeInfo = (o) => {
817
817
  var t;
818
- e.setColumnSizingInfo(o ? Ve() : (t = e.initialState.columnSizingInfo) != null ? t : Ve());
818
+ e.setColumnSizingInfo(o ? xe() : (t = e.initialState.columnSizingInfo) != null ? t : xe());
819
819
  }, e.getTotalSize = () => {
820
820
  var o, t;
821
821
  return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
@@ -845,7 +845,7 @@ function cn() {
845
845
  }
846
846
  return me = e, me;
847
847
  }
848
- function xe(e) {
848
+ function ye(e) {
849
849
  return e.type === "touchstart";
850
850
  }
851
851
  var pn = {
@@ -1021,14 +1021,14 @@ var Sn = { createTable: (e) => {
1021
1021
  };
1022
1022
  };
1023
1023
  }
1024
- }, De = 0, He = 10, ye = () => ({
1025
- pageIndex: De,
1026
- pageSize: He
1024
+ }, He = 0, Ge = 10, Ee = () => ({
1025
+ pageIndex: He,
1026
+ pageSize: Ge
1027
1027
  }), vn = {
1028
1028
  getInitialState: (e) => ({
1029
1029
  ...e,
1030
1030
  pagination: {
1031
- ...ye(),
1031
+ ...Ee(),
1032
1032
  ...e?.pagination
1033
1033
  }
1034
1034
  }),
@@ -1054,7 +1054,7 @@ var Sn = { createTable: (e) => {
1054
1054
  return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
1055
1055
  }, e.resetPagination = (n) => {
1056
1056
  var r;
1057
- e.setPagination(n ? ye() : (r = e.initialState.pagination) != null ? r : ye());
1057
+ e.setPagination(n ? Ee() : (r = e.initialState.pagination) != null ? r : Ee());
1058
1058
  }, e.setPageIndex = (n) => {
1059
1059
  e.setPagination((r) => {
1060
1060
  let i = T(n, r.pageIndex);
@@ -1066,10 +1066,10 @@ var Sn = { createTable: (e) => {
1066
1066
  });
1067
1067
  }, e.resetPageIndex = (n) => {
1068
1068
  var r, i;
1069
- e.setPageIndex(n ? De : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : De);
1069
+ e.setPageIndex(n ? He : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : He);
1070
1070
  }, e.resetPageSize = (n) => {
1071
1071
  var r, i;
1072
- e.setPageSize(n ? He : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : He);
1072
+ e.setPageSize(n ? Ge : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : Ge);
1073
1073
  }, e.setPageSize = (n) => {
1074
1074
  e.setPagination((r) => {
1075
1075
  const i = Math.max(1, T(n, r.pageSize)), l = r.pageSize * r.pageIndex, s = Math.floor(l / i);
@@ -1100,12 +1100,12 @@ var Sn = { createTable: (e) => {
1100
1100
  return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
1101
1101
  };
1102
1102
  }
1103
- }, Ee = () => ({
1103
+ }, Ae = () => ({
1104
1104
  top: [],
1105
1105
  bottom: []
1106
1106
  }), Rn = {
1107
1107
  getInitialState: (e) => ({
1108
- rowPinning: Ee(),
1108
+ rowPinning: Ae(),
1109
1109
  ...e
1110
1110
  }),
1111
1111
  getDefaultOptions: (e) => ({ onRowPinningChange: x("rowPinning", e) }),
@@ -1164,7 +1164,7 @@ var Sn = { createTable: (e) => {
1164
1164
  createTable: (e) => {
1165
1165
  e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
1166
1166
  var t, n;
1167
- return e.setRowPinning(o ? Ee() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : Ee());
1167
+ return e.setRowPinning(o ? Ae() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : Ae());
1168
1168
  }, e.getIsSomeRowsPinned = (o) => {
1169
1169
  var t;
1170
1170
  const n = e.getState().rowPinning;
@@ -1219,17 +1219,17 @@ var Sn = { createTable: (e) => {
1219
1219
  }, e.toggleAllPageRowsSelected = (o) => e.setRowSelection((t) => {
1220
1220
  const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), r = { ...t };
1221
1221
  return e.getRowModel().rows.forEach((i) => {
1222
- Ge(r, i.id, n, !0, e);
1222
+ Oe(r, i.id, n, !0, e);
1223
1223
  }), r;
1224
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? Ae(e, t) : {
1224
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? Le(e, t) : {
1225
1225
  rows: [],
1226
1226
  flatRows: [],
1227
1227
  rowsById: {}
1228
- }, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? Ae(e, t) : {
1228
+ }, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? Le(e, t) : {
1229
1229
  rows: [],
1230
1230
  flatRows: [],
1231
1231
  rowsById: {}
1232
- }, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? Ae(e, t) : {
1232
+ }, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? Le(e, t) : {
1233
1233
  rows: [],
1234
1234
  flatRows: [],
1235
1235
  rowsById: {}
@@ -1261,17 +1261,17 @@ var Sn = { createTable: (e) => {
1261
1261
  var l;
1262
1262
  if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t) return i;
1263
1263
  const s = { ...i };
1264
- return Ge(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
1264
+ return Oe(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
1265
1265
  });
1266
1266
  }, e.getIsSelected = () => {
1267
1267
  const { rowSelection: t } = o.getState();
1268
- return Be(e, t);
1268
+ return qe(e, t);
1269
1269
  }, e.getIsSomeSelected = () => {
1270
1270
  const { rowSelection: t } = o.getState();
1271
- return Oe(e, t) === "some";
1271
+ return ze(e, t) === "some";
1272
1272
  }, e.getIsAllSubRowsSelected = () => {
1273
1273
  const { rowSelection: t } = o.getState();
1274
- return Oe(e, t) === "all";
1274
+ return ze(e, t) === "all";
1275
1275
  }, e.getCanSelect = () => {
1276
1276
  var t;
1277
1277
  return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
@@ -1289,16 +1289,16 @@ var Sn = { createTable: (e) => {
1289
1289
  };
1290
1290
  };
1291
1291
  }
1292
- }, Ge = (e, o, t, n, r) => {
1292
+ }, Oe = (e, o, t, n, r) => {
1293
1293
  var i;
1294
1294
  const l = r.getRow(o, !0);
1295
- t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => Ge(e, s.id, t, n, r));
1295
+ t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => Oe(e, s.id, t, n, r));
1296
1296
  };
1297
- function Ae(e, o) {
1297
+ function Le(e, o) {
1298
1298
  const t = e.getState().rowSelection, n = [], r = {}, i = function(l, s) {
1299
1299
  return l.map((u) => {
1300
1300
  var a;
1301
- const d = Be(u, t);
1301
+ const d = qe(u, t);
1302
1302
  if (d && (n.push(u), r[u.id] = u), (a = u.subRows) != null && a.length && (u = {
1303
1303
  ...u,
1304
1304
  subRows: i(u.subRows)
@@ -1311,33 +1311,33 @@ function Ae(e, o) {
1311
1311
  rowsById: r
1312
1312
  };
1313
1313
  }
1314
- function Be(e, o) {
1314
+ function qe(e, o) {
1315
1315
  var t;
1316
1316
  return (t = o[e.id]) != null ? t : !1;
1317
1317
  }
1318
- function Oe(e, o, t) {
1318
+ function ze(e, o, t) {
1319
1319
  var n;
1320
1320
  if (!((n = e.subRows) != null && n.length)) return !1;
1321
1321
  let r = !0, i = !1;
1322
1322
  return e.subRows.forEach((l) => {
1323
- if (!(i && !r) && (l.getCanSelect() && (Be(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
1324
- const s = Oe(l, o);
1323
+ if (!(i && !r) && (l.getCanSelect() && (qe(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
1324
+ const s = ze(l, o);
1325
1325
  s === "all" ? i = !0 : (s === "some" && (i = !0), r = !1);
1326
1326
  }
1327
1327
  }), r ? "all" : i ? "some" : !1;
1328
1328
  }
1329
- var ze = /([0-9]+)/gm, wn = (e, o, t) => gt(B(e.getValue(t)).toLowerCase(), B(o.getValue(t)).toLowerCase()), _n = (e, o, t) => gt(B(e.getValue(t)), B(o.getValue(t))), Fn = (e, o, t) => qe(B(e.getValue(t)).toLowerCase(), B(o.getValue(t)).toLowerCase()), $n = (e, o, t) => qe(B(e.getValue(t)), B(o.getValue(t))), Mn = (e, o, t) => {
1329
+ var Te = /([0-9]+)/gm, wn = (e, o, t) => gt(B(e.getValue(t)).toLowerCase(), B(o.getValue(t)).toLowerCase()), _n = (e, o, t) => gt(B(e.getValue(t)), B(o.getValue(t))), Fn = (e, o, t) => Ne(B(e.getValue(t)).toLowerCase(), B(o.getValue(t)).toLowerCase()), $n = (e, o, t) => Ne(B(e.getValue(t)), B(o.getValue(t))), Mn = (e, o, t) => {
1330
1330
  const n = e.getValue(t), r = o.getValue(t);
1331
1331
  return n > r ? 1 : n < r ? -1 : 0;
1332
- }, Pn = (e, o, t) => qe(e.getValue(t), o.getValue(t));
1333
- function qe(e, o) {
1332
+ }, Pn = (e, o, t) => Ne(e.getValue(t), o.getValue(t));
1333
+ function Ne(e, o) {
1334
1334
  return e === o ? 0 : e > o ? 1 : -1;
1335
1335
  }
1336
1336
  function B(e) {
1337
1337
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
1338
1338
  }
1339
1339
  function gt(e, o) {
1340
- const t = e.split(ze).filter(Boolean), n = o.split(ze).filter(Boolean);
1340
+ const t = e.split(Te).filter(Boolean), n = o.split(Te).filter(Boolean);
1341
1341
  for (; t.length && n.length; ) {
1342
1342
  const r = t.shift(), i = n.shift(), l = parseInt(r, 10), s = parseInt(i, 10), u = [l, s].sort();
1343
1343
  if (isNaN(u[0])) {
@@ -1378,7 +1378,7 @@ var ee = {
1378
1378
  for (const r of t) {
1379
1379
  const i = r?.getValue(e.id);
1380
1380
  if (Object.prototype.toString.call(i) === "[object Date]") return ee.datetime;
1381
- if (typeof i == "string" && (n = !0, i.split(ze).length > 1))
1381
+ if (typeof i == "string" && (n = !0, i.split(Te).length > 1))
1382
1382
  return ee.alphanumeric;
1383
1383
  }
1384
1384
  return n ? ee.text : ee.basic;
@@ -1623,7 +1623,7 @@ function En() {
1623
1623
  }, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
1624
1624
  }
1625
1625
  function Qn(e, o) {
1626
- return e ? An(e) ? /* @__PURE__ */ Le.createElement(e, o) : e : null;
1626
+ return e ? An(e) ? /* @__PURE__ */ De.createElement(e, o) : e : null;
1627
1627
  }
1628
1628
  function An(e) {
1629
1629
  return Ln(e) || typeof e == "function" || Dn(e);
@@ -1644,7 +1644,7 @@ function Hn(e) {
1644
1644
  },
1645
1645
  renderFallbackValue: null,
1646
1646
  ...e
1647
- }, [t] = Le.useState(() => ({ current: xn(o) })), [n, r] = Le.useState(() => t.current.initialState);
1647
+ }, [t] = De.useState(() => ({ current: xn(o) })), [n, r] = De.useState(() => t.current.initialState);
1648
1648
  return t.current.setOptions((i) => ({
1649
1649
  ...i,
1650
1650
  ...e,
@@ -1668,7 +1668,7 @@ var tt = [
1668
1668
  const o = e();
1669
1669
  return o === void 0 || o === "all" ? o : [.../* @__PURE__ */ new Set([...o, ...tt])];
1670
1670
  } : [.../* @__PURE__ */ new Set([...e, ...tt])], Yn = ({ children: e, classNameExpandedCell: o, classNameExpandedContent: t, classNameExpandedRow: n, classNameExpandedHeader: r, classNameActiveExpandedRow: i, classNameHoverRow: l, columns: s = [], data: u = [], defaultExpanded: a, enableExpandedRow: d, enableHoverRow: g, expandedState: f, headerContent: c, id: p, isPaginationEnabled: v, queryOptions: $ = {}, totalItems: h, getRowId: w, fetchData: _, onExpandedChange: L, renderExpandedRow: P, keepExpandColumnVisible: V }) => {
1671
- const [K, X] = I([]), [ve, Re] = I(!!_), [j, W] = I(0), [ne, dt] = I(), [oe, ft] = I(10), [ct, pt] = I(h), Ne = _ ? ct : h, St = Math.ceil(Ne / oe), [re, mt] = I({}), [ie, Ct] = I({}), [le, vt] = I({}), [se, Rt] = I({}), ht = () => {
1671
+ const [K, X] = I([]), [ve, Re] = I(!!_), [j, W] = I(0), [ne, dt] = I(), [oe, ft] = I(10), [ct, pt] = I(h), je = _ ? ct : h, St = Math.ceil(je / oe), [re, mt] = I({}), [ie, Ct] = I({}), [le, vt] = I({}), [se, Rt] = I({}), ht = () => {
1672
1672
  const S = typeof p == "string" || typeof p == "number" ? [p] : [...p];
1673
1673
  return v && S.push(j, oe), ne && S.push(ne), Object.entries(re).forEach(([R, F]) => {
1674
1674
  S.push(`${R}:${F.join(",")}`);
@@ -1679,20 +1679,20 @@ var tt = [
1679
1679
  }), Object.entries(se).forEach(([R, F]) => {
1680
1680
  F && S.push(`${R}:${F}`);
1681
1681
  }), S;
1682
- }, { notifyOnChangeProps: wt, ...je } = $, ke = b({}), Ue = b(!1), G = Nt({
1682
+ }, { notifyOnChangeProps: wt, ...ke } = $, Ue = b({}), Ke = b(!1), G = Nt({
1683
1683
  refetchOnMount: !1,
1684
1684
  refetchOnWindowFocus: !1,
1685
- ...je,
1685
+ ...ke,
1686
1686
  notifyOnChangeProps: On(wt),
1687
1687
  queryKey: ht(),
1688
1688
  enabled: (S) => {
1689
1689
  if (!_) return !1;
1690
- const { enabled: R } = je;
1690
+ const { enabled: R } = ke;
1691
1691
  return typeof R == "function" ? !!R(S) : R ?? !0;
1692
1692
  },
1693
1693
  initialData: () => {
1694
- if (!(Ue.current || u.length === 0))
1695
- return Ue.current = !0, u;
1694
+ if (!(Ke.current || u.length === 0))
1695
+ return Ke.current = !0, u;
1696
1696
  },
1697
1697
  queryFn: async ({ signal: S }) => {
1698
1698
  const { data: R, totalItemsCount: F } = await _({
@@ -1704,15 +1704,15 @@ var tt = [
1704
1704
  ...Object.keys(le).length > 0 ? le : {},
1705
1705
  ...Object.keys(se).length > 0 ? se : {}
1706
1706
  }, S);
1707
- return ke.current = { totalItemsCount: F }, R;
1707
+ return Ue.current = { totalItemsCount: F }, R;
1708
1708
  }
1709
- }), [_t, Ke] = I(!1), he = b(0), Xe = b(!0), We = b(G.refetch);
1710
- We.current = G.refetch;
1711
- const Q = _ ? G.data ?? Gn : u, Ft = _ ? G.isLoading : !1, $t = _ ? G.isFetching : !1, Mt = _ ? G.error : null, Qe = !!c;
1709
+ }), [_t, Xe] = I(!1), he = b(0), We = b(!0), Qe = b(G.refetch);
1710
+ Qe.current = G.refetch;
1711
+ const Q = _ ? G.data ?? Gn : u, Ft = _ ? G.isLoading : !1, $t = _ ? G.isFetching : !1, Mt = _ ? G.error : null, Ye = !!c;
1712
1712
  k(() => {
1713
1713
  if (!_ || G.dataUpdatedAt === 0) return;
1714
1714
  Re(!1);
1715
- const { totalItemsCount: S } = ke.current;
1715
+ const { totalItemsCount: S } = Ue.current;
1716
1716
  S && pt(S);
1717
1717
  }, [_, G.dataUpdatedAt]);
1718
1718
  const Pt = z((S) => {
@@ -1754,7 +1754,7 @@ var tt = [
1754
1754
  ]);
1755
1755
  k(() => {
1756
1756
  if (!d) return;
1757
- const S = Je(p), R = new AbortController(), F = (Z) => {
1757
+ const S = Pe(p), R = new AbortController(), F = (Z) => {
1758
1758
  const { detail: O } = Z, { rowId: y } = O;
1759
1759
  O.tableId !== S || !y || Y((D) => typeof D == "boolean" ? { [y]: !0 } : {
1760
1760
  ...D,
@@ -1781,29 +1781,29 @@ var tt = [
1781
1781
  p,
1782
1782
  Y
1783
1783
  ]), k(() => () => {
1784
- Xe.current = !1;
1784
+ We.current = !1;
1785
1785
  }, []), k(() => {
1786
1786
  if (!_) return;
1787
- const S = Je(p), R = new AbortController(), F = (E) => {
1787
+ const S = Pe(p), R = new AbortController(), F = (E) => {
1788
1788
  const { detail: ge } = E;
1789
- ge.tableId !== void 0 && ge.tableId !== S || (he.current += 1, Ke(!0), We.current().finally(() => {
1790
- he.current -= 1, he.current === 0 && Xe.current && Ke(!1);
1789
+ ge.tableId !== void 0 && ge.tableId !== S || (he.current += 1, Xe(!0), Qe.current().finally(() => {
1790
+ he.current -= 1, he.current === 0 && We.current && Xe(!1);
1791
1791
  }));
1792
1792
  };
1793
1793
  return document.addEventListener(fe.REFRESH, F, { signal: R.signal }), () => R.abort();
1794
1794
  }, [_, p]);
1795
- const _e = U(() => Q.some((S) => !!S.meta?.expandedRow), [Q]), ue = U(() => Q.map((S, R) => w ? w(S, R) : String(R)), [Q, w]), Ht = U(() => typeof q == "boolean" ? q : ue.some((S) => !!q[S]), [q, ue]), Gt = U(() => typeof V == "boolean" ? V : typeof V == "object" ? ue.some((S) => !!V[S]) : !1, [V, ue]), Fe = _e || P && (Ht || Gt), [N, Ye] = I(!!Fe);
1795
+ const _e = U(() => Q.some((S) => !!S.meta?.expandedRow), [Q]), ue = U(() => Q.map((S, R) => w ? w(S, R) : String(R)), [Q, w]), Ht = U(() => typeof q == "boolean" ? q : ue.some((S) => !!q[S]), [q, ue]), Gt = U(() => typeof V == "boolean" ? V : typeof V == "object" ? ue.some((S) => !!V[S]) : !1, [V, ue]), Fe = _e || P && (Ht || Gt), [N, Ze] = I(!!Fe);
1796
1796
  k(() => {
1797
1797
  if (Fe) {
1798
- const S = requestAnimationFrame(() => Ye(!0));
1798
+ const S = requestAnimationFrame(() => Ze(!0));
1799
1799
  return () => cancelAnimationFrame(S);
1800
- } else Ye(!1);
1800
+ } else Ze(!1);
1801
1801
  }, [Fe]);
1802
- const [ae, Ze] = I(!N);
1802
+ const [ae, Je] = I(!N);
1803
1803
  k(() => {
1804
- if (N) Ze(!1);
1804
+ if (N) Je(!1);
1805
1805
  else {
1806
- const S = setTimeout(() => Ze(!0), 300);
1806
+ const S = setTimeout(() => Je(!0), 300);
1807
1807
  return () => clearTimeout(S);
1808
1808
  }
1809
1809
  }, [N]);
@@ -1822,13 +1822,13 @@ var tt = [
1822
1822
  },
1823
1823
  enableSorting: !1,
1824
1824
  meta: {
1825
- headerClassName: J("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", N ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0", ae && J("!border-0 !rounded-none dark:[&+th]:border-l", !Qe && "[&+th]:rounded-tl-lg")),
1825
+ headerClassName: J("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", N ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0", ae && J("!border-0 !rounded-none dark:[&+th]:border-l", !Ye && "[&+th]:rounded-tl-lg")),
1826
1826
  className: J("transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden", N ? J("w-10 max-w-10 px-1 text-center", r) : "w-0 max-w-0 !p-0", ae && "!border-0 dark:[&+td]:border-l")
1827
1827
  }
1828
1828
  }, [
1829
1829
  d,
1830
1830
  _e,
1831
- Qe,
1831
+ Ye,
1832
1832
  P,
1833
1833
  N,
1834
1834
  ae,
@@ -1869,12 +1869,13 @@ var tt = [
1869
1869
  pageSize: oe,
1870
1870
  sortedData: K,
1871
1871
  table: zt,
1872
+ tableId: Pe(p),
1872
1873
  tableFetching: $t,
1873
1874
  tableLoading: Ft || _t,
1874
1875
  tableError: Mt,
1875
1876
  headerContent: c,
1876
1877
  termOfSearch: ne,
1877
- totalItems: Ne,
1878
+ totalItems: je,
1878
1879
  totalPages: St,
1879
1880
  handlePage: Et,
1880
1881
  onChangeTermOfSearch: Pt,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.112",
5
+ "version": "0.1.2-alpha.113",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -78,20 +78,20 @@
78
78
  "test:watch": "vitest dev"
79
79
  },
80
80
  "dependencies": {
81
- "@radix-ui/react-alert-dialog": "^1.1.23",
82
- "@radix-ui/react-checkbox": "^1.3.11",
83
- "@radix-ui/react-dialog": "^1.1.23",
84
- "@radix-ui/react-dropdown-menu": "^2.1.24",
85
- "@radix-ui/react-popover": "^1.1.23",
86
- "@radix-ui/react-slider": "^1.4.7",
87
- "@radix-ui/react-slot": "^1.3.3",
88
- "@radix-ui/react-switch": "^1.3.7",
89
- "@radix-ui/react-tabs": "^1.1.21",
90
- "@radix-ui/react-tooltip": "^1.2.16",
91
- "@radix-ui/react-visually-hidden": "^1.2.11",
81
+ "@radix-ui/react-alert-dialog": "^1.2.1",
82
+ "@radix-ui/react-checkbox": "^1.4.1",
83
+ "@radix-ui/react-dialog": "^1.3.1",
84
+ "@radix-ui/react-dropdown-menu": "^2.2.1",
85
+ "@radix-ui/react-popover": "^1.3.1",
86
+ "@radix-ui/react-slider": "^1.6.1",
87
+ "@radix-ui/react-slot": "^1.5.0",
88
+ "@radix-ui/react-switch": "^1.4.1",
89
+ "@radix-ui/react-tabs": "^1.2.1",
90
+ "@radix-ui/react-tooltip": "^1.4.1",
91
+ "@radix-ui/react-visually-hidden": "^1.2.13",
92
92
  "@react-input/mask": "^2.0.4",
93
93
  "@tanstack/react-table": "^8.21.3",
94
- "@tanstack/react-virtual": "^3.14.13",
94
+ "@tanstack/react-virtual": "^3.14.18",
95
95
  "chart.js": "^4.5.1",
96
96
  "class-variance-authority": "^0.7.1",
97
97
  "clsx": "^2.1.1",
@@ -102,8 +102,7 @@
102
102
  "google-libphonenumber": "^3.2.47",
103
103
  "i18n-iso-countries": "^7.14.0",
104
104
  "js-cookie": "^3.0.8",
105
- "lucide-react": "^1.52.0",
106
- "motion": "^14.0.0",
105
+ "lucide-react": "^1.56.0",
107
106
  "react-chartjs-2": "^5.3.1",
108
107
  "react-day-picker": "^10.0.2",
109
108
  "react-feather": "^2.0.10",
@@ -115,6 +114,7 @@
115
114
  "@tanstack/react-query": "^5.104",
116
115
  "@types/react": "*",
117
116
  "@types/react-dom": "*",
117
+ "motion": "^14",
118
118
  "react": "^16.8 || ^17.0 || ^18.0 || ^19.0",
119
119
  "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0",
120
120
  "react-router-dom": "^7",
@@ -146,48 +146,49 @@
146
146
  "devDependencies": {
147
147
  "@faker-js/faker": "^10.6.0",
148
148
  "@rollup/plugin-alias": "^6.0.0",
149
- "@storybook/addon-docs": "^10.6.1",
150
- "@storybook/addon-links": "^10.6.1",
151
- "@storybook/react-vite": "^10.6.1",
149
+ "@storybook/addon-docs": "^10.6.2",
150
+ "@storybook/addon-links": "^10.6.2",
151
+ "@storybook/react-vite": "^10.6.2",
152
152
  "@tailwindcss/vite": "^4.3.3",
153
- "@tanstack/react-query": "^5.104.1",
153
+ "@tanstack/react-query": "^5.104.2",
154
154
  "@testing-library/jest-dom": "^7.0.1",
155
155
  "@testing-library/react": "^16.3.3",
156
- "@testing-library/user-event": "^14.6.7",
156
+ "@testing-library/user-event": "^14.6.8",
157
157
  "@types/google-libphonenumber": "^7.4.31",
158
158
  "@types/jest-axe": "^3.5.9",
159
159
  "@types/js-cookie": "^3.0.6",
160
- "@types/lodash": "^4.17.25",
160
+ "@types/lodash": "^4.17.26",
161
161
  "@types/react": "^19.3.0",
162
162
  "@types/react-dom": "^19.3.0",
163
- "@typescript-eslint/eslint-plugin": "^8.71.0",
164
- "@typescript-eslint/parser": "^8.71.0",
163
+ "@typescript-eslint/eslint-plugin": "^8.71.2",
164
+ "@typescript-eslint/parser": "^8.71.2",
165
165
  "@vitejs/plugin-react": "^6.1.2",
166
- "@vitest/coverage-v8": "^5.0.3",
166
+ "@vitest/coverage-v8": "^5.0.4",
167
167
  "autoprefixer": "^10.6.1",
168
168
  "eslint": "^9.39.5",
169
169
  "eslint-plugin-react": "^7.37.5",
170
170
  "eslint-plugin-react-hooks": "^7.1.1",
171
171
  "eslint-plugin-react-refresh": "^0.5.7",
172
- "eslint-plugin-storybook": "^10.6.1",
172
+ "eslint-plugin-storybook": "^10.6.2",
173
173
  "eslint-plugin-vitest": "^0.5.4",
174
174
  "glob": "^13.0.6",
175
175
  "husky": "^9.1.7",
176
176
  "jest-axe": "^11.0.0",
177
177
  "jsdom": "^30.1.2",
178
178
  "lodash": "^4.18.1",
179
- "postcss": "^8.5.29",
180
- "prettier": "^3.9.9",
179
+ "motion": "^14.2.0",
180
+ "postcss": "^8.5.30",
181
+ "prettier": "^3.9.10",
181
182
  "rimraf": "^6.1.3",
182
- "storybook": "^10.6.1",
183
+ "storybook": "^10.6.2",
183
184
  "tailwindcss": "^4.3.3",
184
185
  "ts-node": "^10.9.2",
185
186
  "typescript": "^6.0.3",
186
- "vite": "^8.3.2",
187
+ "vite": "^8.3.4",
187
188
  "vite-plugin-dts": "^5.1.2",
188
189
  "vite-plugin-lib-inject-css": "^2.2.2",
189
190
  "vite-plugin-svgr": "^5.2.0",
190
- "vitest": "^5.0.3"
191
+ "vitest": "^5.0.4"
191
192
  },
192
193
  "overrides": {
193
194
  "storybook": "$storybook",