@codefast/ui 0.3.9 → 0.3.10

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 (245) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/components/accordion.cjs +97 -1
  3. package/dist/components/accordion.d.ts +4 -4
  4. package/dist/components/accordion.js +51 -1
  5. package/dist/components/alert-dialog.cjs +155 -1
  6. package/dist/components/alert-dialog.d.ts +11 -11
  7. package/dist/components/alert-dialog.js +94 -1
  8. package/dist/components/alert.cjs +84 -1
  9. package/dist/components/alert.d.ts +5 -5
  10. package/dist/components/alert.js +41 -1
  11. package/dist/components/aspect-ratio.cjs +43 -1
  12. package/dist/components/aspect-ratio.d.ts +2 -2
  13. package/dist/components/aspect-ratio.js +9 -1
  14. package/dist/components/avatar.cjs +65 -1
  15. package/dist/components/avatar.d.ts +2 -2
  16. package/dist/components/avatar.js +25 -1
  17. package/dist/components/badge.cjs +66 -1
  18. package/dist/components/badge.d.ts +3 -3
  19. package/dist/components/badge.js +29 -1
  20. package/dist/components/breadcrumb.cjs +126 -1
  21. package/dist/components/breadcrumb.d.ts +8 -8
  22. package/dist/components/breadcrumb.js +74 -1
  23. package/dist/components/button-group.cjs +86 -1
  24. package/dist/components/button-group.d.ts +5 -5
  25. package/dist/components/button-group.js +43 -1
  26. package/dist/components/button.cjs +92 -1
  27. package/dist/components/button.d.ts +6 -6
  28. package/dist/components/button.js +55 -1
  29. package/dist/components/calendar.cjs +150 -1
  30. package/dist/components/calendar.d.ts +12 -19
  31. package/dist/components/calendar.js +113 -1
  32. package/dist/components/card.cjs +105 -1
  33. package/dist/components/card.d.ts +8 -8
  34. package/dist/components/card.js +53 -1
  35. package/dist/components/carousel.cjs +210 -1
  36. package/dist/components/carousel.d.ts +10 -10
  37. package/dist/components/carousel.js +151 -1
  38. package/dist/components/chart.cjs +250 -3
  39. package/dist/components/chart.d.ts +9 -9
  40. package/dist/components/chart.js +198 -3
  41. package/dist/components/checkbox-cards.cjs +69 -1
  42. package/dist/components/checkbox-cards.d.ts +2 -2
  43. package/dist/components/checkbox-cards.js +32 -1
  44. package/dist/components/checkbox-group.cjs +63 -1
  45. package/dist/components/checkbox-group.d.ts +2 -2
  46. package/dist/components/checkbox-group.js +26 -1
  47. package/dist/components/checkbox.cjs +53 -1
  48. package/dist/components/checkbox.d.ts +2 -2
  49. package/dist/components/checkbox.js +19 -1
  50. package/dist/components/collapsible.cjs +61 -1
  51. package/dist/components/collapsible.d.ts +2 -2
  52. package/dist/components/collapsible.js +21 -1
  53. package/dist/components/command.cjs +167 -1
  54. package/dist/components/command.d.ts +4 -4
  55. package/dist/components/command.js +106 -1
  56. package/dist/components/context-menu.cjs +218 -1
  57. package/dist/components/context-menu.d.ts +4 -4
  58. package/dist/components/context-menu.js +142 -1
  59. package/dist/components/dialog.cjs +164 -1
  60. package/dist/components/dialog.d.ts +10 -10
  61. package/dist/components/dialog.js +106 -1
  62. package/dist/components/drawer.cjs +143 -1
  63. package/dist/components/drawer.d.ts +9 -9
  64. package/dist/components/drawer.js +85 -1
  65. package/dist/components/dropdown-menu.cjs +221 -1
  66. package/dist/components/dropdown-menu.d.ts +4 -4
  67. package/dist/components/dropdown-menu.js +145 -1
  68. package/dist/components/empty.cjs +113 -1
  69. package/dist/components/empty.d.ts +9 -9
  70. package/dist/components/empty.js +61 -1
  71. package/dist/components/field.cjs +193 -1
  72. package/dist/components/field.d.ts +14 -14
  73. package/dist/components/field.js +129 -1
  74. package/dist/components/form.cjs +151 -1
  75. package/dist/components/form.d.ts +10 -10
  76. package/dist/components/form.js +96 -1
  77. package/dist/components/hover-card.cjs +77 -1
  78. package/dist/components/hover-card.d.ts +2 -2
  79. package/dist/components/hover-card.js +34 -1
  80. package/dist/components/input-group.cjs +155 -1
  81. package/dist/components/input-group.d.ts +15 -15
  82. package/dist/components/input-group.js +97 -1
  83. package/dist/components/input-number.cjs +98 -1
  84. package/dist/components/input-number.d.ts +2 -2
  85. package/dist/components/input-number.js +64 -1
  86. package/dist/components/input-otp.cjs +101 -1
  87. package/dist/components/input-otp.d.ts +6 -6
  88. package/dist/components/input-otp.js +49 -1
  89. package/dist/components/input-password.cjs +71 -1
  90. package/dist/components/input-password.d.ts +3 -3
  91. package/dist/components/input-password.js +37 -1
  92. package/dist/components/input-search.cjs +80 -1
  93. package/dist/components/input-search.d.ts +3 -3
  94. package/dist/components/input-search.js +46 -1
  95. package/dist/components/input.cjs +45 -1
  96. package/dist/components/input.d.ts +2 -2
  97. package/dist/components/input.js +11 -1
  98. package/dist/components/item.cjs +186 -1
  99. package/dist/components/item.d.ts +12 -12
  100. package/dist/components/item.js +119 -1
  101. package/dist/components/kbd.cjs +54 -1
  102. package/dist/components/kbd.d.ts +3 -3
  103. package/dist/components/kbd.js +17 -1
  104. package/dist/components/label.cjs +45 -1
  105. package/dist/components/label.d.ts +2 -2
  106. package/dist/components/label.js +11 -1
  107. package/dist/components/menubar.cjs +232 -1
  108. package/dist/components/menubar.d.ts +4 -4
  109. package/dist/components/menubar.js +153 -1
  110. package/dist/components/native-select.cjs +75 -1
  111. package/dist/components/native-select.d.ts +4 -4
  112. package/dist/components/native-select.js +35 -1
  113. package/dist/components/navigation-menu.cjs +146 -2
  114. package/dist/components/navigation-menu.d.ts +2 -2
  115. package/dist/components/navigation-menu.js +94 -2
  116. package/dist/components/pagination.cjs +138 -1
  117. package/dist/components/pagination.d.ts +10 -10
  118. package/dist/components/pagination.js +86 -1
  119. package/dist/components/popover.cjs +86 -1
  120. package/dist/components/popover.d.ts +3 -3
  121. package/dist/components/popover.js +40 -1
  122. package/dist/components/progress-circle.cjs +184 -1
  123. package/dist/components/progress-circle.d.ts +5 -5
  124. package/dist/components/progress-circle.js +147 -1
  125. package/dist/components/progress.cjs +52 -1
  126. package/dist/components/progress.d.ts +2 -2
  127. package/dist/components/progress.js +18 -1
  128. package/dist/components/radio-cards.cjs +66 -1
  129. package/dist/components/radio-cards.d.ts +2 -2
  130. package/dist/components/radio-cards.js +29 -1
  131. package/dist/components/radio-group.cjs +59 -1
  132. package/dist/components/radio-group.d.ts +2 -2
  133. package/dist/components/radio-group.js +22 -1
  134. package/dist/components/radio.cjs +47 -1
  135. package/dist/components/radio.d.ts +2 -2
  136. package/dist/components/radio.js +13 -1
  137. package/dist/components/resizable.cjs +71 -1
  138. package/dist/components/resizable.d.ts +8 -8
  139. package/dist/components/resizable.js +31 -1
  140. package/dist/components/scroll-area.cjs +140 -1
  141. package/dist/components/scroll-area.d.ts +5 -5
  142. package/dist/components/scroll-area.js +100 -1
  143. package/dist/components/select.cjs +180 -1
  144. package/dist/components/select.d.ts +5 -5
  145. package/dist/components/select.js +119 -1
  146. package/dist/components/separator.cjs +82 -1
  147. package/dist/components/separator.d.ts +5 -5
  148. package/dist/components/separator.js +42 -1
  149. package/dist/components/sheet.cjs +184 -1
  150. package/dist/components/sheet.d.ts +9 -9
  151. package/dist/components/sheet.js +123 -1
  152. package/dist/components/sidebar.cjs +506 -1
  153. package/dist/components/sidebar.d.ts +31 -31
  154. package/dist/components/sidebar.js +400 -1
  155. package/dist/components/skeleton.cjs +44 -1
  156. package/dist/components/skeleton.d.ts +2 -2
  157. package/dist/components/skeleton.js +10 -1
  158. package/dist/components/slider.cjs +79 -1
  159. package/dist/components/slider.d.ts +2 -2
  160. package/dist/components/slider.js +45 -1
  161. package/dist/components/sonner.cjs +57 -1
  162. package/dist/components/sonner.d.ts +3 -3
  163. package/dist/components/sonner.js +17 -1
  164. package/dist/components/spinner.cjs +75 -1
  165. package/dist/components/spinner.d.ts +2 -2
  166. package/dist/components/spinner.js +41 -1
  167. package/dist/components/switch.cjs +49 -1
  168. package/dist/components/switch.d.ts +2 -2
  169. package/dist/components/switch.js +15 -1
  170. package/dist/components/table.cjs +118 -1
  171. package/dist/components/table.d.ts +9 -9
  172. package/dist/components/table.js +63 -1
  173. package/dist/components/tabs.cjs +75 -1
  174. package/dist/components/tabs.d.ts +3 -3
  175. package/dist/components/tabs.js +32 -1
  176. package/dist/components/textarea.cjs +44 -1
  177. package/dist/components/textarea.d.ts +2 -2
  178. package/dist/components/textarea.js +10 -1
  179. package/dist/components/toggle-group.cjs +90 -1
  180. package/dist/components/toggle-group.d.ts +10 -12
  181. package/dist/components/toggle-group.js +53 -1
  182. package/dist/components/toggle.cjs +71 -1
  183. package/dist/components/toggle.d.ts +10 -12
  184. package/dist/components/toggle.js +34 -1
  185. package/dist/components/tooltip.cjs +90 -1
  186. package/dist/components/tooltip.d.ts +3 -3
  187. package/dist/components/tooltip.js +44 -1
  188. package/dist/css/amber.css +95 -1
  189. package/dist/css/blue.css +95 -1
  190. package/dist/css/cyan.css +95 -1
  191. package/dist/css/emerald.css +95 -1
  192. package/dist/css/fuchsia.css +95 -1
  193. package/dist/css/gray.css +95 -1
  194. package/dist/css/green.css +95 -1
  195. package/dist/css/indigo.css +95 -1
  196. package/dist/css/lime.css +95 -1
  197. package/dist/css/neutral.css +95 -1
  198. package/dist/css/orange.css +95 -1
  199. package/dist/css/pink.css +95 -1
  200. package/dist/css/preset.css +118 -1
  201. package/dist/css/purple.css +95 -1
  202. package/dist/css/red.css +95 -1
  203. package/dist/css/rose.css +95 -1
  204. package/dist/css/sky.css +95 -1
  205. package/dist/css/slate.css +95 -1
  206. package/dist/css/stone.css +95 -1
  207. package/dist/css/style.css +3 -1
  208. package/dist/css/teal.css +95 -1
  209. package/dist/css/violet.css +95 -1
  210. package/dist/css/yellow.css +95 -1
  211. package/dist/css/zinc.css +95 -1
  212. package/dist/hooks/use-animated-value.cjs +74 -1
  213. package/dist/hooks/use-animated-value.d.ts +9 -10
  214. package/dist/hooks/use-animated-value.js +40 -1
  215. package/dist/hooks/use-copy-to-clipboard.cjs +57 -1
  216. package/dist/hooks/use-copy-to-clipboard.d.ts +18 -1
  217. package/dist/hooks/use-copy-to-clipboard.js +23 -1
  218. package/dist/hooks/use-is-mobile.cjs +39 -1
  219. package/dist/hooks/use-is-mobile.d.ts +15 -6
  220. package/dist/hooks/use-is-mobile.js +5 -1
  221. package/dist/hooks/use-media-query.cjs +56 -1
  222. package/dist/hooks/use-media-query.d.ts +11 -3
  223. package/dist/hooks/use-media-query.js +22 -1
  224. package/dist/hooks/use-mutation-observer.cjs +56 -1
  225. package/dist/hooks/use-mutation-observer.d.ts +8 -12
  226. package/dist/hooks/use-mutation-observer.js +22 -1
  227. package/dist/hooks/use-pagination.cjs +92 -1
  228. package/dist/hooks/use-pagination.d.ts +12 -10
  229. package/dist/hooks/use-pagination.js +55 -1
  230. package/dist/index.cjs +1081 -1
  231. package/dist/index.d.ts +130 -131
  232. package/dist/index.js +69 -1
  233. package/dist/primitives/checkbox-group.cjs +151 -1
  234. package/dist/primitives/checkbox-group.d.ts +11 -11
  235. package/dist/primitives/checkbox-group.js +99 -1
  236. package/dist/primitives/input-number.cjs +439 -1
  237. package/dist/primitives/input-number.d.ts +8 -8
  238. package/dist/primitives/input-number.js +381 -1
  239. package/dist/primitives/input.cjs +99 -1
  240. package/dist/primitives/input.d.ts +4 -4
  241. package/dist/primitives/input.js +53 -1
  242. package/dist/primitives/progress-circle.cjs +198 -1
  243. package/dist/primitives/progress-circle.d.ts +7 -7
  244. package/dist/primitives/progress-circle.js +128 -1
  245. package/package.json +385 -38
