@konstructio/ui 0.1.2-alpha.111 → 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 (294) 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 +27 -27
  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/Toast/Toast.types.d.ts +5 -0
  242. package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +1 -0
  243. package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
  244. package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
  245. package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
  246. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
  247. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
  248. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
  249. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
  250. package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
  251. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
  252. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
  253. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
  254. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
  255. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
  256. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
  257. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
  258. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
  259. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
  260. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
  261. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
  262. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
  263. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
  264. package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
  265. package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
  266. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
  267. package/dist/lib/components/index.d.ts +10 -0
  268. package/dist/package.json +31 -30
  269. package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
  270. package/dist/styles.css +1 -1
  271. package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
  272. package/package.json +31 -30
  273. package/dist/AnimatePresence-BsUYG9bm.js +0 -186
  274. package/dist/Checkbox-CrNxsm3G.js +0 -247
  275. package/dist/Counter-DN50BVq6.js +0 -194
  276. package/dist/DropdownButton-Blhkj-Oi.js +0 -490
  277. package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
  278. package/dist/Modal-Bk1I_NCC.js +0 -81
  279. package/dist/Spinner-smR3esbL.js +0 -47
  280. package/dist/Switch-CPE8v6Zh.js +0 -199
  281. package/dist/Toast-frCWQhFC.js +0 -76
  282. package/dist/components-z-LYRWfq.js +0 -124
  283. package/dist/dist-CNui_Egg.js +0 -451
  284. package/dist/dist-CR3FMRzF.js +0 -118
  285. package/dist/dist-D5Q2IYuC.js +0 -358
  286. package/dist/dist-D70ZJkHf.js +0 -29
  287. package/dist/dist-DZ_SU77k.js +0 -437
  288. package/dist/dist-LRkZdylX.js +0 -174
  289. package/dist/dist-f8EwfITY.js +0 -194
  290. package/dist/dist-pWlMx4Fi.js +0 -36
  291. package/dist/dist-uerXivvM.js +0 -178
  292. package/dist/dist-xCbHbMLA.js +0 -116
  293. package/dist/es2015-Hhb87ipX.js +0 -231
  294. package/dist/react-C685EsYG.js +0 -4730
