@gv-tech/design-system 2.15.1 → 2.16.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.
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.cjs.map +1 -1
- package/dist/accordion.mjs +11 -11
- package/dist/accordion.mjs.map +1 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.cjs.map +1 -1
- package/dist/alert-dialog.mjs +21 -21
- package/dist/alert-dialog.mjs.map +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.cjs.map +1 -1
- package/dist/avatar.mjs +12 -12
- package/dist/avatar.mjs.map +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.mjs +2 -2
- package/dist/checkbox.mjs.map +1 -1
- package/dist/command.cjs +1 -1
- package/dist/command.cjs.map +1 -1
- package/dist/command.mjs +24 -24
- package/dist/command.mjs.map +1 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.cjs.map +1 -1
- package/dist/context-menu.mjs +42 -42
- package/dist/context-menu.mjs.map +1 -1
- package/dist/design-system.css +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.mjs +18 -18
- package/dist/dialog.mjs.map +1 -1
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.cjs.map +1 -1
- package/dist/drawer.mjs +19 -19
- package/dist/drawer.mjs.map +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.mjs +58 -58
- package/dist/dropdown-menu.mjs.map +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.cjs.map +1 -1
- package/dist/hover-card.mjs +4 -4
- package/dist/hover-card.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +65 -0
- package/dist/index.mjs +37 -35
- package/dist/index.mjs.map +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.cjs.map +1 -1
- package/dist/label.mjs +3 -3
- package/dist/label.mjs.map +1 -1
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.cjs.map +1 -1
- package/dist/menubar.mjs +44 -44
- package/dist/menubar.mjs.map +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.cjs.map +1 -1
- package/dist/navigation-menu.mjs +21 -21
- package/dist/navigation-menu.mjs.map +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +1 -1
- package/dist/popover.cjs +1 -1
- package/dist/popover.cjs.map +1 -1
- package/dist/popover.mjs +8 -8
- package/dist/popover.mjs.map +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.cjs.map +1 -1
- package/dist/progress.mjs +9 -9
- package/dist/progress.mjs.map +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.cjs.map +1 -1
- package/dist/radio-group.mjs +8 -8
- package/dist/radio-group.mjs.map +1 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.cjs.map +1 -1
- package/dist/scroll-area.mjs +11 -11
- package/dist/scroll-area.mjs.map +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.cjs.map +1 -1
- package/dist/search.d.ts +1 -0
- package/dist/search.mjs +50 -37
- package/dist/search.mjs.map +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.cjs.map +1 -1
- package/dist/select.mjs +38 -38
- package/dist/select.mjs.map +1 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.cjs.map +1 -1
- package/dist/separator.mjs +7 -7
- package/dist/separator.mjs.map +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.cjs.map +1 -1
- package/dist/sheet.mjs +17 -17
- package/dist/sheet.mjs.map +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.mjs +2 -2
- package/dist/slider.mjs.map +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.cjs.map +1 -1
- package/dist/switch.mjs +7 -7
- package/dist/switch.mjs.map +1 -1
- package/dist/table-of-contents.cjs +2 -0
- package/dist/table-of-contents.cjs.map +1 -0
- package/dist/table-of-contents.d.ts +68 -0
- package/dist/table-of-contents.mjs +161 -0
- package/dist/table-of-contents.mjs.map +1 -0
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.cjs.map +1 -1
- package/dist/tabs.mjs +13 -13
- package/dist/tabs.mjs.map +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-CEOvAx_E.js → theme-toggle-B3z50t2s.js} +2 -2
- package/dist/{theme-toggle-CEOvAx_E.js.map → theme-toggle-B3z50t2s.js.map} +1 -1
- package/dist/{theme-toggle-B1DHy3Aq.mjs → theme-toggle-BUU8zhDg.mjs} +2 -2
- package/dist/{theme-toggle-B1DHy3Aq.mjs.map → theme-toggle-BUU8zhDg.mjs.map} +1 -1
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.cjs.map +1 -1
- package/dist/toast.mjs +17 -17
- package/dist/toast.mjs.map +1 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.cjs.map +1 -1
- package/dist/toggle-group.mjs +18 -18
- package/dist/toggle-group.mjs.map +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.cjs.map +1 -1
- package/dist/toggle.mjs +6 -6
- package/dist/toggle.mjs.map +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.mjs +11 -11
- package/dist/tooltip.mjs.map +1 -1
- package/dist/utils--qajXu5A.js +2 -0
- package/dist/utils--qajXu5A.js.map +1 -0
- package/dist/utils-CgPEtJt0.mjs +12 -0
- package/dist/utils-CgPEtJt0.mjs.map +1 -0
- package/package.json +15 -14
- package/dist/utils-DKStzUzN.js +0 -2
- package/dist/utils-DKStzUzN.js.map +0 -1
- package/dist/utils-Dk-Gx69q.mjs +0 -8
- package/dist/utils-Dk-Gx69q.mjs.map +0 -1
package/dist/dialog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.mjs","sources":["../packages/ui-web/src/dialog.tsx"],"sourcesContent":["'use client';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80',\n className,\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay
|
|
1
|
+
{"version":3,"file":"dialog.mjs","sources":["../packages/ui-web/src/dialog.tsx"],"sourcesContent":["'use client';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\nimport * as React from 'react';\n\nimport { cn } from './lib/utils';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80',\n className,\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay?.displayName || 'DialogOverlay';\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none\">\n <X className=\"h-4 w-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n));\nDialogContent.displayName = DialogPrimitive.Content?.displayName || 'DialogContent';\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...props} />\n);\nDialogHeader.displayName = 'DialogHeader';\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />\n);\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDialogTitle.displayName = DialogPrimitive.Title?.displayName || 'DialogTitle';\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDialogDescription.displayName = DialogPrimitive.Description?.displayName || 'DialogDescription';\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n"],"names":["Dialog","DialogPrimitive.Root","DialogTrigger","DialogPrimitive.Trigger","DialogPortal","DialogPrimitive.Portal","DialogClose","DialogPrimitive.Close","DialogOverlay","React","className","props","ref","jsx","DialogPrimitive.Overlay","cn","DialogContent","children","jsxs","DialogPrimitive.Content","X","DialogHeader","DialogFooter","DialogTitle","DialogPrimitive.Title","DialogDescription","DialogPrimitive.Description"],"mappings":";;;;AAOA,MAAMA,IAASC,GAETC,IAAgBC,GAEhBC,IAAeC,GAEfC,IAAcC,GAEdC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAc,cAAcM,GAAyB,eAAe;AAEpE,MAAME,IAAgBP,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,UAAAO,GAAU,GAAGN,EAAA,GAASC,MACpCM,gBAAAA,EAAAA,KAACd,GAAA,EACC,UAAA;AAAA,EAAAS,gBAAAA,EAAAA,IAACL,GAAA,EAAc;AAAA,EACfU,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,KAAAP;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,MAEH,UAAA;AAAA,QAAAM;AAAA,QACDC,gBAAAA,EAAAA,KAACX,GAAA,EAAsB,WAAU,iRAC/B,UAAA;AAAA,UAAAM,gBAAAA,EAAAA,IAACO,GAAA,EAAE,WAAU,UAAA,CAAU;AAAA,UACvBP,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,WAAU,UAAA,QAAA,CAAK;AAAA,QAAA,EAAA,CACjC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AACF,GACF,CACD;AACDG,EAAc,cAAcG,GAAyB,eAAe;AAEpE,MAAME,IAAe,CAAC,EAAE,WAAAX,GAAW,GAAGC,EAAA,MACpCE,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWE,EAAG,sDAAsDL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAElGU,EAAa,cAAc;AAE3B,MAAMC,IAAe,CAAC,EAAE,WAAAZ,GAAW,GAAGC,EAAA,MACpCE,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWE,EAAG,iEAAiEL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAE7GW,EAAa,cAAc;AAE3B,MAAMC,IAAcd,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACW;AAAAA,EAAA;AAAA,IACC,KAAAZ;AAAA,IACA,WAAWG,EAAG,qDAAqDL,CAAS;AAAA,IAC3E,GAAGC;AAAA,EAAA;AACN,CACD;AACDY,EAAY,cAAcC,GAAuB,eAAe;AAEhE,MAAMC,IAAoBhB,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACa,GAAA,EAA4B,KAAAd,GAAU,WAAWG,EAAG,iCAAiCL,CAAS,GAAI,GAAGC,GAAO,CAC9G;AACDc,EAAkB,cAAcC,GAA6B,eAAe;"}
|
package/dist/drawer.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),u=require("react"),s=require("./utils
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),u=require("react"),s=require("./utils--qajXu5A.js");function p(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}return t.default=r,Object.freeze(t)}const n=p(u),l=({shouldScaleBackground:r=!0,...t})=>e.jsxRuntimeExports.jsx(e.Drawer.Root,{shouldScaleBackground:r,...t});l.displayName="Drawer";const f=e.Drawer.Trigger,c=e.Drawer.Portal,g=e.Drawer.Close,i=n.forwardRef(({className:r,...t},a)=>e.jsxRuntimeExports.jsx(e.Drawer.Overlay,{ref:a,className:s.cn("fixed inset-0 z-50 bg-black/80",r),...t}));i.displayName=e.Drawer.Overlay?.displayName||"DrawerOverlay";const x=n.forwardRef(({className:r,children:t,...a},o)=>e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsx(i,{}),e.jsxRuntimeExports.jsxs(e.Drawer.Content,{ref:o,className:s.cn("bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",r),...a,children:[e.jsxRuntimeExports.jsx("div",{className:"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full"}),t]})]}));x.displayName="DrawerContent";const D=({className:r,...t})=>e.jsxRuntimeExports.jsx("div",{className:s.cn("grid gap-1.5 p-4 text-center sm:text-left",r),...t});D.displayName="DrawerHeader";const d=({className:r,...t})=>e.jsxRuntimeExports.jsx("div",{className:s.cn("mt-auto flex flex-col gap-2 p-4",r),...t});d.displayName="DrawerFooter";const w=n.forwardRef(({className:r,...t},a)=>e.jsxRuntimeExports.jsx(e.Drawer.Title,{ref:a,className:s.cn("text-lg leading-none font-semibold tracking-tight",r),...t}));w.displayName=e.Drawer.Title?.displayName||"DrawerTitle";const m=n.forwardRef(({className:r,...t},a)=>e.jsxRuntimeExports.jsx(e.Drawer.Description,{ref:a,className:s.cn("text-muted-foreground text-sm",r),...t}));m.displayName=e.Drawer.Description?.displayName||"DrawerDescription";exports.Drawer=l;exports.DrawerClose=g;exports.DrawerContent=x;exports.DrawerDescription=m;exports.DrawerFooter=d;exports.DrawerHeader=D;exports.DrawerOverlay=i;exports.DrawerPortal=c;exports.DrawerTitle=w;exports.DrawerTrigger=f;
|
|
2
2
|
//# sourceMappingURL=drawer.cjs.map
|
package/dist/drawer.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.cjs","sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay
|
|
1
|
+
{"version":3,"file":"drawer.cjs","sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay?.displayName || 'DrawerOverlay';\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & DrawerContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerHeaderBaseProps) => (\n <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerFooterBaseProps) => (\n <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & DrawerTitleBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title?.displayName || 'DrawerTitle';\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & DrawerDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description?.displayName || 'DrawerDescription';\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n\nexport type {\n DrawerCloseBaseProps as DrawerCloseProps,\n DrawerContentBaseProps as DrawerContentProps,\n DrawerDescriptionBaseProps as DrawerDescriptionProps,\n DrawerFooterBaseProps as DrawerFooterProps,\n DrawerHeaderBaseProps as DrawerHeaderProps,\n DrawerBaseProps as DrawerProps,\n DrawerTitleBaseProps as DrawerTitleProps,\n DrawerTriggerBaseProps as DrawerTriggerProps,\n};\n"],"names":["Drawer","shouldScaleBackground","props","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","React","className","ref","cn","DrawerContent","children","jsxs","DrawerHeader","DrawerFooter","DrawerTitle","DrawerDescription"],"mappings":"mdAiBMA,EAAS,CAAC,CAAE,sBAAAC,EAAwB,GAAM,GAAGC,CAAA,IACjDC,EAAAA,kBAAAA,IAACC,EAAAA,OAAgB,KAAhB,CAAqB,sBAAAH,EAA+C,GAAGC,CAAA,CAAO,EAEjFF,EAAO,YAAc,SAErB,M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,kBAAAA,IAACC,EAAAA,OAAgB,MAAhB,CACC,IAAAO,EACA,UAAWC,EAAAA,GAAG,oDAAqDF,CAAS,EAC3E,GAAGR,CAAA,CACN,CACD,EACDgB,EAAY,YAAcd,EAAAA,OAAgB,OAAO,aAAe,cAEhE,MAAMe,EAAoBV,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,GAAGR,CAAA,EAASS,IAC1BR,EAAAA,kBAAAA,IAACC,EAAAA,OAAgB,YAAhB,CAA4B,IAAAO,EAAU,UAAWC,EAAAA,GAAG,gCAAiCF,CAAS,EAAI,GAAGR,EAAO,CAC9G,EACDiB,EAAkB,YAAcf,EAAAA,OAAgB,aAAa,aAAe"}
|
package/dist/drawer.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as t, a1 as
|
|
2
|
+
import { j as t, a1 as a } from "./vendor-DxBXMLEx.mjs";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import { c as o } from "./utils-
|
|
5
|
-
const d = ({ shouldScaleBackground: e = !0, ...
|
|
4
|
+
import { c as o } from "./utils-CgPEtJt0.mjs";
|
|
5
|
+
const d = ({ shouldScaleBackground: e = !0, ...r }) => /* @__PURE__ */ t.jsx(a.Root, { shouldScaleBackground: e, ...r });
|
|
6
6
|
d.displayName = "Drawer";
|
|
7
|
-
const g =
|
|
8
|
-
i.displayName =
|
|
9
|
-
const c = l.forwardRef(({ className: e, children:
|
|
7
|
+
const g = a.Trigger, m = a.Portal, y = a.Close, i = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(a.Overlay, { ref: s, className: o("fixed inset-0 z-50 bg-black/80", e), ...r }));
|
|
8
|
+
i.displayName = a.Overlay?.displayName || "DrawerOverlay";
|
|
9
|
+
const c = l.forwardRef(({ className: e, children: r, ...s }, n) => /* @__PURE__ */ t.jsxs(m, { children: [
|
|
10
10
|
/* @__PURE__ */ t.jsx(i, {}),
|
|
11
11
|
/* @__PURE__ */ t.jsxs(
|
|
12
|
-
|
|
12
|
+
a.Content,
|
|
13
13
|
{
|
|
14
14
|
ref: n,
|
|
15
15
|
className: o(
|
|
@@ -19,37 +19,37 @@ const c = l.forwardRef(({ className: e, children: a, ...s }, n) => /* @__PURE__
|
|
|
19
19
|
...s,
|
|
20
20
|
children: [
|
|
21
21
|
/* @__PURE__ */ t.jsx("div", { className: "bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full" }),
|
|
22
|
-
|
|
22
|
+
r
|
|
23
23
|
]
|
|
24
24
|
}
|
|
25
25
|
)
|
|
26
26
|
] }));
|
|
27
27
|
c.displayName = "DrawerContent";
|
|
28
|
-
const x = ({ className: e, ...
|
|
28
|
+
const x = ({ className: e, ...r }) => /* @__PURE__ */ t.jsx("div", { className: o("grid gap-1.5 p-4 text-center sm:text-left", e), ...r });
|
|
29
29
|
x.displayName = "DrawerHeader";
|
|
30
|
-
const p = ({ className: e, ...
|
|
30
|
+
const p = ({ className: e, ...r }) => /* @__PURE__ */ t.jsx("div", { className: o("mt-auto flex flex-col gap-2 p-4", e), ...r });
|
|
31
31
|
p.displayName = "DrawerFooter";
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const w = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(
|
|
33
|
+
a.Title,
|
|
34
34
|
{
|
|
35
35
|
ref: s,
|
|
36
36
|
className: o("text-lg leading-none font-semibold tracking-tight", e),
|
|
37
|
-
...
|
|
37
|
+
...r
|
|
38
38
|
}
|
|
39
39
|
));
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
40
|
+
w.displayName = a.Title?.displayName || "DrawerTitle";
|
|
41
|
+
const D = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(a.Description, { ref: s, className: o("text-muted-foreground text-sm", e), ...r }));
|
|
42
|
+
D.displayName = a.Description?.displayName || "DrawerDescription";
|
|
43
43
|
export {
|
|
44
44
|
d as Drawer,
|
|
45
|
-
|
|
45
|
+
y as DrawerClose,
|
|
46
46
|
c as DrawerContent,
|
|
47
|
-
|
|
47
|
+
D as DrawerDescription,
|
|
48
48
|
p as DrawerFooter,
|
|
49
49
|
x as DrawerHeader,
|
|
50
50
|
i as DrawerOverlay,
|
|
51
51
|
m as DrawerPortal,
|
|
52
|
-
|
|
52
|
+
w as DrawerTitle,
|
|
53
53
|
g as DrawerTrigger
|
|
54
54
|
};
|
|
55
55
|
//# sourceMappingURL=drawer.mjs.map
|
package/dist/drawer.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.mjs","sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay
|
|
1
|
+
{"version":3,"file":"drawer.mjs","sources":["../packages/ui-web/src/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport {\n DrawerBaseProps,\n DrawerCloseBaseProps,\n DrawerContentBaseProps,\n DrawerDescriptionBaseProps,\n DrawerFooterBaseProps,\n DrawerHeaderBaseProps,\n DrawerTitleBaseProps,\n DrawerTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />\n);\nDrawer.displayName = 'Drawer';\n\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\nconst DrawerPortal = DrawerPrimitive.Portal;\n\nconst DrawerClose = DrawerPrimitive.Close;\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />\n));\nDrawerOverlay.displayName = DrawerPrimitive.Overlay?.displayName || 'DrawerOverlay';\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> & DrawerContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n));\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerHeaderBaseProps) => (\n <div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />\n);\nDrawerHeader.displayName = 'DrawerHeader';\n\nconst DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement> & DrawerFooterBaseProps) => (\n <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />\n);\nDrawerFooter.displayName = 'DrawerFooter';\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & DrawerTitleBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn('text-lg leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n));\nDrawerTitle.displayName = DrawerPrimitive.Title?.displayName || 'DrawerTitle';\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & DrawerDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nDrawerDescription.displayName = DrawerPrimitive.Description?.displayName || 'DrawerDescription';\n\nexport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerOverlay,\n DrawerPortal,\n DrawerTitle,\n DrawerTrigger,\n};\n\nexport type {\n DrawerCloseBaseProps as DrawerCloseProps,\n DrawerContentBaseProps as DrawerContentProps,\n DrawerDescriptionBaseProps as DrawerDescriptionProps,\n DrawerFooterBaseProps as DrawerFooterProps,\n DrawerHeaderBaseProps as DrawerHeaderProps,\n DrawerBaseProps as DrawerProps,\n DrawerTitleBaseProps as DrawerTitleProps,\n DrawerTriggerBaseProps as DrawerTriggerProps,\n};\n"],"names":["Drawer","shouldScaleBackground","props","jsx","DrawerPrimitive","DrawerTrigger","DrawerPortal","DrawerClose","DrawerOverlay","React","className","ref","cn","DrawerContent","children","jsxs","Dr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,CAAC,EAAE,WAAAP,GAAW,GAAGR,EAAA,MACpCC,gBAAAA,EAAAA,IAAC,OAAA,EAAI,WAAWS,EAAG,mCAAmCF,CAAS,GAAI,GAAGR,EAAA,CAAO;AAE/Ee,EAAa,cAAc;AAE3B,MAAMC,IAAcT,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA;AAAAA,EAACC,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAO;AAAA,IACA,WAAWC,EAAG,qDAAqDF,CAAS;AAAA,IAC3E,GAAGR;AAAA,EAAA;AACN,CACD;AACDgB,EAAY,cAAcd,EAAgB,OAAO,eAAe;AAEhE,MAAMe,IAAoBV,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGR,EAAA,GAASS,MAC1BR,gBAAAA,EAAAA,IAACC,EAAgB,aAAhB,EAA4B,KAAAO,GAAU,WAAWC,EAAG,iCAAiCF,CAAS,GAAI,GAAGR,GAAO,CAC9G;AACDiB,EAAkB,cAAcf,EAAgB,aAAa,eAAe;"}
|
package/dist/dropdown-menu.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),b=require("react"),r=require("./utils--qajXu5A.js");function g(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>o[n]})}}return t.default=o,Object.freeze(t)}const s=g(b),j=e.Root2$7,D=e.Trigger$6,M=e.Group2$2,h=e.Portal2$3,R=e.Sub2$2,y=e.RadioGroup2$2,i=s.forwardRef(({className:o,inset:t,children:n,...a},d)=>e.jsxRuntimeExports.jsxs(e.SubTrigger2$2,{ref:d,className:r.cn("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",o),...a,children:[n,e.jsxRuntimeExports.jsx(e.ChevronRight,{className:"ml-auto"})]}));i.displayName=e.SubTrigger2$2?.displayName||"DropdownMenuSubTrigger";const u=s.forwardRef(({className:o,...t},n)=>e.jsxRuntimeExports.jsx(e.SubContent2$2,{ref:n,className:r.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",o),...t}));u.displayName=e.SubContent2$2?.displayName||"DropdownMenuSubContent";const p=s.forwardRef(({className:o,sideOffset:t=4,...n},a)=>e.jsxRuntimeExports.jsx(e.Portal2$3,{children:e.jsxRuntimeExports.jsx(e.Content2$6,{ref:a,sideOffset:t,className:r.cn("bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",o),...n})}));p.displayName=e.Content2$6?.displayName||"DropdownMenuContent";const c=s.forwardRef(({className:o,inset:t,...n},a)=>e.jsxRuntimeExports.jsx(e.Item2$2,{ref:a,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",o),...n}));c.displayName=e.Item2$2?.displayName||"DropdownMenuItem";const l=s.forwardRef(({className:o,children:t,checked:n,...a},d)=>e.jsxRuntimeExports.jsxs(e.CheckboxItem2$2,{ref:d,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),checked:n,...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$2,{children:e.jsxRuntimeExports.jsx(e.Check,{className:"h-4 w-4"})})}),t]}));l.displayName=e.CheckboxItem2$2?.displayName||"DropdownMenuCheckboxItem";const m=s.forwardRef(({className:o,children:t,...n},a)=>e.jsxRuntimeExports.jsxs(e.RadioItem2$2,{ref:a,className:r.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...n,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(e.ItemIndicator2$2,{children:e.jsxRuntimeExports.jsx(e.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));m.displayName=e.RadioItem2$2?.displayName||"DropdownMenuRadioItem";const x=s.forwardRef(({className:o,inset:t,...n},a)=>e.jsxRuntimeExports.jsx(e.Label2$2,{ref:a,className:r.cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",o),...n}));x.displayName=e.Label2$2?.displayName||"DropdownMenuLabel";const f=s.forwardRef(({className:o,...t},n)=>e.jsxRuntimeExports.jsx(e.Separator2$2,{ref:n,className:r.cn("bg-muted -mx-1 my-1 h-px",o),...t}));f.displayName=e.Separator2$2?.displayName||"DropdownMenuSeparator";const w=({className:o,...t})=>e.jsxRuntimeExports.jsx("span",{className:r.cn("ml-auto text-xs tracking-widest opacity-60",o),...t});w.displayName="DropdownMenuShortcut";exports.DropdownMenu=j;exports.DropdownMenuCheckboxItem=l;exports.DropdownMenuContent=p;exports.DropdownMenuGroup=M;exports.DropdownMenuItem=c;exports.DropdownMenuLabel=x;exports.DropdownMenuPortal=h;exports.DropdownMenuRadioGroup=y;exports.DropdownMenuRadioItem=m;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=w;exports.DropdownMenuSub=R;exports.DropdownMenuSubContent=u;exports.DropdownMenuSubTrigger=i;exports.DropdownMenuTrigger=D;
|
|
2
2
|
//# sourceMappingURL=dropdown-menu.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.cjs","sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none 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 <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuGroup","DropdownMenuPrimitive.Group","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuSub","DropdownMenuPrimitive.Sub","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","DropdownMenuShortcut"],"mappings":"mdAwBMA,EAAeC,EAAAA,QAEfC,EAAsBC,EAAAA,UAEtBC,EAAoBC,EAAAA,SAEpBC,EAAqBC,EAAAA,UAErBC,EAAkBC,EAAAA,OAElBC,EAAyBC,EAAAA,cAEzBC,EAAyBC,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,GAASC,IAC3CC,EAAAA,kBAAAA,KAACC,EAAAA,cAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,yMACAN,GAAS,OACTD,CAAA,EAED,GAAGG,EAEH,SAAA,CAAAD,EACDM,EAAAA,kBAAAA,IAACC,EAAAA,aAAA,CAAa,UAA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CAA8CP,CAAS,EAAI,GAAGG,EAAO,EAElG0B,EAAqB,YAAc"}
|
|
1
|
+
{"version":3,"file":"dropdown-menu.cjs","sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger?.displayName || 'DropdownMenuSubTrigger';\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent?.displayName || 'DropdownMenuSubContent';\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content?.displayName || 'DropdownMenuContent';\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item?.displayName || 'DropdownMenuItem';\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem?.displayName || 'DropdownMenuCheckboxItem';\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none 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 <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem?.displayName || 'DropdownMenuRadioItem';\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label?.displayName || 'DropdownMenuLabel';\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator?.displayName || 'DropdownMenuSeparator';\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuGroup","DropdownMenuPrimitive.Group","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuSub","DropdownMenuPrimitive.Sub","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","DropdownMenuShortcut"],"mappings":"mdAwBMA,EAAeC,EAAAA,QAEfC,EAAsBC,EAAAA,UAEtBC,EAAoBC,EAAAA,SAEpBC,EAAqBC,EAAAA,UAErBC,EAAkBC,EAAAA,OAElBC,EAAyBC,EAAAA,cAEzBC,EAAyBC,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,GAASC,IAC3CC,EAAAA,kBAAAA,KAACC,EAAAA,cAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,yMACAN,GAAS,OACTD,CAAA,EAED,GAAGG,EAEH,SAAA,CAAAD,EACDM,EAAAA,kBAAAA,IAACC,EAAAA,aAAA,CAAa,UAAU,SAAA,CAAU,CAAA,CAAA,CACpC,CACD,EACDX,EAAuB,YAAcQ,iBAAkC,aAAe,yBAEtF,MAAMI,EAAyBX,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAA,EAASC,IAC1BI,EAAAA,kBAAAA,IAACG,EAAAA,cAAA,CACC,IAAAP,EACA,UAAWG,EAAAA,GACT,gfACAP,CAAA,EAED,GAAGG,CAAA,CACN,CACD,EACDO,EAAuB,YAAcC,iBAAkC,aAAe,yBAEtF,MAAMC,EAAsBb,EAAM,WAGhC,CAAC,CAAE,UAAAC,EAAW,WAAAa,EAAa,EAAG,GAAGV,GAASC,IAC1CI,EAAAA,kBAAAA,IAACf,EAAA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,iBAAA,CACC,SAAAZ,EAAAA,kBAAAA,IAACgB,EAAAA,OAAA,CAAO,UAAU,sBAAA,CAAuB,CAAA,CAC3C,EACF,EACCtB,CAAA,CAAA,CACH,CACD,EACDoB,EAAsB,YAAcC,gBAAiC,aAAe,wBAEpF,MAAME,EAAoB1B,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGE,GAASC,IACjCI,EAAAA,kBAAAA,IAACkB,EAAAA,SAAA,CACC,IAAAtB,EACA,UAAWG,EAAAA,GAAG,oCAAqCN,GAAS,OAAQD,CAAS,EAC5E,GAAGG,CAAA,CACN,CACD,EACDsB,EAAkB,YAAcC,YAA6B,aAAe,oBAE5E,MAAMC,EAAwB5B,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAA,EAASC,IAC1BI,EAAAA,kBAAAA,IAACoB,EAAAA,aAAA,CAAgC,IAAAxB,EAAU,UAAWG,EAAAA,GAAG,2BAA4BP,CAAS,EAAI,GAAGG,EAAO,CAC7G,EACDwB,EAAsB,YAAcC,gBAAiC,aAAe,wBAEpF,MAAMC,EAAuB,CAAC,CAC5B,UAAA7B,EACA,GAAGG,CACL,IACSK,EAAAA,kBAAAA,IAAC,QAAK,UAAWD,EAAAA,GAAG,6CAA8CP,CAAS,EAAI,GAAGG,EAAO,EAElG0B,EAAqB,YAAc"}
|
package/dist/dropdown-menu.mjs
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
2
|
+
import { j as t, b1 as i, l as g, b2 as l, b3 as c, b4 as p, b5 as m, b6 as u, b7 as f, w as h, b8 as b, V as N, b9 as x, ba as w, bb as y, bc as D, bd as M, be as v, bf as j } from "./vendor-DxBXMLEx.mjs";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import { c as
|
|
5
|
-
const E = y, V =
|
|
4
|
+
import { c as s } from "./utils-CgPEtJt0.mjs";
|
|
5
|
+
const E = y, V = j, q = D, A = c, B = v, F = M, R = r.forwardRef(({ className: e, inset: o, children: a, ...n }, d) => /* @__PURE__ */ t.jsxs(
|
|
6
6
|
i,
|
|
7
7
|
{
|
|
8
8
|
ref: d,
|
|
9
|
-
className:
|
|
9
|
+
className: s(
|
|
10
10
|
"focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
11
|
-
|
|
11
|
+
o && "pl-8",
|
|
12
12
|
e
|
|
13
13
|
),
|
|
14
|
-
...
|
|
14
|
+
...n,
|
|
15
15
|
children: [
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */
|
|
16
|
+
a,
|
|
17
|
+
/* @__PURE__ */ t.jsx(g, { className: "ml-auto" })
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
));
|
|
21
|
-
R.displayName = i
|
|
22
|
-
const S = r.forwardRef(({ className: e, ...
|
|
21
|
+
R.displayName = i?.displayName || "DropdownMenuSubTrigger";
|
|
22
|
+
const S = r.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ t.jsx(
|
|
23
23
|
l,
|
|
24
24
|
{
|
|
25
|
-
ref:
|
|
26
|
-
className:
|
|
25
|
+
ref: a,
|
|
26
|
+
className: s(
|
|
27
27
|
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
28
28
|
e
|
|
29
29
|
),
|
|
30
|
-
...
|
|
30
|
+
...o
|
|
31
31
|
}
|
|
32
32
|
));
|
|
33
|
-
S.displayName = l
|
|
34
|
-
const C = r.forwardRef(({ className: e, sideOffset:
|
|
35
|
-
|
|
33
|
+
S.displayName = l?.displayName || "DropdownMenuSubContent";
|
|
34
|
+
const C = r.forwardRef(({ className: e, sideOffset: o = 4, ...a }, n) => /* @__PURE__ */ t.jsx(c, { children: /* @__PURE__ */ t.jsx(
|
|
35
|
+
p,
|
|
36
36
|
{
|
|
37
|
-
ref:
|
|
38
|
-
sideOffset:
|
|
39
|
-
className:
|
|
37
|
+
ref: n,
|
|
38
|
+
sideOffset: o,
|
|
39
|
+
className: s(
|
|
40
40
|
"bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
41
41
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
42
42
|
e
|
|
43
43
|
),
|
|
44
|
-
...
|
|
44
|
+
...a
|
|
45
45
|
}
|
|
46
46
|
) }));
|
|
47
|
-
C.displayName =
|
|
48
|
-
const
|
|
49
|
-
|
|
47
|
+
C.displayName = p?.displayName || "DropdownMenuContent";
|
|
48
|
+
const I = r.forwardRef(({ className: e, inset: o, ...a }, n) => /* @__PURE__ */ t.jsx(
|
|
49
|
+
m,
|
|
50
50
|
{
|
|
51
|
-
ref:
|
|
52
|
-
className:
|
|
51
|
+
ref: n,
|
|
52
|
+
className: s(
|
|
53
53
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
54
|
-
|
|
54
|
+
o && "pl-8",
|
|
55
55
|
e
|
|
56
56
|
),
|
|
57
|
-
...
|
|
57
|
+
...a
|
|
58
58
|
}
|
|
59
59
|
));
|
|
60
|
-
|
|
61
|
-
const
|
|
60
|
+
I.displayName = m?.displayName || "DropdownMenuItem";
|
|
61
|
+
const z = r.forwardRef(({ className: e, children: o, checked: a, ...n }, d) => /* @__PURE__ */ t.jsxs(
|
|
62
62
|
u,
|
|
63
63
|
{
|
|
64
64
|
ref: d,
|
|
65
|
-
className:
|
|
65
|
+
className: s(
|
|
66
66
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
67
67
|
e
|
|
68
68
|
),
|
|
69
|
-
checked:
|
|
70
|
-
...
|
|
69
|
+
checked: a,
|
|
70
|
+
...n,
|
|
71
71
|
children: [
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
|
|
72
|
+
/* @__PURE__ */ t.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(f, { children: /* @__PURE__ */ t.jsx(h, { className: "h-4 w-4" }) }) }),
|
|
73
|
+
o
|
|
74
74
|
]
|
|
75
75
|
}
|
|
76
76
|
));
|
|
77
|
-
|
|
78
|
-
const k = r.forwardRef(({ className: e, children:
|
|
77
|
+
z.displayName = u?.displayName || "DropdownMenuCheckboxItem";
|
|
78
|
+
const k = r.forwardRef(({ className: e, children: o, ...a }, n) => /* @__PURE__ */ t.jsxs(
|
|
79
79
|
b,
|
|
80
80
|
{
|
|
81
|
-
ref:
|
|
82
|
-
className:
|
|
81
|
+
ref: n,
|
|
82
|
+
className: s(
|
|
83
83
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
84
84
|
e
|
|
85
85
|
),
|
|
86
|
-
...
|
|
86
|
+
...a,
|
|
87
87
|
children: [
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
|
|
88
|
+
/* @__PURE__ */ t.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(f, { children: /* @__PURE__ */ t.jsx(N, { className: "h-2 w-2 fill-current" }) }) }),
|
|
89
|
+
o
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
92
|
));
|
|
93
|
-
k.displayName = b
|
|
94
|
-
const
|
|
93
|
+
k.displayName = b?.displayName || "DropdownMenuRadioItem";
|
|
94
|
+
const T = r.forwardRef(({ className: e, inset: o, ...a }, n) => /* @__PURE__ */ t.jsx(
|
|
95
95
|
x,
|
|
96
96
|
{
|
|
97
|
-
ref:
|
|
98
|
-
className:
|
|
99
|
-
...
|
|
97
|
+
ref: n,
|
|
98
|
+
className: s("px-2 py-1.5 text-sm font-semibold", o && "pl-8", e),
|
|
99
|
+
...a
|
|
100
100
|
}
|
|
101
101
|
));
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
const
|
|
102
|
+
T.displayName = x?.displayName || "DropdownMenuLabel";
|
|
103
|
+
const G = r.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ t.jsx(w, { ref: a, className: s("bg-muted -mx-1 my-1 h-px", e), ...o }));
|
|
104
|
+
G.displayName = w?.displayName || "DropdownMenuSeparator";
|
|
105
|
+
const L = ({
|
|
106
106
|
className: e,
|
|
107
|
-
...
|
|
108
|
-
}) => /* @__PURE__ */
|
|
109
|
-
|
|
107
|
+
...o
|
|
108
|
+
}) => /* @__PURE__ */ t.jsx("span", { className: s("ml-auto text-xs tracking-widest opacity-60", e), ...o });
|
|
109
|
+
L.displayName = "DropdownMenuShortcut";
|
|
110
110
|
export {
|
|
111
111
|
E as DropdownMenu,
|
|
112
|
-
|
|
112
|
+
z as DropdownMenuCheckboxItem,
|
|
113
113
|
C as DropdownMenuContent,
|
|
114
114
|
q as DropdownMenuGroup,
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
I as DropdownMenuItem,
|
|
116
|
+
T as DropdownMenuLabel,
|
|
117
117
|
A as DropdownMenuPortal,
|
|
118
118
|
F as DropdownMenuRadioGroup,
|
|
119
119
|
k as DropdownMenuRadioItem,
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
G as DropdownMenuSeparator,
|
|
121
|
+
L as DropdownMenuShortcut,
|
|
122
122
|
B as DropdownMenuSub,
|
|
123
123
|
S as DropdownMenuSubContent,
|
|
124
124
|
R as DropdownMenuSubTrigger,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.mjs","sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none 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 <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuGroup","DropdownMenuPrimitive.Group","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuSub","DropdownMenuPrimitive.Sub","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","DropdownMenuShortcut"],"mappings":";;;;AAwBA,MAAMA,IAAeC,GAEfC,IAAsBC,GAEtBC,IAAoBC,GAEpBC,IAAqBC,GAErBC,IAAkBC,GAElBC,IAAyBC,GAEzBC,IAAyBC,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,GAAGC,KAASC,MAC3CC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN,KAAS;AAAA,MACTD;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MACDM,gBAAAA,EAAAA,IAACC,GAAA,EAAa,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AACpC,CACD;AACDX,EAAuB,cAAcQ,EAAiC;AAEtE,MAAMI,IAAyBX,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGG,EAAA,GAASC,MAC1BI,gBAAAA,EAAAA;AAAAA,EAACG;A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AAG,8CAA8CP,CAAS,GAAI,GAAGG,GAAO;AAElG0B,EAAqB,cAAc;"}
|
|
1
|
+
{"version":3,"file":"dropdown-menu.mjs","sources":["../packages/ui-web/src/dropdown-menu.tsx"],"sourcesContent":["'use client';\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n DropdownMenuBaseProps,\n DropdownMenuCheckboxItemBaseProps,\n DropdownMenuContentBaseProps,\n DropdownMenuGroupBaseProps,\n DropdownMenuItemBaseProps,\n DropdownMenuLabelBaseProps,\n DropdownMenuRadioGroupBaseProps,\n DropdownMenuRadioItemBaseProps,\n DropdownMenuSeparatorBaseProps,\n DropdownMenuShortcutBaseProps,\n DropdownMenuSubBaseProps,\n DropdownMenuSubContentBaseProps,\n DropdownMenuSubTriggerBaseProps,\n DropdownMenuTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & DropdownMenuSubTriggerBaseProps\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger?.displayName || 'DropdownMenuSubTrigger';\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & DropdownMenuSubContentBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent?.displayName || 'DropdownMenuSubContent';\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & DropdownMenuContentBaseProps\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content?.displayName || 'DropdownMenuContent';\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & DropdownMenuItemBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item?.displayName || 'DropdownMenuItem';\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> & DropdownMenuCheckboxItemBaseProps\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem?.displayName || 'DropdownMenuCheckboxItem';\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & DropdownMenuRadioItemBaseProps\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none 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 <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem?.displayName || 'DropdownMenuRadioItem';\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & DropdownMenuLabelBaseProps\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label?.displayName || 'DropdownMenuLabel';\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator> & DropdownMenuSeparatorBaseProps\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator ref={ref} className={cn('bg-muted -mx-1 my-1 h-px', className)} {...props} />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator?.displayName || 'DropdownMenuSeparator';\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement> & DropdownMenuShortcutBaseProps) => {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n};\n\nexport type {\n DropdownMenuCheckboxItemBaseProps as DropdownMenuCheckboxItemProps,\n DropdownMenuContentBaseProps as DropdownMenuContentProps,\n DropdownMenuGroupBaseProps as DropdownMenuGroupProps,\n DropdownMenuItemBaseProps as DropdownMenuItemProps,\n DropdownMenuLabelBaseProps as DropdownMenuLabelProps,\n DropdownMenuBaseProps as DropdownMenuProps,\n DropdownMenuRadioGroupBaseProps as DropdownMenuRadioGroupProps,\n DropdownMenuRadioItemBaseProps as DropdownMenuRadioItemProps,\n DropdownMenuSeparatorBaseProps as DropdownMenuSeparatorProps,\n DropdownMenuShortcutBaseProps as DropdownMenuShortcutProps,\n DropdownMenuSubContentBaseProps as DropdownMenuSubContentProps,\n DropdownMenuSubBaseProps as DropdownMenuSubProps,\n DropdownMenuSubTriggerBaseProps as DropdownMenuSubTriggerProps,\n DropdownMenuTriggerBaseProps as DropdownMenuTriggerProps,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuGroup","DropdownMenuPrimitive.Group","DropdownMenuPortal","DropdownMenuPrimitive.Portal","DropdownMenuSub","DropdownMenuPrimitive.Sub","DropdownMenuRadioGroup","DropdownMenuPrimitive.RadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator","DropdownMenuShortcut"],"mappings":";;;;AAwBA,MAAMA,IAAeC,GAEfC,IAAsBC,GAEtBC,IAAoBC,GAEpBC,IAAqBC,GAErBC,IAAkBC,GAElBC,IAAyBC,GAEzBC,IAAyBC,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,GAAGC,KAASC,MAC3CC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN,KAAS;AAAA,MACTD;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MACDM,gBAAAA,EAAAA,IAACC,GAAA,EAAa,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AACpC,CACD;AACDX,EAAuB,cAAcQ,GAAkC,eAAe;AAEtF,MAAMI,IAAyBX,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGG,EAAA,GAASC,MAC1BI,gBAAAA,EAAAA;AAAAA,EAACG;AAAAA,EAAA;AAAA,IACC,KAAAP;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAP;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,CACD;AACDO,EAAuB,cAAcC,GAAkC,eAAe;AAEtF,MAAMC,IAAsBb,EAAM,WAGhC,CAAC,EAAE,WAAAC,G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});const s=require("./vendor-DQFuDa7q.js"),b=require("react"),g=require("./label.cjs"),c=require("./utils
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./vendor-DQFuDa7q.js"),b=require("react"),g=require("./label.cjs"),c=require("./utils--qajXu5A.js");function I(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=I(b),R=s.FormProvider,l=n.createContext(null),y=({...e})=>s.jsxRuntimeExports.jsx(l.Provider,{value:{name:e.name},children:s.jsxRuntimeExports.jsx(s.Controller,{...e})}),a=()=>{const e=n.useContext(l),r=n.useContext(u),{getFieldState:t,formState:o}=s.useFormContext();if(!e)throw new Error("useFormField should be used within <FormField>");if(!r)throw new Error("useFormField should be used within <FormItem>");const m=t(e.name,o),{id:i}=r;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...m}},u=n.createContext(null),f=n.forwardRef(({className:e,...r},t)=>{const o=n.useId();return s.jsxRuntimeExports.jsx(u.Provider,{value:{id:o},children:s.jsxRuntimeExports.jsx("div",{ref:t,className:c.cn("space-y-2",e),...r})})});f.displayName="FormItem";const F=n.forwardRef(({className:e,...r},t)=>{const{error:o,formItemId:m}=a();return s.jsxRuntimeExports.jsx(g.Label,{ref:t,className:c.cn(o&&"text-destructive",e),htmlFor:m,...r})});F.displayName="FormLabel";const x=n.forwardRef(({...e},r)=>{const{error:t,formItemId:o,formDescriptionId:m,formMessageId:i}=a();return s.jsxRuntimeExports.jsx(s.Slot,{ref:r,id:o,"aria-describedby":t?`${m} ${i}`:`${m}`,"aria-invalid":!!t,...e})});x.displayName="FormControl";const p=n.forwardRef(({className:e,...r},t)=>{const{formDescriptionId:o}=a();return s.jsxRuntimeExports.jsx("p",{ref:t,id:o,className:c.cn("text-muted-foreground text-[0.8rem]",e),...r})});p.displayName="FormDescription";const j=n.forwardRef(({className:e,children:r,...t},o)=>{const{error:m,formMessageId:i}=a(),d=m?String(m?.message??""):r;return d?s.jsxRuntimeExports.jsx("p",{ref:o,id:i,className:c.cn("text-destructive text-[0.8rem] font-medium",e),...t,children:d}):null});j.displayName="FormMessage";exports.Form=R;exports.FormControl=x;exports.FormDescription=p;exports.FormField=y;exports.FormItem=f;exports.FormLabel=F;exports.FormMessage=j;exports.useFormField=a;
|
|
2
2
|
//# sourceMappingURL=form.cjs.map
|
package/dist/form.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { j as i, S as u, a2 as F, a3 as x, a4 as p } from "./vendor-DxBXMLEx.mjs";
|
|
3
3
|
import * as s from "react";
|
|
4
4
|
import { Label as I } from "./label.mjs";
|
|
5
|
-
import { c as a } from "./utils-
|
|
5
|
+
import { c as a } from "./utils-CgPEtJt0.mjs";
|
|
6
6
|
const y = x, l = s.createContext(null), R = ({
|
|
7
7
|
...e
|
|
8
8
|
}) => /* @__PURE__ */ i.jsx(l.Provider, { value: { name: e.name }, children: /* @__PURE__ */ i.jsx(p, { ...e }) }), d = () => {
|
package/dist/hover-card.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),i=require("react"),s=require("./utils
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),i=require("react"),s=require("./utils--qajXu5A.js");function c(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=c(i),u=r.Root2$3,f=r.Trigger$1,n=l.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},d)=>r.jsxRuntimeExports.jsx(r.Content2$3,{ref:d,align:o,sideOffset:t,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border p-4 shadow-md outline-none",e),...a}));n.displayName=r.Content2$3?.displayName||"HoverCardContent";exports.HoverCard=u;exports.HoverCardContent=n;exports.HoverCardTrigger=f;
|
|
2
2
|
//# sourceMappingURL=hover-card.cjs.map
|
package/dist/hover-card.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hover-card.cjs","sources":["../packages/ui-web/src/hover-card.tsx"],"sourcesContent":["'use client';\n\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport * as React from 'react';\n\nimport { HoverCardBaseProps, HoverCardContentBaseProps, HoverCardTriggerBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst HoverCard = HoverCardPrimitive.Root;\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content> & HoverCardContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border p-4 shadow-md outline-none',\n className,\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content
|
|
1
|
+
{"version":3,"file":"hover-card.cjs","sources":["../packages/ui-web/src/hover-card.tsx"],"sourcesContent":["'use client';\n\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport * as React from 'react';\n\nimport { HoverCardBaseProps, HoverCardContentBaseProps, HoverCardTriggerBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst HoverCard = HoverCardPrimitive.Root;\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content> & HoverCardContentBaseProps\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border p-4 shadow-md outline-none',\n className,\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content?.displayName || 'HoverCardContent';\n\nexport { HoverCard, HoverCardContent, HoverCardTrigger };\nexport type {\n HoverCardContentBaseProps as HoverCardContentProps,\n HoverCardBaseProps as HoverCardProps,\n HoverCardTriggerBaseProps as HoverCardTriggerProps,\n};\n"],"names":["HoverCard","HoverCardPrimitive.Root","HoverCardTrigger","HoverCardPrimitive.Trigger","HoverCardContent","React","className","align","sideOffset","props","ref","jsx","HoverCardPrimitive.Content","cn"],"mappings":"mdAQMA,EAAYC,EAAAA,QAEZC,EAAmBC,EAAAA,UAEnBC,EAAmBC,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAA,EAASC,IAC5DC,EAAAA,kBAAAA,IAACC,EAAAA,WAAA,CACC,IAAAF,EACA,MAAAH,EACA,WAAAC,EACA,UAAWK,EAAAA,GACT,keACAP,CAAA,EAED,GAAGG,CAAA,CACN,CACD,EACDL,EAAiB,YAAcQ,cAA4B,aAAe"}
|