@kuzenbo/core 0.0.4 → 0.0.5

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 (335) hide show
  1. package/dist/avatar-CXhwmJgG.js +65 -0
  2. package/dist/avatar-CXhwmJgG.js.map +1 -0
  3. package/dist/{avatar-image-Ce26D2fb.d.ts → avatar-DpiupAAM.d.ts} +35 -2
  4. package/dist/avatar-DpiupAAM.d.ts.map +1 -0
  5. package/dist/badge-BKRm6jL7.js +58 -0
  6. package/dist/badge-BKRm6jL7.js.map +1 -0
  7. package/dist/button-nAbTNrxA.d.ts +78 -0
  8. package/dist/button-nAbTNrxA.d.ts.map +1 -0
  9. package/dist/{dialog-trigger-BUF3elAP.js → dialog-CD5lfQA9.js} +33 -10
  10. package/dist/dialog-CD5lfQA9.js.map +1 -0
  11. package/dist/{dialog-viewport-Ce1huyAI.d.ts → dialog-DEkdr-9K.d.ts} +64 -2
  12. package/dist/dialog-DEkdr-9K.d.ts.map +1 -0
  13. package/dist/{dropdown-menu-trigger-COnFGfDa.js → dropdown-menu-BJi-V71O.js} +137 -101
  14. package/dist/dropdown-menu-BJi-V71O.js.map +1 -0
  15. package/dist/{dropdown-menu-trigger-BpgtLUvf.d.ts → dropdown-menu-Bpj576m0.d.ts} +259 -123
  16. package/dist/dropdown-menu-Bpj576m0.d.ts.map +1 -0
  17. package/dist/input-Ex9ZRqbo.js +38 -0
  18. package/dist/input-Ex9ZRqbo.js.map +1 -0
  19. package/dist/input-WWoBCgxe.d.ts +46 -0
  20. package/dist/input-WWoBCgxe.d.ts.map +1 -0
  21. package/dist/{input-group-textarea-B-rP98r5.js → input-group-CjcHP0L4.js} +50 -31
  22. package/dist/input-group-CjcHP0L4.js.map +1 -0
  23. package/dist/provider.js +2 -2
  24. package/dist/scroll-bar-C4qEUKlT.js.map +1 -1
  25. package/dist/separator-C8Qw2ADs.d.ts +13 -0
  26. package/dist/separator-C8Qw2ADs.d.ts.map +1 -0
  27. package/dist/{sheet-trigger-D7neoTF5.js → sheet-imSHXfFH.js} +29 -10
  28. package/dist/sheet-imSHXfFH.js.map +1 -0
  29. package/dist/{size-context-BjRwqlSg.js → size-context-CvLl3pMC.js} +3 -3
  30. package/dist/size-context-CvLl3pMC.js.map +1 -0
  31. package/dist/size-context-DXfCAlWF.d.ts.map +1 -1
  32. package/dist/size-provider-18EvJgDT.js.map +1 -1
  33. package/dist/size-provider-Bd2C6gKd.d.ts.map +1 -1
  34. package/dist/size-system-BTsMqZRQ.js +99 -0
  35. package/dist/size-system-BTsMqZRQ.js.map +1 -0
  36. package/dist/size-system-wzOLSuax.d.ts.map +1 -1
  37. package/dist/size.js +2 -2
  38. package/dist/{slider-root-presentation-ChJHPMIV.js → slider-root-presentation-B6OO_iCT.js} +19 -19
  39. package/dist/slider-root-presentation-B6OO_iCT.js.map +1 -0
  40. package/dist/{slider-value-Db8SCu0c.d.ts → slider-style-tokens-CZezJilZ.d.ts} +55 -55
  41. package/dist/slider-style-tokens-CZezJilZ.d.ts.map +1 -0
  42. package/dist/textarea-C8dsnn8D.d.ts +37 -0
  43. package/dist/textarea-C8dsnn8D.d.ts.map +1 -0
  44. package/dist/textarea-CkiM1N_I.js +39 -0
  45. package/dist/textarea-CkiM1N_I.js.map +1 -0
  46. package/dist/toggle-CxkIncmZ.d.ts +53 -0
  47. package/dist/toggle-CxkIncmZ.d.ts.map +1 -0
  48. package/dist/{tooltip-trigger-qXw-_nbh.js → tooltip-D0BEpCQx.js} +38 -13
  49. package/dist/tooltip-D0BEpCQx.js.map +1 -0
  50. package/dist/{tooltip-viewport-csA6luqI.d.ts → tooltip-DbJxt69l.d.ts} +61 -13
  51. package/dist/tooltip-DbJxt69l.d.ts.map +1 -0
  52. package/dist/ui/accordion.d.ts +4 -4
  53. package/dist/ui/accordion.d.ts.map +1 -1
  54. package/dist/ui/accordion.js +53 -52
  55. package/dist/ui/accordion.js.map +1 -1
  56. package/dist/ui/affix.d.ts +3 -2
  57. package/dist/ui/affix.d.ts.map +1 -1
  58. package/dist/ui/affix.js +8 -7
  59. package/dist/ui/affix.js.map +1 -1
  60. package/dist/ui/alert-dialog.d.ts +3 -1
  61. package/dist/ui/alert-dialog.d.ts.map +1 -1
  62. package/dist/ui/alert-dialog.js +10 -9
  63. package/dist/ui/alert-dialog.js.map +1 -1
  64. package/dist/ui/alert.d.ts +32 -32
  65. package/dist/ui/alert.d.ts.map +1 -1
  66. package/dist/ui/alert.js +86 -86
  67. package/dist/ui/alert.js.map +1 -1
  68. package/dist/ui/announcement.d.ts.map +1 -1
  69. package/dist/ui/announcement.js +5 -3
  70. package/dist/ui/announcement.js.map +1 -1
  71. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  72. package/dist/ui/aspect-ratio.js.map +1 -1
  73. package/dist/ui/autocomplete.d.ts +74 -74
  74. package/dist/ui/autocomplete.d.ts.map +1 -1
  75. package/dist/ui/autocomplete.js +55 -53
  76. package/dist/ui/autocomplete.js.map +1 -1
  77. package/dist/ui/avatar.d.ts +2 -39
  78. package/dist/ui/avatar.js +2 -24
  79. package/dist/ui/badge.d.ts +28 -28
  80. package/dist/ui/badge.d.ts.map +1 -1
  81. package/dist/ui/badge.js +2 -54
  82. package/dist/ui/breadcrumb.d.ts +64 -64
  83. package/dist/ui/breadcrumb.d.ts.map +1 -1
  84. package/dist/ui/breadcrumb.js +47 -45
  85. package/dist/ui/breadcrumb.js.map +1 -1
  86. package/dist/ui/button-group.d.ts +34 -34
  87. package/dist/ui/button-group.d.ts.map +1 -1
  88. package/dist/ui/button-group.js +29 -28
  89. package/dist/ui/button-group.js.map +1 -1
  90. package/dist/ui/button.d.ts +2 -78
  91. package/dist/ui/button.js +42 -42
  92. package/dist/ui/button.js.map +1 -1
  93. package/dist/ui/card.d.ts.map +1 -1
  94. package/dist/ui/card.js +6 -6
  95. package/dist/ui/card.js.map +1 -1
  96. package/dist/ui/carousel.d.ts +1 -1
  97. package/dist/ui/carousel.d.ts.map +1 -1
  98. package/dist/ui/carousel.js +36 -17
  99. package/dist/ui/carousel.js.map +1 -1
  100. package/dist/ui/checkbox-group.d.ts.map +1 -1
  101. package/dist/ui/checkbox-group.js.map +1 -1
  102. package/dist/ui/checkbox.d.ts +20 -20
  103. package/dist/ui/checkbox.js +13 -13
  104. package/dist/ui/checkbox.js.map +1 -1
  105. package/dist/ui/code.d.ts.map +1 -1
  106. package/dist/ui/code.js +5 -5
  107. package/dist/ui/code.js.map +1 -1
  108. package/dist/ui/collapsible.js +1 -1
  109. package/dist/ui/collapsible.js.map +1 -1
  110. package/dist/ui/combobox.d.ts +107 -107
  111. package/dist/ui/combobox.d.ts.map +1 -1
  112. package/dist/ui/combobox.js +88 -87
  113. package/dist/ui/combobox.js.map +1 -1
  114. package/dist/ui/command.d.ts +57 -58
  115. package/dist/ui/command.d.ts.map +1 -1
  116. package/dist/ui/command.js +54 -64
  117. package/dist/ui/command.js.map +1 -1
  118. package/dist/ui/container.d.ts.map +1 -1
  119. package/dist/ui/container.js.map +1 -1
  120. package/dist/ui/context-menu.d.ts +132 -132
  121. package/dist/ui/context-menu.d.ts.map +1 -1
  122. package/dist/ui/context-menu.js +100 -98
  123. package/dist/ui/context-menu.js.map +1 -1
  124. package/dist/ui/copy-button.d.ts +1 -3
  125. package/dist/ui/copy-button.d.ts.map +1 -1
  126. package/dist/ui/copy-button.js +12 -13
  127. package/dist/ui/copy-button.js.map +1 -1
  128. package/dist/ui/dialog.d.ts +2 -66
  129. package/dist/ui/dialog.js +2 -24
  130. package/dist/ui/drawer.d.ts +91 -91
  131. package/dist/ui/drawer.d.ts.map +1 -1
  132. package/dist/ui/drawer.js +68 -66
  133. package/dist/ui/drawer.js.map +1 -1
  134. package/dist/ui/dropdown-menu.d.ts +3 -144
  135. package/dist/ui/dropdown-menu.js +2 -39
  136. package/dist/ui/dropzone.d.ts +55 -55
  137. package/dist/ui/dropzone.d.ts.map +1 -1
  138. package/dist/ui/dropzone.js +77 -72
  139. package/dist/ui/dropzone.js.map +1 -1
  140. package/dist/ui/emoji-picker.d.ts +79 -79
  141. package/dist/ui/emoji-picker.d.ts.map +1 -1
  142. package/dist/ui/emoji-picker.js +92 -87
  143. package/dist/ui/emoji-picker.js.map +1 -1
  144. package/dist/ui/empty.d.ts +61 -59
  145. package/dist/ui/empty.d.ts.map +1 -1
  146. package/dist/ui/empty.js +47 -44
  147. package/dist/ui/empty.js.map +1 -1
  148. package/dist/ui/field.d.ts +11 -11
  149. package/dist/ui/field.d.ts.map +1 -1
  150. package/dist/ui/field.js +9 -7
  151. package/dist/ui/field.js.map +1 -1
  152. package/dist/ui/fieldset.d.ts.map +1 -1
  153. package/dist/ui/fieldset.js.map +1 -1
  154. package/dist/ui/form.d.ts +8 -8
  155. package/dist/ui/form.d.ts.map +1 -1
  156. package/dist/ui/form.js.map +1 -1
  157. package/dist/ui/input-group.d.ts +35 -35
  158. package/dist/ui/input-group.d.ts.map +1 -1
  159. package/dist/ui/input-group.js +2 -28
  160. package/dist/ui/input-otp.d.ts +36 -36
  161. package/dist/ui/input-otp.d.ts.map +1 -1
  162. package/dist/ui/input-otp.js +29 -28
  163. package/dist/ui/input-otp.js.map +1 -1
  164. package/dist/ui/input.d.ts +2 -46
  165. package/dist/ui/input.js +2 -34
  166. package/dist/ui/item.d.ts +20 -20
  167. package/dist/ui/item.d.ts.map +1 -1
  168. package/dist/ui/item.js +22 -22
  169. package/dist/ui/item.js.map +1 -1
  170. package/dist/ui/kbd.d.ts.map +1 -1
  171. package/dist/ui/kbd.js +8 -8
  172. package/dist/ui/kbd.js.map +1 -1
  173. package/dist/ui/label.d.ts.map +1 -1
  174. package/dist/ui/label.js.map +1 -1
  175. package/dist/ui/marquee.d.ts.map +1 -1
  176. package/dist/ui/marquee.js +1 -1
  177. package/dist/ui/marquee.js.map +1 -1
  178. package/dist/ui/menubar.d.ts +133 -134
  179. package/dist/ui/menubar.d.ts.map +1 -1
  180. package/dist/ui/menubar.js +82 -81
  181. package/dist/ui/menubar.js.map +1 -1
  182. package/dist/ui/meter.d.ts.map +1 -1
  183. package/dist/ui/meter.js.map +1 -1
  184. package/dist/ui/navigation-list.d.ts +226 -226
  185. package/dist/ui/navigation-list.d.ts.map +1 -1
  186. package/dist/ui/navigation-list.js +240 -235
  187. package/dist/ui/navigation-list.js.map +1 -1
  188. package/dist/ui/navigation-menu.d.ts +82 -82
  189. package/dist/ui/navigation-menu.d.ts.map +1 -1
  190. package/dist/ui/navigation-menu.js +70 -67
  191. package/dist/ui/navigation-menu.js.map +1 -1
  192. package/dist/ui/number-field.d.ts +34 -34
  193. package/dist/ui/number-field.d.ts.map +1 -1
  194. package/dist/ui/number-field.js +24 -23
  195. package/dist/ui/number-field.js.map +1 -1
  196. package/dist/ui/pagination.d.ts +42 -42
  197. package/dist/ui/pagination.d.ts.map +1 -1
  198. package/dist/ui/pagination.js +43 -41
  199. package/dist/ui/pagination.js.map +1 -1
  200. package/dist/ui/pill.d.ts +2 -3
  201. package/dist/ui/pill.d.ts.map +1 -1
  202. package/dist/ui/pill.js +34 -23
  203. package/dist/ui/pill.js.map +1 -1
  204. package/dist/ui/popover.d.ts +13 -11
  205. package/dist/ui/popover.d.ts.map +1 -1
  206. package/dist/ui/popover.js +17 -14
  207. package/dist/ui/popover.js.map +1 -1
  208. package/dist/ui/portal.d.ts.map +1 -1
  209. package/dist/ui/portal.js +52 -11
  210. package/dist/ui/portal.js.map +1 -1
  211. package/dist/ui/preview-card.js +5 -5
  212. package/dist/ui/preview-card.js.map +1 -1
  213. package/dist/ui/progress.js.map +1 -1
  214. package/dist/ui/qr-code.d.ts.map +1 -1
  215. package/dist/ui/qr-code.js +7 -7
  216. package/dist/ui/qr-code.js.map +1 -1
  217. package/dist/ui/radio-group.d.ts +22 -22
  218. package/dist/ui/radio-group.js +15 -15
  219. package/dist/ui/radio-group.js.map +1 -1
  220. package/dist/ui/range-slider.d.ts +1 -1
  221. package/dist/ui/range-slider.d.ts.map +1 -1
  222. package/dist/ui/range-slider.js +4 -7
  223. package/dist/ui/range-slider.js.map +1 -1
  224. package/dist/ui/rating.d.ts +35 -35
  225. package/dist/ui/rating.d.ts.map +1 -1
  226. package/dist/ui/rating.js +55 -46
  227. package/dist/ui/rating.js.map +1 -1
  228. package/dist/ui/resizable.d.ts.map +1 -1
  229. package/dist/ui/resizable.js +2 -2
  230. package/dist/ui/resizable.js.map +1 -1
  231. package/dist/ui/scroll-area.js.map +1 -1
  232. package/dist/ui/select.d.ts +87 -87
  233. package/dist/ui/select.d.ts.map +1 -1
  234. package/dist/ui/select.js +85 -84
  235. package/dist/ui/select.js.map +1 -1
  236. package/dist/ui/separator.d.ts +2 -13
  237. package/dist/ui/separator.js.map +1 -1
  238. package/dist/ui/sheet.d.ts.map +1 -1
  239. package/dist/ui/sheet.js +2 -24
  240. package/dist/ui/sidebar.d.ts +73 -74
  241. package/dist/ui/sidebar.d.ts.map +1 -1
  242. package/dist/ui/sidebar.js +85 -84
  243. package/dist/ui/sidebar.js.map +1 -1
  244. package/dist/ui/skeleton.d.ts.map +1 -1
  245. package/dist/ui/skeleton.js +1 -1
  246. package/dist/ui/skeleton.js.map +1 -1
  247. package/dist/ui/slider.d.ts +1 -1
  248. package/dist/ui/slider.d.ts.map +1 -1
  249. package/dist/ui/slider.js +3 -1
  250. package/dist/ui/slider.js.map +1 -1
  251. package/dist/ui/spacer.d.ts.map +1 -1
  252. package/dist/ui/spacer.js +2 -2
  253. package/dist/ui/spacer.js.map +1 -1
  254. package/dist/ui/spinner.d.ts.map +1 -1
  255. package/dist/ui/spinner.js +2 -2
  256. package/dist/ui/spinner.js.map +1 -1
  257. package/dist/ui/switch.d.ts +11 -11
  258. package/dist/ui/switch.js +7 -7
  259. package/dist/ui/switch.js.map +1 -1
  260. package/dist/ui/table.d.ts +60 -60
  261. package/dist/ui/table.d.ts.map +1 -1
  262. package/dist/ui/table.js +52 -46
  263. package/dist/ui/table.js.map +1 -1
  264. package/dist/ui/tabs.d.ts +25 -25
  265. package/dist/ui/tabs.d.ts.map +1 -1
  266. package/dist/ui/tabs.js +75 -68
  267. package/dist/ui/tabs.js.map +1 -1
  268. package/dist/ui/textarea.d.ts +2 -37
  269. package/dist/ui/textarea.js +2 -35
  270. package/dist/ui/theme-icon.d.ts +30 -30
  271. package/dist/ui/theme-icon.d.ts.map +1 -1
  272. package/dist/ui/theme-icon.js +22 -22
  273. package/dist/ui/theme-icon.js.map +1 -1
  274. package/dist/ui/timeline.d.ts +6 -6
  275. package/dist/ui/timeline.d.ts.map +1 -1
  276. package/dist/ui/timeline.js +163 -163
  277. package/dist/ui/timeline.js.map +1 -1
  278. package/dist/ui/toggle-group.d.ts +32 -32
  279. package/dist/ui/toggle-group.d.ts.map +1 -1
  280. package/dist/ui/toggle-group.js +22 -16
  281. package/dist/ui/toggle-group.js.map +1 -1
  282. package/dist/ui/toggle.d.ts +2 -53
  283. package/dist/ui/toggle.js +15 -15
  284. package/dist/ui/toggle.js.map +1 -1
  285. package/dist/ui/toolbar.d.ts +54 -54
  286. package/dist/ui/toolbar.d.ts.map +1 -1
  287. package/dist/ui/toolbar.js +43 -40
  288. package/dist/ui/toolbar.js.map +1 -1
  289. package/dist/ui/tooltip.d.ts +2 -54
  290. package/dist/ui/tooltip.js +2 -28
  291. package/dist/ui/typography.d.ts +50 -36
  292. package/dist/ui/typography.d.ts.map +1 -1
  293. package/dist/ui/typography.js +28 -17
  294. package/dist/ui/typography.js.map +1 -1
  295. package/package.json +15 -15
  296. package/dist/avatar-image-BQ_NEKH4.js +0 -47
  297. package/dist/avatar-image-BQ_NEKH4.js.map +0 -1
  298. package/dist/avatar-image-Ce26D2fb.d.ts.map +0 -1
  299. package/dist/dialog-trigger-BUF3elAP.js.map +0 -1
  300. package/dist/dialog-viewport-Ce1huyAI.d.ts.map +0 -1
  301. package/dist/dropdown-menu-trigger-BpgtLUvf.d.ts.map +0 -1
  302. package/dist/dropdown-menu-trigger-COnFGfDa.js.map +0 -1
  303. package/dist/input-group-textarea-B-rP98r5.js.map +0 -1
  304. package/dist/sheet-trigger-D7neoTF5.js.map +0 -1
  305. package/dist/size-context-BjRwqlSg.js.map +0 -1
  306. package/dist/size-system-DTXmtQXw.js +0 -47
  307. package/dist/size-system-DTXmtQXw.js.map +0 -1
  308. package/dist/slider-root-presentation-ChJHPMIV.js.map +0 -1
  309. package/dist/slider-value-Db8SCu0c.d.ts.map +0 -1
  310. package/dist/tooltip-trigger-qXw-_nbh.js.map +0 -1
  311. package/dist/tooltip-viewport-csA6luqI.d.ts.map +0 -1
  312. package/dist/ui/avatar.d.ts.map +0 -1
  313. package/dist/ui/avatar.js.map +0 -1
  314. package/dist/ui/badge.js.map +0 -1
  315. package/dist/ui/button.d.ts.map +0 -1
  316. package/dist/ui/dialog.d.ts.map +0 -1
  317. package/dist/ui/dialog.js.map +0 -1
  318. package/dist/ui/dropdown-menu.d.ts.map +0 -1
  319. package/dist/ui/dropdown-menu.js.map +0 -1
  320. package/dist/ui/input-group.js.map +0 -1
  321. package/dist/ui/input.d.ts.map +0 -1
  322. package/dist/ui/input.js.map +0 -1
  323. package/dist/ui/separator.d.ts.map +0 -1
  324. package/dist/ui/sheet.js.map +0 -1
  325. package/dist/ui/textarea.d.ts.map +0 -1
  326. package/dist/ui/textarea.js.map +0 -1
  327. package/dist/ui/toggle.d.ts.map +0 -1
  328. package/dist/ui/tooltip.d.ts.map +0 -1
  329. package/dist/ui/tooltip.js.map +0 -1
  330. package/dist/use-badge-default-props-8d9wPL0k.js +0 -8
  331. package/dist/use-badge-default-props-8d9wPL0k.js.map +0 -1
  332. package/dist/use-input-default-props-B6VgKXGM.js +0 -8
  333. package/dist/use-input-default-props-B6VgKXGM.js.map +0 -1
  334. package/dist/use-textarea-default-props-7MlOxkDO.js +0 -8
  335. package/dist/use-textarea-default-props-7MlOxkDO.js.map +0 -1
