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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/{AdditionalOptions-D3SZ2WFJ.js → AdditionalOptions-ClcR_Kf7.js} +1 -1
  2. package/dist/{AlertDialogTrigger-Cdw3C2Tv.js → AlertDialogTrigger-C9xoCZrZ.js} +33 -33
  3. package/dist/Breadcrumb-CpXRb08J.js +93 -0
  4. package/dist/Checkbox-DRdyrKjk.js +252 -0
  5. package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
  6. package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
  7. package/dist/Counter-DMkXIsOO.js +229 -0
  8. package/dist/DropdownButton-JilCRLJY.js +92 -0
  9. package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
  10. package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
  11. package/dist/Modal-CysTe3zL.js +83 -0
  12. package/dist/Spinner-CTonkSzG.js +47 -0
  13. package/dist/Switch-5cdUxbhX.js +215 -0
  14. package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
  15. package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
  16. package/dist/components/Alert/Alert.js +45 -41
  17. package/dist/components/AlertDialog/AlertDialog.js +42 -42
  18. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  19. package/dist/components/AlertDialog/components/index.js +1 -1
  20. package/dist/components/Avatar/Avatar.js +37 -0
  21. package/dist/components/Avatar/Avatar.variants.js +25 -0
  22. package/dist/components/Avatar/hooks/index.js +5 -0
  23. package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
  24. package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
  25. package/dist/components/Badge/Badge.js +1 -1
  26. package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
  27. package/dist/components/BadgeGroup/hooks/index.js +4 -0
  28. package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
  29. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  30. package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
  31. package/dist/components/Breadcrumb/components/index.js +6 -4
  32. package/dist/components/Button/Button.js +25 -19
  33. package/dist/components/Button/Button.variants.js +4 -1
  34. package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
  35. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
  36. package/dist/components/Checkbox/Checkbox.js +1 -1
  37. package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
  38. package/dist/components/Collapse/Collapse.js +63 -0
  39. package/dist/components/Command/Command.js +5 -5
  40. package/dist/components/Command/components/Command.js +1 -1
  41. package/dist/components/Command/components/CommandEmpty.js +1 -1
  42. package/dist/components/Command/components/CommandGroup.js +1 -1
  43. package/dist/components/Command/components/CommandInput.js +1 -1
  44. package/dist/components/Command/components/CommandItem.js +1 -1
  45. package/dist/components/Command/components/CommandList.js +1 -1
  46. package/dist/components/Command/components/CommandSeparator.js +1 -1
  47. package/dist/components/Command/components/DialogContent.js +1 -1
  48. package/dist/components/Command/components/DialogOverlay.js +1 -1
  49. package/dist/components/Command/components/index.js +1 -1
  50. package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
  51. package/dist/components/CopyButton/CopyButton.js +29 -29
  52. package/dist/components/Counter/Counter.js +1 -1
  53. package/dist/components/Counter/Counter.variants.js +73 -16
  54. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
  55. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
  56. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
  57. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
  58. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
  59. package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
  60. package/dist/components/Datepicker/DatePicker.js +14 -49
  61. package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
  62. package/dist/components/Drawer/Drawer.js +18 -18
  63. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  64. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  65. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
  66. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
  67. package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
  68. package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
  69. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
  70. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
  71. package/dist/components/Filter/hooks/index.js +3 -1
  72. package/dist/components/Filter/hooks/useLocale.js +16 -0
  73. package/dist/components/Filter/utils/index.js +6 -2
  74. package/dist/components/LineChart/LineChart.js +18 -125
  75. package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
  76. package/dist/components/Modal/Modal.js +1 -1
  77. package/dist/components/Modal/components/Body/Body.js +1 -1
  78. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  79. package/dist/components/Modal/components/Header/Header.js +1 -1
  80. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  81. package/dist/components/Modal/components/index.js +1 -1
  82. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  83. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +22 -3
  84. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  85. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  86. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  87. package/dist/components/OtpInput/OtpInput.js +103 -0
  88. package/dist/components/PasswordRules/PasswordRules.js +51 -0
  89. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
  90. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  91. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
  92. package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
  93. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
  94. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  95. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  96. package/dist/components/PhoneNumberInput/contexts/index.js +4 -4
  97. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  98. package/dist/components/PieChart/PieChart.js +10 -53
  99. package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
  100. package/dist/components/ProgressBar/ProgressBar.js +10 -10
  101. package/dist/components/Radio/Radio.js +16 -16
  102. package/dist/components/Radio/Radio.variants.js +4 -1
  103. package/dist/components/RadioCard/RadioCard.js +36 -18
  104. package/dist/components/RadioCard/RadioCard.variants.js +9 -3
  105. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  106. package/dist/components/Range/Range.js +1 -1
  107. package/dist/components/Select/Select.js +2 -2
  108. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
  109. package/dist/components/Select/components/List/List.js +10 -10
  110. package/dist/components/Select/components/Wrapper.js +1 -1
  111. package/dist/components/Select/components/index.js +2 -2
  112. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +15 -15
  113. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  114. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
  115. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
  116. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
  117. package/dist/components/Sidebar/components/index.js +1 -1
  118. package/dist/components/Skeleton/Skeleton.js +18 -0
  119. package/dist/components/Skeleton/Skeleton.variants.js +25 -0
  120. package/dist/components/Slider/Slider.js +1 -1
  121. package/dist/components/Spinner/Spinner.js +1 -1
  122. package/dist/components/Stepper/Stepper.js +38 -29
  123. package/dist/components/Stepper/Stepper.variants.js +55 -19
  124. package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
  125. package/dist/components/Switch/Switch.js +1 -1
  126. package/dist/components/Tabs/Tabs.js +52 -24
  127. package/dist/components/Tabs/Tabs.variants.js +15 -6
  128. package/dist/components/Tabs/components/Content.js +6 -6
  129. package/dist/components/Tabs/components/List.js +10 -10
  130. package/dist/components/Tabs/components/Trigger.js +11 -10
  131. package/dist/components/Tag/Tag.js +1 -1
  132. package/dist/components/TagsInput/TagsInput.js +159 -0
  133. package/dist/components/Toast/Toast.js +68 -2
  134. package/dist/components/Toast/components/ToastCard/ToastCard.js +32 -32
  135. package/dist/components/Tooltip/Tooltip.js +32 -16
  136. package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
  137. package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
  138. package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
  139. package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
  140. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
  141. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
  142. package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
  143. package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
  144. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
  145. package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
  146. package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
  147. package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
  148. package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
  149. package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
  150. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
  151. package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
  152. package/dist/components/VirtualizedTable/components/index.js +18 -12
  153. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  154. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  155. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  156. package/dist/components/VirtualizedTable/utils/index.js +4 -4
  157. package/dist/components/index.js +181 -155
  158. package/dist/components-B_SWqhCL.js +147 -0
  159. package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
  160. package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
  161. package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
  162. package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
  163. package/dist/dist-BCoDIdCt.js +429 -0
  164. package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
  165. package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
  166. package/dist/dist-Bh7M0KDN.js +367 -0
  167. package/dist/dist-BqDJX7m1.js +209 -0
  168. package/dist/dist-C0OhTLFV.js +31 -0
  169. package/dist/dist-C1a-68Kb.js +120 -0
  170. package/dist/dist-CK8FUUUn.js +125 -0
  171. package/dist/dist-CQSCPpFc.js +196 -0
  172. package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
  173. package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
  174. package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
  175. package/dist/dist-fPYIsxyx.js +465 -0
  176. package/dist/dist-rsFD9q_X.js +484 -0
  177. package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
  178. package/dist/dist-vDSmnSS_.js +41 -0
  179. package/dist/dist-vUCyiTQy.js +365 -0
  180. package/dist/es2015-ChhQTsb4.js +74 -0
  181. package/dist/index.js +194 -168
  182. package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
  183. package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
  184. package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
  185. package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
  186. package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
  187. package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
  188. package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
  189. package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
  190. package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
  191. package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
  192. package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
  193. package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
  194. package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
  195. package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
  196. package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
  197. package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
  198. package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
  199. package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
  200. package/dist/lib/components/Button/Button.variants.d.ts +1 -1
  201. package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
  202. package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
  203. package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
  204. package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
  205. package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
  206. package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
  207. package/dist/lib/components/Counter/Counter.d.ts +7 -4
  208. package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
  209. package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
  210. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
  211. package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
  212. package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
  213. package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
  214. package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
  215. package/dist/lib/components/Filter/utils/index.d.ts +1 -0
  216. package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
  217. package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
  218. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
  219. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
  220. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
  221. package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
  222. package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
  223. package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
  224. package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
  225. package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
  226. package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
  227. package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
  228. package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
  229. package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
  230. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
  231. package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
  232. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
  233. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
  234. package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
  235. package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
  236. package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
  237. package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
  238. package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
  239. package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
  240. package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
  241. package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
  242. package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
  243. package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
  244. package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
  245. package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
  246. package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
  247. package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
  248. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
  249. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
  250. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
  251. package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
  252. package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
  253. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
  254. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
  255. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
  256. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
  257. package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
  258. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
  259. package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
  260. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
  261. package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
  262. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
  263. package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
  264. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
  265. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
  266. package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
  267. package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
  268. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
  269. package/dist/lib/components/index.d.ts +10 -0
  270. package/dist/package.json +31 -30
  271. package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
  272. package/dist/styles.css +1 -1
  273. package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
  274. package/package.json +31 -30
  275. package/dist/AnimatePresence-BsUYG9bm.js +0 -186
  276. package/dist/Breadcrumb-CHi5-wVa.js +0 -81
  277. package/dist/Checkbox-CrNxsm3G.js +0 -247
  278. package/dist/Counter-DN50BVq6.js +0 -194
  279. package/dist/DropdownButton-Blhkj-Oi.js +0 -490
  280. package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
  281. package/dist/Modal-Bk1I_NCC.js +0 -81
  282. package/dist/Spinner-smR3esbL.js +0 -47
  283. package/dist/Switch-CPE8v6Zh.js +0 -199
  284. package/dist/Toast-CRPLONv9.js +0 -77
  285. package/dist/components-z-LYRWfq.js +0 -124
  286. package/dist/dist-CNui_Egg.js +0 -451
  287. package/dist/dist-CR3FMRzF.js +0 -118
  288. package/dist/dist-D5Q2IYuC.js +0 -358
  289. package/dist/dist-D70ZJkHf.js +0 -29
  290. package/dist/dist-DZ_SU77k.js +0 -437
  291. package/dist/dist-LRkZdylX.js +0 -174
  292. package/dist/dist-f8EwfITY.js +0 -194
  293. package/dist/dist-pWlMx4Fi.js +0 -36
  294. package/dist/dist-uerXivvM.js +0 -178
  295. package/dist/dist-xCbHbMLA.js +0 -116
  296. package/dist/es2015-Hhb87ipX.js +0 -231
  297. package/dist/react-C685EsYG.js +0 -4730