@@ -1,7 +1,7 @@
1
- import type { ComponentProps, JSX } from "react";
2
- import { Drawer as DrawerPrimitive } from "vaul";
3
- import type { VariantProps } from "@codefast/tailwind-variants";
4
- import { buttonVariants } from "./button";
1
+ import type { VariantProps } from '@codefast/tailwind-variants';
2
+ import type { ComponentProps, JSX } from 'react';
3
+ import { Drawer as DrawerPrimitive } from 'vaul';
4
+ import { buttonVariants } from './button';
5
5
  type DrawerProps = ComponentProps<typeof DrawerPrimitive.Root>;
6
6
  declare function Drawer({ shouldScaleBackground, ...props }: DrawerProps): JSX.Element;
7
7
  type DrawerTriggerProps = ComponentProps<typeof DrawerPrimitive.Trigger>;
@@ -14,19 +14,19 @@ interface DrawerContentProps extends ComponentProps<typeof DrawerPrimitive.Conte
14
14
  };
15
15
  }
16
16
  declare function DrawerContent({ children, className, classNames, ...props }: DrawerContentProps): JSX.Element;
17
- type DrawerHeaderProps = ComponentProps<"div">;
17
+ type DrawerHeaderProps = ComponentProps<'div'>;
18
18
  declare function DrawerHeader({ className, ...props }: DrawerHeaderProps): JSX.Element;