@@ -1,6 +1,5 @@
1
- import { InputSize } from "./input.js";
2
- import "../dialog-viewport-Ce1huyAI.js";
3
- import { Dialog } from "./dialog.js";
1
+ import { r as InputSize } from "../input-WWoBCgxe.js";
2
+ import { t as Dialog } from "../dialog-DEkdr-9K.js";
4
3
  import { ComponentProps, ReactNode } from "react";
5
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
5
  import * as tailwind_variants0 from "tailwind-variants";
@@ -27,27 +26,27 @@ declare const CommandDialog: ({
27
26
  //#region src/ui/command/command-empty.d.ts
28
27
  declare const commandEmptyVariants: tailwind_variants0.TVReturnType<{
29
28
  size: {
30
- xs: string;
31
- sm: string;
32
- md: string;
33
29
  lg: string;
30
+ md: string;
31
+ sm: string;
34
32
  xl: string;
33
+ xs: string;
35
34
  };
36
35
  }, undefined, "text-center", {
37
36
  size: {
38
- xs: string;
39
- sm: string;
40
- md: string;
41
37
  lg: string;
38
+ md: string;
39
+ sm: string;
42
40
  xl: string;
41
+ xs: string;
43
42
  };
44
43
  }, undefined, tailwind_variants0.TVReturnType<{
45
44
  size: {
46
- xs: string;
47
- sm: string;
48
- md: string;
49
45
  lg: string;
46
+ md: string;
47
+ sm: string;
50
48
  xl: string;
49
+ xs: string;
51
50
  };
52
51
  }, undefined, "text-center", unknown, unknown, undefined>>;
53
52
  type CommandEmptyProps = ComponentProps<typeof Command$1.Empty> & VariantProps<typeof commandEmptyVariants>;
@@ -60,29 +59,29 @@ declare const CommandEmpty: ({
60
59
  //#region src/ui/command/command-group.d.ts
61
60
  declare const commandGroupVariants: tailwind_variants0.TVReturnType<{
62
61
  size: {
63
- xs: string;
64
- sm: string;
65
- md: string;
66
62
  lg: string;
63
+ md: string;
64
+ sm: string;
67
65
  xl: string;
66
+ xs: string;
68
67
  };
69
- }, undefined, "overflow-hidden text-foreground", {
68
+ }, undefined, "text-foreground overflow-hidden", {
70
69
  size: {
71
- xs: string;
72
- sm: string;
73
- md: string;
74
70
  lg: string;
71
+ md: string;
72
+ sm: string;
75
73
  xl: string;
74
+ xs: string;
76
75
  };
77
76
  }, undefined, tailwind_variants0.TVReturnType<{
78
77
  size: {
79
- xs: string;
80
- sm: string;
81
- md: string;
82
78
  lg: string;
79
+ md: string;
80
+ sm: string;
83
81
  xl: string;
82
+ xs: string;
84
83
  };
85
- }, undefined, "overflow-hidden text-foreground", unknown, unknown, undefined>>;
84
+ }, undefined, "text-foreground overflow-hidden", unknown, unknown, undefined>>;
86
85
  type CommandGroupProps = ComponentProps<typeof Command$1.Group> & VariantProps<typeof commandGroupVariants>;
87
86
  declare const CommandGroup: ({
88
87
  className,
@@ -107,23 +106,23 @@ declare const CommandInput: ({
107
106
  //#region src/ui/command/command-item.d.ts
108
107
  declare const commandItemVariants: tailwind_variants0.TVReturnType<{
109
108
  size: {
110
- xs: {
109
+ lg: {
111
110
  indicator: string;
112
111
  root: string;
113
112
  };
114
- sm: {
113
+ md: {
115
114
  indicator: string;
116
115
  root: string;
117
116
  };
118
- md: {
117
+ sm: {
119
118
  indicator: string;
120
119
  root: string;
121
120
  };
122
- lg: {
121
+ xl: {
123
122
  indicator: string;
124
123
  root: string;
125
124
  };
126
- xl: {
125
+ xs: {
127
126
  indicator: string;
128
127
  root: string;
129
128
  };
@@ -133,23 +132,23 @@ declare const commandItemVariants: tailwind_variants0.TVReturnType<{
133
132
  root: string;
134
133
  }, undefined, {
135
134
  size: {
136
- xs: {
135
+ lg: {
137
136
  indicator: string;
138
137
  root: string;
139
138
  };
140
- sm: {
139
+ md: {
141
140
  indicator: string;
142
141
  root: string;
143
142
  };
144
- md: {
143
+ sm: {
145
144
  indicator: string;
146
145
  root: string;
147
146
  };
148
- lg: {
147
+ xl: {
149
148
  indicator: string;
150
149
  root: string;
151
150
  };
152
- xl: {
151
+ xs: {
153
152
  indicator: string;
154
153
  root: string;
155
154
  };
@@ -159,23 +158,23 @@ declare const commandItemVariants: tailwind_variants0.TVReturnType<{
159
158
  root: string;
160
159
  }, tailwind_variants0.TVReturnType<{
161
160
  size: {
162
- xs: {
161
+ lg: {
163
162
  indicator: string;
164
163
  root: string;
165
164
  };
166
- sm: {
165
+ md: {
167
166
  indicator: string;
168
167
  root: string;
169
168
  };
170
- md: {
169
+ sm: {
171
170
  indicator: string;
172
171
  root: string;
173
172
  };
174
- lg: {
173
+ xl: {
175
174
  indicator: string;
176
175
  root: string;
177
176
  };
178
- xl: {
177
+ xs: {
179
178
  indicator: string;
180
179
  root: string;
181
180
  };
@@ -195,27 +194,27 @@ declare const CommandItem: ({
195
194
  //#region src/ui/command/command-list.d.ts
196
195
  declare const commandListVariants: tailwind_variants0.TVReturnType<{
197
196
  size: {
198
- xs: string;
199
- sm: string;
200
- md: string;
201
197
  lg: string;
198
+ md: string;
199
+ sm: string;
202
200
  xl: string;
201
+ xs: string;
203
202
  };
204
203
  }, undefined, "no-scrollbar overflow-x-hidden overflow-y-auto outline-none", {
205
204
  size: {
206
- xs: string;
207
- sm: string;
208
- md: string;
209
205
  lg: string;
206
+ md: string;
207
+ sm: string;
210
208
  xl: string;
209
+ xs: string;
211
210
  };
212
211
  }, undefined, tailwind_variants0.TVReturnType<{
213
212
  size: {
214
- xs: string;
215
- sm: string;
216
- md: string;
217
213
  lg: string;
214
+ md: string;
215
+ sm: string;
218
216
  xl: string;
217
+ xs: string;
219
218
  };
220
219
  }, undefined, "no-scrollbar overflow-x-hidden overflow-y-auto outline-none", unknown, unknown, undefined>>;
221
220
  type CommandListProps = ComponentProps<typeof Command$1.List> & VariantProps<typeof commandListVariants>;
@@ -235,29 +234,29 @@ declare const CommandSeparator: ({
235
234
  //#region src/ui/command/command-shortcut.d.ts
236
235
  declare const commandShortcutVariants: tailwind_variants0.TVReturnType<{
237
236
  size: {
238
- xs: string;
239
- sm: string;
240
- md: string;
241
237
  lg: string;
238
+ md: string;
239
+ sm: string;
242
240
  xl: string;
241
+ xs: string;
243
242
  };
244
- }, undefined, "ml-auto text-muted-foreground group-data-[selected=true]/command-item:text-foreground", {
243
+ }, undefined, "text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto", {
245
244
  size: {
246
- xs: string;
247
- sm: string;
248
- md: string;
249
245
  lg: string;
246
+ md: string;
247
+ sm: string;
250
248
  xl: string;
249
+ xs: string;
251
250
  };
252
251
  }, undefined, tailwind_variants0.TVReturnType<{
253
252
  size: {
254
- xs: string;
255
- sm: string;
256
- md: string;
257
253
  lg: string;
254
+ md: string;
255
+ sm: string;
258
256
  xl: string;
257
+ xs: string;
259
258
  };
260
- }, undefined, "ml-auto text-muted-foreground group-data-[selected=true]/command-item:text-foreground", unknown, unknown, undefined>>;
259
+ }, undefined, "text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto", unknown, unknown, undefined>>;
261
260
  type CommandShortcutProps = ComponentProps<"span"> & VariantProps<typeof commandShortcutVariants>;
262
261
  declare const CommandShortcut: ({
263
262
  className,
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","names":[],"sources":["../../src/ui/command/command-dialog.tsx","../../src/ui/command/command-empty.tsx","../../src/ui/command/command-group.tsx","../../src/ui/command/command-input.tsx","../../src/ui/command/command-item.tsx","../../src/ui/command/command-list.tsx","../../src/ui/command/command-separator.tsx","../../src/ui/command/command-shortcut.tsx","../../src/ui/command/command.tsx"],"mappings":";;;;;;;;;;KAaY,kBAAA,GAAqB,IAAA,CAC/B,cAAA,QAAsB,MAAA;EAGtB,KAAA;EACA,WAAA;EACA,SAAA;EACA,eAAA;EACA,QAAA,EAAU,SAAA;AAAA;AAAA,cAGN,aAAA;EAAiB,KAAA;EAAA,WAAA;EAAA,QAAA;EAAA,SAAA;EAAA,eAAA;EAAA,GAAA;AAAA,GAOpB,kBAAA,KAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCnBf,oBAAA,EAcJ,kBAAA,CAdwB,YAAA;;;;;;;;;;;;;;;;cAcxB,kBAAA,CAAA,YAAA;;;;;;;;;KAEU,iBAAA,GAAoB,cAAA,QAAsB,SAAA,CAAiB,KAAA,IACrE,YAAA,QAAoB,oBAAA;AAAA,cAEhB,YAAA;EAAgB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAA+B,iBAAA,KAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCnBhE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AAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCzBxD,qBAAA,GAAwB,cAAA,QAC3B,SAAA,CAAiB,SAAA;AAAA,cAGpB,gBAAA;EAAoB,SAAA;EAAA,GAAA;AAAA,GAAyB,qBAAA,KAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCClE,uBAAA,EAcJ,kBAAA,CAd2B,YAAA;;;;;;;;;;;;;;;;cAc3B,kBAAA,CAAA,YAAA;;;;;;;;;KAEU,oBAAA,GAAuB,cAAA,WACjC,YAAA,QAAoB,uBAAA;AAAA,cAEhB,eAAA;EAAmB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAItB,oBAAA,KAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCfX,YAAA,GAAe,cAAA,QAAsB,SAAA;EAC/C,IAAA,GAAO,SAAA;AAAA;AAAA,cAGH,OAAA;EAAA;;;;KAAwD,YAAA,GAAY,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"command.d.ts","names":[],"sources":["../../src/ui/command/command-dialog.tsx","../../src/ui/command/command-empty.tsx","../../src/ui/command/command-group.tsx","../../src/ui/command/command-input.tsx","../../src/ui/command/command-item.tsx","../../src/ui/command/command-list.tsx","../../src/ui/command/command-separator.tsx","../../src/ui/command/command-shortcut.tsx","../../src/ui/command/command.tsx"],"mappings":";;;;;;;;;KAYY,kBAAA,GAAqB,IAAA,CAC/B,cAAA,QAAsB,MAAA;EAGtB,KAAA;EACA,WAAA;EACA,SAAA;EACA,eAAA;EACA,QAAA,EAAU,SAAA;AAAA;AAAA,cAGN,aAAA;EAAiB,KAAA;EAAA,WAAA;EAAA,QAAA;EAAA,SAAA;EAAA,eAAA;EAAA,GAAA;AAAA,GAOpB,kBAAA,KAAkB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCnBf,oBAAA,EAcJ,kBAAA,CAdwB,YAAA;;;;;;;;;;;;;;;;cAcxB,kBAAA,CAAA,YAAA;;;;;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;;;;;;;;;;;cAcvB,kBAAA,CAAA,YAAA;;;;;;;;;KAEU,gBAAA,GAAmB,cAAA,QAAsB,SAAA,CAAiB,IAAA,IACpE,YAAA,QAAoB,mBAAA;AAAA,cAEhB,WAAA;EAAe,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAA+B,gBAAA,KAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCzBxD,qBAAA,GAAwB,cAAA,QAC3B,SAAA,CAAiB,SAAA;AAAA,cAGpB,gBAAA;EAAoB,SAAA;EAAA,GAAA;AAAA,GAAyB,qBAAA,KAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;cCClE,uBAAA,EAcJ,kBAAA,CAd2B,YAAA;;;;;;;;;;;;;;;;cAc3B,kBAAA,CAAA,YAAA;;;;;;;;;KAEU,oBAAA,GAAuB,cAAA,WACjC,YAAA,QAAoB,uBAAA;AAAA,cAEhB,eAAA;EAAmB,SAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAItB,oBAAA,KAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;KCfX,YAAA,GAAe,cAAA,QAAsB,SAAA;EAC/C,IAAA,GAAO,SAAA;AAAA;AAAA,cAGH,OAAA;EAAA;;;;KAAwD,YAAA,GAAY,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,11 +1,10 @@
1
1
  "use client";
2
2
 
3
3
  import { a as useComponentSize } from "../size-provider-18EvJgDT.js";
4
- import { a as InputGroupAddon } from "../input-group-textarea-B-rP98r5.js";
5
- import { InputGroup } from "./input-group.js";
6
- import { i as DialogHeader, n as DialogTitle, o as DialogDescription, s as DialogContent } from "../dialog-trigger-BUF3elAP.js";
7
- import { Dialog } from "./dialog.js";
8
- import { createContext, useContext } from "react";
4
+ import { o as resolveFieldTextClassBySize, r as resolveDefaultIconClassBySize } from "../size-system-BTsMqZRQ.js";
5
+ import { o as InputGroupAddon, t as InputGroup } from "../input-group-CjcHP0L4.js";
6
+ import { a as DialogHeader, c as DialogContent, r as DialogTitle, s as DialogDescription, t as Dialog } from "../dialog-CD5lfQA9.js";
7
+ import { createContext, useContext, useMemo } from "react";
9
8
  import { jsx, jsxs } from "react/jsx-runtime";
10
9
  import { cn, tv } from "tailwind-variants";
11
10
  import { SearchIcon, Tick02Icon } from "@hugeicons/core-free-icons";
@@ -34,14 +33,14 @@ const CommandDialog = ({ title = "Command Palette", description = "Search for a
34
33
  //#region src/ui/command/command-empty.tsx
35
34
  const commandEmptyVariants = tv({
36
35
  base: "text-center",
36
+ defaultVariants: { size: "md" },
37
37
  variants: { size: {
38
- xs: "py-4 text-xs",
39
- sm: "py-5 text-sm",
40
- md: "py-6 text-sm",
41
38
  lg: "py-7 text-sm",
42
- xl: "py-8 text-base"
43
- } },
44
- defaultVariants: { size: "md" }
39
+ md: "py-6 text-sm",
40
+ sm: "py-5 text-sm",
41
+ xl: "py-8 text-base",
42
+ xs: "py-4 text-xs"
43
+ } }
45
44
  });
46
45
  const CommandEmpty = ({ className, size, ...props }) => {
47
46
  const { size: rootSize } = useContext(CommandContext);
@@ -57,15 +56,15 @@ const CommandEmpty = ({ className, size, ...props }) => {
57
56
  //#endregion
58
57
  //#region src/ui/command/command-group.tsx
59
58
  const commandGroupVariants = tv({
60
- base: "overflow-hidden text-foreground",
59
+ base: "text-foreground overflow-hidden",
60
+ defaultVariants: { size: "md" },
61
61
  variants: { size: {
62
- xs: "p-0.5 [&_[cmdk-group-heading]]:px-1.5 [&_[cmdk-group-heading]]:py-0.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
63
- sm: "p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
64
- md: "p-1 [&_[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",
65
- lg: "p-1.5 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
66
- xl: "p-2 [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground"
67
- } },
68
- defaultVariants: { size: "md" }
62
+ lg: "[&_[cmdk-group-heading]]:text-muted-foreground p-1.5 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium",
63
+ md: "[&_[cmdk-group-heading]]:text-muted-foreground p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
64
+ sm: "[&_[cmdk-group-heading]]:text-muted-foreground p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
65
+ xl: "[&_[cmdk-group-heading]]:text-muted-foreground p-2 [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium",
66
+ xs: "[&_[cmdk-group-heading]]:text-muted-foreground p-0.5 [&_[cmdk-group-heading]]:px-1.5 [&_[cmdk-group-heading]]:py-0.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium"
67
+ } }
69
68
  });
70
69
  const CommandGroup = ({ className, size, ...props }) => {
71
70
  const { size: rootSize } = useContext(CommandContext);
@@ -80,17 +79,6 @@ const CommandGroup = ({ className, size, ...props }) => {
80
79
 
81
80
  //#endregion
82
81
  //#region src/ui/command/command-input.tsx
83
- const getCommandSearchIconSizeClassName = (size) => {
84
- if (size === "xs") return "size-3";
85
- if (size === "sm") return "size-3.5";
86
- if (size === "xl") return "size-5";
87
- return "size-4";
88
- };
89
- const getCommandInputTextSizeClassName = (size) => {
90
- if (size === "xs") return "text-xs";
91
- if (size === "xl") return "text-base";
92
- return "text-sm";
93
- };
94
82
  const CommandInput = ({ className, htmlSize, size, ...props }) => {
95
83
  const { size: rootSize } = useContext(CommandContext);
96
84
  const resolvedSize = size ?? rootSize ?? "md";
@@ -99,16 +87,16 @@ const CommandInput = ({ className, htmlSize, size, ...props }) => {
99
87
  "data-size": resolvedSize,
100
88
  "data-slot": "command-input-wrapper",
101
89
  children: /* @__PURE__ */ jsxs(InputGroup, {
102
- className: "rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",
90
+ className: "border-input/30 bg-input/30 rounded-lg! shadow-none! *:data-[slot=input-group-addon]:pl-2!",
103
91
  size: resolvedSize,
104
92
  children: [/* @__PURE__ */ jsx(Command$1.Input, {
105
- className: cn("w-full outline-hidden disabled:cursor-not-allowed disabled:opacity-50", getCommandInputTextSizeClassName(resolvedSize), className),
93
+ className: cn("w-full outline-hidden disabled:cursor-not-allowed disabled:opacity-50", resolveFieldTextClassBySize(resolvedSize), className),
106
94
  "data-size": resolvedSize,
107
95
  "data-slot": "command-input",
108
96
  size: htmlSize,
109
97
  ...props
110
98
  }), /* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(HugeiconsIcon, {
111
- className: cn(getCommandSearchIconSizeClassName(resolvedSize), "shrink-0 opacity-50"),
99
+ className: cn(resolveDefaultIconClassBySize(resolvedSize), "shrink-0 opacity-50"),
112
100
  icon: SearchIcon,
113
101
  strokeWidth: 2
114
102
  }) })]
@@ -119,37 +107,38 @@ const CommandInput = ({ className, htmlSize, size, ...props }) => {
119
107
  //#endregion
120
108
  //#region src/ui/command/command-item.tsx
121
109
  const commandItemVariants = tv({
110
+ defaultVariants: { size: "md" },
122
111
  slots: {
123
- indicator: "ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100 data-[selected=true]:*:[svg]:text-foreground",
124
- root: "group/command-item relative flex cursor-pointer items-center rounded-sm outline-hidden select-none data-[selected=true]:bg-muted data-[selected=true]:text-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-slot=dialog-content]_&]:rounded-lg!"
112
+ indicator: "data-[selected=true]:*:[svg]:text-foreground ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100",
113
+ root: "group/command-item cursor-clickable data-[selected=true]:bg-muted data-[selected=true]:text-foreground relative flex items-center rounded-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-slot=dialog-content]_&]:rounded-lg!"
125
114
  },
126
115
  variants: { size: {
127
- xs: {
128
- indicator: "size-3",
129
- root: "gap-1 px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3"
130
- },
131
- sm: {
132
- indicator: "size-3.5",
133
- root: "gap-1.5 px-2 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5"
116
+ lg: {
117
+ indicator: "size-4",
118
+ root: "gap-2 px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4"
134
119
  },
135
120
  md: {
136
121
  indicator: "size-4",
137
122
  root: "gap-2 px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4"
138
123
  },
139
- lg: {
140
- indicator: "size-4",
141
- root: "gap-2 px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4"
124
+ sm: {
125
+ indicator: "size-3.5",
126
+ root: "gap-1.5 px-2 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5"
142
127
  },
143
128
  xl: {
144
129
  indicator: "size-5",
145
130
  root: "gap-2.5 px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5"
131
+ },
132
+ xs: {
133
+ indicator: "size-3",
134
+ root: "gap-1 px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3"
146
135
  }
147
- } },
148
- defaultVariants: { size: "md" }
136
+ } }
149
137
  });
150
138
  const CommandItem = ({ className, children, size, ...props }) => {
151
139
  const { size: rootSize } = useContext(CommandContext);
152
140
  const resolvedSize = size ?? rootSize ?? "md";
141
+ const contextValue = useMemo(() => ({ size: resolvedSize }), [resolvedSize]);
153
142
  const { indicator, root } = commandItemVariants({ size: resolvedSize });
154
143
  return /* @__PURE__ */ jsxs(Command$1.Item, {
155
144
  className: cn(root(), className),
@@ -157,7 +146,7 @@ const CommandItem = ({ className, children, size, ...props }) => {
157
146
  "data-slot": "command-item",
158
147
  ...props,
159
148
  children: [/* @__PURE__ */ jsx(CommandItemContext.Provider, {
160
- value: { size: resolvedSize },
149
+ value: contextValue,
161
150
  children
162
151
  }), /* @__PURE__ */ jsx(HugeiconsIcon, {
163
152
  className: indicator(),
@@ -171,14 +160,14 @@ const CommandItem = ({ className, children, size, ...props }) => {
171
160
  //#region src/ui/command/command-list.tsx
172
161
  const commandListVariants = tv({
173
162
  base: "no-scrollbar overflow-x-hidden overflow-y-auto outline-none",
163
+ defaultVariants: { size: "md" },
174
164
  variants: { size: {
175
- xs: "max-h-60 scroll-py-0.5",
176
- sm: "max-h-64 scroll-py-1",
177
- md: "max-h-72 scroll-py-1",
178
165
  lg: "max-h-80 scroll-py-1.5",
179
- xl: "max-h-96 scroll-py-2"
180
- } },
181
- defaultVariants: { size: "md" }
166
+ md: "max-h-72 scroll-py-1",
167
+ sm: "max-h-64 scroll-py-1",
168
+ xl: "max-h-96 scroll-py-2",
169
+ xs: "max-h-60 scroll-py-0.5"
170
+ } }
182
171
  });
183
172
  const CommandList = ({ className, size, ...props }) => {
184
173
  const { size: rootSize } = useContext(CommandContext);
@@ -194,7 +183,7 @@ const CommandList = ({ className, size, ...props }) => {
194
183
  //#endregion
195
184
  //#region src/ui/command/command-separator.tsx
196
185
  const CommandSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(Command$1.Separator, {
197
- className: cn("-mx-1 h-px bg-border", className),
186
+ className: cn("bg-border -mx-1 h-px", className),
198
187
  "data-slot": "command-separator",
199
188
  ...props
200
189
  });
@@ -202,15 +191,15 @@ const CommandSeparator = ({ className, ...props }) => /* @__PURE__ */ jsx(Comman
202
191
  //#endregion
203
192
  //#region src/ui/command/command-shortcut.tsx
204
193
  const commandShortcutVariants = tv({
205
- base: "ml-auto text-muted-foreground group-data-[selected=true]/command-item:text-foreground",
194
+ base: "text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto",
195
+ defaultVariants: { size: "md" },
206
196
  variants: { size: {
207
- xs: "text-[10px] tracking-wide",
208
- sm: "text-xs tracking-wide",
209
- md: "text-xs tracking-widest",
210
197
  lg: "text-xs tracking-widest",
211
- xl: "text-sm tracking-widest"
212
- } },
213
- defaultVariants: { size: "md" }
198
+ md: "text-xs tracking-widest",
199
+ sm: "text-xs tracking-wide",
200
+ xl: "text-sm tracking-widest",
201
+ xs: "text-[10px] tracking-wide"
202
+ } }
214
203
  });
215
204
  const CommandShortcut = ({ className, size, ...props }) => {
216
205
  const { size: rootSize } = useContext(CommandContext);
@@ -228,10 +217,11 @@ const CommandShortcut = ({ className, size, ...props }) => {
228
217
  //#region src/ui/command/command.tsx
229
218
  const Command = ({ className, size: providedSize, ...props }) => {
230
219
  const size = useComponentSize(providedSize);
220
+ const contextValue = useMemo(() => ({ size }), [size]);
231
221
  return /* @__PURE__ */ jsx(CommandContext.Provider, {
232
- value: { size },
222
+ value: contextValue,
233
223
  children: /* @__PURE__ */ jsx(Command$1, {
234
- className: cn("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground", className),
224
+ className: cn("bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1", className),
235
225
  "data-size": size,
236
226
  "data-slot": "command",
237
227
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","names":["CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive"],"sources":["../../src/ui/command/command-context.tsx","../../src/ui/command/command-dialog.tsx","../../src/ui/command/command-empty.tsx","../../src/ui/command/command-group.tsx","../../src/ui/command/command-input.tsx","../../src/ui/command/command-item.tsx","../../src/ui/command/command-list.tsx","../../src/ui/command/command-separator.tsx","../../src/ui/command/command-shortcut.tsx","../../src/ui/command/command.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface CommandContextValue {\n size?: InputSize;\n}\n\nexport interface CommandItemContextValue {\n size?: InputSize;\n}\n\nconst CommandContext = createContext<CommandContextValue>({\n size: \"md\",\n});\n\nconst CommandItemContext = createContext<CommandItemContextValue>({});\n\nexport { CommandContext, CommandItemContext };\n","\"use client\";\n\nimport type { ComponentProps, ReactNode } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\n\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"../dialog/dialog\";\nexport type CommandDialogProps = Omit<\n ComponentProps<typeof Dialog>,\n \"children\"\n> & {\n title?: string;\n description?: string;\n className?: string;\n showCloseButton?: boolean;\n children: ReactNode;\n};\n\nconst CommandDialog = ({\n title = \"Command Palette\",\n description = \"Search for a command to run...\",\n children,\n className,\n showCloseButton = false,\n ...props\n}: CommandDialogProps) => (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent\n className={cn(\"overflow-hidden rounded-xl! p-0\", className)}\n showCloseButton={showCloseButton}\n >\n {children}\n </DialogContent>\n </Dialog>\n);\n\nexport { CommandDialog };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext } from \"./command-context\";\n\nconst commandEmptyVariants = tv({\n base: \"text-center\",\n variants: {\n size: {\n xs: \"py-4 text-xs\",\n sm: \"py-5 text-sm\",\n md: \"py-6 text-sm\",\n lg: \"py-7 text-sm\",\n xl: \"py-8 text-base\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty> &\n VariantProps<typeof commandEmptyVariants>;\n\nconst CommandEmpty = ({ className, size, ...props }: CommandEmptyProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.Empty\n className={cn(commandEmptyVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n};\n\nexport { CommandEmpty };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext } from \"./command-context\";\n\nconst commandGroupVariants = tv({\n base: \"overflow-hidden text-foreground\",\n variants: {\n size: {\n xs: \"p-0.5 [&_[cmdk-group-heading]]:px-1.5 [&_[cmdk-group-heading]]:py-0.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n sm: \"p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n md: \"p-1 [&_[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\",\n lg: \"p-1.5 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n xl: \"p-2 [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group> &\n VariantProps<typeof commandGroupVariants>;\n\nconst CommandGroup = ({ className, size, ...props }: CommandGroupProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.Group\n className={cn(commandGroupVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-group\"\n {...props}\n />\n );\n};\n\nexport { CommandGroup };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { SearchIcon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { InputGroup, InputGroupAddon } from \"../input-group/input-group\";\nimport { CommandContext } from \"./command-context\";\ntype NativeCommandInputProps = ComponentProps<typeof CommandPrimitive.Input>;\ntype NativeCommandInputSize = NativeCommandInputProps[\"size\"];\n\nexport type CommandInputProps = Omit<NativeCommandInputProps, \"size\"> & {\n htmlSize?: NativeCommandInputSize;\n size?: InputSize;\n};\n\nconst getCommandSearchIconSizeClassName = (size: InputSize) => {\n if (size === \"xs\") {\n return \"size-3\";\n }\n\n if (size === \"sm\") {\n return \"size-3.5\";\n }\n\n if (size === \"xl\") {\n return \"size-5\";\n }\n\n return \"size-4\";\n};\n\nconst getCommandInputTextSizeClassName = (size: InputSize) => {\n if (size === \"xs\") {\n return \"text-xs\";\n }\n\n if (size === \"xl\") {\n return \"text-base\";\n }\n\n return \"text-sm\";\n};\n\nconst CommandInput = ({\n className,\n htmlSize,\n size,\n ...props\n}: CommandInputProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize = size ?? rootSize ?? \"md\";\n\n return (\n <div\n className=\"p-1 pb-0\"\n data-size={resolvedSize}\n data-slot=\"command-input-wrapper\"\n >\n <InputGroup\n className=\"rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!\"\n size={resolvedSize}\n >\n <CommandPrimitive.Input\n className={cn(\n \"w-full outline-hidden disabled:cursor-not-allowed disabled:opacity-50\",\n getCommandInputTextSizeClassName(resolvedSize),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"command-input\"\n size={htmlSize}\n {...props}\n />\n <InputGroupAddon>\n <HugeiconsIcon\n className={cn(\n getCommandSearchIconSizeClassName(resolvedSize),\n \"shrink-0 opacity-50\"\n )}\n icon={SearchIcon}\n strokeWidth={2}\n />\n </InputGroupAddon>\n </InputGroup>\n </div>\n );\n};\n\nexport { CommandInput };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Tick02Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext, CommandItemContext } from \"./command-context\";\n\nconst commandItemVariants = tv({\n slots: {\n indicator:\n \"ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100 data-[selected=true]:*:[svg]:text-foreground\",\n root: \"group/command-item relative flex cursor-pointer items-center rounded-sm outline-hidden select-none data-[selected=true]:bg-muted data-[selected=true]:text-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-slot=dialog-content]_&]:rounded-lg!\",\n },\n variants: {\n size: {\n xs: {\n indicator: \"size-3\",\n root: \"gap-1 px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3\",\n },\n sm: {\n indicator: \"size-3.5\",\n root: \"gap-1.5 px-2 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n },\n md: {\n indicator: \"size-4\",\n root: \"gap-2 px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n lg: {\n indicator: \"size-4\",\n root: \"gap-2 px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n xl: {\n indicator: \"size-5\",\n root: \"gap-2.5 px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item> &\n VariantProps<typeof commandItemVariants>;\n\nconst CommandItem = ({\n className,\n children,\n size,\n ...props\n}: CommandItemProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n const { indicator, root } = commandItemVariants({ size: resolvedSize });\n\n return (\n <CommandPrimitive.Item\n className={cn(root(), className)}\n data-size={resolvedSize}\n data-slot=\"command-item\"\n {...props}\n >\n <CommandItemContext.Provider value={{ size: resolvedSize }}>\n {children}\n </CommandItemContext.Provider>\n <HugeiconsIcon\n className={indicator()}\n icon={Tick02Icon}\n strokeWidth={2}\n />\n </CommandPrimitive.Item>\n );\n};\n\nexport { CommandItem };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext } from \"./command-context\";\n\nconst commandListVariants = tv({\n base: \"no-scrollbar overflow-x-hidden overflow-y-auto outline-none\",\n variants: {\n size: {\n xs: \"max-h-60 scroll-py-0.5\",\n sm: \"max-h-64 scroll-py-1\",\n md: \"max-h-72 scroll-py-1\",\n lg: \"max-h-80 scroll-py-1.5\",\n xl: \"max-h-96 scroll-py-2\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandListProps = ComponentProps<typeof CommandPrimitive.List> &\n VariantProps<typeof commandListVariants>;\n\nconst CommandList = ({ className, size, ...props }: CommandListProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.List\n className={cn(commandListVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-list\"\n {...props}\n />\n );\n};\n\nexport { CommandList };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { cn } from \"tailwind-variants\";\nexport type CommandSeparatorProps = ComponentProps<\n typeof CommandPrimitive.Separator\n>;\n\nconst CommandSeparator = ({ className, ...props }: CommandSeparatorProps) => (\n <CommandPrimitive.Separator\n className={cn(\"-mx-1 h-px bg-border\", className)}\n data-slot=\"command-separator\"\n {...props}\n />\n);\n\nexport { CommandSeparator };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { useContext } from \"react\";\nimport { cn, tv, type VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { CommandContext, CommandItemContext } from \"./command-context\";\n\nconst commandShortcutVariants = tv({\n base: \"ml-auto text-muted-foreground group-data-[selected=true]/command-item:text-foreground\",\n variants: {\n size: {\n xs: \"text-[10px] tracking-wide\",\n sm: \"text-xs tracking-wide\",\n md: \"text-xs tracking-widest\",\n lg: \"text-xs tracking-widest\",\n xl: \"text-sm tracking-widest\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n});\n\nexport type CommandShortcutProps = ComponentProps<\"span\"> &\n VariantProps<typeof commandShortcutVariants>;\n\nconst CommandShortcut = ({\n className,\n size,\n ...props\n}: CommandShortcutProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const { size: itemSize } = useContext(CommandItemContext);\n const resolvedSize: InputSize = size ?? itemSize ?? rootSize ?? \"md\";\n\n return (\n <span\n className={cn(commandShortcutVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n};\n\nexport { CommandShortcut };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { cn } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\n\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { CommandContext } from \"./command-context\";\nimport { CommandDialog } from \"./command-dialog\";\nimport { CommandEmpty } from \"./command-empty\";\nimport { CommandGroup } from \"./command-group\";\nimport { CommandInput } from \"./command-input\";\nimport { CommandItem } from \"./command-item\";\nimport { CommandList } from \"./command-list\";\nimport { CommandSeparator } from \"./command-separator\";\nimport { CommandShortcut } from \"./command-shortcut\";\nexport type CommandProps = ComponentProps<typeof CommandPrimitive> & {\n size?: InputSize;\n};\n\nconst Command = ({ className, size: providedSize, ...props }: CommandProps) => {\n const size = useComponentSize(providedSize);\n\n return (\n <CommandContext.Provider value={{ size }}>\n <CommandPrimitive\n className={cn(\n \"flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground\",\n className\n )}\n data-size={size}\n data-slot=\"command\"\n {...props}\n />\n </CommandContext.Provider>\n );\n};\n\nCommand.Dialog = CommandDialog;\nCommand.Empty = CommandEmpty;\nCommand.Group = CommandGroup;\nCommand.Input = CommandInput;\nCommand.Item = CommandItem;\nCommand.List = CommandList;\nCommand.Separator = CommandSeparator;\nCommand.Shortcut = CommandShortcut;\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n};\n\nexport type { CommandDialogProps } from \"./command-dialog\";\nexport type { CommandEmptyProps } from \"./command-empty\";\nexport type { CommandGroupProps } from \"./command-group\";\nexport type { CommandInputProps } from \"./command-input\";\nexport type { CommandItemProps } from \"./command-item\";\nexport type { CommandListProps } from \"./command-list\";\nexport type { CommandSeparatorProps } from \"./command-separator\";\nexport type { CommandShortcutProps } from \"./command-shortcut\";\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAM,iBAAiB,cAAmC,EACxD,MAAM,MACP,CAAC;AAEF,MAAM,qBAAqB,cAAuC,EAAE,CAAC;;;;ACMrE,MAAM,iBAAiB,EACrB,QAAQ,mBACR,cAAc,kCACd,UACA,WACA,kBAAkB,OAClB,GAAG,YAEH,qBAAC;CAAO,GAAI;YACV,qBAAC;EAAa,WAAU;aACtB,oBAAC,yBAAa,QAAoB,EAClC,oBAAC,+BAAmB,cAAgC;GACvC,EACf,oBAAC;EACC,WAAW,GAAG,mCAAmC,UAAU;EAC1C;EAEhB;GACa;EACT;;;;AC/BX,MAAM,uBAAuB,GAAG;CAC9B,MAAM;CACN,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC;AAKF,MAAM,gBAAgB,EAAE,WAAW,MAAM,GAAG,YAA+B;CACzE,MAAM,EAAE,MAAM,aAAa,WAAW,eAAe;CACrD,MAAM,eAA0B,QAAQ,YAAY;AAEpD,QACE,oBAACA,UAAiB;EAChB,WAAW,GAAG,qBAAqB,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EACtE,aAAW;E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AG;CACjC,MAAM;CACN,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC;AAKF,MAAM,mBAAmB,EACvB,WACA,MACA,GAAG,YACuB;CAC1B,MAAM,EAAE,MAAM,aAAa,WAAW,eAAe;CACrD,MAAM,EAAE,MAAM,aAAa,WAAW,mBAAmB;CACzD,MAAM,eAA0B,QAAQ,YAAY,YAAY;AAEhE,QACE,oBAAC;EACC,WAAW,GAAG,wBAAwB,EAAE,MAAM,cAAc,CAAC,EAAE,UAAU;EACzE,aAAW;EACX,aAAU;EACV,GAAI;GACJ;;;;;ACtBN,MAAM,WAAW,EAAE,WAAW,MAAM,cAAc,GAAG,YAA0B;CAC7E,MAAM,OAAO,iBAAiB,aAAa;AAE3C,QACE,oBAAC,eAAe;EAAS,OAAO,EAAE,MAAM;YACtC,oBAACC;GACC,WAAW,GACT,8FACA,UACD;GACD,aAAW;GACX,aAAU;GACV,GAAI;IACJ;GACsB;;AAI9B,QAAQ,SAAS;AACjB,QAAQ,QAAQ;AAChB,QAAQ,QAAQ;AAChB,QAAQ,QAAQ;AAChB,QAAQ,OAAO;AACf,QAAQ,OAAO;AACf,QAAQ,YAAY;AACpB,QAAQ,WAAW"}
1
+ {"version":3,"file":"command.js","names":["CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive","CommandPrimitive"],"sources":["../../src/ui/command/command-context.tsx","../../src/ui/command/command-dialog.tsx","../../src/ui/command/command-empty.tsx","../../src/ui/command/command-group.tsx","../../src/ui/command/command-input.tsx","../../src/ui/command/command-item.tsx","../../src/ui/command/command-list.tsx","../../src/ui/command/command-separator.tsx","../../src/ui/command/command-shortcut.tsx","../../src/ui/command/command.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext } from \"react\";\n\nimport type { InputSize } from \"../input/input\";\n\nexport interface CommandContextValue {\n size?: InputSize;\n}\n\nexport interface CommandItemContextValue {\n size?: InputSize;\n}\n\nconst CommandContext = createContext<CommandContextValue>({\n size: \"md\",\n});\n\nconst CommandItemContext = createContext<CommandItemContextValue>({});\n\nexport { CommandContext, CommandItemContext };\n","\"use client\";\n\nimport type { ComponentProps, ReactNode } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from \"../dialog/dialog\";\nexport type CommandDialogProps = Omit<\n ComponentProps<typeof Dialog>,\n \"children\"\n> & {\n title?: string;\n description?: string;\n className?: string;\n showCloseButton?: boolean;\n children: ReactNode;\n};\n\nconst CommandDialog = ({\n title = \"Command Palette\",\n description = \"Search for a command to run...\",\n children,\n className,\n showCloseButton = false,\n ...props\n}: CommandDialogProps) => (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent\n className={cn(\"overflow-hidden rounded-xl! p-0\", className)}\n showCloseButton={showCloseButton}\n >\n {children}\n </DialogContent>\n </Dialog>\n);\n\nexport { CommandDialog };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext } from \"./command-context\";\n\nconst commandEmptyVariants = tv({\n base: \"text-center\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"py-7 text-sm\",\n md: \"py-6 text-sm\",\n sm: \"py-5 text-sm\",\n xl: \"py-8 text-base\",\n xs: \"py-4 text-xs\",\n },\n },\n});\n\nexport type CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty> &\n VariantProps<typeof commandEmptyVariants>;\n\nconst CommandEmpty = ({ className, size, ...props }: CommandEmptyProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.Empty\n className={cn(commandEmptyVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n};\n\nexport { CommandEmpty };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext } from \"./command-context\";\n\nconst commandGroupVariants = tv({\n base: \"text-foreground overflow-hidden\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"[&_[cmdk-group-heading]]:text-muted-foreground p-1.5 [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium\",\n md: \"[&_[cmdk-group-heading]]:text-muted-foreground p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium\",\n sm: \"[&_[cmdk-group-heading]]:text-muted-foreground p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium\",\n xl: \"[&_[cmdk-group-heading]]:text-muted-foreground p-2 [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-medium\",\n xs: \"[&_[cmdk-group-heading]]:text-muted-foreground p-0.5 [&_[cmdk-group-heading]]:px-1.5 [&_[cmdk-group-heading]]:py-0.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium\",\n },\n },\n});\n\nexport type CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group> &\n VariantProps<typeof commandGroupVariants>;\n\nconst CommandGroup = ({ className, size, ...props }: CommandGroupProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.Group\n className={cn(commandGroupVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-group\"\n {...props}\n />\n );\n};\n\nexport { CommandGroup };\n","\"use client\";\n\nimport { SearchIcon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport { InputGroup, InputGroupAddon } from \"../input-group/input-group\";\nimport type { InputSize } from \"../input/input\";\nimport {\n resolveDefaultIconClassBySize,\n resolveFieldTextClassBySize,\n} from \"../shared/size/size-system\";\nimport { CommandContext } from \"./command-context\";\ntype NativeCommandInputProps = ComponentProps<typeof CommandPrimitive.Input>;\ntype NativeCommandInputSize = NativeCommandInputProps[\"size\"];\n\nexport type CommandInputProps = Omit<NativeCommandInputProps, \"size\"> & {\n htmlSize?: NativeCommandInputSize;\n size?: InputSize;\n};\n\nconst CommandInput = ({\n className,\n htmlSize,\n size,\n ...props\n}: CommandInputProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize = size ?? rootSize ?? \"md\";\n\n return (\n <div\n className=\"p-1 pb-0\"\n data-size={resolvedSize}\n data-slot=\"command-input-wrapper\"\n >\n <InputGroup\n className=\"border-input/30 bg-input/30 rounded-lg! shadow-none! *:data-[slot=input-group-addon]:pl-2!\"\n size={resolvedSize}\n >\n <CommandPrimitive.Input\n className={cn(\n \"w-full outline-hidden disabled:cursor-not-allowed disabled:opacity-50\",\n resolveFieldTextClassBySize(resolvedSize),\n className\n )}\n data-size={resolvedSize}\n data-slot=\"command-input\"\n size={htmlSize}\n {...props}\n />\n <InputGroupAddon>\n <HugeiconsIcon\n className={cn(\n resolveDefaultIconClassBySize(resolvedSize),\n \"shrink-0 opacity-50\"\n )}\n icon={SearchIcon}\n strokeWidth={2}\n />\n </InputGroupAddon>\n </InputGroup>\n </div>\n );\n};\n\nexport { CommandInput };\n","\"use client\";\n\nimport { Tick02Icon } from \"@hugeicons/core-free-icons\";\nimport { HugeiconsIcon } from \"@hugeicons/react\";\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext, useMemo } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext, CommandItemContext } from \"./command-context\";\n\nconst commandItemVariants = tv({\n defaultVariants: {\n size: \"md\",\n },\n slots: {\n indicator:\n \"data-[selected=true]:*:[svg]:text-foreground ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100\",\n root: \"group/command-item cursor-clickable data-[selected=true]:bg-muted data-[selected=true]:text-foreground relative flex items-center rounded-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-slot=dialog-content]_&]:rounded-lg!\",\n },\n variants: {\n size: {\n lg: {\n indicator: \"size-4\",\n root: \"gap-2 px-2.5 py-2 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n md: {\n indicator: \"size-4\",\n root: \"gap-2 px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4\",\n },\n sm: {\n indicator: \"size-3.5\",\n root: \"gap-1.5 px-2 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5\",\n },\n xl: {\n indicator: \"size-5\",\n root: \"gap-2.5 px-3 py-2.5 text-base [&_svg:not([class*='size-'])]:size-5\",\n },\n xs: {\n indicator: \"size-3\",\n root: \"gap-1 px-1.5 py-1 text-xs [&_svg:not([class*='size-'])]:size-3\",\n },\n },\n },\n});\n\nexport type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item> &\n VariantProps<typeof commandItemVariants>;\n\nconst CommandItem = ({\n className,\n children,\n size,\n ...props\n}: CommandItemProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n const contextValue = useMemo(() => ({ size: resolvedSize }), [resolvedSize]);\n const { indicator, root } = commandItemVariants({ size: resolvedSize });\n\n return (\n <CommandPrimitive.Item\n className={cn(root(), className)}\n data-size={resolvedSize}\n data-slot=\"command-item\"\n {...props}\n >\n <CommandItemContext.Provider value={contextValue}>\n {children}\n </CommandItemContext.Provider>\n <HugeiconsIcon\n className={indicator()}\n icon={Tick02Icon}\n strokeWidth={2}\n />\n </CommandPrimitive.Item>\n );\n};\n\nexport { CommandItem };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext } from \"./command-context\";\n\nconst commandListVariants = tv({\n base: \"no-scrollbar overflow-x-hidden overflow-y-auto outline-none\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"max-h-80 scroll-py-1.5\",\n md: \"max-h-72 scroll-py-1\",\n sm: \"max-h-64 scroll-py-1\",\n xl: \"max-h-96 scroll-py-2\",\n xs: \"max-h-60 scroll-py-0.5\",\n },\n },\n});\n\nexport type CommandListProps = ComponentProps<typeof CommandPrimitive.List> &\n VariantProps<typeof commandListVariants>;\n\nconst CommandList = ({ className, size, ...props }: CommandListProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const resolvedSize: InputSize = size ?? rootSize ?? \"md\";\n\n return (\n <CommandPrimitive.List\n className={cn(commandListVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-list\"\n {...props}\n />\n );\n};\n\nexport { CommandList };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\nexport type CommandSeparatorProps = ComponentProps<\n typeof CommandPrimitive.Separator\n>;\n\nconst CommandSeparator = ({ className, ...props }: CommandSeparatorProps) => (\n <CommandPrimitive.Separator\n className={cn(\"bg-border -mx-1 h-px\", className)}\n data-slot=\"command-separator\"\n {...props}\n />\n);\n\nexport { CommandSeparator };\n","\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { useContext } from \"react\";\nimport { cn, tv } from \"tailwind-variants\";\nimport type { VariantProps } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { CommandContext, CommandItemContext } from \"./command-context\";\n\nconst commandShortcutVariants = tv({\n base: \"text-muted-foreground group-data-[selected=true]/command-item:text-foreground ml-auto\",\n defaultVariants: {\n size: \"md\",\n },\n variants: {\n size: {\n lg: \"text-xs tracking-widest\",\n md: \"text-xs tracking-widest\",\n sm: \"text-xs tracking-wide\",\n xl: \"text-sm tracking-widest\",\n xs: \"text-[10px] tracking-wide\",\n },\n },\n});\n\nexport type CommandShortcutProps = ComponentProps<\"span\"> &\n VariantProps<typeof commandShortcutVariants>;\n\nconst CommandShortcut = ({\n className,\n size,\n ...props\n}: CommandShortcutProps) => {\n const { size: rootSize } = useContext(CommandContext);\n const { size: itemSize } = useContext(CommandItemContext);\n const resolvedSize: InputSize = size ?? itemSize ?? rootSize ?? \"md\";\n\n return (\n <span\n className={cn(commandShortcutVariants({ size: resolvedSize }), className)}\n data-size={resolvedSize}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n};\n\nexport { CommandShortcut };\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport type { ComponentProps } from \"react\";\nimport { useMemo } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nimport type { InputSize } from \"../input/input\";\nimport { useComponentSize } from \"../shared/size/size-provider\";\nimport { CommandContext } from \"./command-context\";\nimport { CommandDialog } from \"./command-dialog\";\nimport { CommandEmpty } from \"./command-empty\";\nimport { CommandGroup } from \"./command-group\";\nimport { CommandInput } from \"./command-input\";\nimport { CommandItem } from \"./command-item\";\nimport { CommandList } from \"./command-list\";\nimport { CommandSeparator } from \"./command-separator\";\nimport { CommandShortcut } from \"./command-shortcut\";\nexport type CommandProps = ComponentProps<typeof CommandPrimitive> & {\n size?: InputSize;\n};\n\nconst Command = ({ className, size: providedSize, ...props }: CommandProps) => {\n const size = useComponentSize(providedSize);\n const contextValue = useMemo(() => ({ size }), [size]);\n\n return (\n <CommandContext.Provider value={contextValue}>\n <CommandPrimitive\n className={cn(\n \"bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1\",\n className\n )}\n data-size={size}\n data-slot=\"command\"\n {...props}\n />\n </CommandContext.Provider>\n );\n};\n\nCommand.Dialog = CommandDialog;\nCommand.Empty = CommandEmpty;\nCommand.Group = CommandGroup;\nCommand.Input = CommandInput;\nCommand.Item = CommandItem;\nCommand.List = CommandList;\nCommand.Separator = CommandSeparator;\nCommand.Shortcut = CommandShortcut;\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut,\n};\n\nexport type { CommandDialogProps } from \"./command-dialog\";\nexport type { CommandEmptyProps } from \"./command-empty\";\nexport type { CommandGroupProps } from \"./command-group\";\nexport type { CommandInputProps } from \"./command-input\";\nexport type { CommandItemProps } from \"./command-item\";\nexport type { CommandListProps } from \"./command-list\";\nexport type { CommandSeparatorProps } from \"./command-separator\";\nexport type { CommandShortcutProps } from \"./command-shortcut\";\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,iBAAiB,cAAmC,EACxD,MAAM,MACP,CAAC;AAEF,MAAM,qBAAqB,cAAuC,EAAE,CAAC;;;;ACKrE,MAAM,iBAAiB,EACrB,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AO;YAC9B,oBAACC,WAAD;GACE,WAAW,GACT,8FACA,UACD;GACD,aAAW;GACX,aAAU;GACV,GAAI;GACJ;EACsB;;AAI9B,QAAQ,SAAS;AACjB,QAAQ,QAAQ;AAChB,QAAQ,QAAQ;AAChB,QAAQ,QAAQ;AAChB,QAAQ,OAAO;AACf,QAAQ,OAAO;AACf,QAAQ,YAAY;AACpB,QAAQ,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"container.d.ts","names":[],"sources":["../../src/ui/container/container.tsx"],"mappings":";;;;KAIY,cAAA,GAAiB,cAAA;AAAA,cAEhB,SAAA;EAAa,SAAA;EAAA,GAAA;AAAA,GAAyB,cAAA,KAAc,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"container.d.ts","names":[],"sources":["../../src/ui/container/container.tsx"],"mappings":";;;;KAGY,cAAA,GAAiB,cAAA;AAAA,cAEhB,SAAA;EAAa,SAAA;EAAA,GAAA;AAAA,GAAyB,cAAA,KAAc,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","names":[],"sources":["../../src/ui/container/container.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\n\nimport { cn } from \"tailwind-variants\";\n\nexport type ContainerProps = ComponentProps<\"div\">;\n\nexport const Container = ({ className, ...props }: ContainerProps) => (\n <div\n className={cn(\"mx-auto w-full max-w-[86rem] px-4\", className)}\n data-slot=\"container\"\n {...props}\n />\n);\n"],"mappings":";;;;AAMA,MAAa,aAAa,EAAE,WAAW,GAAG,YACxC,oBAAC;CACC,WAAW,GAAG,qCAAqC,UAAU;CAC7D,aAAU;CACV,GAAI;EACJ"}
1
+ {"version":3,"file":"container.js","names":[],"sources":["../../src/ui/container/container.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\nimport { cn } from \"tailwind-variants\";\n\nexport type ContainerProps = ComponentProps<\"div\">;\n\nexport const Container = ({ className, ...props }: ContainerProps) => (\n <div\n className={cn(\"mx-auto w-full max-w-[86rem] px-4\", className)}\n data-slot=\"container\"\n {...props}\n />\n);\n"],"mappings":";;;;AAKA,MAAa,aAAa,EAAE,WAAW,GAAG,YACxC,oBAAC,OAAD;CACE,WAAW,GAAG,qCAAqC,UAAU;CAC7D,aAAU;CACV,GAAI;CACJ"}