@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,21 +1,21 @@
1
1
  import { t as r } from "../../../../utils-DnIJruo0.js";
2
2
  import { t as L } from "../../../../x-C8O1IsaM.js";
3
- import { n as P, t as h } from "../../../../react-C685EsYG.js";
4
- import { Typography as A } from "../../../Typography/Typography.js";
5
- import { COLLAPSED_SCALE_STEP as D, DEFAULT_TOAST_DURATION as j, TOAST_ENTER_TRANSITION as B, TOAST_EXIT_TRANSITION as F, TOAST_ICONS as U, TOAST_TRANSITION as X } from "../../constants/index.js";
6
- import { useToastTimer as k } from "../../hooks/useToastTimer/useToastTimer.js";
7
- import { toastCloseButtonVariants as K, toastDescriptionVariants as q, toastFrameVariants as G, toastIconVariants as J, toastTitleVariants as M, toastVariants as Q } from "../../Toast.variants.js";
8
- import { useEffect as W, useRef as Y } from "react";
9
- import { jsx as t, jsxs as o } from "react/jsx-runtime";
3
+ import { Typography as h } from "../../../Typography/Typography.js";
4
+ import { COLLAPSED_SCALE_STEP as P, DEFAULT_TOAST_DURATION as D, TOAST_ENTER_TRANSITION as j, TOAST_EXIT_TRANSITION as B, TOAST_ICONS as F, TOAST_TRANSITION as U } from "../../constants/index.js";
5
+ import { useToastTimer as X } from "../../hooks/useToastTimer/useToastTimer.js";
6
+ import { toastCloseButtonVariants as k, toastDescriptionVariants as K, toastFrameVariants as q, toastIconVariants as G, toastTitleVariants as J, toastVariants as M } from "../../Toast.variants.js";
7
+ import { useEffect as Q, useRef as W } from "react";
8
+ import { jsx as t, jsxs as s } from "react/jsx-runtime";
9
+ import { motion as A, usePresence as Y } from "motion/react";
10
10
  var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, offset: O, reducedMotion: S, restartOnLeave: v, resumeDelay: b, toast: _, total: w, visible: m, onDismiss: p, onExited: E, onHeightChange: d }) => {
11
- const T = Y(null), [C] = P(), { description: s, duration: R = j, id: c, showCloseButton: V = !0, title: g, type: a = "info" } = _;
12
- k({
11
+ const T = W(null), [C] = Y(), { description: o, duration: R = D, id: c, showCloseButton: V = !0, title: g, type: a = "info" } = _;
12
+ X({
13
13
  duration: R,
14
14
  paused: i,
15
15
  restart: v,
16
16
  resumeDelay: b,
17
17
  onExpire: p
18
- }), W(() => {
18
+ }), Q(() => {
19
19
  const e = T.current;
20
20
  if (!e) return;
21
21
  const N = () => {
@@ -27,13 +27,13 @@ var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, o
27
27
  y.disconnect();
28
28
  };
29
29
  }, [c, d]);
30
- const z = U[a], u = !i && n !== 0 && l !== 0, f = S ? { duration: 0 } : {
31
- ...X,
32
- x: B,
33
- opacity: F
30
+ const z = F[a], u = !i && n !== 0 && l !== 0, f = S ? { duration: 0 } : {
31
+ ...U,
32
+ x: j,
33
+ opacity: B
34
34
  };
35
- return /* @__PURE__ */ t(h.li, {
36
- className: r("absolute right-0 bottom-0 origin-bottom will-change-transform", x ? "w-max max-w-[calc(100vw-3rem)]" : "max-w-full", G({ type: a })),
35
+ return /* @__PURE__ */ t(A.li, {
36
+ className: r("absolute right-0 bottom-0 origin-bottom will-change-transform", x ? "w-max max-w-[calc(100vw-3rem)]" : "max-w-full", q({ type: a })),
37
37
  style: { zIndex: C ? w - n : 0 },
38
38
  initial: {
39
39
  x: "110%",
@@ -45,7 +45,7 @@ var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, o
45
45
  x: 0,
46
46
  opacity: m ? 1 : 0,
47
47
  y: -O,
48
- scale: i ? 1 : 1 - n * D,
48
+ scale: i ? 1 : 1 - n * P,
49
49
  height: u ? l : "auto"
50
50
  },
51
51
  exit: { opacity: 0 },
@@ -54,27 +54,27 @@ var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, o
54
54
  e === "exit" && E(c);
55
55
  },
56
56
  "aria-hidden": !m,
57
- children: /* @__PURE__ */ o("div", {
57
+ children: /* @__PURE__ */ s("div", {
58
58
  ref: T,
59
59
  role: "status",
60
60
  "aria-live": "polite",
61
61
  "aria-atomic": "true",
62
- className: Q(),
63
- children: [/* @__PURE__ */ o("div", {
62
+ className: M(),
63
+ children: [/* @__PURE__ */ s("div", {
64
64
  className: "flex items-center gap-8",
65
- children: [/* @__PURE__ */ o("div", {
65
+ children: [/* @__PURE__ */ s("div", {
66
66
  className: "flex min-w-0 flex-1 items-center gap-2",
67
67
  children: [/* @__PURE__ */ t(z, {
68
- size: s ? 20 : 24,
69
- className: r(J({ type: a }))
70
- }), /* @__PURE__ */ t(A, {
71
- variant: s ? "body2" : "body1",
72
- className: r("min-w-0", M({ type: a })),
68
+ size: o ? 20 : 24,
69
+ className: r(G({ type: a }))
70
+ }), /* @__PURE__ */ t(h, {
71
+ variant: o ? "body2" : "body1",
72
+ className: r("min-w-0", J({ type: a })),
73
73
  children: g
74
74
  })]
75
- }), V ? /* @__PURE__ */ o("button", {
75
+ }), V ? /* @__PURE__ */ s("button", {
76
76
  type: "button",
77
- className: r(K({ type: a })),
77
+ className: r(k({ type: a })),
78
78
  onClick: p,
79
79
  children: [/* @__PURE__ */ t(L, {
80
80
  className: "size-5",
@@ -84,14 +84,14 @@ var Z = ({ autoWidth: x, closeLabel: I, expanded: i, frontHeight: l, index: n, o
84
84
  children: I
85
85
  })]
86
86
  }) : null]
87
- }), s ? /* @__PURE__ */ t(h.div, {
87
+ }), o ? /* @__PURE__ */ t(A.div, {
88
88
  className: "pl-7",
89
89
  animate: { opacity: u ? 0 : 1 },
90
90
  transition: f,
91
- children: /* @__PURE__ */ t(A, {
91
+ children: /* @__PURE__ */ t(h, {
92
92
  variant: "body2",
93
- className: r(q({ type: a })),
94
- children: s
93
+ className: r(K({ type: a })),
94
+ children: o
95
95
  })
96
96
  }) : null]
97
97
  })
@@ -1,18 +1,34 @@
1
- import { t as p } from "../../utils-DnIJruo0.js";
2
- import { a as c, i as h, n as x, o as f, r as g, t as w } from "../../dist-D5Q2IYuC.js";
3
- import { jsx as r, jsxs as a } from "react/jsx-runtime";
4
- var C = ({ content: t, children: e, side: s = "top", sideOffset: o = 4, bgClassName: i = "bg-slate-700", arrowClassName: l = "fill-slate-700", textClassName: n = "text-white", className: d, delayDuration: m = 0 }) => /* @__PURE__ */ r(h, {
5
- delayDuration: m,
6
- children: /* @__PURE__ */ a(c, { children: [/* @__PURE__ */ r(f, {
7
- asChild: !0,
8
- children: /* @__PURE__ */ r("span", { children: e })
9
- }), /* @__PURE__ */ r(g, { children: /* @__PURE__ */ a(x, {
10
- side: s,
11
- sideOffset: o,
12
- className: p("rounded px-2 py-1 text-xs shadow-md", "animate-in fade-in-0", i, n, d),
13
- children: [t, /* @__PURE__ */ r(w, { className: l })]
14
- }) })] })
15
- });
1
+ import { t } from "../../utils-DnIJruo0.js";
2
+ import { a as w, i as C, n as b, o as j, r as O, t as P } from "../../dist-vUCyiTQy.js";
3
+ import { useState as y } from "react";
4
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
5
+ var k = ({ content: o, children: i, asOverlay: r = !1, disabled: a = !1, overlayClassName: n, overlayLabel: p, wrapperClassName: m, side: d = "top", sideOffset: c = 4, bgClassName: f = "bg-slate-700", arrowClassName: h = "fill-slate-700", textClassName: g = "text-white", className: T, delayDuration: u = 0 }) => {
6
+ const [x, v] = y(!1), N = r ? /* @__PURE__ */ e("span", {
7
+ role: "img",
8
+ "aria-label": p ?? (typeof o == "string" ? o : void 0),
9
+ hidden: a,
10
+ className: t("absolute cursor-help", n ?? "inset-0")
11
+ }) : /* @__PURE__ */ e("span", { children: i }), l = /* @__PURE__ */ e(w, {
12
+ delayDuration: u,
13
+ children: /* @__PURE__ */ s(P, {
14
+ open: !a && x,
15
+ onOpenChange: v,
16
+ children: [/* @__PURE__ */ e(j, {
17
+ asChild: !0,
18
+ children: N
19
+ }), /* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(O, {
20
+ side: d,
21
+ sideOffset: c,
22
+ className: t("rounded px-2 py-1 text-xs shadow-md", "animate-in fade-in-0", f, g, T),
23
+ children: [o, /* @__PURE__ */ e(b, { className: h })]
24
+ }) })]
25
+ })
26
+ });
27
+ return r ? /* @__PURE__ */ s("div", {
28
+ className: t("relative", m),
29
+ children: [i, l]
30
+ }) : l;
31
+ };
16
32
  export {
17
- C as Tooltip
33
+ k as Tooltip
18
34
  };
@@ -1,107 +1,38 @@
1
- import { t as l } from "../../utils-DnIJruo0.js";
2
- import { Actions as ee } from "./components/Actions/Actions.js";
3
- import { t as re } from "../../table.provider-MQ4T5Xb5.js";
4
- import { sendResetFiltersEvent as te } from "./events/filters/filters.js";
5
- import { sendRefreshEvent as ae } from "./events/refresh/refresh.js";
6
- import { sendCollapseRowEvent as le, sendExpandRowEvent as oe, sendToggleRowEvent as ie } from "./events/row/row.js";
7
- import { Body as se } from "./components/Body/Body.js";
8
- import { Filter as ne } from "./components/Filter/Filter.js";
9
- import { Header as me } from "./components/Header/Header.js";
10
- import { Pagination as ce } from "./components/Pagination/Pagination.js";
11
- import { TruncateText as de } from "./components/TruncateText/TruncateText.js";
12
- import { WrapperBody as fe } from "./components/WrapperBody/WrapperBody.js";
13
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
14
- var pe = ({ id: i, ariaLabel: f, columns: p, data: v, totalItems: u = -1 / 0, className: b, classNameHeaderActiveArrows: w, classNameHeaderArrows: E, classNameHeaderTable: T, classNameTable: N, classNameWrapperTable: h, isLoading: a, emptyState: k, errorState: x, headerContent: A, classNameHeaderContent: R, classNameScrollContainer: s, getRowId: y, fetchData: z, queryOptions: B, showPagination: P, showTotalItems: n, showDropdownPagination: m, showDotPagination: c, showFormPagination: d, pageSizes: V, dropdownPaginationDirection: g, showFilter: j = !1, showFilterInput: F, filterSearchPlaceholder: H = "", filters: I, multiSelectFilter: K, filterActions: W, showResetButton: q = !0, resetButtonClassName: C, closeOnApply: G = !0, enableHoverRow: J, classNameHoverRow: M, enableExpandedRow: O, expandedState: Q, defaultExpanded: U, classNameExpandedRow: X, classNameExpandedCell: Y, classNameExpandedContent: Z, classNameExpandedHeader: _, classNameActiveExpandedRow: $, onExpandedChange: L, renderExpandedRow: S, keepExpandColumnVisible: D }) => {
15
- const r = P || [
16
- n,
17
- m,
18
- c,
19
- d
20
- ].some(Boolean);
21
- return /* @__PURE__ */ e(re, {
22
- id: i,
23
- columns: p,
24
- data: v,
25
- headerContent: A,
26
- getRowId: y,
27
- fetchData: z,
28
- totalItems: u,
29
- queryOptions: B,
30
- isPaginationEnabled: r,
31
- enableExpandedRow: O,
32
- expandedState: Q,
33
- onExpandedChange: L,
34
- defaultExpanded: U,
35
- classNameExpandedRow: X,
36
- classNameExpandedCell: Y,
37
- classNameExpandedContent: Z,
38
- classNameExpandedHeader: _,
39
- classNameActiveExpandedRow: $,
40
- enableHoverRow: J,
41
- classNameHoverRow: M,
42
- renderExpandedRow: S,
43
- keepExpandColumnVisible: D,
44
- children: /* @__PURE__ */ o("section", {
45
- className: l("kvt", "w-full min-w-fit", b),
46
- children: [j && /* @__PURE__ */ e(ne, {
47
- id: i,
48
- actions: W,
49
- filters: I,
50
- multiSelectFilter: K,
51
- placeholder: H,
52
- showFilterInput: F,
53
- showResetButton: q,
54
- resetButtonClassName: C,
55
- closeOnApply: G
56
- }), /* @__PURE__ */ e("div", {
57
- className: l("kvt-scroll", "w-full", s),
58
- children: /* @__PURE__ */ o("div", {
59
- className: "kvt-scroll-content w-full min-w-fit",
60
- children: [/* @__PURE__ */ e(fe, {
61
- showPagination: r,
62
- classNameWrapperTable: h,
63
- isLoading: a,
64
- children: /* @__PURE__ */ o("table", {
65
- className: l("kvt-table", "w-full border-collapse table-auto", "dark:border-separate dark:border-spacing-0", N),
66
- "aria-label": f,
67
- children: [/* @__PURE__ */ e(me, {
68
- className: T,
69
- classNameArrows: E,
70
- classNameActiveArrows: w,
71
- classNameHeaderContent: R
72
- }), /* @__PURE__ */ e(se, {
73
- isLoading: a,
74
- showPagination: r,
75
- emptyState: k,
76
- errorState: x
77
- })]
78
- })
79
- }), r && /* @__PURE__ */ e(ce, {
80
- showTotalItems: n,
81
- showDropdownPagination: m,
82
- showDotPagination: c,
83
- showFormPagination: d,
84
- pageSizes: V,
85
- isLoading: a,
86
- isListPortal: !!s,
87
- dropdownPaginationDirection: g
88
- })]
89
- })
90
- })]
91
- })
92
- });
93
- }, t = pe;
1
+ import { t as o } from "../../utils-DnIJruo0.js";
2
+ import { Actions as a } from "./components/Actions/Actions.js";
3
+ import { sendResetFiltersEvent as i } from "./events/filters/filters.js";
4
+ import { sendRefreshEvent as m } from "./events/refresh/refresh.js";
5
+ import { sendCollapseRowEvent as n, sendExpandRowEvent as s, sendToggleRowEvent as l } from "./events/row/row.js";
6
+ import { EmptyState as p } from "./components/EmptyState/EmptyState.js";
7
+ import { EmptyResults as f } from "./components/EmptyResults/EmptyResults.js";
8
+ import { ErrorState as u } from "./components/ErrorState/ErrorState.js";
9
+ import { TruncateText as d } from "./components/TruncateText/TruncateText.js";
10
+ import { Suspense as E, lazy as c } from "react";
11
+ import { jsx as r } from "react/jsx-runtime";
12
+ var v = c(() => import("./components/VirtualizedTableContent/VirtualizedTableContent.js").then((e) => ({ default: e.VirtualizedTableContent }))), T = (e) => /* @__PURE__ */ r(E, {
13
+ fallback: /* @__PURE__ */ r("section", {
14
+ className: o("kvt", "w-full min-w-fit", e.className),
15
+ "aria-busy": "true"
16
+ }),
17
+ children: /* @__PURE__ */ r(v, { ...e })
18
+ }), t = T;
94
19
  t.displayName = "KonstructVirtualizedTable";
95
- t.TruncateText = de;
96
- t.Actions = ee;
20
+ t.TruncateText = d;
21
+ t.EmptyState = p;
22
+ t.EmptyResults = f;
23
+ t.ErrorState = u;
24
+ t.Actions = a;
97
25
  t.Events = {
98
- sendExpandRowEvent: oe,
99
- sendCollapseRowEvent: le,
100
- sendToggleRowEvent: ie,
101
- sendResetFiltersEvent: te,
102
- sendRefreshEvent: ae
26
+ sendExpandRowEvent: s,
27
+ sendCollapseRowEvent: n,
28
+ sendToggleRowEvent: l,
29
+ sendResetFiltersEvent: i,
30
+ sendRefreshEvent: m
103
31
  };
104
32
  export {
105
- de as TruncateText,
33
+ f as EmptyResults,
34
+ p as EmptyState,
35
+ u as ErrorState,
36
+ d as TruncateText,
106
37
  t as VirtualizedTable
107
38
  };
@@ -1,5 +1,5 @@
1
- import { t as r } from "../../../../dist-B9GE4SXf.js";
2
- var e = r([
1
+ import { t as a } from "../../../../dist-B9GE4SXf.js";
2
+ var e = a([
3
3
  "text-slate-400",
4
4
  "group-hover:text-slate-800",
5
5
  "group-hover:bg-aurora-50",
@@ -17,7 +17,7 @@ var e = r([
17
17
  false: []
18
18
  } },
19
19
  defaultVariants: { isOpen: !1 }
20
- }), t = r([
20
+ }), t = a([
21
21
  "bg-white",
22
22
  "py-2",
23
23
  "rounded-lg",
@@ -26,7 +26,7 @@ var e = r([
26
26
  "border-zinc-100",
27
27
  "dark:bg-metal-800",
28
28
  "dark:border-metal-700"
29
- ]), o = r([
29
+ ]), o = a([
30
30
  "w-full",
31
31
  "text-slate-800",
32
32
  "cursor-pointer",
@@ -45,7 +45,20 @@ var e = r([
45
45
  "focus:no-underline",
46
46
  "dark:hover:bg-metal-700",
47
47
  "dark:focus:bg-metal-700"
48
- ]);
48
+ ], {
49
+ variants: { isDisabled: {
50
+ true: [
51
+ "cursor-not-allowed",
52
+ "text-slate-400",
53
+ "hover:bg-transparent",
54
+ "hover:text-slate-400",
55
+ "dark:text-metal-500",
56
+ "dark:hover:bg-transparent"
57
+ ],
58
+ false: []
59
+ } },
60
+ defaultVariants: { isDisabled: !1 }
61
+ });
49
62
  export {
50
63
  o as actionsItemVariants,
51
64
  t as actionsPanelVariants,
@@ -1,23 +1,33 @@
1
1
  import { t as a } from "../../../../../../utils-DnIJruo0.js";
2
- import { Button as v } from "../../../../../Button/Button.js";
3
- import { actionsItemVariants as x, actionsPanelVariants as N } from "../../Actions.variants.js";
4
- import { jsx as i } from "react/jsx-runtime";
5
- var V = ({ actions: n, className: o, isMenu: r = !1, rowData: m, onSelect: s }) => /* @__PURE__ */ i("div", {
6
- className: a(N(), o),
7
- children: n.map(({ id: e, label: t, className: c, component: p = v, componentProps: f, onClick: l }, d) => /* @__PURE__ */ i(p, {
8
- className: a(x(), c),
9
- variant: "link",
10
- onClick: () => {
11
- s?.(), l(m);
12
- },
13
- ...r ? {
14
- role: "menuitem",
15
- tabIndex: -1
16
- } : {},
17
- ...f,
18
- children: t
19
- }, e ?? (typeof t == "string" ? t : `action-${d}`)))
2
+ import { Button as I } from "../../../../../Button/Button.js";
3
+ import { Tooltip as V } from "../../../../../Tooltip/Tooltip.js";
4
+ import { actionsItemVariants as g, actionsPanelVariants as j } from "../../Actions.variants.js";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ var D = ({ actions: s, className: m, disabledReasonSide: c = "left", isMenu: l = !1, rowData: f, onSelect: p }) => /* @__PURE__ */ n("div", {
7
+ className: a(j(), m),
8
+ children: s.map(({ id: d, label: t, className: u, component: x = I, componentProps: v, disabled: N = !1, disabledReason: i, disabledReasonSide: h = c, onClick: k }, y) => {
9
+ const r = d ?? (typeof t == "string" ? t : `action-${y}`), e = N || !!i, o = /* @__PURE__ */ n(x, {
10
+ "aria-disabled": e || void 0,
11
+ className: a(g({ isDisabled: e }), u),
12
+ variant: "link",
13
+ onClick: () => {
14
+ e || (p?.(), k(f));
15
+ },
16
+ ...l ? {
17
+ role: "menuitem",
18
+ tabIndex: -1
19
+ } : {},
20
+ ...v,
21
+ children: t
22
+ }, r);
23
+ return i ? /* @__PURE__ */ n(V, {
24
+ side: h,
25
+ className: "z-50 max-w-40 text-center",
26
+ content: i,
27
+ children: o
28
+ }, r) : o;
29
+ })
20
30
  });
21
31
  export {
22
- V as ActionsList
32
+ D as ActionsList
23
33
  };
@@ -1,48 +1,81 @@
1
- import { t as m } from "../../../../../../utils-DnIJruo0.js";
2
- import { ActionsList as E } from "../ActionsList/ActionsList.js";
3
- import { ActionsTrigger as I } from "../ActionsTrigger/ActionsTrigger.js";
1
+ import { t as h } from "../../../../../../utils-DnIJruo0.js";
2
+ import { ActionsList as D } from "../ActionsList/ActionsList.js";
3
+ import { ActionsTrigger as H } from "../ActionsTrigger/ActionsTrigger.js";
4
4
  import "./constants/index.js";
5
- import { useRef as R, useState as T } from "react";
6
- import { jsx as e, jsxs as B } from "react/jsx-runtime";
7
- var M = ({ actions: i, wrapperClassName: u, triggerButtonClassName: g, iconTriggerButtonClassName: d, wrapperActionsClassName: f, wrapperContentActionsClassName: v, ...h }) => {
8
- const r = R(null), [n, b] = T(!1), w = () => {
9
- const o = r.current;
10
- if (!o) return;
11
- const s = o.getBoundingClientRect(), y = i.length * 36 + 16;
12
- let l = 0, c = window.innerHeight, t = o.parentElement;
13
- for (; t; ) {
14
- const { overflowY: A } = window.getComputedStyle(t);
5
+ import { useEffect as M, useRef as j, useState as l } from "react";
6
+ import { jsx as a, jsxs as G } from "react/jsx-runtime";
7
+ var J = ({ actions: c, disabledReasonSide: w, openOnHover: r = !0, wrapperClassName: b, triggerButtonClassName: y, iconTriggerButtonClassName: E, wrapperActionsClassName: C, wrapperContentActionsClassName: I, ...S }) => {
8
+ const s = j(null), [p, A] = l(!1), [o, i] = l(!1), [N, u] = l(!1), d = () => {
9
+ const e = s.current;
10
+ if (!e) return;
11
+ const t = e.getBoundingClientRect(), R = c.length * 36 + 16;
12
+ let f = 0, m = window.innerHeight, n = e.parentElement;
13
+ for (; n; ) {
14
+ const { overflowY: B } = window.getComputedStyle(n);
15
15
  if ([
16
16
  "auto",
17
17
  "scroll",
18
18
  "hidden"
19
- ].includes(A)) {
20
- const p = t.getBoundingClientRect();
21
- l = p.top, c = p.bottom;
19
+ ].includes(B)) {
20
+ const v = n.getBoundingClientRect();
21
+ f = v.top, m = v.bottom;
22
22
  break;
23
23
  }
24
- t = t.parentElement;
24
+ n = n.parentElement;
25
+ }
26
+ const g = m - t.bottom, x = t.top - f;
27
+ A(g < R && x > g);
28
+ }, T = () => {
29
+ if (r) {
30
+ u(!0);
31
+ return;
25
32
  }
26
- const a = c - s.bottom, N = s.top - l;
27
- b(a < y && N > a);
33
+ i(!1);
34
+ }, k = () => {
35
+ r || (d(), i((e) => !e));
28
36
  };
29
- return /* @__PURE__ */ B("div", {
30
- ref: r,
31
- className: m("relative group", u),
32
- onMouseEnter: w,
33
- children: [/* @__PURE__ */ e(I, {
34
- className: g,
35
- iconClassName: d
36
- }), /* @__PURE__ */ e("div", {
37
- className: m("absolute", "right-0", "w-53.75", "z-10", n ? "bottom-full" : "top-full", n ? "pb-1" : "pt-1", "invisible", "opacity-0", "transition-[opacity,visibility]", "duration-150", "delay-150", "group-hover:visible", "group-hover:opacity-100", "group-hover:delay-0", "group-hover:duration-75", f),
38
- children: /* @__PURE__ */ e(E, {
39
- actions: i,
40
- className: v,
41
- rowData: h.row.original
37
+ M(() => {
38
+ if (!o) return;
39
+ const e = new AbortController();
40
+ return document.addEventListener("mousedown", (t) => {
41
+ s.current?.contains(t.target) || i(!1);
42
+ }, { signal: e.signal }), document.addEventListener("keydown", (t) => {
43
+ t.key === "Escape" && i(!1);
44
+ }, { signal: e.signal }), () => {
45
+ e.abort();
46
+ };
47
+ }, [o]);
48
+ const L = r && !N;
49
+ return /* @__PURE__ */ G("div", {
50
+ ref: s,
51
+ className: h("relative group", b),
52
+ onMouseEnter: d,
53
+ onMouseLeave: () => {
54
+ u(!1);
55
+ },
56
+ children: [/* @__PURE__ */ a(H, {
57
+ className: y,
58
+ iconClassName: E,
59
+ isOpen: o,
60
+ onClick: k,
61
+ ...r ? {} : { "aria-expanded": o }
62
+ }), /* @__PURE__ */ a("div", {
63
+ className: h("absolute", "right-0", "w-53.75", "z-10", p ? "bottom-full" : "top-full", p ? "pb-1" : "pt-1", "transition-[opacity,visibility]", "duration-150", o ? "visible opacity-100" : "invisible opacity-0 delay-150", L && [
64
+ "group-hover:visible",
65
+ "group-hover:opacity-100",
66
+ "group-hover:delay-0",
67
+ "group-hover:duration-75"
68
+ ], C),
69
+ children: /* @__PURE__ */ a(D, {
70
+ actions: c,
71
+ disabledReasonSide: w,
72
+ className: I,
73
+ rowData: S.row.original,
74
+ onSelect: T
42
75
  })
43
76
  })]
44
77
  });
45
78
  };
46
79
  export {
47
- M as InlineActions
80
+ J as InlineActions
48
81
  };
@@ -1,46 +1,48 @@
1
1
  import { t as n } from "../../../../../../utils-DnIJruo0.js";
2
- import { ActionsList as y } from "../ActionsList/ActionsList.js";
3
- import { ActionsTrigger as N } from "../ActionsTrigger/ActionsTrigger.js";
4
- import { useActionsMenu as A } from "./hooks/use-actions-menu/use-actions-menu.js";
5
- import { createPortal as K } from "react-dom";
6
- import { jsx as o, jsxs as L } from "react/jsx-runtime";
7
- var j = ({ actions: s, wrapperClassName: l, triggerButtonClassName: m, iconTriggerButtonClassName: d, wrapperActionsClassName: c, wrapperContentActionsClassName: f, ...u }) => {
8
- const { buttonRef: p, hasOpened: r, isOpen: e, menuId: i, menuRef: g, triggerRef: h, closeMenu: P, handleMenuKeyDown: w, handlePointerEnter: a, handlePointerLeave: t, handleTriggerClick: v, handleTriggerKeyDown: D, handleTriggerPointerDown: x } = A();
9
- return /* @__PURE__ */ L("div", {
10
- ref: h,
11
- className: n("group inline-flex", l),
12
- onPointerEnter: a,
13
- onPointerLeave: t,
14
- onKeyDown: D,
15
- children: [/* @__PURE__ */ o(N, {
16
- ref: p,
2
+ import { ActionsList as N } from "../ActionsList/ActionsList.js";
3
+ import { ActionsTrigger as C } from "../ActionsTrigger/ActionsTrigger.js";
4
+ import { useActionsMenu as K } from "./hooks/use-actions-menu/use-actions-menu.js";
5
+ import { createPortal as T } from "react-dom";
6
+ import { jsx as o, jsxs as E } from "react/jsx-runtime";
7
+ var z = ({ actions: s, disabledReasonSide: l, openOnHover: d = !0, wrapperClassName: m, triggerButtonClassName: c, iconTriggerButtonClassName: u, wrapperActionsClassName: f, wrapperContentActionsClassName: p, ...g }) => {
8
+ const { buttonRef: h, hasOpened: r, isOpen: e, menuId: i, menuRef: P, triggerRef: v, handleMenuKeyDown: w, handlePointerEnter: t, handlePointerLeave: a, handleTriggerClick: D, handleTriggerKeyDown: x, handleTriggerPointerDown: L, handleButtonPointerLeave: y, selectAndClose: A } = K({ openOnHover: d });
9
+ return /* @__PURE__ */ E("div", {
10
+ ref: v,
11
+ className: n("group inline-flex", m),
12
+ onPointerEnter: t,
13
+ onPointerLeave: a,
14
+ onKeyDown: x,
15
+ children: [/* @__PURE__ */ o(C, {
16
+ ref: h,
17
17
  "aria-haspopup": "menu",
18
18
  "aria-expanded": e,
19
19
  "aria-controls": r ? i : void 0,
20
- className: m,
21
- iconClassName: d,
20
+ className: c,
21
+ iconClassName: u,
22
22
  isOpen: e,
23
- onClick: v,
24
- onPointerDown: x
25
- }), r && K(/* @__PURE__ */ o("div", {
23
+ onClick: D,
24
+ onPointerDown: L,
25
+ onPointerLeave: y
26
+ }), r && T(/* @__PURE__ */ o("div", {
26
27
  id: i,
27
- ref: g,
28
+ ref: P,
28
29
  role: "menu",
29
30
  hidden: !e,
30
- className: n("fixed z-50 w-53.75", c),
31
- onPointerEnter: a,
32
- onPointerLeave: t,
31
+ className: n("fixed z-50 w-53.75", f),
32
+ onPointerEnter: t,
33
+ onPointerLeave: a,
33
34
  onKeyDown: w,
34
- children: /* @__PURE__ */ o(y, {
35
+ children: /* @__PURE__ */ o(N, {
35
36
  actions: s,
36
- className: n("animate-in fade-in-0", f),
37
+ disabledReasonSide: l,
38
+ className: n("animate-in fade-in-0", p),
37
39
  isMenu: !0,
38
- rowData: u.row.original,
39
- onSelect: P
40
+ rowData: g.row.original,
41
+ onSelect: A
40
42
  })
41
43
  }), document.body)]
42
44
  });
43
45
  };
44
46
  export {
45
- j as PortalActions
47
+ z as PortalActions
46
48
  };