@@ -0,0 +1,18 @@
1
+ import { t as a } from "../../utils-DnIJruo0.js";
2
+ import { skeletonVariants as n } from "./Skeleton.variants.js";
3
+ import { jsx as e } from "react/jsx-runtime";
4
+ var d = ({ className: r, count: t = 1, label: l = "Loading", shape: o, theme: s, wrapperClassName: i }) => /* @__PURE__ */ e("div", {
5
+ role: "status",
6
+ "aria-label": l,
7
+ "aria-busy": "true",
8
+ "data-theme": s,
9
+ className: a("flex w-full flex-col gap-2", i),
10
+ children: Array.from({ length: t }, (f, m) => /* @__PURE__ */ e("span", {
11
+ "aria-hidden": "true",
12
+ className: a(n({ shape: o }), r)
13
+ }, m))
14
+ });
15
+ d.displayName = "KonstructSkeleton";
16
+ export {
17
+ d as Skeleton
18
+ };
@@ -0,0 +1,25 @@
1
+ import { t as a } from "../../dist-B9GE4SXf.js";
2
+ var r = a([
3
+ "block",
4
+ "animate-pulse",
5
+ "bg-gray-200",
6
+ "dark:bg-metal-700"
7
+ ], {
8
+ variants: { shape: {
9
+ rect: [
10
+ "h-5",
11
+ "w-full",
12
+ "rounded"
13
+ ],
14
+ text: [
15
+ "h-3.5",
16
+ "w-full",
17
+ "rounded"
18
+ ],
19
+ circle: ["size-10", "rounded-full"]
20
+ } },
21
+ defaultVariants: { shape: "rect" }
22
+ });
23
+ export {
24
+ r as skeletonVariants
25
+ };
@@ -1,5 +1,5 @@
1
1
  import { t } from "../../utils-DnIJruo0.js";
