@konstructio/ui 0.0.12 → 0.0.13-alpha.2

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 (351) hide show
  1. package/dist/{Combination-Cmu9JRkv.js → Combination-b348x__d.js} +89 -89
  2. package/dist/Modal-i7eolhYH.js +926 -0
  3. package/dist/{chevron-up-CvquEaNg.js → chevron-up-DgLBQCKD.js} +1 -1
  4. package/dist/components/Alert/Alert.js +53 -0
  5. package/dist/components/Alert/Alert.variants.js +71 -0
  6. package/dist/components/AlertDialog/AlertDialog.js +60 -50
  7. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -6
  8. package/dist/components/AlertDialog/components/index.js +1 -1
  9. package/dist/components/Autocomplete/Autocomplete.js +74 -72
  10. package/dist/components/Autocomplete/Autocomplete.variants.js +11 -21
  11. package/dist/components/Autocomplete/components/List/List.js +28 -30
  12. package/dist/components/Autocomplete/components/List/List.variants.js +34 -40
  13. package/dist/components/Breadcrumb/Breadcrumb.js +67 -77
  14. package/dist/components/Breadcrumb/Breadcrumb.variants.js +22 -40
  15. package/dist/components/Breadcrumb/components/Item/Item.js +49 -0
  16. package/dist/components/Breadcrumb/components/Item/Item.variants.js +72 -0
  17. package/dist/components/Breadcrumb/components/index.js +4 -0
  18. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -3
  19. package/dist/components/Button/Button.js +34 -40
  20. package/dist/components/Button/Button.variants.js +138 -195
  21. package/dist/components/Card/Card.js +30 -37
  22. package/dist/components/Card/Card.variants.js +18 -53
  23. package/dist/components/Checkbox/Checkbox.js +70 -75
  24. package/dist/components/Checkbox/Checkbox.variants.js +11 -35
  25. package/dist/components/Command/Command.js +40 -0
  26. package/dist/components/Command/Command.variants.js +50 -0
  27. package/dist/components/Command/components/Command.js +8 -0
  28. package/dist/components/Command/components/CommandEmpty.js +15 -0
  29. package/dist/components/Command/components/CommandGroup.js +19 -0
  30. package/dist/components/Command/components/CommandInput.js +84 -0
  31. package/dist/components/Command/components/CommandItem.js +29 -0
  32. package/dist/components/Command/components/CommandList.js +16 -0
  33. package/dist/components/Command/components/CommandSeparator.js +16 -0
  34. package/dist/components/Command/components/CommandShortcut.js +19 -0
  35. package/dist/components/Command/components/DialogContent.js +31 -0
  36. package/dist/components/Command/components/DialogOverlay.js +19 -0
  37. package/dist/components/Command/components/index.js +20 -0
  38. package/dist/components/Command/contexts/Command.context.js +13 -0
  39. package/dist/components/Command/contexts/Command.provider.js +24 -0
  40. package/dist/components/Command/contexts/index.js +6 -0
  41. package/dist/components/Divider/Divider.js +11 -0
  42. package/dist/components/Divider/Divider.variants.js +17 -0
  43. package/dist/components/Dropdown/Dropdown.js +6 -8
  44. package/dist/components/Dropdown/Dropdown.variants.js +31 -38
  45. package/dist/components/Dropdown/components/List/List.js +18 -17
  46. package/dist/components/Dropdown/components/List/List.variants.js +22 -32
  47. package/dist/components/Dropdown/components/ListItem/ListItem.js +19 -19
  48. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +18 -28
  49. package/dist/components/Dropdown/components/Wrapper.js +128 -94
  50. package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
  51. package/dist/components/Dropdown/contexts/dropdown.provider.js +12 -12
  52. package/dist/components/Dropdown/hooks/useDropdown.js +12 -14
  53. package/dist/components/Dropdown/hooks/useNavigationList.js +8 -10
  54. package/dist/components/Input/Input.js +112 -69
  55. package/dist/components/Input/Input.variants.js +10 -16
  56. package/dist/components/Loading/Loading.js +111 -0
  57. package/dist/components/Loading/Loading.variants.js +13 -0
  58. package/dist/components/Modal/Modal.js +4 -4
  59. package/dist/components/Modal/components/Body/Body.js +1 -1
  60. package/dist/components/Modal/components/Footer/Footer.js +2 -2
  61. package/dist/components/Modal/components/Header/Header.js +3 -3
  62. package/dist/components/Modal/components/Wrapper/Wrapper.js +5 -9
  63. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +32 -46
  64. package/dist/components/Modal/components/index.js +1 -1
  65. package/dist/components/Modal/contexts/Modal.provider.js +4 -4
  66. package/dist/components/NumberInput/NumberInput.js +93 -113
  67. package/dist/components/NumberInput/NumberInput.variants.js +30 -51
  68. package/dist/components/ProgressBar/ProgressBar.js +25 -32
  69. package/dist/components/ProgressBar/ProgressBar.variants.js +10 -31
  70. package/dist/components/Radio/Radio.js +47 -30
  71. package/dist/components/Radio/Radio.variants.js +61 -17
  72. package/dist/components/RadioCard/RadioCard.js +35 -0
  73. package/dist/components/RadioCard/RadioCard.variants.js +10 -0
  74. package/dist/components/RadioCardGroup/RadioCardGroup.js +46 -0
  75. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +15 -0
  76. package/dist/components/RadioGroup/RadioGroup.js +40 -31
  77. package/dist/components/RadioGroup/RadioGroup.variants.js +15 -0
  78. package/dist/components/Range/Range.js +31 -39
  79. package/dist/components/Range/Range.variants.js +21 -53
  80. package/dist/components/Sidebar/Sidebar.js +15 -18
  81. package/dist/components/Sidebar/Sidebar.variants.js +30 -55
  82. package/dist/components/Sidebar/components/Footer/Footer.js +5 -20
  83. package/dist/components/Sidebar/components/Footer/Footer.variants.js +9 -16
  84. package/dist/components/Sidebar/components/Logo/Logo.js +5 -18
  85. package/dist/components/Sidebar/components/Logo/Logo.variants.js +21 -43
  86. package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -31
  87. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +3 -17
  88. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +23 -38
  89. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +3 -14
  90. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +24 -33
  91. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +13 -22
  92. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +7 -22
  93. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +6 -16
  94. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -25
  95. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +11 -20
  96. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +41 -42
  97. package/dist/components/Slider/Slider.js +26 -29
  98. package/dist/components/Slider/Slider.variants.js +22 -34
  99. package/dist/components/Switch/Switch.js +100 -105
  100. package/dist/components/Switch/Switch.variants.js +28 -53
  101. package/dist/components/Table/Table.js +27 -0
  102. package/dist/components/Table/Table.variants.js +39 -0
  103. package/dist/components/Table/components/Body.js +18 -0
  104. package/dist/components/Table/components/Filter.js +9 -0
  105. package/dist/components/Table/components/Head.js +18 -0
  106. package/dist/components/Table/components/Row.js +28 -0
  107. package/dist/components/Table/components/index.js +10 -0
  108. package/dist/components/Tag/Tag.js +17 -5
  109. package/dist/components/Tag/Tag.variants.js +11 -1
  110. package/dist/components/TagSelect/TagSelect.js +6 -73
  111. package/dist/components/TagSelect/TagSelect.variants.js +24 -77
  112. package/dist/components/TagSelect/components/Item/Item.js +21 -0
  113. package/dist/components/TagSelect/components/Item/Item.variants.js +32 -0
  114. package/dist/components/TagSelect/components/List/List.js +12 -0
  115. package/dist/components/TagSelect/components/List/List.variants.js +23 -0
  116. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +86 -0
  117. package/dist/components/TagSelect/components/index.js +8 -0
  118. package/dist/components/TagSelect/contexts/TagSelect.context.js +19 -0
  119. package/dist/components/TagSelect/contexts/TagSelect.hook.js +11 -0
  120. package/dist/components/TagSelect/contexts/TagSelect.provider.js +69 -0
  121. package/dist/components/TagSelect/contexts/index.js +6 -0
  122. package/dist/components/TagSelect/hooks/useTagSelect.js +22 -27
  123. package/dist/components/TextArea/TextArea.js +26 -25
  124. package/dist/components/TextArea/TextArea.variants.js +19 -32
  125. package/dist/components/Toast/Toast.js +177 -172
  126. package/dist/components/Toast/Toast.variants.js +42 -71
  127. package/dist/components/Tooltip/Tooltip.js +21 -29
  128. package/dist/components/Tooltip/Tooltip.variants.js +61 -62
  129. package/dist/components/Typography/Typography.js +35 -0
  130. package/dist/components/Typography/Typography.variants.js +57 -0
  131. package/dist/components/index.js +68 -52
  132. package/dist/contexts/theme.provider.js +84 -16
  133. package/dist/index-AM3avohj.js +133 -0
  134. package/dist/{index-z-AJyzdv.js → index-BOx5P4tS.js} +11 -11
  135. package/dist/index-Bk324h27.js +82 -0
  136. package/dist/{index-BxeV34ij.js → index-Bry5AFQ2.js} +1 -1
  137. package/dist/{index-D68N8v8R.js → index-C5psggHV.js} +17 -17
  138. package/dist/{index-BtibbG81.js → index-CWKdynYu.js} +1 -1
  139. package/dist/index-D9BbbgUq.js +47 -0
  140. package/dist/index-DvFiic6N.js +446 -0
  141. package/dist/{index-D4Q2rMby.js → index-G_6jG4Qc.js} +2 -2
  142. package/dist/{index-BedjZUuB.js → index-YaQrdkGE.js} +3 -3
  143. package/dist/{index-8vgf-x5i.js → index-bYyfdsls.js} +11 -11
  144. package/dist/index-dRxIWVBr.js +313 -0
  145. package/dist/index-g-TFwd6Y.js +422 -0
  146. package/dist/index.d.ts +591 -4
  147. package/dist/index.js +72 -58
  148. package/dist/package.json +44 -42
  149. package/dist/styles.css +1 -1
  150. package/dist/styles.js +1 -1
  151. package/dist/ui/kubefirst-theme.css +296 -0
  152. package/dist/ui/theme.css +6 -0
  153. package/dist/ui/utilities.css +165 -0
  154. package/dist/useBreadcrumb-BsIeMoR1.js +1279 -0
  155. package/dist/utils/index.js +671 -422
  156. package/dist/{x-CRBgmX1Q.js → x-DU-Zw-L_.js} +1 -1
  157. package/package.json +44 -42
  158. package/dist/AlertDialogTrigger-D4Tm_9M0.js +0 -553
  159. package/dist/Modal-L73dmnHv.js +0 -914
  160. package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
  161. package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -18
  162. package/dist/components/AlertDialog/AlertDialog.types.js +0 -1
  163. package/dist/components/AlertDialog/AlertDialog.variants.d.ts +0 -3
  164. package/dist/components/AlertDialog/AlertDialog.variants.js +0 -15
  165. package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +0 -3
  166. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +0 -6
  167. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +0 -1
  168. package/dist/components/AlertDialog/components/index.d.ts +0 -1
  169. package/dist/components/AlertDialog/hooks/index.d.ts +0 -1
  170. package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +0 -7
  171. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -3
  172. package/dist/components/Autocomplete/Autocomplete.types.d.ts +0 -18
  173. package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
  174. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +0 -8
  175. package/dist/components/Autocomplete/components/List/List.d.ts +0 -3
  176. package/dist/components/Autocomplete/components/List/List.types.d.ts +0 -13
  177. package/dist/components/Autocomplete/components/List/List.types.js +0 -1
  178. package/dist/components/Autocomplete/components/List/List.variants.d.ts +0 -16
  179. package/dist/components/Autocomplete/components/index.d.ts +0 -1
  180. package/dist/components/Autocomplete/hooks/index.d.ts +0 -2
  181. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +0 -17
  182. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +0 -10
  183. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -3
  184. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -11
  185. package/dist/components/Breadcrumb/Breadcrumb.types.js +0 -1
  186. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +0 -12
  187. package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +0 -3
  188. package/dist/components/Button/Button.d.ts +0 -4
  189. package/dist/components/Button/Button.types.d.ts +0 -7
  190. package/dist/components/Button/Button.types.js +0 -1
  191. package/dist/components/Button/Button.variants.d.ts +0 -7
  192. package/dist/components/Card/Card.d.ts +0 -4
  193. package/dist/components/Card/Card.types.d.ts +0 -8
  194. package/dist/components/Card/Card.types.js +0 -1
  195. package/dist/components/Card/Card.variants.d.ts +0 -10
  196. package/dist/components/Checkbox/Checkbox.d.ts +0 -3
  197. package/dist/components/Checkbox/Checkbox.types.d.ts +0 -14
  198. package/dist/components/Checkbox/Checkbox.types.js +0 -1
  199. package/dist/components/Checkbox/Checkbox.variants.d.ts +0 -9
  200. package/dist/components/Dropdown/Dropdown.d.ts +0 -3
  201. package/dist/components/Dropdown/Dropdown.types.d.ts +0 -16
  202. package/dist/components/Dropdown/Dropdown.types.js +0 -1
  203. package/dist/components/Dropdown/Dropdown.variants.d.ts +0 -3
  204. package/dist/components/Dropdown/components/EmptyList.d.ts +0 -2
  205. package/dist/components/Dropdown/components/List/List.d.ts +0 -3
  206. package/dist/components/Dropdown/components/List/List.types.d.ts +0 -6
  207. package/dist/components/Dropdown/components/List/List.types.js +0 -1
  208. package/dist/components/Dropdown/components/List/List.variants.d.ts +0 -3
  209. package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +0 -3
  210. package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +0 -4
  211. package/dist/components/Dropdown/components/ListItem/ListItem.types.js +0 -1
  212. package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +0 -3
  213. package/dist/components/Dropdown/components/Wrapper.d.ts +0 -3
  214. package/dist/components/Dropdown/components/index.d.ts +0 -3
  215. package/dist/components/Dropdown/contexts/dropdown.context.d.ts +0 -8
  216. package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +0 -2
  217. package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +0 -5
  218. package/dist/components/Dropdown/contexts/index.d.ts +0 -2
  219. package/dist/components/Dropdown/hooks/useDropdown.d.ts +0 -11
  220. package/dist/components/Dropdown/hooks/useNavigationList.d.ts +0 -8
  221. package/dist/components/Input/Input.d.ts +0 -3
  222. package/dist/components/Input/Input.types.d.ts +0 -9
  223. package/dist/components/Input/Input.types.js +0 -1
  224. package/dist/components/Input/Input.variants.d.ts +0 -4
  225. package/dist/components/Modal/Modal.d.ts +0 -8
  226. package/dist/components/Modal/Modal.types.d.ts +0 -12
  227. package/dist/components/Modal/Modal.types.js +0 -1
  228. package/dist/components/Modal/components/Body/Body.d.ts +0 -3
  229. package/dist/components/Modal/components/Body/Body.types.d.ts +0 -5
  230. package/dist/components/Modal/components/Body/Body.types.js +0 -1
  231. package/dist/components/Modal/components/Footer/Footer.d.ts +0 -3
  232. package/dist/components/Modal/components/Footer/Footer.types.d.ts +0 -5
  233. package/dist/components/Modal/components/Footer/Footer.types.js +0 -1
  234. package/dist/components/Modal/components/Header/Header.d.ts +0 -3
  235. package/dist/components/Modal/components/Header/Header.types.d.ts +0 -5
  236. package/dist/components/Modal/components/Header/Header.types.js +0 -1
  237. package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +0 -3
  238. package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +0 -7
  239. package/dist/components/Modal/components/Wrapper/Wrapper.types.js +0 -1
  240. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +0 -6
  241. package/dist/components/Modal/components/index.d.ts +0 -4
  242. package/dist/components/Modal/contexts/Modal.context.d.ts +0 -2
  243. package/dist/components/Modal/contexts/Modal.provider.d.ts +0 -4
  244. package/dist/components/Modal/contexts/Modal.types.d.ts +0 -9
  245. package/dist/components/Modal/contexts/Modal.types.js +0 -1
  246. package/dist/components/Modal/contexts/index.d.ts +0 -1
  247. package/dist/components/Modal/hooks/index.d.ts +0 -1
  248. package/dist/components/Modal/hooks/useModal.d.ts +0 -9
  249. package/dist/components/NumberInput/NumberInput.d.ts +0 -3
  250. package/dist/components/NumberInput/NumberInput.types.d.ts +0 -11
  251. package/dist/components/NumberInput/NumberInput.types.js +0 -1
  252. package/dist/components/NumberInput/NumberInput.variants.d.ts +0 -11
  253. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
  254. package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -8
  255. package/dist/components/ProgressBar/ProgressBar.types.js +0 -1
  256. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +0 -7
  257. package/dist/components/Radio/Radio.d.ts +0 -3
  258. package/dist/components/Radio/Radio.types.d.ts +0 -12
  259. package/dist/components/Radio/Radio.types.js +0 -1
  260. package/dist/components/Radio/Radio.variants.d.ts +0 -3
  261. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
  262. package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -12
  263. package/dist/components/RadioGroup/RadioGroup.types.js +0 -1
  264. package/dist/components/Range/Range.d.ts +0 -3
  265. package/dist/components/Range/Range.types.d.ts +0 -13
  266. package/dist/components/Range/Range.types.js +0 -1
  267. package/dist/components/Range/Range.variants.d.ts +0 -14
  268. package/dist/components/Sidebar/Sidebar.d.ts +0 -5
  269. package/dist/components/Sidebar/Sidebar.types.d.ts +0 -18
  270. package/dist/components/Sidebar/Sidebar.types.js +0 -1
  271. package/dist/components/Sidebar/Sidebar.variants.d.ts +0 -6
  272. package/dist/components/Sidebar/components/Footer/Footer.d.ts +0 -3
  273. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +0 -6
  274. package/dist/components/Sidebar/components/Footer/Footer.types.js +0 -1
  275. package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +0 -3
  276. package/dist/components/Sidebar/components/Logo/Logo.d.ts +0 -3
  277. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +0 -6
  278. package/dist/components/Sidebar/components/Logo/Logo.types.js +0 -1
  279. package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +0 -3
  280. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +0 -4
  281. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +0 -16
  282. package/dist/components/Sidebar/components/Navigation/Navigation.types.js +0 -1
  283. package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +0 -3
  284. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +0 -3
  285. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +0 -7
  286. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +0 -1
  287. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +0 -3
  288. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +0 -3
  289. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +0 -17
  290. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +0 -1
  291. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +0 -4
  292. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +0 -3
  293. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +0 -5
  294. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +0 -1
  295. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +0 -3
  296. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +0 -3
  297. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +0 -8
  298. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +0 -1
  299. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +0 -3
  300. package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +0 -3
  301. package/dist/components/Sidebar/components/index.d.ts +0 -15
  302. package/dist/components/Slider/Slider.d.ts +0 -3
  303. package/dist/components/Slider/Slider.types.d.ts +0 -13
  304. package/dist/components/Slider/Slider.types.js +0 -1
  305. package/dist/components/Slider/Slider.variants.d.ts +0 -11
  306. package/dist/components/Switch/Switch.d.ts +0 -3
  307. package/dist/components/Switch/Switch.types.d.ts +0 -10
  308. package/dist/components/Switch/Switch.types.js +0 -1
  309. package/dist/components/Switch/Switch.variants.d.ts +0 -6
  310. package/dist/components/Tag/Tag.d.ts +0 -3
  311. package/dist/components/Tag/Tag.types.d.ts +0 -4
  312. package/dist/components/Tag/Tag.types.js +0 -1
  313. package/dist/components/Tag/Tag.variants.d.ts +0 -3
  314. package/dist/components/TagSelect/TagSelect.d.ts +0 -3
  315. package/dist/components/TagSelect/TagSelect.types.d.ts +0 -9
  316. package/dist/components/TagSelect/TagSelect.types.js +0 -1
  317. package/dist/components/TagSelect/TagSelect.variants.d.ts +0 -9
  318. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +0 -9
  319. package/dist/components/TextArea/TextArea.d.ts +0 -3
  320. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  321. package/dist/components/TextArea/TextArea.types.js +0 -1
  322. package/dist/components/TextArea/TextArea.variants.d.ts +0 -3
  323. package/dist/components/Toast/Toast.d.ts +0 -3
  324. package/dist/components/Toast/Toast.types.d.ts +0 -12
  325. package/dist/components/Toast/Toast.types.js +0 -1
  326. package/dist/components/Toast/Toast.variants.d.ts +0 -9
  327. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  328. package/dist/components/Tooltip/Tooltip.types.d.ts +0 -8
  329. package/dist/components/Tooltip/Tooltip.types.js +0 -1
  330. package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -8
  331. package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
  332. package/dist/components/index.d.ts +0 -21
  333. package/dist/contexts/index.d.ts +0 -3
  334. package/dist/contexts/theme.context.d.ts +0 -6
  335. package/dist/contexts/theme.hook.d.ts +0 -7
  336. package/dist/contexts/theme.provider.d.ts +0 -6
  337. package/dist/hooks/index.d.ts +0 -1
  338. package/dist/hooks/useToggle.d.ts +0 -1
  339. package/dist/index-BBjak_0p.js +0 -47
  340. package/dist/index-BaNV0qac.js +0 -19164
  341. package/dist/index-DoOsnuB6.js +0 -72
  342. package/dist/js.cookie-OLEfuq_g.js +0 -74
  343. package/dist/plugins/index.d.ts +0 -1
  344. package/dist/plugins/index.js +0 -4
  345. package/dist/plugins/konstruct.d.ts +0 -4
  346. package/dist/plugins/konstruct.js +0 -115
  347. package/dist/plugins/utils/colors.d.ts +0 -328
  348. package/dist/plugins/utils/colors.js +0 -331
  349. package/dist/useBreadcrumb-DxYsZvj_.js +0 -1398
  350. package/dist/utils/index.d.ts +0 -4
  351. /package/dist/{styles.d.ts → domain/theme.js} +0 -0
