@jarllyng/nostromo 3.7.0 → 3.9.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/chunk-45W3AH36.cjs +3 -0
- package/dist/chunk-45W3AH36.cjs.map +1 -0
- package/dist/chunk-4NLMGH2S.cjs +3 -0
- package/dist/chunk-4NLMGH2S.cjs.map +1 -0
- package/dist/chunk-AYKNZARS.js +3 -0
- package/dist/chunk-AYKNZARS.js.map +1 -0
- package/dist/chunk-BISYWH74.js +3 -0
- package/dist/chunk-BISYWH74.js.map +1 -0
- package/dist/chunk-CGBIJDZX.cjs +3 -0
- package/dist/chunk-CGBIJDZX.cjs.map +1 -0
- package/dist/chunk-E3A4SP3X.cjs +3 -0
- package/dist/chunk-E3A4SP3X.cjs.map +1 -0
- package/dist/chunk-FMIAI6US.cjs +3 -0
- package/dist/chunk-FMIAI6US.cjs.map +1 -0
- package/dist/chunk-FTAB43WC.js +3 -0
- package/dist/chunk-FTAB43WC.js.map +1 -0
- package/dist/chunk-GCMMAUW3.js +3 -0
- package/dist/chunk-GCMMAUW3.js.map +1 -0
- package/dist/chunk-HEU5GFOV.js +3 -0
- package/dist/chunk-HEU5GFOV.js.map +1 -0
- package/dist/chunk-KCS3UL74.cjs +3 -0
- package/dist/chunk-KCS3UL74.cjs.map +1 -0
- package/dist/chunk-MIYL7YKU.cjs +3 -0
- package/dist/chunk-MIYL7YKU.cjs.map +1 -0
- package/dist/chunk-MM54MZBX.js +3 -0
- package/dist/chunk-MM54MZBX.js.map +1 -0
- package/dist/chunk-QEHKWS7N.cjs +3 -0
- package/dist/chunk-QEHKWS7N.cjs.map +1 -0
- package/dist/chunk-VBGHESL2.js +3 -0
- package/dist/chunk-VBGHESL2.js.map +1 -0
- package/dist/chunk-XYPJ2K22.js +3 -0
- package/dist/chunk-XYPJ2K22.js.map +1 -0
- package/dist/components/core/context-menu.cjs +3 -0
- package/dist/components/core/context-menu.cjs.map +1 -0
- package/dist/components/core/context-menu.d.cts +44 -0
- package/dist/components/core/context-menu.d.ts +44 -0
- package/dist/components/core/context-menu.js +3 -0
- package/dist/components/core/context-menu.js.map +1 -0
- package/dist/components/core/dropdown-menu.cjs +1 -1
- package/dist/components/core/dropdown-menu.js +1 -1
- package/dist/components/core/hover-card.cjs +3 -0
- package/dist/components/core/hover-card.cjs.map +1 -0
- package/dist/components/core/hover-card.d.cts +22 -0
- package/dist/components/core/hover-card.d.ts +22 -0
- package/dist/components/core/hover-card.js +3 -0
- package/dist/components/core/hover-card.js.map +1 -0
- package/dist/components/core/menubar.cjs +3 -0
- package/dist/components/core/menubar.cjs.map +1 -0
- package/dist/components/core/menubar.d.cts +41 -0
- package/dist/components/core/menubar.d.ts +41 -0
- package/dist/components/core/menubar.js +3 -0
- package/dist/components/core/menubar.js.map +1 -0
- package/dist/components/core/navigation-menu.cjs +3 -0
- package/dist/components/core/navigation-menu.cjs.map +1 -0
- package/dist/components/core/navigation-menu.d.cts +29 -0
- package/dist/components/core/navigation-menu.d.ts +29 -0
- package/dist/components/core/navigation-menu.js +3 -0
- package/dist/components/core/navigation-menu.js.map +1 -0
- package/dist/components/core/scroll-area.cjs +3 -0
- package/dist/components/core/scroll-area.cjs.map +1 -0
- package/dist/components/core/scroll-area.d.cts +26 -0
- package/dist/components/core/scroll-area.d.ts +26 -0
- package/dist/components/core/scroll-area.js +3 -0
- package/dist/components/core/scroll-area.js.map +1 -0
- package/dist/components/core/slider.cjs +3 -0
- package/dist/components/core/slider.cjs.map +1 -0
- package/dist/components/core/slider.d.cts +29 -0
- package/dist/components/core/slider.d.ts +29 -0
- package/dist/components/core/slider.js +3 -0
- package/dist/components/core/slider.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +61 -1
- package/dist/chunk-BX4VBLKZ.cjs +0 -3
- package/dist/chunk-BX4VBLKZ.cjs.map +0 -1
- package/dist/chunk-E44BBSLT.js +0 -3
- package/dist/chunk-E44BBSLT.js.map +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),t=require('react'),e=require('@radix-ui/react-navigation-menu'),classVarianceAuthority=require('class-variance-authority');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var e__namespace=/*#__PURE__*/_interopNamespace(e);var d=t__namespace.forwardRef(({className:i,children:a,...o},r)=>t__namespace.createElement(e__namespace.Root,{ref:r,className:chunkITRGJNWL_cjs.a("relative z-10 flex max-w-max flex-1 items-center justify-center",i),...o},a,t__namespace.createElement(m,null)));d.displayName=e__namespace.Root.displayName;var v=t__namespace.forwardRef(({className:i,...a},o)=>t__namespace.createElement(e__namespace.List,{ref:o,className:chunkITRGJNWL_cjs.a("group flex flex-1 list-none items-center justify-center gap-1",i),...a}));v.displayName=e__namespace.List.displayName;var N=e__namespace.Item,u=classVarianceAuthority.cva("group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-foreground focus:bg-muted focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-muted"),f=t__namespace.forwardRef(({className:i,children:a,...o},r)=>t__namespace.createElement(e__namespace.Trigger,{ref:r,className:chunkITRGJNWL_cjs.a(u(),"gap-1",i),...o},a,t__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"},t__namespace.createElement("path",{d:"m4 6 4 4 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));f.displayName=e__namespace.Trigger.displayName;var g=t__namespace.forwardRef(({className:i,...a},o)=>t__namespace.createElement(e__namespace.Content,{ref:o,className:chunkITRGJNWL_cjs.a("left-0 top-0 w-full p-4 md:absolute md:w-auto data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in-0 data-[motion^=to-]:fade-out-0",i),...a}));g.displayName=e__namespace.Content.displayName;var R=e__namespace.Link,m=t__namespace.forwardRef(({className:i,...a},o)=>t__namespace.createElement("div",{className:"absolute left-0 top-full flex justify-center"},t__namespace.createElement(e__namespace.Viewport,{ref:o,className:chunkITRGJNWL_cjs.a("relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-lg border border-border bg-background text-foreground shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",i),...a})));m.displayName=e__namespace.Viewport.displayName;var l=t__namespace.forwardRef(({className:i,...a},o)=>t__namespace.createElement(e__namespace.Indicator,{ref:o,className:chunkITRGJNWL_cjs.a("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0 data-[state=visible]:fade-in-0",i),...a},t__namespace.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border"})));l.displayName=e__namespace.Indicator.displayName;exports.a=d;exports.b=v;exports.c=N;exports.d=u;exports.e=f;exports.f=g;exports.g=R;exports.h=m;exports.i=l;//# sourceMappingURL=chunk-45W3AH36.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-45W3AH36.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/navigation-menu.tsx"],"names":["NavigationMenu","t","className","children","props","ref","e","cn","NavigationMenuViewport","NavigationMenuList","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator"],"mappings":"ulBAoBA,IAAMA,CAAAA,CAAuBC,YAAA,CAAA,UAAA,CAG3B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GACpCJ,YAAA,CAAA,aAAA,CAAyBK,YAAA,CAAA,IAAA,CAAxB,CACC,GAAA,CAAKD,CAAAA,CACL,UAAWE,mBAAAA,CACT,iEAAA,CACAL,CACF,CAAA,CACC,GAAGE,CAAAA,CAAAA,CAEHD,CAAAA,CACDF,YAAA,CAAA,aAAA,CAACO,CAAAA,CAAA,IAAuB,CAC1B,CACD,EACDR,CAAAA,CAAe,YAAsCM,YAAA,CAAA,IAAA,CAAK,WAAA,CAE1D,IAAMG,CAAAA,CAA2BR,YAAA,CAAA,UAAA,CAG/B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,GAC1BJ,YAAA,CAAA,aAAA,CAAyBK,kBAAxB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,mBAAAA,CACT,+DAAA,CACAL,CACF,CAAA,CACC,GAAGE,CAAAA,CACN,CACD,EACDK,CAAAA,CAAmB,WAAA,CAAsCH,kBAAK,WAAA,CAE9D,IAAMI,CAAAA,CAA6CJ,YAAA,CAAA,IAAA,CAE7CK,CAAAA,CAA6BC,0BAAAA,CACjC,uQAIF,CAAA,CAEMC,CAAAA,CAA8BZ,YAAA,CAAA,UAAA,CAGlC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,SAAAC,CAAAA,CAAU,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GACpCJ,YAAA,CAAA,aAAA,CAAyBK,YAAA,CAAA,OAAA,CAAxB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,mBAAAA,C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ACN,CACF,CACD,EACDI,CAAAA,CAAuB,WAAA,CACGF,YAAA,CAAA,QAAA,CAAS,WAAA,CAEnC,IAAMU,CAAAA,CAAgCf,YAAA,CAAA,UAAA,CAGpC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,GAC1BJ,YAAA,CAAA,aAAA,CAAyBK,YAAA,CAAA,SAAA,CAAxB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,mBAAAA,CACT,kMAAA,CAGAL,CACF,CAAA,CACC,GAAGE,CAAAA,CAAAA,CAEJH,YAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,8DAAA,CAA+D,CAChF,CACD,EACDe,CAAAA,CAAwB,WAAA,CACEV,YAAA,CAAA,SAAA,CAAU,WAAA","file":"chunk-45W3AH36.cjs","sourcesContent":["import * as React from \"react\";\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\";\nimport { cva } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * Site navigation with panels: a header where \"Products\" opens a grid of links.\n *\n * Not a menu, despite the name. A `DropdownMenu` runs commands and uses menu\n * roles; this is a `<nav>` full of links, and Radix keeps it that way. That\n * distinction is the reason to use this one for site navigation - a screen\n * reader user gets a navigation landmark and a list of links rather than a menu\n * they are expected to act on.\n *\n * The viewport is where the active panel is drawn. It sits outside the list so\n * one panel can animate into the next without the trigger row reflowing, which\n * is why it is a separate component rather than something rendered inside each\n * item.\n */\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn(\n \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className,\n )}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn(\n \"group flex flex-1 list-none items-center justify-center gap-1\",\n className,\n )}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n \"group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium \" +\n \"transition-colors hover:bg-muted hover:text-foreground \" +\n \"focus:bg-muted focus:outline-none disabled:pointer-events-none disabled:opacity-50 \" +\n \"data-[state=open]:bg-muted\",\n);\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), \"gap-1\", className)}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m4 6 4 4 4-4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"left-0 top-0 w-full p-4 md:absolute md:w-auto \" +\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out \" +\n \"data-[motion^=from-]:fade-in-0 data-[motion^=to-]:fade-out-0\",\n className,\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className=\"absolute left-0 top-full flex justify-center\">\n <NavigationMenuPrimitive.Viewport\n ref={ref}\n className={cn(\n \"relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden \" +\n \"rounded-lg border border-border bg-background text-foreground shadow-lg \" +\n \"md:w-[var(--radix-navigation-menu-viewport-width)] \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\",\n className,\n )}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n \"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden \" +\n \"data-[state=visible]:animate-in data-[state=hidden]:animate-out \" +\n \"data-[state=hidden]:fade-out-0 data-[state=visible]:fade-in-0\",\n className,\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName =\n NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuTrigger,\n NavigationMenuContent,\n NavigationMenuLink,\n NavigationMenuViewport,\n NavigationMenuIndicator,\n navigationMenuTriggerStyle,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkMIYL7YKU_cjs=require('./chunk-MIYL7YKU.cjs'),chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),o=require('react'),e=require('@radix-ui/react-dropdown-menu');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var e__namespace=/*#__PURE__*/_interopNamespace(e);var C=e__namespace.Root,S=e__namespace.Trigger,g=e__namespace.Group,k=e__namespace.Sub,x=e__namespace.RadioGroup,l=o__namespace.forwardRef(({className:t,sideOffset:n=6,...r},i)=>o__namespace.createElement(e__namespace.Portal,null,o__namespace.createElement(e__namespace.Content,{ref:i,sideOffset:n,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.a,t),...r})));l.displayName=e__namespace.Content.displayName;var M=o__namespace.forwardRef(({className:t,destructive:n,inset:r,...i},u)=>o__namespace.createElement(e__namespace.Item,{ref:u,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,r&&chunkMIYL7YKU_cjs.c,n&&chunkMIYL7YKU_cjs.g,t),...i}));M.displayName=e__namespace.Item.displayName;var D=o__namespace.forwardRef(({className:t,children:n,...r},i)=>o__namespace.createElement(e__namespace.CheckboxItem,{ref:i,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,chunkMIYL7YKU_cjs.c,t),...r},o__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o__namespace.createElement(e__namespace.ItemIndicator,null,o__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},o__namespace.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),n));D.displayName=e__namespace.CheckboxItem.displayName;var P=o__namespace.forwardRef(({className:t,children:n,...r},i)=>o__namespace.createElement(e__namespace.RadioItem,{ref:i,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,chunkMIYL7YKU_cjs.c,t),...r},o__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o__namespace.createElement(e__namespace.ItemIndicator,null,o__namespace.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),n));P.displayName=e__namespace.RadioItem.displayName;var R=o__namespace.forwardRef(({className:t,inset:n,...r},i)=>o__namespace.createElement(e__namespace.Label,{ref:i,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.d,n&&chunkMIYL7YKU_cjs.c,t),...r}));R.displayName=e__namespace.Label.displayName;var v=o__namespace.forwardRef(({className:t,...n},r)=>o__namespace.createElement(e__namespace.Separator,{ref:r,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.e,t),...n}));v.displayName=e__namespace.Separator.displayName;function y({className:t,...n}){return o__namespace.createElement("span",{className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.f,t),...n})}y.displayName="DropdownMenuShortcut";var b=o__namespace.forwardRef(({className:t,inset:n,children:r,...i},u)=>o__namespace.createElement(e__namespace.SubTrigger,{ref:u,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,"data-[state=open]:bg-muted",n&&chunkMIYL7YKU_cjs.c,t),...i},r,o__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},o__namespace.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));b.displayName=e__namespace.SubTrigger.displayName;var N=o__namespace.forwardRef(({className:t,...n},r)=>o__namespace.createElement(e__namespace.Portal,null,o__namespace.createElement(e__namespace.SubContent,{ref:r,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.a,t),...n})));N.displayName=e__namespace.SubContent.displayName;exports.a=C;exports.b=S;exports.c=g;exports.d=k;exports.e=x;exports.f=l;exports.g=M;exports.h=D;exports.i=P;exports.j=R;exports.k=v;exports.l=y;exports.m=b;exports.n=N;//# sourceMappingURL=chunk-4NLMGH2S.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-4NLMGH2S.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/dropdown-menu.tsx"],"names":["DropdownMenu","e","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuContent","o","className","sideOffset","props","ref","cn","menuSurface","DropdownMenuItem","destructive","inset","menuItem","menuItemInset","menuDestructive","DropdownMenuCheckboxItem","children","DropdownMenuRadioItem","DropdownMenuLabel","menuLabel","DropdownMenuSeparator","menuSeparator","DropdownMenuShortcut","menuShortcut","DropdownMenuSubTrigger","DropdownMenuSubContent"],"mappings":"4kBAwBA,IAAMA,CAAAA,CAAqCC,kBACrCC,CAAAA,CAA4CD,YAAA,CAAA,OAAA,CAC5CE,EAA0CF,YAAA,CAAA,KAAA,CAC1CG,CAAAA,CAAwCH,iBACxCI,CAAAA,CAA+CJ,YAAA,CAAA,UAAA,CAE/CK,EAA4BC,YAAA,CAAA,UAAA,CAGhC,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,WAAAC,CAAAA,CAAa,CAAA,CAAG,GAAGC,CAAM,CAAA,CAAGC,IAI1CJ,YAAA,CAAA,aAAA,CAAuBN,YAAA,CAAA,MAAA,CAAtB,KACCM,YAAA,CAAA,a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CAAWC,oBAAGC,mBAAAA,CAAaL,CAAS,EACnC,GAAGE,CAAAA,CACN,CACF,CACD,EACDoB,CAAAA,CAAuB,WAAA,CACC7B,YAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-4NLMGH2S.cjs","sourcesContent":["import * as React from \"react\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cn } from \"../../lib/utils\";\nimport {\n menuDestructive,\n menuItem,\n menuItemInset,\n menuLabel,\n menuSeparator,\n menuShortcut,\n menuSurface,\n} from \"./menu-styles\";\n\n/**\n * The menu that hangs off a button: row actions, account menus, overflow.\n *\n * Radix owns the hard parts - roving focus, typeahead, submenu timing, pointer\n * versus keyboard intent - so this is styling plus two defaults worth having in\n * one place rather than at every call site.\n *\n * `Select` is the neighbouring component and a different thing: it edits a form\n * value and has a selected state. A dropdown menu runs commands.\n */\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n // Portalled: an un-portalled menu is clipped by any ancestor with\n // `overflow: hidden`, which in practice means every card and table it is used\n // in - the single most common way a menu appears half-drawn.\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> {\n /** Pulls the item into the destructive palette. */\n destructive?: boolean;\n /** Indents to line up with checkbox and radio items in the same menu. */\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n DropdownMenuItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && menuItemInset,\n destructive && menuDestructive,\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>\n // `checked` rides along in the spread rather than being destructured and\n // re-passed: under exactOptionalPropertyTypes, handing back an explicit\n // `undefined` is not the same as omitting the prop, and Radix's type rejects it.\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-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> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(menuLabel, inset && menuItemInset, 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>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(menuSeparator, className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/** For a keyboard hint on the right of an item. Not interactive. */\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return <span className={cn(menuShortcut, className)} {...props} />;\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && menuItemInset,\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a as a$1,b as b$1,c,g as g$1,d as d$1,e as e$1,f}from'./chunk-XYPJ2K22.js';import {a}from'./chunk-AC2JBXHQ.js';import*as t from'react';import*as e from'@radix-ui/react-context-menu';var S=e.Root,g=e.Trigger,w=e.Group,k=e.Sub,L=e.RadioGroup,l=t.forwardRef(({className:n,...o},i)=>t.createElement(e.Portal,null,t.createElement(e.Content,{ref:i,className:a(a$1,n),...o})));l.displayName=e.Content.displayName;var M=t.forwardRef(({className:n,destructive:o,inset:i,...a$1},s)=>t.createElement(e.Item,{ref:s,className:a(b$1,i&&c,o&&g$1,n),...a$1}));M.displayName=e.Item.displayName;var P=t.forwardRef(({className:n,children:o,...i},a$1)=>t.createElement(e.CheckboxItem,{ref:a$1,className:a(b$1,c,n),...i},t.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t.createElement(e.ItemIndicator,null,t.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},t.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),o));P.displayName=e.CheckboxItem.displayName;var R=t.forwardRef(({className:n,children:o,...i},a$1)=>t.createElement(e.RadioItem,{ref:a$1,className:a(b$1,c,n),...i},t.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t.createElement(e.ItemIndicator,null,t.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),o));R.displayName=e.RadioItem.displayName;var v=t.forwardRef(({className:n,inset:o,...i},a$1)=>t.createElement(e.Label,{ref:a$1,className:a(d$1,o&&c,n),...i}));v.displayName=e.Label.displayName;var d=t.forwardRef(({className:n,...o},i)=>t.createElement(e.Separator,{ref:i,className:a(e$1,n),...o}));d.displayName=e.Separator.displayName;function y({className:n,...o}){return t.createElement("span",{className:a(f,n),...o})}y.displayName="ContextMenuShortcut";var b=t.forwardRef(({className:n,inset:o,children:i,...a$1},s)=>t.createElement(e.SubTrigger,{ref:s,className:a(b$1,"data-[state=open]:bg-muted",o&&c,n),...a$1},i,t.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},t.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));b.displayName=e.SubTrigger.displayName;var N=t.forwardRef(({className:n,...o},i)=>t.createElement(e.Portal,null,t.createElement(e.SubContent,{ref:i,className:a(a$1,n),...o})));N.displayName=e.SubContent.displayName;export{S as a,g as b,w as c,k as d,L as e,l as f,M as g,P as h,R as i,v as j,d as k,y as l,b as m,N as n};//# sourceMappingURL=chunk-AYKNZARS.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-AYKNZARS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/context-menu.tsx"],"names":["ContextMenu","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuContent","className","props","ref","cn","menuSurface","ContextMenuItem","destructive","inset","menuItem","menuItemInset","menuDestructive","ContextMenuCheckboxItem","children","ContextMenuRadioItem","ContextMenuLabel","menuLabel","ContextMenuSeparator","menuSeparator","ContextMenuShortcut","menuShortcut","ContextMenuSubTrigger","ContextMenuSubContent"],"mappings":"8LA4BA,IAAMA,EAAmC,CAAA,CAAA,IAAA,CACnCC,CAAAA,CAA0C,UAC1CC,CAAAA,CAAwC,CAAA,CAAA,KAAA,CACxCC,EAAsC,CAAA,CAAA,GAAA,CACtCC,CAAAA,CAA6C,aAE7CC,CAAAA,CAA2B,CAAA,CAAA,UAAA,CAG/B,CAAC,CAAE,SAAA,CAAAC,EAAW,GAAGC,CAAM,EAAGC,CAAAA,GAC1B,CAAA,CAAA,aAAA,CAAsB,SAArB,IAAA,CACC,CAAA,CAAA,aAAA,CAAsB,UAArB,CACC,GAAA,CAAKA,EACL,SAAA,CAAWC,CAAAA,CAAGC,IAAaJ,CAAS,CAAA,CACnC,GAAGC,CAAAA,CACN,CACF,CACD,EACDF,CAAAA,CAAmB,YAAmC,CAAA,CAAA,OAAA,CAAQ,WAAA,KASxDM,CAAAA,CAAwB,CAAA,CAAA,UAAA,CAG5B,CAAC,CAAE,SAAA,CAAAL,EAAW,WAAA,CAAAM,CAAAA,CAAa,MAAAC,CAAAA,CAAO,GAAGN,GAAM,CAAA,CAAGC,CAAAA,GAC9C,gBAAsB,CAAA,CAAA,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AAM,EAAGC,CAAAA,GAC3C,CAAA,CAAA,aAAA,CAAsB,aAArB,CACC,GAAA,CAAKA,EACL,SAAA,CAAWC,CAAAA,CACTK,IACA,4BAAA,CACAD,CAAAA,EAASE,EACTT,CACF,CAAA,CACC,GAAGC,GAAAA,CAAAA,CAEHW,CAAAA,CACD,gBAAC,KAAA,CAAA,CACC,OAAA,CAAQ,YACR,IAAA,CAAK,MAAA,CACL,UAAU,qBAAA,CACV,aAAA,CAAY,QAEZ,CAAA,CAAA,aAAA,CAAC,MAAA,CAAA,CACC,EAAE,cAAA,CACF,MAAA,CAAO,eACP,WAAA,CAAY,GAAA,CACZ,cAAc,OAAA,CACd,cAAA,CAAe,QACjB,CACF,CACF,CACD,EACDQ,CAAAA,CAAsB,YAAmC,CAAA,CAAA,UAAA,CAAW,WAAA,KAE9DC,CAAAA,CAA8B,CAAA,CAAA,UAAA,CAGlC,CAAC,CAAE,SAAA,CAAArB,EAAW,GAAGC,CAAM,EAAGC,CAAAA,GAC1B,CAAA,CAAA,aAAA,CAAsB,SAArB,IAAA,CACC,CAAA,CAAA,aAAA,CAAsB,aAArB,CACC,GAAA,CAAKA,EACL,SAAA,CAAWC,CAAAA,CAAGC,IAAaJ,CAAS,CAAA,CACnC,GAAGC,CAAAA,CACN,CACF,CACD,EACDoB,CAAAA,CAAsB,YAAmC,CAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-AYKNZARS.js","sourcesContent":["import * as React from \"react\";\nimport * as ContextMenuPrimitive from \"@radix-ui/react-context-menu\";\nimport { cn } from \"../../lib/utils\";\nimport {\n menuDestructive,\n menuItem,\n menuItemInset,\n menuLabel,\n menuSeparator,\n menuShortcut,\n menuSurface,\n} from \"./menu-styles\";\n\n/**\n * The menu that opens on right-click, at the pointer.\n *\n * A separate primitive from `DropdownMenu` rather than a prop on it, because the\n * two are genuinely different: this one has no visible trigger, opens where the\n * pointer is, and on touch opens on long-press. Radix models them separately for\n * that reason. The styling is shared through menu-styles.ts so the two look like\n * the same menu, which is what a user expects.\n *\n * Worth saying out loud: a context menu must not be the only way to reach an\n * action. There is no affordance for it, it is awkward on touch, and a keyboard\n * user gets there only through the context-menu key. Put the same actions in a\n * `DropdownMenu` or a toolbar as well.\n */\n\nconst ContextMenu = ContextMenuPrimitive.Root;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\nconst ContextMenuContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n));\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\nexport interface ContextMenuItemProps extends React.ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.Item\n> {\n destructive?: boolean;\n inset?: boolean;\n}\n\nconst ContextMenuItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Item>,\n ContextMenuItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && menuItemInset,\n destructive && menuDestructive,\n className,\n )}\n {...props}\n />\n));\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\nconst ContextMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n));\nContextMenuCheckboxItem.displayName =\n ContextMenuPrimitive.CheckboxItem.displayName;\n\nconst ContextMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n));\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\nconst ContextMenuLabel = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Label\n ref={ref}\n className={cn(menuLabel, inset && menuItemInset, className)}\n {...props}\n />\n));\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\nconst ContextMenuSeparator = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Separator\n ref={ref}\n className={cn(menuSeparator, className)}\n {...props}\n />\n));\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\nfunction ContextMenuShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return <span className={cn(menuShortcut, className)} {...props} />;\n}\nContextMenuShortcut.displayName = \"ContextMenuShortcut\";\n\nconst ContextMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <ContextMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && menuItemInset,\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </ContextMenuPrimitive.SubTrigger>\n));\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\nconst ContextMenuSubContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n));\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\nexport {\n ContextMenu,\n ContextMenuTrigger,\n ContextMenuContent,\n ContextMenuItem,\n ContextMenuCheckboxItem,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuLabel,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuGroup,\n ContextMenuSub,\n ContextMenuSubTrigger,\n ContextMenuSubContent,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a}from'./chunk-AC2JBXHQ.js';import*as t from'react';import*as e from'@radix-ui/react-navigation-menu';import {cva}from'class-variance-authority';var d=t.forwardRef(({className:i,children:a$1,...o},r)=>t.createElement(e.Root,{ref:r,className:a("relative z-10 flex max-w-max flex-1 items-center justify-center",i),...o},a$1,t.createElement(m,null)));d.displayName=e.Root.displayName;var v=t.forwardRef(({className:i,...a$1},o)=>t.createElement(e.List,{ref:o,className:a("group flex flex-1 list-none items-center justify-center gap-1",i),...a$1}));v.displayName=e.List.displayName;var N=e.Item,u=cva("group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors hover:bg-muted hover:text-foreground focus:bg-muted focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-muted"),f=t.forwardRef(({className:i,children:a$1,...o},r)=>t.createElement(e.Trigger,{ref:r,className:a(u(),"gap-1",i),...o},a$1,t.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"},t.createElement("path",{d:"m4 6 4 4 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));f.displayName=e.Trigger.displayName;var g=t.forwardRef(({className:i,...a$1},o)=>t.createElement(e.Content,{ref:o,className:a("left-0 top-0 w-full p-4 md:absolute md:w-auto data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in-0 data-[motion^=to-]:fade-out-0",i),...a$1}));g.displayName=e.Content.displayName;var R=e.Link,m=t.forwardRef(({className:i,...a$1},o)=>t.createElement("div",{className:"absolute left-0 top-full flex justify-center"},t.createElement(e.Viewport,{ref:o,className:a("relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-lg border border-border bg-background text-foreground shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",i),...a$1})));m.displayName=e.Viewport.displayName;var l=t.forwardRef(({className:i,...a$1},o)=>t.createElement(e.Indicator,{ref:o,className:a("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0 data-[state=visible]:fade-in-0",i),...a$1},t.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border"})));l.displayName=e.Indicator.displayName;export{d as a,v as b,N as c,u as d,f as e,g as f,R as g,m as h,l as i};//# sourceMappingURL=chunk-BISYWH74.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-BISYWH74.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/navigation-menu.tsx"],"names":["NavigationMenu","className","children","props","ref","cn","NavigationMenuViewport","NavigationMenuList","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator"],"mappings":"yJAoBA,IAAMA,CAAAA,CAAuB,CAAA,CAAA,UAAA,CAG3B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,GAAAA,CAAU,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GACpC,CAAA,CAAA,aAAA,CAAyB,CAAA,CAAA,IAAA,CAAxB,CACC,GAAA,CAAKA,CAAAA,CACL,UAAWC,CAAAA,CACT,iEAAA,CACAJ,CACF,CAAA,CACC,GAAGE,CAAAA,CAAAA,CAEHD,GAAAA,CACD,CAAA,CAAA,aAAA,CAACI,CAAAA,CAAA,IAAuB,CAC1B,CACD,EACDN,CAAAA,CAAe,YAAsC,CAAA,CAAA,IAAA,CAAK,WAAA,CAE1D,IAAMO,CAAAA,CAA2B,CAAA,CAAA,UAAA,CAG/B,CAAC,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OAAA,CAAxB,CACC,GAAA,CAAKA,CAAAA,CACL,SAAA,CAAWC,CAAAA,CACT,2KAAA,CAGAJ,CACF,CAAA,CACC,GAAGE,GAAAA,CACN,CACD,EACDS,CAAAA,CAAsB,WAAA,CAAsC,CAAA,CAAA,OAAA,CAAQ,WAAA,CAEpE,IAAMC,CAAAA,CAA6C,CAAA,CAAA,IAAA,CAE7CP,CAAAA,CAA+B,CAAA,CAAA,UAAA,CAGnC,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGE,GAAM,CAAA,CAAGC,CAAAA,GAC1B,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,8CAAA,CAAA,CACb,CAAA,CAAA,aAAA,CAAyB,CAAA,CAAA,QAAA,CAAxB,CACC,GAAA,CAAKA,CAAAA,CACL,SAAA,CAAWC,CAAAA,CACT,8UAAA,CAKAJ,CACF,CAAA,CACC,GAAGE,GAAAA,CACN,CACF,CACD,EACDG,CAAAA,CAAuB,WAAA,CACG,CAAA,CAAA,QAAA,CAAS,WAAA,CAEnC,IAAMQ,CAAAA,CAAgC,CAAA,CAAA,UAAA,CAGpC,CAAC,CAAE,SAAA,CAAAb,CAAAA,CAAW,GAAGE,GAAM,CAAA,CAAGC,CAAAA,GAC1B,CAAA,CAAA,aAAA,CAAyB,CAAA,CAAA,SAAA,CAAxB,CACC,GAAA,CAAKA,CAAAA,CACL,SAAA,CAAWC,CAAAA,CACT,kMAAA,CAGAJ,CACF,CAAA,CACC,GAAGE,GAAAA,CAAAA,CAEJ,CAAA,CAAA,aAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,8DAAA,CAA+D,CAChF,CACD,EACDW,CAAAA,CAAwB,WAAA,CACE,CAAA,CAAA,SAAA,CAAU,WAAA","file":"chunk-BISYWH74.js","sourcesContent":["import * as React from \"react\";\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\";\nimport { cva } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * Site navigation with panels: a header where \"Products\" opens a grid of links.\n *\n * Not a menu, despite the name. A `DropdownMenu` runs commands and uses menu\n * roles; this is a `<nav>` full of links, and Radix keeps it that way. That\n * distinction is the reason to use this one for site navigation - a screen\n * reader user gets a navigation landmark and a list of links rather than a menu\n * they are expected to act on.\n *\n * The viewport is where the active panel is drawn. It sits outside the list so\n * one panel can animate into the next without the trigger row reflowing, which\n * is why it is a separate component rather than something rendered inside each\n * item.\n */\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn(\n \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className,\n )}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn(\n \"group flex flex-1 list-none items-center justify-center gap-1\",\n className,\n )}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n \"group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium \" +\n \"transition-colors hover:bg-muted hover:text-foreground \" +\n \"focus:bg-muted focus:outline-none disabled:pointer-events-none disabled:opacity-50 \" +\n \"data-[state=open]:bg-muted\",\n);\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), \"gap-1\", className)}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m4 6 4 4 4-4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"left-0 top-0 w-full p-4 md:absolute md:w-auto \" +\n \"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out \" +\n \"data-[motion^=from-]:fade-in-0 data-[motion^=to-]:fade-out-0\",\n className,\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className=\"absolute left-0 top-full flex justify-center\">\n <NavigationMenuPrimitive.Viewport\n ref={ref}\n className={cn(\n \"relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden \" +\n \"rounded-lg border border-border bg-background text-foreground shadow-lg \" +\n \"md:w-[var(--radix-navigation-menu-viewport-width)] \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\",\n className,\n )}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n \"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden \" +\n \"data-[state=visible]:animate-in data-[state=hidden]:animate-out \" +\n \"data-[state=hidden]:fade-out-0 data-[state=visible]:fade-in-0\",\n className,\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName =\n NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuTrigger,\n NavigationMenuContent,\n NavigationMenuLink,\n NavigationMenuViewport,\n NavigationMenuIndicator,\n navigationMenuTriggerStyle,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),e=require('react'),r=require('@radix-ui/react-scroll-area');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var e__namespace=/*#__PURE__*/_interopNamespace(e);var r__namespace=/*#__PURE__*/_interopNamespace(r);var S=e__namespace.forwardRef(({className:i,children:l,orientation:o="vertical",viewportClassName:t,...m},n)=>e__namespace.createElement(r__namespace.Root,{ref:n,className:chunkITRGJNWL_cjs.a("relative overflow-hidden",i),...m},e__namespace.createElement(r__namespace.Viewport,{className:chunkITRGJNWL_cjs.a("h-full w-full rounded-[inherit]",t)},l),o!=="horizontal"&&e__namespace.createElement(c,{orientation:"vertical"}),o!=="vertical"&&e__namespace.createElement(c,{orientation:"horizontal"}),e__namespace.createElement(r__namespace.Corner,null)));S.displayName=r__namespace.Root.displayName;var c=e__namespace.forwardRef(({className:i,orientation:l="vertical",...o},t)=>e__namespace.createElement(r__namespace.ScrollAreaScrollbar,{ref:t,orientation:l,className:chunkITRGJNWL_cjs.a("flex touch-none select-none transition-colors",l==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",l==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",i),...o},e__namespace.createElement(r__namespace.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})));c.displayName=r__namespace.ScrollAreaScrollbar.displayName;exports.a=S;exports.b=c;//# sourceMappingURL=chunk-CGBIJDZX.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-CGBIJDZX.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/scroll-area.tsx"],"names":["ScrollArea","e","className","children","orientation","viewportClassName","props","ref","r","cn","ScrollBar"],"mappings":"4hBA2BMA,CAAAA,CAAmBC,YAAA,CAAA,UAAA,CAIvB,CACE,CACE,SAAA,CAAAC,CAAAA,CACA,SAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,UAAA,CACd,iBAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,GAEAN,YAAA,CAAA,aAAA,CAAqBO,YAAA,CAAA,IAAA,CAApB,CACC,GAAA,CAAKD,EACL,SAAA,CAAWE,mBAAAA,CAAG,0BAAA,CAA4BP,CAAS,CAAA,CAClD,GAAGI,CAAAA,CAAAA,CAEJL,YAAA,CAAA,aAAA,CAAqBO,YAAA,CAAA,QAAA,CAApB,CACC,SAAA,CAAWC,mBAAAA,CAAG,iCAAA,CAAmCJ,CAAiB,GAEjEF,CACH,CAAA,CACCC,CAAAA,GAAgB,YAAA,EAAgBH,YAAA,CAAA,aAAA,CAACS,CAAAA,CAAA,CAAU,WAAA,CAAY,UAAA,CAAW,CAAA,CAClEN,CAAAA,GAAgB,UAAA,EAAcH,YAAA,CAAA,aAAA,CAACS,CAAAA,CAAA,CAAU,WAAA,CAAY,YAAA,CAAa,CAAA,CACnET,YAAA,CAAA,aAAA,CAAqBO,YAAA,CAAA,MAAA,CAApB,IAA2B,CAC9B,CAEJ,EACAR,CAAAA,CAAW,WAAA,CAAkCQ,YAAA,CAAA,IAAA,CAAK,WAAA,CAElD,IAAME,EAAkBT,YAAA,CAAA,UAAA,CAGtB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,WAAA,CAAAE,CAAAA,CAAc,UAAA,CAAY,GAAGE,CAAM,CAAA,CAAGC,CAAAA,GACpDN,YAAA,CAAA,aAAA,CAAqBO,YAAA,CAAA,mBAAA,CAApB,CACC,GAAA,CAAKD,CAAAA,CACL,WAAA,CAAaH,CAAAA,CACb,SAAA,CAAWK,mBAAAA,CACT,+CAAA,CACAL,CAAAA,GAAgB,UAAA,EACd,oDAAA,CACFA,CAAAA,GAAgB,YAAA,EACd,sDAAA,CACFF,CACF,EACC,GAAGI,CAAAA,CAAAA,CAEJL,YAAA,CAAA,aAAA,CAAqBO,YAAA,CAAA,eAAA,CAApB,CAAoC,SAAA,CAAU,wCAAA,CAAyC,CAC1F,CACD,EACDE,CAAAA,CAAU,WAAA,CAAkCF,YAAA,CAAA,mBAAA,CAAoB,WAAA","file":"chunk-CGBIJDZX.cjs","sourcesContent":["import * as React from \"react\";\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A scrollable region with scrollbars that look the same everywhere.\n *\n * Native scrollbars differ per platform and, on macOS with overlay scrollbars\n * on, are invisible until you scroll. That is fine for a page and awkward for a\n * panel inside one, where the absence of a scrollbar reads as \"there is nothing\n * more here\".\n *\n * Radix keeps native scrolling and native keyboard behaviour and only replaces\n * the scrollbar's appearance, so wheel, trackpad, touch, Page Up and Home all\n * still work. Worth stating because scrollbar libraries that reimplement\n * scrolling itself usually break at least one of those.\n */\n\nexport interface ScrollAreaProps extends React.ComponentPropsWithoutRef<\n typeof ScrollAreaPrimitive.Root\n> {\n /** Which scrollbars to render. Defaults to vertical. */\n orientation?: \"vertical\" | \"horizontal\" | \"both\";\n /** Passed to the viewport, for a max height or a fixed size. */\n viewportClassName?: string;\n}\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n ScrollAreaProps\n>(\n (\n {\n className,\n children,\n orientation = \"vertical\",\n viewportClassName,\n ...props\n },\n ref,\n ) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"relative overflow-hidden\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n className={cn(\"h-full w-full rounded-[inherit]\", viewportClassName)}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n {orientation !== \"horizontal\" && <ScrollBar orientation=\"vertical\" />}\n {orientation !== \"vertical\" && <ScrollBar orientation=\"horizontal\" />}\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n ),\n);\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"flex touch-none select-none transition-colors\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent p-[1px]\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent p-[1px]\",\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),t=require('react'),e=require('@radix-ui/react-hover-card');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var e__namespace=/*#__PURE__*/_interopNamespace(e);var f=e__namespace.Root,v=e__namespace.Trigger,m=t__namespace.forwardRef(({className:r,align:a="center",sideOffset:i=8,...d},n)=>t__namespace.createElement(e__namespace.Portal,null,t__namespace.createElement(e__namespace.Content,{ref:n,align:a,sideOffset:i,className:chunkITRGJNWL_cjs.a("z-50 w-64 rounded-lg border border-border bg-background p-4 text-foreground shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",r),...d})));m.displayName=e__namespace.Content.displayName;exports.a=f;exports.b=v;exports.c=m;//# sourceMappingURL=chunk-E3A4SP3X.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-E3A4SP3X.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/hover-card.tsx"],"names":["HoverCard","e","HoverCardTrigger","HoverCardContent","t","className","align","sideOffset","props","ref","cn"],"mappings":"uhBAmBA,IAAMA,CAAAA,CAA+BC,YAAA,CAAA,IAAA,CAC/BC,CAAAA,CAAsCD,YAAA,CAAA,OAAA,CAEtCE,CAAAA,CAAyBC,wBAG7B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAQ,SAAU,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAG,GAAGC,CAAM,CAAA,CAAGC,IAC5DL,YAAA,CAAA,aAAA,CAAoBH,YAAA,CAAA,MAAA,CAAnB,KACCG,YAAA,CAAA,aAAA,CAAoBH,YAAA,CAAA,OAAA,CAAnB,CACC,GAAA,CAAKQ,CAAAA,CACL,KAAA,CAAOH,CAAAA,CACP,UAAA,CAAYC,CAAAA,CACZ,UAAWG,mBAAAA,CACT,qbAAA,CAMAL,CACF,CAAA,CACC,GAAGG,CAAAA,CACN,CACF,CACD,EACDL,CAAAA,CAAiB,WAAA,CAAiCF,YAAA,CAAA,OAAA,CAAQ,WAAA","file":"chunk-E3A4SP3X.cjs","sourcesContent":["import * as React from \"react\";\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A preview that appears on hover: a user card behind a mention, a repository\n * summary behind a link.\n *\n * Not a `Tooltip`. A tooltip labels something in a few words and is announced as\n * the element's description; a hover card holds real content, including links\n * you can move the pointer into.\n *\n * It opens on hover and on keyboard focus, but its content is not reachable by\n * keyboard beyond that, and it never opens on touch. So it has to stay\n * supplementary: everything inside must also be available somewhere else. Radix\n * marks it `aria-hidden` for that reason, which is correct and means a screen\n * reader will not see it at all.\n */\n\nconst HoverCard = HoverCardPrimitive.Root;\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 8, ...props }, ref) => (\n <HoverCardPrimitive.Portal>\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-64 rounded-lg border border-border bg-background p-4 text-foreground shadow-lg outline-none \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n {...props}\n />\n </HoverCardPrimitive.Portal>\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkMIYL7YKU_cjs=require('./chunk-MIYL7YKU.cjs'),chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),t=require('react'),e=require('@radix-ui/react-menubar');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var e__namespace=/*#__PURE__*/_interopNamespace(e);var d=t__namespace.forwardRef(({className:r,...a},i)=>t__namespace.createElement(e__namespace.Root,{ref:i,className:chunkITRGJNWL_cjs.a("flex items-center gap-1 rounded-lg border border-border bg-background p-1",r),...a}));d.displayName=e__namespace.Root.displayName;var M=t__namespace.forwardRef(({className:r,...a},i)=>t__namespace.createElement(e__namespace.Trigger,{ref:i,className:chunkITRGJNWL_cjs.a("flex cursor-pointer select-none items-center rounded-md px-3 py-1.5 text-sm font-medium outline-none focus:bg-muted data-[state=open]:bg-muted",r),...a}));M.displayName=e__namespace.Trigger.displayName;var R=t__namespace.forwardRef(({className:r,align:a="start",sideOffset:i=6,...o},u)=>t__namespace.createElement(e__namespace.Portal,null,t__namespace.createElement(e__namespace.Content,{ref:u,align:a,sideOffset:i,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.a,r),...o})));R.displayName=e__namespace.Content.displayName;var P=t__namespace.forwardRef(({className:r,destructive:a,inset:i,...o},u)=>t__namespace.createElement(e__namespace.Item,{ref:u,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,i&&chunkMIYL7YKU_cjs.c,a&&chunkMIYL7YKU_cjs.g,r),...o}));P.displayName=e__namespace.Item.displayName;var v=t__namespace.forwardRef(({className:r,children:a,...i},o)=>t__namespace.createElement(e__namespace.CheckboxItem,{ref:o,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,chunkMIYL7YKU_cjs.c,r),...i},t__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t__namespace.createElement(e__namespace.ItemIndicator,null,t__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},t__namespace.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),a));v.displayName=e__namespace.CheckboxItem.displayName;var y=t__namespace.forwardRef(({className:r,children:a,...i},o)=>t__namespace.createElement(e__namespace.RadioItem,{ref:o,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,chunkMIYL7YKU_cjs.c,r),...i},t__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t__namespace.createElement(e__namespace.ItemIndicator,null,t__namespace.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),a));y.displayName=e__namespace.RadioItem.displayName;var N=t__namespace.forwardRef(({className:r,inset:a,...i},o)=>t__namespace.createElement(e__namespace.Label,{ref:o,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.d,a&&chunkMIYL7YKU_cjs.c,r),...i}));N.displayName=e__namespace.Label.displayName;var g=t__namespace.forwardRef(({className:r,...a},i)=>t__namespace.createElement(e__namespace.Separator,{ref:i,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.e,r),...a}));g.displayName=e__namespace.Separator.displayName;function h({className:r,...a}){return t__namespace.createElement("span",{className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.f,r),...a})}h.displayName="MenubarShortcut";var I=t__namespace.forwardRef(({className:r,inset:a,children:i,...o},u)=>t__namespace.createElement(e__namespace.SubTrigger,{ref:u,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,"data-[state=open]:bg-muted",a&&chunkMIYL7YKU_cjs.c,r),...o},i,t__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},t__namespace.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));I.displayName=e__namespace.SubTrigger.displayName;var C=t__namespace.forwardRef(({className:r,...a},i)=>t__namespace.createElement(e__namespace.Portal,null,t__namespace.createElement(e__namespace.SubContent,{ref:i,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.a,r),...a})));C.displayName=e__namespace.SubContent.displayName;Object.defineProperty(exports,"l",{enumerable:true,get:function(){return e.Menu}});Object.defineProperty(exports,"m",{enumerable:true,get:function(){return e.Group}});Object.defineProperty(exports,"n",{enumerable:true,get:function(){return e.Sub}});Object.defineProperty(exports,"o",{enumerable:true,get:function(){return e.RadioGroup}});exports.a=d;exports.b=M;exports.c=R;exports.d=P;exports.e=v;exports.f=y;exports.g=N;exports.h=g;exports.i=h;exports.j=I;exports.k=C;//# sourceMappingURL=chunk-FMIAI6US.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-FMIAI6US.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/menubar.tsx"],"names":["Menubar","t","className","props","ref","e","cn","MenubarTrigger","MenubarContent","align","sideOffset","menuSurface","MenubarItem","destructive","inset","menuItem","menuItemInset","menuDestructive","MenubarCheckboxItem","children","MenubarRadioItem","MenubarLabel","menuLabel","MenubarSeparator","menuSeparator","MenubarShortcut","menuShortcut","MenubarSubTrigger","MenubarSubContent"],"mappings":"skBA0BA,IAAMA,CAAAA,CAAgBC,YAAA,CAAA,UAAA,CAGpB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GAC1BH,2BAAkBI,YAAA,CAAA,IAAA,CAAjB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,mBAAAA,CACT,4EACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CACD,EACDH,EAAQ,WAAA,CAA+BK,YAAA,CAAA,IAAA,CAAK,WAAA,CAc5C,IAAME,CAAAA,CAAuBN,YAAA,CAAA,UAAA,CAG3B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,IAC1BH,YAAA,CAAA,aAAA,CAAkBI,YAAA,CAAA,OAAA,CAAjB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,oBACT,gJAAA,CAEAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CACD,EACDI,CAAAA,CAAe,WAAA,CAA+BF,YAAA,CAAA,OAAA,CAAQ,WAAA,CAEtD,IAAMG,CAAAA,CAAuBP,wBAG3B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAO,CAAAA,CAAQ,QAAS,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAG,GAAGP,CAAM,CAAA,CAAGC,IAC3DH,YAAA,CAAA,aAAA,CAAkBI,YAAA,CAAA,MAAA,CAAj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,CAEZA,YAAA,CAAA,aAAA,CAAC,MAAA,CAAA,CACC,CAAA,CAAE,cAAA,CACF,OAAO,cAAA,CACP,WAAA,CAAY,GAAA,CACZ,aAAA,CAAc,OAAA,CACd,cAAA,CAAe,QACjB,CACF,CACF,CACD,EACD0B,CAAAA,CAAkB,WAAA,CAA+BtB,wBAAW,WAAA,CAE5D,IAAMuB,CAAAA,CAA0B3B,YAAA,CAAA,UAAA,CAG9B,CAAC,CAAE,UAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GAC1BH,YAAA,CAAA,aAAA,CAAkBI,oBAAjB,IAAA,CACCJ,YAAA,CAAA,aAAA,CAAkBI,YAAA,CAAA,UAAA,CAAjB,CACC,GAAA,CAAKD,CAAAA,CACL,UAAWE,mBAAAA,CAAGK,mBAAAA,CAAaT,CAAS,CAAA,CACnC,GAAGC,CAAAA,CACN,CACF,CACD,EACDyB,CAAAA,CAAkB,WAAA,CAA+BvB,YAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-FMIAI6US.cjs","sourcesContent":["import * as React from \"react\";\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\";\nimport { cn } from \"../../lib/utils\";\nimport {\n menuDestructive,\n menuItem,\n menuItemInset,\n menuLabel,\n menuSeparator,\n menuShortcut,\n menuSurface,\n} from \"./menu-styles\";\n\n/**\n * The application menu bar: File, Edit, View, each opening its own menu.\n *\n * Its own primitive rather than a row of dropdowns, because a menu bar behaves\n * as one control. Once a menu is open, moving the pointer to a neighbouring\n * trigger opens that one without a click, and the arrow keys move between menus\n * as well as within them. A row of independent `DropdownMenu`s gets none of\n * that.\n *\n * Third component reading from menu-styles, after DropdownMenu and ContextMenu.\n * All three are the same menu to look at, and now cannot drift apart.\n */\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn(\n \"flex items-center gap-1 rounded-lg border border-border bg-background p-1\",\n className,\n )}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\n// Re-exported straight from the package rather than through `const X =\n// MenubarPrimitive.Y`. That form makes TypeScript infer a type naming an\n// internal Radix path, which it cannot write into the .d.ts - TS2742, \"the\n// inferred type cannot be named without a reference to ... this is likely not\n// portable\". A direct re-export skips the inference entirely.\nexport {\n Menu as MenubarMenu,\n Group as MenubarGroup,\n Sub as MenubarSub,\n RadioGroup as MenubarRadioGroup,\n} from \"@radix-ui/react-menubar\";\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex cursor-pointer select-none items-center rounded-md px-3 py-1.5 text-sm font-medium outline-none \" +\n \"focus:bg-muted data-[state=open]:bg-muted\",\n className,\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>\n>(({ className, align = \"start\", sideOffset = 6, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(menuSurface, className)}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nexport interface MenubarItemProps extends React.ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Item\n> {\n destructive?: boolean;\n inset?: boolean;\n}\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n MenubarItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && menuItemInset,\n destructive && menuDestructive,\n className,\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn(menuLabel, inset && menuItemInset, className)}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator\n ref={ref}\n className={cn(menuSeparator, className)}\n {...props}\n />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nfunction MenubarShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return <span className={cn(menuShortcut, className)} {...props} />;\n}\nMenubarShortcut.displayName = \"MenubarShortcut\";\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && menuItemInset,\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nexport {\n Menubar,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarCheckboxItem,\n MenubarRadioItem,\n MenubarLabel,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSubTrigger,\n MenubarSubContent,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a as a$1,b,c,g as g$1,d as d$1,e as e$1,f}from'./chunk-XYPJ2K22.js';import {a}from'./chunk-AC2JBXHQ.js';import*as t from'react';import*as e from'@radix-ui/react-menubar';export{Menu as l,Group as m,Sub as n,RadioGroup as o}from'@radix-ui/react-menubar';var d=t.forwardRef(({className:r,...a$1},i)=>t.createElement(e.Root,{ref:i,className:a("flex items-center gap-1 rounded-lg border border-border bg-background p-1",r),...a$1}));d.displayName=e.Root.displayName;var M=t.forwardRef(({className:r,...a$1},i)=>t.createElement(e.Trigger,{ref:i,className:a("flex cursor-pointer select-none items-center rounded-md px-3 py-1.5 text-sm font-medium outline-none focus:bg-muted data-[state=open]:bg-muted",r),...a$1}));M.displayName=e.Trigger.displayName;var R=t.forwardRef(({className:r,align:a$2="start",sideOffset:i=6,...o},u)=>t.createElement(e.Portal,null,t.createElement(e.Content,{ref:u,align:a$2,sideOffset:i,className:a(a$1,r),...o})));R.displayName=e.Content.displayName;var P=t.forwardRef(({className:r,destructive:a$1,inset:i,...o},u)=>t.createElement(e.Item,{ref:u,className:a(b,i&&c,a$1&&g$1,r),...o}));P.displayName=e.Item.displayName;var v=t.forwardRef(({className:r,children:a$1,...i},o)=>t.createElement(e.CheckboxItem,{ref:o,className:a(b,c,r),...i},t.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t.createElement(e.ItemIndicator,null,t.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},t.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),a$1));v.displayName=e.CheckboxItem.displayName;var y=t.forwardRef(({className:r,children:a$1,...i},o)=>t.createElement(e.RadioItem,{ref:o,className:a(b,c,r),...i},t.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t.createElement(e.ItemIndicator,null,t.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),a$1));y.displayName=e.RadioItem.displayName;var N=t.forwardRef(({className:r,inset:a$1,...i},o)=>t.createElement(e.Label,{ref:o,className:a(d$1,a$1&&c,r),...i}));N.displayName=e.Label.displayName;var g=t.forwardRef(({className:r,...a$1},i)=>t.createElement(e.Separator,{ref:i,className:a(e$1,r),...a$1}));g.displayName=e.Separator.displayName;function h({className:r,...a$1}){return t.createElement("span",{className:a(f,r),...a$1})}h.displayName="MenubarShortcut";var I=t.forwardRef(({className:r,inset:a$1,children:i,...o},u)=>t.createElement(e.SubTrigger,{ref:u,className:a(b,"data-[state=open]:bg-muted",a$1&&c,r),...o},i,t.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},t.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));I.displayName=e.SubTrigger.displayName;var C=t.forwardRef(({className:r,...a$2},i)=>t.createElement(e.Portal,null,t.createElement(e.SubContent,{ref:i,className:a(a$1,r),...a$2})));C.displayName=e.SubContent.displayName;export{d as a,M as b,R as c,P as d,v as e,y as f,N as g,g as h,h as i,I as j,C as k};//# sourceMappingURL=chunk-FTAB43WC.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-FTAB43WC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/menubar.tsx"],"names":["Menubar","className","props","ref","cn","MenubarTrigger","MenubarContent","align","sideOffset","menuSurface","MenubarItem","destructive","inset","menuItem","menuItemInset","menuDestructive","MenubarCheckboxItem","children","MenubarRadioItem","MenubarLabel","menuLabel","MenubarSeparator","menuSeparator","MenubarShortcut","menuShortcut","MenubarSubTrigger","MenubarSubContent"],"mappings":"qQA0BA,IAAMA,CAAAA,CAAgB,CAAA,CAAA,UAAA,CAGpB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,GAAM,CAAA,CAAGC,CAAAA,GAC1B,gBAAkB,CAAA,CAAA,IAAA,CAAjB,CACC,GAAA,CAAKA,CAAAA,CACL,SAAA,CAAWC,CAAAA,CACT,4EACAH,CACF,CAAA,CACC,GAAGC,GAAAA,CACN,CACD,EACDF,EAAQ,WAAA,CAA+B,CAAA,CAAA,IAAA,CAAK,WAAA,CAc5C,IAAMK,CAAAA,CAAuB,CAAA,CAAA,UAAA,CAG3B,CAAC,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,GAAM,CAAA,CAAGC,IAC1B,CAAA,CAAA,aAAA,CAAkB,CAAA,CAAA,OAAA,CAAjB,CACC,GAAA,CAAKA,CAAAA,CACL,SAAA,CAAWC,EACT,gJAAA,CAEAH,CACF,CAAA,CACC,GAAGC,GAAAA,CACN,CACD,EACDG,CAAAA,CAAe,WAAA,CAA+B,CAAA,CAAA,OAAA,CAAQ,WAAA,CAEtD,IAAMC,CAAAA,CAAuB,aAG3B,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,KAAA,CAAAM,GAAAA,CAAQ,QAAS,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAG,GAAGN,CAAM,CAAA,CAAGC,IAC3D,CAAA,CAAA,aAAA,CAAkB,CAAA,CAAA,MAAA,CAAjB,IAAA,CACC,CAAA,CAAA,aAAA,CAAkB,CAAA,CAAA,OAAA,CAAjB,CACC,IAAKA,CAAAA,CACL,KAAA,CAAOI,GAAAA,CACP,UAAA,CAAYC,CAAAA,CACZ,SAAA,CAAWJ,EAAGK,GAAAA,CAAaR,CAAS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B,CAAC,CAAE,UAAAzB,CAAAA,CAAW,GAAGC,GAAM,CAAA,CAAGC,CAAAA,GAC1B,CAAA,CAAA,aAAA,CAAkB,SAAjB,IAAA,CACC,CAAA,CAAA,aAAA,CAAkB,CAAA,CAAA,UAAA,CAAjB,CACC,GAAA,CAAKA,CAAAA,CACL,UAAWC,CAAAA,CAAGK,GAAAA,CAAaR,CAAS,CAAA,CACnC,GAAGC,GAAAA,CACN,CACF,CACD,EACDwB,CAAAA,CAAkB,WAAA,CAA+B,CAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-FTAB43WC.js","sourcesContent":["import * as React from \"react\";\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\";\nimport { cn } from \"../../lib/utils\";\nimport {\n menuDestructive,\n menuItem,\n menuItemInset,\n menuLabel,\n menuSeparator,\n menuShortcut,\n menuSurface,\n} from \"./menu-styles\";\n\n/**\n * The application menu bar: File, Edit, View, each opening its own menu.\n *\n * Its own primitive rather than a row of dropdowns, because a menu bar behaves\n * as one control. Once a menu is open, moving the pointer to a neighbouring\n * trigger opens that one without a click, and the arrow keys move between menus\n * as well as within them. A row of independent `DropdownMenu`s gets none of\n * that.\n *\n * Third component reading from menu-styles, after DropdownMenu and ContextMenu.\n * All three are the same menu to look at, and now cannot drift apart.\n */\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn(\n \"flex items-center gap-1 rounded-lg border border-border bg-background p-1\",\n className,\n )}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\n// Re-exported straight from the package rather than through `const X =\n// MenubarPrimitive.Y`. That form makes TypeScript infer a type naming an\n// internal Radix path, which it cannot write into the .d.ts - TS2742, \"the\n// inferred type cannot be named without a reference to ... this is likely not\n// portable\". A direct re-export skips the inference entirely.\nexport {\n Menu as MenubarMenu,\n Group as MenubarGroup,\n Sub as MenubarSub,\n RadioGroup as MenubarRadioGroup,\n} from \"@radix-ui/react-menubar\";\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex cursor-pointer select-none items-center rounded-md px-3 py-1.5 text-sm font-medium outline-none \" +\n \"focus:bg-muted data-[state=open]:bg-muted\",\n className,\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>\n>(({ className, align = \"start\", sideOffset = 6, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(menuSurface, className)}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nexport interface MenubarItemProps extends React.ComponentPropsWithoutRef<\n typeof MenubarPrimitive.Item\n> {\n destructive?: boolean;\n inset?: boolean;\n}\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n MenubarItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && menuItemInset,\n destructive && menuDestructive,\n className,\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn(menuLabel, inset && menuItemInset, className)}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator\n ref={ref}\n className={cn(menuSeparator, className)}\n {...props}\n />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nfunction MenubarShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return <span className={cn(menuShortcut, className)} {...props} />;\n}\nMenubarShortcut.displayName = \"MenubarShortcut\";\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && menuItemInset,\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </MenubarPrimitive.Portal>\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nexport {\n Menubar,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarCheckboxItem,\n MenubarRadioItem,\n MenubarLabel,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSubTrigger,\n MenubarSubContent,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a}from'./chunk-AC2JBXHQ.js';import*as e from'react';import*as r from'@radix-ui/react-scroll-area';var S=e.forwardRef(({className:i,children:l,orientation:o="vertical",viewportClassName:t,...m},n)=>e.createElement(r.Root,{ref:n,className:a("relative overflow-hidden",i),...m},e.createElement(r.Viewport,{className:a("h-full w-full rounded-[inherit]",t)},l),o!=="horizontal"&&e.createElement(c,{orientation:"vertical"}),o!=="vertical"&&e.createElement(c,{orientation:"horizontal"}),e.createElement(r.Corner,null)));S.displayName=r.Root.displayName;var c=e.forwardRef(({className:i,orientation:l="vertical",...o},t)=>e.createElement(r.ScrollAreaScrollbar,{ref:t,orientation:l,className:a("flex touch-none select-none transition-colors",l==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",l==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",i),...o},e.createElement(r.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})));c.displayName=r.ScrollAreaScrollbar.displayName;export{S as a,c as b};//# sourceMappingURL=chunk-GCMMAUW3.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-GCMMAUW3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/scroll-area.tsx"],"names":["ScrollArea","className","children","orientation","viewportClassName","props","ref","cn","ScrollBar"],"mappings":"8GA2BMA,CAAAA,CAAmB,CAAA,CAAA,UAAA,CAIvB,CACE,CACE,SAAA,CAAAC,CAAAA,CACA,SAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,UAAA,CACd,iBAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,GAEA,CAAA,CAAA,aAAA,CAAqB,CAAA,CAAA,IAAA,CAApB,CACC,GAAA,CAAKA,EACL,SAAA,CAAWC,CAAAA,CAAG,0BAAA,CAA4BN,CAAS,CAAA,CAClD,GAAGI,CAAAA,CAAAA,CAEJ,CAAA,CAAA,aAAA,CAAqB,CAAA,CAAA,QAAA,CAApB,CACC,SAAA,CAAWE,CAAAA,CAAG,iCAAA,CAAmCH,CAAiB,GAEjEF,CACH,CAAA,CACCC,CAAAA,GAAgB,YAAA,EAAgB,CAAA,CAAA,aAAA,CAACK,CAAAA,CAAA,CAAU,WAAA,CAAY,UAAA,CAAW,CAAA,CAClEL,CAAAA,GAAgB,UAAA,EAAc,CAAA,CAAA,aAAA,CAACK,CAAAA,CAAA,CAAU,WAAA,CAAY,YAAA,CAAa,CAAA,CACnE,CAAA,CAAA,aAAA,CAAqB,CAAA,CAAA,MAAA,CAApB,IAA2B,CAC9B,CAEJ,EACAR,CAAAA,CAAW,WAAA,CAAkC,CAAA,CAAA,IAAA,CAAK,WAAA,CAElD,IAAMQ,EAAkB,CAAA,CAAA,UAAA,CAGtB,CAAC,CAAE,SAAA,CAAAP,CAAAA,CAAW,WAAA,CAAAE,CAAAA,CAAc,UAAA,CAAY,GAAGE,CAAM,CAAA,CAAGC,CAAAA,GACpD,CAAA,CAAA,aAAA,CAAqB,CAAA,CAAA,mBAAA,CAApB,CACC,GAAA,CAAKA,CAAAA,CACL,WAAA,CAAaH,CAAAA,CACb,SAAA,CAAWI,CAAAA,CACT,+CAAA,CACAJ,CAAAA,GAAgB,UAAA,EACd,oDAAA,CACFA,CAAAA,GAAgB,YAAA,EACd,sDAAA,CACFF,CACF,EACC,GAAGI,CAAAA,CAAAA,CAEJ,CAAA,CAAA,aAAA,CAAqB,CAAA,CAAA,eAAA,CAApB,CAAoC,SAAA,CAAU,wCAAA,CAAyC,CAC1F,CACD,EACDG,CAAAA,CAAU,WAAA,CAAkC,CAAA,CAAA,mBAAA,CAAoB,WAAA","file":"chunk-GCMMAUW3.js","sourcesContent":["import * as React from \"react\";\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A scrollable region with scrollbars that look the same everywhere.\n *\n * Native scrollbars differ per platform and, on macOS with overlay scrollbars\n * on, are invisible until you scroll. That is fine for a page and awkward for a\n * panel inside one, where the absence of a scrollbar reads as \"there is nothing\n * more here\".\n *\n * Radix keeps native scrolling and native keyboard behaviour and only replaces\n * the scrollbar's appearance, so wheel, trackpad, touch, Page Up and Home all\n * still work. Worth stating because scrollbar libraries that reimplement\n * scrolling itself usually break at least one of those.\n */\n\nexport interface ScrollAreaProps extends React.ComponentPropsWithoutRef<\n typeof ScrollAreaPrimitive.Root\n> {\n /** Which scrollbars to render. Defaults to vertical. */\n orientation?: \"vertical\" | \"horizontal\" | \"both\";\n /** Passed to the viewport, for a max height or a fixed size. */\n viewportClassName?: string;\n}\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n ScrollAreaProps\n>(\n (\n {\n className,\n children,\n orientation = \"vertical\",\n viewportClassName,\n ...props\n },\n ref,\n ) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"relative overflow-hidden\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n className={cn(\"h-full w-full rounded-[inherit]\", viewportClassName)}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n {orientation !== \"horizontal\" && <ScrollBar orientation=\"vertical\" />}\n {orientation !== \"vertical\" && <ScrollBar orientation=\"horizontal\" />}\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n ),\n);\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"flex touch-none select-none transition-colors\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent p-[1px]\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent p-[1px]\",\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a}from'./chunk-AC2JBXHQ.js';import*as t from'react';import*as e from'@radix-ui/react-hover-card';var f=e.Root,v=e.Trigger,m=t.forwardRef(({className:r,align:a$1="center",sideOffset:i=8,...d},n)=>t.createElement(e.Portal,null,t.createElement(e.Content,{ref:n,align:a$1,sideOffset:i,className:a("z-50 w-64 rounded-lg border border-border bg-background p-4 text-foreground shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",r),...d})));m.displayName=e.Content.displayName;export{f as a,v as b,m as c};//# sourceMappingURL=chunk-HEU5GFOV.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-HEU5GFOV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/hover-card.tsx"],"names":["HoverCard","HoverCardTrigger","HoverCardContent","className","align","sideOffset","props","ref","cn"],"mappings":"yGAmBA,IAAMA,CAAAA,CAA+B,CAAA,CAAA,IAAA,CAC/BC,CAAAA,CAAsC,CAAA,CAAA,OAAA,CAEtCC,CAAAA,CAAyB,aAG7B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,GAAAA,CAAQ,SAAU,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAG,GAAGC,CAAM,CAAA,CAAGC,IAC5D,CAAA,CAAA,aAAA,CAAoB,CAAA,CAAA,MAAA,CAAnB,KACC,CAAA,CAAA,aAAA,CAAoB,CAAA,CAAA,OAAA,CAAnB,CACC,GAAA,CAAKA,CAAAA,CACL,KAAA,CAAOH,GAAAA,CACP,UAAA,CAAYC,CAAAA,CACZ,UAAWG,CAAAA,CACT,qbAAA,CAMAL,CACF,CAAA,CACC,GAAGG,CAAAA,CACN,CACF,CACD,EACDJ,CAAAA,CAAiB,WAAA,CAAiC,CAAA,CAAA,OAAA,CAAQ,WAAA","file":"chunk-HEU5GFOV.js","sourcesContent":["import * as React from \"react\";\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A preview that appears on hover: a user card behind a mention, a repository\n * summary behind a link.\n *\n * Not a `Tooltip`. A tooltip labels something in a few words and is announced as\n * the element's description; a hover card holds real content, including links\n * you can move the pointer into.\n *\n * It opens on hover and on keyboard focus, but its content is not reachable by\n * keyboard beyond that, and it never opens on touch. So it has to stay\n * supplementary: everything inside must also be available somewhere else. Radix\n * marks it `aria-hidden` for that reason, which is correct and means a screen\n * reader will not see it at all.\n */\n\nconst HoverCard = HoverCardPrimitive.Root;\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 8, ...props }, ref) => (\n <HoverCardPrimitive.Portal>\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-64 rounded-lg border border-border bg-background p-4 text-foreground shadow-lg outline-none \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n {...props}\n />\n </HoverCardPrimitive.Portal>\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkMIYL7YKU_cjs=require('./chunk-MIYL7YKU.cjs'),chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),t=require('react'),e=require('@radix-ui/react-context-menu');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var e__namespace=/*#__PURE__*/_interopNamespace(e);var S=e__namespace.Root,g=e__namespace.Trigger,w=e__namespace.Group,k=e__namespace.Sub,L=e__namespace.RadioGroup,l=t__namespace.forwardRef(({className:n,...o},i)=>t__namespace.createElement(e__namespace.Portal,null,t__namespace.createElement(e__namespace.Content,{ref:i,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.a,n),...o})));l.displayName=e__namespace.Content.displayName;var M=t__namespace.forwardRef(({className:n,destructive:o,inset:i,...a},s)=>t__namespace.createElement(e__namespace.Item,{ref:s,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,i&&chunkMIYL7YKU_cjs.c,o&&chunkMIYL7YKU_cjs.g,n),...a}));M.displayName=e__namespace.Item.displayName;var P=t__namespace.forwardRef(({className:n,children:o,...i},a)=>t__namespace.createElement(e__namespace.CheckboxItem,{ref:a,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,chunkMIYL7YKU_cjs.c,n),...i},t__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t__namespace.createElement(e__namespace.ItemIndicator,null,t__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},t__namespace.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),o));P.displayName=e__namespace.CheckboxItem.displayName;var R=t__namespace.forwardRef(({className:n,children:o,...i},a)=>t__namespace.createElement(e__namespace.RadioItem,{ref:a,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,chunkMIYL7YKU_cjs.c,n),...i},t__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},t__namespace.createElement(e__namespace.ItemIndicator,null,t__namespace.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),o));R.displayName=e__namespace.RadioItem.displayName;var v=t__namespace.forwardRef(({className:n,inset:o,...i},a)=>t__namespace.createElement(e__namespace.Label,{ref:a,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.d,o&&chunkMIYL7YKU_cjs.c,n),...i}));v.displayName=e__namespace.Label.displayName;var d=t__namespace.forwardRef(({className:n,...o},i)=>t__namespace.createElement(e__namespace.Separator,{ref:i,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.e,n),...o}));d.displayName=e__namespace.Separator.displayName;function y({className:n,...o}){return t__namespace.createElement("span",{className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.f,n),...o})}y.displayName="ContextMenuShortcut";var b=t__namespace.forwardRef(({className:n,inset:o,children:i,...a},s)=>t__namespace.createElement(e__namespace.SubTrigger,{ref:s,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.b,"data-[state=open]:bg-muted",o&&chunkMIYL7YKU_cjs.c,n),...a},i,t__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},t__namespace.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));b.displayName=e__namespace.SubTrigger.displayName;var N=t__namespace.forwardRef(({className:n,...o},i)=>t__namespace.createElement(e__namespace.Portal,null,t__namespace.createElement(e__namespace.SubContent,{ref:i,className:chunkITRGJNWL_cjs.a(chunkMIYL7YKU_cjs.a,n),...o})));N.displayName=e__namespace.SubContent.displayName;exports.a=S;exports.b=g;exports.c=w;exports.d=k;exports.e=L;exports.f=l;exports.g=M;exports.h=P;exports.i=R;exports.j=v;exports.k=d;exports.l=y;exports.m=b;exports.n=N;//# sourceMappingURL=chunk-KCS3UL74.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-KCS3UL74.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/context-menu.tsx"],"names":["ContextMenu","e","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuContent","t","className","props","ref","cn","menuSurface","ContextMenuItem","destructive","inset","menuItem","menuItemInset","menuDestructive","ContextMenuCheckboxItem","children","ContextMenuRadioItem","ContextMenuLabel","menuLabel","ContextMenuSeparator","menuSeparator","ContextMenuShortcut","menuShortcut","ContextMenuSubTrigger","ContextMenuSubContent"],"mappings":"2kBA4BA,IAAMA,EAAmCC,YAAA,CAAA,IAAA,CACnCC,CAAAA,CAA0CD,qBAC1CE,CAAAA,CAAwCF,YAAA,CAAA,KAAA,CACxCG,EAAsCH,YAAA,CAAA,GAAA,CACtCI,CAAAA,CAA6CJ,wBAE7CK,CAAAA,CAA2BC,YAAA,CAAA,UAAA,CAG/B,CAAC,CAAE,SAAA,CAAAC,EAAW,GAAGC,CAAM,EAAGC,CAAAA,GAC1BH,YAAA,CAAA,aAAA,CAAsBN,oBAArB,IAAA,CACCM,YAAA,CAAA,aAAA,CAAsBN,qBAArB,CACC,GAAA,CAAKS,EACL,SAAA,CAAWC,mBAAA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CAAsB,YAAmC5B,YAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-KCS3UL74.cjs","sourcesContent":["import * as React from \"react\";\nimport * as ContextMenuPrimitive from \"@radix-ui/react-context-menu\";\nimport { cn } from \"../../lib/utils\";\nimport {\n menuDestructive,\n menuItem,\n menuItemInset,\n menuLabel,\n menuSeparator,\n menuShortcut,\n menuSurface,\n} from \"./menu-styles\";\n\n/**\n * The menu that opens on right-click, at the pointer.\n *\n * A separate primitive from `DropdownMenu` rather than a prop on it, because the\n * two are genuinely different: this one has no visible trigger, opens where the\n * pointer is, and on touch opens on long-press. Radix models them separately for\n * that reason. The styling is shared through menu-styles.ts so the two look like\n * the same menu, which is what a user expects.\n *\n * Worth saying out loud: a context menu must not be the only way to reach an\n * action. There is no affordance for it, it is awkward on touch, and a keyboard\n * user gets there only through the context-menu key. Put the same actions in a\n * `DropdownMenu` or a toolbar as well.\n */\n\nconst ContextMenu = ContextMenuPrimitive.Root;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\nconst ContextMenuContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n));\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\nexport interface ContextMenuItemProps extends React.ComponentPropsWithoutRef<\n typeof ContextMenuPrimitive.Item\n> {\n destructive?: boolean;\n inset?: boolean;\n}\n\nconst ContextMenuItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Item>,\n ContextMenuItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && menuItemInset,\n destructive && menuDestructive,\n className,\n )}\n {...props}\n />\n));\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\nconst ContextMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n));\nContextMenuCheckboxItem.displayName =\n ContextMenuPrimitive.CheckboxItem.displayName;\n\nconst ContextMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n));\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\nconst ContextMenuLabel = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Label\n ref={ref}\n className={cn(menuLabel, inset && menuItemInset, className)}\n {...props}\n />\n));\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\nconst ContextMenuSeparator = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Separator\n ref={ref}\n className={cn(menuSeparator, className)}\n {...props}\n />\n));\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\nfunction ContextMenuShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return <span className={cn(menuShortcut, className)} {...props} />;\n}\nContextMenuShortcut.displayName = \"ContextMenuShortcut\";\n\nconst ContextMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <ContextMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && menuItemInset,\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </ContextMenuPrimitive.SubTrigger>\n));\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\nconst ContextMenuSubContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n));\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\nexport {\n ContextMenu,\n ContextMenuTrigger,\n ContextMenuContent,\n ContextMenuItem,\n ContextMenuCheckboxItem,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuLabel,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuGroup,\n ContextMenuSub,\n ContextMenuSubTrigger,\n ContextMenuSubContent,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var t="z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg 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",e="relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-muted focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o="pl-8",d="px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",r="-mx-1 my-1 h-px bg-border",a="ml-auto text-xs tracking-widest text-muted-foreground",n="text-destructive focus:bg-destructive/10 focus:text-destructive";exports.a=t;exports.b=e;exports.c=o;exports.d=d;exports.e=r;exports.f=a;exports.g=n;//# sourceMappingURL=chunk-MIYL7YKU.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-MIYL7YKU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/menu-styles.ts"],"names":["menuSurface","menuItem","menuItemInset","menuLabel","menuSeparator","menuShortcut","menuDestructive"],"mappings":"aAcO,IAAMA,CAAAA,CACX,gcAAA,CAOWC,CAAAA,CACX,+NAAA,CAKWC,CAAAA,CAAgB,MAAA,CAEhBC,CAAAA,CACX,iFAAA,CAEWC,CAAAA,CAAgB,2BAAA,CAEhBC,CAAAA,CACX,uDAAA,CAEWC,CAAAA,CACX","file":"chunk-MIYL7YKU.cjs","sourcesContent":["/**\n * Class strings shared by `DropdownMenu` and `ContextMenu`.\n *\n * The two components wrap different Radix primitives, because a context menu\n * opens on right-click at the pointer and a dropdown opens from a trigger, and\n * Radix models those separately. But they are the same menu to look at, and a\n * user who learns one should recognise the other.\n *\n * These lived inside dropdown-menu.tsx. Copying them into context-menu.tsx\n * would have worked exactly until the first time someone adjusted the focus\n * colour in one file and not the other, which is the kind of drift nobody\n * notices in review and everybody notices on the page.\n */\n\nexport const menuSurface =\n \"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\";\n\nexport const menuItem =\n \"relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none \" +\n \"transition-colors focus:bg-muted focus:text-foreground \" +\n \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\";\n\n/** Indent for items that sit beside checkbox or radio indicators. */\nexport const menuItemInset = \"pl-8\";\n\nexport const menuLabel =\n \"px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\";\n\nexport const menuSeparator = \"-mx-1 my-1 h-px bg-border\";\n\nexport const menuShortcut =\n \"ml-auto text-xs tracking-widest text-muted-foreground\";\n\nexport const menuDestructive =\n \"text-destructive focus:bg-destructive/10 focus:text-destructive\";\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a as a$1,b as b$1,c,g as g$1,d,e as e$1,f}from'./chunk-XYPJ2K22.js';import {a}from'./chunk-AC2JBXHQ.js';import*as o from'react';import*as e from'@radix-ui/react-dropdown-menu';var C=e.Root,S=e.Trigger,g=e.Group,k=e.Sub,x=e.RadioGroup,l=o.forwardRef(({className:t,sideOffset:n=6,...r},i)=>o.createElement(e.Portal,null,o.createElement(e.Content,{ref:i,sideOffset:n,className:a(a$1,t),...r})));l.displayName=e.Content.displayName;var M=o.forwardRef(({className:t,destructive:n,inset:r,...i},u)=>o.createElement(e.Item,{ref:u,className:a(b$1,r&&c,n&&g$1,t),...i}));M.displayName=e.Item.displayName;var D=o.forwardRef(({className:t,children:n,...r},i)=>o.createElement(e.CheckboxItem,{ref:i,className:a(b$1,c,t),...r},o.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o.createElement(e.ItemIndicator,null,o.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},o.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),n));D.displayName=e.CheckboxItem.displayName;var P=o.forwardRef(({className:t,children:n,...r},i)=>o.createElement(e.RadioItem,{ref:i,className:a(b$1,c,t),...r},o.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o.createElement(e.ItemIndicator,null,o.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),n));P.displayName=e.RadioItem.displayName;var R=o.forwardRef(({className:t,inset:n,...r},i)=>o.createElement(e.Label,{ref:i,className:a(d,n&&c,t),...r}));R.displayName=e.Label.displayName;var v=o.forwardRef(({className:t,...n},r)=>o.createElement(e.Separator,{ref:r,className:a(e$1,t),...n}));v.displayName=e.Separator.displayName;function y({className:t,...n}){return o.createElement("span",{className:a(f,t),...n})}y.displayName="DropdownMenuShortcut";var b=o.forwardRef(({className:t,inset:n,children:r,...i},u)=>o.createElement(e.SubTrigger,{ref:u,className:a(b$1,"data-[state=open]:bg-muted",n&&c,t),...i},r,o.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},o.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));b.displayName=e.SubTrigger.displayName;var N=o.forwardRef(({className:t,...n},r)=>o.createElement(e.Portal,null,o.createElement(e.SubContent,{ref:r,className:a(a$1,t),...n})));N.displayName=e.SubContent.displayName;export{C as a,S as b,g as c,k as d,x as e,l as f,M as g,D as h,P as i,R as j,v as k,y as l,b as m,N as n};//# sourceMappingURL=chunk-MM54MZBX.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-MM54MZBX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/dropdown-menu.tsx"],"names":["DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuContent","className","sideOffset","props","ref","cn","menuSurface","DropdownMenuItem","destructive","inset","menuItem","menuItemInset","menuDestructive","DropdownMenuCheckboxItem","children","DropdownMenuRadioItem","DropdownMenuLabel","menuLabel","DropdownMenuSeparator","menuSeparator","DropdownMenuShortcut","menuShortcut","DropdownMenuSubTrigger","DropdownMenuSubContent"],"mappings":"wLAwBA,IAAMA,CAAAA,CAAqC,OACrCC,CAAAA,CAA4C,CAAA,CAAA,OAAA,CAC5CC,EAA0C,CAAA,CAAA,KAAA,CAC1CC,CAAAA,CAAwC,MACxCC,CAAAA,CAA+C,CAAA,CAAA,UAAA,CAE/CC,EAA4B,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MAAA,CAAtB,IAAA,CACC,gBAAuB,CAAA,CAAA,UAAA,CAAtB,CACC,IAAKA,CAAAA,CACL,SAAA,CAAWC,EAAGC,GAAAA,CAAaL,CAAS,EACnC,GAAGE,CAAAA,CACN,CACF,CACD,EACDoB,CAAAA,CAAuB,WAAA,CACC,CAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-MM54MZBX.js","sourcesContent":["import * as React from \"react\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cn } from \"../../lib/utils\";\nimport {\n menuDestructive,\n menuItem,\n menuItemInset,\n menuLabel,\n menuSeparator,\n menuShortcut,\n menuSurface,\n} from \"./menu-styles\";\n\n/**\n * The menu that hangs off a button: row actions, account menus, overflow.\n *\n * Radix owns the hard parts - roving focus, typeahead, submenu timing, pointer\n * versus keyboard intent - so this is styling plus two defaults worth having in\n * one place rather than at every call site.\n *\n * `Select` is the neighbouring component and a different thing: it edits a form\n * value and has a selected state. A dropdown menu runs commands.\n */\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n // Portalled: an un-portalled menu is clipped by any ancestor with\n // `overflow: hidden`, which in practice means every card and table it is used\n // in - the single most common way a menu appears half-drawn.\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> {\n /** Pulls the item into the destructive palette. */\n destructive?: boolean;\n /** Indents to line up with checkbox and radio items in the same menu. */\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n DropdownMenuItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && menuItemInset,\n destructive && menuDestructive,\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>\n // `checked` rides along in the spread rather than being destructured and\n // re-passed: under exactOptionalPropertyTypes, handing back an explicit\n // `undefined` is not the same as omitting the prop, and Radix's type rejects it.\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, menuItemInset, className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-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> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(menuLabel, inset && menuItemInset, 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>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(menuSeparator, className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/** For a keyboard hint on the right of an item. Not interactive. */\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return <span className={cn(menuShortcut, className)} {...props} />;\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && menuItemInset,\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),i=require('react'),e=require('@radix-ui/react-slider'),classVarianceAuthority=require('class-variance-authority');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var i__namespace=/*#__PURE__*/_interopNamespace(i);var e__namespace=/*#__PURE__*/_interopNamespace(e);var c=classVarianceAuthority.cva("relative grow overflow-hidden rounded-full bg-muted",{variants:{size:{sm:"h-1",default:"h-1.5",lg:"h-2.5"}},defaultVariants:{size:"default"}}),u=classVarianceAuthority.cva("block rounded-full border-2 border-primary bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-3.5 w-3.5",default:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"default"}}),v=i__namespace.forwardRef(({className:d,size:o,thumbLabel:t,...a},f)=>{let m=a.value??a.defaultValue??[0],l=Array.isArray(t)?t:[t];return i__namespace.createElement(e__namespace.Root,{ref:f,className:chunkITRGJNWL_cjs.a("relative flex w-full touch-none select-none items-center",d),...a},i__namespace.createElement(e__namespace.Track,{className:chunkITRGJNWL_cjs.a(c({size:o}))},i__namespace.createElement(e__namespace.Range,{className:"absolute h-full bg-primary"})),m.map((p,s)=>i__namespace.createElement(e__namespace.Thumb,{key:s,className:chunkITRGJNWL_cjs.a(u({size:o})),"aria-label":l[s]??l[0]})))});v.displayName=e__namespace.Root.displayName;exports.a=c;exports.b=u;exports.c=v;//# sourceMappingURL=chunk-QEHKWS7N.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-QEHKWS7N.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/slider.tsx"],"names":["sliderTrackVariants","cva","sliderThumbVariants","Slider","i","className","size","thumbLabel","props","ref","values","labels","e","cn","_"],"mappings":"klBAaMA,CAAAA,CAAsBC,0BAAAA,CAC1B,qDAAA,CACA,CACE,SAAU,CACR,IAAA,CAAM,CACJ,EAAA,CAAI,MACJ,OAAA,CAAS,OAAA,CACT,EAAA,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CAAK,CAAC,CAAC,CAAA,CAC3C,YAAA,CAAYK,CAAAA,CAAOP,CAAC,GAAKO,CAAAA,CAAO,CAAC,CAAA,CACnC,CACD,CACH,CAEJ,CAAC,EACDR,CAAAA,CAAO,YAA8BS,YAAA,CAAA,IAAA,CAAK,WAAA","file":"chunk-QEHKWS7N.cjs","sourcesContent":["import * as React from \"react\";\nimport * as SliderPrimitive from \"@radix-ui/react-slider\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A value picked by dragging along a range: volume, price, opacity.\n *\n * Radix renders one thumb per entry in `value`, so a range slider is the same\n * component with two numbers rather than a separate one. The thumbs are rendered\n * from the value rather than hardcoded here for that reason.\n */\n\nconst sliderTrackVariants = cva(\n \"relative grow overflow-hidden rounded-full bg-muted\",\n {\n variants: {\n size: {\n sm: \"h-1\",\n default: \"h-1.5\",\n lg: \"h-2.5\",\n },\n },\n defaultVariants: { size: \"default\" },\n },\n);\n\nconst sliderThumbVariants = cva(\n \"block rounded-full border-2 border-primary bg-background shadow transition-colors \" +\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background \" +\n \"disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n size: {\n sm: \"h-3.5 w-3.5\",\n default: \"h-4 w-4\",\n lg: \"h-5 w-5\",\n },\n },\n defaultVariants: { size: \"default\" },\n },\n);\n\nexport interface SliderProps\n extends\n React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>,\n VariantProps<typeof sliderTrackVariants> {\n /**\n * Label for each thumb, so a screen reader says \"Minimum\" and \"Maximum\"\n * rather than \"slider\" twice. One string labels a single thumb; an array\n * labels them in order.\n */\n thumbLabel?: string | string[];\n}\n\nconst Slider = React.forwardRef<\n React.ElementRef<typeof SliderPrimitive.Root>,\n SliderProps\n>(({ className, size, thumbLabel, ...props }, ref) => {\n // One thumb per value. Radix drives this from `value` or `defaultValue`, so\n // reading it here keeps a range slider working without a second component.\n const values = props.value ?? props.defaultValue ?? [0];\n const labels = Array.isArray(thumbLabel) ? thumbLabel : [thumbLabel];\n\n return (\n <SliderPrimitive.Root\n ref={ref}\n className={cn(\n \"relative flex w-full touch-none select-none items-center\",\n className,\n )}\n {...props}\n >\n <SliderPrimitive.Track className={cn(sliderTrackVariants({ size }))}>\n <SliderPrimitive.Range className=\"absolute h-full bg-primary\" />\n </SliderPrimitive.Track>\n {values.map((_, i) => (\n <SliderPrimitive.Thumb\n key={i}\n className={cn(sliderThumbVariants({ size }))}\n aria-label={labels[i] ?? labels[0]}\n />\n ))}\n </SliderPrimitive.Root>\n );\n});\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider, sliderTrackVariants, sliderThumbVariants };\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a}from'./chunk-AC2JBXHQ.js';import*as i from'react';import*as e from'@radix-ui/react-slider';import {cva}from'class-variance-authority';var c=cva("relative grow overflow-hidden rounded-full bg-muted",{variants:{size:{sm:"h-1",default:"h-1.5",lg:"h-2.5"}},defaultVariants:{size:"default"}}),u=cva("block rounded-full border-2 border-primary bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-3.5 w-3.5",default:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"default"}}),v=i.forwardRef(({className:d,size:o,thumbLabel:t,...a$1},f)=>{let m=a$1.value??a$1.defaultValue??[0],l=Array.isArray(t)?t:[t];return i.createElement(e.Root,{ref:f,className:a("relative flex w-full touch-none select-none items-center",d),...a$1},i.createElement(e.Track,{className:a(c({size:o}))},i.createElement(e.Range,{className:"absolute h-full bg-primary"})),m.map((p,s)=>i.createElement(e.Thumb,{key:s,className:a(u({size:o})),"aria-label":l[s]??l[0]})))});v.displayName=e.Root.displayName;export{c as a,u as b,v as c};//# sourceMappingURL=chunk-VBGHESL2.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-VBGHESL2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/slider.tsx"],"names":["sliderTrackVariants","cva","sliderThumbVariants","Slider","className","size","thumbLabel","props","ref","values","labels","cn","_","i"],"mappings":"oJAaMA,CAAAA,CAAsBC,GAAAA,CAC1B,qDAAA,CACA,CACE,SAAU,CACR,IAAA,CAAM,CACJ,EAAA,CAAI,MACJ,OAAA,CAAS,OAAA,CACT,EAAA,CAAI,OACN,CACF,CAAA,CACA,eAAA,CAAiB,CAAE,IAAA,CAAM,SAAU,CACrC,CACF,CAAA,CAEMC,CAAAA,CAAsBD,IAC1B,6QAAA,CAGA,CACE,QAAA,CAAU,CACR,KAAM,CACJ,EAAA,CAAI,aAAA,CACJ,OAAA,CAAS,UACT,EAAA,CAAI,SACN,CACF,CAAA,CACA,gBAAiB,CAAE,IAAA,CAAM,SAAU,CACrC,CACF,CAAA,CAcME,CAAAA,CAAe,CAAA,CAAA,UAAA,CAGnB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAC,CAAAA,CAAM,WAAAC,CAAAA,CAAY,GAAGC,GAAM,CAAA,CAAGC,IAAQ,CAGpD,IAAMC,CAAAA,CAASF,GAAAA,CAAM,OAASA,GAAAA,CAAM,YAAA,EAAgB,CAAC,CAAC,CAAA,CAChDG,CAAAA,CAAS,KAAA,CAAM,OAAA,CAAQJ,CAAU,CAAA,CAAIA,CAAAA,CAAa,CAACA,CAAU,EAEnE,OACE,CAAA,CAAA,aAAA,CAAiB,CAAA,CAAA,IAAA,CAAhB,CACC,IAAKE,CAAAA,CACL,SAAA,CAAWG,CAAAA,CACT,0DAAA,CACAP,CACF,CAAA,CACC,GAAGG,GAAAA,CAAAA,CAEJ,CAAA,CAAA,aAAA,CAAiB,QAAhB,CAAsB,SAAA,CAAWI,CAAAA,CAAGX,CAAAA,CAAoB,CAAE,IAAA,CAAAK,CAAK,CAAC,CAAC,GAChE,CAAA,CAAA,aAAA,CAAiB,CAAA,CAAA,KAAA,CAAhB,CAAsB,SAAA,CAAU,6BAA6B,CAChE,CAAA,CACCI,CAAAA,CAAO,GAAA,CAAI,CAACG,CAAAA,CAAGC,CAAAA,GACd,CAAA,CAAA,aAAA,CAAiB,CAAA,CAAA,KAAA,CAAhB,CACC,GAAA,CAAKA,CAAAA,CACL,SAAA,CAAWF,CAAAA,CAAGT,EAAoB,CAAE,IAAA,CAAAG,CAAK,CAAC,CAAC,CAAA,CAC3C,YAAA,CAAYK,CAAAA,CAAOG,CAAC,GAAKH,CAAAA,CAAO,CAAC,CAAA,CACnC,CACD,CACH,CAEJ,CAAC,EACDP,CAAAA,CAAO,YAA8B,CAAA,CAAA,IAAA,CAAK,WAAA","file":"chunk-VBGHESL2.js","sourcesContent":["import * as React from \"react\";\nimport * as SliderPrimitive from \"@radix-ui/react-slider\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * A value picked by dragging along a range: volume, price, opacity.\n *\n * Radix renders one thumb per entry in `value`, so a range slider is the same\n * component with two numbers rather than a separate one. The thumbs are rendered\n * from the value rather than hardcoded here for that reason.\n */\n\nconst sliderTrackVariants = cva(\n \"relative grow overflow-hidden rounded-full bg-muted\",\n {\n variants: {\n size: {\n sm: \"h-1\",\n default: \"h-1.5\",\n lg: \"h-2.5\",\n },\n },\n defaultVariants: { size: \"default\" },\n },\n);\n\nconst sliderThumbVariants = cva(\n \"block rounded-full border-2 border-primary bg-background shadow transition-colors \" +\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background \" +\n \"disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n size: {\n sm: \"h-3.5 w-3.5\",\n default: \"h-4 w-4\",\n lg: \"h-5 w-5\",\n },\n },\n defaultVariants: { size: \"default\" },\n },\n);\n\nexport interface SliderProps\n extends\n React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>,\n VariantProps<typeof sliderTrackVariants> {\n /**\n * Label for each thumb, so a screen reader says \"Minimum\" and \"Maximum\"\n * rather than \"slider\" twice. One string labels a single thumb; an array\n * labels them in order.\n */\n thumbLabel?: string | string[];\n}\n\nconst Slider = React.forwardRef<\n React.ElementRef<typeof SliderPrimitive.Root>,\n SliderProps\n>(({ className, size, thumbLabel, ...props }, ref) => {\n // One thumb per value. Radix drives this from `value` or `defaultValue`, so\n // reading it here keeps a range slider working without a second component.\n const values = props.value ?? props.defaultValue ?? [0];\n const labels = Array.isArray(thumbLabel) ? thumbLabel : [thumbLabel];\n\n return (\n <SliderPrimitive.Root\n ref={ref}\n className={cn(\n \"relative flex w-full touch-none select-none items-center\",\n className,\n )}\n {...props}\n >\n <SliderPrimitive.Track className={cn(sliderTrackVariants({ size }))}>\n <SliderPrimitive.Range className=\"absolute h-full bg-primary\" />\n </SliderPrimitive.Track>\n {values.map((_, i) => (\n <SliderPrimitive.Thumb\n key={i}\n className={cn(sliderThumbVariants({ size }))}\n aria-label={labels[i] ?? labels[0]}\n />\n ))}\n </SliderPrimitive.Root>\n );\n});\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider, sliderTrackVariants, sliderThumbVariants };\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var t="z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg 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",e="relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-muted focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o="pl-8",d="px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",r="-mx-1 my-1 h-px bg-border",a="ml-auto text-xs tracking-widest text-muted-foreground",n="text-destructive focus:bg-destructive/10 focus:text-destructive";export{t as a,e as b,o as c,d,r as e,a as f,n as g};//# sourceMappingURL=chunk-XYPJ2K22.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-XYPJ2K22.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/menu-styles.ts"],"names":["menuSurface","menuItem","menuItemInset","menuLabel","menuSeparator","menuShortcut","menuDestructive"],"mappings":"AAcO,IAAMA,CAAAA,CACX,gcAAA,CAOWC,CAAAA,CACX,+NAAA,CAKWC,CAAAA,CAAgB,MAAA,CAEhBC,CAAAA,CACX,iFAAA,CAEWC,CAAAA,CAAgB,2BAAA,CAEhBC,CAAAA,CACX,uDAAA,CAEWC,CAAAA,CACX","file":"chunk-XYPJ2K22.js","sourcesContent":["/**\n * Class strings shared by `DropdownMenu` and `ContextMenu`.\n *\n * The two components wrap different Radix primitives, because a context menu\n * opens on right-click at the pointer and a dropdown opens from a trigger, and\n * Radix models those separately. But they are the same menu to look at, and a\n * user who learns one should recognise the other.\n *\n * These lived inside dropdown-menu.tsx. Copying them into context-menu.tsx\n * would have worked exactly until the first time someone adjusted the focus\n * colour in one file and not the other, which is the kind of drift nobody\n * notices in review and everybody notices on the page.\n */\n\nexport const menuSurface =\n \"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\";\n\nexport const menuItem =\n \"relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none \" +\n \"transition-colors focus:bg-muted focus:text-foreground \" +\n \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\";\n\n/** Indent for items that sit beside checkbox or radio indicators. */\nexport const menuItemInset = \"pl-8\";\n\nexport const menuLabel =\n \"px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\";\n\nexport const menuSeparator = \"-mx-1 my-1 h-px bg-border\";\n\nexport const menuShortcut =\n \"ml-auto text-xs tracking-widest text-muted-foreground\";\n\nexport const menuDestructive =\n \"text-destructive focus:bg-destructive/10 focus:text-destructive\";\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkKCS3UL74_cjs=require('../../chunk-KCS3UL74.cjs');require('../../chunk-MIYL7YKU.cjs'),require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"ContextMenu",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.a}});Object.defineProperty(exports,"ContextMenuCheckboxItem",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.h}});Object.defineProperty(exports,"ContextMenuContent",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.f}});Object.defineProperty(exports,"ContextMenuGroup",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.c}});Object.defineProperty(exports,"ContextMenuItem",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.g}});Object.defineProperty(exports,"ContextMenuLabel",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.j}});Object.defineProperty(exports,"ContextMenuRadioGroup",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.e}});Object.defineProperty(exports,"ContextMenuRadioItem",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.i}});Object.defineProperty(exports,"ContextMenuSeparator",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.k}});Object.defineProperty(exports,"ContextMenuShortcut",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.l}});Object.defineProperty(exports,"ContextMenuSub",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.d}});Object.defineProperty(exports,"ContextMenuSubContent",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.n}});Object.defineProperty(exports,"ContextMenuSubTrigger",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.m}});Object.defineProperty(exports,"ContextMenuTrigger",{enumerable:true,get:function(){return chunkKCS3UL74_cjs.b}});//# sourceMappingURL=context-menu.cjs.map
|
|
3
|
+
//# sourceMappingURL=context-menu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"context-menu.cjs"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The menu that opens on right-click, at the pointer.
|
|
6
|
+
*
|
|
7
|
+
* A separate primitive from `DropdownMenu` rather than a prop on it, because the
|
|
8
|
+
* two are genuinely different: this one has no visible trigger, opens where the
|
|
9
|
+
* pointer is, and on touch opens on long-press. Radix models them separately for
|
|
10
|
+
* that reason. The styling is shared through menu-styles.ts so the two look like
|
|
11
|
+
* the same menu, which is what a user expects.
|
|
12
|
+
*
|
|
13
|
+
* Worth saying out loud: a context menu must not be the only way to reach an
|
|
14
|
+
* action. There is no affordance for it, it is awkward on touch, and a keyboard
|
|
15
|
+
* user gets there only through the context-menu key. Put the same actions in a
|
|
16
|
+
* `DropdownMenu` or a toolbar as well.
|
|
17
|
+
*/
|
|
18
|
+
declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
19
|
+
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const ContextMenuSub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
22
|
+
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
interface ContextMenuItemProps extends React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> {
|
|
25
|
+
destructive?: boolean;
|
|
26
|
+
inset?: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare const ContextMenuItem: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
32
|
+
inset?: boolean;
|
|
33
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare function ContextMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
36
|
+
declare namespace ContextMenuShortcut {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
39
|
+
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
40
|
+
inset?: boolean;
|
|
41
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
|
|
44
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|