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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/{AdditionalOptions-D3SZ2WFJ.js → AdditionalOptions-ClcR_Kf7.js} +1 -1
  2. package/dist/{AlertDialogTrigger-Cdw3C2Tv.js → AlertDialogTrigger-C9xoCZrZ.js} +33 -33
  3. package/dist/Breadcrumb-CpXRb08J.js +93 -0
  4. package/dist/Checkbox-DRdyrKjk.js +252 -0
  5. package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
  6. package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
  7. package/dist/Counter-DMkXIsOO.js +229 -0
  8. package/dist/DropdownButton-JilCRLJY.js +92 -0
  9. package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
  10. package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
  11. package/dist/Modal-CysTe3zL.js +83 -0
  12. package/dist/Spinner-CTonkSzG.js +47 -0
  13. package/dist/Switch-5cdUxbhX.js +215 -0
  14. package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
  15. package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
  16. package/dist/components/Alert/Alert.js +45 -41
  17. package/dist/components/AlertDialog/AlertDialog.js +42 -42
  18. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  19. package/dist/components/AlertDialog/components/index.js +1 -1
  20. package/dist/components/Avatar/Avatar.js +37 -0
  21. package/dist/components/Avatar/Avatar.variants.js +25 -0
  22. package/dist/components/Avatar/hooks/index.js +5 -0
  23. package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
  24. package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
  25. package/dist/components/Badge/Badge.js +1 -1
  26. package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
  27. package/dist/components/BadgeGroup/hooks/index.js +4 -0
  28. package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
  29. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  30. package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
  31. package/dist/components/Breadcrumb/components/index.js +6 -4
  32. package/dist/components/Button/Button.js +25 -19
  33. package/dist/components/Button/Button.variants.js +4 -1
  34. package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
  35. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
  36. package/dist/components/Checkbox/Checkbox.js +1 -1
  37. package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
  38. package/dist/components/Collapse/Collapse.js +63 -0
  39. package/dist/components/Command/Command.js +5 -5
  40. package/dist/components/Command/components/Command.js +1 -1
  41. package/dist/components/Command/components/CommandEmpty.js +1 -1
  42. package/dist/components/Command/components/CommandGroup.js +1 -1
  43. package/dist/components/Command/components/CommandInput.js +1 -1
  44. package/dist/components/Command/components/CommandItem.js +1 -1
  45. package/dist/components/Command/components/CommandList.js +1 -1
  46. package/dist/components/Command/components/CommandSeparator.js +1 -1
  47. package/dist/components/Command/components/DialogContent.js +1 -1
  48. package/dist/components/Command/components/DialogOverlay.js +1 -1
  49. package/dist/components/Command/components/index.js +1 -1
  50. package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
  51. package/dist/components/CopyButton/CopyButton.js +29 -29
  52. package/dist/components/Counter/Counter.js +1 -1
  53. package/dist/components/Counter/Counter.variants.js +73 -16
  54. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
  55. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
  56. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
  57. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
  58. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
  59. package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
  60. package/dist/components/Datepicker/DatePicker.js +14 -49
  61. package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
  62. package/dist/components/Drawer/Drawer.js +18 -18
  63. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  64. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  65. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
  66. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
  67. package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
  68. package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
  69. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
  70. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
  71. package/dist/components/Filter/hooks/index.js +3 -1
  72. package/dist/components/Filter/hooks/useLocale.js +16 -0
  73. package/dist/components/Filter/utils/index.js +6 -2
  74. package/dist/components/LineChart/LineChart.js +18 -125
  75. package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
  76. package/dist/components/Modal/Modal.js +1 -1
  77. package/dist/components/Modal/components/Body/Body.js +1 -1
  78. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  79. package/dist/components/Modal/components/Header/Header.js +1 -1
  80. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  81. package/dist/components/Modal/components/index.js +1 -1
  82. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  83. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +22 -3
  84. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  85. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  86. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  87. package/dist/components/OtpInput/OtpInput.js +103 -0
  88. package/dist/components/PasswordRules/PasswordRules.js +51 -0
  89. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
  90. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  91. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
  92. package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
  93. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
  94. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  95. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  96. package/dist/components/PhoneNumberInput/contexts/index.js +4 -4
  97. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  98. package/dist/components/PieChart/PieChart.js +10 -53
  99. package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
  100. package/dist/components/ProgressBar/ProgressBar.js +10 -10
  101. package/dist/components/Radio/Radio.js +16 -16
  102. package/dist/components/Radio/Radio.variants.js +4 -1
  103. package/dist/components/RadioCard/RadioCard.js +36 -18
  104. package/dist/components/RadioCard/RadioCard.variants.js +9 -3
  105. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  106. package/dist/components/Range/Range.js +1 -1
  107. package/dist/components/Select/Select.js +2 -2
  108. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
  109. package/dist/components/Select/components/List/List.js +10 -10
  110. package/dist/components/Select/components/Wrapper.js +1 -1
  111. package/dist/components/Select/components/index.js +2 -2
  112. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +15 -15
  113. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  114. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
  115. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
  116. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
  117. package/dist/components/Sidebar/components/index.js +1 -1
  118. package/dist/components/Skeleton/Skeleton.js +18 -0
  119. package/dist/components/Skeleton/Skeleton.variants.js +25 -0
  120. package/dist/components/Slider/Slider.js +1 -1
  121. package/dist/components/Spinner/Spinner.js +1 -1
  122. package/dist/components/Stepper/Stepper.js +38 -29
  123. package/dist/components/Stepper/Stepper.variants.js +55 -19
  124. package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
  125. package/dist/components/Switch/Switch.js +1 -1
  126. package/dist/components/Tabs/Tabs.js +52 -24
  127. package/dist/components/Tabs/Tabs.variants.js +15 -6
  128. package/dist/components/Tabs/components/Content.js +6 -6
  129. package/dist/components/Tabs/components/List.js +10 -10
  130. package/dist/components/Tabs/components/Trigger.js +11 -10
  131. package/dist/components/Tag/Tag.js +1 -1
  132. package/dist/components/TagsInput/TagsInput.js +159 -0
  133. package/dist/components/Toast/Toast.js +68 -2
  134. package/dist/components/Toast/components/ToastCard/ToastCard.js +32 -32
  135. package/dist/components/Tooltip/Tooltip.js +32 -16
  136. package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
  137. package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
  138. package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
  139. package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
  140. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
  141. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
  142. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
  143. package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
  144. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
  145. package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
  146. package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
  147. package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
  148. package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
  149. package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
  150. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
  151. package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
  152. package/dist/components/VirtualizedTable/components/index.js +18 -12
  153. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  154. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  155. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  156. package/dist/components/VirtualizedTable/utils/index.js +4 -4
  157. package/dist/components/index.js +181 -155
  158. package/dist/components-B_SWqhCL.js +147 -0
  159. package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
  160. package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
  161. package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
  162. package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
  163. package/dist/dist-BCoDIdCt.js +429 -0
  164. package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
  165. package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
  166. package/dist/dist-Bh7M0KDN.js +367 -0
  167. package/dist/dist-BqDJX7m1.js +209 -0
  168. package/dist/dist-C0OhTLFV.js +31 -0
  169. package/dist/dist-C1a-68Kb.js +120 -0
  170. package/dist/dist-CK8FUUUn.js +125 -0
  171. package/dist/dist-CQSCPpFc.js +196 -0
  172. package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
  173. package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
  174. package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
  175. package/dist/dist-fPYIsxyx.js +465 -0
  176. package/dist/dist-rsFD9q_X.js +484 -0
  177. package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
  178. package/dist/dist-vDSmnSS_.js +41 -0
  179. package/dist/dist-vUCyiTQy.js +365 -0
  180. package/dist/es2015-ChhQTsb4.js +74 -0
  181. package/dist/index.js +194 -168
  182. package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
  183. package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
  184. package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
  185. package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
  186. package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
  187. package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
  188. package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
  189. package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
  190. package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
  191. package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
  192. package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
  193. package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
  194. package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
  195. package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
  196. package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
  197. package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
  198. package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
  199. package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
  200. package/dist/lib/components/Button/Button.variants.d.ts +1 -1
  201. package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
  202. package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
  203. package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
  204. package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
  205. package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
  206. package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
  207. package/dist/lib/components/Counter/Counter.d.ts +7 -4
  208. package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
  209. package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
  210. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
  211. package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
  212. package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
  213. package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
  214. package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
  215. package/dist/lib/components/Filter/utils/index.d.ts +1 -0
  216. package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
  217. package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
  218. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
  219. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
  220. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
  221. package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
  222. package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
  223. package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
  224. package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
  225. package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
  226. package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
  227. package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
  228. package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
  229. package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
  230. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
  231. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
  232. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
  233. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
  234. package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
  235. package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
  236. package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
  237. package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
  238. package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
  239. package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
  240. package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
  241. package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
  242. package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
  243. package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
  244. package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
  245. package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
  246. package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
  247. package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
  248. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
  249. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
  250. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
  251. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
  252. package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
  253. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
  254. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
  255. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
  256. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
  257. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
  258. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
  259. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
  260. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
  261. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
  262. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
  263. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
  264. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
  265. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
  266. package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
  267. package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
  268. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
  269. package/dist/lib/components/index.d.ts +10 -0
  270. package/dist/package.json +31 -30
  271. package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
  272. package/dist/styles.css +1 -1
  273. package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
  274. package/package.json +31 -30
  275. package/dist/AnimatePresence-BsUYG9bm.js +0 -186
  276. package/dist/Breadcrumb-CHi5-wVa.js +0 -81
  277. package/dist/Checkbox-CrNxsm3G.js +0 -247
  278. package/dist/Counter-DN50BVq6.js +0 -194
  279. package/dist/DropdownButton-Blhkj-Oi.js +0 -490
  280. package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
  281. package/dist/Modal-Bk1I_NCC.js +0 -81
  282. package/dist/Spinner-smR3esbL.js +0 -47
  283. package/dist/Switch-CPE8v6Zh.js +0 -199
  284. package/dist/Toast-CRPLONv9.js +0 -77
  285. package/dist/components-z-LYRWfq.js +0 -124
  286. package/dist/dist-CNui_Egg.js +0 -451
  287. package/dist/dist-CR3FMRzF.js +0 -118
  288. package/dist/dist-D5Q2IYuC.js +0 -358
  289. package/dist/dist-D70ZJkHf.js +0 -29
  290. package/dist/dist-DZ_SU77k.js +0 -437
  291. package/dist/dist-LRkZdylX.js +0 -174
  292. package/dist/dist-f8EwfITY.js +0 -194
  293. package/dist/dist-pWlMx4Fi.js +0 -36
  294. package/dist/dist-uerXivvM.js +0 -178
  295. package/dist/dist-xCbHbMLA.js +0 -116
  296. package/dist/es2015-Hhb87ipX.js +0 -231
  297. package/dist/react-C685EsYG.js +0 -4730
