@stagewise/ui 0.1.0

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 (266) hide show
  1. package/README.md +135 -0
  2. package/package.json +80 -0
  3. package/src/components/ui/accordion.tsx +66 -0
  4. package/src/components/ui/alert-dialog.tsx +185 -0
  5. package/src/components/ui/alert.tsx +76 -0
  6. package/src/components/ui/aspect-ratio.tsx +22 -0
  7. package/src/components/ui/avatar.tsx +107 -0
  8. package/src/components/ui/badge.tsx +52 -0
  9. package/src/components/ui/breadcrumb.tsx +125 -0
  10. package/src/components/ui/bubble.tsx +128 -0
  11. package/src/components/ui/button-group.tsx +87 -0
  12. package/src/components/ui/button.tsx +58 -0
  13. package/src/components/ui/calendar.tsx +221 -0
  14. package/src/components/ui/card.tsx +103 -0
  15. package/src/components/ui/carousel.tsx +240 -0
  16. package/src/components/ui/chart.tsx +371 -0
  17. package/src/components/ui/checkbox.tsx +30 -0
  18. package/src/components/ui/collapsible.tsx +19 -0
  19. package/src/components/ui/combobox.tsx +295 -0
  20. package/src/components/ui/command.tsx +348 -0
  21. package/src/components/ui/context-menu.tsx +271 -0
  22. package/src/components/ui/dialog.tsx +160 -0
  23. package/src/components/ui/direction.tsx +4 -0
  24. package/src/components/ui/drawer.tsx +228 -0
  25. package/src/components/ui/dropdown-menu.tsx +266 -0
  26. package/src/components/ui/empty.tsx +104 -0
  27. package/src/components/ui/field.tsx +236 -0
  28. package/src/components/ui/hover-card.tsx +51 -0
  29. package/src/components/ui/input-group.tsx +158 -0
  30. package/src/components/ui/input-otp.tsx +85 -0
  31. package/src/components/ui/input.tsx +20 -0
  32. package/src/components/ui/item.tsx +201 -0
  33. package/src/components/ui/kbd.tsx +26 -0
  34. package/src/components/ui/label.tsx +20 -0
  35. package/src/components/ui/marker.tsx +71 -0
  36. package/src/components/ui/menubar.tsx +280 -0
  37. package/src/components/ui/message.tsx +92 -0
  38. package/src/components/ui/native-select.tsx +61 -0
  39. package/src/components/ui/navigation-menu.tsx +168 -0
  40. package/src/components/ui/pagination.tsx +130 -0
  41. package/src/components/ui/popover.tsx +88 -0
  42. package/src/components/ui/progress.tsx +83 -0
  43. package/src/components/ui/questionnaire.tsx +324 -0
  44. package/src/components/ui/radio-group.tsx +36 -0
  45. package/src/components/ui/resizable.tsx +50 -0
  46. package/src/components/ui/scroll-area.tsx +53 -0
  47. package/src/components/ui/select.tsx +201 -0
  48. package/src/components/ui/separator.tsx +23 -0
  49. package/src/components/ui/sheet.tsx +136 -0
  50. package/src/components/ui/sidebar.tsx +723 -0
  51. package/src/components/ui/skeleton.tsx +13 -0
  52. package/src/components/ui/slider.tsx +52 -0
  53. package/src/components/ui/spinner.tsx +10 -0
  54. package/src/components/ui/switch.tsx +32 -0
  55. package/src/components/ui/table.tsx +114 -0
  56. package/src/components/ui/tabs.tsx +82 -0
  57. package/src/components/ui/textarea.tsx +18 -0
  58. package/src/components/ui/toast.tsx +234 -0
  59. package/src/components/ui/toggle-group.tsx +87 -0
  60. package/src/components/ui/toggle.tsx +43 -0
  61. package/src/components/ui/tooltip.tsx +66 -0
  62. package/src/fonts/OFL.txt +92 -0
  63. package/src/fonts/geist-variable-italic.woff2 +0 -0
  64. package/src/fonts/geist-variable.woff2 +0 -0
  65. package/src/hooks/use-mobile.ts +19 -0
  66. package/src/icons/custom/index.ts +1 -0
  67. package/src/icons/custom/ui-outline-18/Icon.tsx +28 -0
  68. package/src/icons/custom/ui-outline-18/IconBrowserTab.tsx +40 -0
  69. package/src/icons/custom/ui-outline-18/IconNewTerminal.tsx +77 -0
  70. package/src/icons/custom/ui-outline-18/index.ts +3 -0
  71. package/src/icons/index.ts +52 -0
  72. package/src/icons/nucleo/LICENSE.md +29 -0
  73. package/src/icons/nucleo/core-outline-24/Icon.tsx +27 -0
  74. package/src/icons/nucleo/core-outline-24/IconArrowUpOutline24.tsx +36 -0
  75. package/src/icons/nucleo/core-outline-24/IconBluetoothOutline24.tsx +26 -0
  76. package/src/icons/nucleo/core-outline-24/IconTrash2Outline24.tsx +76 -0
  77. package/src/icons/nucleo/core-outline-24/IconUsbOutline24.tsx +64 -0
  78. package/src/icons/nucleo/core-outline-24/index.ts +5 -0
  79. package/src/icons/nucleo/index.ts +48 -0
  80. package/src/icons/nucleo/micro-bold/Icon.tsx +27 -0
  81. package/src/icons/nucleo/micro-bold/IconArrowLeft.tsx +28 -0
  82. package/src/icons/nucleo/micro-bold/IconArrowRight.tsx +28 -0
  83. package/src/icons/nucleo/micro-bold/IconArrowRotateAnticlockwise.tsx +27 -0
  84. package/src/icons/nucleo/micro-bold/IconChevronLeft.tsx +16 -0
  85. package/src/icons/nucleo/micro-bold/IconChevronRight.tsx +16 -0
  86. package/src/icons/nucleo/micro-bold/IconClipboardContent.tsx +59 -0
  87. package/src/icons/nucleo/micro-bold/IconMagicWandSparkle.tsx +44 -0
  88. package/src/icons/nucleo/micro-bold/IconTriangleWarning.tsx +30 -0
  89. package/src/icons/nucleo/micro-bold/IconXmark.tsx +31 -0
  90. package/src/icons/nucleo/micro-bold/index.ts +10 -0
  91. package/src/icons/nucleo/social-media/Icon.tsx +27 -0
  92. package/src/icons/nucleo/social-media/IconApple.tsx +12 -0
  93. package/src/icons/nucleo/social-media/IconGithub.tsx +11 -0
  94. package/src/icons/nucleo/social-media/IconGoogle.tsx +20 -0
  95. package/src/icons/nucleo/social-media/index.ts +4 -0
  96. package/src/icons/nucleo/ui-fill-18/Icon.tsx +27 -0
  97. package/src/icons/nucleo/ui-fill-18/IconArrowLeftFill18.tsx +17 -0
  98. package/src/icons/nucleo/ui-fill-18/IconArrowRightFill18.tsx +17 -0
  99. package/src/icons/nucleo/ui-fill-18/IconCheckFill18.tsx +12 -0
  100. package/src/icons/nucleo/ui-fill-18/IconChevronDownFill18.tsx +12 -0
  101. package/src/icons/nucleo/ui-fill-18/IconGlobe2Fill18.tsx +17 -0
  102. package/src/icons/nucleo/ui-fill-18/IconLinkFill18.tsx +21 -0
  103. package/src/icons/nucleo/ui-fill-18/IconMediaStopFill18.tsx +17 -0
  104. package/src/icons/nucleo/ui-fill-18/IconPinTackFill18.tsx +17 -0
  105. package/src/icons/nucleo/ui-fill-18/IconPlusFill18.tsx +17 -0
  106. package/src/icons/nucleo/ui-fill-18/IconVolumeUpFill18.tsx +22 -0
  107. package/src/icons/nucleo/ui-fill-18/IconVolumeXmarkFill18.tsx +17 -0
  108. package/src/icons/nucleo/ui-fill-18/IconXmarkFill18.tsx +17 -0
  109. package/src/icons/nucleo/ui-fill-18/index.ts +13 -0
  110. package/src/icons/nucleo/ui-fill-duo-18/Icon.tsx +27 -0
  111. package/src/icons/nucleo/ui-fill-duo-18/IconBrainNodesFillDuo18.tsx +32 -0
  112. package/src/icons/nucleo/ui-fill-duo-18/IconCloudeCodeFillDuo18.tsx +25 -0
  113. package/src/icons/nucleo/ui-fill-duo-18/IconDatabaseFillDuo18.tsx +24 -0
  114. package/src/icons/nucleo/ui-fill-duo-18/IconDownload4FillDuo18.tsx +18 -0
  115. package/src/icons/nucleo/ui-fill-duo-18/IconEarthFillDuo18.tsx +20 -0
  116. package/src/icons/nucleo/ui-fill-duo-18/IconFinderFillDuo18.tsx +36 -0
  117. package/src/icons/nucleo/ui-fill-duo-18/IconFolderContent2FillDuo18.tsx +22 -0
  118. package/src/icons/nucleo/ui-fill-duo-18/IconGear3FillDuo18.tsx +18 -0
  119. package/src/icons/nucleo/ui-fill-duo-18/IconHistoryFillDuo18.tsx +20 -0
  120. package/src/icons/nucleo/ui-fill-duo-18/IconLockKeyFillDuo18.tsx +24 -0
  121. package/src/icons/nucleo/ui-fill-duo-18/IconNoteFillDuo18.tsx +34 -0
  122. package/src/icons/nucleo/ui-fill-duo-18/IconPenDrawSparkleFillDuo18.tsx +34 -0
  123. package/src/icons/nucleo/ui-fill-duo-18/IconServerFillDuo18.tsx +22 -0
  124. package/src/icons/nucleo/ui-fill-duo-18/IconSpace3dFillDuo18.tsx +24 -0
  125. package/src/icons/nucleo/ui-fill-duo-18/IconTriangleWarningFillDuo18.tsx +24 -0
  126. package/src/icons/nucleo/ui-fill-duo-18/index.ts +16 -0
  127. package/src/icons/nucleo/ui-outline-18/Icon.tsx +27 -0
  128. package/src/icons/nucleo/ui-outline-18/IconArrowDownOutline18.tsx +33 -0
  129. package/src/icons/nucleo/ui-outline-18/IconArrowRightOutline18.tsx +34 -0
  130. package/src/icons/nucleo/ui-outline-18/IconArrowUpRightOutline18.tsx +34 -0
  131. package/src/icons/nucleo/ui-outline-18/IconArrowsOppositeDirectionXOutline18.tsx +54 -0
  132. package/src/icons/nucleo/ui-outline-18/IconArrowsToCenterOutline18.tsx +101 -0
  133. package/src/icons/nucleo/ui-outline-18/IconBanOutline18.tsx +37 -0
  134. package/src/icons/nucleo/ui-outline-18/IconBellDotOutline18.tsx +43 -0
  135. package/src/icons/nucleo/ui-outline-18/IconBookOpen5Outline18.tsx +40 -0
  136. package/src/icons/nucleo/ui-outline-18/IconBookOpenOutline18.tsx +32 -0
  137. package/src/icons/nucleo/ui-outline-18/IconBooks2Outline18.tsx +100 -0
  138. package/src/icons/nucleo/ui-outline-18/IconBoxSparkleOutline18.tsx +75 -0
  139. package/src/icons/nucleo/ui-outline-18/IconBrainOutline18.tsx +57 -0
  140. package/src/icons/nucleo/ui-outline-18/IconBranchOutOutline18.tsx +52 -0
  141. package/src/icons/nucleo/ui-outline-18/IconBugOutline18.tsx +98 -0
  142. package/src/icons/nucleo/ui-outline-18/IconCameraOutline18.tsx +42 -0
  143. package/src/icons/nucleo/ui-outline-18/IconChartPieOutline18.tsx +30 -0
  144. package/src/icons/nucleo/ui-outline-18/IconCheck2Outline18.tsx +23 -0
  145. package/src/icons/nucleo/ui-outline-18/IconCheckOutline18.tsx +23 -0
  146. package/src/icons/nucleo/ui-outline-18/IconChevronDownOutline18.tsx +22 -0
  147. package/src/icons/nucleo/ui-outline-18/IconChevronExpandYOutline18.tsx +31 -0
  148. package/src/icons/nucleo/ui-outline-18/IconChevronLeftOutline18.tsx +22 -0
  149. package/src/icons/nucleo/ui-outline-18/IconChevronReduceYOutline18.tsx +31 -0
  150. package/src/icons/nucleo/ui-outline-18/IconChevronRightOutline18.tsx +22 -0
  151. package/src/icons/nucleo/ui-outline-18/IconChevronUpOutline18.tsx +22 -0
  152. package/src/icons/nucleo/ui-outline-18/IconCircleCheckOutline18.tsx +32 -0
  153. package/src/icons/nucleo/ui-outline-18/IconCircleInfoOutline18.tsx +37 -0
  154. package/src/icons/nucleo/ui-outline-18/IconCircleQuestionOutline18.tsx +39 -0
  155. package/src/icons/nucleo/ui-outline-18/IconClipboardContentOutline18.tsx +60 -0
  156. package/src/icons/nucleo/ui-outline-18/IconClipboardOutline18.tsx +37 -0
  157. package/src/icons/nucleo/ui-outline-18/IconClone2Outline18.tsx +32 -0
  158. package/src/icons/nucleo/ui-outline-18/IconCloneDashed2Outline18.tsx +49 -0
  159. package/src/icons/nucleo/ui-outline-18/IconCodeBranchOutline18.tsx +65 -0
  160. package/src/icons/nucleo/ui-outline-18/IconCodeCommitOutline18.tsx +48 -0
  161. package/src/icons/nucleo/ui-outline-18/IconColorPaletteOutline18.tsx +56 -0
  162. package/src/icons/nucleo/ui-outline-18/IconConnection2Outline18.tsx +43 -0
  163. package/src/icons/nucleo/ui-outline-18/IconCopyIdOutline18.tsx +52 -0
  164. package/src/icons/nucleo/ui-outline-18/IconCopyOutline18.tsx +32 -0
  165. package/src/icons/nucleo/ui-outline-18/IconCreditCardOutline18.tsx +61 -0
  166. package/src/icons/nucleo/ui-outline-18/IconDatabaseSearchOutline18.tsx +64 -0
  167. package/src/icons/nucleo/ui-outline-18/IconDotsOutline18.tsx +46 -0
  168. package/src/icons/nucleo/ui-outline-18/IconDownload4Outline18.tsx +43 -0
  169. package/src/icons/nucleo/ui-outline-18/IconEarthOutline18.tsx +47 -0
  170. package/src/icons/nucleo/ui-outline-18/IconEarthSearchOutline18.tsx +61 -0
  171. package/src/icons/nucleo/ui-outline-18/IconEnvelopeOutline18.tsx +38 -0
  172. package/src/icons/nucleo/ui-outline-18/IconEye2Outline18.tsx +34 -0
  173. package/src/icons/nucleo/ui-outline-18/IconEyeOutline18.tsx +32 -0
  174. package/src/icons/nucleo/ui-outline-18/IconFilePenOutline18.tsx +56 -0
  175. package/src/icons/nucleo/ui-outline-18/IconFileSearchOutline18.tsx +64 -0
  176. package/src/icons/nucleo/ui-outline-18/IconFloppyDiskOutline18.tsx +40 -0
  177. package/src/icons/nucleo/ui-outline-18/IconFolder5Outline18.tsx +37 -0
  178. package/src/icons/nucleo/ui-outline-18/IconFolderCloudOutline18.tsx +39 -0
  179. package/src/icons/nucleo/ui-outline-18/IconFolderOpenOutline18.tsx +31 -0
  180. package/src/icons/nucleo/ui-outline-18/IconFolderOutline18.tsx +32 -0
  181. package/src/icons/nucleo/ui-outline-18/IconFolderPenOutline18.tsx +40 -0
  182. package/src/icons/nucleo/ui-outline-18/IconFolderPlusOutline18.tsx +48 -0
  183. package/src/icons/nucleo/ui-outline-18/IconFolderSearchOutline18.tsx +48 -0
  184. package/src/icons/nucleo/ui-outline-18/IconGear2Outline18.tsx +193 -0
  185. package/src/icons/nucleo/ui-outline-18/IconGear3Outline18.tsx +32 -0
  186. package/src/icons/nucleo/ui-outline-18/IconGlobe3Outline18.tsx +61 -0
  187. package/src/icons/nucleo/ui-outline-18/IconGripDotsVerticalOutline18.tsx +74 -0
  188. package/src/icons/nucleo/ui-outline-18/IconHardDriveOutline18.tsx +40 -0
  189. package/src/icons/nucleo/ui-outline-18/IconHelpChatOutline18.tsx +47 -0
  190. package/src/icons/nucleo/ui-outline-18/IconHotDrinkOutline18.tsx +60 -0
  191. package/src/icons/nucleo/ui-outline-18/IconImageSparkle3Outline18.tsx +41 -0
  192. package/src/icons/nucleo/ui-outline-18/IconKey2Outline18.tsx +61 -0
  193. package/src/icons/nucleo/ui-outline-18/IconLoader6Outline18.tsx +23 -0
  194. package/src/icons/nucleo/ui-outline-18/IconLocation2Outline18.tsx +45 -0
  195. package/src/icons/nucleo/ui-outline-18/IconLockKeyOutline18.tsx +58 -0
  196. package/src/icons/nucleo/ui-outline-18/IconMagicWandOutline18.tsx +32 -0
  197. package/src/icons/nucleo/ui-outline-18/IconMagnifierMinusOutline18.tsx +39 -0
  198. package/src/icons/nucleo/ui-outline-18/IconMagnifierOutline18.tsx +32 -0
  199. package/src/icons/nucleo/ui-outline-18/IconMagnifierPlusOutline18.tsx +48 -0
  200. package/src/icons/nucleo/ui-outline-18/IconMicrophone3Outline18.tsx +57 -0
  201. package/src/icons/nucleo/ui-outline-18/IconMinusOutline18.tsx +25 -0
  202. package/src/icons/nucleo/ui-outline-18/IconMoonOutline18.tsx +23 -0
  203. package/src/icons/nucleo/ui-outline-18/IconMsgSleepOutline18.tsx +41 -0
  204. package/src/icons/nucleo/ui-outline-18/IconMsgWritingOutline18.tsx +42 -0
  205. package/src/icons/nucleo/ui-outline-18/IconMusicOutline18.tsx +67 -0
  206. package/src/icons/nucleo/ui-outline-18/IconOctagonWarningOutline18.tsx +35 -0
  207. package/src/icons/nucleo/ui-outline-18/IconOpenExternalOutline18.tsx +51 -0
  208. package/src/icons/nucleo/ui-outline-18/IconOpenRectArrowInOutline18.tsx +43 -0
  209. package/src/icons/nucleo/ui-outline-18/IconPanelLeftOutline18.tsx +39 -0
  210. package/src/icons/nucleo/ui-outline-18/IconPaperclip2Outline18.tsx +22 -0
  211. package/src/icons/nucleo/ui-outline-18/IconPen2Outline18.tsx +35 -0
  212. package/src/icons/nucleo/ui-outline-18/IconPenDrawSparkleOutline18.tsx +46 -0
  213. package/src/icons/nucleo/ui-outline-18/IconPenOutline18.tsx +23 -0
  214. package/src/icons/nucleo/ui-outline-18/IconPenPlusOutline18.tsx +47 -0
  215. package/src/icons/nucleo/ui-outline-18/IconPenWriting3Outline18.tsx +31 -0
  216. package/src/icons/nucleo/ui-outline-18/IconPhoneOutline18.tsx +23 -0
  217. package/src/icons/nucleo/ui-outline-18/IconPinTackOutline18.tsx +35 -0
  218. package/src/icons/nucleo/ui-outline-18/IconPinTackSlashOutline18.tsx +47 -0
  219. package/src/icons/nucleo/ui-outline-18/IconPlusOutline18.tsx +38 -0
  220. package/src/icons/nucleo/ui-outline-18/IconPowerOffOutline18.tsx +36 -0
  221. package/src/icons/nucleo/ui-outline-18/IconPresentationScreenVideoOutline18.tsx +55 -0
  222. package/src/icons/nucleo/ui-outline-18/IconPuzzlePieceOutline18.tsx +22 -0
  223. package/src/icons/nucleo/ui-outline-18/IconRedoOutline18.tsx +32 -0
  224. package/src/icons/nucleo/ui-outline-18/IconRefreshAnticlockwiseOutline18.tsx +48 -0
  225. package/src/icons/nucleo/ui-outline-18/IconReuseOutline18.tsx +50 -0
  226. package/src/icons/nucleo/ui-outline-18/IconSearchContentOutline18.tsx +81 -0
  227. package/src/icons/nucleo/ui-outline-18/IconServerOutline18.tsx +73 -0
  228. package/src/icons/nucleo/ui-outline-18/IconSideProfileSparkleOutline18.tsx +28 -0
  229. package/src/icons/nucleo/ui-outline-18/IconSidebarLeftHideOutline18.tsx +49 -0
  230. package/src/icons/nucleo/ui-outline-18/IconSidebarLeftShowOutline18.tsx +49 -0
  231. package/src/icons/nucleo/ui-outline-18/IconSidebarRightHideOutline18.tsx +48 -0
  232. package/src/icons/nucleo/ui-outline-18/IconSidebarRightShowOutline18.tsx +48 -0
  233. package/src/icons/nucleo/ui-outline-18/IconSparkleOutline18.tsx +43 -0
  234. package/src/icons/nucleo/ui-outline-18/IconSpeakerOutline18.tsx +47 -0
  235. package/src/icons/nucleo/ui-outline-18/IconSplitViewOutline18.tsx +32 -0
  236. package/src/icons/nucleo/ui-outline-18/IconSquareCodeOutline18.tsx +40 -0
  237. package/src/icons/nucleo/ui-outline-18/IconSquareDashedOutline18.tsx +94 -0
  238. package/src/icons/nucleo/ui-outline-18/IconSquareTerminalOutline18.tsx +48 -0
  239. package/src/icons/nucleo/ui-outline-18/IconSunOutline18.tsx +121 -0
  240. package/src/icons/nucleo/ui-outline-18/IconTerminalOutline18.tsx +35 -0
  241. package/src/icons/nucleo/ui-outline-18/IconTextAlignLeft2Outline18.tsx +60 -0
  242. package/src/icons/nucleo/ui-outline-18/IconTextBgColorOutline18.tsx +48 -0
  243. package/src/icons/nucleo/ui-outline-18/IconTextColorOutline18.tsx +48 -0
  244. package/src/icons/nucleo/ui-outline-18/IconThumbsDownOutline18.tsx +36 -0
  245. package/src/icons/nucleo/ui-outline-18/IconThumbsUpOutline18.tsx +37 -0
  246. package/src/icons/nucleo/ui-outline-18/IconTrashOutline18.tsx +41 -0
  247. package/src/icons/nucleo/ui-outline-18/IconTriangleWarningOutline18.tsx +37 -0
  248. package/src/icons/nucleo/ui-outline-18/IconUndoOutline18.tsx +32 -0
  249. package/src/icons/nucleo/ui-outline-18/IconVersionsOutline18.tsx +46 -0
  250. package/src/icons/nucleo/ui-outline-18/IconVideoOutline18.tsx +45 -0
  251. package/src/icons/nucleo/ui-outline-18/IconWaveformLinesOutline18.tsx +80 -0
  252. package/src/icons/nucleo/ui-outline-18/IconWindowCodeOutline18.tsx +62 -0
  253. package/src/icons/nucleo/ui-outline-18/IconWindowPointerOutline18.tsx +51 -0
  254. package/src/icons/nucleo/ui-outline-18/IconXmarkOutline18.tsx +38 -0
  255. package/src/icons/nucleo/ui-outline-18/index.ts +128 -0
  256. package/src/index.ts +66 -0
  257. package/src/lib/utils.ts +6 -0
  258. package/src/plugin/index.ts +611 -0
  259. package/src/styles/animations.css +59 -0
  260. package/src/styles/bridge.css +117 -0
  261. package/src/styles/derived-utilities.css +179 -0
  262. package/src/styles/fonts.css +23 -0
  263. package/src/styles/index.css +72 -0
  264. package/src/styles/palette.css +189 -0
  265. package/src/styles/tailwind-tokens.css +56 -0
  266. package/src/styles/theme.css +103 -0