2
- import { i as v, r as N, t as S } from "../../dist-CNui_Egg.js";
2
+ import { i as v, r as N, t as S } from "../../dist-fPYIsxyx.js";
3
3
  import { sliderVariants as V, thumbVariants as g, trackVariants as j } from "./Slider.variants.js";
4
4
  import { forwardRef as b, useEffect as w, useImperativeHandle as y, useRef as R, useState as k } from "react";
5
5
  import { jsx as r, jsxs as l } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as r } from "../../Spinner-smR3esbL.js";
2
+ import { t as r } from "../../Spinner-CTonkSzG.js";
3
3
  export {
4
4
  r as Spinner
5
5
  };
@@ -1,13 +1,13 @@
1
- import { t as s } from "../../utils-DnIJruo0.js";
2
- import { stepItemVariants as S, stepListVariants as b, stepperVariants as k } from "./Stepper.variants.js";
3
- import { StepItem as C } from "./components/StepItem/StepItem.js";
4
- import { useMemo as I } from "react";
5
- import { jsx as e } from "react/jsx-runtime";
6
- var P = ({ className: u, classNames: r, clickable: c = !1, currentStep: a, icons: f, orientation: p = "vertical", showConnector: v = !0, size: h = "sm", steps: l, theme: d, variant: g = "inline", onStepClick: z }) => {
7
- const m = g ?? "inline", o = m === "horizontal" ? "horizontal" : p ?? "vertical", V = h ?? "sm", n = I(() => l.map((t, i) => t.status ? t : a !== void 0 ? i < a ? {
1
+ import { t as l } from "../../utils-DnIJruo0.js";
2
+ import { stepItemVariants as b, stepListVariants as k, stepperVariants as C } from "./Stepper.variants.js";
3
+ import { StepItem as I } from "./components/StepItem/StepItem.js";
4
+ import { useMemo as L } from "react";
5
+ import { jsx as o } from "react/jsx-runtime";
6
+ var q = ({ className: u, classNames: i, clickable: f = !1, currentStep: a, fullWidth: n = !1, icons: p, orientation: v = "vertical", showConnector: h = !0, size: d = "sm", steps: m, theme: g, variant: z = "inline", onStepClick: V }) => {
7
+ const c = z ?? "inline", e = c === "horizontal" ? "horizontal" : v ?? "vertical", S = d ?? "sm", s = L(() => m.map((t, r) => t.status ? t : a !== void 0 ? r < a ? {
8
8
  ...t,
9
9
  status: "completed"
10
- } : i === a ? {
10
+ } : r === a ? {
11
11
  ...t,
12
12
  status: "active"
13
13
  } : {
@@ -16,33 +16,42 @@ var P = ({ className: u, classNames: r, clickable: c = !1, currentStep: a, icons
16
16
  } : {
17
17
  ...t,
18
18
  status: "pending"
19
- }), [l, a]);
20
- return /* @__PURE__ */ e("nav", {
21
- className: s(k({ orientation: o }), u, r?.root),
22
- "data-theme": d,
19
+ }), [m, a]);
20
+ return /* @__PURE__ */ o("nav", {
21
+ className: l(C({
22
+ orientation: e,
23
+ fullWidth: n
24
+ }), u, i?.root),
25
+ "data-theme": g,
23
26
  "aria-label": "Progress steps",
24
- children: /* @__PURE__ */ e("ol", {
25
- className: s(b({ orientation: o }), r?.list),
26
- children: n.map((t, i) => /* @__PURE__ */ e("li", {
27
- className: s(S({ orientation: o }), r?.item),
28
- children: /* @__PURE__ */ e(C, {
27
+ children: /* @__PURE__ */ o("ol", {
28
+ className: l(k({
29
+ orientation: e,
30
+ fullWidth: n
31
+ }), i?.list),
32
+ children: s.map((t, r) => /* @__PURE__ */ o("li", {
33
+ className: l(b({
34
+ orientation: e,
35
+ fullWidth: n
36
+ }), i?.item),
37
+ children: /* @__PURE__ */ o(I, {
29
38
  step: t,
30
- index: i,
31
- isLast: i === n.length - 1,
32
- orientation: o,
33
- clickable: c ?? !1,
34
- onClick: () => z?.(t, i),
35
- size: V,
36
- showConnector: v ?? !0,
37
- nextStepStatus: n[i + 1]?.status,
38
- variant: m,
39
- classNames: r,
40
- icons: f
39
+ index: r,
40
+ isLast: r === s.length - 1,
41
+ orientation: e,
42
+ clickable: f ?? !1,
43
+ onClick: () => V?.(t, r),
44
+ size: S,
45
+ showConnector: h ?? !0,
46
+ nextStepStatus: s[r + 1]?.status,
47
+ variant: c,
48
+ classNames: i,
49
+ icons: p
41
50
  })
42
51
  }, t.id))
43
52
  })
44
53
  });
45
54
  };
46
55
  export {
47
- P as Stepper
56
+ q as Stepper
48
57
  };
@@ -1,27 +1,63 @@
1
1
  import { t } from "../../dist-B9GE4SXf.js";
2
2
  var e = t(["flex"], {
3
- variants: { orientation: {
4
- vertical: ["flex-col"],
5
- horizontal: ["flex-row", "items-start"]
6
- } },
7
- defaultVariants: { orientation: "vertical" }
3
+ variants: {
4
+ orientation: {
5
+ vertical: ["flex-col"],
6
+ horizontal: ["flex-row", "items-start"]
7
+ },
8
+ fullWidth: {
9
+ true: ["w-full"],
10
+ false: []
11
+ }
12
+ },
13
+ defaultVariants: {
14
+ orientation: "vertical",
15
+ fullWidth: !1
16
+ }
8
17
  }), r = t([
9
18
  "flex",
10
19
  "list-none",
11
20
  "p-0",
12
21
  "m-0"
13
22
  ], {
14
- variants: { orientation: {
15
- vertical: ["flex-col"],
16
- horizontal: ["flex-row"]
17
- } },
18
- defaultVariants: { orientation: "vertical" }
23
+ variants: {
24
+ orientation: {
25
+ vertical: ["flex-col"],
26
+ horizontal: ["flex-row"]
27
+ },
28
+ fullWidth: {
29
+ true: ["w-full"],
30
+ false: []
31
+ }
32
+ },
33
+ defaultVariants: {
34
+ orientation: "vertical",
35
+ fullWidth: !1
36
+ }
19
37
  }), i = t(["list-none"], {
20
- variants: { orientation: {
21
- vertical: [],
22
- horizontal: []
23
- } },
24
- defaultVariants: { orientation: "vertical" }
38
+ variants: {
39
+ orientation: {
40
+ vertical: [],
41
+ horizontal: []
42
+ },
43
+ fullWidth: {
44
+ true: [],
45
+ false: []
46
+ }
47
+ },
48
+ compoundVariants: [{
49
+ orientation: "horizontal",
50
+ fullWidth: !0,
51
+ class: [
52
+ "flex-1",
53
+ "min-w-0",
54
+ "last:flex-none"
55
+ ]
56
+ }],
57
+ defaultVariants: {
58
+ orientation: "vertical",
59
+ fullWidth: !1
60
+ }
25
61
  }), n = t([
26
62
  "flex",
27
63
  "group",
@@ -59,7 +95,7 @@ var e = t(["flex"], {
59
95
  variant: "inline",
60
96
  clickable: !1
61
97
  }
62
- }), s = t([
98
+ }), l = t([
63
99
  "flex",
64
100
  "items-center",
65
101
  "justify-center",
@@ -128,7 +164,7 @@ var e = t(["flex"], {
128
164
  status: "pending",
129
165
  size: "sm"
130
166
  }
131
- }), l = t([
167
+ }), s = t([
132
168
  "flex",
133
169
  "flex-col",
134
170
  "gap-0.5"
@@ -308,9 +344,9 @@ var e = t(["flex"], {
308
344
  export {
309
345
  m as horizontalConnectorWrapperVariants,
310
346
  c as stepConnectorVariants,
311
- l as stepContentVariants,
347
+ s as stepContentVariants,
312
348
  d as stepDescriptionVariants,
313
- s as stepIndicatorVariants,
349
+ l as stepIndicatorVariants,
314
350
  i as stepItemVariants,
315
351
  o as stepLabelVariants,
316
352
  r as stepListVariants,
@@ -1,4 +1,4 @@
1
- import { t as f } from "../../../dist-xCbHbMLA.js";
1
+ import { t as f } from "../../../dist-CK8FUUUn.js";
2
2
  function b({ clickable: s, onClick: e, step: n }) {
3
3
  const a = n.status ?? "pending", i = n.disabled || a === "active", c = !!(n.onClick || e), t = s && !i && c, r = typeof n.label == "string" ? "span" : f, l = () => {
4
4
  t && (n.onClick ? n.onClick() : e && e());
@@ -1,4 +1,4 @@
1
- import { t as o } from "../../Switch-CPE8v6Zh.js";
1
+ import { t as o } from "../../Switch-5cdUxbhX.js";
2
2
  export {
3
3
  o as Switch
4
4
  };
@@ -1,28 +1,56 @@
1
- import { t as s } from "../../utils-DnIJruo0.js";
2
- import { r as e } from "../../dist-CR3FMRzF.js";
3
- import { rootVariants as p } from "./Tabs.variants.js";
4
- import { Content as n } from "./components/Content.js";
5
- import { List as f } from "./components/List.js";
1
+ import { t as j } from "../../utils-DnIJruo0.js";
2
+ import { t as x } from "../../dist-C1a-68Kb.js";
3
+ import { rootVariants as F } from "./Tabs.variants.js";
4
+ import { Content as p } from "./components/Content.js";
5
+ import { List as h } from "./components/List.js";
6
6
  import { Trigger as g } from "./components/Trigger.js";
7
- import { jsx as T } from "react/jsx-runtime";
8
- var r = ({ children: o, theme: a, className: m, orientation: t, ...i }) => /* @__PURE__ */ T(e, {
9
- ...i,
10
- "data-theme": a,
11
- "data-orientation": t,
12
- "aria-orientation": t,
13
- className: s(p({
14
- variant: t,
15
- className: m
16
- })),
17
- children: o
18
- });
19
- r.displayName = "KonstructTabs";
20
- r.Content = n;
21
- r.List = f;
22
- r.Trigger = g;
7
+ import { useEffect as L, useState as $ } from "react";
8
+ import { Fragment as y, jsx as m, jsxs as d } from "react/jsx-runtime";
9
+ var o = ({ children: v, className: C, defaultValue: c, items: r, listClassName: N, orientation: n, theme: T, value: u, onValueChange: b, ...V }) => {
10
+ const s = r?.at(0)?.value, [l, f] = $(c ?? s), t = !!r && u === void 0;
11
+ return L(() => {
12
+ t && (r.some((a) => a.value === l) || f(s));
13
+ }, [
14
+ s,
15
+ l,
16
+ t,
17
+ r
18
+ ]), /* @__PURE__ */ d(x, {
19
+ ...V,
20
+ value: t ? l : u,
21
+ defaultValue: t ? void 0 : c,
22
+ onValueChange: (a) => {
23
+ t && f(a), b?.(a);
24
+ },
25
+ "data-theme": T,
26
+ "data-orientation": n,
27
+ "aria-orientation": n,
28
+ className: j(F({
29
+ variant: n,
30
+ className: C
31
+ })),
32
+ children: [r ? /* @__PURE__ */ d(y, { children: [/* @__PURE__ */ m(h, {
33
+ orientation: n ?? "horizontal",
34
+ className: N,
35
+ children: r.map(({ label: a, triggerClassName: i, value: e }) => /* @__PURE__ */ m(g, {
36
+ tab: e,
37
+ label: a,
38
+ className: i
39
+ }, e))
40
+ }), r.map(({ content: a, contentClassName: i, value: e }) => /* @__PURE__ */ m(p, {
41
+ value: e,
42
+ className: i,
43
+ children: a
44
+ }, e))] }) : null, v]
45
+ });
46
+ };
47
+ o.displayName = "KonstructTabs";
48
+ o.Content = p;
49
+ o.List = h;
50
+ o.Trigger = g;
23
51
  export {
24
- n as Content,
25
- f as List,
26
- r as Tabs,
52
+ p as Content,
53
+ h as List,
54
+ o as Tabs,
27
55
  g as Trigger
28
56
  };
@@ -1,21 +1,21 @@
1
- import { t as a } from "../../dist-B9GE4SXf.js";
2
- var r = a([""], {
1
+ import { t } from "../../dist-B9GE4SXf.js";
2
+ var r = t([""], {
3
3
  variants: { variant: {
4
4
  horizontal: "",
5
5
  vertical: "flex gap-6"
6
6
  } },
7
7
  defaultVariants: { variant: "horizontal" }
8
- }), e = a([""], {
8
+ }), e = t([""], {
9
9
  variants: { variant: { default: "" } },
10
10
  defaultVariants: { variant: "default" }
11
- }), i = a(["flex"], {
11
+ }), i = t(["flex"], {
12
12
  variants: { variant: {
13
13
  default: "flex gap-6",
14
14
  horizontal: "",
15
15
  vertical: "flex-col min-w-33 h-full items-center"
16
16
  } },
17
17
  defaultVariants: { variant: "default" }
18
- }), n = a([
18
+ }), f = t([
19
19
  "cursor-pointer",
20
20
  "h-[27px]",
21
21
  "w-fit",
@@ -49,6 +49,15 @@ var r = a([""], {
49
49
  "text-slate-500",
50
50
  "font-semibold",
51
51
  "dark:text-metal-400"
52
+ ],
53
+ auto: [
54
+ "text-slate-500",
55
+ "font-semibold",
56
+ "dark:text-metal-400",
57
+ "group-data-[state=active]/tab:text-zinc-700",
58
+ "group-data-[state=active]/tab:after:scale-y-100",
59
+ "group-data-[state=active]/tab:hover:after:scale-y-140",
60
+ "dark:group-data-[state=active]/tab:text-metal-100"
52
61
  ]
53
62
  } },
54
63
  defaultVariants: { variant: "default" }
@@ -57,5 +66,5 @@ export {
57
66
  e as contentVariants,
58
67
  i as listVariants,
59
68
  r as rootVariants,
60
- n as triggerVariants
69
+ f as triggerVariants
61
70
  };
@@ -1,12 +1,12 @@
1
- import { t as r } from "../../../utils-DnIJruo0.js";
2
- import { t as n } from "../../../dist-CR3FMRzF.js";
1
+ import { t as n } from "../../../utils-DnIJruo0.js";
2
+ import { n as r } from "../../../dist-C1a-68Kb.js";
3
3
  import { contentVariants as m } from "../Tabs.variants.js";
4
4
  import { jsx as s } from "react/jsx-runtime";
5
- var e = ({ children: t, className: o, ...a }) => /* @__PURE__ */ s(n, {
6
- ...a,
7
- className: r(m({
5
+ var e = ({ children: t, className: a, ...o }) => /* @__PURE__ */ s(r, {
6
+ ...o,
7
+ className: n(m({
8
8
  variant: "default",
9
- className: o
9
+ className: a
10
10
  })),
11
11
  children: t
12
12
  });
@@ -1,19 +1,19 @@
1
1
  import { t as a } from "../../../utils-DnIJruo0.js";
2
- import { n } from "../../../dist-CR3FMRzF.js";
3
- import { listVariants as t } from "../Tabs.variants.js";
4
- import { jsx as r } from "react/jsx-runtime";
5
- var e = ({ children: s, className: i, orientation: m, ...o }) => /* @__PURE__ */ r("div", {
6
- className: a(t({ variant: "default" })),
7
- children: /* @__PURE__ */ r(n, {
8
- className: a(t({
2
+ import { r as e } from "../../../dist-C1a-68Kb.js";
3
+ import { listVariants as r } from "../Tabs.variants.js";
4
+ import { jsx as s } from "react/jsx-runtime";
5
+ var l = ({ children: t, className: i, orientation: m, ...o }) => /* @__PURE__ */ s("div", {
6
+ className: a(r({ variant: "default" })),
7
+ children: /* @__PURE__ */ s(e, {
8
+ className: a(r({
9
9
  variant: m,
10
10
  className: i
11
11
  })),
12
12
  ...o,
13
- children: s
13
+ children: t
14
14
  })
15
15
  });
16
- e.displayName = "KonstructTabsList";
16
+ l.displayName = "KonstructTabsList";
17
17
  export {
18
- e as List
18
+ l as List
19
19
  };
@@ -1,21 +1,22 @@
1
1
  import { t as e } from "../../../utils-DnIJruo0.js";
2
2
  import { Typography as m } from "../../Typography/Typography.js";
3
- import { i as n } from "../../../dist-CR3FMRzF.js";
3
+ import { i as n } from "../../../dist-C1a-68Kb.js";
4
4
  import { triggerVariants as p } from "../Tabs.variants.js";
5
- import { jsx as r } from "react/jsx-runtime";
6
- var s = ({ tab: a, label: i, isActive: o, className: t }) => /* @__PURE__ */ r(n, {
7
- value: a,
8
- children: /* @__PURE__ */ r(m, {
5
+ import { jsx as a } from "react/jsx-runtime";
6
+ var s = (r) => r === void 0 ? "auto" : r ? "active" : "inactive", g = ({ tab: r, label: t, isActive: i, className: o }) => /* @__PURE__ */ a(n, {
7
+ value: r,
8
+ className: "group/tab",
9
+ children: /* @__PURE__ */ a(m, {
9
10
  variant: "body2",
10
11
  component: "span",
11
12
  className: e(p({
12
- variant: o ? "active" : "inactive",
13
- className: t
13
+ variant: s(i),
14
+ className: o
14
15
  })),
15
- children: i
16
+ children: t
16
17
  })
17
18
  });
18
- s.displayName = "KonstructTabsTrigger";
19
+ g.displayName = "KonstructTabsTrigger";
19
20
  export {
20
- s as Trigger
21
+ g as Trigger
21
22
  };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../dist-xCbHbMLA.js";
1
+ import { t as e } from "../../dist-CK8FUUUn.js";
2
2
  import { t as o } from "../../utils-DnIJruo0.js";
3
3
  import { tagVariants as c } from "./Tag.variants.js";
4
4
  import { jsx as a, jsxs as d } from "react/jsx-runtime";
@@ -0,0 +1,159 @@
1
+ import { n as te, t as x } from "../../utils-DnIJruo0.js";
2
+ import { LoaderIcon as re } from "../../assets/icons/components/Loader.js";
3
+ import { Badge as ae } from "../Badge/Badge.js";
4
+ import { Typography as w } from "../Typography/Typography.js";
5
+ import { forwardRef as ne, useId as le, useMemo as se, useRef as oe, useState as k } from "react";
6
+ import { jsx as a, jsxs as m } from "react/jsx-runtime";
7
+ var ie = ["Enter", ","], de = ne(({ className: K, commitOnBlur: M = !0, delimiters: S = ie, disabled: u = !1, error: h, errorClassName: $, helperText: I, helperTextClassName: O, id: U, isLoading: g = !1, isRequired: N = !1, label: b, labelAction: D, loadingText: v = "Loading suggestions", placeholder: q, suggestions: T = [], theme: H, value: r, onBlur: V, onChange: C, onFocus: _, ...G }, f) => {
8
+ const J = le(), o = U ?? J, E = `${o}-suggestions`, L = `${o}-error`, B = `${o}-helper-text`, F = oe(null), [l, R] = k(""), [j, i] = k(!1), [d, s] = k(-1), c = typeof h == "string" && h.length > 0, z = !c && !!I, P = te(c && L, z && B), n = se(() => {
9
+ const e = l.trim().toLowerCase();
10
+ return T.filter((t) => !r.includes(t) && t.toLowerCase().includes(e));
11
+ }, [
12
+ l,
13
+ T,
14
+ r
15
+ ]), y = j && !u && (g || n.length > 0), Q = (e) => {
16
+ F.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
17
+ }, p = (e) => {
18
+ const t = e.trim();
19
+ t && !r.includes(t) && C([...r, t]), R(""), s(-1);
20
+ }, A = (e) => {
21
+ C(r.filter((t) => t !== e));
22
+ }, W = (e) => {
23
+ if (e.key === "ArrowDown" && n.length > 0) {
24
+ e.preventDefault(), i(!0), s((t) => (t + 1) % n.length);
25
+ return;
26
+ }
27
+ if (e.key === "ArrowUp" && n.length > 0) {
28
+ e.preventDefault(), s((t) => t <= 0 ? n.length - 1 : t - 1);
29
+ return;
30
+ }
31
+ if (e.key === "Escape") {
32
+ i(!1), s(-1);
33
+ return;
34
+ }
35
+ if (S.includes(e.key)) {
36
+ if (e.preventDefault(), j && d >= 0 && n[d]) {
37
+ p(n[d]);
38
+ return;
39
+ }
40
+ p(l);
41
+ return;
42
+ }
43
+ e.key === "Backspace" && l === "" && r.length > 0 && (e.preventDefault(), A(r[r.length - 1]));
44
+ }, X = (e) => {
45
+ R(e.target.value), i(!0), s(-1);
46
+ }, Y = (e) => {
47
+ i(!0), _?.(e);
48
+ }, Z = (e) => {
49
+ M && p(l), i(!1), s(-1), V?.(e);
50
+ };
51
+ return /* @__PURE__ */ m("div", {
52
+ className: "flex w-full flex-col gap-2",
53
+ "data-theme": H,
54
+ children: [
55
+ b || D ? /* @__PURE__ */ m("div", {
56
+ className: "flex items-center justify-between",
57
+ children: [b ? /* @__PURE__ */ m(w, {
58
+ component: "label",
59
+ variant: "labelLarge",
60
+ htmlFor: o,
61
+ className: "cursor-pointer text-slate-800 dark:text-metal-50",
62
+ children: [b, N ? /* @__PURE__ */ a("span", {
63
+ "aria-hidden": "true",
64
+ className: "ml-1 text-red-600 dark:text-red-500",
65
+ children: "*"
66
+ }) : null]
67
+ }) : null, D]
68
+ }) : null,
69
+ /* @__PURE__ */ m("div", {
70
+ role: "presentation",
71
+ className: x("relative flex min-h-10 w-full flex-wrap items-center gap-2 rounded border bg-white px-2.5 py-2 transition-all", "focus-within:border-transparent focus-within:ring-1", "dark:bg-metal-800", c ? "border-red-600 focus-within:ring-red-600 dark:border-red-500 dark:focus-within:ring-red-500" : "border-gray-200 focus-within:ring-aurora-500 dark:border-metal-700", u && "cursor-not-allowed bg-gray-100 dark:bg-metal-900", K),
72
+ onClick: () => {
73
+ F.current?.focus();
74
+ },
75
+ children: [
76
+ r.map((e) => /* @__PURE__ */ a(ae, {
77
+ label: e,
78
+ dismissible: !0,
79
+ onDismiss: () => {
80
+ u || A(e);
81
+ }
82
+ }, e)),
83
+ /* @__PURE__ */ a("input", {
84
+ ...G,
85
+ ref: Q,
86
+ id: o,
87
+ type: "text",
88
+ role: "combobox",
89
+ value: l,
90
+ placeholder: r.length === 0 ? q : void 0,
91
+ disabled: u,
92
+ autoComplete: "off",
93
+ "aria-expanded": y,
94
+ "aria-controls": y ? E : void 0,
95
+ "aria-autocomplete": "list",
96
+ "aria-invalid": c || void 0,
97
+ "aria-describedby": P,
98
+ "aria-required": N || void 0,
99
+ className: "min-w-24 flex-1 bg-transparent text-sm text-slate-800 outline-none placeholder:text-slate-400 disabled:cursor-not-allowed dark:text-metal-50 dark:placeholder:text-metal-400",
100
+ onChange: X,
101
+ onKeyDown: W,
102
+ onFocus: Y,
103
+ onBlur: Z
104
+ }),
105
+ g ? /* @__PURE__ */ m("span", {
106
+ role: "status",
107
+ className: "flex items-center",
108
+ children: [/* @__PURE__ */ a(re, {
109
+ size: 16,
110
+ "aria-hidden": "true",
111
+ className: "animate-spin text-metal-400"
112
+ }), /* @__PURE__ */ a("span", {
113
+ className: "sr-only",
114
+ children: v
115
+ })]
116
+ }) : null,
117
+ y ? /* @__PURE__ */ a("div", {
118
+ id: E,
119
+ role: "listbox",
120
+ className: "absolute left-0 top-full z-10 mt-1 flex max-h-44 w-full flex-col overflow-y-auto rounded border border-gray-200 bg-white py-2 shadow-2xs animate-in fade-in-50 zoom-in-95 duration-200 dark:border-metal-700 dark:bg-metal-800",
121
+ children: g ? /* @__PURE__ */ a("span", {
122
+ className: "select-none px-6 py-1.5 text-sm text-slate-500 dark:text-metal-300",
123
+ children: v
124
+ }) : n.map((e, t) => /* @__PURE__ */ a("button", {
125
+ type: "button",
126
+ role: "option",
127
+ tabIndex: -1,
128
+ "aria-selected": t === d,
129
+ className: x("flex min-h-10 w-full cursor-pointer items-center px-6 py-1.5 text-left text-sm text-slate-800 transition-colors hover:bg-gray-50 dark:text-metal-50 dark:hover:bg-metal-700", t === d && "bg-gray-50 dark:bg-metal-700"),
130
+ onMouseDown: (ee) => {
131
+ ee.preventDefault();
132
+ },
133
+ onClick: () => {
134
+ p(e);
135
+ },
136
+ children: e
137
+ }, e))
138
+ }) : null
139
+ ]
140
+ }),
141
+ c ? /* @__PURE__ */ a(w, {
142
+ component: "span",
143
+ id: L,
144
+ className: x("text-xs tracking-normal text-red-700 dark:text-red-400", $),
145
+ children: h
146
+ }) : null,
147
+ z ? /* @__PURE__ */ a(w, {
148
+ component: "span",
149
+ id: B,
150
+ className: x("text-xs text-slate-600 dark:text-slate-200", O),
151
+ children: I
152
+ }) : null
153
+ ]
154
+ });
155
+ });
156
+ de.displayName = "KonstructTagsInput";
157
+ export {
158
+ de as TagsInput
159
+ };