@@ -1,25 +1,25 @@
1
1
  import { n as Q, t as c } from "../../utils-DnIJruo0.js";
2
- import { t as R } from "../../react-C685EsYG.js";
3
- import { buttonGroupPillVariants as T, buttonGroupVariants as U, buttonGroupWrapperVariants as X } from "./ButtonGroup.variants.js";
4
- import { ButtonGroupItem as Y } from "./components/ButtonGroupItem/ButtonGroupItem.js";
5
- import { ButtonGroupLabel as Z } from "./components/ButtonGroupLabel/ButtonGroupLabel.js";
6
- import { ButtonGroupMessage as _ } from "./components/ButtonGroupMessage/ButtonGroupMessage.js";
7
- import { useButtonGroup as ee } from "./hooks/useButtonGroup.js";
8
- import { useMemo as te } from "react";
2
+ import { buttonGroupPillVariants as R, buttonGroupVariants as T, buttonGroupWrapperVariants as U } from "./ButtonGroup.variants.js";
3
+ import { ButtonGroupItem as X } from "./components/ButtonGroupItem/ButtonGroupItem.js";
4
+ import { ButtonGroupLabel as Y } from "./components/ButtonGroupLabel/ButtonGroupLabel.js";
5
+ import { ButtonGroupMessage as Z } from "./components/ButtonGroupMessage/ButtonGroupMessage.js";
6
+ import { useButtonGroup as _ } from "./hooks/useButtonGroup.js";
7
+ import { useMemo as ee } from "react";
9
8
  import { jsx as a, jsxs as G } from "react/jsx-runtime";
