@coston/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 (241) hide show
  1. package/README.md +87 -0
  2. package/dist/button-BEd6_-lL.d.ts +16 -0
  3. package/dist/button-BEd6_-lL.d.ts.map +1 -0
  4. package/dist/button-CJvoztqg.js +46 -0
  5. package/dist/button-CJvoztqg.js.map +1 -0
  6. package/dist/components/accordion.d.ts +11 -0
  7. package/dist/components/accordion.d.ts.map +1 -0
  8. package/dist/components/accordion.js +38 -0
  9. package/dist/components/accordion.js.map +1 -0
  10. package/dist/components/alert-dialog.d.ts +31 -0
  11. package/dist/components/alert-dialog.d.ts.map +1 -0
  12. package/dist/components/alert-dialog.js +60 -0
  13. package/dist/components/alert-dialog.js.map +1 -0
  14. package/dist/components/alert.d.ts +13 -0
  15. package/dist/components/alert.d.ts.map +1 -0
  16. package/dist/components/alert.js +36 -0
  17. package/dist/components/alert.js.map +1 -0
  18. package/dist/components/aspect-ratio.d.ts +8 -0
  19. package/dist/components/aspect-ratio.d.ts.map +1 -0
  20. package/dist/components/aspect-ratio.js +8 -0
  21. package/dist/components/aspect-ratio.js.map +1 -0
  22. package/dist/components/avatar.d.ts +10 -0
  23. package/dist/components/avatar.d.ts.map +1 -0
  24. package/dist/components/avatar.js +28 -0
  25. package/dist/components/avatar.js.map +1 -0
  26. package/dist/components/badge.d.ts +18 -0
  27. package/dist/components/badge.d.ts.map +1 -0
  28. package/dist/components/badge.js +25 -0
  29. package/dist/components/badge.js.map +1 -0
  30. package/dist/components/breadcrumb.d.ts +31 -0
  31. package/dist/components/breadcrumb.d.ts.map +1 -0
  32. package/dist/components/breadcrumb.js +66 -0
  33. package/dist/components/breadcrumb.js.map +1 -0
  34. package/dist/components/button.d.ts +2 -0
  35. package/dist/components/button.js +4 -0
  36. package/dist/components/calendar.d.ts +17 -0
  37. package/dist/components/calendar.d.ts.map +1 -0
  38. package/dist/components/calendar.js +46 -0
  39. package/dist/components/calendar.js.map +1 -0
  40. package/dist/components/card.d.ts +12 -0
  41. package/dist/components/card.d.ts.map +1 -0
  42. package/dist/components/card.js +46 -0
  43. package/dist/components/card.js.map +1 -0
  44. package/dist/components/carousel.d.ts +23 -0
  45. package/dist/components/carousel.d.ts.map +1 -0
  46. package/dist/components/carousel.js +139 -0
  47. package/dist/components/carousel.js.map +1 -0
  48. package/dist/components/chart.d.ts +32 -0
  49. package/dist/components/chart.d.ts.map +1 -0
  50. package/dist/components/chart.js +115 -0
  51. package/dist/components/chart.js.map +1 -0
  52. package/dist/components/checkbox.d.ts +8 -0
  53. package/dist/components/checkbox.d.ts.map +1 -0
  54. package/dist/components/checkbox.js +21 -0
  55. package/dist/components/checkbox.js.map +1 -0
  56. package/dist/components/collapsible.d.ts +10 -0
  57. package/dist/components/collapsible.d.ts.map +1 -0
  58. package/dist/components/collapsible.js +13 -0
  59. package/dist/components/collapsible.js.map +1 -0
  60. package/dist/components/command.d.ts +26 -0
  61. package/dist/components/command.d.ts.map +1 -0
  62. package/dist/components/command.js +77 -0
  63. package/dist/components/command.js.map +1 -0
  64. package/dist/components/context-menu.d.ts +35 -0
  65. package/dist/components/context-menu.d.ts.map +1 -0
  66. package/dist/components/context-menu.js +82 -0
  67. package/dist/components/context-menu.js.map +1 -0
  68. package/dist/components/dialog.d.ts +30 -0
  69. package/dist/components/dialog.d.ts.map +1 -0
  70. package/dist/components/dialog.js +4 -0
  71. package/dist/components/drawer.d.ts +36 -0
  72. package/dist/components/drawer.d.ts.map +1 -0
  73. package/dist/components/drawer.js +53 -0
  74. package/dist/components/drawer.js.map +1 -0
  75. package/dist/components/dropdown-menu.d.ts +35 -0
  76. package/dist/components/dropdown-menu.d.ts.map +1 -0
  77. package/dist/components/dropdown-menu.js +83 -0
  78. package/dist/components/dropdown-menu.js.map +1 -0
  79. package/dist/components/hover-card.d.ts +10 -0
  80. package/dist/components/hover-card.d.ts.map +1 -0
  81. package/dist/components/hover-card.js +20 -0
  82. package/dist/components/hover-card.js.map +1 -0
  83. package/dist/components/input.d.ts +8 -0
  84. package/dist/components/input.d.ts.map +1 -0
  85. package/dist/components/input.js +18 -0
  86. package/dist/components/input.js.map +1 -0
  87. package/dist/components/label.d.ts +10 -0
  88. package/dist/components/label.d.ts.map +1 -0
  89. package/dist/components/label.js +18 -0
  90. package/dist/components/label.js.map +1 -0
  91. package/dist/components/menubar.d.ts +42 -0
  92. package/dist/components/menubar.d.ts.map +1 -0
  93. package/dist/components/menubar.js +96 -0
  94. package/dist/components/menubar.js.map +1 -0
  95. package/dist/components/navigation-menu.d.ts +17 -0
  96. package/dist/components/navigation-menu.d.ts.map +1 -0
  97. package/dist/components/navigation-menu.js +64 -0
  98. package/dist/components/navigation-menu.js.map +1 -0
  99. package/dist/components/pagination.d.ts +50 -0
  100. package/dist/components/pagination.d.ts.map +1 -0
  101. package/dist/components/pagination.js +65 -0
  102. package/dist/components/pagination.js.map +1 -0
  103. package/dist/components/popover.d.ts +10 -0
  104. package/dist/components/popover.d.ts.map +1 -0
  105. package/dist/components/popover.js +20 -0
  106. package/dist/components/popover.js.map +1 -0
  107. package/dist/components/progress.d.ts +8 -0
  108. package/dist/components/progress.d.ts.map +1 -0
  109. package/dist/components/progress.js +20 -0
  110. package/dist/components/progress.js.map +1 -0
  111. package/dist/components/radio-group.d.ts +9 -0
  112. package/dist/components/radio-group.d.ts.map +1 -0
  113. package/dist/components/radio-group.js +31 -0
  114. package/dist/components/radio-group.js.map +1 -0
  115. package/dist/components/resizable.d.ts +20 -0
  116. package/dist/components/resizable.d.ts.map +1 -0
  117. package/dist/components/resizable.js +24 -0
  118. package/dist/components/resizable.js.map +1 -0
  119. package/dist/components/scroll-area.d.ts +9 -0
  120. package/dist/components/scroll-area.d.ts.map +1 -0
  121. package/dist/components/scroll-area.js +32 -0
  122. package/dist/components/scroll-area.js.map +1 -0
  123. package/dist/components/select.d.ts +17 -0
  124. package/dist/components/select.d.ts.map +1 -0
  125. package/dist/components/select.js +75 -0
  126. package/dist/components/select.js.map +1 -0
  127. package/dist/components/separator.d.ts +8 -0
  128. package/dist/components/separator.d.ts.map +1 -0
  129. package/dist/components/separator.js +4 -0
  130. package/dist/components/sheet.d.ts +36 -0
  131. package/dist/components/sheet.d.ts.map +1 -0
  132. package/dist/components/sheet.js +69 -0
  133. package/dist/components/sheet.js.map +1 -0
  134. package/dist/components/sidebar.d.ts +54 -0
  135. package/dist/components/sidebar.d.ts.map +1 -0
  136. package/dist/components/sidebar.js +267 -0
  137. package/dist/components/sidebar.js.map +1 -0
  138. package/dist/components/skeleton.d.ts +10 -0
  139. package/dist/components/skeleton.d.ts.map +1 -0
  140. package/dist/components/skeleton.js +14 -0
  141. package/dist/components/skeleton.js.map +1 -0
  142. package/dist/components/slider.d.ts +8 -0
  143. package/dist/components/slider.d.ts.map +1 -0
  144. package/dist/components/slider.js +20 -0
  145. package/dist/components/slider.js.map +1 -0
  146. package/dist/components/sonner.d.ts +11 -0
  147. package/dist/components/sonner.d.ts.map +1 -0
  148. package/dist/components/sonner.js +22 -0
  149. package/dist/components/sonner.js.map +1 -0
  150. package/dist/components/switch.d.ts +8 -0
  151. package/dist/components/switch.d.ts.map +1 -0
  152. package/dist/components/switch.js +17 -0
  153. package/dist/components/switch.js.map +1 -0
  154. package/dist/components/table.d.ts +14 -0
  155. package/dist/components/table.d.ts.map +1 -0
  156. package/dist/components/table.js +61 -0
  157. package/dist/components/table.js.map +1 -0
  158. package/dist/components/tabs.d.ts +11 -0
  159. package/dist/components/tabs.d.ts.map +1 -0
  160. package/dist/components/tabs.js +29 -0
  161. package/dist/components/tabs.js.map +1 -0
  162. package/dist/components/textarea.d.ts +7 -0
  163. package/dist/components/textarea.d.ts.map +1 -0
  164. package/dist/components/textarea.js +17 -0
  165. package/dist/components/textarea.js.map +1 -0
  166. package/dist/components/toggle-group.d.ts +17 -0
  167. package/dist/components/toggle-group.d.ts.map +1 -0
  168. package/dist/components/toggle-group.js +41 -0
  169. package/dist/components/toggle-group.js.map +1 -0
  170. package/dist/components/toggle.d.ts +17 -0
  171. package/dist/components/toggle.d.ts.map +1 -0
  172. package/dist/components/toggle.js +4 -0
  173. package/dist/components/tooltip.d.ts +2 -0
  174. package/dist/components/tooltip.js +4 -0
  175. package/dist/dialog-B_8jhMOs.js +56 -0
  176. package/dist/dialog-B_8jhMOs.js.map +1 -0
  177. package/dist/hooks/use-mobile.d.ts +7 -0
  178. package/dist/hooks/use-mobile.d.ts.map +1 -0
  179. package/dist/hooks/use-mobile.js +3 -0
  180. package/dist/lib/utils.d.ts +9 -0
  181. package/dist/lib/utils.d.ts.map +1 -0
  182. package/dist/lib/utils.js +3 -0
  183. package/dist/separator-9lzFsfCC.js +18 -0
  184. package/dist/separator-9lzFsfCC.js.map +1 -0
  185. package/dist/toggle-BpKiTVe4.js +38 -0
  186. package/dist/toggle-BpKiTVe4.js.map +1 -0
  187. package/dist/tooltip-CXS6wR7g.js +20 -0
  188. package/dist/tooltip-CXS6wR7g.js.map +1 -0
  189. package/dist/tooltip-DPcgBDyX.d.ts +11 -0
  190. package/dist/tooltip-DPcgBDyX.d.ts.map +1 -0
  191. package/dist/use-mobile-CixTQBWA.js +21 -0
  192. package/dist/use-mobile-CixTQBWA.js.map +1 -0
  193. package/dist/utils-C0f9Ma6r.js +11 -0
  194. package/dist/utils-C0f9Ma6r.js.map +1 -0
  195. package/package.json +168 -0
  196. package/src/components/accordion.tsx +51 -0
  197. package/src/components/alert-dialog.tsx +115 -0
  198. package/src/components/alert.tsx +49 -0
  199. package/src/components/aspect-ratio.tsx +5 -0
  200. package/src/components/avatar.tsx +44 -0
  201. package/src/components/badge.tsx +32 -0
  202. package/src/components/breadcrumb.tsx +101 -0
  203. package/src/components/button.tsx +48 -0
  204. package/src/components/calendar.tsx +76 -0
  205. package/src/components/card.tsx +60 -0
  206. package/src/components/carousel.tsx +240 -0
  207. package/src/components/chart.tsx +232 -0
  208. package/src/components/checkbox.tsx +25 -0
  209. package/src/components/collapsible.tsx +11 -0
  210. package/src/components/command.tsx +136 -0
  211. package/src/components/context-menu.tsx +187 -0
  212. package/src/components/dialog.tsx +105 -0
  213. package/src/components/drawer.tsx +98 -0
  214. package/src/components/dropdown-menu.tsx +185 -0
  215. package/src/components/hover-card.tsx +29 -0
  216. package/src/components/input.tsx +24 -0
  217. package/src/components/label.tsx +19 -0
  218. package/src/components/menubar.tsx +219 -0
  219. package/src/components/navigation-menu.tsx +120 -0
  220. package/src/components/pagination.tsx +98 -0
  221. package/src/components/popover.tsx +27 -0
  222. package/src/components/progress.tsx +23 -0
  223. package/src/components/radio-group.tsx +35 -0
  224. package/src/components/resizable.tsx +38 -0
  225. package/src/components/scroll-area.tsx +43 -0
  226. package/src/components/select.tsx +147 -0
  227. package/src/components/separator.tsx +23 -0
  228. package/src/components/sheet.tsx +122 -0
  229. package/src/components/sidebar.tsx +507 -0
  230. package/src/components/skeleton.tsx +7 -0
  231. package/src/components/slider.tsx +23 -0
  232. package/src/components/sonner.tsx +26 -0
  233. package/src/components/switch.tsx +26 -0
  234. package/src/components/table.tsx +95 -0
  235. package/src/components/tabs.tsx +53 -0
  236. package/src/components/textarea.tsx +20 -0
  237. package/src/components/toggle-group.tsx +54 -0
  238. package/src/components/toggle.tsx +40 -0
  239. package/src/components/tooltip.tsx +27 -0
  240. package/src/hooks/use-mobile.tsx +19 -0
  241. package/src/lib/utils.ts +6 -0