@@ -1,41 +1,44 @@
1
- import { useMenuInteractions as R } from "../use-menu-interactions/use-menu-interactions.js";
2
- import { useMenuKeyboardNavigation as w } from "../use-menu-keyboard-navigation/use-menu-keyboard-navigation.js";
3
- import { useRowHighlight as b } from "../use-row-highlight/use-row-highlight.js";
4
- import { useCallback as v, useId as y, useRef as o, useState as u } from "react";
5
- var k = () => {
6
- const [e, a] = u(!1), [i, l] = u(!1), n = o(null), s = o(null), t = o(null), c = y(), d = v((O) => {
7
- l(!0), a(O);
8
- }, []), { closeMenu: r, handlePointerEnter: g, handlePointerLeave: p, handleTriggerClick: f, handleTriggerPointerDown: m, openMenu: h } = R({
1
+ import { useMenuInteractions as P } from "../use-menu-interactions/use-menu-interactions.js";
2
+ import { useMenuKeyboardNavigation as b } from "../use-menu-keyboard-navigation/use-menu-keyboard-navigation.js";
3
+ import { useRowHighlight as y } from "../use-row-highlight/use-row-highlight.js";
4
+ import { useCallback as C, useId as D, useRef as o, useState as u } from "react";
5
+ var H = ({ openOnHover: a }) => {
6
+ const [e, l] = u(!1), [i, c] = u(!1), n = o(null), s = o(null), t = o(null), d = D(), g = C((w) => {
7
+ c(!0), l(w);
8
+ }, []), { closeMenu: r, handlePointerEnter: p, handlePointerLeave: f, handleTriggerClick: h, handleTriggerPointerDown: m, handleButtonPointerLeave: M, openMenu: I, selectAndClose: O } = P({
9
9
  isOpen: e,
10
10
  menuRef: t,
11
+ openOnHover: a,
11
12
  triggerRef: n,
12
- setIsOpen: d
13
- }), { handleMenuKeyDown: M, handleTriggerKeyDown: I } = w({
13
+ setIsOpen: g
14
+ }), { handleMenuKeyDown: R, handleTriggerKeyDown: v } = b({
14
15
  buttonRef: s,
15
16
  isOpen: e,
16
17
  menuRef: t,
17
18
  closeMenu: r,
18
- openMenu: h
19
+ openMenu: I
19
20
  });
20
- return b({
21
+ return y({
21
22
  isOpen: e,
22
23
  triggerRef: n
23
24
  }), {
24
25
  buttonRef: s,
25
26
  hasOpened: i,
26
27
  isOpen: e,
27
- menuId: c,
28
+ menuId: d,
28
29
  menuRef: t,
29
30
  triggerRef: n,
30
31
  closeMenu: r,
31
- handleMenuKeyDown: M,
32
- handlePointerEnter: g,
33
- handlePointerLeave: p,
34
- handleTriggerClick: f,
35
- handleTriggerKeyDown: I,
36
- handleTriggerPointerDown: m
32
+ handleMenuKeyDown: R,
33
+ handlePointerEnter: p,
34
+ handlePointerLeave: f,
35
+ handleTriggerClick: h,
36
+ handleTriggerKeyDown: v,
37
+ handleTriggerPointerDown: m,
38
+ handleButtonPointerLeave: M,
39
+ selectAndClose: O
37
40
  };
38
41
  };
39
42
  export {
40
- k as useActionsMenu
43
+ H as useActionsMenu
41
44
  };
@@ -1,72 +1,78 @@
1
1
  import "../../constants/index.js";
2
- import { useCallback as r, useEffect as T, useLayoutEffect as M, useRef as p } from "react";
3
- var x = ({ isOpen: l, menuRef: s, triggerRef: d, setIsOpen: n }) => {
4
- const o = p(void 0), f = p(null), h = r(() => {
5
- clearTimeout(o.current), n(!0);
6
- }, [n]), i = r(() => {
7
- clearTimeout(o.current), n(!1);
8
- }, [n]), g = r(() => {
9
- clearTimeout(o.current), o.current = setTimeout(() => {
2
+ import { useCallback as r, useEffect as y, useLayoutEffect as b, useRef as T } from "react";
3
+ var _ = ({ isOpen: l, menuRef: d, openOnHover: c, triggerRef: f, setIsOpen: n }) => {
4
+ const u = T(void 0), g = T(null), h = T(!1), m = r(() => {
5
+ clearTimeout(u.current), n(!0);
6
+ }, [n]), o = r(() => {
7
+ clearTimeout(u.current), n(!1);
8
+ }, [n]), p = r(() => {
9
+ h.current = !0, o();
10
+ }, [o]), w = r(() => {
11
+ clearTimeout(u.current), u.current = setTimeout(() => {
10
12
  n(!1);
11
13
  }, 100);
12
- }, [n]), w = r((t) => {
13
- t.pointerType !== "touch" && h();
14
- }, [h]), E = r((t) => {
15
- t.pointerType !== "touch" && g();
16
- }, [g]), y = r((t) => {
17
- f.current = t.pointerType;
18
- }, []), v = r(() => {
19
- const t = f.current;
20
- if (f.current = null, clearTimeout(o.current), t && t !== "touch") {
14
+ }, [n]), L = r((t) => {
15
+ !c || h.current || t.pointerType === "touch" || m();
16
+ }, [m, c]), M = r((t) => {
17
+ !c || t.pointerType === "touch" || w();
18
+ }, [c, w]), v = r(() => {
19
+ h.current = !1;
20
+ }, []), C = r((t) => {
21
+ g.current = t.pointerType;
22
+ }, []), P = r(() => {
23
+ const t = g.current;
24
+ if (g.current = null, h.current = !1, clearTimeout(u.current), c && t && t !== "touch") {
21
25
  n(!0);
22
26
  return;
23
27
  }
24
28
  n((e) => !e);
25
- }, [n]);
26
- T(() => () => {
27
- clearTimeout(o.current);
29
+ }, [c, n]);
30
+ y(() => () => {
31
+ clearTimeout(u.current);
28
32
  }, []);
29
- const u = r(() => {
30
- const t = d.current, e = s.current;
33
+ const s = r(() => {
34
+ const t = f.current, e = d.current;
31
35
  if (!t || !e) return;
32
- const c = t.getBoundingClientRect(), a = c.bottom + 4 + e.offsetHeight <= window.innerHeight ? c.bottom + 4 : c.top - 4 - e.offsetHeight;
33
- e.style.top = `${Math.round(Math.max(a, 4))}px`, e.style.left = `${Math.round(Math.max(c.right - e.offsetWidth, 4))}px`;
34
- }, [s, d]);
35
- return M(() => {
36
- l && u();
37
- }, [l, u]), T(() => {
36
+ const i = t.getBoundingClientRect(), a = i.bottom + 4 + e.offsetHeight <= window.innerHeight ? i.bottom + 4 : i.top - 4 - e.offsetHeight;
37
+ e.style.top = `${Math.round(Math.max(a, 4))}px`, e.style.left = `${Math.round(Math.max(i.right - e.offsetWidth, 4))}px`;
38
+ }, [d, f]);
39
+ return b(() => {
40
+ l && s();
41
+ }, [l, s]), y(() => {
38
42
  if (!l) return;
39
43
  const t = new AbortController(), e = (a) => {
40
- const m = a.target;
41
- d.current?.contains(m) || s.current?.contains(m) || i();
42
- }, c = (a) => {
43
- a.key === "Escape" && i();
44
+ const E = a.target;
45
+ f.current?.contains(E) || d.current?.contains(E) || o();
46
+ }, i = (a) => {
47
+ a.key === "Escape" && o();
44
48
  };
45
- return document.addEventListener("mousedown", e, { signal: t.signal }), document.addEventListener("keydown", c, { signal: t.signal }), document.addEventListener("scroll", u, {
49
+ return document.addEventListener("mousedown", e, { signal: t.signal }), document.addEventListener("keydown", i, { signal: t.signal }), document.addEventListener("scroll", s, {
46
50
  signal: t.signal,
47
51
  capture: !0,
48
52
  passive: !0
49
- }), window.addEventListener("resize", u, {
53
+ }), window.addEventListener("resize", s, {
50
54
  signal: t.signal,
51
55
  passive: !0
52
- }), window.addEventListener("blur", i, { signal: t.signal }), () => {
56
+ }), window.addEventListener("blur", o, { signal: t.signal }), () => {
53
57
  t.abort();
54
58
  };
55
59
  }, [
56
60
  l,
57
- s,
58
61
  d,
59
- i,
60
- u
62
+ f,
63
+ o,
64
+ s
61
65
  ]), {
62
- closeMenu: i,
63
- handlePointerEnter: w,
64
- handlePointerLeave: E,
65
- handleTriggerClick: v,
66
- handleTriggerPointerDown: y,
67
- openMenu: h
66
+ closeMenu: o,
67
+ handlePointerEnter: L,
68
+ handlePointerLeave: M,
69
+ handleTriggerClick: P,
70
+ handleTriggerPointerDown: C,
71
+ handleButtonPointerLeave: v,
72
+ openMenu: m,
73
+ selectAndClose: p
68
74
  };
69
75
  };
70
76
  export {
71
- x as useMenuInteractions
77
+ _ as useMenuInteractions
72
78
  };
@@ -1,18 +1,18 @@
1
1
  import { t } from "../../../../utils-DnIJruo0.js";
2
- import { n as I } from "../../../../table.provider-MQ4T5Xb5.js";
3
- import { useTableContext as T } from "../../contexts/table.hook.js";
4
- import { isPaginationBarVisible as q } from "../../utils/pagination.js";
2
+ import { useTableContext as I } from "../../contexts/table.hook.js";
3
+ import { isPaginationBarVisible as T } from "../../utils/pagination.js";
4
+ import { n as q } from "../../../../table.provider-CW1fpZcF.js";
5
5
  import { Skeleton as G } from "../Skeleton/Skeleton.js";
6
6
  import { ExpandableRow as J } from "../ExpandableRow/ExpandableRow.js";
7
7
  import { Fragment as K } from "react";
8
8
  import { jsx as e, jsxs as Q } from "react/jsx-runtime";
9
9
  var te = ({ isLoading: v, showPagination: N, emptyState: y, errorState: a }) => {
10
- const { table: m, pageSize: E, totalItems: R = -1 / 0, tableLoading: C, tableError: c, enableExpandedRow: D, classNameExpandedRow: _, classNameExpandedCell: j, classNameExpandedContent: z, enableHoverRow: u, classNameHoverRow: B, classNameActiveExpandedRow: V, renderExpandedRow: f, isBorderOnAdjacentCell: L, isExpandColumnVisible: A } = T();
10
+ const { table: m, pageSize: E, totalItems: R = -1 / 0, tableLoading: C, tableError: c, enableExpandedRow: D, classNameExpandedRow: _, classNameExpandedCell: j, classNameExpandedContent: z, enableHoverRow: u, classNameHoverRow: B, classNameActiveExpandedRow: V, renderExpandedRow: f, isBorderOnAdjacentCell: L, isExpandColumnVisible: A } = I();
11
11
  if (v || C) return /* @__PURE__ */ e(G, {
12
12
  numberOfRows: E,
13
13
  table: m
14
14
  });
15
- const r = m.getRowModel().rows ?? [], d = N && q(R), x = r.length === 0 && !!c && !!a, h = r.length > 0 ? null : c && a ? typeof a == "function" ? a(c) : a : y ?? null;
15
+ const r = m.getRowModel().rows ?? [], d = N && T(R), x = r.length === 0 && !!c && !!a, h = r.length > 0 ? null : c && a ? typeof a == "function" ? a(c) : a : y ?? null;
16
16
  if (h) {
17
17
  const l = m.getVisibleLeafColumns().length;
18
18
  return /* @__PURE__ */ e("tbody", {
@@ -53,7 +53,7 @@ var te = ({ isLoading: v, showPagination: N, emptyState: y, errorState: a }) =>
53
53
  }),
54
54
  "data-expanded": n ? !0 : void 0,
55
55
  ...o.columnDef.meta?.attributes ?? {},
56
- children: I(o.columnDef.cell, O())
56
+ children: q(o.columnDef.cell, O())
57
57
  }, M);
58
58
  })
59
59
  }), H && /* @__PURE__ */ e(J, {
@@ -1,18 +1,18 @@
1
1
  import { t as o } from "../../../../utils-DnIJruo0.js";
2
2
  import { t as u } from "../../../../chevron-up-B8hiVgxZ.js";
3
3
  import { Typography as c } from "../../../Typography/Typography.js";
4
- import { a as b, i as v, n as w, r as S } from "../../../../dist-LRkZdylX.js";
5
- import { listVariants as k } from "../../../Select/components/List/List.variants.js";
6
- import { listItemVariants as N } from "../../../Select/components/ListItem/ListItem.variants.js";
7
- import { selectVariants as C } from "../../../Select/Select.variants.js";
8
- import { DEFAULT_PAGE_SIZES as y } from "../../constants/pagination.js";
9
- import { useTableContext as z } from "../../contexts/table.hook.js";
10
- import { useState as O } from "react";
4
+ import { a as v, i as b, r as w, t as P } from "../../../../dist-CQSCPpFc.js";
5
+ import { listVariants as S } from "../../../Select/components/List/List.variants.js";
6
+ import { listItemVariants as k } from "../../../Select/components/ListItem/ListItem.variants.js";
7
+ import { selectVariants as N } from "../../../Select/Select.variants.js";
8
+ import { DEFAULT_PAGE_SIZES as C } from "../../constants/pagination.js";
9
+ import { useTableContext as y } from "../../contexts/table.hook.js";
10
+ import { useState as z } from "react";
11
11
  import { jsx as e, jsxs as r } from "react/jsx-runtime";
12
- var _ = ({ pageSizes: d = y, isListPortal: f = !1, direction: s = "auto" }) => {
13
- const { pageSize: i, onPageSize: g, handlePage: h } = z(), [n, l] = O(!1), m = (t) => {
14
- g(Number(t)), h(0), l(!1);
15
- }, p = /* @__PURE__ */ e(w, {
12
+ var _ = ({ pageSizes: d = C, isListPortal: f = !1, direction: s = "auto" }) => {
13
+ const { pageSize: i, onPageSize: g, handlePage: h } = y(), [l, n] = z(!1), p = (t) => {
14
+ g(Number(t)), h(0), n(!1);
15
+ }, m = /* @__PURE__ */ e(w, {
16
16
  asChild: !0,
17
17
  side: s === "up" ? "top" : "bottom",
18
18
  avoidCollisions: s === "auto",
@@ -24,19 +24,19 @@ var _ = ({ pageSizes: d = y, isListPortal: f = !1, direction: s = "auto" }) => {
24
24
  children: /* @__PURE__ */ e("ul", {
25
25
  role: "listbox",
26
26
  "aria-label": "Rows per page",
27
- className: o(k(), "kvt-page-size-list", "static top-auto mt-0 z-50 w-(--radix-popover-trigger-width)"),
27
+ className: o(S(), "kvt-page-size-list", "static top-auto mt-0 z-50 w-(--radix-popover-trigger-width)"),
28
28
  children: d.map((t) => {
29
29
  const a = String(t);
30
30
  return /* @__PURE__ */ e("li", {
31
31
  role: "option",
32
32
  "aria-selected": a === String(i),
33
33
  tabIndex: 0,
34
- className: o(N(), "dark:bg-metal-800"),
34
+ className: o(k(), "dark:bg-metal-800"),
35
35
  onClick: () => {
36
- m(a);
36
+ p(a);
37
37
  },
38
38
  onKeyDown: (x) => {
39
- x.key === "Enter" && m(a);
39
+ x.key === "Enter" && p(a);
40
40
  },
41
41
  children: /* @__PURE__ */ e(c, {
42
42
  variant: "body2",
@@ -49,21 +49,21 @@ var _ = ({ pageSizes: d = y, isListPortal: f = !1, direction: s = "auto" }) => {
49
49
  });
50
50
  return /* @__PURE__ */ r("div", {
51
51
  className: "kvt-page-size flex items-center gap-2 dark:text-metal-300",
52
- children: [/* @__PURE__ */ e("span", { children: "Show" }), /* @__PURE__ */ r(v, {
53
- open: n,
54
- onOpenChange: l,
55
- children: [/* @__PURE__ */ r(b, {
52
+ children: [/* @__PURE__ */ e("span", { children: "Show" }), /* @__PURE__ */ r(P, {
53
+ open: l,
54
+ onOpenChange: n,
55
+ children: [/* @__PURE__ */ r(v, {
56
56
  "aria-label": "Rows per page",
57
- className: o(C(), "w-22 bg-white"),
57
+ className: o(N(), "w-22 bg-white"),
58
58
  children: [/* @__PURE__ */ e(c, {
59
59
  variant: "body2",
60
60
  className: "flex-1 text-left text-sm text-metal-800 dark:text-metal-50",
61
61
  children: i
62
62
  }), /* @__PURE__ */ e(u, {
63
- "data-state": n ? "open" : "closed",
63
+ "data-state": l ? "open" : "closed",
64
64
  className: "w-4 h-4 text-zinc-500 transition-all duration-100 data-[state=open]:rotate-0 data-[state=closed]:rotate-180 select-none"
65
65
  })]
66
- }), f ? /* @__PURE__ */ e(S, { children: p }) : p]
66
+ }), f ? /* @__PURE__ */ e(b, { children: m }) : m]
67
67
  })]
68
68
  });
69
69
  };
@@ -0,0 +1,30 @@
1
+ import { Button as n } from "../../../Button/Button.js";
2
+ import { useTableContext as l } from "../../contexts/table.hook.js";
3
+ import { sendResetFiltersEvent as p } from "../../events/filters/filters.js";
4
+ import { EmptyState as c } from "../EmptyState/EmptyState.js";
5
+ import { Fragment as d, jsx as e, jsxs as u } from "react/jsx-runtime";
6
+ var f = ({ className: r, description: s = "Filters may be too restrictive.", image: o, resetLabel: a = "Reset filters", title: i = "No results", onResetFilters: t }) => {
7
+ const { tableId: m } = l();
8
+ return /* @__PURE__ */ e(c, {
9
+ className: r,
10
+ image: o,
11
+ title: i,
12
+ description: /* @__PURE__ */ u(d, { children: [s, /* @__PURE__ */ e(n, {
13
+ variant: "link",
14
+ appearance: "compact",
15
+ className: "p-0",
16
+ onClick: () => {
17
+ if (t) {
18
+ t();
19
+ return;
20
+ }
21
+ p(m);
22
+ },
23
+ children: a
24
+ })] })
25
+ });
26
+ };
27
+ f.displayName = "KonstructVirtualizedTableEmptyResults";
28
+ export {
29
+ f as EmptyResults
30
+ };
@@ -0,0 +1,32 @@
1
+ import { t as c } from "../../../../utils-DnIJruo0.js";
2
+ import { Typography as l } from "../../../Typography/Typography.js";
3
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
4
+ var n = ({ action: t, className: s, description: a, image: r, title: m }) => /* @__PURE__ */ i("div", {
5
+ className: c("flex flex-col items-center gap-4 px-4 py-20 text-center", s),
6
+ children: [
7
+ r && /* @__PURE__ */ e("div", {
8
+ className: "flex items-center justify-center",
9
+ children: r
10
+ }),
11
+ /* @__PURE__ */ e(l, {
12
+ variant: "subtitle3",
13
+ component: "h2",
14
+ className: "text-slate-800 dark:text-metal-50",
15
+ children: m
16
+ }),
17
+ a && /* @__PURE__ */ e(l, {
18
+ variant: "body2",
19
+ component: "p",
20
+ className: "flex flex-wrap items-center justify-center gap-1 text-slate-500 dark:text-metal-300",
21
+ children: a
22
+ }),
23
+ t && /* @__PURE__ */ e("div", {
24
+ className: "pt-2",
25
+ children: t
26
+ })
27
+ ]
28
+ });
29
+ n.displayName = "KonstructVirtualizedTableEmptyState";
30
+ export {
31
+ n as EmptyState
32
+ };
@@ -0,0 +1,35 @@
1
+ import { AlertOutlineIcon as s } from "../../../../assets/icons/components/AlertOutline.js";
2
+ import { Button as l } from "../../../Button/Button.js";
3
+ import { useTableContext as d } from "../../contexts/table.hook.js";
4
+ import { sendRefreshEvent as p } from "../../events/refresh/refresh.js";
5
+ import { EmptyState as c } from "../EmptyState/EmptyState.js";
6
+ import { Fragment as f, jsx as e, jsxs as h } from "react/jsx-runtime";
7
+ var u = ({ className: t, description: a, icon: o = /* @__PURE__ */ e(s, {
8
+ size: 40,
9
+ className: "text-red-600 dark:text-red-400",
10
+ "aria-hidden": "true"
11
+ }), retryLabel: n = "Refresh", title: i = "Something went wrong", onRetry: r }) => {
12
+ const { tableId: m } = d();
13
+ return /* @__PURE__ */ e(c, {
14
+ className: t,
15
+ image: o,
16
+ title: i,
17
+ description: /* @__PURE__ */ h(f, { children: [a, /* @__PURE__ */ e(l, {
18
+ variant: "link",
19
+ appearance: "compact",
20
+ className: "p-0",
21
+ onClick: () => {
22
+ if (r) {
23
+ r();
24
+ return;
25
+ }
26
+ p(m);
27
+ },
28
+ children: n
29
+ })] })
30
+ });
31
+ };
32
+ u.displayName = "KonstructVirtualizedTableErrorState";
33
+ export {
34
+ u as ErrorState
35
+ };
@@ -4,14 +4,14 @@ import { t as G } from "../../../../utils-DnIJruo0.js";
4
4
  import { Button as H } from "../../../Button/Button.js";
5
5
  import { resetEvent as J } from "../../../Filter/events/index.js";
6
6
  import { Filter as a } from "../../../Filter/Filter.js";
7
- import { t as K } from "../../../../debounce-BdyZeJQk.js";
7
+ import { t as K } from "../../../../debounce-dMRJxNsT.js";
8
8
  import { useTableContext as Q } from "../../contexts/table.hook.js";
9
- import { getTableId as U } from "../../utils/get-table-id.js";
10
- import { t as W } from "../../../../events.types-BG1Uh8i6.js";
9
+ import { t as U } from "../../../../events.types-BG1Uh8i6.js";
10
+ import { getTableId as W } from "../../utils/get-table-id.js";
11
11
  import { useEffect as X, useMemo as Y, useRef as Z } from "react";
12
12
  import { jsx as n, jsxs as i } from "react/jsx-runtime";
13
13
  var f = /* @__PURE__ */ V(K(), 1), ie = ({ id: F, actions: b, filters: v, multiSelectFilter: S, placeholder: R, showFilterInput: D = !0, showResetButton: w = !0, resetButtonClassName: T, closeOnApply: k = !0 }) => {
14
- const l = Z(null), m = U(F), { termOfSearch: x, multiselectSelected: M, dateFilters: E, dateRangeFilters: _, timeFilters: j, onChangeTermOfSearch: c, onSelectMultiselect: A, onSelectDateFilter: I, onSelectDateRangeFilter: d, onSelectTimeFilter: O } = Q(), B = [...v ?? S?.map((e) => ({
14
+ const l = Z(null), m = W(F), { termOfSearch: x, multiselectSelected: M, dateFilters: E, dateRangeFilters: _, timeFilters: j, onChangeTermOfSearch: c, onSelectMultiselect: A, onSelectDateFilter: I, onSelectDateRangeFilter: d, onSelectTimeFilter: O } = Q(), B = [...v ?? S?.map((e) => ({
15
15
  ...e,
16
16
  type: "badgeMultiSelect"
17
17
  })) ?? [], ...b ?? []], h = (e, t) => {
@@ -21,7 +21,7 @@ var f = /* @__PURE__ */ V(K(), 1), ie = ({ id: F, actions: b, filters: v, multiS
21
21
  };
22
22
  X(() => {
23
23
  const e = new AbortController();
24
- return document.addEventListener(W.RESET_FILTERS, (t) => {
24
+ return document.addEventListener(U.RESET_FILTERS, (t) => {
25
25
  const { detail: o } = t;
26
26
  o.tableId === m && (c(""), l.current && (l.current.value = ""), J(m));
27
27
  }, { signal: e.signal }), () => e.abort();
@@ -1,11 +1,11 @@
1
1
  import { t } from "../../../../utils-DnIJruo0.js";
2
- import { n as g } from "../../../../table.provider-MQ4T5Xb5.js";
3
- import { useTableContext as k } from "../../contexts/table.hook.js";
2
+ import { useTableContext as g } from "../../contexts/table.hook.js";
3
+ import { n as k } from "../../../../table.provider-CW1fpZcF.js";
4
4
  import u from "../../assets/chevron-up.js";
5
5
  import C from "../../assets/chevron-down.js";
6
6
  import { jsx as r, jsxs as o } from "react/jsx-runtime";
7
7
  var D = ({ className: c, classNameArrows: i, classNameActiveArrows: l, classNameHeaderContent: m }) => {
8
- const { table: s, headerContent: d, onSorting: n } = k(), p = (a) => {
8
+ const { table: s, headerContent: d, onSorting: n } = g(), p = (a) => {
9
9
  n([{
10
10
  id: a.id,
11
11
  desc: !1
@@ -32,7 +32,7 @@ var D = ({ className: c, classNameArrows: i, classNameActiveArrows: l, className
32
32
  className: t("kvt-header-cell", "px-4", "py-3", "text-left", "text-xs", !d && "first:rounded-tl-lg", !d && "last:rounded-tr-lg", "border-transparent", "dark:border-t", "dark:border-metal-700", "dark:first:border-l", "dark:last:border-r", e.columnDef.meta?.headerClassName),
33
33
  children: /* @__PURE__ */ o("span", {
34
34
  className: "flex items-center gap-2 w-full",
35
- children: [g(e.columnDef.header, f()), e.getCanSort() && /* @__PURE__ */ o("div", {
35
+ children: [k(e.columnDef.header, f()), e.getCanSort() && /* @__PURE__ */ o("div", {
36
36
  className: t("flex flex-col text-slate-400 justify-center items-center gap-1", i),
37
37
  role: "presentation",
38
38
  children: [/* @__PURE__ */ r(u, {
@@ -1,43 +1,50 @@
1
- import { o as R } from "../../../../rolldown-runtime-Dw9YIBcH.js";
2
- import { t as i } from "../../../../utils-DnIJruo0.js";
3
- import { Typography as l } from "../../../Typography/Typography.js";
4
- import { t as _ } from "../../../../debounce-BdyZeJQk.js";
5
- import { Tooltip as g } from "../../../Tooltip/Tooltip.js";
6
- import { useCallback as v, useEffect as a, useRef as z, useState as E } from "react";
7
- import { jsx as n } from "react/jsx-runtime";
8
- var L = /* @__PURE__ */ R(_(), 1), A = ({ getValue: u, value: m, textClassName: c, side: f = "bottom", sideOffset: p, bgClassName: d, arrowClassName: b, className: h, delayDuration: w = 0 }) => {
9
- const o = z(null), [T, x] = E(!1), r = m ?? u().toLocaleLowerCase(), t = v(() => {
10
- const e = o.current;
11
- e && x(e.scrollWidth > e.clientWidth);
12
- }, []);
13
- return a(() => {
14
- const e = new AbortController(), s = (0, L.default)(t, 300);
15
- return window.addEventListener("resize", s, { signal: e.signal }), () => {
16
- e.abort(), s.cancel();
1
+ import { t as g } from "../../../../utils-DnIJruo0.js";
2
+ import { Tooltip as j } from "../../../Tooltip/Tooltip.js";
3
+ import { Typography as E } from "../../../Typography/Typography.js";
4
+ import { CopyButton as L } from "../../../CopyButton/CopyButton.js";
5
+ import { useEffect as W, useState as l } from "react";
6
+ import { jsx as r, jsxs as z } from "react/jsx-runtime";
7
+ var q = ({ getValue: a, value: m, textClassName: f, variant: u, component: p = "p", copyable: d = !1, copyButtonProps: h, side: x = "bottom", sideOffset: T, bgClassName: b, arrowClassName: v, className: w, delayDuration: y = 0 }) => {
8
+ const [e, C] = l(null), [n, N] = l(!1), t = m ?? a?.().toLocaleLowerCase() ?? "";
9
+ W(() => {
10
+ if (!e) return;
11
+ const c = () => {
12
+ N(e.scrollWidth > e.clientWidth);
17
13
  };
18
- }, [t]), a(() => {
19
- t();
20
- }, [t]), T ? /* @__PURE__ */ n(g, {
21
- content: r,
22
- side: f,
23
- sideOffset: p,
24
- bgClassName: d,
25
- arrowClassName: b,
26
- className: h,
27
- delayDuration: w,
28
- children: /* @__PURE__ */ n(l, {
29
- ref: o,
30
- component: "p",
31
- className: i("w-full truncate cursor-pointer", c),
32
- children: r
33
- })
34
- }) : /* @__PURE__ */ n(l, {
35
- ref: o,
36
- component: "p",
37
- className: i("w-full truncate", c),
38
- children: r
39
- });
14
+ c();
15
+ const i = new ResizeObserver(c);
16
+ return i.observe(e), () => {
17
+ i.disconnect();
18
+ };
19
+ }, [e, t]);
20
+ const o = /* @__PURE__ */ r(E, {
21
+ ref: C,
22
+ variant: u,
23
+ component: p,
24
+ className: g("w-full truncate", n && "cursor-pointer", f),
25
+ children: t
26
+ }), s = n ? /* @__PURE__ */ r(j, {
27
+ content: t,
28
+ side: x,
29
+ sideOffset: T,
30
+ bgClassName: b,
31
+ arrowClassName: v,
32
+ className: w,
33
+ delayDuration: y,
34
+ children: o
35
+ }) : o;
36
+ return d ? /* @__PURE__ */ z("div", {
37
+ className: "flex min-w-0 items-center gap-2",
38
+ children: [/* @__PURE__ */ r("span", {
39
+ className: "min-w-0 flex-1",
40
+ children: s
41
+ }), /* @__PURE__ */ r(L, {
42
+ text: t,
43
+ label: t,
44
+ ...h
45
+ })]
46
+ }) : s;
40
47
  };
41
48
  export {
42
- A as TruncateText
49
+ q as TruncateText
43
50
  };