9
+ import { motion as te } from "motion/react";
10
10
  var ae = ({ className: g, contentClassName: B, defaultValue: I, descriptionAlign: N, descriptionClassName: x, disabled: s, duration: m, error: o, errorClassName: D, helperText: u, helperTextClassName: $, isRequired: p, itemClassName: w, itemLabelClassName: K, label: i, labelAlign: S, labelClassName: V, name: j, options: t, pillClassName: L, requiredClassName: M, theme: C, value: E, wrapperClassName: F, onValueChange: O }) => {
11
- const { animationDirection: P, groupRef: W, id: n, selected: r, handleKeyDown: k, handleSelect: q } = ee({
11
+ const { animationDirection: P, groupRef: W, id: n, selected: r, handleKeyDown: k, handleSelect: q } = _({
12
12
  defaultValue: I,
13
13
  disabled: s ?? void 0,
14
14
  options: t,
15
15
  value: E,
16
16
  onValueChange: O
17
- }), f = `${n}-label`, v = `${n}-error`, h = `${n}-helper-text`, l = typeof o == "string" && o.length > 0, z = Q(l && v, !l && !!u && h), b = t.length, y = te(() => t.findIndex((e) => e.value === r), [t, r]);
17
+ }), f = `${n}-label`, v = `${n}-error`, h = `${n}-helper-text`, l = typeof o == "string" && o.length > 0, z = Q(l && v, !l && !!u && h), b = t.length, y = ee(() => t.findIndex((e) => e.value === r), [t, r]);
18
18
  return /* @__PURE__ */ G("div", {
19
- className: c(X(), F),
19
+ className: c(U(), F),
20
20
  "data-theme": C,
21
21
  children: [
22
- i && /* @__PURE__ */ a(Z, {
22
+ i && /* @__PURE__ */ a(Y, {
23
23
  className: V,
24
24
  id: f,
25
25
  isRequired: p,
@@ -33,10 +33,10 @@ var ae = ({ className: g, contentClassName: B, defaultValue: I, descriptionAlign
33
33
  "aria-invalid": l || void 0,
34
34
  "aria-describedby": z,
35
35
  "aria-required": p || void 0,
36
- className: c(U({ disabled: s }), g),
37
- children: [y >= 0 && /* @__PURE__ */ a(R.div, {
36
+ className: c(T({ disabled: s }), g),
37
+ children: [y >= 0 && /* @__PURE__ */ a(te.div, {
38
38
  "aria-hidden": "true",
39
- className: c(T(), L),
39
+ className: c(R(), L),
40
40
  initial: !1,
41
41
  animate: {
42
42
  left: `calc(${y} * (100% / ${b}) + 8px)`,
@@ -49,7 +49,7 @@ var ae = ({ className: g, contentClassName: B, defaultValue: I, descriptionAlign
49
49
  }
50
50
  }), t.map((e, d) => {
51
51
  const A = r === e.value, H = s || e.disabled, J = !!e.description;
52
- return /* @__PURE__ */ a(Y, {
52
+ return /* @__PURE__ */ a(X, {
53
53
  animationDirection: P,
54
54
  className: w,
55
55
  contentClassName: B,
@@ -76,7 +76,7 @@ var ae = ({ className: g, contentClassName: B, defaultValue: I, descriptionAlign
76
76
  name: j,
77
77
  value: r ?? ""
78
78
  }),
79
- /* @__PURE__ */ a(_, {
79
+ /* @__PURE__ */ a(Z, {
80
80
  error: o,
81
81
  errorClassName: D,
82
82
  errorId: v,
@@ -1,9 +1,9 @@
1
1
  import { t as r } from "../../../../utils-DnIJruo0.js";
2
- import { t as L } from "../../../../react-C685EsYG.js";
3
- import { buttonGroupDescriptionVariants as V, buttonGroupItemContentVariants as g, buttonGroupItemVariants as w, buttonGroupLabelVariants as o } from "./ButtonGroupItem.variants.js";
4
- import { memo as j } from "react";
2
+ import { buttonGroupDescriptionVariants as L, buttonGroupItemContentVariants as V, buttonGroupItemVariants as g, buttonGroupLabelVariants as o } from "./ButtonGroupItem.variants.js";
3
+ import { memo as w } from "react";
5
4
  import { jsx as s, jsxs as a } from "react/jsx-runtime";
6
- var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t ? "inset(0 0 0 0)" : n === "right" ? "inset(0 0 0 100%)" : "inset(0 100% 0 0)", B = j(({ animationDirection: t, className: n, contentClassName: d, descriptionAlign: p, descriptionClassName: h, duration: b = 0.3, hasDescription: f, index: c, isDisabled: l, isFirst: v, isLast: y, isSelected: i, labelAlign: m, labelClassName: u, option: e, value: N, onKeyDown: G, onSelect: x }) => /* @__PURE__ */ s("button", {
5
+ import { motion as j } from "motion/react";
6
+ var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t ? "inset(0 0 0 0)" : n === "right" ? "inset(0 0 0 100%)" : "inset(0 100% 0 0)", B = w(({ animationDirection: t, className: n, contentClassName: d, descriptionAlign: p, descriptionClassName: h, duration: b = 0.3, hasDescription: f, index: c, isDisabled: l, isFirst: v, isLast: y, isSelected: i, labelAlign: m, labelClassName: u, option: e, value: N, onKeyDown: G, onSelect: x }) => /* @__PURE__ */ s("button", {
7
7
  type: "button",
8
8
  role: "radio",
9
9
  "aria-checked": i,
@@ -12,13 +12,13 @@ var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t
12
12
  tabIndex: i || c === 0 ? 0 : -1,
13
13
  onClick: () => !l && x(N),
14
14
  onKeyDown: (I) => G(I, c),
15
- className: r(w({
15
+ className: r(g({
16
16
  disabled: l,
17
17
  isFirst: v,
18
18
  isLast: y
19
19
  }), "relative", n),
20
20
  children: /* @__PURE__ */ a("div", {
21
- className: r(g({ hasDescription: f }), "relative", d),
21
+ className: r(V({ hasDescription: f }), "relative", d),
22
22
  children: [/* @__PURE__ */ a("span", {
23
23
  className: "relative w-full",
24
24
  children: [/* @__PURE__ */ a("span", {
@@ -30,7 +30,7 @@ var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t
30
30
  className: "flex items-center gap-2",
31
31
  children: [e.icon, e.label]
32
32
  }), e.secondaryLabel && /* @__PURE__ */ s("span", { children: e.secondaryLabel })]
33
- }), /* @__PURE__ */ a(L.span, {
33
+ }), /* @__PURE__ */ a(j.span, {
34
34
  className: r(o({
35
35
  selected: !0,
36
36
  labelAlign: m
@@ -49,7 +49,7 @@ var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t
49
49
  }), e.secondaryLabel && /* @__PURE__ */ s("span", { children: e.secondaryLabel })]
50
50
  })]
51
51
  }), e.description && /* @__PURE__ */ s("span", {
52
- className: r(V({ descriptionAlign: p }), h),
52
+ className: r(L({ descriptionAlign: p }), h),
53
53
  children: e.description
54
54
  })]
55
55
  })
@@ -1,4 +1,4 @@
1
- import { t as r } from "../../Checkbox-CrNxsm3G.js";
1
+ import { t as r } from "../../Checkbox-DRdyrKjk.js";
2
2
  export {
3
3
  r as Checkbox
4
4
  };
@@ -0,0 +1,52 @@
1
+ import { t as j } from "../../Checkbox-DRdyrKjk.js";
2
+ import { t as e } from "../../utils-DnIJruo0.js";
3
+ import { Typography as m } from "../Typography/Typography.js";
4
+ import { Card as $ } from "../Card/Card.js";
5
+ import { useId as A, useState as B } from "react";
6
+ import { jsx as r, jsxs as d } from "react/jsx-runtime";
7
+ var F = ({ checked: i, className: p, contentClassName: h, defaultChecked: f, description: o, disabled: a = !1, id: x, label: u, name: C, theme: k, value: b, wrapperClassName: y, onChange: N }) => {
8
+ const g = A(), t = x ?? g, s = `${t}-label`, l = `${t}-description`, [v, I] = B(f ?? !1), n = i ?? v, w = (c) => {
9
+ I(c), N?.(c);
10
+ };
11
+ return /* @__PURE__ */ r($, {
12
+ "data-theme": k,
13
+ isActive: n,
14
+ canHover: !a,
15
+ wrapperClassName: e("w-full", y),
16
+ className: e("flex items-start p-0", a && "cursor-not-allowed opacity-50"),
17
+ children: /* @__PURE__ */ d("label", {
18
+ htmlFor: t,
19
+ className: e("flex w-full items-start gap-3 p-4", a ? "cursor-not-allowed" : "cursor-pointer"),
20
+ children: [/* @__PURE__ */ r(j, {
21
+ id: t,
22
+ name: C,
23
+ value: b,
24
+ checked: n,
25
+ disabled: a,
26
+ ariaLabelledBy: s,
27
+ "aria-describedby": o ? l : void 0,
28
+ className: e("mt-0.5 shrink-0", p),
29
+ onChange: w
30
+ }), /* @__PURE__ */ d("span", {
31
+ className: e("flex flex-col gap-1", h),
32
+ children: [/* @__PURE__ */ r(m, {
33
+ id: s,
34
+ component: "span",
35
+ variant: "body2",
36
+ className: "font-medium text-slate-800 dark:text-metal-50",
37
+ children: u
38
+ }), o ? /* @__PURE__ */ r(m, {
39
+ id: l,
40
+ component: "span",
41
+ variant: "body3",
42
+ className: "text-slate-500 dark:text-metal-400",
43
+ children: o
44
+ }) : null]
45
+ })]
46
+ })
47
+ });
48
+ };
49
+ F.displayName = "KonstructCheckboxCard";
50
+ export {
51
+ F as CheckboxCard
52
+ };
@@ -0,0 +1,63 @@
1
+ import { t as p } from "../../utils-DnIJruo0.js";
2
+ import { useState as A } from "react";
3
+ import { jsx as i } from "react/jsx-runtime";
4
+ import { AnimatePresence as C, motion as f, useReducedMotion as x } from "motion/react";
5
+ var e = [
6
+ 0.4,
7
+ 0,
8
+ 0.2,
9
+ 1
10
+ ], y = ({ children: n, className: r, collapsedMarginTop: u = 0, id: s, isOpen: t, keepMounted: h = !1, onExitComplete: v }) => {
11
+ const g = x(), [l, o] = A(!1), m = g ? { duration: 0 } : {
12
+ height: {
13
+ duration: 0.35,
14
+ ease: e
15
+ },
16
+ marginTop: {
17
+ duration: 0.35,
18
+ ease: e
19
+ },
20
+ opacity: {
21
+ duration: 0.25,
22
+ ease: e
23
+ }
24
+ }, a = {
25
+ opacity: 0,
26
+ height: 0,
27
+ marginTop: u
28
+ }, d = {
29
+ opacity: 1,
30
+ height: "auto",
31
+ marginTop: 0
32
+ }, c = t && !l ? "overflow-visible" : "overflow-hidden";
33
+ return h ? /* @__PURE__ */ i(f.div, {
34
+ id: s,
35
+ initial: !1,
36
+ animate: t ? d : a,
37
+ transition: m,
38
+ hidden: !t && !l,
39
+ "aria-hidden": !t || void 0,
40
+ className: p(c, r),
41
+ onAnimationStart: () => o(!0),
42
+ onAnimationComplete: () => o(!1),
43
+ children: n
44
+ }) : /* @__PURE__ */ i(C, {
45
+ initial: !1,
46
+ onExitComplete: v,
47
+ children: t ? /* @__PURE__ */ i(f.div, {
48
+ id: s,
49
+ initial: a,
50
+ animate: d,
51
+ exit: a,
52
+ transition: m,
53
+ className: p(c, r),
54
+ onAnimationStart: () => o(!0),
55
+ onAnimationComplete: () => o(!1),
56
+ children: n
57
+ }, "collapse") : null
58
+ });
59
+ };
60
+ y.displayName = "KonstructCollapse";
61
+ export {
62
+ y as Collapse
63
+ };
@@ -1,6 +1,6 @@
1
- import { n as d } from "../../dist-DX0sBG3Q.js";
1
+ import { t as n } from "../../dist-C_jtUTU9.js";
2
2
  import { t as o } from "../../utils-DnIJruo0.js";
3
- import { s, t as p } from "../../dist-f8EwfITY.js";
3
+ import { s, t as p } from "../../dist-BqDJX7m1.js";
4
4
  import { wrapperVariants as l } from "./Command.variants.js";
5
5
  import { CommandGroup as D } from "./components/CommandGroup.js";
6
6
  import { CommandItem as v } from "./components/CommandItem.js";
@@ -9,14 +9,14 @@ import { DialogContent as f } from "./components/DialogContent.js";
9
9
  import { Command as c } from "./components/Command.js";
10
10
  import "./components/index.js";
11
11
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
12
- var I = ({ children: r, title: a, titleClassName: i, wrapperClassName: e, theme: t, ...n }) => /* @__PURE__ */ m(p, {
13
- ...n,
12
+ var I = ({ children: r, title: a, titleClassName: i, wrapperClassName: e, theme: t, ...d }) => /* @__PURE__ */ m(p, {
13
+ ...d,
14
14
  children: /* @__PURE__ */ h(f, {
15
15
  className: "overflow-hidden p-0 border-0 rounded-none!",
16
16
  "data-theme": t,
17
17
  children: [/* @__PURE__ */ m(s, {
18
18
  className: o("hidden", i),
19
- children: /* @__PURE__ */ m(d, { children: a })
19
+ children: /* @__PURE__ */ m(n, { children: a })
20
20
  }), /* @__PURE__ */ m(c, {
21
21
  className: o(l({ className: e })),
22
22
  children: r
@@ -1,4 +1,4 @@
1
- import { t as r } from "../../../dist-CgzF5_J6.js";
1
+ import { t as r } from "../../../dist-4IVGO6ZT.js";
2
2
  import { forwardRef as d } from "react";
3
3
  import { jsx as m } from "react/jsx-runtime";
4
4
  var p = d(({ className: a, children: o, ...e }, i) => /* @__PURE__ */ m(r, {
@@ -1,4 +1,4 @@
1
- import { t as m } from "../../../dist-CgzF5_J6.js";
1
+ import { t as m } from "../../../dist-4IVGO6ZT.js";
2
2
  import { forwardRef as a } from "react";
3
3
  import { jsx as e } from "react/jsx-runtime";
4
4
  var p = a((t, r) => /* @__PURE__ */ e(m.Empty, {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../../../utils-DnIJruo0.js";
2
- import { t as o } from "../../../dist-CgzF5_J6.js";
2
+ import { t as o } from "../../../dist-4IVGO6ZT.js";
3
3
  import { forwardRef as p } from "react";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  var t = p(({ className: r, ...m }, d) => /* @__PURE__ */ a(o.Group, {
@@ -1,4 +1,4 @@
1
- import { t as o } from "../../../CommandInput-DiRv6fEA.js";
1
+ import { t as o } from "../../../CommandInput-Du2o616y.js";
2
2
  export {
3
3
  o as CommandInput
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { t as d } from "../../../utils-DnIJruo0.js";
2
- import { t as a } from "../../../dist-CgzF5_J6.js";
2
+ import { t as a } from "../../../dist-4IVGO6ZT.js";
3
3
  import { CommandContext as i } from "../contexts/Command.context.js";
4
4
  import { forwardRef as c, useCallback as l, useContext as p } from "react";
5
5
  import { jsx as u } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { t } from "../../../utils-DnIJruo0.js";
2
- import { t as o } from "../../../dist-CgzF5_J6.js";
2
+ import { t as o } from "../../../dist-4IVGO6ZT.js";
3
3
  import { forwardRef as i } from "react";
4
4
  import { jsx as s } from "react/jsx-runtime";
5
5
  var e = i(({ className: m, ...r }, a) => /* @__PURE__ */ s(o.List, {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../../../utils-DnIJruo0.js";
2
- import { t as r } from "../../../dist-CgzF5_J6.js";
2
+ import { t as r } from "../../../dist-4IVGO6ZT.js";
3
3
  import { forwardRef as t } from "react";
4
4
  import { jsx as p } from "react/jsx-runtime";
5
5
  var s = t(({ className: a, ...o }, m) => /* @__PURE__ */ p(r.Separator, {
@@ -1,6 +1,6 @@
1
1
  import { t as r } from "../../../x-Vur_9PXW.js";
2
2
  import { t as d } from "../../../utils-DnIJruo0.js";
3
- import { n as l, o as m, r as o } from "../../../dist-f8EwfITY.js";
3
+ import { n as l, o as m, r as o } from "../../../dist-BqDJX7m1.js";
4
4
  import { DialogOverlay as p } from "./DialogOverlay.js";
5
5
  import { forwardRef as f } from "react";
6
6
  import { jsx as t, jsxs as a } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { t as i } from "../../../utils-DnIJruo0.js";
2
- import { a } from "../../../dist-f8EwfITY.js";
2
+ import { a } from "../../../dist-BqDJX7m1.js";
3
3
  import { forwardRef as r } from "react";
4
4
  import { jsx as s } from "react/jsx-runtime";
5
5
  var d = r(({ className: t, ...e }, o) => /* @__PURE__ */ s(a, {
@@ -1,4 +1,4 @@
1
- import { t as o } from "../../../CommandInput-DiRv6fEA.js";
1
+ import { t as o } from "../../../CommandInput-Du2o616y.js";
2
2
  import { CommandEmpty as t } from "./CommandEmpty.js";
3
3
  import { CommandGroup as a } from "./CommandGroup.js";
4
4
  import { CommandItem as n } from "./CommandItem.js";
@@ -0,0 +1,110 @@
1
+ import { t as H } from "../../Input-2M2I_H60.js";
2
+ import { t as g } from "../../utils-DnIJruo0.js";
3
+ import { WarningIcon as K } from "../../assets/icons/components/Warning.js";
4
+ import { Button as C } from "../Button/Button.js";
5
+ import { Typography as d } from "../Typography/Typography.js";
6
+ import { CopyButton as T } from "../CopyButton/CopyButton.js";
7
+ import { t as l } from "../../Modal-CysTe3zL.js";
8
+ import { useEffect as V, useId as W, useState as A } from "react";
9
+ import { Fragment as G, jsx as e, jsxs as r } from "react/jsx-runtime";
10
+ var J = ({ cancelLabel: N = "Cancel", children: v, className: k, confirmationInputClassName: I, confirmationInputLabel: w, confirmationPrompt: B, confirmationText: a, confirmLabel: n = "Confirm", containerClassName: j, copyLabel: D = "Copy", description: i, icon: c, isOpen: o, isPending: t = !1, pendingLabel: F, theme: S, title: $, variant: f = "danger", onClose: M, onConfirm: q }) => {
11
+ const s = W(), p = `${s}-title`, [u, h] = A(""), x = !!a, y = !x || u === a;
12
+ V(() => {
13
+ o && h("");
14
+ }, [o]);
15
+ const b = () => {
16
+ t || M();
17
+ }, z = (m) => {
18
+ m.preventDefault(), !(t || !y) && q();
19
+ }, E = c === void 0 ? /* @__PURE__ */ e(K, {
20
+ size: 24,
21
+ "aria-hidden": "true",
22
+ className: g("shrink-0", f === "danger" ? "text-red-600 dark:text-red-500" : "text-aurora-500")
23
+ }) : c;
24
+ return /* @__PURE__ */ e(l, {
25
+ isOpen: o,
26
+ theme: S,
27
+ showCloseButton: !1,
28
+ ariaLabelledBy: p,
29
+ containerClassName: j,
30
+ className: g("max-w-125 min-h-0 min-w-0 gap-0 p-6", k),
31
+ onClose: b,
32
+ children: /* @__PURE__ */ r("form", {
33
+ id: s,
34
+ noValidate: !0,
35
+ className: "flex flex-col gap-6",
36
+ onSubmit: z,
37
+ children: [
38
+ /* @__PURE__ */ r(l.Header, {
39
+ className: "flex items-start gap-4",
40
+ children: [E, /* @__PURE__ */ r("div", {
41
+ className: "flex min-w-0 flex-1 flex-col gap-4",
42
+ children: [
43
+ /* @__PURE__ */ e(d, {
44
+ id: p,
45
+ variant: "subtitle3",
46
+ component: "h2",
47
+ className: "text-slate-800 dark:text-slate-200",
48
+ children: $
49
+ }),
50
+ i ? /* @__PURE__ */ e(d, {
51
+ variant: "body2",
52
+ className: "text-slate-700 dark:text-slate-50",
53
+ children: i
54
+ }) : null,
55
+ v
56
+ ]
57
+ })]
58
+ }),
59
+ x ? /* @__PURE__ */ r(l.Body, {
60
+ className: "flex flex-col gap-2 pl-10",
61
+ children: [/* @__PURE__ */ e(d, {
62
+ variant: "body2",
63
+ component: "p",
64
+ className: "flex flex-wrap items-center gap-1 font-medium text-slate-800 dark:text-metal-50",
65
+ children: B ?? /* @__PURE__ */ r(G, { children: [
66
+ "Type",
67
+ /* @__PURE__ */ e(T, {
68
+ text: a,
69
+ label: a,
70
+ copyLabel: D,
71
+ className: "rounded-xs border border-gray-200 bg-gray-50 px-1 py-0.5 font-medium hover:bg-gray-100 dark:border-metal-700 dark:bg-metal-700 dark:hover:bg-metal-600",
72
+ children: a
73
+ }),
74
+ "to confirm"
75
+ ] })
76
+ }), /* @__PURE__ */ e(H, {
77
+ value: u,
78
+ autoComplete: "off",
79
+ disabled: t,
80
+ className: I,
81
+ "aria-label": w ?? `Type ${a} to confirm`,
82
+ onChange: (m) => {
83
+ h(m.target.value);
84
+ }
85
+ })]
86
+ }) : null,
87
+ /* @__PURE__ */ r(l.Footer, {
88
+ className: "flex justify-end gap-2",
89
+ children: [/* @__PURE__ */ e(C, {
90
+ type: "button",
91
+ variant: "secondary",
92
+ disabled: t,
93
+ onClick: b,
94
+ children: N
95
+ }), /* @__PURE__ */ e(C, {
96
+ type: "submit",
97
+ form: s,
98
+ variant: f,
99
+ disabled: t || !y,
100
+ children: t ? F ?? n : n
101
+ })]
102
+ })
103
+ ]
104
+ })
105
+ });
106
+ };
107
+ J.displayName = "KonstructConfirmDialog";
108
+ export {
109
+ J as ConfirmDialog
110
+ };
@@ -1,31 +1,31 @@
1
- import { n as w } from "../../dist-DX0sBG3Q.js";
2
- import { t as n } from "../../utils-DnIJruo0.js";
3
- import { CopyIcon as N } from "../../assets/icons/components/Copy.js";
4
- import { a as B, i as P, n as T, o as j, r as k, t as z } from "../../dist-D5Q2IYuC.js";
1
+ import { t as v } from "../../dist-C_jtUTU9.js";
2
+ import { t as i } from "../../utils-DnIJruo0.js";
3
+ import { CopyIcon as w } from "../../assets/icons/components/Copy.js";
4
+ import { a as N, i as B, n as P, o as j, r as k, t as z } from "../../dist-vUCyiTQy.js";
5
5
  import { copyButtonVariants as D } from "./CopyButton.variants.js";
6
6
  import { useCopyToClipboard as F } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
7
7
  import { useEffect as I, useState as V } from "react";
8
- import { jsx as t, jsxs as r } from "react/jsx-runtime";
9
- var $ = ({ arrowClassName: p, children: s, className: c, copiedLabel: i = "Copied!", copyLabel: l = "Copy", label: d, resetDelay: m, text: f, theme: u, tooltipClassName: h, onCopy: C, onCopyError: y, ...g }) => {
10
- const [x, a] = V(!1), { copied: o, copy: O } = F({
8
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
9
+ var $ = ({ arrowClassName: p, children: r, className: c, copiedLabel: s = "Copied!", copyLabel: l = "Copy", label: d, resetDelay: m, text: f, theme: u, tooltipClassName: h, onCopy: C, onCopyError: y, ...T }) => {
10
+ const [g, a] = V(!1), { copied: e, copy: x } = F({
11
11
  resetDelay: m,
12
12
  onCopy: C,
13
13
  onCopyError: y
14
14
  });
15
15
  I(() => {
16
- o || a(!1);
17
- }, [o]);
18
- const b = async (e) => {
19
- e.stopPropagation(), await O(f) && a(!0);
20
- }, v = (e) => {
21
- e.currentTarget.matches(":focus-visible") || e.preventDefault();
16
+ e || a(!1);
17
+ }, [e]);
18
+ const O = async (o) => {
19
+ o.stopPropagation(), await x(f) && a(!0);
20
+ }, b = (o) => {
21
+ o.currentTarget.matches(":focus-visible") || o.preventDefault();
22
22
  };
23
- return /* @__PURE__ */ r(P, {
23
+ return /* @__PURE__ */ n(N, {
24
24
  delayDuration: 0,
25
- children: [/* @__PURE__ */ r(B, {
26
- open: x,
27
- onOpenChange: (e) => {
28
- o || a(e);
25
+ children: [/* @__PURE__ */ n(z, {
26
+ open: g,
27
+ onOpenChange: (o) => {
28
+ e || a(o);
29
29
  },
30
30
  children: [/* @__PURE__ */ t(j, {
31
31
  asChild: !0,
@@ -33,27 +33,27 @@ var $ = ({ arrowClassName: p, children: s, className: c, copiedLabel: i = "Copie
33
33
  type: "button",
34
34
  "aria-label": `${l} ${d}`,
35
35
  "data-theme": u,
36
- className: n(D({
37
- iconOnly: !s,
36
+ className: i(D({
37
+ iconOnly: !r,
38
38
  className: c
39
39
  })),
40
- onClick: b,
41
- onFocus: v,
42
- ...g,
43
- children: s ?? /* @__PURE__ */ t(N, {
40
+ onClick: O,
41
+ onFocus: b,
42
+ ...T,
43
+ children: r ?? /* @__PURE__ */ t(w, {
44
44
  size: 14,
45
45
  "aria-hidden": "true"
46
46
  })
47
47
  })
48
- }), /* @__PURE__ */ t(k, { children: /* @__PURE__ */ r(T, {
48
+ }), /* @__PURE__ */ t(B, { children: /* @__PURE__ */ n(k, {
49
49
  sideOffset: 4,
50
- className: n("z-70 rounded bg-slate-700 px-2 py-1 text-xs text-white shadow-md", "animate-in fade-in-0", h),
51
- children: [o ? i : l, /* @__PURE__ */ t(z, { className: n("fill-slate-700", p) })]
50
+ className: i("z-70 rounded bg-slate-700 px-2 py-1 text-xs text-white shadow-md", "animate-in fade-in-0", h),
51
+ children: [e ? s : l, /* @__PURE__ */ t(P, { className: i("fill-slate-700", p) })]
52
52
  }) })]
53
- }), /* @__PURE__ */ t(w, {
53
+ }), /* @__PURE__ */ t(v, {
54
54
  role: "status",
55
55
  "aria-live": "polite",
56
- children: o ? i : ""
56
+ children: e ? s : ""
57
57
  })]
58
58
  });
59
59
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "../../Counter-DN50BVq6.js";
2
+ import { t as e } from "../../Counter-DMkXIsOO.js";
3
3
  export {
4
4
  e as Counter
5
5
  };