@@ -1,18 +1,15 @@
1
1
  import { jsxs as S, jsx as f } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
3
  import j, { forwardRef as _, useId as A, useCallback as H } from "react";
4
- import { u as K } from "../../index-DoOsnuB6.js";
5
- import { c as W, a as $, d as I } from "../../index-8vgf-x5i.js";
6
- import { u as q, a as F } from "../../index-BxeV34ij.js";
7
- import { P as V } from "../../index-D4Q2rMby.js";
8
- import { P as T } from "../../index-BaNV0qac.js";
9
- import "../../contexts/theme.context.js";
10
- import { useTheme as X } from "../../contexts/theme.hook.js";
11
- import "../../js.cookie-OLEfuq_g.js";
4
+ import { u as K } from "../../index-Bk324h27.js";
5
+ import { a as W, c as $, b as I } from "../../index-bYyfdsls.js";
6
+ import { u as q, a as F } from "../../index-Bry5AFQ2.js";
7
+ import { P as V } from "../../index-G_6jG4Qc.js";
8
+ import { P as z } from "../../index-g-TFwd6Y.js";
12
9
  import { cn as N } from "../../utils/index.js";
13
- import { useToggle as G } from "../../hooks/useToggle.js";
14
- import { checkboxVariants as J, labelVariants as Q } from "./Checkbox.variants.js";
15
- import { P } from "../../index-D68N8v8R.js";
10
+ import { checkboxVariants as X, labelVariants as G } from "./Checkbox.variants.js";
11
+ import { useToggle as J } from "../../hooks/useToggle.js";
12
+ import { P } from "../../index-C5psggHV.js";
16
13
  function E() {
17
14
  return E = Object.assign || function(e) {
18
15
  for (var s = 1; s < arguments.length; s++) {
@@ -23,9 +20,9 @@ function E() {
23
20
  return e;
24
21
  }, E.apply(this, arguments);
25
22
  }
26
- function U(e, s) {
23
+ function Q(e, s) {
27
24
  if (e == null) return {};
28
- var t = Y(e, s), o, n;
25
+ var t = U(e, s), o, n;
29
26
  if (Object.getOwnPropertySymbols) {
30
27
  var r = Object.getOwnPropertySymbols(e);
31
28
  for (n = 0; n < r.length; n++)
@@ -33,7 +30,7 @@ function U(e, s) {
33
30
  }
34
31
  return t;
35
32
  }
36
- function Y(e, s) {
33
+ function U(e, s) {
37
34
  if (e == null) return {};
38
35
  var t = {}, o = Object.keys(e), n, r;
39
36
  for (r = 0; r < o.length; r++)
@@ -41,7 +38,7 @@ function Y(e, s) {
41
38
  return t;
42
39
  }
43
40
  var O = _(function(e, s) {
44
- var t = e.color, o = t === void 0 ? "currentColor" : t, n = e.size, r = n === void 0 ? 24 : n, l = U(e, ["color", "size"]);
41
+ var t = e.color, o = t === void 0 ? "currentColor" : t, n = e.size, r = n === void 0 ? 24 : n, l = Q(e, ["color", "size"]);
45
42
  return /* @__PURE__ */ j.createElement("svg", E({
46
43
  ref: s,
47
44
  xmlns: "http://www.w3.org/2000/svg",
@@ -62,7 +59,7 @@ O.propTypes = {
62
59
  size: P.oneOfType([P.string, P.number])
63
60
  };
64
61
  O.displayName = "Check";
65
- var R = "Checkbox", [Z, Ce] = W(R), [ee, te] = Z(R), z = u.forwardRef(
62
+ var R = "Checkbox", [Y, he] = $(R), [Z, ee] = Y(R), L = u.forwardRef(
66
63
  (e, s) => {
67
64
  const {
68
65
  __scopeCheckbox: t,
@@ -70,68 +67,68 @@ var R = "Checkbox", [Z, Ce] = W(R), [ee, te] = Z(R), z = u.forwardRef(
70
67
  checked: n,
71
68
  defaultChecked: r,
72
69
  required: l,
73
- disabled: a,
70
+ disabled: c,
74
71
  value: b = "on",
75
72
  onCheckedChange: C,
76
73
  form: d,
77
74
  ...p
78
- } = e, [i, k] = u.useState(null), v = K(s, (c) => k(c)), x = u.useRef(!1), g = i ? d || !!i.closest("form") : !0, [m = !1, w] = $({
75
+ } = e, [i, h] = u.useState(null), k = K(s, (a) => h(a)), y = u.useRef(!1), g = i ? d || !!i.closest("form") : !0, [v = !1, w] = W({
79
76
  prop: n,
80
77
  defaultProp: r,
81
78
  onChange: C
82
- }), M = u.useRef(m);
79
+ }), M = u.useRef(v);
83
80
  return u.useEffect(() => {
84
- const c = i == null ? void 0 : i.form;
85
- if (c) {
86
- const y = () => w(M.current);
87
- return c.addEventListener("reset", y), () => c.removeEventListener("reset", y);
81
+ const a = i == null ? void 0 : i.form;
82
+ if (a) {
83
+ const x = () => w(M.current);
84
+ return a.addEventListener("reset", x), () => a.removeEventListener("reset", x);
88
85
  }
89
- }, [i, w]), /* @__PURE__ */ S(ee, { scope: t, state: m, disabled: a, children: [
86
+ }, [i, w]), /* @__PURE__ */ S(Z, { scope: t, state: v, disabled: c, children: [
90
87
  /* @__PURE__ */ f(
91
- T.button,
88
+ z.button,
92
89
  {
93
90
  type: "button",
94
91
  role: "checkbox",
95
- "aria-checked": h(m) ? "mixed" : m,
92
+ "aria-checked": m(v) ? "mixed" : v,
96
93
  "aria-required": l,
97
- "data-state": B(m),
98
- "data-disabled": a ? "" : void 0,
99
- disabled: a,
94
+ "data-state": B(v),
95
+ "data-disabled": c ? "" : void 0,
96
+ disabled: c,
100
97
  value: b,
101
98
  ...p,
102
- ref: v,
103
- onKeyDown: I(e.onKeyDown, (c) => {
104
- c.key === "Enter" && c.preventDefault();
99
+ ref: k,
100
+ onKeyDown: I(e.onKeyDown, (a) => {
101
+ a.key === "Enter" && a.preventDefault();
105
102
  }),
106
- onClick: I(e.onClick, (c) => {
107
- w((y) => h(y) ? !0 : !y), g && (x.current = c.isPropagationStopped(), x.current || c.stopPropagation());
103
+ onClick: I(e.onClick, (a) => {
104
+ w((x) => m(x) ? !0 : !x), g && (y.current = a.isPropagationStopped(), y.current || a.stopPropagation());
108
105
  })
109
106
  }
110
107
  ),
111
108
  g && /* @__PURE__ */ f(
112
- re,
109
+ te,
113
110
  {
114
111
  control: i,
115
- bubbles: !x.current,
112
+ bubbles: !y.current,
116
113
  name: o,
117
114
  value: b,
118
- checked: m,
115
+ checked: v,
119
116
  required: l,
120
- disabled: a,
117
+ disabled: c,
121
118
  form: d,
122
119
  style: { transform: "translateX(-100%)" },
123
- defaultChecked: h(r) ? !1 : r
120
+ defaultChecked: m(r) ? !1 : r
124
121
  }
125
122
  )
126
123
  ] });
127
124
  }
128
125
  );
129
- z.displayName = R;
130
- var L = "CheckboxIndicator", D = u.forwardRef(
126
+ L.displayName = R;
127
+ var T = "CheckboxIndicator", D = u.forwardRef(
131
128
  (e, s) => {
132
- const { __scopeCheckbox: t, forceMount: o, ...n } = e, r = te(L, t);
133
- return /* @__PURE__ */ f(V, { present: o || h(r.state) || r.state === !0, children: /* @__PURE__ */ f(
134
- T.span,
129
+ const { __scopeCheckbox: t, forceMount: o, ...n } = e, r = ee(T, t);
130
+ return /* @__PURE__ */ f(V, { present: o || m(r.state) || r.state === !0, children: /* @__PURE__ */ f(
131
+ z.span,
135
132
  {
136
133
  "data-state": B(r.state),
137
134
  "data-disabled": r.disabled ? "" : void 0,
@@ -142,17 +139,17 @@ var L = "CheckboxIndicator", D = u.forwardRef(
142
139
  ) });
143
140
  }
144
141
  );
145
- D.displayName = L;
146
- var re = (e) => {
147
- const { control: s, checked: t, bubbles: o = !0, defaultChecked: n, ...r } = e, l = u.useRef(null), a = q(t), b = F(s);
142
+ D.displayName = T;
143
+ var te = (e) => {
144
+ const { control: s, checked: t, bubbles: o = !0, defaultChecked: n, ...r } = e, l = u.useRef(null), c = q(t), b = F(s);
148
145
  u.useEffect(() => {
149
- const d = l.current, p = window.HTMLInputElement.prototype, k = Object.getOwnPropertyDescriptor(p, "checked").set;
150
- if (a !== t && k) {
151
- const v = new Event("click", { bubbles: o });
152
- d.indeterminate = h(t), k.call(d, h(t) ? !1 : t), d.dispatchEvent(v);
146
+ const d = l.current, p = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(p, "checked").set;
147
+ if (c !== t && h) {
148
+ const k = new Event("click", { bubbles: o });
149
+ d.indeterminate = m(t), h.call(d, m(t) ? !1 : t), d.dispatchEvent(k);
153
150
  }
154
- }, [a, t, o]);
155
- const C = u.useRef(h(t) ? !1 : t);
151
+ }, [c, t, o]);
152
+ const C = u.useRef(m(t) ? !1 : t);
156
153
  return /* @__PURE__ */ f(
157
154
  "input",
158
155
  {
@@ -173,14 +170,14 @@ var re = (e) => {
173
170
  }
174
171
  );
175
172
  };
176
- function h(e) {
173
+ function m(e) {
177
174
  return e === "indeterminate";
178
175
  }
179
176
  function B(e) {
180
- return h(e) ? "indeterminate" : e ? "checked" : "unchecked";
177
+ return m(e) ? "indeterminate" : e ? "checked" : "unchecked";
181
178
  }
182
- var oe = z, ne = D;
183
- const xe = _(
179
+ var re = L, oe = D;
180
+ const be = _(
184
181
  ({
185
182
  ariaLabelledBy: e,
186
183
  className: s,
@@ -189,46 +186,44 @@ const xe = _(
189
186
  id: n,
190
187
  label: r,
191
188
  labelClassName: l,
192
- name: a,
189
+ name: c,
193
190
  theme: b,
194
191
  title: C,
195
192
  variant: d,
196
193
  onChange: p
197
194
  }, i) => {
198
- const [k, v] = G(t), x = A(), { theme: g } = X(), m = H(() => {
199
- v(), p == null || p();
200
- }, [p, v]);
201
- return /* @__PURE__ */ S("div", { className: "flex items-center gap-2", children: [
195
+ const [h, k] = J(t), y = A(), g = H(() => {
196
+ k(), p == null || p();
197
+ }, [p, k]);
198
+ return /* @__PURE__ */ S("div", { className: "flex items-center gap-2", "data-theme": b, children: [
202
199
  /* @__PURE__ */ f(
203
- oe,
200
+ re,
204
201
  {
205
- id: n ?? x,
206
- checked: k,
202
+ id: n ?? y,
203
+ checked: h,
207
204
  ref: i,
208
- name: a,
205
+ name: c,
209
206
  disabled: o,
210
207
  "aria-labelledby": e,
211
208
  title: C,
212
209
  className: N(
213
- J({
210
+ X({
214
211
  className: s,
215
- theme: b ?? g,
216
212
  variant: d,
217
- checked: k
213
+ checked: h
218
214
  })
219
215
  ),
220
- onCheckedChange: m,
221
- children: /* @__PURE__ */ f(ne, { children: /* @__PURE__ */ f(O, { className: "w-4 h-4 stroke-2" }) })
216
+ onCheckedChange: g,
217
+ children: /* @__PURE__ */ f(oe, { children: /* @__PURE__ */ f(O, { className: "w-4 h-4 stroke-2" }) })
222
218
  }
223
219
  ),
224
220
  r ? /* @__PURE__ */ f(
225
221
  "label",
226
222
  {
227
- htmlFor: a ?? n,
223
+ htmlFor: c ?? n,
228
224
  className: N(
229
- Q({
225
+ G({
230
226
  variant: d,
231
- theme: b,
232
227
  className: l
233
228
  })
234
229
  ),
@@ -239,5 +234,5 @@ const xe = _(
239
234
  }
240
235
  );
241
236
  export {
242
- xe as Checkbox
237
+ be as Checkbox
243
238
  };
@@ -1,5 +1,5 @@
1
- import { c as e } from "../../index-BNmRGtA6.js";
2
- const r = e(
1
+ import { c as r } from "../../index-BNmRGtA6.js";
2
+ const e = r(
3
3
  [
4
4
  "cursor-pointer",
5
5
  "border",
@@ -9,18 +9,15 @@ const r = e(
9
9
  "flex",
10
10
  "justify-center",
11
11
  "items-center",
12
- "text-white"
12
+ "text-white",
13
+ "border-kubefirst-primary",
14
+ "colony:border-red-700"
13
15
  ],
14
16
  {
15
17
  variants: {
16
18
  variant: {
17
19
  default: ""
18
20
  },
19
- theme: {
20
- colony: "",
21
- kubefirst: "",
22
- civo: ""
23
- },
24
21
  checked: {
25
22
  true: "",
26
23
  false: ""
@@ -28,46 +25,25 @@ const r = e(
28
25
  },
29
26
  compoundVariants: [
30
27
  {
31
- theme: "kubefirst",
32
- class: ["border-kubefirst-primary"]
33
- },
34
- {
35
- theme: "kubefirst",
36
28
  checked: !0,
37
- class: ["bg-kubefirst-primary"]
38
- },
39
- {
40
- theme: "colony",
41
- class: ["border-red-700"]
42
- },
43
- {
44
- theme: "colony",
45
- checked: !0,
46
- class: ["bg-red-700"]
29
+ class: ["bg-kubefirst-primary", "colony:bg-red-700"]
47
30
  }
48
31
  ],
49
32
  defaultVariants: {
50
- variant: "default",
51
- theme: "kubefirst"
33
+ variant: "default"
52
34
  }
53
35
  }
54
- ), a = e(["cursor-pointer"], {
36
+ ), t = r(["cursor-pointer"], {
55
37
  variants: {
56
38
  variant: {
57
39
  default: ""
58
- },
59
- theme: {
60
- colony: "",
61
- kubefirst: "",
62
- civo: ""
63
40
  }
64
41
  },
65
42
  defaultVariants: {
66
- variant: "default",
67
- theme: "kubefirst"
43
+ variant: "default"
68
44
  }
69
45
  });
70
46
  export {
71
- r as checkboxVariants,
72
- a as labelVariants
47
+ e as checkboxVariants,
48
+ t as labelVariants
73
49
  };
@@ -0,0 +1,40 @@
1
+ import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
+ import { R as s, D as p } from "../../index-DvFiic6N.js";
3
+ import { V as l } from "../../index-CWKdynYu.js";
4
+ import { cn as m } from "../../utils/index.js";
5
+ import { wrapperVariants as f } from "./Command.variants.js";
6
+ import { DialogContent as c } from "./components/DialogContent.js";
7
+ import { Command as h } from "./components/Command.js";
8
+ import { CommandGroup as b } from "./components/CommandGroup.js";
9
+ import { CommandItem as y } from "./components/CommandItem.js";
10
+ import { CommandSeparator as H } from "./components/CommandSeparator.js";
11
+ const j = ({
12
+ children: r,
13
+ title: a,
14
+ titleClassName: e,
15
+ wrapperClassName: n,
16
+ theme: t,
17
+ ...d
18
+ }) => /* @__PURE__ */ o(s, { ...d, children: /* @__PURE__ */ i(
19
+ c,
20
+ {
21
+ className: "overflow-hidden p-0 border-0 !rounded-none",
22
+ "data-theme": t,
23
+ children: [
24
+ /* @__PURE__ */ o(p, { className: m("hidden", e), children: /* @__PURE__ */ o(l, { children: a }) }),
25
+ /* @__PURE__ */ o(
26
+ h,
27
+ {
28
+ className: m(f({ className: n })),
29
+ children: r
30
+ }
31
+ )
32
+ ]
33
+ }
34
+ ) });
35
+ export {
36
+ j as Command,
37
+ b as CommandGroup,
38
+ y as CommandItem,
39
+ H as CommandSeparator
40
+ };
@@ -0,0 +1,50 @@
1
+ import { c as e } from "../../index-BNmRGtA6.js";
2
+ const r = e([
3
+ "[&_[cmdk-group-heading]]:font-medium",
4
+ "[&_[cmdk-group-heading]]:px-2",
5
+ "[&_[cmdk-group-heading]]:text-muted-foreground",
6
+ "[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0",
7
+ "[&_[cmdk-group]]:px-2",
8
+ "[&_[cmdk-input-wrapper]_svg]:h-5",
9
+ "[&_[cmdk-input-wrapper]_svg]:w-5",
10
+ "[&_[cmdk-input]]:h-12",
11
+ "[&_[cmdk-item]]:px-2",
12
+ "[&_[cmdk-item]]:py-3",
13
+ "[&_[cmdk-item]_svg]:h-5",
14
+ "[&_[cmdk-item]_svg]:w-5",
15
+ "bg-popover",
16
+ "flex",
17
+ "items-center",
18
+ "justify-center",
19
+ "overflow-hidden",
20
+ "text-popover-foreground",
21
+ "border",
22
+ "rounded-md",
23
+ "border-neutral-900/35",
24
+ "bg-neutral-900/30"
25
+ ]), d = e([
26
+ "bg-transparent",
27
+ "disabled:cursor-not-allowed",
28
+ "disabled:opacity-50",
29
+ "flex",
30
+ "h-10",
31
+ "outline-none",
32
+ "placeholder:text-muted-foreground",
33
+ "py-3",
34
+ "rounded-md",
35
+ "text-sm",
36
+ "w-full",
37
+ "text-white/80"
38
+ ]), o = e([
39
+ "mr-2",
40
+ "h-4",
41
+ "w-4",
42
+ "shrink-0",
43
+ "opacity-80",
44
+ "text-white"
45
+ ]);
46
+ export {
47
+ d as inputVariants,
48
+ o as searchInconInputVariants,
49
+ r as wrapperVariants
50
+ };
@@ -0,0 +1,8 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { _ as o } from "../../../index-dRxIWVBr.js";
4
+ const s = p(({ className: r, children: a, ...e }, i) => /* @__PURE__ */ m(o, { ref: i, className: r, ...e, children: /* @__PURE__ */ m("div", { className: "w-[500px]", children: a }) }));
5
+ s.displayName = o.displayName;
6
+ export {
7
+ s as Command
8
+ };
@@ -0,0 +1,15 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { _ as m } from "../../../index-dRxIWVBr.js";
4
+ const r = p((t, e) => /* @__PURE__ */ o(
5
+ m.Empty,
6
+ {
7
+ ref: e,
8
+ className: "py-6 text-center text-sm",
9
+ ...t
10
+ }
11
+ ));
12
+ r.displayName = m.Empty.displayName;
13
+ export {
14
+ r as CommandEmpty
15
+ };
@@ -0,0 +1,19 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { _ as o } from "../../../index-dRxIWVBr.js";
4
+ import { cn as a } from "../../../utils/index.js";
5
+ const t = p(({ className: r, ...m }, d) => /* @__PURE__ */ e(
6
+ o.Group,
7
+ {
8
+ ref: d,
9
+ className: a(
10
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
11
+ r
12
+ ),
13
+ ...m
14
+ }
15
+ ));
16
+ t.displayName = o.Group.displayName;
17
+ export {
18
+ t as CommandGroup
19
+ };
@@ -0,0 +1,84 @@
1
+ import { jsxs as y, jsx as c } from "react/jsx-runtime";
2
+ import { _ as m } from "../../../index-dRxIWVBr.js";
3
+ import s, { forwardRef as u } from "react";
4
+ import { cn as f } from "../../../utils/index.js";
5
+ import { searchInconInputVariants as v, inputVariants as g } from "../Command.variants.js";
6
+ import { P as a } from "../../../index-C5psggHV.js";
7
+ function p() {
8
+ return p = Object.assign || function(r) {
9
+ for (var n = 1; n < arguments.length; n++) {
10
+ var e = arguments[n];
11
+ for (var t in e)
12
+ Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
13
+ }
14
+ return r;
15
+ }, p.apply(this, arguments);
16
+ }
17
+ function h(r, n) {
18
+ if (r == null) return {};
19
+ var e = b(r, n), t, o;
20
+ if (Object.getOwnPropertySymbols) {
21
+ var i = Object.getOwnPropertySymbols(r);
22
+ for (o = 0; o < i.length; o++)
23
+ t = i[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (e[t] = r[t]);
24
+ }
25
+ return e;
26
+ }
27
+ function b(r, n) {
28
+ if (r == null) return {};
29
+ var e = {}, t = Object.keys(r), o, i;
30
+ for (i = 0; i < t.length; i++)
31
+ o = t[i], !(n.indexOf(o) >= 0) && (e[o] = r[o]);
32
+ return e;
33
+ }
34
+ var l = u(function(r, n) {
35
+ var e = r.color, t = e === void 0 ? "currentColor" : e, o = r.size, i = o === void 0 ? 24 : o, d = h(r, ["color", "size"]);
36
+ return /* @__PURE__ */ s.createElement("svg", p({
37
+ ref: n,
38
+ xmlns: "http://www.w3.org/2000/svg",
39
+ width: i,
40
+ height: i,
41
+ viewBox: "0 0 24 24",
42
+ fill: "none",
43
+ stroke: t,
44
+ strokeWidth: "2",
45
+ strokeLinecap: "round",
46
+ strokeLinejoin: "round"
47
+ }, d), /* @__PURE__ */ s.createElement("circle", {
48
+ cx: "11",
49
+ cy: "11",
50
+ r: "8"
51
+ }), /* @__PURE__ */ s.createElement("line", {
52
+ x1: "21",
53
+ y1: "21",
54
+ x2: "16.65",
55
+ y2: "16.65"
56
+ }));
57
+ });
58
+ l.propTypes = {
59
+ color: a.string,
60
+ size: a.oneOfType([a.string, a.number])
61
+ };
62
+ l.displayName = "Search";
63
+ const x = u(({ className: r, ...n }, e) => /* @__PURE__ */ y(
64
+ "div",
65
+ {
66
+ className: "flex items-center px-3 border-b border-neutral-900/35",
67
+ "cmdk-input-wrapper": "",
68
+ children: [
69
+ /* @__PURE__ */ c(l, { className: f(v({ className: r })) }),
70
+ /* @__PURE__ */ c(
71
+ m.Input,
72
+ {
73
+ ref: e,
74
+ className: f(g({ className: r })),
75
+ ...n
76
+ }
77
+ )
78
+ ]
79
+ }
80
+ ));
81
+ x.displayName = m.Input.displayName;
82
+ export {
83
+ x as CommandInput
84
+ };
@@ -0,0 +1,29 @@
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { forwardRef as i, useContext as p, useCallback as c } from "react";
3
+ import { _ as r } from "../../../index-dRxIWVBr.js";
4
+ import { cn as l } from "../../../utils/index.js";
5
+ import { CommandContext as u } from "../contexts/Command.context.js";
6
+ const f = i(({ className: a, onSelect: e, ...s }, o) => {
7
+ const { setOpen: t } = p(u), n = c(
8
+ (m) => {
9
+ e == null || e(m), t(!1);
10
+ },
11
+ [t, e]
12
+ );
13
+ return /* @__PURE__ */ d(
14
+ r.Item,
15
+ {
16
+ ref: o,
17
+ className: l(
18
+ "relative flex cursor-pointer gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
19
+ a
20
+ ),
21
+ onSelect: n,
22
+ ...s
23
+ }
24
+ );
25
+ });
26
+ f.displayName = r.Item.displayName;
27
+ export {
28
+ f as CommandItem
29
+ };
@@ -0,0 +1,16 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as s } from "react";
3
+ import { _ as o } from "../../../index-dRxIWVBr.js";
4
+ import { cn as t } from "../../../utils/index.js";
5
+ const e = s(({ className: m, ...r }, a) => /* @__PURE__ */ i(
6
+ o.List,
7
+ {
8
+ ref: a,
9
+ className: t("max-h-[300px] overflow-y-auto overflow-x-hidden", m),
10
+ ...r
11
+ }
12
+ ));
13
+ e.displayName = o.List.displayName;
14
+ export {
15
+ e as CommandList
16
+ };
@@ -0,0 +1,16 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { _ as r } from "../../../index-dRxIWVBr.js";
4
+ import { cn as t } from "../../../utils/index.js";
5
+ const s = p(({ className: o, ...a }, m) => /* @__PURE__ */ e(
6
+ r.Separator,
7
+ {
8
+ ref: m,
9
+ className: t("-mx-1 h-px border-t border-neutral-900/45 mb-2", o),
10
+ ...a
11
+ }
12
+ ));
13
+ s.displayName = r.Separator.displayName;
14
+ export {
15
+ s as CommandSeparator
16
+ };
@@ -0,0 +1,19 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { cn as r } from "../../../utils/index.js";
3
+ const a = ({
4
+ className: t,
5
+ ...o
6
+ }) => /* @__PURE__ */ m(
7
+ "span",
8
+ {
9
+ className: r(
10
+ "ml-auto text-xs tracking-widest text-muted-foreground",
11
+ t
12
+ ),
13
+ ...o
14
+ }
15
+ );
16
+ a.displayName = "CommandShortcut";
17
+ export {
18
+ a as CommandShortcut
19
+ };