19
- type DrawerBodyProps = ComponentProps<"div">;
19
+ type DrawerBodyProps = ComponentProps<'div'>;
20
20
  declare function DrawerBody({ className, ...props }: DrawerBodyProps): JSX.Element;
21
- type DrawerFooterProps = ComponentProps<"div">;
21
+ type DrawerFooterProps = ComponentProps<'div'>;
22
22
  declare function DrawerFooter({ className, ...props }: DrawerFooterProps): JSX.Element;
23
23
  type DrawerTitleProps = ComponentProps<typeof DrawerPrimitive.Title>;
24
24
  declare function DrawerTitle({ className, ...props }: DrawerTitleProps): JSX.Element;
25
25
  type DrawerDescriptionProps = ComponentProps<typeof DrawerPrimitive.Description>;
26
26
  declare function DrawerDescription({ className, ...props }: DrawerDescriptionProps): JSX.Element;
27
27
  interface DrawerCloseProps extends ComponentProps<typeof DrawerPrimitive.Close> {
28
- size?: VariantProps<typeof buttonVariants>["size"];
29
- variant?: VariantProps<typeof buttonVariants>["variant"];
28
+ size?: VariantProps<typeof buttonVariants>['size'];
29
+ variant?: VariantProps<typeof buttonVariants>['variant'];
30
30
  }
31
31
  declare function DrawerClose({ className, size, variant, ...props }: DrawerCloseProps): JSX.Element;
32
32
  export { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, };
@@ -1,2 +1,86 @@
1
1
  "use client";