@@ -0,0 +1,30 @@
1
+ "use client"
2
+
3
+ import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox"
4
+
5
+ import { cn } from "../../lib/utils"
6
+ import { IconCheckOutline18 } from "../../icons"
7
+
8
+ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
9
+ return (
10
+ <CheckboxPrimitive.Root
11
+ data-slot="checkbox"
12
+ className={cn(
13
+ "peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] text-primary-foreground border border-derived-strong transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary",
14
+ className
15
+ )}
16
+ {...props}
17
+ >
18
+ <CheckboxPrimitive.Indicator
19
+ data-slot="checkbox-indicator"
20
+ className="grid place-content-center transition-transform scale-0 rotate-10 data-checked:scale-100 data-checked:rotate-0"
21
+ keepMounted={true}
22
+ >
23
+ <IconCheckOutline18 className="size-3" strokeWidth={2.5}
24
+ />
25
+ </CheckboxPrimitive.Indicator>
26
+ </CheckboxPrimitive.Root>
27
+ )
28
+ }
29
+
30
+ export { Checkbox }
@@ -0,0 +1,19 @@
1
+ import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible"
2
+
3
+ function Collapsible({ ...props }: CollapsiblePrimitive.Root.Props) {
4
+ return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />
5
+ }
6
+
7
+ function CollapsibleTrigger({ ...props }: CollapsiblePrimitive.Trigger.Props) {
8
+ return (
9
+ <CollapsiblePrimitive.Trigger data-slot="collapsible-trigger" {...props} />
10
+ )
11
+ }
12
+
13
+ function CollapsibleContent({ ...props }: CollapsiblePrimitive.Panel.Props) {
14
+ return (
15
+ <CollapsiblePrimitive.Panel data-slot="collapsible-content" {...props} />
16
+ )
17
+ }
18
+
19
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent }
@@ -0,0 +1,295 @@
1
+ import * as React from "react"
2
+ import { Combobox as ComboboxPrimitive } from "@base-ui/react"
3
+
4
+ import { cn } from "../../lib/utils"
5
+ import { Button } from "./button"
6
+ import {
7
+ InputGroup,
8
+ InputGroupAddon,
9
+ InputGroupButton,
10
+ InputGroupInput,
11
+ } from "./input-group"
12
+ import { IconChevronDownOutline18, IconXmarkOutline18, IconCheckOutline18 } from "../../icons"
13
+
14
+ const Combobox = ComboboxPrimitive.Root
15
+
16
+ function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props) {
17
+ return <ComboboxPrimitive.Value data-slot="combobox-value" {...props} />
18
+ }
19
+
20
+ function ComboboxTrigger({
21
+ className,
22
+ children,
23
+ ...props
24
+ }: ComboboxPrimitive.Trigger.Props) {
25
+ return (
26
+ <ComboboxPrimitive.Trigger
27
+ data-slot="combobox-trigger"
28
+ className={cn("[&_svg:not([class*='size-'])]:size-4", className)}
29
+ {...props}
30
+ >
31
+ {children}
32
+ <IconChevronDownOutline18 className="pointer-events-none size-4 text-muted-foreground" />
33
+ </ComboboxPrimitive.Trigger>
34
+ )
35
+ }
36
+
37
+ function ComboboxClear({ className, ...props }: ComboboxPrimitive.Clear.Props) {
38
+ return (
39
+ <ComboboxPrimitive.Clear
40
+ data-slot="combobox-clear"
41
+ render={<InputGroupButton variant="ghost" size="icon-xs" />}
42
+ className={cn(className)}
43
+ {...props}
44
+ >
45
+ <IconXmarkOutline18 className="pointer-events-none" />
46
+ </ComboboxPrimitive.Clear>
47
+ )
48
+ }
49
+
50
+ function ComboboxInput({
51
+ className,
52
+ children,
53
+ disabled = false,
54
+ showTrigger = true,
55
+ showClear = false,
56
+ ...props
57
+ }: ComboboxPrimitive.Input.Props & {
58
+ showTrigger?: boolean
59
+ showClear?: boolean
60
+ }) {
61
+ return (
62
+ <InputGroup className={cn("w-auto", className)}>
63
+ <ComboboxPrimitive.Input
64
+ render={<InputGroupInput disabled={disabled} />}
65
+ {...props}
66
+ />
67
+ <InputGroupAddon align="inline-end">
68
+ {showTrigger && (
69
+ <InputGroupButton
70
+ size="icon-xs"
71
+ variant="ghost"
72
+ render={<ComboboxTrigger />}
73
+ data-slot="input-group-button"
74
+ className="group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent"
75
+ disabled={disabled}
76
+ />
77
+ )}
78
+ {showClear && <ComboboxClear disabled={disabled} />}
79
+ </InputGroupAddon>
80
+ {children}
81
+ </InputGroup>
82
+ )
83
+ }
84
+
85
+ function ComboboxContent({
86
+ className,
87
+ side = "bottom",
88
+ sideOffset = 6,
89
+ align = "start",
90
+ alignOffset = 0,
91
+ anchor,
92
+ ...props
93
+ }: ComboboxPrimitive.Popup.Props &
94
+ Pick<
95
+ ComboboxPrimitive.Positioner.Props,
96
+ "side" | "align" | "sideOffset" | "alignOffset" | "anchor"
97
+ >) {
98
+ return (
99
+ <ComboboxPrimitive.Portal>
100
+ <ComboboxPrimitive.Positioner
101
+ side={side}
102
+ sideOffset={sideOffset}
103
+ align={align}
104
+ alignOffset={alignOffset}
105
+ anchor={anchor}
106
+ className="isolate z-50"
107
+ >
108
+ <ComboboxPrimitive.Popup
109
+ data-slot="combobox-content"
110
+ data-chips={!!anchor}
111
+ className={cn("group/combobox-content max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg text-popover-foreground shadow-md ring-1 ring-foreground/10 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative bg-popover/70 before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:rounded-[inherit] before:backdrop-blur-2xl before:backdrop-saturate-150 **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!", className )}
112
+ {...props}
113
+ />
114
+ </ComboboxPrimitive.Positioner>
115
+ </ComboboxPrimitive.Portal>
116
+ )
117
+ }
118
+
119
+ function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props) {
120
+ return (
121
+ <ComboboxPrimitive.List
122
+ data-slot="combobox-list"
123
+ className={cn(
124
+ "no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0",
125
+ className
126
+ )}
127
+ {...props}
128
+ />
129
+ )
130
+ }
131
+
132
+ function ComboboxItem({
133
+ className,
134
+ children,
135
+ ...props
136
+ }: ComboboxPrimitive.Item.Props) {
137
+ return (
138
+ <ComboboxPrimitive.Item
139
+ data-slot="combobox-item"
140
+ className={cn(
141
+ "relative flex w-full cursor-default items-center gap-2 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
142
+ className
143
+ )}
144
+ {...props}
145
+ >
146
+ {children}
147
+ <ComboboxPrimitive.ItemIndicator
148
+ render={
149
+ <span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center" />
150
+ }
151
+ >
152
+ <IconCheckOutline18 className="pointer-events-none" />
153
+ </ComboboxPrimitive.ItemIndicator>
154
+ </ComboboxPrimitive.Item>
155
+ )
156
+ }
157
+
158
+ function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props) {
159
+ return (
160
+ <ComboboxPrimitive.Group
161
+ data-slot="combobox-group"
162
+ className={cn(className)}
163
+ {...props}
164
+ />
165
+ )
166
+ }
167
+
168
+ function ComboboxLabel({
169
+ className,
170
+ ...props
171
+ }: ComboboxPrimitive.GroupLabel.Props) {
172
+ return (
173
+ <ComboboxPrimitive.GroupLabel
174
+ data-slot="combobox-label"
175
+ className={cn("px-2 py-1.5 text-xs text-muted-foreground", className)}
176
+ {...props}
177
+ />
178
+ )
179
+ }
180
+
181
+ function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props) {
182
+ return (
183
+ <ComboboxPrimitive.Collection data-slot="combobox-collection" {...props} />
184
+ )
185
+ }
186
+
187
+ function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props) {
188
+ return (
189
+ <ComboboxPrimitive.Empty
190
+ data-slot="combobox-empty"
191
+ className={cn(
192
+ "hidden w-full justify-center py-2 text-center text-sm text-muted-foreground group-data-empty/combobox-content:flex",
193
+ className
194
+ )}
195
+ {...props}
196
+ />
197
+ )
198
+ }
199
+
200
+ function ComboboxSeparator({
201
+ className,
202
+ ...props
203
+ }: ComboboxPrimitive.Separator.Props) {
204
+ return (
205
+ <ComboboxPrimitive.Separator
206
+ data-slot="combobox-separator"
207
+ className={cn("-mx-1 my-1 h-px bg-border", className)}
208
+ {...props}
209
+ />
210
+ )
211
+ }
212
+
213
+ function ComboboxChips({
214
+ className,
215
+ ...props
216
+ }: React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> &
217
+ ComboboxPrimitive.Chips.Props) {
218
+ return (
219
+ <ComboboxPrimitive.Chips
220
+ data-slot="combobox-chips"
221
+ className={cn(
222
+ "flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-derived-strong bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40",
223
+ className
224
+ )}
225
+ {...props}
226
+ />
227
+ )
228
+ }
229
+
230
+ function ComboboxChip({
231
+ className,
232
+ children,
233
+ showRemove = true,
234
+ ...props
235
+ }: ComboboxPrimitive.Chip.Props & {
236
+ showRemove?: boolean
237
+ }) {
238
+ return (
239
+ <ComboboxPrimitive.Chip
240
+ data-slot="combobox-chip"
241
+ className={cn(
242
+ "flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm bg-muted px-1.5 text-xs font-medium whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pr-0",
243
+ className
244
+ )}
245
+ {...props}
246
+ >
247
+ {children}
248
+ {showRemove && (
249
+ <ComboboxPrimitive.ChipRemove
250
+ render={<Button variant="ghost" size="icon-xs" />}
251
+ className="-ml-1 opacity-50 hover:opacity-100"
252
+ data-slot="combobox-chip-remove"
253
+ >
254
+ <IconXmarkOutline18 className="pointer-events-none" />
255
+ </ComboboxPrimitive.ChipRemove>
256
+ )}
257
+ </ComboboxPrimitive.Chip>
258
+ )
259
+ }
260
+
261
+ function ComboboxChipsInput({
262
+ className,
263
+ ...props
264
+ }: ComboboxPrimitive.Input.Props) {
265
+ return (
266
+ <ComboboxPrimitive.Input
267
+ data-slot="combobox-chip-input"
268
+ className={cn("min-w-16 flex-1 outline-none", className)}
269
+ {...props}
270
+ />
271
+ )
272
+ }
273
+
274
+ function useComboboxAnchor() {
275
+ return React.useRef<HTMLDivElement | null>(null)
276
+ }
277
+
278
+ export {
279
+ Combobox,
280
+ ComboboxInput,
281
+ ComboboxContent,
282
+ ComboboxList,
283
+ ComboboxItem,
284
+ ComboboxGroup,
285
+ ComboboxLabel,
286
+ ComboboxCollection,
287
+ ComboboxEmpty,
288
+ ComboboxSeparator,
289
+ ComboboxChips,
290
+ ComboboxChip,
291
+ ComboboxChipsInput,
292
+ ComboboxTrigger,
293
+ ComboboxValue,
294
+ useComboboxAnchor,
295
+ }
@@ -0,0 +1,348 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import { Command as CommandPrimitive } from "cmdk"
5
+
6
+ import { cn } from "../../lib/utils"
7
+ import {
8
+ Dialog,
9
+ DialogContent,
10
+ DialogDescription,
11
+ DialogHeader,
12
+ DialogTitle,
13
+ } from "./dialog"
14
+ import { Kbd } from "./kbd"
15
+ import {
16
+ IconMagnifierOutline18,
17
+ IconCheckOutline18,
18
+ IconMsgWritingOutline18,
19
+ IconEarthSearchOutline18,
20
+ IconFolder5Outline18,
21
+ IconGear3Outline18,
22
+ } from "../../icons"
23
+
24
+ /* -------------------------------------------------------------------------- */
25
+ /* Types */
26
+ /* -------------------------------------------------------------------------- */
27
+
28
+ export type CommandFilterMode = string
29
+
30
+ export type CommandFilterTab = {
31
+ /** Unique mode identifier (e.g. "global", "agents", "files"). */
32
+ mode: CommandFilterMode
33
+ /** Short label shown in the filter bar. */
34
+ label: string
35
+ /** Optional icon component to render before the label. */
36
+ Icon?: React.ComponentType<{ className?: string }>
37
+ }
38
+
39
+ /* -------------------------------------------------------------------------- */
40
+ /* Default filter tabs (matches stagewise command center) */
41
+ /* -------------------------------------------------------------------------- */
42
+
43
+ const DEFAULT_FILTER_TABS: CommandFilterTab[] = [
44
+ { mode: "global", label: "All" },
45
+ { mode: "agents", label: "Agents", Icon: IconMsgWritingOutline18 },
46
+ { mode: "browser", label: "Browser", Icon: IconEarthSearchOutline18 },
47
+ { mode: "files", label: "Files", Icon: IconFolder5Outline18 },
48
+ { mode: "settings", label: "Settings", Icon: IconGear3Outline18 },
49
+ ]
50
+
51
+ /* -------------------------------------------------------------------------- */
52
+ /* Command */
53
+ /* -------------------------------------------------------------------------- */
54
+
55
+ function Command({
56
+ className,
57
+ ...props
58
+ }: React.ComponentProps<typeof CommandPrimitive>) {
59
+ return (
60
+ <CommandPrimitive
61
+ data-slot="command"
62
+ className={cn(
63
+ "flex size-full flex-col overflow-hidden rounded-xl! bg-popover text-popover-foreground",
64
+ className
65
+ )}
66
+ {...props}
67
+ />
68
+ )
69
+ }
70
+
71
+ /* -------------------------------------------------------------------------- */
72
+ /* CommandDialog */
73
+ /* -------------------------------------------------------------------------- */
74
+
75
+ function CommandDialog({
76
+ title = "Command Palette",
77
+ description = "Search for a command to run...",
78
+ children,
79
+ className,
80
+ showCloseButton = false,
81
+ ...props
82
+ }: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
83
+ title?: string
84
+ description?: string
85
+ className?: string
86
+ showCloseButton?: boolean
87
+ children: React.ReactNode
88
+ }) {
89
+ return (
90
+ <Dialog {...props}>
91
+ <DialogHeader className="sr-only">
92
+ <DialogTitle>{title}</DialogTitle>
93
+ <DialogDescription>{description}</DialogDescription>
94
+ </DialogHeader>
95
+ <DialogContent
96
+ className={cn(
97
+ "top-1/3 max-w-2xl translate-y-0 overflow-hidden rounded-xl! p-0 sm:max-w-2xl",
98
+ className
99
+ )}
100
+ showCloseButton={showCloseButton}
101
+ >
102
+ <Command>{children}</Command>
103
+ </DialogContent>
104
+ </Dialog>
105
+ )
106
+ }
107
+
108
+ /* -------------------------------------------------------------------------- */
109
+ /* CommandInput */
110
+ /* -------------------------------------------------------------------------- */
111
+
112
+ function CommandInput({
113
+ className,
114
+ children,
115
+ ...props
116
+ }: React.ComponentProps<typeof CommandPrimitive.Input> & {
117
+ /** Optional content rendered after the input (e.g. CommandFilterTabs). */
118
+ children?: React.ReactNode
119
+ }) {
120
+ return (
121
+ <div
122
+ data-slot="command-input-wrapper"
123
+ className="flex items-center gap-2 px-3 py-2.5"
124
+ >
125
+ <IconMagnifierOutline18 className="size-4 shrink-0 text-muted-foreground" />
126
+ <CommandPrimitive.Input
127
+ data-slot="command-input"
128
+ className={cn(
129
+ "min-w-0 flex-1 bg-transparent text-sm text-foreground outline-none placeholder:text-subtle-foreground disabled:cursor-not-allowed disabled:opacity-50",
130
+ className
131
+ )}
132
+ {...props}
133
+ />
134
+ {children}
135
+ </div>
136
+ )
137
+ }
138
+
139
+ /* -------------------------------------------------------------------------- */
140
+ /* CommandFilterTabs (optional, tabbable mode filter) */
141
+ /* -------------------------------------------------------------------------- */
142
+
143
+ function CommandFilterTabs({
144
+ tabs = DEFAULT_FILTER_TABS,
145
+ activeMode,
146
+ onModeChange,
147
+ className,
148
+ }: {
149
+ tabs?: CommandFilterTab[]
150
+ activeMode: CommandFilterMode
151
+ onModeChange: (mode: CommandFilterMode) => void
152
+ className?: string
153
+ }) {
154
+ return (
155
+ <div
156
+ data-slot="command-filter-tabs"
157
+ className={cn(
158
+ "flex shrink-0 items-center gap-2.5 text-xs",
159
+ className
160
+ )}
161
+ >
162
+ {tabs.map(({ mode, label, Icon }) => {
163
+ const isActive = mode === activeMode
164
+ return (
165
+ <button
166
+ key={mode}
167
+ type="button"
168
+ aria-label={`Switch to ${label} mode`}
169
+ aria-pressed={isActive}
170
+ onClick={() => onModeChange(mode)}
171
+ className={cn(
172
+ "relative flex cursor-default items-center overflow-visible rounded-sm bg-popover p-0 outline-none transition-colors duration-150 ease-out",
173
+ "hover:text-foreground focus-visible:text-foreground",
174
+ isActive ? "text-foreground" : "text-subtle-foreground",
175
+ )}
176
+ >
177
+ {Icon ? (
178
+ <span className="relative z-10 flex size-4 shrink-0 items-center justify-center bg-popover">
179
+ <Icon className="size-4" />
180
+ </span>
181
+ ) : (
182
+ <span className="relative z-10 shrink-0 bg-popover px-1">
183
+ {label}
184
+ </span>
185
+ )}
186
+ {Icon && (
187
+ <span
188
+ className={cn(
189
+ "relative z-0 ml-1 inline-grid overflow-hidden whitespace-nowrap transition-[grid-template-columns] duration-150 ease-out",
190
+ isActive
191
+ ? "grid-cols-[1fr]"
192
+ : "grid-cols-[0fr]",
193
+ )}
194
+ >
195
+ <span className="min-w-0 overflow-hidden">{label}</span>
196
+ </span>
197
+ )}
198
+ </button>
199
+ )
200
+ })}
201
+ <Kbd className="shrink-0" aria-label="Press Tab to cycle filter modes">
202
+ Tab
203
+ </Kbd>
204
+ </div>
205
+ )
206
+ }
207
+
208
+ /* -------------------------------------------------------------------------- */
209
+ /* CommandList */
210
+ /* -------------------------------------------------------------------------- */
211
+
212
+ function CommandList({
213
+ className,
214
+ ...props
215
+ }: React.ComponentProps<typeof CommandPrimitive.List>) {
216
+ return (
217
+ <CommandPrimitive.List
218
+ data-slot="command-list"
219
+ className={cn(
220
+ "no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
221
+ className
222
+ )}
223
+ {...props}
224
+ />
225
+ )
226
+ }
227
+
228
+ /* -------------------------------------------------------------------------- */
229
+ /* CommandEmpty */
230
+ /* -------------------------------------------------------------------------- */
231
+
232
+ function CommandEmpty({
233
+ className,
234
+ ...props
235
+ }: React.ComponentProps<typeof CommandPrimitive.Empty>) {
236
+ return (
237
+ <CommandPrimitive.Empty
238
+ data-slot="command-empty"
239
+ className={cn("py-6 text-center text-xs text-muted-foreground", className)}
240
+ {...props}
241
+ />
242
+ )
243
+ }
244
+
245
+ /* -------------------------------------------------------------------------- */
246
+ /* CommandGroup */
247
+ /* -------------------------------------------------------------------------- */
248
+
249
+ function CommandGroup({
250
+ className,
251
+ ...props
252
+ }: React.ComponentProps<typeof CommandPrimitive.Group>) {
253
+ return (
254
+ <CommandPrimitive.Group
255
+ data-slot="command-group"
256
+ className={cn(
257
+ "overflow-hidden p-1.5 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:pt-2 **:[[cmdk-group-heading]]:pb-1 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-semibold **:[[cmdk-group-heading]]:text-subtle-foreground",
258
+ className
259
+ )}
260
+ {...props}
261
+ />
262
+ )
263
+ }
264
+
265
+ /* -------------------------------------------------------------------------- */
266
+ /* CommandSeparator */
267
+ /* -------------------------------------------------------------------------- */
268
+
269
+ function CommandSeparator({
270
+ className,
271
+ ...props
272
+ }: React.ComponentProps<typeof CommandPrimitive.Separator>) {
273
+ return (
274
+ <CommandPrimitive.Separator
275
+ data-slot="command-separator"
276
+ className={cn("-mx-1 h-px border-derived-subtle border-t", className)}
277
+ {...props}
278
+ />
279
+ )
280
+ }
281
+
282
+ /* -------------------------------------------------------------------------- */
283
+ /* CommandItem */
284
+ /* -------------------------------------------------------------------------- */
285
+
286
+ function CommandItem({
287
+ className,
288
+ children,
289
+ ...props
290
+ }: React.ComponentProps<typeof CommandPrimitive.Item>) {
291
+ return (
292
+ <CommandPrimitive.Item
293
+ data-slot="command-item"
294
+ className={cn(
295
+ "group/command-item relative flex cursor-default items-center gap-2 rounded-md bg-popover px-2 py-1.5 text-left text-sm outline-none transition-colors duration-150 ease-out select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-surface-1 data-[selected=true]:text-foreground hover:bg-hover-derived [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[selected=true]:*:[svg]:text-foreground",
296
+ className
297
+ )}
298
+ {...props}
299
+ >
300
+ {children}
301
+ <IconCheckOutline18 className="ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" />
302
+ </CommandPrimitive.Item>
303
+ )
304
+ }
305
+
306
+ /* -------------------------------------------------------------------------- */
307
+ /* CommandShortcut */
308
+ /* -------------------------------------------------------------------------- */
309
+
310
+ function CommandShortcut({
311
+ className,
312
+ children,
313
+ ...props
314
+ }: React.ComponentProps<"span"> & { children: React.ReactNode }) {
315
+ return (
316
+ <span
317
+ data-slot="command-shortcut"
318
+ className={cn(
319
+ "ml-auto text-xs tracking-widest text-muted-foreground group-data-[selected=true]/command-item:text-foreground",
320
+ className
321
+ )}
322
+ {...props}
323
+ >
324
+ {typeof children === "string" ? (
325
+ <Kbd className="shrink-0">{children}</Kbd>
326
+ ) : (
327
+ children
328
+ )}
329
+ </span>
330
+ )
331
+ }
332
+
333
+ /* -------------------------------------------------------------------------- */
334
+ /* Exports */
335
+ /* -------------------------------------------------------------------------- */
336
+
337
+ export {
338
+ Command,
339
+ CommandDialog,
340
+ CommandInput,
341
+ CommandFilterTabs,
342
+ CommandList,
343
+ CommandEmpty,
344
+ CommandGroup,
345
+ CommandItem,
346
+ CommandShortcut,
347
+ CommandSeparator,
348
+ }