@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,65 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import { buttonVariants } from "../button-CJvoztqg.js";
3
+ import * as React from "react";
4
+ import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+
7
+ //#region src/components/pagination.tsx
8
+ const Pagination = ({ className,...props }) => /* @__PURE__ */ jsx("nav", {
9
+ role: "navigation",
10
+ "aria-label": "pagination",
11
+ className: cn("mx-auto flex w-full justify-center", className),
12
+ ...props
13
+ });
14
+ Pagination.displayName = "Pagination";
15
+ const PaginationContent = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx("ul", {
16
+ ref,
17
+ className: cn("flex flex-row items-center gap-1", className),
18
+ ...props
19
+ }));
20
+ PaginationContent.displayName = "PaginationContent";
21
+ const PaginationItem = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx("li", {
22
+ ref,
23
+ className: cn("", className),
24
+ ...props
25
+ }));
26
+ PaginationItem.displayName = "PaginationItem";
27
+ const PaginationLink = ({ className, isActive, size = "icon",...props }) => /* @__PURE__ */ jsx("a", {
28
+ "aria-current": isActive ? "page" : void 0,
29
+ className: cn(buttonVariants({
30
+ variant: isActive ? "default" : "ghost",
31
+ size
32
+ }), className),
33
+ ...props
34
+ });
35
+ PaginationLink.displayName = "PaginationLink";
36
+ const PaginationPrevious = ({ className,...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
37
+ "aria-label": "Go to previous page",
38
+ size: "default",
39
+ className: cn("gap-1 pl-2.5", className),
40
+ ...props,
41
+ children: [/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", { children: "Previous" })]
42
+ });
43
+ PaginationPrevious.displayName = "PaginationPrevious";
44
+ const PaginationNext = ({ className,...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
45
+ "aria-label": "Go to next page",
46
+ size: "default",
47
+ className: cn("gap-1 pr-2.5", className),
48
+ ...props,
49
+ children: [/* @__PURE__ */ jsx("span", { children: "Next" }), /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })]
50
+ });
51
+ PaginationNext.displayName = "PaginationNext";
52
+ const PaginationEllipsis = ({ className,...props }) => /* @__PURE__ */ jsxs("span", {
53
+ "aria-hidden": true,
54
+ className: cn("flex h-9 w-9 items-center justify-center", className),
55
+ ...props,
56
+ children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
57
+ className: "sr-only",
58
+ children: "More pages"
59
+ })]
60
+ });
61
+ PaginationEllipsis.displayName = "PaginationEllipsis";
62
+
63
+ //#endregion
64
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
65
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","names":[],"sources":["../../src/components/pagination.tsx"],"sourcesContent":["import * as React from 'react';\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\nimport { ButtonProps, buttonVariants } from './button';\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n);\nPagination.displayName = 'Pagination';\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'>>(\n ({ className, ...props }, ref) => (\n <ul ref={ref} className={cn('flex flex-row items-center gap-1', className)} {...props} />\n )\n);\nPaginationContent.displayName = 'PaginationContent';\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'>>(\n ({ className, ...props }, ref) => <li ref={ref} className={cn('', className)} {...props} />\n);\nPaginationItem.displayName = 'PaginationItem';\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, 'size'> &\n React.ComponentProps<'a'>;\n\nconst PaginationLink = ({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? 'default' : 'ghost',\n size,\n }),\n className\n )}\n {...props}\n />\n);\nPaginationLink.displayName = 'PaginationLink';\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn('gap-1 pl-2.5', className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = 'PaginationPrevious';\n\nconst PaginationNext = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn('gap-1 pr-2.5', className)}\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = 'PaginationNext';\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'>) => (\n <span\n aria-hidden\n className={cn('flex h-9 w-9 items-center justify-center', className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = 'PaginationEllipsis';\n\nexport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n};\n"],"mappings":";;;;;;;AAMA,MAAM,aAAa,CAAC,EAAE,UAAW,GAAG,OAAoC,qBACtE,IAAC;CACC,MAAK;CACL,cAAW;CACX,WAAW,GAAG,sCAAsC,UAAU;CAC9D,GAAI;EACJ;AAEJ,WAAW,cAAc;AAEzB,MAAM,oBAAoB,MAAM,WAC9B,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBACxB,IAAC;CAAQ;CAAK,WAAW,GAAG,oCAAoC,UAAU;CAAE,GAAI;EAAS,CAE5F;AACD,kBAAkB,cAAc;AAEhC,MAAM,iBAAiB,MAAM,WAC3B,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAAQ,IAAC;CAAQ;CAAK,WAAW,GAAG,IAAI,UAAU;CAAE,GAAI;EAAS,CAC5F;AACD,eAAe,cAAc;AAO7B,MAAM,iBAAiB,CAAC,EAAE,WAAW,UAAU,OAAO,OAAQ,GAAG,OAA4B,qBAC3F,IAAC;CACC,gBAAc,WAAW;CACzB,WAAW,GACT,eAAe;EACb,SAAS,WAAW,YAAY;EAChC;CACD,EAAC,EACF,UACD;CACD,GAAI;EACJ;AAEJ,eAAe,cAAc;AAE7B,MAAM,qBAAqB,CAAC,EAC1B,UACA,GAAG,OACyC,qBAC5C,KAAC;CACC,cAAW;CACX,MAAK;CACL,WAAW,GAAG,gBAAgB,UAAU;CACxC,GAAI;4BAEJ,IAAC,eAAY,WAAU,YAAY,kBACnC,IAAC,oBAAK,aAAe;EACN;AAEnB,mBAAmB,cAAc;AAEjC,MAAM,iBAAiB,CAAC,EAAE,UAAW,GAAG,OAAoD,qBAC1F,KAAC;CACC,cAAW;CACX,MAAK;CACL,WAAW,GAAG,gBAAgB,UAAU;CACxC,GAAI;4BAEJ,IAAC,oBAAK,SAAW,kBACjB,IAAC,gBAAa,WAAU,YAAY;EACrB;AAEnB,eAAe,cAAc;AAE7B,MAAM,qBAAqB,CAAC,EAAE,UAAW,GAAG,OAAqC,qBAC/E,KAAC;CACC;CACA,WAAW,GAAG,4CAA4C,UAAU;CACpE,GAAI;4BAEJ,IAAC,kBAAe,WAAU,YAAY,kBACtC,IAAC;EAAK,WAAU;YAAU;GAAiB;EACtC;AAET,mBAAmB,cAAc"}
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+
4
+ //#region src/components/popover.d.ts
5
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
6
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ //#endregion
9
+ export { Popover, PopoverContent, PopoverTrigger };
10
+ //# sourceMappingURL=popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.d.ts","names":[],"sources":["../../src/components/popover.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,SAAO,KAAA,CAAA,GAAA,gBAAA,CAAA;cACP,gBAAc,KAAA,CAAA,0BAAA,gBAAA,CAAA,sBAAA,KAAA,CAAA,cAAA;AAJwC,cAMtD,cAH+B,EAGjB,KAAA,CAAA,yBAHiB,CAGjB,IAHiB,CAGjB,gBAAA,CAAA,mBAHiB,GAGjB,KAAA,CAAA,aAHiB,CAGjB,cAHiB,CAAA,EAAA,KAAA,CAAA,GAGjB,KAAA,CAAA,aAHiB,CAGjB,cAHiB,CAAA,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import * as React from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
5
+
6
+ //#region src/components/popover.tsx
7
+ const Popover = PopoverPrimitive.Root;
8
+ const PopoverTrigger = PopoverPrimitive.Trigger;
9
+ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4,...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
10
+ ref,
11
+ align,
12
+ sideOffset,
13
+ className: cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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", className),
14
+ ...props
15
+ }) }));
16
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
17
+
18
+ //#endregion
19
+ export { Popover, PopoverContent, PopoverTrigger };
20
+ //# sourceMappingURL=popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.js","names":[],"sources":["../../src/components/popover.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { cn } from '../lib/utils';\n\nconst Popover = PopoverPrimitive.Root;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ComponentRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverTrigger, PopoverContent };\n"],"mappings":";;;;;;AAIA,MAAM,UAAU,iBAAiB;AACjC,MAAM,iBAAiB,iBAAiB;AAExC,MAAM,iBAAiB,MAAM,WAG3B,CAAC,EAAE,WAAW,QAAQ,UAAU,aAAa,EAAG,GAAG,OAAO,EAAE,wBAC5D,IAAC,iBAAiB,oCAChB,IAAC,iBAAiB;CACX;CACE;CACK;CACZ,WAAW,GACT,kRACA,UACD;CACD,GAAI;EACJ,GACsB,CAC1B;AACF,eAAe,cAAc,iBAAiB,QAAQ"}
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
3
+
4
+ //#region src/components/progress.d.ts
5
+ declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ //#endregion
7
+ export { Progress };
8
+ //# sourceMappingURL=progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.d.ts","names":[],"sources":["../../src/components/progress.tsx"],"sourcesContent":[],"mappings":";;;;cAKM,UAAQ,KAAA,CAAA,0BAAA,KAAA,iBAAA,CAAA,gBAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA"}
@@ -0,0 +1,20 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import * as React from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
5
+
6
+ //#region src/components/progress.tsx
7
+ const Progress = React.forwardRef(({ className, value,...props }, ref) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, {
8
+ ref,
9
+ className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
10
+ ...props,
11
+ children: /* @__PURE__ */ jsx(ProgressPrimitive.Indicator, {
12
+ className: "h-full w-full flex-1 bg-primary transition-all",
13
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
14
+ })
15
+ }));
16
+ Progress.displayName = ProgressPrimitive.Root.displayName;
17
+
18
+ //#endregion
19
+ export { Progress };
20
+ //# sourceMappingURL=progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.js","names":[],"sources":["../../src/components/progress.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as ProgressPrimitive from '@radix-ui/react-progress';\n\nimport { cn } from '../lib/utils';\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"h-full w-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n));\nProgress.displayName = ProgressPrimitive.Root.displayName;\n\nexport { Progress };\n"],"mappings":";;;;;;AAKA,MAAM,WAAW,MAAM,WAGrB,CAAC,EAAE,WAAW,MAAO,GAAG,OAAO,EAAE,wBACjC,IAAC,kBAAkB;CACZ;CACL,WAAW,GAAG,iEAAiE,UAAU;CACzF,GAAI;2BAEJ,IAAC,kBAAkB;EACjB,WAAU;EACV,OAAO,EAAE,YAAY,cAAc,OAAO,SAAS,GAAG,IAAK;GAC3D;EACqB,CACzB;AACF,SAAS,cAAc,kBAAkB,KAAK"}
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
+
4
+ //#region src/components/radio-group.d.ts
5
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ //#endregion
8
+ export { RadioGroup, RadioGroupItem };
9
+ //# sourceMappingURL=radio-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.d.ts","names":[],"sources":["../../src/components/radio-group.tsx"],"sourcesContent":[],"mappings":";;;;cAKM,YAAU,KAAA,CAAA,0BAAA,KAAA,mBAAA,CAAA,kBAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA;cAQV,gBAAc,KAAA,CAAA,0BAAA,KAAA,mBAAA,CAAA,sBAAA,KAAA,CAAA,cAAA,6BAAA,KAAA,CAAA,cAAA"}
@@ -0,0 +1,31 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import * as React from "react";
3
+ import { Circle } from "lucide-react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
6
+
7
+ //#region src/components/radio-group.tsx
8
+ const RadioGroup = React.forwardRef(({ className,...props }, ref) => {
9
+ return /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, {
10
+ className: cn("grid gap-2", className),
11
+ ...props,
12
+ ref
13
+ });
14
+ });
15
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
16
+ const RadioGroupItem = React.forwardRef(({ className,...props }, ref) => {
17
+ return /* @__PURE__ */ jsx(RadioGroupPrimitive.Item, {
18
+ ref,
19
+ className: cn("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className),
20
+ ...props,
21
+ children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, {
22
+ className: "flex items-center justify-center",
23
+ children: /* @__PURE__ */ jsx(Circle, { className: "h-2.5 w-2.5 fill-current text-current" })
24
+ })
25
+ });
26
+ });
27
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
28
+
29
+ //#endregion
30
+ export { RadioGroup, RadioGroupItem };
31
+ //# sourceMappingURL=radio-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.js","names":[],"sources":["../../src/components/radio-group.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { Circle } from 'lucide-react';\nimport { cn } from '../lib/utils';\n\nconst RadioGroup = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={ref} />;\n});\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"h-2.5 w-2.5 fill-current text-current\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n});\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":";;;;;;;AAKA,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,QAAQ;AAClC,wBAAO,IAAC,oBAAoB;EAAK,WAAW,GAAG,cAAc,UAAU;EAAE,GAAI;EAAY;GAAO;AACjG,EAAC;AACF,WAAW,cAAc,oBAAoB,KAAK;AAElD,MAAM,iBAAiB,MAAM,WAG3B,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,QAAQ;AAClC,wBACE,IAAC,oBAAoB;EACd;EACL,WAAW,GACT,4OACA,UACD;EACD,GAAI;4BAEJ,IAAC,oBAAoB;GAAU,WAAU;6BACvC,IAAC,UAAO,WAAU,0CAA0C;IAC9B;GACP;AAE9B,EAAC;AACF,eAAe,cAAc,oBAAoB,KAAK"}
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
3
+ import { Group, Separator } from "react-resizable-panels";
4
+
5
+ //#region src/components/resizable.d.ts
6
+ declare const ResizablePanelGroup: ({
7
+ className,
8
+ ...props
9
+ }: React.ComponentProps<typeof Group>) => react_jsx_runtime13.JSX.Element;
10
+ declare const ResizablePanel: any;
11
+ declare const ResizableHandle: ({
12
+ withHandle,
13
+ className,
14
+ ...props
15
+ }: React.ComponentProps<typeof Separator> & {
16
+ withHandle?: boolean;
17
+ }) => react_jsx_runtime13.JSX.Element;
18
+ //#endregion
19
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
20
+ //# sourceMappingURL=resizable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizable.d.ts","names":[],"sources":["../../src/components/resizable.tsx"],"sourcesContent":[],"mappings":";;;;;cAMM;;;GAAgD,KAAA,CAAM,sBAAsB,WAAM,mBAAA,CAAA,GAAA,CAAA;cAOlF;cAEA;;;;GAIH,KAAA,CAAM,sBAAsB;EAbzB,UAAA,CAAA,EAAA,OAAA;CAKL,EAAA,GAUA,mBAAA,CAAA,GAAA,CAAA,OAVA"}
@@ -0,0 +1,24 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import "react";
3
+ import { GripVertical } from "lucide-react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { Group, Panel, Separator } from "react-resizable-panels";
6
+
7
+ //#region src/components/resizable.tsx
8
+ const ResizablePanelGroup = ({ className,...props }) => /* @__PURE__ */ jsx(Group, {
9
+ className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
10
+ ...props
11
+ });
12
+ const ResizablePanel = Panel;
13
+ const ResizableHandle = ({ withHandle, className,...props }) => /* @__PURE__ */ jsx(Separator, {
14
+ className: cn("relative flex w-px items-center justify-center bg-border/40 after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", className),
15
+ ...props,
16
+ children: withHandle && /* @__PURE__ */ jsx("div", {
17
+ className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
18
+ children: /* @__PURE__ */ jsx(GripVertical, { className: "h-2.5 w-2.5" })
19
+ })
20
+ });
21
+
22
+ //#endregion
23
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
24
+ //# sourceMappingURL=resizable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizable.js","names":[],"sources":["../../src/components/resizable.tsx"],"sourcesContent":["import * as React from 'react';\nimport { GripVertical } from 'lucide-react';\nimport { Group, Panel, Separator } from 'react-resizable-panels';\n\nimport { cn } from '../lib/utils';\n\nconst ResizablePanelGroup = ({ className, ...props }: React.ComponentProps<typeof Group>) => (\n <Group\n className={cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className)}\n {...props}\n />\n);\n\nconst ResizablePanel = Panel;\n\nconst ResizableHandle = ({\n withHandle,\n className,\n ...props\n}: React.ComponentProps<typeof Separator> & {\n withHandle?: boolean;\n}) => (\n <Separator\n className={cn(\n 'relative flex w-px items-center justify-center bg-border/40 after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90',\n className\n )}\n {...props}\n >\n {withHandle && (\n <div className=\"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border\">\n <GripVertical className=\"h-2.5 w-2.5\" />\n </div>\n )}\n </Separator>\n);\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle };\n"],"mappings":";;;;;;;AAMA,MAAM,sBAAsB,CAAC,EAAE,UAAW,GAAG,OAA2C,qBACtF,IAAC;CACC,WAAW,GAAG,qEAAqE,UAAU;CAC7F,GAAI;EACJ;AAGJ,MAAM,iBAAiB;AAEvB,MAAM,kBAAkB,CAAC,EACvB,YACA,UACA,GAAG,OAGJ,qBACC,IAAC;CACC,WAAW,GACT,8oBACA,UACD;CACD,GAAI;WAEH,8BACC,IAAC;EAAI,WAAU;4BACb,IAAC,gBAAa,WAAU,gBAAgB;GACpC;EAEE"}
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
+
4
+ //#region src/components/scroll-area.d.ts
5
+ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ //#endregion
8
+ export { ScrollArea, ScrollBar };
9
+ //# sourceMappingURL=scroll-area.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.d.ts","names":[],"sources":["../../src/components/scroll-area.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,YAAU,KAAA,CAAA,0BAAA,KAAA,mBAAA,CAAA,kBAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA;cAkBV,WAAS,KAAA,CAAA,0BAAA,KAAA,mBAAA,CAAA,2BAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA"}
@@ -0,0 +1,32 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import * as React from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
5
+
6
+ //#region src/components/scroll-area.tsx
7
+ const ScrollArea = React.forwardRef(({ className, children,...props }, ref) => /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
8
+ ref,
9
+ className: cn("relative overflow-hidden", className),
10
+ ...props,
11
+ children: [
12
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, {
13
+ className: "h-full w-full rounded-[inherit]",
14
+ children
15
+ }),
16
+ /* @__PURE__ */ jsx(ScrollBar, {}),
17
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
18
+ ]
19
+ }));
20
+ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
21
+ const ScrollBar = React.forwardRef(({ className, orientation = "vertical",...props }, ref) => /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
22
+ ref,
23
+ orientation,
24
+ className: cn("flex touch-none select-none transition-colors", orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]", orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]", className),
25
+ ...props,
26
+ children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
27
+ }));
28
+ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
29
+
30
+ //#endregion
31
+ export { ScrollArea, ScrollBar };
32
+ //# sourceMappingURL=scroll-area.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.js","names":[],"sources":["../../src/components/scroll-area.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport { cn } from '../lib/utils';\n\nconst ScrollArea = React.forwardRef<\n React.ComponentRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn('relative overflow-hidden', className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n));\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ComponentRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n 'flex touch-none select-none transition-colors',\n orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent p-[1px]',\n orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent p-[1px]',\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\n"],"mappings":";;;;;;AAIA,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,WAAW,SAAU,GAAG,OAAO,EAAE,wBACpC,KAAC,oBAAoB;CACd;CACL,WAAW,GAAG,4BAA4B,UAAU;CACpD,GAAI;;kBAEJ,IAAC,oBAAoB;GAAS,WAAU;GACrC;IAC4B;kBAC/B,IAAC,cAAY;kBACb,IAAC,oBAAoB,WAAS;;EACL,CAC3B;AACF,WAAW,cAAc,oBAAoB,KAAK;AAElD,MAAM,YAAY,MAAM,WAGtB,CAAC,EAAE,WAAW,cAAc,WAAY,GAAG,OAAO,EAAE,wBACpD,IAAC,oBAAoB;CACd;CACQ;CACb,WAAW,GACT,iDACA,gBAAgB,cAAc,sDAC9B,gBAAgB,gBAAgB,wDAChC,UACD;CACD,GAAI;2BAEJ,IAAC,oBAAoB,mBAAgB,WAAU,2CAA2C;EAClD,CAC1C;AACF,UAAU,cAAc,oBAAoB,oBAAoB"}
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+
4
+ //#region src/components/select.d.ts
5
+ declare const Select: React.FC<SelectPrimitive.SelectProps>;
6
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
7
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
8
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ //#endregion
16
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
17
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","names":[],"sources":["../../src/components/select.tsx"],"sourcesContent":[],"mappings":";;;;cAKM,QAAM,KAAA,CAAA,GAAA,eAAA,CAAA;cACN,aAAW,KAAA,CAAA,0BAAA,eAAA,CAAA,mBAAA,KAAA,CAAA,cAAA;AALyC,cAMpD,WAF6B,EAElB,KAAA,CAAA,yBAFkB,CAElB,eAAA,CAAA,gBAFkB,GAElB,KAAA,CAAA,aAFkB,CAElB,eAFkB,CAAA,CAAA;cAI7B,aAJ6B,EAIhB,KAAA,CAAA,yBAJgB,CAIhB,IAJgB,CAIhB,eAAA,CAAA,kBAJgB,GAIhB,KAAA,CAAA,aAJgB,CAIhB,iBAJgB,CAAA,EAAA,KAAA,CAAA,GAIhB,KAAA,CAAA,aAJgB,CAIhB,iBAJgB,CAAA,CAAA;cAwB7B,oBAxBM,EAwBc,KAAA,CAAA,yBAxBd,CAwBc,IAxBd,CAwBc,eAAA,CAAA,yBAxBd,GAwBc,KAAA,CAAA,aAxBd,CAwBc,cAxBd,CAAA,EAAA,KAAA,CAAA,GAwBc,KAAA,CAAA,aAxBd,CAwBc,cAxBd,CAAA,CAAA;cAsCN,sBAtCM,EAsCgB,KAAA,CAAA,yBAtChB,CAsCgB,IAtChB,CAsCgB,eAAA,CAAA,2BAtChB,GAsCgB,KAAA,CAAA,aAtChB,CAsCgB,cAtChB,CAAA,EAAA,KAAA,CAAA,GAsCgB,KAAA,CAAA,aAtChB,CAsCgB,cAtChB,CAAA,CAAA;AAAA,cAoDN,aApDM,EAoDO,KAAA,CAAA,yBApDP,CAoDO,IApDP,CAoDO,eAAA,CAAA,kBApDP,GAoDO,KAAA,CAAA,aApDP,CAoDO,cApDP,CAAA,EAAA,KAAA,CAAA,GAoDO,KAAA,CAAA,aApDP,CAoDO,cApDP,CAAA,CAAA;AAAA,cAoFN,WAnFmC,EAmFxB,KAAA,CAAA,yBAnFwB,CAmFxB,IAnFwB,CAmFxB,eAAA,CAAA,gBAnFwB,GAmFxB,KAAA,CAAA,aAnFwB,CAmFxB,cAnFwB,CAAA,EAAA,KAAA,CAAA,GAmFxB,KAAA,CAAA,aAnFwB,CAmFxB,cAnFwB,CAAA,CAAA;cA+FnC,UA/FmC,EA+FzB,KAAA,CAAA,yBA/FyB,CA+FzB,IA/FyB,CA+FzB,eAAA,CAAA,eA/FyB,GA+FzB,KAAA,CAAA,aA/FyB,CA+FzB,cA/FyB,CAAA,EAAA,KAAA,CAAA,GA+FzB,KAAA,CAAA,aA/FyB,CA+FzB,cA/FyB,CAAA,CAAA;cAqHnC,eArHW,EAqHI,KAAA,CAAA,yBArHJ,CAqHI,IArHJ,CAqHI,eAAA,CAAA,oBArHJ,GAqHI,KAAA,CAAA,aArHJ,CAqHI,cArHJ,CAAA,EAAA,KAAA,CAAA,GAqHI,KAAA,CAAA,aArHJ,CAqHI,cArHJ,CAAA,CAAA"}
@@ -0,0 +1,75 @@
1
+ import { cn } from "../utils-C0f9Ma6r.js";
2
+ import * as React from "react";
3
+ import { Check, ChevronDown, ChevronUp } from "lucide-react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import * as SelectPrimitive from "@radix-ui/react-select";
6
+
7
+ //#region src/components/select.tsx
8
+ const Select = SelectPrimitive.Root;
9
+ const SelectGroup = SelectPrimitive.Group;
10
+ const SelectValue = SelectPrimitive.Value;
11
+ const SelectTrigger = React.forwardRef(({ className, children,...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
12
+ ref,
13
+ className: cn("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", className),
14
+ ...props,
15
+ children: [children, /* @__PURE__ */ jsx(SelectPrimitive.Icon, {
16
+ asChild: true,
17
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 opacity-50" })
18
+ })]
19
+ }));
20
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
21
+ const SelectScrollUpButton = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpButton, {
22
+ ref,
23
+ className: cn("flex cursor-default items-center justify-center py-1", className),
24
+ ...props,
25
+ children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
26
+ }));
27
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
28
+ const SelectScrollDownButton = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, {
29
+ ref,
30
+ className: cn("flex cursor-default items-center justify-center py-1", className),
31
+ ...props,
32
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
33
+ }));
34
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
35
+ const SelectContent = React.forwardRef(({ className, children, position = "popper",...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
36
+ ref,
37
+ className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
38
+ position,
39
+ ...props,
40
+ children: [
41
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
42
+ /* @__PURE__ */ jsx(SelectPrimitive.Viewport, {
43
+ className: cn("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
44
+ children
45
+ }),
46
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
47
+ ]
48
+ }) }));
49
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
50
+ const SelectLabel = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Label, {
51
+ ref,
52
+ className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className),
53
+ ...props
54
+ }));
55
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
56
+ const SelectItem = React.forwardRef(({ className, children,...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
57
+ ref,
58
+ className: cn("relative flex w-full 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),
59
+ ...props,
60
+ children: [/* @__PURE__ */ jsx("span", {
61
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
62
+ children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
63
+ }), /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })]
64
+ }));
65
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
66
+ const SelectSeparator = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Separator, {
67
+ ref,
68
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
69
+ ...props
70
+ }));
71
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
72
+
73
+ //#endregion
74
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
75
+ //# sourceMappingURL=select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.js","names":[],"sources":["../../src/components/select.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\nimport { cn } from '../lib/utils';\n\nconst Select = SelectPrimitive.Root;\nconst SelectGroup = SelectPrimitive.Group;\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n 'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className)}\n {...props}\n />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex w-full 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 <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n"],"mappings":";;;;;;;AAKA,MAAM,SAAS,gBAAgB;AAC/B,MAAM,cAAc,gBAAgB;AACpC,MAAM,cAAc,gBAAgB;AAEpC,MAAM,gBAAgB,MAAM,WAG1B,CAAC,EAAE,WAAW,SAAU,GAAG,OAAO,EAAE,wBACpC,KAAC,gBAAgB;CACV;CACL,WAAW,GACT,mTACA,UACD;CACD,GAAI;YAEH,0BACD,IAAC,gBAAgB;EAAK;4BACpB,IAAC,eAAY,WAAU,uBAAuB;GACzB;EACC,CAC1B;AACF,cAAc,cAAc,gBAAgB,QAAQ;AAEpD,MAAM,uBAAuB,MAAM,WAGjC,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAAC,gBAAgB;CACV;CACL,WAAW,GAAG,wDAAwD,UAAU;CAChF,GAAI;2BAEJ,IAAC,aAAU,WAAU,YAAY;EACF,CACjC;AACF,qBAAqB,cAAc,gBAAgB,eAAe;AAElE,MAAM,yBAAyB,MAAM,WAGnC,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAAC,gBAAgB;CACV;CACL,WAAW,GAAG,wDAAwD,UAAU;CAChF,GAAI;2BAEJ,IAAC,eAAY,WAAU,YAAY;EACF,CACnC;AACF,uBAAuB,cAAc,gBAAgB,iBAAiB;AAEtE,MAAM,gBAAgB,MAAM,WAG1B,CAAC,EAAE,WAAW,UAAU,WAAW,SAAU,GAAG,OAAO,EAAE,wBACzD,IAAC,gBAAgB,oCACf,KAAC,gBAAgB;CACV;CACL,WAAW,GACT,2SACA,aAAa,YACX,mIACF,UACD;CACS;CACV,GAAI;;kBAEJ,IAAC,yBAAuB;kBACxB,IAAC,gBAAgB;GACf,WAAW,GACT,OACA,aAAa,YACX,0FACH;GAEA;IACwB;kBAC3B,IAAC,2BAAyB;;EACF,GACH,CACzB;AACF,cAAc,cAAc,gBAAgB,QAAQ;AAEpD,MAAM,cAAc,MAAM,WAGxB,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAAC,gBAAgB;CACV;CACL,WAAW,GAAG,0CAA0C,UAAU;CAClE,GAAI;EACJ,CACF;AACF,YAAY,cAAc,gBAAgB,MAAM;AAEhD,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,WAAW,SAAU,GAAG,OAAO,EAAE,wBACpC,KAAC,gBAAgB;CACV;CACL,WAAW,GACT,6NACA,UACD;CACD,GAAI;4BAEJ,IAAC;EAAK,WAAU;4BACd,IAAC,gBAAgB,2CACf,IAAC,SAAM,WAAU,YAAY,GACC;GAC3B,kBACP,IAAC,gBAAgB,YAAU,WAAoC;EAC1C,CACvB;AACF,WAAW,cAAc,gBAAgB,KAAK;AAE9C,MAAM,kBAAkB,MAAM,WAG5B,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAAC,gBAAgB;CACV;CACL,WAAW,GAAG,4BAA4B,UAAU;CACpD,GAAI;EACJ,CACF;AACF,gBAAgB,cAAc,gBAAgB,UAAU"}
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+
4
+ //#region src/components/separator.d.ts
5
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ //#endregion
7
+ export { Separator };
8
+ //# sourceMappingURL=separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.d.ts","names":[],"sources":["../../src/components/separator.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,WAAS,KAAA,CAAA,0BAAA,KAAA,kBAAA,CAAA,iBAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA"}
@@ -0,0 +1,4 @@
1
+ import "../utils-C0f9Ma6r.js";
2
+ import { Separator } from "../separator-9lzFsfCC.js";
3
+
4
+ export { Separator };
@@ -0,0 +1,36 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
3
+ import { VariantProps } from "class-variance-authority";
4
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
5
+ import * as class_variance_authority_types3 from "class-variance-authority/types";
6
+
7
+ //#region src/components/sheet.d.ts
8
+ declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
9
+ declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
11
+ declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
12
+ declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const sheetVariants: (props?: ({
14
+ side?: "left" | "right" | "top" | "bottom" | null | undefined;
15
+ } & class_variance_authority_types3.ClassProp) | undefined) => string;
16
+ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {}
17
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
18
+ declare const SheetHeader: {
19
+ ({
20
+ className,
21
+ ...props
22
+ }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime19.JSX.Element;
23
+ displayName: string;
24
+ };
25
+ declare const SheetFooter: {
26
+ ({
27
+ className,
28
+ ...props
29
+ }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime19.JSX.Element;
30
+ displayName: string;
31
+ };
32
+ declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
33
+ declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
34
+ //#endregion
35
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
36
+ //# sourceMappingURL=sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet.d.ts","names":[],"sources":["../../src/components/sheet.tsx"],"sourcesContent":[],"mappings":";;;;;;;cASM,OAAK,KAAA,CAAA,GAAA,cAAA,CAAA;cAEL,cAAY,KAAA,CAAA,0BAAA,cAAA,CAAA,qBAAA,KAAA,CAAA,cAAA;cAEZ,YAAU,KAAA,CAAA,0BAAA,cAAA,CAAA,mBAAA,KAAA,CAAA,cAAA;cAEV,aAAW,KAAA,CAAA,GAAA,cAAA,CAAA;AAXiD,cAa5D,YAR2B,EAQf,KAAA,CAAA,yBARe,CAQf,IARe,CAQf,cAAA,CAAA,kBARe,GAQf,KAAA,CAAA,aARe,CAQf,cARe,CAAA,EAAA,KAAA,CAAA,GAQf,KAAA,CAAA,aARe,CAQf,cARe,CAAA,CAAA;cAuB3B,aAvB2B,EAAA,CAAA,KAAtB,CAAsB,EAAA,CAAA;EAAA,IAAtB,CAAA,EAAA,MAAA,GAAA,OAAA,GAAA,KAAA,GAAA,QAAA,GAAA,IAAA,GAAA,SAAA;CAAA,GAwCV,+BAAA,CAAA,SAxCU,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;AAAA,UA0CD,iBAAA,SAEN,KAAA,CAAM,wBA5CC,CAAA,OA4C+B,cAAA,CAAe,OA5C9C,CAAA,EA6CP,YA7CO,CAAA,OA6Ca,aA7Cb,CAAA,CAAA,CAAA;cA+CL,YA7CqC,EA6CzB,KAAA,CAAA,yBA7CyB,CA6CzB,iBA7CyB,GA6CzB,KAAA,CAAA,aA7CyB,CA6CzB,cA7CyB,CAAA,CAAA;cA8DrC,WA9DY,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EA8D4B,KAAA,CAAM,cA9DlC,CA8DiD,cA9DjD,CAAA,CAAA,EA8DgE,mBAAA,CAAA,GAAA,CAAA,OA9DhE;EAAA,WAAA,EAAA,MAAA;CAAA;AAAA,cAmEZ,WAnEY,EAAA;EAEZ,CAAA;IAAA,SAAA;IAAiC,GAAA;EAAA,CAAA,EAiEO,KAAA,CAAM,cAjEb,CAiE4B,cAjE5B,CAAA,CAAA,EAiE2C,mBAAA,CAAA,GAAA,CAAA,OAjE3C;EAAA,WAAA,EAAA,MAAA;CAAA;cAyEjC,UAzEU,EAyEA,KAAA,CAAA,yBAzEA,CAyEA,IAzEA,CAyEA,cAAA,CAAA,gBAzEA,GAyEA,KAAA,CAAA,aAzEA,CAyEA,kBAzEA,CAAA,EAAA,KAAA,CAAA,GAyEA,KAAA,CAAA,aAzEA,CAyEA,kBAzEA,CAAA,CAAA;cAqFV,gBArFU,EAqFM,KAAA,CAAA,yBArFN,CAqFM,IArFN,CAqFM,cAAA,CAAA,sBArFN,GAqFM,KAAA,CAAA,aArFN,CAqFM,oBArFN,CAAA,EAAA,KAAA,CAAA,GAqFM,KAAA,CAAA,aArFN,CAqFM,oBArFN,CAAA,CAAA"}
@@ -0,0 +1,69 @@
1
+ 'use client';
2
+
3
+
4
+ import { cn } from "../utils-C0f9Ma6r.js";
5
+ import * as React from "react";
6
+ import { X } from "lucide-react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { cva } from "class-variance-authority";
9
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
10
+
11
+ //#region src/components/sheet.tsx
12
+ const Sheet = SheetPrimitive.Root;
13
+ const SheetTrigger = SheetPrimitive.Trigger;
14
+ const SheetClose = SheetPrimitive.Close;
15
+ const SheetPortal = SheetPrimitive.Portal;
16
+ const SheetOverlay = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Overlay, {
17
+ className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className),
18
+ ...props,
19
+ ref
20
+ }));
21
+ SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
22
+ const sheetVariants = cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
23
+ variants: { side: {
24
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
25
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
26
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
27
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
28
+ } },
29
+ defaultVariants: { side: "right" }
30
+ });
31
+ const SheetContent = React.forwardRef(({ side = "right", className, children,...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [/* @__PURE__ */ jsx(SheetOverlay, {}), /* @__PURE__ */ jsxs(SheetPrimitive.Content, {
32
+ ref,
33
+ className: cn(sheetVariants({ side }), className),
34
+ ...props,
35
+ children: [children, /* @__PURE__ */ jsxs(SheetPrimitive.Close, {
36
+ className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",
37
+ children: [/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
38
+ className: "sr-only",
39
+ children: "Close"
40
+ })]
41
+ })]
42
+ })] }));
43
+ SheetContent.displayName = SheetPrimitive.Content.displayName;
44
+ const SheetHeader = ({ className,...props }) => /* @__PURE__ */ jsx("div", {
45
+ className: cn("flex flex-col space-y-2 text-center sm:text-left", className),
46
+ ...props
47
+ });
48
+ SheetHeader.displayName = "SheetHeader";
49
+ const SheetFooter = ({ className,...props }) => /* @__PURE__ */ jsx("div", {
50
+ className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
51
+ ...props
52
+ });
53
+ SheetFooter.displayName = "SheetFooter";
54
+ const SheetTitle = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Title, {
55
+ ref,
56
+ className: cn("text-lg font-semibold text-foreground", className),
57
+ ...props
58
+ }));
59
+ SheetTitle.displayName = SheetPrimitive.Title.displayName;
60
+ const SheetDescription = React.forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Description, {
61
+ ref,
62
+ className: cn("text-sm text-muted-foreground", className),
63
+ ...props
64
+ }));
65
+ SheetDescription.displayName = SheetPrimitive.Description.displayName;
66
+
67
+ //#endregion
68
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
69
+ //# sourceMappingURL=sheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet.js","names":[],"sources":["../../src/components/sheet.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n className\n )}\n {...props}\n ref={ref}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n 'fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500',\n {\n variants: {\n side: {\n top: 'inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',\n bottom:\n 'inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',\n left: 'inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',\n right:\n 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n }\n);\n\ninterface SheetContentProps\n extends\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = 'right', className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content ref={ref} className={cn(sheetVariants({ side }), className)} {...props}>\n {children}\n <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />\n);\nSheetHeader.displayName = 'SheetHeader';\n\nconst SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}\n {...props}\n />\n);\nSheetFooter.displayName = 'SheetFooter';\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold text-foreground', className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"mappings":";;;;;;;;;;;AASA,MAAM,QAAQ,eAAe;AAE7B,MAAM,eAAe,eAAe;AAEpC,MAAM,aAAa,eAAe;AAElC,MAAM,cAAc,eAAe;AAEnC,MAAM,eAAe,MAAM,WAGzB,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAAC,eAAe;CACd,WAAW,GACT,2JACA,UACD;CACD,GAAI;CACC;EACL,CACF;AACF,aAAa,cAAc,eAAe,QAAQ;AAElD,MAAM,gBAAgB,IACpB,oMACA;CACE,UAAU,EACR,MAAM;EACJ,KAAK;EACL,QACE;EACF,MAAM;EACN,OACE;CACH,EACF;CACD,iBAAiB,EACf,MAAM,QACP;AACF,EACF;AAOD,MAAM,eAAe,MAAM,WAGzB,CAAC,EAAE,OAAO,SAAS,WAAW,SAAU,GAAG,OAAO,EAAE,wBACpD,KAAC,0CACC,IAAC,iBAAe,kBAChB,KAAC,eAAe;CAAa;CAAK,WAAW,GAAG,cAAc,EAAE,KAAM,EAAC,EAAE,UAAU;CAAE,GAAI;YACtF,0BACD,KAAC,eAAe;EAAM,WAAU;6BAC9B,IAAC,KAAE,WAAU,YAAY,kBACzB,IAAC;GAAK,WAAU;aAAU;IAAY;GACjB;EACA,IACb,CACd;AACF,aAAa,cAAc,eAAe,QAAQ;AAElD,MAAM,cAAc,CAAC,EAAE,UAAW,GAAG,OAA6C,qBAChF,IAAC;CAAI,WAAW,GAAG,oDAAoD,UAAU;CAAE,GAAI;EAAS;AAElG,YAAY,cAAc;AAE1B,MAAM,cAAc,CAAC,EAAE,UAAW,GAAG,OAA6C,qBAChF,IAAC;CACC,WAAW,GAAG,iEAAiE,UAAU;CACzF,GAAI;EACJ;AAEJ,YAAY,cAAc;AAE1B,MAAM,aAAa,MAAM,WAGvB,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAAC,eAAe;CACT;CACL,WAAW,GAAG,yCAAyC,UAAU;CACjE,GAAI;EACJ,CACF;AACF,WAAW,cAAc,eAAe,MAAM;AAE9C,MAAM,mBAAmB,MAAM,WAG7B,CAAC,EAAE,UAAW,GAAG,OAAO,EAAE,wBAC1B,IAAC,eAAe;CACT;CACL,WAAW,GAAG,iCAAiC,UAAU;CACzD,GAAI;EACJ,CACF;AACF,iBAAiB,cAAc,eAAe,YAAY"}