2
- import{jsx as r,jsxs as a}from"react/jsx-runtime";import{Drawer as t}from"vaul";import{buttonVariants as e}from"./button.js";import{cn as o}from"@codefast/tailwind-variants";function d({shouldScaleBackground:a=!0,...e}){return r(t.Root,{"data-slot":"drawer",shouldScaleBackground:a,...e})}function i({...a}){return r(t.Trigger,{"data-slot":"drawer-trigger",...a})}function n({children:e,className:d,classNames:i,...n}){return a(t.Portal,{children:[r(t.Overlay,{className:o("fixed inset-0 z-50 bg-black/50",i?.overlay),"data-slot":"drawer-overlay"}),a(t.Content,{className:o("group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",i?.content,d),"data-slot":"drawer-content",...n,children:[r("div",{className:o("bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block",i?.handle)}),e]})]})}function l({className:a,...t}){return r("div",{className:o("flex flex-col gap-1.5 p-4",a),"data-slot":"drawer-header",...t})}function u({className:a,...t}){return r("main",{className:o("overflow-auto px-4 py-2",a),"data-slot":"drawer-body",...t})}function c({className:a,...t}){return r("div",{className:o("mt-auto flex flex-col gap-2 p-4",a),"data-slot":"drawer-footer",...t})}function s({className:a,...e}){return r(t.Title,{className:o("text-foreground font-semibold",a),"data-slot":"drawer-title",...e})}function w({className:a,...e}){return r(t.Description,{className:o("text-muted-foreground text-sm",a),"data-slot":"drawer-description",...e})}function m({className:a,size:o,variant:d="outline",...i}){return r(t.Close,{className:e({className:a,size:o,variant:d}),"data-slot":"drawer-close",...i})}export{d as Drawer,u as DrawerBody,m as DrawerClose,n as DrawerContent,w as DrawerDescription,c as DrawerFooter,l as DrawerHeader,s as DrawerTitle,i as DrawerTrigger};
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@codefast/tailwind-variants";
4
+ import { Drawer } from "vaul";
5
+ import { buttonVariants } from "./button.js";
6
+ function drawer_Drawer({ shouldScaleBackground = true, ...props }) {
7
+ return /*#__PURE__*/ jsx(Drawer.Root, {
8
+ "data-slot": "drawer",
9
+ shouldScaleBackground: shouldScaleBackground,
10
+ ...props
11
+ });
12
+ }
13
+ function DrawerTrigger({ ...props }) {
14
+ return /*#__PURE__*/ jsx(Drawer.Trigger, {
15
+ "data-slot": "drawer-trigger",
16
+ ...props
17
+ });
18
+ }
19
+ function DrawerContent({ children, className, classNames, ...props }) {
20
+ return /*#__PURE__*/ jsxs(Drawer.Portal, {
21
+ children: [
22
+ /*#__PURE__*/ jsx(Drawer.Overlay, {
23
+ className: cn('fixed inset-0 z-50 bg-black/50', classNames?.overlay),
24
+ "data-slot": "drawer-overlay"
25
+ }),
26
+ /*#__PURE__*/ jsxs(Drawer.Content, {
27
+ className: cn('group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm', classNames?.content, className),
28
+ "data-slot": "drawer-content",
29
+ ...props,
30
+ children: [
31
+ /*#__PURE__*/ jsx("div", {
32
+ className: cn('bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block', classNames?.handle)
33
+ }),
34
+ children
35
+ ]
36
+ })
37
+ ]
38
+ });
39
+ }
40
+ function DrawerHeader({ className, ...props }) {
41
+ return /*#__PURE__*/ jsx("div", {
42
+ className: cn('flex flex-col gap-1.5 p-4', className),
43
+ "data-slot": "drawer-header",
44
+ ...props
45
+ });
46
+ }
47
+ function DrawerBody({ className, ...props }) {
48
+ return /*#__PURE__*/ jsx("main", {
49
+ className: cn('overflow-auto px-4 py-2', className),
50
+ "data-slot": "drawer-body",
51
+ ...props
52
+ });
53
+ }
54
+ function DrawerFooter({ className, ...props }) {
55
+ return /*#__PURE__*/ jsx("div", {
56
+ className: cn('mt-auto flex flex-col gap-2 p-4', className),
57
+ "data-slot": "drawer-footer",
58
+ ...props
59
+ });
60
+ }
61
+ function DrawerTitle({ className, ...props }) {
62
+ return /*#__PURE__*/ jsx(Drawer.Title, {
63
+ className: cn('text-foreground font-semibold', className),
64
+ "data-slot": "drawer-title",
65
+ ...props
66
+ });
67
+ }
68
+ function DrawerDescription({ className, ...props }) {
69
+ return /*#__PURE__*/ jsx(Drawer.Description, {
70
+ className: cn('text-muted-foreground text-sm', className),
71
+ "data-slot": "drawer-description",
72
+ ...props
73
+ });
74
+ }
75
+ function DrawerClose({ className, size, variant = 'outline', ...props }) {
76
+ return /*#__PURE__*/ jsx(Drawer.Close, {
77
+ className: buttonVariants({
78
+ className,
79
+ size,
80
+ variant
81
+ }),
82
+ "data-slot": "drawer-close",
83
+ ...props
84
+ });
85
+ }
86
+ export { drawer_Drawer as Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger };
@@ -1,2 +1,222 @@
1
+ "use strict";
1
2
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DropdownMenuLabel:()=>DropdownMenuLabel,DropdownMenuArrow:()=>DropdownMenuArrow,DropdownMenuTrigger:()=>DropdownMenuTrigger,DropdownMenuItem:()=>DropdownMenuItem,DropdownMenuShortcut:()=>DropdownMenuShortcut,DropdownMenu:()=>DropdownMenu,DropdownMenuGroup:()=>DropdownMenuGroup,DropdownMenuCheckboxItem:()=>DropdownMenuCheckboxItem,DropdownMenuSub:()=>DropdownMenuSub,DropdownMenuSubContent:()=>DropdownMenuSubContent,DropdownMenuSeparator:()=>DropdownMenuSeparator,DropdownMenuSubTrigger:()=>DropdownMenuSubTrigger,DropdownMenuRadioGroup:()=>DropdownMenuRadioGroup,DropdownMenuRadioItem:()=>DropdownMenuRadioItem,DropdownMenuContent:()=>DropdownMenuContent});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_dropdown_menu_namespaceObject=require("@radix-ui/react-dropdown-menu");function DropdownMenu({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Root,{"data-slot":"dropdown-menu",...e})}function DropdownMenuTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function DropdownMenuGroup({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Group,{"data-slot":"dropdown-menu-group",...e})}function DropdownMenuSub({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Sub,{"data-slot":"dropdown-menu-sub",...e})}function DropdownMenuRadioGroup({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function DropdownMenuSubTrigger({children:e,className:t,inset:o,...n}){return(0,jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.SubTrigger,{className:(0,tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8",t),"data-inset":o,"data-slot":"dropdown-menu-sub-trigger",...n,children:[e,(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon,{className:"ml-auto size-4"})]})}function DropdownMenuSubContent({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal,{children:(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.SubContent,{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui z-50 min-w-32 rounded-lg border p-1 shadow-lg",e),"data-slot":"dropdown-menu-sub-content",...t})})}function DropdownMenuContent({className:e,sideOffset:t=4,...o}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal,{children:(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Content,{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui z-50 min-w-32 rounded-lg border p-1 shadow-lg",e),"data-slot":"dropdown-menu-content",sideOffset:t,...o})})}function DropdownMenuItem({className:e,inset:t,variant:o,...n}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Item,{className:(0,tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 data-inset:pl-8 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),"data-inset":t,"data-slot":"dropdown-menu-item","data-variant":o,...n})}function DropdownMenuCheckboxItem({checked:e,children:t,className:o,...n}){return(0,jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.CheckboxItem,{checked:e,className:(0,tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),"data-slot":"dropdown-menu-checkbox-item",...n,children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"absolute left-2 flex items-center justify-center",children:(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator,{children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon,{className:"size-4"})})}),t]})}function DropdownMenuRadioItem({children:e,className:t,...o}){return(0,jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.RadioItem,{className:(0,tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),"data-slot":"dropdown-menu-radio-item",...o,children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"absolute left-2 flex items-center justify-center",children:(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator,{children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.DotIcon,{className:"size-4 fill-current"})})}),e]})}function DropdownMenuLabel({className:e,inset:t,...o}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Label,{className:(0,tailwind_variants_namespaceObject.cn)("flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold data-inset:pl-8",e),"data-inset":t,"data-slot":"dropdown-menu-label",...o})}function DropdownMenuSeparator({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Separator,{className:(0,tailwind_variants_namespaceObject.cn)("bg-border mx-2 my-1 h-px",e),"data-slot":"dropdown-menu-separator",...t})}function DropdownMenuShortcut({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("span",{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground group-data-[variant=destructive]/dropdown-menu-item:text-destructive/80 ml-auto text-xs tracking-widest",e),"data-slot":"dropdown-menu-shortcut",...t})}function DropdownMenuArrow({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Arrow,{className:(0,tailwind_variants_namespaceObject.cn)("fill-popover",e),"data-slot":"dropdown-menu-arrow",...t})}for(var __webpack_i__ in exports.DropdownMenu=__webpack_exports__.DropdownMenu,exports.DropdownMenuArrow=__webpack_exports__.DropdownMenuArrow,exports.DropdownMenuCheckboxItem=__webpack_exports__.DropdownMenuCheckboxItem,exports.DropdownMenuContent=__webpack_exports__.DropdownMenuContent,exports.DropdownMenuGroup=__webpack_exports__.DropdownMenuGroup,exports.DropdownMenuItem=__webpack_exports__.DropdownMenuItem,exports.DropdownMenuLabel=__webpack_exports__.DropdownMenuLabel,exports.DropdownMenuRadioGroup=__webpack_exports__.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=__webpack_exports__.DropdownMenuRadioItem,exports.DropdownMenuSeparator=__webpack_exports__.DropdownMenuSeparator,exports.DropdownMenuShortcut=__webpack_exports__.DropdownMenuShortcut,exports.DropdownMenuSub=__webpack_exports__.DropdownMenuSub,exports.DropdownMenuSubContent=__webpack_exports__.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=__webpack_exports__.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=__webpack_exports__.DropdownMenuTrigger,__webpack_exports__)-1===["DropdownMenu","DropdownMenuArrow","DropdownMenuCheckboxItem","DropdownMenuContent","DropdownMenuGroup","DropdownMenuItem","DropdownMenuLabel","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSub","DropdownMenuSubContent","DropdownMenuSubTrigger","DropdownMenuTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
+ var __webpack_require__ = {};
4
+ (()=>{
5
+ __webpack_require__.d = (exports1, definition)=>{
6
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ get: definition[key]
9
+ });
10
+ };
11
+ })();
12
+ (()=>{
13
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
14
+ })();
15
+ (()=>{
16
+ __webpack_require__.r = (exports1)=>{
17
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
18
+ value: 'Module'
19
+ });
20
+ Object.defineProperty(exports1, '__esModule', {
21
+ value: true
22
+ });
23
+ };
24
+ })();
25
+ var __webpack_exports__ = {};
26
+ __webpack_require__.r(__webpack_exports__);
27
+ __webpack_require__.d(__webpack_exports__, {
28
+ DropdownMenuLabel: ()=>DropdownMenuLabel,
29
+ DropdownMenuArrow: ()=>DropdownMenuArrow,
30
+ DropdownMenuTrigger: ()=>DropdownMenuTrigger,
31
+ DropdownMenuItem: ()=>DropdownMenuItem,
32
+ DropdownMenuShortcut: ()=>DropdownMenuShortcut,
33
+ DropdownMenu: ()=>DropdownMenu,
34
+ DropdownMenuGroup: ()=>DropdownMenuGroup,
35
+ DropdownMenuCheckboxItem: ()=>DropdownMenuCheckboxItem,
36
+ DropdownMenuSub: ()=>DropdownMenuSub,
37
+ DropdownMenuSubContent: ()=>DropdownMenuSubContent,
38
+ DropdownMenuSeparator: ()=>DropdownMenuSeparator,
39
+ DropdownMenuSubTrigger: ()=>DropdownMenuSubTrigger,
40
+ DropdownMenuRadioGroup: ()=>DropdownMenuRadioGroup,
41
+ DropdownMenuRadioItem: ()=>DropdownMenuRadioItem,
42
+ DropdownMenuContent: ()=>DropdownMenuContent
43
+ });
44
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
45
+ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
46
+ const react_dropdown_menu_namespaceObject = require("@radix-ui/react-dropdown-menu");
47
+ const external_lucide_react_namespaceObject = require("lucide-react");
48
+ function DropdownMenu({ ...props }) {
49
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Root, {
50
+ "data-slot": "dropdown-menu",
51
+ ...props
52
+ });
53
+ }
54
+ function DropdownMenuTrigger({ ...props }) {
55
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Trigger, {
56
+ "data-slot": "dropdown-menu-trigger",
57
+ ...props
58
+ });
59
+ }
60
+ function DropdownMenuGroup({ ...props }) {
61
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Group, {
62
+ "data-slot": "dropdown-menu-group",
63
+ ...props
64
+ });
65
+ }
66
+ function DropdownMenuSub({ ...props }) {
67
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Sub, {
68
+ "data-slot": "dropdown-menu-sub",
69
+ ...props
70
+ });
71
+ }
72
+ function DropdownMenuRadioGroup({ ...props }) {
73
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.RadioGroup, {
74
+ "data-slot": "dropdown-menu-radio-group",
75
+ ...props
76
+ });
77
+ }
78
+ function DropdownMenuSubTrigger({ children, className, inset, ...props }) {
79
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.SubTrigger, {
80
+ className: (0, tailwind_variants_namespaceObject.cn)('focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8', className),
81
+ "data-inset": inset,
82
+ "data-slot": "dropdown-menu-sub-trigger",
83
+ ...props,
84
+ children: [
85
+ children,
86
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronRightIcon, {
87
+ className: "ml-auto size-4"
88
+ })
89
+ ]
90
+ });
91
+ }
92
+ function DropdownMenuSubContent({ className, ...props }) {
93
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal, {
94
+ "data-slot": "dropdown-menu-portal",
95
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.SubContent, {
96
+ className: (0, tailwind_variants_namespaceObject.cn)('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui z-50 min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg', className),
97
+ "data-slot": "dropdown-menu-sub-content",
98
+ ...props
99
+ })
100
+ });
101
+ }
102
+ function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
103
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Portal, {
104
+ "data-slot": "dropdown-menu-portal",
105
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Content, {
106
+ className: (0, tailwind_variants_namespaceObject.cn)('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border p-1 shadow-lg', className),
107
+ "data-slot": "dropdown-menu-content",
108
+ sideOffset: sideOffset,
109
+ ...props
110
+ })
111
+ });
112
+ }
113
+ function DropdownMenuItem({ className, inset, variant, ...props }) {
114
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Item, {
115
+ className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 data-inset:pl-8 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
116
+ "data-inset": inset,
117
+ "data-slot": "dropdown-menu-item",
118
+ "data-variant": variant,
119
+ ...props
120
+ });
121
+ }
122
+ function DropdownMenuCheckboxItem({ checked, children, className, ...props }) {
123
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.CheckboxItem, {
124
+ checked: checked,
125
+ className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
126
+ "data-slot": "dropdown-menu-checkbox-item",
127
+ ...props,
128
+ children: [
129
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
130
+ className: "absolute left-2 flex items-center justify-center",
131
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator, {
132
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckIcon, {
133
+ className: "size-4"
134
+ })
135
+ })
136
+ }),
137
+ children
138
+ ]
139
+ });
140
+ }
141
+ function DropdownMenuRadioItem({ children, className, ...props }) {
142
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_dropdown_menu_namespaceObject.RadioItem, {
143
+ className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
144
+ "data-slot": "dropdown-menu-radio-item",
145
+ ...props,
146
+ children: [
147
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
148
+ className: "absolute left-2 flex items-center justify-center",
149
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.ItemIndicator, {
150
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.DotIcon, {
151
+ className: "size-4 fill-current"
152
+ })
153
+ })
154
+ }),
155
+ children
156
+ ]
157
+ });
158
+ }
159
+ function DropdownMenuLabel({ className, inset, ...props }) {
160
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Label, {
161
+ className: (0, tailwind_variants_namespaceObject.cn)('flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold data-inset:pl-8', className),
162
+ "data-inset": inset,
163
+ "data-slot": "dropdown-menu-label",
164
+ ...props
165
+ });
166
+ }
167
+ function DropdownMenuSeparator({ className, ...props }) {
168
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Separator, {
169
+ className: (0, tailwind_variants_namespaceObject.cn)('bg-border mx-2 my-1 h-px', className),
170
+ "data-slot": "dropdown-menu-separator",
171
+ ...props
172
+ });
173
+ }
174
+ function DropdownMenuShortcut({ className, ...props }) {
175
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
176
+ className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground group-data-[variant=destructive]/dropdown-menu-item:text-destructive/80 ml-auto text-xs tracking-widest', className),
177
+ "data-slot": "dropdown-menu-shortcut",
178
+ ...props
179
+ });
180
+ }
181
+ function DropdownMenuArrow({ className, ...props }) {
182
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_dropdown_menu_namespaceObject.Arrow, {
183
+ className: (0, tailwind_variants_namespaceObject.cn)('fill-popover', className),
184
+ "data-slot": "dropdown-menu-arrow",
185
+ ...props
186
+ });
187
+ }
188
+ exports.DropdownMenu = __webpack_exports__.DropdownMenu;
189
+ exports.DropdownMenuArrow = __webpack_exports__.DropdownMenuArrow;
190
+ exports.DropdownMenuCheckboxItem = __webpack_exports__.DropdownMenuCheckboxItem;
191
+ exports.DropdownMenuContent = __webpack_exports__.DropdownMenuContent;
192
+ exports.DropdownMenuGroup = __webpack_exports__.DropdownMenuGroup;
193
+ exports.DropdownMenuItem = __webpack_exports__.DropdownMenuItem;
194
+ exports.DropdownMenuLabel = __webpack_exports__.DropdownMenuLabel;
195
+ exports.DropdownMenuRadioGroup = __webpack_exports__.DropdownMenuRadioGroup;
196
+ exports.DropdownMenuRadioItem = __webpack_exports__.DropdownMenuRadioItem;
197
+ exports.DropdownMenuSeparator = __webpack_exports__.DropdownMenuSeparator;
198
+ exports.DropdownMenuShortcut = __webpack_exports__.DropdownMenuShortcut;
199
+ exports.DropdownMenuSub = __webpack_exports__.DropdownMenuSub;
200
+ exports.DropdownMenuSubContent = __webpack_exports__.DropdownMenuSubContent;
201
+ exports.DropdownMenuSubTrigger = __webpack_exports__.DropdownMenuSubTrigger;
202
+ exports.DropdownMenuTrigger = __webpack_exports__.DropdownMenuTrigger;
203
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
204
+ "DropdownMenu",
205
+ "DropdownMenuArrow",
206
+ "DropdownMenuCheckboxItem",
207
+ "DropdownMenuContent",
208
+ "DropdownMenuGroup",
209
+ "DropdownMenuItem",
210
+ "DropdownMenuLabel",
211
+ "DropdownMenuRadioGroup",
212
+ "DropdownMenuRadioItem",
213
+ "DropdownMenuSeparator",
214
+ "DropdownMenuShortcut",
215
+ "DropdownMenuSub",
216
+ "DropdownMenuSubContent",
217
+ "DropdownMenuSubTrigger",
218
+ "DropdownMenuTrigger"
219
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
220
+ Object.defineProperty(exports, '__esModule', {
221
+ value: true
222
+ });
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from "react";
2
- import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1
+ import type { ComponentProps, JSX } from 'react';
2
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
3
  type DropdownMenuProps = ComponentProps<typeof DropdownMenuPrimitive.Root>;
