@lukoweb/apitogo 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/cli/cli.js +37 -147
  2. package/dist/declarations/lib/ui/Command.d.ts +1 -1
  3. package/dist/declarations/lib/util/MdxComponents.d.ts +1 -1
  4. package/package.json +1 -1
  5. package/src/app/main.tsx +150 -150
  6. package/src/config/loader.ts +245 -245
  7. package/src/index.ts +33 -33
  8. package/src/lib/authentication/components/CallbackHandler.tsx +45 -45
  9. package/src/lib/authentication/components/SignIn.tsx +46 -46
  10. package/src/lib/authentication/components/SignUp.tsx +48 -48
  11. package/src/lib/authentication/providers/clerk.tsx +224 -224
  12. package/src/lib/authentication/ui/AuthCard.tsx +7 -7
  13. package/src/lib/authentication/ui/EmailLinkCallbackUi.tsx +129 -125
  14. package/src/lib/authentication/ui/EmailLinkSentUi.tsx +105 -101
  15. package/src/lib/authentication/ui/EmailLinkSignInUi.tsx +100 -96
  16. package/src/lib/authentication/ui/EmailVerificationUi.tsx +128 -124
  17. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +620 -616
  18. package/src/lib/components/AiAssistantMenuItems.tsx +102 -102
  19. package/src/lib/components/Autocomplete.tsx +123 -123
  20. package/src/lib/components/DeveloperHint.tsx +39 -35
  21. package/src/lib/components/Header.tsx +260 -260
  22. package/src/lib/components/Layout.tsx +53 -53
  23. package/src/lib/components/Main.tsx +51 -51
  24. package/src/lib/components/Mermaid.tsx +74 -70
  25. package/src/lib/components/MobileTopNavigation.tsx +276 -276
  26. package/src/lib/components/MultiSelect.tsx +86 -82
  27. package/src/lib/components/TopNavigation.tsx +103 -103
  28. package/src/lib/components/index.ts +26 -26
  29. package/src/lib/components/navigation/NavigationCategory.tsx +157 -157
  30. package/src/lib/components/navigation/NavigationFilterInput.tsx +35 -35
  31. package/src/lib/components/navigation/NavigationItem.tsx +181 -177
  32. package/src/lib/core/RouteGuard.tsx +193 -193
  33. package/src/lib/errors/ErrorMessage.tsx +50 -46
  34. package/src/lib/plugins/api-catalog/Catalog.tsx +80 -80
  35. package/src/lib/plugins/api-keys/CreateApiKey.tsx +128 -124
  36. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -49
  37. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +72 -72
  38. package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -342
  39. package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +127 -127
  40. package/src/lib/plugins/markdown/MdxPage.tsx +285 -285
  41. package/src/lib/plugins/openapi/ApiHeader.tsx +96 -96
  42. package/src/lib/plugins/openapi/CollapsibleCode.tsx +88 -88
  43. package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +94 -94
  44. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -52
  45. package/src/lib/plugins/openapi/OperationListItem.tsx +183 -183
  46. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +63 -63
  47. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +120 -117
  48. package/src/lib/plugins/openapi/SchemaInfo.tsx +344 -344
  49. package/src/lib/plugins/openapi/SchemaList.tsx +113 -113
  50. package/src/lib/plugins/openapi/Sidecar.tsx +312 -309
  51. package/src/lib/plugins/openapi/SidecarExamples.tsx +177 -174
  52. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -58
  53. package/src/lib/plugins/openapi/components/ResponseContent.tsx +117 -114
  54. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +274 -271
  55. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -51
  56. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +60 -60
  57. package/src/lib/plugins/openapi/playground/Headers.tsx +188 -181
  58. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -75
  59. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -38
  60. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +45 -45
  61. package/src/lib/plugins/openapi/playground/Playground.tsx +602 -599
  62. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +56 -56
  63. package/src/lib/plugins/openapi/playground/QueryParams.tsx +151 -148
  64. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +70 -70
  65. package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -91
  66. package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +50 -50
  67. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +355 -355
  68. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +106 -102
  69. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +189 -184
  70. package/src/lib/plugins/openapi/schema/SchemaView.tsx +299 -299
  71. package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +162 -162
  72. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +202 -202
  73. package/src/lib/plugins/search-pagefind/ResultList.tsx +122 -118
  74. package/src/lib/ui/ActionButton.tsx +21 -21
  75. package/src/lib/ui/Command.tsx +191 -191
  76. package/src/lib/util/MdxComponents.tsx +150 -150
  77. package/src/vite/config.ts +234 -231
  78. package/src/vite/dev-server.ts +291 -291
  79. package/src/vite/plugin-api-keys.ts +50 -50
  80. package/src/vite/plugin-api.ts +320 -318
  81. package/src/vite/plugin-auth.ts +38 -38
  82. package/src/vite/plugin-component.ts +45 -39
  83. package/src/vite/plugin-config.ts +75 -75
  84. package/src/vite/plugin-custom-pages.ts +36 -36
  85. package/src/vite/plugin-docs.ts +202 -202
  86. package/src/vite/plugin-markdown-export.ts +214 -214
  87. package/src/vite/plugin-mdx.ts +149 -149
  88. package/src/vite/plugin-navigation.ts +106 -106
  89. package/src/vite/plugin-search.ts +47 -47
  90. package/src/vite/plugin.ts +42 -42
  91. package/src/vite/prerender/prerender.ts +233 -233
@@ -1,21 +1,21 @@
1
- import { Button, type ButtonProps } from "@lukoweb/apitogo/ui/Button.js";
2
- import { Spinner } from "../components/Spinner.js";
3
- import { cn } from "../util/cn.js";
4
-
5
- type ActionButtonProps = ButtonProps & { isPending?: boolean };
6
-
7
- export const ActionButton = ({
8
- isPending,
9
- children,
10
- className,
11
- ...props
12
- }: ActionButtonProps) => (
13
- <Button disabled={isPending} {...props} className={cn("relative", className)}>
14
- {isPending && (
15
- <div className="absolute inset-0 grid place-items-center">
16
- <Spinner />
17
- </div>
18
- )}
19
- <span className={cn("block", isPending && "invisible")}>{children}</span>
20
- </Button>
21
- );
1
+ import { Button, type ButtonProps } from "@lukoweb/apitogo/ui/Button.js";
2
+ import { Spinner } from "../components/Spinner.js";
3
+ import { cn } from "../util/cn.js";
4
+
5
+ type ActionButtonProps = ButtonProps & { isPending?: boolean };
6
+
7
+ export const ActionButton = ({
8
+ isPending,
9
+ children,
10
+ className,
11
+ ...props
12
+ }: ActionButtonProps) => (
13
+ <Button disabled={isPending} {...props} className={cn("relative", className)}>
14
+ {isPending && (
15
+ <div className="absolute inset-0 grid place-items-center">
16
+ <Spinner />
17
+ </div>
18
+ )}
19
+ <span className={cn("block", isPending && "invisible")}>{children}</span>
20
+ </Button>
21
+ );
@@ -1,191 +1,191 @@
1
- import type { DialogProps } from "@radix-ui/react-dialog";
2
- import { Command as CommandPrimitive } from "cmdk";
3
- import { SearchIcon } from "lucide-react";
4
- import type { ComponentPropsWithoutRef } from "react";
5
- import * as React from "react";
6
- import { Dialog, DialogContent } from "@lukoweb/apitogo/ui/Dialog.js";
7
- import { cn } from "../util/cn.js";
8
-
9
- const Command = React.forwardRef<
10
- React.ElementRef<typeof CommandPrimitive>,
11
- React.ComponentPropsWithoutRef<typeof CommandPrimitive>
12
- >(({ className, ...props }, ref) => (
13
- <CommandPrimitive
14
- ref={ref}
15
- className={cn(
16
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
17
- className,
18
- )}
19
- {...props}
20
- />
21
- ));
22
- Command.displayName = CommandPrimitive.displayName;
23
-
24
- const CommandDialog = ({
25
- children,
26
- command,
27
- content,
28
- ...props
29
- }: DialogProps & {
30
- command?: ComponentPropsWithoutRef<typeof CommandPrimitive>;
31
- content?: ComponentPropsWithoutRef<typeof DialogContent>;
32
- }) => {
33
- return (
34
- <Dialog {...props}>
35
- <DialogContent
36
- {...content}
37
- className={cn(
38
- "overflow-hidden p-0 shadow-lg top-[15vh] translate-y-[0%]",
39
- content?.className,
40
- )}
41
- aria-describedby={undefined}
42
- >
43
- <Command
44
- {...command}
45
- className={cn(
46
- "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
47
- command?.className,
48
- )}
49
- >
50
- {children}
51
- </Command>
52
- </DialogContent>
53
- </Dialog>
54
- );
55
- };
56
-
57
- const CommandInput = React.forwardRef<
58
- React.ElementRef<typeof CommandPrimitive.Input>,
59
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
60
- >(({ className, ...props }, ref) => (
61
- <div className="flex items-center gap-2 border-b px-3" cmdk-input-wrapper="">
62
- <SearchIcon className="size-4! shrink-0 opacity-50" />
63
- <CommandPrimitive.Input
64
- ref={ref}
65
- className={cn(
66
- "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
67
- className,
68
- )}
69
- {...props}
70
- />
71
- </div>
72
- ));
73
-
74
- CommandInput.displayName = CommandPrimitive.Input.displayName;
75
-
76
- const CommandInlineInput = React.forwardRef<
77
- React.ElementRef<typeof CommandPrimitive.Input>,
78
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
79
- >(({ className, ...props }, ref) => (
80
- <div className="flex items-center" cmdk-input-wrapper="">
81
- <CommandPrimitive.Input
82
- ref={ref}
83
- className={cn(
84
- "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
85
- "focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",
86
- className,
87
- )}
88
- {...props}
89
- />
90
- </div>
91
- ));
92
-
93
- CommandInlineInput.displayName = CommandPrimitive.Input.displayName;
94
- const CommandList = React.forwardRef<
95
- React.ElementRef<typeof CommandPrimitive.List>,
96
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
97
- >(({ className, ...props }, ref) => (
98
- <CommandPrimitive.List
99
- ref={ref}
100
- className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
101
- {...props}
102
- />
103
- ));
104
-
105
- CommandList.displayName = CommandPrimitive.List.displayName;
106
-
107
- const CommandEmpty = React.forwardRef<
108
- React.ElementRef<typeof CommandPrimitive.Empty>,
109
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>
110
- >((props, ref) => (
111
- <CommandPrimitive.Empty
112
- ref={ref}
113
- className="py-6 text-center text-sm"
114
- {...props}
115
- />
116
- ));
117
-
118
- CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
119
-
120
- const CommandGroup = React.forwardRef<
121
- React.ElementRef<typeof CommandPrimitive.Group>,
122
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>
123
- >(({ className, ...props }, ref) => (
124
- <CommandPrimitive.Group
125
- ref={ref}
126
- className={cn(
127
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
128
- className,
129
- )}
130
- {...props}
131
- />
132
- ));
133
-
134
- CommandGroup.displayName = CommandPrimitive.Group.displayName;
135
-
136
- const CommandSeparator = React.forwardRef<
137
- React.ElementRef<typeof CommandPrimitive.Separator>,
138
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>
139
- >(({ className, ...props }, ref) => (
140
- <CommandPrimitive.Separator
141
- ref={ref}
142
- className={cn("-mx-1 h-px bg-border", className)}
143
- {...props}
144
- />
145
- ));
146
- CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
147
-
148
- const CommandItem = React.forwardRef<
149
- React.ElementRef<typeof CommandPrimitive.Item>,
150
- React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
151
- >(({ className, ...props }, ref) => (
152
- <CommandPrimitive.Item
153
- ref={ref}
154
- className={cn(
155
- "relative flex cursor-default gap-2 select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
156
- className,
157
- )}
158
- {...props}
159
- />
160
- ));
161
-
162
- CommandItem.displayName = CommandPrimitive.Item.displayName;
163
-
164
- const CommandShortcut = ({
165
- className,
166
- ...props
167
- }: React.HTMLAttributes<HTMLSpanElement>) => {
168
- return (
169
- <span
170
- className={cn(
171
- "ml-auto text-xs tracking-widest text-muted-foreground",
172
- className,
173
- )}
174
- {...props}
175
- />
176
- );
177
- };
178
- CommandShortcut.displayName = "CommandShortcut";
179
-
180
- export {
181
- Command,
182
- CommandDialog,
183
- CommandEmpty,
184
- CommandGroup,
185
- CommandInlineInput,
186
- CommandInput,
187
- CommandItem,
188
- CommandList,
189
- CommandSeparator,
190
- CommandShortcut,
191
- };
1
+ import { Dialog, DialogContent } from "@lukoweb/apitogo/ui/Dialog.js";
2
+ import type { DialogProps } from "@radix-ui/react-dialog";
3
+ import { Command as CommandPrimitive } from "cmdk";
4
+ import { SearchIcon } from "lucide-react";
5
+ import type { ComponentPropsWithoutRef } from "react";
6
+ import * as React from "react";
7
+ import { cn } from "../util/cn.js";
8
+
9
+ const Command = React.forwardRef<
10
+ React.ElementRef<typeof CommandPrimitive>,
11
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive>
12
+ >(({ className, ...props }, ref) => (
13
+ <CommandPrimitive
14
+ ref={ref}
15
+ className={cn(
16
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
17
+ className,
18
+ )}
19
+ {...props}
20
+ />
21
+ ));
22
+ Command.displayName = CommandPrimitive.displayName;
23
+
24
+ const CommandDialog = ({
25
+ children,
26
+ command,
27
+ content,
28
+ ...props
29
+ }: DialogProps & {
30
+ command?: ComponentPropsWithoutRef<typeof CommandPrimitive>;
31
+ content?: ComponentPropsWithoutRef<typeof DialogContent>;
32
+ }) => {
33
+ return (
34
+ <Dialog {...props}>
35
+ <DialogContent
36
+ {...content}
37
+ className={cn(
38
+ "overflow-hidden p-0 shadow-lg top-[15vh] translate-y-[0%]",
39
+ content?.className,
40
+ )}
41
+ aria-describedby={undefined}
42
+ >
43
+ <Command
44
+ {...command}
45
+ className={cn(
46
+ "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
47
+ command?.className,
48
+ )}
49
+ >
50
+ {children}
51
+ </Command>
52
+ </DialogContent>
53
+ </Dialog>
54
+ );
55
+ };
56
+
57
+ const CommandInput = React.forwardRef<
58
+ React.ElementRef<typeof CommandPrimitive.Input>,
59
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
60
+ >(({ className, ...props }, ref) => (
61
+ <div className="flex items-center gap-2 border-b px-3" cmdk-input-wrapper="">
62
+ <SearchIcon className="size-4! shrink-0 opacity-50" />
63
+ <CommandPrimitive.Input
64
+ ref={ref}
65
+ className={cn(
66
+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
67
+ className,
68
+ )}
69
+ {...props}
70
+ />
71
+ </div>
72
+ ));
73
+
74
+ CommandInput.displayName = CommandPrimitive.Input.displayName;
75
+
76
+ const CommandInlineInput = React.forwardRef<
77
+ React.ElementRef<typeof CommandPrimitive.Input>,
78
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
79
+ >(({ className, ...props }, ref) => (
80
+ <div className="flex items-center" cmdk-input-wrapper="">
81
+ <CommandPrimitive.Input
82
+ ref={ref}
83
+ className={cn(
84
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
85
+ "focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",
86
+ className,
87
+ )}
88
+ {...props}
89
+ />
90
+ </div>
91
+ ));
92
+
93
+ CommandInlineInput.displayName = CommandPrimitive.Input.displayName;
94
+ const CommandList = React.forwardRef<
95
+ React.ElementRef<typeof CommandPrimitive.List>,
96
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
97
+ >(({ className, ...props }, ref) => (
98
+ <CommandPrimitive.List
99
+ ref={ref}
100
+ className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
101
+ {...props}
102
+ />
103
+ ));
104
+
105
+ CommandList.displayName = CommandPrimitive.List.displayName;
106
+
107
+ const CommandEmpty = React.forwardRef<
108
+ React.ElementRef<typeof CommandPrimitive.Empty>,
109
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>
110
+ >((props, ref) => (
111
+ <CommandPrimitive.Empty
112
+ ref={ref}
113
+ className="py-6 text-center text-sm"
114
+ {...props}
115
+ />
116
+ ));
117
+
118
+ CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
119
+
120
+ const CommandGroup = React.forwardRef<
121
+ React.ElementRef<typeof CommandPrimitive.Group>,
122
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>
123
+ >(({ className, ...props }, ref) => (
124
+ <CommandPrimitive.Group
125
+ ref={ref}
126
+ className={cn(
127
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
128
+ className,
129
+ )}
130
+ {...props}
131
+ />
132
+ ));
133
+
134
+ CommandGroup.displayName = CommandPrimitive.Group.displayName;
135
+
136
+ const CommandSeparator = React.forwardRef<
137
+ React.ElementRef<typeof CommandPrimitive.Separator>,
138
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>
139
+ >(({ className, ...props }, ref) => (
140
+ <CommandPrimitive.Separator
141
+ ref={ref}
142
+ className={cn("-mx-1 h-px bg-border", className)}
143
+ {...props}
144
+ />
145
+ ));
146
+ CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
147
+
148
+ const CommandItem = React.forwardRef<
149
+ React.ElementRef<typeof CommandPrimitive.Item>,
150
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
151
+ >(({ className, ...props }, ref) => (
152
+ <CommandPrimitive.Item
153
+ ref={ref}
154
+ className={cn(
155
+ "relative flex cursor-default gap-2 select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
156
+ className,
157
+ )}
158
+ {...props}
159
+ />
160
+ ));
161
+
162
+ CommandItem.displayName = CommandPrimitive.Item.displayName;
163
+
164
+ const CommandShortcut = ({
165
+ className,
166
+ ...props
167
+ }: React.HTMLAttributes<HTMLSpanElement>) => {
168
+ return (
169
+ <span
170
+ className={cn(
171
+ "ml-auto text-xs tracking-widest text-muted-foreground",
172
+ className,
173
+ )}
174
+ {...props}
175
+ />
176
+ );
177
+ };
178
+ CommandShortcut.displayName = "CommandShortcut";
179
+
180
+ export {
181
+ Command,
182
+ CommandDialog,
183
+ CommandEmpty,
184
+ CommandGroup,
185
+ CommandInlineInput,
186
+ CommandInput,
187
+ CommandItem,
188
+ CommandList,
189
+ CommandSeparator,
190
+ CommandShortcut,
191
+ };