@@ -0,0 +1,21 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import * as React from "react";
3
+ import { Check } from "lucide-react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
6
+
7
+ //#region src/components/checkbox.tsx
8
+ const Checkbox = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
9
+ ref,
10
+ className: cn("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", className),
11
+ ...props,
12
+ children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
13
+ className: cn("flex items-center justify-center text-current"),
14
+ children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" })
15
+ })
16
+ }));
17
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
18
+
19
+ //#endregion
20
+ export { Checkbox };
21
+ //# sourceMappingURL=checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.js","names":[],"sources":["../../src/components/checkbox.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\nimport { cn } from '../lib/utils';\n\nconst Checkbox = React.forwardRef<\n React.ComponentRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground',\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className={cn('flex items-center justify-center text-current')}>\n <Check className=\"h-4 w-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport { Checkbox };\n"],"mappings":";;;;;;;AAKA,MAAM,WAAW,MAAM,WAGrB,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAAC,kBAAkB;CACZ;CACL,WAAW,GACT,kTACA,UACD;CACD,GAAI;2BAEJ,IAAC,kBAAkB;EAAU,WAAW,GAAG,gDAAgD;4BACzF,IAAC,SAAM,WAAU,YAAY;GACD;EACP,CACzB;AACF,SAAS,cAAc,kBAAkB,KAAK"}
@@ -0,0 +1,10 @@
1
+ import * as react0 from "react";
2
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
3
+
4
+ //#region src/components/collapsible.d.ts
5
+ declare const Collapsible: react0.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & react0.RefAttributes<HTMLDivElement>>;
6
+ declare const CollapsibleTrigger: react0.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & react0.RefAttributes<HTMLButtonElement>>;
7
+ declare const CollapsibleContent: react0.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & react0.RefAttributes<HTMLDivElement>>;
8
+ //#endregion
9
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger };
10
+ //# sourceMappingURL=collapsible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.d.ts","names":[],"sources":["../../src/components/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,aAAW,MAAA,CAAA,0BAAA,oBAAA,CAAA,mBAAA,MAAA,CAAA,cAAA;cAEX,oBAAkB,MAAA,CAAA,0BAAA,oBAAA,CAAA,0BAAA,MAAA,CAAA,cAAA;cAElB,oBAAkB,MAAA,CAAA,0BAAA,oBAAA,CAAA,0BAAA,MAAA,CAAA,cAAA"}
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+
3
+
4
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
5
+
6
+ //#region src/components/collapsible.tsx
7
+ const Collapsible = CollapsiblePrimitive.Root;
8
+ const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
9
+ const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
10
+
11
+ //#endregion
12
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger };
13
+ //# sourceMappingURL=collapsible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.js","names":[],"sources":["../../src/components/collapsible.tsx"],"sourcesContent":["'use client';\n\nimport * as CollapsiblePrimitive from '@radix-ui/react-collapsible';\n\nconst Collapsible = CollapsiblePrimitive.Root;\n\nconst CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;\n\nconst CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent };\n"],"mappings":";;;;;;AAIA,MAAM,cAAc,qBAAqB;AAEzC,MAAM,qBAAqB,qBAAqB;AAEhD,MAAM,qBAAqB,qBAAqB"}
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
3
+ import { DialogProps } from "@radix-ui/react-dialog";
4
+
5
+ //#region src/components/command.d.ts
6
+ declare const Command: React.ForwardRefExoticComponent<any>;
7
+ declare const CommandDialog: ({
8
+ children,
9
+ ...props
10
+ }: DialogProps) => react_jsx_runtime9.JSX.Element;
11
+ declare const CommandInput: React.ForwardRefExoticComponent<any>;
12
+ declare const CommandList: React.ForwardRefExoticComponent<any>;
13
+ declare const CommandEmpty: React.ForwardRefExoticComponent<any>;
14
+ declare const CommandGroup: React.ForwardRefExoticComponent<any>;
15
+ declare const CommandSeparator: React.ForwardRefExoticComponent<any>;
16
+ declare const CommandItem: React.ForwardRefExoticComponent<any>;
17
+ declare const CommandShortcut: {
18
+ ({
19
+ className,
20
+ ...props
21
+ }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime9.JSX.Element;
22
+ displayName: string;
23
+ };
24
+ //#endregion
25
+ export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
26
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","names":[],"sources":["../../src/components/command.tsx"],"sourcesContent":[],"mappings":";;;;;cAQM,SAAO,KAAA,CAAA;cAeP;;;GAAyC,gBAAW,kBAAA,CAAA,GAAA,CAAA;cAYpD,cAAY,KAAA,CAAA;AAlCwC,cAoDpD,WA7CO,EA6CI,KAAA,CAAA,yBA7CJ,CAAA,GAAA,CAAA;AAAA,cAyDP,YAhCL,EAgCiB,KAAA,CAAA,yBAhCjB,CAAA,GAAA,CAAA;cAwCK,YAxCL,EAwCiB,KAAA,CAAA,yBAxCjB,CAAA,GAAA,CAAA;cAuDK,gBAjEiB,EAiED,KAAA,CAAA,yBAjEC,CAAA,GAAA,CAAA;cA6EjB,WA7EyC,EA6E9B,KAAA,CAAA,yBA7E8B,CAAA,GAAA,CAAA;cA4FzC,eA5FoD,EAAA;EAUzD,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EAkFiD,KAAA,CAAM,cAlFvD,CAkFsE,eAlFtE,CAAA,CAAA,EAkFsF,kBAAA,CAAA,GAAA,CAAA,OAlFtF;EAEK,WAAA,EAAA,MAeJ;AAfgB,CAAA"}
@@ -0,0 +1,77 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import { Dialog, DialogContent } from "../dialog-B_8jhMOs.js";
3
+ import * as React from "react";
4
+ import { Search } from "lucide-react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { Command as Command$1 } from "cmdk";
7
+
8
+ //#region src/components/command.tsx
9
+ const Command = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(Command$1, {
10
+ ref,
11
+ className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className),
12
+ ...props
13
+ }));
14
+ Command.displayName = Command$1.displayName;
15
+ const CommandDialog = ({ children,...props }) => {
16
+ return /* @__PURE__ */ jsx(Dialog, {
17
+ ...props,
18
+ children: /* @__PURE__ */ jsx(DialogContent, {
19
+ className: "overflow-hidden p-0 shadow-lg",
20
+ children: /* @__PURE__ */ jsx(Command, {
21
+ className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[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",
22
+ children
23
+ })
24
+ })
25
+ });
26
+ };
27
+ const CommandInput = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsxs("div", {
28
+ className: "flex items-center border-b px-3",
29
+ "cmdk-input-wrapper": "",
30
+ children: [/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command$1.Input, {
31
+ ref,
32
+ className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
33
+ ...props
34
+ })]
35
+ }));
36
+ CommandInput.displayName = Command$1.Input.displayName;
37
+ const CommandList = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(Command$1.List, {
38
+ ref,
39
+ className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
40
+ ...props
41
+ }));
42
+ CommandList.displayName = Command$1.List.displayName;
43
+ const CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(Command$1.Empty, {
44
+ ref,
45
+ className: "py-6 text-center text-sm",
46
+ ...props
47
+ }));
48
+ CommandEmpty.displayName = Command$1.Empty.displayName;
49
+ const CommandGroup = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(Command$1.Group, {
50
+ ref,
51
+ className: cn("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", className),
52
+ ...props
53
+ }));
54
+ CommandGroup.displayName = Command$1.Group.displayName;
55
+ const CommandSeparator = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(Command$1.Separator, {
56
+ ref,
57
+ className: cn("-mx-1 h-px bg-border", className),
58
+ ...props
59
+ }));
60
+ CommandSeparator.displayName = Command$1.Separator.displayName;
61
+ const CommandItem = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(Command$1.Item, {
62
+ ref,
63
+ className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50", className),
64
+ ...props
65
+ }));
66
+ CommandItem.displayName = Command$1.Item.displayName;
67
+ const CommandShortcut = ({ className,...props }) => {
68
+ return /* @__PURE__ */ jsx("span", {
69
+ className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
70
+ ...props
71
+ });
72
+ };
73
+ CommandShortcut.displayName = "CommandShortcut";
74
+
75
+ //#endregion
76
+ export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
77
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","names":["CommandPrimitive"],"sources":["../../src/components/command.tsx"],"sourcesContent":["import * as React from 'react';\nimport { type DialogProps } from '@radix-ui/react-dialog';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Search } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\nimport { Dialog, DialogContent } from './dialog';\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',\n className\n )}\n {...props}\n />\n));\nCommand.displayName = CommandPrimitive.displayName;\n\nconst CommandDialog = ({ children, ...props }: DialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent className=\"overflow-hidden p-0 shadow-lg\">\n <Command className=\"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[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\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n};\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <div className=\"flex items-center border-b px-3\" cmdk-input-wrapper=\"\">\n <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n />\n </div>\n));\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n));\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty ref={ref} className=\"py-6 text-center text-sm\" {...props} />\n));\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n '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',\n className\n )}\n {...props}\n />\n));\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 h-px bg-border', className)}\n {...props}\n />\n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50',\n className\n )}\n {...props}\n />\n));\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nconst CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}\n {...props}\n />\n );\n};\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandSeparator,\n CommandShortcut,\n};\n"],"mappings":";;;;;;;;AAQA,MAAM,UAAU,MAAM,WAGpB,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAACA;CACM;CACL,WAAW,GACT,6FACA,UACD;CACD,GAAI;EAC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AAW,GACT,yPACA,UACD;CACD,GAAI;EACJ,CACF;AACF,YAAY,cAAcA,UAAiB,KAAK;AAEhD,MAAM,kBAAkB,CAAC,EAAE,UAAW,GAAG,OAA8C,KAAK;AAC1F,wBACE,IAAC;EACC,WAAW,GAAG,yDAAyD,UAAU;EACjF,GAAI;GACJ;AAEL;AACD,gBAAgB,cAAc"}
@@ -0,0 +1,35 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
4
+
5
+ //#region src/components/context-menu.d.ts
6
+ declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
7
+ declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
8
+ declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
9
+ declare const ContextMenuPortal: React.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
10
+ declare const ContextMenuSub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
11
+ declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
12
+ declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
13
+ inset?: boolean;
14
+ } & React.RefAttributes<HTMLDivElement>>;
15
+ declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
+ declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ declare const ContextMenuItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
18
+ inset?: boolean;
19
+ } & React.RefAttributes<HTMLDivElement>>;
20
+ declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
+ declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
23
+ inset?: boolean;
24
+ } & React.RefAttributes<HTMLDivElement>>;
25
+ declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
+ declare const ContextMenuShortcut: {
27
+ ({
28
+ className,
29
+ ...props
30
+ }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime0.JSX.Element;
31
+ displayName: string;
32
+ };
33
+ //#endregion
34
+ export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
35
+ //# sourceMappingURL=context-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu.d.ts","names":[],"sources":["../../src/components/context-menu.tsx"],"sourcesContent":[],"mappings":";;;;;cAMM,aAAW,KAAA,CAAA,GAAA,oBAAA,CAAA;cAE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, ChevronRight, Circle } from "lucide-react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
6
+
7
+ //#region src/components/context-menu.tsx
8
+ const ContextMenu = ContextMenuPrimitive.Root;
9
+ const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
10
+ const ContextMenuGroup = ContextMenuPrimitive.Group;
11
+ const ContextMenuPortal = ContextMenuPrimitive.Portal;
12
+ const ContextMenuSub = ContextMenuPrimitive.Sub;
13
+ const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
14
+ const ContextMenuSubTrigger = React.forwardRef(({ className, inset, children,...props }, ref) => /* @__PURE__ */ jsxs(ContextMenuPrimitive.SubTrigger, {
15
+ ref,
16
+ className: cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", inset && "pl-8", className),
17
+ ...props,
18
+ children: [children, /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })]
19
+ }));
20
+ ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
21
+ const ContextMenuSubContent = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.SubContent, {
22
+ ref,
23
+ className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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", className),
24
+ ...props
25
+ }));
26
+ ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
27
+ const ContextMenuContent = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(ContextMenuPrimitive.Content, {
28
+ ref,
29
+ className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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", className),
30
+ ...props
31
+ }) }));
32
+ ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
33
+ const ContextMenuItem = React.forwardRef(({ className, inset,...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Item, {
34
+ ref,
35
+ className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", inset && "pl-8", className),
36
+ ...props
37
+ }));
38
+ ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
39
+ const ContextMenuCheckboxItem = React.forwardRef(({ className, children, checked,...props }, ref) => /* @__PURE__ */ jsxs(ContextMenuPrimitive.CheckboxItem, {
40
+ ref,
41
+ className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
42
+ checked,
43
+ ...props,
44
+ children: [/* @__PURE__ */ jsx("span", {
45
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
46
+ children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
47
+ }), children]
48
+ }));
49
+ ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
50
+ const ContextMenuRadioItem = React.forwardRef(({ className, children,...props }, ref) => /* @__PURE__ */ jsxs(ContextMenuPrimitive.RadioItem, {
51
+ ref,
52
+ className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
53
+ ...props,
54
+ children: [/* @__PURE__ */ jsx("span", {
55
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
56
+ children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) })
57
+ }), children]
58
+ }));
59
+ ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
60
+ const ContextMenuLabel = React.forwardRef(({ className, inset,...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Label, {
61
+ ref,
62
+ className: cn("px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className),
63
+ ...props
64
+ }));
65
+ ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
66
+ const ContextMenuSeparator = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Separator, {
67
+ ref,
68
+ className: cn("-mx-1 my-1 h-px bg-border", className),
69
+ ...props
70
+ }));
71
+ ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
72
+ const ContextMenuShortcut = ({ className,...props }) => {
73
+ return /* @__PURE__ */ jsx("span", {
74
+ className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className),
75
+ ...props
76
+ });
77
+ };
78
+ ContextMenuShortcut.displayName = "ContextMenuShortcut";
79
+
80
+ //#endregion
81
+ export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
82
+ //# sourceMappingURL=context-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu.js","names":[],"sources":["../../src/components/context-menu.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\n\nconst ContextMenu = ContextMenuPrimitive.Root;\n\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\n\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\n\nconst ContextMenuPortal = ContextMenuPrimitive.Portal;\n\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\n\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\nconst ContextMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <ContextMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </ContextMenuPrimitive.SubTrigger>\n));\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\nconst ContextMenuSubContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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',\n className\n )}\n {...props}\n />\n));\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\nconst ContextMenuContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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',\n className\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n));\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\nconst ContextMenuItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n));\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\nconst ContextMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n));\nContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;\n\nconst ContextMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n));\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\nconst ContextMenuLabel = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold text-foreground', inset && 'pl-8', className)}\n {...props}\n />\n));\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\nconst ContextMenuSeparator = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-border', className)}\n {...props}\n />\n));\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\nconst ContextMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}\n {...props}\n />\n );\n};\nContextMenuShortcut.displayName = 'ContextMenuShortcut';\n\nexport {\n ContextMenu,\n ContextMenuTrigger,\n ContextMenuContent,\n ContextMenuItem,\n ContextMenuCheckboxItem,\n ContextMenuRadioItem,\n ContextMenuLabel,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuGroup,\n ContextMenuPortal,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuRadioGroup,\n};\n"],"mappings":";;;;;;;AAMA,MAAM,cAAc,qBAAqB;AAEzC,MAAM,qBAAqB,qBAAqB;AAEhD,MAAM,mBAAmB,qBAAqB;AAE9C,MAAM,oBAAoB,qBAAqB;AAE/C,MAAM,iBAAiB,qBAAqB;AAE5C,MAAM,wBAAwB,qBAAqB;AAEnD,MAAM,wBAAwB,MAAM,WAKlC,CAAC,EAAE,WAAW,OAAO,SAAU,GAAG,OAAO,EAAE,wBAC3C,KAAC,qBAAqB;CACf;CACL,WAAW,GACT,8MACA,SAAS,QACT,UACD;CACD,GAAI;YAEH,0BACD,IAAC,gBAAa,WAAU,oBAAoB;EACZ,CAClC;AACF,sBAAsB,cAAc,qBAAqB,WAAW;AAEpE,MAAM,wBAAwB,MAAM,WAGlC,CAAC,EAAE,UAAW,GAAG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D,SAAS,QAAQ,UAAU;CAC9F,GAAI;EACJ,CACF;AACF,iBAAiB,cAAc,qBAAqB,MAAM;AAE1D,MAAM,uBAAuB,MAAM,WAGjC,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAAC,qBAAqB;CACf;CACL,WAAW,GAAG,6BAA6B,UAAU;CACrD,GAAI;EACJ,CACF;AACF,qBAAqB,cAAc,qBAAqB,UAAU;AAElE,MAAM,sBAAsB,CAAC,EAAE,UAAW,GAAG,OAA8C,KAAK;AAC9F,wBACE,IAAC;EACC,WAAW,GAAG,yDAAyD,UAAU;EACjF,GAAI;GACJ;AAEL;AACD,oBAAoB,cAAc"}
@@ -0,0 +1,30 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
3
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
4
+
5
+ //#region src/components/dialog.d.ts
6
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
7
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
9
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DialogHeader: {
13
+ ({
14
+ className,
15
+ ...props
16
+ }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime7.JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const DialogFooter: {
20
+ ({
21
+ className,
22
+ ...props
23
+ }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime7.JSX.Element;
24
+ displayName: string;
25
+ };
26
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
27
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
28
+ //#endregion
29
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
30
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","names":[],"sources":["../../src/components/dialog.tsx"],"sourcesContent":[],"mappings":";;;;;cAMM,QAAM,KAAA,CAAA,GAAA,eAAA,CAAA;cAEN,eAAa,KAAA,CAAA,0BAAA,eAAA,CAAA,qBAAA,KAAA,CAAA,cAAA;cAEb,cAAY,KAAA,CAAA,GAAA,eAAA,CAAA;AATwC,cAWpD,WAN6B,EAMlB,KAAA,CAAA,yBANkB,CAMlB,eAAA,CAAA,gBANkB,GAMlB,KAAA,CAAA,aANkB,CAMlB,iBANkB,CAAA,CAAA;cAQ7B,aAR6B,EAQhB,KAAA,CAAA,yBARgB,CAQhB,IARgB,CAQhB,eAAA,CAAA,kBARgB,GAQhB,KAAA,CAAA,aARgB,CAQhB,cARgB,CAAA,EAAA,KAAA,CAAA,GAQhB,KAAA,CAAA,aARgB,CAQhB,cARgB,CAAA,CAAA;cAuB7B,aAvBM,EAuBO,KAAA,CAAA,yBAvBP,CAuBO,IAvBP,CAuBO,eAAA,CAAA,kBAvBP,GAuBO,KAAA,CAAA,aAvBP,CAuBO,cAvBP,CAAA,EAAA,KAAA,CAAA,GAuBO,KAAA,CAAA,aAvBP,CAuBO,cAvBP,CAAA,CAAA;cA+CN,YA/CM,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EA+CmC,KAAA,CAAM,cA/CzC,CA+CwD,cA/CxD,CAAA,CAAA,EA+CuE,kBAAA,CAAA,GAAA,CAAA,OA/CvE;EAEN,WAAA,EAAA,MAAuC;CAAA;cAkDvC,YAlDa,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EAkD4B,KAAA,CAAM,cAlDlC,CAkDiD,cAlDjD,CAAA,CAAA,EAkDgE,kBAAA,CAAA,GAAA,CAAA,OAlDhE;EAAA,WAAA,EAAA,MAAA;CAAA;AAAA,cA0Db,WA1Da,EA0DF,KAAA,CAAA,yBA1DE,CA0DF,IA1DE,CA0DF,eAAA,CAAA,gBA1DE,GA0DF,KAAA,CAAA,aA1DE,CA0DF,kBA1DE,CAAA,EAAA,KAAA,CAAA,GA0DF,KAAA,CAAA,aA1DE,CA0DF,kBA1DE,CAAA,CAAA;AAAA,cAyEb,iBAvEqC,EAuEpB,KAAA,CAAA,yBAvEoB,CAuEpB,IAvEoB,CAuEpB,eAAA,CAAA,sBAvEoB,GAuEpB,KAAA,CAAA,aAvEoB,CAuEpB,oBAvEoB,CAAA,EAAA,KAAA,CAAA,GAuEpB,KAAA,CAAA,aAvEoB,CAuEpB,oBAvEoB,CAAA,CAAA"}
@@ -0,0 +1,4 @@
1
+ import "../utils-C0f9Ma6r.js";
2
+ import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "../dialog-B_8jhMOs.js";
3
+
4
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
@@ -0,0 +1,36 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import { Drawer as Drawer$1 } from "vaul";
4
+
5
+ //#region src/components/drawer.d.ts
6
+ declare const Drawer: {
7
+ ({
8
+ shouldScaleBackground,
9
+ ...props
10
+ }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime0.JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const DrawerTrigger: any;
14
+ declare const DrawerPortal: any;
15
+ declare const DrawerClose: any;
16
+ declare const DrawerOverlay: React.ForwardRefExoticComponent<any>;
17
+ declare const DrawerContent: React.ForwardRefExoticComponent<any>;
18
+ declare const DrawerHeader: {
19
+ ({
20
+ className,
21
+ ...props
22
+ }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime0.JSX.Element;
23
+ displayName: string;
24
+ };
25
+ declare const DrawerFooter: {
26
+ ({
27
+ className,
28
+ ...props
29
+ }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime0.JSX.Element;
30
+ displayName: string;
31
+ };
32
+ declare const DrawerTitle: React.ForwardRefExoticComponent<any>;
33
+ declare const DrawerDescription: React.ForwardRefExoticComponent<any>;
34
+ //#endregion
35
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
36
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.d.ts","names":[],"sources":["../../src/components/drawer.tsx"],"sourcesContent":[],"mappings":";;;;;cAKM;;;;KAGH,KAAA,CAAM,sBAAsB,QAAA,CAAgB,QAAK,kBAAA,CAAA,GAAA,CAAA;;AAPH,CAAA;cAY3C,aAHL,EAAA,GAAA;cAKK,YALL,EAAA,GAAA;cAOK,WATyC,EAAA,GAAA;cAWzC,aAXG,EAWU,KAAA,CAAA,yBAXV,CAAA,GAAA,CAAA;cAuBH,aAvB8C,EAuBjC,KAAA,CAAA,yBAvBiC,CAAA,GAAA,CAAA;AAAA,cA4C9C,YA5C8C,EAAA;EAK9C,CAAA;IAAA,SAAA;IAAA,GAAuC;EAAA,CAAA,EAuCE,KAAA,CAAM,cAvCR,CAuCuB,cAvCvB,CAAA,CAAA,EAuCsC,kBAAA,CAAA,GAAA,CAAA,OAvCtC;EAEvC,WAAA,EAAA,MAAqC;AAAA,CAAA;AAEF,cAwCnC,YA7BJ,EAAA;EAGI,CAAA;IAAA,SAAA;IAAA,GAkBJ;EAlBiB,CAkBjB,EAQ6C,KAAA,CAAM,cA1BlC,CA0BiD,cA1BjD,CAAA,CAAA,EA0BgE,kBAAA,CAAA,GAAA,CAAA,OA1BhE;EAqBb,WAAA,EAAA,MAEL;CAAA;cAQK,WARL,EAQgB,KAAA,CAAA,yBARhB,CAAA,GAAA,CAAA;cAoBK,iBAtB8D,EAsB7C,KAAA,CAAA,yBAtB6C,CAAA,GAAA,CAAA"}
@@ -0,0 +1,53 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import * as React from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Drawer as Drawer$1 } from "vaul";
5
+
6
+ //#region src/components/drawer.tsx
7
+ const Drawer = ({ shouldScaleBackground = true,...props }) => /* @__PURE__ */ jsx(Drawer$1.Root, {
8
+ shouldScaleBackground,
9
+ ...props
10
+ });
11
+ Drawer.displayName = "Drawer";
12
+ const DrawerTrigger = Drawer$1.Trigger;
13
+ const DrawerPortal = Drawer$1.Portal;
14
+ const DrawerClose = Drawer$1.Close;
15
+ const DrawerOverlay = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Overlay, {
16
+ ref,
17
+ className: cn("fixed inset-0 z-50 bg-black/80", className),
18
+ ...props
19
+ }));
20
+ DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
21
+ const DrawerContent = React.forwardRef(({ className, children,...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsxs(Drawer$1.Content, {
22
+ ref,
23
+ className: cn("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background", className),
24
+ ...props,
25
+ children: [/* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }), children]
26
+ })] }));
27
+ DrawerContent.displayName = "DrawerContent";
28
+ const DrawerHeader = ({ className,...props }) => /* @__PURE__ */ jsx("div", {
29
+ className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
30
+ ...props
31
+ });
32
+ DrawerHeader.displayName = "DrawerHeader";
33
+ const DrawerFooter = ({ className,...props }) => /* @__PURE__ */ jsx("div", {
34
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
35
+ ...props
36
+ });
37
+ DrawerFooter.displayName = "DrawerFooter";
38
+ const DrawerTitle = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Title, {
39
+ ref,
40
+ className: cn("text-lg font-semibold leading-none tracking-tight", className),
41
+ ...props
42
+ }));
43
+ DrawerTitle.displayName = Drawer$1.Title.displayName;
44
+ const DrawerDescription = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Description, {
45
+ ref,
46
+ className: cn("text-sm text-muted-foreground", className),
47
+ ...props
48
+ }));
49
+ DrawerDescription.displayName = Drawer$1.Description.displayName;
50
+
51
+ //#endregion
52
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
53
+ //# sourceMappingURL=drawer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.js","names":["DrawerPrimitive"],"sources":["../../src/components/drawer.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { cn } from '../lib/utils';\n\nconst Drawer = ({\n shouldScaleBackground = true,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n ref={ref}\n className={cn('fixed inset-0 z-50 bg-black/80', className)}\n {...props}\n />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background',\n className\n )}\n {...props}\n >\n <div className=\"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName;\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName;\n\nexport {\n Drawer,\n DrawerPortal,\n DrawerOverlay,\n DrawerTrigger,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerFooter,\n DrawerTitle,\n DrawerDescription,\n};\n"],"mappings":";;;;;;AAKA,MAAM,SAAS,CAAC,EACd,wBAAwB,KACxB,GAAG,OAC+C,qBAClD,IAACA,SAAgB;CAA4B;CAAuB,GAAI;EAAS;AAEnF,OAAO,cAAc;AAErB,MAAM,gBAAgBA,SAAgB;AAEtC,MAAM,eAAeA,SAAgB;AAErC,MAAM,cAAcA,SAAgB;AAEpC,MAAM,gBAAgB,MAAM,WAG1B,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAACA,SAAgB;CACV;CACL,WAAW,GAAG,kCAAkC,UAAU;CAC1D,GAAI;EACJ,CACF;AACF,cAAc,cAAcA,SAAgB,QAAQ;AAEpD,MAAM,gBAAgB,MAAM,WAG1B,CAAC,EAAE,WAAW,SAAU,GAAG,OAAO,EAAE,wBACpC,KAAC,2CACC,IAAC,kBAAgB,kBACjB,KAACA,SAAgB;CACV;CACL,WAAW,GACT,kGACA,UACD;CACD,GAAI;4BAEJ,IAAC,SAAI,WAAU,qDAAqD,EACnE;EACuB,IACb,CACf;AACF,cAAc,cAAc;AAE5B,MAAM,eAAe,CAAC,EAAE,UAAW,GAAG,OAA6C,qBACjF,IAAC;CAAI,WAAW,GAAG,6CAA6C,UAAU;CAAE,GAAI;EAAS;AAE3F,aAAa,cAAc;AAE3B,MAAM,eAAe,CAAC,EAAE,UAAW,GAAG,OAA6C,qBACjF,IAAC;CAAI,WAAW,GAAG,mCAAmC,UAAU;CAAE,GAAI;EAAS;AAEjF,aAAa,cAAc;AAE3B,MAAM,cAAc,MAAM,WAGxB,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAACA,SAAgB;CACV;CACL,WAAW,GAAG,qDAAqD,UAAU;CAC7E,GAAI;EACJ,CACF;AACF,YAAY,cAAcA,SAAgB,MAAM;AAEhD,MAAM,oBAAoB,MAAM,WAG9B,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAACA,SAAgB;CACV;CACL,WAAW,GAAG,iCAAiC,UAAU;CACzD,GAAI;EACJ,CACF;AACF,kBAAkB,cAAcA,SAAgB,YAAY"}
@@ -0,0 +1,35 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
3
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
4
+
5
+ //#region src/components/dropdown-menu.d.ts
6
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
7
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
10
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
11
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
13
+ inset?: boolean;
14
+ } & React.RefAttributes<HTMLDivElement>>;
15
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
18
+ inset?: boolean;
19
+ } & React.RefAttributes<HTMLDivElement>>;
20
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
23
+ inset?: boolean;
24
+ } & React.RefAttributes<HTMLDivElement>>;
25
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
+ declare const DropdownMenuShortcut: {
27
+ ({
28
+ className,
29
+ ...props
30
+ }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime5.JSX.Element;
31
+ displayName: string;
32
+ };
33
+ //#endregion
34
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
35
+ //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.d.ts","names":[],"sources":["../../src/components/dropdown-menu.tsx"],"sourcesContent":[],"mappings":";;;;;cAMM,cAAY,KAAA,CAAA,GAAA,qBAAA,CAAA;cAEZ,qBAAmB,KAAA,CAAA,0BAAA,qBAAA,CAAA,2BAAA,KAAA,CAAA,cAAA;cAEnB,mBAAiB,KAAA,CAAA,0BAAA,qBAAA,CAAA,yBAAA,KAAA,CAAA,cAAA;AATgD,cAWjE,kBANyC,EAMvB,KAAA,CAAA,EANuB,CAMvB,qBAAA,CAAA,uBANuB,CAAA;cAQzC,eARyC,EAQ1B,KAAA,CAAA,EAR0B,CAQ1B,qBAAA,CAAA,oBAR0B,CAAA;cAUzC,sBAVY,EAUU,KAAA,CAAA,yBAVV,CAUU,qBAAA,CAAA,2BAVV,GAUU,KAAA,CAAA,aAVV,CAUU,cAVV,CAAA,CAAA;cAYZ,sBAZY,EAYU,KAAA,CAAA,yBAZV,CAYU,IAZV,CAYU,qBAAA,CAAA,2BAZV,GAYU,KAAA,CAAA,aAZV,CAYU,cAZV,CAAA,EAAA,KAAA,CAAA,GAAA;EAAA,KAAA,CAAA,EAAA,OAAA;AAAA,CAAA,sBAEZ,CAUsB,cAV6B,CAAA,CAAA;cA+BnD,sBA/BmD,EA+B7B,KAAA,CAAA,yBA/B6B,CA+B7B,IA/B6B,CA+B7B,qBAAA,CAAA,2BA/B6B,GA+B7B,KAAA,CAAA,aA/B6B,CA+B7B,cA/B6B,CAAA,EAAA,KAAA,CAAA,GA+B7B,KAAA,CAAA,aA/B6B,CA+B7B,cA/B6B,CAAA,CAAA;cA8CnD,mBA9CmB,EA8CA,KAAA,CAAA,yBA9CA,CA8CA,IA9CA,CA8CA,qBAAA,CAAA,wBA9CA,GA8CA,KAAA,CAAA,aA9CA,CA8CA,cA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