4
4
  declare function DropdownMenu({ ...props }: DropdownMenuProps): JSX.Element;
5
5
  type DropdownMenuTriggerProps = ComponentProps<typeof DropdownMenuPrimitive.Trigger>;
@@ -20,7 +20,7 @@ type DropdownMenuContentProps = ComponentProps<typeof DropdownMenuPrimitive.Cont
20
20
  declare function DropdownMenuContent({ className, sideOffset, ...props }: DropdownMenuContentProps): JSX.Element;
21
21
  interface DropdownMenuItemProps extends ComponentProps<typeof DropdownMenuPrimitive.Item> {
22
22
  inset?: boolean;
23
- variant?: "default" | "destructive";
23
+ variant?: 'default' | 'destructive';
24
24
  }
25
25
  declare function DropdownMenuItem({ className, inset, variant, ...props }: DropdownMenuItemProps): JSX.Element;
26
26
  type DropdownMenuCheckboxItemProps = ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>;
@@ -33,7 +33,7 @@ interface DropdownMenuLabelProps extends ComponentProps<typeof DropdownMenuPrimi
33
33
  declare function DropdownMenuLabel({ className, inset, ...props }: DropdownMenuLabelProps): JSX.Element;
34
34
  type DropdownMenuSeparatorProps = ComponentProps<typeof DropdownMenuPrimitive.Separator>;
35
35
  declare function DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps): JSX.Element;
36
- type DropdownMenuShortcutProps = ComponentProps<"span">;
36
+ type DropdownMenuShortcutProps = ComponentProps<'span'>;
37
37
  declare function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): JSX.Element;
38
38
  type DropdownMenuArrowProps = ComponentProps<typeof DropdownMenuPrimitive.Arrow>;
39
39
  declare function DropdownMenuArrow({ className, ...props }: DropdownMenuArrowProps): JSX.Element;
@@ -1,2 +1,146 @@
1
1
  "use client";
2
- import{jsx as t,jsxs as e}from"react/jsx-runtime";import{CheckIcon as a,ChevronRightIcon as o,DotIcon as d}from"lucide-react";import{cn as n}from"@codefast/tailwind-variants";import{Arrow as s,CheckboxItem as r,Content as i,Group as u,Item as c,ItemIndicator as l,Label as p,Portal as m,RadioGroup as f,RadioItem as g,Root as w,Separator as x,Sub as b,SubContent as v,SubTrigger as h,Trigger as z}from"@radix-ui/react-dropdown-menu";function D({...e}){return t(w,{"data-slot":"dropdown-menu",...e})}function M({...e}){return t(z,{"data-slot":"dropdown-menu-trigger",...e})}function N({...e}){return t(u,{"data-slot":"dropdown-menu-group",...e})}function y({...e}){return t(b,{"data-slot":"dropdown-menu-sub",...e})}function k({...e}){return t(f,{"data-slot":"dropdown-menu-radio-group",...e})}function _({children:a,className:d,inset:s,...r}){return e(h,{className:n("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8",d),"data-inset":s,"data-slot":"dropdown-menu-sub-trigger",...r,children:[a,t(o,{className:"ml-auto size-4"})]})}function S({className:e,...a}){return t(m,{children:t(v,{className:n("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui z-50 min-w-32 rounded-lg border p-1 shadow-lg",e),"data-slot":"dropdown-menu-sub-content",...a})})}function j({className:e,sideOffset:a=4,...o}){return t(m,{children:t(i,{className:n("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui z-50 min-w-32 rounded-lg border p-1 shadow-lg",e),"data-slot":"dropdown-menu-content",sideOffset:a,...o})})}function C({className:e,inset:a,variant:o,...d}){return t(c,{className:n("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 data-inset:pl-8 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),"data-inset":a,"data-slot":"dropdown-menu-item","data-variant":o,...d})}function I({checked:o,children:d,className:s,...i}){return e(r,{checked:o,className:n("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),"data-slot":"dropdown-menu-checkbox-item",...i,children:[t("span",{className:"absolute left-2 flex items-center justify-center",children:t(l,{children:t(a,{className:"size-4"})})}),d]})}function G({children:a,className:o,...s}){return e(g,{className:n("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),"data-slot":"dropdown-menu-radio-item",...s,children:[t("span",{className:"absolute left-2 flex items-center justify-center",children:t(l,{children:t(d,{className:"size-4 fill-current"})})}),a]})}function R({className:e,inset:a,...o}){return t(p,{className:n("flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold data-inset:pl-8",e),"data-inset":a,"data-slot":"dropdown-menu-label",...o})}function T({className:e,...a}){return t(x,{className:n("bg-border mx-2 my-1 h-px",e),"data-slot":"dropdown-menu-separator",...a})}function A({className:e,...a}){return t("span",{className:n("text-muted-foreground group-data-[variant=destructive]/dropdown-menu-item:text-destructive/80 ml-auto text-xs tracking-widest",e),"data-slot":"dropdown-menu-shortcut",...a})}function L({className:e,...a}){return t(s,{className:n("fill-popover",e),"data-slot":"dropdown-menu-arrow",...a})}export{D as DropdownMenu,L as DropdownMenuArrow,I as DropdownMenuCheckboxItem,j as DropdownMenuContent,N as DropdownMenuGroup,C as DropdownMenuItem,R as DropdownMenuLabel,k as DropdownMenuRadioGroup,G as DropdownMenuRadioItem,T as DropdownMenuSeparator,A as DropdownMenuShortcut,y as DropdownMenuSub,S as DropdownMenuSubContent,_ as DropdownMenuSubTrigger,M as DropdownMenuTrigger};
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cn } from "@codefast/tailwind-variants";
4
+ import { Arrow, CheckboxItem, Content, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger } from "@radix-ui/react-dropdown-menu";
5
+ import { CheckIcon, ChevronRightIcon, DotIcon } from "lucide-react";
6
+ function DropdownMenu({ ...props }) {
7
+ return /*#__PURE__*/ jsx(Root, {
8
+ "data-slot": "dropdown-menu",
9
+ ...props
10
+ });
11
+ }
12
+ function DropdownMenuTrigger({ ...props }) {
13
+ return /*#__PURE__*/ jsx(Trigger, {
14
+ "data-slot": "dropdown-menu-trigger",
15
+ ...props
16
+ });
17
+ }
18
+ function DropdownMenuGroup({ ...props }) {
19
+ return /*#__PURE__*/ jsx(Group, {
20
+ "data-slot": "dropdown-menu-group",
21
+ ...props
22
+ });
23
+ }
24
+ function DropdownMenuSub({ ...props }) {
25
+ return /*#__PURE__*/ jsx(Sub, {
26
+ "data-slot": "dropdown-menu-sub",
27
+ ...props
28
+ });
29
+ }
30
+ function DropdownMenuRadioGroup({ ...props }) {
31
+ return /*#__PURE__*/ jsx(RadioGroup, {
32
+ "data-slot": "dropdown-menu-radio-group",
33
+ ...props
34
+ });
35
+ }
36
+ function DropdownMenuSubTrigger({ children, className, inset, ...props }) {
37
+ return /*#__PURE__*/ jsxs(SubTrigger, {
38
+ className: cn('focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8', className),
39
+ "data-inset": inset,
40
+ "data-slot": "dropdown-menu-sub-trigger",
41
+ ...props,
42
+ children: [
43
+ children,
44
+ /*#__PURE__*/ jsx(ChevronRightIcon, {
45
+ className: "ml-auto size-4"
46
+ })
47
+ ]
48
+ });
49
+ }
50
+ function DropdownMenuSubContent({ className, ...props }) {
51
+ return /*#__PURE__*/ jsx(Portal, {
52
+ "data-slot": "dropdown-menu-portal",
53
+ children: /*#__PURE__*/ jsx(SubContent, {
54
+ className: cn('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui z-50 min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg', className),
55
+ "data-slot": "dropdown-menu-sub-content",
56
+ ...props
57
+ })
58
+ });
59
+ }
60
+ function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
61
+ return /*#__PURE__*/ jsx(Portal, {
62
+ "data-slot": "dropdown-menu-portal",
63
+ children: /*#__PURE__*/ jsx(Content, {
64
+ className: cn('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border p-1 shadow-lg', className),
65
+ "data-slot": "dropdown-menu-content",
66
+ sideOffset: sideOffset,
67
+ ...props
68
+ })
69
+ });
70
+ }
71
+ function DropdownMenuItem({ className, inset, variant, ...props }) {
72
+ return /*#__PURE__*/ jsx(Item, {
73
+ className: cn("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-disabled:opacity-50 data-inset:pl-8 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
74
+ "data-inset": inset,
75
+ "data-slot": "dropdown-menu-item",
76
+ "data-variant": variant,
77
+ ...props
78
+ });
79
+ }
80
+ function DropdownMenuCheckboxItem({ checked, children, className, ...props }) {
81
+ return /*#__PURE__*/ jsxs(CheckboxItem, {
82
+ checked: checked,
83
+ className: cn("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
84
+ "data-slot": "dropdown-menu-checkbox-item",
85
+ ...props,
86
+ children: [
87
+ /*#__PURE__*/ jsx("span", {
88
+ className: "absolute left-2 flex items-center justify-center",
89
+ children: /*#__PURE__*/ jsx(ItemIndicator, {
90
+ children: /*#__PURE__*/ jsx(CheckIcon, {
91
+ className: "size-4"
92
+ })
93
+ })
94
+ }),
95
+ children
96
+ ]
97
+ });
98
+ }
99
+ function DropdownMenuRadioItem({ children, className, ...props }) {
100
+ return /*#__PURE__*/ jsxs(RadioItem, {
101
+ className: cn("focus:bg-accent focus:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-x-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
102
+ "data-slot": "dropdown-menu-radio-item",
103
+ ...props,
104
+ children: [
105
+ /*#__PURE__*/ jsx("span", {
106
+ className: "absolute left-2 flex items-center justify-center",
107
+ children: /*#__PURE__*/ jsx(ItemIndicator, {
108
+ children: /*#__PURE__*/ jsx(DotIcon, {
109
+ className: "size-4 fill-current"
110
+ })
111
+ })
112
+ }),
113
+ children
114
+ ]
115
+ });
116
+ }
117
+ function DropdownMenuLabel({ className, inset, ...props }) {
118
+ return /*#__PURE__*/ jsx(Label, {
119
+ className: cn('flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold data-inset:pl-8', className),
120
+ "data-inset": inset,
121
+ "data-slot": "dropdown-menu-label",
122
+ ...props
123
+ });
124
+ }
125
+ function DropdownMenuSeparator({ className, ...props }) {
126
+ return /*#__PURE__*/ jsx(Separator, {
127
+ className: cn('bg-border mx-2 my-1 h-px', className),
128
+ "data-slot": "dropdown-menu-separator",
129
+ ...props
130
+ });
131
+ }
132
+ function DropdownMenuShortcut({ className, ...props }) {
133
+ return /*#__PURE__*/ jsx("span", {
134
+ className: cn('text-muted-foreground group-data-[variant=destructive]/dropdown-menu-item:text-destructive/80 ml-auto text-xs tracking-widest', className),
135
+ "data-slot": "dropdown-menu-shortcut",
136
+ ...props
137
+ });
138
+ }
139
+ function DropdownMenuArrow({ className, ...props }) {
140
+ return /*#__PURE__*/ jsx(Arrow, {
141
+ className: cn('fill-popover', className),
142
+ "data-slot": "dropdown-menu-arrow",
143
+ ...props
144
+ });
145
+ }
146
+ export { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };